Raised This Month: $ Target: $400
 0% 

Menu - Make Something Disappear


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dr7sTyLe
Senior Member
Join Date: Dec 2010
Old 06-25-2011 , 12:15   Re: Menu - Make Something Disappear
Reply With Quote #1

Quote:
Originally Posted by Exolent[jNr] View Post
PHP Code:
public TaskAgreement(id

    
id -= TASKID
     
    if( 
g_bAgreed[id] ) 
    { 
        return 
PLUGIN_CONTINUE
    } 
     
    new 
iMenu menu_create("\r[\yJailbreak\r]\yTerms and Agreements:""Agreements_Handle"); 
    new 
iCallback menu_makecallback("Agreements_Callback"); 
     
    
g_iCountDown[id] -= 1
     
    new 
szItem[128]; 
    
formatex(szItemcharsmax(szItem), "%sAccept \r[\y %i \r]"g_iCountDown[id] > "\d" "\w"g_iCountDown[id] <= g_iCountDown[id]); 
    
menu_additem(iMenuszItem"1"_iCallback); 
    
menu_additem(iMenu"Decline""2"); 
    
menu_addblank(iMenufalse); 
    
menu_additem(iMenu"Show MOTD again""3"); 
    
menu_setprop(iMenuMPROP_EXITMEXIT_NEVER); 
     
    if( 
g_iCountDown[id] > && !g_bAgreed[id] ) 
    { 
        
set_task(1.0"TaskAgreement"id TASKID); 
    } 
    else
    {
        
set_task(1.0"TaskCloseMenu"id TASKID);
    }
     
    
menu_display(idiMenu); 
     
    return 
PLUGIN_HANDLED
}

public 
TaskCloseMenu(id)
{
    
show_menu(id TASKID0"^n"1);

Thanks Working
Dr7sTyLe is offline
Reply



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 23:32.


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