Skip to content

Commit bdfe8b0

Browse files
committed
Updated file and code structure, store player wanted level
1 parent aedea34 commit bdfe8b0

23 files changed

+130
-111
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ Modules that aren't main modules are called sub-modules. These modules must be n
2323

2424
## Code structure
2525
- Description of package or module
26-
- Internal Packages
27-
- Internal packages are all packages from the game-mode itself that this package depends on.
2826
- External Packages
2927
- External packages are all non-game-mode packages (Includes, Plugins) that this package depends on.
3028
- Declarations
@@ -33,6 +31,8 @@ Modules that aren't main modules are called sub-modules. These modules must be n
3331
- `// Player variables`
3432
- There is a sub-section for NativeHook variables (PawnPlus).
3533
- `// Hooks`
34+
- Internal Packages
35+
- Internal packages are all packages from the game-mode itself that this package depends on and vice versa.
3636
- API
3737
- This part contains code that’ll be used by other packages.
3838
- All functions and forwards must be documented.

gamemodes/opencnr.pwn

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@
5252
#include <player>
5353
#include <businesses>
5454
#include <vehicles>
55-
#include <knockout>
56-
#include <nametag>
5755
#include <airdrop>
5856

5957
#if defined DEV_BUILD

gamemodes/opencnr/airdrop/airdrop.inc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
// The airdrop package spawns and handles airdrops.
22

3-
// -
4-
// Internal Packages
5-
// -
6-
7-
#include <anticheat>
8-
93
// -
104
// External Packages
115
// -
@@ -14,6 +8,12 @@
148
#include <YSI\y_timers>
159
#include <PickupEx>
1610

11+
// -
12+
// Internal Packages
13+
// -
14+
15+
#include <anticheat>
16+
1717
// -
1818
// Declarations
1919
// -

gamemodes/opencnr/anticheat/anticheat-money.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
// the players server-sided money.
44

55
// -
6-
// Internal Packages
6+
// External Packages
77
// -
88

9-
#include <player>
9+
#include <YSI\y_timers>
1010

1111
// -
12-
// External Packages
12+
// Internal Packages
1313
// -
1414

15-
#include <YSI\y_timers>
15+
#include <player>
1616

1717
// -
1818
// API

gamemodes/opencnr/anticheat/anticheat-teleportation.inc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
// The teleporation module prevents unauthorized teleportation by checking the
22
// players location and hooks the native position manipulation functions.
33

4-
// -
5-
// Internal Packages
6-
// -
7-
8-
#include <utils>
9-
104
// -
115
// External Packages
126
// -
@@ -34,6 +28,12 @@ static bool:justTeleported[MAX_PLAYERS];
3428
static NativeHook:hookv_SetPlayerPos;
3529
static NativeHook:hookv_PutPlayerInVehicle;
3630

31+
// -
32+
// Internal Packages
33+
// -
34+
35+
#include <utils>
36+
3737
// -
3838
// API
3939
// -

gamemodes/opencnr/businesses/businesses-clerks.inc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
// and provides a callback which is called is called when a player aims at a
33
// clerk actor.
44

5-
// -
6-
// Internal Packages
7-
// -
8-
9-
#include <portals>
10-
115
// -
126
// Declarations
137
// -
@@ -40,6 +34,12 @@ static bool:isActorClerk[MAX_ACTORS];
4034
// Player variables
4135
static playerAimAtClerkCooldown[MAX_PLAYERS];
4236

37+
// -
38+
// Internal Packages
39+
// -
40+
41+
#include <portals>
42+
4343
// -
4444
// API
4545
// -

gamemodes/opencnr/businesses/businesses-robbery.inc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
// The businesses-robbery module handles business robberies.
22

3-
// -
4-
// Internal Packages
5-
// -
6-
7-
#include <anticheat>
8-
#include <roles>
9-
103
// -
114
// External Packages
125
// -
@@ -25,6 +18,13 @@ static playerRobbingBusiness[MAX_PLAYERS];
2518
static Float:robberyProgress[MAX_PLAYERS];
2619
static PlayerBar:playerRobberyProgressbar[MAX_PLAYERS];
2720

21+
// -
22+
// Internal Packages
23+
// -
24+
25+
#include <anticheat>
26+
#include <player-roles>
27+
2828
// -
2929
// Internal
3030
// -

gamemodes/opencnr/businesses/businesses.inc

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22
// clerk initialization and provides an API to retrieve information related
33
// to businesses.
44

5-
// -
6-
// Internal Packages
7-
// -
8-
9-
#include <anticheat>
10-
#include <storage>
11-
#include <portals>
12-
135
// -
146
// External Packages
157
// -
@@ -35,6 +27,12 @@ new Iterator:Business<MAX_BUSINESSES>;
3527
// Player variables
3628
static playerInBusiness[MAX_PLAYERS];
3729

30+
// -
31+
// Internal Packages
32+
// -
33+
34+
#include <portals>
35+
3836
// -
3937
// API
4038
// -

gamemodes/opencnr/player-auth/player-auth-login.inc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// External Packages
66
// -
77

8-
#include <storage>
98
#include <easyDialog>
109
#include <samp_bcrypt>
1110

gamemodes/opencnr/player-auth/player-auth-registration.inc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// External Packages
66
// -
77

8-
#include <storage>
98
#include <easyDialog>
109
#include <samp_bcrypt>
1110

0 commit comments

Comments
 (0)