21.08.2010, 04:19
You can't return more then 1 value.
Also, I hope you have a way to link 'playerid' with their IP or name, because I assume once they rejoin from being kicked theyir WHack will be 0.
pawn Код:
if(PlayerInfo[playerid][WHack] == 1)
{
print("Admins Aware");
PlayerInfo[playerid][WHack] = 2;
return 1;
}
if(PlayerInfo[playerid][WHack] == 2)
{
Kick(playerid);
SendClientMessage(playerid, red, "You been kicked for Weapon hacks, this means you had warning next is ban");
PlayerInfo[playerid][WHack] = 3;
return 1;
}
if(PlayerInfo[playerid][WHack] == 3)
{
Ban(playerid);
SendClientMessage(playerid, red, "You been banned for Weapn Hacks, This means u been warned and kicked.");
return 1;
}