Raised This Month: $ Target: $400
 0% 

Solved Model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 07-21-2019 , 06:54   Model
Reply With Quote #1

Why do not I see the MODEL that I also set up on CT?
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

#define PLUGIN "Player Models"
#define VERSION "1.0b"
#define AUTHOR "CheezPuff"

new const g_szModelsCT[ ] = "models/player/CTSkin/CTSkin.mdl"// Counte-Terrorists Model
new const g_szModelsT[ ] = "models/player/TSkin/TSkin.mdl"// Terrorists Model

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_Spawn"player""fw_spawn"1);
}

public 
plugin_precache()
{
    
precache_modelg_szModelsCT );
    
precache_modelg_szModelsT );


public 
fw_spawnIndex )
{
    if( !
is_user_aliveIndex ) || is_user_botIndex ) )
        return;
    
    if( 
cs_get_user_teamIndex ) == CS_TEAM_CT )
    {
        
cs_set_user_modelIndex"g_szModelsCT" );
    }
    
    if( 
cs_get_user_teamIndex ) == CS_TEAM_T )
    {
        
cs_set_user_modelIndex"g_szModelsT" );
    }
    else 
cs_reset_user_modelIndex );


Last edited by Fuck For Fun; 07-21-2019 at 12:40.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
 



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 17:31.


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