Assistance with my system
#6

Check if the player's is admin inside the if statement about faction >= 0

pawn Код:
if (pData[playerid][pFaction] >= 0)
{
    format(str, sizeof(str), "%sList %s's Members\n", str, fData[pData[playerid][pFaction]][fName]);
    if (pData[playerid][pFactionRank] >= fData[pData[playerid][pFaction]][fManageRank])
    {
        format(str, sizeof(str), "%sManage %s's Members\n", str, fData[pData[playerid][pFaction]][fName]);
    }

    if (pData[playerid][pAdmin] > 1)
    {
        format(str, sizeof(str), "%sCreate Faction\nEdit Faction", str, fData[pData[playerid][pFaction]][fName]);
    }
}
Reply


Messages In This Thread
Assistance with my system - by JaydenJason - 05.08.2016, 13:09
Re: Assistance with my system - by Stinged - 05.08.2016, 13:20
Re: Assistance with my system - by JaydenJason - 05.08.2016, 13:28
Re: Assistance with my system - by kanerandyfirst - 05.08.2016, 13:35
Re: Assistance with my system - by Stinged - 05.08.2016, 13:37
Re: Assistance with my system - by Konstantinos - 05.08.2016, 13:37
Re: Assistance with my system - by JaydenJason - 05.08.2016, 13:54
Re: Assistance with my system - by Stinged - 05.08.2016, 14:03
Re: Assistance with my system - by JaydenJason - 05.08.2016, 14:06
Re: Assistance with my system - by Stinged - 05.08.2016, 14:09

Forum Jump:


Users browsing this thread: 1 Guest(s)