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(playerid)) return SCM(playerid, RED, "Player is not connected");
new b_name[MAX_PLAYER_NAME], p_ip[25], str1[1000];
GetPlayerName(playerid, b_name,sizeof (b_name));
GetPlayerIp(playerid, p_ip,sizeof (p_ip));
format(str1,sizeof (str1),"Player name: {27FF0A}%s\nPlayer ip: %s\nPlayer Money: $%i\nPlayer ping: %i",b_name, p_ip, GetPlayerMoney(playerid), GetPlayerPing(playerid));
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_MSGBOX, "{27FF0A}Info",str1,"Ok","");
return 1;
}
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(playerid)) return SCM(playerid, RED, "Player is not connected");
new b_name[MAX_PLAYER_NAME], p_ip[25], str1[1000];
GetPlayerName(playerid, b_name,sizeof (b_name));
GetPlayerIp(playerid, p_ip,sizeof (p_ip));
format(str1,sizeof (str1),"{FFFFFF}Player name: {27FF0A}%s\n{FFFFFF}Player ip: {27FF0A}%s\n{FFFFFF}Player Money: {27FF0A}$%i\n{FFFFFF}Player ping: {27FF0A}%i",b_name, p_ip, GetPlayerMoney(playerid), GetPlayerPing(playerid));
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_MSGBOX, "{27FF0A}Info",str1,"Ok","");
return 1;
}
{FFFFFF} Is white color |
Try rhis :
PHP код:
If help please give me the REP+ |