Raised This Month: $ Target: $400
 0% 

problem with team checking/setting


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
shino
Senior Member
Join Date: May 2006
Old 05-21-2006 , 09:49   problem with team checking/setting
Reply With Quote #1

so, i made this code:

Code:
public round_start() {     set_task(0.4,"SetZombieBotCheck") } public SetZombieBotCheck(players[]) {     new players[32],num,i     get_players(players,num)     for(i = 0; i <= num; i++) {         new id = players[i]         if (is_user_connected(id) && is_user_alive(id)) {             if (cs_get_user_team(id) == CS_TEAM_T) {                 cs_set_user_team(id,CS_TEAM_CT)             }         }         if (is_user_bot(id) && is_user_alive(id)) {             if (cs_get_user_team(id) == CS_TEAM_CT) {                 cs_set_user_team(id,CS_TEAM_T)                 set_cvar_num("sv_restartround", 1)             }         }     } }

in play, if i join CT team and one bot is with me and one at T team, bot in CT team doesn't get thrown to Ts. if i go to T team, i don't get thrown to CTs. so i think that it might be a problem in code, and if someone could help me.

thanks!
shino is offline
 



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 16:24.


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