-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathComandoParametro.cs
More file actions
106 lines (92 loc) · 3 KB
/
ComandoParametro.cs
File metadata and controls
106 lines (92 loc) · 3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
using System;
using UnityEngine;
using Rocket.API;
using Rocket.Unturned.Player;
using Rocket.Unturned;
using Rocket.Unturned.Commands;
using Rocket.Unturned.Chat;
using System.Collections.Generic;
using System.Collections;
using Steamworks;
using SDG.Unturned;
using Game4Freak.AdvancedZones;
using Rocket.Core.Plugins;
using System.Threading;
using Rocket.Core;
using Logger = Rocket.Core.Logging.Logger;
using System.Linq;
using System.Diagnostics;
using Rocket.API.Extensions;
namespace Darkness
{
class ComandoParametro : IRocketCommand
{
public List<string> Aliases
{
get
{
return new List<string>() { "genrob" };
}
}
public AllowedCaller AllowedCaller
{
get
{
return AllowedCaller.Player;
}
}
public string Help
{
get
{
return "";
}
}
public string Name
{
get
{
return "addrob";
}
}
public List<string> Permissions
{
get
{
return new List<string>() { "addrobs" };
}
}
public string Syntax
{
get
{
return "<NameZone>";
}
}
public void Execute(IRocketPlayer caller, params string[] command)
{
UnturnedPlayer player = (UnturnedPlayer)caller;
string Zone = command[0];
Zone currentZoneFixed = AdvancedZones.Instance.getZoneByName(Zone);
List<string> MaxPolice = new List<string>() { "3" };
List<string> RewardRob = new List<string>() { "5000" };
List<string> TimeRob = new List<string>() { "350" };
List<string> CooldownRob = new List<string>() { "500" };
List<string> TitleUI = new List<string>() { "ADVANCEDROBS" };
List<string> TextUI = new List<string>() { "You want to rob this?" };
List<string> TypeRob = new List<string>() { "money/item" };
List<string> ItemsGive = new List<string>() { "334" };
currentZoneFixed.addParameter("MaxPolice", MaxPolice);
currentZoneFixed.addParameter("Reward", RewardRob);
currentZoneFixed.addParameter("Time", TimeRob);
currentZoneFixed.addParameter("Cooldown", CooldownRob);
currentZoneFixed.addParameter("TitletUI", TitleUI);
currentZoneFixed.addParameter("TextUI", TextUI);
currentZoneFixed.addParameter("TypeRob", TypeRob);
currentZoneFixed.addParameter("items", ItemsGive);
currentZoneFixed.addParameter("items", ItemsGive);
UnturnedChat.Say(player, $"[AdvancedRobs] Has been added the parameters to Advanced Zones to {Zone} , now you can edit the parameters in AdvancedZones config", Color.red);
AdvancedZones.Instance.Configuration.Save();
}
}
}