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

[REQ] freequips with freeguns too


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Tuga
New Member
Join Date: Dec 2015
Old 04-13-2016 , 11:17   [REQ] freequips with freeguns too
Reply With Quote #1

Hello everyone, well I have this plugin, but it only me of grenades, I wanted him to give me a AK47 for terrorists, and m4 to the CTS, can someone help me? receive in the second round
Thank you very much..

Best regards.

PHP Code:
Thank fysiks

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

#define PLUGIN_NAME "Free Equips"
#define PLUGIN_VERSION "1.1"
#define PLUGIN_AUTHOR "BBQ"

#pragma semicolon 1

new gEnableEquips;

public 
plugin_init()
{
    
register_pluginPLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR );
    
RegisterHamHam_Spawn"player""free_equips");
    
gEnableEquips register_cvar"free_equips""1" );
}

public 
free_equips(id)
{
    if( 
is_user_aliveid ) && get_pcvar_numgEnableEquips ) )
    {
        
// Both Teams
        
give_item id,"weapon_hegrenade");
        
give_item id,"weapon_smokegrenade");
        
give_item id,"weapon_flashbang");
        
give_item id,"weapon_flashbang");
        
cs_set_user_nvgid1);
        
cs_set_user_armor id100CsArmorType:);
        
        switch( 
get_user_team(id) )
        {
            case 
1:
            {
                
// Team 1
            
}
            case 
2:
            {
                
// Team 2
                
cs_set_user_defuseid100205 );
            }
        }
    }


Last edited by Tuga; 04-13-2016 at 11:22.
Tuga is offline
 



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 09:54.


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