[Tutorial] [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base
#6

Quote:
Originally Posted by Daren_Jacobson
the numbers in the defines aren't just "to help the compiler." The pre-processer essentially does a Ctrl+h
replace: TEAM_GANG
with : 0

and I would recommend putting the number in braces () so it would be

replace: TEAM_LSPD
with : (1)

UNLESS you plan on doing something like this, which i am not even sure works, and looks pretty sloppy.

[pawn]
#define TEAM_GOOD 1
#define _LSPD 1
#define _LSFD 2

#define TEAM_BAD 2
#define _ROBBERS 1
#define _WHITE_HOUSE 2
[pawn]

you could then do something (again not sure on this) like this:
pawn Код:
if (teamid == TEAM_GOOD_LSPD)
that would be teamid 11.
this is more for beginners who just want to make some teams. Thats getting a little to complex when you can keep it simple. Plus you unless your going to be doing some heavy team based scripting, this is enough. Then again if your doing heavy team based scripting you wont even need this.
Reply


Messages In This Thread
[TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by retart441 - 10.11.2009, 23:44
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by DiddyBop - 10.11.2009, 23:50
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted - by retart441 - 10.11.2009, 23:59
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Daren_Jacobson - 11.11.2009, 01:11
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Avsecret - 11.11.2009, 01:25
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted - by retart441 - 11.11.2009, 02:44
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Daren_Jacobson - 11.11.2009, 03:35
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Sergei - 11.11.2009, 04:35
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by retart441 - 11.11.2009, 04:42
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by LarzI - 11.11.2009, 08:22
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted - by retart441 - 11.11.2009, 21:52
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Ritchie999 - 16.11.2009, 01:35
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Retardedwolf - 16.11.2009, 03:20
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Ritchie999 - 16.11.2009, 11:17
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by LarzI - 16.11.2009, 14:16
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by [LCG]TANKER - 16.11.2009, 20:10
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted - by retart441 - 16.11.2009, 20:28
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted - by Ritchie999 - 16.11.2009, 20:35
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Peter_Corneile - 16.11.2009, 20:37
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted - by retart441 - 16.11.2009, 23:31
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Retardedwolf - 17.11.2009, 08:20
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted - by Ritchie999 - 17.11.2009, 18:54
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted - by retart441 - 17.11.2009, 19:18
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Alex_Cop - 19.12.2009, 10:13
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by CJ101 - 19.12.2009, 10:16
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted - by philmckrakin - 22.12.2009, 00:01
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by roar - 22.12.2009, 00:25
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by CSMajor - 21.07.2010, 21:28
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by whosHate - 02.08.2012, 22:54
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Astrais - 04.01.2013, 18:53
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by AA9 - 11.06.2013, 15:52
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Inverse - 15.06.2013, 15:07
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by iokito7 - 04.07.2013, 09:59
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by ciberblue - 14.12.2013, 02:16
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by boomerboom - 14.12.2013, 07:27
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by djones - 12.01.2014, 02:56
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Sojo12 - 12.01.2014, 07:01
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Calin2551 - 01.03.2014, 14:29
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by KurtBart - 17.05.2014, 13:57
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by TheRaGeLord - 08.02.2015, 10:43

Forum Jump:


Users browsing this thread: 1 Guest(s)