25.07.2011, 21:43
I putted this but it send it spam with that sendclientmessage...
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
if(success == 1) //If the password was incorrect
{
new playername[MAX_PLAYER_NAME];
new string[128];
for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
{
GetPlayerName(i, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "* %s has logged into rcon.", playername);
SendClientMessageToAll(COLOR_ORANGE, string);
}
}
return 1;
}