#1

Hi All,
i want a Cmd named (/lookup)
it's It shows Ip ,Service ,provider ,Coutry Stats
Any One know it please i need it .
Reply
#2

To get the Ip: GetPlayerIp
for the other functions..you have to use a Plugin like GeoLocation
Reply
#3

ready hadve include Gealication but i don't Know how to make like this Cmd :/
Reply
#4

Here is a simple cmd to look your ip(with zcmd)
PHP код:
CMD:whatismyip(playerid,params[])
{
    new 
ip[16];
    new 
string[128];
    
format(string,sizeof(string),"{FF00FF}Your ip is: {00FF00}%s",GetPlayerIp(playerid,ip,sizeof(ip)));
    
SendClientMessage(playerid,-1,string);
    return 
1;

here is a cmd for rcon admins to check others ip(with zcmd and sscanf)
PHP код:
CMD:getip(playerid,params[])
{
    new 
playerip[16],msg[128],targetid;
    if(!
IsPlayerAdmin(playerid)) return 0//remove this and every one can use the command and see others ips'
    
if(sscanf(params,"u"targetid)) return SendClientMessage(playerid,0xFFFFFFF,"[SYNTAX ERROR]: Usage /getip [id]"); //Check for invaild params
    
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid0xFFFFFFF,"That player is not connected to the server!"); //check if the target id is connected
    
format(msg,sizeof(msg),"{FF00FF}ID:%i's ip is:{00FF00} %s",targetid,GetPlayerIp(targetid,playerip,sizeof(playerip)));
    
SendClientMessage(playerid,-1,msg);
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)