Junior Member
|
09-08-2019
, 09:47
[Help] Shop Plugin/Sma
|
#1
|
Hello can somebody edit/fix this pluging for me?
Remove all the bombs, shield , gravity. i need a plugin that has
He bomb 400$
Bunnyhop 4000$
doublejump 3000$
silent walk 2000$
respawn 5000$
or if u have another sma than this with the stuff that i need would be great
ocixcrom
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun>
#define PLUGIN "shop" #define VERSION "1.0" #define AUTHOR "kasper"
new cash[33];
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say /shop", "cmdShop", 0); }
public cmdShop(id) {
new menu = menu_create("\yShop: ", "cmdShop_handler"); menu_additem(menu, "\yH\wE Grenade \r| \y7000$", "1", 0); menu_additem(menu, "\yF\wlash Grenade \r| \y6000$", "2", 0); menu_additem(menu, "\yS\wmoke Grenade \r| \y5400$", "3", 0); menu_additem(menu, "\yS\whield \r| \y10000$", "4", 0); menu_additem(menu, "\yS\wpeed \r| \y 8000$", "5", 0); menu_additem(menu, "\yG\wravity \r| \y 4500$", "6", 0); menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
}
public cmdShop_handler(id, menu, item) {
if( item == MENU_EXIT ) { menu_destroy(menu); return PLUGIN_HANDLED; }
new data[6], szName[64]; new access, callback;
menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
cash[id] = cs_get_user_money(id); new key = str_to_num(data);
switch(key) { case 1: { if(cash[id] > 7000) { client_print(id, print_chat, "You Have Bought HE Nade"); cs_set_user_money(id, cash[id] - 7000); give_item(id, "weapon_hegrenade"); } else { client_print(id, print_chat, "You Dont Have Enough Money"); } } case 2: { if(cash[id] > 6000) { client_print(id, print_chat, "You Have Bought Flash Bang"); cs_set_user_money(id, cash[id] - 6000); give_item(id, "weapon_flashbang"); } else { client_print(id, print_chat, "You Dont Have Enough Money"); } } case 3: { if(cash[id] > 5400) { client_print(id, print_chat, "You Have Bought Smoke Nade"); cs_set_user_money(id, cash[id] - 5400); give_item(id, "weapon_smokegrenade"); } else { client_print(id, print_chat, "You Dont Have Enough Money"); } } case 4: { if(cash[id] > 10000) { client_print(id, print_chat, "You Have Bought Shield"); cs_set_user_money(id, cash[id] - 10000); give_item(id, "weapon_shield"); } else { client_print(id, print_chat, "You Dont Have Enough Money"); } } case 5: { if(cash[id] > 8000) { client_print(id, print_chat, "You Have Bought Speed"); cs_set_user_money(id, cash[id] - 8000); // not worked yet } else { client_print(id, print_chat, "You Dont Have Enough Money"); } } case 6: { if(cash[id] > 4500) { client_print(id, print_chat, "You Have Bought Gravity"); cs_set_user_money(id, cash[id] - 4500); set_user_gravity(id, 0.25); } else { client_print(id, print_chat, "You Dont Have Enough Money"); } } }
menu_destroy(menu); return PLUGIN_HANDLED; }
Last edited by fLyiNG birdy; 09-08-2019 at 09:47.
|
|