Define Team to show HUD Message
I have this code made by bugsy.
I tried to show the HUD to only terrorists and i don't seem to get it to work. CT still can see the HUD message with this code: I'm probably placing the if(cs_get_user_team(id) == CS_TEAM_T) on the wrong part. Anyone care to show me how to do it correctly? Code:
#include <amxmodx> |
Re: Define Team to show HUD Message
inside the if() condition, use get_players function and get the terrorist team then loop.
BTW. show_dhudmessage(0, ....) 0 Means everyone will get the message. Use the proper player index(or the indexes when you loop). |
Re: Define Team to show HUD Message
I'm sorry, i'm am VERY new to pawn, and is really hard to start.
Could you maybe, write the line with the solution? and i will take it as reference to understand how it works. Since i don't really understood how to apply the get_players function, player index, or how to loop. |
Re: Define Team to show HUD Message
Code:
|
Re: Define Team to show HUD Message
Thank you, the code works and i'm trying to comprehend it so i can apply it to other plugins as well.
|
| All times are GMT -4. The time now is 13:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.