ShowPlayerDiALOG
#2

pawn Код:
CMD:pinfo(playerid,params[])
{
    new id;
    if(!IsPlayerAdmin(playerid)) return SCM(playerid, RED, "UnKnown Command! Type /help");
    if(sscanf(params,"u", id)) return SCM(playerid, RED, "Get some info about a player: /pinfo <playerid>");
    if(!IsPlayerConnected(id)) return SCM(playerid, RED, "Player is not connected");

    new b_name[MAX_PLAYER_NAME], p_ip[25], str1[100];

    GetPlayerName(id, b_name,sizeof (b_name));
    GetPlayerIp(id, p_ip,sizeof (p_ip));

    format(str1, sizeof(str1), "Name: %s - IP: %s", b_name, b_ip);

    ShowPlayerDialog(playerid, 12, DIALOG_STYLE_MSGBOX, "Info",str1,"Ok","");
    return 1;
}
Reply


Messages In This Thread
ShowPlayerDiALOG - by Another1 - 23.10.2013, 06:01
Re: ShowPlayerDiALOG - by -Prodigy- - 23.10.2013, 06:21
Re: ShowPlayerDiALOG - by Another1 - 23.10.2013, 06:58

Forum Jump:


Users browsing this thread: 1 Guest(s)