i want to use this command only for admin....
#5

pawn Код:
public AutoR()
{
    for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
    {
        if(IsPlayerConnected(playerid))
        {
            new Float:health, cid;
            if (IsPlayerInAnyVehicle(playerid))
            {
                if(IsPlayerAdmin(playerid)) return 0;
                cid = GetPlayerVehicleID(playerid);
                GetVehicleHealth(cid, health);
                if (health < 300)
                {
                SetVehicleHealth(cid,1000);
                GameTextForPlayer(playerid, "Vehicul reparat!",2000,5);
                }
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)