Raised This Month: $ Target: $400
 0% 

Compile Mod errors


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
sl1ps
Junior Member
Join Date: Sep 2005
Old 09-14-2005 , 13:24   ty
Reply With Quote #6

Thanks for that.

The only problem i'm having is once someone has connected once and
started playing, if they quit and come back to the server when they try to
select either CT or T it says they have chosen either random or normal
teams(a vote to leave teams or mix them up for the pug) as if the plugin
commands are conflicting with the CS choose-team commands...
I don't really need that option anyway, so would removing this part of the code be an easier way to get rid of that problem?

Code:
} public vote_teams() {     new menu_msg[256]     format(menu_msg,255,"\yTeam type?")     add(menu_msg,255,"^n^n\y1.\w Leave normal")     add(menu_msg,255,"^n\y2.\w Random")     new Float:votetime = get_cvar_float("pug_vote_time") + 10.0     set_cvar_float("pug_last_voting", get_gametime() + votetime)     show_menu(0,(1<<0)|(1<<1),menu_msg,floatround(votetime),"Team")     set_task(votetime,"check_teamvotes",task_teamvote)     showsay(0,v_team_started)     //client_print(0,print_chat,v_team_started)     teamchoice[0]=teamchoice[1]=0     return PLUGIN_CONTINUE } public count_teamvotes(id,key) {     if(get_cvar_num("pug_vote_answers")==1) {         new player_name[32]         get_user_name(id,player_name,31)         client_print(0,print_chat,"%s voted for %s",player_name,key ?"random teams":"leaving normal")     }     ++teamchoice[key]     return PLUGIN_HANDLED } public check_teamvotes() {     new ms[300]     if(teamchoice[0] > teamchoice[1]) {         format(ms,299,v_normal_succes,teamchoice[0])         showsay(0,ms)         //client_print(0,print_chat,v_normal_succes, teamchoice[0])         roundcount=0         ct_score=0         t_score=0         swap_teams=0         pug_fase=1         pug_start_fase=1         set_task(2.0,"start_pug",task_start)     } else {         format(ms,299,v_random_succes,teamchoice[1])         showsay(0,ms)         //client_print(0,print_chat,v_random_succes, teamchoice[1])         set_task(1.0,"shuffle_teams",task_shuffle)     }     return PLUGIN_HANDLED

Cheers in advance
sl1ps 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 14:30.


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