07.01.2015, 17:00
pawn Код:
CMD:aka(playerid, params[])
{
new name[MAX_PLAYER_NAME], IP[20], string[50], ID;
if(sscanf(params, "u", ID)) return SendClientMessage(playerid, -1, "/Aka [ID]");
if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, -1, "That player isn't connected.");
GetPlayerName(ID, name, sizeof(name));
GetPlayerIp(ID, IP, sizeof(IP));
format(string, sizeof(string), "%s [%d] IP it's %s.", name, ID, IP);
SendClientMessage(playerid, -1, string);
return 1;
}
EDIT: wrong code. sorry, edited.