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

Any way to equip two skins, one for T and one for CT?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dilalmon
AlliedModders Donor
Join Date: Apr 2013
Old 05-29-2013 , 17:23   Any way to equip two skins, one for T and one for CT?
Reply With Quote #1

Is there any way to equip two skins, one for T and one for CT?
dilalmon is offline
vodka00
Veteran Member
Join Date: Jun 2012
Location: Los Angeles
Old 05-29-2013 , 17:36   Re: Any way to equip two skins, one for T and one for CT?
Reply With Quote #2

You mean for the skin to be usable by one team only or....?
__________________
cw main:

cw speedruns:
vodka00 is offline
dilalmon
AlliedModders Donor
Join Date: Apr 2013
Old 05-29-2013 , 17:55   Re: Any way to equip two skins, one for T and one for CT?
Reply With Quote #3

Yep!

My server has a strict policy on what type of color scheme goes on what team to make it very distinguishable.
So the store has separate skins for Ts and CTs.
The downside is that the users always have to change their skins whenever they change their teams.

Last edited by dilalmon; 05-29-2013 at 18:54.
dilalmon is offline
vodka00
Veteran Member
Join Date: Jun 2012
Location: Los Angeles
Old 05-29-2013 , 19:25   Re: Any way to equip two skins, one for T and one for CT?
Reply With Quote #4

In that case, yes you can do it by going into skins attributes field and setting "team": flag

like so,

PHP Code:
{
    
"model""models/player/kirby/admin/umbrella_leet.mdl",
    
"teams": [23]

__________________
cw main:

cw speedruns:
vodka00 is offline
applemes
Senior Member
Join Date: Mar 2013
Old 05-29-2013 , 19:35   Re: Any way to equip two skins, one for T and one for CT?
Reply With Quote #5

I think he might mean where, you can have two skins like
Mario [E]
Lugi [E]

and depending on which team you are on it chooses that skin, like say who go CT you are lugi but if you go T you are Mario, and you dont have to constantly switch back and forth.
applemes is offline
dilalmon
AlliedModders Donor
Join Date: Apr 2013
Old 05-29-2013 , 19:50   Re: Any way to equip two skins, one for T and one for CT?
Reply With Quote #6

Quote:
Originally Posted by applemes View Post
I think he might mean where, you can have two skins like
Mario [E]
Lugi [E]

and depending on which team you are on it chooses that skin, like say who go CT you are lugi but if you go T you are Mario, and you dont have to constantly switch back and forth.
This is what I exactly meant.
dilalmon is offline
applemes
Senior Member
Join Date: Mar 2013
Old 05-30-2013 , 21:18   Re: Any way to equip two skins, one for T and one for CT?
Reply With Quote #7

i dont think it is possible :/
applemes is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 05-30-2013 , 21:42   Re: Any way to equip two skins, one for T and one for CT?
Reply With Quote #8

It's more than possible, but the easiest method isn't the most elegant. Instead of having one skin module for both teams, you have a skin plugin per team, and only list the models available for that team within that module. Then each skin plugin checks team before applying skin and only runs if team == desired.

The attached zip may work, but I can't guarantee it as it hasn't been tested. It's a bad solution to the problem, but it should tide you over (should it work) until someone does it properly. All I did was copy/paste the 1.1 release of skins, rename the files / json, and do a copy/replace for "skin" to "skin_t" and "skin_ct". You can run the original skin plugin with these two, but not recommended...
Attached Files
File Type: zip store-skins-1.1-teams.zip (57.7 KB, 140 views)
__________________

Last edited by thetwistedpanda; 05-30-2013 at 21:50.
thetwistedpanda is offline
dilalmon
AlliedModders Donor
Join Date: Apr 2013
Old 05-31-2013 , 15:49   Re: Any way to equip two skins, one for T and one for CT?
Reply With Quote #9

I'm grateful you did this for me, and for now I think it's the only but working solution.
If I want to import all the existing skins, what process would I have to go through?
I'm assuming this uses the same database table?
dilalmon is offline
Arrow768
Veteran Member
Join Date: Nov 2011
Location: Austria
Old 05-31-2013 , 16:18   Re: Any way to equip two skins, one for T and one for CT?
Reply With Quote #10

Existing skins ? - Skins from the old store skins plugin or from another skins plugin ?
__________________
Arrow768 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 09:55.


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