SA-MP Forums Archive
/rac problem! - 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: /rac problem! (/showthread.php?tid=420033)



/rac problem! - Akcent_Voltaj - 03.03.2013

how can i make IsATrailer and IsATL not to /rac i dont want them to respawn plz help!



PHP код:
if(strcmp(cmd"/respawnallcars"true) == || strcmp(cmd"/rac"true) == 0//
                    
{
                    if(
IsPlayerConnected(playerid))
                    {
                    if(
PlayerInfo[playerid][pAdmin] < 1337)
                    {
                        
SendClientMessage(playeridCOLOR_GRAD1"   you are not authorized to use that command!");
                        return 
1;
                    }
                    new 
bool:unwanted[CAR_AMOUNT];
                    for(new 
player=0player<MAX_PLAYERSplayer++)
                    {
                        if(
IsPlayerInAnyVehicle(player)
                        {
                            
unwanted[GetPlayerVehicleID(player)]=true;
                          }
                    }
                     for(new 
car 1car <= 359car++ || IsATLCar(car) && IsATrailer(car))
                     {
                         if(!
unwanted[car]) SetVehicleToRespawn(car);
                       }
                    
GetPlayerName(playeridsendernamesizeof(sendername));
                    
format(stringsizeof(string), " Toate vehicule sau respawnat de %s."sendername);
                    
BroadCast(COLOR_WHITE,string);
                    }
                    return 
1;
                    } 



Re: /rac problem! - Akcent_Voltaj - 03.03.2013

please help!


Re: /rac problem! - Akcent_Voltaj - 03.03.2013

please help anyone


Re: /rac problem! - mittukuttan - 03.03.2013

Quote:

CMD:rac(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessageToAll(COLOR_GRAD2, "SERVER: An admin has initiated an all vehicle respawn !");
for(new i = 1; i <= MAX_VEHICLES; i++)
{
SetVehicleToRespawn(i);
}
}
else return SendClientMessage(playerid, COLOR_GRAD2, NOTADMIN);
return 1;
}

looking for a mapper who can map for free


Re: /rac problem! - Akcent_Voltaj - 03.03.2013

but i dont want trucks and trailers to respawn and new vehicles from 0 to 359..