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

[CS:GO] Player Skin (Flag + SQL Support)


Post New Thread Reply   
 
Thread Tools Display Modes
sHoC
Senior Member
Join Date: Nov 2015
Location: Italy
Old 08-09-2018 , 07:57   Re: [CS:GO] Player Skin (With flag support)
Reply With Quote #291

Quote:
Originally Posted by ambn View Post
Will do it in the next release
Code:
"userids"
{
	"STEAM_0:1:80179630"
	{
		"CT"
		{
			"Skin"	"models/player/custom_player/kaesar2018/thanos/thanos.mdl"
			"Arms"	"models/player/custom_player/kaesar2018/thanos/thanos_arms.mdl"
		}
		"T"
		{
			"Skin"	"models/player/custom_player/kaesar2018/thanos/thanos.mdl"
			"Arms"	"models/player/custom_player/kaesar2018/thanos/thanos_arms.mdl"
		}
	}
}
for me dosent work this...I join the server the skin is being downloaded, but the specific player dosent have the skin, he has normal skin..
__________________
sHoC is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 08-09-2018 , 07:58   Re: [CS:GO] Player Skin (With flag support)
Reply With Quote #292

Quote:
Originally Posted by sHoC View Post
Code:
"userids"
{
	"STEAM_0:1:80179630"
	{
		"CT"
		{
			"Skin"	"models/player/custom_player/kaesar2018/thanos/thanos.mdl"
			"Arms"	"models/player/custom_player/kaesar2018/thanos/thanos_arms.mdl"
		}
		"T"
		{
			"Skin"	"models/player/custom_player/kaesar2018/thanos/thanos.mdl"
			"Arms"	"models/player/custom_player/kaesar2018/thanos/thanos_arms.mdl"
		}
	}
}
for me dosent work this...I join the server the skin is being downloaded, but the specific player dosent have the skin, he has normal skin..
Try with steamid64
__________________
ambn is offline
blooro
New Member
Join Date: Aug 2018
Old 08-09-2018 , 10:50   Re: [CS:GO] Player Skin (With flag support)
Reply With Quote #293

nice
blooro is offline
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 08-26-2018 , 18:04   Re: [CS:GO] Player Skin (With flag support)
Reply With Quote #294

I recommend putting all config files inside its own folder so it doesn't just cluster the main config file.

Just changing this will do it,right?

Code:
	BuildPath(Path_SM, g_szFileSkinPath, sizeof(g_szFileSkinPath), "configs/player_default_skins/skin.ini");
	BuildPath(Path_SM, g_szFileAutoSkinPath, sizeof(g_szFileAutoSkinPath), "configs/player_default_skins/admin_skin.ini");
	BuildPath(Path_SM, g_szFileCategoryPath, sizeof(g_szFileCategoryPath), "configs/player_default_skins/categories.ini");
	BuildPath(Path_SM, g_szFileUserSkinPath, sizeof(g_szFileUserSkinPath), "configs/player_default_skins/user_skins.ini");
	BuildPath(Path_SM, g_szFileUserDataPath, sizeof(g_szFileUserDataPath), "configs/player_default_skins/userskindata.ini");
	BuildPath(Path_SM, g_szFileMapSkins, sizeof(g_szFileMapSkins), "configs/player_default_skins/mapskins.ini");


EDIT:

Tried doing it, after trying to compile it, I get this error:
https://i.gyazo.com/905d3069c23354c0...71c73b32a9.png

Last edited by HvG Community; 08-26-2018 at 19:27.
HvG Community is offline
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 08-26-2018 , 18:38   Re: [CS:GO] Player Skin (With flag support)
Reply With Quote #295

Also how can I force the skins to regular players so they replace the default ones?

Code:
//g_aAutoSkin = CreateConVar("sm_auto_skin_set", "1", "If true, plugin will use convars and file to set your skin automatically")
I see this would do the job but I guess its disabled for a reason.
Is it possible to fix this?

Last edited by HvG Community; 08-26-2018 at 19:16.
HvG Community is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 08-27-2018 , 01:09   Re: [CS:GO] Player Skin (With flag support)
Reply With Quote #296

Quote:
Originally Posted by HvG Community View Post
I recommend putting all config files inside its own folder so it doesn't just cluster the main config file.

Just changing this will do it,right?

Code:
	BuildPath(Path_SM, g_szFileSkinPath, sizeof(g_szFileSkinPath), "configs/player_default_skins/skin.ini");
	BuildPath(Path_SM, g_szFileAutoSkinPath, sizeof(g_szFileAutoSkinPath), "configs/player_default_skins/admin_skin.ini");
	BuildPath(Path_SM, g_szFileCategoryPath, sizeof(g_szFileCategoryPath), "configs/player_default_skins/categories.ini");
	BuildPath(Path_SM, g_szFileUserSkinPath, sizeof(g_szFileUserSkinPath), "configs/player_default_skins/user_skins.ini");
	BuildPath(Path_SM, g_szFileUserDataPath, sizeof(g_szFileUserDataPath), "configs/player_default_skins/userskindata.ini");
	BuildPath(Path_SM, g_szFileMapSkins, sizeof(g_szFileMapSkins), "configs/player_default_skins/mapskins.ini");


EDIT:

Tried doing it, after trying to compile it, I get this error:
https://i.gyazo.com/905d3069c23354c0...71c73b32a9.png
remove "return Plugin_Continue;" and you'll be fine

Quote:
Originally Posted by HvG Community View Post
Also how can I force the skins to regular players so they replace the default ones?

Code:
//g_aAutoSkin = CreateConVar("sm_auto_skin_set", "1", "If true, plugin will use convars and file to set your skin automatically")
I see this would do the job but I guess its disabled for a reason.
Is it possible to fix this?
The thing is the convar is no longer required as you can force a skin on a specific client, or a specific flag by the config files, that's why i removed that convar
for regular players , in admin_skins file you need to open a section under the name "def" instead of flags then add skins + arms path to apply it to normal players
__________________

Last edited by ambn; 08-27-2018 at 01:11.
ambn is offline
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 08-27-2018 , 10:27   Re: [CS:GO] Player Skin (With flag support)
Reply With Quote #297

Thank you, I have managed to recompile after just removing return statement.

About forcing skins to regular players.. what if I have more than 1 for each team?
Do I just write multiple "def" sections and it will be then given randomly or do I seperate them with commas?
HvG Community is offline
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 08-28-2018 , 15:05   Re: [CS:GO] Player Skin (With flag support)
Reply With Quote #298

In case its not possible, I am willing to pay for the multiple skins per flag to be added.
Well, for "def" flag.

Code:
"SkinT"		"models/player/custom_player/skin1.mdl, models/player/custom_player/skin2.mdl,  models/player/custom_player/skin3.mdl, "

Same for Arms
So then if random number is generated its going to match up skin and arms.
HvG Community is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 08-28-2018 , 15:17   Re: [CS:GO] Player Skin (With flag support)
Reply With Quote #299

Quote:
Originally Posted by HvG Community View Post
In case its not possible, I am willing to pay for the multiple skins per flag to be added.
Well, for "def" flag.

Code:
"SkinT"		"models/player/custom_player/skin1.mdl, models/player/custom_player/skin2.mdl,  models/player/custom_player/skin3.mdl, "

Same for Arms
So then if random number is generated its going to match up skin and arms.
Well, nothing is impossible I'll see what i can do in a free time anyway i have to optimize the plugin as well like i need to add sql database instead of that key value database thing.
__________________

Last edited by ambn; 08-28-2018 at 15:17.
ambn is offline
dalata
Junior Member
Join Date: Oct 2018
Location: São Paulo, Brazil
Old 10-19-2018 , 06:19   Re: [CS:GO] Player Skin (With flag support)
Reply With Quote #300

Hi ambn, first of all very nice plugin, nice and easy to understand and use but I'm having problems using it with this mod/plugin https://forums.alliedmods.net/showthread.php?t=290657

Maybe the skins are overlapping/conflicting? Idk but the skins I configured with ur plugin for admins or via steam id don't show. I want admins to have the same skin even when they change classes (in zp).
dalata is offline
Send a message via AIM to dalata Send a message via Yahoo to dalata
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:13.


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