Raised This Month: $ Target: $400
 0% 

Shop Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
RiFGanG
Member
Join Date: May 2015
Location: AL-Houceïma, Morroco
Old 07-15-2015 , 12:28   Shop Menu
Reply With Quote #1

This Plugin Shop Menu

Code:
1. Grenade HE [6000$]
2. Grenade Flash [4000$]
3. Gravity [8000$]
4. AWP [15000$]
5. 150HP [7000$]
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#include <xs>
#include <nvault>
#include <engine>
#include <colorchat>

#define PLUGIN "Shop Menu"
#define VERSION "1.0"
#define AUTHOR "BooHLaaL"

new cash[33];

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /shop""CmdShop"0);
    
register_clcmd("say shop""CmdShop"0);
    
}


public 
CmdShop(id)
{

    new 
menu menu_create("\r[R#G] \yShop Menu:""CmdShop_Get");
    
    
menu_additem(menu"\yGrenade HE \d[\r6000$\d]""1"0);
    
menu_additem(menu"\yGrenade Flash \d[\r4000$\d]""2"0);
    
menu_additem(menu"\yGravity \d[\r8000$\d]""4"0);
    
menu_additem(menu"\yAWP \d[\r15000$\d]""5"0);
    
menu_additem(menu"\y150 HP \d[\r7000$\d]""6"0);

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);

    
menu_display(idmenu0);

}

public 
CmdShop_Get(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] > 6000)
            {
                
ColorChat(idGREEN"^4[R#G] ^1You Bought ^4[Grenade HE]");
                
cs_set_user_money(idcash[id] - 6000);
                
give_item(id"weapon_hegrenade");
            }
            else {
                
ColorChat(idGREEN"^4[R#G] ^1You Don't Have Enough ^4[Money]");
            }
        }
        case 
2:
        {
           if(
cash[id] > 4000)
            {
                
ColorChat(idGREEN"^4[R#G] ^1You Bought ^4[Grenade Flash]");
                
cs_set_user_money(idcash[id] - 4000);
                
give_item(id"weapon_flashbang");
            }
            else {
                
ColorChat(idGREEN"^1[R#G] ^1You Don't Have Enough ^4[Money]");
            }           
        }
        case 
4:
        {
            if(
cash[id] > 8000)
            {
                
ColorChat(idGREEN"^4[R#G] ^1You Bought ^4[Gravity]");
                
cs_set_user_money(idcash[id] - 8000);
                
set_user_gravity(id0.25);
            }
            else {
                
ColorChat(idGREEN"^4[R#G] ^1You Don't Have Enough ^4[Money]");
            }
        }
        case 
5:
        {
            if(
cash[id] > 15000)
            {
                
ColorChat(idGREEN"^4[R#G] ^1You Bought ^4[AWP]");
                
cs_set_user_money(idcash[id] - 15000);
                
give_item(id"weapon_awp");
            }
            else {
                
ColorChat(idGREEN"^4[R#G] ^1You Don't Have Enough ^4[Money]");
            }
        }
        case 
6:
        {
            if(
cash[id] > 7000)
            {
                
ColorChat(idGREEN"^4[R#G] ^1You Bought ^4[150 HP]");
                
cs_set_user_money(idcash[id] - 7000)
                
set_user_health(id150);
            }
            else {
                
ColorChat(idGREEN"^4[R#G] ^1You Don't Have Enough ^4[Money]");            
                return 
0
                
}
            }
        }
    } 
__________________
AL-Houceïma

[RiF#GanG] - [RiF#BoYs] - [Bario#Briro] - [Morroco]
RiFGanG is offline
Old 07-15-2015, 13:26
ZiZox
This message has been deleted by ZiZox.
ZiZox
Senior Member
Join Date: Sep 2014
Location: Morocco
Old 07-15-2015 , 13:27   Re: Shop Menu
Reply With Quote #3

please stop post such kind of plugins, that's so easy..

~>

__________________
ZiZox is offline
Send a message via Skype™ to ZiZox
TheEpicCoders
Junior Member
Join Date: Jul 2015
Old 07-15-2015 , 13:54   Re: Shop Menu
Reply With Quote #4

Quote:
Originally Posted by RiFGanG View Post
This Plugin Shop Menu

Code:
1. Grenade HE [6000$]
2. Grenade Flash [4000$]
3. Gravity [8000$]
4. AWP [15000$]
5. 150HP [7000$]
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#include <xs>
#include <nvault>
#include <engine>
#include <colorchat>

#define PLUGIN "Shop Menu"
#define VERSION "1.0"
#define AUTHOR "BooHLaaL"

new cash[33];

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /shop""CmdShop"0);
    
register_clcmd("say shop""CmdShop"0);
    
}


public 
CmdShop(id)
{

    new 
menu menu_create("\r[R#G] \yShop Menu:""CmdShop_Get");
    
    
menu_additem(menu"\yGrenade HE \d[\r6000$\d]""1"0);
    
menu_additem(menu"\yGrenade Flash \d[\r4000$\d]""2"0);
    
menu_additem(menu"\yGravity \d[\r8000$\d]""4"0);
    
menu_additem(menu"\yAWP \d[\r15000$\d]""5"0);
    
menu_additem(menu"\y150 HP \d[\r7000$\d]""6"0);

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);

    
menu_display(idmenu0);

}

public 
CmdShop_Get(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] > 6000)
            {
                
ColorChat(idGREEN"^4[R#G] ^1You Bought ^4[Grenade HE]");
                
cs_set_user_money(idcash[id] - 6000);
                
give_item(id"weapon_hegrenade");
            }
            else {
                
ColorChat(idGREEN"^4[R#G] ^1You Don't Have Enough ^4[Money]");
            }
        }
        case 
2:
        {
           if(
cash[id] > 4000)
            {
                
ColorChat(idGREEN"^4[R#G] ^1You Bought ^4[Grenade Flash]");
                
cs_set_user_money(idcash[id] - 4000);
                
give_item(id"weapon_flashbang");
            }
            else {
                
ColorChat(idGREEN"^1[R#G] ^1You Don't Have Enough ^4[Money]");
            }           
        }
        case 
4:
        {
            if(
cash[id] > 8000)
            {
                
ColorChat(idGREEN"^4[R#G] ^1You Bought ^4[Gravity]");
                
cs_set_user_money(idcash[id] - 8000);
                
set_user_gravity(id0.25);
            }
            else {
                
ColorChat(idGREEN"^4[R#G] ^1You Don't Have Enough ^4[Money]");
            }
        }
        case 
5:
        {
            if(
cash[id] > 15000)
            {
                
ColorChat(idGREEN"^4[R#G] ^1You Bought ^4[AWP]");
                
cs_set_user_money(idcash[id] - 15000);
                
give_item(id"weapon_awp");
            }
            else {
                
ColorChat(idGREEN"^4[R#G] ^1You Don't Have Enough ^4[Money]");
            }
        }
        case 
6:
        {
            if(
cash[id] > 7000)
            {
                
ColorChat(idGREEN"^4[R#G] ^1You Bought ^4[150 HP]");
                
cs_set_user_money(idcash[id] - 7000)
                
set_user_health(id150);
            }
            else {
                
ColorChat(idGREEN"^4[R#G] ^1You Don't Have Enough ^4[Money]");            
                return 
0
                
}
            }
        }
    } 
He dident even make it! Read the who's the author...
TheEpicCoders is offline
ZiZox
Senior Member
Join Date: Sep 2014
Location: Morocco
Old 07-15-2015 , 14:00   Re: Shop Menu
Reply With Quote #5

well, his real name is "BooHLaaL" as i think. x)
__________________
ZiZox is offline
Send a message via Skype™ to ZiZox
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 07-15-2015 , 17:17   Re: Shop Menu
Reply With Quote #6

You just got a plugin unapproved because it's a crap and you release another, that is another crap. You'll force backstabnoob to login again..
__________________
Jhob94 is offline
ZiZox
Senior Member
Join Date: Sep 2014
Location: Morocco
Old 07-15-2015 , 17:19   Re: Shop Menu
Reply With Quote #7

Quote:
Originally Posted by Jhob94 View Post
You'll force backstabnoob to login again..
hhahahahahah yeah ...
__________________
ZiZox is offline
Send a message via Skype™ to ZiZox
Linkin Hisoka
Senior Member
Join Date: Sep 2014
Location: Morocco, Marrakesh
Old 07-15-2015 , 17:29   Re: Shop Menu
Reply With Quote #8

Quote:
Originally Posted by Backstabnoob View Post
this garbage)
__________________
Moroccan and proud
Linkin Hisoka is offline
ZiZox
Senior Member
Join Date: Sep 2014
Location: Morocco
Old 07-15-2015 , 17:30   Re: Shop Menu
Reply With Quote #9

hahahahahahahahahahahahahahah :'DDDD
__________________
ZiZox is offline
Send a message via Skype™ to ZiZox
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 23:18.


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