Automatic Car respawn every X time in rp server
#2

PHP код:
    SetTimer("Rac",180000,false)
    {
            new 
bool:unwanted[CAR_AMOUNT];
            for(new 
player=0player<MAX_PLAYERSplayer++)
             {
                if(
IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
             }
            for(new 
car 1car <= 268car++)
            {
                if(!
unwanted[car]) SetVehicleToRespawn(car);
            }
            
GetPlayerName(playeridsendernamesizeof(sendername));
            
format(stringsizeof(string), "SERVER: All unused cars Automaticly respawned by The Server.", );
            
BroadCast(COLOR_WHITE,string);
        }
        return 
1
try this im probaly thing that will not work i just started to scripting and i just wrote it from my minde xD hope it will help you or give you an idea! Good Luck!.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)