Raised This Month: $37 Target: $400
 9% 

[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 , 19: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 - 8 views - 3.0 KB)
vulcaNN is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Traphouse
Old 01-11-2019 , 19:52   Re: [Plugin] Vip Menu For All
Reply With Quote #2

thnx best plugin.
__________________
Knife Bounty
CS Battle Royale (PUBG)
Contact/Ticket System

Santas vs Monsters New Private Mod (PM if interested)

Accepting paid work.
edon1337 is offline
Send a message via Skype™ to edon1337
Nutu_
Senior Member
Join Date: Mar 2016
Location: Romania, Timisoara
Old 01-12-2019 , 08: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
New Member
Join Date: Oct 2018
Old 01-12-2019 , 20: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
Veteran Member
Join Date: Jun 2016
Location: Catlands
Old 01-13-2019 , 07: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.
__________________
Have A Relaxing Day | Wiki
aim_relaxing
Relaxing is offline
vulcaNN
Junior Member
Join Date: Dec 2018
Old Today , 04:51   Re: [Plugin] Vip Menu For All
Reply With Quote #6

This plugin is work for amxmodx.
vulcaNN 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 20:47.


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