BothTeams by cvar
So how can i do to make both teams use the command with the cvar.It works if the cvar is 1 for t and 2 for ct, but not work if it's 3.
PHP Code:
|
Re: BothTeams by cvar
I don't think that 0 is a team num. 1=t, 2=ct, 3=spec. Also, if the cvar is 2, and u do the first get_pcvar_num, it still returns true because 2 returns true, not only 1. Idk if this is exactly what you wanted but basically what this does is if someone types /message, and the cvar is set to one, it will say to all of the t's that they are t. If cvar is set to two, it will show all of the ct's that they are ct's. If it is 3, it will show everyone "it worked". Clarify if this isn't what u wanted.
Code:
#include <amxmodx> |
Re: BothTeams by cvar
PHP Code:
PHP Code:
|
Re: BothTeams by cvar
I think you have to do this :
PHP Code:
PHP Code:
|
Re: BothTeams by cvar
Use cs_get_user_team
|
Re: BothTeams by cvar
PHP Code:
PHP Code:
nikhilgupta345:I want that command to be user only for 1(T's) 2(CT's) 3(both team).The message is showed to "id" not to all players from his team. EDIT: I think i found the solution :D PHP Code:
EDIT2 : IT worked :D thank you ex3cution :mrgreen: |
| All times are GMT -4. The time now is 00:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.