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

[REQ] Skin Ak47 CT/TER


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 02-18-2020 , 04:44   [REQ] Skin Ak47 CT/TER
Reply With Quote #1

I want a plugin to make skin Ak-47 CT and TER different + fire sound
Something like this code:
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <cstrike>
#include <fun>
#include <engine>
#include <xs>

new const v_Ak47CT[] = "kg/models/v_ak47_ct.mdl"
new const v_Ak47TE[] = "kg/models/v_ak47_ter.mdl"

new const p_Ak47CT[] = "kg/models/p_ak47_ct.mdl"
new const p_Ak47TE[] = "kg/models/p_ak47_ter.mdl"

new const w_Ak47TE[] = "kg/models/w_ak47.mdl"   <---- Add

new const FIRE_SOUND[] = {"kg/weapons/ak47-1.wav"};  <---- Add

public plugin_init()
{
    
register_plugin("Knife models""1.0""Daminou")
    
    
register_event("CurWeapon""model_ak47""b")
}

public 
plugin_precache() 

    
precache_model(v_Ak47CT
    
precache_model(v_Ak47TE)
    
precache_model(p_Ak47CT
    
precache_model(p_Ak47TE)
}

public 
model_ak47(id)
{
    if(
is_user_alive(id) && is_user_connected(id))
    {
        new 
clipammo
        
new ak47 get_user_weapon(idclipammo)
    if(
ak47 == CSW_AK47)
        {
            switch(
cs_get_user_team(id))
            {
                case 
CS_TEAM_CT:
                {
                    
set_pev(idpev_viewmodel2v_Ak47CT)
          
set_pev(idpev_weaponmodel2p_Ak47TE)
                }
                case 
CS_TEAM_T:
                {
                    
set_pev(idpev_viewmodel2v_Ak47TE)
          
set_pev(idpev_weaponmodel2p_Ak47TE)
                }
            }
        }
    }

alferd is offline
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 02-19-2020 , 02:41   Re: [REQ] Skin Ak47 CT/TER
Reply With Quote #2

No one understood my explanation
Add these two to the plugin
If anyone wants to help
PHP Code:
new const w_Ak47TE[] = "kg/models/w_ak47.mdl"   <---- w_model Add

new const FIRE_SOUND[] = {"kg/sound/weapons/ak47-1.wav"};  <---- change fire sound 

Last edited by alferd; 02-19-2020 at 02:41.
alferd is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-19-2020 , 17:20   Re: [REQ] Skin Ak47 CT/TER
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?t=43979
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 02-20-2020 , 01:27   Re: [REQ] Skin Ak47 CT/TER
Reply With Quote #4

Quote:
Originally Posted by OciXCrom View Post
Does not work

Quote:
Originally Posted by alferd View Post
No one understood my explanation
Add these two to the plugin
If anyone wants to help
PHP Code:
new const w_Ak47TE[] = "kg/models/w_ak47.mdl"   <---- w_model Add

new const FIRE_SOUND[] = {"kg/sound/weapons/ak47-1.wav"};  <---- change fire sound 
It would be great if you could add these
alferd is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-20-2020 , 08:35   Re: [REQ] Skin Ak47 CT/TER
Reply With Quote #5

That's not true. I'm sure you didn't even try. The plugin works perfectly.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 02-20-2020 , 10:43   Re: [REQ] Skin Ak47 CT/TER
Reply With Quote #6

Quote:
Originally Posted by OciXCrom View Post
That's not true. I'm sure you didn't even try. The plugin works perfectly.
Worked offline but not online
alferd is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-20-2020 , 15:35   Re: [REQ] Skin Ak47 CT/TER
Reply With Quote #7

That doesn't make sense. Use unique model names and make sure they're uploaded on your downloadurl.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 02-21-2020 , 00:17   Re: [REQ] Skin Ak47 CT/TER
Reply With Quote #8

I did, but the models have been downloaded
alferd is offline
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 02-21-2020 , 02:15   Re: [REQ] Skin Ak47 CT/TER
Reply With Quote #9

Quote:
Originally Posted by alferd View Post
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <cstrike>
#include <fun>
#include <engine>
#include <xs>

new const v_Ak47CT[] = "kg/models/v_ak47_ct.mdl"
new const v_Ak47TE[] = "kg/models/v_ak47_ter.mdl"

new const p_Ak47CT[] = "kg/models/p_ak47_ct.mdl"
new const p_Ak47TE[] = "kg/models/p_ak47_ter.mdl"

new const w_Ak47TE[] = "kg/models/w_ak47.mdl"   <---- Add

new const FIRE_SOUND[] = {"kg/weapons/ak47-1.wav"};  <---- Add

public plugin_init()
{
    
register_plugin("Knife models""1.0""Daminou")
    
    
register_event("CurWeapon""model_ak47""b")
}

public 
plugin_precache() 

    
precache_model(v_Ak47CT
    
precache_model(v_Ak47TE)
    
precache_model(p_Ak47CT
    
precache_model(p_Ak47TE)
}

public 
model_ak47(id)
{
    if(
is_user_alive(id) && is_user_connected(id))
    {
        new 
clipammo
        
new ak47 get_user_weapon(idclipammo)
    if(
ak47 == CSW_AK47)
        {
            switch(
cs_get_user_team(id))
            {
                case 
CS_TEAM_CT:
                {
                    
set_pev(idpev_viewmodel2v_Ak47CT)
          
set_pev(idpev_weaponmodel2p_Ak47TE)
                }
                case 
CS_TEAM_T:
                {
                    
set_pev(idpev_viewmodel2v_Ak47TE)
          
set_pev(idpev_weaponmodel2p_Ak47TE)
                }
            }
        }
    }

How to make this plugin for Admin Flag "ADMIN_LEVEL_A"
Can anyone do that?
alferd 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 13:01.


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