Raised This Month: $32 Target: $400
 8% 

[CSGO] Change playermodel of player with a command in-game


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GurusGeo
Member
Join Date: Jun 2019
Old 09-07-2019 , 22:44   [CSGO] Change playermodel of player with a command in-game
Reply With Quote #1

I already know about the skin-changer plugin but that does not suffice for my needs.

The plugin I need merely changes the players skin/playermodel on the spot via command.
An example would be a player, of whom has the skin of ctm_idf_variantb and then decides/has the ability to change to a tm_separatist model (with the plugin) w/o disconnecting, restarting server, none of that.

With this requested plugin, the user simply has the ability to change playermodels at any moments notice (and easily revert back to their original playermodel if chosen).

Thanks to all.

Last edited by GurusGeo; 09-07-2019 at 22:45.
GurusGeo is offline
SweetDickWilly
Junior Member
Join Date: Nov 2018
Location: Las Vegas, Nevada
Old 11-19-2020 , 01:10   Re: [CSGO] Change playermodel of player with a command in-game
Reply With Quote #2

I know this post was made over a year ago but just in case you were still interested use SetEntityModel().


PHP Code:
public void OnPluginStart()
{
    
RegConsoleCmd("sm_changemodel"ChangeModel"change a client's model");
}

public 
Action ChangeModel (int clientint args)
{
   
SetEntityModel(client"models/player/tm_separatist.mdl"); // make sure the model's file path is valid

   
return Plugin_Handled;

SweetDickWilly is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-21-2020 , 14:09   Re: [CSGO] Change playermodel of player with a command in-game
Reply With Quote #3

Precache model before change, or server crash
Bacardi is offline
Reply


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 01:47.


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