ANTI-CHEAT (GetPlayerVirtualWorld)
#1

Well, I'm making a minigame with miniguns, but the anti-cheat would ban them for having that. I tried to add one thing (with GetPlayerVirtualWorld), but I had errors. The minigame is at virtual world 4 and 15. So, can you help me and allow the minigun on these virtual worlds?

Script of that:

Код:
    #if defined ANTI_MINIGUN
    new weap, ammo;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && PlayerInfo[i][Level] == 0)
        {
            GetPlayerWeaponData(i, 7, weap, ammo);
            if(ammo > 1 && weap == 38) {
                new string[128]; format(string,sizeof(string),"ANTICHEAT: %s has been automatically banned for spawning Minigun with %d ammo", PlayerName2(i), ammo);
                SendClientMessageToAll(red,string);
                Ban(i);
            }
        }
    }
    #endif
Reply


Messages In This Thread
ANTI-CHEAT (GetPlayerVirtualWorld) - by Libra_PL - 18.09.2010, 09:44
Re: ANTI-CHEAT (GetPlayerVirtualWorld) - by FireCat - 18.09.2010, 09:50
Re: ANTI-CHEAT (GetPlayerVirtualWorld) - by Libra_PL - 18.09.2010, 09:53
Re: ANTI-CHEAT (GetPlayerVirtualWorld) - by FireCat - 18.09.2010, 10:02
Re: ANTI-CHEAT (GetPlayerVirtualWorld) - by Dime - 18.09.2010, 10:06
Re: ANTI-CHEAT (GetPlayerVirtualWorld) - by Libra_PL - 18.09.2010, 10:08
Re: ANTI-CHEAT (GetPlayerVirtualWorld) - by Dime - 18.09.2010, 10:11
Re: ANTI-CHEAT (GetPlayerVirtualWorld) - by Libra_PL - 18.09.2010, 10:18
Re: ANTI-CHEAT (GetPlayerVirtualWorld) - by [03]Garsino - 18.09.2010, 10:24
Re: ANTI-CHEAT (GetPlayerVirtualWorld) - by Libra_PL - 18.09.2010, 10:26

Forum Jump:


Users browsing this thread: 2 Guest(s)