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? |
What mod are u using? and what type of commands?
|
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" |
Quote:
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. |
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 |
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.