AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   set_user_team (https://forums.alliedmods.net/showthread.php?t=2556)

Sonic 06-08-2004 14:44

set_user_team
 
Player1 = CT / Player2 = T

"Player1<3><****><CT>" attacked "Player2<4><****><TERRORIST>" with "usp" (damage "24") (damage_armor "0") (health "76") (armor "0")

set_user_team on Player1 to T
"Player1<3><****><TERRORIST>" attacked "Player2<4><****><TERRORIST>" with "usp" (damage "8") (damage_armor "0") (health "68") (armor "0")
"Player2<4><****><TERRORIST>" attacked "Player1<3><****><TERRORIST>" with "glock18" (damage "6") (damage_armor "0") (health "94") (armor "100")

set_user_team on Player1 to CT
"Player1<3><****><CT>" attacked "Player2<4><****><TERRORIST>" with "usp" (damage "24") (damage_armor "0") (health "36") (armor "0")
"Player2<4><****><TERRORIST>" attacked "Player1<3><****><CT>" with "glock18" (damage "48") (damage_armor "22") (health "46") (armor "78")

set_user_team on Player1 to T
"Player1<3><****><TERRORIST>" attacked "Player2<4><****><TERRORIST>" with "usp" (damage "44") (damage_armor "0") (health "-8") (armor "0")
"Player1<3><****><TERRORIST>" killed "Player2<4><****><TERRORIST>" with "usp"

Player1 and 2 = Terror
the deathmsg on the HUD show Player1<BLUE> (killed with USP) Player2<RED>

set_user_team has no effect on HUD msg`s ?

devicenull 06-08-2004 16:24

Use the one from the cstrike module

Sonic 06-08-2004 17:09

this is the fix :)

Code:

message_begin(MSG_ALL, get_user_msgid("TeamInfo") );
write_byte(pIndex)
write_string("TEAM")
message_end()



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

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