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_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );
RegisterHam( Ham_Spawn, "player", "free_equips", 1 );
gEnableEquips = register_cvar( "free_equips", "1" );
}
public free_equips(id)
{
if( is_user_alive( id ) && get_pcvar_num( gEnableEquips ) )
{
// 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_nvg( id, 1);
cs_set_user_armor ( id, 100, CsArmorType:2 );
switch( get_user_team(id) )
{
case 1:
{
// Team 1
}
case 2:
{
// Team 2
cs_set_user_defuse( id, 1, 0, 0, 205 );
}
}
}
}