Help with some freeroam commands
#4

For the vehicle repair:
pawn Код:
public OnGameModeInit() {
    SetTimer("repair", 500, 1);
    return true;
}
After that;
pawn Код:
forward repair();
public repair() {
    for(new i; i < MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i)) {
            if(IsPlayerInRangeOfPoint(i, rangehere, sumoX here, sumoY here, sumoZ here)) {
                new vehicleid = GetPlayerVehicleID(i);
                RepairVehicle(vehicleid);
            }
        }
    }
    return true;
}
Reply


Messages In This Thread
Help with some freeroam commands - by Gotti_ - 08.02.2011, 16:10
Re: Help with some freeroam commands - by alpha500delta - 08.02.2011, 16:44
Re: Help with some freeroam commands - by nod32 - 08.02.2011, 16:53
Re: Help with some freeroam commands - by Mean - 08.02.2011, 17:20
Re: Help with some freeroam commands - by Gotti_ - 09.02.2011, 09:45
Re: Help with some freeroam commands - by alpha500delta - 09.02.2011, 11:54
Re: Help with some freeroam commands - by Gotti_ - 09.02.2011, 18:41
Re: Help with some freeroam commands - by alpha500delta - 09.02.2011, 19:15

Forum Jump:


Users browsing this thread: 1 Guest(s)