Raised This Month: $ Target: $400
 0% 

help menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-27-2014 , 14:10   Re: help menu
Reply With Quote #3

PHP Code:
register_clcmd("say /menu""menu_hendler"
PHP Code:
new menu menu creat("Menu:""menu_hendler"
PHP Code:
new menu menu_create("Menu""menu_hendler"
PHP Code:
return PLUGIN_HANDLED 
PHP Code:
  if(item == MENU_EXIT)
    {
    
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    

PHP Code:
give_item(id"weapon_awp"
PHP Code:
client_print(idprint_chat"You get AWP !"
PHP Code:
cs_set_user_bpammo(idCSW_AK4730
PHP Code:
 if(cs_get_user_money(id) >= 9000)
            {
                
cs_set_user_money(idmoney 9000)
                
set_user_health(idget_user_health(id) + 100)
                
client_print(idprint_chat"You get 100HP !")
      } 
Lol, learn how functions, constants and defines are called, learn how to close a structure( { } ), learn to close "" and ()

@Yami, he also wrote clien_print instead of client_print.
__________________

Last edited by HamletEagle; 12-27-2014 at 14:12.
HamletEagle 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 15:31.


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