include < amxmodx >
#include <
cstrike >
#include < fakemeta >
#include < hamsandwich >
#define OFFSET_LINUX_WEAPONS 4
#define IsValidPrivateData(%0) ( pev_valid ( %0 ) == 2 )
#define VIP_GOLD_FLAG "x" // Aici setezi flagul pentru VIP gold (cum ai in users.ini)
#define VIP_GOLD_MODEL_T "cso_fata_T" // Aici setezi ce model sa aiba pentru Terro (T)
#define VIP_GOLD_MODEL_CT "cso_fata_CT" // Aici setezi ce model sa aiba pentru Counter (CT)
new GLOCK18_V [ 64 ] = "models/girl/v_glock18.mdl"
new USP_V [ 64 ] = "models/girl/v_usp.mdl"
new P228_V [ 64 ] = "models/girl/v_p228.mdl"
new DEAGLE_V [ 64 ] = "models/girl/v_deagle.mdl"
new FIVESEVEN_V [ 64 ] = "models/girl/v_fiveseven.mdl"
new ELITE_V [ 64 ] = "models/girl/v_elite.mdl"
new M3_V [ 64 ] = "models/girl/v_m3.mdl"
new XM1014_V [ 64 ] = "models/girl/v_xm1014.mdl"
new TMP_V [ 64 ] = "models/girl/v_tmp.mdl"
new MAC10_V [ 64 ] = "models/girl/v_mac10.mdl"
new MP5_V [ 64 ] = "models/girl/v_mp5.mdl"
new UMP45_V [ 64 ] = "models/girl/v_ump45.mdl"
new P90_V [ 64 ] = "models/girl/v_p90.mdl"
new GALIL_V [ 64 ] = "models/girl/v_galil.mdl"
new FAMAS_V [ 64 ] = "models/girl/v_famas.mdl"
new AK47_V [ 64 ] = "models/girl/v_ak47.mdl"
new M4A1_V [ 64 ] = "models/girl/v_m4a1.mdl"
new AUG_V [ 64 ] = "models/girl/v_aug.mdl"
new SG552_V [ 64 ] = "models/girl/v_sg552.mdl"
new SCOUT_V [ 64 ] = "models/girl/v_scout.mdl"
new SG550_V [ 64 ] = "models/girl/v_sg550.mdl"
new G3SG1_V [ 64 ] = "models/girl/v_g3sg1.mdl"
new AWP_V [ 64 ] = "models/girl/v_awp.mdl"
new M249_V [ 64 ] = "models/girl/v_m249.mdl"
new HE_GRE_V [ 64 ] = "models/girl/v_hegrenade.mdl"
new FLASH_BANG_V [ 64 ] = "models/girl/v_flashbang.mdl"
new SMOKE_GRE_V [ 64 ] = "models/girl/v_smokegrenade.mdl"
new C4_V [ 64 ] = "models/girl/v_c4.mdl"
new KNIFE_V [ 64 ] = "models/girl/v_knife.mdl"
new const WEAPONENTNAMES [ ][ ] = { "", "weapon_p228", "", "weapon_scout", "weapon_hegrenade", "weapon_xm1014", "weapon_c4", "weapon_mac10",
"weapon_aug", "weapon_smokegrenade", "weapon_elite", "weapon_fiveseven", "weapon_ump45", "weapon_sg550", "weapon_galil",
"weapon_famas", "weapon_usp", "weapon_glock18", "weapon_awp", "weapon_mp5navy", "weapon_m249", "weapon_m3", "weapon_m4a1",
"weapon_tmp", "weapon_g3sg1", "weapon_flashbang", "weapon_deagle", "weapon_sg552","weapon_ak47", "weapon_knife", "weapon_p90" };
public plugin_init ( )
{
register_plugin ( "CSO_Female", "1.0", "LARS-BLOODLIKER" );
for ( new i = 1; i < sizeof WEAPONENTNAMES; i++ )
{
if ( WEAPONENTNAMES [ i ][ 0 ] )
{
RegisterHam ( Ham_Item_Deploy, WEAPONENTNAMES [ i ], "CS_Weapon_Deploy_Post", .Post = true );
}
}
}
public plugin_precache ( )
{
new TerroModel [ 128 ];
formatex ( TerroModel, charsmax ( TerroModel ), "models/player/%s/%s.mdl", VIP_GOLD_MODEL_T, VIP_GOLD_MODEL_T );
new CounterModel [ 128 ];
formatex ( CounterModel, charsmax ( CounterModel ), "models/player/%s/%s.mdl", VIP_GOLD_MODEL_CT, VIP_GOLD_MODEL_CT );
if ( file_exists ( TerroModel ) )
precache_model ( TerroModel );
if ( file_exists ( CounterModel) )
precache_model ( CounterModel );
{
precache_model ( GLOCK18_V );
precache_model ( USP_V );
precache_model ( P228_V );
precache_model ( DEAGLE_V );
precache_model ( FIVESEVEN_V );
precache_model ( ELITE_V );
precache_model ( M3_V );
precache_model ( XM1014_V );
precache_model ( TMP_V );
precache_model ( MAC10_V );
precache_model ( MP5_V );
precache_model ( UMP45_V );
precache_model ( P90_V );
precache_model ( GALIL_V );
precache_model ( FAMAS_V );
precache_model ( AK47_V );
precache_model ( M4A1_V );
precache_model ( AUG_V );
precache_model ( SG552_V );
precache_model ( SCOUT_V );
precache_model ( SG550_V );
precache_model ( G3SG1_V );
precache_model ( AWP_V );
precache_model ( M249_V );
precache_model ( HE_GRE_V );
precache_model ( FLASH_BANG_V );
precache_model ( SMOKE_GRE_V );
precache_model ( C4_V );
precache_model ( KNIFE_V );
}
}
public CS_Weapon_Deploy_Post ( Weapon )
{
if ( !IsValidPrivateData ( Weapon ) ) { return; }
static Player; Player = get_pdata_cbase ( Weapon, 41, OFFSET_LINUX_WEAPONS );
static Weaponid; Weaponid = cs_get_weapon_id ( Weapon );
switch ( Weaponid )
{
case CSW_GLOCK18: set_pev ( Player, pev_viewmodel2, GLOCK18_V )
case CSW_USP: set_pev ( Player, pev_viewmodel2, USP_V )
case CSW_P228: set_pev ( Player, pev_viewmodel2, P228_V )
case CSW_DEAGLE: set_pev ( Player, pev_viewmodel2, DEAGLE_V )
case CSW_FIVESEVEN: set_pev ( Player, pev_viewmodel2, FIVESEVEN_V )
case CSW_ELITE: set_pev ( Player, pev_viewmodel2, ELITE_V )
case CSW_M3: set_pev ( Player, pev_viewmodel2, M3_V )
case CSW_XM1014: set_pev ( Player, pev_viewmodel2, XM1014_V )
case CSW_TMP: set_pev ( Player, pev_viewmodel2, TMP_V )
case CSW_MAC10: set_pev ( Player, pev_viewmodel2, MAC10_V )
case CSW_MP5NAVY: set_pev ( Player, pev_viewmodel2, MP5_V )
case CSW_UMP45: set_pev ( Player, pev_viewmodel2, UMP45_V )
case CSW_P90: set_pev ( Player, pev_viewmodel2, P90_V )
case CSW_GALIL: set_pev ( Player, pev_viewmodel2, GALIL_V )
case CSW_FAMAS: set_pev ( Player, pev_viewmodel2, FAMAS_V )
case CSW_AK47: set_pev ( Player, pev_viewmodel2, AK47_V )
case CSW_M4A1: set_pev ( Player, pev_viewmodel2, M4A1_V )
case CSW_AUG: set_pev ( Player, pev_viewmodel2, AUG_V )
case CSW_SG552: set_pev ( Player, pev_viewmodel2, SG552_V )
case CSW_SCOUT: set_pev ( Player, pev_viewmodel2, SCOUT_V )
case CSW_SG550: set_pev ( Player, pev_viewmodel2, SG550_V )
case CSW_G3SG1: set_pev ( Player, pev_viewmodel2, G3SG1_V )
case CSW_AWP: set_pev ( Player, pev_viewmodel2, AWP_V )
case CSW_M249: set_pev ( Player, pev_viewmodel2, M249_V )
case CSW_HEGRENADE: set_pev ( Player, pev_viewmodel2, HE_GRE_V )
case CSW_FLASHBANG: set_pev ( Player, pev_viewmodel2, FLASH_BANG_V )
case CSW_SMOKEGRENADE: set_pev ( Player, pev_viewmodel2, SMOKE_GRE_V )
case CSW_C4: set_pev ( Player, pev_viewmodel2, C4_V )
case CSW_KNIFE: set_pev ( Player, pev_viewmodel2, KNIFE_V )
}
}
public Player_Spawn ( id ) {
if ( is_user_alive ( id ) && get_user_flags ( id ) & read_flags ( VIP_GOLD_FLAG ) ) {
switch ( get_user_team ( id ) )
{
case 1: cs_set_user_model ( id, VIP_GOLD_MODEL_T );
case 2: cs_set_user_model ( id, VIP_GOLD_MODEL_CT );
}
}
}