Small prob again ;P
#1

Hey,

I need help here again :

pawn Код:
public playerfoundweapon(playerid)
{
    if(CheatMsg == 1)
    if(PlayerInfo[playerid][Level] == 0)
    {
    new sendername[MAX_PLAYER_NAME];
    new string[255];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "Anti Cheat : %s has been banned (Reason : Weapon Cheats )", sendername);
    SendClientMessageToAll(0xFF000096,string);
    }
    SendClientMessage(playerid,0xFF000096,"If you think this was an unfair ban, make a unban appeal at : *******");
    ResetPlayerWeapons(playerid);
    return Ban(playerid);
}
A Anti cheat, but it bans admins too.
As u can see i added if(PlayerInfo[playerid][Level] == 0)
But it still bans admins if they do /giveweapon.. ;s Anyway that it doesn't bans admins?
Reply


Messages In This Thread
Small prob again ;P - by [SU]Balli - 29.11.2010, 21:40
Re: Small prob again ;P - by PowerPC603 - 29.11.2010, 22:09
Re: Small prob again ;P - by [SU]Balli - 30.11.2010, 12:17
Re: Small prob again ;P - by Lutsen - 30.11.2010, 13:21
Re: Small prob again ;P - by [SU]Balli - 30.11.2010, 13:32
Re: Small prob again ;P - by WillyP - 30.11.2010, 13:49
Re: Small prob again ;P - by Nero_3D - 30.11.2010, 13:53
Re: Small prob again ;P - by WillyP - 30.11.2010, 13:57
Re: Small prob again ;P - by Nero_3D - 30.11.2010, 14:08
Re: Small prob again ;P - by WillyP - 30.11.2010, 14:10

Forum Jump:


Users browsing this thread: 1 Guest(s)