-
Notifications
You must be signed in to change notification settings - Fork 3
/
rpg_jail.inc
47 lines (35 loc) · 944 Bytes
/
rpg_jail.inc
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
#if defined _rpg_jail_included_
#endinput
#endif
#define _rpg_jail_included_
/*
Puts a client in jail
@Param1 -> int initiator
@Param2 -> int target <- goes to jail
@return none
*/
native void jail_putInJail(int initiator, int target);
/*
frees a client from jail
@Param1 -> int client
@return none
*/
native int jail_freeFromJail(int client);
/*
checks if a client is in jail
@Param1 -> int client
@return true or false
*/
native bool jail_isInJail(int client);
/*
Forward on client jailed
@Param1 -> int client | client that got jailed
@Param2 -> int initiator | client that jailed Param1
*/
forward void jail_OnClientJailed(int client, int initiator);
/*
Forward on client jailed
@Param1 -> int client | client that got jailed
@Param2 -> bool escaped | true -> fled from Prison, false -> was released rightfully
*/
forward void jail_OnClientUnJailed(int client, bool escaped);