Raised This Month: $ Target: $400
 0% 

skin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
InteX01
Senior Member
Join Date: Jan 2017
Old 07-15-2017 , 08:04   skin
Reply With Quote #1

PHP Code:
register_clcmd("say /skin" "skin"
PHP Code:
new g_ZombieClaws

new const _FistModels[][] = { "models/p_bknuckles.mdl""models/v_bknuckles_jbnew.mdl""models/zombiekandze.mdl" 
PHP Code:
public client_putinserver(id)
{    
    
clear_bit(g_ZombieClawsid)

PHP Code:
public current_weapon(id)
{
    if(!
is_user_alive(id))
        return 
PLUGIN_CONTINUE
    
    
if(get_bit(g_ZombieClawsid))
    {
        
set_pev(idpev_viewmodel2_FistModels[2])
        
set_pev(idpev_weaponmodel2_FistModels[0])
    }
    else
    {
        
set_pev(idpev_viewmodel2_FistModels[1])
        
set_pev(idpev_weaponmodel2_FistModels[0])
    }
    return 
PLUGIN_CONTINUE

PHP Code:
public skin(id)
{
            
set_bit(g_ZombieClawsid)


Okay so.... Zombie skin should work only that round... I want it to change back to _FistModels[1] after round ends.
InteX01 is offline
InteX01
Senior Member
Join Date: Jan 2017
Old 07-15-2017 , 09:38   Re: skin
Reply With Quote #2

oh i forgot
PHP Code:
#define get_bit(%1,%2)         ( %1 &   1 << ( %2 & 31 ) )
#define set_bit(%1,%2)         %1 |=  ( 1 << ( %2 & 31 ) )
#define clear_bit(%1,%2)    %1 &= ~( 1 << ( %2 & 31 ) ) 
InteX01 is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 07-15-2017 , 17:01   Re: skin
Reply With Quote #3

Where's your RegisterHam(Ham_Spawn, "player", "HamBurger_Spawn", 1);

That does:

public HamBurger_Spawn(id)
{
// Say goodbye to your privilege!!!
}
eyal282 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 09:53.


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