26.07.2011, 12:51
Can u show me an example please?
I have this:
I have this:
pawn Код:
if(success == 1) //If the password was correct
{
new pip[16];
for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
{
if (!IsPlayerConnected(i)) continue; // Skip if the player isnt connected
GetPlayerIp(i, pip, 16);
if (strcmp(pip, ip)) continue; // Skip if the IP of player i is not the rcon IP
GetPlayerName(i, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "* %s has logged in rcon.", playername);
SendClientMessageToAll(COLOR_ORANGE, string);
}
}
return 1;
}