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

Help / Support Super VIP Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mahdi990
Junior Member
Join Date: Mar 2017
Old 03-24-2017 , 21:43   Super VIP Menu
Reply With Quote #1

im made super vip menu but i want it work only in normal mode and in multi infection mode
and i want make free super vip time like 00-11
Attached Files
File Type: sma Get Plugin or Get Source (svip_menu.sma - 631 views - 3.2 KB)
Mahdi990 is offline
Mahdi990
Junior Member
Join Date: Mar 2017
Old 03-25-2017 , 05:19   Re: Super VIP Menu
Reply With Quote #2

Nice No any help or answer -_-
Mahdi990 is offline
sirerick
Senior Member
Join Date: Jul 2012
Location: Venezuela
Old 03-26-2017 , 10:00   Re: Super VIP Menu
Reply With Quote #3

test

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fun>
#include <cstrike>
#include <fakemeta>
#include <zp50_gamemodes>

new g_MsgSync

new g_GameModeMultiID
new g_GameModeInfectionID

new g_armor
new g_goldenak
new g_Janus3

public plugin_init()
{
    
register_plugin("SVIP Menu""1.0""SNIPER")
    
register_concmd"svip_menu","svipmenu" );
}
public 
svipmenuid )
{
    if(
zp_gamemodes_get_current() == g_GameModeInfectionID || zp_gamemodes_get_current() == g_GameModeMultiID)
    {
        if(!(
get_user_flags(id) & ADMIN_LEVEL_H))
        {
            
ChatColor(id"!g[SVIP] You Have no Access to Use The Super Vip menu.");
        
            return 
PLUGIN_HANDLED;
        }
    
        new 
menu menu_create"\wSuper VIP Menu""menu_handler" );
        
menu_additemmenu"\wSuper Armor  \y1000\r$""");
        
menu_additemmenu"\wJanus-3  \y8000\r$""");
        
menu_additemmenu"\wGolden AK47  \y3000\r$""");
        
menu_setpropmenuMPROP_EXITMEXIT_ALL );
        
menu_displayidmenu);
        
        {
    }    

}

public 
menu_handleridmenuitem )
{
    switch( 
item )
    {
        case 
0// g_armor
        
{
            new 
money cs_get_user_money(id)
    
            if (
money >= 1000)
            {
                
cs_set_user_money(idmoney 1000)
                
client_cmd(id"svip_armor")
                
ChatColor(id,"!g[SVIP] !yYou have bought !gSuper Armor !yEngoy Killing Zombie");
            }
    
            else
            {
                
ChatColor(id,"!g[SVIP] !yYou dont hav enough money to buy !gSuper Armor")
            }
        }
        case 
1// g_Janus3
        
{
            new 
money cs_get_user_money(id)
    
            if (
money >= 8000)
            {
                
cs_set_user_money(idmoney 8000)
                
client_cmd(id"svip_j3")
                
ChatColor(id,"!g[SVIP] !yYou have bought !gJanus-3 !yEngoy Killing Zombie");
            }
    
            else
            {
                
ChatColor(id,"!g[SVIP] !yYou dont hav enough money to buy !gJanus-3")
            }
        }
        case 
2// g_goldenak
        
{
            new 
money cs_get_user_money(id)
    
            if (
money >= 3000)
            {
                
cs_set_user_money(idmoney 3000)
                
client_cmd(id"svip_goldenak")
                
ChatColor(id,"!g[SVIP] !yYou have bought !gGolden AK47 !yEngoy Killing Zombie");
            }
    
            else
            {
                
ChatColor(id,"!g[SVIP] !yYou dont hav enough money to buy !gGolden AK47")
            }
        }
    }

    
menu_destroymenu );
    return 
PLUGIN_HANDLED;
}

public 
plugin_cfg()
{
    
g_GameModeInfectionID zp_gamemodes_get_id("Infection Mode")
    
g_GameModeMultiID zp_gamemodes_get_id("Multiple Infection Mode")
}

public 
event_round_start()
{
    
g_armor 0
    g_goldenak 
0
    g_Janus3 
0
}

// Stock: ChatColor!
stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4"// Green Color
    
replace_all(msg190"!y""^1"// Default Color
    
replace_all(msg190"!t""^3"// Team Color
    
    
if (idplayers[0] = id; else get_players(playerscount"ch")
    {
        for (new 
0counti++)
        {
            if (
is_user_connected(players[i]))
            {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }

__________________
√ Zombie plague + greats updates. finished.
√ Surf-Mod level + greats updates Finished.
√ Zombie Scenario like cso. Finished.
Click Here
√ Call Of Duty MOD. Finished.
Click Here


Sorry for my bad english. I'm using translate.
sirerick is offline
Mahdi990
Junior Member
Join Date: Mar 2017
Old 03-28-2017 , 08:23   Re: Super VIP Menu
Reply With Quote #4

thanks im found it and i made it better
thanks for your help
Mahdi990 is offline
Mahdi990
Junior Member
Join Date: Mar 2017
Old 03-28-2017 , 08:29   Re: Super VIP Menu
Reply With Quote #5

i need your help here if u can
https://forums.alliedmods.net/showth...49#post2507349

Last edited by Mahdi990; 03-28-2017 at 08:32.
Mahdi990 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 03:10.


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