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

Add More items this shop


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AkkYrOcK
Junior Member
Join Date: Aug 2016
Location: Streat
Old 02-16-2017 , 02:15   Add More items this shop
Reply With Quote #1

i have add to this shop more items
(ex: health , double damage, speed , unlimited ammo, all grenades pack, chameleon, no recoil, gravity)
note:- this shop items unlock bye level

ex:- 1.health [unlock to level 1]
2.double damage [unlock to level 2]

Quote:
Originally Posted by AkkYrOcK
Quote:
Originally Posted by pupdebox View Post
Edited: Try again
PHP Code:
#include <amxmodx> 
#include <fun> 

new flashok[33]
new 
bool:wait[33]

public 
plugin_init() 

    
register_clcmd("say /flash""ShowMenu");
    
register_logevent("startroundx"2"1=Round_Start");
}

public 
client_putinserver(id)
{
    
flashok[id] = 0
    wait
[id] = false
}

public 
client_disconnect(id)
{
    
flashok[id] = 0
    wait
[id] = false


public 
ShowMenu(id
{
    if(
flashok[id] == 0){
    new 
menu menu_create("Grenade_Menu""mh_MyMenu"); 
    
menu_additem(menu"flashbang"""0); // case 0 
    
menu_display(idmenu0);
    }
    else if(
flashok[id] == && !wait[id])
    
client_print(idprint_chat"You have to wait 1 round in order to open this menu.")
    else if(
flashok[id] == && wait[id])
    
client_print(idprint_chat"You have already used the menu in this round.")
    return 
PLUGIN_HANDLED


public 
mh_MyMenu(idmenuitem

    switch(
item
    { 
        case 
.. 7:  
        {
            if(
item == 0){
            
give_item(id"weapon_flashbang"); 
            
client_print(idprint_chat"You have purhcased flashbang");
            }
            
flashok[id]++
            
wait[id] = true
        

    }
    
menu_destroy(menu); 
    return 
PLUGIN_HANDLED
}

public 
startroundx()
{    
    for(new 
1;i<=get_maxplayers();i++){
    if(
wait[i] && is_user_connected(i) && !is_user_bot(i))
    
wait[i] = false
    
else if(is_user_connected(i) && !(is_user_bot(i)) && !wait[i])
    
flashok[i] = 0
    
}

AkkYrOcK is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-16-2017 , 07:52   Re: Add More items this shop
Reply With Quote #2

That's not even a shop. Use this - https://forums.alliedmods.net/showthread.php?t=284603
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 02:56.


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