#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
#2

anyone?please help..please help wow from 1000 people from this forum none of them that can help..
Reply
#3

what /rtt you want to do?
Reply
#4

i said up..it respawns truck and trailer if im in them..i dont want that!
Reply
#5

pawn Код:
for(new v = 328; v <= 336; v++)
                        {
                            if(!unwanted[v]) SetVehicleToRespawn(v);
                        }
                        for(new v = 337; v <= 345; v++)
                        {
                            if(!unwanted[v]) SetVehicleToRespawn(v);
                        }
Dafuq does this do? What is the use in this? Keep it in one and add a AND statement to the if(!unwanted..) I believe this one was already covered in another thread.
Reply
#6

nope..it was /rac i put it in one
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)