wie kann ich ein spawn machen wo ich über der Daten Bank einem die Lizenz geben kann und er denn da spawnen kann wo der spawn platziert ist???
Spawnen mir einer Lizenz
-
-
Code
class RebelN { displayName = "Anzeige Name"; spawnMarker = "MARKER_NAME"; icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa"; conditions = "DEINELIZENZ"; //beispielweise license_civ_rebel };
Auszug Config_SpawnPoints.hpp
Codeclass DEINELIZENZ { variable = "DEINELIZENZ"; //Muss gleich sein wie beim Titel! displayName = "STR_License_Driver"; //Anzeige Name illegal = false; side = "civ"; };
Auszug Config_Licenses.hpp
-
mehr nicht nur die beiden?
-
-
-
Spawn
Codeclass TUV { displayName = "TUV"; spawnMarker = "civ_spawn_tuv"; icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa"; conditions = "license_civ_tuv"; };
LizenzCodeclass tuv { variable = "tuv"; displayName = "Tuv Lizenz name HIER REIN"; price = 0; illegal = false; side = "civ"; };
versuch es mal so
-
also soll ich
license_civ_tuv
bei
displayName = "Tuv Lizenz name HIER REIN";
hin schreiben?
-
Nein da kannst du irgendein Namen reinschreiben.
Wie Tüv Mechatroniker oder so
-
1. Geh in deine "Config_Licenses" erstelle dort deine Lizenz bei mir sieht es jetzt so aus (Hab einfach mal den Namen von deiner Lizenz genommen)
Hier ist deine Lizenz jetzt etwas weiter unten mit bei
/*
* class:
* variable = Variable Name
* displayName = License Name
* price = License Price
* illegal = Illegal License
* side = side indicator
*/
class Licenses {
//Civilian Licenses
class driver {
variable = "driver";
displayName = "STR_License_Driver";
price = 500;
illegal = false;
side = "civ";
};
class boat {
variable = "boat";
displayName = "STR_License_Boat";
price = 1000;
illegal = false;
side = "civ";
};
class pilot {
variable = "pilot";
displayName = "STR_License_Pilot";
price = 25000;
illegal = false;
side = "civ";
};
class trucking {
variable = "trucking";
displayName = "STR_License_Truck";
price = 20000;
illegal = false;
side = "civ";
};
class gun {
variable = "gun";
displayName = "STR_License_Firearm";
price = 10000;
illegal = false;
side = "civ";
};
class dive {
variable = "dive";
displayName = "STR_License_Diving";
price = 2000;
illegal = false;
side = "civ";
};
class home {
variable = "home";
displayName = "STR_License_Home";
price = 75000;
illegal = false;
side = "civ";
};
//Processing Licenses
class oil {
variable = "oil";
displayName = "STR_License_Oil";
price = 10000;
illegal = false;
side = "civ";
};
class diamond {
variable = "diamond";
displayName = "STR_License_Diamond";
price = 35000;
illegal = false;
side = "civ";
};
class salt {
variable = "salt";
displayName = "STR_License_Salt";
price = 12000;
illegal = false;
side = "civ";
};
class sand {
variable = "sand";
displayName = "STR_License_Sand";
price = 14500;
illegal = false;
side = "civ";
};
class iron {
variable = "iron";
displayName = "STR_License_Iron";
price = 9500;
illegal = false;
side = "civ";
};
class copper {
variable = "copper";
displayName = "STR_License_Copper";
price = 8000;
illegal = false;
side = "civ";
};
class cement {
variable = "cement";
displayName = "STR_License_Cement";
price = 6500;
illegal = false;
side = "civ";
};
class medmarijuana {
variable = "medmarijuana";
displayName = "STR_License_Medmarijuana";
price = 15000;
illegal = false;
side = "civ";
};
//Illegal Licenses
class cocaine {
variable = "cocaine";
displayName = "STR_License_Cocaine";
price = 30000;
illegal = true;
side = "civ";
};
class heroin {
variable = "heroin";
displayName = "STR_License_Heroin";
price = 25000;
illegal = true;
side = "civ";
};
class marijuana {
variable = "marijuana";
displayName = "STR_License_Marijuana";
price = 19500;
illegal = true;
side = "civ";
};
class rebel {
variable = "rebel";
displayName = "STR_License_Rebel";
price = 75000;
illegal = true;
side = "civ";
};
//Cop Licenses
class cAir {
variable = "cAir";
displayName = "STR_License_Pilot";
price = 15000;
illegal = false;
side = "cop";
};
class cg {
variable = "cg";
displayName = "STR_License_CG";
price = 8000;
illegal = false;
side = "cop";
};
//Gang Licenses
class tuv { //Hier ist dein Lizenz!!!
variable = "tuv";
displayName = "STR_License_tuv";
price = 10000;
illegal = false;
side = "civ";
};
//Medic Licenses
class mAir {
variable = "mAir";
displayName = "STR_License_Pilot";
price = 15000;
illegal = false;
side = "med";
};
};
2. Geh in deine "Config_SpawnPoints"
Weiter unten ist nun dein Spawn in der Config eingetragen
/*
* Format:
* 3: STRING (Conditions) - Must return boolean :
* String can contain any amount of conditions, aslong as the entire
* string returns a boolean. This allows you to check any levels, licenses etc,
* in any combination. For example:
* "call life_coplevel && license_civ_someLicense"
* This will also let you call any other function.
*
*/
class CfgSpawnPoints {
class Altis {
class Civilian {
class Kavala {
displayName = "Kavala";
spawnMarker = "civ_spawn_1";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "!license_civ_rebel";
};
class Athira {
displayName = "Athira";
spawnMarker = "civ_spawn_3";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "";
};
class Pyrgos {
displayName = "Pyrgos";
spawnMarker = "civ_spawn_2";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "";
};
class Sofia {
displayName = "Sofia";
spawnMarker = "civ_spawn_4";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "";
};
class RebelN {
displayName = $STR_SP_Reb_N;
spawnMarker = "Rebelop";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
conditions = "license_civ_rebel";
};
class RebelS {
displayName = $STR_SP_Reb_S;
spawnMarker = "Rebelop_1";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
conditions = "license_civ_rebel";
};
class RebelE {
displayName = $STR_SP_Reb_E;
spawnMarker = "Rebelop_2";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
conditions = "license_civ_rebel";
};
class tuv {
displayName = "tuv";
spawnMarker = "tuv_spawn_1";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
conditions = "license_civ_tuv";
};
};
class Cop {
class Kavala {
displayName = "Kavala HQ";
spawnMarker = "cop_spawn_1";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "";
};
class Athira {
displayName = "Athira HQ";
spawnMarker = "cop_spawn_3";
icon = "\a3\ui_f\data\map\MapControl\fuelstation_ca.paa";
conditions = "";
};
class Pyrgos {
displayName = "Pyrgos HQ";
spawnMarker = "cop_spawn_2";
icon = "\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa";
conditions = "";
};
class Air {
displayName = $STR_MAR_Police_Air_HQ;
spawnMarker = "cop_spawn_4";
icon = "\a3\ui_f\data\map\Markers\NATO\b_air.paa";
conditions = "call life_coplevel >= 2 && {license_cop_cAir}";
};
class HW {
displayName = $STR_MAR_Highway_Patrol;
spawnMarker = "cop_spawn_5";
icon = "\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa";
conditions = "call life_coplevel >= 3";
};
};
class Medic {
class Kavala {
displayName = $STR_SP_EMS_Kav;
spawnMarker = "medic_spawn_1";
icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa";
conditions = "";
};
class Athira {
displayName = $STR_SP_EMS_Ath;
spawnMarker = "medic_spawn_2";
icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa";
conditions = "";
};
class Pyrgos {
displayName = $STR_SP_EMS_Pyr;
spawnMarker = "medic_spawn_3";
icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa";
conditions = "";
};
};
};
class Tanoa {
class Civilian {
class Georgetown {
displayName = "Georgetown";
spawnMarker = "civ_spawn_1";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "!license_civ_rebel";
};
class Balavu {
displayName = "Balavu";
spawnMarker = "civ_spawn_3";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "";
};
class Tuvanaka {
displayName = "Tuvanaka";
spawnMarker = "civ_spawn_2";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "";
};
class Lijnhaven {
displayName = "Lijnhaven";
spawnMarker = "civ_spawn_4";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "";
};
class RebelNW {
displayName = $STR_SP_Reb_NW;
spawnMarker = "Rebelop";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
conditions = "license_civ_rebel";
};
class RebelS {
displayName = $STR_SP_Reb_S;
spawnMarker = "Rebelop_1";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
conditions = "license_civ_rebel";
};
class RebelNE {
displayName = $STR_SP_Reb_NE;
spawnMarker = "Rebelop_2";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
conditions = "license_civ_rebel";
};
};
class Cop {
class NAirport {
displayName = $STR_SP_Cop_Air_N;
spawnMarker = "cop_spawn_1";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "";
};
class SWAirport {
displayName = $STR_SP_Cop_Air_SW;
spawnMarker = "cop_spawn_3";
icon = "\a3\ui_f\data\map\MapControl\fuelstation_ca.paa";
conditions = "";
};
class GeorgetownHQ {
displayName = "Georgetown HQ";
spawnMarker = "cop_spawn_2";
icon = "\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa";
conditions = "";
};
class Air {
displayName = $STR_MAR_Police_Air_HQ;
spawnMarker = "cop_spawn_4";
icon = "\a3\ui_f\data\map\Markers\NATO\b_air.paa";
conditions = "call life_coplevel >= 2 && {license_cop_cAir}";
};
class HW {
displayName = $STR_MAR_Highway_Patrol;
spawnMarker = "cop_spawn_5";
icon = "\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa";
conditions = "call life_coplevel >= 3";
};
};
class Medic {
class SEHospital {
displayName = $STR_SP_EMS_SE;
spawnMarker = "medic_spawn_1";
icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa";
conditions = "";
};
class TanoukaHospital {
displayName = $STR_SP_EMS_Tan;
spawnMarker = "medic_spawn_2";
icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa";
conditions = "";
};
class NEAirportHospital {
displayName = $STR_SP_EMS_NEair;
spawnMarker = "medic_spawn_3";
icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa";
conditions = "";
};
};
};
};
Nun muss du in den Editor gehen am besten ein andern Spawn Kopieren den einfach umbenennen in "tuv_spawn_1"
falls du weiter fragen hast melde dich sonst kann ich auch morgen zu dir mal in TeamSpeak kommen und es dir besser erklären beim schreiben habe ich immer paar probleme.