Destory spawned vehicles
#1

Can somebody make mi command for destroying all spawned veh with the command /veh
Reply
#2

Learn basic scripting first.. the next thing you are going to ask us is to make you a whole server?
Reply
#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
#4

Quote:
Originally Posted by Accord
Посмотреть сообщение
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");


tnx for the command
Reply
#5

pawn Код:
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");
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)