12.09.2012, 10:10
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
if(!IsPlayerAdmin(playerid) || AdminVariable[playerid] < 1) return 0;
new IPSTRING[20], PlayersName[MAX_PLAYER_NAME];
GetPlayerName(clickedplayerid, PlayersName, MAX_PLAYER_NAME);
GetPlayerIp(clickedplayerid, IPSTRING, sizeof(IPSTRING));
new string[50];
format(string,sizeof(string),"%s | IP: %s",PlayersName, IPSTRING);
SendClientMessage(playerid, 0xFFFF00FF, string);
return 1;
}