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

Menu cs 1.6


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fallensylva
Junior Member
Join Date: Dec 2013
Location: VNG, Porto, Portugal
Old 12-28-2013 , 13:03   Menu cs 1.6
Reply With Quote #1

Hello I would like to ask for a plugin that has functions like the menu / shop that has to buy the invisible mode, parachute, and the main weapons in the game. Prices were to be easily hit. Thank you

PS I apologize if not posted on the right, thank place.

Last edited by fallensylva; 12-28-2013 at 17:17.
fallensylva is offline
noureddine.nasr
BANNED
Join Date: Sep 2013
Location: Morocco
Old 12-28-2013 , 13:05   Re: Menu cs 1.6
Reply With Quote #2

For

Any Mod?
noureddine.nasr is offline
fallensylva
Junior Member
Join Date: Dec 2013
Location: VNG, Porto, Portugal
Old 12-28-2013 , 13:33   Re: Menu cs 1.6
Reply With Quote #3

For cs 1.6 normal mode

Sorry was a bit rushed when I write, it will be possible to make a plugin like this? I refer there to buy the invisible part, I know that the use of pa but did not know whether to reposition it in the menu of this was grateful to who help me

Last edited by fallensylva; 12-28-2013 at 13:35. Reason: Bad Inglish :s
fallensylva is offline
fallensylva
Junior Member
Join Date: Dec 2013
Location: VNG, Porto, Portugal
Old 12-28-2013 , 16:35   Re: Menu cs 1.6
Reply With Quote #4

Someone can help me? Now I can specify better.
The plugin I want is a slight (major) modification to the shop plugin, so that it has the following items for sale there:

Super Knife - $ 12,000
Invisible - $ 16,000
Parachute - $ 500
M4 - $ 1,000
AK47 - $ 1,000
AWP - $ 1500
Deagle - $ 500
M4 + Deagle - $ 1,300
Deagle + AK47 - $ 1,300
AWP + Deagle - $ 1,800
50HP - $ 3000

I'm grateful to anyone who can do this, is I want to have a unique server and as yet seen any plugin of this kind would be great to put a plug in these Portuguese sv like mine
__________________
I'm happy, are u happy ?
fallensylva is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 12-28-2013 , 16:56   Re: Menu cs 1.6
Reply With Quote #5

Furien Mod?
__________________
Kia is offline
fallensylva
Junior Member
Join Date: Dec 2013
Location: VNG, Porto, Portugal
Old 12-28-2013 , 17:29   Re: Menu cs 1.6
Reply With Quote #6

I came back with more information and with media developed here is code, just add the missing purchase parachutes, the invisible mode ,super knife and 50HP, as we think it requires linking to external plugins, here I leave the code:

PHP Code:
#include <amxmodx>
#include <cstrike>

new const PLUGIN[] = "FreeLancer Shop"
new const VERSION[] = "0.1"
new const AUTHOR[] = "FallenSylva"

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

public 
shop(id)
{
    if(
is_user_alive(id))
    {
        new 
ShopMenu menu_create("Loja""shop")
        
menu_additem(ShopMenu"Paraquedas 500$""1"id)
        
menu_additem(ShopMenu"AK47 1500$""2"id)
        
menu_additem(ShopMenu"M4 1500$""3"id)
        
menu_additem(ShopMenu"AWP 1800$""4"id)
        
menu_additem(ShopMenu"Deagle 500$""5"id)
        
menu_additem(ShopMenu"Invisivel 16000$""6"id)
        
menu_additem(ShopMenu"Super Faca 12000$""7"id)
        
menu_additem(ShopMenu"50HP 3000""8"id)
        
menu_setprop(ShopMenuMPROP_EXIT )
        
menu_display(idShopMenu0)
    }
    return 
PLUGIN_CONTINUE
}

public 
shop(idShopMenuitem)
{
    new 
money cs_get_user_money(id)
    {
        switch(
item)
        {
            case 
0:
            {
                if(
money >= 500)
                {
                    new 
setmoney money 500
                    cs_set_user_money
(idclamp(setmoney050000))
                    
give_item(id"?")
                    
client_print(id"Pressiona E usar o paraquedas!")
                }
                return 
PLUGIN_CONTINUE
            
}
            case 
1:
            {
                if(
money >= 1500)
                {
                    new 
setmoney money 1500
                    cs_set_user_money
(idclamp(setmoney050000))
                    
give_item(id"weapon_ak47")
                    
client_print(id"Compraste a AK47!")
                }
                return 
PLUGIN_CONTINUE
            
}
            case 
2:
            {
                if(
money >= 1500)
                {
                    new 
setmoney money 1500
                    cs_set_user_money
(idclamp(setmoney050000))
                    
give_item(id"weapon_m4a1")
                    
client_print(id"Compraste uma M4!")
                }
            case 
3:
            {
                if(
money >= 1800)
                {
                    new 
setmoney money 1800
                    cs_set_user_money
(idclamp(setmoney050000))
                    
give_item(id"weapon_awp")
                    
client_print(id"Compraste uma AWP!")
                }
            case 
4:
            {
                if(
money >= 500)
                {
                    new 
setmoney money 500
                    cs_set_user_money
(idclamp(setmoney050000))
                    
give_item(id"weapon_deagle")
                    
client_print(id"Compraste uma Deagle!")
                }
            case 
5:
            {
                if(
money >= 16000)
                {
                    new 
setmoney money 16000
                    cs_set_user_money
(idclamp(setmoney050000))
                    
give_item(id"?")
                    
client_print(id"Fica quieto e invisivel!")
                }
            case 
6:
            {
                if(
money >= 12000)
                {
                    new 
setmoney money 12000
                    cs_set_user_money
(idclamp(setmoney050000))
                    
give_item(id"?"
                    
client_print(id"Compraste uma super faca!")
                }
            case 
7:
            {
                if(
money >= 3000)
                {
                    new 
setmoney money 3000
                    cs_set_user_money
(idclamp(setmoney050000))
                    
give_item(id"?")
                    
client_print(id"Compraste 50HP!")
                }
            }
        }
    }
    return 
PLUGIN_CONTINUE
}  


    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;

I use this code:

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>

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

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /shop""grenadeshop")
}

public 
grenadeshop(id)
{
    if(
is_user_alive(id))
    {
        new 
ShopMenu menu_create("Grenade Shop""shop_handler")
        
menu_additem(ShopMenu"HE 750$""1"id)
        
menu_additem(ShopMenu"FB 500$""2"id)
        
menu_additem(ShopMenu"SM 500$""3"id)
        
menu_setprop(ShopMenuMPROP_EXIT )
        
menu_display(idShopMenu0)
    }
    return 
PLUGIN_CONTINUE
}

public 
shop_handler(idShopMenuitem)
{
    new 
money cs_get_user_money(id)
    {
        switch(
item)
        {
            case 
0:
            {
                if(
money >= 750)
                {
                    new 
setmoney money 750
                    cs_set_user_money
(idclamp(setmoney050000))
                    
give_item(id"weapon_hegrenade"
                    
client_print(id"You have earned an HE GRENADE!")
                }
                return 
PLUGIN_CONTINUE
            
}
            case 
1:
            {
                if(
money >= 500)
                {
                    new 
setmoney money 500
                    cs_set_user_money
(idclamp(setmoney050000))
                    
give_item(id"weapon_flashbang"
                    
client_print(id"You have earned an FLASHBANG GRENADE!")
                }
                return 
PLUGIN_CONTINUE
            
}
            case 
2:
            {
                if(
money >= 500)
                {
                    new 
setmoney money 500
                    cs_set_user_money
(idclamp(setmoney050000))
                    
give_item(id"weapon_smokegrenade"
                    
client_print(id"You have earned an SMOKE GRENADE!")
                }
            }
        }
    }
    return 
PLUGIN_CONTINUE

Attention plugin plugin answers lie in my language PT-PT but if anyone wants to pick up the pass code for English no problem
__________________
I'm happy, are u happy ?

Last edited by fallensylva; 12-28-2013 at 18:55.
fallensylva is offline
fallensylva
Junior Member
Join Date: Dec 2013
Location: VNG, Porto, Portugal
Old 12-28-2013 , 17:50   Re: Menu cs 1.6
Reply With Quote #7

Not furien MOD, none mod at all, just a shop to users buy this tings....
__________________
I'm happy, are u happy ?

Last edited by fallensylva; 12-29-2013 at 10:14.
fallensylva is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 12-28-2013 , 18:07   Re: Menu cs 1.6
Reply With Quote #8

Fallen. Your give_item code won't work you need to close the quotes and brackets
__________________
Blizzard_87 is offline
fallensylva
Junior Member
Join Date: Dec 2013
Location: VNG, Porto, Portugal
Old 12-28-2013 , 18:56   Re: Menu cs 1.6
Reply With Quote #9

Quote:
Originally Posted by Blizzard_87 View Post
Fallen. Your give_item code won't work you need to close the quotes and brackets
Tankes I had used as a model to be easier, and with the copy past even noticed the missing ")"
__________________
I'm happy, are u happy ?
fallensylva is offline
fallensylva
Junior Member
Join Date: Dec 2013
Location: VNG, Porto, Portugal
Old 12-29-2013 , 13:59   Re: Menu cs 1.6
Reply With Quote #10

HERE are this plugin that I found in the forum I'm going to try it, I think it have work ;) tankes all.
__________________
I'm happy, are u happy ?
fallensylva 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 04:51.


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