Skip to content

Commit f5cdb73

Browse files
authored
Update Installation.md
1 parent a1daeb4 commit f5cdb73

File tree

1 file changed

+37
-29
lines changed

1 file changed

+37
-29
lines changed

docs/server/Installation.md

Lines changed: 37 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,15 @@
22

33
:::note
44

5-
*If you are using the FCNPC plugin, please stop for now because this plugin does not work for open.mp currently.*
5+
If you are using the FCNPC plugin, please stop for now because this plugin does not work for open.mp currently.
66

77
:::
88

9-
## Contents
10-
11-
- [Step 1](#step-1)
12-
- [Step 2](#step-2)
13-
- [Step 3](#step-3)
14-
- [Step 4](#step-4)
15-
- [Step 5](#step-5)
16-
- [Step 6](#step-6)
17-
- [Step 7](#step-7)
18-
- [Step 8](#step-8)
19-
- [Step 9](#step-9)
20-
- [Step 10](#step-10)
21-
- [Step 11](#step-11)
22-
- [Compiler errors and warnings](#compiler-errors-and-warnings)
23-
- [Runtime errors and warnings](#runtime-errors-and-warnings)
24-
- [Useful documents](#useful-documents)
25-
- [Help](#help)
26-
279
## Step 1
2810

2911
Download the latest version of open.mp server files from [https://github.com/openmultiplayer/open.mp/releases](https://github.com/openmultiplayer/open.mp/releases/latest)
3012

31-
<kbd>![](https://github.com/adib-yg/openmp-server-installation/blob/main/screenshots/Screenshot%20(1).png)</kbd>
13+
![](https://github.com/adib-yg/openmp-server-installation/blob/main/screenshots/Screenshot%20(1).png)
3214

3315
- `open.mp-win-x86.zip` **Windows** Server
3416
- `open.mp-linux-x86.tar.gz` **Linux** Server
@@ -38,7 +20,7 @@ Download the latest version of open.mp server files from [https://github.com/ope
3820

3921
Extract the `.zip` or `.tar.gz` archive contents on your disk
4022

41-
<kbd>![](https://github.com/adib-yg/openmp-server-installation/blob/main/screenshots/Screenshot%20(3).png)</kbd>
23+
![](https://github.com/adib-yg/openmp-server-installation/blob/main/screenshots/Screenshot%20(3).png)
4224

4325
:::note
4426

@@ -98,22 +80,26 @@ Put the following plugins in the **../components** folder, not in the **../plugi
9880

9981
Open the qawno IDE program located at **Server/qawno/qawno.exe**
10082

101-
<kbd>![](https://github.com/adib-yg/openmp-server-installation/blob/main/screenshots/Screenshot%20(5).png)</kbd>
83+
![](https://github.com/adib-yg/openmp-server-installation/blob/main/screenshots/Screenshot%20(5).png)
10284

10385
## Step 7
10486

10587
Press **CTRL + O** then go to the **../gamemodes** folder and open your gamemode `.pwn` file
10688

10789
## Step 8
10890

109-
Find
91+
Find
92+
11093
```pawn
11194
#include <a_samp>
11295
```
96+
11397
replace with
98+
11499
```pawn
115100
#include <open.mp>
116101
```
102+
117103
then press **F5** to compile.
118104

119105
:::note
@@ -126,21 +112,24 @@ If you are get error or warning, see [Compiler errors and warnings](#compiler-er
126112

127113
Open **[config.json](https://www.open.mp/docs/server/config.json)** file with Notepad or other IDEs
128114

129-
<kbd>![](https://github.com/adib-yg/openmp-server-installation/blob/main/screenshots/Screenshot%20(9).png)</kbd>
115+
![](https://github.com/adib-yg/openmp-server-installation/blob/main/screenshots/Screenshot%20(9).png)
130116

131117
## Step 10
132118

133119
Edit **config.json**
134120

135-
<kbd>![](https://github.com/adib-yg/openmp-server-installation/blob/main/screenshots/Screenshot%20(11).png)</kbd>
121+
![](https://github.com/adib-yg/openmp-server-installation/blob/main/screenshots/Screenshot%20(11).png)
136122

137123
Find
124+
138125
```json
139126
"main_scripts": [
140127
"gungame 1"
141128
],
142129
```
130+
143131
replace with
132+
144133
```json
145134
"main_scripts": [
146135
"your_gamemode_amx_file_name 1"
@@ -150,10 +139,13 @@ replace with
150139
<hr />
151140

152141
Find
142+
153143
```json
154144
"legacy_plugins": [],
155145
```
146+
156147
Specify required plugins
148+
157149
```json
158150
"legacy_plugins": [
159151
"crashdetect",
@@ -168,10 +160,13 @@ Specify required plugins
168160
<hr />
169161

170162
Find
163+
171164
```json
172165
"side_scripts": []
173166
```
167+
174168
Specify your filterscripts
169+
175170
```json
176171
"side_scripts": [
177172
"filterscripts/file_name"
@@ -181,14 +176,17 @@ Specify your filterscripts
181176
<hr />
182177

183178
Find
179+
184180
```json
185181
"rcon": {
186182
"allow_teleport": false,
187183
"enable": false,
188184
"password": "changeme1"
189185
},
190186
```
187+
191188
Enter strong password for rcon password:
189+
192190
```json
193191
"rcon": {
194192
"allow_teleport": false,
@@ -213,7 +211,7 @@ Run the server
213211

214212
Open the `omp-server.exe` program
215213

216-
<kbd>![](https://github.com/adib-yg/openmp-server-installation/blob/main/screenshots/Screenshot%20(10).png)</kbd>
214+
![](https://github.com/adib-yg/openmp-server-installation/blob/main/screenshots/Screenshot%20(10).png)
217215

218216
- **Linux**
219217

@@ -232,12 +230,15 @@ TogglePlayerControllable(playerid, 1);
232230
TogglePlayerControllable(playerid, true);
233231
```
234232

233+
<br />
234+
235235
```pawn
236236
TextDrawFont(textid, 1);
237237
// ->
238238
TextDrawFont(textid, TEXT_DRAW_FONT_1);
239239
```
240240

241+
<br />
241242

242243
```pawn
243244
GivePlayerWeapon(playerid, 4, 1);
@@ -261,7 +262,9 @@ But you can ignore it for now:
261262

262263
Press **CTRL + F** in qawno and replace all `TextDrawColor` to `TextDrawColour`
263264

264-
<kbd>![](https://github.com/adib-yg/openmp-server-installation/blob/main/screenshots/Screenshot%20(7).png)</kbd>
265+
![](https://github.com/adib-yg/openmp-server-installation/blob/main/screenshots/Screenshot%20(7).png)
266+
267+
<br />
265268

266269
Or if you prefer you can use the mixed spellings:
267270

@@ -313,6 +316,8 @@ public OnPlayerDeath(playerid, killerid, reason)
313316
public OnPlayerDeath(playerid, killerid, WEAPON:reason)
314317
```
315318

319+
<br />
320+
316321
```pawn
317322
public OnPlayerEditAttachedObject(playerid, response, index, modelid, boneid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ)
318323
// ->
@@ -332,7 +337,8 @@ Already included in `/qawno/upgrader` folder.
332337
:::
333338

334339
## Runtime errors and warnings
335-
```log
340+
341+
```
336342
[Info] Couldn't announce legacy network to open.mp list.
337343
[Info] [Server Error] Status: 406
338344
[Info] [Server Error] Message: {"error":"failed to query server: socket read timed out"}
@@ -347,7 +353,7 @@ Already included in `/qawno/upgrader` folder.
347353

348354
<hr />
349355

350-
```log
356+
```
351357
[Warning] Insufficient specifiers given to `format`: "?" < 1
352358
```
353359

@@ -366,6 +372,7 @@ format(string, sizeof(string), "OPEN%s", mp);
366372
```
367373

368374
## Useful documents
375+
369376
Check out the new scripting functions and callbacks: https://www.open.mp/docs/server/omp-functions
370377

371378
If you are completely new to Pawn programming: [readme-beginner](https://github.com/openmultiplayer/omp-stdlib/blob/master/documentation/readme-beginner.md)
@@ -377,6 +384,7 @@ If you are an expert at Pawn programming: [readme-expert](https://github.com/ope
377384
Blog post: [Porting to open.mp](https://www.open.mp/blog/porting)
378385

379386
## Help
387+
380388
If you still have issues running the server, please join the official open.mp Discord server: https://discord.gg/samp
381389

382390
Ask in [#openmp-support](https://discord.com/channels/231799104731217931/966398440051445790) channel.

0 commit comments

Comments
 (0)