Destory spawned vehicles
#3

In your mode:
PHP код:
new bool:AdminVS[MAX_VEHICLES]; 
In the end of public OnGameModeInit:
PHP код:
for(new 0MAX_VEHICLESi++) AdminVS[i] = false
In the end of the command /veh, when it creating the vehicle:
PHP код:
AdminVS[i] = true
In the public OnPlayerCommandText:
PHP код:
if(!strcmp(cmdtext"/vdelall"true))
{
for(new 
0MAX_VEHICLESi++) if(AdminVSDestroyVehicle(vehicleid), A;
return 
SendClientMessage(playerid, -1"You have removed the all vehicles that you has been created before");

Reply


Messages In This Thread
Destory spawned vehicles - by Starky Yakavetta - 13.07.2012, 21:19
Re: Destory spawned vehicles - by Warfish - 13.07.2012, 21:22
Re: Destory spawned vehicles - by Accord - 13.07.2012, 21:48
Re: Destory spawned vehicles - by Starky Yakavetta - 14.07.2012, 04:46
Re: Destory spawned vehicles - by clarencecuzz - 14.07.2012, 08:02

Forum Jump:


Users browsing this thread: 1 Guest(s)