19.01.2014, 14:39
Alright I'm going to play "guess the code"
What did I do to make this happen?
I added member == 10 and leader ==10 which you need.
pawn Код:
IsACop(playerid)
{
if(IsPlayerConnected(playerid))
{
new leader = PlayerInfo[playerid][pLeader];
new member = PlayerInfo[playerid][pFaction];
if(member==1 || member==2 || member == 10)
{
return 1;
}
else if(leader==1 || leader==2 || leader == 10)
{
return 1;
}
}
return 0;
}
I added member == 10 and leader ==10 which you need.