Raised This Month: $ Target: $400
 0% 

Team join actions...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CS-A-Roland
Member
Join Date: Jul 2009
Old 07-15-2012 , 09:02   Team join actions...
Reply With Quote #1

Hey there... got a problem with understanding of team join action!

If i do this:
Code:
case 0: // Join NC (Terrorists)
            {    
                client_print( id, print_chat, "%s You cannot join the Night-Crawler team!", g_szPrefix );
                
                return PLUGIN_HANDLED;
            }
to this here:
Code:
case 0: // Join NC (Terrorists)
            {    
                client_print( id, print_chat, "%s You cannot join the Night-Crawler team!", g_szPrefix );
                
                set_task( 0.1, "task_JoinTeam", id );
                
                return PLUGIN_HANDLED;
            }
with these task_JoinTeam:
Code:
    public task_JoinTeam( id )
    {
    cs_set_user_team( id, CS_TEAM_CT );
    }
Is it ok, or should i beware of any kind of problems with this code?!
By the way, i need it also for the "Auto Team" function, but these class isn't addet at this time, my question: Is it case 4 or case 5?!
Case 5 didnt work with this function i loose identation...

Thanks for any kind of response!

Didn't work realy... at the scoreboard im in the CT Team but at the Game itself ive to wait for the roundend and then i fall down at the camera spots of spectator! What is this?! I tought if i use this i will put into the ct team and ... damn -.-'
__________________
oOOOoooh it's www.Cs-Attack.de
New World of Warcraft Mod Beta 0.5(based on WC3FT 3.5)
Counterstrike 1.6 SERVER:
Server IP: 193.192.58.154:27200

CONDITION ZERO SERVER:
Server IP: 193.192.58.154:27016

Last edited by CS-A-Roland; 07-15-2012 at 09:44.
CS-A-Roland is offline
 


Thread Tools
Display Modes

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 15:10.


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