Raised This Month: $ Target: $400
 0% 

Menu problems


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
unnamed :)
Member
Join Date: Apr 2006
Old 06-01-2006 , 15:28  
Reply With Quote #9

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <tsfun> public plugin_init() {     register_plugin("Powerup Menu","unnamed","1.0")     register_concmd("pumenu","ShowMenu",ADMIN_SLAY,"- shows the Powerup Menu")     register_menucmd(register_menuid("Powerup Menu:"),1023,"MenuPU") } public ShowMenu(id) {     if(is_user_admin(id) == 0) return PLUGIN_HANDLED         new szMenuBody[256]     new keys     new nLen = format( szMenuBody, 255, "Powerup Menu:" )     nLen += format( szMenuBody[nLen], 255-nLen, "^n^n0. Random" )     nLen += format( szMenuBody[nLen], 255-nLen, "^n1. Slow Motion" )     nLen += format( szMenuBody[nLen], 255-nLen, "^n2. Infite Ammo" )     nLen += format( szMenuBody[nLen], 255-nLen, "^n3. Kung Fu" )     nLen += format( szMenuBody[nLen], 255-nLen, "^n4. Slow Pause" )     nLen += format( szMenuBody[nLen], 255-nLen, "^n5. Double Firerate" )     nLen += format( szMenuBody[nLen], 255-nLen, "^n6. Grenade" )     nLen += format( szMenuBody[nLen], 255-nLen, "^n7. Health" )     nLen += format( szMenuBody[nLen], 255-nLen, "^n8. Armor" )     nLen += format( szMenuBody[nLen], 255-nLen, "^n9. Superjump" )     keys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<7|1<<8|1<<9)     show_menu(id,keys,szMenuBody,-1)     return PLUGIN_CONTINUE } public MenuPU(id,key) {     switch(key) {         case 0: {             ts_createpwup(1)             ts_givepwup(id,1)         }         case 1: {             ts_createpwup(2)             ts_givepwup(id,2)         }         case 2: {             ts_createpwup(4)             ts_givepwup(id,4)         }         case 3: {             ts_createpwup(8)             ts_givepwup(id,8)         }         case 4: {             ts_createpwup(16)             ts_givepwup(id,16)         }         case 5: {             ts_createpwup(32)             ts_givepwup(id,32)         }         case 6: {             ts_createpwup(64)             ts_givepwup(id,64)         }         case 7: {             ts_createpwup(128)             ts_givepwup(id,128)         }         case 8: {             ts_createpwup(256)             ts_givepwup(id,256)         }         case 9: {             ts_createpwup(0)             ts_givepwup(id,0)         }     }     return PLUGIN_HANDLED }
Still not working...
unnamed :) 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 16:33.


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