Need help changing this command!
#6

Use this instead:

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;
}
This is straight from my admin fs.
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)