CMD ip!
#1

hello im trying to make a cmd for get the player ip but didnt work!

Код:
CMD:ip(playerid,params[])
{
  new targetid;
  if(sscanf(params,"u", targetid)) return SCM(playerid, RED, "Getting ip of a player:/ip <playerid>");
  if(!IsPlayerConnected(targetid)) return SCM(playerid, RED, "Player is not connected");
  if(!IsPlayerAdmin(playerid)) return SCM(playerid, RED, "UnKnown Command! Type /help");

  new ip[25], ip_msg[30];
  GetPlayerIp(playerid, ip,sizeof (ip));
  format(ip_msg,sizeof (ip_msg),"(%i)",ip);
  ShowPlayerDialog(playerid, DIALOG_MSG, DIALOG_STYLE_MSGBOX, "IP", ip_msg, "Close", "");
  return 1;
}
Reply


Messages In This Thread
CMD ip! - by Another1 - 18.10.2013, 05:13
Re: CMD ip! - by [FSaF]Jarno - 18.10.2013, 05:16
Re: CMD ip! - by Konstantinos - 18.10.2013, 09:23

Forum Jump:


Users browsing this thread: 1 Guest(s)