Raised This Month: $ Target: $400
 0% 

Model isn't changing


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
owned
Member
Join Date: Jul 2007
Old 06-23-2009 , 21:55   Model isn't changing
Reply With Quote #1

I'm trying to make a plugin where only the CTs model gets changed to models/player/smith/smith.mdl

here is my code

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

#define PLUGIN "MS CT Mdoels"
#define VERSION "1.0"
#define AUTHOR "owned"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("ResetHUD""set_players_models""a")
}

public 
plugin_precache(){
    
precache_model("models/player/smith/smith.mdl");
        
    return 
PLUGIN_CONTINUE;
}


public 
set_players_models(){
    
    new 
i;
    new 
players[32], ingame;
    
get_players(players,ingame);
    
    for(
i=1;i<=ingame;i++){
        if(
cs_get_user_team(i) == CS_TEAM_CT){
            
cs_set_user_model(i,"smith");
        }
    }
    
    return 
PLUGIN_CONTINUE;

it doesn't work for me, i've only tried it locally alone.
__________________
MARREC/OWNED = me.
owned is offline
 


Thread Tools
Display Modes

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:33.


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