26.12.2017, 07:15
Quote:
Kick will kick them before they get the message.
Put it on a timer or something so it gets sent, then kicks them a second later. |
where can i found?
just found this
Код:
forward AutoKick(playerid); public AutoKick(playerid) { if( IsPlayerConnected(playerid) && ServerInfo[Locked] == 1 && PlayerInfo[playerid][AllowedIn] == false) { new string[128]; SendClientMessage(playerid,grey,"You have been automatically kicked. Reason: Server Locked"); format(string,sizeof(string),"%s ID:%d has been automatically kicked. Reason: Server Locked",PlayerName2(playerid),playerid); SaveToFile("KickLog",string); Kick(playerid); SendClientMessageToAll(grey, string); print(string); } return 1; }