Skip to content

Commit 6e89081

Browse files
committed
04-11-16
1 parent cc7f3d1 commit 6e89081

File tree

115 files changed

+10751
-82
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+10751
-82
lines changed

rust legacy/AdminAirdrop.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@
1313
- /airdrop cancel => destroy all planes to cancel all current airdrop calls
1414

1515
- /airdrop destroy => destroy all supply crates.
16+
1617
**Permissions:
1718

1819
rcon.login**
1920

2021
oxide permission: "**all**"
2122

2223
oxide permission: "**canairdrop**"
24+
2325
You can grant a user permission by using:
2426
**oxide.grant user <username> <permission>**
2527

rust legacy/AdminDoor.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,25 @@ Automatically open doors when admins get close to doors,
22

33
and close the doors when the admin gets away.
44

5+
6+
57
**Why this way?**
68

79
This will free the hook on open door, the plugin will ONLY be activated when an admin uses the plugin, and as the plugin only adds informations to this player, it will not affect the speed of the server.
810

911
So yeah you wont choose what doors to open, but they will all open, and it will save some speed for the server ^^
1012
It's also optimized to just detect doors, so it won't be using any resources even if 10 admins uses it at the same time
13+
1114
**Command:**
1215

1316
- /admindoor => activate/deactivate the auto door.
17+
1418
**Permissions:
1519

1620
rcon.login**
1721

1822
oxide permission "**candoor**"
23+
1924
You can grant a user permission by using:
2025
**oxide.grant user <username> <permission>**
2126

rust legacy/AdminList.cs

Lines changed: 381 additions & 0 deletions
Large diffs are not rendered by default.

rust legacy/AdminList.md

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
Easy to use plugin, will eventually have the ability to modify config ingame but for now it needs to be manually edited. Commands include:
2+
3+
/admins
4+
5+
/setadmin 'user'
6+
7+
8+
This plugin will list all staff upon the use of /admins (those who you enter). Currently there is the following included:
9+
10+
1 Owner Slot
11+
12+
1 Co Owner Slot
13+
14+
1 Head Admin Slot
15+
16+
10 Admin Slots
17+
18+
10 Mod Slots
19+
20+
21+
Config File:
22+
23+
````
24+
{
25+
26+
  "Admin1: An Admin of the server": "",
27+
28+
  "Admin10: An Admin of the server": "",
29+
30+
  "Admin2: An Admin of the server": "",
31+
32+
  "Admin3: An Admin of the server": "",
33+
34+
  "Admin4: An Admin of the server": "",
35+
36+
  "Admin5: An Admin of the server": "",
37+
38+
  "Admin6: An Admin of the server": "",
39+
40+
  "Admin7: An Admin of the server": "",
41+
42+
  "Admin8: An Admin of the server": "",
43+
44+
  "Admin9: An Admin of the server": "",
45+
46+
  "CoOwner: The Coowner of the server": "Owner has yet to input this!",
47+
48+
  "Head Admin: The Head Admin of the server": "Owner has yet to input this!",
49+
50+
  "Mod1: A Mod of the server": "",
51+
52+
  "Mod10: A Mod of the server": "",
53+
54+
  "Mod2: A Mod of the server": "",
55+
56+
  "Mod3: A Mod of the server": "",
57+
58+
  "Mod4: A Mod of the server": "",
59+
60+
  "Mod5: A Mod of the server": "",
61+
62+
  "Mod6: A Mod of the server": "",
63+
64+
  "Mod7: A Mod of the server": "",
65+
66+
  "Mod8: A Mod of the server": "",
67+
68+
  "Mod9: A Mod of the server": "",
69+
70+
  "Owner: The owner of the server": "Owner has yet to input this!",
71+
72+
  "Settings: Number of Admins": 0,
73+
74+
  "Settings: Number of Moderators": 0,
75+
76+
  "Settings: Server has a coowner": true,
77+
78+
  "Settings: Server has a head admin": true,
79+
80+
  "Settings: Server has an admin": true
81+
82+
}
83+
````
84+
85+
Example setup:
86+
87+
````
88+
{
89+
90+
  "Admin1: An Admin of the server": "Drab",
91+
92+
  "Admin10: An Admin of the server": "Kayla",
93+
94+
  "Admin2: An Admin of the server": "Flap",
95+
96+
  "Admin3: An Admin of the server": "Frost",
97+
98+
  "Admin4: An Admin of the server": "BDM",
99+
100+
  "Admin5: An Admin of the server": "",
101+
102+
  "Admin6: An Admin of the server": "",
103+
104+
  "Admin7: An Admin of the server": "",
105+
106+
  "Admin8: An Admin of the server": "",
107+
108+
  "Admin9: An Admin of the server": "",
109+
110+
  "CoOwner: The Coowner of the server": "Max",
111+
112+
  "Head Admin: The Head Admin of the server": "MEEEEH",
113+
114+
  "Mod1: A Mod of the server": "James",
115+
116+
  "Mod10: A Mod of the server": "Frank",
117+
118+
  "Mod2: A Mod of the server": "Smith",
119+
120+
  "Mod3: A Mod of the server": "John",
121+
122+
  "Mod4: A Mod of the server": "Jane",
123+
124+
  "Mod5: A Mod of the server": "Philip",
125+
126+
  "Mod6: A Mod of the server": "",
127+
128+
  "Mod7: A Mod of the server": "",
129+
130+
  "Mod8: A Mod of the server": "",
131+
132+
  "Mod9: A Mod of the server": "",
133+
134+
  "Owner: The owner of the server": "Bond",
135+
136+
  "Settings: Number of Admins": 5,
137+
138+
  "Settings: Number of Moderators": 6,
139+
140+
  "Settings: Server has a coowner": true,
141+
142+
  "Settings: Server has a head admin": true,
143+
144+
  "Settings: Server has an admin": true
145+
146+
}
147+
````

rust legacy/AdminTeleportation.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Admin ONLY Teleportation System
2+
23
**Commands:**
34

45
- /tp TARGETPLAYER => Teleport yourself to a target player
@@ -17,18 +18,23 @@ Admin ONLY Teleportation System
1718

1819
- /tp SOURCEPLAYER X Y Z => Teleport a source player to the coordinates X Y Z (if Y is set to teleport under the map, you will be automatically teleported back up)
1920

21+
2022
- /bring TARGETPLAYER => Teleport a player to you.
2123

24+
2225
- /tpsave => get the list of saved locations
2326

2427
- /tpsave remove XX => remove a saved location
2528

2629
- /tpsave XXX => Add a new saved location
2730

31+
2832
- /tpb => This only works for yourself, when you teleport to a player or to a position, it will save your first position for you to teleport back to with this command
2933

34+
3035
- /p => Portal gun, teleport to where you are looking at
3136

37+
3238
- /up XX => Go up Xm, 4 is default.
3339

3440
- /down XX => Go down Xm, 4 is default.
@@ -40,11 +46,13 @@ Admin ONLY Teleportation System
4046
- /fw XX => Go forward Xm, 4 is default.
4147

4248
- /back XX => Go back Xm, 4 is default.
49+
4350
**Permissions:
4451

4552
rcon.login**
4653

4754
oxide permission: **canteleport**
55+
4856
You can grant a user permission by using:
4957
**oxide.grant user <username> <permission>**
5058

rust legacy/AdvGod.cs

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
using Oxide.Core;
2+
using Oxide.Core.Plugins;
3+
using System.Linq;
4+
using System.Collections.Generic;
5+
using System;
6+
using System.Reflection;
7+
using System.Data;
8+
using UnityEngine;
9+
using Oxide.Core;
10+
using RustProto;
11+
12+
/* IN MADE EDITION
13+
.---- ---,--- .----
14+
| __ | | | |___
15+
| | | | | |
16+
`^--' `----^ | `^---
17+
~GutePG - POINTGAME
18+
*/
19+
20+
namespace Oxide.Plugins
21+
{
22+
[Info("AdvGod", "Gute & PointGame - credits xBDMx", "1.0.0")]
23+
[Description("You can give god mode for a player.")]
24+
public class AdvGod : RustLegacyPlugin
25+
{
26+
void LoadDefaultMessages()
27+
{
28+
var messages = new Dictionary<string, string>
29+
{
30+
{"NoPermission", "You are not allowed to use '[color orange]/god[color white]'"},
31+
{"CommandUsage", "Use syntax: [color orange]/god [color white]'[color yellow]username[color white]'"},
32+
{"GodReply", "You gave god mode for -[COLOR YELLOW] {0}"},
33+
{"GodMessage", "You got godmode by -[COLOR CYAN]"},
34+
{"UngodReply", "You shot of godmode -[COLOR YELLOW] {0}"},
35+
{"UngodMessage", "He was removed given by godmode -[COLOR CYAN]"}
36+
};
37+
lang.RegisterMessages(messages, this);
38+
}
39+
void Loaded()
40+
{
41+
LoadDefaultMessages();
42+
permission.RegisterPermission("advgod.allowed", this);
43+
}
44+
[ChatCommand("god")]
45+
void cmdGod(NetUser netuser, string command, string[] args)
46+
{
47+
if (!permission.UserHasPermission(netuser.playerClient.userID.ToString(), "advgod.allowed"))
48+
{
49+
SendReply(netuser, GetMessage("NoPermission", netuser.userID.ToString()));
50+
return;
51+
}
52+
else if (args.Length != 1)
53+
{
54+
SendReply(netuser, GetMessage("CommandUsage", netuser.userID.ToString()));
55+
return;
56+
}
57+
else
58+
{
59+
NetUser targetuser = rust.FindPlayer(args[0]);
60+
if (targetuser != null)
61+
{
62+
targetuser.playerClient.rootControllable.rootCharacter.takeDamage.SetGodMode(true);
63+
SendReply(netuser, string.Format(GetMessage("GodReply", netuser.userID.ToString()), targetuser.displayName));
64+
SendReply(targetuser, GetMessage("GodMessage", netuser.userID.ToString()) + netuser.displayName);
65+
}
66+
}
67+
}
68+
[ChatCommand("ungod")]
69+
void cmdUngod(NetUser netuser, string command, string[] args)
70+
{
71+
if (!permission.UserHasPermission(netuser.playerClient.userID.ToString(), "advgod.allowed"))
72+
{
73+
SendReply(netuser, GetMessage("NoPermission", netuser.userID.ToString()));
74+
return;
75+
}
76+
else if (args.Length != 1)
77+
{
78+
SendReply(netuser, GetMessage("CommandUsage", netuser.userID.ToString()));
79+
return;
80+
}
81+
else
82+
{
83+
NetUser targetuser = rust.FindPlayer(args[0]);
84+
if (targetuser != null)
85+
{
86+
targetuser.playerClient.rootControllable.rootCharacter.takeDamage.SetGodMode(false);
87+
SendReply(netuser, string.Format(GetMessage("UngodReply", netuser.userID.ToString()), targetuser.displayName));
88+
SendReply(targetuser, GetMessage("UngodMessage", netuser.userID.ToString()) + netuser.displayName);
89+
}
90+
}
91+
}
92+
string GetMessage(string key, string steamId = null) => lang.GetMessage(key, this, steamId);
93+
}
94+
95+
}

rust legacy/AdvGod.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
**Command :**
2+
3+
4+
/god <playername>
5+
6+
/ungod <playername>
7+
8+
9+
**Permission :**
10+
11+
12+
advgod.allowed
13+
14+
15+
**Credits : **
16+
17+
18+
all credit to my xBDMx partner, the code and is always helping.
19+
20+
**Permission console :**
21+
22+
23+
oxide.grant user <playername> advgod.allowed
24+
25+
oxide.revoke user <playername> advgod.allowed

0 commit comments

Comments
 (0)