PDA

View Full Version : possible to do 2 loadouts in one item?


Robin955
06-22-2015, 17:38
need to have 2 loadouts in one item

because i defined skins as Terrorist / CT, so they can have one T skin equipped and one CT at the same time,

once ppl get into a skin that goes for both teams (custom skin or in the server) it will only remove either T or CT, and once it gets on the team that didn't un-equip it simply messes up the hats/glasses and makes them spawn at the ground or in my weapon skin

possible to do roastbiff,toast ? like ct,t
http://i.imgur.com/YyarMiI.png

Drixevel
06-22-2015, 19:06
what..

Why are you having two models equip to one person?

Robin955
06-22-2015, 21:50
no
if you have two items with loadout slot roastbiff
equipping either of those will un-equip the other.
se?

in case you want to have CT and T models equipped without needing to re-equip once you change team (if standard loadout slot you can equip 1 skin nomatter what team it is on) so if i equip a skin on CT it will un-equip my skin for T

to solve that you simply make 2 different loadout slots, then it doesn't un-equip. the loadout slot has no purpose other than that, its nothing about any plugin.
you can have 200 hats equipped at once aslong the loadout slot is different and it would work fine. (thats how you can have glasses + a hat equipped at once, as they run off the same plugin)

so the problem is i got T and CT loadout slot right, ct skin and t skin. if i have a skin that works on both teams the loadout slot will be either ct skin or t skin,
wich means for one of the teams it will be equipped 2 skins at once wich messes up the hats and places them at ur gun. (obviously 2 skins at once wont work and is a bad idea)

benoit611
09-21-2015, 19:49
need to have 2 loadouts in one item

because i defined skins as Terrorist / CT, so they can have one T skin equipped and one CT at the same time,

once ppl get into a skin that goes for both teams (custom skin or in the server) it will only remove either T or CT, and once it gets on the team that didn't un-equip it simply messes up the hats/glasses and makes them spawn at the ground or in my weapon skin

possible to do roastbiff,toast ? like ct,t
http://i.imgur.com/YyarMiI.png


yes
http://image.noelshack.com/minis/2015/39/1442879286-store-ct-terro-1.png (http://www.noelshack.com/2015-39-1442879286-store-ct-terro-1.png)
http://image.noelshack.com/minis/2015/39/1442879285-store-ct-terro-2.png (http://www.noelshack.com/2015-39-1442879285-store-ct-terro-2.png)
http://image.noelshack.com/minis/2015/39/1442879284-store-ct-terro-3.png (http://www.noelshack.com/2015-39-1442879284-store-ct-terro-3.png)
http://image.noelshack.com/minis/2015/39/1442879284-store-ct-terro-4.png (http://www.noelshack.com/2015-39-1442879284-store-ct-terro-4.png)

Robin955
09-21-2015, 20:11
No, i already explained i know how to do ct / t skin, if u equip a T skin it will not un-equip once equipping a CT skin, since diff loadout slots.

i need so it will un-equip both CT and T skin once someone equips "this item" at once. but i guess im asking for the impossible.

benoit611
09-22-2015, 04:56
does it work if you want to just go on my server I give you the skins for you to test


tuto 2 category skins_ct Loadout Slot skins ct /// category skins_terro Loadout Slot skins terro


store_categories.sql
-- phpMyAdmin SQL Dump
-- version 4.0.10.7
-- http://www.phpmyadmin.net
--
-- Client: localhost
-- Généré le: Mar 22 Septembre 2015 à 10:51
-- Version du serveur: 5.5.42-cll
-- Version de PHP: 5.4.31

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI ENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RE SULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECT ION */;
/*!40101 SET NAMES utf8 */;

--
-- Base de données: `multimod_storev2`
--

-- --------------------------------------------------------

--
-- Structure de la table `store_categories`
--

CREATE TABLE IF NOT EXISTS `store_categories` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`priority` int(11) DEFAULT NULL,
`display_name` varchar(32) NOT NULL,
`description` varchar(128) DEFAULT NULL,
`require_plugin` varchar(32) DEFAULT NULL,
`web_description` text,
`web_color` varchar(10) DEFAULT NULL,
`enable_server_restriction` int(11) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;

--
-- Contenu de la table `store_categories`
--

INSERT INTO `store_categories` (`id`, `priority`, `display_name`, `description`, `require_plugin`, `web_description`, `web_color`, `enable_server_restriction`) VALUES
(1, 0, 'skins_t', 'Skins uniquement terro', 'skin', 'Skins uniquement terro', '#ff0000', 0),
(2, 0, 'Skins_ct', 'Skins uniquement ct', 'skin', 'Skins uniquement ct', '#0080ff', 0),


/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIEN T */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESU LTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTIO N */;



store_items.sql
INSERT INTO `store_items` (`id`, `priority`, `name`, `display_name`, `description`, `web_description`, `type`, `loadout_slot`, `price`, `category_id`, `attrs`, `is_buyable`, `is_tradeable`, `is_refundable`, `expiry_time`, `flags`, `enable_server_restriction`) VALUES
(1, 0, 'Fable Jack of Blades terro', 'Fable Jack of Blades terro', NULL, NULL, 'skin', 'skin_terro', 10000, 1, '{"model":"models/player/stenli/fable_anniversary/jack.mdl","teams":[2]}', 1, 1, 1, NULL, 'b', 0),
(2, 0, 'Master Chief terro', 'Master Chief terro', NULL, NULL, 'skin', 'skin_terro', 1000, 1, '{"model":"models/player/bic/t_arctic.mdl","teams":[2]}', 1, 1, 1, NULL, 'b', 0),
(3, 0, 'Kingdom_Hearts_Sora', 'Kingdom_Hearts_Sora', NULL, NULL, 'skin', 'skin_terro', 300, 1, '{"model":"models/mapeadores/kaem/sora/sora.mdl","teams":[2]}', 1, 1, 1, NULL, NULL, 0),
(4, 0, 'chat_potte', 'chat_potte', NULL, NULL, 'skin', 'skin_terro', 1500, 1, '{"model":"models/player/techknow/puss/puss.mdl","teams":[2]}', 1, 1, 1, NULL, NULL, 0),
(5, 0, 'Tesla Power armure', 'Tesla Power armure', NULL, NULL, 'skin', 'skin_terro', 10000, 1, '{"model":"models/player/slow/fallout_3/tesla_power_armor/slow.mdl","teams":[2]}', 1, 1, 1, NULL, NULL, 0),
(6, 0, 'Master Chief ct', 'Master Chief ct', NULL, NULL, 'skin', 'skin_ct', 1000, 2, '{"model":"models/player/bic/ct_sas.mdl.mdl","teams":[3]}', 1, 1, 1, NULL, 'b', 0),
(7, 0, 'kakashi', 'kakashi', NULL, NULL, 'skin', 'skin_ct', 3000, 2, '{"model":"models/player/raijin/kakashi.mdl","teams":[3]}', 1, 1, 1, NULL, NULL, 0),
(8, 0, 'Naruto Bijuu', 'Naruto Bijuu', NULL, NULL, 'skin', 'skin_ct', 10000, 2, '{"model":"models/player/raijin/narutosan.mdl","teams":[3]}', 1, 1, 1, NULL, NULL, 0),

benoit611
09-22-2015, 05:10
come on my server you can test me it works skins still speak French but I just say that you just forums.alliedmods and I'll spare you the credits to make 1 skins ct + 1skins terro
steam pseudo cut magic
server 87.98.194.27:27115