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

Custom Player Skins (Core)


Post New Thread Reply   
 
Thread Tools Display Modes
robotortoise
Senior Member
Join Date: Nov 2013
Old 07-28-2014 , 23:33   Re: Custom Player Skins (Core)
Reply With Quote #21

Quote:
Originally Posted by Mitchell View Post
The skin would be invisible, since you cant attach any entity to the player, to prevent players from attaching hats they dont own etc.
Huh.

So it would make players invisible? That could be useful, actually.
__________________
-Robotortoise [Palutena's Bro]

If you ever need help with Wii/Gamecube/DS sounds/music/ect., I'm your man!

Contact me via Steam

I don't bite.


How to loop and compress .wav files

Me and my friends' server
robotortoise is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 07-29-2014 , 09:07   Re: Custom Player Skins (Core)
Reply With Quote #22

Quote:
Originally Posted by robotortoise View Post
Huh.

So it would make players invisible? That could be useful, actually.
You are mis-understanding. if you attach any entity (some not this case) then said entity will not render. I wont support this to work with tf2, as there would be no reason to use it in tf2.

on a side note if you wanted to make a player invisible, you could just use SetEntityRenderMode()..
Mitchell is offline
robotortoise
Senior Member
Join Date: Nov 2013
Old 07-29-2014 , 11:55   Re: Custom Player Skins (Core)
Reply With Quote #23

Ohh. OK.
__________________
-Robotortoise [Palutena's Bro]

If you ever need help with Wii/Gamecube/DS sounds/music/ect., I'm your man!

Contact me via Steam

I don't bite.


How to loop and compress .wav files

Me and my friends' server
robotortoise is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 02-28-2015 , 06:38   Re: Custom Player Skins (Core)
Reply With Quote #24

sorry i'm not quite sure what does this plugin do....
can't we set player model/skin with SetEntityModel?
8guawong is offline
Manius1988
Junior Member
Join Date: Jun 2014
Old 02-28-2015 , 10:10   Re: Custom Player Skins (Core)
Reply With Quote #25

L 02/28/2015 - 16:07:16: [SM] Native "GetNativeCell" reported: Invalid parameter number: 3
L 02/28/2015 - 16:07:16: [SM] Displaying call stack trace for plugin "CustomPlayerSkins.smx":
L 02/28/2015 - 16:07:16: [SM] [0] Line 108, D:\ScriptsGit\Custom-Player-Skins\scripting\CustomPlayerSkins.sp::Native_ SetSkin()
L 02/28/2015 - 16:07:16: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 02/28/2015 - 16:07:16: [SM] Native "CPS_SetSkin" reported: Error encountered while processing a dynamic native
L 02/28/2015 - 16:07:16: [SM] Displaying call stack trace for plugin "RandomPlayerModels.smx":
L 02/28/2015 - 16:07:16: [SM] [0] Line 94, C:\Users\Mitch\Documents\Custom-Player-Skins\scripting\RandomPlayerModels.sp::Create Skin()
L 02/28/2015 - 16:07:16: [SM] [1] Line 80, C:\Users\Mitch\Documents\Custom-Player-Skins\scripting\RandomPlayerModels.sp::Event_ Spawn()
L 02/28/2015 - 16:07:16: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 02/28/2015 - 16:07:16: [SM] Native "GetNativeCell" reported: Invalid parameter number: 3
L 02/28/2015 - 16:07:16: [SM] Displaying call stack trace for plugin "CustomPlayerSkins.smx":
L 02/28/2015 - 16:07:16: [SM] [0] Line 108, D:\ScriptsGit\Custom-Player-Skins\scripting\CustomPlayerSkins.sp::Native_ SetSkin()
L 02/28/2015 - 16:07:16: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 02/28/2015 - 16:07:16: [SM] Native "CPS_SetSkin" reported: Error encountered while processing a dynamic native
L 02/28/2015 - 16:07:16: [SM] Displaying call stack trace for plugin "RandomPlayerModels.smx":
L 02/28/2015 - 16:07:16: [SM] [0] Line 94, C:\Users\Mitch\Documents\Custom-Player-Skins\scripting\RandomPlayerModels.sp::Create Skin()
L 02/28/2015 - 16:07:16: [SM] [1] Line 80, C:\Users\Mitch\Documents\Custom-Player-Skins\scripting\RandomPlayerModels.sp::Event_ Spawn()
L 02/28/2015 - 16:07:17: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 02/28/2015 - 16:07:17: [SM] Native "GetNativeCell" reported: Invalid parameter number: 3
L 02/28/2015 - 16:07:17: [SM] Displaying call stack trace for plugin "CustomPlayerSkins.smx":
L 02/28/2015 - 16:07:17: [SM] [0] Line 108, D:\ScriptsGit\Custom-Player-Skins\scripting\CustomPlayerSkins.sp::Native_ SetSkin()
L 02/28/2015 - 16:07:17: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 02/28/2015 - 16:07:17: [SM] Native "CPS_SetSkin" reported: Error encountered while processing a dynamic native
L 02/28/2015 - 16:07:17: [SM] Displaying call stack trace for plugin "RandomPlayerModels.smx":
L 02/28/2015 - 16:07:17: [SM] [0] Line 94, C:\Users\Mitch\Documents\Custom-Player-Skins\scripting\RandomPlayerModels.sp::Create Skin()
L 02/28/2015 - 16:07:17: [SM] [1] Line 80, C:\Users\Mitch\Documents\Custom-Player-Skins\scripting\RandomPlayerModels.sp::Event_ Spawn()


HELP
Manius1988 is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 02-28-2015 , 15:26   Re: Custom Player Skins (Core)
Reply With Quote #26

Quote:
Originally Posted by 8guawong View Post
sorry i'm not quite sure what does this plugin do....
can't we set player model/skin with SetEntityModel?
Few things!
One of which is showcased here: https://forums.alliedmods.net/showthread.php?p=1915130
Which attaches a skin that can be turned into a glow certain players can see.
Also one thing with csgo and FoF there are models that have the same bone structure, but none of the animations (hostages/hl2 characters.) So you can use this to attach those kinds of models without having to edit the model and force the client to download them again.
Mitchell is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 02-28-2015 , 15:28   Re: Custom Player Skins (Core)
Reply With Quote #27

Quote:
Originally Posted by Manius1988 View Post
Spoiler


HELP
Are you trying to use the RandomPlayerModel's plugin, if so this really isnt the thread for it, this is just the core plugin that the plugin uses.
That thread is here: https://forums.alliedmods.net/showthread.php?p=2140485

Last edited by Mitchell; 02-28-2015 at 15:29.
Mitchell is offline
Screeaam..
Senior Member
Join Date: Jun 2010
Location: Poland
Old 03-08-2015 , 22:12   Re: Custom Player Skins (Core)
Reply With Quote #28

Can You tell me how to precache model and which to use for this plugin? I have about 30 files in materials and 7 in models from my model and dunno what to precache and what to use.
Screeaam.. is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 03-08-2015 , 22:16   Re: Custom Player Skins (Core)
Reply With Quote #29

Quote:
Originally Posted by Screeaam.. View Post
Can You tell me how to precache model and which to use for this plugin? I have about 30 files in materials and 7 in models from my model and dunno what to precache and what to use.
I'd recommend just using https://forums.alliedmods.net/showthread.php?p=602270

Theres a sort-of-example here but I do not add files to the download cause the client already has them: https://github.com/MitchDizzle/Custo...layerModels.sp
Mitchell is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 03-28-2015 , 22:27   Re: Custom Player Skins (Core)
Reply With Quote #30

Hi i can't get the following to work

PHP Code:
#include <sdktools>
#include <CustomPlayerSkins>

public OnPluginStart()
{
    
HookEvent("player_spawn"PlayerSpawn);
}

public 
Action:PlayerSpawn(Handle:Event, const String:name[], bool:dontBroadcast)
{
    new 
client GetClientOfUserId(GetEventInt(Event"userid"));
    if(
IsPlayerAlive(client)) {
        
decl String:model[PLATFORM_MAX_PATH];
        
GetClientModel(clientmodelsizeof(model));
        
PrintToChat(clientmodel);
        
SetEntityRenderMode(clientRENDER_NONE);
        
CPS_SetSkin(clientmodelCPS_NOFLAGS);
    }

player is invisible with above code
8guawong 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 00:34.


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