Raised This Month: $ Target: $400
 0% 

Multi jump menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 01-19-2014 , 09:56   Re: Multi jump menu
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
You should be able to do this:
Code:
isEnabled[id] = !isEnabled[id]
Like this, right?
PHP Code:
public sayJump(id) {
    
    
isEnabled[32] = !isEnabled[id]
    
    new 
menu menu_create("\rMenu""menu_handler")
    
formatex(status63"\wMulti Jump: %s^n"isEnabled[id] ? "\yON" "\dOFF")
    
menu_additem(menustatus"1")
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
menu_display(idmenu0)
}

public 
menu_handler(idmenuitem) {

    switch(
item) {
        case 
0: {
            
// if user is not alive
            
if(!(is_user_alive(id))) {
            
client_print(idprint_chat"You must be alive")
            return 
PLUGIN_HANDLED
            
}
            
            
// make multi jump
        
}
    }
    return 
PLUGIN_CONTINUE

CHE4TER 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 10:10.


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