18.10.2013, 05:13
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; }