auto repair fs help....
#5

Quote:
Originally Posted by Calg00ne
Посмотреть сообщение
pawn Код:
public AutoR() {
    new
        Float: fHealth;
       
    for(new playerid=0; playerid<MAX_PLAYERS; playerid++) {
        if(IsPlayerConnected(playerid)) {
            if(IsPlayerInRangeOfPoint(playerid, 5, 563.4977, 2079.7036, 50.0636)) {
                if(IsPlayerInAnyVehicle(playerid)) {
                    GetVehicleHealth(GetPlayerVehicleID(playerid), fHealth);
                    if(fHealth < 300) {
                        SetVehicleHealth(GetPlayerVehicleID(playerid), 1000);
                        GameTextForPlayer(playerid, "Vehicle Repaired!",2000,5);
                    }
                }
            }
        }
    }
    return 1;
}
Untested.
thanx but i want auto repair for all players in only in area if(IsPlayerInRangeOfPoint(playerid, 5, 563.4977, 2079.7036, 50.0636)) but i want it for only admin in full map anywhere....
Reply


Messages In This Thread
auto repair fs help.... - by deviljingoku - 09.03.2011, 17:28
Re: auto repair fs help.... - by OKStyle - 09.03.2011, 17:46
Re: auto repair fs help.... - by deviljingoku - 09.03.2011, 18:07
Re: auto repair fs help.... - by Calgon - 09.03.2011, 18:12
Re: auto repair fs help.... - by deviljingoku - 09.03.2011, 18:45
Re: auto repair fs help.... - by OKStyle - 10.03.2011, 02:20
Re: auto repair fs help.... - by deviljingoku - 19.03.2011, 20:43

Forum Jump:


Users browsing this thread: 1 Guest(s)