30.03.2015, 05:51
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.
/ 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;
}