Raised This Month: $ Target: $400
 0% 

what does this mean!?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 05-30-2005 , 08:10   what does this mean!?
Reply With Quote #1

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")

Code:
(1<<0)|(1<<1)

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  }
__________________
Plugins:
none

n0obie4life 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 16:47.


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