Raised This Month: $ Target: $400
 0% 

Weapon script


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
zirualas
Senior Member
Join Date: Jun 2010
Location: Lithuania
Old 06-24-2010 , 10:41   Re: Weapon script
Reply With Quote #8

I type like you said but error is same. I don't understond
You give me this code.
Quote:
PHP Code:
#include <amxmodx>
#include <fun>

new vip_menu

public plugin_init()
{
register_clcmd( "say /vipmenu","VIPMenu");
}

public
VIPMenu(id)
{
vip_menu = menu_create("\rVip meniu:", "menu_handler");
menu_additem(vip_menu, "\wMaza gravitacija", "1", 0);
menu_additem(vip_menu, "\wGive USP", "2", 0);
menu_setprop(vip_menu, MPROP_EXIT, MEXIT_ALL);
}

public
menu_handler(id, menu, item)
{
if(
item == MENU_EXIT )
{
menu_destroy(menu);
return
PLUGIN_HANDLED;
}
new
data[6], iName[64];
new
access, callback;

menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new
key = str_to_num(data);
switch(
key)
{
case
1:
{
set_user_health(id, 150); //Sets health of id to 150
set_user_armor(id, 200); //Sets armor of id to 200
}

case
2:
{
give_item(id, "weapon_usp"); //Gives id a USP
give_item(id, "ammo_45acp"); //Gives id USP ammo
}
}
menu_destroy(menu);
return
PLUGIN_HANDLED;
}

Item names for give_item() - http://forums.alliedmods.net/showthread.php?t=35512
I type it. Not found errors. When i add to plugins.ini my vipmenu.amxx I type to server console amx_plugins and me suggest that's plugin don't exist. Well what i can do? Plz HELP!

Last edited by zirualas; 06-24-2010 at 10:44.
zirualas is offline
Send a message via Skype™ to zirualas
 



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 14:51.


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