18.12.2011, 00:08
Still not working. I want it so if AccountLocked = "No" then it will allow the login and let them continue playing, however, this is not working..
The timer is called OnGameModeInit if that piece of information is needed..
pawn Код:
forward UpdateBans(playerid);
public UpdateBans(playerid)
{
if(!strcmp(UserInfo[playerid][AccountLocked], "No", false))
{
if(LoggedIn[playerid] == 1) {
new string[128];
SendClientMessage(playerid, COLOR_ERROR, "This account is locked!");
format(string, sizeof(string), "< Reason: %s", UserInfo[playerid][AccountLocked]);
SendClientMessage(playerid, COLOR_ERROR, string);
Kick(playerid);
}
}
return 1;
}