AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Menu cs 1.6 (https://forums.alliedmods.net/showthread.php?t=232292)

fallensylva 12-28-2013 13:03

Menu cs 1.6
 
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.

noureddine.nasr 12-28-2013 13:05

Re: Menu cs 1.6
 
For

Any Mod?

fallensylva 12-28-2013 13:33

Re: Menu cs 1.6
 
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

fallensylva 12-28-2013 16:35

Re: Menu cs 1.6
 
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 :)

Kia 12-28-2013 16:56

Re: Menu cs 1.6
 
Furien Mod?

fallensylva 12-28-2013 17:29

Re: Menu cs 1.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 :)

fallensylva 12-28-2013 17:50

Re: Menu cs 1.6
 
Not furien MOD, none mod at all, just a shop to users buy this tings....

Blizzard_87 12-28-2013 18:07

Re: Menu cs 1.6
 
Fallen. Your give_item code won't work you need to close the quotes and brackets

fallensylva 12-28-2013 18:56

Re: Menu cs 1.6
 
Quote:

Originally Posted by Blizzard_87 (Post 2077739)
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 ")"

fallensylva 12-29-2013 13:59

Re: Menu cs 1.6
 
HERE are this plugin that I found in the forum I'm going to try it, I think it have work ;) tankes all.


All times are GMT -4. The time now is 20:24.

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