Need help getting donator license please
Hi!
I'm not a programmer, nor scripter, just curious on how things work, I'm trying to find the string to make my script give me donator license in a specific server.
On the script that I have, the line that gives me all licenses not work, it goes like this...
_local3xtr45 addAction["Give All Licenses","{missionNamespace setVariable[(_x select 0),true];} foreach licenses; hint 'All Licenses Added!';"];
but, I don't want/need all licenses, just donator.. looking in some server files, I found in config_master.hpp some lines like that:
class Licenses {
LICENSEMACRO(driver,"STR_License_Driver","driver", 15000,false,"civ")
LICENSEMACRO(boat,"STR_License_Boat","boat",20000, false,"civ")
LICENSEMACRO(pilot,"STR_License_Pilot","pilot",750 00,false,"civ")
LICENSEMACRO(gun,"STR_License_Firearm","gun",50000 ,false,"civ")
LICENSEMACRO(dive,"STR_License_Diving","dive",1000 0,false,"civ")
LICENSEMACRO(oil,"STR_License_Oil","oil",25000,fal se,"civ")
LICENSEMACRO(cAir,"STR_License_Pilot","cAir",15000 ,false,"cop")
LICENSEMACRO(coastguard,"STR_License_CG","cg",8000 ,false,"cop")
LICENSEMACRO(heroin,"STR_License_Heroin","heroin", 50000,false,"civ")
LICENSEMACRO(marijuana,"STR_License_Marijuana","ma rijuana",65000,false,"civ")
LICENSEMACRO(medmarijuana,"STR_License_Medmarijuan a","medmarijuana",75000,false,"civ")
LICENSEMACRO(rebel,"STR_License_Rebel","rebel",650 000,false,"civ")
LICENSEMACRO(trucking,"STR_License_Truck","truckin g",50000,false,"civ")
LICENSEMACRO(diamond,"STR_License_Diamond","diamon d",35000,false,"civ")
LICENSEMACRO(salt,"STR_License_Salt","salt",15000, false,"civ")
LICENSEMACRO(cocaine,"STR_License_Cocaine","cocain e",100000,false,"civ")
LICENSEMACRO(sand,"STR_License_Sand","sand",12500, false,"civ")
LICENSEMACRO(iron,"STR_License_Iron","iron",10000, false,"civ")
LICENSEMACRO(copper,"STR_License_Copper","copper", 10000,false,"civ")
LICENSEMACRO(cement,"STR_License_Cement","cement", 10000,false,"civ")
LICENSEMACRO(mAir,"STR_License_Pilot","mAir",15000 ,false,"med")
LICENSEMACRO(home,"STR_License_Home","home",200000 0,false,"civ")
LICENSEMACRO(Bounty,"STR_License_Bounty","Bounty", 750000,false,"civ") //Bounty hunter
LICENSEMACRO(whitelisted,"STR_License_whitelisted" ,"whitelisted",999999999,false,"civ") //whitelisted rebels
LICENSEMACRO(meth,"STR_License_Meth","meth",50000, false,"civ") //meth
LICENSEMACRO(donator,"STR_License_Donator","donato r",9999999999999999999,false,"civ") //donator
LICENSEMACRO(med420,"STR_License_med420","med420", 75000,false,"civ") //donator
How can I change the line in my script to give me the donator license?
Thanx in advance!!
I'm not a programmer, nor scripter, just curious on how things work, I'm trying to find the string to make my script give me donator license in a specific server.
On the script that I have, the line that gives me all licenses not work, it goes like this...
_local3xtr45 addAction["Give All Licenses","{missionNamespace setVariable[(_x select 0),true];} foreach licenses; hint 'All Licenses Added!';"];
but, I don't want/need all licenses, just donator.. looking in some server files, I found in config_master.hpp some lines like that:
class Licenses {
LICENSEMACRO(driver,"STR_License_Driver","driver", 15000,false,"civ")
LICENSEMACRO(boat,"STR_License_Boat","boat",20000, false,"civ")
LICENSEMACRO(pilot,"STR_License_Pilot","pilot",750 00,false,"civ")
LICENSEMACRO(gun,"STR_License_Firearm","gun",50000 ,false,"civ")
LICENSEMACRO(dive,"STR_License_Diving","dive",1000 0,false,"civ")
LICENSEMACRO(oil,"STR_License_Oil","oil",25000,fal se,"civ")
LICENSEMACRO(cAir,"STR_License_Pilot","cAir",15000 ,false,"cop")
LICENSEMACRO(coastguard,"STR_License_CG","cg",8000 ,false,"cop")
LICENSEMACRO(heroin,"STR_License_Heroin","heroin", 50000,false,"civ")
LICENSEMACRO(marijuana,"STR_License_Marijuana","ma rijuana",65000,false,"civ")
LICENSEMACRO(medmarijuana,"STR_License_Medmarijuan a","medmarijuana",75000,false,"civ")
LICENSEMACRO(rebel,"STR_License_Rebel","rebel",650 000,false,"civ")
LICENSEMACRO(trucking,"STR_License_Truck","truckin g",50000,false,"civ")
LICENSEMACRO(diamond,"STR_License_Diamond","diamon d",35000,false,"civ")
LICENSEMACRO(salt,"STR_License_Salt","salt",15000, false,"civ")
LICENSEMACRO(cocaine,"STR_License_Cocaine","cocain e",100000,false,"civ")
LICENSEMACRO(sand,"STR_License_Sand","sand",12500, false,"civ")
LICENSEMACRO(iron,"STR_License_Iron","iron",10000, false,"civ")
LICENSEMACRO(copper,"STR_License_Copper","copper", 10000,false,"civ")
LICENSEMACRO(cement,"STR_License_Cement","cement", 10000,false,"civ")
LICENSEMACRO(mAir,"STR_License_Pilot","mAir",15000 ,false,"med")
LICENSEMACRO(home,"STR_License_Home","home",200000 0,false,"civ")
LICENSEMACRO(Bounty,"STR_License_Bounty","Bounty", 750000,false,"civ") //Bounty hunter
LICENSEMACRO(whitelisted,"STR_License_whitelisted" ,"whitelisted",999999999,false,"civ") //whitelisted rebels
LICENSEMACRO(meth,"STR_License_Meth","meth",50000, false,"civ") //meth
LICENSEMACRO(donator,"STR_License_Donator","donato r",9999999999999999999,false,"civ") //donator
LICENSEMACRO(med420,"STR_License_med420","med420", 75000,false,"civ") //donator
How can I change the line in my script to give me the donator license?
Thanx in advance!!