Raised This Month: $ Target: $400
 0% 

Can someone help me ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
poliisi299
Senior Member
Join Date: May 2011
Old 10-28-2011 , 13:10   Can someone help me ?
Reply With Quote #1

plzz help me, i need two plugin in one. 1 plugin Grenade Sack. 2 my plugin code are down, can someone help how can get this plugin in one
2 code

#include <cstrike>
#include <fun>
#include <hamsandwich>

new const PLUGIN[] = "grenadeshop"
new const VERSION[] = "0.1"
new const AUTHOR[] = "quark"

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

register_clcmd("say /nades", "grenadeshop")
register_clcmd("say nades", "grenadeshop")
}

public grenadeshop(id)
{
if(is_user_alive(id))
{
new ShopMenu = menu_create("Nades Shop", "shop_handler")
menu_additem(ShopMenu, "Blast Nades (500$)", "1", id)
menu_additem(ShopMenu, "Fire Nades (750$)", "2", id)
menu_additem(ShopMenu, "Frost Nades (500$)", "3", id)
menu_setprop(ShopMenu, MPROP_EXIT, MEXIT_ALL);
menu_setprop(ShopMenu, MPROP_NUMBER_COLOR, "\y");
menu_display(id, ShopMenu, 0)
}
return PLUGIN_CONTINUE
}

public shop_handler(id, ShopMenu, item)
{
new money = cs_get_user_money(id)
switch(item)
{
case 0:
{
if(money >= 500)
{
new setmoney = money - 500
cs_set_user_money(id, clamp(setmoney, 0, 50000))
give_item(id, "weapon_hegrenade")
client_print(id, print_chat, "You have Blast Nade")
}
else client_print(id, print_chat, "You Dont Have Now Money")
}
case 1:
{
if(money >= 750)
{
new setmoney = money - 750
cs_set_user_money(id, clamp(setmoney, 0, 50000))
give_item(id, "weapon_flashbang")
client_print(id, print_chat, "You have Fire Nade")
}
else client_print(id, print_chat, "You Dont Have Now Money")
}
case 2:
{
if(money >= 500)
{
new setmoney = money - 500
cs_set_user_money(id, clamp(setmoney, 0, 50000))
give_item(id, "weapon_smokegrenade")
client_print(id, print_chat, "You Have Frost Nade")
}
else client_print(id, print_chat, "You Dont Have Now Money")
}
}
}
poliisi299 is offline
 


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


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