Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help (
/showthread.php?tid=590577)
Help -
anassmaroc - 01.10.2015
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 .
AW: Help -
Kaliber - 01.10.2015
To get the Ip: GetPlayerIp
for the other functions..you have to use a Plugin like GeoLocation
Re : Help -
anassmaroc - 01.10.2015
ready hadve include Gealication but i don't Know how to make like this Cmd :/
Re: Help -
xTURBOx - 01.10.2015
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(playerid, 0xFFFFFFF,"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;
}