[POMOC] Cyber

Započeo [ED] Marac, Septembar 05, 2011, 09:30:42 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Cyber
Detaljan opis problema: Kad veham auto idem /Destroycars nece i mozeli mi neko pokazat kako napravit /rtc ? I jos kako dodavat vozila na prodaju ?
Dio skripte: -
Neke slike/video za lakse dobivanje pomoci(neobavezno): -

[BUL]Salvatore


if(strcmp(cmd, "/destroycars", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][Admin] < 2)
{
    SendClientMessage(playerid, COLOR_GRAD1, "{F81414}Admini samo!");
    return 1;
}
        UnistiVehano();
SendClientMessage(playerid, SIVA, "Stvoreno vozilo unisteno !");
}
return 1;
}

Sergio_Don

Daj ovu funkciju UnistiVehano();

stock KupnjaVozila(playerid)
{
new str = GetPVarInt(playerid, "Strelice");
if(JB_GetPlayerMoney(playerid) < ModInfo[str-1][mCijena]) return SendClientMessage(playerid, COLOR_WHITE, "Nemas dovoljno novaca za kupnju vozila.");
new model = GetVehicleModel(biranje[playerid]);
UnistiVehano();
DestroyVehicle(biranje[playerid]);
new rand = random(4);
switch(rand)
{
case 0: StvaranjeVozila(playerid, model, 1, 1, ModInfo[str-1][mCijena],556.1356,-1289.0342,17.2482,7.6852);
case 1: StvaranjeVozila(playerid, model, 1, 1, ModInfo[str-1][mCijena],565.6713,-1288.2511,17.2482,20.7196);
case 2: StvaranjeVozila(playerid, model, 1, 1, ModInfo[str-1][mCijena],534.0648,-1288.8966,17.2422,21.0096);
case 3: StvaranjeVozila(playerid, model, 1, 1, ModInfo[str-1][mCijena],538.5685,-1276.7786,17.2422,226.3664);
case 4: StvaranjeVozila(playerid, model, 1, 1, ModInfo[str-1][mCijena],551.1652,-1265.9586,17.2422,239.0214);
}
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
SetPlayerVirtualWorld(playerid, 0);
SetVehicleVirtualWorld(biranje[playerid], 0);
PutPlayerInVehicle(playerid,biranje[playerid], 0);
JB_GivePlayerMoney(playerid, -ModInfo[str-1][mCijena]);
TextDrawHideForPlayer(playerid, Slicica1);
TextDrawHideForPlayer(playerid, CosTD[model-400]);
TextDrawHideForPlayer(playerid, PriceTD[str-1]);
SetPVarInt(playerid, "Strelice", 0);
GameTextForPlayer(playerid, "~y~Vozilo~n~kupljeno", 10000, 3);
VoziloJedan(playerid); VoziloDva(playerid); VoziloTri(playerid);
return 1;
}

Sergio_Don

Citat: [ED]Marac poslato Septembar 05, 2011, 09:58:56 PRE PODNE
stock KupnjaVozila(playerid)
{
new str = GetPVarInt(playerid, "Strelice");
if(JB_GetPlayerMoney(playerid) < ModInfo[str-1][mCijena]) return SendClientMessage(playerid, COLOR_WHITE, "Nemas dovoljno novaca za kupnju vozila.");
new model = GetVehicleModel(biranje[playerid]);
UnistiVehano();
DestroyVehicle(biranje[playerid]);
new rand = random(4);
switch(rand)
{
case 0: StvaranjeVozila(playerid, model, 1, 1, ModInfo[str-1][mCijena],556.1356,-1289.0342,17.2482,7.6852);
case 1: StvaranjeVozila(playerid, model, 1, 1, ModInfo[str-1][mCijena],565.6713,-1288.2511,17.2482,20.7196);
case 2: StvaranjeVozila(playerid, model, 1, 1, ModInfo[str-1][mCijena],534.0648,-1288.8966,17.2422,21.0096);
case 3: StvaranjeVozila(playerid, model, 1, 1, ModInfo[str-1][mCijena],538.5685,-1276.7786,17.2422,226.3664);
case 4: StvaranjeVozila(playerid, model, 1, 1, ModInfo[str-1][mCijena],551.1652,-1265.9586,17.2422,239.0214);
}
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
SetPlayerVirtualWorld(playerid, 0);
SetVehicleVirtualWorld(biranje[playerid], 0);
PutPlayerInVehicle(playerid,biranje[playerid], 0);
JB_GivePlayerMoney(playerid, -ModInfo[str-1][mCijena]);
TextDrawHideForPlayer(playerid, Slicica1);
TextDrawHideForPlayer(playerid, CosTD[model-400]);
TextDrawHideForPlayer(playerid, PriceTD[str-1]);
SetPVarInt(playerid, "Strelice", 0);
GameTextForPlayer(playerid, "~y~Vozilo~n~kupljeno", 10000, 3);
VoziloJedan(playerid); VoziloDva(playerid); VoziloTri(playerid);
return 1;
}


Krivo si dao daj stock UnistiVehano()

stock UnistiVehano()
{
for(new i = 1; i < MAX_VEHICLES; i++)
{
if(Vehano[i])
{
DestroyVehicle(i);
Vehano[i] = 0;
}
}
return 1;
}


E jel mi mos dat koju GF skriptu ?

Sergio_Don