/rac problem!
#1

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;
                    } 
Reply


Messages In This Thread
/rac problem! - by Akcent_Voltaj - 03.03.2013, 11:34
Re: /rac problem! - by Akcent_Voltaj - 03.03.2013, 12:51
Re: /rac problem! - by Akcent_Voltaj - 03.03.2013, 16:32
Re: /rac problem! - by mittukuttan - 03.03.2013, 16:35
Re: /rac problem! - by Akcent_Voltaj - 03.03.2013, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)