Timer
#2

Quote:
Originally Posted by JohnFTW
Посмотреть сообщение
pawn Код:
new accheckwp = GetPlayerWeapon(playerid);
    if(accheckwp == 35 || accheckwp == 36 || accheckwp == 37 || accheckwp == 38 || accheckwp == 44 || accheckwp == 45)
    {
        format(string, sizeof(string), "ANTICHEAT: [%d]%s has a FORBIDDEN GUN!", playerid, sendername);
        ABroadCast(COLOR_DARKRED, string, 7);
        return 1;
    }
pawn Код:
//OnPlayerWeaponShot
    if(weaponid >= 1)
    {
        switch(weaponid)
        {
            case 1..3:
            {
            SetTimerEx("BanPublic", 1000, false, "d", playerid);
            format(string, sizeof(string), "%s [%d] has been banned from weapon hacking.",name1,playerid);
            SendClientMessageToAll(0xFF0000FF, string);
            }
            case 5..15:
            {
            SetTimerEx("BanPublic", 1000, false, "d", playerid);
            format(string, sizeof(string), "%s [%d] has been banned from weapon hacking.",name1,playerid);
            SendClientMessageToAll(0xFF0000FF, string);
            }
Make anti-weapon cheat based on my code, because it's simple.
Reply


Messages In This Thread
Timer - by JohnFTW - 07.05.2014, 17:07
Re: Timer - by TheSimpleGuy - 07.05.2014, 17:17
Re: Timer - by Calgon - 08.05.2014, 02:08
Re: Timer - by JohnFTW - 08.05.2014, 16:40

Forum Jump:


Users browsing this thread: 1 Guest(s)