SA-MP Forums Archive
[HELP] Respawn All Cars - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Respawn All Cars (/showthread.php?tid=166696)



[HELP] Respawn All Cars - kOjOe - 09.08.2010

I got this code

PHP код:
    if(strcmp(cmd"/respawnallcars"true) == || strcmp(cmd"/rac"true) == 0)
    {
        if(
PlayerInfo[playerid][pAdmin] <= 2000)
        {
            
SendClientMessage(playeridCOLOR_GRAD1"Vous n'кtes pas autorisez a utilisй cette commande!");
            return 
1;
        }
        
GetPlayerName(playeridsendernamesizeof(sendername));
        
format(stringsizeof(string), "[BC] Tous les vйhicules inutilisй ont йtй respawn par %s."sendername);
        
SendClientMessageToAll(COLOR_WHITE,string);
        new 
bool:unwanted[CAR_AMOUNT];
        for(new 
player=0player<MAX_PLAYERSplayer++)
        {
               if(
IsPlayerInAnyVehicle(player))
            { 
unwanted[GetPlayerVehicleID(player)]=true; }
        }
        for(new 
car 1car <= MAX_VEHICULEScar++)
        {
            if(!
unwanted[car]){SetVehicleToRespawn(car);}
        }
        return 
1;
    } 
And it work perfectly. BUt i want it to stop removing the Tunes and i do /rac...

HOw do i do?

Thanks


Re: [HELP] Respawn All Cars - Dolph - 09.08.2010

for(new car = 1; car <= MAX_VEHICULES; car++)


MAX_VEHICULES?


Re: [HELP] Respawn All Cars - kOjOe - 09.08.2010

yeah its for a Rp server