Need help changing this command!
#1

Quote:

CMD:ipcheck(playerid, params[])
{
MOD_CHECK;
{
new string[128], giveplayerid;
if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOUR_RED, "USAGE: /ipcheck [playerid]");

if(giveplayerid == INVALID_PLAYER_ID) return 1;
if(IsPlayerConnected(giveplayerid))
{
new playerip[32];
GetPlayerIp(giveplayerid, playerip, sizeof(playerip));
format(string, sizeof(string), "(ID: %d) - (Name: %s) - (IP: %s)", giveplayerid, ReturnName(giveplayerid), playerip);
SendClientMessage(playerid, COLOUR_RED, string);
}
else SendClientMessage(playerid, COLOUR_RED, "Invalid player specified.");
}
return 1;
}

I need the command to check in accounts/{name}.ini but it can only check connected names. I need to get IP's for offline players also, hence accounts/name.ini
Im really having problems doing that Can someone please help?
Thank you!
Reply


Messages In This Thread
Need help changing this command! - by SiggaSvana - 11.03.2013, 12:57
Re: Need help changing this command! - by HDFord - 11.03.2013, 13:23
Re: Need help changing this command! - by SiggaSvana - 11.03.2013, 13:44
Re: Need help changing this command! - by Denying - 11.03.2013, 14:23
Re: Need help changing this command! - by SiggaSvana - 11.03.2013, 22:06
Re: Need help changing this command! - by Ananisiki - 11.03.2013, 22:15
Re: Need help changing this command! - by SiggaSvana - 11.03.2013, 22:18
Re: Need help changing this command! - by SiggaSvana - 12.03.2013, 17:19
Re: Need help changing this command! - by SiggaSvana - 13.03.2013, 06:19
Re: Need help changing this command! - by SiggaSvana - 14.03.2013, 17:11

Forum Jump:


Users browsing this thread: 1 Guest(s)