IsPlayerInFaction(playerid) { return FactionInfo[playerid][factionmember]; } Now you can use that like if(IsPlayerInFaction(playerid) == 1)...