AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Team specific commands (https://forums.alliedmods.net/showthread.php?t=6132)

Infra 09-22-2004 02:00

Team specific commands
 
Hey all,

I need some help with making commands team specific. Is there a way to do this using cs_get_user_team?

Suggestions?

Ingram 09-22-2004 07:26

What mod are u using? and what type of commands?

Infra 09-22-2004 11:39

CS...

"say" client commands

for instance: I want only the CTs to be able to use "say /CT" and the Ts to only be able to use "say /Ts"

Votorx 09-22-2004 12:57

Quote:

Is there a way to do this using cs_get_user_team?
....Hmm ya think?
Use cs_get_user_team on the player who used the command, and if the team is Terrorist then run whatever it is you need for the terrorist team and vice versa.

Infra 09-23-2004 13:10

Yes, I know that I can use the cs_get_user_team function, but when I use the constants that it's supposed to return, they are undefined. (stupid question) Are they only defined in 0.20?

teams:

T: 1
CT: 2
Spec: 3

Votorx 09-23-2004 13:12

They are defined, either you probably 1. Mispelt the variable or 2. Didn't include the module, but we have no way of knowing what your problem is without the code.


All times are GMT -4. The time now is 17:17.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.