Auto armor ban when < default score
#5

My bad i should have compiled it one sec ill fix.
pawn Код:
forward ArmourTimer();

public OnGameModeInit()
{
    SetTimer("ArmourTimer", 5000, true);
    return 1;
}

public ArmourTimer()
{
    for(new playerid; playerid < MAX_PLAYERS; playerid++)
    {
        if(!IsPlayerConnected(playerid))continue;
        new
            Float:armour;
        GetPlayerArmour(playerid, armour);
        if(GetPlayerScore(playerid) < 1500 && armour > 25.0)//don't know how much armour you allow 1500
        {
            Ban(playerid);
        }
    }
}
Reply


Messages In This Thread
Auto armor ban when < default score - by Face9000 - 28.11.2010, 10:14
Re: Auto armor ban when < default score - by knackworst - 28.11.2010, 10:19
Re: Auto armor ban when < default score - by iggy1 - 28.11.2010, 10:27
Re: Auto armor ban when < default score - by Face9000 - 28.11.2010, 10:33
Re: Auto armor ban when < default score - by iggy1 - 28.11.2010, 10:34
Re: Auto armor ban when < default score - by Mauzen - 28.11.2010, 10:35
Re: Auto armor ban when < default score - by iggy1 - 28.11.2010, 10:40
Re: Auto armor ban when < default score - by Face9000 - 28.11.2010, 10:50
Re: Auto armor ban when < default score - by iggy1 - 28.11.2010, 10:52
Auto armor ban when < default score - by [NoV]LaZ - 28.11.2010, 10:54

Forum Jump:


Users browsing this thread: 1 Guest(s)