Raised This Month: $344 Target: $400
 86%   Almost there!

[CS:S] Requesting plugin to set playermodels per map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KrazyCake
New Member
Join Date: Jul 2022
Old 07-09-2022 , 13:38   [CS:S] Requesting plugin to set playermodels per map
Reply With Quote #1

Hello all.

I would like to request a plugin that will set the playermodels for all clients (including bots) on the server depending on the current map. Previously, I have used sm_skinchooser (https://forums.alliedmods.net/showthread.php?p=780243) which comes close, but not fully, to what I would like. I have tried writing my own but Sourcepawn is a bit beyond me Ideally, I would like the plugin to function as follows:

Script would look for a config file with the map name that contains the models to be used for that map. Terrorists and Counter-Terrorists have their own lists for that map. Each client is randomly assigned a model from that list for their corresponding team. If no map config is present, use default CSS players choice. As an example:

de_dust2_skins.ini
Code:
TerroristSkins
[
	models\player\t_badguy1.mdl
	models\player\t_badguy2.mdl
	models\player\t_badguy3.mdl
]
CounterTerroristSkins
[
	models\player\ct_goodguy1.mdl
	models\player\ct_goodguy2.mdl
	models\player\ct_goodguy3.mdl
]
Thank you for your time! If there are any questions, feel free to ask and I will do my best to answer them
KrazyCake is offline
DiogoOnAir
Senior Member
Join Date: Jul 2018
Location: Portugal
Old 07-11-2022 , 09:31   Re: [CS:S] Requesting plugin to set playermodels per map
Reply With Quote #2

Add me on discord or steam
__________________
I accept Private(Paid) plugins requests
If you like my job donate me Here
Feel free to add me on Steam
Feel free to add me on Discord DiogoOnAir | Config & Developer#7961
Check my website
If you want to buy any server, you can buy it from here!
Datacenters around the world!
DiogoOnAir is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 07-11-2022 , 10:10   Re: [CS:S] Requesting plugin to set playermodels per map
Reply With Quote #3

I edited this plugin for add map config support.

So for example if on de_dust2 you create a file on configs/models_ct_de_dust2.ini the plugin will get it instead of the default configs/models_ct.ini

Try it and tell me if its okay for you.
Attached Files
File Type: sp Get Plugin or Get Source (sm_skinapp.sp - 11 views - 9.0 KB)
__________________
Veteran SourceMod Coder -> Activity channel
Taking paid and free jobs.
Contact: Steam, Telegram or discord ( Franc1sco#7876 ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 07-11-2022 at 10:10.
Franc1sco is offline
Send a message via MSN to Franc1sco
KrazyCake
New Member
Join Date: Jul 2022
Old 07-11-2022 , 14:15   Re: [CS:S] Requesting plugin to set playermodels per map
Reply With Quote #4

Perfect! This is exactly the kind of thing I was looking for Thank you ever so much!! <3
KrazyCake 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 13:35.


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