26.08.2009, 08:59
Yep, just like that.
Or like this, if you think that looks better.
Or like this, if you think that looks better.
pawn Код:
if(strcmp(cmdtext, "/resallcar", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_RED, "You are not authorised to use this command!");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "AdmCmd: %s has respawned all unoccupied vehicles!", sendername);
SendClientMessageToAll(COLOR_ADMIN, string);
for(new cars=0; cars<MAX_VEHICLES; cars++)
{
if(!IsVehicleOccupied(cars))//if cars is not occupied.
{
SetVehicleToRespawn(cars);
}
}
return 1;
}

