02.11.2015, 13:37
There no problem. Because those are 100% okey. As you say
I am using IsACop in many other cmds. There no problem at all
PHP код:
IsACop(playerid)
{
if(IsPlayerConnected(playerid))
{
new leader = PlayerInfo[playerid][pLeader];
new member = PlayerInfo[playerid][pMember];
if(member==1 || member==2 || member== 3 || member==6 || member==7 || member==11 || member==13 || member==18 || member==19)
{
return 1;
}
else if(leader==1 || leader==2 || leader == 3 || leader==6 || leader==7 || leader==11 || leader==13 || leader==18 || leader==19)
{
return 1;
}
}
return 0;
}