Raised This Month: $51 Target: $400
 12% 

[Help] Shop Plugin/Sma


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fLyiNG birdy
Junior Member
Join Date: Sep 2019
Old 09-08-2019 , 09:47   [Help] Shop Plugin/Sma
Reply With Quote #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(PLUGINVERSIONAUTHOR)
    
    
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(menuMPROP_EXITMEXIT_ALL);

    
menu_display(idmenu0);

}

public 
cmdShop_handler(idmenuitem)
{

    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }


    new 
data[6], szName[64];
    new 
accesscallback;

    
menu_item_getinfo(menuitemaccessdata,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(idprint_chat"You Have Bought HE Nade");
                
cs_set_user_money(idcash[id] - 7000);
                
give_item(id"weapon_hegrenade");
            }
            else {
                
client_print(idprint_chat"You Dont Have Enough Money");
            }
        }
        case 
2:
        {
            if(
cash[id] > 6000)
            {
                
client_print(idprint_chat"You Have Bought Flash Bang");
                
cs_set_user_money(idcash[id] - 6000);
                
give_item(id"weapon_flashbang");
            }
            else {
                
client_print(idprint_chat"You Dont Have Enough Money");
            }
        }
        case 
3:
        {
            if(
cash[id] > 5400)
            {
                
client_print(idprint_chat"You Have Bought Smoke Nade");
                
cs_set_user_money(idcash[id] - 5400);
                
give_item(id"weapon_smokegrenade");
            }
            else {
                
client_print(idprint_chat"You Dont Have Enough Money");
            }
        }
        case 
4:
        {
            if(
cash[id] > 10000)
            {
                
client_print(idprint_chat"You Have Bought Shield");
                
cs_set_user_money(idcash[id] - 10000);
                
give_item(id"weapon_shield");
            }
            else {
                
client_print(idprint_chat"You Dont Have Enough Money");
            }    
        }
        case 
5:
        {
            if(
cash[id] > 8000)
            {
                
client_print(idprint_chat"You Have Bought Speed");
                
cs_set_user_money(idcash[id] - 8000);
                
// not worked yet
            
}
            else {
                
client_print(idprint_chat"You Dont Have Enough Money");
            }            
        }
        case 
6:
        {
            if(
cash[id] > 4500)
            {
                
client_print(idprint_chat"You Have Bought Gravity");
                
cs_set_user_money(idcash[id] - 4500);
                
set_user_gravity(id0.25);
            }
            else {
                
client_print(idprint_chat"You Dont Have Enough Money");
            }            
        }
    }


    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;


Last edited by fLyiNG birdy; 09-08-2019 at 09:47.
fLyiNG birdy is offline
skatz_ws
Junior Member
Join Date: Aug 2019
Old 09-08-2019 , 11:46   Re: [Help] Shop Plugin/Sma
Reply With Quote #2

Wrong section. This section it's to help you with your plugin, not to request one.
If you want to make a request, go to Suggestions / Requests
skatz_ws is offline
fLyiNG birdy
Junior Member
Join Date: Sep 2019
Old 09-08-2019 , 11:51   Re: [Help] Shop Plugin/Sma
Reply With Quote #3

thank u (for sending me to the right section)
fLyiNG birdy is offline
Reply



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 19:53.


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