It is currently 17 Nov 2017 22:12






This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ]  Go to page 1, 2  Next
 Editare pret arme 
Author Message
Online
Membru, skill 0
Membru, skill 0

Joined: 25 May 2015 07:27
Posts: 81
Detinator Steam: Nu
CS Status: Don't Mess Whit Me
SteamID: Nu cred
Fond eXtream: 0
Salut. Imi poate edita cineva shop-ul asta?
Fiindca armele sunt prea scumpe. Si eu nu stiu cum sa editez corect..
Vreau ca armele anti furien sa coste asa.
arma: 1) 1300 $
2) 1500
3) 1650
4) 1780
5) 1800
6) 800
7) 800
si armele vip anti furien fiecare sa coste 1 $

Arme(knife-uri) furien
1) 1200 $
2) 1400 $
3) 1500 $
4) 1600 $
5) cred ca e hp aici . 400
6) 400
7) 400
Si fiecare knife la furien vip sa coste 1 $
http://www115.zippyshare.com/v/RyUa7kBv/file.html


Last edited by EleCtr0zZz on 15 Nov 2017 15:48, edited 1 time in total.



14 Nov 2017 22:13
Profile multumesc WWW
Online
Moderator ajutator
Moderator ajutator
User avatar

Joined: 16 Feb 2014 17:28
Posts: 1103
Location: Braila
Detinator Steam: Da
Detinator server CS: Zm.DarkCs.Ro
Reputatie: Moderator ajutator
Fond eXtream: 0
pune sursa intre
Code:
[Sursa=]aici[/Sursa]

nu descarc nimeni ce ai tu acolo

_________________
Tranzactii:
| Afiseaza codul
https://www.extreamcs.com/forum/post2578307.html#p2578307
anunturi/dau-paysafe-paypal-t333080.html
anunturi/schimb-paysafecard-t325518.html
anunturi/dau-paypal-bancar-t326698.html
anunturi/ofer-paypal-orange-t324022.html
post2578307.html#p2578307
anunturi/exchange-bancar-paypay-t336647.html
anunturi/euro-paypal-euro-sms-t337786.html
anunturi/paysafe-paypal-t343951.html


Ts.DarkCs.Ro- de la 20:00-22:00 sunam cu****e

Vand Knife Menu


14 Nov 2017 22:19
Profile multumesc YIM WWW
Online
Membru, skill +2
Membru, skill +2
User avatar

Joined: 21 Jun 2013 12:40
Posts: 752
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
| Afiseaza codul
/* 
* Changelog
*
* 0.0.2 -> HP & AP added in menu + more bugs fixed
* 0.0.3 -> VIP Menu for Furiens + New weapons . New 2 commands added
*
* Credits
*
* hadesownage
*/

#include < amxmodx >
#include < amxmisc >
#include < fun >
#include < hamsandwich >
#include < cstrike >
#include < fakemeta >
#include < colorchat >
#include < dhudmessage >

#define PLUGIN "FURIEN Weapons Shop"
#define VERSION "0.0.3"
#define AUTHOR "hadesownage"

#define VIP_ACCESS ADMIN_LEVEL_H

#pragma semicolon 1

new szTag [ ] = "[Furien Shop]";

new katana_knife_v_model [ 66 ] = "models/furien/v_katana.mdl";
new katana_knife_p_model [ 66 ] = "models/furien/p_katana.mdl";

new double_katana_v_knife_model [ 66 ] = "models/furien/v_double_katana.mdl";
new double_katana_p_knife_model [ 66 ] = "models/furien/p_double_katana.mdl";

new super_knife_v_model [ 66 ] = "models/furien/v_super_knife1.mdl";
new super_knife_p_model [ 66 ] = "models/furien/p_super_knife1.mdl";

new infinity_knife_v_model [ 66 ] = "models/furien/v_infinity_knife1.mdl";
new infinity_knife_p_model [ 66 ] = "models/furien/p_infinity_knife1.mdl";

new dual_mp5_v_model [ 66 ] = "models/furien/v_dualmp5.mdl";
new dual_mp5_p_model [ 66 ] = "models/furien/p_dualmp5.mdl";

new scorpion_mp5_v_model [ 66 ] = "models/furien/v_scorpionmp5.mdl";
// new scorpion_mp5_p_model [ 66 ] = "models/furien/p_scorpionmp5.mdl";

new xm1014_shoutgun_v_model [ 66 ] = "models/furien/v_xm1014shoutgun.mdl";
// new xm1014_shoutgun_p_model [ 66 ] = "models/furien/p_xm1014shoutgun.mdl";

new m3_shoutgun_v_model [ 66 ] = "models/furien/v_m3shoutgun.mdl";
// new m3_shoutgun_p_model [ 66 ] = "models/furien/p_m3shoutgun.mdl";

new thompson_v_model [ 66 ] = "models/furien/v_thompson.mdl";
new thompson_p_model [ 66 ] = "models/furien/p_thompson.mdl";

new uspx_v_model [ 66 ] = "models/furien//v_uspx.mdl";
new uspx_p_model [ 66 ] = "models/furien/p_uspx.mdl";

new hammer_knife_v_model [ 66 ] = "models/furien/v_viphammer.mdl";
new hammer_knife_p_model [ 66 ] = "models/furien/p_viphammer.mdl";

new axe_knife_v_model [ 66 ] = "models/furien/v_vipaxe.mdl";
new axe_knife_p_model [ 66 ] = "models/furien/p_vipaxe.mdl";

new vip_awp_v_model [ 66 ] = "models/furien/v_vipawp.mdl";
// new vip_awp_p_model [ 66 ] = "models/furien/p_vipawp.mdl";

new vip_elite_v_model [ 66 ] = "models/furien/v_vipelite.mdl";
new vip_elite_p_model [ 66 ] = "models/furien/p_vipelite.mdl";

new vip_cartblue_v_model [ 66 ] = "models/furien/v_vipcartblue.mdl";
new vip_cartblue_p_model [ 66 ] = "models/furien/p_vipcartblue.mdl";

new vip_cartred_v_model [ 66 ] = "models/furien/v_vipcartred.mdl";
new vip_cartred_p_model [ 66 ] = "models/furien/p_vipcartred.mdl";

new vip_dualkriss_v_model [ 66 ] = "models/furien/v_vipdualkriss.mdl";
new vip_dualkriss_p_model [ 66 ] = "models/furien/p_vipdualkriss.mdl";

new vip_dualskull_v_model [ 66 ] = "models/furien/v_vipdualskull.mdl";
new vip_dualskull_p_model [ 66 ] = "models/furien/p_vipdualskull.mdl";

new vip_minigun_v_model [ 66 ] = "models/furien/v_vipm134.mdl";
new vip_minigun_p_model [ 66 ] = "models/furien/p_vipm134.mdl";

new bool:katana_knife [ 33 ];
new bool:double_katana_knife [ 33 ];
new bool:super_knife [ 33 ];
new bool:infinity_knife [ 33 ];

new bool:dual_mp5 [ 33 ];
new bool:scorpion_mp5 [ 33 ];
new bool:xm1014_shoutgun [ 33 ];
new bool:m3_shoutgun [ 33 ];
new bool:thompson [ 33 ];
new bool:weapon_uspx [ 33 ];

new bool:vip_awp [ 33 ];
new bool:vip_elite [ 33 ];
new bool:vip_dualkriss [ 33 ];
new bool:vip_dualskull [ 33 ];
new bool:vip_minigun [ 33 ];
new bool:vip_hammer_knife [ 33 ];
new bool:vip_axe_knife [ 33 ];
new bool:vip_cartblue [ 33 ];
new bool:vip_cartred [ 33 ];
new bool:vip_cartblue2 [ 33 ];
new bool:vip_cartred2 [ 33 ];

new g_iMaxPlayers;

public plugin_init ( ) {

register_plugin ( PLUGIN, VERSION, "hadesownage" );

register_clcmd ( "say /weapons", "CheckFurienAcces", -1 );
register_clcmd ( "say_team /weapons", "CheckFurienAcces", -1 );
register_clcmd ( "say /shop", "CheckFurienAcces", -1 );
register_clcmd ( "say_team /shop", "CheckFurienAcces", -1 );
register_clcmd ( "say /furienshop", "CheckFurienAcces", -1 );
register_clcmd ( "say_team /furienshop", "CheckFurienAcces", -1 );

register_event ( "CurWeapon", "FurienCurrentWeapon", "be", "1=1" );
register_event ( "CurWeapon", "AntiFurienCurrentWeapon", "be", "1=1" );

register_logevent ( "round_start", 2, "1=Round_Start" );
register_logevent ( "round_end", 2, "1=Round_End" );

RegisterHam ( Ham_Spawn, "player", "CheckFurienAcces", 1 );
RegisterHam ( Ham_Spawn, "player", "RefreshAllWeapons", 1 );
RegisterHam(Ham_TakeDamage, "player", "Player_TakeDamage");

g_iMaxPlayers = get_maxplayers ( );
}

public plugin_precache ( ) {

precache_model ( katana_knife_v_model );
precache_model ( double_katana_v_knife_model );
precache_model ( super_knife_v_model );
precache_model ( infinity_knife_v_model );

precache_model ( katana_knife_p_model );
precache_model ( double_katana_p_knife_model );
precache_model ( super_knife_p_model );
precache_model ( infinity_knife_p_model );

precache_model ( dual_mp5_v_model );
precache_model ( scorpion_mp5_v_model );
precache_model ( xm1014_shoutgun_v_model );
precache_model ( m3_shoutgun_v_model );
precache_model ( thompson_v_model );
precache_model ( uspx_v_model );

precache_model ( dual_mp5_p_model );
// precache_model ( scorpion_mp5_p_model );
// precache_model ( xm1014_shoutgun_p_model );
// precache_model ( m3_shoutgun_p_model );
precache_model ( thompson_p_model );
precache_model ( uspx_p_model );

precache_model ( vip_elite_v_model );
precache_model ( vip_awp_v_model );
precache_model ( vip_dualkriss_v_model );
precache_model ( vip_dualskull_v_model );
precache_model ( vip_minigun_v_model );
precache_model ( hammer_knife_v_model );
precache_model ( axe_knife_v_model );
precache_model ( vip_cartblue_v_model );
precache_model ( vip_cartred_v_model );

precache_model ( vip_elite_p_model );
// precache_model ( vip_awp_p_model );
precache_model ( vip_dualkriss_p_model );
precache_model ( vip_dualskull_p_model );
precache_model ( vip_minigun_p_model );
precache_model ( hammer_knife_p_model );
precache_model ( axe_knife_p_model );
precache_model ( vip_cartblue_p_model );
precache_model ( vip_cartred_p_model );
}

public FurienCurrentWeapon ( id ) {

new szKnife = get_user_weapon ( id );
if ( szKnife == CSW_KNIFE ) {
if ( katana_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, katana_knife_v_model );
set_pev ( id, pev_weaponmodel2, katana_knife_p_model );
set_task ( 0.1, "Katana_Damage", id );

}
}
if ( szKnife == CSW_KNIFE ) {
if ( double_katana_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, double_katana_v_knife_model );
set_pev ( id, pev_weaponmodel2, double_katana_p_knife_model );
set_task ( 0.1, "Double_Katana_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( super_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, super_knife_v_model );
set_pev ( id, pev_weaponmodel2, super_knife_p_model );
set_task ( 0.1, "Super_Knife_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( infinity_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, infinity_knife_v_model );
set_pev ( id, pev_weaponmodel2, infinity_knife_p_model );
set_task ( 0.1, "Infinity_Knife_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( vip_hammer_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, hammer_knife_v_model );
set_pev ( id, pev_weaponmodel2, hammer_knife_p_model );
set_task ( 0.1, "VIP_Hammer_Knife_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( vip_axe_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, axe_knife_v_model );
set_pev ( id, pev_weaponmodel2, axe_knife_p_model );
set_task ( 0.1, "VIP_Axe_Knife_Damage", id );

}
}

else if ( !user_has_weapon ( id, CSW_KNIFE ) || ( !katana_knife [ id ] || !double_katana_knife || !super_knife || !infinity_knife || !vip_hammer_knife || !vip_axe_knife ) )
{
give_item ( id, "weapon_knife" );
return 1;
}
return 1;
}

public AntiFurienCurrentWeapon ( id ) {

new szWeapon = get_user_weapon ( id );
if ( szWeapon == CSW_MP5NAVY ) {
if ( dual_mp5 [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, dual_mp5_v_model );
set_pev ( id, pev_weaponmodel2, dual_mp5_p_model );
set_task ( 0.1, "Dual_Mp5_Damage", id );

}
}

if ( szWeapon == CSW_MP5NAVY ) {
if ( scorpion_mp5 [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, scorpion_mp5_v_model );
// set_pev ( id, pev_weaponmodel2, scorpion_mp5_p_model );
set_task ( 0.1, "Scorpion_Mp5_Damage", id );

}
}

if ( szWeapon == CSW_XM1014 ) {
if ( xm1014_shoutgun [ id ] && szWeapon == CSW_XM1014 ) {

set_pev ( id, pev_viewmodel2, xm1014_shoutgun_v_model );
// set_pev ( id, pev_weaponmodel2, xm1014_shoutgun_p_model );
set_task ( 0.1, "XM1014_Shotgun_Damage", id );

}
}

if ( szWeapon == CSW_M3 ) {
if ( m3_shoutgun [ id ] && szWeapon == CSW_M3 ) {

set_pev ( id, pev_viewmodel2, m3_shoutgun_v_model );
// set_pev ( id, pev_weaponmodel2, m3_shoutgun_p_model );
set_task ( 0.1, "M3_Shotgun_Damage", id );

}
}

if ( szWeapon == CSW_P90 ) {
if ( thompson [ id ] && szWeapon == CSW_P90 ) {

set_pev ( id, pev_viewmodel2, thompson_v_model );
set_pev ( id, pev_weaponmodel2, thompson_p_model );
set_task ( 0.1, "Thompson_Damage", id );

}
}

if ( szWeapon == CSW_ELITE ) {
if ( vip_elite [ id ] && szWeapon == CSW_ELITE ) {

set_pev ( id, pev_viewmodel2, vip_elite_v_model );
set_pev ( id, pev_weaponmodel2, vip_elite_p_model );
set_task ( 0.1, "VIP_Elite_Damage", id );

}
}

if ( szWeapon == CSW_AWP ) {
if ( vip_awp [ id ] && szWeapon == CSW_AWP ) {

set_pev ( id, pev_viewmodel2, vip_awp_v_model );
// set_pev ( id, pev_weaponmodel2, vip_awp_p_model );
set_task ( 0.1, "VIP_AWP_Damage", id );

}
}

if ( szWeapon == CSW_P90 ) {
if ( vip_dualkriss [ id ] && szWeapon == CSW_P90 ) {

set_pev ( id, pev_viewmodel2, vip_dualkriss_v_model );
set_pev ( id, pev_weaponmodel2, vip_dualkriss_p_model );
set_task ( 0.1, "VIP_DualKriss_Damage", id );

}
}

if ( szWeapon == CSW_SG552 ) {
if ( vip_dualskull [ id ] && szWeapon == CSW_SG552 ) {

set_pev ( id, pev_viewmodel2, vip_dualskull_v_model );
set_pev ( id, pev_weaponmodel2, vip_dualskull_p_model );
set_task ( 0.1, "VIP_DualSkull_Damage", id );

}
}

if ( szWeapon == CSW_MP5NAVY ) {
if ( vip_cartblue [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, vip_cartblue_v_model );
set_pev ( id, pev_weaponmodel2, vip_cartblue_p_model );
set_task ( 0.1, "VIP_Cartblue_Damage", id );

}
}

if ( szWeapon == CSW_M249 ) {
if ( vip_minigun [ id ] && szWeapon == CSW_M249 ) {

set_pev ( id, pev_viewmodel2, vip_minigun_v_model );
set_pev ( id, pev_weaponmodel2, vip_minigun_p_model );

}
}

if ( szWeapon == CSW_MP5NAVY ) {
if ( vip_cartred [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, vip_cartred_v_model );
set_pev ( id, pev_weaponmodel2, vip_cartred_p_model );
set_task ( 0.1, "VIP_Cartred_Damage", id );

}
}

if ( szWeapon == CSW_USP ) {
if ( weapon_uspx [ id ] && szWeapon == CSW_USP ) {

set_pev ( id, pev_viewmodel2, uspx_v_model );
set_pev ( id, pev_weaponmodel2, uspx_p_model );

}
}

return 1;
}

public round_start ( id ) {

if ( is_user_alive ( id ) ) {

katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;

dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;

vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_awp [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;

}
return 1;
}

public round_end ( ) {

static id;
for ( id = 1 ; id <= g_iMaxPlayers ; id++ )
{
if (!is_user_alive ( id ) )
continue;

strip_user_weapons ( id );
set_pdata_int ( id, 116, 0 );
give_item ( id, "weapon_knife" );
}
}

public RefreshAllWeapons ( id ) {

if ( is_user_alive ( id ) ) {

katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;

dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;

vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_awp [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
}
return 1;
}

public CheckFurienAcces ( id ) {

if ( cs_get_user_team ( id ) == CS_TEAM_T ) {

set_task( 0.1, "ShowFurienMenuWeapons", id );
}

if ( cs_get_user_team ( id ) == CS_TEAM_CT ) {

set_task( 0.1, "ShowAntiFurienMenuWeapons", id );
}

}

public ShowFurienMenuWeapons ( id, level, cid ) {

new menu = menu_create ( "\rFurien \yWeapons Menu", "FurienWeaponsMenuGiver" );
menu_additem ( menu, "\yKatana [ \r 1200 $ \y ]", "1", 0 );
menu_additem ( menu, "\yDual Katana [ \r 1400 $ \y ]", "2", 0 );
menu_additem ( menu, "\ySuper Knife [ \r 1500 $ \y ]", "3", 0 );
menu_additem ( menu, "\yInfinity Knife [ \r 1600 $ \y ]", "4", 0 );
menu_additem ( menu, "\y+50 AP [ \r 400 $ \y ]", "5", 0 );
menu_additem ( menu, "\y+50 HP [ \r 400 $ \y ]", "6", 0 );
menu_additem ( menu, "\yHE Grenade [ \r 400 $ \y ]", "7", 0 );
menu_additem ( menu, "\yULTIMATE [ \r VIP ONLY \y ]", "8", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public ShowAntiFurienMenuWeapons ( id, level, cid ) {

new menu = menu_create ( "\rAntiFurien \yWeapons Menu", "AntiFurienWeaponsMenuGiver" );
menu_additem ( menu, "\yDual Mp5 [ \r 1300 $ \y ]", "1", 0 );
menu_additem ( menu, "\yScorpion Mp5 [ \r 1500 $ \y ]", "2", 0 );
menu_additem ( menu, "\yXM1014 Shoutgun [ \r 1650 $ \y ]", "3", 0 );
menu_additem ( menu, "\yM3 Shoutgun [ \r 1780 $ \y ]", "4", 0 );
menu_additem ( menu, "\yThompson [ \r 1800 $ \y ]", "5", 0 );
menu_additem ( menu, "\y+50 AP [ \r 800 $ \y ]", "6", 0 );
menu_additem ( menu, "\y+50 HP [ \r 800 $ \y ]", "7", 0 );
menu_additem ( menu, "\yDefuse Kit [ \r 500 $ \y ]", "8", 0 );
menu_additem ( menu, "\yULTIMATE [ \r VIP ONLY \y ]", "9", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public ShowAntiFurienMenuVIP ( id, level, cid ) {

new menu = menu_create ( "\y* VIP * \rAntiFurien \yWeapons Menu", "AntiFurienVIPMenuGiver" );
menu_additem ( menu, "\ySuper AWP \y[ \r1 $ \y ]", "1", VIP_ACCESS );
menu_additem ( menu, "\yDual Kriss \y[ \r1 $ \y ]", "2", VIP_ACCESS );
menu_additem ( menu, "\yDual Skull \y[ \r1 $ \y ]", "3", VIP_ACCESS );
menu_additem ( menu, "\yMinigun \y[ \r1 $ \y ]", "4", VIP_ACCESS );
menu_additem ( menu, "\yCart Blue \y[ \r1 $ \y ]", "5", VIP_ACCESS );
menu_additem ( menu, "\yCart Red \y[ \r1 $ \y ]", "6", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public ShowFurienMenuVIP ( id, level, cid ) {

new menu = menu_create ( "\y* VIP * \rFurien \yWeapons Menu", "FurienVIPMenuGiver" );
menu_additem ( menu, "\ySuper Hammer \y[ \r1 $ \y ]", "1", VIP_ACCESS );
menu_additem ( menu, "\ySuper Axe \y[ \r1 $ \y ]", "2", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public FurienWeaponsMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1200;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
katana_knife [ id ] = true;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}


case 2:
{
new iMoney = cs_get_user_money ( id ) - 1400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
double_katana_knife [ id ] = true;
katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}

case 3:
{
new iMoney = cs_get_user_money ( id ) - 1500;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
super_knife [ id ] = true;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
infinity_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}

case 4:
{
new iMoney = cs_get_user_money ( id ) - 1600;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = true;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}

case 5:
{
new iMoney = cs_get_user_money ( id ) - 400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
new szHealth = get_user_health ( id );
if ( szHealth <= 300 ) {
set_dhudmessage ( 31, 201, 31, 0.20, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 AP" );
set_user_armor ( id, get_user_armor ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}

if ( szHealth > 300 ) {
ColorChat ( id, GREEN, "%s^x01 Nu poti cumpara mai mult de 300 HP", szTag );
}
}
}

case 6:
{
new iMoney = cs_get_user_money ( id ) - 400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
new szArmor = get_user_armor ( id );
if ( szArmor <= 500 ) {
set_dhudmessage ( 31, 201, 31, 0.02, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 HP" );
set_user_health ( id, get_user_health ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}

if ( szArmor > 500 ) {
ColorChat ( id, GREEN, "%s^x01 Nu poti cumpara mai mult de 500 AP", szTag );
}
}

}

case 7:
{
new iMoney = cs_get_user_money ( id ) - 400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_hegrenade" );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 8:
{
set_task ( 0.1, "ShowFurienMenuVIP", id );
return 1;
}
}

menu_destroy ( menu );
return 1;

}

public AntiFurienWeaponsMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1300;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
dual_mp5 [ id ] = true;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1500;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
scorpion_mp5 [ id ] = true;
dual_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 3:
{
new iMoney = cs_get_user_money ( id ) - 1650;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_xm1014" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_XM1014, 200 );
cs_set_user_money( id, iMoney );
xm1014_shoutgun [ id ] = true;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 4:
{
new iMoney = cs_get_user_money ( id ) - 1780;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_m3" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_M3, 200 );
cs_set_user_money( id, iMoney );
m3_shoutgun [ id ] = true;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 5:
{
new iMoney = cs_get_user_money ( id ) - 1800;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_p90" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_P90, 200 );
cs_set_user_money( id, iMoney );
thompson [ id ] = true;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 6:
{
new iMoney = cs_get_user_money ( id ) - 800;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
set_dhudmessage ( 31, 201, 31, 0.20, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 AP" );
set_user_armor ( id, get_user_armor ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 7:
{
new iMoney = cs_get_user_money ( id ) - 800;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
set_dhudmessage ( 31, 201, 31, 0.02, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 HP" );
set_user_health ( id, get_user_health ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 8:
{
new iMoney = cs_get_user_money ( id ) - 500;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "item_thighpack" );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 9:
{
set_task ( 0.1, "ShowAntiFurienMenuVIP", id );
return 1;
}
}

menu_destroy ( menu );
return 1;

}

public AntiFurienVIPMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_awp" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_AWP, 50 );
cs_set_user_money( id, iMoney );
vip_awp [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = false;
vip_minigun [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_p90" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_P90, 200 );
cs_set_user_money( id, iMoney );
vip_dualkriss [ id ] = true;
vip_dualskull [ id ] = false;
vip_elite [ id ] = true;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 3:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_sg552" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_SG552, 200 );
cs_set_user_money( id, iMoney );
vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = true;
vip_elite [ id ] = true;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 4:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_m249" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_M249, 300 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 5:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = true;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 6:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = true;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}

}
}
menu_destroy ( menu );
return 1;
}


public FurienVIPMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = false;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = true;
vip_axe_knife [ id ] = false;
cs_set_user_money ( id, iMoney );
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = false;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = true;
cs_set_user_money ( id, iMoney );
return 1;
}
}
}

menu_destroy ( menu );
return 1;

}

public Player_TakeDamage ( iVictim, iInflictor, iAttacker, Float:fDamage, iDamageBits ) {

if ( katana_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( double_katana_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.8);
return HAM_HANDLED;

}

if ( super_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.5);
return HAM_HANDLED;

}

if ( infinity_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 3.0);
return HAM_HANDLED;

}

if ( dual_mp5 [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( scorpion_mp5 [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( scorpion_mp5 [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_XM1014 ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( m3_shoutgun [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_M3 ) {

SetHamParamFloat( 4, fDamage * 1.8);
return HAM_HANDLED;

}

if ( thompson [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_P90 ) {

SetHamParamFloat( 4, fDamage * 2.4);
return HAM_HANDLED;

}

if ( vip_elite [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_ELITE ) {

SetHamParamFloat( 4, fDamage * 2.7);
return HAM_HANDLED;

}

if ( vip_dualkriss [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_P90 ) {

SetHamParamFloat( 4, fDamage * 3.0);
return HAM_HANDLED;

}

if ( vip_hammer_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.7);
return HAM_HANDLED;

}

if ( vip_axe_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 3.3);
return HAM_HANDLED;

}

if ( vip_cartblue [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 2.5);
return HAM_HANDLED;

}

if ( vip_cartred [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 3.0);
return HAM_HANDLED;

}

return HAM_IGNORED;

}


14 Nov 2017 22:47
Profile multumesc WWW
Online
Membru, skill 0
Membru, skill 0

Joined: 25 May 2015 07:27
Posts: 81
Detinator Steam: Nu
CS Status: Don't Mess Whit Me
SteamID: Nu cred
Fond eXtream: 0
Doctor whO? <3 wrote:
| Afiseaza codul
/* 
* Changelog
*
* 0.0.2 -> HP & AP added in menu + more bugs fixed
* 0.0.3 -> VIP Menu for Furiens + New weapons . New 2 commands added
*
* Credits
*
* hadesownage
*/

#include < amxmodx >
#include < amxmisc >
#include < fun >
#include < hamsandwich >
#include < cstrike >
#include < fakemeta >
#include < colorchat >
#include < dhudmessage >

#define PLUGIN "FURIEN Weapons Shop"
#define VERSION "0.0.3"
#define AUTHOR "hadesownage"

#define VIP_ACCESS ADMIN_LEVEL_H

#pragma semicolon 1

new szTag [ ] = "[Furien Shop]";

new katana_knife_v_model [ 66 ] = "models/furien/v_katana.mdl";
new katana_knife_p_model [ 66 ] = "models/furien/p_katana.mdl";

new double_katana_v_knife_model [ 66 ] = "models/furien/v_double_katana.mdl";
new double_katana_p_knife_model [ 66 ] = "models/furien/p_double_katana.mdl";

new super_knife_v_model [ 66 ] = "models/furien/v_super_knife1.mdl";
new super_knife_p_model [ 66 ] = "models/furien/p_super_knife1.mdl";

new infinity_knife_v_model [ 66 ] = "models/furien/v_infinity_knife1.mdl";
new infinity_knife_p_model [ 66 ] = "models/furien/p_infinity_knife1.mdl";

new dual_mp5_v_model [ 66 ] = "models/furien/v_dualmp5.mdl";
new dual_mp5_p_model [ 66 ] = "models/furien/p_dualmp5.mdl";

new scorpion_mp5_v_model [ 66 ] = "models/furien/v_scorpionmp5.mdl";
// new scorpion_mp5_p_model [ 66 ] = "models/furien/p_scorpionmp5.mdl";

new xm1014_shoutgun_v_model [ 66 ] = "models/furien/v_xm1014shoutgun.mdl";
// new xm1014_shoutgun_p_model [ 66 ] = "models/furien/p_xm1014shoutgun.mdl";

new m3_shoutgun_v_model [ 66 ] = "models/furien/v_m3shoutgun.mdl";
// new m3_shoutgun_p_model [ 66 ] = "models/furien/p_m3shoutgun.mdl";

new thompson_v_model [ 66 ] = "models/furien/v_thompson.mdl";
new thompson_p_model [ 66 ] = "models/furien/p_thompson.mdl";

new uspx_v_model [ 66 ] = "models/furien//v_uspx.mdl";
new uspx_p_model [ 66 ] = "models/furien/p_uspx.mdl";

new hammer_knife_v_model [ 66 ] = "models/furien/v_viphammer.mdl";
new hammer_knife_p_model [ 66 ] = "models/furien/p_viphammer.mdl";

new axe_knife_v_model [ 66 ] = "models/furien/v_vipaxe.mdl";
new axe_knife_p_model [ 66 ] = "models/furien/p_vipaxe.mdl";

new vip_awp_v_model [ 66 ] = "models/furien/v_vipawp.mdl";
// new vip_awp_p_model [ 66 ] = "models/furien/p_vipawp.mdl";

new vip_elite_v_model [ 66 ] = "models/furien/v_vipelite.mdl";
new vip_elite_p_model [ 66 ] = "models/furien/p_vipelite.mdl";

new vip_cartblue_v_model [ 66 ] = "models/furien/v_vipcartblue.mdl";
new vip_cartblue_p_model [ 66 ] = "models/furien/p_vipcartblue.mdl";

new vip_cartred_v_model [ 66 ] = "models/furien/v_vipcartred.mdl";
new vip_cartred_p_model [ 66 ] = "models/furien/p_vipcartred.mdl";

new vip_dualkriss_v_model [ 66 ] = "models/furien/v_vipdualkriss.mdl";
new vip_dualkriss_p_model [ 66 ] = "models/furien/p_vipdualkriss.mdl";

new vip_dualskull_v_model [ 66 ] = "models/furien/v_vipdualskull.mdl";
new vip_dualskull_p_model [ 66 ] = "models/furien/p_vipdualskull.mdl";

new vip_minigun_v_model [ 66 ] = "models/furien/v_vipm134.mdl";
new vip_minigun_p_model [ 66 ] = "models/furien/p_vipm134.mdl";

new bool:katana_knife [ 33 ];
new bool:double_katana_knife [ 33 ];
new bool:super_knife [ 33 ];
new bool:infinity_knife [ 33 ];

new bool:dual_mp5 [ 33 ];
new bool:scorpion_mp5 [ 33 ];
new bool:xm1014_shoutgun [ 33 ];
new bool:m3_shoutgun [ 33 ];
new bool:thompson [ 33 ];
new bool:weapon_uspx [ 33 ];

new bool:vip_awp [ 33 ];
new bool:vip_elite [ 33 ];
new bool:vip_dualkriss [ 33 ];
new bool:vip_dualskull [ 33 ];
new bool:vip_minigun [ 33 ];
new bool:vip_hammer_knife [ 33 ];
new bool:vip_axe_knife [ 33 ];
new bool:vip_cartblue [ 33 ];
new bool:vip_cartred [ 33 ];
new bool:vip_cartblue2 [ 33 ];
new bool:vip_cartred2 [ 33 ];

new g_iMaxPlayers;

public plugin_init ( ) {

register_plugin ( PLUGIN, VERSION, "hadesownage" );

register_clcmd ( "say /weapons", "CheckFurienAcces", -1 );
register_clcmd ( "say_team /weapons", "CheckFurienAcces", -1 );
register_clcmd ( "say /shop", "CheckFurienAcces", -1 );
register_clcmd ( "say_team /shop", "CheckFurienAcces", -1 );
register_clcmd ( "say /furienshop", "CheckFurienAcces", -1 );
register_clcmd ( "say_team /furienshop", "CheckFurienAcces", -1 );

register_event ( "CurWeapon", "FurienCurrentWeapon", "be", "1=1" );
register_event ( "CurWeapon", "AntiFurienCurrentWeapon", "be", "1=1" );

register_logevent ( "round_start", 2, "1=Round_Start" );
register_logevent ( "round_end", 2, "1=Round_End" );

RegisterHam ( Ham_Spawn, "player", "CheckFurienAcces", 1 );
RegisterHam ( Ham_Spawn, "player", "RefreshAllWeapons", 1 );
RegisterHam(Ham_TakeDamage, "player", "Player_TakeDamage");

g_iMaxPlayers = get_maxplayers ( );
}

public plugin_precache ( ) {

precache_model ( katana_knife_v_model );
precache_model ( double_katana_v_knife_model );
precache_model ( super_knife_v_model );
precache_model ( infinity_knife_v_model );

precache_model ( katana_knife_p_model );
precache_model ( double_katana_p_knife_model );
precache_model ( super_knife_p_model );
precache_model ( infinity_knife_p_model );

precache_model ( dual_mp5_v_model );
precache_model ( scorpion_mp5_v_model );
precache_model ( xm1014_shoutgun_v_model );
precache_model ( m3_shoutgun_v_model );
precache_model ( thompson_v_model );
precache_model ( uspx_v_model );

precache_model ( dual_mp5_p_model );
// precache_model ( scorpion_mp5_p_model );
// precache_model ( xm1014_shoutgun_p_model );
// precache_model ( m3_shoutgun_p_model );
precache_model ( thompson_p_model );
precache_model ( uspx_p_model );

precache_model ( vip_elite_v_model );
precache_model ( vip_awp_v_model );
precache_model ( vip_dualkriss_v_model );
precache_model ( vip_dualskull_v_model );
precache_model ( vip_minigun_v_model );
precache_model ( hammer_knife_v_model );
precache_model ( axe_knife_v_model );
precache_model ( vip_cartblue_v_model );
precache_model ( vip_cartred_v_model );

precache_model ( vip_elite_p_model );
// precache_model ( vip_awp_p_model );
precache_model ( vip_dualkriss_p_model );
precache_model ( vip_dualskull_p_model );
precache_model ( vip_minigun_p_model );
precache_model ( hammer_knife_p_model );
precache_model ( axe_knife_p_model );
precache_model ( vip_cartblue_p_model );
precache_model ( vip_cartred_p_model );
}

public FurienCurrentWeapon ( id ) {

new szKnife = get_user_weapon ( id );
if ( szKnife == CSW_KNIFE ) {
if ( katana_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, katana_knife_v_model );
set_pev ( id, pev_weaponmodel2, katana_knife_p_model );
set_task ( 0.1, "Katana_Damage", id );

}
}
if ( szKnife == CSW_KNIFE ) {
if ( double_katana_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, double_katana_v_knife_model );
set_pev ( id, pev_weaponmodel2, double_katana_p_knife_model );
set_task ( 0.1, "Double_Katana_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( super_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, super_knife_v_model );
set_pev ( id, pev_weaponmodel2, super_knife_p_model );
set_task ( 0.1, "Super_Knife_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( infinity_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, infinity_knife_v_model );
set_pev ( id, pev_weaponmodel2, infinity_knife_p_model );
set_task ( 0.1, "Infinity_Knife_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( vip_hammer_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, hammer_knife_v_model );
set_pev ( id, pev_weaponmodel2, hammer_knife_p_model );
set_task ( 0.1, "VIP_Hammer_Knife_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( vip_axe_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, axe_knife_v_model );
set_pev ( id, pev_weaponmodel2, axe_knife_p_model );
set_task ( 0.1, "VIP_Axe_Knife_Damage", id );

}
}

else if ( !user_has_weapon ( id, CSW_KNIFE ) || ( !katana_knife [ id ] || !double_katana_knife || !super_knife || !infinity_knife || !vip_hammer_knife || !vip_axe_knife ) )
{
give_item ( id, "weapon_knife" );
return 1;
}
return 1;
}

public AntiFurienCurrentWeapon ( id ) {

new szWeapon = get_user_weapon ( id );
if ( szWeapon == CSW_MP5NAVY ) {
if ( dual_mp5 [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, dual_mp5_v_model );
set_pev ( id, pev_weaponmodel2, dual_mp5_p_model );
set_task ( 0.1, "Dual_Mp5_Damage", id );

}
}

if ( szWeapon == CSW_MP5NAVY ) {
if ( scorpion_mp5 [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, scorpion_mp5_v_model );
// set_pev ( id, pev_weaponmodel2, scorpion_mp5_p_model );
set_task ( 0.1, "Scorpion_Mp5_Damage", id );

}
}

if ( szWeapon == CSW_XM1014 ) {
if ( xm1014_shoutgun [ id ] && szWeapon == CSW_XM1014 ) {

set_pev ( id, pev_viewmodel2, xm1014_shoutgun_v_model );
// set_pev ( id, pev_weaponmodel2, xm1014_shoutgun_p_model );
set_task ( 0.1, "XM1014_Shotgun_Damage", id );

}
}

if ( szWeapon == CSW_M3 ) {
if ( m3_shoutgun [ id ] && szWeapon == CSW_M3 ) {

set_pev ( id, pev_viewmodel2, m3_shoutgun_v_model );
// set_pev ( id, pev_weaponmodel2, m3_shoutgun_p_model );
set_task ( 0.1, "M3_Shotgun_Damage", id );

}
}

if ( szWeapon == CSW_P90 ) {
if ( thompson [ id ] && szWeapon == CSW_P90 ) {

set_pev ( id, pev_viewmodel2, thompson_v_model );
set_pev ( id, pev_weaponmodel2, thompson_p_model );
set_task ( 0.1, "Thompson_Damage", id );

}
}

if ( szWeapon == CSW_ELITE ) {
if ( vip_elite [ id ] && szWeapon == CSW_ELITE ) {

set_pev ( id, pev_viewmodel2, vip_elite_v_model );
set_pev ( id, pev_weaponmodel2, vip_elite_p_model );
set_task ( 0.1, "VIP_Elite_Damage", id );

}
}

if ( szWeapon == CSW_AWP ) {
if ( vip_awp [ id ] && szWeapon == CSW_AWP ) {

set_pev ( id, pev_viewmodel2, vip_awp_v_model );
// set_pev ( id, pev_weaponmodel2, vip_awp_p_model );
set_task ( 0.1, "VIP_AWP_Damage", id );

}
}

if ( szWeapon == CSW_P90 ) {
if ( vip_dualkriss [ id ] && szWeapon == CSW_P90 ) {

set_pev ( id, pev_viewmodel2, vip_dualkriss_v_model );
set_pev ( id, pev_weaponmodel2, vip_dualkriss_p_model );
set_task ( 0.1, "VIP_DualKriss_Damage", id );

}
}

if ( szWeapon == CSW_SG552 ) {
if ( vip_dualskull [ id ] && szWeapon == CSW_SG552 ) {

set_pev ( id, pev_viewmodel2, vip_dualskull_v_model );
set_pev ( id, pev_weaponmodel2, vip_dualskull_p_model );
set_task ( 0.1, "VIP_DualSkull_Damage", id );

}
}

if ( szWeapon == CSW_MP5NAVY ) {
if ( vip_cartblue [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, vip_cartblue_v_model );
set_pev ( id, pev_weaponmodel2, vip_cartblue_p_model );
set_task ( 0.1, "VIP_Cartblue_Damage", id );

}
}

if ( szWeapon == CSW_M249 ) {
if ( vip_minigun [ id ] && szWeapon == CSW_M249 ) {

set_pev ( id, pev_viewmodel2, vip_minigun_v_model );
set_pev ( id, pev_weaponmodel2, vip_minigun_p_model );

}
}

if ( szWeapon == CSW_MP5NAVY ) {
if ( vip_cartred [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, vip_cartred_v_model );
set_pev ( id, pev_weaponmodel2, vip_cartred_p_model );
set_task ( 0.1, "VIP_Cartred_Damage", id );

}
}

if ( szWeapon == CSW_USP ) {
if ( weapon_uspx [ id ] && szWeapon == CSW_USP ) {

set_pev ( id, pev_viewmodel2, uspx_v_model );
set_pev ( id, pev_weaponmodel2, uspx_p_model );

}
}

return 1;
}

public round_start ( id ) {

if ( is_user_alive ( id ) ) {

katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;

dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;

vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_awp [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;

}
return 1;
}

public round_end ( ) {

static id;
for ( id = 1 ; id <= g_iMaxPlayers ; id++ )
{
if (!is_user_alive ( id ) )
continue;

strip_user_weapons ( id );
set_pdata_int ( id, 116, 0 );
give_item ( id, "weapon_knife" );
}
}

public RefreshAllWeapons ( id ) {

if ( is_user_alive ( id ) ) {

katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;

dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;

vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_awp [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
}
return 1;
}

public CheckFurienAcces ( id ) {

if ( cs_get_user_team ( id ) == CS_TEAM_T ) {

set_task( 0.1, "ShowFurienMenuWeapons", id );
}

if ( cs_get_user_team ( id ) == CS_TEAM_CT ) {

set_task( 0.1, "ShowAntiFurienMenuWeapons", id );
}

}

public ShowFurienMenuWeapons ( id, level, cid ) {

new menu = menu_create ( "\rFurien \yWeapons Menu", "FurienWeaponsMenuGiver" );
menu_additem ( menu, "\yKatana [ \r 1200 $ \y ]", "1", 0 );
menu_additem ( menu, "\yDual Katana [ \r 1400 $ \y ]", "2", 0 );
menu_additem ( menu, "\ySuper Knife [ \r 1500 $ \y ]", "3", 0 );
menu_additem ( menu, "\yInfinity Knife [ \r 1600 $ \y ]", "4", 0 );
menu_additem ( menu, "\y+50 AP [ \r 400 $ \y ]", "5", 0 );
menu_additem ( menu, "\y+50 HP [ \r 400 $ \y ]", "6", 0 );
menu_additem ( menu, "\yHE Grenade [ \r 400 $ \y ]", "7", 0 );
menu_additem ( menu, "\yULTIMATE [ \r VIP ONLY \y ]", "8", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public ShowAntiFurienMenuWeapons ( id, level, cid ) {

new menu = menu_create ( "\rAntiFurien \yWeapons Menu", "AntiFurienWeaponsMenuGiver" );
menu_additem ( menu, "\yDual Mp5 [ \r 1300 $ \y ]", "1", 0 );
menu_additem ( menu, "\yScorpion Mp5 [ \r 1500 $ \y ]", "2", 0 );
menu_additem ( menu, "\yXM1014 Shoutgun [ \r 1650 $ \y ]", "3", 0 );
menu_additem ( menu, "\yM3 Shoutgun [ \r 1780 $ \y ]", "4", 0 );
menu_additem ( menu, "\yThompson [ \r 1800 $ \y ]", "5", 0 );
menu_additem ( menu, "\y+50 AP [ \r 800 $ \y ]", "6", 0 );
menu_additem ( menu, "\y+50 HP [ \r 800 $ \y ]", "7", 0 );
menu_additem ( menu, "\yDefuse Kit [ \r 500 $ \y ]", "8", 0 );
menu_additem ( menu, "\yULTIMATE [ \r VIP ONLY \y ]", "9", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public ShowAntiFurienMenuVIP ( id, level, cid ) {

new menu = menu_create ( "\y* VIP * \rAntiFurien \yWeapons Menu", "AntiFurienVIPMenuGiver" );
menu_additem ( menu, "\ySuper AWP \y[ \r1 $ \y ]", "1", VIP_ACCESS );
menu_additem ( menu, "\yDual Kriss \y[ \r1 $ \y ]", "2", VIP_ACCESS );
menu_additem ( menu, "\yDual Skull \y[ \r1 $ \y ]", "3", VIP_ACCESS );
menu_additem ( menu, "\yMinigun \y[ \r1 $ \y ]", "4", VIP_ACCESS );
menu_additem ( menu, "\yCart Blue \y[ \r1 $ \y ]", "5", VIP_ACCESS );
menu_additem ( menu, "\yCart Red \y[ \r1 $ \y ]", "6", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public ShowFurienMenuVIP ( id, level, cid ) {

new menu = menu_create ( "\y* VIP * \rFurien \yWeapons Menu", "FurienVIPMenuGiver" );
menu_additem ( menu, "\ySuper Hammer \y[ \r1 $ \y ]", "1", VIP_ACCESS );
menu_additem ( menu, "\ySuper Axe \y[ \r1 $ \y ]", "2", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public FurienWeaponsMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1200;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
katana_knife [ id ] = true;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}


case 2:
{
new iMoney = cs_get_user_money ( id ) - 1400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
double_katana_knife [ id ] = true;
katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}

case 3:
{
new iMoney = cs_get_user_money ( id ) - 1500;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
super_knife [ id ] = true;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
infinity_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}

case 4:
{
new iMoney = cs_get_user_money ( id ) - 1600;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = true;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}

case 5:
{
new iMoney = cs_get_user_money ( id ) - 400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
new szHealth = get_user_health ( id );
if ( szHealth <= 300 ) {
set_dhudmessage ( 31, 201, 31, 0.20, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 AP" );
set_user_armor ( id, get_user_armor ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}

if ( szHealth > 300 ) {
ColorChat ( id, GREEN, "%s^x01 Nu poti cumpara mai mult de 300 HP", szTag );
}
}
}

case 6:
{
new iMoney = cs_get_user_money ( id ) - 400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
new szArmor = get_user_armor ( id );
if ( szArmor <= 500 ) {
set_dhudmessage ( 31, 201, 31, 0.02, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 HP" );
set_user_health ( id, get_user_health ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}

if ( szArmor > 500 ) {
ColorChat ( id, GREEN, "%s^x01 Nu poti cumpara mai mult de 500 AP", szTag );
}
}

}

case 7:
{
new iMoney = cs_get_user_money ( id ) - 400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_hegrenade" );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 8:
{
set_task ( 0.1, "ShowFurienMenuVIP", id );
return 1;
}
}

menu_destroy ( menu );
return 1;

}

public AntiFurienWeaponsMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1300;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
dual_mp5 [ id ] = true;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1500;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
scorpion_mp5 [ id ] = true;
dual_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 3:
{
new iMoney = cs_get_user_money ( id ) - 1650;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_xm1014" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_XM1014, 200 );
cs_set_user_money( id, iMoney );
xm1014_shoutgun [ id ] = true;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 4:
{
new iMoney = cs_get_user_money ( id ) - 1780;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_m3" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_M3, 200 );
cs_set_user_money( id, iMoney );
m3_shoutgun [ id ] = true;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 5:
{
new iMoney = cs_get_user_money ( id ) - 1800;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_p90" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_P90, 200 );
cs_set_user_money( id, iMoney );
thompson [ id ] = true;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 6:
{
new iMoney = cs_get_user_money ( id ) - 800;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
set_dhudmessage ( 31, 201, 31, 0.20, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 AP" );
set_user_armor ( id, get_user_armor ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 7:
{
new iMoney = cs_get_user_money ( id ) - 800;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
set_dhudmessage ( 31, 201, 31, 0.02, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 HP" );
set_user_health ( id, get_user_health ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 8:
{
new iMoney = cs_get_user_money ( id ) - 500;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "item_thighpack" );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 9:
{
set_task ( 0.1, "ShowAntiFurienMenuVIP", id );
return 1;
}
}

menu_destroy ( menu );
return 1;

}

public AntiFurienVIPMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_awp" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_AWP, 50 );
cs_set_user_money( id, iMoney );
vip_awp [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = false;
vip_minigun [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_p90" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_P90, 200 );
cs_set_user_money( id, iMoney );
vip_dualkriss [ id ] = true;
vip_dualskull [ id ] = false;
vip_elite [ id ] = true;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 3:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_sg552" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_SG552, 200 );
cs_set_user_money( id, iMoney );
vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = true;
vip_elite [ id ] = true;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 4:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_m249" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_M249, 300 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 5:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = true;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 6:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = true;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}

}
}
menu_destroy ( menu );
return 1;
}


public FurienVIPMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = false;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = true;
vip_axe_knife [ id ] = false;
cs_set_user_money ( id, iMoney );
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = false;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = true;
cs_set_user_money ( id, iMoney );
return 1;
}
}
}

menu_destroy ( menu );
return 1;

}

public Player_TakeDamage ( iVictim, iInflictor, iAttacker, Float:fDamage, iDamageBits ) {

if ( katana_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( double_katana_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.8);
return HAM_HANDLED;

}

if ( super_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.5);
return HAM_HANDLED;

}

if ( infinity_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 3.0);
return HAM_HANDLED;

}

if ( dual_mp5 [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( scorpion_mp5 [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( scorpion_mp5 [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_XM1014 ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( m3_shoutgun [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_M3 ) {

SetHamParamFloat( 4, fDamage * 1.8);
return HAM_HANDLED;

}

if ( thompson [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_P90 ) {

SetHamParamFloat( 4, fDamage * 2.4);
return HAM_HANDLED;

}

if ( vip_elite [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_ELITE ) {

SetHamParamFloat( 4, fDamage * 2.7);
return HAM_HANDLED;

}

if ( vip_dualkriss [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_P90 ) {

SetHamParamFloat( 4, fDamage * 3.0);
return HAM_HANDLED;

}

if ( vip_hammer_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.7);
return HAM_HANDLED;

}

if ( vip_axe_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 3.3);
return HAM_HANDLED;

}

if ( vip_cartblue [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 2.5);
return HAM_HANDLED;

}

if ( vip_cartred [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 3.0);
return HAM_HANDLED;

}

return HAM_IGNORED;

}

Mersi dar la armele vip nu ai umblat.. le poti pune pret-ul 1 $ la fiecare? Si la knife-uri vip la furien poti pune 1 $?


Last edited by EleCtr0zZz on 15 Nov 2017 16:05, edited 1 time in total.



15 Nov 2017 16:02
Profile multumesc WWW
Online
Moderator ajutator
Moderator ajutator
User avatar

Joined: 16 Feb 2014 17:28
Posts: 1103
Location: Braila
Detinator Steam: Da
Detinator server CS: Zm.DarkCs.Ro
Reputatie: Moderator ajutator
Fond eXtream: 0
EleCtr0zZz wrote:
Doctor whO? <3 wrote:
| Afiseaza codul
/* 
* Changelog
*
* 0.0.2 -> HP & AP added in menu + more bugs fixed
* 0.0.3 -> VIP Menu for Furiens + New weapons . New 2 commands added
*
* Credits
*
* hadesownage
*/

#include < amxmodx >
#include < amxmisc >
#include < fun >
#include < hamsandwich >
#include < cstrike >
#include < fakemeta >
#include < colorchat >
#include < dhudmessage >

#define PLUGIN "FURIEN Weapons Shop"
#define VERSION "0.0.3"
#define AUTHOR "hadesownage"

#define VIP_ACCESS ADMIN_LEVEL_H

#pragma semicolon 1

new szTag [ ] = "[Furien Shop]";

new katana_knife_v_model [ 66 ] = "models/furien/v_katana.mdl";
new katana_knife_p_model [ 66 ] = "models/furien/p_katana.mdl";

new double_katana_v_knife_model [ 66 ] = "models/furien/v_double_katana.mdl";
new double_katana_p_knife_model [ 66 ] = "models/furien/p_double_katana.mdl";

new super_knife_v_model [ 66 ] = "models/furien/v_super_knife1.mdl";
new super_knife_p_model [ 66 ] = "models/furien/p_super_knife1.mdl";

new infinity_knife_v_model [ 66 ] = "models/furien/v_infinity_knife1.mdl";
new infinity_knife_p_model [ 66 ] = "models/furien/p_infinity_knife1.mdl";

new dual_mp5_v_model [ 66 ] = "models/furien/v_dualmp5.mdl";
new dual_mp5_p_model [ 66 ] = "models/furien/p_dualmp5.mdl";

new scorpion_mp5_v_model [ 66 ] = "models/furien/v_scorpionmp5.mdl";
// new scorpion_mp5_p_model [ 66 ] = "models/furien/p_scorpionmp5.mdl";

new xm1014_shoutgun_v_model [ 66 ] = "models/furien/v_xm1014shoutgun.mdl";
// new xm1014_shoutgun_p_model [ 66 ] = "models/furien/p_xm1014shoutgun.mdl";

new m3_shoutgun_v_model [ 66 ] = "models/furien/v_m3shoutgun.mdl";
// new m3_shoutgun_p_model [ 66 ] = "models/furien/p_m3shoutgun.mdl";

new thompson_v_model [ 66 ] = "models/furien/v_thompson.mdl";
new thompson_p_model [ 66 ] = "models/furien/p_thompson.mdl";

new uspx_v_model [ 66 ] = "models/furien//v_uspx.mdl";
new uspx_p_model [ 66 ] = "models/furien/p_uspx.mdl";

new hammer_knife_v_model [ 66 ] = "models/furien/v_viphammer.mdl";
new hammer_knife_p_model [ 66 ] = "models/furien/p_viphammer.mdl";

new axe_knife_v_model [ 66 ] = "models/furien/v_vipaxe.mdl";
new axe_knife_p_model [ 66 ] = "models/furien/p_vipaxe.mdl";

new vip_awp_v_model [ 66 ] = "models/furien/v_vipawp.mdl";
// new vip_awp_p_model [ 66 ] = "models/furien/p_vipawp.mdl";

new vip_elite_v_model [ 66 ] = "models/furien/v_vipelite.mdl";
new vip_elite_p_model [ 66 ] = "models/furien/p_vipelite.mdl";

new vip_cartblue_v_model [ 66 ] = "models/furien/v_vipcartblue.mdl";
new vip_cartblue_p_model [ 66 ] = "models/furien/p_vipcartblue.mdl";

new vip_cartred_v_model [ 66 ] = "models/furien/v_vipcartred.mdl";
new vip_cartred_p_model [ 66 ] = "models/furien/p_vipcartred.mdl";

new vip_dualkriss_v_model [ 66 ] = "models/furien/v_vipdualkriss.mdl";
new vip_dualkriss_p_model [ 66 ] = "models/furien/p_vipdualkriss.mdl";

new vip_dualskull_v_model [ 66 ] = "models/furien/v_vipdualskull.mdl";
new vip_dualskull_p_model [ 66 ] = "models/furien/p_vipdualskull.mdl";

new vip_minigun_v_model [ 66 ] = "models/furien/v_vipm134.mdl";
new vip_minigun_p_model [ 66 ] = "models/furien/p_vipm134.mdl";

new bool:katana_knife [ 33 ];
new bool:double_katana_knife [ 33 ];
new bool:super_knife [ 33 ];
new bool:infinity_knife [ 33 ];

new bool:dual_mp5 [ 33 ];
new bool:scorpion_mp5 [ 33 ];
new bool:xm1014_shoutgun [ 33 ];
new bool:m3_shoutgun [ 33 ];
new bool:thompson [ 33 ];
new bool:weapon_uspx [ 33 ];

new bool:vip_awp [ 33 ];
new bool:vip_elite [ 33 ];
new bool:vip_dualkriss [ 33 ];
new bool:vip_dualskull [ 33 ];
new bool:vip_minigun [ 33 ];
new bool:vip_hammer_knife [ 33 ];
new bool:vip_axe_knife [ 33 ];
new bool:vip_cartblue [ 33 ];
new bool:vip_cartred [ 33 ];
new bool:vip_cartblue2 [ 33 ];
new bool:vip_cartred2 [ 33 ];

new g_iMaxPlayers;

public plugin_init ( ) {

register_plugin ( PLUGIN, VERSION, "hadesownage" );

register_clcmd ( "say /weapons", "CheckFurienAcces", -1 );
register_clcmd ( "say_team /weapons", "CheckFurienAcces", -1 );
register_clcmd ( "say /shop", "CheckFurienAcces", -1 );
register_clcmd ( "say_team /shop", "CheckFurienAcces", -1 );
register_clcmd ( "say /furienshop", "CheckFurienAcces", -1 );
register_clcmd ( "say_team /furienshop", "CheckFurienAcces", -1 );

register_event ( "CurWeapon", "FurienCurrentWeapon", "be", "1=1" );
register_event ( "CurWeapon", "AntiFurienCurrentWeapon", "be", "1=1" );

register_logevent ( "round_start", 2, "1=Round_Start" );
register_logevent ( "round_end", 2, "1=Round_End" );

RegisterHam ( Ham_Spawn, "player", "CheckFurienAcces", 1 );
RegisterHam ( Ham_Spawn, "player", "RefreshAllWeapons", 1 );
RegisterHam(Ham_TakeDamage, "player", "Player_TakeDamage");

g_iMaxPlayers = get_maxplayers ( );
}

public plugin_precache ( ) {

precache_model ( katana_knife_v_model );
precache_model ( double_katana_v_knife_model );
precache_model ( super_knife_v_model );
precache_model ( infinity_knife_v_model );

precache_model ( katana_knife_p_model );
precache_model ( double_katana_p_knife_model );
precache_model ( super_knife_p_model );
precache_model ( infinity_knife_p_model );

precache_model ( dual_mp5_v_model );
precache_model ( scorpion_mp5_v_model );
precache_model ( xm1014_shoutgun_v_model );
precache_model ( m3_shoutgun_v_model );
precache_model ( thompson_v_model );
precache_model ( uspx_v_model );

precache_model ( dual_mp5_p_model );
// precache_model ( scorpion_mp5_p_model );
// precache_model ( xm1014_shoutgun_p_model );
// precache_model ( m3_shoutgun_p_model );
precache_model ( thompson_p_model );
precache_model ( uspx_p_model );

precache_model ( vip_elite_v_model );
precache_model ( vip_awp_v_model );
precache_model ( vip_dualkriss_v_model );
precache_model ( vip_dualskull_v_model );
precache_model ( vip_minigun_v_model );
precache_model ( hammer_knife_v_model );
precache_model ( axe_knife_v_model );
precache_model ( vip_cartblue_v_model );
precache_model ( vip_cartred_v_model );

precache_model ( vip_elite_p_model );
// precache_model ( vip_awp_p_model );
precache_model ( vip_dualkriss_p_model );
precache_model ( vip_dualskull_p_model );
precache_model ( vip_minigun_p_model );
precache_model ( hammer_knife_p_model );
precache_model ( axe_knife_p_model );
precache_model ( vip_cartblue_p_model );
precache_model ( vip_cartred_p_model );
}

public FurienCurrentWeapon ( id ) {

new szKnife = get_user_weapon ( id );
if ( szKnife == CSW_KNIFE ) {
if ( katana_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, katana_knife_v_model );
set_pev ( id, pev_weaponmodel2, katana_knife_p_model );
set_task ( 0.1, "Katana_Damage", id );

}
}
if ( szKnife == CSW_KNIFE ) {
if ( double_katana_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, double_katana_v_knife_model );
set_pev ( id, pev_weaponmodel2, double_katana_p_knife_model );
set_task ( 0.1, "Double_Katana_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( super_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, super_knife_v_model );
set_pev ( id, pev_weaponmodel2, super_knife_p_model );
set_task ( 0.1, "Super_Knife_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( infinity_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, infinity_knife_v_model );
set_pev ( id, pev_weaponmodel2, infinity_knife_p_model );
set_task ( 0.1, "Infinity_Knife_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( vip_hammer_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, hammer_knife_v_model );
set_pev ( id, pev_weaponmodel2, hammer_knife_p_model );
set_task ( 0.1, "VIP_Hammer_Knife_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( vip_axe_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, axe_knife_v_model );
set_pev ( id, pev_weaponmodel2, axe_knife_p_model );
set_task ( 0.1, "VIP_Axe_Knife_Damage", id );

}
}

else if ( !user_has_weapon ( id, CSW_KNIFE ) || ( !katana_knife [ id ] || !double_katana_knife || !super_knife || !infinity_knife || !vip_hammer_knife || !vip_axe_knife ) )
{
give_item ( id, "weapon_knife" );
return 1;
}
return 1;
}

public AntiFurienCurrentWeapon ( id ) {

new szWeapon = get_user_weapon ( id );
if ( szWeapon == CSW_MP5NAVY ) {
if ( dual_mp5 [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, dual_mp5_v_model );
set_pev ( id, pev_weaponmodel2, dual_mp5_p_model );
set_task ( 0.1, "Dual_Mp5_Damage", id );

}
}

if ( szWeapon == CSW_MP5NAVY ) {
if ( scorpion_mp5 [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, scorpion_mp5_v_model );
// set_pev ( id, pev_weaponmodel2, scorpion_mp5_p_model );
set_task ( 0.1, "Scorpion_Mp5_Damage", id );

}
}

if ( szWeapon == CSW_XM1014 ) {
if ( xm1014_shoutgun [ id ] && szWeapon == CSW_XM1014 ) {

set_pev ( id, pev_viewmodel2, xm1014_shoutgun_v_model );
// set_pev ( id, pev_weaponmodel2, xm1014_shoutgun_p_model );
set_task ( 0.1, "XM1014_Shotgun_Damage", id );

}
}

if ( szWeapon == CSW_M3 ) {
if ( m3_shoutgun [ id ] && szWeapon == CSW_M3 ) {

set_pev ( id, pev_viewmodel2, m3_shoutgun_v_model );
// set_pev ( id, pev_weaponmodel2, m3_shoutgun_p_model );
set_task ( 0.1, "M3_Shotgun_Damage", id );

}
}

if ( szWeapon == CSW_P90 ) {
if ( thompson [ id ] && szWeapon == CSW_P90 ) {

set_pev ( id, pev_viewmodel2, thompson_v_model );
set_pev ( id, pev_weaponmodel2, thompson_p_model );
set_task ( 0.1, "Thompson_Damage", id );

}
}

if ( szWeapon == CSW_ELITE ) {
if ( vip_elite [ id ] && szWeapon == CSW_ELITE ) {

set_pev ( id, pev_viewmodel2, vip_elite_v_model );
set_pev ( id, pev_weaponmodel2, vip_elite_p_model );
set_task ( 0.1, "VIP_Elite_Damage", id );

}
}

if ( szWeapon == CSW_AWP ) {
if ( vip_awp [ id ] && szWeapon == CSW_AWP ) {

set_pev ( id, pev_viewmodel2, vip_awp_v_model );
// set_pev ( id, pev_weaponmodel2, vip_awp_p_model );
set_task ( 0.1, "VIP_AWP_Damage", id );

}
}

if ( szWeapon == CSW_P90 ) {
if ( vip_dualkriss [ id ] && szWeapon == CSW_P90 ) {

set_pev ( id, pev_viewmodel2, vip_dualkriss_v_model );
set_pev ( id, pev_weaponmodel2, vip_dualkriss_p_model );
set_task ( 0.1, "VIP_DualKriss_Damage", id );

}
}

if ( szWeapon == CSW_SG552 ) {
if ( vip_dualskull [ id ] && szWeapon == CSW_SG552 ) {

set_pev ( id, pev_viewmodel2, vip_dualskull_v_model );
set_pev ( id, pev_weaponmodel2, vip_dualskull_p_model );
set_task ( 0.1, "VIP_DualSkull_Damage", id );

}
}

if ( szWeapon == CSW_MP5NAVY ) {
if ( vip_cartblue [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, vip_cartblue_v_model );
set_pev ( id, pev_weaponmodel2, vip_cartblue_p_model );
set_task ( 0.1, "VIP_Cartblue_Damage", id );

}
}

if ( szWeapon == CSW_M249 ) {
if ( vip_minigun [ id ] && szWeapon == CSW_M249 ) {

set_pev ( id, pev_viewmodel2, vip_minigun_v_model );
set_pev ( id, pev_weaponmodel2, vip_minigun_p_model );

}
}

if ( szWeapon == CSW_MP5NAVY ) {
if ( vip_cartred [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, vip_cartred_v_model );
set_pev ( id, pev_weaponmodel2, vip_cartred_p_model );
set_task ( 0.1, "VIP_Cartred_Damage", id );

}
}

if ( szWeapon == CSW_USP ) {
if ( weapon_uspx [ id ] && szWeapon == CSW_USP ) {

set_pev ( id, pev_viewmodel2, uspx_v_model );
set_pev ( id, pev_weaponmodel2, uspx_p_model );

}
}

return 1;
}

public round_start ( id ) {

if ( is_user_alive ( id ) ) {

katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;

dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;

vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_awp [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;

}
return 1;
}

public round_end ( ) {

static id;
for ( id = 1 ; id <= g_iMaxPlayers ; id++ )
{
if (!is_user_alive ( id ) )
continue;

strip_user_weapons ( id );
set_pdata_int ( id, 116, 0 );
give_item ( id, "weapon_knife" );
}
}

public RefreshAllWeapons ( id ) {

if ( is_user_alive ( id ) ) {

katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;

dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;

vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_awp [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
}
return 1;
}

public CheckFurienAcces ( id ) {

if ( cs_get_user_team ( id ) == CS_TEAM_T ) {

set_task( 0.1, "ShowFurienMenuWeapons", id );
}

if ( cs_get_user_team ( id ) == CS_TEAM_CT ) {

set_task( 0.1, "ShowAntiFurienMenuWeapons", id );
}

}

public ShowFurienMenuWeapons ( id, level, cid ) {

new menu = menu_create ( "\rFurien \yWeapons Menu", "FurienWeaponsMenuGiver" );
menu_additem ( menu, "\yKatana [ \r 1200 $ \y ]", "1", 0 );
menu_additem ( menu, "\yDual Katana [ \r 1400 $ \y ]", "2", 0 );
menu_additem ( menu, "\ySuper Knife [ \r 1500 $ \y ]", "3", 0 );
menu_additem ( menu, "\yInfinity Knife [ \r 1600 $ \y ]", "4", 0 );
menu_additem ( menu, "\y+50 AP [ \r 400 $ \y ]", "5", 0 );
menu_additem ( menu, "\y+50 HP [ \r 400 $ \y ]", "6", 0 );
menu_additem ( menu, "\yHE Grenade [ \r 400 $ \y ]", "7", 0 );
menu_additem ( menu, "\yULTIMATE [ \r VIP ONLY \y ]", "8", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public ShowAntiFurienMenuWeapons ( id, level, cid ) {

new menu = menu_create ( "\rAntiFurien \yWeapons Menu", "AntiFurienWeaponsMenuGiver" );
menu_additem ( menu, "\yDual Mp5 [ \r 1300 $ \y ]", "1", 0 );
menu_additem ( menu, "\yScorpion Mp5 [ \r 1500 $ \y ]", "2", 0 );
menu_additem ( menu, "\yXM1014 Shoutgun [ \r 1650 $ \y ]", "3", 0 );
menu_additem ( menu, "\yM3 Shoutgun [ \r 1780 $ \y ]", "4", 0 );
menu_additem ( menu, "\yThompson [ \r 1800 $ \y ]", "5", 0 );
menu_additem ( menu, "\y+50 AP [ \r 800 $ \y ]", "6", 0 );
menu_additem ( menu, "\y+50 HP [ \r 800 $ \y ]", "7", 0 );
menu_additem ( menu, "\yDefuse Kit [ \r 500 $ \y ]", "8", 0 );
menu_additem ( menu, "\yULTIMATE [ \r VIP ONLY \y ]", "9", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public ShowAntiFurienMenuVIP ( id, level, cid ) {

new menu = menu_create ( "\y* VIP * \rAntiFurien \yWeapons Menu", "AntiFurienVIPMenuGiver" );
menu_additem ( menu, "\ySuper AWP \y[ \r1 $ \y ]", "1", VIP_ACCESS );
menu_additem ( menu, "\yDual Kriss \y[ \r1 $ \y ]", "2", VIP_ACCESS );
menu_additem ( menu, "\yDual Skull \y[ \r1 $ \y ]", "3", VIP_ACCESS );
menu_additem ( menu, "\yMinigun \y[ \r1 $ \y ]", "4", VIP_ACCESS );
menu_additem ( menu, "\yCart Blue \y[ \r1 $ \y ]", "5", VIP_ACCESS );
menu_additem ( menu, "\yCart Red \y[ \r1 $ \y ]", "6", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public ShowFurienMenuVIP ( id, level, cid ) {

new menu = menu_create ( "\y* VIP * \rFurien \yWeapons Menu", "FurienVIPMenuGiver" );
menu_additem ( menu, "\ySuper Hammer \y[ \r1 $ \y ]", "1", VIP_ACCESS );
menu_additem ( menu, "\ySuper Axe \y[ \r1 $ \y ]", "2", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public FurienWeaponsMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1200;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
katana_knife [ id ] = true;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}


case 2:
{
new iMoney = cs_get_user_money ( id ) - 1400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
double_katana_knife [ id ] = true;
katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}

case 3:
{
new iMoney = cs_get_user_money ( id ) - 1500;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
super_knife [ id ] = true;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
infinity_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}

case 4:
{
new iMoney = cs_get_user_money ( id ) - 1600;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = true;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}

case 5:
{
new iMoney = cs_get_user_money ( id ) - 400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
new szHealth = get_user_health ( id );
if ( szHealth <= 300 ) {
set_dhudmessage ( 31, 201, 31, 0.20, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 AP" );
set_user_armor ( id, get_user_armor ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}

if ( szHealth > 300 ) {
ColorChat ( id, GREEN, "%s^x01 Nu poti cumpara mai mult de 300 HP", szTag );
}
}
}

case 6:
{
new iMoney = cs_get_user_money ( id ) - 400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
new szArmor = get_user_armor ( id );
if ( szArmor <= 500 ) {
set_dhudmessage ( 31, 201, 31, 0.02, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 HP" );
set_user_health ( id, get_user_health ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}

if ( szArmor > 500 ) {
ColorChat ( id, GREEN, "%s^x01 Nu poti cumpara mai mult de 500 AP", szTag );
}
}

}

case 7:
{
new iMoney = cs_get_user_money ( id ) - 400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_hegrenade" );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 8:
{
set_task ( 0.1, "ShowFurienMenuVIP", id );
return 1;
}
}

menu_destroy ( menu );
return 1;

}

public AntiFurienWeaponsMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1300;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
dual_mp5 [ id ] = true;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1500;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
scorpion_mp5 [ id ] = true;
dual_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 3:
{
new iMoney = cs_get_user_money ( id ) - 1650;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_xm1014" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_XM1014, 200 );
cs_set_user_money( id, iMoney );
xm1014_shoutgun [ id ] = true;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 4:
{
new iMoney = cs_get_user_money ( id ) - 1780;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_m3" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_M3, 200 );
cs_set_user_money( id, iMoney );
m3_shoutgun [ id ] = true;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 5:
{
new iMoney = cs_get_user_money ( id ) - 1800;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_p90" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_P90, 200 );
cs_set_user_money( id, iMoney );
thompson [ id ] = true;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 6:
{
new iMoney = cs_get_user_money ( id ) - 800;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
set_dhudmessage ( 31, 201, 31, 0.20, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 AP" );
set_user_armor ( id, get_user_armor ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 7:
{
new iMoney = cs_get_user_money ( id ) - 800;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
set_dhudmessage ( 31, 201, 31, 0.02, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 HP" );
set_user_health ( id, get_user_health ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 8:
{
new iMoney = cs_get_user_money ( id ) - 500;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "item_thighpack" );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 9:
{
set_task ( 0.1, "ShowAntiFurienMenuVIP", id );
return 1;
}
}

menu_destroy ( menu );
return 1;

}

public AntiFurienVIPMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_awp" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_AWP, 50 );
cs_set_user_money( id, iMoney );
vip_awp [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = false;
vip_minigun [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_p90" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_P90, 200 );
cs_set_user_money( id, iMoney );
vip_dualkriss [ id ] = true;
vip_dualskull [ id ] = false;
vip_elite [ id ] = true;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 3:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_sg552" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_SG552, 200 );
cs_set_user_money( id, iMoney );
vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = true;
vip_elite [ id ] = true;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 4:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_m249" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_M249, 300 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 5:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = true;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 6:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = true;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}

}
}
menu_destroy ( menu );
return 1;
}


public FurienVIPMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = false;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = true;
vip_axe_knife [ id ] = false;
cs_set_user_money ( id, iMoney );
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = false;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = true;
cs_set_user_money ( id, iMoney );
return 1;
}
}
}

menu_destroy ( menu );
return 1;

}

public Player_TakeDamage ( iVictim, iInflictor, iAttacker, Float:fDamage, iDamageBits ) {

if ( katana_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( double_katana_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.8);
return HAM_HANDLED;

}

if ( super_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.5);
return HAM_HANDLED;

}

if ( infinity_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 3.0);
return HAM_HANDLED;

}

if ( dual_mp5 [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( scorpion_mp5 [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( scorpion_mp5 [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_XM1014 ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( m3_shoutgun [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_M3 ) {

SetHamParamFloat( 4, fDamage * 1.8);
return HAM_HANDLED;

}

if ( thompson [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_P90 ) {

SetHamParamFloat( 4, fDamage * 2.4);
return HAM_HANDLED;

}

if ( vip_elite [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_ELITE ) {

SetHamParamFloat( 4, fDamage * 2.7);
return HAM_HANDLED;

}

if ( vip_dualkriss [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_P90 ) {

SetHamParamFloat( 4, fDamage * 3.0);
return HAM_HANDLED;

}

if ( vip_hammer_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.7);
return HAM_HANDLED;

}

if ( vip_axe_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 3.3);
return HAM_HANDLED;

}

if ( vip_cartblue [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 2.5);
return HAM_HANDLED;

}

if ( vip_cartred [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 3.0);
return HAM_HANDLED;

}

return HAM_IGNORED;

}

Mersi dar la armele vip nu ai umblat.. le poti pune pret-ul 1 $ la fiecare? Si la knife-uri vip la furien poti pune 1 $?

Vad ca ti-a pus pretul corect.
Nu mai face 2x post
Nu sunt obligat sa descarc fisierele nimanui :) Cine stie ce virusi ai tu in pc .

_________________
Tranzactii:
| Afiseaza codul
https://www.extreamcs.com/forum/post2578307.html#p2578307
anunturi/dau-paysafe-paypal-t333080.html
anunturi/schimb-paysafecard-t325518.html
anunturi/dau-paypal-bancar-t326698.html
anunturi/ofer-paypal-orange-t324022.html
post2578307.html#p2578307
anunturi/exchange-bancar-paypay-t336647.html
anunturi/euro-paypal-euro-sms-t337786.html
anunturi/paysafe-paypal-t343951.html


Ts.DarkCs.Ro- de la 20:00-22:00 sunam cu****e

Vand Knife Menu


15 Nov 2017 17:50
Profile multumesc YIM WWW
Online
Membru, skill +2
Membru, skill +2
User avatar

Joined: 21 Jun 2013 12:40
Posts: 752
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
EleCtr0zZz wrote:
Doctor whO? <3 wrote:
| Afiseaza codul
/* 
* Changelog
*
* 0.0.2 -> HP & AP added in menu + more bugs fixed
* 0.0.3 -> VIP Menu for Furiens + New weapons . New 2 commands added
*
* Credits
*
* hadesownage
*/

#include < amxmodx >
#include < amxmisc >
#include < fun >
#include < hamsandwich >
#include < cstrike >
#include < fakemeta >
#include < colorchat >
#include < dhudmessage >

#define PLUGIN "FURIEN Weapons Shop"
#define VERSION "0.0.3"
#define AUTHOR "hadesownage"

#define VIP_ACCESS ADMIN_LEVEL_H

#pragma semicolon 1

new szTag [ ] = "[Furien Shop]";

new katana_knife_v_model [ 66 ] = "models/furien/v_katana.mdl";
new katana_knife_p_model [ 66 ] = "models/furien/p_katana.mdl";

new double_katana_v_knife_model [ 66 ] = "models/furien/v_double_katana.mdl";
new double_katana_p_knife_model [ 66 ] = "models/furien/p_double_katana.mdl";

new super_knife_v_model [ 66 ] = "models/furien/v_super_knife1.mdl";
new super_knife_p_model [ 66 ] = "models/furien/p_super_knife1.mdl";

new infinity_knife_v_model [ 66 ] = "models/furien/v_infinity_knife1.mdl";
new infinity_knife_p_model [ 66 ] = "models/furien/p_infinity_knife1.mdl";

new dual_mp5_v_model [ 66 ] = "models/furien/v_dualmp5.mdl";
new dual_mp5_p_model [ 66 ] = "models/furien/p_dualmp5.mdl";

new scorpion_mp5_v_model [ 66 ] = "models/furien/v_scorpionmp5.mdl";
// new scorpion_mp5_p_model [ 66 ] = "models/furien/p_scorpionmp5.mdl";

new xm1014_shoutgun_v_model [ 66 ] = "models/furien/v_xm1014shoutgun.mdl";
// new xm1014_shoutgun_p_model [ 66 ] = "models/furien/p_xm1014shoutgun.mdl";

new m3_shoutgun_v_model [ 66 ] = "models/furien/v_m3shoutgun.mdl";
// new m3_shoutgun_p_model [ 66 ] = "models/furien/p_m3shoutgun.mdl";

new thompson_v_model [ 66 ] = "models/furien/v_thompson.mdl";
new thompson_p_model [ 66 ] = "models/furien/p_thompson.mdl";

new uspx_v_model [ 66 ] = "models/furien//v_uspx.mdl";
new uspx_p_model [ 66 ] = "models/furien/p_uspx.mdl";

new hammer_knife_v_model [ 66 ] = "models/furien/v_viphammer.mdl";
new hammer_knife_p_model [ 66 ] = "models/furien/p_viphammer.mdl";

new axe_knife_v_model [ 66 ] = "models/furien/v_vipaxe.mdl";
new axe_knife_p_model [ 66 ] = "models/furien/p_vipaxe.mdl";

new vip_awp_v_model [ 66 ] = "models/furien/v_vipawp.mdl";
// new vip_awp_p_model [ 66 ] = "models/furien/p_vipawp.mdl";

new vip_elite_v_model [ 66 ] = "models/furien/v_vipelite.mdl";
new vip_elite_p_model [ 66 ] = "models/furien/p_vipelite.mdl";

new vip_cartblue_v_model [ 66 ] = "models/furien/v_vipcartblue.mdl";
new vip_cartblue_p_model [ 66 ] = "models/furien/p_vipcartblue.mdl";

new vip_cartred_v_model [ 66 ] = "models/furien/v_vipcartred.mdl";
new vip_cartred_p_model [ 66 ] = "models/furien/p_vipcartred.mdl";

new vip_dualkriss_v_model [ 66 ] = "models/furien/v_vipdualkriss.mdl";
new vip_dualkriss_p_model [ 66 ] = "models/furien/p_vipdualkriss.mdl";

new vip_dualskull_v_model [ 66 ] = "models/furien/v_vipdualskull.mdl";
new vip_dualskull_p_model [ 66 ] = "models/furien/p_vipdualskull.mdl";

new vip_minigun_v_model [ 66 ] = "models/furien/v_vipm134.mdl";
new vip_minigun_p_model [ 66 ] = "models/furien/p_vipm134.mdl";

new bool:katana_knife [ 33 ];
new bool:double_katana_knife [ 33 ];
new bool:super_knife [ 33 ];
new bool:infinity_knife [ 33 ];

new bool:dual_mp5 [ 33 ];
new bool:scorpion_mp5 [ 33 ];
new bool:xm1014_shoutgun [ 33 ];
new bool:m3_shoutgun [ 33 ];
new bool:thompson [ 33 ];
new bool:weapon_uspx [ 33 ];

new bool:vip_awp [ 33 ];
new bool:vip_elite [ 33 ];
new bool:vip_dualkriss [ 33 ];
new bool:vip_dualskull [ 33 ];
new bool:vip_minigun [ 33 ];
new bool:vip_hammer_knife [ 33 ];
new bool:vip_axe_knife [ 33 ];
new bool:vip_cartblue [ 33 ];
new bool:vip_cartred [ 33 ];
new bool:vip_cartblue2 [ 33 ];
new bool:vip_cartred2 [ 33 ];

new g_iMaxPlayers;

public plugin_init ( ) {

register_plugin ( PLUGIN, VERSION, "hadesownage" );

register_clcmd ( "say /weapons", "CheckFurienAcces", -1 );
register_clcmd ( "say_team /weapons", "CheckFurienAcces", -1 );
register_clcmd ( "say /shop", "CheckFurienAcces", -1 );
register_clcmd ( "say_team /shop", "CheckFurienAcces", -1 );
register_clcmd ( "say /furienshop", "CheckFurienAcces", -1 );
register_clcmd ( "say_team /furienshop", "CheckFurienAcces", -1 );

register_event ( "CurWeapon", "FurienCurrentWeapon", "be", "1=1" );
register_event ( "CurWeapon", "AntiFurienCurrentWeapon", "be", "1=1" );

register_logevent ( "round_start", 2, "1=Round_Start" );
register_logevent ( "round_end", 2, "1=Round_End" );

RegisterHam ( Ham_Spawn, "player", "CheckFurienAcces", 1 );
RegisterHam ( Ham_Spawn, "player", "RefreshAllWeapons", 1 );
RegisterHam(Ham_TakeDamage, "player", "Player_TakeDamage");

g_iMaxPlayers = get_maxplayers ( );
}

public plugin_precache ( ) {

precache_model ( katana_knife_v_model );
precache_model ( double_katana_v_knife_model );
precache_model ( super_knife_v_model );
precache_model ( infinity_knife_v_model );

precache_model ( katana_knife_p_model );
precache_model ( double_katana_p_knife_model );
precache_model ( super_knife_p_model );
precache_model ( infinity_knife_p_model );

precache_model ( dual_mp5_v_model );
precache_model ( scorpion_mp5_v_model );
precache_model ( xm1014_shoutgun_v_model );
precache_model ( m3_shoutgun_v_model );
precache_model ( thompson_v_model );
precache_model ( uspx_v_model );

precache_model ( dual_mp5_p_model );
// precache_model ( scorpion_mp5_p_model );
// precache_model ( xm1014_shoutgun_p_model );
// precache_model ( m3_shoutgun_p_model );
precache_model ( thompson_p_model );
precache_model ( uspx_p_model );

precache_model ( vip_elite_v_model );
precache_model ( vip_awp_v_model );
precache_model ( vip_dualkriss_v_model );
precache_model ( vip_dualskull_v_model );
precache_model ( vip_minigun_v_model );
precache_model ( hammer_knife_v_model );
precache_model ( axe_knife_v_model );
precache_model ( vip_cartblue_v_model );
precache_model ( vip_cartred_v_model );

precache_model ( vip_elite_p_model );
// precache_model ( vip_awp_p_model );
precache_model ( vip_dualkriss_p_model );
precache_model ( vip_dualskull_p_model );
precache_model ( vip_minigun_p_model );
precache_model ( hammer_knife_p_model );
precache_model ( axe_knife_p_model );
precache_model ( vip_cartblue_p_model );
precache_model ( vip_cartred_p_model );
}

public FurienCurrentWeapon ( id ) {

new szKnife = get_user_weapon ( id );
if ( szKnife == CSW_KNIFE ) {
if ( katana_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, katana_knife_v_model );
set_pev ( id, pev_weaponmodel2, katana_knife_p_model );
set_task ( 0.1, "Katana_Damage", id );

}
}
if ( szKnife == CSW_KNIFE ) {
if ( double_katana_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, double_katana_v_knife_model );
set_pev ( id, pev_weaponmodel2, double_katana_p_knife_model );
set_task ( 0.1, "Double_Katana_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( super_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, super_knife_v_model );
set_pev ( id, pev_weaponmodel2, super_knife_p_model );
set_task ( 0.1, "Super_Knife_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( infinity_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, infinity_knife_v_model );
set_pev ( id, pev_weaponmodel2, infinity_knife_p_model );
set_task ( 0.1, "Infinity_Knife_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( vip_hammer_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, hammer_knife_v_model );
set_pev ( id, pev_weaponmodel2, hammer_knife_p_model );
set_task ( 0.1, "VIP_Hammer_Knife_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( vip_axe_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, axe_knife_v_model );
set_pev ( id, pev_weaponmodel2, axe_knife_p_model );
set_task ( 0.1, "VIP_Axe_Knife_Damage", id );

}
}

else if ( !user_has_weapon ( id, CSW_KNIFE ) || ( !katana_knife [ id ] || !double_katana_knife || !super_knife || !infinity_knife || !vip_hammer_knife || !vip_axe_knife ) )
{
give_item ( id, "weapon_knife" );
return 1;
}
return 1;
}

public AntiFurienCurrentWeapon ( id ) {

new szWeapon = get_user_weapon ( id );
if ( szWeapon == CSW_MP5NAVY ) {
if ( dual_mp5 [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, dual_mp5_v_model );
set_pev ( id, pev_weaponmodel2, dual_mp5_p_model );
set_task ( 0.1, "Dual_Mp5_Damage", id );

}
}

if ( szWeapon == CSW_MP5NAVY ) {
if ( scorpion_mp5 [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, scorpion_mp5_v_model );
// set_pev ( id, pev_weaponmodel2, scorpion_mp5_p_model );
set_task ( 0.1, "Scorpion_Mp5_Damage", id );

}
}

if ( szWeapon == CSW_XM1014 ) {
if ( xm1014_shoutgun [ id ] && szWeapon == CSW_XM1014 ) {

set_pev ( id, pev_viewmodel2, xm1014_shoutgun_v_model );
// set_pev ( id, pev_weaponmodel2, xm1014_shoutgun_p_model );
set_task ( 0.1, "XM1014_Shotgun_Damage", id );

}
}

if ( szWeapon == CSW_M3 ) {
if ( m3_shoutgun [ id ] && szWeapon == CSW_M3 ) {

set_pev ( id, pev_viewmodel2, m3_shoutgun_v_model );
// set_pev ( id, pev_weaponmodel2, m3_shoutgun_p_model );
set_task ( 0.1, "M3_Shotgun_Damage", id );

}
}

if ( szWeapon == CSW_P90 ) {
if ( thompson [ id ] && szWeapon == CSW_P90 ) {

set_pev ( id, pev_viewmodel2, thompson_v_model );
set_pev ( id, pev_weaponmodel2, thompson_p_model );
set_task ( 0.1, "Thompson_Damage", id );

}
}

if ( szWeapon == CSW_ELITE ) {
if ( vip_elite [ id ] && szWeapon == CSW_ELITE ) {

set_pev ( id, pev_viewmodel2, vip_elite_v_model );
set_pev ( id, pev_weaponmodel2, vip_elite_p_model );
set_task ( 0.1, "VIP_Elite_Damage", id );

}
}

if ( szWeapon == CSW_AWP ) {
if ( vip_awp [ id ] && szWeapon == CSW_AWP ) {

set_pev ( id, pev_viewmodel2, vip_awp_v_model );
// set_pev ( id, pev_weaponmodel2, vip_awp_p_model );
set_task ( 0.1, "VIP_AWP_Damage", id );

}
}

if ( szWeapon == CSW_P90 ) {
if ( vip_dualkriss [ id ] && szWeapon == CSW_P90 ) {

set_pev ( id, pev_viewmodel2, vip_dualkriss_v_model );
set_pev ( id, pev_weaponmodel2, vip_dualkriss_p_model );
set_task ( 0.1, "VIP_DualKriss_Damage", id );

}
}

if ( szWeapon == CSW_SG552 ) {
if ( vip_dualskull [ id ] && szWeapon == CSW_SG552 ) {

set_pev ( id, pev_viewmodel2, vip_dualskull_v_model );
set_pev ( id, pev_weaponmodel2, vip_dualskull_p_model );
set_task ( 0.1, "VIP_DualSkull_Damage", id );

}
}

if ( szWeapon == CSW_MP5NAVY ) {
if ( vip_cartblue [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, vip_cartblue_v_model );
set_pev ( id, pev_weaponmodel2, vip_cartblue_p_model );
set_task ( 0.1, "VIP_Cartblue_Damage", id );

}
}

if ( szWeapon == CSW_M249 ) {
if ( vip_minigun [ id ] && szWeapon == CSW_M249 ) {

set_pev ( id, pev_viewmodel2, vip_minigun_v_model );
set_pev ( id, pev_weaponmodel2, vip_minigun_p_model );

}
}

if ( szWeapon == CSW_MP5NAVY ) {
if ( vip_cartred [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, vip_cartred_v_model );
set_pev ( id, pev_weaponmodel2, vip_cartred_p_model );
set_task ( 0.1, "VIP_Cartred_Damage", id );

}
}

if ( szWeapon == CSW_USP ) {
if ( weapon_uspx [ id ] && szWeapon == CSW_USP ) {

set_pev ( id, pev_viewmodel2, uspx_v_model );
set_pev ( id, pev_weaponmodel2, uspx_p_model );

}
}

return 1;
}

public round_start ( id ) {

if ( is_user_alive ( id ) ) {

katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;

dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;

vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_awp [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;

}
return 1;
}

public round_end ( ) {

static id;
for ( id = 1 ; id <= g_iMaxPlayers ; id++ )
{
if (!is_user_alive ( id ) )
continue;

strip_user_weapons ( id );
set_pdata_int ( id, 116, 0 );
give_item ( id, "weapon_knife" );
}
}

public RefreshAllWeapons ( id ) {

if ( is_user_alive ( id ) ) {

katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;

dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;

vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_awp [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
}
return 1;
}

public CheckFurienAcces ( id ) {

if ( cs_get_user_team ( id ) == CS_TEAM_T ) {

set_task( 0.1, "ShowFurienMenuWeapons", id );
}

if ( cs_get_user_team ( id ) == CS_TEAM_CT ) {

set_task( 0.1, "ShowAntiFurienMenuWeapons", id );
}

}

public ShowFurienMenuWeapons ( id, level, cid ) {

new menu = menu_create ( "\rFurien \yWeapons Menu", "FurienWeaponsMenuGiver" );
menu_additem ( menu, "\yKatana [ \r 1200 $ \y ]", "1", 0 );
menu_additem ( menu, "\yDual Katana [ \r 1400 $ \y ]", "2", 0 );
menu_additem ( menu, "\ySuper Knife [ \r 1500 $ \y ]", "3", 0 );
menu_additem ( menu, "\yInfinity Knife [ \r 1600 $ \y ]", "4", 0 );
menu_additem ( menu, "\y+50 AP [ \r 400 $ \y ]", "5", 0 );
menu_additem ( menu, "\y+50 HP [ \r 400 $ \y ]", "6", 0 );
menu_additem ( menu, "\yHE Grenade [ \r 400 $ \y ]", "7", 0 );
menu_additem ( menu, "\yULTIMATE [ \r VIP ONLY \y ]", "8", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public ShowAntiFurienMenuWeapons ( id, level, cid ) {

new menu = menu_create ( "\rAntiFurien \yWeapons Menu", "AntiFurienWeaponsMenuGiver" );
menu_additem ( menu, "\yDual Mp5 [ \r 1300 $ \y ]", "1", 0 );
menu_additem ( menu, "\yScorpion Mp5 [ \r 1500 $ \y ]", "2", 0 );
menu_additem ( menu, "\yXM1014 Shoutgun [ \r 1650 $ \y ]", "3", 0 );
menu_additem ( menu, "\yM3 Shoutgun [ \r 1780 $ \y ]", "4", 0 );
menu_additem ( menu, "\yThompson [ \r 1800 $ \y ]", "5", 0 );
menu_additem ( menu, "\y+50 AP [ \r 800 $ \y ]", "6", 0 );
menu_additem ( menu, "\y+50 HP [ \r 800 $ \y ]", "7", 0 );
menu_additem ( menu, "\yDefuse Kit [ \r 500 $ \y ]", "8", 0 );
menu_additem ( menu, "\yULTIMATE [ \r VIP ONLY \y ]", "9", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public ShowAntiFurienMenuVIP ( id, level, cid ) {

new menu = menu_create ( "\y* VIP * \rAntiFurien \yWeapons Menu", "AntiFurienVIPMenuGiver" );
menu_additem ( menu, "\ySuper AWP \y[ \r1 $ \y ]", "1", VIP_ACCESS );
menu_additem ( menu, "\yDual Kriss \y[ \r1 $ \y ]", "2", VIP_ACCESS );
menu_additem ( menu, "\yDual Skull \y[ \r1 $ \y ]", "3", VIP_ACCESS );
menu_additem ( menu, "\yMinigun \y[ \r1 $ \y ]", "4", VIP_ACCESS );
menu_additem ( menu, "\yCart Blue \y[ \r1 $ \y ]", "5", VIP_ACCESS );
menu_additem ( menu, "\yCart Red \y[ \r1 $ \y ]", "6", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public ShowFurienMenuVIP ( id, level, cid ) {

new menu = menu_create ( "\y* VIP * \rFurien \yWeapons Menu", "FurienVIPMenuGiver" );
menu_additem ( menu, "\ySuper Hammer \y[ \r1 $ \y ]", "1", VIP_ACCESS );
menu_additem ( menu, "\ySuper Axe \y[ \r1 $ \y ]", "2", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public FurienWeaponsMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1200;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
katana_knife [ id ] = true;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}


case 2:
{
new iMoney = cs_get_user_money ( id ) - 1400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
double_katana_knife [ id ] = true;
katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}

case 3:
{
new iMoney = cs_get_user_money ( id ) - 1500;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
super_knife [ id ] = true;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
infinity_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}

case 4:
{
new iMoney = cs_get_user_money ( id ) - 1600;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = true;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}

case 5:
{
new iMoney = cs_get_user_money ( id ) - 400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
new szHealth = get_user_health ( id );
if ( szHealth <= 300 ) {
set_dhudmessage ( 31, 201, 31, 0.20, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 AP" );
set_user_armor ( id, get_user_armor ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}

if ( szHealth > 300 ) {
ColorChat ( id, GREEN, "%s^x01 Nu poti cumpara mai mult de 300 HP", szTag );
}
}
}

case 6:
{
new iMoney = cs_get_user_money ( id ) - 400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
new szArmor = get_user_armor ( id );
if ( szArmor <= 500 ) {
set_dhudmessage ( 31, 201, 31, 0.02, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 HP" );
set_user_health ( id, get_user_health ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}

if ( szArmor > 500 ) {
ColorChat ( id, GREEN, "%s^x01 Nu poti cumpara mai mult de 500 AP", szTag );
}
}

}

case 7:
{
new iMoney = cs_get_user_money ( id ) - 400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_hegrenade" );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 8:
{
set_task ( 0.1, "ShowFurienMenuVIP", id );
return 1;
}
}

menu_destroy ( menu );
return 1;

}

public AntiFurienWeaponsMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1300;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
dual_mp5 [ id ] = true;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1500;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
scorpion_mp5 [ id ] = true;
dual_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 3:
{
new iMoney = cs_get_user_money ( id ) - 1650;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_xm1014" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_XM1014, 200 );
cs_set_user_money( id, iMoney );
xm1014_shoutgun [ id ] = true;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 4:
{
new iMoney = cs_get_user_money ( id ) - 1780;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_m3" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_M3, 200 );
cs_set_user_money( id, iMoney );
m3_shoutgun [ id ] = true;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 5:
{
new iMoney = cs_get_user_money ( id ) - 1800;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_p90" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_P90, 200 );
cs_set_user_money( id, iMoney );
thompson [ id ] = true;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 6:
{
new iMoney = cs_get_user_money ( id ) - 800;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
set_dhudmessage ( 31, 201, 31, 0.20, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 AP" );
set_user_armor ( id, get_user_armor ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 7:
{
new iMoney = cs_get_user_money ( id ) - 800;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
set_dhudmessage ( 31, 201, 31, 0.02, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 HP" );
set_user_health ( id, get_user_health ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 8:
{
new iMoney = cs_get_user_money ( id ) - 500;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "item_thighpack" );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 9:
{
set_task ( 0.1, "ShowAntiFurienMenuVIP", id );
return 1;
}
}

menu_destroy ( menu );
return 1;

}

public AntiFurienVIPMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_awp" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_AWP, 50 );
cs_set_user_money( id, iMoney );
vip_awp [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = false;
vip_minigun [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_p90" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_P90, 200 );
cs_set_user_money( id, iMoney );
vip_dualkriss [ id ] = true;
vip_dualskull [ id ] = false;
vip_elite [ id ] = true;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 3:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_sg552" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_SG552, 200 );
cs_set_user_money( id, iMoney );
vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = true;
vip_elite [ id ] = true;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 4:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_m249" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_M249, 300 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 5:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = true;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 6:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = true;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}

}
}
menu_destroy ( menu );
return 1;
}


public FurienVIPMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = false;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = true;
vip_axe_knife [ id ] = false;
cs_set_user_money ( id, iMoney );
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = false;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = true;
cs_set_user_money ( id, iMoney );
return 1;
}
}
}

menu_destroy ( menu );
return 1;

}

public Player_TakeDamage ( iVictim, iInflictor, iAttacker, Float:fDamage, iDamageBits ) {

if ( katana_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( double_katana_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.8);
return HAM_HANDLED;

}

if ( super_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.5);
return HAM_HANDLED;

}

if ( infinity_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 3.0);
return HAM_HANDLED;

}

if ( dual_mp5 [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( scorpion_mp5 [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( scorpion_mp5 [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_XM1014 ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( m3_shoutgun [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_M3 ) {

SetHamParamFloat( 4, fDamage * 1.8);
return HAM_HANDLED;

}

if ( thompson [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_P90 ) {

SetHamParamFloat( 4, fDamage * 2.4);
return HAM_HANDLED;

}

if ( vip_elite [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_ELITE ) {

SetHamParamFloat( 4, fDamage * 2.7);
return HAM_HANDLED;

}

if ( vip_dualkriss [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_P90 ) {

SetHamParamFloat( 4, fDamage * 3.0);
return HAM_HANDLED;

}

if ( vip_hammer_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.7);
return HAM_HANDLED;

}

if ( vip_axe_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 3.3);
return HAM_HANDLED;

}

if ( vip_cartblue [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 2.5);
return HAM_HANDLED;

}

if ( vip_cartred [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 3.0);
return HAM_HANDLED;

}

return HAM_IGNORED;

}

Mersi dar la armele vip nu ai umblat.. le poti pune pret-ul 1 $ la fiecare? Si la knife-uri vip la furien poti pune 1 $?

Am pus pretul de 1$ la armele vip...


15 Nov 2017 18:18
Profile multumesc WWW
Online
Membru, skill 0
Membru, skill 0

Joined: 25 May 2015 07:27
Posts: 81
Detinator Steam: Nu
CS Status: Don't Mess Whit Me
SteamID: Nu cred
Fond eXtream: 0
Doctor whO? <3 wrote:
EleCtr0zZz wrote:
Doctor whO? <3 wrote:
| Afiseaza codul
/* 
* Changelog
*
* 0.0.2 -> HP & AP added in menu + more bugs fixed
* 0.0.3 -> VIP Menu for Furiens + New weapons . New 2 commands added
*
* Credits
*
* hadesownage
*/

#include < amxmodx >
#include < amxmisc >
#include < fun >
#include < hamsandwich >
#include < cstrike >
#include < fakemeta >
#include < colorchat >
#include < dhudmessage >

#define PLUGIN "FURIEN Weapons Shop"
#define VERSION "0.0.3"
#define AUTHOR "hadesownage"

#define VIP_ACCESS ADMIN_LEVEL_H

#pragma semicolon 1

new szTag [ ] = "[Furien Shop]";

new katana_knife_v_model [ 66 ] = "models/furien/v_katana.mdl";
new katana_knife_p_model [ 66 ] = "models/furien/p_katana.mdl";

new double_katana_v_knife_model [ 66 ] = "models/furien/v_double_katana.mdl";
new double_katana_p_knife_model [ 66 ] = "models/furien/p_double_katana.mdl";

new super_knife_v_model [ 66 ] = "models/furien/v_super_knife1.mdl";
new super_knife_p_model [ 66 ] = "models/furien/p_super_knife1.mdl";

new infinity_knife_v_model [ 66 ] = "models/furien/v_infinity_knife1.mdl";
new infinity_knife_p_model [ 66 ] = "models/furien/p_infinity_knife1.mdl";

new dual_mp5_v_model [ 66 ] = "models/furien/v_dualmp5.mdl";
new dual_mp5_p_model [ 66 ] = "models/furien/p_dualmp5.mdl";

new scorpion_mp5_v_model [ 66 ] = "models/furien/v_scorpionmp5.mdl";
// new scorpion_mp5_p_model [ 66 ] = "models/furien/p_scorpionmp5.mdl";

new xm1014_shoutgun_v_model [ 66 ] = "models/furien/v_xm1014shoutgun.mdl";
// new xm1014_shoutgun_p_model [ 66 ] = "models/furien/p_xm1014shoutgun.mdl";

new m3_shoutgun_v_model [ 66 ] = "models/furien/v_m3shoutgun.mdl";
// new m3_shoutgun_p_model [ 66 ] = "models/furien/p_m3shoutgun.mdl";

new thompson_v_model [ 66 ] = "models/furien/v_thompson.mdl";
new thompson_p_model [ 66 ] = "models/furien/p_thompson.mdl";

new uspx_v_model [ 66 ] = "models/furien//v_uspx.mdl";
new uspx_p_model [ 66 ] = "models/furien/p_uspx.mdl";

new hammer_knife_v_model [ 66 ] = "models/furien/v_viphammer.mdl";
new hammer_knife_p_model [ 66 ] = "models/furien/p_viphammer.mdl";

new axe_knife_v_model [ 66 ] = "models/furien/v_vipaxe.mdl";
new axe_knife_p_model [ 66 ] = "models/furien/p_vipaxe.mdl";

new vip_awp_v_model [ 66 ] = "models/furien/v_vipawp.mdl";
// new vip_awp_p_model [ 66 ] = "models/furien/p_vipawp.mdl";

new vip_elite_v_model [ 66 ] = "models/furien/v_vipelite.mdl";
new vip_elite_p_model [ 66 ] = "models/furien/p_vipelite.mdl";

new vip_cartblue_v_model [ 66 ] = "models/furien/v_vipcartblue.mdl";
new vip_cartblue_p_model [ 66 ] = "models/furien/p_vipcartblue.mdl";

new vip_cartred_v_model [ 66 ] = "models/furien/v_vipcartred.mdl";
new vip_cartred_p_model [ 66 ] = "models/furien/p_vipcartred.mdl";

new vip_dualkriss_v_model [ 66 ] = "models/furien/v_vipdualkriss.mdl";
new vip_dualkriss_p_model [ 66 ] = "models/furien/p_vipdualkriss.mdl";

new vip_dualskull_v_model [ 66 ] = "models/furien/v_vipdualskull.mdl";
new vip_dualskull_p_model [ 66 ] = "models/furien/p_vipdualskull.mdl";

new vip_minigun_v_model [ 66 ] = "models/furien/v_vipm134.mdl";
new vip_minigun_p_model [ 66 ] = "models/furien/p_vipm134.mdl";

new bool:katana_knife [ 33 ];
new bool:double_katana_knife [ 33 ];
new bool:super_knife [ 33 ];
new bool:infinity_knife [ 33 ];

new bool:dual_mp5 [ 33 ];
new bool:scorpion_mp5 [ 33 ];
new bool:xm1014_shoutgun [ 33 ];
new bool:m3_shoutgun [ 33 ];
new bool:thompson [ 33 ];
new bool:weapon_uspx [ 33 ];

new bool:vip_awp [ 33 ];
new bool:vip_elite [ 33 ];
new bool:vip_dualkriss [ 33 ];
new bool:vip_dualskull [ 33 ];
new bool:vip_minigun [ 33 ];
new bool:vip_hammer_knife [ 33 ];
new bool:vip_axe_knife [ 33 ];
new bool:vip_cartblue [ 33 ];
new bool:vip_cartred [ 33 ];
new bool:vip_cartblue2 [ 33 ];
new bool:vip_cartred2 [ 33 ];

new g_iMaxPlayers;

public plugin_init ( ) {

register_plugin ( PLUGIN, VERSION, "hadesownage" );

register_clcmd ( "say /weapons", "CheckFurienAcces", -1 );
register_clcmd ( "say_team /weapons", "CheckFurienAcces", -1 );
register_clcmd ( "say /shop", "CheckFurienAcces", -1 );
register_clcmd ( "say_team /shop", "CheckFurienAcces", -1 );
register_clcmd ( "say /furienshop", "CheckFurienAcces", -1 );
register_clcmd ( "say_team /furienshop", "CheckFurienAcces", -1 );

register_event ( "CurWeapon", "FurienCurrentWeapon", "be", "1=1" );
register_event ( "CurWeapon", "AntiFurienCurrentWeapon", "be", "1=1" );

register_logevent ( "round_start", 2, "1=Round_Start" );
register_logevent ( "round_end", 2, "1=Round_End" );

RegisterHam ( Ham_Spawn, "player", "CheckFurienAcces", 1 );
RegisterHam ( Ham_Spawn, "player", "RefreshAllWeapons", 1 );
RegisterHam(Ham_TakeDamage, "player", "Player_TakeDamage");

g_iMaxPlayers = get_maxplayers ( );
}

public plugin_precache ( ) {

precache_model ( katana_knife_v_model );
precache_model ( double_katana_v_knife_model );
precache_model ( super_knife_v_model );
precache_model ( infinity_knife_v_model );

precache_model ( katana_knife_p_model );
precache_model ( double_katana_p_knife_model );
precache_model ( super_knife_p_model );
precache_model ( infinity_knife_p_model );

precache_model ( dual_mp5_v_model );
precache_model ( scorpion_mp5_v_model );
precache_model ( xm1014_shoutgun_v_model );
precache_model ( m3_shoutgun_v_model );
precache_model ( thompson_v_model );
precache_model ( uspx_v_model );

precache_model ( dual_mp5_p_model );
// precache_model ( scorpion_mp5_p_model );
// precache_model ( xm1014_shoutgun_p_model );
// precache_model ( m3_shoutgun_p_model );
precache_model ( thompson_p_model );
precache_model ( uspx_p_model );

precache_model ( vip_elite_v_model );
precache_model ( vip_awp_v_model );
precache_model ( vip_dualkriss_v_model );
precache_model ( vip_dualskull_v_model );
precache_model ( vip_minigun_v_model );
precache_model ( hammer_knife_v_model );
precache_model ( axe_knife_v_model );
precache_model ( vip_cartblue_v_model );
precache_model ( vip_cartred_v_model );

precache_model ( vip_elite_p_model );
// precache_model ( vip_awp_p_model );
precache_model ( vip_dualkriss_p_model );
precache_model ( vip_dualskull_p_model );
precache_model ( vip_minigun_p_model );
precache_model ( hammer_knife_p_model );
precache_model ( axe_knife_p_model );
precache_model ( vip_cartblue_p_model );
precache_model ( vip_cartred_p_model );
}

public FurienCurrentWeapon ( id ) {

new szKnife = get_user_weapon ( id );
if ( szKnife == CSW_KNIFE ) {
if ( katana_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, katana_knife_v_model );
set_pev ( id, pev_weaponmodel2, katana_knife_p_model );
set_task ( 0.1, "Katana_Damage", id );

}
}
if ( szKnife == CSW_KNIFE ) {
if ( double_katana_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, double_katana_v_knife_model );
set_pev ( id, pev_weaponmodel2, double_katana_p_knife_model );
set_task ( 0.1, "Double_Katana_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( super_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, super_knife_v_model );
set_pev ( id, pev_weaponmodel2, super_knife_p_model );
set_task ( 0.1, "Super_Knife_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( infinity_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, infinity_knife_v_model );
set_pev ( id, pev_weaponmodel2, infinity_knife_p_model );
set_task ( 0.1, "Infinity_Knife_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( vip_hammer_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, hammer_knife_v_model );
set_pev ( id, pev_weaponmodel2, hammer_knife_p_model );
set_task ( 0.1, "VIP_Hammer_Knife_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( vip_axe_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, axe_knife_v_model );
set_pev ( id, pev_weaponmodel2, axe_knife_p_model );
set_task ( 0.1, "VIP_Axe_Knife_Damage", id );

}
}

else if ( !user_has_weapon ( id, CSW_KNIFE ) || ( !katana_knife [ id ] || !double_katana_knife || !super_knife || !infinity_knife || !vip_hammer_knife || !vip_axe_knife ) )
{
give_item ( id, "weapon_knife" );
return 1;
}
return 1;
}

public AntiFurienCurrentWeapon ( id ) {

new szWeapon = get_user_weapon ( id );
if ( szWeapon == CSW_MP5NAVY ) {
if ( dual_mp5 [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, dual_mp5_v_model );
set_pev ( id, pev_weaponmodel2, dual_mp5_p_model );
set_task ( 0.1, "Dual_Mp5_Damage", id );

}
}

if ( szWeapon == CSW_MP5NAVY ) {
if ( scorpion_mp5 [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, scorpion_mp5_v_model );
// set_pev ( id, pev_weaponmodel2, scorpion_mp5_p_model );
set_task ( 0.1, "Scorpion_Mp5_Damage", id );

}
}

if ( szWeapon == CSW_XM1014 ) {
if ( xm1014_shoutgun [ id ] && szWeapon == CSW_XM1014 ) {

set_pev ( id, pev_viewmodel2, xm1014_shoutgun_v_model );
// set_pev ( id, pev_weaponmodel2, xm1014_shoutgun_p_model );
set_task ( 0.1, "XM1014_Shotgun_Damage", id );

}
}

if ( szWeapon == CSW_M3 ) {
if ( m3_shoutgun [ id ] && szWeapon == CSW_M3 ) {

set_pev ( id, pev_viewmodel2, m3_shoutgun_v_model );
// set_pev ( id, pev_weaponmodel2, m3_shoutgun_p_model );
set_task ( 0.1, "M3_Shotgun_Damage", id );

}
}

if ( szWeapon == CSW_P90 ) {
if ( thompson [ id ] && szWeapon == CSW_P90 ) {

set_pev ( id, pev_viewmodel2, thompson_v_model );
set_pev ( id, pev_weaponmodel2, thompson_p_model );
set_task ( 0.1, "Thompson_Damage", id );

}
}

if ( szWeapon == CSW_ELITE ) {
if ( vip_elite [ id ] && szWeapon == CSW_ELITE ) {

set_pev ( id, pev_viewmodel2, vip_elite_v_model );
set_pev ( id, pev_weaponmodel2, vip_elite_p_model );
set_task ( 0.1, "VIP_Elite_Damage", id );

}
}

if ( szWeapon == CSW_AWP ) {
if ( vip_awp [ id ] && szWeapon == CSW_AWP ) {

set_pev ( id, pev_viewmodel2, vip_awp_v_model );
// set_pev ( id, pev_weaponmodel2, vip_awp_p_model );
set_task ( 0.1, "VIP_AWP_Damage", id );

}
}

if ( szWeapon == CSW_P90 ) {
if ( vip_dualkriss [ id ] && szWeapon == CSW_P90 ) {

set_pev ( id, pev_viewmodel2, vip_dualkriss_v_model );
set_pev ( id, pev_weaponmodel2, vip_dualkriss_p_model );
set_task ( 0.1, "VIP_DualKriss_Damage", id );

}
}

if ( szWeapon == CSW_SG552 ) {
if ( vip_dualskull [ id ] && szWeapon == CSW_SG552 ) {

set_pev ( id, pev_viewmodel2, vip_dualskull_v_model );
set_pev ( id, pev_weaponmodel2, vip_dualskull_p_model );
set_task ( 0.1, "VIP_DualSkull_Damage", id );

}
}

if ( szWeapon == CSW_MP5NAVY ) {
if ( vip_cartblue [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, vip_cartblue_v_model );
set_pev ( id, pev_weaponmodel2, vip_cartblue_p_model );
set_task ( 0.1, "VIP_Cartblue_Damage", id );

}
}

if ( szWeapon == CSW_M249 ) {
if ( vip_minigun [ id ] && szWeapon == CSW_M249 ) {

set_pev ( id, pev_viewmodel2, vip_minigun_v_model );
set_pev ( id, pev_weaponmodel2, vip_minigun_p_model );

}
}

if ( szWeapon == CSW_MP5NAVY ) {
if ( vip_cartred [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, vip_cartred_v_model );
set_pev ( id, pev_weaponmodel2, vip_cartred_p_model );
set_task ( 0.1, "VIP_Cartred_Damage", id );

}
}

if ( szWeapon == CSW_USP ) {
if ( weapon_uspx [ id ] && szWeapon == CSW_USP ) {

set_pev ( id, pev_viewmodel2, uspx_v_model );
set_pev ( id, pev_weaponmodel2, uspx_p_model );

}
}

return 1;
}

public round_start ( id ) {

if ( is_user_alive ( id ) ) {

katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;

dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;

vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_awp [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;

}
return 1;
}

public round_end ( ) {

static id;
for ( id = 1 ; id <= g_iMaxPlayers ; id++ )
{
if (!is_user_alive ( id ) )
continue;

strip_user_weapons ( id );
set_pdata_int ( id, 116, 0 );
give_item ( id, "weapon_knife" );
}
}

public RefreshAllWeapons ( id ) {

if ( is_user_alive ( id ) ) {

katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;

dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;

vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_awp [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
}
return 1;
}

public CheckFurienAcces ( id ) {

if ( cs_get_user_team ( id ) == CS_TEAM_T ) {

set_task( 0.1, "ShowFurienMenuWeapons", id );
}

if ( cs_get_user_team ( id ) == CS_TEAM_CT ) {

set_task( 0.1, "ShowAntiFurienMenuWeapons", id );
}

}

public ShowFurienMenuWeapons ( id, level, cid ) {

new menu = menu_create ( "\rFurien \yWeapons Menu", "FurienWeaponsMenuGiver" );
menu_additem ( menu, "\yKatana [ \r 1200 $ \y ]", "1", 0 );
menu_additem ( menu, "\yDual Katana [ \r 1400 $ \y ]", "2", 0 );
menu_additem ( menu, "\ySuper Knife [ \r 1500 $ \y ]", "3", 0 );
menu_additem ( menu, "\yInfinity Knife [ \r 1600 $ \y ]", "4", 0 );
menu_additem ( menu, "\y+50 AP [ \r 400 $ \y ]", "5", 0 );
menu_additem ( menu, "\y+50 HP [ \r 400 $ \y ]", "6", 0 );
menu_additem ( menu, "\yHE Grenade [ \r 400 $ \y ]", "7", 0 );
menu_additem ( menu, "\yULTIMATE [ \r VIP ONLY \y ]", "8", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public ShowAntiFurienMenuWeapons ( id, level, cid ) {

new menu = menu_create ( "\rAntiFurien \yWeapons Menu", "AntiFurienWeaponsMenuGiver" );
menu_additem ( menu, "\yDual Mp5 [ \r 1300 $ \y ]", "1", 0 );
menu_additem ( menu, "\yScorpion Mp5 [ \r 1500 $ \y ]", "2", 0 );
menu_additem ( menu, "\yXM1014 Shoutgun [ \r 1650 $ \y ]", "3", 0 );
menu_additem ( menu, "\yM3 Shoutgun [ \r 1780 $ \y ]", "4", 0 );
menu_additem ( menu, "\yThompson [ \r 1800 $ \y ]", "5", 0 );
menu_additem ( menu, "\y+50 AP [ \r 800 $ \y ]", "6", 0 );
menu_additem ( menu, "\y+50 HP [ \r 800 $ \y ]", "7", 0 );
menu_additem ( menu, "\yDefuse Kit [ \r 500 $ \y ]", "8", 0 );
menu_additem ( menu, "\yULTIMATE [ \r VIP ONLY \y ]", "9", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public ShowAntiFurienMenuVIP ( id, level, cid ) {

new menu = menu_create ( "\y* VIP * \rAntiFurien \yWeapons Menu", "AntiFurienVIPMenuGiver" );
menu_additem ( menu, "\ySuper AWP \y[ \r1 $ \y ]", "1", VIP_ACCESS );
menu_additem ( menu, "\yDual Kriss \y[ \r1 $ \y ]", "2", VIP_ACCESS );
menu_additem ( menu, "\yDual Skull \y[ \r1 $ \y ]", "3", VIP_ACCESS );
menu_additem ( menu, "\yMinigun \y[ \r1 $ \y ]", "4", VIP_ACCESS );
menu_additem ( menu, "\yCart Blue \y[ \r1 $ \y ]", "5", VIP_ACCESS );
menu_additem ( menu, "\yCart Red \y[ \r1 $ \y ]", "6", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public ShowFurienMenuVIP ( id, level, cid ) {

new menu = menu_create ( "\y* VIP * \rFurien \yWeapons Menu", "FurienVIPMenuGiver" );
menu_additem ( menu, "\ySuper Hammer \y[ \r1 $ \y ]", "1", VIP_ACCESS );
menu_additem ( menu, "\ySuper Axe \y[ \r1 $ \y ]", "2", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public FurienWeaponsMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1200;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
katana_knife [ id ] = true;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}


case 2:
{
new iMoney = cs_get_user_money ( id ) - 1400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
double_katana_knife [ id ] = true;
katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}

case 3:
{
new iMoney = cs_get_user_money ( id ) - 1500;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
super_knife [ id ] = true;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
infinity_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}

case 4:
{
new iMoney = cs_get_user_money ( id ) - 1600;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = true;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}

case 5:
{
new iMoney = cs_get_user_money ( id ) - 400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
new szHealth = get_user_health ( id );
if ( szHealth <= 300 ) {
set_dhudmessage ( 31, 201, 31, 0.20, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 AP" );
set_user_armor ( id, get_user_armor ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}

if ( szHealth > 300 ) {
ColorChat ( id, GREEN, "%s^x01 Nu poti cumpara mai mult de 300 HP", szTag );
}
}
}

case 6:
{
new iMoney = cs_get_user_money ( id ) - 400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
new szArmor = get_user_armor ( id );
if ( szArmor <= 500 ) {
set_dhudmessage ( 31, 201, 31, 0.02, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 HP" );
set_user_health ( id, get_user_health ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}

if ( szArmor > 500 ) {
ColorChat ( id, GREEN, "%s^x01 Nu poti cumpara mai mult de 500 AP", szTag );
}
}

}

case 7:
{
new iMoney = cs_get_user_money ( id ) - 400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_hegrenade" );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 8:
{
set_task ( 0.1, "ShowFurienMenuVIP", id );
return 1;
}
}

menu_destroy ( menu );
return 1;

}

public AntiFurienWeaponsMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1300;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
dual_mp5 [ id ] = true;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1500;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
scorpion_mp5 [ id ] = true;
dual_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 3:
{
new iMoney = cs_get_user_money ( id ) - 1650;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_xm1014" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_XM1014, 200 );
cs_set_user_money( id, iMoney );
xm1014_shoutgun [ id ] = true;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 4:
{
new iMoney = cs_get_user_money ( id ) - 1780;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_m3" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_M3, 200 );
cs_set_user_money( id, iMoney );
m3_shoutgun [ id ] = true;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 5:
{
new iMoney = cs_get_user_money ( id ) - 1800;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_p90" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_P90, 200 );
cs_set_user_money( id, iMoney );
thompson [ id ] = true;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 6:
{
new iMoney = cs_get_user_money ( id ) - 800;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
set_dhudmessage ( 31, 201, 31, 0.20, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 AP" );
set_user_armor ( id, get_user_armor ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 7:
{
new iMoney = cs_get_user_money ( id ) - 800;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
set_dhudmessage ( 31, 201, 31, 0.02, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 HP" );
set_user_health ( id, get_user_health ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 8:
{
new iMoney = cs_get_user_money ( id ) - 500;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "item_thighpack" );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 9:
{
set_task ( 0.1, "ShowAntiFurienMenuVIP", id );
return 1;
}
}

menu_destroy ( menu );
return 1;

}

public AntiFurienVIPMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_awp" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_AWP, 50 );
cs_set_user_money( id, iMoney );
vip_awp [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = false;
vip_minigun [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_p90" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_P90, 200 );
cs_set_user_money( id, iMoney );
vip_dualkriss [ id ] = true;
vip_dualskull [ id ] = false;
vip_elite [ id ] = true;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 3:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_sg552" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_SG552, 200 );
cs_set_user_money( id, iMoney );
vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = true;
vip_elite [ id ] = true;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 4:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_m249" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_M249, 300 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 5:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = true;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 6:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = true;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}

}
}
menu_destroy ( menu );
return 1;
}


public FurienVIPMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = false;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = true;
vip_axe_knife [ id ] = false;
cs_set_user_money ( id, iMoney );
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = false;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = true;
cs_set_user_money ( id, iMoney );
return 1;
}
}
}

menu_destroy ( menu );
return 1;

}

public Player_TakeDamage ( iVictim, iInflictor, iAttacker, Float:fDamage, iDamageBits ) {

if ( katana_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( double_katana_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.8);
return HAM_HANDLED;

}

if ( super_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.5);
return HAM_HANDLED;

}

if ( infinity_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 3.0);
return HAM_HANDLED;

}

if ( dual_mp5 [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( scorpion_mp5 [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( scorpion_mp5 [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_XM1014 ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( m3_shoutgun [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_M3 ) {

SetHamParamFloat( 4, fDamage * 1.8);
return HAM_HANDLED;

}

if ( thompson [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_P90 ) {

SetHamParamFloat( 4, fDamage * 2.4);
return HAM_HANDLED;

}

if ( vip_elite [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_ELITE ) {

SetHamParamFloat( 4, fDamage * 2.7);
return HAM_HANDLED;

}

if ( vip_dualkriss [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_P90 ) {

SetHamParamFloat( 4, fDamage * 3.0);
return HAM_HANDLED;

}

if ( vip_hammer_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.7);
return HAM_HANDLED;

}

if ( vip_axe_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 3.3);
return HAM_HANDLED;

}

if ( vip_cartblue [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 2.5);
return HAM_HANDLED;

}

if ( vip_cartred [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 3.0);
return HAM_HANDLED;

}

return HAM_IGNORED;

}

Mersi dar la armele vip nu ai umblat.. le poti pune pret-ul 1 $ la fiecare? Si la knife-uri vip la furien poti pune 1 $?

Am pus pretul de 1$ la armele vip...

Nu a mers. M-am uitat eu putin peste el si am vazut ca era -1 $ .. poate asta e greseala. Uitate si tu putin si vezi ca e cu -1 . Poti edita please? Am nevoie


15 Nov 2017 18:24
Profile multumesc WWW
Online
Membru, skill 0
Membru, skill 0

Joined: 25 May 2015 07:27
Posts: 81
Detinator Steam: Nu
CS Status: Don't Mess Whit Me
SteamID: Nu cred
Fond eXtream: 0
*Or!g!naL* wrote:
EleCtr0zZz wrote:
Doctor whO? <3 wrote:
| Afiseaza codul
/* 
* Changelog
*
* 0.0.2 -> HP & AP added in menu + more bugs fixed
* 0.0.3 -> VIP Menu for Furiens + New weapons . New 2 commands added
*
* Credits
*
* hadesownage
*/

#include < amxmodx >
#include < amxmisc >
#include < fun >
#include < hamsandwich >
#include < cstrike >
#include < fakemeta >
#include < colorchat >
#include < dhudmessage >

#define PLUGIN "FURIEN Weapons Shop"
#define VERSION "0.0.3"
#define AUTHOR "hadesownage"

#define VIP_ACCESS ADMIN_LEVEL_H

#pragma semicolon 1

new szTag [ ] = "[Furien Shop]";

new katana_knife_v_model [ 66 ] = "models/furien/v_katana.mdl";
new katana_knife_p_model [ 66 ] = "models/furien/p_katana.mdl";

new double_katana_v_knife_model [ 66 ] = "models/furien/v_double_katana.mdl";
new double_katana_p_knife_model [ 66 ] = "models/furien/p_double_katana.mdl";

new super_knife_v_model [ 66 ] = "models/furien/v_super_knife1.mdl";
new super_knife_p_model [ 66 ] = "models/furien/p_super_knife1.mdl";

new infinity_knife_v_model [ 66 ] = "models/furien/v_infinity_knife1.mdl";
new infinity_knife_p_model [ 66 ] = "models/furien/p_infinity_knife1.mdl";

new dual_mp5_v_model [ 66 ] = "models/furien/v_dualmp5.mdl";
new dual_mp5_p_model [ 66 ] = "models/furien/p_dualmp5.mdl";

new scorpion_mp5_v_model [ 66 ] = "models/furien/v_scorpionmp5.mdl";
// new scorpion_mp5_p_model [ 66 ] = "models/furien/p_scorpionmp5.mdl";

new xm1014_shoutgun_v_model [ 66 ] = "models/furien/v_xm1014shoutgun.mdl";
// new xm1014_shoutgun_p_model [ 66 ] = "models/furien/p_xm1014shoutgun.mdl";

new m3_shoutgun_v_model [ 66 ] = "models/furien/v_m3shoutgun.mdl";
// new m3_shoutgun_p_model [ 66 ] = "models/furien/p_m3shoutgun.mdl";

new thompson_v_model [ 66 ] = "models/furien/v_thompson.mdl";
new thompson_p_model [ 66 ] = "models/furien/p_thompson.mdl";

new uspx_v_model [ 66 ] = "models/furien//v_uspx.mdl";
new uspx_p_model [ 66 ] = "models/furien/p_uspx.mdl";

new hammer_knife_v_model [ 66 ] = "models/furien/v_viphammer.mdl";
new hammer_knife_p_model [ 66 ] = "models/furien/p_viphammer.mdl";

new axe_knife_v_model [ 66 ] = "models/furien/v_vipaxe.mdl";
new axe_knife_p_model [ 66 ] = "models/furien/p_vipaxe.mdl";

new vip_awp_v_model [ 66 ] = "models/furien/v_vipawp.mdl";
// new vip_awp_p_model [ 66 ] = "models/furien/p_vipawp.mdl";

new vip_elite_v_model [ 66 ] = "models/furien/v_vipelite.mdl";
new vip_elite_p_model [ 66 ] = "models/furien/p_vipelite.mdl";

new vip_cartblue_v_model [ 66 ] = "models/furien/v_vipcartblue.mdl";
new vip_cartblue_p_model [ 66 ] = "models/furien/p_vipcartblue.mdl";

new vip_cartred_v_model [ 66 ] = "models/furien/v_vipcartred.mdl";
new vip_cartred_p_model [ 66 ] = "models/furien/p_vipcartred.mdl";

new vip_dualkriss_v_model [ 66 ] = "models/furien/v_vipdualkriss.mdl";
new vip_dualkriss_p_model [ 66 ] = "models/furien/p_vipdualkriss.mdl";

new vip_dualskull_v_model [ 66 ] = "models/furien/v_vipdualskull.mdl";
new vip_dualskull_p_model [ 66 ] = "models/furien/p_vipdualskull.mdl";

new vip_minigun_v_model [ 66 ] = "models/furien/v_vipm134.mdl";
new vip_minigun_p_model [ 66 ] = "models/furien/p_vipm134.mdl";

new bool:katana_knife [ 33 ];
new bool:double_katana_knife [ 33 ];
new bool:super_knife [ 33 ];
new bool:infinity_knife [ 33 ];

new bool:dual_mp5 [ 33 ];
new bool:scorpion_mp5 [ 33 ];
new bool:xm1014_shoutgun [ 33 ];
new bool:m3_shoutgun [ 33 ];
new bool:thompson [ 33 ];
new bool:weapon_uspx [ 33 ];

new bool:vip_awp [ 33 ];
new bool:vip_elite [ 33 ];
new bool:vip_dualkriss [ 33 ];
new bool:vip_dualskull [ 33 ];
new bool:vip_minigun [ 33 ];
new bool:vip_hammer_knife [ 33 ];
new bool:vip_axe_knife [ 33 ];
new bool:vip_cartblue [ 33 ];
new bool:vip_cartred [ 33 ];
new bool:vip_cartblue2 [ 33 ];
new bool:vip_cartred2 [ 33 ];

new g_iMaxPlayers;

public plugin_init ( ) {

register_plugin ( PLUGIN, VERSION, "hadesownage" );

register_clcmd ( "say /weapons", "CheckFurienAcces", -1 );
register_clcmd ( "say_team /weapons", "CheckFurienAcces", -1 );
register_clcmd ( "say /shop", "CheckFurienAcces", -1 );
register_clcmd ( "say_team /shop", "CheckFurienAcces", -1 );
register_clcmd ( "say /furienshop", "CheckFurienAcces", -1 );
register_clcmd ( "say_team /furienshop", "CheckFurienAcces", -1 );

register_event ( "CurWeapon", "FurienCurrentWeapon", "be", "1=1" );
register_event ( "CurWeapon", "AntiFurienCurrentWeapon", "be", "1=1" );

register_logevent ( "round_start", 2, "1=Round_Start" );
register_logevent ( "round_end", 2, "1=Round_End" );

RegisterHam ( Ham_Spawn, "player", "CheckFurienAcces", 1 );
RegisterHam ( Ham_Spawn, "player", "RefreshAllWeapons", 1 );
RegisterHam(Ham_TakeDamage, "player", "Player_TakeDamage");

g_iMaxPlayers = get_maxplayers ( );
}

public plugin_precache ( ) {

precache_model ( katana_knife_v_model );
precache_model ( double_katana_v_knife_model );
precache_model ( super_knife_v_model );
precache_model ( infinity_knife_v_model );

precache_model ( katana_knife_p_model );
precache_model ( double_katana_p_knife_model );
precache_model ( super_knife_p_model );
precache_model ( infinity_knife_p_model );

precache_model ( dual_mp5_v_model );
precache_model ( scorpion_mp5_v_model );
precache_model ( xm1014_shoutgun_v_model );
precache_model ( m3_shoutgun_v_model );
precache_model ( thompson_v_model );
precache_model ( uspx_v_model );

precache_model ( dual_mp5_p_model );
// precache_model ( scorpion_mp5_p_model );
// precache_model ( xm1014_shoutgun_p_model );
// precache_model ( m3_shoutgun_p_model );
precache_model ( thompson_p_model );
precache_model ( uspx_p_model );

precache_model ( vip_elite_v_model );
precache_model ( vip_awp_v_model );
precache_model ( vip_dualkriss_v_model );
precache_model ( vip_dualskull_v_model );
precache_model ( vip_minigun_v_model );
precache_model ( hammer_knife_v_model );
precache_model ( axe_knife_v_model );
precache_model ( vip_cartblue_v_model );
precache_model ( vip_cartred_v_model );

precache_model ( vip_elite_p_model );
// precache_model ( vip_awp_p_model );
precache_model ( vip_dualkriss_p_model );
precache_model ( vip_dualskull_p_model );
precache_model ( vip_minigun_p_model );
precache_model ( hammer_knife_p_model );
precache_model ( axe_knife_p_model );
precache_model ( vip_cartblue_p_model );
precache_model ( vip_cartred_p_model );
}

public FurienCurrentWeapon ( id ) {

new szKnife = get_user_weapon ( id );
if ( szKnife == CSW_KNIFE ) {
if ( katana_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, katana_knife_v_model );
set_pev ( id, pev_weaponmodel2, katana_knife_p_model );
set_task ( 0.1, "Katana_Damage", id );

}
}
if ( szKnife == CSW_KNIFE ) {
if ( double_katana_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, double_katana_v_knife_model );
set_pev ( id, pev_weaponmodel2, double_katana_p_knife_model );
set_task ( 0.1, "Double_Katana_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( super_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, super_knife_v_model );
set_pev ( id, pev_weaponmodel2, super_knife_p_model );
set_task ( 0.1, "Super_Knife_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( infinity_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, infinity_knife_v_model );
set_pev ( id, pev_weaponmodel2, infinity_knife_p_model );
set_task ( 0.1, "Infinity_Knife_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( vip_hammer_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, hammer_knife_v_model );
set_pev ( id, pev_weaponmodel2, hammer_knife_p_model );
set_task ( 0.1, "VIP_Hammer_Knife_Damage", id );

}
}

if ( szKnife == CSW_KNIFE ) {
if ( vip_axe_knife [ id ] && szKnife == CSW_KNIFE ) {

set_pev ( id, pev_viewmodel2, axe_knife_v_model );
set_pev ( id, pev_weaponmodel2, axe_knife_p_model );
set_task ( 0.1, "VIP_Axe_Knife_Damage", id );

}
}

else if ( !user_has_weapon ( id, CSW_KNIFE ) || ( !katana_knife [ id ] || !double_katana_knife || !super_knife || !infinity_knife || !vip_hammer_knife || !vip_axe_knife ) )
{
give_item ( id, "weapon_knife" );
return 1;
}
return 1;
}

public AntiFurienCurrentWeapon ( id ) {

new szWeapon = get_user_weapon ( id );
if ( szWeapon == CSW_MP5NAVY ) {
if ( dual_mp5 [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, dual_mp5_v_model );
set_pev ( id, pev_weaponmodel2, dual_mp5_p_model );
set_task ( 0.1, "Dual_Mp5_Damage", id );

}
}

if ( szWeapon == CSW_MP5NAVY ) {
if ( scorpion_mp5 [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, scorpion_mp5_v_model );
// set_pev ( id, pev_weaponmodel2, scorpion_mp5_p_model );
set_task ( 0.1, "Scorpion_Mp5_Damage", id );

}
}

if ( szWeapon == CSW_XM1014 ) {
if ( xm1014_shoutgun [ id ] && szWeapon == CSW_XM1014 ) {

set_pev ( id, pev_viewmodel2, xm1014_shoutgun_v_model );
// set_pev ( id, pev_weaponmodel2, xm1014_shoutgun_p_model );
set_task ( 0.1, "XM1014_Shotgun_Damage", id );

}
}

if ( szWeapon == CSW_M3 ) {
if ( m3_shoutgun [ id ] && szWeapon == CSW_M3 ) {

set_pev ( id, pev_viewmodel2, m3_shoutgun_v_model );
// set_pev ( id, pev_weaponmodel2, m3_shoutgun_p_model );
set_task ( 0.1, "M3_Shotgun_Damage", id );

}
}

if ( szWeapon == CSW_P90 ) {
if ( thompson [ id ] && szWeapon == CSW_P90 ) {

set_pev ( id, pev_viewmodel2, thompson_v_model );
set_pev ( id, pev_weaponmodel2, thompson_p_model );
set_task ( 0.1, "Thompson_Damage", id );

}
}

if ( szWeapon == CSW_ELITE ) {
if ( vip_elite [ id ] && szWeapon == CSW_ELITE ) {

set_pev ( id, pev_viewmodel2, vip_elite_v_model );
set_pev ( id, pev_weaponmodel2, vip_elite_p_model );
set_task ( 0.1, "VIP_Elite_Damage", id );

}
}

if ( szWeapon == CSW_AWP ) {
if ( vip_awp [ id ] && szWeapon == CSW_AWP ) {

set_pev ( id, pev_viewmodel2, vip_awp_v_model );
// set_pev ( id, pev_weaponmodel2, vip_awp_p_model );
set_task ( 0.1, "VIP_AWP_Damage", id );

}
}

if ( szWeapon == CSW_P90 ) {
if ( vip_dualkriss [ id ] && szWeapon == CSW_P90 ) {

set_pev ( id, pev_viewmodel2, vip_dualkriss_v_model );
set_pev ( id, pev_weaponmodel2, vip_dualkriss_p_model );
set_task ( 0.1, "VIP_DualKriss_Damage", id );

}
}

if ( szWeapon == CSW_SG552 ) {
if ( vip_dualskull [ id ] && szWeapon == CSW_SG552 ) {

set_pev ( id, pev_viewmodel2, vip_dualskull_v_model );
set_pev ( id, pev_weaponmodel2, vip_dualskull_p_model );
set_task ( 0.1, "VIP_DualSkull_Damage", id );

}
}

if ( szWeapon == CSW_MP5NAVY ) {
if ( vip_cartblue [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, vip_cartblue_v_model );
set_pev ( id, pev_weaponmodel2, vip_cartblue_p_model );
set_task ( 0.1, "VIP_Cartblue_Damage", id );

}
}

if ( szWeapon == CSW_M249 ) {
if ( vip_minigun [ id ] && szWeapon == CSW_M249 ) {

set_pev ( id, pev_viewmodel2, vip_minigun_v_model );
set_pev ( id, pev_weaponmodel2, vip_minigun_p_model );

}
}

if ( szWeapon == CSW_MP5NAVY ) {
if ( vip_cartred [ id ] && szWeapon == CSW_MP5NAVY ) {

set_pev ( id, pev_viewmodel2, vip_cartred_v_model );
set_pev ( id, pev_weaponmodel2, vip_cartred_p_model );
set_task ( 0.1, "VIP_Cartred_Damage", id );

}
}

if ( szWeapon == CSW_USP ) {
if ( weapon_uspx [ id ] && szWeapon == CSW_USP ) {

set_pev ( id, pev_viewmodel2, uspx_v_model );
set_pev ( id, pev_weaponmodel2, uspx_p_model );

}
}

return 1;
}

public round_start ( id ) {

if ( is_user_alive ( id ) ) {

katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;

dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;

vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_awp [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;

}
return 1;
}

public round_end ( ) {

static id;
for ( id = 1 ; id <= g_iMaxPlayers ; id++ )
{
if (!is_user_alive ( id ) )
continue;

strip_user_weapons ( id );
set_pdata_int ( id, 116, 0 );
give_item ( id, "weapon_knife" );
}
}

public RefreshAllWeapons ( id ) {

if ( is_user_alive ( id ) ) {

katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;

dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;

vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_awp [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
}
return 1;
}

public CheckFurienAcces ( id ) {

if ( cs_get_user_team ( id ) == CS_TEAM_T ) {

set_task( 0.1, "ShowFurienMenuWeapons", id );
}

if ( cs_get_user_team ( id ) == CS_TEAM_CT ) {

set_task( 0.1, "ShowAntiFurienMenuWeapons", id );
}

}

public ShowFurienMenuWeapons ( id, level, cid ) {

new menu = menu_create ( "\rFurien \yWeapons Menu", "FurienWeaponsMenuGiver" );
menu_additem ( menu, "\yKatana [ \r 1200 $ \y ]", "1", 0 );
menu_additem ( menu, "\yDual Katana [ \r 1400 $ \y ]", "2", 0 );
menu_additem ( menu, "\ySuper Knife [ \r 1500 $ \y ]", "3", 0 );
menu_additem ( menu, "\yInfinity Knife [ \r 1600 $ \y ]", "4", 0 );
menu_additem ( menu, "\y+50 AP [ \r 400 $ \y ]", "5", 0 );
menu_additem ( menu, "\y+50 HP [ \r 400 $ \y ]", "6", 0 );
menu_additem ( menu, "\yHE Grenade [ \r 400 $ \y ]", "7", 0 );
menu_additem ( menu, "\yULTIMATE [ \r VIP ONLY \y ]", "8", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public ShowAntiFurienMenuWeapons ( id, level, cid ) {

new menu = menu_create ( "\rAntiFurien \yWeapons Menu", "AntiFurienWeaponsMenuGiver" );
menu_additem ( menu, "\yDual Mp5 [ \r 1300 $ \y ]", "1", 0 );
menu_additem ( menu, "\yScorpion Mp5 [ \r 1500 $ \y ]", "2", 0 );
menu_additem ( menu, "\yXM1014 Shoutgun [ \r 1650 $ \y ]", "3", 0 );
menu_additem ( menu, "\yM3 Shoutgun [ \r 1780 $ \y ]", "4", 0 );
menu_additem ( menu, "\yThompson [ \r 1800 $ \y ]", "5", 0 );
menu_additem ( menu, "\y+50 AP [ \r 800 $ \y ]", "6", 0 );
menu_additem ( menu, "\y+50 HP [ \r 800 $ \y ]", "7", 0 );
menu_additem ( menu, "\yDefuse Kit [ \r 500 $ \y ]", "8", 0 );
menu_additem ( menu, "\yULTIMATE [ \r VIP ONLY \y ]", "9", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public ShowAntiFurienMenuVIP ( id, level, cid ) {

new menu = menu_create ( "\y* VIP * \rAntiFurien \yWeapons Menu", "AntiFurienVIPMenuGiver" );
menu_additem ( menu, "\ySuper AWP \y[ \r1 $ \y ]", "1", VIP_ACCESS );
menu_additem ( menu, "\yDual Kriss \y[ \r1 $ \y ]", "2", VIP_ACCESS );
menu_additem ( menu, "\yDual Skull \y[ \r1 $ \y ]", "3", VIP_ACCESS );
menu_additem ( menu, "\yMinigun \y[ \r1 $ \y ]", "4", VIP_ACCESS );
menu_additem ( menu, "\yCart Blue \y[ \r1 $ \y ]", "5", VIP_ACCESS );
menu_additem ( menu, "\yCart Red \y[ \r1 $ \y ]", "6", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public ShowFurienMenuVIP ( id, level, cid ) {

new menu = menu_create ( "\y* VIP * \rFurien \yWeapons Menu", "FurienVIPMenuGiver" );
menu_additem ( menu, "\ySuper Hammer \y[ \r1 $ \y ]", "1", VIP_ACCESS );
menu_additem ( menu, "\ySuper Axe \y[ \r1 $ \y ]", "2", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public FurienWeaponsMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1200;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
katana_knife [ id ] = true;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}


case 2:
{
new iMoney = cs_get_user_money ( id ) - 1400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
double_katana_knife [ id ] = true;
katana_knife [ id ] = false;
super_knife [ id ] = false;
infinity_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}

case 3:
{
new iMoney = cs_get_user_money ( id ) - 1500;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
super_knife [ id ] = true;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
infinity_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}

case 4:
{
new iMoney = cs_get_user_money ( id ) - 1600;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = true;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = false;
cs_set_user_money( id, iMoney );
return 1;
}
}

case 5:
{
new iMoney = cs_get_user_money ( id ) - 400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
new szHealth = get_user_health ( id );
if ( szHealth <= 300 ) {
set_dhudmessage ( 31, 201, 31, 0.20, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 AP" );
set_user_armor ( id, get_user_armor ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}

if ( szHealth > 300 ) {
ColorChat ( id, GREEN, "%s^x01 Nu poti cumpara mai mult de 300 HP", szTag );
}
}
}

case 6:
{
new iMoney = cs_get_user_money ( id ) - 400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
new szArmor = get_user_armor ( id );
if ( szArmor <= 500 ) {
set_dhudmessage ( 31, 201, 31, 0.02, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 HP" );
set_user_health ( id, get_user_health ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}

if ( szArmor > 500 ) {
ColorChat ( id, GREEN, "%s^x01 Nu poti cumpara mai mult de 500 AP", szTag );
}
}

}

case 7:
{
new iMoney = cs_get_user_money ( id ) - 400;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_hegrenade" );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 8:
{
set_task ( 0.1, "ShowFurienMenuVIP", id );
return 1;
}
}

menu_destroy ( menu );
return 1;

}

public AntiFurienWeaponsMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1300;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
dual_mp5 [ id ] = true;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1500;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
scorpion_mp5 [ id ] = true;
dual_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 3:
{
new iMoney = cs_get_user_money ( id ) - 1650;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_xm1014" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_XM1014, 200 );
cs_set_user_money( id, iMoney );
xm1014_shoutgun [ id ] = true;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 4:
{
new iMoney = cs_get_user_money ( id ) - 1780;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_m3" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_M3, 200 );
cs_set_user_money( id, iMoney );
m3_shoutgun [ id ] = true;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 5:
{
new iMoney = cs_get_user_money ( id ) - 1800;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_p90" );
give_item ( id, "weapon_usp" );
cs_set_user_bpammo ( id, CSW_USP, 100 );
cs_set_user_bpammo ( id, CSW_P90, 200 );
cs_set_user_money( id, iMoney );
thompson [ id ] = true;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
weapon_uspx [ id ] = true;
vip_dualkriss [ id ] = false;
vip_elite [ id ] = false;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 6:
{
new iMoney = cs_get_user_money ( id ) - 800;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
set_dhudmessage ( 31, 201, 31, 0.20, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 AP" );
set_user_armor ( id, get_user_armor ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 7:
{
new iMoney = cs_get_user_money ( id ) - 800;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
set_dhudmessage ( 31, 201, 31, 0.02, 0.90, 0, 6.0, 1.0 );
show_dhudmessage ( id, "+50 HP" );
set_user_health ( id, get_user_health ( id ) + 50 );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 8:
{
new iMoney = cs_get_user_money ( id ) - 500;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "item_thighpack" );
cs_set_user_money( id, iMoney );
return 1;
}
}

case 9:
{
set_task ( 0.1, "ShowAntiFurienMenuVIP", id );
return 1;
}
}

menu_destroy ( menu );
return 1;

}

public AntiFurienVIPMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_awp" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_AWP, 50 );
cs_set_user_money( id, iMoney );
vip_awp [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = false;
vip_minigun [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_p90" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_P90, 200 );
cs_set_user_money( id, iMoney );
vip_dualkriss [ id ] = true;
vip_dualskull [ id ] = false;
vip_elite [ id ] = true;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 3:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_sg552" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_SG552, 200 );
cs_set_user_money( id, iMoney );
vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = true;
vip_elite [ id ] = true;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 4:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_m249" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_M249, 300 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 5:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = true;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 6:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = true;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}

}
}
menu_destroy ( menu );
return 1;
}


public FurienVIPMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = false;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = true;
vip_axe_knife [ id ] = false;
cs_set_user_money ( id, iMoney );
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = false;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = true;
cs_set_user_money ( id, iMoney );
return 1;
}
}
}

menu_destroy ( menu );
return 1;

}

public Player_TakeDamage ( iVictim, iInflictor, iAttacker, Float:fDamage, iDamageBits ) {

if ( katana_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( double_katana_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.8);
return HAM_HANDLED;

}

if ( super_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.5);
return HAM_HANDLED;

}

if ( infinity_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 3.0);
return HAM_HANDLED;

}

if ( dual_mp5 [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( scorpion_mp5 [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( scorpion_mp5 [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_XM1014 ) {

SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;

}

if ( m3_shoutgun [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_M3 ) {

SetHamParamFloat( 4, fDamage * 1.8);
return HAM_HANDLED;

}

if ( thompson [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_P90 ) {

SetHamParamFloat( 4, fDamage * 2.4);
return HAM_HANDLED;

}

if ( vip_elite [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_ELITE ) {

SetHamParamFloat( 4, fDamage * 2.7);
return HAM_HANDLED;

}

if ( vip_dualkriss [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_P90 ) {

SetHamParamFloat( 4, fDamage * 3.0);
return HAM_HANDLED;

}

if ( vip_hammer_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 2.7);
return HAM_HANDLED;

}

if ( vip_axe_knife [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_KNIFE ) {

SetHamParamFloat( 4, fDamage * 3.3);
return HAM_HANDLED;

}

if ( vip_cartblue [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 2.5);
return HAM_HANDLED;

}

if ( vip_cartred [ iAttacker ] && get_user_weapon ( iAttacker ) == CSW_MP5NAVY ) {

SetHamParamFloat( 4, fDamage * 3.0);
return HAM_HANDLED;

}

return HAM_IGNORED;

}

Mersi dar la armele vip nu ai umblat.. le poti pune pret-ul 1 $ la fiecare? Si la knife-uri vip la furien poti pune 1 $?

Vad ca ti-a pus pretul corect.
Nu mai face 2x post
Nu sunt obligat sa descarc fisierele nimanui :) Cine stie ce virusi ai tu in pc .

Tot nu merge.
CIneva??


15 Nov 2017 19:01
Profile multumesc WWW
Online
Moderator ajutator
Moderator ajutator
User avatar

Joined: 16 Feb 2014 17:28
Posts: 1103
Location: Braila
Detinator Steam: Da
Detinator server CS: Zm.DarkCs.Ro
Reputatie: Moderator ajutator
Fond eXtream: 0
Daca mai faci o singura data 2x post iti trimit topicul la cos ? Chiar ma crezi papagal ?
Cauta
Code:
public ShowAntiFurienMenuVIP ( id, level, cid ) {
   
    new menu = menu_create ( "\y* VIP * \rAntiFurien \yWeapons Menu", "AntiFurienVIPMenuGiver" );
    menu_additem ( menu, "\ySuper AWP \y[ \r1 $ \y ]", "1", VIP_ACCESS );
    menu_additem ( menu, "\yDual Kriss \y[ \r1 $ \y ]", "2", VIP_ACCESS );
    menu_additem ( menu, "\yDual Skull \y[ \r1 $ \y ]", "3", VIP_ACCESS );
    menu_additem ( menu, "\yMinigun \y[ \r1 $ \y ]", "4", VIP_ACCESS );
    menu_additem ( menu, "\yCart Blue \y[ \r1 $ \y ]", "5", VIP_ACCESS );
    menu_additem ( menu, "\yCart Red \y[ \r1 $ \y ]", "6", VIP_ACCESS );
   
    menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
    menu_display ( id, menu, 0 );
   
   
    return 1;
}

si
| Afiseaza codul
public AntiFurienVIPMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_awp" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_AWP, 50 );
cs_set_user_money( id, iMoney );
vip_awp [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = false;
vip_minigun [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_p90" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_P90, 200 );
cs_set_user_money( id, iMoney );
vip_dualkriss [ id ] = true;
vip_dualskull [ id ] = false;
vip_elite [ id ] = true;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 3:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_sg552" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_SG552, 200 );
cs_set_user_money( id, iMoney );
vip_dualkriss [ id ] = false;
vip_dualskull [ id ] = true;
vip_elite [ id ] = true;
vip_minigun [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 4:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_m249" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_M249, 300 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 5:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = false;
vip_cartblue [ id ] = true;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}
}

case 6:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
give_item ( id, "weapon_mp5navy" );
give_item ( id, "weapon_elite" );
cs_set_user_bpammo ( id, CSW_ELITE, 50 );
cs_set_user_bpammo ( id, CSW_MP5NAVY, 200 );
cs_set_user_money( id, iMoney );
vip_minigun [ id ] = true;
vip_elite [ id ] = true;
vip_dualkriss [ id ] = false;
vip_awp [ id ] = false;
dual_mp5 [ id ] = false;
scorpion_mp5 [ id ] = false;
xm1014_shoutgun [ id ] = false;
m3_shoutgun [ id ] = false;
thompson [ id ] = false;
weapon_uspx [ id ] = false;
vip_cartred [ id ] = true;
vip_cartblue [ id ] = false;
vip_cartred2 [ id ] = false;
vip_cartblue2 [ id ] = false;
return 1;
}

}
}
menu_destroy ( menu );
return 1;
}


public FurienVIPMenuGiver ( id, menu, item ) {

if( item == MENU_EXIT )
{
return 1;
}

new data [ 6 ], szName [ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
new key = str_to_num ( data );

switch(key)
{
case 1:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = false;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = true;
vip_axe_knife [ id ] = false;
cs_set_user_money ( id, iMoney );
return 1;
}
}

case 2:
{
new iMoney = cs_get_user_money ( id ) - 1;
if( iMoney < 0 )
{
ColorChat ( id, GREEN, "%s^x01 Nu ai destui bani !", szTag );
return 1;

}
else
{
infinity_knife [ id ] = false;
katana_knife [ id ] = false;
double_katana_knife [ id ] = false;
super_knife [ id ] = false;
vip_hammer_knife [ id ] = false;
vip_axe_knife [ id ] = true;
cs_set_user_money ( id, iMoney );
return 1;
}
}
}

menu_destroy ( menu );
return 1;

}

new iMoney = cs_get_user_money ( id ) - 1;
modifici acel -1 cu -2

_________________
Tranzactii:
| Afiseaza codul
https://www.extreamcs.com/forum/post2578307.html#p2578307
anunturi/dau-paysafe-paypal-t333080.html
anunturi/schimb-paysafecard-t325518.html
anunturi/dau-paypal-bancar-t326698.html
anunturi/ofer-paypal-orange-t324022.html
post2578307.html#p2578307
anunturi/exchange-bancar-paypay-t336647.html
anunturi/euro-paypal-euro-sms-t337786.html
anunturi/paysafe-paypal-t343951.html


Ts.DarkCs.Ro- de la 20:00-22:00 sunam cu****e

Vand Knife Menu


15 Nov 2017 19:20
Profile multumesc YIM WWW
Online
Membru, skill 0
Membru, skill 0

Joined: 25 May 2015 07:27
Posts: 81
Detinator Steam: Nu
CS Status: Don't Mess Whit Me
SteamID: Nu cred
Fond eXtream: 0
| Afiseaza codul
new menu = menu_create ( "\y* VIP * \rAntiFurien \yWeapons Menu", "AntiFurienVIPMenuGiver" );
menu_additem ( menu, "\ySuper AWP \y[ \r-2 $ \y ]", "1", VIP_ACCESS );
menu_additem ( menu, "\yDual Kriss \y[ \r-2 $ \y ]", "2", VIP_ACCESS );
menu_additem ( menu, "\yDual Skull \y[ \r-2 $ \y ]", "3", VIP_ACCESS );
menu_additem ( menu, "\yMinigun \y[ \r-2 $ \y ]", "4", VIP_ACCESS );
menu_additem ( menu, "\yCart Blue \y[ \r-2 $ \y ]", "5", VIP_ACCESS );
menu_additem ( menu, "\yCart Red \y[ \r-2 $ \y ]", "6", VIP_ACCESS );

menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );


return 1;
}

public ShowFurienMenuVIP ( id, level, cid ) {

new menu = menu_create ( "\y* VIP * \rFurien \yWeapons Menu", "FurienVIPMenuGiver" );
menu_additem ( menu, "\ySuper Hammer \y[ \r-2 $ \y ]", "1", VIP_ACCESS );
menu_additem ( menu, "\ySuper Axe \y[ \r-2 $ \y ]", "2", VIP_ACCESS );


Si la astea pun -2 $ sau doar la ce mi-ai zis?
am testat la ce ti-am dat acum cu -2 si nu merge . Si nici cu -1 sau fara minus


15 Nov 2017 19:31
Profile multumesc WWW
Online
Membru, skill 0
Membru, skill 0

Joined: 25 May 2015 07:27
Posts: 81
Detinator Steam: Nu
CS Status: Don't Mess Whit Me
SteamID: Nu cred
Fond eXtream: 0
T/C am schimbat addons , nu mai e nevoie :middle_finger: :middle_finger:


15 Nov 2017 22:01
Profile multumesc WWW
Online
Membru, skill +2
Membru, skill +2
User avatar

Joined: 21 Jun 2013 12:40
Posts: 752
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
EleCtr0zZz wrote:
T/C am schimbat addons , nu mai e nevoie :middle_finger: :middle_finger:

Frumos, am incercat sa te ajut si tu lasi acele semne :) Oke, daca dau de serveru tau am sa ti-l tin numai in flood ca sa inveti ce inseamna sa ai respect fata de altcineva care te-a ajutat.


16 Nov 2017 13:53
Profile multumesc WWW
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 14 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: Bing [Bot] and 32 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group