Determine player's armour?
#2

You could set a timer on GameModeInit every 5 seconds to check armour.

pawn Код:
public OnGameModeInit()
{
    SetTimer("ArmourCheck",5000,true);
    return 1;
}
forward ArmourCheck(playerid);
public ArmourCheck(playerid)
{
    for(new i=0; i <MAX_PLAYERS; i++) // loops through all the players
    {
        new Float:armour;
        GetPlayerArmour(i,armour); // Gets everyone's armour
        if(armour > 100) // if anyone's armour is bigger than 100, then
        {
            Ban(i); // It bans them
        }
    }
    return 1;
}
Reply


Messages In This Thread
Determine player's armour? - by Supercop - 02.03.2012, 12:27
Re: Determine player's armour? - by Walsh - 02.03.2012, 12:36
Re: Determine player's armour? - by Rob_Maate - 02.03.2012, 13:03
Re: Determine player's armour? - by Supercop - 07.03.2012, 08:43

Forum Jump:


Users browsing this thread: 1 Guest(s)