Code:
register_menucmd(register_menuid("\yPara Only?"),(1<<0)|(1<<1),"count_paravotes")
register_menucmd(register_menuid("\yGrenades Only?"),(1<<0)|(1<<1),"count_grenvotes")
register_menucmd(register_menuid("\yKnives Only?"),(1<<0)|(1<<1),"count_knivesvotes")
register_menucmd(register_menuid("\yAWP Only?"),(1<<0)|(1<<1),"count_awpvotes")
register_menucmd(register_menuid("\yMP5 Only?"),(1<<0)|(1<<1),"count_mp5votes")
register_menucmd(register_menuid("\yScout Only?"),(1<<0)|(1<<1),"count_scoutvotes")
register_menucmd(register_menuid("\yShotgun Only?"),(1<<0)|(1<<1),"count_shotvotes")
register_menucmd(register_menuid("\yShields Only?"),(1<<0)|(1<<1),"count_shieldvotes")
register_menucmd(register_menuid("\yPPG Only?"),(1<<0)|(1<<1),"count_ppgvotes")
what does this mean? and why when i do a vote with that, it shows AWP Only? instead of the thing i defined
Code:
public cmdvoteawp(id){
if (get_cvar_num("vote_awpvote") == 0 ) {
client_print(id,print_chat,"%L",LANG_PLAYER,"VOTE_AWP_DISABLED"); }
else if (get_cvar_num ("vote_awpvote") == 1 ) {
new Float:voting = get_cvar_float("amx_last_voting")
if (voting > get_gametime()){
client_print(id,print_chat,"%L",LANG_PLAYER,"VOTE_CASTED")
return PLUGIN_HANDLED
}
if (voting && voting + get_cvar_float("amx_vote_delay") > get_gametime()) {
client_print(id,print_chat,"%L",LANG_PLAYER,"VOTE_WAIT")
return PLUGIN_HANDLED
}
new menu_msg[256]
new name[32]
format(menu_msg,255,"%L",LANG_PLAYER,"VOTE_AWP")
new Float:votetime = get_cvar_float("amx_vote_time") + 10.0
get_user_info(id, "name", name, 31)
set_cvar_float("amx_last_voting", get_gametime() + votetime )
show_menu(0,(1<<0)|(1<<1),menu_msg,floatround(votetime))
set_task(votetime,"check_the_awp_votes")
client_print(0,print_chat,"%L",LANG_PLAYER,"VOTE_STARTED")
choice[0]=choice[1]=0
}
return PLUGIN_HANDLED
}
__________________