Posts: 3,351
Threads: 780
Joined: Jan 2010
Quote:
Originally Posted by zDivine
pawn Код:
else if(fexist(UserPath(playerid)))
Should just be:
pawn Код:
if(fexist(UserPath(playerid)))
|
Also, move this:
pawn Код:
if(PlayerInfo[playerid][pBanned] == 1)
{
return Ban(playerid);
}
After they login. Since you are banning a player after reading his account file. How you can know if is banned if you ban him first?
Posts: 568
Threads: 28
Joined: Dec 2012
Reputation:
0
Looks fine but instead of asking whether it works or not, why don't you just try it directly?
Posts: 368
Threads: 24
Joined: Feb 2012
If you want to ban the player that has their account(?) banned, you must load their userdata before that.