13.07.2012, 21:19
Can somebody make mi command for destroying all spawned veh with the command /veh
new bool:AdminVS[MAX_VEHICLES];
for(new i = 0; i < MAX_VEHICLES; i++) AdminVS[i] = false;
AdminVS[i] = true;
if(!strcmp(cmdtext, "/vdelall", true))
{
for(new i = 0; i < MAX_VEHICLES; i++) if(AdminVS) DestroyVehicle(vehicleid), A;
return SendClientMessage(playerid, -1, "You have removed the all vehicles that you has been created before");
}
In your mode:
PHP код:
PHP код:
PHP код:
PHP код:
|
if(!strcmp(cmdtext, "/vdelall", true))
{
for(new i = 0; i < MAX_VEHICLES; i++) if(AdminVS) DestroyVehicle(i), A;
return SendClientMessage(playerid, -1, "You have removed the all vehicles that you has been created before");
}