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

[Plugin] Vip Menu For All


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
vulcaNN
Junior Member
Join Date: Dec 2018
Old 01-11-2019 , 18:49   [Plugin] Vip Menu For All
Reply With Quote #1

Hi, I leave here a new public plugin for you. The Free Vip plugin is a plugin that after the third round appears a weapons menu for everyone. If there is any mistake, tell me.

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#include <ColorChat>

new g_c4g_round

#define PREFIX_CENTER "[ Vip Free ]"
#define PREFIX_CHAT "^4[ Vip Free ]"

public plugin_init()
{
    
register_plugin("Free Vip Menu""""vulcaNN")
    
    
register_logevent("logevent_round_start"2"1=Round_Start")
    
register_event("TextMsg""Event_Round_Restart""a""2=#Game_Commencing""2=#Game_will_restart_in")
}

public 
logevent_round_start()
{
    
g_round++
    
    if(
g_round >= 3)
    {
        for(new 
1<= get_maxplayers(); i++)
        {
            if(!
is_user_connected(i))
                continue
                
            
menu_vmenu(i)
        }
    }
}

public 
Event_Round_Restart()
{
    
g_round 0
}

public 
menu_vmenu(id)
{
    if(
g_round 3)
    {
        
// ColorChat(id, GREEN, "%s ^01The Vip Menu appears from the third round.", PREFIX_CHAT) ; This is for if they wanted to tell you from which round the menu appears.
        
return PLUGIN_HANDLED
    
}
    
    
OpenMenu(id)
    return 
PLUGIN_HANDLED;
}

public 
OpenMenu(id)
{
    new 
menu menu_create("\r[ Free Vip ]^n\yMenu Vip""OpenMenu_sub")
    
    
menu_additem(menu"\wAK47 + Deagle""0"0)
    
menu_additem(menu"\wM4A1 + Deagle""1"0)
    
    
menu_setprop(menuMPROP_EXITNAME"\wExit")
    
    
menu_display(idmenu0)
}

public 
OpenMenu_sub(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    
    switch(
item)
    {
        case 
0:
        {
            
select_ak47(id)
        }
        case 
1:
        {
            
select_m4a1(id)
        }
    }
    
menu_destroy(menu)
    return 
PLUGIN_HANDLED
}

public 
select_ak47(id)
{
    
strip_user_weapons(id)
    
give_item(id"weapon_knife")
    
give_item(id"item_assaultsuit")
    
give_item(id"weapon_hegrenade")
    
give_item(id"weapon_flashbang")
    
give_item(id"weapon_flashbang")
    
give_item(id"weapon_ak47")
    
cs_set_user_bpammo(idCSW_AK4790)
    
give_item(id"weapon_deagle")
    
cs_set_user_bpammo(idCSW_DEAGLE35)
    
    if(
user_has_weapon(idCSW_C4))
        
g_c4 true
    
    
if(cs_get_user_team(id) == CS_TEAM_CT)
    {
        
give_item(id"item_thighpack")
    }
    else if(
cs_get_user_team(id) == CS_TEAM_T)
    {
        if(
g_c4)
        {
            
give_item(id"weapon_c4")
            
cs_set_user_plant(id11)
        }
    }
        
    
client_print(idprint_center"%s Received AK47 & Deagle !"PREFIX_CENTER)
}

public 
select_m4a1(id)
{
    
strip_user_weapons(id)
    
give_item(id"weapon_knife")
    
give_item(id"item_assaultsuit")
    
give_item(id"weapon_hegrenade")
    
give_item(id"weapon_flashbang")
    
give_item(id"weapon_flashbang")
    
give_item(id"weapon_m4a1")
    
cs_set_user_bpammo(idCSW_M4A190)
    
give_item(id"weapon_deagle")
    
cs_set_user_bpammo(idCSW_DEAGLE35)
    
    if(
user_has_weapon(idCSW_C4))
        
g_c4 true
    
    
if(cs_get_user_team(id) == CS_TEAM_CT)
    {
        
give_item(id"item_thighpack")
    }
    else if(
cs_get_user_team(id) == CS_TEAM_T)
    {
        if(
g_c4)
        {
            
give_item(id"weapon_c4")
            
cs_set_user_plant(id11)
        }
    }
        
    
client_print(idprint_center"%s Received M4A1 & Deagle !"PREFIX_CENTER)

By: vulcaNN
Attached Files
File Type: sma Get Plugin or Get Source (Free_Vip.sma - 836 views - 3.0 KB)
vulcaNN is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-11-2019 , 18:52   Re: [Plugin] Vip Menu For All
Reply With Quote #2

thnx best plugin.
__________________
edon1337 is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 01-12-2019 , 07:23   Re: [Plugin] Vip Menu For All
Reply With Quote #3

one out 1 milion
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
Darkwob
BANNED
Join Date: Oct 2018
Old 01-12-2019 , 19:09   Re: [Plugin] Vip Menu For All
Reply With Quote #4

what section will we paste the downloaded file in SourceMod folder ? So how do we install it ? I'm also playing Left 4 Dead 2,this game is uyumlum the game on my own computer, I'm going to use this plug-in also plugin views trouble ?
Darkwob is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 01-13-2019 , 06:30   Re: [Plugin] Vip Menu For All
Reply With Quote #5

Quote:
Originally Posted by Darkwob View Post
what section will we paste the downloaded file in SourceMod folder ? So how do we install it ? I'm also playing Left 4 Dead 2,this game is uyumlum the game on my own computer, I'm going to use this plug-in also plugin views trouble ?
This plugin doesn't work on SourceMOD.
__________________
Relaxing is offline
vulcaNN
Junior Member
Join Date: Dec 2018
Old 01-15-2019 , 03:51   Re: [Plugin] Vip Menu For All
Reply With Quote #6

This plugin is work for amxmodx.
vulcaNN is offline
erik_pro
New Member
Join Date: Jan 2019
Old 01-18-2019 , 09:14   Re: [Plugin] Vip Menu For All
Reply With Quote #7

Thanks so much for plugin.

Last edited by erik_pro; 01-18-2019 at 09:52.
erik_pro is offline
Darkwob
BANNED
Join Date: Oct 2018
Old 02-04-2019 , 23:30   Re: [Plugin] Vip Menu For All
Reply With Quote #8

so for left 4 dead 2 using ?
Darkwob is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-07-2020 , 12:03   Re: [Plugin] Vip Menu For All
Reply With Quote #9

We have enough vip plugins. Unapproved.
__________________
HamletEagle is offline
Reply


Thread Tools
Display Modes

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 08:22.


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