Raised This Month: $ Target: $400
 0% 

[REQ] free guns plugins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vase070
Senior Member
Join Date: Jun 2011
Old 01-15-2015 , 22:22   [REQ] free guns plugins
Reply With Quote #1

can someone make a plugin lets say if a person has ADMIN_RCON access it should give him a menu every round where he can chose to get FREE AK-47 FREE M4A1 FREE AWP also ofc plus free HE,FB,SB
armor+help and nothing more
vase070 is offline
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 01-16-2015 , 01:57   Re: [REQ] free guns plugins
Reply With Quote #2

Quote:
Originally Posted by vase070 View Post
can someone make a plugin lets say if a person has ADMIN_RCON access it should give him a menu every round where he can chose to get FREE AK-47 FREE M4A1 FREE AWP also ofc plus free HE,FB,SB
armor+help and nothing more
A lot of VIP menu plugins with same functionality exist .. kindly search .. You can then set the VIP menu Access to ADMIN_RCON Flag.
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then

Last edited by devilicioux; 01-16-2015 at 01:58.
devilicioux is offline
popeye10
Senior Member
Join Date: May 2014
Location: Navi Mumbai (India)
Old 01-16-2015 , 04:56   Re: [REQ] free guns plugins
Reply With Quote #3

try this ( not tested )

PHP Code:
/************************************************
*
*
*
*        
*
*             VIP
*
*                   by - POPEYE
*
*
*
*
*
**************************************************/

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>

#define PLUGIN "VIP"
#define VERSION "1.0"
#define AUTHOR "POPEYE"

new bool:OneTimePerRound[33]

new const 
VIP_ACCESS ADMIN_RCON

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_clcmd("say /vipmenu""ShowMenu");
    
register_logevent"eRoundStart"2"1=Round_Start" );
    
RegisterHam(Ham_Spawn"player""Player_Spawn"1);
}

public 
eRoundStart()
{
    new 
iPlayers[32], iNumid
    get_players
(iPlayersiNum)
    for(new 
i;iNum;i++)
    {
        
id iPlayers[i]
        
OneTimePerRound[id] = false
    
}
}

public 
ShowMenu(id)
{
    if(
get_user_flags(id) & VIP_ACCESS)
    { 
        if(
is_user_alive(id))
        { 
            if(!
OneTimePerRound[id])
            {
                new 
menu menu_create("\yVIP Menu :""Menu");
                
                
menu_additem(menu"AK-47"""0);
                
menu_additem(menu"M4A1"""0);
                
menu_additem(menu"AWP"""0);
                                
                
menu_display(idmenu0);
            }
            else 
client_print_color(idprint_chat"!tWeapons can be taken !g1 !ttime per round !!!!!!");
        }
        else 
client_print_color(idprint_chat"!tYou have already !gDead !!!!!!");
    }
    else 
client_print_color(idprint_chat"!tOnly for !gVIP !tplayer !!!!!!");
}

public 
Menu(idmenuitem)
{
    switch(
item)
    {
        case 
0:
        {
            
give_item(id"weapon_ak47")
            
cs_set_user_bpammoid CSW_AK4790 )
            
OneTimePerRound[id] = true
        
}
        case 
1:
        {
            
give_item(id"weapon_m4a1")
            
cs_set_user_bpammoid CSW_M4A190 )
            
OneTimePerRound[id] = true
        
}
        case 
2
        {
            
give_item(id"weapon_awp")
            
cs_set_user_bpammoid CSW_AWP30 )
            
OneTimePerRound[id] = true
        
}
    }
    
    
menu_destroy(menu);
}

public 
Player_Spawn(id)
{
    if(
is_user_alive (id) && get_user_flags(id) & VIP_ACCESS){
        
        
give_item(id"weapon_hegrenade");
        
give_item(id"weapon_flashbang");
        
give_item(id"weapon_smokegrenade");
        
        
cs_set_user_bpammo(idCSW_FLASHBANG2);
        
cs_set_user_armor(id100CS_ARMOR_VESTHELM);
        if(
get_user_team(id) == 2)
            
cs_set_user_defuse(id1)
    }
}

stock client_print_color(idtype, const text[], any:...)
{
    if(
type == print_chat)
    {
        new 
g_iMsgidSayText;
        
g_iMsgidSayText get_user_msgid("SayText");
        
        new 
szMsg[191], iPlayers[32], iCount 1;
        
vformat(szMsgcharsmax(szMsg), text3);
        
        
replace_all(szMsgcharsmax(szMsg), "!g","^x04");
        
replace_all(szMsgcharsmax(szMsg), "!n","^x01");
        
replace_all(szMsgcharsmax(szMsg), "!t","^x03");
        
        if(
id)
            
iPlayers[0] = id;
        else
            
get_players(iPlayersiCount"ch");
        
        for(new 
iCount i++)
        {
            if(!
is_user_connected(iPlayers[i]))
                continue;
            
            
message_begin(MSG_ONE_UNRELIABLEg_iMsgidSayText_iPlayers[i]);
            
write_byte(iPlayers[i]);
            
write_string(szMsg);
            
message_end();
        }
    }

__________________

Last edited by popeye10; 01-16-2015 at 05:00.
popeye10 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:08.


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