Auto armor ban when < default score
#7

Quote:
Originally Posted by Mauzen
Посмотреть сообщение
Remember that some police vehicles (the swat van?) gives you armour. Maybe you have them in your script, so you would ban players for entering it.
Good point.
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 && GetVehicleModel(GetPlayerVehicleID(playerid)) != 427)//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: 2 Guest(s)