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

Shop Anti-Furien


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Al3xandru27
Member
Join Date: Oct 2019
Old 07-24-2020 , 08:53   Shop Anti-Furien
Reply With Quote #1

I have a problem at the anti-furien shop.
I put a dual uzi model and a quad barrel only because they don't have the "animations" that they have to have .. for example quad barrel, if I change the knife and then the weapon, it appears directly without any animation or anything ..

Excuse me for my bad English
I hope you understand what I mean..

This is the shop I edited:

PHP Code:
/* Plugin generated by AMXX-Studio */

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

#define PLUGIN "Furien Weapon's"
#define VERSION "1.1"
#define AUTHOR ""

// = Damage Arme VIP =================
#define IsPlayer(%0)    ( 1 <= %0 <= g_iMaxPlayers )
#define VIP_FLAG ADMIN_LEVEL_H // Flag-ul T 
#define ARMANOUA CSW_MP5NAVY
#define ARMANOUA1 CSW_M3

new g_iMaxPlayers;

new 
bool:Ak47Gold33 ], M4a1Gold33 ], DualUzi33 ], QBarrel33 ], AidjaOarma33 ];

new const 
Ak47Gold_v_Model66 ] = "models/FurienVIP/v_ak47Gold.mdl";
new const 
Ak47Gold_p_Model64 ] = "models/FurienVIP/p_ak47Gold.mdl";

new const 
M4a1Gold_v_Model66 ] = "models/FurienVIP/v_m4a1Gold.mdl";
new const 
M4a1Gold_p_Model64 ] = "models/FurienVIP/p_m4a1Gold.mdl";

new const 
QBarrel_v_Model66 ] = "models/FurienVIP/v_qbarrel.mdl";
new const 
QBarrel_p_Model64 ] = "models/FurienVIP/p_qbarrel.mdl";
new const 
QBarrel_w_Model66 ] = "models/FurienVIP/w_qbarrel.mdl";
new const 
QBarrel_Sounds[5][] =
{
    
"weapons/qbarrel_clipin1",
    
"weapons/qbarrel_clipin2",
    
"weapons/qbarrel_clipout1",
    
"weapons/qbarrel_draw",
    
"weapons/qbarrel_shoot"
}

new const 
DualUzi_v_Model66 ]= "models/FurienVIP/v_p90.mdl";
new const 
DualUzi_p_Model64 ]= "models/newknife/p_dualuzi1.mdl";
new const 
DualUzi_w_Model66 ]= "models/newknife/w_dualuzi1.mdl";
new const 
DualUzi_Sounds[10][] =
{
    
"weapons/dualuzi-1.wav",
    
"weapons/dualuzi_draw.wav",
    
"weapons/dualuzi_idle2_1.wav",
    
"weapons/dualuzi_idle2_2.wav",
    
"weapons/dualuzi_clipin1.wav",
    
"weapons/dualuzi_clipout1.wav",
    
"weapons/dualuzi_off_shoulder.wav",
    
"weapons/dualuzi_on_shoulder.wav",
    
"weapons/dualuzi_on_shoulder_reload1.wav",
    
"weapons/dualuzi_on_shoulder_reload2.wav"
}

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
    
register_clcmd("say /weapons","ClcmdWeapons");
    
RegisterHam(Ham_Spawn"player""Inceput_runda"1);
    
    
register_event"CurWeapon""Event_CurWeapon""be""1=1" )
    
register_forward FM_SetModel"ArmaNoua_SetWModel" ); 
    
RegisterHamHam_TakeDamage"player""DamageVip" )
    
    
// Damage VIP 
    
g_iMaxPlayers get_maxplayers ( );
}


public 
ClcmdWeapons(id) {
    if(
AidjaOarma[id] ) {
        
ChatColor(id"!g[Anti-furien Menu] !tAi ales arma aceasta runda");
        return 
PLUGIN_HANDLED;
    }
    if( 
get_user_teamid ) == ) {
        
WeaponMenu(id)
    }
    return 
PLUGIN_HANDLED;
}

public 
Inceput_runda(id) {
    if(
is_user_alive(id)) {
        
give_item(id"weapon_knife");
        
AidjaOarma[id] = false;
        
Ak47Goldid ] = false
        M4a1Gold
id ] = false
        DualUzi
id ] = false
        QBarrel
id ] = false
        
        
if(get_user_team(id) == 2) {
            
WeaponMenu(id);
        }
    }
}

public 
WeaponMenu(id) {
    if(
is_user_alive(id) && get_user_team(id) == 2) {
        new 
menu menu_create ("\w[Arme Anti-Furieni]""CaseWeaponMenu");
        
        
menu_additem(menu"Arme Normale""1")
        
menu_additem(menu"Arme \rVIP""2")
        
        
menu_setprop(menuMPROP_EXITMEXIT_ALL);
        
menu_display(idmenu);
    }
}

public 
CaseWeaponMenu(idmenuitem) {
    if(
item == MENU_EXIT || !is_user_alive(id) || get_user_team(id) != 2) {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    
    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: {
            
PlayersMenu(id
        }
        case 
2: {
            if( 
get_user_flagsid ) & VIP_FLAG )  {
                
VipMenu(id
            }
            else
            {
                
ChatColor(id"!g[AntiFurien Weapons] !nNu ai acces la meniul !gVIP!");
                
WeaponMenu(id)
                return 
PLUGIN_HANDLED;
            }
        }
    }
    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
}

public 
PlayersMenu(id) {
    if(
is_user_alive(id) && get_user_team(id) == 2) {
        new 
menu menu_create ("Arme Normale""CasePlayersMenu");
        
        
menu_additem(menu"Ak47""1");
        
menu_additem(menu"M4a1""2");
        
menu_additem(menu"MP5 Navy""3");
        
menu_additem(menu"XM1014""4");
        
menu_additem(menu"M3""5");
        
        
menu_setprop(menuMPROP_EXITMEXIT_ALL);
        
menu_display(idmenu);
    }
}

public 
CasePlayersMenu(idmenuitem) {
    if(
item == MENU_EXIT || !is_user_alive(id) || get_user_team(id) != 2) {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    
    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:
        {
            
give_item(id"weapon_ak47");
            
cs_set_user_bpammo(idCSW_AK47,250);
            
ChatColor(id"!g[AntiFurien Weapons] !nAi ales !gAk47");
            
AidjaOarmaid ] = true;
            
PistolSpawn(id)
        }
        case 
2:
        {
            
give_item(id"weapon_m4a1");
            
cs_set_user_bpammo(idCSW_M4A1,250);
            
ChatColor(id"!g[AntiFurien Weapons] !nAi ales !gM4a1");
            
AidjaOarmaid ] = true;
            
PistolSpawn(id)
        }
        case 
3:
        {
            
give_item(id"weapon_mp5navy");
            
cs_set_user_bpammo(idCSW_MP5NAVY,250);
            
ChatColor(id"!g[AntiFurien Weapons] !nAi ales !gMp5Navy");
            
AidjaOarmaid ] = true;
            
PistolSpawn(id)
        }
        case 
4:
        {
            
give_item(id"weapon_xm1014");
            
cs_set_user_bpammo(idCSW_XM1014,250);
            
ChatColor(id"!g[AntiFurien Weapons] !nAi ales !gXm1014");
            
AidjaOarmaid ] = true;
            
PistolSpawn(id)
        }
        case 
5:
        {
            
give_item(id"weapon_m3");
            
cs_set_user_bpammo(idCSW_M3,250);
            
ChatColor(id"!g[AntiFurien Weapons] !nAi ales !gM3");
            
AidjaOarmaid ] = true;
            
PistolSpawn(id)
        }
    }
    
    
menu_destroy (menu);
    return 
PLUGIN_HANDLED;
}

public 
VipMenu(id) {
    if(
is_user_alive(id) && get_user_team(id) == 2) {
        new 
menu menu_create ("Meniu VIP""CaseVipMenu")
        
        
menu_additem(menu"Dual UZI""1")
        
menu_additem(menu"Quad Barrel""2")
        
menu_additem(menu"Ak47 Gold""3")
        
menu_additem(menu"M4a1 Gold""4")
        
        
menu_setprop(menuMPROP_EXITMEXIT_ALL);
        
menu_display(idmenu);
    }
}

public 
CaseVipMenu(idmenuitem) {
    if(
item == MENU_EXIT || !is_user_alive(id) || get_user_team(id) != 2) {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    
    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: {
            
give_item(id"weapon_mp5navy");
       
cs_set_user_bpammo(idCSW_MP5NAVY,250);
       
set_pevidpev_viewmodel2DualUzi_v_Model )
       
set_pevidpev_weaponmodel2DualUzi_p_Model )
       
AidjaOarmaid ] = true;
       
DualUziid ] = true
       PistolSpawn
(id)
        }
        case 
2: {
       
give_item(id"weapon_m3");
       
cs_set_user_bpammo(idCSW_M3,250);
       
set_pevidpev_viewmodel2QBarrel_v_Model )
       
set_pevidpev_weaponmodel2QBarrel_p_Model )
       
AidjaOarmaid ] = true;
       
QBarrelid ] = true
       PistolSpawn
(id)
        }
        case 
3: {
            
give_item(id"weapon_ak47");
            
cs_set_user_bpammo(idCSW_AK47,250);
            
set_pevidpev_viewmodel2Ak47Gold_v_Model )
            
set_pevidpev_weaponmodel2Ak47Gold_p_Model )
            
AidjaOarmaid ] = true;
            
Ak47Goldid ] = true
            PistolSpawn
(id)
        }
        case 
4: {
            
give_item(id"weapon_m4a1");
            
cs_set_user_bpammo(idCSW_M4A1,250);
            
set_pevidpev_viewmodel2M4a1Gold_v_Model )
            
set_pevidpev_weaponmodel2M4a1Gold_p_Model )
            
AidjaOarmaid ] = true;
            
M4a1Goldid ] = true
            PistolSpawn
(id)
        }
    }
    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
}

public 
PistolSpawn(id) {
    if(
is_user_alive(id) && get_user_team(id) == 2) {
        new 
menu menu_create ("Pistoale""CaseWeaponSecundar");
        
        
menu_additem(menu"Deagle""1");
        
menu_additem(menu"Dual Elite""2");
        
menu_additem(menu"Fiveseven""3");
        
menu_additem(menu"Usp""4");
        
        
menu_setprop(menuMPROP_EXITMEXIT_ALL);
        
menu_display(idmenu);
    }
}

public 
CaseWeaponSecundar(idmenuitem) {
    if(
item == MENU_EXIT || !is_user_alive(id) || get_user_team(id) != 2) {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    
    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: {
            
give_item(id"weapon_deagle");
        
cs_set_user_bpammo(idCSW_DEAGLE250);
        
AidjaOarmaid ] = true;
        }
        case 
2:
        {
       
give_item(id"weapon_elite");
       
cs_set_user_bpammo(idCSW_ELITE250);
       
AidjaOarmaid ] = true;
        }
        case 
3:
        {
            
give_item(id"weapon_fiveseven");
            
cs_set_user_bpammo(idCSW_FIVESEVEN250);
            
AidjaOarmaid ] = true;
        }
        case 
4:
        {
            
give_item(id"weapon_usp");
            
cs_set_user_bpammo(idCSW_USP250);
            
AidjaOarmaid ] = true;
        }
    }
    
menu_destroy (menu);
    return 
PLUGIN_HANDLED;
}


public 
plugin_precache() {
    
precache_modelAk47Gold_v_Model )
    
precache_modelAk47Gold_p_Model )
    
precache_modelM4a1Gold_v_Model )
    
precache_modelM4a1Gold_p_Model )
    
precache_modelDualUzi_v_Model )
    
precache_modelDualUzi_p_Model )
    
precache_modelDualUzi_w_Model )
    
precache_modelQBarrel_v_Model )
    
precache_modelQBarrel_p_Model )
    
precache_modelQBarrel_w_Model )
    for(new 
0sizeof(DualUzi_Sounds); i++)
             
precache_sound(DualUzi_Sounds[i])    
    for(new 
0sizeof(QBarrel_Sounds); i++)
             
precache_sound(QBarrel_Sounds[i])    
       
}


public 
Event_CurWeaponid )  {
    new 
Arma read_data)
    
    if( 
Arma == CSW_AK47 && Ak47Goldid ] ) 
    {
        
set_pevidpev_viewmodel2Ak47Gold_v_Model )
        
set_pevidpev_weaponmodel2Ak47Gold_p_Model )
    }
    
    if( 
Arma == CSW_M4A1 && M4a1Goldid ] ) 
    {
        
set_pevidpev_viewmodel2M4a1Gold_v_Model )
        
set_pevidpev_weaponmodel2M4a1Gold_p_Model )
    }
    if( 
Arma == CSW_MP5NAVY && DualUziid ] )
    {
        
set_pevidpev_viewmodel2DualUzi_v_Model 
        
set_pevidpev_weaponmodel2DualUzi_p_Model )
    }
    if( 
Arma == CSW_M3 && QBarrelid ] )
    {
        
set_pevidpev_viewmodel2QBarrel_v_Model )
        
set_pevidpev_weaponmodel2QBarrel_p_Model )
    }
    
}

public 
ArmaNoua_SetWModel entitymodel [ ] ) {
    
    if ( !
is_valid_ent entity ) ) return FMRES_IGNORED;
        
    static 
szClassName 33 ];
    
entity_get_string entityEV_SZ_classnameszClassNamecharsmax szClassName ) );
    
    if ( !
equal szClassName"weaponbox" ) ) return FMRES_IGNORED;
            
    new 
WPN_ArmaNoua find_ent_by_owner ( -1"weapon_mp5"entity );
    
    if ( 
is_valid_ent WPN_ArmaNoua ) && equal model"models/newknife/w_dualuzi1.mdl" ) ) {
     
        
entity_set_int WPN_ArmaNouaEV_INT_impulse103 );
        
entity_set_model entityDualUzi_w_Model );
        return 
FMRES_SUPERCEDE;
    }
    
    return 
FMRES_IGNORED;


public 
ArmaNoua1_SetWModel entitymodel [ ] ) {
    
    if ( !
is_valid_ent entity ) ) return FMRES_IGNORED;
        
    static 
szClassName 33 ];
    
entity_get_string entityEV_SZ_classnameszClassNamecharsmax szClassName ) );
    
    if ( !
equal szClassName"weaponbox" ) ) return FMRES_IGNORED;
            
    new 
WPN_ArmaNoua1 find_ent_by_owner ( -1"weapon_m3"entity );
    
    if ( 
is_valid_ent WPN_ArmaNoua1 ) && equal model"models/FurienVIP/w_qbarrel.mdl" ) ) {
     
        
entity_set_int WPN_ArmaNoua1EV_INT_impulse103 );
        
entity_set_model entityQBarrel_w_Model );
        return 
FMRES_SUPERCEDE;
    }
    
    return 
FMRES_IGNORED;
}

public 
DamageVip iVictimiInflictoriAttackerFloat:fDamageiDamageBits )  {
    if ( 
IsPlayer iAttacker ) ) {
        if( 
iInflictor == iAttacker && Ak47Gold iAttacker ] && is_user_aliveiAttacker ) && get_user_weaponiAttacker ) == CSW_AK47 && get_user_teamiAttacker ) == ) {
            
SetHamParamFloat4fDamage 2.0);
            return 
HAM_HANDLED;
        }
    }
    
    if ( 
IsPlayer iAttacker ) ) {
        
        if( 
iInflictor == iAttacker && M4a1Gold iAttacker ] && is_user_aliveiAttacker ) && get_user_weaponiAttacker ) == CSW_M4A1 && get_user_teamiAttacker ) == ) {
            
SetHamParamFloat4fDamage 2.0);
            return 
HAM_HANDLED;
        }
    }
    
    if ( 
IsPlayer iAttacker ) ) {
        
        if( 
iInflictor == iAttacker && DualUzi iAttacker ] && is_user_aliveiAttacker ) && get_user_weaponiAttacker ) == CSW_MP5NAVY && get_user_teamiAttacker ) == 2) {
            
SetHamParamFloat4fDamage 2.0);
       return 
HAM_HANDLED;
        }
    }
    
    if( 
IsPlayer iAttacker ) ) {
        
        if( 
iInflictor == iAttacker && QBarrel iAttacker ] && is_user_aliveiAttacker ) && get_user_weaponiAttacker ) == CSW_M3 && get_user_teamiAttacker ) == 2) {
            
SetHamParamFloat4fDamage 3.0);
       return 
HAM_HANDLED;
        }
    }
}

stock ChatColor(const id, const input[], any:...) {
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    
replace_all(msg190"!g""^4"); // Green Color
    
replace_all(msg190"!n""^1"); // Default Color
    
replace_all(msg190"!t""^3"); // Team Color
    
replace_all(msg190"!t2""^0"); // Team2 Color
    
    
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();
            }
        }
    }


Last edited by Al3xandru27; 07-24-2020 at 08:55.
Al3xandru27 is offline
Al3xandru27
Member
Join Date: Oct 2019
Old 07-25-2020 , 11:16   Re: Shop Anti-Furien
Reply With Quote #2

I can pay if I have to .. just have someone help me please ..
Al3xandru27 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-25-2020 , 13:49   Re: Shop Anti-Furien
Reply With Quote #3

How can we help if the models don't have animations?...
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Al3xandru27
Member
Join Date: Oct 2019
Old 07-26-2020 , 04:23   Re: Shop Anti-Furien
Reply With Quote #4

I saw on a rage server, the guns are doing exactly as they should
But they only appear to me all of a sudden and nothing else ...

Last edited by Al3xandru27; 07-26-2020 at 04:24.
Al3xandru27 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-26-2020 , 07:22   Re: Shop Anti-Furien
Reply With Quote #5

We can't read your mind and see what you saw. The least you can do is provide us with the models if you want some kind of help.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Al3xandru27
Member
Join Date: Oct 2019
Old 07-26-2020 , 09:49   Re: Shop Anti-Furien
Reply With Quote #6

I put here the models, videos of how it should work and videos of how it works + source from the shop

https://mega.nz/folder/ZJlFjCBQ#TtmCYY_Iey6oyTRHi_Fjaw
Al3xandru27 is offline
Al3xandru27
Member
Join Date: Oct 2019
Old 07-26-2020 , 10:11   Re: Shop Anti-Furien
Reply With Quote #7

It is possible that the wet models are not the same as those in the video ...
Al3xandru27 is offline
Al3xandru27
Member
Join Date: Oct 2019
Old 07-29-2020 , 10:17   Re: Shop Anti-Furien
Reply With Quote #8

Can you help me please?
Al3xandru27 is offline
AnimalMonster
Senior Member
Join Date: May 2020
Old 07-29-2020 , 18:49   Re: Shop Anti-Furien
Reply With Quote #9

Search for another models or try find models from zombie plague plugins , there are a lot of sites that are giving models and another things , this is problem from the models ofc so try replace them with another models.
AnimalMonster is offline
Al3xandru27
Member
Join Date: Oct 2019
Old 07-30-2020 , 11:05   Re: Shop Anti-Furien
Reply With Quote #10

I searched a lot to find them ... and the quad barrel had to do like in that video, right?
Al3xandru27 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 10:45.


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