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

[Fix My Sma Plss]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chihab Eddine
Member
Join Date: Aug 2014
Location: Morroco
Old 08-02-2015 , 10:47   [Fix My Sma Plss]
Reply With Quote #1

Can Sameone Fix My Sma
shop.sma
Chihab Eddine is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 08-02-2015 , 11:56   Re: [Fix My Sma Plss]
Reply With Quote #2

What's the problem?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Chihab Eddine
Member
Join Date: Aug 2014
Location: Morroco
Old 08-02-2015 , 12:57   Re: [Fix My Sma Plss]
Reply With Quote #3

I Have Error In My Sma Can You Fix It ??
Chihab Eddine is offline
Loupu.
Member
Join Date: Jul 2013
Old 08-02-2015 , 15:16   Re: [Fix My Sma Plss]
Reply With Quote #4

Oke , i think i fixed it , u just have tu try it
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

public plugin_init() {
    
register_clcmd("say /shop""cmdShop"0)
}

public 
plugin_config(){
    
server_cmd("sv_maxspeed 1000") ;
}

public 
cmdShop(id)
{
    
    new 
menu menu_create("\rShop Menu""cmdShop_handler");
    
    
menu_additem(menu"\wFire Grenade \y[\r300$\y]""1" 0);
    
menu_additem(menu"\wFrost Grenade \y[\r300$\y]""2" 0);
    
menu_additem(menu"\wSpeed Boost \y[\r1500$\y]""3" 0);
    
menu_additem(menu"\wMachinGun \y[\r2000$\y]""4" 0);
    
menu_additem(menu"\wG3SG1 Auto-Sniper \y[\r2500$\y]""5" 0);
    
menu_additem(menu"\wLaserMine \y[\r2500$\y]""6" 0);
    
menu_additem(menu"\wMiniGun \y[\r6000$\y]""7" 0);
    
menu_additem(menu"\wGolden Ak47 \y[\r8000$\y]""8" 0);
    
    
menu_setprop(menuMPROP_EXITNAME"close")
    
    
menu_display(idmenu0)
    
}

public 
cmdShop_handler(idmenuitem)
{
    if( 
item == MPROP_EXITNAME )
    {
        return 
PLUGIN_HANDLED;
        }
      
     
    new 
data[6], szName[64], cash[33];
    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] > 300)
            {
                
client_print(idprint_chat"You Have Bought Fire Grenade");
                
cs_set_user_money(idcash[id] - 300);
                
give_item(id"weapon_hegrenade");
            }
            else {
                
client_print(idprint_chat"You Dont Have Enough Money");
            }
        }
        case 
2:
        {
            if(
cash[id] > 300)
                           {
                   
client_print(idprint_chat"You Have Bought Frost Grenade");
                
cs_set_user_money(idcash[id] - 300);
                
give_item(id"weapon_hegrenade");
            }
            else {
                
client_print(idprint_chat"You Don't Have Enough Money");
            }
        }
        case 
3: {
            
set_user_maxspeed(idget_user_maxspeed(id) +250.0)
            }
        case 
4:
        {
            if(
cash[id] > 2000)
            {
                
client_print(idprint_chat"You Have Bought MachinGun");
                
cs_set_user_money(idcash[id] - 2000);
                
give_item(id"weapon_m249");
            }
            else {
                
client_print(idprint_chat"You Don't Have Enough Money");
            }
        }
        case 
5:
        {
            if(
cash[id] > 2500)
            {
                
client_print(idprint_chat"You Have Bought G3SG1 Auto-Sniper");
                
cs_set_user_money(id,cash[id] - 2500)
                
give_item(id"weapon_g3sg1");
            }
            else {
                
client_print(idprint_chat"You Don't Have Enough Money");
            }
        }
        case 
6client_cmd (id"say /lm")
        case 
7client_cmd (id"say /minigun")
        case 
8client_cmd (id"say /goldenak47")
    }
    return 
PLUGIN_HANDLED;


Last edited by Loupu.; 08-02-2015 at 15:23.
Loupu. is offline
Old 08-02-2015, 15:32
Chihab Eddine
This message has been deleted by Chihab Eddine. Reason: 2 msg
Chihab Eddine
Member
Join Date: Aug 2014
Location: Morroco
Old 08-02-2015 , 15:35   Re: [Fix My Sma Plss]
Reply With Quote #5

Thank's Working
Chihab Eddine 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 20:43.


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