Raised This Month: $32 Target: $400
 8% 

change the bomb carrier skin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 10-28-2018 , 14:53   change the bomb carrier skin
Reply With Quote #1

i want the bomb carrier to spawn with this skin https://gamebanana.com/skins/125624

i had a plugin like this before but can't find anymore!

if you guys can help out

thanks
tarsisd2 is offline
marcelowzd
Senior Member
Join Date: Feb 2011
Location: São Paulo, Brazil
Old 10-29-2018 , 02:05   Re: change the bomb carrier skin
Reply With Quote #2

I didn't try it, but should be enough

PHP Code:
#include < amxmodx >
#include < hamsandwich >
#include < cstrike >

new const g_szPlugin[ ] = "Bomb Carrier Skin";
new const 
g_szVersion[ ] = "0.0.1";
new const 
g_szAuthor[ ] = "wizard";

new const 
g_szModel[ ] = "ModelName"// Put the model name here

public plugin_init() 
{
    
register_pluging_szPluging_szVersiong_szAuthor );
    
    
RegisterHamHam_Spawn"player""OnPlayerSpawn");
}

public 
plugin_precache( )
{
    new 
szFile64 ];
    
    
formatexszFilecharsmaxszFile ), "models/player/%s/%s.mdl"g_szModelg_szModel );
    
    
precache_modelszFile );
}

public 
OnPlayerSpawniClient )
{
    if( !
is_user_aliveiClient ) )
        return 
HAM_IGNORED;
        
    if( !
user_has_weaponiClientCSW_C4 ) )
        return 
HAM_IGNORED;
        
    
cs_set_user_modeliClientg_szModel );
        
    return 
HAM_IGNORED;

__________________
marcelowzd is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 11-03-2018 , 06:08   Re: change the bomb carrier skin
Reply With Quote #3

Maybe u will need to reset player model. And what if player drop c4 to another player?
Krtola is offline
Send a message via Skype™ to Krtola
marcelowzd
Senior Member
Join Date: Feb 2011
Location: São Paulo, Brazil
Old 11-03-2018 , 16:33   Re: change the bomb carrier skin
Reply With Quote #4

Quote:
Originally Posted by Krtola View Post
Maybe u will need to reset player model. And what if player drop c4 to another player?
About the reset part, i was not sure so i left It like that.

I did this to work only in spawn because he Said like this,
but If he wants different maybe he has something to say
__________________
marcelowzd is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 11-04-2018 , 15:02   Re: change the bomb carrier skin
Reply With Quote #5

Model reset should be triggered on round end for example. Or when player die. If we dont do reset,that player will always wear new skin.

Last edited by Krtola; 11-04-2018 at 15:18.
Krtola is offline
Send a message via Skype™ to Krtola
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 21:56.


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