SA-MP Forums Archive
Ulrich Vehicle system - Respawn - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Ulrich Vehicle system - Respawn (/showthread.php?tid=301719)



Ulrich Vehicle system - Respawn - remyguys - 05.12.2011

Im using the Ulrich Vehicle System, but i have a problem,

When i use the underneath respawnvehicles lines (from CRP Carlitos RP), it respawns all vehicles.. Also the ones from Ulrich Vehicle System, how can i make it so that it doesn't respawn the Ulrich vehicles(player vehs) OR that its 2 seperate respawn commands.

Pastebin Ulrich vehicle System: http://pastebin.com/K7PS9pyv

Thx in Advance.

PHP код:
    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(stringsizeof(string), "[INFO:] Unoccupied vehicles respawned by %s."GetPlayerNameEx(playerid));
               
SendClientMessageToAll(COLOR_ADMINCMDstring);
        }
        else
        {
            
SendClientMessage(playeridCOLOR_LIGHTYELLOW2"Your not an administrator.");
        }
        return 
1;
    }