[+] Add Gangwar System (bugs incl.)
This commit is contained in:
@@ -1767,7 +1767,6 @@ namespace ReallifeGamemode.Server.Commands
|
||||
ChatService.SendMessage(player, "~b~[ADMIN]~s~ Du hast hast den Spieler ~y~" + target.Name + "~s~ zum Leader der Fraktion ~o~" + f.Name + "~s~ ernannt.");
|
||||
ChatService.SendMessage(target, "~b~[ADMIN]~s~ Du wurdest von ~y~" + player.Name + "~s~ zum Leader der Fraktion ~o~" + f.Name + "~s~ ernannt.");
|
||||
|
||||
u.FactionLeader = false;
|
||||
switch (u.FactionId)
|
||||
{
|
||||
case null:
|
||||
@@ -3056,7 +3055,7 @@ namespace ReallifeGamemode.Server.Commands
|
||||
Gangwar.Gangwar.loadClient(player);
|
||||
}
|
||||
|
||||
[Command("reloadturfs", "~m~Benutzung:~s~ /reloadturfs")]
|
||||
[Command("reloadturfs", "~m~Benutzung:~s~ /ReloadTurfs")]
|
||||
public void CmdAdmReloadTurf(Client player)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true)
|
||||
@@ -3067,7 +3066,7 @@ namespace ReallifeGamemode.Server.Commands
|
||||
Gangwar.Gangwar.loadTurfs();
|
||||
Gangwar.Gangwar.loadTurfs_ToAllClients();
|
||||
}
|
||||
[Command("deleteturf", "~m~Benutzung:~s~ /reloadturfs")]
|
||||
[Command("deleteturf", "~m~Benutzung:~s~ /DeleteTurfs")]
|
||||
public void CmdAdmDeleteTurf(Client player)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true)
|
||||
@@ -3077,7 +3076,16 @@ namespace ReallifeGamemode.Server.Commands
|
||||
}
|
||||
player.TriggerEvent("ADMIN:DeleteTurf");
|
||||
}
|
||||
|
||||
[Command("setturfpoint", "~m~Benutzung:~s~ /setturfpoint")]
|
||||
public void CmdAdmSetTurfPoint(Client player)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true)
|
||||
{
|
||||
ChatService.NotAuthorized(player);
|
||||
return;
|
||||
}
|
||||
player.TriggerEvent("ADMIN:Turf_CreateLeaderBlip");
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ALevel1338
|
||||
|
||||
Reference in New Issue
Block a user