#1

respawns Truck and trailer(IsATLCar -- IsATrailer) only if their unwanted..

PHP код:
if(strcmp(cmd"/rtt"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[MAX_VEHICLES];
                        for(new 
player=0player<MAX_PLAYERSplayer++)
                         {
                            if(
IsPlayerInAnyVehicle(player))
                            {
                                
unwanted[GetPlayerVehicleID(player)]=true;
                            }
                         }
                         for(new 
328<= 336v++)
                        {
                            if(!
unwanted[v]) SetVehicleToRespawn(v);
                        }
                        for(new 
337<= 345v++)
                        {
                            if(!
unwanted[v]) SetVehicleToRespawn(v);
                        }
                        
GetPlayerName(playeridsendernamesizeof(sendername));
                        
format(stringsizeof(string), "Toate vehicule de la jobul 'Transport Lapte' sau respawnat de %s!"sendername);
                        
BroadCast(COLOR_WHITE,string);
                        }
                        return 
1;
                    } 
Reply


Messages In This Thread
/rtt - by Akcent_Voltaj - 05.03.2013, 11:26
Re: /rtt - by Akcent_Voltaj - 05.03.2013, 12:00
Re: /rtt - by MehranGta - 05.03.2013, 12:04
Re: /rtt - by Akcent_Voltaj - 05.03.2013, 12:09
Re: /rtt - by mamorunl - 05.03.2013, 13:00
Re: /rtt - by Akcent_Voltaj - 05.03.2013, 15:23

Forum Jump:


Users browsing this thread: 1 Guest(s)