English Create a license

I'm the Boss

Admin
2/1/20
378
2
43
1 100
Hello,

How to create a license?

1 - Go to the root of your mission.
2 - Go to \config\Config_Licenses.hpp.
3 - Go inside the Licenses class and create a new class.

Example :

S’il vous plaît, Connexion ou S'inscrire pour voir le code !
The name of the class and the variable don't have to be identical, but it's better to find your way around.

  • The variable is required, choose a single word or two Words. (remember, never accents or special characters)
  • The displayName corresponds to the stringtable of the name displayed in game
  • The price corresponds to the price of the license at stake
  • illegal = false; for the license to be legal
  • illegal = true; for the license to be illegal
  • The side speaks for itself and can be set to "civ" or "cop" or "med". (only the players in the indicated side will have access to this license.)

  • Go to stringtable.xml at the root of your mission.
  • 5 - Look for "Life_License" and add your STR at the end of this package.

Example :

S’il vous plaît, Connexion ou S'inscrire pour voir le code !

6 - Save the two modified files.

Your license is created!
 
Activité
Pour l'instant, il n'y a personne ici