Raised This Month: $ Target: $400
 0% 

Buy Menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
varsponic
Junior Member
Join Date: Apr 2007
Old 04-08-2007 , 14:39   Re: Buy Menu
Reply With Quote #5

Ive been trying to read other scripts and such to make sense of it, but when i compile it it says lines 30-31 and 33-34 the expressions have no affect. The menu opens and you can click the options but it doesnt work, how do i code these 2 commands correctly?


Code:
/* AMX Mod script.
*
* (c) 2007, bigdickboy
* This file is provided as is (no warranties).
*
*  Generated by AMX MenuMaker v1.5 (http://sniperbeamer.amxmod.info)
*/
#include <amxmod>
#include <amxmisc>
new bool:cstrik_running
public plugin_init()
{
register_plugin("Menu","1.0","bigdickboy")
register_menucmd(register_menuid("Shop"),1023,"actionMenu")
register_clcmd("shop","showMenu",0)
new modName[32]
get_modname(modName,31)
cstrik_running = equal(modName,"cstrike") ? true : false
}
public actionMenu(id,key)
{
switch(key){
case 0:{
engclient_cmd ( id,say,/frostnade) 
}
case 1:{
engclient_cmd ( id,say,molotov ) 
}
}
return PLUGIN_HANDLED
}
public showMenu(id,level,cid)
{
if (!cmd_access(id,level,cid,1)) return PLUGIN_HANDLED
new menuBody[512]
new len = format(menuBody,511,cstrik_running ? "\yShop\R^n^n\w" : "Shop^n^n")
len += format(menuBody[len],511-len,"1. Frost Grenade 600$^n2. Molotov Cocktail 400$^n^n0. Exit")
show_menu(id,((1<<0)|(1<<1)|(1<<9)),menuBody)
return PLUGIN_HANDLED
}
varsponic 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 06:43.


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