Skripta koju koristim:GF
Detaljan opis problema:Ne unisti spawnana auta
Dio skripte:
if(strcmp(cmd, "/destroyspawncars", true) == 0 || strcmp(cmd, "/dsc", true) == 0) // by Ellis
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 2)
{
SendClientMessage(playerid, COLOR_GRAD1, " Niste ovlasteni da koristite tu komandu!");
return 1;
}
for(new car = 551; car < sizeof(CreatedCars); car++)
{
DestroyVehicle(car);
}
sftrackveh = 0;
mchilladveh = 0;
buggyveh = 0;
monsterveh = 0;
survivorveh = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "SERVER: %s je unistio sva stvorena vozila .", sendername);
SendClientMessage(playerid,COLOR_WHITE," Unistili ste sva stvorena vozila ");
BroadCast(COLOR_WHITE,string);
}
return 1;
}
probaj sa ovom komandom
if(strcmp(cmd, "/destroycars", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 1338)
{
SendClientMessage(playerid, COLOR_GRAD1, " Niste ovlasteni da koristite tu komandu!");
return 1;
}
for(new i = 0; i < sizeof(CreatedCars); i++)
{
if(i != 0)
{
DestroyVehicle(i);
}
}
SendClientMessage(playerid, COLOR_GREY, " Sva stvorena vozila su unistena !");
}
return 1;
}
ta kmomanda unisti sva vozila a ne ona sto sam tek spawno :-X