Forum

> > CS2D > Scripts > How make Moderator and vip in [YANK] Admin Script
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch How make Moderator and vip in [YANK] Admin Script

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: How make Moderator and vip in [YANK] Admin Script

Ajmin
User Off Offline

Zitieren
Bass>>notes.lua

1
2
3
4
5
6
7
8
9
10
11
notes.groups = {
	[-1] = {level = -1, suffix = "Idiot"};
	[0] = {level = 0, suffix = "User"};
	[1] = {level = 1, suffix = "Vip"};
	[2] = {level = 2, suffix = "Academy"};
	[3] = {level = 3, suffix = "Warrior"};
	[4] = {level = 4, suffix = "Mod"};
	[5] = {level = 5, suffix = "ViceLeader"};
	[6] = {level = 6, suffix = "Clan Leader"};
	[7] = {level = 7, suffix = "Hoster"};
}

This is what i used in my server.

Also edit the"notes.commands" which is right below this code to set the minimum level required for various commands else you end up in chaos

alt xD

Man Of Steel
User Off Offline

Zitieren
Hey @user Ajmin: I mean ,

How i make Staffs in this script like;

115684 -- Vip
112698 -- idoit
136456 -- Moderator
149463 -- Supporter etc

alt Re: How make Moderator and vip in [YANK] Admin Script

Nova
User Off Offline

Zitieren
I just took a look at the commands in sys/bass/deck.lua
As far as I understand that the needed command is "setrank <id or USGN ID> <level>". Replace the first part <id or USGN ID> with the ID of the player you want to promote or demote and the second part with the new rank. It should probably look something like this: "!setrank 1111 4". You will need an @ for USGN IDs.
Please note that you have to be level 4 (owner) for this command to work. If you want to set your own rank at the beginning I think you have to change the file name inside sys/lua/users called "YOURUSGNID.txt.txt". Change the "YOURUSGNID.txt" to your USGN ID. The end result could be for example: "1111.txt"
The default file content is already "rank=4", so you don't need to change this.

@user Man Of Steel: To be honest, I didn't find that. Then again, I didn't search long for it.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht