SA-MP Forums Archive
two teams at the same time? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: two teams at the same time? (/showthread.php?tid=270981)



two teams at the same time? - Facepunch - 22.07.2011

Hi there. I've made factions and jobs using gTeam.

So the problem here is that I can't manage to make the player able to have a job and be in a faction at the same time. This is because of course both the job and the team uses the same gTeam.

So my question is, what are the alternatives?

best regards
facepunch


Re: two teams at the same time? - Cyanide - 22.07.2011

Creating another variable for jobs or factions separately.


Re: two teams at the same time? - Adil - 22.07.2011

If you want the player to be in the faction, while being in a gang, then why use a single variable for a player's faction and job?


Re: two teams at the same time? - Facepunch - 22.07.2011

The answer is quite simple, it's because the only experience I have with teams are with gTeams. But by all means, if you have anything that can help me learn how to create a new variable team, then i'd be more then happy to take it!


Re: two teams at the same time? - Adil - 22.07.2011

Where you created "GTeams[MAX_PLAYERS];", just add below it "GJobs[MAX_PLAYERS];". Then replace the faction used Gteams to "GJobs[playerid];".