how to check players
#6

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
I think iGetty's solution is bang on perfect but I would make it an include like this and probably have a more advanced ban function.

pawn Код:
#include <YSI\y_hooks>

hook OnGameModeInit()
{
    SetTimer("AntiCheatTimer", 5000, true); //add to OnGameModeInit
    return 1;
}

forward AntiCheatTimer();
public AntiCheatTimer()
{
    foreach(new i : Player)
    {
        switch(GetPlayerWeapon(i))
        {
            case 38, 34: { Ban(i); }
        }
    }
    return 1;
}
If your worried about this lagging yourself get a better host.
Thank you for that buddy, 5am here too tired to go into depth lol. Great coding above, most useful one IMO. Great work Pottus.
Reply


Messages In This Thread
how to check players - by ancezas - 04.11.2013, 03:07
Re: how to check players - by iGetty - 04.11.2013, 03:26
Re: how to check players - by ancezas - 04.11.2013, 03:27
Re: how to check players - by DeStunter - 04.11.2013, 03:31
Re: how to check players - by Pottus - 04.11.2013, 03:36
Re: how to check players - by iGetty - 04.11.2013, 03:46
Re: how to check players - by Pottus - 04.11.2013, 03:51
Re: how to check players - by iGetty - 04.11.2013, 04:02

Forum Jump:


Users browsing this thread: 1 Guest(s)