11.06.2013, 16:31
for the wrong password attempt:
you got
although you should use
If you use "Kick" before "GetPlayerName", the server won't be able to get the player's name, has he already is disconnected..
you got
Код:
Kick(i); new pname[MAX_PLAYER_NAME], string[70 + MAX_PLAYER_NAME]; GetPlayerName(i, pname, sizeof(pname)); format(string, sizeof(string), "{FF0000}>>KICK: {FFCC00}%s have been {FF6600}Kicked {FFCC00}from the server, {FF6600}REASON: {FFCC00}Failed Rcon Login.", pname); SendClientMessageToAll(0xAAAAAAAA, string);
Код:
new pname[MAX_PLAYER_NAME], string[70 + MAX_PLAYER_NAME]; GetPlayerName(i, pname, sizeof(pname)); format(string, sizeof(string), "{FF0000}>>KICK: {FFCC00}%s have been {FF6600}Kicked {FFCC00}from the server, {FF6600}REASON: {FFCC00}Failed Rcon Login.", pname); SendClientMessageToAll(0xAAAAAAAA, string); Kick(i);