Posts: 149
Threads: 38
Joined: Jun 2013
Reputation:
0
someone please help me with this all i am trying is that if the zone is captured by the team members of that team can pick up the pickups
Posts: 1,767
Threads: 124
Joined: Mar 2010
Quote:
Originally Posted by BlackBomb
show me ur line 816
|
Wtf?
This line (816):
pawn Код:
if((tCP[SUPPLYDEPO] == TEAM_RANGERS && gTeam[playerid] == TEAM_RANGERS))
Change to:
pawn Код:
if(tCP[SUPPLYDEPO] == TEAM_RANGERS && gTeam[playerid] == TEAM_RANGERS)
If it doesn't work, then something with your variables must be screwed up (make sure, that macro's are defined properly).
edit://
@down, check my code.
Posts: 1,767
Threads: 124
Joined: Mar 2010
Quote:
Originally Posted by FireWarrior101
The player still gets ammmo if area is not captured by any team
|
Then you have to debug your values of the variables. Make sure that you SET player to proper team for both arrays.
I mean:
However you use that array here:
It MUST be set to the value of TEAM_RANGERS macro. And same here:
That one must be set to the same value as previous array, so it's gonna be TEAM_RANGERS again, but make sure that you set player to this team before all that (e.g. OnPlayerSpawn or OnPlayerRequestClass callbacks)
Then, it must work.