Raised This Month: $ Target: $400
 0% 

hud-message only to T-Team or CT-Team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ch3cker
Veteran Member
Join Date: Jun 2005
Location: Deutschland / Baden-Würt
Old 06-06-2006 , 16:10   hud-message only to T-Team or CT-Team
Reply With Quote #1

how can i show a hud-message only to the CT team or to the T team ??
__________________
SORRY 4 MY BAD ENGLISH
ch3cker is offline
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 06-06-2006 , 16:19  
Reply With Quote #2

Code:
new players[32], inum get_players(players,inum, "ce", "CT")   //or "Terrorist" .. set_hudmessage(...) for(new i = 0; i < inum; i++) {     show_hudmessage(players[i], "blaa") }
__________________
plop
p3tsin is offline
shino
Senior Member
Join Date: May 2006
Old 06-06-2006 , 16:22  
Reply With Quote #3

Code:
public ShowHud(players[]) {         new players[32],num,i     get_players(players,num)     for(i = 0; i <= num; i++) {         new id = players[i]                 if(cs_get_user_team(id) == CS_TEAM_T) {                         set_hudmessage(255, 0, 0, -1.0, 0.2, 0, 6.0, 4.0)                         show_hudmessage(id,"Ttext")                 }                 if(cs_get_user_team(id) == CS_TEAM_CT) {                         set_hudmessage(255, 0, 0, -1.0, 0.2, 0, 6.0, 4.0)                         show_hudmessage(id,"CTtext")                 }         } }
something like that, i hope it works
shino is offline
ch3cker
Veteran Member
Join Date: Jun 2005
Location: Deutschland / Baden-Würt
Old 06-07-2006 , 09:33  
Reply With Quote #4

thx to both
__________________
SORRY 4 MY BAD ENGLISH
ch3cker is offline
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 16:23.


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