Raised This Month: $ Target: $400
 0% 

Using menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
macas5
Member
Join Date: Aug 2008
Location: Lithuania
Old 05-22-2010 , 13:11   Re: Using menu
Reply With Quote #1

#8 SickneSS thank you , but I found another way by one of tutorial, but when i use:
Code:
public event_spawn (id)
{
	new menu[192]
	new keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|
	format(menu, 191, "Choose your primary weapon^n^n1. AK47^n2. M4A1^n3. AWP")
	show_menu (id, keys, menu)
	PLUGIN_HANDLED	
}

public giveWeapon (id, key)
{
	if (key == 0)
	{
		give_item (id, "weapon_ak47")
	} 
	if (key == 1) {
		give_item (id, "weapon_m4a1")
		
	}
	if (key == 2) {
		give_item (id, "weapon_awp")	
	}
}
I can't get awp (i can get ak47 and m4a1). When i press 3 it doesn't happen, even menu don't dissapear, but when i change giving awp with m4a1 awp spawns and m4a1 doesn't. Can anyone help?

Last edited by macas5; 05-22-2010 at 13:13.
macas5 is offline
Send a message via Skype™ to macas5
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 03:45.


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