Big problem!
#5

CMD:ipcheck(playerid, params[])
{
new playa;
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(!sscanf(params, "u", playa))
{
if(IsPlayerConnected(playa))
{
new ipcheckip[16], link[256];
GetPlayerIp(playa, ipcheckip, sizeof(ipcheckip));
format(ipchecking[playerid], 24, "%s", PlayerName(playa));
format(link, sizeof(link), "api.ipinfodb.com/v3/ip-city/?key=6e96000f89ab82ae854f4bd2a3189d84a4eed7c77df09 1972df7a146d8efcf1b&ip=%s", ipcheckip);
HTTP(playerid, HTTP_GET, link, "", "IPCheckResponse");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "That player is not connected.");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ipcheck [playerid/PartOfName]");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
}
return 1;
}
Reply


Messages In This Thread
Big problem! - by Seaf - 28.02.2015, 15:00
Re: Big problem! - by hEy72 - 28.02.2015, 15:14
Re: Big problem! - by Alex Magaсa - 28.02.2015, 15:36
Re: Big problem! - by Ahammad - 28.02.2015, 15:59
Re: Big problem! - by Seaf - 28.02.2015, 21:25
Re: Big problem! - by Abagail - 28.02.2015, 22:35

Forum Jump:


Users browsing this thread: 1 Guest(s)