30.04.2011, 12:58
Hello. i my server i have this command
its delete all cars spawned with /veh
but can someone make like this command but to delete all cars which are spawned by VIP users
PHP код:
if(strcmp(cmd, "/destroycars", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 4)
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
return 1;
}
for(new i = 0; i < CreatedCar; i++)
{
DestroyVehicle(CreatedCars[i]);
}
CreatedCar = 0;
SendClientMessage(playerid, COLOR_GREY, " Created Vehicles destroyed!");
}
return 1;
}
but can someone make like this command but to delete all cars which are spawned by VIP users