AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   hud-message only to T-Team or CT-Team (https://forums.alliedmods.net/showthread.php?t=29479)

ch3cker 06-06-2006 16:10

hud-message only to T-Team or CT-Team
 
how can i show a hud-message only to the CT team or to the T team ??

p3tsin 06-06-2006 16:19

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") }

shino 06-06-2006 16:22

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

ch3cker 06-07-2006 09:33

thx to both


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

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