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 -.-'
__________________