Respawn All Cars
#10

Yep, just like that.
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;
}
Reply


Messages In This Thread
Respawn All Cars - by Antonio [G-RP] - 25.08.2009, 04:25
Re: Respawn All Cars - by Finn - 25.08.2009, 06:32
Re: Respawn All Cars - by woot - 25.08.2009, 08:18
Re: Respawn All Cars - by Joe Staff - 25.08.2009, 09:03
Re: Respawn All Cars - by Djiango - 25.08.2009, 09:12
Re: Respawn All Cars - by woot - 25.08.2009, 10:30
Re: Respawn All Cars - by Antonio [G-RP] - 25.08.2009, 19:48
Re: Respawn All Cars - by Djiango - 25.08.2009, 19:52
Re: Respawn All Cars - by Antonio [G-RP] - 26.08.2009, 03:11
Re: Respawn All Cars - by Djiango - 26.08.2009, 08:59

Forum Jump:


Users browsing this thread: 1 Guest(s)