Respawn vehicles
#2

Код:
dcmd_rav(playerid,params[])
{
    if(PlayerInfo[playerid][Level] >= 3|| IsPlayerAdmin(playerid))
    {
        for(new i = 0; i < MAX_VEHICLES; i++)
        {
            for(new x = 0; x < MAX_PLAYERS; x++)
            {
                if(!IsPlayerInAnyVehicle(x))
                {
                    SetVehicleToRespawn(i);
                }
            }
        }
        SendClientMessageToAll(COLOR_GREEN,"All Vehicles Have Been Respawned To Their Default Spawn      Positions By An Admin.");
        SendClientMessage(playerid,COLOR_LIGHTBLUE,"You Respawned All The Vehicles.");
    } else return SendClientMessage(playerid,red,"Invalid Command. Type   /cmds   For A List Of All Available Server Commands.");
}
Reply


Messages In This Thread
Respawn vehicles - by grand.Theft.Otto - 04.08.2011, 04:05
Re: Respawn vehicles - by andrew4699 - 04.08.2011, 04:48

Forum Jump:


Users browsing this thread: 2 Guest(s)