-
Notifications
You must be signed in to change notification settings - Fork 18
/
Config_Staff.hpp
289 lines (270 loc) · 8.52 KB
/
Config_Staff.hpp
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
#define ADMIN_AND_MODO {"XXXXXXXXXXXXXXXXXX","XXXXXXXXXXXXXXXXXX"}
class ALYSIA_STAFF
{
class ranks
{
class admin {
name="Administrateur";
};
class modo {
name="Modérateur";
};
class support {
name="Support";
};
};
class members
{
// - Admin
class admin
{
rank="admin";
teamspeak=1;
slot=1;
skip_checks=1;
};
class MyAdminName: admin
{
uid="XXXXXXXXXXXXXXXXXX";
};
// - Modo
class modo
{
rank="modo";
teamspeak=1;
slot=1;
skip_checks=1;
};
class MyModoName: modo
{
uid="XXXXXXXXXXXXXXXXXX";
};
// - Support
class support
{
rank="support";
teamspeak=1;
slot=0;
skip_checks=0;
};
class MySupportName: support
{
uid="XXXXXXXXXXXXXXXXXX";
};
};
class commands
{
class buttons
{
class god_on
{
name="Dieu ON";
statement="[] spawn AlysiaClient_fnc_APP_staff_god;";
condition="!g_staff_on";
allow[]=ADMIN_AND_MODO;
};
class god_off: god_on
{
name="Dieu OFF";
statement="g_staff_on=false;";
condition="g_staff_on";
};
class vehicle_getKey
{
name="Clef Vehicle";
statement="g_vehicles pushBack (vehicle player);";
condition="(((vehicle player) isKindOf 'Car') || ((vehicle player) isKindOf 'Ship') || ((vehicle player) isKindOf 'Air') || ((vehicle player) isKindOf 'Tank'))";
allow[]=ADMIN_AND_MODO;
};
class target_getKey
{
name="Clef Cible";
statement="g_vehicles pushBack cursorObject;";
condition="(!(isNull cursorObject) && ((cursorObject isKindOf 'Car') || (cursorObject isKindOf 'Ship') || (cursorObject isKindOf 'Air') || (cursorObject isKindOf 'Tank')))";
allow[]=ADMIN_AND_MODO;
};
class target_delete: vehicle_getKey
{
name="Supp Cible";
statement="deleteVehicle cursorObject;";
condition="!(isNull cursorObject)";
verify=1;
};
class target_trunkInUse: vehicle_getKey
{
name="Fix coffre";
statement="cursorObject setVariable ['trunk_in_use_ID','',true];";
condition="!(isNull cursorObject) && ((cursorObject getVariable ['trunk_in_use_ID','']) != '')";
};
class target_onMe: vehicle_getKey
{
name="TP cible";
statement="cursorObject setPosATL (getPosATL player);";
condition="!(isNull cursorObject) && ((cursorObject isKindOf 'Car') || (cursorObject isKindOf 'Ship') || (cursorObject isKindOf 'Air') || (cursorObject isKindOf 'Tank'))";
};
class target_build_company: vehicle_getKey
{
name="Construire";
statement="[cursorObject] remoteExecCall ['AlysiaServer_fnc_company_build', 2];";
condition="(cursorObject getVariable ['construction',false]) && !(isNil {(cursorObject getVariable 'company_info')})";
verify=1;
};
class target_build_labo: vehicle_getKey
{
name="Construire";
statement="[cursorObject] remoteExecCall ['AlysiaServer_fnc_laboratory_build', 2];";
condition="(cursorObject getVariable ['construction',false]) && !(isNil {(cursorObject getVariable 'laboratory_info')})";
verify=1;
};
class reboot
{
name="Reboot";
statement="[] remoteExec ['AlysiaServer_fnc_serverSave',2];";
condition="isNil 'gServer_soonReboot'";
allow[]=ADMIN_AND_MODO;
verify=1;
};
class remove_desaeses
{
name="Supp maladie";
statement="g_deseases=[];g_medecine=[];['Merci de deco reco'] call AlysiaClient_fnc_info;";
condition="count(g_deseases) > 0";
allow[]=ADMIN_AND_MODO;
};
class clear_bots
{
name="Supp Bots";
statement="{if (!(isPlayer _x)) then{deleteVehicle _x};} foreach allUnits;";
condition="(true)";
allow[]=ADMIN_AND_MODO;
};
class rabbit
{
name="Lapin";
statement="[] spawn AlysiaClient_fnc_APP_staff_rabbit;";
condition="(true)";
allow[]=ADMIN_AND_MODO;
};
class snake: rabbit
{
name="Serpent";
statement="[] spawn AlysiaClient_fnc_APP_staff_snake;";
};
class seize
{
name="Saisir";
statement="[] call AlysiaClient_fnc_seizeObjects;";
condition="(count(nearestObjects [player, ['WeaponHolder','GroundWeaponHolder','WeaponHolderSimulated','Skyline_Alysia_Boite_01_F'], 3]) > 0)";
allow[]=ADMIN_AND_MODO;
};
};
class target
{
class tpto
{
name="TP à";
statement="(vehicle player) setPosATL (getPosATL (call compile (lbData[9000,lbCurSel 9000])));";
condition="(true)";
allow[]=ADMIN_AND_MODO;
};
class tphere: tpto
{
name="TP ici";
statement="(vehicle (call compile (lbData[9000,lbCurSel 9000]))) setPosATL (getPosATL player);";
};
class getInVeh: tpto
{
name="Entrer dans véhicule";
statement="player moveInCargo (vehicle (call compile (lbData[9000,lbCurSel 9000])))";
condition="g_staff_god && !((vehicle (call compile (lbData[9000,lbCurSel 9000]))) isKindOf 'Man')";
};
class data
{
name="Informations";
statement="[player] remoteExecCall ['AlysiaClient_fnc_APP_staff_players_getData',(lbData[9000,lbCurSel 9000])];";
condition="(true)";
allow[]=ADMIN_AND_MODO;
};
class heal: tpto
{
name="Soin";
statement="[3999] remoteExecCall ['AlysiaClient_fnc_handleBlood',(call compile (lbData[9000,lbCurSel 9000]))]; (call compile (lbData[9000,lbCurSel 9000])) setVariable ['is_bleeding', false, true];";
};
class res: tpto
{
name="Rez";
statement="((call compile (lbData[9000,lbCurSel 9000])) setVariable ['is_bleeding',false,true]);((call compile (lbData[9000,lbCurSel 9000])) setVariable ['is_coma',false,true]);";
condition="(call compile (lbData[9000,lbCurSel 9000])) getVariable ['is_coma',false]";
};
class tp_civ
{
name="Tp spawn CIVIL";
statement="(call compile (lbData[9000,lbCurSel 9000])) setPos (getMarkerPos 'respawn_civilian')";
condition="(true)";
allow[]=ADMIN_AND_MODO;
};
class tp_guer: tp_civ
{
name="Tp spawn SAMU";
statement="(call compile (lbData[9000,lbCurSel 9000])) setPos (getMarkerPos 'respawn_guerrila')";
};
class tp_east: tp_civ
{
name="Tp spawn ANT";
statement="(call compile (lbData[9000,lbCurSel 9000])) setPos (getMarkerPos 'respawn_east')";
};
class remboursement
{
name="Remboursement";
statement=" \
[] spawn \
{ \
_amount = [ \
'Alysia_Client_Texture\Data\interactions\background.jpg', \
'Informations', \
'Valeur', \
'0', \
'Valider', \
'Alysia_Client_Texture\Data\global\validate.paa', \
'Alysia_Client_Texture\Data\global\validate_select.paa', \
'0123456789', \
7, \
1 \
] call AlysiaClient_fnc_edit_create; \
if (_amount != '') then \
{ \
_amount = parseNumber(_amount); \
_target = call compile (lbData[9000,lbCurSel 9000]); \
[format['Vous avez envoyé <t color=''#8cff9b''>%1</t>$ à <t color=''#FF8000''>%2</t>', [_amount] call AlysiaClient_fnc_numberText, _target getVariable 'realname']] call AlysiaClient_fnc_info; \
[format['Vous avez reçu <t color=''#8cff9b''>%1</t>$ sur votre compte en banque de la part du staff <t color=''#0080FF''>Alysia</t>.', [_amount] call AlysiaClient_fnc_numberText]] remoteExecCall ['AlysiaClient_fnc_info', _target]; \
[true, _amount] remoteExecCall ['AlysiaClient_fnc_handleATM', _target]; \
[player, _target, _amount] remoteExecCall ['AlysiaServer_fnc_logRefund', 2]; \
}; \
}; \
";
condition="(true)";
allow[]=ADMIN_AND_MODO;
};
class accred_reb_remove
{
name="Supprimer accréditation rebelle";
statement="[(call compile (lbData[9000,lbCurSel 9000])), 0, player] remoteExecCall ['AlysiaServer_fnc_whitelistRebels', 2];";
condition="((side (call compile (lbData[9000,lbCurSel 9000]))) isEqualTo civilian) && (((call compile (lbData[9000,lbCurSel 9000])) getVariable ['rank', 0]) > 0)";
allow[]={"XXXXXXXXXXXXXXXXXX"};
};
class accred_reb_first: accred_reb_remove
{
name="Accréditation rebelle 1";
statement="[(call compile (lbData[9000,lbCurSel 9000])), 1, player] remoteExecCall ['AlysiaServer_fnc_whitelistRebels', 2];";
condition="((side (call compile (lbData[9000,lbCurSel 9000]))) isEqualTo civilian) && (((call compile (lbData[9000,lbCurSel 9000])) getVariable ['rank', 0]) != 1)";
};
class accred_reb_second: accred_reb_remove
{
name="Accréditation rebelle 2";
statement="[(call compile (lbData[9000,lbCurSel 9000])), 2, player] remoteExecCall ['AlysiaServer_fnc_whitelistRebels', 2];";
condition="((side (call compile (lbData[9000,lbCurSel 9000]))) isEqualTo civilian) && (((call compile (lbData[9000,lbCurSel 9000])) getVariable ['rank', 0]) != 2)";
};
};
};
};
#undef ADMIN_AND_MODO