Raised This Month: $ Target: $400
 0% 

Help sourcecode menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bthnats
Junior Member
Join Date: Jan 2013
Old 01-23-2013 , 03:09   Help sourcecode menu
Reply With Quote #1

is anything wrong with this code? it compiles without problem but in game when i say /oyunlar the menu doesnt appear

Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
#define Keysmenu (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)


public plugin_init() {
	register_plugin("oyunlar", "1.0", "bthnats")
	register_clcmd("say /oyunlar","say /oyunmenu")
	// Add your code here...
}

public Showmenu(id) {
	show_menu(id, Keysmenu, "\rOyunlar^n\w^n\r1. \wNormal Ayarlar^n\r2. \wZombie^n\r3. \wYakartop^n\r4. \wC4(Oto Bury)^n\r5. \wCatisma(FF)^n\r6. \wFatmagul^n\r7. \wHayalet^n\r0. \wCikis^n", -1, "menu")
}

public Pressedmenu(id, key) {
	switch (key) {
		case 0: {
			menu_destroy(Keysmenu)
			return PLUGIN_HANDLED
		}
		case 1: {
			client_cmd(id,"amx_cfg server.cfg")
			client_cmd(id,"amx_tsay red Normal Server Ayarlari")
			client_cmd(id,"amx_tsay green Normal Server Ayarlari")
			client_cmd(id,"amx_tsay blue Normal Server Ayarlari")
		}
		case 2: {
			client_cmd(id,"amx_heal @CT 50000")
			client_cmd(id,"amx_cvar sv_gravity 350")
			client_cmd(id,"amx_weapon @T 200")
			client_cmd(id,"amx_glow @T red")
			client_cmd(id,"amx_glow @CT blue")
			client_cmd(id,"amx_unammo @T 1")
			client_cmd(id,"amx_tsay red Zombie")
			client_cmd(id,"amx_tsay green Zombie")
			client_cmd(id,"amx_tsay blue Zombie")
		}
		case 3: {
                        client_cmd(id,"amx_fire @CT")
			client_cmd(id,"amx_heal @CT 1231232")
			client_cmd(id,"amx_godmode @CT 1")
			client_cmd(id,"amx_tsay red Yakartop")
			client_cmd(id,"amx_tsay green Yakartop")
			client_cmd(id,"amx_tsay blue Yakartop")
		}
		case 4: {
			client_cmd(id,"amx_bury @T")
			client_cmd(id,"amx_weapon @T c4")
			client_cmd(id,"amx_tsay red C4 Atmaca")
			client_cmd(id,"amx_tsay green C4 Atmaca")
			client_cmd(id,"amx_tsay blue C4 Atmaca")
		}
		case 5: {
			client_cmd(id,"amx_weapon @T 200")
			client_cmd(id,"amx_unammo @T 1")
			client_cmd(id,"amx_heal @T 2000")
			client_cmd(id,"amx_cvar mp_friendlyfire 1")
			client_cmd(id,"amx_tsay red Catisma(FF)")
			client_cmd(id,"amx_tsay green Catisma(FF)")
			client_cmd(id,"amx_tsay blue Catisma(FF)")
		}
		case 6: {
			client_cmd(id,"amx_bury @CT")
			client_cmd(id,"amx_weapon @T 200")
			client_cmd(id,"amx_unammo @T 1")
			client_cmd(id,"amx_heal @CT 120000")
			client_cmd(id,"amx_tsay red Fatmagul")
			client_cmd(id,"amx_tsay green Fatmagul")
			client_cmd(id,"amx_tsay blue Fatmagul")
		}
		case 7: {
			client_cmd(id,"amx_disarm @CT")
			client_cmd(id,"amx_invisible @CT 1")
			client_cmd(id,"amx_weapon @T 200")
			client_cmd(id,"amx_noclip @CT 1")
			client_cmd(id,"amx_heal @CT 5000")
			client_cmd(id,"amx_unammo @T 1")
			client_cmd(id,"amx_tsay red Hayalet")
			client_cmd(id,"amx_tsay green Hayalet")
			client_cmd(id,"amx_tsay blue Hayalet")
		}
	}
			menu_destroy(Keysmenu)
			return PLUGIN_HANDLED
}
bthnats is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-23-2013 , 03:24   Re: Help sourcecode menu
Reply With Quote #2

Go read a tutorial on how to create commands and menus, because you are doing it all wrong
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
bthnats
Junior Member
Join Date: Jan 2013
Old 01-23-2013 , 04:52   Re: Help sourcecode menu
Reply With Quote #3

i used the menu generator at amx studio :/
bthnats is offline
Old 01-23-2013, 11:42
bthnats
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
Reply


Thread Tools
Display Modes

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 20:34.


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