[Help]aka
#9

Quote:
Originally Posted by HY
Посмотреть сообщение
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;
}
Wasn't so hard guys.. It's only a function.

EDIT: wrong code. sorry, edited.
The theory is correct in your code, but i assumed, he wanted to type /aka id, and then all users registered will be displayed. Your code will only display usernames ip address.
Reply


Messages In This Thread
[Help]aka - by astanalol - 07.01.2015, 15:08
Re: [Help]aka - by astanalol - 07.01.2015, 16:01
Re: [Help]aka - by mahdi499 - 07.01.2015, 16:18
Re: [Help]aka - by astanalol - 07.01.2015, 16:20
Re: [Help]aka - by Glossy42O - 07.01.2015, 16:22
Re: [Help]aka - by astanalol - 07.01.2015, 16:31
Re: [Help]aka - by CrazyChoco - 07.01.2015, 16:34
Re: [Help]aka - by HY - 07.01.2015, 17:00
Re: [Help]aka - by CrazyChoco - 07.01.2015, 18:53
Re: [Help]aka - by arlindi - 11.01.2015, 20:15

Forum Jump:


Users browsing this thread: 2 Guest(s)