Raised This Month: $ Target: $400
 0% 

Set player skin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
danielo_o
Member
Join Date: Mar 2011
Old 04-14-2013 , 09:26   Set player skin
Reply With Quote #1

I tried to set player skin depending on his name

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

public plugin_init() 

    
register_plugin("x""x""x")
    
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn_Post"1


public 
plugin_precache() {
    
precache_model("models/player/leetsakalu/leetsakalu.mdl")
        
precache_model("models/player/leetsakalu/leetsakaluT.mdl")
        return 
PLUGIN_CONTINUE
}
public 
fw_PlayerSpawn_Post(id
{
            new 
CsTeams:userTeam cs_get_user_team(id)
        new 
name[32
        
get_user_name(idname31)
            if(
userTeam == CS_TEAM_CT
            {
         if( 
equal(name"SaKaLu") || equal(name"danniel")) 
            {        
             
cs_set_player_model(id"leetsakalu");  
            }
            }
                return 
PLUGIN_CONTINUE

It doesn't set my skin. I'm using Zp 4.3 fix 5a.
danielo_o 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 10:47.


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