25.02.2013, 13:33
i need some cmd which can find if the player has two accounts. by checking the ip.
with sscanf+zcmd pls
with sscanf+zcmd pls
CMD:getip(playerid, params[])
{
new igracevip[64];
new string[64];
new Igracname[MAX_PLAYER_NAME];
new PID;
GetPlayerName(playerid, Igracname, MAX_PLAYER_NAME);
GetPlayerIp(playerid,igracevip,sizeof(igracevip));
if(PlayerInfo[playerid][pAdmin] < 3) return SCM(playerid, -1, "you arent admin!");
if(sscanf(params, "u", PID)) return SCM(playerid, -1, "usage: getip [ID/name]");
if(!IsPlayerConnected(PID)) return SCM(playerid, -1, "he is offline!");
format(string,sizeof(string), "player: %s || IP: %s ", Igracname, igracevip);
SendClientMessage(playerid, RED, string);
return 1;
}