Make Pickup available for only 1 team?
#1

I want to make a pickup thats can be used by one team but if the other team tries to use it it doesnt work. Could anyone show me an example of how that would work?
Reply
#2

Depends on what you want to use.
y_classes
Defines
gTeam
Reply
#3

I am using gTeam.
Reply
#4

thats pretty simple you use something like

pawn Код:
public OnPlayerPickupPickUp()
{
// START
// Pickup Code
if(pickup == pickup)
{
if(gTeam[playerid] == Team)
{
Your Code
}
return 1;
}
// END
return 1;
}
If this worked and helped you +REP+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)