Sign in to follow this  
Followers 0
NeverAgain

Reward player if join to server

6 posts in this topic

Hi please how to change to exile ? THANKS.

 

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"
Edited by NeverAgain

Share this post


Link to post
Share on other sites
12 hours ago, NeverAgain said:
Hi please how to change to exile ? THANKS.

so what are you asking

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement
  • 53 minutes ago, hogansheroes said:

    so what are you asking

    This is from a3 Epoch...

Edited by NeverAgain

Share this post


Link to post
Share on other sites

in its current state, that script will not work in exile. it needs to be modified to use the exile method of getting/giving poptabs, as well as saving poptabs to the database, otherwise they are not able to be used in game and will disappear at restart

Share this post


Link to post
Share on other sites
player setVariable ["ExileMoney", ((player getVariable ["ExileMoney", 0]) + _reward), true];

 

Edited by WURSTKETTE
1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.