Respawn cars
#1

how can i like put /respawncars? i saw once on luxadmin but iv downloaded some and i cant find it anymore help!!
_______________________
[GDZ]leader
Reply
#2

Search is God
pawn Code:
//
    if(!strcmp(cmdtext, "/respawncar", true))
    {
        for(new i = 0; i < MAX_VEHICLES; i++)
        {
         SetVehicleToRespawn(i);
        }
        return 1;
     }
Reply
#3

Here is a better one. It will only respawn empty vehicles

pawn Code:
if(strcmp(cmd, "/respawnvehicles", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 5)
        {
            for(new i=0;i<MAX_VEHICLES;i++)
            {
                if(IsVehicleOccupied(i) == 0)
                {
                    SetVehicleToRespawn(i);
                }
            }
            format(string, sizeof(string), "[INFO:] Unoccupied vehicles respawned by %s.", GetPlayerNameEx(playerid));
            SendClientMessageToAll(COLOR_ADMINCMD, string);
        }
        else
        {
            SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Your not an administrator.");
        }
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)