Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Ctf cog-verb ques
Ctf cog-verb ques
2003-02-07, 8:52 AM #1
Just wondering if anyone knows these 2 things off hand...

A test to see if...
(1) Does player have the flag.
(2) Is player on red team or gold team.

Thanks,...I could go find this information, but I just thought some experts here could bless me with their quick and superior knowledge to speed up the implimentation of this cog. Thanks again.
2003-02-07, 1:34 PM #2
Check the inventory bin for the flags. (open up items.dat and look somewhere in the middle)

Team=GetPlayerTeam(player);

[http://forums.massassi.net/html/smile.gif]
-Hell Raiser
2003-02-07, 3:27 PM #3
Ok thanks!

81 is red flag so...

I'm guessing I use something like:

If ((GetInv(GetLocalPlayerThing(), 81))==1)

where "1" confirms they DO have the flag?

Maybe thats all wrong. I don't know yet.
2003-02-08, 11:22 AM #4
Yep, you could not be any more correcter. [http://forums.massassi.net/html/wink.gif]
-Hell Raiser

↑ Up to the top!