Raised This Month: $ Target: $400
 0% 

Team specific commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Infra
Senior Member
Join Date: Aug 2004
Location: California
Old 09-22-2004 , 02:00   Team specific commands
Reply With Quote #1

Hey all,

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

Suggestions?
__________________
--Infra
Infra is offline
Send a message via AIM to Infra
Ingram
Veteran Member
Join Date: May 2004
Old 09-22-2004 , 07:26  
Reply With Quote #2

What mod are u using? and what type of commands?
Ingram is offline
Infra
Senior Member
Join Date: Aug 2004
Location: California
Old 09-22-2004 , 11:39  
Reply With Quote #3

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"
__________________
--Infra
Infra is offline
Send a message via AIM to Infra
Votorx
Senior Member
Join Date: Jun 2004
Old 09-22-2004 , 12:57  
Reply With Quote #4

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.
__________________
Currently Looking for a mod team.
Votorx is offline
Send a message via AIM to Votorx Send a message via MSN to Votorx Send a message via Yahoo to Votorx
Infra
Senior Member
Join Date: Aug 2004
Location: California
Old 09-23-2004 , 13:10  
Reply With Quote #5

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
__________________
--Infra
Infra is offline
Send a message via AIM to Infra
Votorx
Senior Member
Join Date: Jun 2004
Old 09-23-2004 , 13:12  
Reply With Quote #6

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.
__________________
Currently Looking for a mod team.
Votorx is offline
Send a message via AIM to Votorx Send a message via MSN to Votorx Send a message via Yahoo to Votorx
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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