anti hack
#1

pawn Код:
public WeaponCheck()
{
    new string[128];
    for(new i; i<MAX_PLAYERS; i++)
    {
        if (AccountInfo[i][AdminLevel] >= 1 || IsPlayerAdmin(i))
        {
        }
        else
        {
         // my code is here
        }
    }
    return 1;
}
i want that the code only works in virtual world 0
Reply
#2

look at some FS it will help you
Reply
#3

wow i hate it when people dont try i give this a "F"
Reply
#4

Quote:
Originally Posted by whooper
wow i hate it when people dont try i give this a "F"
i give you a "U" if not trying your self
Reply
#5

like this? using GetPlayerVirtualworld?
pawn Код:
public WeaponCheck()
{
    new string[128];
    for(new i; i<MAX_PLAYERS; i++)
    {
        if (AccountInfo[i][AdminLevel] >= 1 || IsPlayerAdmin(i))
        {
        }
        else
        {
                 if (GetPlayerVirtualWorld(i) == 0)
                 {
                     //stuffage here?
                 }
        // my code is here
        }
    }
    return 1;
}
Reply
#6

It is pointless to do this.
pawn Код:
if (AccountInfo[i][AdminLevel] >= 1 || IsPlayerAdmin(i))
        {
        }
        else
        {
         // my code is here
        }
Why not do this?
pawn Код:
if (AccountInfo[i][AdminLevel] < 1 || !IsPlayerAdmin(i))
        {
        //code here
        }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)