auzgamer Posted March 27, 2015 Report Share Posted March 27, 2015 what does this script do? The loyalty system rewards players who play on your server with 10000 coins after an 30 minutes this amount is multiplied by 1 every 30 minutes (can be configured how ever you like) http://prntscr.com/6m1qql To install copy the code below and name it fn_rewardLoyalty.sqf and place it in your mission pbo multiPlyWith = 1; _i=0; while {_i < 7} do { if ( _i == 1) then { _reward = (10000 * multiPlyWith); player setVariable ["cashMoney", ((player getVariable ["cashMoney", 0]) + _reward), true]; _msg = parseText format ["<t align='center' color='#FFFFFF' shadow='2' size='1.75'>Loyalty time reward!</t><br/><t align='center' color='#17FF41'>------------------------------</t><br/><t align='center' color='#FFFFFF'>%1 thank you for playing on Mayhem! Your loyalty has been rewarded with: </t><t align='center' color='#40FF00'>$%2</t>", name player, _reward]; hint _msg; multiPlyWith = multiPlyWith + 1; _i = 0; }; sleep 1800; _i = _i + 1; }; open your init and call it using execVM "Custom\fn_rewardLoyalty.sqf" change the path if you do not use a custom folder. just configure how often and how much a player gets in the rewardloyalty.sqf This was used in arma 3 so i give credit to the original author JoSchaap i only got it working in arma 2. it wont let upload a screen shot so you will have to install to see it. Enjoy Gr8 1 Link to comment Share on other sites More sharing options...
Henry_BWG Posted March 27, 2015 Report Share Posted March 27, 2015 "increments by 1" What is stopping players going afk in traders for hours? Link to comment Share on other sites More sharing options...
Thug Posted March 27, 2015 Report Share Posted March 27, 2015 What coin system does this work with? Link to comment Share on other sites More sharing options...
KamikazeXeX Posted March 27, 2015 Report Share Posted March 27, 2015 I'd suggest adding something in there that checks if they're in a trader or not, i.e if!(canbuild) exitwith {}; for vanilla epoch and to stop them just going afk in base add if (speed player > 5) then { check around it all, its a great idea but very flawed in current form. SchwEde 1 Link to comment Share on other sites More sharing options...
SchwEde Posted March 27, 2015 Report Share Posted March 27, 2015 you also could set some global variables in there and set them in your init.sqf, so it would be more convinient and less confusing for some admins :) How about an alternive version where you reward players with goldbars for users without single currancy? Link to comment Share on other sites More sharing options...
auzgamer Posted March 27, 2015 Author Report Share Posted March 27, 2015 "increments by 1" What is stopping players going afk in traders for hours? you can always set it so it only gives the reward once based on your restart schedule Link to comment Share on other sites More sharing options...
auzgamer Posted March 27, 2015 Author Report Share Posted March 27, 2015 What coin system does this work with? should work with all them just make sure the variable cashmoney and bankmoney is the same. Link to comment Share on other sites More sharing options...
copper Posted April 20, 2015 Report Share Posted April 20, 2015 How to go about to add this safezone, base check?? Its a nice script and I would like to have it running, but worry about camping mofos who will abuse it. If someone could tell me it would be great and alot of thx to the author for making this. Respect Link to comment Share on other sites More sharing options...
Saltzman Posted April 20, 2015 Report Share Posted April 20, 2015 Its to bad everyone makes scripts for coin based servers where people dupe the shit out of coins and make it worse by adding stuff such as this. Link to comment Share on other sites More sharing options...
SchwEde Posted April 20, 2015 Report Share Posted April 20, 2015 maybe, but you dont have to use it, just like me :) Link to comment Share on other sites More sharing options...
auzgamer Posted April 20, 2015 Author Report Share Posted April 20, 2015 You can set it to only give one loyalty per restart just depends on how often your server restarts and how often you set the reward too. SchwEde 1 Link to comment Share on other sites More sharing options...
Guest Posted April 20, 2015 Report Share Posted April 20, 2015 You guys should be ashamed, really. auzgamer did spend time to make this and he shared it with the Community (with us!) - and all you do is harass. Don't tell him everything is shit, give him some ideas or help on how to do it better. I hope the people know, hwo i mean...Make Love, not War! Link to comment Share on other sites More sharing options...
ic3cold Posted May 21, 2015 Report Share Posted May 21, 2015 I installed this and it seems to be working except the messages show behind my debugger on right. How can I get the messages to show elsewhere where I can see them. Thanks Link to comment Share on other sites More sharing options...
ic3cold Posted May 21, 2015 Report Share Posted May 21, 2015 Anyone? Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted May 22, 2015 Report Share Posted May 22, 2015 Does anyone know if this works with version 3.0 of the single currency? Link to comment Share on other sites More sharing options...
Buck0 Posted May 22, 2015 Report Share Posted May 22, 2015 Does anyone know if this works with version 3.0 of the single currency? Ofcourse it does, it uses a currency variable, change it t the variable you are using and it will work Link to comment Share on other sites More sharing options...
ic3cold Posted May 22, 2015 Report Share Posted May 22, 2015 I installed this and it seems to be working except the messages show behind my debugger on right. How can I get the messages to show elsewhere where I can see them. Thanks help please Link to comment Share on other sites More sharing options...
SchwEde Posted May 22, 2015 Report Share Posted May 22, 2015 change the hint to something else and code it yourself: hint _msg; use https://community.bistudio.com/wiki/cutText https://community.bistudio.com/wiki/titleText or systemchat use whatever you like auzgamer 1 Link to comment Share on other sites More sharing options...
Brian Soanes Posted May 22, 2015 Report Share Posted May 22, 2015 sleep 1800; Richie, SchwEde and Zoranth 3 Link to comment Share on other sites More sharing options...
Judeh Posted May 22, 2015 Report Share Posted May 22, 2015 Blank Link to comment Share on other sites More sharing options...
Judeh Posted May 22, 2015 Report Share Posted May 22, 2015 Does anyone know if this works with version 3.0 of the single currency? Blank Link to comment Share on other sites More sharing options...
auzgamer Posted May 22, 2015 Author Report Share Posted May 22, 2015 Its a bag of shite, it is on the screen for 1 second and can't reposition it. then you have done it wrong then or have something else running that's breaking it. Link to comment Share on other sites More sharing options...
Judeh Posted May 22, 2015 Report Share Posted May 22, 2015 You guys should be ashamed, really. auzgamer did spend time to make this and he shared it with the Community (with us!) - and all you do is harass. Don't tell him everything is shit, give him some ideas or help on how to do it better. I hope the people know, hwo i mean...Make Love, not War! Blank Link to comment Share on other sites More sharing options...
Judeh Posted May 22, 2015 Report Share Posted May 22, 2015 then you have done it wrong then or have something else running that's breaking it. Blank Link to comment Share on other sites More sharing options...
SchwEde Posted May 22, 2015 Report Share Posted May 22, 2015 Well if you are not a coder how can you judge this script then? It is doing exactly what it should, means it is a good script. The shite you having there is because of your debug monitor, I posted a solution for that on the first page. So rather then offend people who try to help you should better understand why is it working like it does, even if you are not a coder, by simply looking at the code you could read it or at least be thankful for the help you get here. This probably won't your last issue and they're always the same people helping here others, so better don't mess up with them ;P Buck0, Zoranth and JohnnyBravo666 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now