11.03.2013, 22:15
Use this instead:
This is straight from my admin fs.
pawn Код:
CMD:aka(playerid, params[])
{
if(!IsCnRAdmin(playerid)) return UnknownCMD(playerid);
new pID;
if(sscanf(params, "u", pID)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /aka (nick/id) - Enter A Valid Nick / ID");
if(!IsPlayerConnected(pID)) return SendClientMessage(playerid, COLOR_RED, "This Player Is Not Connected.");
if(pID == cellmin) return SendClientMessage(playerid, COLOR_RED, "Multiple Players Found. Please Be More Specific.");
new file[128], string[200], ip[128];
format(file, sizeof file, "DM/Config/aka.txt");
GetPlayerIp(pID, ip, sizeof ip);
if(pID == playerid) format(string, sizeof string, "Your Nicknames [%s]: %s", ip, dini_Get(file, ip));
else format(string, sizeof string, "%s (%d)'s Nicknames [%s]: %s", PlayerName(pID), pID, ip, dini_Get(file, ip));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
return 1;
}