29.03.2016, 22:07
Quote:
Can you show us the IsACop function? It's probably something to do with that
|
Код:
stock IsACop(playerid) { if(IsPlayerConnected(playerid)) { /*new leader = PlayerInfo[playerid][pLeader]; new member = PlayerInfo[playerid][pMember]; if(member == 1 || member == 2 || member == 3 || member == 7) return 1; else if(leader == 1 || leader == 2 || leader == 3 || leader == 7) return 1;*/ new type = FactionInfo[PlayerInfo[playerid][pMember]][FactionType]; if(type == 1) return 1; //else if(type == 2) return 1; //else if(type == 5) return 1; } return 0; }