Raised This Month: $51 Target: $400
 12% 

changing the model of the player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
andre neves
Junior Member
Join Date: Mar 2011
Old 10-13-2011 , 08:56   changing the model of the player
Reply With Quote #1

how to change the model of the player without using cs_set_user_model?

I tried to entity_set_model, engFunc, set_pev, none of them worked more
andre neves is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-13-2011 , 09:19   Re: changing the model of the player
Reply With Quote #2

first you should precache your models
PHP Code:
public plugin_precache()
{
        
precache_model("MODELNAME.mdl")
}

public 
client_putinserver
{
        
entity_set_model()

__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-13-2011 , 09:19   Re: changing the model of the player
Reply With Quote #3

http://forums.alliedmods.net/showthread.php?p=716927
__________________
Arkshine is offline
andre neves
Junior Member
Join Date: Mar 2011
Old 11-13-2011 , 06:49   Re: changing the model of the player
Reply With Quote #4

cs_set_user_model used, but it seems not to work with linux, does anyone know the solution?
andre neves is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 11-13-2011 , 07:15   Re: changing the model of the player
Reply With Quote #5

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

#define PLUGIN "Model"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"

public plugin_init() {
     
register_plugin(PLUGINAUTHORVERSION)
}

public 
plugin_precache() {
     
precache_model("models/map/model.mdl")
}

client_putinserver(id) {
     
cs_set_user_model(id"model")

__________________

Last edited by Napoleon_be; 11-13-2011 at 07:15.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-13-2011 , 07:37   Re: changing the model of the player
Reply With Quote #6

Wrong... . Path is wrong and don't advice the use of such native when you should well aware it's not appropriate.

Quote:
cs_set_user_model used, but it seems not to work with linux, does anyone know the solution?
Use either http://forums.alliedmods.net/showthread.php?p=958925 or the API http://forums.alliedmods.net/showthread.php?p=716927, depending your need.
__________________

Last edited by Arkshine; 11-13-2011 at 09:50.
Arkshine is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 11-13-2011 , 10:41   Re: changing the model of the player
Reply With Quote #7

Quote:
Originally Posted by Arkshine View Post
Wrong... . Path is wrong and don't advice the use of such native when you should well aware it's not appropriate.



Use either http://forums.alliedmods.net/showthread.php?p=958925 or the API http://forums.alliedmods.net/showthread.php?p=716927, depending your need.
I use the method i told him to use and it works perfectly for me.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-13-2011 , 12:13   Re: changing the model of the player
Reply With Quote #8

And it's wrong. Such native is known to generate kick and others problems because the way it has been coded. (Already discussed billion of times..) That's why it exists alternative to set player model like the links above.

Still your path is wrong. You don't seem to care to fix.
For someone who is supposed to know what he's doing, what you advise #2 and #5 are totally wrong.
__________________

Last edited by Arkshine; 11-13-2011 at 12:19.
Arkshine 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 08:26.


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