coftsock

Donor only apps

8 posts in this topic

This script is to help in providing apps only to those who help keep your server afloat (and to pay for csgo knives on steam).  Must be using the custom apps setup. Paste the following code into an sqf called whatever.sqf

_donorgold = ["76561198235233260"]; //UIDs in here dudes ["76561198235233260","35667343546745","565364785353","5363563764874"]; etc
waitUntil {!isNull player};
_uid = getPlayerUID player;
_name = profileName;

if(_uid in _donorgold) then {
execvm "appcode.sqf";//app script
} else {
hintSilent parseText format ["
<t size='1' font='TahomaB' align='center' color='#EAD453'>Dob us some cash %1, Cmon man</t><br/><br/>",
_name];
};

NOTE! where it says appcode.sqf change that to the app you want your donors to have 'exclusive' access too.

In the custom xm8 apps init make sure the donor only app links to whatever.sqf (the code above)

app1_action = {
execVM "whatever.sqf";
};

Edited by coftsock
1 person likes this

Share this post


Link to post
Share on other sites
13 hours ago, coftsock said:

This script is to help in providing apps only to those who help keep your server afloat (and to pay for csgo knives on steam).  Must be using the custom apps setup. Paste the following code into an sqf called whatever.sqf


_donorgold = ["76561198235233260"]; //UIDs in here dudes ["76561198235233260","35667343546745","565364785353","5363563764874"]; etc
waitUntil {!isNull player};
_uid = getPlayerUID player;
_name = profileName;

if(_uid in _donorgold) then {
execvm "appcode.sqf";//app script
} else {
hintSilent parseText format ["
<t size='1' font='TahomaB' align='center' color='#EAD453'>Dob us some cash %1, Cmon man</t><br/><br/>",
_name];
};

NOTE! where it says appcode.sqf change that to the app you want your donors to have 'exclusive' access too.

In the custom xm8 apps init make sure the donor only app links to whatever.sqf (the code above)

app1_action = {
execVM "whatever.sqf";
};

Note to anyone using this: Make sure you do not supply any *app* that may affect gameplay to your donors. Following BI's policy which you can find here:

  • "Selling of in-game items, that don’t affect gameplay, is allowed."

If your *donor app* affects gameplay, then you must reconsider.
Using scripts to have custom skins or stuff like that should be okay when you apply to their program.

 

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

Hey,

 

i know its an old post, but i just cant get it to work... all the other apps are working as supposed to, but the donor thing keeps on making my brain go dizzy...

 

dunno what im doing wrong, but nothing happens if we try to open the donor app...

 

no errors nowhere, im helpless! are u still supporting?

 

cheers

Share this post


Link to post
Share on other sites

Posted (edited)

@John Lemon paste us what you have edited and maybe your PRT inside a spoiler.

Edited by Metalman10

Share this post


Link to post
Share on other sites
10 hours ago, Metalman10 said:

@John Lemon paste us what you have edited and maybe your PRT inside a spoiler.

PRT? You mean .RPT

User should post his version of the files. I can look at it and see whats wrong.

Share this post


Link to post
Share on other sites
32 minutes ago, FragZ said:

PRT? You mean .RPT

User should post his version of the files. I can look at it and see whats wrong.

Yea I meant .RPT and by all means go ahead and help him

Share this post


Link to post
Share on other sites

thx so far, i guess i found my failure, but i dont have time to check it atm.

but as is sad, absolutly no errors or hints in the rpts, so im pretty sure i messed up something with the donator uids itself!

 

ill let u know! 

 

cheers!

Share this post


Link to post
Share on other sites
20 minutes ago, John Lemon said:

thx so far, i guess i found my failure, but i dont have time to check it atm.

but as is sad, absolutly no errors or hints in the rpts, so im pretty sure i messed up something with the donator uids itself!

 

ill let u know! 

 

cheers!

For sure bro, keep me posted always glad to help!

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

  • Recently Browsing   0 members

    No registered users viewing this page.