Raised This Month: $ Target: $400
 0% 

Add $ For Buy Weapons VIP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Florea17
Junior Member
Join Date: Nov 2023
Old 11-25-2023 , 18:05   Add $ For Buy Weapons VIP
Reply With Quote #1

Hey , add $ for buy weapons vip

Code:
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <fun>
#include <fakemeta_util>

new const PLUGIN[] = "Anti Furien & VIP Weapons ";
new const VERSION[] = "1.0";
new const AUTHOR[] = "4EtThhG!!";

#pragma semicolon 1

#define VIP_FLAG ADMIN_LEVEL_H

new const Arma1Model[66] = "models/furienweapons/v_m4a1.mdl";
new const Arma2Model[66] = "models/furienweapons/v_ak47.mdl";
new const Arma3Model[66] = "models/furienweapons/v_mp5.mdl";
new const Arma4Model[66] = "models/furienweapons/v_xm1014.mdl";
new const Arma5Model[66] = "models/furienweapons/v_m3.mdl";

new const ArmaGold1Model[66] = "models/furienweapons/v_goldenm4a1.mdl";
new const ArmaGold2Model[66] = "models/furienweapons/v_goldenak47.mdl";

new bool: Arma1[33];
new bool: Arma2[33];
new bool: Arma3[33];
new bool: Arma4[33];
new bool: Arma5[33];

new bool: ArmaGold1[33];
new bool: ArmaGold2[33];

new bool: ArmaChoosen[33];

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);

register_clcmd("say /weapons","SayArme");

register_event("CurWeapon", "CurentWeapon", "be", "1=1");
RegisterHam(Ham_Spawn, "player", "Spawn", 1);
RegisterHam(Ham_TakeDamage, "player", "DamageArme");
}

public Spawn(id)
{
	fm_give_item(id, "weapon_knife");
	if(get_user_team(id) == 2)
	{
		fm_give_item(id, "weapon_deagle");
		cs_set_user_bpammo(id, CSW_DEAGLE,250);
		ArmaChoosen[id] = false;

Arma1[id] = false;
Arma2[id] = false;
Arma3[id] = false;
Arma4[id] = false;
Arma5[id] = false;

ArmaGold1[id] = false;
ArmaGold2[id] = false;

if(cs_get_user_team(id) == CS_TEAM_CT)
{
MenuArme(id);
}
}
}

public plugin_precache()
{
precache_model(Arma1Model);
precache_model(Arma2Model);
precache_model(Arma3Model);
precache_model(Arma4Model);
precache_model(Arma5Model);

precache_model(ArmaGold1Model);
precache_model(ArmaGold2Model);
}

public client_disconnect(id)
{
Arma1[id] = false;
Arma2[id] = false;
Arma3[id] = false;
Arma4[id] = false;
Arma5[id] = false;

ArmaGold1[id] = false;
ArmaGold2[id] = false;
}

public MenuArme(id)
{
new menu = menu_create ("\rDevil\w.\yFurien\w.\rRo \yWeapons \rMenu", "CaseMenu");

menu_additem(menu, "\rArme \yPlayeri", "1");
menu_additem(menu, "\rArme \yV\w.\yI\w.\yP", "2");

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

return 1;
}

public CaseMenu(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:
{
{
MenuPlayeri(id);
}
}

case 2:
{
if( get_user_flags( id ) & VIP_FLAG )
{
MenuVIP(id);
}

else
{
ChatColor(id, "!g[Furien Weapons]!nAceste arme pot fi luate doar de membri !gVIP");
MenuArme(id);
}
}
}

menu_destroy (menu);
return 1;
}
public MenuPlayeri(id)
{
new menu = menu_create ("\rFurien Player \yWeapons Menu", "CaseArmePlayeri");

menu_additem(menu, "\yM4A1", "1");
menu_additem(menu, "\yAk47", "2");
menu_additem(menu, "\yMP5", "3");
menu_additem(menu, "\yXM1014", "4");
menu_additem(menu, "\yM3", "5");

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

return 1;
}

public CaseArmePlayeri(id, menu, item)
{
if(item == MENU_EXIT)
{
return 1;
}
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien Weapons] !nNu-ti poti alege arma atunci cānd esti mort");
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:
{
ArmaChoosen[id] = true;
Arma1[id] = true;
set_task(0.2, "GiveWeapon", id);
CurentWeapon(id);
ChatColor(id, "!g[Furien Weapons] !nAi ales !gM4A1");
}
case 2:
{
ArmaChoosen[id] = true;
Arma2[id] = true;
set_task(0.2, "GiveWeapon", id);
CurentWeapon(id);
ChatColor(id, "!g[Furien Weapons] !nAi ales !gAk47");
}
case 3:
{
ArmaChoosen[id] = true;
Arma3[id] = true;
set_task(0.2, "GiveWeapon", id);
CurentWeapon(id);
ChatColor(id, "!g[Furien Weapons] !nAi ales !gMP5");
}
case 4:
{
ArmaChoosen[id] = true;
Arma4[id] = true;
set_task(0.2, "GiveWeapon", id);
CurentWeapon(id);
ChatColor(id, "!g[Furien Weapons] !nAi ales !gXM1014");
}
case 5:
{
ArmaChoosen[id] = true;
Arma5[id] = true;
set_task(0.2, "GiveWeapon", id);
CurentWeapon(id);
ChatColor(id, "!g[Furien Weapons] !nAi ales !gM3");
}

}

menu_destroy (menu);
return 1;
}


public MenuVIP(id)
{
new menu = menu_create ("\rFurien VIP \yWeapons Menu", "CaseArmeVIP");

menu_additem(menu, "\yGolden \rM4A1", "1");
menu_additem(menu, "\yGolden \rAk47", "2");

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

return 1;
}

public CaseArmeVIP(id, menu, item)
{
if(item == MENU_EXIT)
{
return 1;
}
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien Weapons] !nNu-ti poti alege arma atunci cānd esti mort");
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:
{
ArmaChoosen[id] = true;
ArmaGold1[id] = true;
set_task(0.2, "GiveWeapon", id);
CurentWeapon(id);
ChatColor(id, "!g[Furien Weapons] !nAi ales !gM4A1 Gold");
}
case 2:
{
ArmaChoosen[id] = true;
ArmaGold2[id] = true;
set_task(0.2, "GiveWeapon", id);
CurentWeapon(id);
ChatColor(id, "!g[Furien Weapons] !nAi ales !gAk47 Gold");
}


}

menu_destroy (menu);
return 1;
}

public GiveWeapon(id) {
if(Arma1[id]) {
give_item(id, "weapon_m4a1");
cs_set_user_bpammo(id, CSW_M4A1, 250);
}
if(Arma2[id]) {
give_item(id, "weapon_ak47");
cs_set_user_bpammo(id, CSW_AK47, 250);
}
if(Arma3[id]) {
give_item(id, "weapon_mp5navy");
cs_set_user_bpammo(id, CSW_MP5NAVY, 250);
}
if(Arma4[id]) {
give_item(id, "weapon_xm1014");
cs_set_user_bpammo(id, CSW_XM1014, 250);
}
if(Arma5[id]) {
give_item(id, "weapon_m3");
cs_set_user_bpammo(id, CSW_M3, 250);
}


if(ArmaGold1[id]) {
give_item(id, "weapon_m4a1");
cs_set_user_bpammo(id, CSW_M4A1, 250);
}
if(ArmaGold2[id]) {
give_item(id, "weapon_ak47");
cs_set_user_bpammo(id, CSW_AK47, 250);
}

}

public CurentWeapon(id)
{
if(Arma1[id] && get_user_weapon(id) == CSW_M4A1 )
set_pev(id, pev_viewmodel2, Arma1Model);

if(Arma2[id] && get_user_weapon(id) == CSW_AK47 )
set_pev(id, pev_viewmodel2, Arma2Model);

if(Arma3[id] && get_user_weapon(id) == CSW_MP5NAVY )
set_pev(id, pev_viewmodel2, Arma3Model);

if(Arma4[id] && get_user_weapon(id) == CSW_XM1014 )
set_pev(id, pev_viewmodel2, Arma4Model);

if(Arma5[id] && get_user_weapon(id) == CSW_M3 )
set_pev(id, pev_viewmodel2, Arma5Model);


if(ArmaGold1[id] && get_user_weapon(id) == CSW_M4A1 )
set_pev(id, pev_viewmodel2, ArmaGold1Model);

if(ArmaGold2[id] && get_user_weapon(id) == CSW_AK47 )
set_pev(id, pev_viewmodel2, ArmaGold2Model);

}


public DamageArme (iVictim, iInflictor, iAttacker, Float:fDamage, iDamageBits)
{
if(iInflictor == iAttacker && Arma1[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_M4A1 && cs_get_user_team(iAttacker) == CS_TEAM_CT)
{
SetHamParamFloat(4, fDamage * 1.0);
return HAM_HANDLED;
}

if(iInflictor == iAttacker && Arma2[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_AK47 && cs_get_user_team(iAttacker) == CS_TEAM_CT)
{
SetHamParamFloat(4, fDamage * 1.0);
return HAM_HANDLED;
}

if(iInflictor == iAttacker && Arma3[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_MP5NAVY && cs_get_user_team(iAttacker) == CS_TEAM_CT)
{
SetHamParamFloat(4, fDamage * 1.0);
return HAM_HANDLED;
}

if(iInflictor == iAttacker && Arma4[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_XM1014 && cs_get_user_team(iAttacker) == CS_TEAM_CT)
{
SetHamParamFloat(4, fDamage * 1.0);
return HAM_HANDLED;
}

if(iInflictor == iAttacker && Arma5[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_M3 && cs_get_user_team(iAttacker) == CS_TEAM_CT)
{
SetHamParamFloat(4, fDamage * 1.0);
return HAM_HANDLED;
}



if(iInflictor == iAttacker && ArmaGold1[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_M4A1 && cs_get_user_team(iAttacker) == CS_TEAM_CT)
{
SetHamParamFloat(4, fDamage * 2.0);
return HAM_HANDLED;
}

if(iInflictor == iAttacker && ArmaGold2[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_AK47 && cs_get_user_team(iAttacker) == CS_TEAM_CT)
{
SetHamParamFloat(4, fDamage * 2.0);
return HAM_HANDLED;
}

return HAM_IGNORED;
}

public SayArme(id)
{
if(ArmaChoosen[id])
{
ChatColor(id, "!g[Furien Weapons] !nAti ales deja o arma īn aceasta runda");
return;
}

if(cs_get_user_team(id) == CS_TEAM_CT)
{
MenuArme(id);
}
}

stock ChatColor(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);

replace_all(msg, 190, "!g", "^4"); // Verde
replace_all(msg, 190, "!n", "^1"); // Galben
replace_all(msg, 190, "!t", "^3"); // CT-Albastru ; T-Rosu
replace_all(msg, 190, "!t2", "^0"); // CT-Albastru2 ; T-Rosu2

if (id) players[0] = id; else get_players(players, count, "ch");
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}

Last edited by Florea17; 11-25-2023 at 18:07.
Florea17 is offline
elmedin
Senior Member
Join Date: Nov 2013
Location: Bruh
Old 11-26-2023 , 00:09   Re: Add $ For Buy Weapons VIP
Reply With Quote #2

Change price on your preference:
PHP Code:
new const VIP_GOLDEN_M4A1_PRICE 1000;
new const 
VIP_GOLDEN_AK47_PRICE 1500
Full code:
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <fun>
#include <fakemeta_util>

new const PLUGIN[] = "Anti Furien & VIP Weapons ";
new const 
VERSION[] = "1.0";
new const 
AUTHOR[] = "4EtThhG!!";

#pragma semicolon 1

#define VIP_FLAG ADMIN_LEVEL_H


new const VIP_GOLDEN_M4A1_PRICE 1000;
new const 
VIP_GOLDEN_AK47_PRICE 1500;

new const 
Arma1Model[66] = "models/furienweapons/v_m4a1.mdl";
new const 
Arma2Model[66] = "models/furienweapons/v_ak47.mdl";
new const 
Arma3Model[66] = "models/furienweapons/v_mp5.mdl";
new const 
Arma4Model[66] = "models/furienweapons/v_xm1014.mdl";
new const 
Arma5Model[66] = "models/furienweapons/v_m3.mdl";

new const 
ArmaGold1Model[66] = "models/furienweapons/v_goldenm4a1.mdl";
new const 
ArmaGold2Model[66] = "models/furienweapons/v_goldenak47.mdl";


new 
boolArma1[33];
new 
boolArma2[33];
new 
boolArma3[33];
new 
boolArma4[33];
new 
boolArma5[33];

new 
boolArmaGold1[33];
new 
boolArmaGold2[33];

new 
boolArmaChoosen[33];

public 
plugin_init()
{
register_plugin(PLUGINVERSIONAUTHOR);

register_clcmd("say /weapons","SayArme");

register_event("CurWeapon""CurentWeapon""be""1=1");
RegisterHam(Ham_Spawn"player""Spawn"1);
RegisterHam(Ham_TakeDamage"player""DamageArme");
}

public 
Spawn(id)
{
    
fm_give_item(id"weapon_knife");
    if(
get_user_team(id) == 2)
    {
        
fm_give_item(id"weapon_deagle");
        
cs_set_user_bpammo(idCSW_DEAGLE,250);
        
ArmaChoosen[id] = false;

Arma1[id] = false;
Arma2[id] = false;
Arma3[id] = false;
Arma4[id] = false;
Arma5[id] = false;

ArmaGold1[id] = false;
ArmaGold2[id] = false;

if(
cs_get_user_team(id) == CS_TEAM_CT)
{
MenuArme(id);
}
}
}

public 
plugin_precache()
{
precache_model(Arma1Model);
precache_model(Arma2Model);
precache_model(Arma3Model);
precache_model(Arma4Model);
precache_model(Arma5Model);

precache_model(ArmaGold1Model);
precache_model(ArmaGold2Model);
}

public 
client_disconnect(id)
{
Arma1[id] = false;
Arma2[id] = false;
Arma3[id] = false;
Arma4[id] = false;
Arma5[id] = false;

ArmaGold1[id] = false;
ArmaGold2[id] = false;
}

public 
MenuArme(id)
{
new 
menu menu_create ("\rDevil\w.\yFurien\w.\rRo \yWeapons \rMenu""CaseMenu");

menu_additem(menu"\rArme \yPlayeri""1");
menu_additem(menu"\rArme \yV\w.\yI\w.\yP""2");

menu_setprop(menuMPROP_EXITMEXIT_ALL);
menu_display(idmenu);

return 
1;
}

public 
CaseMenu(idmenuitem)
{
if(
item == MENU_EXIT)
{
return 
1;
}

new 
data [6], szName [64];
new 
accesscallback;
menu_item_getinfo (menuitemaccessdata,charsmax (data), szName,charsmax (szName), callback);
new 
key str_to_num (data);

switch (
key)
{
case 
1:
{
{
MenuPlayeri(id);
}
}

case 
2:
{
if( 
get_user_flagsid ) & VIP_FLAG )
{
MenuVIP(id);
}

else
{
ChatColor(id"!g[Furien Weapons]!nAceste arme pot fi luate doar de membri !gVIP");
MenuArme(id);
}
}
}

menu_destroy (menu);
return 
1;
}
public 
MenuPlayeri(id)
{
new 
menu menu_create ("\rFurien Player \yWeapons Menu""CaseArmePlayeri");

menu_additem(menu"\yM4A1""1");
menu_additem(menu"\yAk47""2");
menu_additem(menu"\yMP5""3");
menu_additem(menu"\yXM1014""4");
menu_additem(menu"\yM3""5");

menu_setprop(menuMPROP_EXITMEXIT_ALL);
menu_display(idmenu);

return 
1;
}

public 
CaseArmePlayeri(idmenuitem)
{
if(
item == MENU_EXIT)
{
return 
1;
}
if(!
is_user_alive(id))
{
ChatColor(id"!g[Furien Weapons] !nNu-ti poti alege arma atunci cānd esti mort");
return 
1;
}

new 
data [6], szName [64];
new 
accesscallback;
menu_item_getinfo (menuitemaccessdata,charsmax (data), szName,charsmax (szName), callback);
new 
key str_to_num (data);

switch (
key)
{
case 
1:
{
ArmaChoosen[id] = true;
Arma1[id] = true;
set_task(0.2"GiveWeapon"id);
CurentWeapon(id);
ChatColor(id"!g[Furien Weapons] !nAi ales !gM4A1");
}
case 
2:
{
ArmaChoosen[id] = true;
Arma2[id] = true;
set_task(0.2"GiveWeapon"id);
CurentWeapon(id);
ChatColor(id"!g[Furien Weapons] !nAi ales !gAk47");
}
case 
3:
{
ArmaChoosen[id] = true;
Arma3[id] = true;
set_task(0.2"GiveWeapon"id);
CurentWeapon(id);
ChatColor(id"!g[Furien Weapons] !nAi ales !gMP5");
}
case 
4:
{
ArmaChoosen[id] = true;
Arma4[id] = true;
set_task(0.2"GiveWeapon"id);
CurentWeapon(id);
ChatColor(id"!g[Furien Weapons] !nAi ales !gXM1014");
}
case 
5:
{
ArmaChoosen[id] = true;
Arma5[id] = true;
set_task(0.2"GiveWeapon"id);
CurentWeapon(id);
ChatColor(id"!g[Furien Weapons] !nAi ales !gM3");
}

}

menu_destroy (menu);
return 
1;
}


public 
MenuVIP(id)
{
    new 
menu menu_create("\rFurien VIP \yWeapons Menu""CaseArmeVIP");

    new 
M4A1Label[64], Ak47Label[64];

    
format(M4A1Labelsizeof(M4A1Label), "\yGolden \rM4A1 \y($%d)"VIP_GOLDEN_M4A1_PRICE);
    
format(Ak47Labelsizeof(Ak47Label), "\yGolden \rAk47 \y($%d)"VIP_GOLDEN_AK47_PRICE);

    
menu_additem(menuM4A1Label"1");
    
menu_additem(menuAk47Label"2");

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_display(idmenu0);

    return 
1;
}


public 
CaseArmeVIP(idmenuitem)
{
    if (
item == MENU_EXIT)
    {
        return 
1;
    }

    if (!
is_user_alive(id))
    {
        
ChatColor(id"!g[Furien Weapons] !nNu-ti poti alege arma atunci cānd esti mort");
        return 
1;
    }

    new 
data[6], szName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdatacharsmax(data), szNamecharsmax(szName), callback);
    new 
key str_to_num(data);

    switch (
key)
    {
    case 
1:
        {
            if (
cs_get_user_money(id) >= VIP_GOLDEN_M4A1_PRICE)
            {
                
cs_set_user_money(idcs_get_user_money(id) - VIP_GOLDEN_M4A1_PRICE);
                
ArmaChoosen[id] = true;
                
ArmaGold1[id] = true;
                
set_task(0.2"GiveWeapon"id);
                
CurentWeapon(id);
                
ChatColor(id"!g[Furien Weapons] !nAi ales !gM4A1 Gold");
            }
            else
            {
                
ChatColor(id"!g[Furien Weapons] !nNu ai suficienti bani pentru a cumpara aceasta arma!");
                
MenuArme(id);
            }
        }

    case 
2:
        {
            if (
cs_get_user_money(id) >= VIP_GOLDEN_AK47_PRICE)
            {
                
cs_set_user_money(idcs_get_user_money(id) - VIP_GOLDEN_AK47_PRICE);
                
ArmaChoosen[id] = true;
                
ArmaGold2[id] = true;
                
set_task(0.2"GiveWeapon"id);
                
CurentWeapon(id);
                
ChatColor(id"!g[Furien Weapons] !nAi ales !gAk47 Gold");
            }
            else
            {
                
ChatColor(id"!g[Furien Weapons] !nNu ai suficienti bani pentru a cumpara aceasta arma!");
                
MenuArme(id);
            }
        }
    }

    
menu_destroy(menu);
    return 
1;
}


public 
GiveWeapon(id) {
if(
Arma1[id]) {
give_item(id"weapon_m4a1");
cs_set_user_bpammo(idCSW_M4A1250);
}
if(
Arma2[id]) {
give_item(id"weapon_ak47");
cs_set_user_bpammo(idCSW_AK47250);
}
if(
Arma3[id]) {
give_item(id"weapon_mp5navy");
cs_set_user_bpammo(idCSW_MP5NAVY250);
}
if(
Arma4[id]) {
give_item(id"weapon_xm1014");
cs_set_user_bpammo(idCSW_XM1014250);
}
if(
Arma5[id]) {
give_item(id"weapon_m3");
cs_set_user_bpammo(idCSW_M3250);
}


if(
ArmaGold1[id]) {
give_item(id"weapon_m4a1");
cs_set_user_bpammo(idCSW_M4A1250);
}
if(
ArmaGold2[id]) {
give_item(id"weapon_ak47");
cs_set_user_bpammo(idCSW_AK47250);
}

}

public 
CurentWeapon(id)
{
if(
Arma1[id] && get_user_weapon(id) == CSW_M4A1 )
set_pev(idpev_viewmodel2Arma1Model);

if(
Arma2[id] && get_user_weapon(id) == CSW_AK47 )
set_pev(idpev_viewmodel2Arma2Model);

if(
Arma3[id] && get_user_weapon(id) == CSW_MP5NAVY )
set_pev(idpev_viewmodel2Arma3Model);

if(
Arma4[id] && get_user_weapon(id) == CSW_XM1014 )
set_pev(idpev_viewmodel2Arma4Model);

if(
Arma5[id] && get_user_weapon(id) == CSW_M3 )
set_pev(idpev_viewmodel2Arma5Model);


if(
ArmaGold1[id] && get_user_weapon(id) == CSW_M4A1 )
set_pev(idpev_viewmodel2ArmaGold1Model);

if(
ArmaGold2[id] && get_user_weapon(id) == CSW_AK47 )
set_pev(idpev_viewmodel2ArmaGold2Model);

}


public 
DamageArme (iVictimiInflictoriAttackerFloat:fDamageiDamageBits)
{
if(
iInflictor == iAttacker && Arma1[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_M4A1 && cs_get_user_team(iAttacker) == CS_TEAM_CT)
{
SetHamParamFloat(4fDamage 1.0);
return 
HAM_HANDLED;
}

if(
iInflictor == iAttacker && Arma2[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_AK47 && cs_get_user_team(iAttacker) == CS_TEAM_CT)
{
SetHamParamFloat(4fDamage 1.0);
return 
HAM_HANDLED;
}

if(
iInflictor == iAttacker && Arma3[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_MP5NAVY && cs_get_user_team(iAttacker) == CS_TEAM_CT)
{
SetHamParamFloat(4fDamage 1.0);
return 
HAM_HANDLED;
}

if(
iInflictor == iAttacker && Arma4[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_XM1014 && cs_get_user_team(iAttacker) == CS_TEAM_CT)
{
SetHamParamFloat(4fDamage 1.0);
return 
HAM_HANDLED;
}

if(
iInflictor == iAttacker && Arma5[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_M3 && cs_get_user_team(iAttacker) == CS_TEAM_CT)
{
SetHamParamFloat(4fDamage 1.0);
return 
HAM_HANDLED;
}



if(
iInflictor == iAttacker && ArmaGold1[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_M4A1 && cs_get_user_team(iAttacker) == CS_TEAM_CT)
{
SetHamParamFloat(4fDamage 2.0);
return 
HAM_HANDLED;
}

if(
iInflictor == iAttacker && ArmaGold2[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_AK47 && cs_get_user_team(iAttacker) == CS_TEAM_CT)
{
SetHamParamFloat(4fDamage 2.0);
return 
HAM_HANDLED;
}

return 
HAM_IGNORED;
}

public 
SayArme(id)
{
if(
ArmaChoosen[id])
{
ChatColor(id"!g[Furien Weapons] !nAti ales deja o arma īn aceasta runda");
return;
}

if(
cs_get_user_team(id) == CS_TEAM_CT)
{
MenuArme(id);
}
}

stock ChatColor(const id, const input[], any:...)
{
new 
count 1players[32];
static 
msg[191];
vformat(msg190input3);

replace_all(msg190"!g""^4"); // Verde
replace_all(msg190"!n""^1"); // Galben
replace_all(msg190"!t""^3"); // CT-Albastru ; T-Rosu
replace_all(msg190"!t2""^0"); // CT-Albastru2 ; T-Rosu2

if (idplayers[0] = id; else get_players(playerscount"ch");
{
for (new 
0counti++)
{
if (
is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}

elmedin is offline
Florea17
Junior Member
Join Date: Nov 2023
Old 11-26-2023 , 03:34   Re: Add $ For Buy Weapons VIP
Reply With Quote #3

Thank you
Florea17 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:37.


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