SA-MP Forums Archive
Help with this - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with this (/showthread.php?tid=122891)



Help with this - pierhs - 23.01.2010

I use File Functions to save the stats of the player.
When I /ban a player to lock his account his pBanned returns to 1 so when he try to login with a different IP he will get kicked
EXAMPLE:
Код:
OnPlayerLogin
{
  if(PlayerInfo[playerid][pBanned] == 1)
  { 
    Kick(playerid);
    return 1;
  }
}
But i want an /unban command that it turns his pBanned back to 0 so he can play again