Raised This Month: $ Target: $400
 0% 

[REQ] Fix add ammo


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ShLuMieL
Senior Member
Join Date: Jul 2010
Old 12-23-2011 , 22:05   [REQ] Fix add ammo
Reply With Quote #1

hey to all

someone ca fix this plugin pls?

PHP Code:
#include <amxmodx>
#include <cstrike>
#define PLUGIN "Ammo"    
#define VERSION "1.0"    
#define AUTHOR "Asaf Mazon"  
public plugin_init()
{    
 
register_plugin(PLUGINVERSIONAUTHOR)    
 
 
register_clcmd("say /ammo""ammo"); 
}    
public 
ammo(id)
{
 new 
menu menu_create("Awp""ammo2");
 
menu_additem(menu"\wAwp 1 Bullet""1"0);
 
menu_setprop(menuMPROP_EXITMEXIT_ALL);
 
 
menu_display(idmenu0);
 return 
PLUGIN_HANDLED;
}
public 
ammo2(idmenuitem)
{
 if(
item == MENU_EXIT)
 {
  
menu_destroy(menu);
  return 
PLUGIN_HANDLED;
 }
 
 new 
data[6], szName[64];
 new 
accesscallback;
 
menu_item_getinfo(menuitemaccessdata,5szName,63callback);
 
 new 
key str_to_num(data);
 new 
awp cs_get_user_bpammo(idCSW_AWP)
 
 switch(
key)
 {
  case 
1:
  {
   
cs_set_user_bpammo(idawp 1)
   
  }
 }
 
menu_destroy(menu);
 return 
PLUGIN_HANDLED;

i want if now i have awp its will add me 1 bullet and if i press again its

add me more 1 bullet and if i press it again its will add me more 1 bullet.

Thanks's
ShLuMieL 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 11:50.


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