17.12.2011, 22:54
pawn Код:
forward UpdateBans(playerid);
public UpdateBans(playerid)
{
if(strcmp(UserInfo[playerid][AccountLocked], "No", false) == 0)
{
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;
}
Код:
AccountLocked = No