Rank of player isn't showing in /fchat?
#1

Yeah the command works but it isn't showing my rank when I use it.

pawn Код:
command(fchat, playerid, params[])
{
    if(PlayerInfo[playerid][FactionApartof] >= 1)
    {
        new message[128], playername[50], string[128];
        if(sscanf(params, "s[128]", message)) return SendClientMessage(playerid, COLOUR_WHITE, "HINT: /(f)chat [Message]" );
        {
            GetPlayerName(playerid, playername, 50);
            format(string, sizeof(string),"[FACTION CHAT]%s %s: %s", PlayerInfo[playerid][FactionRank], playername, message);
            SendFactionMessage(playerid, COLOUR_LRED, string);
        }
    }
    else
    {
        SendClientMessage(playerid, COLOUR_WHITE, "HINT: You are not in a faction." );
    }
    return 1;
}
Reply


Messages In This Thread
Rank of player isn't showing in /fchat? - by cloudysky - 12.06.2012, 20:28
Re: Rank of player isn't showing in /fchat? - by Kindred - 12.06.2012, 21:02

Forum Jump:


Users browsing this thread: 1 Guest(s)