auto repair fs help....
#2

Try that:

pawn Код:
public AutoR()
{    
    for(new i; i < GetMaxPlayers(); i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerAdmin(i))
            {
                new Float:health, cid;
                if(IsPlayerInAnyVehicle(i))
                {
                    cid = GetPlayerVehicleID(i);
                    GetVehicleHealth(cid, health);
                    if (health < 300)
                    {
                        RepairVehicle(cid);
                        GameTextForPlayer(playerid, "Vehicle Repaired!",2000,5);
                    }
                }
            }
            else
            {
                if(PlayerToPoint(2500, i, 563.4977,2079.7036,50.0636))//Full Lv
                {
                    new Float:health, cid;
                    if(IsPlayerInAnyVehicle(i))
                    {
                        cid = GetPlayerVehicleID(i);
                        GetVehicleHealth(cid, health);
                        if (health < 300)
                        {
                            RepairVehicle(cid);
                            GameTextForPlayer(playerid, "Vehicle Repaired!",2000,5);
                        }
                    }
                }
            }
        }
    }
    return 1;
}
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)