AlliedModders

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

mottzi 08-05-2010 14:38

Jointeam Question
 
Hello,

I need to hanle with this Event:

Code:

register_event("TextMsg","team_join","a","1=1","2&Game_join_te","2&Game_join_ct")
So my question is: Is this event just called then you Join team by Teamchoosemenu (M) or is it called when a Player simply changes team (cs_set_user_team), too?

Mottzi

infek 08-07-2010 06:31

Re: Jointeam Question
 
// Could happend in the beggining of the round or Team Select
PHP Code:

register_event("TeamInfo","team_assign","a"

// Happends at Team Select & Auto-Join Only
PHP Code:

register_event("TextMsg","team_join","a","1=1","2&Game_join_te","2&Game_join_ct"


Hunter-Digital 08-07-2010 09:36

Re: Jointeam Question
 
And neither of those are triggered when using cs_set_user_team() because that sets team internally... AFAIK.


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

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