05.02.2011, 22:47
(
Последний раз редактировалось Sandek; 05.02.2011 в 23:45.
)
when i write /destroycars then will destroy all cars in server not just that what makes Admin..
So i wannt when i type /Destroycars to destroy just created vehicles
pleas help me!
Thanks
Really Sory For my English...i Know is very bad
cod:
So i wannt when i type /Destroycars to destroy just created vehicles
pleas help me!
Thanks
Really Sory For my English...i Know is very bad
cod:
Код:
if(strcmp(cmd, "/destroycars", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] < 1340) { 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; }