i want cmd:get ip help me
#1

hi, please give me cmd:getip for get ip players with admin level 5
Reply
#2

http://forum.sa-mp.com/announcement.php?f=13
Reply
#3

just give me cmd i dont want link and.....
Reply
#4

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;
}
Reply
#5

(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
Reply
#6

Line ?
Reply
#7

this LIne if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, -1, "You're not authorized to use this command.");
Reply
#8

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.
Reply
#9

i fixed him Thanks Brother
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)