Raised This Month: $ Target: $400
 0% 

Player models


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
}v{ajinX
Junior Member
Join Date: Jun 2007
Old 08-03-2007 , 15:45   Player models
Reply With Quote #1

How to change player models without hooking server frame ?
}v{ajinX is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 08-03-2007 , 16:23   Re: Player models
Reply With Quote #2

I always hook when they spawn. Of course there might be a better way.

PHP Code:
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_event("ResetHUD""hook_ResetHUD""be");
}

public 
hook_ResetHUD(id)
    
set_task(0.2"task_afterSpawn"id);

public 
task_afterSpawn(id)
{
    if(!
is_user_alive(id))
        return 
PLUGIN_HANDLED;
    
    new 
team pev(idpev_team);
    switch(
team)
    {
        case 
1// Set team 1 model
        
case 2// Set team 2 model
        
case 3// Set team 3 model
        
case 4// Set team 4 model
    
}
    
    return 
PLUGIN_CONTINUE;

hlstriker is offline
}v{ajinX
Junior Member
Join Date: Jun 2007
Old 08-03-2007 , 16:59   Re: Player models
Reply With Quote #3

thx for post but i dont want to change it in this way
}v{ajinX is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 08-03-2007 , 17:18   Re: Player models
Reply With Quote #4

You might want to explain further into when you want the players model to be changed then. It sounds to me like you are wanting the model to be changed when something happens, and not when they are spawned.
hlstriker 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 05:09.


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