#1

Hello, I have a problem. I did a job farmer, which is attached to a tractor trailer, the problem is that the / rac trailer is respawn, you can make this a restriction no longer respawn if used?

/ rac = respawn all cars.

pawn Код:
CMD:rac(playerid, params[])
{
    if(playerLogged[playerid] == 0) return 0; if(PlayerInfo[playerid][pAdmin] < 3) return NotAdmin(playerid);
    new bool:unwanted[CAR_AMOUNT];
    for(new player=0; player<MAX_PLAYERS; player++) {
        if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)] = true; } }
    for(new car = 1; car <= 420; car++) { if(!unwanted[car]) SetVehicleToRespawn(car); }
    return 1;
}
Reply


Messages In This Thread
Help - by Edw - 30.03.2015, 05:51
Re: Help - by Scrillex - 30.03.2015, 07:26
Re: Help - by Edw - 30.03.2015, 19:08

Forum Jump:


Users browsing this thread: 2 Guest(s)