22.11.2018, 15:09
May I suggest you to use another command processor?
Most famous are zcmd and ycmd, you can find their threads in the forums.
Here is an example with zmcd
;
Most famous are zcmd and ycmd, you can find their threads in the forums.
Here is an example with zmcd
PHP код:
CMD:destroyallvehicles(playerid, params[])
{
if(!IsPlayerAdmin(playerid) && PlayerInfo[playerid][pAdmin] < 5){
return SendClientMessage(playerid, -1, "You need to be RCON Admin or Level 5 Administrator to do that");
}
for(new i, j = MAX_VEHICLES; i != j; i++){
if(IsValidVehicle(i)){
DestroyVehicle(i);
}
}
SendClientMessage(playerid, -1, "Vehicles Destroyed");
return 1;
}