i want cmd:get ip help me - 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: i want cmd:get ip help me (
/showthread.php?tid=521263)
i want cmd:get ip help me -
psp3 - 22.06.2014
hi, please give me cmd:getip for get ip players with admin level 5
Re: i want cmd:get ip help me -
doreto - 22.06.2014
http://forum.sa-mp.com/announcement.php?f=13
Re: i want cmd:get ip help me -
psp3 - 22.06.2014
just give me cmd i dont want link and.....
Re : i want cmd:get ip help me -
Chipardeur - 22.06.2014
That work I think.
pawn Код:
CMD:getip(playerid, params[])
{
new target, string[144];
if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, -1, "You're not authorized to use this command.");
if(sscanf(params, "u", target)) return SendClientMessage(playerid, -1, "USAGE: /getip <Part of name/ID>");
if(!IsPlayerConnected(target)) return SendClientMessage(playerid, -1, "Incorrect ID !");
new pip[16], pname[25];
GetPlayerIp(target, pip, sizeof(pip));
GetPlayerName(target, pname, sizeof(pname));
format(string, sizeof(string), "IP of %s: %s", pname, pip);
SendClientMessage(playerid, -1, string);
return 1;
}
Re: i want cmd:get ip help me -
psp3 - 22.06.2014
(4350) : error 028: invalid subscript (not an array or too m
(4350) : warning 215: expression has no effect
(4350) : error 001: expected token: ";", but found "]"
(4350) : error 029: invalid expression, assumed zero
(4350) : fatal error 107: too many error messages on one line
Re : i want cmd:get ip help me -
Chipardeur - 22.06.2014
Line ?
Re: i want cmd:get ip help me -
psp3 - 22.06.2014
this LIne if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, -1, "You're not authorized to use this command.");
Re : i want cmd:get ip help me -
Clad - 22.06.2014
Why don't use create your own command starting from Wiki ? I don't think copy and past will help you
By the way the link he gave you is, Link of forum rules.
Re: i want cmd:get ip help me -
psp3 - 22.06.2014
i fixed him Thanks Brother