respawn 1 vehicle
#8

Quote:
Originally Posted by Stu1
Посмотреть сообщение
Thats the bit i had a problem with! I can only get a vehicle id that a player is using and i Dont need that
You want something like this?

PHP код:
if(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 <= 699car++)
            {
                if(!
unwanted[car]) SetVehicleToRespawn(car);
            }
            
format(stringsizeof(string), "AdmWarning: %s(%d) has respawned all the cars!"sendername,playerid);
            
ABroadCast(COLOR_LIGHTRED,string1);
        }
        return 
1;
    } 
Reply


Messages In This Thread
respawn 1 vehicle - by Stu1 - 24.10.2012, 22:08
Re: respawn 1 vehicle - by PaulDinam - 24.10.2012, 22:14
Re: respawn 1 vehicle - by ThePhenix - 24.10.2012, 22:16
Re: respawn 1 vehicle - by KevinPRINCE - 24.10.2012, 22:27
Re: respawn 1 vehicle - by Stu1 - 24.10.2012, 22:27
Re: respawn 1 vehicle - by KevinPRINCE - 24.10.2012, 22:29
Re: respawn 1 vehicle - by Stu1 - 24.10.2012, 22:31
Re: respawn 1 vehicle - by KevinPRINCE - 24.10.2012, 22:34
Re: respawn 1 vehicle - by Stu1 - 24.10.2012, 22:37
Re: respawn 1 vehicle - by KevinPRINCE - 24.10.2012, 22:44

Forum Jump:


Users browsing this thread: 4 Guest(s)