AMXX-BG.INFO jailbreak.inc Raw include

jailbreak.inc

Original include source with line numbers.

Back Download .inc
1 #if defined _jailbreak_included
2 #endinput
3 #endif
4
5 #if !defined _jailbreak_const_included
6 #include <jailbreak_const>
7 #endif
8
9 #define _jailbreak_included
10
11
12 /* From LastRequest */
13
14 //Returns current Last request
15 native LastRequest:jb_get_lastrequest();
16
17 //Returns Last request Guard/Prisoner player
18 native jb_get_lrplayer(LastRequestPlayer:player);
19
20
21 /* From SpecialDays */
22
23 //Returns current special day
24 native Days:jb_get_specialday();
25
26 //Gets the name of the current special day
27 native jb_get_specialday_name(destination[], len);
28
29 //Returns whether user is president or not
30 native bool:jb_specialday_is_president(id);
31
32 //Returns whether user can pick weapons within special days checks
33 native bool:jb_specialday_canpickweapons(id);
34
35 //Forward called before day start
36 forward jb_specialday_started_pre(Days:iDay);
37
38 //Forward called after day start
39 forward jb_specialday_started_post(Days:iDay);
40
41 //Forward called after day end
42 forward jb_specialday_end();
43
44 /* From JailBreak Simon */
45
46 //Returns SIMON player index
47 native jb_get_simonindex();
48
49 //Returns SIMON's last said message
50 native jb_get_simon_last_cmd(destination[], len);
51
52 //Returns whether user is SIMON or not
53 native jb_is_user_simon(id);
54
55 /* From JailBreak Main */
56
57 //Returns the number of round currently playing
58 native jb_get_day();
59
60 //Returns the current day of week
61 native jb_get_dayofweek();
62
63
64 /* From JailBreak Models */
65
66 //Resets user model using jailbreak models
67 native jb_reset_model(id);
68
69 /* From JailBreak Cells */
70
71 //Checks whether a button is cell opening or not
72 native bool:jb_is_cellbutton(ent);
73
74 //Opens cells
75 native jb_open_cells();
76
77 /* From JailBreak Freeday */
78
79 //Returns whether a user has freeday or not
80 native bool:jb_is_user_freeday(id);
81
82 /* From JailBreak Shop Main */
83
84 // Items should be registred only during this forward
85 forward jb_register_items();
86
87 // Registers new item
88 //
89 // @param name[] - Item name to be displayed in the menu
90 // @param price - Item price
91 //
92 // @return item id
93 native jb_register_shopitem(name[], price);
94
95 // Registers new item
96 //
97 // @param name[] - Item name to be displayed in the menu
98 // @param price - Item price
99 //
100 // @return item id
101 native jb_register_vshopitem(name[], price);
102
103 //Returns player's points
104 native jb_get_userpoints(id);
105
106 //Sets player's VIP points
107 native jb_set_userpoints(id, points);
108
109 //Returns player's VIP points
110 native jb_get_vuserpoints(id);
111
112 //Sets player's points
113 native jb_set_vuserpoints(id, points);
114
115 //Called before item purchase
116 //
117 //return SHOP_BLOCK if you want to block item purchase
118 forward jb_item_bought_pre(id, item);
119
120 //Called after item purchase
121 forward jb_item_boight_post(id, item);
122
123 //Called before item purchase
124 //
125 //return SHOP_BLOCK if you want to block item purchase
126 forward jb_vitem_bought_pre(id, item);
127
128 //Called after item purchase
129 forward jb_vitem_boight_post(id, item);
130
131 //Called before opening the shop menu
132 //
133 //return SHOP_BLOCK if you want to block shop opening
134 forward jb_openshop_pre(id);
135
136 //Called after opening the shop menu
137 forward jb_openshop_post(id);
138
139 //Called before opening the shop menu
140 //
141 //return SHOP_BLOCK if you want to block shop opening
142 forward jb_vopenshop_pre(id);
143
144 //Called after opening the shop menu
145 forward jb_vopenshop_post(id);
146
147 /* From JailBreak Shop Item Chameleon */
148
149 //Returns whether a player is chameleon or not
150 native jb_is_user_chameleon(id);