DonatorRank

Approved DonatorRank 1.7.1

No permission to download

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
Jakkee submitted a new resource:

DonatorRank - Add VIPs, Donators & Moderators!

Description:
Allows admins to make players either VIP, Donator or Moderator.

Features:
-Bans beds
-Set homes
-Broadcast something to the server
-Logs what Vip/Donators say when using /yell
-VIP/Donator kits
-Mod/Donator/VIP teleport points
-Add remove VIPs/Donators/Mods in game via command
-Adds prefixs to players
-Still more to come!

Installation:
-Place into Fougerite folder
-Reload the server
-Open Settings.ini with a text editor
-Edit what you like
-Save the file...
Read more about this resource...
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
Jakkee submitted a new resource:

DonatorRank - Add VIPs, Donators & Moderators!



Read more about this resource...
Took me some time, but approved.

Here are some suggestions:

Suggestions:

JavaScript:
if (Player.Admin == true){

if (Player.Admin == false){
You can simply use (Player.Admin) or (!Player.Admin)
Those are better, and faster (Well shows better in the compiled script)

On the vkit command you may do the inifile like this:

INI:
[VkitInv]
1=Item
2=Item
3=Item

And you can do simply an enumsection via the ini method in js
then do a for cycle by the length

JavaScript:
var inienum = ini.EnumSection(sectionName);
var length = inienum.Length;
for (var i = 0; i < length; i++) {
    ini.GetSetting("VkitInv", i);
}
Iihihi, i found my home methods and fixes at the home part. :p Someone forgot me :c
JavaScript:
Player.Notice("You have to wait before using this again!");
var next = calc / 1000;
var next2 = next / 60;
var def = waittime / 1000;
var def2 = def / 60;
var done = Number(next2).toFixed(2);
var done2 = Number(def2).toFixed(2);
Player.Message("Time: " + done + "/" + done2);

//You may simplify to on both parts:
var next = (calc / 1000) / 60;
I sometimes do many variables for nothing when im tired.

At mtp command you have many arguments If check.

JavaScript:
if(args[0] == "Smallrad"){

You may put the other ifs to be else if, so it will be faster, or you can use the
switch case methods. For example:

JavaScript:
if(args[0] == "Smallrad"){

}
else if (.....

These are some suggestions that you may accept or not.

P.S: I edited your config syntax on the post to be ini. (You can select ini too, when you are pasting code)
 

CorrosionX

Plugin Developer
Plugin Developer
Sep 3, 2014
212
85
18
California
-Set homes
So... what's the command to set home? Not listed in description... Im sure i could check the plugin, but still should be listed.

Also, doesnt create the homes.ini if you dont have it, AND says homes disabled even when its default config. So we cant use homes :(
 
Last edited:

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
So... what's the command to set home? Not listed in description... Im sure i could check the plugin, but still should be listed.

Also, doesnt create the homes.ini if you dont have it, AND says homes disabled even when its default config. So we cant use homes :(
/sethome [name]
also the homes.ini is created when someone sets a home.
(I am looking into things being disabled even when its set to true in the settings).
 

CorrosionX

Plugin Developer
Plugin Developer
Sep 3, 2014
212
85
18
California
Unfortunately, while using mikes builds, this shows me the message: you aren't allowed to use /sethome, even with it being set to true in config. I have yet to get /sethome working. =\
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
Unfortunately, while using mikes builds, this shows me the message: you aren't allowed to use /sethome, even with it being set to true in config. I have yet to get /sethome working. =\
What rank did you set yourself to?
EDIT: When updating the plugin did you delete Settings.ini? (Plugin should automatically create the new settings).
 
Last edited:

CorrosionX

Plugin Developer
Plugin Developer
Sep 3, 2014
212
85
18
California
What rank did you set yourself to?
EDIT: When updating the plugin did you delete Settings.ini? (Plugin should automatically create the new settings).
I have restarted the server several times since having installed the plugin. The settings.ini file is there. The plugin doesnt let anyone with or without being set as rank, use /sethome without getting that issue.
 
Last edited:

Marcos

Member
Trusted Member
Member
Aug 1, 2014
101
0
18
how to configure the plug not being able to keep the vip items and even move on to other players?
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
Jakkee updated DonatorRank with a new update entry:

V1.0.3 - Fixes

In this version;
- Fixed sethomes
- Fixed Moderators kit
- Fixed NaN is Offline.
If anything is not working please let me know.

NOTE: I was using Fougerite MC 4 when testing this.

INSTALLATION:
Delete Settings.ini & DonatorRank.js
Placed the downloaded DonatorRank.js in folder.
Reload/Restart

**Only bug is that the when Donators do /dkit they do not get ammo or a weapon. In the settings config just leave weapon and ammo blanks and use the inv1, inv2 to add a weapon / ammo**
Read the rest of this update entry...
 

BH09

New Member
Member
Aug 2, 2014
6
0
1
LA US
Do you think there could be a way that i could add teleportation areas? It has the original spots such as Big Rad town, Hangar and all that.
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
Do you think there could be a way that i could add teleportation areas? It has the original spots such as Big Rad town, Hangar and all that.
Yes, I might make configurable areas soon.
If you'd like to change the areas now, you can edit the JavaScript file.

Example of donator (Doesn't matter if its moderators or vip):
JavaScript:
if(args[0] == "Smallrad"){ //This is the command they type EX: /dtp Smallrad
    var waittime = DonatorRank.MTPCooldown;
    var time = DataStore.Get("MTPCooldown", Player.SteamID);
    if (time == null) {
       time = 0;
    }
    var calc = System.Environment.TickCount - time;
    if (calc >= waittime || Player.Admin) {
        Player.TeleportTo(6050, 381, -3620); //This is the location they are teleporting to. In game you can type /location to get the location.
        DataStore.Add("MTPCooldown", Player.SteamID, System.Environment.TickCount);
        Player.InventoryNotice("Small Rad Town"); //You can remove this line if you want but this bassically tells you where you went.
    }else {
       Player.Notice("You have to wait before teleporting again!");
       var next = calc / 1000;
       var next2 = next / 60;
       var def = waittime / 1000;
       var def2 = def / 60;
       var done = Number(next2).toFixed(2);
       var done2 = Number(def2).toFixed(2);
       Player.Message("Time: " + done + "/" + done2);
    }
}
So theres only 3 lines to change.
 

BH09

New Member
Member
Aug 2, 2014
6
0
1
LA US
I have another suggestion too, it would be nice to add a VIP,MOD,and ADMIN list. For example,
/vlist
/alist
/mlist
 

Flare

New Member
Member
Aug 14, 2014
6
1
1
first, i just wanna say thank you for making this plugin. i was a complete fan and user of MexicanBBQ's VIP++, and now you have taken that and seemingly made it so much better. the only problem i have, is that when i started the server, i see no settings.ini! please help, i am dying to see what this plugin can do.

-Flare

EDIT: ive tried to resolve this error, ive tried making my own settings.ini(copying what is in the thread), and starting/restarting the server and reinstalling the plugin. while ingame, when i try to use a command (eg. /vtp) it gave me the error
Code:
[9/23/2014 12:44:35 AM] [Debug] [CHAT-CMD] "Flare" executed "/vtp"
[9/23/2014 12:44:35 AM] [Error] [JintPlugin] Error invoking function On_Command in DonatorRank plugin.
[9/23/2014 12:44:35 AM] [Exception] [ Plugin->Invoke | Plugin->OnCommand | Hooks->ChatReceived | chat->say | MonoMethod->InternalInvoke | MonoMethod->Invoke | MethodBase->Invoke | ConsoleSystem->RunCommand | ConsoleSystem->RunCommand_Serverside | ConsoleNetworker->SV_RunConsoleCommand | MonoMethod->InternalInvoke | MonoMethod->Invoke | MethodBase->Invoke | #=qaL2AMBCaBLCj4lGSCwjcBVYUs_5vzeQVgu44HVklVYQ=->#=qG_E6hqIvz6NLWQQCT2N5IA== | #=q$NUWz6aT_ypN3cz7K6ce2gVWapiYAlnLPGzKjIUfT2w=->#=qS9ntZNSJqwnPkZv_HZvsug== | NetworkView->OnRPC | NetworkViewBase->#=qpJfiNEhSKsosBj54zW21Bw== | #=qjg$mq9k6hZwR1eaAS3eQ4dux$3oD_j8CRZte$f$nFV0=->#=qlGEZiB55BOeKhe33IbTgs3lVmx7rHXWsIFfTvKtNlrQ= | #=qjg$mq9k6hZwR1eaAS3eQ4dux$3oD_j8CRZte$f$nFV0=->#=qIPn628V9gmXGKu9CDwAT4Q== | #=qxj6gmeF_JmZ38rfyBJuqFoiB_sAo6WCf4j1AdQtxGgQ=->#=qpnen9BDYWb7GIHNeIDM0B2w3_bWY6Y1K7n6fbysAk2U= | #=qxj6gmeF_JmZ38rfyBJuqFoiB_sAo6WCf4j1AdQtxGgQ=->#=qnjPTIXsYLyWun9DHM4QyDdSqTLT$sNaH7rGgebuLUF8= | #=qxj6gmeF_JmZ38rfyBJuqFoiB_sAo6WCf4j1AdQtxGgQ=->#=q9Ox7MeTma6fxAsTig99GV6twoS8KYKSkq98q3ldn1AU= | #=qxj6gmeF_JmZ38rfyBJuqFoiB_sAo6WCf4j1AdQtxGgQ=->#=qdSwDnRo$f5EQslih94YkOg== | #=qjg$mq9k6hZwR1eaAS3eQ4dux$3oD_j8CRZte$f$nFV0=->#=qqJfJJIU5OocEzCry9eP0ew== | #=qSBVG6i3HoKQx$z3bwADYIgVX_kCktQP8JwBh1CI$O_8=->#=qK4rBLHQlJi1c$9ISNO6Z6w== | InternalHelper->LateUpdate | ]
TypeError: Object has no method 'IniExists'
 
Last edited:

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
first, i just wanna say thank you for making this plugin. i was a complete fan and user of MexicanBBQ's VIP++, and now you have taken that and seemingly made it so much better. the only problem i have, is that when i started the server, i see no settings.ini! please help, i am dying to see what this plugin can do.

-Flare

EDIT: ive tried to resolve this error, ive tried making my own settings.ini(copying what is in the thread), and starting/restarting the server and reinstalling the plugin. while ingame, when i try to use a command (eg. /vtp) it gave me the error
Code:
[9/23/2014 12:44:35 AM] [Debug] [CHAT-CMD] "Flare" executed "/vtp"
[9/23/2014 12:44:35 AM] [Error] [JintPlugin] Error invoking function On_Command in DonatorRank plugin.
[9/23/2014 12:44:35 AM] [Exception] [ Plugin->Invoke | Plugin->OnCommand | Hooks->ChatReceived | chat->say | MonoMethod->InternalInvoke | MonoMethod->Invoke | MethodBase->Invoke | ConsoleSystem->RunCommand | ConsoleSystem->RunCommand_Serverside | ConsoleNetworker->SV_RunConsoleCommand | MonoMethod->InternalInvoke | MonoMethod->Invoke | MethodBase->Invoke | #=qaL2AMBCaBLCj4lGSCwjcBVYUs_5vzeQVgu44HVklVYQ=->#=qG_E6hqIvz6NLWQQCT2N5IA== | #=q$NUWz6aT_ypN3cz7K6ce2gVWapiYAlnLPGzKjIUfT2w=->#=qS9ntZNSJqwnPkZv_HZvsug== | NetworkView->OnRPC | NetworkViewBase->#=qpJfiNEhSKsosBj54zW21Bw== | #=qjg$mq9k6hZwR1eaAS3eQ4dux$3oD_j8CRZte$f$nFV0=->#=qlGEZiB55BOeKhe33IbTgs3lVmx7rHXWsIFfTvKtNlrQ= | #=qjg$mq9k6hZwR1eaAS3eQ4dux$3oD_j8CRZte$f$nFV0=->#=qIPn628V9gmXGKu9CDwAT4Q== | #=qxj6gmeF_JmZ38rfyBJuqFoiB_sAo6WCf4j1AdQtxGgQ=->#=qpnen9BDYWb7GIHNeIDM0B2w3_bWY6Y1K7n6fbysAk2U= | #=qxj6gmeF_JmZ38rfyBJuqFoiB_sAo6WCf4j1AdQtxGgQ=->#=qnjPTIXsYLyWun9DHM4QyDdSqTLT$sNaH7rGgebuLUF8= | #=qxj6gmeF_JmZ38rfyBJuqFoiB_sAo6WCf4j1AdQtxGgQ=->#=q9Ox7MeTma6fxAsTig99GV6twoS8KYKSkq98q3ldn1AU= | #=qxj6gmeF_JmZ38rfyBJuqFoiB_sAo6WCf4j1AdQtxGgQ=->#=qdSwDnRo$f5EQslih94YkOg== | #=qjg$mq9k6hZwR1eaAS3eQ4dux$3oD_j8CRZte$f$nFV0=->#=qqJfJJIU5OocEzCry9eP0ew== | #=qSBVG6i3HoKQx$z3bwADYIgVX_kCktQP8JwBh1CI$O_8=->#=qK4rBLHQlJi1c$9ISNO6Z6w== | InternalHelper->LateUpdate | ]
TypeError: Object has no method 'IniExists'
Thanks for that, I'll have a look at "IniExists", that seems to be the problem.
Just wondering, what version of fougerite are you using?