DonatorRank

Approved DonatorRank 1.7.1

No permission to download

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
@PearlJ @tarynkelley Kits + Cooldowns should be fixed.
As for the Rust++ Mute, You'll have to talk to DreTaX about adding a method to do IsMuted(Player):Bool
Once that has been created i'll be able to easily fix this issue. ( I tried to hack my around this but I couldn't mute myself.. so yeah..)
You only want that? Fairly solveable.

I wonder why that happens though? It's kinda freaking weird.

I will add It.
 

Demo

Member
Member
Mar 3, 2016
108
14
18
28
Parts Unknown
That doesn't mean you solved It.
please tell me how to check the number in the Datastore?Suppose
DataStore.Add("Player", Player.SteamID, args[0]);

If the value is more than 2 then perform the action correctly?

if (DataStore.Get("Player", Player.SteamID) > "2");
action
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
please tell me how to check the number in the Datastore?Suppose
DataStore.Add("Player", Player.SteamID, args[0]);

If the value is more than 2 then perform the action correctly?

if (DataStore.Get("Player", Player.SteamID) > "2");
action
Well args[0] would be string and "2" is string, So doing > wouldn't be right and probably always return False. You'll have to convert the string to int by doing Number("String"); or PhaseInt("String);
 

tarynkelley

Retired Staff
Retired Staff
Trusted Member
Nov 14, 2015
575
178
28
Parts Unknown
muted = RustPP.IsMuted(Player.SteamID)

must be

muted = RustPP.IsMuted(Player)

C#:
 public bool IsMuted(Player pl)
        {
            return RustPP.Core.muteList.Contains(pl.UID);
        }
 

tarynkelley

Retired Staff
Retired Staff
Trusted Member
Nov 14, 2015
575
178
28
Parts Unknown
I created a SteamID function too as far as I remember. Didnt I?

Sent From My Samsung Galaxy S4
Right

but its ulong, not string.

C#:
public bool IsMuted(ulong id)
  {
  return RustPP.Core.muteList.Contains(id);
  }
[IronPython] Error in plugin DonatorRank:
Traceback (most recent call last):
File "<string>", line 914, in On_Chat
TypeError: expected Player, got str
Fix:

muted = RustPP.IsMuted(long(Player.SteamID))
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia