scripting help(CMD: IP)
#2

pawn Код:
CMD:getip(playerid,params[])
{
    if(IsPlayerAdmin(playerid))
    {
                new Target,pstring[128];
                if(sscanf(params, "ui", Target)) return SendClientMessage(playerid,-1,"Usage: /ip [playerid]");
                if(Target == INVALID_PLAYER_ID) return SendClientMessage(playerid,-1,"Invaild ID");
                new PIP[30];
                GetPlayerIp(Target,PIP,sizeof(PIP));
                new pstring[256];
                new tname[MAX_PLAYER_NAME];
                GetPlayerName(Target,tname,sizeof(tname));
                format(pstring,sizeof(pstring),"%sґs IP:{FFFFFF} %s",tname,PIP);
                SendClientMessage(playerid,-1,pstring);
           
    }
    else SendClientMessage(playerid,COLOR_RED,"You are not authorized to use this command!");
    return 1;
}
Are you talking something like this?
Reply


Messages In This Thread
scripting help(CMD: IP) - by Oshery - 22.10.2016, 20:34
Re: scripting help(CMD: IP) - by 1fret - 22.10.2016, 20:39
Re: scripting help(CMD: IP) - by Oshery - 22.10.2016, 22:07
Re: scripting help(CMD: IP) - by 1fret - 22.10.2016, 22:11
Re: scripting help(CMD: IP) - by ISmokezU - 23.10.2016, 00:45
Re: scripting help(CMD: IP) - by Oshery - 23.10.2016, 01:19
Re: scripting help(CMD: IP) - by RedMF - 23.10.2016, 03:06
Re: scripting help(CMD: IP) - by Oshery - 23.10.2016, 10:31
Re: scripting help(CMD: IP) - by ThatFag - 23.10.2016, 10:51
Re: scripting help(CMD: IP) - by Oshery - 23.10.2016, 15:20

Forum Jump:


Users browsing this thread: 2 Guest(s)