Raised This Month: $ Target: $400
 0% 

New Amxx Menu Help and checking!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Frozen Usp
Member
Join Date: Sep 2007
Location: Sweden
Old 05-17-2009 , 04:31   Re: New Amxx Menu Help and checking!
Reply With Quote #3

Alright, Thanks m8
but how do i make a variable so that it checks that the user hasnīt already used on of the stuff under the time hes alive.

EX.
PHP Code:
#include <amxmodx> 
#include <amxmisc> 
#include <fun> 

new checker[id] = 1

 
public plugin_init() 
 { 
    
register_clcmd"my_awesome_menu","AwesomeMenu"); 
 } 
 public 
AwesomeMenu(id
 { 
    new 
menu menu_create("\rLook at this awesome Menu!:""menu_handler"); 
     
menu_additem(menu"\wI'm Selection #1""1"0); 
    
menu_additem(menu"\wI'm Selection #2""2"0); 
    
menu_additem(menu"\wI'm Secret Selection #3""3"ADMIN_ADMIN); 
 } 

// and so on... 

switch(key
    { 
        case 
1: if(checker(id) == 0) {
            return 
PLUGIN_HANDLED
        
{
            
set_user_health(id999// :D
            
checker[id] = 0
        

</span></span>

Last edited by Frozen Usp; 05-17-2009 at 04:35.
Frozen Usp is offline
Send a message via MSN to Frozen Usp
 



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 01:36.


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