You are not logged in.

  • Login

[ArmA 3 Altis Life v3.1.3.5 (extDB)] Lizenz Level

Bitte besucht unser neues Forum unter https://forum.nitrado.net | Please visit our new Forum at https://forum.nitrado.net

Dear visitor, welcome to Nitrado.net Prepaid Gameserver Community-Support - Archiv. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

McNormandy

User / Kunde

  • "McNormandy" is male
  • "McNormandy" started this thread

Posts: 21

  • Send private message

1

Saturday, September 15th 2018, 11:25am

Lizenz Level

Hallo ich veruch seit ein paar Tagen ein Art Lizenz Level System zum laufen zu bringen.
Die Lizenzen sind alle erstellt und funktionieren auch so weit. Nur scheitere ich daran die Lizenz Shops mit der jäweiligen abhängigkeit auszustatten.

Die Init sieht wie folgt aus:

Source code

1
2
3
4
5
6
7
        this allowDamage false; this enableSimulation false; 
	if (license_civ_st1) then {
	this addAction[format ["%1 ($%2)",localize (getText(missionConfigFile >> "Licenses" >> "driver" >> "displayName")), [(getNumber(missionConfigFile >> "Licenses" >> "driver" >> "price"))] call life_fnc_numberText],life_fnc_buyLicense,"driver",0,false,false,"",' !license_civ_driver && playerSide isEqualTo civilian '];  
	this addAction[format ["%1 ($%2)",localize (getText(missionConfigFile >> "Licenses" >> "boat" >> "displayName")), [(getNumber(missionConfigFile >> "Licenses" >> "boat" >> "price"))] call life_fnc_numberText],life_fnc_buyLicense,"boat",0,false,false,"",' !license_civ_boat && playerSide isEqualTo civilian '];  
	this addAction[format ["%1 ($%2)",localize (getText(missionConfigFile >> "Licenses" >> "trucking" >> "displayName")), [(getNumber(missionConfigFile >> "Licenses" >> "trucking" >> "price"))] call life_fnc_numberText],life_fnc_buyLicense,"trucking",0,false,false,"",' !license_civ_trucking && playerSide isEqualTo civilian ']; 
	this addAction[format ["%1 ($%2)",localize (getText(missionConfigFile >> "Licenses" >> "gun" >> "displayName")), [(getNumber(missionConfigFile >> "Licenses" >> "gun" >> "price"))] call life_fnc_numberText],life_fnc_buyLicense,"gun",0,false,false,"",' !license_civ_gun && playerSide isEqualTo civilian '];  
	this setVariable ["realname","License Shop"];}


Sobald ich das so eintrage kann ich selbst mit der benötigten Lizenz nichts kaufen(es wird nichts angezeigt).

Mfg
McNormandy

Bitte besucht unser neues Forum unter https://forum.nitrado.net| Please visit our new Forum at https://forum.nitrado.net