Raised This Month: $ Target: $400
 0% 

Team Knife Model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MiniBrackeur
Senior Member
Join Date: Oct 2010
Old 07-02-2012 , 16:23   Re: Team Knife Model
Reply With Quote #10

Ahah no... x)
use this: http://forums.alliedmods.net/showthread.php?t=80847
And for exemple, may be this code:
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <playermodel>

public plugin_init()
{
    
register_plugin("Give skin","1.0","Daminou")
    
    
register_clcmd("/skin""cmd_addskin")
    
register_clcmd("/resetskin""cmd_removeskin")
}

public 
plugin_precache()
{
    
precache_model("models/player/skin_ct/skin_ct.mdl")
    
precache_model("models/player/skin_te/skin_te.mdl")
}

public 
cmd_addskin(id)
{
    if(!
is_user_alive(id))
    {
        
client_print(idprint_chat"You are dead.")
        return 
PLUGIN_HANDLED
    
}
    switch(
cs_get_user_team(id)
    {
        case 
CS_TEAM_T:
        {
            
fm_set_user_model(id"skin_te"false)
        }
        case 
CS_TEAM_CT:
        {
            
fm_set_user_model(id"skin_ct"false)
        }
    }
    
client_print(idprint_chat"You have a new skin.")
}

public 
cmd_removeskin(id)
{
    if(!
is_user_alive(id))
    {
        
client_print(idprint_chat"You are dead.")
        return 
PLUGIN_HANDLED
    
}
    
fm_reset_user_model(id)
    
client_print(idprint_chat"You have reset your skin.")
    return 
PLUGIN_HANDLED

__________________
MiniBrackeur => Daminou
MiniBrackeur is offline
 



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 15:12.


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