diff --git a/frontend/docs/scripting/callbacks/OnDialogResponse.md b/frontend/docs/scripting/callbacks/OnDialogResponse.md index d1c05f6d0d5..c13dfd8bd95 100644 --- a/frontend/docs/scripting/callbacks/OnDialogResponse.md +++ b/frontend/docs/scripting/callbacks/OnDialogResponse.md @@ -1,7 +1,7 @@ --- title: OnDialogResponse sidebar_label: OnDialogResponse -description: This callback is called when a player responds to a dialog shown using ShowPlayerDialog. The response can be by clicking a button, pressing ENTER/ESC, or double-clicking a list item (in the case of a list-style dialog). +description: This callback is called when a player responds to a dialog shown using ShowPlayerDialog. tags: ["dialog"] --- diff --git a/frontend/docs/scripting/callbacks/OnPlayerEnterVehicle.md b/frontend/docs/scripting/callbacks/OnPlayerEnterVehicle.md index d45a6030642..5f3178e9194 100644 --- a/frontend/docs/scripting/callbacks/OnPlayerEnterVehicle.md +++ b/frontend/docs/scripting/callbacks/OnPlayerEnterVehicle.md @@ -17,6 +17,8 @@ This callback is called when a player starts to enter a vehicle, meaning the pla ## Returns +This callback does not handle returns. + It is always called first in filterscripts. ## Examples diff --git a/frontend/docs/scripting/callbacks/OnPlayerRequestDownload.md b/frontend/docs/scripting/callbacks/OnPlayerRequestDownload.md index 4b201d16cbe..fb794c2e9c6 100644 --- a/frontend/docs/scripting/callbacks/OnPlayerRequestDownload.md +++ b/frontend/docs/scripting/callbacks/OnPlayerRequestDownload.md @@ -11,11 +11,11 @@ tags: ["player"] This callback is called when a player request for custom model downloads. -| Name | Description | -| --------------------- | ---------------------------------------------------------- | -| playerid | The ID of the player that request custom model download. | -| DOWNLOAD_REQUEST:type | The [type](../resources/download-requests) of the request. | -| crc | The CRC checksum of custom model file. | +| Name | Description | +| --------------------- | ----------------------------------------------------------------------------------------------- | +| playerid | The ID of the player that request custom model download. | +| DOWNLOAD_REQUEST:type | The [type](../resources/download-requests) of the request. | +| crc | The [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) checksum of custom model file. | ## Returns @@ -68,6 +68,14 @@ The following callbacks might be useful, as they're related to this callback in - [OnPlayerFinishedDownloading](OnPlayerFinishedDownloading): This callback is called when a player finishes downloading custom models. +## Related Functions + +The following functions might be useful, as they're related to this callback in one way or another. + +- [FindModelFileNameFromCRC](../functions/FindModelFileNameFromCRC): Find an existing custom skin or simple object model file. +- [FindTextureFileNameFromCRC](../functions/FindTextureFileNameFromCRC): Find an existing custom skin or simple object texture file. +- [RedirectDownload](../functions/RedirectDownload): Redirect a player's custom AddCharModel or AddSimpleModel download to a specific HTTP webpage. + ## Related Resources - [Download Request Types](../resources/download-requests) diff --git a/frontend/docs/scripting/callbacks/OnPlayerRequestSpawn.md b/frontend/docs/scripting/callbacks/OnPlayerRequestSpawn.md index 821aae5c419..104d43a136a 100644 --- a/frontend/docs/scripting/callbacks/OnPlayerRequestSpawn.md +++ b/frontend/docs/scripting/callbacks/OnPlayerRequestSpawn.md @@ -15,6 +15,8 @@ This callback is called when a player attempts to spawn via class selection eith ## Returns +Returning 0 in this callback will prevent the player from spawning. + It is always called first in filterscripts so returning 0 there also blocks other scripts from processing it. ## Examples diff --git a/frontend/docs/scripting/callbacks/OnPlayerUpdate.md b/frontend/docs/scripting/callbacks/OnPlayerUpdate.md index 093e186e489..a188581242f 100644 --- a/frontend/docs/scripting/callbacks/OnPlayerUpdate.md +++ b/frontend/docs/scripting/callbacks/OnPlayerUpdate.md @@ -57,6 +57,8 @@ public OnPlayerWeaponChange(playerid, WEAPON:oldWeapon, WEAPON:newWeapon) } ``` +In this example you will probably also want to reset `gPlayerCurrentWeapon[playerid]` in [OnPlayerConnect](OnPlayerConnect). + **Example 2** ```c diff --git a/frontend/docs/scripting/callbacks/OnVehicleMod.md b/frontend/docs/scripting/callbacks/OnVehicleMod.md index 4a7633e2ac3..4c6884d56db 100644 --- a/frontend/docs/scripting/callbacks/OnVehicleMod.md +++ b/frontend/docs/scripting/callbacks/OnVehicleMod.md @@ -9,11 +9,11 @@ tags: ["vehicle"] This callback is called when a vehicle is modded. -| Name | Description | -| ----------- | ------------------------------------------------------- | -| playerid | The ID of the driver of the vehicle. | -| vehicleid | The ID of the vehicle which is modded. | -| componentid | The ID of the component which was added to the vehicle. | +| Name | Description | +| ----------- | -------------------------------------------------------------------------------------- | +| playerid | The ID of the driver of the vehicle. | +| vehicleid | The ID of the vehicle which is modded. | +| componentid | The [ID of the component](../resources/carcomponentid) which was added to the vehicle. | ## Returns diff --git a/frontend/docs/scripting/callbacks/OnVehiclePaintjob.md b/frontend/docs/scripting/callbacks/OnVehiclePaintjob.md index d2c59986aad..83312c33d59 100644 --- a/frontend/docs/scripting/callbacks/OnVehiclePaintjob.md +++ b/frontend/docs/scripting/callbacks/OnVehiclePaintjob.md @@ -13,7 +13,7 @@ This callback is called when a player previews a vehicle paintjob inside a mod s | ---------- | ---------------------------------------------------------------- | | playerid | The ID of the player that changed the paintjob of their vehicle. | | vehicleid | The ID of the vehicle that had its paintjob changed. | -| paintjobid | The ID of the new paintjob. | +| paintjobid | The ID of the new [paintjob](../resources/paintjobs). | ## Returns diff --git a/frontend/docs/scripting/functions/AddCharModel.md b/frontend/docs/scripting/functions/AddCharModel.md index f6f75f2fc8a..3ac4ad39a80 100644 --- a/frontend/docs/scripting/functions/AddCharModel.md +++ b/frontend/docs/scripting/functions/AddCharModel.md @@ -9,14 +9,14 @@ tags: ["custom skin", "char model"] ## Description -Adds a new custom character model for download. The model files will be stored in player's Documents\GTA San Andreas User Files\SAMP\cache under the Server IP and Port folder in a CRC-form file name. - -| Name | Description | -| ---------------------- | -------------------------------------------------------------------------------------------------------------- | -| baseid | The base skin model ID to use (behavior of the character & original character to use when download is failed). | -| newid | The new skin model ID ranged from 20001 to 30000 (10000 slots) to be used later with SetPlayerSkin | -| const dff[] | Name of the .dff model collision file located in models server folder by default (artpath setting). | -| const textureLibrary[] | Name of the .txd model texture file located in models server folder by default (artpath setting). | +Adds a new custom character model for download. The model files will be stored in player's Documents\GTA San Andreas User Files\SAMP\cache under the Server IP and Port folder in a [CRC-form](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) file name. + +| Name | Description | +| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | +| baseid | The base [skin model ID](../resources/skins) to use (behavior of the character & original character to use when download is failed). | +| newid | The new skin model ID ranged from 20001 to 30000 (10000 slots) to be used later with SetPlayerSkin | +| const dff[] | Name of the .dff model collision file located in models server folder by default (artpath setting). | +| const textureLibrary[] | Name of the .txd model texture file located in models server folder by default (artpath setting). | ## Returns diff --git a/frontend/docs/scripting/functions/AddSimpleModel.md b/frontend/docs/scripting/functions/AddSimpleModel.md index 75d58c8f210..12d13e78c3e 100644 --- a/frontend/docs/scripting/functions/AddSimpleModel.md +++ b/frontend/docs/scripting/functions/AddSimpleModel.md @@ -53,6 +53,7 @@ There are currently no restrictions on when you can call this function, but be a ## Related Functions +- [AddSimpleModelTimed](AddSimpleModelTimed): Adds a new custom simple object model for download, which is only visible during a set time of day. - [IsValidCustomModel](IsValidCustomModel): Checks if a custom model ID is valid. - [GetCustomModelPath](GetCustomModelPath): Get a custom model path. diff --git a/frontend/docs/scripting/functions/AddSimpleModelTimed.md b/frontend/docs/scripting/functions/AddSimpleModelTimed.md index 7f6b9ab43da..e6a36d4e7bc 100644 --- a/frontend/docs/scripting/functions/AddSimpleModelTimed.md +++ b/frontend/docs/scripting/functions/AddSimpleModelTimed.md @@ -55,6 +55,7 @@ There are currently no restrictions on when you can call this function, but be a ## Related Functions +- [AddSimpleModel](AddSimpleModel): Adds a new custom simple object model for download. - [IsValidCustomModel](IsValidCustomModel): Checks if a custom model ID is valid. - [GetCustomModelPath](GetCustomModelPath): Get a custom model path. diff --git a/frontend/docs/scripting/functions/CallLocalFunction.md b/frontend/docs/scripting/functions/CallLocalFunction.md index 8c6769eab94..f0bf9274101 100644 --- a/frontend/docs/scripting/functions/CallLocalFunction.md +++ b/frontend/docs/scripting/functions/CallLocalFunction.md @@ -32,6 +32,8 @@ If the function does not exist, returns 0. | `f` | Passes a floating point number. | | `s` | Passes a string. | +The values for the placeholders follow in the exact same order as parameters in the call. + ## Examples ```c diff --git a/frontend/docs/scripting/functions/CallRemoteFunction.md b/frontend/docs/scripting/functions/CallRemoteFunction.md index f98f5c6453b..f0d409adfac 100644 --- a/frontend/docs/scripting/functions/CallRemoteFunction.md +++ b/frontend/docs/scripting/functions/CallRemoteFunction.md @@ -30,6 +30,8 @@ The value that the last public function returned. | `f` | Passes a floating point number. | | `s` | Passes a string. | +The values for the placeholders follow in the exact same order as parameters in the call. + ## Examples ```c diff --git a/frontend/docs/scripting/functions/ClearAnimations.md b/frontend/docs/scripting/functions/ClearAnimations.md index 48ea8bc5c71..2e673652a91 100644 --- a/frontend/docs/scripting/functions/ClearAnimations.md +++ b/frontend/docs/scripting/functions/ClearAnimations.md @@ -1,7 +1,7 @@ --- title: ClearAnimations sidebar_label: ClearAnimations -description: Clears all animations for the given player (it also cancels all current tasks such as jetpacking, parachuting, entering vehicles, driving (removes player out of vehicle), swimming, etc). +description: Clears all animations for the given player. tags: ["player", "animation"] --- diff --git a/frontend/docs/scripting/functions/CreatePickup.md b/frontend/docs/scripting/functions/CreatePickup.md index 04430c6083a..9a73fb2b464 100644 --- a/frontend/docs/scripting/functions/CreatePickup.md +++ b/frontend/docs/scripting/functions/CreatePickup.md @@ -1,7 +1,7 @@ --- title: CreatePickup sidebar_label: CreatePickup -description: This function does exactly the same as AddStaticPickup, except it returns a pickup ID which can be used to destroy it afterwards and be tracked using OnPlayerPickUpPickup. +description: This function does exactly the same as AddStaticPickup, except it returns a pickup ID. tags: ["pickup"] --- diff --git a/frontend/docs/scripting/functions/EditAttachedObject.md b/frontend/docs/scripting/functions/EditAttachedObject.md index c760a57fb77..f183a12cd12 100644 --- a/frontend/docs/scripting/functions/EditAttachedObject.md +++ b/frontend/docs/scripting/functions/EditAttachedObject.md @@ -42,7 +42,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -There are 7 clickable buttons in edition mode. The three single icons that have X/Y/Z on them can be dragged to edit position/rotation/scale. The four buttons in a row are to select the edition mode and save edition: Move, Rotate, Scale and Save. +There are 7 clickable buttons in edition mode. The three single icons that have X/Y/Z on them can be dragged to edit position/rotation/scale. The four buttons in a row are to select the edition mode and save edition: Move, Rotate, Scale and Save. Clicking Save will call [OnPlayerEditAttachedObject](../callbacks/OnPlayerEditAttachedObject). ::: diff --git a/frontend/docs/scripting/functions/GetMaxPlayers.md b/frontend/docs/scripting/functions/GetMaxPlayers.md index 08332dce87b..55707e28353 100644 --- a/frontend/docs/scripting/functions/GetMaxPlayers.md +++ b/frontend/docs/scripting/functions/GetMaxPlayers.md @@ -1,7 +1,7 @@ --- title: GetMaxPlayers sidebar_label: GetMaxPlayers -description: Returns the maximum number of players that can join the server, as set by the server variable 'maxplayers' in server. +description: Returns the maximum number of players that can join the server, as set by the server variable 'max_players'. tags: ["player"] --- diff --git a/frontend/docs/scripting/functions/GetPVarType.md b/frontend/docs/scripting/functions/GetPVarType.md index 17a76e79c59..fb81ca2a794 100644 --- a/frontend/docs/scripting/functions/GetPVarType.md +++ b/frontend/docs/scripting/functions/GetPVarType.md @@ -16,7 +16,9 @@ Gets the type (integer, float or string) of a player variable. ## Returns -Returns the type of the PVar. See table below. +Returns the [type](../resources/pvartypes) of the PVar. + +Returns `PLAYER_VARTYPE_NONE` (0) if a player variable with the given name does not exist. ## Examples diff --git a/frontend/docs/scripting/functions/GetPlayerCameraTargetActor.md b/frontend/docs/scripting/functions/GetPlayerCameraTargetActor.md index 1dc2b8c0dc8..a8d60f45a8b 100644 --- a/frontend/docs/scripting/functions/GetPlayerCameraTargetActor.md +++ b/frontend/docs/scripting/functions/GetPlayerCameraTargetActor.md @@ -21,6 +21,8 @@ The ID of the actor the player is looking at. ## Examples +Actors perform a 'hands up' animation when aimed at: + ```c new bool:ActorHandsup[MAX_ACTORS]; @@ -63,7 +65,7 @@ public OnPlayerUpdate(playerid) :::tip -This function only tells you which actor (if any) the player is looking at. To find out if they are aiming at them, you need to use GetPlayerTargetActor. +This function only tells you which actor (if any) the player is looking at. To find out if they are aiming at them, you need to use [GetPlayerTargetActor](GetPlayerTargetActor). ::: diff --git a/frontend/docs/scripting/functions/GetPlayerIp.md b/frontend/docs/scripting/functions/GetPlayerIp.md index f10882583bc..eda3a613192 100644 --- a/frontend/docs/scripting/functions/GetPlayerIp.md +++ b/frontend/docs/scripting/functions/GetPlayerIp.md @@ -17,6 +17,10 @@ Get the specified player's IP address and store it in a string. ## Returns +The length of the player's IP address. + +**-1** if player specified doesn't exist. + The player's IP address is stored in the specified array. ## Examples diff --git a/frontend/docs/scripting/functions/GetPlayerKeys.md b/frontend/docs/scripting/functions/GetPlayerKeys.md index 451a1aff6de..d035c6945a1 100644 --- a/frontend/docs/scripting/functions/GetPlayerKeys.md +++ b/frontend/docs/scripting/functions/GetPlayerKeys.md @@ -22,6 +22,8 @@ The keys are stored in the specified variables. ## Examples +The following example shows how you can regularly check the up/down/left/right values using [OnPlayerUpdate](../callbacks/OnPlayerUpdate). + ```c public OnPlayerUpdate(playerid) { diff --git a/frontend/docs/scripting/functions/GetPlayerVersion.md b/frontend/docs/scripting/functions/GetPlayerVersion.md index 229a4d4ec12..702d46c1761 100644 --- a/frontend/docs/scripting/functions/GetPlayerVersion.md +++ b/frontend/docs/scripting/functions/GetPlayerVersion.md @@ -17,6 +17,10 @@ Returns the SA-MP client version, as reported by the player. ## Returns +The length of the player's client version. + +**0** if player specified doesn't exist. + The client version is stored in the specified array. ## Examples diff --git a/frontend/docs/scripting/functions/GetSVarType.md b/frontend/docs/scripting/functions/GetSVarType.md index ca2b7df97a9..aa46428bfc4 100644 --- a/frontend/docs/scripting/functions/GetSVarType.md +++ b/frontend/docs/scripting/functions/GetSVarType.md @@ -17,6 +17,8 @@ Gets the type (integer, float or string) of a server variable. Returns the [type](../resources/svartypes) of the SVar. +Returns `SERVER_VARTYPE_NONE` (0) if a server variable with the given name does not exist. + ## Examples ```c diff --git a/frontend/docs/scripting/functions/GetSVarsUpperIndex.md b/frontend/docs/scripting/functions/GetSVarsUpperIndex.md index 0bb49804473..d018c4b1d03 100644 --- a/frontend/docs/scripting/functions/GetSVarsUpperIndex.md +++ b/frontend/docs/scripting/functions/GetSVarsUpperIndex.md @@ -9,6 +9,10 @@ tags: ["server variable", "svar"] Each SVar (server-variable) has its own unique identification number for lookup, this function returns the highest ID. +## Returns + +The highest set SVar ID. + ## Examples ```c diff --git a/frontend/docs/scripting/functions/Kick.md b/frontend/docs/scripting/functions/Kick.md index f0d3e1a90e9..8d73a09ef18 100644 --- a/frontend/docs/scripting/functions/Kick.md +++ b/frontend/docs/scripting/functions/Kick.md @@ -1,7 +1,7 @@ --- title: Kick sidebar_label: Kick -description: Kicks a player from the server. They will have to quit the game and re-connect if they wish to continue playing. +description: Kicks a player from the server. tags: ["player", "administration"] --- diff --git a/frontend/docs/scripting/functions/SetActorInvulnerable.md b/frontend/docs/scripting/functions/SetActorInvulnerable.md index 68ed2dda364..cb8945c6a58 100644 --- a/frontend/docs/scripting/functions/SetActorInvulnerable.md +++ b/frontend/docs/scripting/functions/SetActorInvulnerable.md @@ -45,4 +45,6 @@ Once set invulnerable, the actor does not call [OnPlayerGiveDamageActor](../call ## Related Functions +- [CreateActor](CreateActor): Create an actor (static NPC). - [IsActorInvulnerable](IsActorInvulnerable): Check if an actor is invulnerable. +- [SetActorHealth](SetActorHealth): Set the health of an actor. diff --git a/frontend/docs/scripting/functions/SetObjectMaterialText.md b/frontend/docs/scripting/functions/SetObjectMaterialText.md index c58abadb22f..9063fd174b6 100644 --- a/frontend/docs/scripting/functions/SetObjectMaterialText.md +++ b/frontend/docs/scripting/functions/SetObjectMaterialText.md @@ -49,7 +49,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::tip -Color embedding can be used for multiple colors in the text. +[Color embedding](../resources/colorslist#color-embedding) can be used for multiple colors in the text. ::: diff --git a/frontend/docs/scripting/functions/SetTimerEx.md b/frontend/docs/scripting/functions/SetTimerEx.md index b6aba71a8db..a89db564dcd 100644 --- a/frontend/docs/scripting/functions/SetTimerEx.md +++ b/frontend/docs/scripting/functions/SetTimerEx.md @@ -21,6 +21,23 @@ Sets a timer to call a function after the specified interval. This variant ('Ex' The ID of the timer that was started. Timer IDs start at 1 and are never reused. +## Format Specifiers + +| Specifier | Meaning | +| --------- | -------------------------------------------------------------------------------- | +| `i` | Integer. | +| `d` | Integer. | +| `a` | Array. The next parameter must be an integer (`i` or `d`) with the array's size. | +| `s` | String. | +| `f` | Float. | +| `b` | Boolean (true/false). | + +:::note + +The array (`a`) and string (`s`) specifiers are unusable in SA-MP. Passing arrays and strings to timers is only supported in open.mp. + +::: + ## Examples ```c diff --git a/frontend/docs/scripting/functions/SetVehicleVelocity.md b/frontend/docs/scripting/functions/SetVehicleVelocity.md index fedf338b136..2faaae89238 100644 --- a/frontend/docs/scripting/functions/SetVehicleVelocity.md +++ b/frontend/docs/scripting/functions/SetVehicleVelocity.md @@ -49,3 +49,6 @@ This function has no affect on un-occupied vehicles and does not affect trains. ## Related Functions - [GetVehicleVelocity](GetVehicleVelocity): Get the velocity of a vehicle on the X, Y and Z axes. +- [SetVehicleAngularVelocity](SetVehicleAngularVelocity): Set the angular velocity of a vehicle. +- [SetPlayerVelocity](SetPlayerVelocity): Set a player's velocity. +- [GetPlayerVelocity](GetPlayerVelocity): Get a player's velocity. diff --git a/frontend/docs/scripting/functions/StartRecordingPlayback.md b/frontend/docs/scripting/functions/StartRecordingPlayback.md index 3b6c1362ed9..3865e7c105f 100644 --- a/frontend/docs/scripting/functions/StartRecordingPlayback.md +++ b/frontend/docs/scripting/functions/StartRecordingPlayback.md @@ -1,7 +1,7 @@ --- title: StartRecordingPlayback sidebar_label: StartRecordingPlayback -description: This will run a .rec file which has to be saved in the npcmodes/recordings folder. These files allow the NPC to follow certain actions. Their actions can be recorded manually. For more information, check the related functions. +description: This will run a .rec file which has to be saved in the npcmodes/recordings folder. tags: [] --- diff --git a/frontend/docs/scripting/functions/TextDrawColor.md b/frontend/docs/scripting/functions/TextDrawColor.md index 14e52602fcb..1df2cc4cab7 100644 --- a/frontend/docs/scripting/functions/TextDrawColor.md +++ b/frontend/docs/scripting/functions/TextDrawColor.md @@ -33,6 +33,12 @@ public OnGameModeInit() ## Notes +:::tip + +You can also use [GameText colors](../resources/gametextstyles) in textdraws (e.g. `~r~` `~g~` `~b~`). + +::: + :::note If the TextDraw is already shown, it must be re-shown ([TextDrawShowForAll](TextDrawShowForAll)/[TextDrawShowForPlayer](TextDrawShowForPlayer)) for the changes of this function to take effect. diff --git a/frontend/docs/scripting/functions/TextDrawCreate.md b/frontend/docs/scripting/functions/TextDrawCreate.md index b0acfabd7e9..4139461756b 100644 --- a/frontend/docs/scripting/functions/TextDrawCreate.md +++ b/frontend/docs/scripting/functions/TextDrawCreate.md @@ -7,7 +7,7 @@ tags: ["textdraw"] ## Description -Creates a textdraw. Textdraws are, as the name implies, text (mainly - there can be boxes, sprites and model previews (skins/vehicles/weapons/objects too) that is drawn on a player's screens. See this page for extensive information about textdraws. +Creates a textdraw. Textdraws are, as the name implies, text (mainly - there can be boxes, sprites and model previews (skins/vehicles/weapons/objects too) that is drawn on a player's screens. See [this page](../resources/textdraws) for extensive information about textdraws. | Name | Description | | ---------------- | -------------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/format.md b/frontend/docs/scripting/functions/format.md index 908a51158fa..ba22eaf9237 100644 --- a/frontend/docs/scripting/functions/format.md +++ b/frontend/docs/scripting/functions/format.md @@ -38,6 +38,8 @@ The values for the placeholders follow in the exact same order as parameters in You may optionally put a number between the `%` and the letter of the placeholder code. This number indicates the field width; if the size of the parameter to print at the position of the placeholder is smaller than the field width, the field is expanded with spaces. To cut the number of decimal places beeing shown of a float, you can add '.\' between the `%` and the `f`, i.e. `%.2f`. +You can also specify a variable field width or precision by using an asterisk (`*`) instead of the number, for example `%*d` or `%.*f`. The width or precision is then taken from an extra argument, passed right before the value it applies to. + ## Examples ```c diff --git a/frontend/docs/scripting/functions/printf.md b/frontend/docs/scripting/functions/printf.md index d63263a7b89..b02d73225c9 100644 --- a/frontend/docs/scripting/functions/printf.md +++ b/frontend/docs/scripting/functions/printf.md @@ -36,6 +36,8 @@ The values for the placeholders follow in the exact same order as parameters in You may optionally put a number between the `%` and the letter of the placeholder code. This number indicates the field width; if the size of the parameter to print at the position of the placeholder is smaller than the field width, the field is expanded with spaces. To cut the number of decimal places beeing shown of a float, you can add '.\' between the `%` and the `f`, i.e. `%.2f`. +You can also specify a variable field width or precision by using an asterisk (`*`) instead of the number, for example `%*d` or `%.*f`. The width or precision is then taken from an extra argument, passed right before the value it applies to. + ## Examples ```c diff --git a/frontend/docs/scripting/language/ControlStructures.md b/frontend/docs/scripting/language/ControlStructures.md index 63b204d4442..268b0bdb8b8 100644 --- a/frontend/docs/scripting/language/ControlStructures.md +++ b/frontend/docs/scripting/language/ControlStructures.md @@ -709,3 +709,10 @@ MyFunction(num) return 0; } ``` + +## See also + +- [Keywords: Statements](Statements) +- [Keywords: Operators](Operators) +- [Keywords: Directives](Directives) +- [Keywords: Initialisers](Initialisers) diff --git a/frontend/docs/scripting/language/Directives.md b/frontend/docs/scripting/language/Directives.md index c9030d75a75..bdbea736db1 100644 --- a/frontend/docs/scripting/language/Directives.md +++ b/frontend/docs/scripting/language/Directives.md @@ -76,6 +76,20 @@ Another little known fact about defines is that they can be multi-line if you es new i = 0; i < MAX_PLAYERS; i++) \ if (IsPlayerConnected(i) +for (PL) +{ + printf("%d connected", i); +} +``` + +The `\` character means the define continues onto a new line. + +The third major characteristic of defines is their ability to have what are effectively parameters. These are `%0` to `%9` and behave very similarly to normal parameters: + +```c +#define MOO(%0) \ + ((%0) * 7) + printf("%d", MOO(6)); ``` @@ -110,7 +124,7 @@ Which, due to the order of operations, compules as (5 + (6 \* 7)), whiche is 47 ```c #define PP(%0,%1) \ - printf(%0, %1) + printf(#%0, %1) PP(%s %s %s, "hi", "hello", "hi"); ``` diff --git a/frontend/docs/scripting/language/Initialisers.md b/frontend/docs/scripting/language/Initialisers.md index cf3cbeb0425..87f5a1f90d2 100644 --- a/frontend/docs/scripting/language/Initialisers.md +++ b/frontend/docs/scripting/language/Initialisers.md @@ -123,7 +123,7 @@ enum E_EXAMPLE (*= 2) } ``` -In this all the values are 0. Why? Well the first value by default is 0, then 0 _ 2 = 0, then 0 _ 2 = 0 and 0 \* 2 = 0. So how do we correct this? This is what custom values are for: +In this all the values are 0. Why? Well the first value by default is 0, then 0 \* 2 = 0, then 0 \* 2 = 0 and 0 \* 2 = 0. So how do we correct this? This is what custom values are for: ```c enum E_EXAMPLE (*= 2) @@ -417,7 +417,7 @@ Note the forward includes the return tag too. A native function is one defined in the virtual machine (i.e. the thing which runs the script), not in the script itself. You can only define native functions if they're coded into SA:MP or a plugin, however you can create fake natives. Because the native functions from .inc files are detected by pawno and listed in the box on the right hand side of pawno it can be useful to use native to get your own custom functions listed there. A normal native declaration could look like: ```c -native printf(const format[], \{Float, _\}:...); +native printf(const format[], {Float, _}:...); ``` If you want your own functions to appear without being declared native you can do: @@ -580,6 +580,7 @@ main() BigEndian:a = 7, BigEndian:b = 199; printf("%d", _:(a + b)); +} ``` Will simply give 42, nothing to do with addition. diff --git a/frontend/docs/scripting/language/Statements.md b/frontend/docs/scripting/language/Statements.md index bebe6ada60b..e59f4629d67 100644 --- a/frontend/docs/scripting/language/Statements.md +++ b/frontend/docs/scripting/language/Statements.md @@ -366,6 +366,7 @@ printf("This will be printed"); The compiler however doesn't handle goto very well so that will not be optimised at all and things like: ```c +stock MyFunction() { new i = 5; @@ -435,7 +436,17 @@ if (i < 10) The conditions if can take are way too many for this post however some are listed below: -Operator Explanation Example Result when a=1, b=0 Result when a=1, b=1 Result when a=0, b=1 Result when a=0, b=0 == Checks if one thing is equal to another if (a == b) false true false true != Checks if one thing is not the same as another if (a != b) true false true false < Checks if one thing is less than another if (a < b) false false true false > Checks if one thing is greater than another if (a > b) true false false false \<= Checks if one thing is less than or equal to another if (a \<= b) false true true true >= Checks if one thing is greater than or equal to another if (a >= b) true true false true && Checks if two things are true (not 0) if (a && b) false true false false || Checks if at least one of two things are true (not 0) if (a || b) true true true false ! Checks if something is false if (!(a == b)) true false true false +| Operator | Explanation | Example | Result when a=1, b=0 | Result when a=1, b=1 | Result when a=0, b=1 | Result when a=0, b=0 | +| -------- | ------------------------------------------------------- | ---------------- | -------------------- | -------------------- | -------------------- | -------------------- | +| `==` | Checks if one thing is equal to another | `if (a == b)` | false | true | false | true | +| `!=` | Checks if one thing is not the same as another | `if (a != b)` | true | false | true | false | +| `<` | Checks if one thing is less than another | `if (a < b)` | false | false | true | false | +| `>` | Checks if one thing is greater than another | `if (a > b)` | true | false | false | false | +| `<=` | Checks if one thing is less than or equal to another | `if (a <= b)` | false | true | true | true | +| `>=` | Checks if one thing is greater than or equal to another | `if (a >= b)` | true | true | false | true | +| `&&` | Checks if two things are true (not 0) | `if (a && b)` | false | true | false | false | +| `\|\|` | Checks if at least one of two things are true (not 0) | `if (a \|\| b)` | true | true | true | false | +| `!` | Checks if something is false | `if (!(a == b))` | true | false | true | false | Obviously with these you can build up complex conditionals: diff --git a/frontend/docs/scripting/language/Style.md b/frontend/docs/scripting/language/Style.md index e169eb07600..f2edafa4779 100644 --- a/frontend/docs/scripting/language/Style.md +++ b/frontend/docs/scripting/language/Style.md @@ -1,7 +1,7 @@ --- title: "Pawn Style Guide" sidebar_label: "Pawn Style Guide" -description: A short guide on the generally accepted naming conventions and other aspects of Pawn source code to aid easier communication of intent and streamline debugging and sharing of code. +description: A short guide on the generally accepted naming conventions and other aspects of Pawn source code. --- This document is a short guide on the generally accepted naming conventions and other aspects of Pawn source code to aid easier communication of intent and streamline debugging and sharing of code. diff --git a/frontend/docs/scripting/resources/colorslist.md b/frontend/docs/scripting/resources/colorslist.md index ff0ac7aca42..7bbadb269a9 100644 --- a/frontend/docs/scripting/resources/colorslist.md +++ b/frontend/docs/scripting/resources/colorslist.md @@ -1,7 +1,7 @@ --- title: Color List sidebar_label: Color List -description: Colors are everywhere in SA-MP - vehicles, player names and blips, textdraws, gametext, chat, 3D texts and dialogs (as color embedding)! Below you can find information about these different things. +description: Colors are everywhere in SA-MP - vehicles, player names and blips, textdraws, gametext, chat, 3D texts and dialogs (as color embedding)! --- ## Chat text and player color @@ -202,3 +202,9 @@ Now these colors are pretty dark. You can make them brighter by using **`~h~`** ``` ![Image:Blueandred2.png](https://assets.open.mp/assets/images/colorList/Blueandred2.png) + +--- + +## Vehicle Color IDs + +There is a full list of [vehicle color IDs](vehiclecolorid). You can find the colors used in single player for each car on the [Original Car Colors](original-car-colors) page. diff --git a/frontend/docs/scripting/resources/gametextstyles.md b/frontend/docs/scripting/resources/gametextstyles.md index 43be253d54c..17f2552c418 100644 --- a/frontend/docs/scripting/resources/gametextstyles.md +++ b/frontend/docs/scripting/resources/gametextstyles.md @@ -57,6 +57,7 @@ Unlike text colors, these slugs do not require encapsulation. They can be used a | `~d~` | Down arrow (gray) | | `~<~` | Left arrow (gray) | | `~>~` | Right arrow (gray) | +| `~t~` | Rectangle | | `~]~` | Displays a `*` symbol (Only in text styles 3, 4 and 5) | | `~k~` | Keyboard key mapping (e.g. `~k~~VEHICLE_TURRETLEFT~` and `~k~~PED_FIREWEAPON~`). Look [here](keys) for a list of keys. | diff --git a/frontend/docs/scripting/resources/glossary.md b/frontend/docs/scripting/resources/glossary.md index 91eb1916e66..7e348a9848b 100644 --- a/frontend/docs/scripting/resources/glossary.md +++ b/frontend/docs/scripting/resources/glossary.md @@ -7,18 +7,23 @@ tags: [] ## Scripting -| Word | Meaning | -| ------------ | ------------------------------------------------------------------------------------------------------- | -| PAWN | The scripting language used to make SA:MP and open.mp scripts | -| Gamemode | The main script that runs on a server | -| Filterscript | Scripts that run alongside gamemodes | -| Plugin | Extra functions/capabilities added through a .dll (Windows) or .so (Linux) file | -| Component | The open.mp equivalent of a plugin, loaded from the `components` folder | -| Include | Pieces of script placed in .inc files to be included in Filterscripts/Gamemodes using `#include ` | -| Native | A function provided by the server or a plugin that can be called from PAWN | -| Callback | A function automatically called by the server when a specific event occurs (e.g. OnPlayerConnect) | -| AMX | The compiled file (.amx) produced from a .pwn source file, which the server actually runs | -| Tick | One millisecond of server time, as counted by [GetTickCount](../functions/GetTickCount) | +| Word | Meaning | +| ------------ | --------------------------------------------------------------------------------------------------------------------------------- | +| PAWN | The scripting language used to make SA:MP and open.mp scripts | +| Script | The code that tells the server what to do | +| Scripter | A person who writes scripts | +| Gamemode | The main script that runs on a server, often shortened to GM | +| Filterscript | Scripts that run alongside gamemodes, often shortened to FS | +| Plugin | Extra functions/capabilities added through a .dll (Windows) or .so (Linux) file | +| Component | The open.mp equivalent of a plugin, loaded from the `components` folder | +| Streamer | A plugin or script that allows you to go past some of the server's [limits](limits) by dynamically loading and unloading entities | +| Include | Pieces of script placed in .inc files to be included in Filterscripts/Gamemodes using `#include ` | +| Function | A named section of a script that performs a specific task | +| Native | A function provided by the server or a plugin that can be called from PAWN | +| Callback | A function automatically called by the server when a specific event occurs (e.g. OnPlayerConnect) | +| AMX | The compiled file (.amx) produced from a .pwn source file, which the server actually runs | +| Tick | One millisecond of server time, as counted by [GetTickCount](../functions/GetTickCount) | +| INI | A file format (.ini) often used by scripts to store data, most commonly user/player data | ## Tools @@ -27,24 +32,30 @@ tags: [] | Pawno | The original SA:MP script editor for PAWN, Windows only and unmaintained | | [Qawno](https://github.com/openmultiplayer/qawno) | The script editor that ships with open.mp, and the replacement for Pawno | | Pawncc | The compiler that compiles .pwn to .amx | +| MySQL | Database software often used together with SA:MP and open.mp servers | ## Networking -| Word | Meaning | -| ---------- | -------------------------------------------------------------------------------------------------------------------- | -| Client | The game application used by players to connect to a multiplayer server | -| Server | The application that hosts a multiplayer game and manages connected clients | -| Masterlist | The public list of running servers, which servers announce themselves to and clients read to fill the server browser | -| Sync | The process of keeping the game state consistent between the server and connected clients | -| Desync | A situation where the game state differs between the server and one or more clients | -| Ping | The round-trip time for data to travel between a client and the server, measured in milliseconds | +| Word | Meaning | +| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Client | The game application used by players to connect to a multiplayer server | +| Server | The application that hosts a multiplayer game and manages connected clients | +| Masterlist | The public list of running servers, which servers announce themselves to and clients read to fill the server browser | +| Sync | The process of keeping the game state consistent between the server and connected clients | +| Desync | A situation where the game state differs between the server and one or more clients | +| Ping | The round-trip time for data to travel between a client and the server, measured in milliseconds | +| Lag | Either FPS lag, when a player's framerate drops, or network lag, when other players are seen with a delay because their sync takes time to travel over the internet | ## Entities -| Word | Meaning | -| ----- | ------------------------------------------------------------------------------------------------------------------ | -| NPC | A non-player character that connects to the server like a player and is driven by a script, and uses a player slot | -| Actor | A static non-player character used for decoration or interaction, such as a cashier, that uses no player slot | +| Word | Meaning | +| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | +| NPC | A non-player character that connects to the server like a player and is driven by a script, and uses a player slot. Sometimes referred to as a bot | +| Actor | A static non-player character used for decoration or interaction, such as a cashier, that uses no player slot | +| Pickup | An object that can be picked up by walking into it, see [CreatePickup](../functions/CreatePickup) | +| [Textdraw](textdraws) | Text drawn on a player's screen, often shortened to TD, see [TextDrawCreate](../functions/TextDrawCreate) | +| Dialog | A dialog box shown to a player, see [ShowPlayerDialog](../functions/ShowPlayerDialog) | +| Map | A set of objects placed together in the game world | ## Common gamemode types diff --git a/frontend/docs/scripting/resources/mapicons.md b/frontend/docs/scripting/resources/mapicons.md index 0a555adb535..3878ecb91f0 100644 --- a/frontend/docs/scripting/resources/mapicons.md +++ b/frontend/docs/scripting/resources/mapicons.md @@ -59,7 +59,7 @@ Map icon ID 1, 2, 4, and 56 will cause your game to crash if you have map legend | 38 | ![](https://assets.open.mp/assets/images/mapIcons/icon38.gif) | Sweet | | | 39 | ![](https://assets.open.mp/assets/images/mapIcons/icon39.gif) | Tattoo | | | 40 | ![](https://assets.open.mp/assets/images/mapIcons/icon40.gif) | The Truth | | -| 41 | ![](https://assets.open.mp/assets/images/mapIcons/icon41.gif) | Waypoint | Can be placed by players on the pause menu map by right-clicking | +| 41 | ![](https://assets.open.mp/assets/images/mapIcons/icon41.gif) | Waypoint | Can be placed by players on the pause menu map by right-clicking ([OnPlayerClickMap](../callbacks/OnPlayerClickMap)) | | 42 | ![](https://assets.open.mp/assets/images/mapIcons/icon42.gif) | Toreno's Ranch | | | 43 | ![](https://assets.open.mp/assets/images/mapIcons/icon43.gif) | Triads | | | 44 | ![](https://assets.open.mp/assets/images/mapIcons/icon44.gif) | Triads Casino | | diff --git a/frontend/docs/scripting/resources/mapiconstyles.md b/frontend/docs/scripting/resources/mapiconstyles.md index 6ab0a6bea56..027ab6c0763 100644 --- a/frontend/docs/scripting/resources/mapiconstyles.md +++ b/frontend/docs/scripting/resources/mapiconstyles.md @@ -16,3 +16,9 @@ This page has a list of all map icon styles which can be used by [SetPlayerMapIc | 1 | MAPICON_GLOBAL | No | Show on radar edge as long as in range | | 2 | MAPICON_LOCAL_CHECKPOINT | Yes | Close proximity only | | 3 | MAPICON_GLOBAL_CHECKPOINT | Yes | Show on radar edge as long as in range | + +:::note + +The checkpoint styles also show a checkpoint-like marker in the game world at the icon's position, so remember to use a correct Z coordinate (not just X and Y) when using them. + +::: diff --git a/frontend/docs/scripting/resources/networkstats.md b/frontend/docs/scripting/resources/networkstats.md index ffabdd3c8ae..e5f840f45ad 100644 --- a/frontend/docs/scripting/resources/networkstats.md +++ b/frontend/docs/scripting/resources/networkstats.md @@ -5,6 +5,8 @@ description: Information seen when holding down F5 when connected to a server. tags: [] --- +This page breaks down the **Client Network Statistics**, the information seen when holding down F5 while connected to a server. + | Data | **Description** | | -------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | | Download Rate | The rate at which data is being downloaded from the server. | @@ -15,7 +17,7 @@ tags: [] | RWObjects | Number of rendered objects. | | PedSlotsUsed | Number of ped slots used (NPCs/players use a 'ped' slot). | | ObjectSlotsUsed | Object slots used. | -| OnFoot Send Rate | The rate (in MS) at which on-foot data is being synced. Can be set in server.cfg. | +| OnFoot Send Rate | The rate (in MS) at which on-foot data is being synced. Can be set in [config.json](../../server/config.json). | | Streaming Mem (Memory) Used (Also shows total allowance) | The amount of streaming memory being used, and total available. | | Messages in Send buffer | The number of network messages waiting to be sent. | | Messages sent | The number of network messages sent. | diff --git a/frontend/docs/scripting/resources/pickuptypes.md b/frontend/docs/scripting/resources/pickuptypes.md index 7f65c153953..087a529d1b7 100644 --- a/frontend/docs/scripting/resources/pickuptypes.md +++ b/frontend/docs/scripting/resources/pickuptypes.md @@ -7,7 +7,7 @@ sidebar_label: "Pickup Types" :::note -- These pickup types are used by [CreatePickup](../functions/CreatePickup) and [CreatePlayerPickup](../functions/CreatePlayerPickup). +- These pickup types are used by [AddStaticPickup](../functions/AddStaticPickup), [CreatePickup](../functions/CreatePickup) and [CreatePlayerPickup](../functions/CreatePlayerPickup). - Most other IDs are either undocumented or are similar to type 1 (but do not use them just because they seem similar to ID 1, they might have side-effects like ID 18 and 20). ::: diff --git a/frontend/docs/scripting/resources/skins.md b/frontend/docs/scripting/resources/skins.md index 39296242feb..ea922627b69 100644 --- a/frontend/docs/scripting/resources/skins.md +++ b/frontend/docs/scripting/resources/skins.md @@ -8,6 +8,14 @@ description: This page has all the available skins in SA-MP. This page contains every available skin used by [SetPlayerSkin](../functions/SetPlayerSkin) and [GetPlayerSkin](../functions/GetPlayerSkin) functions. +There are 311 skins available (IDs 0 to 311, except the invalid ID 74), including skins for public services like the police, firemen and ambulance personnel, but also many different gangs, people from specific professions and normal pedestrians. + +:::note + +Though some skins are listed as skins used in a certain profession such as 'taxi driver', they may still appear elsewhere in singleplayer as a normal pedestrian. + +::: + | Skin ID | Preview | Skin Model Name | Skin Name/Type | Singleplayer Location | Gender | | ------- | ------------------------------------------------------------------ | --------------- | ---------------------------------------- | -------------------------------------------------- | ------ | | 0 | ![Skin ID 0](https://assets.open.mp/assets/images/skins/0.png) | cj | Carl "CJ" Johnson (Main Character) | Anywhere | Male | diff --git a/frontend/docs/scripting/resources/start.md b/frontend/docs/scripting/resources/start.md index b61360acdb1..7e1760d1b81 100644 --- a/frontend/docs/scripting/resources/start.md +++ b/frontend/docs/scripting/resources/start.md @@ -354,7 +354,7 @@ myArray[2]++; ### Example -As mentioned above a common type of array is the MAX_PLAYERS array. MAX_PLAYERS is not a variable, it's a define which is explained later, but for now accept that it is a constant number equal to the max number of players a server can hold (this by default is 500, even if you change the number in your server.cfg file). The following code uses normal variables to hold data for 4 players and do something with those players in a function (for simplicity's sake assume MAX_PLAYERS is 4 for now): +As mentioned above a common type of array is the MAX_PLAYERS array. MAX_PLAYERS is not a variable, it's a define which is explained later, but for now accept that it is a constant number equal to the max number of players a server can hold (this by default is 500, even if you change the number in your config.json file). The following code uses normal variables to hold data for 4 players and do something with those players in a function (for simplicity's sake assume MAX_PLAYERS is 4 for now): ```c new @@ -710,3 +710,16 @@ MyFunc2() ``` static can also be applied to functions in the same way. + +# Control Structures + +Control structures determine program flow. They can execute code or not based on the contents of variables, the returns of functions and other things. They can also do things repeatedly if need be. See [Control Structures](../language/ControlStructures) for more information. + +# Keywords + +The keywords of the language are covered in the following pages: + +- [Directives](../language/Directives) +- [Initialisers](../language/Initialisers) +- [Operators](../language/Operators) +- [Statements](../language/Statements) diff --git a/frontend/docs/scripting/resources/startingids.md b/frontend/docs/scripting/resources/startingids.md index d4c35de29a2..6e19656d6f8 100644 --- a/frontend/docs/scripting/resources/startingids.md +++ b/frontend/docs/scripting/resources/startingids.md @@ -1,7 +1,7 @@ --- title: Starting IDs sidebar_label: Starting IDs -description: Everything like objects, players or vehicles use IDs. Some IDs start with 0, others start with 1. +description: Everything like objects, players or vehicles use IDs. --- This page contains all of the starting IDs for numerous entities. diff --git a/frontend/docs/server/CommonServerIssues.md b/frontend/docs/server/CommonServerIssues.md index 1b103a32bd5..c7f9b9d22d1 100644 --- a/frontend/docs/server/CommonServerIssues.md +++ b/frontend/docs/server/CommonServerIssues.md @@ -5,7 +5,7 @@ sidebar_label: Common Server Issues ## Server instantly crashes when started -Most commonly it's an error in your server.cfg file or your gamemode is missing. Check the server_log.txt file and the reason should be located at the bottom. If not, check crashinfo.txt file. The better solution to find out what is causing the crash is using the Crash detect plugin by Zeex/0x5A656578 ([click for link](https://github.com/AmyrAhmady/samp-plugin-crashdetect)) which will give more information like line numbers, function names, parameter values, etc. If the script is compiled in debug mode (-d3 flag) to make compiler put extra information about all that stuff into the output .amx. +Most commonly it's an error in your config.json file or your gamemode is missing. Check the log.txt file and the reason should be located at the bottom. If not, check crashinfo.txt file. The better solution to find out what is causing the crash is using the Crash detect plugin by Zeex/0x5A656578 ([click for link](https://github.com/AmyrAhmady/samp-plugin-crashdetect)) which will give more information like line numbers, function names, parameter values, etc. If the script is compiled in debug mode (-d3 flag) to make compiler put extra information about all that stuff into the output .amx. ## Server is not working - firewall is disabled diff --git a/frontend/docs/server/ControllingServer.md b/frontend/docs/server/ControllingServer.md index 041a30b9d74..cb4ce70a46d 100644 --- a/frontend/docs/server/ControllingServer.md +++ b/frontend/docs/server/ControllingServer.md @@ -18,14 +18,26 @@ description: Useful commands for controlling a server. The same as running a custom gamemode, except: - Place the .amx in a folder called `filterscripts` -- Add the following to server.cfg: `filterscripts ` +- Add the filterscript path without the `.amx` extension to `pawn.side_scripts` in [config.json](config.json): + +```json +{ + "pawn": { + "side_scripts": [ + "filterscripts/scriptname" + ] + } +} +``` ## Passwording your server -- If you want to add a password so only your friends can join, add this to [server.cfg](server.cfg): +- If you want to add a password so only your friends can join, add this to [config.json](config.json): -``` -password whatever +```json +{ + "password": "whatever" +} ``` - This will make your server password-protected with the password set as 'whatever' - change it to whatever you want. @@ -38,34 +50,40 @@ password whatever You can log in either while ingame by typing `/rcon login password` or out of game by using the RCON mode in the [Remote Console](RemoteConsole). -The password is the same as what you set it as in [server.cfg](server.cfg) +Use the `rcon.password` value from [config.json](config.json) when logging in. ### Adding Bans -##### samp.ban +A ban prevents an IP address from connecting to the server. -samp.ban is the file used for storing bans, including the following information about the ban: +##### bans.json + +bans.json is the file used for storing bans, including the following information about the ban: - IP - Date - Time -- Name (Name of person or a reason, see [BanEx](../scripting/functions/BanEx)) -- Type of ban +- Name (Name of person) +- Reason (see [BanEx](../scripting/functions/BanEx)) -To add a ban, simply add a line like so: +To add a ban, simply add an object to the JSON array like so: -``` -IP_HERE [28/05/09 | 13:37:00] PLAYER - BAN REASON +```json +[ + {"address": "IP_HERE", "player": "PLAYER", "reason": "BAN REASON", "time": "2009-05-28T13:37:00+0000"} +] ``` -Where `IP_HERE` is, is where you put the IP you would like to ban. +Where `IP_HERE` is, is where you put the IP you would like to ban. This method takes longer than the RCON `banip` command, so using `banip` is recommended. ##### Ban() function The [Ban](../scripting/functions/Ban) function can be used to ban a player from a script. The [BanEx](../scripting/functions/BanEx) function will add an optional reason like so: -``` -13.37.13.37 [28/05/09 | 13:37:00] Cheater - INGAME BAN +```json +[ + {"address": "13.37.13.37", "player": "Cheater", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` ##### RCON ban command @@ -100,27 +118,29 @@ banip IP Once somebody is banned, there are two ways to unban them. -- Remove from samp.ban +- Remove from bans.json - The RCON `unbanip` command -#### samp.ban +#### bans.json -samp.ban can be found in your sa-mp server directory, it contains lines with the following information about each ban: +bans.json can be found in your open.mp server directory, it contains objects with the following information about each ban: - IP - Date - Time -- Name (Name of person or a reason (see [BanEx](../scripting/functions/BanEx))) -- Type of ban (INGAME, IP BAN etc,) +- Name (Name of person) +- Reason (see [BanEx](../scripting/functions/BanEx)) Examples: -``` -127.8.57.32 [13/06/09 | 69:69:69] NONE - IP BAN -13.37.13.37 [28/05/09 | 13:37:00] Kyeman - INGAME BAN +```json +[ + {"address": "127.8.57.32", "player": "NONE", "reason": "IP BAN", "time": "2009-06-13T13:37:00+0000"}, + {"address": "13.37.13.37", "player": "Kyeman", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` -To unban them, simply remove the line, then execute the RCON reloadbans command to make the server re-read samp.ban. +To unban them, simply remove the object, then execute the RCON reloadbans command to make the server re-read bans.json. #### unbanip @@ -128,8 +148,10 @@ The RCON unbanip command can be used in-game or from the server console (black b Example: -``` -13.37.13.37 [28/05/09 | 13:37:00] Kyeman - INGAME BAN +```json +[ + {"address": "13.37.13.37", "player": "Kyeman", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` ``` @@ -140,51 +162,53 @@ Example: unbanip 13.37.13.37 ``` -To unban them, simply use the `unbanip` command, then execute the RCON `reloadbans` command to make the server re-read samp.ban. +To unban them, simply use the `unbanip` command. #### reloadbans -`samp.ban` is a file that holds the information for the IP's that are currently banned from the server. This file is read when the server is started, so if you unban an IP/person you MUST type the RCON `reloadbans` command to make the server read `samp.ban` again and allow them to join the server. +`bans.json` is a file that holds the information for the IP's that are currently banned from the server. This file is read when the server is started, so if you unban an IP/person by editing the file you MUST type the RCON `reloadbans` command to make the server read `bans.json` again and allow them to join the server. ### RCON Commands Type cmdlist for commands (or, varlist for variables) making use of the RCON in-game (`/rcon cmdlist`). +You do not need to type the `[ ]` brackets; they are just there to highlight the parameter. + These are the functions that you as admin can use: -| Command | Description | -| --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `/rcon cmdlist` | Shows a list with commands. | -| `/rcon varlist` | Shows a list with the current variables. | -| `/rcon exit` | Closes the server. | -| `/rcon echo [text]` | Shows the `[text]` in the console of the server (NOT the client-console in-game). | -| `/rcon hostname [name]` | change the hostname text (_example: /rcon hostname my server_). | -| `/rcon gamemodetext [name]` | change the gamemode text (_example: /rcon gamemodetext my gamemode_). | -| `/rcon mapname [name]` | change the map name text (_example: /rcon mapname San Andreas_). | -| `/rcon exec [filename]` | Executes the file which contains server cfg (_example: /rcon exec blah.cfg_). | -| `/rcon kick [ID]` | Kick the player with the given ID (_example: /rcon kick 2_). | -| `/rcon ban [ID]` | Ban the player with the given ID (_example: /rcon ban 2_). | -| `/rcon changemode [mode]` | This command will change the current gamemode to the given one (_example: if you want to play sftdm: /rcon changemode sftdm_). | -| `/rcon gmx` | Will load the next gamemode in [server.cfg](server.cfg). | -| `/rcon reloadbans` | Reloads the `samp.ban` file where the banned IP addresses are stored. Should be used after unbanning and IP address. | -| `/rcon reloadlog` | Reloads the `server_log.txt`. Useful for automatic log rotation. Can be triggered by sending the `SIGUSR1` signal to the server (Linux server only). | -| `/rcon say` | shows a message to the players in the client-console (example: `/rcon say hello` will show as `Admin: hello`). | -| `/rcon players` | Shows the players that are in the server (with their name, IP & ping). | -| `/rcon banip [IP]` | Ban the given IP (_example: /rcon banip 127.0.0.1_). | -| `/rcon unbanip [IP]` | Unban the given IP (_example: /rcon unbanip 127.0.0.1_). | -| `/rcon gravity` | Changes the gravity (_example: /rcon gravity 0.008_). | -| `/rcon weather [ID]` | Changes the weather (_example: /rcon weather 1_). | -| `/rcon loadfs` | Loads the given filterscript (_example: /rcon loadfs adminfs_). | -| `/rcon weburl [server url]` | Changes the server URL in the masterlists/SA-MP client | -| `/rcon unloadfs` | Unload the given filterscript (_example: /rcon unloadfs adminfs_). | -| `/rcon reloadfs` | Reloads the given filterscript (_example: /rcon reloadfs adminfs_). | -| `/rcon rcon\_password [PASSWORD]` | Change the rcon's password | -| `/rcon password [password]` | Sets/resets the server password | -| `/rcon messageslimit [count]` | Change the number of messages per second a client sends to the server. (default 500) | -| `/rcon ackslimit [count]` | Change the limit of acks (default 3000) | -| `/rcon messageholelimit [count]` | Change the limit of message holes (default 3000) | -| `/rcon playertimeout [limit m/s]` | Change the time in milliseconds until a player timeouts when not sending any packets. (default 1000) | -| `/rcon language [language]` | Change the server language (_example: /rcon language English_). Shown in server browser. | +| Command | Description | +| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | +| `/rcon cmdlist` | Shows a list with commands. | +| `/rcon varlist` | Shows a list with the current variables. | +| `/rcon exit` | Closes the server. | +| `/rcon echo [text]` | Shows the `[text]` in the console of the server (NOT the client-console in-game). | +| `/rcon hostname [name]` | change the hostname text (_example: /rcon hostname my server_). | +| `/rcon gamemodetext [name]` | change the gamemode text (_example: /rcon gamemodetext my gamemode_). | +| `/rcon mapname [name]` | change the map name text (_example: /rcon mapname San Andreas_). | +| `/rcon exec [filename]` | Executes the file which contains server cfg (_example: /rcon exec blah.cfg_). | +| `/rcon kick [ID]` | Kick the player with the given ID (_example: /rcon kick 2_). | +| `/rcon ban [ID]` | Ban the player with the given ID (_example: /rcon ban 2_). | +| `/rcon changemode [mode]` | This command will change the current gamemode to the given one (_example: if you want to play sftdm: /rcon changemode sftdm_). | +| `/rcon gmx` | Will load the next gamemode in [config.json](config.json). | +| `/rcon reloadbans` | Reloads the `bans.json` file where the banned IP addresses are stored. Should be used after unbanning and IP address by editing the file. | +| `/rcon reloadlog` | Reloads the `log.txt`. Useful for automatic log rotation. Can be triggered by sending the `SIGUSR1` signal to the server (Linux server only). | +| `/rcon say` | shows a message to the players in the client-console (example: `/rcon say hello` will show as `Admin: hello`). | +| `/rcon players` | Shows the players that are in the server (with their name, IP & ping). | +| `/rcon banip [IP]` | Ban the given IP (_example: /rcon banip 127.0.0.1_). | +| `/rcon unbanip [IP]` | Unban the given IP (_example: /rcon unbanip 127.0.0.1_). | +| `/rcon gravity` | Changes the gravity (_example: /rcon gravity 0.008_). | +| `/rcon weather [ID]` | Changes the weather (_example: /rcon weather 1_). | +| `/rcon loadfs` | Loads the given filterscript (_example: /rcon loadfs adminfs_). | +| `/rcon weburl [server url]` | Changes the server URL in the masterlists/SA-MP client | +| `/rcon unloadfs` | Unload the given filterscript (_example: /rcon unloadfs adminfs_). | +| `/rcon reloadfs` | Reloads the given filterscript (_example: /rcon reloadfs adminfs_). | +| `/rcon rcon\_password [PASSWORD]` | Change the rcon's password | +| `/rcon password [password]` | Sets/resets the server password | +| `/rcon messageslimit [count]` | Change the number of messages per second a client sends to the server. (default 500) | +| `/rcon ackslimit [count]` | Change the limit of acks (default 3000) | +| `/rcon messageholelimit [count]` | Change the limit of message holes (default 3000) | +| `/rcon playertimeout [limit m/s]` | Change the time in milliseconds until a player timeouts when not sending any packets. (default 1000) | +| `/rcon language [language]` | Change the server language (_example: /rcon language English_). Shown in server browser. | The above four limits/counts are just made to avoid several tools which can attack any SA-MP server by freezing it or crashing. So, simply, just set them according to your server. The default values are default, if you see any wrong kicks, just increase the values as soon as possible so that the innocent players won't get kicked by it. diff --git a/frontend/docs/server/Installation.md b/frontend/docs/server/Installation.md index 91b4c21fa86..14f1375eb10 100644 --- a/frontend/docs/server/Installation.md +++ b/frontend/docs/server/Installation.md @@ -229,6 +229,24 @@ Open the `omp-server.exe` program ./omp-server ``` +:::note + +For players outside your local network to be able to join, the server's UDP port (`7777` by default, set with `network.port` in **config.json**) must be forwarded in your router/firewall. See [Port Forwarding](../tutorials/PortForwarding). + +::: + +## Keeping the server online + +If your gamemode or a plugin crashes the server, it shuts down and you have to start it again yourself. On Windows, a simple batch file can restart `omp-server.exe` automatically whenever the process exits. Save a text file with the `.bat` extension and the following content: + +``` +:start +omp-server.exe +goto start +``` + +Put the file in the directory where `omp-server.exe` is located and run it. To test that it works, type `exit` in the server console - the server should start again. + ## Compiler errors and warnings - **warning 213: tag mismatch: expected tag "?", but found none ("\_")**: diff --git a/frontend/docs/server/LinuxServerInstallation.md b/frontend/docs/server/LinuxServerInstallation.md index ed8209a08a5..5f8f686387d 100644 --- a/frontend/docs/server/LinuxServerInstallation.md +++ b/frontend/docs/server/LinuxServerInstallation.md @@ -26,6 +26,7 @@ Before starting, you should have: - A machine running Ubuntu (20.04 or later recommended) or another Debian based Linux; - WinSCP or Filezilla for file transfers; - PuTTY or your hosting SSH solution; +- A forwarded (or firewall-opened) UDP port for the server, 7777 by default (see [Port Forwarding](../tutorials/PortForwarding)); :::note @@ -226,6 +227,7 @@ sudo -u svc-omp-server tar -xzf open.mp-linux-x86.tar.gz 17. Upload your custom gamemodes and scripts: - Use WinSCP or Filezilla to transfer your gamemodes and scripts to the /opt/omp-server directory. Important: Make sure to use .so files for Linux plugins, as .dll files are only supported on Windows. + - Put your compiled gamemode (.amx) in the gamemodes folder and your filterscripts in the filterscripts folder, then list them without the .amx extension in [config.json](config.json): the gamemode in `pawn.main_scripts` and each filterscript as `filterscripts/name` in `pawn.side_scripts`. This is also where you change the server name, the RCON password and the other server settings. ## Help diff --git a/frontend/docs/server/server.cfg.md b/frontend/docs/server/server.cfg.md index 01da545b1ca..07bb82f6859 100644 --- a/frontend/docs/server/server.cfg.md +++ b/frontend/docs/server/server.cfg.md @@ -124,3 +124,7 @@ description: Server configuration file. - Values marked as "Read-only" (as shown by `/rcon varlist`) can not be changed during runtime. All other values can be (temporarily) changed by passing them to SendRconCommand. - Values marked as "Rule" (as shown by `/rcon varlist`) are displayed in the server browser in the Rules section. - Scripts do not have to be in the gamemodes or filterscripts folders. The information in server.cfg is a path, and can therefore use "..". + +``` +filterscripts ../scriptfiles/first ../minimodes/second +``` diff --git a/frontend/docs/tutorials/Binary.md b/frontend/docs/tutorials/Binary.md index 9e1524cc0c7..99b07c9f7bd 100644 --- a/frontend/docs/tutorials/Binary.md +++ b/frontend/docs/tutorials/Binary.md @@ -288,6 +288,8 @@ and finally: 11110000 //240 ``` +The only difference between bitwise XOR and bitwise OR is that if **both** bit patterns have the same bit turned on, then the result will not have that bit turned on. + ### Bitwise NOT This operator flips every bit in the bit pattern, turning all 1's to 0's and vise versa. diff --git a/frontend/docs/tutorials/MenuGuide.md b/frontend/docs/tutorials/MenuGuide.md index d2880d0f366..3aeed24c554 100644 --- a/frontend/docs/tutorials/MenuGuide.md +++ b/frontend/docs/tutorials/MenuGuide.md @@ -134,6 +134,8 @@ if(CurrentMenu == teleportmenu) } ``` +Now to explain how the `switch` works: at the top there is `switch(row)`, which defines what to check, in this case the menu row. Then, between the braces under `switch`, there are `case`s. These are the different values that the variable in the `switch` brackets can have, and you define them yourself. Under each `case` are more braces; this is where you put the code that should run if that case is the right one. See [Control Structures](../scripting/language/ControlStructures#switch) for more about `switch`. + ## Last steps Now we need a command to show the menu. This is the easiest step. Just a comparison with `strcmp` and a `ShowMenuForPlayer`. This is done in `OnPlayerCommandText`. Or, if you have a command processor already, use that instead to call `ShowMenuForPlayer`. diff --git a/frontend/docs/tutorials/PickupGuide.md b/frontend/docs/tutorials/PickupGuide.md index 2a12b289e30..9174d99f54f 100644 --- a/frontend/docs/tutorials/PickupGuide.md +++ b/frontend/docs/tutorials/PickupGuide.md @@ -21,8 +21,9 @@ There are two ways to create pickups. [CreatePickup](../scripting/functions/Crea **Parameters:** -| model | The model you'd like to use for the pickup. | +| Name | Description | | ------------ | --------------------------------------------------------------------------------------------------------- | +| model | The model you'd like to use for the pickup. | | type | The pickup spawn type, see further down this page. | | Float:X | The X-coordinate for the pickup to show. | | Float:Y | The Y-coordinate for the pickup to show. | @@ -31,7 +32,7 @@ There are two ways to create pickups. [CreatePickup](../scripting/functions/Crea For this example we will create a cash pickup at Grove Street. -Now we need to decide on a model to appear in the world, there are lots of models to choose from, some are listed on the external site [here](https://dev.prineside.com/en/gtasa_samp_model_id), here choose model number 1274 which is dollar sign. +Now we need to decide on a model to appear in the world, there are lots of models to choose from, some are listed on the external site [here](https://dev.prineside.com/en/gtasa_samp_model_id), here choose model number 1274 which is dollar sign. There is also a specific list of common pickup models on the [Pickup IDs](../scripting/resources/pickupids) page. Finally we need a [Type](../scripting/resources/pickuptypes) for the pickup, on the same page with the pickup models is a list of pickup types describing what the various ones do. We want this pickup to disappear when you pick it up, so you can't pick it up repeatedly, but to reappear after a few minutes so you can pick it up again, type 2 does just this. diff --git a/frontend/docs/tutorials/PortForwarding.md b/frontend/docs/tutorials/PortForwarding.md index d94f62133ab..800be7e0b2e 100644 --- a/frontend/docs/tutorials/PortForwarding.md +++ b/frontend/docs/tutorials/PortForwarding.md @@ -10,6 +10,15 @@ So, you have arrived to the Port Forward tutorial, made by Leopard. All you need is a samp-server or omp-server and a router. If you have not a router, then you don't need to port forward! +Port forwarding is the process of unblocking ports in a firewall/router/modem, so that programs can send and receive data through these ports. If other players see your server as "(Retrieving info...)" with a ping of 9999, its port is most likely not forwarded. + +:::warning + +- Ports are usually blocked for a reason. Once a port is forwarded, anyone who knows your IP address and port number can send data to your computer through it. +- Your computer needs a static internal IP address, otherwise you may have to change your port forwarding every time you restart your router or computer. + +::: + ## The Start Ok, so here's the start, start off by finding your **gateway**. Assume that you have vista. Click start, click on the search field, and write **cmd**. Then a black box appears. Enter the following; **ipconfig**. Wait for the text to load, then look though it. Keep searching until you find _**gateway**_, and don't close the black box! @@ -71,3 +80,14 @@ Then your done! Click ok and close it. Launch the server, and see if its working Once there, get the ip that is on your screen. Go again to your SA-MP Client, add that ip to your favorites and add YOUR_PORT (standard: 7777) at the end. If its working, **CONGRATULATIONS**! _You have port-forwarded_! + +## Demilitarized Zone (DMZ) + +Some routers and broadband modems have a DMZ feature. It is **not** recommended at all: it basically opens every single port on your router and bypasses its firewall. Only use it as a last resort if you can't port forward, and if you do, use a firewall on every computer connected to your router. + +## Dynamic DNS services + +Most people have a dynamic external IP address (one which changes often). This makes hosting any sort of game server problematic, as you need to send the players your new IP address every time you restart your router or modem. There are some solutions: + +- Ask your ISP (Internet Service Provider) to provide you with a static IP address, usually at an extra cost. +- Use a Dynamic DNS service such as No-IP. These services give you a hostname of your choice that players can enter in the client instead of your IP address; the client turns it back into your current IP address. The service must be kept up to date with your IP address, for example by running a program on your computer that sends your updated IP address to the service you have chosen. diff --git a/frontend/docs/tutorials/QueryMechanism.md b/frontend/docs/tutorials/QueryMechanism.md index 442d0df1baf..6aa0ba46be3 100644 --- a/frontend/docs/tutorials/QueryMechanism.md +++ b/frontend/docs/tutorials/QueryMechanism.md @@ -29,6 +29,8 @@ If you have doubts about why to extract and what IP octets and port bytes are, s | 1 | Port >> 8 & 0xFF | | 1 | OPCODE | +For example, an `i` query sent to the server `192.168.200.103:7777` consists of these bytes (in hexadecimal): `53 41 4D 50` ("SAMP"), `C0 A8 C8 67` (192, 168, 200 and 103), `61 1E` (7777, which is 0x1E61) and `69` ("i"). + [Example in C](https://github.com/Louzindev/sampquery-c/blob/master/src/packet.c) ## OPCODE @@ -47,6 +49,27 @@ OPCODE's are package identifiers, and each one represents a different request. - **OPCODE "p" or 0x70:** Four psuedo-random characters are sent to the server, and the same characters are returned. You can use the time between sending and receiving to work out the servers' ping/latency. +:::note + +If more than 100 players are online, the server does not respond to the `c` (client list) query. + +::: + +## RCON Packets + +The RCON packet (OPCODE "x") carries more data than the other queries: the 11 bytes described above are followed by the RCON password and the command to execute, each prefixed with its length as a 2-byte number. The server only answers RCON packets when the [Remote Console](../server/RemoteConsole) is enabled (`rcon.enable` in [config.json](../server/config.json)). + +The table below uses `changeme` as the RCON password and `varlist` as the command; the values and offsets will be different for other passwords and commands. + +| Byte | Key | Byte Width | Hexadecimal | Description | +| ----- | -------- | ---------- | ----------------------- | --------------------------- | +| 11-12 | (strlen) | 2 | 08 00 | Length of the RCON password | +| 13-20 | Password | (strlen) | 63 68 61 6E 67 65 6D 65 | The RCON password | +| 21-22 | (strlen) | 2 | 07 00 | Length of the RCON command | +| 23-29 | Command | (strlen) | 76 61 72 6C 69 73 74 | The RCON command | + +The server sends the output of the command back one line per packet: the 11-byte header, followed by the length of the line (2 bytes) and the line itself. + ## Response As stated above, each OPCODE returns information. diff --git a/frontend/docs/tutorials/colorfix.md b/frontend/docs/tutorials/colorfix.md index 88cdd20d09b..cf0a9d96de2 100644 --- a/frontend/docs/tutorials/colorfix.md +++ b/frontend/docs/tutorials/colorfix.md @@ -1,23 +1,23 @@ --- title: "Color Fix" sidebar_label: "Color Fix" -descripion: A basic script to add more player colours. +description: A basic script to add more player colours. --- This tutorial is to be used with [GetPlayerColor](../scripting/functions/GetPlayerColor), if you do not use [SetPlayerColor](../scripting/functions/SetPlayerColor) in your script when players connect. ```pawn new PlayerColors[] = { - 0xFF8C13FF,0xC715FFFF,0x20B2AAFF,0xDC143CFF,0x6495EDFF,0xf0e68cFF,0x778899FF,0xFF1493FF,0xF4A460FF,0xEE82EEFF, - 0xFFD720FF,0x8b4513FF,0x4949A0FF,0x148b8bFF,0x14ff7fFF,0x556b2fFF,0x0FD9FAFF,0x10DC29FF,0x534081FF,0x0495CDFF, - 0xEF6CE8FF,0xBD34DAFF,0x247C1BFF,0x0C8E5DFF,0x635B03FF,0xCB7ED3FF,0x65ADEBFF,0x5C1ACCFF,0xF2F853FF,0x11F891FF, - 0x7B39AAFF,0x53EB10FF,0x54137DFF,0x275222FF,0xF09F5BFF,0x3D0A4FFF,0x22F767FF,0xD63034FF,0x9A6980FF,0xDFB935FF, - 0x3793FAFF,0x90239DFF,0xE9AB2FFF,0xAF2FF3FF,0x057F94FF,0xB98519FF,0x388EEAFF,0x028151FF,0xA55043FF,0x0DE018FF, - 0x93AB1CFF,0x95BAF0FF,0x369976FF,0x18F71FFF,0x4B8987FF,0x491B9EFF,0x829DC7FF,0xBCE635FF,0xCEA6DFFF,0x20D4ADFF, - 0x2D74FDFF,0x3C1C0DFF,0x12D6D4FF,0x48C000FF,0x2A51E2FF,0xE3AC12FF,0xFC42A8FF,0x2FC827FF,0x1A30BFFF,0xB740C2FF, - 0x42ACF5FF,0x2FD9DEFF,0xFAFB71FF,0x05D1CDFF,0xC471BDFF,0x94436EFF,0xC1F7ECFF,0xCE79EEFF,0xBD1EF2FF,0x93B7E4FF, - 0x3214AAFF,0x184D3BFF,0xAE4B99FF,0x7E49D7FF,0x4C436EFF,0xFA24CCFF,0xCE76BEFF,0xA04E0AFF,0x9F945CFF,0xDCDE3DFF, - 0x10C9C5FF,0x70524DFF,0x0BE472FF,0x8A2CD7FF,0x6152C2FF,0xCF72A9FF,0xE59338FF,0xEEDC2DFF,0xD8C762FF,0x3FE65CFF + 0xFF8C13FF, 0xC715FFFF, 0x20B2AAFF, 0xDC143CFF, 0x6495EDFF, 0xf0e68cFF, 0x778899FF, 0xFF1493FF, 0xF4A460FF, 0xEE82EEFF, + 0xFFD720FF, 0x8b4513FF, 0x4949A0FF, 0x148b8bFF, 0x14ff7fFF, 0x556b2fFF, 0x0FD9FAFF, 0x10DC29FF, 0x534081FF, 0x0495CDFF, + 0xEF6CE8FF, 0xBD34DAFF, 0x247C1BFF, 0x0C8E5DFF, 0x635B03FF, 0xCB7ED3FF, 0x65ADEBFF, 0x5C1ACCFF, 0xF2F853FF, 0x11F891FF, + 0x7B39AAFF, 0x53EB10FF, 0x54137DFF, 0x275222FF, 0xF09F5BFF, 0x3D0A4FFF, 0x22F767FF, 0xD63034FF, 0x9A6980FF, 0xDFB935FF, + 0x3793FAFF, 0x90239DFF, 0xE9AB2FFF, 0xAF2FF3FF, 0x057F94FF, 0xB98519FF, 0x388EEAFF, 0x028151FF, 0xA55043FF, 0x0DE018FF, + 0x93AB1CFF, 0x95BAF0FF, 0x369976FF, 0x18F71FFF, 0x4B8987FF, 0x491B9EFF, 0x829DC7FF, 0xBCE635FF, 0xCEA6DFFF, 0x20D4ADFF, + 0x2D74FDFF, 0x3C1C0DFF, 0x12D6D4FF, 0x48C000FF, 0x2A51E2FF, 0xE3AC12FF, 0xFC42A8FF, 0x2FC827FF, 0x1A30BFFF, 0xB740C2FF, + 0x42ACF5FF, 0x2FD9DEFF, 0xFAFB71FF, 0x05D1CDFF, 0xC471BDFF, 0x94436EFF, 0xC1F7ECFF, 0xCE79EEFF, 0xBD1EF2FF, 0x93B7E4FF, + 0x3214AAFF, 0x184D3BFF, 0xAE4B99FF, 0x7E49D7FF, 0x4C436EFF, 0xFA24CCFF, 0xCE76BEFF, 0xA04E0AFF, 0x9F945CFF, 0xDCDE3DFF, + 0x10C9C5FF, 0x70524DFF, 0x0BE472FF, 0x8A2CD7FF, 0x6152C2FF, 0xCF72A9FF, 0xE59338FF, 0xEEDC2DFF, 0xD8C762FF, 0x3FE65CFF }; ``` diff --git a/frontend/docs/tutorials/perplayervariablesystem.md b/frontend/docs/tutorials/perplayervariablesystem.md index 6214a83fcba..d03458b37e5 100644 --- a/frontend/docs/tutorials/perplayervariablesystem.md +++ b/frontend/docs/tutorials/perplayervariablesystem.md @@ -1,7 +1,7 @@ --- title: Per-player variable system sidebar_label: Per-player variable system -description: The per-player variable system (put short, PVar) is a new way of creating player variables in an efficient dynamically created method globally, meaning they can be used in server's gamemode and filterscripts at the same time. +description: The per-player variable system (put short, PVar) is a new way of creating player variables in an efficient dynamically created method globally. --- The **per-player variable system** (put short, **PVar**) is a new way of creating player variables efficiently and dynamically, meaning that they can be used in server's gamemode and filterscripts at the same time. diff --git a/frontend/docs/tutorials/servervariablesystem.md b/frontend/docs/tutorials/servervariablesystem.md index 2930dee1615..aad47244cf5 100644 --- a/frontend/docs/tutorials/servervariablesystem.md +++ b/frontend/docs/tutorials/servervariablesystem.md @@ -2,7 +2,7 @@ title: Server variable system sidebar_label: Server variable system -description: The server variable system (put short, SVar) is a new way of creating server variables in an efficient dynamically created method globally, meaning they can be used in server's gamemode and filterscripts at the same time. +description: The server variable system (put short, SVar) is a new way of creating server variables in an efficient dynamically created method globally. --- The **server variable system** (put short, **SVar**) is a new way of creating global server variables efficient and dynamically, meaning that they can be used in server's gamemode and filterscripts at the same time. diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md index 9ecbe46f7dd..b7ba349fe37 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md @@ -1,7 +1,7 @@ --- title: OnDialogResponse sidebar_label: OnDialogResponse -description: Ovaj callback se poziva kada igrač odgovori na dijalog koji je pozvan ShowPlayerDialog funkcijom bilo klikom dugmeta, klikom ENTER/ESC tipke ili duplim klikom na list item (ukoliko koristite "list" style dijalog). +description: Ovaj callback se poziva kada igrač odgovori na dijalog koji je pozvan ShowPlayerDialog funkcijom. tags: [] --- diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md index 8e8d36c8a9c..24829470c35 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md @@ -17,6 +17,8 @@ Ovaj callback je pozvan kada igrač krene da uđe u vozilo, u smislu da igrač n ## Returns +Ovaj callback ne obrađuje povratne vrijednosti (returnove). + Uvijek je pozvana prva u filterskripti. ## Primjeri diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md index 5ca63bacd6d..d6c7bd102e6 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md @@ -15,11 +15,11 @@ Ova funkcija je dodana u SA-MP 0.3.DL R1 i ne radi u nižim verzijama! Ovaj callback je pozvan kada igrač zatraži preuzimanje custom modela. -| Ime | Deskripcija | -| -------- | ----------------------------------------------------- | -| playerid | ID igrača koji je zatražio preuzimanje custom modela. | -| type | Tip zahtjevaThe type of the request (pogledaj ispod). | -| crc | CRC kontrolna suma datoteke prilagođenog modela. | +| Ime | Deskripcija | +| -------- | --------------------------------------------------------------------------------------------------------- | +| playerid | ID igrača koji je zatražio preuzimanje custom modela. | +| type | Tip zahtjevaThe type of the request (pogledaj ispod). | +| crc | [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) kontrolna suma datoteke prilagođenog modela. | ## Returns @@ -63,3 +63,6 @@ public OnPlayerRequestDownload(playerid, type, crc) ## Srodne Funkcije - [OnPlayerFinishedDownloading](OnPlayerFinishedDownloading): Pozvano kada igrač završi sa preuzimanjem custom modela. +- [FindModelFileNameFromCRC](../functions/FindModelFileNameFromCRC): Pronađite postojeću prilagođenu kožu ili datoteku jednostavnog objektnog modela. +- [FindTextureFileNameFromCRC](../functions/FindTextureFileNameFromCRC): Pronađite postojeću prilagođenu datoteku teksture kože ili jednostavnog objekta. +- [RedirectDownload](../functions/RedirectDownload): Preusmjerite preuzimanje prilagođenog AddCharModel ili AddSimpleModel uređaja na određenu HTTP web stranicu. diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md index 545f6857ce8..73ba608906e 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md @@ -13,14 +13,14 @@ Ova funkcija je dodana u SA-MP 0.3.DL R1 i ne radi u nižim verzijama! ## Deskripcija -Dodaje novog prilagođenog karaktera za preuzimanje. Fajlovi modela će biti pohranjeni u igračevim: Documents\GTA San Andreas User Files\SAMP\cache ispod Server IP i Port foldera u CRC-formi imena fajla. - -| Ime | Deskripcija | -| ------- | ---------------------------------------------------------------------------------------------------------------------------- | -| baseid | Osnovni skin model ID za korištenje (ponašanje karaktera i originalnog karaktera za upotrebu kada preuzimanje nije uspjelo). | -| newid | Novi skin model ID između 20001 i 30000 (10000 slotova) da bi se kasnije koristio sa SetPlayerSkin. | -| dffname | Ime .dff collision modela fajla koji se nalazi u 'models' server folderu po zadanim postavkama (artpath postavka). | -| txdname | Ime .txd texture modela fajla koji se nalazi u 'models' server folderu po zadanim postavkama (artpath postavka). | +Dodaje novog prilagođenog karaktera za preuzimanje. Fajlovi modela će biti pohranjeni u igračevim: Documents\GTA San Andreas User Files\SAMP\cache ispod Server IP i Port foldera u [CRC-formi](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) imena fajla. + +| Ime | Deskripcija | +| ------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | +| baseid | Osnovni [skin model ID](../resources/skins) za korištenje (ponašanje karaktera i originalnog karaktera za upotrebu kada preuzimanje nije uspjelo). | +| newid | Novi skin model ID između 20001 i 30000 (10000 slotova) da bi se kasnije koristio sa SetPlayerSkin. | +| dffname | Ime .dff collision modela fajla koji se nalazi u 'models' server folderu po zadanim postavkama (artpath postavka). | +| txdname | Ime .txd texture modela fajla koji se nalazi u 'models' server folderu po zadanim postavkama (artpath postavka). | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md index f1472db3ea5..09995537556 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md @@ -55,4 +55,5 @@ Trenutno ne postoje nikakva ograničenja o pozivanju ove funkcije, ali budite op ## Srodne Funkcije +- [AddSimpleModelTimed](AddSimpleModelTimed): Dodaje novi prilagođen/custom prost model objekta za preuzimanje. - [OnPlayerFinishedDownloading](../callbacks/OnPlayerFinishedDownloading): Pozvano kada igrač dovrši preuzimanje prilagođenih/custom modela. diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md index 216d147d024..abfcc09d2f6 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md @@ -57,4 +57,5 @@ Trenutno ne postoje nikakva ograničenja o pozivanju ove funkcije, ali budite op ## Srodne Funkcije +- [AddSimpleModel](AddSimpleModel): Dodaje novi prilagođen/custom prost model objekta za preuzimanje. - [OnPlayerFinishedDownloading](../callbacks/OnPlayerFinishedDownloading): Pozvano kada igrač dovrši preuzimanje prilagođenih/custom modela. diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md index 5744564d14c..ba29e9fc145 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md @@ -7,7 +7,7 @@ tags: ["administration"] ## Description -Banuj igrača koji je trenutno na serveru. On se više nikada neće moći pridružiti serveru. Zabrana će se zasnivati ​​na IP-u i bit će spremljena u datoteku samp.ban u korijenskom direktoriju poslužitelja. BanEx se može koristiti za obrazloženje zabrane. IP zabrane mogu se dodati / ukloniti pomoću naredbi RCON banip i unbanip (SendRconCommand). +Banuj igrača koji je trenutno na serveru. On se više nikada neće moći pridružiti serveru. Zabrana će se zasnivati ​​na IP-u i bit će spremljena u datoteku **bans.json** u korijenskom direktoriju poslužitelja. BanEx se može koristiti za obrazloženje zabrane. IP zabrane mogu se dodati / ukloniti pomoću naredbi RCON banip i unbanip (SendRconCommand). | Name | Description | | -------- | ----------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md index db565effa71..4a460e8d161 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md @@ -1,7 +1,7 @@ --- title: ClearAnimations sidebar_label: ClearAnimations -description: Čisti sve animacije koje su date igraču (ovo također zaustavlja trenutne zadatke koji se vrše poput jetpackinga, padobraniranja, ulaženaj u vozila, voženja (ukloni igrača iz vozila), plivanja itd.) +description: Čisti sve animacije koje su date igraču. tags: [] --- diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md index 96408b178b3..a476e73d3b4 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md @@ -1,7 +1,7 @@ --- title: CreatePickup sidebar_label: CreatePickup -description: Ova funkcija radi u potpunosti isto kao i AddStaticPickup, osim što returna (vraća) ID pickupa koji se može upotrijebiti za njegovo uništavanje nakon čega se može pratiti pomoću OnPlayerPickUpPickup. +description: Ova funkcija radi u potpunosti isto kao i AddStaticPickup, osim što returna (vraća) ID pickupa. tags: [] --- diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md index 68d73426bd2..52a240f422e 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md @@ -1,13 +1,13 @@ --- title: GetMaxPlayers sidebar_label: GetMaxPlayers -description: Returna maksimalni broj igrača koji se mogu pridružiti serveru, određeno varijablom servera 'maxplayers' +description: Returna maksimalni broj igrača koji se mogu pridružiti serveru, određeno varijablom servera 'max_players'. tags: ["player"] --- ## Deskripcija -Returna maksimalni broj igrača koji se mogu pridružiti serveru, postavljeno varijablom servera 'maxplayers' u server.cfg. +Returna maksimalni broj igrača koji se mogu pridružiti serveru, postavljeno varijablom servera 'max_players' u config.json. ## Primjeri @@ -21,7 +21,7 @@ SendClientMessage(playerid, 0xFFFFFFFF, str); :::warning -Ova funkcija se ne može koristiti umjesto MAX_PLAYERS. Ne može se koristiti u vrijeme kompajlovanja (npr. za array sizes). MAX_PLAYERS uvijek treba redefinirati na ono što će biti var 'maxplayers' ili više. Pogledajte funkciju MAX_PLAYERS za više informacija. +Ova funkcija se ne može koristiti umjesto MAX_PLAYERS. Ne može se koristiti u vrijeme kompajlovanja (npr. za array sizes). MAX_PLAYERS uvijek treba redefinirati na ono što će biti var 'max_players' ili više. Pogledajte funkciju MAX_PLAYERS za više informacija. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md index 772e6d195e7..651104b26cb 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md @@ -17,6 +17,8 @@ Returna/vraća verziju SA-MP klijenta, kako je izvijestio igrač. ## Returns +**0** ako navedeni igrač ne postoji. + Verzija klijenta je pohranjena u navedenom nizu. ## Primjeri diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarsUpperIndex.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarsUpperIndex.md index 0de4f05b04f..e75731c2217 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarsUpperIndex.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarsUpperIndex.md @@ -9,6 +9,10 @@ tags: [] Svaki SVar (server-varijabla) ima svoj jedinstveni identifikacijski broj za traženje, ova funkcija vraća najveći ID. +## Returns + +Najviši postavljeni SVar ID. + ## Primjeri ```c diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md index 832fc8a299a..1616910dff4 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md @@ -33,7 +33,9 @@ if (IsPlayerStreamedIn(playerid, 0)) :::note -Igrači nestaju ako su udaljeni više od 150 metara (vidi server.cfg - stream_distance) +**SA-MP server:** Igrači nestaju ako su udaljeni više od 150 metara (vidi server.cfg - stream_distance) + +**open.mp server:** Igrači nestaju ako su udaljeni više od 150 metara (vidi config.json - network.stream_radius) ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md index 966f374822a..f11f342ed24 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md @@ -1,7 +1,7 @@ --- title: Kick sidebar_label: Kick -description: Izbacuje igrača sa servera. Morati će napustiti igru i ponovno se konektovati ako žele da nastave igrati. +description: Izbacuje igrača sa servera. tags: ["administration"] --- diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md index 4a3eff41461..8e36fa3ecdb 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md @@ -48,3 +48,6 @@ Jednom postavljen za neranjivog, aktor ne poziva OnPlayerGiveDamageActor. Igrač ::: ## Srodne Funkcije + +- [CreateActor](CreateActor): Kreiraj aktora (statičnog NPC-a). +- [SetActorHealth](SetActorHealth): Postavi zdravlje aktoru. diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md index 480d5165262..a9e0b498342 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md @@ -47,3 +47,7 @@ Ova funkcija ne utječe na vozila koja nisu zauzeta i ne utječe na vlakove. ::: ## Srodne Funkcije + +- [SetVehicleAngularVelocity](SetVehicleAngularVelocity): Postavlja ugaonu brzinu X, Y i Z vozila. +- [SetPlayerVelocity](SetPlayerVelocity): Postavi brzinu igrača. +- [GetPlayerVelocity](GetPlayerVelocity): Dobij brzinu igrača. diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md index 5362e197acf..fff2c3fe339 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md @@ -33,6 +33,12 @@ public OnGameModeInit() ## Zabilješke +:::tip + +Boje Gametext-a možete koristiti i u textdrawu. + +::: + :::note Ako je textdraw već prikazan, on mora biti ponovno prikazan (TextDrawShowForAll/TextDrawShowForPlayer) kako bi izmjene ove funkcije imale efekta. diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/print.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/print.md index d156472af35..095b8134940 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/print.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/print.md @@ -1,13 +1,13 @@ --- title: print sidebar_label: print -description: Ispisuje formatirani niz na konzoli (ne chat u igri) i logovima (server_log.txt). +description: Ispisuje formatirani niz na konzoli (ne chat u igri) i logovima (log.txt). tags: [] --- ## Deskripcija -Ispisuje formatirani niz na konzoli (ne chat u igri) i logovima (server_log.txt). +Ispisuje formatirani niz na konzoli (ne chat u igri) i logovima (log.txt). | Ime | Deskripcija | | --------------------- | ----------------------------------- | diff --git a/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md b/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md index 19a39513180..4aa2b543a41 100644 --- a/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md +++ b/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md @@ -1,7 +1,7 @@ --- title: OnDialogResponse sidebar_label: OnDialogResponse -description: Dieses Callback wird ausgeführt wenn ein Spieler einem Dialog antwortet(benutzt), indem er einen der Buttons drückt, Enter/ESC drückt oder ein List-Item per Doppelklick auswählt(List Style Dialog). +description: Dieses Callback wird ausgeführt wenn ein Spieler einem Dialog antwortet. tags: [Pickup] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/client/ClientCommands.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/client/ClientCommands.md index 72b9eb0556a..db5a5f1de54 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/client/ClientCommands.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/client/ClientCommands.md @@ -1,7 +1,7 @@ --- title: "Comandos del Cliente" sidebar_label: "Comandos del Cliente" -descripion: Una lista de todos los comandos del cliente. +description: Una lista de todos los comandos del cliente. --- | Command | Description | diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md index 217d25351b5..1d3f5d8a876 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md @@ -32,7 +32,16 @@ public OnIncomingConnection(playerid, ip_address[], port) } ``` +## Callbacks Relacionados + +Los siguientes callbacks pueden ser útiles, ya que están relacionados de alguna forma u otra con OnIncomingConnection: + +- [OnPlayerConnect](OnPlayerConnect): Llamado cuando se conecta un jugador. +- [OnPlayerDisconnect](OnPlayerDisconnect): Llamado cuando un jugador se desconecta del servidor. + ## Funciones Relacionadas +Las siguientes funciones pueden ser útiles, ya que están relacionadas de alguna forma u otra con OnIncomingConnection: + - [BlockIpAddress](../functions/BlockIpAddress): Bloquea una dirección IP de conectarse al servidor por un tiempo determinado. - [UnBlockIpAddress](../functions/UnBlockIpAddress): Desbloquea una IP que fue anteriormente bloqueada. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md index b72474d45fd..931a8810a18 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md @@ -42,3 +42,9 @@ Como dice el nombre del callback, sólo se llama cuando el jugador hace click pa ::: ## Funciones Relacionadas + +Las siguientes funciones pueden ser útiles, ya que están relacionadas de alguna forma u otra con OnPlayerClickMap: + +- GetPlayerPos: Obtiene la posicion en el mapa de un jugador. +- SetPlayerPos: Setea la posicion en el mapa de un jugador. +- SetPlayerPosFindZ: Cambia la posición en el mapa de un jugador en el punto de colisión más cercano al suelo. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md index ecb7553cf70..da60d3ee8af 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md @@ -46,6 +46,15 @@ public OnPlayerCommandText(playerid, cmdtext[]) +## Callbacks Relacionados + +Los siguientes callbacks pueden ser útiles, ya que están relacionados de alguna forma u otra con OnPlayerCommandText: + +- [OnPlayerText](OnPlayerText): Llamado cuando un jugador escribe un texto en el chat. +- [OnRconCommand](OnRconCommand): Llamado cuando se envia un comando desde la rcon. + ## Funciones Relacionadas +Las siguientes funciones pueden ser útiles, ya que están relacionadas de alguna forma u otra con OnPlayerCommandText: + - [SendRconCommand](../functions/SendRconCommand): Envía un comando RCON vía script. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md index 78c8cf04b4a..0fb1a65821b 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md @@ -41,3 +41,7 @@ public OnPlayerConnect(playerid) ## Funciones Relacionadas + +Los siguientes callbacks pueden ser útiles, ya que están relacionados de alguna forma u otra con OnPlayerConnect: + +- [OnPlayerDisconnect](OnPlayerDisconnect): Llamado cuando un jugador se desconecta del servidor. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md index 0a7aef51f85..ae22e823b1b 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md @@ -63,3 +63,7 @@ Algunas funciones pueden no funcionar correctamente cuando son usadas en este ca ::: ## Funciones Relacionadas + +Los siguientes callbacks pueden ser útiles, ya que están relacionados de alguna forma u otra con OnPlayerDisconnect: + +- [OnPlayerConnect](OnPlayerConnect): Llamado cuando se conecta un jugador. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterCheckpoint.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterCheckpoint.md index 6eddb0a8d7d..f27484b04e4 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterCheckpoint.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterCheckpoint.md @@ -39,8 +39,18 @@ public OnPlayerEnterCheckpoint(playerid) +## Callbacks Relacionados + +Los siguientes callbacks pueden ser útiles, ya que están relacionados de alguna forma u otra con OnPlayerEnterCheckpoint: + +- [OnPlayerLeaveCheckpoint](OnPlayerLeaveCheckpoint): Llamado cuando un jugador sale de un checkpoint. +- [OnPlayerEnterRaceCheckpoint](OnPlayerEnterRaceCheckpoint): Llamado cuando un jugador ingresa a un checkpoint de carreras. +- [OnPlayerLeaveRaceCheckpoint](OnPlayerLeaveRaceCheckpoint): Llamado cuando un jugador sale de un checkpoint de carreras. + ## Funciones Relacionadas +Las siguientes funciones pueden ser útiles, ya que están relacionadas de alguna forma u otra con OnPlayerEnterCheckpoint: + - [SetPlayerCheckpoint](../functions/SetPlayerCheckpoint): Crea un checkpoint a un jugador. - [DisablePlayerCheckpoint](../functions/DisablePlayerCheckpoint): Desactiva el checkpoint actual de un jugador. - [IsPlayerInCheckpoint](../functions/IsPlayerInCheckpoint): Comprueba si un jugador está en un checkpoint. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterRaceCheckpoint.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterRaceCheckpoint.md index 84b456a4471..d315c5894ca 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterRaceCheckpoint.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterRaceCheckpoint.md @@ -30,8 +30,18 @@ public OnPlayerEnterRaceCheckpoint(playerid) +## Callbacks Relacionados + +Los siguientes callbacks pueden ser útiles, ya que están relacionados de alguna forma u otra con OnPlayerEnterRaceCheckpoint: + +- [OnPlayerEnterCheckpoint](OnPlayerEnterCheckpoint): Llamado cuando un jugador ingresa a un checkpoint. +- [OnPlayerLeaveCheckpoint](OnPlayerLeaveCheckpoint): Llamado cuando un jugador sale de un checkpoint. +- [OnPlayerLeaveRaceCheckpoint](OnPlayerLeaveRaceCheckpoint): Llamado cuando un jugador sale de un checkpoint de carreras. + ## Funciones Relacionadas +Las siguientes funciones pueden ser útiles, ya que están relacionadas de alguna forma u otra con OnPlayerEnterRaceCheckpoint: + - [SetPlayerCheckpoint](../functions/SetPlayerCheckpoint): Crea un checkpoint a un jugador. - [DisablePlayerCheckpoint](../functions/DisablePlayerCheckpoint): Desactiva el checkpoint actual de un jugador. - [IsPlayerInCheckpoint](../functions/IsPlayerInCheckpoint): Comprueba si un jugador está en un checkpoint. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md index 6c58fb62d7e..b63a8840b92 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md @@ -16,6 +16,8 @@ Este callback se llama cuando un jugador comienza a entrar a un vehículo, o sea ## Devoluciones +Este callback no controla devoluciones. + Siempre se llama primero en filterscripts. ## Ejemplos @@ -38,7 +40,16 @@ Este callback es llamado cuando un jugador COMIENZA a entrar a un vehículo, no ::: +## Callbacks Relacionados + +Los siguientes callbacks pueden ser útiles, ya que están relacionados de alguna forma u otra con OnPlayerEnterVehicle: + +- [OnPlayerExitVehicle](OnPlayerExitVehicle): Llamado cuando un jugador sale de un vehiculo. +- [OnPlayerStateChange](OnPlayerStateChange): Llamado cuando el estado del jugador cambia. + ## Funciones Relacionadas +Las siguientes funciones pueden ser útiles, ya que están relacionadas de alguna forma u otra con OnPlayerEnterVehicle: + - [PutPlayerInVehicle](../functions/PutPlayerInVehicle): Pone a un jugador adentro de un vehículo. - [GetPlayerVehicleSeat](../functions/GetPlayerVehicleSeat): Comprueba en qué asiento está un jugador. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md index e3c47008cb9..09c0f369c5a 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md @@ -37,7 +37,15 @@ No se llama si el jugador se cae de una moto o es removido del vehículo por otr ::: +## Callbacks Relacionados + +Los siguientes callbacks pueden ser útiles, ya que están relacionados de alguna forma u otra con OnPlayerExitVehicle: + +- [OnPlayerStateChange](OnPlayerStateChange): Llamado cuando el estado del jugador cambia. + ## Funciones Relacionadas +Las siguientes funciones pueden ser útiles, ya que están relacionadas de alguna forma u otra con OnPlayerExitVehicle: + - [RemovePlayerFromVehicle](../functions/RemovePlayerFromVehicle): Sacar a un jugador de un vehículo. - [GetPlayerVehicleSeat](../functions/GetPlayerVehicleSeat): Comprobar en qué asiento está un jugador. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitedMenu.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitedMenu.md index 1682a07384c..60440c4882b 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitedMenu.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitedMenu.md @@ -26,6 +26,10 @@ public OnPlayerExitedMenu(playerid) } ``` +## Callbacks Relacionados + +- [OnPlayerSelectedMenuRow](OnPlayerSelectedMenuRow): Llamado cuando un jugador selecciona un item de un menu. + ## Funciones Relacionadas - [CreateMenu](../functions/CreateMenu): Crea un menú. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerFinishedDownloading.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerFinishedDownloading.md index 3981d4b1ace..f039e643e1f 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerFinishedDownloading.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerFinishedDownloading.md @@ -38,3 +38,7 @@ Este callback se llama cada vez que un jugador cambia de mundo virtual, incluso ::: ## Funciones Relacionadas + +- [OnPlayerConnect](OnPlayerConnect): Llamado cuando se conecta un jugador. +- [OnPlayerDisconnect](OnPlayerDisconnect): Llamado cuando un jugador se desconecta del servidor. +- [OnIncomingConnection](OnIncomingConnection): Ejecutada cuando un jugador intenta conectar con el servidor. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveCheckpoint.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveCheckpoint.md index e663d5670c5..95c1f46b46c 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveCheckpoint.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveCheckpoint.md @@ -30,6 +30,12 @@ public OnPlayerLeaveCheckpoint(playerid) +## Callbacks Relacionados + +- [OnPlayerEnterCheckpoint](OnPlayerEnterCheckpoint): Llamado cuando un jugador ingresa a un checkpoint. +- [OnPlayerEnterRaceCheckpoint](OnPlayerEnterRaceCheckpoint): Llamado cuando un jugador ingresa a un checkpoint de carreras. +- [OnPlayerLeaveRaceCheckpoint](OnPlayerLeaveRaceCheckpoint): Llamado cuando un jugador sale de un checkpoint de carreras. + ## Funciones Relacionadas - [SetPlayerCheckpoint](../functions/SetPlayerCheckpoint): Crear un checkpoint a un jugador. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveRaceCheckpoint.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveRaceCheckpoint.md index 4d8695e4c59..bb3472b716a 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveRaceCheckpoint.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveRaceCheckpoint.md @@ -30,6 +30,12 @@ public OnPlayerLeaveRaceCheckpoint(playerid) +## Callbacks Relacionados + +- [OnPlayerEnterCheckpoint](OnPlayerEnterCheckpoint): Llamado cuando un jugador entra a un checkpoint. +- [OnPlayerLeaveCheckpoint](OnPlayerLeaveCheckpoint): Llamado cuando un jugador sale de un checkpoint. +- [OnPlayerEnterRaceCheckpoint](OnPlayerEnterRaceCheckpoint): Llamado cuando un jugador entra a un checkpoint de carrera. + ## Funciones Relacionadas - [SetPlayerCheckpoint](../functions/SetPlayerCheckpoint): Crear un checkpoint a un jugador. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md index d42a38f1d06..79c39f65a50 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md @@ -41,6 +41,10 @@ Este callback también se llama cuando un jugador presiona F4. ::: +## Callbacks Relacionados + +- [OnPlayerRequestSpawn](OnPlayerRequestSpawn): Llamado cuando el jugador va a spawnear desde la selección de skin. + ## Funciones Relacionadas - [AddPlayerClass](../functions/AddPlayerClass): Añadir una clase. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md index 7ec9710983c..688d00ac18f 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md @@ -10,11 +10,11 @@ tags: ["player"] Este callback se llama cuando un jugador solicita por descargas de modelos personalizados. -| Nombre | Descripción | -| -------- | -------------------------------------------------------- | -| playerid | El ID del jugador que solicita descargar modelos custom. | -| type | El tipo de solicitud (ver abajo). | -| crc | La suma de comprobación CRC del archivo del modelo. | +| Nombre | Descripción | +| -------- | ------------------------------------------------------------------------------------------------------------ | +| playerid | El ID del jugador que solicita descargar modelos custom. | +| type | El tipo de solicitud (ver abajo). | +| crc | La suma de comprobación [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) del archivo del modelo. | ## Devoluciones diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md index 8b93682d5c9..77d2b6e40ef 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md @@ -14,6 +14,8 @@ Se llama cuando un jugador intenta spawnear vía selección de clase ya sea pres ## Devoluciones +**0** impedira que el jugador spawnee. + 0 - Prevendrá a otros filterscripts de recibir este callback. 1 - Indica que este callback será pasado al siguiente filterscript. @@ -45,3 +47,5 @@ Para prevenir a los jugadores de spawnear con ciertas clases, la última clase v ::: ## Funciones Relacionadas + +- [OnPlayerRequestClass](OnPlayerRequestClass): Llamado cuando un jugador cambia de skin en la seleccion de skin. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectedMenuRow.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectedMenuRow.md index 63988583103..abaa10a66f7 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectedMenuRow.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectedMenuRow.md @@ -52,6 +52,10 @@ El ID del menú no se pasa a este callback. Debes usar GetPlayerMenu para determ ::: +## Callbacks Relacionados + +- [OnPlayerExitedMenu](OnPlayerExitedMenu): Llamado cuando un jugador sale de un menu. + ## Funciones Relacionadas - [CreateMenu](../functions/CreateMenu): Crear un menú. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamIn.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamIn.md index 3c217ae992f..78a5c7df687 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamIn.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamIn.md @@ -34,3 +34,6 @@ public OnPlayerStreamIn(playerid, forplayerid) ## Funciones Relacionadas + +- [OnPlayerStreamOut](OnPlayerStreamOut): Llamado cuando un jugador es "descargado" para otro jugador. +- [OnVehicleStreamIn](OnVehicleStreamIn): Llamado cuando un vehiculo es "cargado" para un jugador. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamOut.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamOut.md index b3399498511..c86bb4a3bd1 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamOut.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamOut.md @@ -34,3 +34,6 @@ public OnPlayerStreamOut(playerid, forplayerid) ## Funciones Relacionadas + +- [OnPlayerStreamIn](OnPlayerStreamIn): Llamado cuando un jugador es "cargado" para otro jugador. +- [OnVehicleStreamOut](OnVehicleStreamOut): Llamado cuando un vehiculo es "descargado" para un jugador. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerText.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerText.md index 4c21bfb944f..477a24dcd39 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerText.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerText.md @@ -39,7 +39,15 @@ public OnPlayerText(playerid, text[]) +## Callbacks Relacionados + +Los siguientes callbacks pueden ser útiles, ya que están relacionados de alguna forma u otra con OnPlayerText: + +- [OnPlayerCommandText](OnPlayerCommandText): Llamado cuando el jugador envia un texto que empieza con el caracter '/'. + ## Funciones Relacionadas +Las siguientes funciones pueden ser útiles, ya que están relacionadas de alguna forma u otra con OnPlayerText: + - [SendPlayerMessageToPlayer](../functions/SendPlayerMessageToPlayer): Obliga a un jugador a enviar mensajes de texto para un jugador. - [SendPlayerMessageToAll](../functions/SendPlayerMessageToAll): Obliga a un jugador a enviar texto para todos los jugadores. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md index 7eca09dcfe4..3aa8ef2eb88 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md @@ -14,9 +14,9 @@ Este callback se llama cada vez que un cliente/jugador actualiza su estado con e ## Devoluciones -0 - Prevendrá a otros filterscripts de recibir este callback. +0 - El nuevo estado del jugador, no sera transmitido al resto de los jugadores. -1 - Indica que este callback será pasado al siguiente filterscript. +1 - El nuevo estado del jugador, sera transmitido normalmente al resto de los jugadores. Siempre se llama primero en filterscripts. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md index 4e9fc8de0fc..72804ad5680 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md @@ -49,7 +49,15 @@ Este callback se llama solo cuando /rcon login se usa adentro del juego. Este ca ::: +## Callbacks Relacionados + +Los siguientes callbacks pueden ser útiles, ya que están relacionados de alguna forma u otra con OnRconLoginAttempt: + +- [OnRconCommand](OnRconCommand): Llamado cuando se envia un comando desde la rcon. + ## Funciones Relacionadas +Las siguientes funciones pueden ser útiles, ya que están relacionadas de alguna forma u otra con OnRconLoginAttempt: + - [IsPlayerAdmin](../functions/IsPlayerAdmin): Comprueba si un jugador está identificado como RCON. - [SendRconCommand](../functions/SendRconCommand): Envía un comando RCON desde el script. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRecordingPlaybackEnd.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRecordingPlaybackEnd.md index a75aa83f1b7..cceb40cc0a7 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRecordingPlaybackEnd.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRecordingPlaybackEnd.md @@ -16,3 +16,10 @@ public OnRecordingPlaybackEnd() StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER, "all_around_lv_bus"); //Esto iniciaría el archivo grabado nuevamente una vez que termine de reproducirse. } ``` + +## Funciones Relacionadas + +Las siguientes funciones pueden ser útiles, ya que están relacionadas de alguna forma u otra con OnRecordingPlaybackEnd: + +- StartRecordingPlayback: Inicia la reproducción de un archivo. +- StopRecordingPlayback: Detiene de reproducir un archivo. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md index bd215cb1e29..867dc39ad4a 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md @@ -37,6 +37,14 @@ Este callback también se llamará cuando un vehículo entre en el agua, pero el ::: +## Callbacks Relacionados + +Los siguientes callbacks pueden ser útiles, ya que están relacionados de alguna forma u otra con OnVehicleDeath: + +- [OnVehicleSpawn](OnVehicleSpawn): Llamado cuando un vehículo **re**aparece. + ## Funciones Relacionadas +Las siguientes funciones pueden ser útiles, ya que están relacionadas de alguna forma u otra con OnVehicleDeath: + - [SetVehicleHealth](../functions/SetVehicleHealth): Establecer la salud de un vehículo. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md index 4ff0d782f9f..15114541187 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md @@ -36,7 +36,16 @@ public OnVehicleSpawn(vehicleid) } ``` +## Callbacks Relacionados + +Los siguientes callbacks pueden ser útiles, ya que están relacionados de alguna forma u otra con OnVehicleSpawn: + +- [OnVehicleDeath](OnVehicleDeath): Llamado cuando un vehiculo muere. +- [OnPlayerSpawn](OnPlayerSpawn): Llamado cuando un jugador aparece. + ## Funciones Relacionadas +Las siguientes funciones pueden ser útiles, ya que están relacionadas de alguna forma u otra con OnVehicleSpawn: + - [SetVehicleToRespawn](../functions/SetVehicleToRespawn): Reaparecer un vehículo. - [CreateVehicle](../functions/CreateVehicle): Crear un vehículo. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md index 4b98ac063e5..5ecd6eac37c 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md @@ -33,4 +33,10 @@ public OnVehicleStreamIn(vehicleid, forplayerid) +## Callbacks Relacionados + +- [OnVehicleStreamOut](OnVehicleStreamOut): Llamado cuando un vehiculo es "descargado" para un jugador. +- [OnPlayerStreamIn](OnPlayerStreamIn): Llamado cuando un jugador es "cargado" para otro jugador. +- [OnPlayerStreamOut](OnPlayerStreamOut): Llamado cuando un jugador es "descargado" para otro jugador. + ## Funciones Relacionadas diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamOut.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamOut.md index 39fdb4033c1..7ca29f3a50f 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamOut.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamOut.md @@ -33,4 +33,10 @@ public OnVehicleStreamOut(vehicleid, forplayerid) +## Callbacks Relacionados + +- [OnVehicleStreamIn](OnVehicleStreamIn): Llamado cuando un vehiculo es "cargado" para un jugador. +- [OnPlayerStreamIn](OnPlayerStreamIn): Llamado cuando un jugador es "cargado" para otro jugador. +- [OnPlayerStreamOut](OnPlayerStreamOut): Llamado cuando un jugador es "descargado" para otro jugador. + ## Funciones Relacionadas diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md index 9441e7485d8..6bc6bc39376 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md @@ -5,7 +5,7 @@ sidebar_label: Problemas Comunes ## El servidor se bloquea instantáneamente al iniciarse -Lo más común es que se deba a un error en tu archivo server.cfg o a la falta de un gamemode. Verifica el archivo server_log.txt y la razón debería estar ubicada en la parte inferior. Si no está ahí, verifica el archivo crashinfo.txt. La mejor solución para descubrir qué está causando el bloqueo es utilizar el plugin Crash Detect de Zeex/0x5A656578 ([clic aquí para acceder](https://github.com/AmyrAhmady/samp-plugin-crashdetect)), que proporcionará más información, como números de línea, nombres de función, valores de parámetros, etc. Si el script está compilado en modo de depuración (-d3 flag) para que el compilador incluya información adicional en el archivo .amx de salida. +Lo más común es que se deba a un error en tu archivo config.json o a la falta de un gamemode. Verifica el archivo log.txt y la razón debería estar ubicada en la parte inferior. Si no está ahí, verifica el archivo crashinfo.txt. La mejor solución para descubrir qué está causando el bloqueo es utilizar el plugin Crash Detect de Zeex/0x5A656578 ([clic aquí para acceder](https://github.com/AmyrAhmady/samp-plugin-crashdetect)), que proporcionará más información, como números de línea, nombres de función, valores de parámetros, etc. Si el script está compilado en modo de depuración (-d3 flag) para que el compilador incluya información adicional en el archivo .amx de salida. ## El servidor no funciona: el firewall está desactivado diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md index 1012bdf6abb..bd91af404de 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md @@ -21,8 +21,9 @@ Hay dos formas de crear pickup [CreatePickup](../scripting/functions/CreatePicku **Parameters:** -| modelo | El modelo que queres usar | +| Nombre | Descripción | | ------------ | ------------------------------------------------------------------------------------------------------- | +| modelo | El modelo que queres usar | | typo | El typo de pickup que es utiliza | | Float:X | La X-coordenada para el pickup. | | Float:Y | La Y-coordinate para el pickup. | diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/tutorials/colorfix.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/tutorials/colorfix.md index 9665c1070f8..8c63504b5e4 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/tutorials/colorfix.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/tutorials/colorfix.md @@ -1,24 +1,23 @@ --- title: "Color Fix" sidebar_label: "Color Fix" -descripion: Un script básico para agregar más colores al jugador. +description: Un script básico para agregar más colores al jugador. --- Este tutorial se debe utilizar con [GetPlayerColor](../scripting/functions/GetPlayerColor), si no usas [SetPlayerColor](../scripting/functions/SetPlayerColor) En tu guión cuando los jugadores se conectan. ```c -new PlayerColors[] = -{ - 0xFF8C13FF,0xC715FFFF,0x20B2AAFF,0xDC143CFF,0x6495EDFF,0xf0e68cFF,0x778899FF,0xFF1493FF,0xF4A460FF,0xEE82EEFF, - 0xFFD720FF,0x8b4513FF,0x4949A0FF,0x148b8bFF,0x14ff7fFF,0x556b2fFF,0x0FD9FAFF,0x10DC29FF,0x534081FF,0x0495CDFF, - 0xEF6CE8FF,0xBD34DAFF,0x247C1BFF,0x0C8E5DFF,0x635B03FF,0xCB7ED3FF,0x65ADEBFF,0x5C1ACCFF,0xF2F853FF,0x11F891FF, - 0x7B39AAFF,0x53EB10FF,0x54137DFF,0x275222FF,0xF09F5BFF,0x3D0A4FFF,0x22F767FF,0xD63034FF,0x9A6980FF,0xDFB935FF, - 0x3793FAFF,0x90239DFF,0xE9AB2FFF,0xAF2FF3FF,0x057F94FF,0xB98519FF,0x388EEAFF,0x028151FF,0xA55043FF,0x0DE018FF, - 0x93AB1CFF,0x95BAF0FF,0x369976FF,0x18F71FFF,0x4B8987FF,0x491B9EFF,0x829DC7FF,0xBCE635FF,0xCEA6DFFF,0x20D4ADFF, - 0x2D74FDFF,0x3C1C0DFF,0x12D6D4FF,0x48C000FF,0x2A51E2FF,0xE3AC12FF,0xFC42A8FF,0x2FC827FF,0x1A30BFFF,0xB740C2FF, - 0x42ACF5FF,0x2FD9DEFF,0xFAFB71FF,0x05D1CDFF,0xC471BDFF,0x94436EFF,0xC1F7ECFF,0xCE79EEFF,0xBD1EF2FF,0x93B7E4FF, - 0x3214AAFF,0x184D3BFF,0xAE4B99FF,0x7E49D7FF,0x4C436EFF,0xFA24CCFF,0xCE76BEFF,0xA04E0AFF,0x9F945CFF,0xDCDE3DFF, - 0x10C9C5FF,0x70524DFF,0x0BE472FF,0x8A2CD7FF,0x6152C2FF,0xCF72A9FF,0xE59338FF,0xEEDC2DFF,0xD8C762FF,0x3FE65CFF +new PlayerColors[] = { + 0xFF8C13FF, 0xC715FFFF, 0x20B2AAFF, 0xDC143CFF, 0x6495EDFF, 0xf0e68cFF, 0x778899FF, 0xFF1493FF, 0xF4A460FF, 0xEE82EEFF, + 0xFFD720FF, 0x8b4513FF, 0x4949A0FF, 0x148b8bFF, 0x14ff7fFF, 0x556b2fFF, 0x0FD9FAFF, 0x10DC29FF, 0x534081FF, 0x0495CDFF, + 0xEF6CE8FF, 0xBD34DAFF, 0x247C1BFF, 0x0C8E5DFF, 0x635B03FF, 0xCB7ED3FF, 0x65ADEBFF, 0x5C1ACCFF, 0xF2F853FF, 0x11F891FF, + 0x7B39AAFF, 0x53EB10FF, 0x54137DFF, 0x275222FF, 0xF09F5BFF, 0x3D0A4FFF, 0x22F767FF, 0xD63034FF, 0x9A6980FF, 0xDFB935FF, + 0x3793FAFF, 0x90239DFF, 0xE9AB2FFF, 0xAF2FF3FF, 0x057F94FF, 0xB98519FF, 0x388EEAFF, 0x028151FF, 0xA55043FF, 0x0DE018FF, + 0x93AB1CFF, 0x95BAF0FF, 0x369976FF, 0x18F71FFF, 0x4B8987FF, 0x491B9EFF, 0x829DC7FF, 0xBCE635FF, 0xCEA6DFFF, 0x20D4ADFF, + 0x2D74FDFF, 0x3C1C0DFF, 0x12D6D4FF, 0x48C000FF, 0x2A51E2FF, 0xE3AC12FF, 0xFC42A8FF, 0x2FC827FF, 0x1A30BFFF, 0xB740C2FF, + 0x42ACF5FF, 0x2FD9DEFF, 0xFAFB71FF, 0x05D1CDFF, 0xC471BDFF, 0x94436EFF, 0xC1F7ECFF, 0xCE79EEFF, 0xBD1EF2FF, 0x93B7E4FF, + 0x3214AAFF, 0x184D3BFF, 0xAE4B99FF, 0x7E49D7FF, 0x4C436EFF, 0xFA24CCFF, 0xCE76BEFF, 0xA04E0AFF, 0x9F945CFF, 0xDCDE3DFF, + 0x10C9C5FF, 0x70524DFF, 0x0BE472FF, 0x8A2CD7FF, 0x6152C2FF, 0xCF72A9FF, 0xE59338FF, 0xEEDC2DFF, 0xD8C762FF, 0x3FE65CFF }; ``` @@ -35,8 +34,7 @@ Ahora [GetPlayerColor](../scripting/functions/GetPlayerColor) ¡trabajará! Para nuevas versiones de SA-MP, puede agregar este array: ```c -new PlayerRainbowColors[511] = -{ +new PlayerRainbowColors[511] = { /*OKStyle*/ 0x000022FF, 0x000044FF, 0x000066FF, 0x000088FF, 0x0000AAFF, 0x0000CCFF, 0x0000EEFF, 0x002200FF, 0x002222FF, 0x002244FF, 0x002266FF, 0x002288FF, 0x0022AAFF, 0x0022CCFF, 0x0022EEFF, 0x004400FF, 0x004422FF, 0x004444FF, 0x004466FF, 0x004488FF, 0x0044AAFF, 0x0044CCFF, 0x0044EEFF, diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md index 60de1e0b899..01be939003e 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md @@ -1,7 +1,7 @@ --- title: Sistema de Varibles de Jugador sidebar_label: Sistema de Varibles de Jugador -description: El sistema de variables de jugador (abreviado, PVar) es una nueva forma de crear variables de jugador en un método eficiente creado dinámicamente de forma global, lo que significa que se pueden utilizar en el gamemode y en los filterscripts al mismo tiempo. +description: El sistema de variables de jugador (abreviado, PVar) es una nueva forma de crear variables de jugador en un método eficiente creado dinámicamente de forma global. --- El sistema de variables de jugador (abreviado, PVar) es una nueva forma de crear variables de jugador en un método eficiente creado dinámicamente de forma global, lo que significa que se pueden utilizar en el gamemode y en los filterscripts al mismo tiempo. diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md index ad127dd4cde..a5e06534f96 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md @@ -1,7 +1,7 @@ --- id: OnDialogResponse title: OnDialogResponse -description: این کالبک زمانی که بازیکن با "ShowPlayerDialog" از طریق کلیک روی دکمه یا فشردن دکمه ESC/ENTER یا کلیک بر روی آیتم(در صورتی که نوع دیالوگ لیست باشد) پاسخ بدهد فرا خوانده میشود +description: این کالبک زمانی که بازیکن با "ShowPlayerDialog" پاسخ بدهد فرا خوانده میشود. tags: [] --- diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md index 02b093a6278..264b2b9fc35 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md @@ -17,6 +17,8 @@ tags: ["player", "vehicle"] ## مقادیر برگشتی +این کالبک مقادیر برگشتی را پردازش نمی‌کند. + همیشه ابتدا در فیلتراسکریپت‌ها فراخوانده می‌شود. ## مثال‌ها diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md index 16a33e52de3..6634066f551 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md @@ -11,11 +11,11 @@ tags: ["player"] این کالبک زمانی فراخوانده می‌شود که بازیکن درخواست دانلود مدل سفارشی کند. -| نام | توضیحات | -| --------------------- | ---------------------------------------------------- | -| playerid | شناسه بازیکنی که درخواست دانلود مدل سفارشی کرده است. | -| DOWNLOAD_REQUEST:type | [نوع](../resources/download-requests) درخواست. | -| crc | چک‌سام CRC فایل مدل سفارشی. | +| نام | توضیحات | +| --------------------- | ------------------------------------------------------------------------------------ | +| playerid | شناسه بازیکنی که درخواست دانلود مدل سفارشی کرده است. | +| DOWNLOAD_REQUEST:type | [نوع](../resources/download-requests) درخواست. | +| crc | چک‌سام [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) فایل مدل سفارشی. | ## مقادیر برگشتی @@ -68,6 +68,14 @@ public OnPlayerRequestDownload(playerid, DOWNLOAD_REQUEST:type, crc) - [OnPlayerFinishedDownloading](OnPlayerFinishedDownloading): این کالبک زمانی فراخوانده می‌شود که بازیکن دانلود مدل‌های سفارشی را به پایان برساند. +## توابع مرتبط + +توابع زیر ممکن است مفید باشند، زیرا به نوعی با این کالبک مرتبط هستند. + +- [FindModelFileNameFromCRC](../functions/FindModelFileNameFromCRC): پیدا کردن فایل مدل کاستوم اسکین یا شیء ساده موجود. +- [FindTextureFileNameFromCRC](../functions/FindTextureFileNameFromCRC): پیدا کردن فایل تکسچر کاستوم اسکین یا شیء ساده موجود. +- [RedirectDownload](../functions/RedirectDownload): هدایت دانلود AddCharModel یا AddSimpleModel بازیکن به یک صفحه وب HTTP مشخص + ## منابع مرتبط - [Download Request Types](../resources/download-requests) diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md index 13746b28344..c4259e02bb2 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md @@ -9,7 +9,7 @@ tags: ["custom skin", "char model"] ## توضیحات -یک مدل کاراکتر سفارشی جدید برای دانلود اضافه می‌کند. فایل‌های مدل در Documents\GTA San Andreas User Files\SAMP\cache بازیکن در پوشه IP و Port سرور با نام فایل به شکل CRC ذخیره خواهند شد. +یک مدل کاراکتر سفارشی جدید برای دانلود اضافه می‌کند. فایل‌های مدل در Documents\GTA San Andreas User Files\SAMP\cache بازیکن در پوشه IP و Port سرور با نام فایل به [شکل CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) ذخیره خواهند شد. | نام | توضیحات | | ---------------------- | ------------------------------------------------------------------------------------------------------ | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md index 8a9e57b8566..02a88a29ce9 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md @@ -53,6 +53,7 @@ public OnGameModeInit() ## توابع مرتبط +- [AddSimpleModelTimed](AddSimpleModelTimed): مدل object ساده سفارشی جدیدی برای دانلود اضافه می‌کند. - [IsValidCustomModel](IsValidCustomModel): بررسی می‌کند که آیا ID مدل سفارشی معتبر است. - [GetCustomModelPath](GetCustomModelPath): مسیر مدل سفارشی را دریافت کنید. diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md index 46998786633..502263592cf 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md @@ -55,6 +55,7 @@ public OnGameModeInit() ## توابع مرتبط +- [AddSimpleModel](AddSimpleModel): مدل object ساده سفارشی جدیدی برای دانلود اضافه می‌کند. - [IsValidCustomModel](IsValidCustomModel): بررسی می‌کند که آیا ID مدل سفارشی معتبر است. - [GetCustomModelPath](GetCustomModelPath): مسیر مدل سفارشی را دریافت کنید. diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CallLocalFunction.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CallLocalFunction.md index a774e1b1e12..428f2dc1bd7 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CallLocalFunction.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CallLocalFunction.md @@ -32,6 +32,8 @@ tags: ["core"] | `f` | یک عدد اعشاری را پاس می‌دهد. | | `s` | یک رشته را پاس می‌دهد. | +مقادیر برای placeholder‌ها دقیقاً به همون ترتیب پارامترها در فراخوانی پیش می‌رن. + ## مثال‌ها ```c diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CallRemoteFunction.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CallRemoteFunction.md index 5bf697925ed..4bfaa95e5f3 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CallRemoteFunction.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CallRemoteFunction.md @@ -30,6 +30,8 @@ tags: ["core"] | `f` | یک عدد اعشاری را پاس می‌دهد. | | `s` | یک رشته را پاس می‌دهد. | +مقادیر برای placeholder‌ها دقیقاً به همون ترتیب پارامترها در فراخوانی پیش می‌رن. + ## مثال‌ها ```c diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md index 7b98bb8c28e..f10269e4378 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md @@ -1,7 +1,7 @@ --- title: ClearAnimations sidebar_label: ClearAnimations -description: تمام انیمیشن‌ها را برای بازیکن داده شده پاک می‌کند (همچنین تمام وظایف جاری مانند jetpack، چتربازی، وارد شدن به وسیله نقلیه، رانندگی (بازیکن را از وسیله نقلیه بیرون می‌کند)، شنا و غیره را لغو می‌کند). +description: تمام انیمیشن‌ها را برای بازیکن داده شده پاک می‌کند. tags: ["player", "animation"] --- diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md index e9d309eb7c7..c89b7606c85 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md @@ -1,7 +1,7 @@ --- title: CreatePickup sidebar_label: CreatePickup -description: این تابع دقیقاً همان کار AddStaticPickup را انجام می‌دهد، به جز اینکه ID پیکاپی را برمی‌گرداند که می‌تواند برای حذف آن و ردیابی با OnPlayerPickUpPickup استفاده شود. +description: این تابع دقیقاً همان کار AddStaticPickup را انجام می‌دهد، به جز اینکه ID پیکاپی را برمی‌گرداند. tags: ["pickup"] --- diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md index 4221269ff22..a905d21fdae 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md @@ -1,7 +1,7 @@ --- title: GetMaxPlayers sidebar_label: GetMaxPlayers -description: حداکثر تعداد بازیکنانی که می‌تونن به سرور بپیوندن رو برمی‌گردونه، که توسط متغیر سرور 'maxplayers' تنظیم شده. +description: حداکثر تعداد بازیکنانی که می‌تونن به سرور بپیوندن رو برمی‌گردونه، که توسط متغیر سرور 'max_players' تنظیم شده. tags: ["player"] --- diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetActor.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetActor.md index 58746178803..8f73e50abfa 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetActor.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetActor.md @@ -63,7 +63,7 @@ public OnPlayerUpdate(playerid) :::tip -این تابع فقط به شما می‌گوید بازیکن به کدام اکتور (اگر وجود داشته باشد) نگاه می‌کند. برای فهمیدن اینکه آیا به آن هدف‌گیری می‌کند یا خیر، باید GetPlayerTargetActor را استفاده کنید. +این تابع فقط به شما می‌گوید بازیکن به کدام اکتور (اگر وجود داشته باشد) نگاه می‌کند. برای فهمیدن اینکه آیا به آن هدف‌گیری می‌کند یا خیر، باید [GetPlayerTargetActor](GetPlayerTargetActor) را استفاده کنید. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md index 7bb1baa103c..4170a7fc36a 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md @@ -17,6 +17,8 @@ tags: ["player", "ip address"] ## مقادیر برگشتی +**-1** اگه بازیکن مشخص شده وجود نداشته باشه. + آدرس IP بازیکن در آرایه مشخص شده ذخیره می‌شود. ## مثال‌ها diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md index 10010447720..54e621ef728 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md @@ -17,6 +17,8 @@ tags: ["player"] ## مقادیر برگشتی +**0** اگه بازیکن مشخص شده وجود نداشته باشه. + نسخه کلاینت در آرایه مشخص شده ذخیره می‌شود. ## مثال‌ها diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarsUpperIndex.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarsUpperIndex.md index e6dc0572809..7d6d1af9be7 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarsUpperIndex.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarsUpperIndex.md @@ -9,6 +9,10 @@ tags: ["server variable", "svar"] هر SVar (متغیر سرور) یه شناسه منحصر به فرد برای lookup داره، این تابع بالاترین ID رو برمی‌گردونه. +## مقادیر برگشتی + +بالاترین ID تنظیم شده SVar. + ## مثال‌ها ```c diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md index 3974b74fb44..5ec49ff554d 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md @@ -45,4 +45,6 @@ public OnGameModeInit() ## توابع مرتبط +- [CreateActor](CreateActor): ساخت یه actor (NPC استاتیک). - [IsActorInvulnerable](IsActorInvulnerable): بررسی اینکه آیا actor آسیب نپذیر هست یا نه. +- [SetActorHealth](SetActorHealth): تنظیم سلامتی یه actor. diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md index 8bb308d453b..4ba204483ad 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md @@ -49,3 +49,6 @@ public OnPlayerCommandText(playerid, cmdtext[]) ## توابع مرتبط - [GetVehicleVelocity](GetVehicleVelocity): سرعت یه ماشین رو در محورهای X، Y و Z دریافت می‌کنه. +- [SetVehicleAngularVelocity](SetVehicleAngularVelocity): سرعت زاویه‌ای X، Y و Z یه ماشین رو تنظیم می‌کنه. +- [SetPlayerVelocity](SetPlayerVelocity): تنظیم سرعت یه بازیکن. +- [GetPlayerVelocity](GetPlayerVelocity): دریافت سرعت یه بازیکن. diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayback.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayback.md index 47fadc3eea4..e6ae9099a79 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayback.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayback.md @@ -1,7 +1,7 @@ --- title: StartRecordingPlayback sidebar_label: StartRecordingPlayback -description: این تابع یک فایل .rec را اجرا می‌کند که باید در پوشه npcmodes/recordings ذخیره شده باشد. این فایل‌ها به NPC اجازه می‌دهند تا اعمال خاصی را دنبال کنند. اعمال آن‌ها می‌تواند به صورت دستی ضبط شود. برای اطلاعات بیشتر، توابع مرتبط را بررسی کنید. +description: این تابع یک فایل .rec را اجرا می‌کند که باید در پوشه npcmodes/recordings ذخیره شده باشد. tags: [] --- diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md index fa7df993d32..28ef9cc3349 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md @@ -33,6 +33,12 @@ public OnGameModeInit() ## نکات +:::tip + +همچنین می‌توانید از رنگ‌های Gametext در textdraw ها استفاده کنید. (مثل `~r~` `~g~` `~b~`) + +::: + :::note اگر TextDraw قبلاً نمایش داده شده است، باید دوباره نمایش داده شود ([TextDrawShowForAll](TextDrawShowForAll)/[TextDrawShowForPlayer](TextDrawShowForPlayer)) تا تغییرات این تابع اعمال شوند. diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md index 4ba4012d2ec..081a13b46cb 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md @@ -709,3 +709,10 @@ MyFunction(num) return 0; } ``` + +## همچنین ببینید + +- [کلمات کلیدی: دستورات](Statements) +- [کلمات کلیدی: عملگرها](Operators) +- [کلمات کلیدی: دستورالعمل‌ها](Directives) +- [کلمات کلیدی: مقداردهان‌ها](Initialisers) diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/Directives.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/Directives.md index 5fb096ba59c..d1871d5d22f 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/Directives.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/Directives.md @@ -76,6 +76,16 @@ for(PL) printf("%d connected", i); new i = 0; i < MAX_PLAYERS; i++) \ if (IsPlayerConnected(i) +for (PL) +{ + printf("%d connected", i); +} +``` + +```c +#define MOO(%0) \ + ((%0) * 7) + printf("%d", MOO(6)); ``` @@ -110,7 +120,7 @@ printf("%d", MOO(5 + 6 * 7)); ```c #define PP(%0,%1) \ - printf(%0, %1) + printf(#%0, %1) PP(%s %s %s, "hi", "hello", "hi"); ``` diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/Initialisers.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/Initialisers.md index 694c7a8e7ca..5c6a16efcee 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/Initialisers.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/Initialisers.md @@ -123,7 +123,7 @@ enum E_EXAMPLE (*= 2) } ``` -در این همه مقدارها 0 هستند. چرا؟ خب اولین مقدار به طور پیش‌فرض 0 است، سپس 0 _ 2 = 0، سپس 0 _ 2 = 0 و 0 \* 2 = 0. پس چگونه این را تصحیح کنیم؟ این همان چیزی است که مقدارهای سفارشی برای آن هستند: +در این همه مقدارها 0 هستند. چرا؟ خب اولین مقدار به طور پیش‌فرض 0 است، سپس 0 \* 2 = 0، سپس 0 \* 2 = 0 و 0 \* 2 = 0. پس چگونه این را تصحیح کنیم؟ این همان چیزی است که مقدارهای سفارشی برای آن هستند: ```c enum E_EXAMPLE (*= 2) @@ -580,6 +580,7 @@ main() BigEndian:a = 7, BigEndian:b = 199; printf("%d", _:(a + b)); +} ``` به سادگی 42 خواهد داد، هیچ ربطی به جمع ندارد. diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/Statements.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/Statements.md index 44f8e112b99..bce7dc9c7e5 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/Statements.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/Statements.md @@ -366,6 +366,7 @@ printf("This will be printed"); اما کامپایلر goto را خیلی خوب مدیریت نمی‌کند پس آن اصلاً بهینه نخواهد شد و چیزهایی مثل: ```c +stock MyFunction() { new i = 5; @@ -435,7 +436,17 @@ if (i < 10) شرایطی که if می‌تواند بگیرد برای این پست خیلی زیاد هستند اما برخی در زیر فهرست شده‌اند: -عملگر توضیح مثال نتیجه وقتی a=1, b=0 نتیجه وقتی a=1, b=1 نتیجه وقتی a=0, b=1 نتیجه وقتی a=0, b=0 == بررسی می‌کند یک چیز برابر دیگری است if (a == b) false true false true != بررسی می‌کند یک چیز مثل دیگری نیست if (a != b) true false true false < بررسی می‌کند یک چیز کمتر از دیگری است if `(a < b)` false false true false > بررسی می‌کند یک چیز بیشتر از دیگری است if (a > b) true false false false `<=` بررسی می‌کند یک چیز کمتر یا مساوی دیگری است if `(a <= b)` false true true true >= بررسی می‌کند یک چیز بیشتر یا مساوی دیگری است `if (a >= b)` true true false true && بررسی می‌کند دو چیز درست هستند (نه 0) if (a && b) false true false false || بررسی می‌کند حداقل یکی از دو چیز درست است (نه 0) if (a || b) true true true false ! بررسی می‌کند چیزی نادرست است if (!(a == b)) true false true false +| عملگر | توضیح | مثال | نتیجه وقتی a=1, b=0 | نتیجه وقتی a=1, b=1 | نتیجه وقتی a=0, b=1 | نتیجه وقتی a=0, b=0 | +| ------ | ------------------------------------------------ | ---------------- | ------------------- | ------------------- | ------------------- | ------------------- | +| `==` | بررسی می‌کند یک چیز برابر دیگری است | `if (a == b)` | false | true | false | true | +| `!=` | بررسی می‌کند یک چیز مثل دیگری نیست | `if (a != b)` | true | false | true | false | +| `<` | بررسی می‌کند یک چیز کمتر از دیگری است | `if (a < b)` | false | false | true | false | +| `>` | بررسی می‌کند یک چیز بیشتر از دیگری است | `if (a > b)` | true | false | false | false | +| `<=` | بررسی می‌کند یک چیز کمتر یا مساوی دیگری است | `if (a <= b)` | false | true | true | true | +| `>=` | بررسی می‌کند یک چیز بیشتر یا مساوی دیگری است | `if (a >= b)` | true | true | false | true | +| `&&` | بررسی می‌کند دو چیز درست هستند (نه 0) | `if (a && b)` | false | true | false | false | +| `\|\|` | بررسی می‌کند حداقل یکی از دو چیز درست است (نه 0) | `if (a \|\| b)` | true | true | true | false | +| `!` | بررسی می‌کند چیزی نادرست است | `if (!(a == b))` | true | false | true | false | واضح است که با این‌ها می‌توانید شرایط پیچیده بسازید: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md index 2a59151f420..3a914c1cfee 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md @@ -5,7 +5,7 @@ sidebar_label: مشکلات رایج سرور ## سرور بلافاصله پس از شروع کرش می‌کند -معمولاً خطایی در فایل server.cfg شما یا گیم مود شما گم شده است. فایل server_log.txt را بررسی کنید و دلیل باید در پایین قرار گرفته باشد. اگر نبود، فایل crashinfo.txt را بررسی کنید. راه‌حل بهتر برای پیدا کردن علت کرش استفاده از پلاگین Crash detect توسط Zeex/0x5A656578 ([لینک](https://github.com/AmyrAhmady/samp-plugin-crashdetect)) است که اطلاعات بیشتری مثل شماره خطوط، نام توابع، مقادیر پارامتر و غیره خواهد داد. اگر اسکریپت در حالت debug کامپایل شده باشد (فلگ -d3) تا کامپایلر اطلاعات اضافی در مورد همه این موارد را در خروجی .amx قرار دهد. +معمولاً خطایی در فایل config.json شما یا گیم مود شما گم شده است. فایل log.txt را بررسی کنید و دلیل باید در پایین قرار گرفته باشد. اگر نبود، فایل crashinfo.txt را بررسی کنید. راه‌حل بهتر برای پیدا کردن علت کرش استفاده از پلاگین Crash detect توسط Zeex/0x5A656578 ([لینک](https://github.com/AmyrAhmady/samp-plugin-crashdetect)) است که اطلاعات بیشتری مثل شماره خطوط، نام توابع، مقادیر پارامتر و غیره خواهد داد. اگر اسکریپت در حالت debug کامپایل شده باشد (فلگ -d3) تا کامپایلر اطلاعات اضافی در مورد همه این موارد را در خروجی .amx قرار دهد. ## سرور کار نمی‌کند - فایروال غیرفعال است diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/server/ControllingServer.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/server/ControllingServer.md index 5af0a3e970f..331a06fe98d 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/server/ControllingServer.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/server/ControllingServer.md @@ -18,14 +18,26 @@ description: دستورات مفید برای کنترل سرور. همان اجرای گیم مود سفارشی، به جز: - .amx را در پوشه‌ای به نام `filterscripts` قرار دهید -- موارد زیر را به server.cfg اضافه کنید: `filterscripts ` +- مسیر فیلتر اسکریپت را بدون پسوند `.amx` به `pawn.side_scripts` در [config.json](config.json) اضافه کنید: + +```json +{ + "pawn": { + "side_scripts": [ + "filterscripts/scriptname" + ] + } +} +``` ## رمز گذاشتن برای سرور -- اگر می‌خواهید رمز اضافه کنید تا فقط دوستانتان بتوانند بپیوندند، این را به [server.cfg](server.cfg) اضافه کنید: +- اگر می‌خواهید رمز اضافه کنید تا فقط دوستانتان بتوانند بپیوندند، این را به [config.json](config.json) اضافه کنید: -``` -password whatever +```json +{ + "password": "whatever" +} ``` - این سرور شما را با رمز محافظت می‌کند که رمز روی 'whatever' تنظیم شده - آن را به هر چیزی که می‌خواهید تغییر دهید. @@ -38,24 +50,26 @@ password whatever می‌توانید در حین بازی با تایپ `/rcon login password` وارد شوید یا خارج از بازی با استفاده از حالت RCON در [Remote Console](RemoteConsole). -رمز عبور همانی است که در [server.cfg](server.cfg) تنظیم کرده‌اید +رمز عبور RCON همان مقدار `rcon.password` است که در [config.json](config.json) تنظیم کرده‌اید. ### اضافه کردن بن‌ها -##### samp.ban +##### bans.json -samp.ban فایلی است که برای ذخیره بن‌ها استفاده می‌شود، شامل اطلاعات زیر در مورد بن: +bans.json فایلی است که برای ذخیره بن‌ها استفاده می‌شود، شامل اطلاعات زیر در مورد بن: - IP - تاریخ - زمان -- نام (نام شخص یا دلیل، [BanEx](../scripting/functions/BanEx) را ببینید) -- نوع بن +- نام (نام شخص) +- دلیل ([BanEx](../scripting/functions/BanEx) را ببینید) -برای اضافه کردن بن، به سادگی خطی مانند زیر اضافه کنید: +برای اضافه کردن بن، به سادگی شیئی مانند زیر به آرایه JSON اضافه کنید: -``` -IP_HERE [28/05/09 | 13:37:00] PLAYER - BAN REASON +```json +[ + {"address": "IP_HERE", "player": "PLAYER", "reason": "BAN REASON", "time": "2009-05-28T13:37:00+0000"} +] ``` جایی که `IP_HERE` است، جایی است که IP که می‌خواهید بن کنید را قرار می‌دهید. @@ -64,8 +78,10 @@ IP_HERE [28/05/09 | 13:37:00] PLAYER - BAN REASON تابع [Ban](../scripting/functions/Ban) می‌تواند برای بن کردن بازیکن از اسکریپت استفاده شود. تابع [BanEx](../scripting/functions/BanEx) دلیل اختیاری اضافه می‌کند مانند: -``` -13.37.13.37 [28/05/09 | 13:37:00] Cheater - INGAME BAN +```json +[ + {"address": "13.37.13.37", "player": "Cheater", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` ##### دستور ban RCON @@ -100,27 +116,29 @@ banip IP وقتی کسی بن شد، دو راه برای unban کردن او وجود دارد. -- حذف از samp.ban +- حذف از bans.json - دستور RCON `unbanip` -#### samp.ban +#### bans.json -samp.ban را می‌توان در دایرکتوری سرور sa-mp شما یافت، شامل خطوطی با اطلاعات زیر در مورد هر بن: +bans.json را می‌توان در دایرکتوری سرور open.mp شما یافت، شامل اشیائی با اطلاعات زیر در مورد هر بن: - IP - تاریخ - زمان -- نام (نام شخص یا دلیل ([BanEx](../scripting/functions/BanEx) را ببینید)) -- نوع بن (INGAME، IP BAN و غیره) +- نام (نام شخص) +- دلیل ([BanEx](../scripting/functions/BanEx) را ببینید) مثال‌ها: -``` -127.8.57.32 [13/06/09 | 69:69:69] NONE - IP BAN -13.37.13.37 [28/05/09 | 13:37:00] Kyeman - INGAME BAN +```json +[ + {"address": "127.8.57.32", "player": "NONE", "reason": "IP BAN", "time": "2009-06-13T13:37:00+0000"}, + {"address": "13.37.13.37", "player": "Kyeman", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` -برای unban کردن، به سادگی خط را حذف کنید، سپس دستور RCON reloadbans را اجرا کنید تا سرور samp.ban را دوباره بخواند. +برای unban کردن، به سادگی شیء را حذف کنید، سپس دستور RCON reloadbans را اجرا کنید تا سرور bans.json را دوباره بخواند. #### unbanip @@ -128,8 +146,10 @@ samp.ban را می‌توان در دایرکتوری سرور sa-mp شما یا مثال: -``` -13.37.13.37 [28/05/09 | 13:37:00] Kyeman - INGAME BAN +```json +[ + {"address": "13.37.13.37", "player": "Kyeman", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` ``` @@ -140,11 +160,11 @@ samp.ban را می‌توان در دایرکتوری سرور sa-mp شما یا unbanip 13.37.13.37 ``` -برای unban کردن، به سادگی از دستور `unbanip` استفاده کنید، سپس دستور RCON `reloadbans` را اجرا کنید تا سرور samp.ban را دوباره بخواند. +برای unban کردن، به سادگی از دستور `unbanip` استفاده کنید. #### reloadbans -`samp.ban` فایلی است که اطلاعات IP هایی که در حال حاضر از سرور بن شده‌اند را نگه می‌دارد. این فایل زمانی که سرور شروع می‌شود خوانده می‌شود، بنابراین اگر IP/شخصی را unban کنید باید دستور RCON `reloadbans` را تایپ کنید تا سرور `samp.ban` را دوباره بخواند و به آنها اجازه پیوستن به سرور بدهد. +`bans.json` فایلی است که اطلاعات IP هایی که در حال حاضر از سرور بن شده‌اند را نگه می‌دارد. این فایل زمانی که سرور شروع می‌شود خوانده می‌شود، بنابراین اگر با ویرایش فایل IP/شخصی را unban کنید باید دستور RCON `reloadbans` را تایپ کنید تا سرور `bans.json` را دوباره بخواند و به آنها اجازه پیوستن به سرور بدهد. ### دستورات RCON @@ -152,39 +172,39 @@ cmdlist را برای دستورات (یا varlist برای متغیرها) تا اینها توابعی هستند که شما به عنوان ادمین می‌توانید استفاده کنید: -| دستور | توضیحات | -| --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -| `/rcon cmdlist` | فهرستی از دستورات را نشان می‌دهد. | -| `/rcon varlist` | فهرستی از متغیرهای فعلی را نشان می‌دهد. | -| `/rcon exit` | سرور را می‌بندد. | -| `/rcon echo [text]` | `[text]` را در کنسول سرور نشان می‌دهد (نه کنسول کلاینت در بازی). | -| `/rcon hostname [name]` | متن hostname را تغییر می‌دهد (_مثال: /rcon hostname my server_). | -| `/rcon gamemodetext [name]` | متن gamemode را تغییر می‌دهد (_مثال: /rcon gamemodetext my gamemode_). | -| `/rcon mapname [name]` | متن نام نقشه را تغییر می‌دهد (_مثال: /rcon mapname San Andreas_). | -| `/rcon exec [filename]` | فایلی که شامل server cfg است را اجرا می‌کند (_مثال: /rcon exec blah.cfg_). | -| `/rcon kick [ID]` | بازیکن با ID داده شده را kick می‌کند (_مثال: /rcon kick 2_). | -| `/rcon ban [ID]` | بازیکن با ID داده شده را ban می‌کند (_مثال: /rcon ban 2_). | -| `/rcon changemode [mode]` | این دستور gamemode فعلی را به مود داده شده تغییر می‌دهد (_مثال: اگر می‌خواهید sftdm بازی کنید: /rcon changemode sftdm_). | -| `/rcon gmx` | gamemode بعدی را در [server.cfg](server.cfg) بارگذاری می‌کند. | -| `/rcon reloadbans` | فایل `samp.ban` که آدرس‌های IP بن شده در آن ذخیره شده‌اند را reload می‌کند. باید بعد از unban کردن آدرس IP استفاده شود. | -| `/rcon reloadlog` | `server_log.txt` را reload می‌کند. برای چرخش خودکار لاگ مفید است. می‌تواند با ارسال سیگنال `SIGUSR1` به سرور فعال شود (فقط سرور لینوکس). | -| `/rcon say` | پیامی به بازیکنان در کنسول کلاینت نشان می‌دهد (مثال: `/rcon say hello` به عنوان `Admin: hello` نشان داده می‌شود). | -| `/rcon players` | بازیکنانی که در سرور هستند را نشان می‌دهد (با نام، IP و ping آنها). | -| `/rcon banip [IP]` | IP داده شده را ban می‌کند (_مثال: /rcon banip 127.0.0.1_). | -| `/rcon unbanip [IP]` | IP داده شده را unban می‌کند (_مثال: /rcon unbanip 127.0.0.1_). | -| `/rcon gravity` | گرانش را تغییر می‌دهد (_مثال: /rcon gravity 0.008_). | -| `/rcon weather [ID]` | آب و هوا را تغییر می‌دهد (_مثال: /rcon weather 1_). | -| `/rcon loadfs` | filterscript داده شده را بارگذاری می‌کند (_مثال: /rcon loadfs adminfs_). | -| `/rcon weburl [server url]` | URL سرور را در masterlists/کلاینت SA-MP تغییر می‌دهد | -| `/rcon unloadfs` | filterscript داده شده را unload می‌کند (_مثال: /rcon unloadfs adminfs_). | -| `/rcon reloadfs` | filterscript داده شده را reload می‌کند (_مثال: /rcon reloadfs adminfs_). | -| `/rcon rcon\_password [PASSWORD]` | رمز عبور rcon را تغییر می‌دهد | -| `/rcon password [password]` | رمز عبور سرور را تنظیم/بازنشانی می‌کند | -| `/rcon messageslimit [count]` | تعداد پیام‌های در ثانیه که کلاینت به سرور ارسال می‌کند را تغییر می‌دهد. (پیش‌فرض 500) | -| `/rcon ackslimit [count]` | حد ack ها را تغییر می‌دهد (پیش‌فرض 3000) | -| `/rcon messageholelimit [count]` | حد message hole ها را تغییر می‌دهد (پیش‌فرض 3000) | -| `/rcon playertimeout [limit m/s]` | زمان به میلی‌ثانیه تا timeout شدن بازیکن وقتی هیچ پکتی ارسال نمی‌کند را تغییر می‌دهد. (پیش‌فرض 1000) | -| `/rcon language [language]` | زبان سرور را تغییر می‌دهد (_مثال: /rcon language English_). در مرورگر سرور نشان داده می‌شود. | +| دستور | توضیحات | +| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | +| `/rcon cmdlist` | فهرستی از دستورات را نشان می‌دهد. | +| `/rcon varlist` | فهرستی از متغیرهای فعلی را نشان می‌دهد. | +| `/rcon exit` | سرور را می‌بندد. | +| `/rcon echo [text]` | `[text]` را در کنسول سرور نشان می‌دهد (نه کنسول کلاینت در بازی). | +| `/rcon hostname [name]` | متن hostname را تغییر می‌دهد (_مثال: /rcon hostname my server_). | +| `/rcon gamemodetext [name]` | متن gamemode را تغییر می‌دهد (_مثال: /rcon gamemodetext my gamemode_). | +| `/rcon mapname [name]` | متن نام نقشه را تغییر می‌دهد (_مثال: /rcon mapname San Andreas_). | +| `/rcon exec [filename]` | فایلی که شامل server cfg است را اجرا می‌کند (_مثال: /rcon exec blah.cfg_). | +| `/rcon kick [ID]` | بازیکن با ID داده شده را kick می‌کند (_مثال: /rcon kick 2_). | +| `/rcon ban [ID]` | بازیکن با ID داده شده را ban می‌کند (_مثال: /rcon ban 2_). | +| `/rcon changemode [mode]` | این دستور gamemode فعلی را به مود داده شده تغییر می‌دهد (_مثال: اگر می‌خواهید sftdm بازی کنید: /rcon changemode sftdm_). | +| `/rcon gmx` | gamemode بعدی را در [config.json](config.json) بارگذاری می‌کند. | +| `/rcon reloadbans` | فایل `bans.json` که آدرس‌های IP بن شده در آن ذخیره شده‌اند را reload می‌کند. باید بعد از unban کردن آدرس IP با ویرایش فایل استفاده شود. | +| `/rcon reloadlog` | `log.txt` را reload می‌کند. برای چرخش خودکار لاگ مفید است. می‌تواند با ارسال سیگنال `SIGUSR1` به سرور فعال شود (فقط سرور لینوکس). | +| `/rcon say` | پیامی به بازیکنان در کنسول کلاینت نشان می‌دهد (مثال: `/rcon say hello` به عنوان `Admin: hello` نشان داده می‌شود). | +| `/rcon players` | بازیکنانی که در سرور هستند را نشان می‌دهد (با نام، IP و ping آنها). | +| `/rcon banip [IP]` | IP داده شده را ban می‌کند (_مثال: /rcon banip 127.0.0.1_). | +| `/rcon unbanip [IP]` | IP داده شده را unban می‌کند (_مثال: /rcon unbanip 127.0.0.1_). | +| `/rcon gravity` | گرانش را تغییر می‌دهد (_مثال: /rcon gravity 0.008_). | +| `/rcon weather [ID]` | آب و هوا را تغییر می‌دهد (_مثال: /rcon weather 1_). | +| `/rcon loadfs` | filterscript داده شده را بارگذاری می‌کند (_مثال: /rcon loadfs adminfs_). | +| `/rcon weburl [server url]` | URL سرور را در masterlists/کلاینت SA-MP تغییر می‌دهد | +| `/rcon unloadfs` | filterscript داده شده را unload می‌کند (_مثال: /rcon unloadfs adminfs_). | +| `/rcon reloadfs` | filterscript داده شده را reload می‌کند (_مثال: /rcon reloadfs adminfs_). | +| `/rcon rcon\_password [PASSWORD]` | رمز عبور rcon را تغییر می‌دهد | +| `/rcon password [password]` | رمز عبور سرور را تنظیم/بازنشانی می‌کند | +| `/rcon messageslimit [count]` | تعداد پیام‌های در ثانیه که کلاینت به سرور ارسال می‌کند را تغییر می‌دهد. (پیش‌فرض 500) | +| `/rcon ackslimit [count]` | حد ack ها را تغییر می‌دهد (پیش‌فرض 3000) | +| `/rcon messageholelimit [count]` | حد message hole ها را تغییر می‌دهد (پیش‌فرض 3000) | +| `/rcon playertimeout [limit m/s]` | زمان به میلی‌ثانیه تا timeout شدن بازیکن وقتی هیچ پکتی ارسال نمی‌کند را تغییر می‌دهد. (پیش‌فرض 1000) | +| `/rcon language [language]` | زبان سرور را تغییر می‌دهد (_مثال: /rcon language English_). در مرورگر سرور نشان داده می‌شود. | چهار حد/تعداد بالایی فقط برای جلوگیری از چندین ابزار که می‌توانند هر سرور SA-MP را با منجمد کردن یا کرش کردن آن مورد حمله قرار دهند ساخته شده‌اند. بنابراین، به سادگی، فقط آنها را بر اساس سرور خود تنظیم کنید. مقادیر پیش‌فرض پیش‌فرض هستند، اگر kick های اشتباه می‌بینید، فقط مقادیر را در اسرع وقت افزایش دهید تا بازیکنان بی‌گناه توسط آن kick نشوند. diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/server/server.cfg.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/server/server.cfg.md index 00d60cfc325..c053d06df6b 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/server/server.cfg.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/server/server.cfg.md @@ -124,3 +124,7 @@ description: فایل پیکربندی سرور. - مقادیری که به عنوان "فقط خواندنی" علامت‌گذاری شده‌اند (`/rcon varlist` نشان می‌دهد) نمی‌توانند در طول runtime تغییر کنند. همه مقادیر دیگر می‌توانند (موقتاً) با ارسال آنها به SendRconCommand تغییر کنند. - مقادیری که به عنوان "قانون" علامت‌گذاری شده‌اند (`/rcon varlist` نشان می‌دهد) در مرورگر سرور در بخش Rules نمایش داده می‌شوند. - اسکریپت‌ها نیازی ندارند در پوشه‌های gamemodes یا filterscripts باشند. اطلاعات در server.cfg یک مسیر است، و بنابراین می‌تواند از ".." استفاده کند. + +``` +filterscripts ../scriptfiles/first ../minimodes/second +``` diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md index 8c9948873d7..427e71e2a6e 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md @@ -21,8 +21,9 @@ new gMyPickup; **پارامترها:** -| model | مدلی که می‌خواهید برای pickup استفاده کنید. | +| نام | توضیحات | | ------------ | ---------------------------------------------------------------------------------------------- | +| model | مدلی که می‌خواهید برای pickup استفاده کنید. | | type | نوع spawn pickup، پایین‌تر در این صفحه ببینید. | | Float:X | مختصات X برای نمایش pickup. | | Float:Y | مختصات Y برای نمایش pickup. | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/tutorials/colorfix.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/tutorials/colorfix.md index 0aead7c3dfe..a9aa32b5e8c 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/tutorials/colorfix.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/tutorials/colorfix.md @@ -8,16 +8,16 @@ description: اسکریپت پایه برای اضافه کردن رنگ‌ها ```pawn new PlayerColors[] = { - 0xFF8C13FF,0xC715FFFF,0x20B2AAFF,0xDC143CFF,0x6495EDFF,0xf0e68cFF,0x778899FF,0xFF1493FF,0xF4A460FF,0xEE82EEFF, - 0xFFD720FF,0x8b4513FF,0x4949A0FF,0x148b8bFF,0x14ff7fFF,0x556b2fFF,0x0FD9FAFF,0x10DC29FF,0x534081FF,0x0495CDFF, - 0xEF6CE8FF,0xBD34DAFF,0x247C1BFF,0x0C8E5DFF,0x635B03FF,0xCB7ED3FF,0x65ADEBFF,0x5C1ACCFF,0xF2F853FF,0x11F891FF, - 0x7B39AAFF,0x53EB10FF,0x54137DFF,0x275222FF,0xF09F5BFF,0x3D0A4FFF,0x22F767FF,0xD63034FF,0x9A6980FF,0xDFB935FF, - 0x3793FAFF,0x90239DFF,0xE9AB2FFF,0xAF2FF3FF,0x057F94FF,0xB98519FF,0x388EEAFF,0x028151FF,0xA55043FF,0x0DE018FF, - 0x93AB1CFF,0x95BAF0FF,0x369976FF,0x18F71FFF,0x4B8987FF,0x491B9EFF,0x829DC7FF,0xBCE635FF,0xCEA6DFFF,0x20D4ADFF, - 0x2D74FDFF,0x3C1C0DFF,0x12D6D4FF,0x48C000FF,0x2A51E2FF,0xE3AC12FF,0xFC42A8FF,0x2FC827FF,0x1A30BFFF,0xB740C2FF, - 0x42ACF5FF,0x2FD9DEFF,0xFAFB71FF,0x05D1CDFF,0xC471BDFF,0x94436EFF,0xC1F7ECFF,0xCE79EEFF,0xBD1EF2FF,0x93B7E4FF, - 0x3214AAFF,0x184D3BFF,0xAE4B99FF,0x7E49D7FF,0x4C436EFF,0xFA24CCFF,0xCE76BEFF,0xA04E0AFF,0x9F945CFF,0xDCDE3DFF, - 0x10C9C5FF,0x70524DFF,0x0BE472FF,0x8A2CD7FF,0x6152C2FF,0xCF72A9FF,0xE59338FF,0xEEDC2DFF,0xD8C762FF,0x3FE65CFF + 0xFF8C13FF, 0xC715FFFF, 0x20B2AAFF, 0xDC143CFF, 0x6495EDFF, 0xf0e68cFF, 0x778899FF, 0xFF1493FF, 0xF4A460FF, 0xEE82EEFF, + 0xFFD720FF, 0x8b4513FF, 0x4949A0FF, 0x148b8bFF, 0x14ff7fFF, 0x556b2fFF, 0x0FD9FAFF, 0x10DC29FF, 0x534081FF, 0x0495CDFF, + 0xEF6CE8FF, 0xBD34DAFF, 0x247C1BFF, 0x0C8E5DFF, 0x635B03FF, 0xCB7ED3FF, 0x65ADEBFF, 0x5C1ACCFF, 0xF2F853FF, 0x11F891FF, + 0x7B39AAFF, 0x53EB10FF, 0x54137DFF, 0x275222FF, 0xF09F5BFF, 0x3D0A4FFF, 0x22F767FF, 0xD63034FF, 0x9A6980FF, 0xDFB935FF, + 0x3793FAFF, 0x90239DFF, 0xE9AB2FFF, 0xAF2FF3FF, 0x057F94FF, 0xB98519FF, 0x388EEAFF, 0x028151FF, 0xA55043FF, 0x0DE018FF, + 0x93AB1CFF, 0x95BAF0FF, 0x369976FF, 0x18F71FFF, 0x4B8987FF, 0x491B9EFF, 0x829DC7FF, 0xBCE635FF, 0xCEA6DFFF, 0x20D4ADFF, + 0x2D74FDFF, 0x3C1C0DFF, 0x12D6D4FF, 0x48C000FF, 0x2A51E2FF, 0xE3AC12FF, 0xFC42A8FF, 0x2FC827FF, 0x1A30BFFF, 0xB740C2FF, + 0x42ACF5FF, 0x2FD9DEFF, 0xFAFB71FF, 0x05D1CDFF, 0xC471BDFF, 0x94436EFF, 0xC1F7ECFF, 0xCE79EEFF, 0xBD1EF2FF, 0x93B7E4FF, + 0x3214AAFF, 0x184D3BFF, 0xAE4B99FF, 0x7E49D7FF, 0x4C436EFF, 0xFA24CCFF, 0xCE76BEFF, 0xA04E0AFF, 0x9F945CFF, 0xDCDE3DFF, + 0x10C9C5FF, 0x70524DFF, 0x0BE472FF, 0x8A2CD7FF, 0x6152C2FF, 0xCF72A9FF, 0xE59338FF, 0xEEDC2DFF, 0xD8C762FF, 0x3FE65CFF }; ``` diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/client/ClientCommands.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/client/ClientCommands.md index a4857503a31..a56f20a33df 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/client/ClientCommands.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/client/ClientCommands.md @@ -1,7 +1,7 @@ --- title: "Client Commands" sidebar_label: "Client Commands" -descripion: List of all client commands. +description: List of all client commands. --- | Command | Description | diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md index 8b2f4c7d5c0..b8f5b0d0dd8 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md @@ -1,7 +1,7 @@ --- title: OnDialogResponse sidebar_label: OnDialogResponse -description: This callback is called when a player responds to a dialog shown using ShowPlayerDialog by either clicking a button, pressing ENTER/ESC or double-clicking a list item (if using a list style dialog). +description: This callback is called when a player responds to a dialog shown using ShowPlayerDialog. tags: [] --- diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptExit.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptExit.md index c1efca52f44..5076ebc7254 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptExit.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptExit.md @@ -1,7 +1,7 @@ --- title: OnFilterScriptExit sidebar_label: OnFilterScriptExit -description: This callback is called when a filterscript is unloaded. It is only called inside the filterscript which is unloaded. +description: This callback is called when a filterscript is unloaded. tags: [] --- diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md index b4d9e3c4c92..0f72490d7ec 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md @@ -19,6 +19,8 @@ Ang callback na ito ay natatawag kapag ang isang manlalaro ay pumasok sa loob ng ## Returns +Hindi nag rereturn ang callback na ito. + Lagi itong na tatawag una sa mga filterscript. ## Halimbawa ng Paggamit diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md index 68dd6964b11..f15ef51d905 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md @@ -9,7 +9,7 @@ tags: [] ## Description -Nagdaragdag ng bagong custom na modelo ng character para sa pag-download. Ang mga file ng modelo ay maiimbak sa Documents\GTA San Andreas User Files\SAMP\cache ng player sa ilalim ng Server IP at Port folder sa isang CRC-form file name. +Nagdaragdag ng bagong custom na modelo ng character para sa pag-download. Ang mga file ng modelo ay maiimbak sa Documents\GTA San Andreas User Files\SAMP\cache ng player sa ilalim ng Server IP at Port folder sa isang [CRC-form](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) file name. | Name | Description | | ------- | ---------------------------------------------------------------------------------------------------------------------------- | diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md index 246e1434301..47ffd8b5c08 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md @@ -51,4 +51,5 @@ Kasalukuyang walang mga paghihigpit sa kung kailan mo maaaring tawagan ang funct ## Related Functions +- [AddSimpleModelTimed](AddSimpleModelTimed): Nagdaragdag ng bagong custom na simpleng object model para sa pag-download. - [OnPlayerFinishedDownloading](../callbacks/OnPlayerFinishedDownloading): Tinatawag kapag natapos na ng player ang pag-download ng mga custom na modelo. diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md index d75e32bdd72..5f3667720fb 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md @@ -53,4 +53,5 @@ Kasalukuyang walang mga paghihigpit sa kung kailan mo maaaring tawagan ang funct ## Related Functions +- [AddSimpleModel](AddSimpleModel): Nagdaragdag ng bagong custom na simpleng object model para sa pag-download. - [OnPlayerFinishedDownloading](../callbacks/OnPlayerFinishedDownloading): Tinatawag kapag natapos na ng player ang pag-download ng mga custom na modelo. diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md index 8da5b3c2c9c..3e201b6b16f 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md @@ -7,7 +7,7 @@ tags: ["administration"] ## Description -I-ban ang isang manlalaro na kasalukuyang nasa server. Hindi na sila makakasali muli sa server. Ang pagbabawal ay magiging IP-based, at mase-save sa samp.ban file sa root directory ng server. Maaaring gamitin ang BanEx upang magbigay ng dahilan para sa pagbabawal. Maaaring idagdag/alisin ang mga IP ban gamit ang RCON banip at unbanip command (SendRconCommand). +I-ban ang isang manlalaro na kasalukuyang nasa server. Hindi na sila makakasali muli sa server. Ang pagbabawal ay magiging IP-based, at mase-save sa **bans.json** file sa root directory ng server. Maaaring gamitin ang BanEx upang magbigay ng dahilan para sa pagbabawal. Maaaring idagdag/alisin ang mga IP ban gamit ang RCON banip at unbanip command (SendRconCommand). | Name | Description | | -------- | ------------------------------ | diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md index fd3119e447b..f85505f4b85 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md @@ -1,7 +1,7 @@ --- title: EnableZoneNames sidebar_label: EnableZoneNames -description: Binibigyang-daan ng function na ito na i-on ang mga pangalan ng zone / area gaya ng text na "Vinewood" o "Doherty" sa kanang ibaba ng screen habang papasok ang mga ito sa lugar. +description: Binibigyang-daan ng function na ito na i-on ang mga pangalan ng zone / area. tags: [] --- diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md index e75b9ebc28e..87f08c9f5a8 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md @@ -1,7 +1,7 @@ --- title: Kick sidebar_label: Kick -description: I-kick ang isang manlalaro mula sa server. Kakailanganin nilang umalis sa laro at muling kumonekta kung nais nilang magpatuloy sa paglalaro. +description: I-kick ang isang manlalaro mula sa server. tags: ["administration"] --- diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayback.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayback.md index 073a45a7c35..efd1a0793e5 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayback.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayback.md @@ -1,7 +1,7 @@ --- title: StartRecordingPlayback sidebar_label: StartRecordingPlayback -description: Ito ay mag ru-run ng .rec file na kailangang i-save sa npcmodes/recordings folder. Ang mga file na ito ay nagpapahintulot sa NPC na sundin ang ilang mga aksyon. Ang kanilang mga aksyon ay maaaring maitala nang manu-mano. Para sa karagdagang impormasyon, tingnan ang mga kaugnay na function. +description: Ito ay mag ru-run ng .rec file na kailangang i-save sa npcmodes/recordings folder. tags: [] --- diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/language/Style.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/language/Style.md index f18d27d2b6f..0176394cd43 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/language/Style.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/language/Style.md @@ -1,7 +1,7 @@ --- id: Style title: "Pawn Style Guide" -description: A short guide on the generally accepted naming conventions and other aspects of Pawn source code to aid easier communication of intent and streamline debugging and sharing of code. +description: A short guide on the generally accepted naming conventions and other aspects of Pawn source code. --- Ang documentation na ito a maikli lang para sa general accepted naming convensions (Please sumunod sa mga naming convensions para madali matrack ang mga variables or macros mo) at iba diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/client/ClientCommands.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/client/ClientCommands.md index 80732cee593..ea5bd8f9198 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/client/ClientCommands.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/client/ClientCommands.md @@ -1,7 +1,7 @@ --- title: "Commandes client" sidebar_label: "Commandes client" -descripion: Liste de toutes les commandes côté client. +description: Liste de toutes les commandes côté client. --- | Commande | Description | diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md index 1ed83a3347e..221507d2519 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md @@ -1,7 +1,7 @@ --- title: OnDialogResponse sidebar_label: OnDialogResponse -description: Cette callback est appelée lorsqu'un joueur lorsqu'un joueur répond à une boîte de dialogue affichée à l'aide de ShowPlayerDialog en cliquant sur un bouton, en appuyant sur ENTRÉE / ÉCHAP ou en double-cliquant sur un élément de liste (si vous utilisez un `DIALOG_STYLE_LIST`). +description: Cette callback est appelée lorsqu'un joueur répond à une boîte de dialogue affichée à l'aide de ShowPlayerDialog. tags: [Dialog, DIALOG_STYLE_LIST, OnDialogReponse, listitem, dialogid] --- @@ -60,7 +60,7 @@ Les paramètres peuvent changer selon le style de dialog ([voir plus de styles d :::tip -Il est important d'avoir plusieurs dialogids, surtout si vous en faites plusieurs. +C'est approprié d'utiliser switch à travers les différents IDs de dialog/listitem si vous en avez beaucoup. ::: @@ -72,4 +72,6 @@ Le dialog ouvert par un joueur ne se cache pas quand le serveur redémarre, le s ## Fonctions connexes +Les fonctions suivantes peuvent être utiles, car elles sont liées à ce rappel d'une manière ou d'une autre. + - [ShowPlayerDialog](../functions/ShowPlayerDialog): affiche le Dialog à un joueur. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptExit.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptExit.md index 6ba938cd4b0..13de918c087 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptExit.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptExit.md @@ -23,4 +23,8 @@ public OnFilterScriptExit() ## Callback connnexe +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + - [OnFilterScriptInit](OnFilterScriptInit) : chargement d'un filterscript +- [OnGameModeInit](OnGameModeInit) : Appelée lorsqu'un gamemode se charge. +- [OnGameModeExit](OnGameModeExit) : Appelée lorsqu'un gamemode se ferme. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md index 8e6169070e7..f985e38a9ea 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md @@ -23,4 +23,8 @@ public OnFilterScriptInit() ## Callback connexe +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + - [OnFilterScriptExit](OnFilterScriptExit) : déchargement d'un filterscript +- [OnGameModeInit](OnGameModeInit) : Appelée lorsqu'un gamemode se charge. +- [OnGameModeExit](OnGameModeExit) : Appelée lorsqu'un gamemode se ferme. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md index 7c126b26359..51103d155f8 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md @@ -33,4 +33,14 @@ Cette fonction peut également être utilisée dans un filterscript pour détect ## Callback connexe +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + - [OnGameModeInit](OnGameModeInit) : callback appelée quand le gamemode démarre +- [OnFilterScriptInit](OnFilterScriptInit) : Appelée lorsqu'un filterscript est chargé. +- [OnFilterScriptExit](OnFilterScriptExit) : Appelée lorsqu'un filterscript se ferme. + +## Fonctions connexes + +Les fonctions suivantes peuvent être utiles, car elles sont liées à ce rappel d'une manière ou d'une autre. + +- GameModeExit : Ferme le gamemode courant. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md index e2ae0916a97..21dfa6a1ad9 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md @@ -33,4 +33,8 @@ Cette fonction peut aussi être utilisée dans un filterscript pour détecter si ## Callback connexe +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + - [OnGameModeExit](OnGameModeExit) : callback appelée quand le gamemode s'éteint +- [OnFilterScriptInit](OnFilterScriptInit) : Appelée lorsqu'un filterscript est chargé. +- [OnFilterScriptExit](OnFilterScriptExit) : Appelée lorsqu'un filterscript se ferme. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md index 18d424b593a..7fb92048fe9 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md @@ -29,6 +29,13 @@ public OnIncomingConnection(playerid, ip_address[], port) } ``` +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnPlayerConnect](OnPlayerConnect): Appelée lorsqu'un joueur se connecte. +- [OnPlayerDisconnect](OnPlayerDisconnect): Quand un joueur se déconnecte du serveur. + ## Fonctions connexes - [BlockIpAddress](../functions/BlockIpAddress): bloque les tentatives de connexion d'une adresse IP pour un temps déterminé diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayer.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayer.md index 806f904c5a7..6d9a67d9f89 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayer.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayer.md @@ -35,7 +35,7 @@ public OnPlayerClickPlayer(playerid, clickedplayerid, CLICK_SOURCE:source) :::note -Il n'y a qu'une seule 'source' de clic (0 - CLICK_SOURCE_SCOREBOARD). +Il n'y a qu'une seule 'source' de clic (0 - CLICK_SOURCE_SCOREBOARD). L'existence de ce paramètre suggère que plusieurs ressources seront ajoutées dans le futur. ::: diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md index 07eaf5db4d5..af1d7e2bd44 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md @@ -43,6 +43,15 @@ public OnPlayerCommandText(playerid, cmdtext[]) +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnPlayerText](OnPlayerText): Appelée lorsqu'un joueur envoie un message via le chat. +- [OnRconCommand](OnRconCommand): Appelée lorsqu'une commande RCON est exécutée. + ## Fonctions connexes +Les fonctions suivantes peuvent être utiles, car elles sont liées à ce rappel d'une manière ou d'une autre. + - [SendRconCommand](../functions/SendRconCommand): Envoie un commande RCON via le script en jeu. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md index d4e70e52843..f3539bc146b 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md @@ -42,4 +42,6 @@ public OnPlayerConnect(playerid) ## Callback connexe +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + - [OnPlayerDisconnect](OnPlayerDisconnect) : Quand un joueur se déconnecte du serveur. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md index d0c94f60ac1..0f7fae1b90a 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md @@ -1,7 +1,7 @@ --- title: OnPlayerDeath sidebar_label: OnPlayerDeath -description: Cette callback est appelée quand le joueur est mort. Il peut s'agir aussi bien d'une mort par kill qu'une mort par suicide. +description: Cette callback est appelée quand le joueur est mort. tags: ["player"] --- @@ -58,7 +58,15 @@ Vous DEVEZ vérifier que `killerid` est valide (pas `INVALID_PLAYER_ID`) avant d ::: +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnPlayerSpawn](OnPlayerSpawn): Appelée lorsqu'un joueur spawn (apparaît). + ## Fonctions connexes +Les fonctions suivantes peuvent être utiles, car elles sont liées à ce rappel d'une manière ou d'une autre. + - [SendDeathMessage](../functions/SendDeathMessage): Ajoute un kill dans le killfeed. - [SetPlayerHealth](../functions/SetPlayerHealth): Heal un joueur. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md index 15b914395ce..31d489749aa 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md @@ -18,6 +18,14 @@ Cette callback est appelée quand un joueur se déconnecte du serveur. Cette callback ne retourne rien, mais doit retourner quelque chose. Autrement dit, `return callback();` ne fonctionnera pas car la callback ne retourne rien, mais un return _(`return 1;` ou `return 0;`)_ doit être effectué dans la callback. +## Raisons + +| ID | Raison de la déconnexion | Description | +| --- | --------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| 0 | Temps d'attente dépassé (Timeout)/Crash | La connexion aux joueur a été perdue. Peut être que son jeu a crashé ou que sa connexion internet a été coupée. | +| 1 | Déconnexion | Le joueur a quitté le jeu volontairement, avec la commande /quit (/q) ou via le menu. | +| 2 | Exclu/Banni | Le joueur a été exclu ou banni du serveur. | + ## Exemple ```c @@ -53,4 +61,6 @@ Certaines fonctions peuvent ne pas fonctionner correctement quand cette callback ## Callback connexe +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + - [OnPlayerConnect](OnPlayerConnect) : Quand le joueur se connecte au serveur. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditAttachedObject.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditAttachedObject.md index 3f52a44a409..239f8c84613 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditAttachedObject.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditAttachedObject.md @@ -89,5 +89,7 @@ L'édition doit être abandonnée si la réponse est '0' (cancelled). Cela doit ## Fonctions connexes +Les fonctions suivantes peuvent être utiles, car elles sont liées à ce rappel d'une manière ou d'une autre. + - [EditAttachedObject](../functions/EditAttachedObject): Édition d'un attach object. - [SetPlayerAttachedObject](../functions/SetPlayerAttachedObject): Attache un objet à un joueur. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterCheckpoint.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterCheckpoint.md index e64fa76aae0..567b4cf3a96 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterCheckpoint.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterCheckpoint.md @@ -40,8 +40,18 @@ public OnPlayerEnterCheckpoint(playerid) +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnPlayerLeaveCheckpoint](OnPlayerLeaveCheckpoint): Appelée lorsqu'un joueur sort d'un checkpoint. +- [OnPlayerEnterRaceCheckpoint](OnPlayerEnterRaceCheckpoint): Appelée lorsqu'un joueur entre dans un checkpoint de course. +- [OnPlayerLeaveRaceCheckpoint](OnPlayerLeaveRaceCheckpoint): Appelée lorsqu'un joueur sort d'un checkpoint de course. + ## Fonctions connexes +Les fonctions suivantes peuvent être utiles, car elles sont liées à ce rappel d'une manière ou d'une autre. + - [SetPlayerCheckpoint](../functions/SetPlayerCheckpoint): Créer un checkpoint pour un joueur. - [DisablePlayerCheckpoint](../functions/DisablePlayerCheckpoint): Désactive le checkpoint du joueur. - [IsPlayerInCheckpoint](../functions/IsPlayerInCheckpoint): Vérifie si un joueur est dans un checkpoint. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterRaceCheckpoint.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterRaceCheckpoint.md index d14359cd38a..b5769eddf28 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterRaceCheckpoint.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterRaceCheckpoint.md @@ -31,8 +31,18 @@ public OnPlayerEnterRaceCheckpoint(playerid) +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnPlayerEnterCheckpoint](OnPlayerEnterCheckpoint): Appelée lorsqu'un joueur entre dans un checkpoint. +- [OnPlayerLeaveCheckpoint](OnPlayerLeaveCheckpoint): Appelée lorsqu'un joueur sort d'un checkpoint. +- [OnPlayerLeaveRaceCheckpoint](OnPlayerLeaveRaceCheckpoint): Appelée lorsqu'un joueur sort d'un checkpoint de course. + ## Fonctions connexes +Les fonctions suivantes peuvent être utiles, car elles sont liées à ce rappel d'une manière ou d'une autre. + - [SetPlayerCheckpoint](../functions/SetPlayerCheckpoint): Créer un checkpoint pour un joueur. - [DisablePlayerCheckpoint](../functions/DisablePlayerCheckpoint): Désactive le checkpoint du joueur. - [IsPlayerInCheckpoint](../functions/IsPlayerInCheckpoint): Vérifie si un joueur est dans un checkpoint. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md index e475660fb9f..ce2b7b039b5 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md @@ -1,7 +1,7 @@ --- title: OnPlayerEnterVehicle sidebar_label: OnPlayerEnterVehicle -description: Cette callback est appelée quand un joueur commence à entrer dans un véhicule, c'est-à-dire que le joueur n'est pas encore dans le véhicule quand la callback est appelée. +description: Cette callback est appelée quand un joueur commence à entrer dans un véhicule. tags: ["player", "vehicle"] --- @@ -41,7 +41,16 @@ OnPlayerEnterVehicle est quand même appelé si le joueur est interdit d'entrer ::: +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnPlayerExitVehicle](OnPlayerExitVehicle): Appelée lorsqu'un joueur quitte un véhicule. +- [OnPlayerStateChange](OnPlayerStateChange): Appelé quand un joueur change d'état. + ## Fonctions connexes +Les fonctions suivantes peuvent être utiles, car elles sont liées à ce rappel d'une manière ou d'une autre. + - [PutPlayerInVehicle](../functions/PutPlayerInVehicle): Met un joueur dans le véhicule. - [GetPlayerVehicleSeat](../functions/GetPlayerVehicleSeat): Vérifie la place du joueur dans le véhicule. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md index 0ed1cf1f7c7..4a9c87935dd 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md @@ -40,7 +40,16 @@ Il faudra utiliser [OnPlayerStateChange](OnPlayerStateChange) et vérifier si l' ::: +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnPlayerEnterVehicle](OnPlayerEnterVehicle): Appelée lorsqu'un joueur commence à entrer dans un véhicule. +- [OnPlayerStateChange](OnPlayerStateChange): Appelé quand un joueur change d'état. + ## Fonctions connexes +Les fonctions suivantes peuvent être utiles, car elles sont liées à ce rappel d'une manière ou d'une autre. + - [RemovePlayerFromVehicle](../functions/RemovePlayerFromVehicle): Sort de force un joueur du véhicule. - [GetPlayerVehicleSeat](../functions/GetPlayerVehicleSeat): Vérifie la place du joueur dans le véhicule. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitedMenu.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitedMenu.md index 25d7c482bd8..c9b4ba92871 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitedMenu.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitedMenu.md @@ -27,7 +27,15 @@ public OnPlayerExitedMenu(playerid) } ``` +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnPlayerSelectedMenuRow](OnPlayerSelectedMenuRow): Appelée quand un joueur sélectionne une ligne d'un menu. + ## Fonctions connexes +Les fonctions suivantes peuvent être utiles, car elles sont liées à ce rappel d'une manière ou d'une autre. + - [CreateMenu](../functions/CreateMenu): Créer un menu. - [DestroyMenu](../functions/DestroyMenu): Détruit un menu. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md index ca77fba6058..0dfe0ab8b07 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md @@ -63,3 +63,9 @@ public OnPlayerGiveDamage(playerid, damagedid, Float:amount, WEAPON:weaponid, bo Si vous voulez empêcher certains joueurs de s'endommager, utilisez SetPlayerTeam. ::: + +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnPlayerTakeDamage](OnPlayerTakeDamage): Cette callback est appelée lorsqu'un joueur subît des dégâts. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md index 950d34bdc1c..72f73288534 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md @@ -40,6 +40,12 @@ Cette callback est aussi appelée quand un joueur presse F4. ::: +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnPlayerRequestSpawn](OnPlayerRequestSpawn): Appelée lorsqu'un joueur appuie sur le bouton 'spawn' dans la sélection de classe. + ## Fonctions connexes - [AddPlayerClass](../functions/AddPlayerClass): Ajoute une classe. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md index 39476eb42b8..38460029766 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md @@ -15,7 +15,7 @@ Cette callback est appelée quand un joueur sollicite le téléchargement des cu | -------------- | ----------------------------------------------------------------------------------------------------------------- | | `int` playerid | ID du joueur qui sollicite le téléchargement de custom models ID of the player that request custom model download | | `int` type | Type de requête (voir _infra_) | -| `int` crc | Numéro CRC du fichier custom | +| `int` crc | Numéro [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) du fichier custom | ## Valeur de retour diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md index f9edd0cd666..3c7082302ec 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md @@ -41,4 +41,10 @@ Pour éviter que les joueurs spawn avec une certaine classe, la classe dernière ::: +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnPlayerRequestClass](OnPlayerRequestClass): Appelée lorsqu'un joueur change de classe dans la sélection de classe. + ## Fonctions connexes diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSpawn.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSpawn.md index 2c53c2cd62f..151e866aa90 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSpawn.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSpawn.md @@ -42,6 +42,13 @@ Le jeu déduit parfois \$100 à un joueur après son apparition. ::: +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnPlayerDeath](OnPlayerDeath): Appelée lorsqu'un joueur meurt. +- [OnVehicleSpawn](OnVehicleSpawn): Appelée lorsqu'un véhicule **ré**-apparaît. + ## Fonctions connexes - [SpawnPlayer](../functions/SpawnPlayer): Force un joueur a spawn. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md index f7b92900dbc..244349d9a4c 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md @@ -39,6 +39,12 @@ public OnPlayerStateChange(playerid, PLAYER_STATE:newstate, PLAYER_STATE:oldstat +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnPlayerInteriorChange](OnPlayerInteriorChange): Appelée lorsqu'un joueur change d'intérieur. + ## Fonctions connexes - [GetPlayerState](../functions/GetPlayerState): Permet de connaître l'actuel état du joueur. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamIn.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamIn.md index e9da13eba25..9c937bede72 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamIn.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamIn.md @@ -37,4 +37,12 @@ public OnPlayerStreamIn(playerid, forplayerid) +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnPlayerStreamOut](OnPlayerStreamOut): Quand un joueur est dé-chargé (devient invisible) pour un autre joueur +- [OnActorStreamIn](OnActorStreamIn): Quand un actor est chargé (devient visible) pour un joueur. +- [OnVehicleStreamIn](OnVehicleStreamIn): Quand un véhicule est chargé (devient visible) pour un joueur + ## Fonctions connexes diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamOut.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamOut.md index 17fb0a6fc82..4f193af9801 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamOut.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamOut.md @@ -37,4 +37,12 @@ public OnPlayerStreamOut(playerid, forplayerid) +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnPlayerStreamIn](OnPlayerStreamIn): Quand un joueur est chargé (devient visible) pour un autre joueur +- [OnActorStreamOut](OnActorStreamOut): Quand un actor est déchargé (n'est plus visible) pour un joueur. +- [OnVehicleStreamOut](OnVehicleStreamOut): Quand un véhicule est dé-chargé (devient invisible) pour un joueur + ## Fonctions connexes diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md index 2bfe855f60f..f03fef42e20 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md @@ -85,3 +85,10 @@ GetPlayerHealth et GetPlayerArmour renverront les anciens montants du joueur ava Vérifiez toujours si `issuerid` est valide avant de l'utiliser comme index de tableau. ::: + +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnPlayerGiveDamage](OnPlayerGiveDamage): Cette callback est appelée lorsqu'un joueur profère des dégâts à un autre joueur. +- [OnPlayerWeaponShot](OnPlayerWeaponShot): Appelée lorsqu'un joueur fait feu avec une arme. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerText.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerText.md index e8832772813..d221a8fda56 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerText.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerText.md @@ -42,7 +42,15 @@ public OnPlayerText(playerid, text[]) +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnPlayerCommandText](OnPlayerCommandText): Appelée lorsqu'un joueur écrit une commande. + ## Fonctions connexes +Les fonctions suivantes peuvent être utiles, car elles sont liées à ce rappel d'une manière ou d'une autre. + - [SendPlayerMessageToPlayer](../functions/SendPlayerMessageToPlayer): Force un joueur à envoyer un message à un joueur. - [SendPlayerMessageToAll](../functions/SendPlayerMessageToAll): Force un joueur à envoyer un message à tous les joueurs. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md index 50c0af1b008..228905964e0 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md @@ -60,8 +60,12 @@ Vous devez inclure cette callback dans un filterscript chargé pour qu'elle marc ## Fonction connexe +Les fonctions suivantes peuvent être utiles, car elles sont liées à ce rappel d'une manière ou d'une autre. + - [IsPlayerAdmin](../functions/IsPlayerAdmin): Vérifie si un joueur est loggé en RCON. ## Callback connexe +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + - [OnRconLoginAttempt](OnRconLoginAttempt): Appelée lorsqu'un joueur essaie de se connecter en RCON. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md index 90129abc52d..5bdebae8402 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md @@ -50,7 +50,15 @@ Cette callback est appelée uniquement lorsque /rcon login est utilisé. ::: +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnRconCommand](OnRconCommand): Appelée lorsqu'une commande RCON est exécutée. + ## Fonctions connexes +Les fonctions suivantes peuvent être utiles, car elles sont liées à ce rappel d'une manière ou d'une autre. + - [IsPlayerAdmin](../functions/IsPlayerAdmin): Vérifie si un joueur est loggé en RCON. - [SendRconCommand](../functions/SendRconCommand): Exécute une commande RCON via le script. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md index a7ffd163879..018811c7776 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md @@ -40,6 +40,14 @@ Cette callback est appelée lorsqu'un véhicule entre dans l'eau mais il peut ê ::: +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnVehicleSpawn](OnVehicleSpawn): Appelée lorsqu'un véhicule **ré**-apparaît. + ## Fonctions connexes +Les fonctions suivantes peuvent être utiles, car elles sont liées à ce rappel d'une manière ou d'une autre. + - [SetVehicleHealth](../functions/SetVehicleHealth): Modifie la vie d'un véhicule. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md index 88a2f7c29c8..e3605213c6c 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md @@ -44,10 +44,14 @@ Cette callback ne sera pas appelée avec [AddVehicleComponent](../functions/AddV ## Fonctions connexes +Les fonctions suivantes peuvent être utiles, car elles sont liées à ce rappel d'une manière ou d'une autre. + - [AddVehicleComponent](../functions/AddVehicleComponent): Ajoute un composant sur un véhicule. ## Callbacks connexes +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + - [OnEnterExitModShop](OnEnterExitModShop): Appelée lorsqu'un joueur dans un véhicule entre ou sort d'un garage de modification. - [OnVehiclePaintjob](OnVehiclePaintjob): Appelée lorsque la peinture d'un véhicule est changée. - [OnVehicleRespray](OnVehicleRespray): Appelée lorsqu'un véhicule est repeint. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md index cdcafffa599..c2bfa10b157 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md @@ -44,10 +44,14 @@ La callback est appelée lorsque le joueur modifie la peinture DANS le transfend ## Fonctions connexes +Les fonctions suivantes peuvent être utiles, car elles sont liées à ce rappel d'une manière ou d'une autre. + - [ChangeVehiclePaintjob](../functions/ChangeVehiclePaintjob): Change the paintjob on a vehicle. - [ChangeVehicleColor](../functions/ChangeVehicleColor): Set the color of a vehicle. ## Callbacks connexes +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + - [OnVehicleRespray](OnVehicleRespray): Called when a vehicle is resprayed. - [OnVehicleMod](OnVehicleMod): Called when a vehicle is modded. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md index 68476eef5bc..78b5d78b825 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md @@ -50,11 +50,15 @@ Bug connu : la prévisualisation d'un composant dans une boutique de mods peut a ## Fonctions connexes +Les fonctions suivantes peuvent être utiles, car elles sont liées à ce rappel d'une manière ou d'une autre. + - [ChangeVehicleColor](../functions/ChangeVehicleColor): Modifie la couleur d'un véhicule. - [ChangeVehiclePaintjob](../functions/ChangeVehiclePaintjob): Change la peinture d'un véhicule. ## Callbacks connexes +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + - [OnVehiclePaintjob](OnVehiclePaintjob): Appelée lorsque la peinture d'un véhicule est changée. - [OnVehicleMod](OnVehicleMod): Appelée lorsqu'un véhicule est modifié. - [OnEnterExitModShop](OnEnterExitModShop): Appelée lorsqu'un joueur dans un véhicule entre ou sort d'un garage de modification. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md index 4fbfc227b89..69d27298eec 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md @@ -33,7 +33,16 @@ public OnVehicleSpawn(vehicleid) } ``` +## Callbacks connexes + +Les Callbacks ci-dessous sont indirectement ou directement liées à cette Callback. + +- [OnVehicleDeath](OnVehicleDeath): Appelée lorsqu'un véhicule est détruit. +- [OnPlayerSpawn](OnPlayerSpawn): Appelée lorsqu'un joueur spawn (apparaît). + ## Fonctions connexes +Les fonctions suivantes peuvent être utiles, car elles sont liées à ce rappel d'une manière ou d'une autre. + - [SetVehicleToRespawn](../functions/SetVehicleToRespawn): Respawn un véhicule. - [CreateVehicle](../functions/CreateVehicle): Créer un vehicle. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md index 28f353a79a3..c48813b8d29 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md @@ -36,3 +36,7 @@ public OnVehicleStreamIn(vehicleid, forplayerid) ## Fonctions connexes + +- [OnVehicleStreamOut](OnVehicleStreamOut): Quand un véhicule est dé-chargé (devient invisible) pour un joueur. +- [OnPlayerStreamIn](OnPlayerStreamIn): Quand un joueur est chargé (devient visible) pour un autre joueur. +- [OnPlayerStreamOut](OnPlayerStreamOut): Quand un joueur est dé-chargé (devient invisible) pour un autre joueur. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamOut.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamOut.md index f295afe7764..e4a983c79b6 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamOut.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamOut.md @@ -35,3 +35,7 @@ public OnVehicleStreamOut(vehicleid, forplayerid) ## Fonctions connexes + +- [OnVehicleStreamIn](OnVehicleStreamIn): Quand un véhicule est chargé (devient visible) pour un joueur. +- [OnPlayerStreamIn](OnPlayerStreamIn): Quand un joueur est chargé (devient visible) pour un autre joueur. +- [OnPlayerStreamOut](OnPlayerStreamOut): Quand un joueur est dé-chargé (devient invisible) pour un autre joueur. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md index 3ecce0c619e..3b196372551 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md @@ -9,7 +9,7 @@ tags: [] ## Description -Ajoute un nouveau modèle de personnage personnalisé à télécharger. Les fichiers modèles seront stockés dans le dossier Documents\GTA San Andreas User Files\SAMP\cache du lecteur sous le dossier IP et port du serveur dans un nom de fichier au format CRC. +Ajoute un nouveau modèle de personnage personnalisé à télécharger. Les fichiers modèles seront stockés dans le dossier Documents\GTA San Andreas User Files\SAMP\cache du lecteur sous le dossier IP et port du serveur dans un nom de fichier au [format CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check). | Nom | Description | | ------- | ------------------------------------------------------------------------------------------------------------------------------------------- | diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md index fb121532271..51db6d70a22 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md @@ -4,7 +4,7 @@ title: Problèmes courants ## Le serveur plante instantanément au démarrage -Le plus souvent, il s'agit d'une erreur dans votre fichier server.cfg ou de votre mode de jeu manquant. Vérifiez le fichier server_log.txt et la raison doit être située en bas. Sinon, vérifiez le fichier crashinfo.txt. La meilleure solution pour savoir ce qui cause le crash est d'utiliser le plugin de détection de crash de Zeex/0x5A656578 ([cliquez pour le lien](https://github.com/AmyrAhmady/samp-plugin-crashdetect)) qui donnera plus d'informations comme les numéros de ligne, les noms de fonction, les valeurs de paramètre, etc. Si le script est compilé en mode débogage (indicateur -d3) pour que le compilateur mette des informations supplémentaires sur tout cela dans la sortie .amx. +Le plus souvent, il s'agit d'une erreur dans votre fichier config.json ou de votre mode de jeu manquant. Vérifiez le fichier log.txt et la raison doit être située en bas. Sinon, vérifiez le fichier crashinfo.txt. La meilleure solution pour savoir ce qui cause le crash est d'utiliser le plugin de détection de crash de Zeex/0x5A656578 ([cliquez pour le lien](https://github.com/AmyrAhmady/samp-plugin-crashdetect)) qui donnera plus d'informations comme les numéros de ligne, les noms de fonction, les valeurs de paramètre, etc. Si le script est compilé en mode débogage (indicateur -d3) pour que le compilateur mette des informations supplémentaires sur tout cela dans la sortie .amx. ## Le serveur ne fonctionne pas - le pare-feu est désactivé diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/server/ControllingServer.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/server/ControllingServer.md index aaf36aa68c5..7f2186b69e1 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/server/ControllingServer.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/server/ControllingServer.md @@ -41,20 +41,22 @@ Le mot de passe est le même que celui que vous avez défini dans [config.json]( ### Bannir un joueur -##### samp.ban +##### bans.json -samp.ban est le fichier utilisé pour stocker les joueurs bannis, y compris les informations suivantes sur l'interdiction : +bans.json est le fichier utilisé pour stocker les joueurs bannis, y compris les informations suivantes sur l'interdiction : - IP - Date - Temps -- Nom (Nom de la personne ou un motif, voir [BanEx](../scripting/functions/BanEx)) -- Type d'interdiction +- Nom (Nom de la personne) +- Motif (voir [BanEx](../scripting/functions/BanEx)) -Pour ajouter un nouveau joueur à bannir, ajoutez simplement une ligne comme ceci : +Pour ajouter un nouveau joueur à bannir, ajoutez simplement un objet au tableau JSON comme ceci : -``` -ADRESSE_IP [28/05/09 | 13:37:00] JOUEUR - RAISON DU BAN +```json +[ + {"address": "ADRESSE_IP", "player": "JOUEUR", "reason": "RAISON DU BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` `ADRESSE_IP` étant l'adresse IP du joueur à bannir. @@ -63,8 +65,10 @@ ADRESSE_IP [28/05/09 | 13:37:00] JOUEUR - RAISON DU BAN La fonction [Ban](../scripting/functions/Ban) peut être utilisée pour bannir un joueur à partir d'un script. La fonction [BanEx](../scripting/functions/BanEx) ajoutera une raison facultative comme ceci : -``` -13.37.13.37 [28/05/09 | 13:37:00] JOUEUR - INGAME BAN +```json +[ + {"address": "13.37.13.37", "player": "JOUEUR", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` ##### Commande de ban avec RCON @@ -100,27 +104,29 @@ banip IP Une fois que quelqu'un est banni, il y a deux façons de le débannir. -- Supprimer de samp.ban +- Supprimer de bans.json - La commande RCON `unbanip` -#### samp.ban +#### bans.json -samp.ban se trouve dans le répertoire de votre serveur sa-mp, il contient des lignes avec les informations suivantes sur chaque interdiction : +bans.json se trouve dans le répertoire de votre serveur open.mp, il contient des objets avec les informations suivantes sur chaque interdiction : - IP - Date - Temps -- Nom (Nom de la personne ou un motif (voir [BanEx](../scripting/functions/BanEx))) -- Type d'interdiction (INGAME, IP BAN etc,) +- Nom (Nom de la personne) +- Motif (voir [BanEx](../scripting/functions/BanEx)) Exemples: -``` -127.8.57.32 [13/06/09 | 69:69:69] AUCUN - INTERDICTION IP -13.37.13.37 [28/05/09 | 13:37:00] Kyeman - INTERDICTION DE JEU +```json +[ + {"address": "127.8.57.32", "player": "AUCUN", "reason": "INTERDICTION IP", "time": "2009-06-13T13:37:00+0000"}, + {"address": "13.37.13.37", "player": "Kyeman", "reason": "INTERDICTION DE JEU", "time": "2009-05-28T13:37:00+0000"} +] ``` -Pour les débannir, supprimez simplement la ligne, puis exécutez la commande RCON `reloadbans` pour actualiser la liste des joueurs bannis à partir du fichier samp.ban. +Pour les débannir, supprimez simplement l'objet, puis exécutez la commande RCON `reloadbans` pour actualiser la liste des joueurs bannis à partir du fichier bans.json. #### unbanip @@ -128,8 +134,10 @@ La commande RCON unbanip peut être utilisée dans le jeu ou depuis la console d Exemple: -``` -13.37.13.37 [28/05/09 | 13:37:00] Kyeman - INTERDICTION DE JEU +```json +[ + {"address": "13.37.13.37", "player": "Kyeman", "reason": "INTERDICTION DE JEU", "time": "2009-05-28T13:37:00+0000"} +] ``` ``` @@ -140,11 +148,11 @@ Exemple: unbanip 13.37.13.37 ``` -Pour les débannir, utilisez simplement la commande `unbanip`, puis exécutez la commande RCON `reloadbans` pour actualiser la liste des joueurs bannis à partir du fichier samp.ban. +Pour les débannir, utilisez simplement la commande `unbanip`. #### reloadbans -`samp.ban` est un fichier qui contient les informations sur les adresses IP actuellement bannies du serveur. Ce fichier est lu au démarrage du serveur, donc si vous débloquez une adresse IP/personne, vous DEVEZ taper la commande RCON `reloadbans` pour que le serveur lise à nouveau `samp.ban` et lui permette de rejoindre le serveur. +`bans.json` est un fichier qui contient les informations sur les adresses IP actuellement bannies du serveur. Ce fichier est lu au démarrage du serveur, donc si vous débloquez une adresse IP/personne en modifiant le fichier, vous DEVEZ taper la commande RCON `reloadbans` pour que le serveur lise à nouveau `bans.json` et lui permette de rejoindre le serveur. ### Commandes RCON @@ -152,39 +160,39 @@ Tapez cmdlist pour les commandes (ou varlist pour les variables) en utilisant le Voici les fonctions que vous pouvez utiliser en tant qu'administrateur : -| Command | Description | -| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `/rcon cmdlist` | Affiche la liste des commandes | -| `/rcon varlist` | Affiche la liste des variables | -| `/rcon exit` | Arrête le serveur. | -| `/rcon echo [text]` | Affiche le texte `[text]` dans la console (ce texte n'apparait PAS dans le jeu). | -| `/rcon hostname [name]` | Change le nom du serveur (_exemple: /rcon hostname mon nouveau serveur_). | -| `/rcon gamemodetext [name]` | Change le nom du mode de jeu (_exemple: /rcon gamemodetext mon mode de jeu_). | -| `/rcon mapname [name]` | Change le nom de la map (_exemple: /rcon mapname San Andreas_). | -| `/rcon exec [filename]` | Executes the file which contains server cfg (_exemple: /rcon exec blah.cfg_). | -| `/rcon kick [ID]` | Kick le joueur ayant l'identifiant ID (_exemple: /rcon kick 2_). | -| `/rcon ban [ID]` | Ban le joueur ayant l'identifiant ID (_exemple: /rcon ban 2_). | -| `/rcon changemode [mode]` | Change le mode de jeu actuel (relance le serveur avec un nouveu fichier .amx) (_exemple: si tu veux lancer le mode sftdm.amx: /rcon changemode sftdm_). | -| `/rcon gmx` | Charge le prochain gamemode du fichier [config.json](config.json). | -| `/rcon reloadbans` | Recharge le fichier `samp.ban` où sont stockés les joueurs et IP bannis. Doit être utilisé après avoir modifié le fichier. | -| `/rcon reloadlog` | Recharge le fichier `server_log.txt`. Utile pour une rotation automatique de journalisation. Peut être déclenché en envoyant un signal `SIGUSR1` au serveur (Serveur Linux uniquement). | -| `/rcon say` | Affiche un message dans le chat des joueurs (exemple: `/rcon say hello` affichera dans le chat: `Admin: hello`). | -| `/rcon players` | Affiche la liste des joueurs connectés (nom, IP et ping). | -| `/rcon banip [IP]` | Ban l'adresse IP (_exemple: /rcon banip 127.0.0.1_). | -| `/rcon unbanip [IP]` | Unban l'adresse IP (_exemple: /rcon unbanip 127.0.0.1_). | -| `/rcon gravity` | Modifie la gravité (_exemple: /rcon gravity 0.008_). | -| `/rcon weather [ID]` | Modifie la météo (_exemple: /rcon weather 1_). | -| `/rcon loadfs` | Charge un filterscript (_exemple: /rcon loadfs adminfs_). | -| `/rcon weburl [server url]` | Change l'URL affichée dans le client open.mp | -| `/rcon unloadfs` | Retire le filterscript (_exemple: /rcon unloadfs adminfs_). | -| `/rcon reloadfs` | Recharge le filterscript (_exemple: /rcon reloadfs adminfs_). | -| `/rcon rcon\_password [PASSWORD]` | Change le mot de passe RCON | -| `/rcon password [password]` | Change ou reset le mot de passe du serveur | -| `/rcon messageslimit [count]` | Modifie le nombre de message par secondes que le client envoie au serveur (valeur par défaut: 500) | -| `/rcon ackslimit [count]` | Modifie le nombre de "acks" (nombre de paquets envoyés avant d'attendre un accusé de réception) (valeur par défaut: 3000) | -| `/rcon messageholelimit [count]` | Modifie le nombre de "message holes" (nombre de messages perdus possibles avant déconnexion) (valeur par défaut: 3000) | -| `/rcon playertimeout [limit m/s]` | Modifie le nombre de millisecondes à attendre avant de déconnecter un joueur qui n'envoie plus de paquet (valeur par défaut: 1000) | -| `/rcon language [language]` | Change la langue du serveur (_example: /rcon language English_). Affiché dans le client open.mp. | +| Command | Description | +| --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `/rcon cmdlist` | Affiche la liste des commandes | +| `/rcon varlist` | Affiche la liste des variables | +| `/rcon exit` | Arrête le serveur. | +| `/rcon echo [text]` | Affiche le texte `[text]` dans la console (ce texte n'apparait PAS dans le jeu). | +| `/rcon hostname [name]` | Change le nom du serveur (_exemple: /rcon hostname mon nouveau serveur_). | +| `/rcon gamemodetext [name]` | Change le nom du mode de jeu (_exemple: /rcon gamemodetext mon mode de jeu_). | +| `/rcon mapname [name]` | Change le nom de la map (_exemple: /rcon mapname San Andreas_). | +| `/rcon exec [filename]` | Executes the file which contains server cfg (_exemple: /rcon exec blah.cfg_). | +| `/rcon kick [ID]` | Kick le joueur ayant l'identifiant ID (_exemple: /rcon kick 2_). | +| `/rcon ban [ID]` | Ban le joueur ayant l'identifiant ID (_exemple: /rcon ban 2_). | +| `/rcon changemode [mode]` | Change le mode de jeu actuel (relance le serveur avec un nouveu fichier .amx) (_exemple: si tu veux lancer le mode sftdm.amx: /rcon changemode sftdm_). | +| `/rcon gmx` | Charge le prochain gamemode du fichier [config.json](config.json). | +| `/rcon reloadbans` | Recharge le fichier `bans.json` où sont stockés les joueurs et IP bannis. Doit être utilisé après avoir modifié le fichier. | +| `/rcon reloadlog` | Recharge le fichier `log.txt`. Utile pour une rotation automatique de journalisation. Peut être déclenché en envoyant un signal `SIGUSR1` au serveur (Serveur Linux uniquement). | +| `/rcon say` | Affiche un message dans le chat des joueurs (exemple: `/rcon say hello` affichera dans le chat: `Admin: hello`). | +| `/rcon players` | Affiche la liste des joueurs connectés (nom, IP et ping). | +| `/rcon banip [IP]` | Ban l'adresse IP (_exemple: /rcon banip 127.0.0.1_). | +| `/rcon unbanip [IP]` | Unban l'adresse IP (_exemple: /rcon unbanip 127.0.0.1_). | +| `/rcon gravity` | Modifie la gravité (_exemple: /rcon gravity 0.008_). | +| `/rcon weather [ID]` | Modifie la météo (_exemple: /rcon weather 1_). | +| `/rcon loadfs` | Charge un filterscript (_exemple: /rcon loadfs adminfs_). | +| `/rcon weburl [server url]` | Change l'URL affichée dans le client open.mp | +| `/rcon unloadfs` | Retire le filterscript (_exemple: /rcon unloadfs adminfs_). | +| `/rcon reloadfs` | Recharge le filterscript (_exemple: /rcon reloadfs adminfs_). | +| `/rcon rcon\_password [PASSWORD]` | Change le mot de passe RCON | +| `/rcon password [password]` | Change ou reset le mot de passe du serveur | +| `/rcon messageslimit [count]` | Modifie le nombre de message par secondes que le client envoie au serveur (valeur par défaut: 500) | +| `/rcon ackslimit [count]` | Modifie le nombre de "acks" (nombre de paquets envoyés avant d'attendre un accusé de réception) (valeur par défaut: 3000) | +| `/rcon messageholelimit [count]` | Modifie le nombre de "message holes" (nombre de messages perdus possibles avant déconnexion) (valeur par défaut: 3000) | +| `/rcon playertimeout [limit m/s]` | Modifie le nombre de millisecondes à attendre avant de déconnecter un joueur qui n'envoie plus de paquet (valeur par défaut: 1000) | +| `/rcon language [language]` | Change la langue du serveur (_example: /rcon language English_). Affiché dans le client open.mp. | Les valeurs count et limit des 4 dernières commandes sont configurés pour éviter les attaques de potentiels outils pouvant bloquer ou crasher le serveur. Configurez les en fonction de votre serveur, testez avec les valeurs par défaut, si vous voyez des kicks incohérents augmentez les valeurs, jusqu'à ne plus voir de personnes kickés par un problème de connexion. diff --git a/frontend/i18n/hu/docusaurus-plugin-content-docs/current/client/ClientCommands.md b/frontend/i18n/hu/docusaurus-plugin-content-docs/current/client/ClientCommands.md index 5493fcfdb48..e912308ae78 100644 --- a/frontend/i18n/hu/docusaurus-plugin-content-docs/current/client/ClientCommands.md +++ b/frontend/i18n/hu/docusaurus-plugin-content-docs/current/client/ClientCommands.md @@ -1,7 +1,7 @@ --- title: "Kliens parancsok" sidebar_label: "Kliens parancsok" -descripion: Az összes kliens parancs listája. +description: Az összes kliens parancs listája. --- | Parancs | Leírás | diff --git a/frontend/i18n/hu/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md b/frontend/i18n/hu/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md index 4b7cc791289..0fbda0707dc 100644 --- a/frontend/i18n/hu/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md +++ b/frontend/i18n/hu/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md @@ -1,7 +1,7 @@ --- title: OnGameModeExit sidebar_label: OnGameModeExit -description: Ez a visszahívás akkor hívódik meg, amikor egy játékmód véget ér, akár a 'gmx' parancs használatával, a szerver leállásakor, vagy akár a GameModeExit-en keresztül. +description: Ez a visszahívás akkor hívódik meg, amikor egy játékmód véget ér. tags: [] --- diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md index 12d273e9624..16bfa56bd3e 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md @@ -1,7 +1,7 @@ --- title: OnDialogResponse sidebar_label: OnDialogResponse -description: Callback ini akan terpanggil ketika pemain merespon kepada dialog yang muncul menggunakan ShowPlayerDialog entah itu dengan cara mengklik tombol, menekan ENTER/ESC atau mengklik dua kali list item (jika menggunakan list style dialog). +description: Callback ini akan terpanggil ketika pemain merespon kepada dialog yang muncul menggunakan ShowPlayerDialog. tags: [] --- diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md index 7694dad8835..649fcbee844 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md @@ -17,6 +17,8 @@ Callback Ini di panggil ketika pemain mulai memasuki kendaraan, artinya pemain b ## Returns +Callback ini tidak mengelola pengembalian nilai. + Ini selalu di panggil pertama dalam filtersciprt. ## Contoh diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md index 04cb25d5d11..56f8b2a0e94 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md @@ -9,7 +9,7 @@ tags: [] ## Deskripsi -Menambah sebuah custom character model untuk didownload. Model file biasanya terletak di Player Documents\GTA San Andreas User Files\SAMP\cache didalam folder Server IP dan Port dalam bentuk nama CRC. +Menambah sebuah custom character model untuk didownload. Model file biasanya terletak di Player Documents\GTA San Andreas User Files\SAMP\cache didalam folder Server IP dan Port dalam bentuk nama [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check). | Nama | Deskripsi | | ------- | ------------------------------------------------------------------------------------------------------------------------ | diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md index 8c638e24e20..655501aa0e1 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md @@ -7,7 +7,7 @@ tags: ["administration"] ## Deskripsi -Melarang player yang sedang berada di dalam server. Player tersebut tidak bisa bergabung lagi selamanya. Pelarangan pemain berbasis IP ini akan disimpan di dalam format file samp.ban di dalam direktori root server. BanEx dapat digunakan untuk memberi alasan mengapa player tersebut di ban. IP ban dapat di tambah/di hapus menggunakan command RCON banip dan unbanip (SendRconCommand). +Melarang player yang sedang berada di dalam server. Player tersebut tidak bisa bergabung lagi selamanya. Pelarangan pemain berbasis IP ini akan disimpan di dalam format file **bans.json** di dalam direktori root server. BanEx dapat digunakan untuk memberi alasan mengapa player tersebut di ban. IP ban dapat di tambah/di hapus menggunakan command RCON banip dan unbanip (SendRconCommand). | Nama | Deskripsi | | -------- | -------------------------------------- | diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md index ce147240670..42495bddd76 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md @@ -1,7 +1,7 @@ --- title: CreatePickup sidebar_label: CreatePickup -description: Fungsi ini melakukan hal yang sama persis seperti AddStaticPickup, kecuali ia mengembalikan ID pengambilan yang dapat digunakan untuk menghancurkannya setelah itu dan dilacak menggunakan OnPlayerPickUpPickup. +description: Fungsi ini melakukan hal yang sama persis seperti AddStaticPickup, kecuali ia mengembalikan ID pengambilan. tags: [] --- diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md index 6dd5ebc1f4f..15990fb1e35 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md @@ -1,7 +1,7 @@ --- title: Kick sidebar_label: Kick -description: Tendang player dari server. Player harus keluar dari game dan re-connect jika mereka masih ingin lanjut bermain. +description: Tendang player dari server. tags: ["administration"] --- diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/startingids.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/startingids.md index 28aaa58cc69..2af89b122f8 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/startingids.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/startingids.md @@ -1,7 +1,7 @@ --- id: startingids title: ID Permulaan -description: Semuanya, seperti objek, pemain, atau ID kendaraan menggunakan ID. Beberapa ID dimulai dari 0, ada juga yang dimulai dari 1. +description: Semuanya, seperti objek, pemain, atau ID kendaraan menggunakan ID. --- Semuanya, seperti objek, pemain, atau ID kendaraan menggunakan ID. Beberapa ID dimulai dari 0, ada juga yang dimulai dari 1. diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/server/ControllingServer.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/server/ControllingServer.md index dde83e47e61..12a26ea3342 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/server/ControllingServer.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/server/ControllingServer.md @@ -17,14 +17,26 @@ description: Perintah yang berguna untuk mengendalikan server. Sama seperti menjalankan gamemode kustom, kecuali: - Letakkan file .amx di folder `filterscripts` -- Tambahkan di file server.cfg: `filterscripts ` +- Tambahkan path filterscript tanpa ekstensi `.amx` ke `pawn.side_scripts` di [config.json](config.json): + +```json +{ + "pawn": { + "side_scripts": [ + "filterscripts/scriptname" + ] + } +} +``` ## Memberi kata sandi untuk server Anda -- Jika Anda ingin memberi kata sandi yang di mana hanya teman-teman Anda yang bisa bergabung, tambahkan ini di [server.cfg](server.cfg): +- Jika Anda ingin memberi kata sandi yang di mana hanya teman-teman Anda yang bisa bergabung, tambahkan ini di [config.json](config.json): -``` -password terserah +```json +{ + "password": "terserah" +} ``` - Ini akan membuat server Anda terproteksi oleh kata sandi yang telah ditetapkan dengan 'terserah' - gantilah dengan kata sandi yang Anda inginkan. @@ -37,24 +49,26 @@ password terserah Anda bisa masuk ketika di dalam game dengan mengetik `/rcon login password` atau dari luar game dengan menggunakan moe RCON di [Kendali Konsol Jarak Jauh](RemoteConsole). -Kata sandinya sama dengan yang Anda tetap di file [server.cfg](server.cfg) +Kata sandi RCON adalah nilai `rcon.password` yang Anda tetapkan di [config.json](config.json). ### Menambah Pelarangan -##### samp.ban +##### bans.json -samp.ban adalah file yang digunakan untuk menyimpan pelarangan, termasuk informasi tentang pelarangan: +bans.json adalah file yang digunakan untuk menyimpan pelarangan, termasuk informasi tentang pelarangan: - IP - Tanggal - Waktu -- Nama (Nama dari orang atau alasan, lihat [BanEx](../scripting/functions/BanEx)) -- Jenis pelarangan +- Nama (Nama dari orang) +- Alasan (lihat [BanEx](../scripting/functions/BanEx)) -Untuk menambah sebuah pelarangan, tambahkan sebuah baris seperti ini: +Untuk menambah sebuah pelarangan, tambahkan sebuah objek ke array JSON seperti ini: -``` -ALAMAT_IP_DI_SINI [28/05/09 | 13:37:00] PEMAIN - ALASAN PELARANGAN +```json +[ + {"address": "ALAMAT_IP_DI_SINI", "player": "PEMAIN", "reason": "ALASAN PELARANGAN", "time": "2009-05-28T13:37:00+0000"} +] ``` Di mana `ALAMAT_IP_DI_SINI`, adalah alamat IP yang ingin Anda larang. @@ -63,8 +77,10 @@ Di mana `ALAMAT_IP_DI_SINI`, adalah alamat IP yang ingin Anda larang. Fungsi [Ban](../scripting/functions/Ban) dapat digunakan untuk melarang pemain dari sisi skrip. Fungsi [BanEx](../scripting/functions/BanEx) akan menambah alasan opsional seperti ini: -``` -13.37.13.37 [28/05/09 | 13:37:00] Cheater - INGAME BAN +```json +[ + {"address": "13.37.13.37", "player": "Cheater", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` ##### Perintah pelarangan dari RCON @@ -99,27 +115,29 @@ banip IP Ketika seseorang telah dilarang, ada dua cara untuk menghapusnya. -- Hapus dari samp.ban +- Hapus dari bans.json - Menggunakan perintah RCON `unbanip` -#### samp.ban +#### bans.json -samp.ban dapat ditemukan di direktori server SA-MP Anda, terdapat baris yang berisi informasi di setiap pelarangannya: +bans.json dapat ditemukan di direktori server open.mp Anda, terdapat objek yang berisi informasi di setiap pelarangannya: - IP - Date - Time -- Nama (Nama dari orang atau alasan, lihat [BanEx](../scripting/functions/BanEx)) -- Jenis pelarangan (INGAME, IP BAN, dll.) +- Nama (Nama dari orang) +- Alasan (lihat [BanEx](../scripting/functions/BanEx)) Examples: -``` -127.8.57.32 [13/06/09 | 69:69:69] NONE - IP BAN -13.37.13.37 [28/05/09 | 13:37:00] Kyeman - INGAME BAN +```json +[ + {"address": "127.8.57.32", "player": "NONE", "reason": "IP BAN", "time": "2009-06-13T13:37:00+0000"}, + {"address": "13.37.13.37", "player": "Kyeman", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` -Untuk menghapus larangannya, cukup harus baris tersebut, kemudian eksekusi perintah RCON `reloadbans` untuk membuat server membaca ulang samp.ban. +Untuk menghapus larangannya, cukup harus objek tersebut, kemudian eksekusi perintah RCON `reloadbans` untuk membuat server membaca ulang bans.json. #### unbanip @@ -127,8 +145,10 @@ Perintah RCON unbanip dapat digunakan di dalam game atau dari konsol server (kot Contoh: -``` -13.37.13.37 [28/05/09 | 13:37:00] Kyeman - INGAME BAN +```json +[ + {"address": "13.37.13.37", "player": "Kyeman", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` ``` @@ -139,11 +159,11 @@ Contoh: unbanip 13.37.13.37 ``` -Untuk menghapus larangannya, cukup gunakan perintah `unbanip`, kemudian eksekusi perintah RCON `reloadbans` untuk membuat server membaca ulang samp.ban. +Untuk menghapus larangannya, cukup gunakan perintah `unbanip`. #### reloadbans -`samp.ban` adalah sebuah file yang menyimpan informasi alamat IP yang saat ini telah dilarang dari server. File ini dibaca ketika server dinyalakan, jadi ketika Anda menghapus larangan IP atau pemain, Anda HARUS mengetika perintah RCON `reloadbans` untuk membuat server membaca ulang `samp.ban` dan memperbolehkan mereka untuk bergabung ke server. +`bans.json` adalah sebuah file yang menyimpan informasi alamat IP yang saat ini telah dilarang dari server. File ini dibaca ketika server dinyalakan, jadi ketika Anda menghapus larangan IP atau pemain dengan mengedit file, Anda HARUS mengetika perintah RCON `reloadbans` untuk membuat server membaca ulang `bans.json` dan memperbolehkan mereka untuk bergabung ke server. ### Perintah RCON @@ -164,9 +184,9 @@ Berikut adalah fungsi yang bisa Anda bisa gunakan sebagai admin: | `/rcon kick [ID]` | Menendang pemain berdasarkan ID pemain (_contoh: /rcon kick 2_). | | `/rcon ban [ID]` | Melarang pemain berdasarkan ID pemain (_contoh: /rcon ban 2_). | | `/rcon changemode [mode]` | Perintah ini akan mengganti gamemode saat ini ke gamemode yang diinginkan (_contoh: jika Anda ingin bermain sftdm: /rcon changemode sftdm_). | -| `/rcon gmx` | Memuat gamemode selanjutnya di [server.cfg](server.cfg). | -| `/rcon reloadbans` | Memuat ulang samp.ban yang di mana alamat IP yang telah dilarang disimpan. Seharusnya digunakan setelah menghapus pelarangannya. | -| `/rcon reloadlog` | Memuat ulang server_log.txt. Tidak menampak efek apapun. | +| `/rcon gmx` | Memuat gamemode selanjutnya di [config.json](config.json). | +| `/rcon reloadbans` | Memuat ulang bans.json yang di mana alamat IP yang telah dilarang disimpan. Seharusnya digunakan setelah menghapus pelarangannya dari file. | +| `/rcon reloadlog` | Memuat ulang log.txt. Tidak menampak efek apapun. | | `/rcon say` | Memunculkan sebuah pesan ke pemain di konsol klien. (contoh: `/rcon say hello` akan muncul `Admin: hello`). | | `/rcon players` | Memunculkan pemain yang ada di server (nama, alamat IP, dan ping). | | `/rcon banip [IP]` | Melarang berdasarkan alamat IP (_contoh: /rcon banip 127.0.0.1_). | diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/server/RemoteConsole.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/server/RemoteConsole.md index 92dfe07b413..db857fd84d8 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/server/RemoteConsole.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/server/RemoteConsole.md @@ -1,6 +1,6 @@ --- title: "Kendali Konsol Jarak Jauh (Remote Console - RCON)" -descripion: Administrasi server jarak jauh. +description: Administrasi server jarak jauh. --- Kendali Konsole Jarak Jauh (RCON) adalah sebuah perintah cepat yang di mana Anda dapat menggunakan perintah RCON tanpa harus di dalam game atau di server Anda. Sejak versi 0.3b, RCON dihapuskan dari Penjelajah Server. Mulai sekarang, Anda harus menggunakan cara lain untuk mengakses RCON seperti penjelasan berikut. diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/server/server.cfg.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/server/server.cfg.md index 1b55a71a56c..3a86dab6a87 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/server/server.cfg.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/server/server.cfg.md @@ -124,3 +124,7 @@ description: File konfigurasi server. - Nilai-nilai yang ditandai dengan "Read-only" (yang tampil dengan `/rcon varlist`) tidak bisa diubah ketika server sedang jalan. Nilai yang selain dari itu dapat diubah (sementara) dengan mengubahnya melalui SendRconCommand. - Nilai-nilai yang ditandai dengan "Rule" (yang tampil dengan `/rcon varlist`) ditampilkan di penjelajah server di bagian Rules. - Skrip tidak harus berada di folder gamemodes atau filterscripts. Informasi di server.cfg adalah sebuah direktori, dan maka dari itu bisa menggunakan "..". + +``` +filterscripts ../scriptfiles/first ../minimodes/second +``` diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md index 03baa19f577..ea3ee2921ce 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md @@ -21,8 +21,9 @@ Ada dua cara untuk membuat pickup. [CreatePickup](../scripting/functions/CreateP **Parameters:** -| model | Model yang anda suka gunakan untuk pickup. | +| Nama | Deskripsi | | ------------ | ------------------------------------------------------------------------------------------------------ | +| model | Model yang anda suka gunakan untuk pickup. | | type | Tipe pickup spawn, lihat lebih lanjut dibawah halaman ini. | | Float:X | Koordinat titik X munculnya pickup. | | Float:Y | Koordinat titik Y munculnya pickup. | diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/colorfix.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/colorfix.md index 00acd19e1c6..caf68d9e075 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/colorfix.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/colorfix.md @@ -1,23 +1,23 @@ --- title: "Color Fix" sidebar_label: "Color Fix" -descripion: Sebuah script dasar untuk menambahkan warna pemain. +description: Sebuah script dasar untuk menambahkan warna pemain. --- Tutorial ini menggunakan [GetPlayerColor](../scripting/functions/GetPlayerColor), jika kalian tidak menggunakan [SetPlayerColor](../scripting/functions/SetPlayerColor) ketika pemain terhubung di dalam script kalian. ```c new PlayerColors[] = { - 0xFF8C13FF,0xC715FFFF,0x20B2AAFF,0xDC143CFF,0x6495EDFF,0xf0e68cFF,0x778899FF,0xFF1493FF,0xF4A460FF,0xEE82EEFF, - 0xFFD720FF,0x8b4513FF,0x4949A0FF,0x148b8bFF,0x14ff7fFF,0x556b2fFF,0x0FD9FAFF,0x10DC29FF,0x534081FF,0x0495CDFF, - 0xEF6CE8FF,0xBD34DAFF,0x247C1BFF,0x0C8E5DFF,0x635B03FF,0xCB7ED3FF,0x65ADEBFF,0x5C1ACCFF,0xF2F853FF,0x11F891FF, - 0x7B39AAFF,0x53EB10FF,0x54137DFF,0x275222FF,0xF09F5BFF,0x3D0A4FFF,0x22F767FF,0xD63034FF,0x9A6980FF,0xDFB935FF, - 0x3793FAFF,0x90239DFF,0xE9AB2FFF,0xAF2FF3FF,0x057F94FF,0xB98519FF,0x388EEAFF,0x028151FF,0xA55043FF,0x0DE018FF, - 0x93AB1CFF,0x95BAF0FF,0x369976FF,0x18F71FFF,0x4B8987FF,0x491B9EFF,0x829DC7FF,0xBCE635FF,0xCEA6DFFF,0x20D4ADFF, - 0x2D74FDFF,0x3C1C0DFF,0x12D6D4FF,0x48C000FF,0x2A51E2FF,0xE3AC12FF,0xFC42A8FF,0x2FC827FF,0x1A30BFFF,0xB740C2FF, - 0x42ACF5FF,0x2FD9DEFF,0xFAFB71FF,0x05D1CDFF,0xC471BDFF,0x94436EFF,0xC1F7ECFF,0xCE79EEFF,0xBD1EF2FF,0x93B7E4FF, - 0x3214AAFF,0x184D3BFF,0xAE4B99FF,0x7E49D7FF,0x4C436EFF,0xFA24CCFF,0xCE76BEFF,0xA04E0AFF,0x9F945CFF,0xDCDE3DFF, - 0x10C9C5FF,0x70524DFF,0x0BE472FF,0x8A2CD7FF,0x6152C2FF,0xCF72A9FF,0xE59338FF,0xEEDC2DFF,0xD8C762FF,0x3FE65CFF + 0xFF8C13FF, 0xC715FFFF, 0x20B2AAFF, 0xDC143CFF, 0x6495EDFF, 0xf0e68cFF, 0x778899FF, 0xFF1493FF, 0xF4A460FF, 0xEE82EEFF, + 0xFFD720FF, 0x8b4513FF, 0x4949A0FF, 0x148b8bFF, 0x14ff7fFF, 0x556b2fFF, 0x0FD9FAFF, 0x10DC29FF, 0x534081FF, 0x0495CDFF, + 0xEF6CE8FF, 0xBD34DAFF, 0x247C1BFF, 0x0C8E5DFF, 0x635B03FF, 0xCB7ED3FF, 0x65ADEBFF, 0x5C1ACCFF, 0xF2F853FF, 0x11F891FF, + 0x7B39AAFF, 0x53EB10FF, 0x54137DFF, 0x275222FF, 0xF09F5BFF, 0x3D0A4FFF, 0x22F767FF, 0xD63034FF, 0x9A6980FF, 0xDFB935FF, + 0x3793FAFF, 0x90239DFF, 0xE9AB2FFF, 0xAF2FF3FF, 0x057F94FF, 0xB98519FF, 0x388EEAFF, 0x028151FF, 0xA55043FF, 0x0DE018FF, + 0x93AB1CFF, 0x95BAF0FF, 0x369976FF, 0x18F71FFF, 0x4B8987FF, 0x491B9EFF, 0x829DC7FF, 0xBCE635FF, 0xCEA6DFFF, 0x20D4ADFF, + 0x2D74FDFF, 0x3C1C0DFF, 0x12D6D4FF, 0x48C000FF, 0x2A51E2FF, 0xE3AC12FF, 0xFC42A8FF, 0x2FC827FF, 0x1A30BFFF, 0xB740C2FF, + 0x42ACF5FF, 0x2FD9DEFF, 0xFAFB71FF, 0x05D1CDFF, 0xC471BDFF, 0x94436EFF, 0xC1F7ECFF, 0xCE79EEFF, 0xBD1EF2FF, 0x93B7E4FF, + 0x3214AAFF, 0x184D3BFF, 0xAE4B99FF, 0x7E49D7FF, 0x4C436EFF, 0xFA24CCFF, 0xCE76BEFF, 0xA04E0AFF, 0x9F945CFF, 0xDCDE3DFF, + 0x10C9C5FF, 0x70524DFF, 0x0BE472FF, 0x8A2CD7FF, 0x6152C2FF, 0xCF72A9FF, 0xE59338FF, 0xEEDC2DFF, 0xD8C762FF, 0x3FE65CFF }; ``` diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md index 3bf6730ae64..63c1623fac7 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md @@ -1,7 +1,7 @@ --- title: Per-player variable system sidebar_label: Per-player variable system -description: Sistem per-player variable (atau pendeknya, PVar) adalah cara baru untuk membuat variabel player dalam bentuk yang efisien membuat method secara global, artinya mereka dapan menggunakan gamemode server dan filterscripts secara bersamaan. +description: Sistem per-player variable (atau pendeknya, PVar) adalah cara baru untuk membuat variabel player dalam bentuk yang efisien membuat method secara global. --- Sistem per-player variable (atau pendeknya, PVar) adalah cara baru untuk membuat variabel player dalam bentuk yang efisien membuat method secara global, artinya mereka dapan menggunakan gamemode server dan filterscripts secara bersamaan. diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md index 241d9880350..bdce1e2a61b 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md @@ -2,7 +2,7 @@ title: Server variable system sidebar_label: Server variable system -description: Server variable system (disingkat, SVar) adalah cara baru untung membuat server variabel dalam cara mudah membuat method yang efisien, dengan begitu cara ini bisa dipakai di gamemode server dan filterscripts dalam waktu bersamaan. +description: Server variable system (disingkat, SVar) adalah cara baru untung membuat server variabel dalam cara mudah membuat method yang efisien. --- **Server variable system** (disingkat, **SVar**) adalah cara baru untung membuat server variabel dalam cara mudah membuat method yang efisien, dengan begitu cara ini bisa dipakai di gamemode server dan filterscripts dalam waktu bersamaan. diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md index 507539a41ca..6e8423e4ab6 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md @@ -1,7 +1,7 @@ --- title: OnDialogResponse sidebar_label: OnDialogResponse -description: Deze callback wordt aangeroepen wanneer een speler reageert op een dialog die is getoond met ShowPlayerDialog. De reactie kan zijn door op een knop te klikken, ENTER/ESC te drukken, of dubbelklikken op een lijstitem (bij een lijst-stijl dialog). +description: Deze callback wordt aangeroepen wanneer een speler reageert op een dialog die is getoond met ShowPlayerDialog. tags: ["dialog"] --- diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md index ba49bfe13bc..9dd8773d0bc 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md @@ -1,7 +1,7 @@ --- title: OnPlayerEnterVehicle sidebar_label: OnPlayerEnterVehicle -description: Deze callback wordt aangeroepen wanneer een speler begint een voertuig in te gaan, wat betekent dat de speler nog niet in het voertuig is wanneer deze callback wordt aangeroepen. +description: Deze callback wordt aangeroepen wanneer een speler begint een voertuig in te gaan. tags: ["player", "vehicle"] --- @@ -17,6 +17,8 @@ Deze callback wordt aangeroepen wanneer een speler begint een voertuig in te gaa ## Returns +Deze callback behandelt geen returns. + Wordt altijd als eerste aangeroepen in filterscripts. ## Voorbeelden diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md index 7f39e462da2..afe26d05e92 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md @@ -11,11 +11,11 @@ tags: ["player"] Deze callback wordt aangeroepen wanneer een speler vraagt om aangepaste modellen te downloaden. -| Naam | Beschrijving | -| --------------------- | ---------------------------------------------------------------------- | -| playerid | Het ID van de speler die om de download van aangepaste modellen vroeg. | -| DOWNLOAD_REQUEST:type | Het [type](../resources/download-requests) van de aanvraag. | -| crc | De CRC-checksum van het aangepaste modelfile. | +| Naam | Beschrijving | +| --------------------- | ------------------------------------------------------------------------------------------------------ | +| playerid | Het ID van de speler die om de download van aangepaste modellen vroeg. | +| DOWNLOAD_REQUEST:type | Het [type](../resources/download-requests) van de aanvraag. | +| crc | De [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check)-checksum van het aangepaste modelfile. | ## Returns diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md index 3bdb22b4d59..93b5c5e9bd6 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md @@ -9,11 +9,11 @@ tags: ["vehicle"] Deze callback wordt aangeroepen wanneer een voertuig wordt gemod. -| Naam | Beschrijving | -| ----------- | ------------------------------------------------------------- | -| playerid | Het ID van de bestuurder van het voertuig. | -| vehicleid | Het ID van het voertuig dat wordt gemod. | -| componentid | Het ID van de component die aan het voertuig werd toegevoegd. | +| Naam | Beschrijving | +| ----------- | -------------------------------------------------------------------------------------------- | +| playerid | Het ID van de bestuurder van het voertuig. | +| vehicleid | Het ID van het voertuig dat wordt gemod. | +| componentid | Het [ID van de component](../resources/carcomponentid) die aan het voertuig werd toegevoegd. | ## Returns diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md index 0490f13b5fe..2bb301dbdf0 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md @@ -13,7 +13,7 @@ Deze callback wordt aangeroepen wanneer een speler een voertuig paintjob bekijkt | ---------- | ----------------------------------------------------------------- | | playerid | Het ID van de speler die de paintjob van hun voertuig veranderde. | | vehicleid | Het ID van het voertuig waarvan de paintjob werd veranderd. | -| paintjobid | Het ID van de nieuwe paintjob. | +| paintjobid | Het ID van de nieuwe [paintjob](../resources/paintjobs). | ## Returns diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md index c3885da7d5b..bcd9dae0581 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md @@ -450,3 +450,10 @@ for (new a = 0; a < 3; a++) ### return Stopt een functie en keert terug naar de aanroeper; kan ook een waarde retourneren. + +## Zie ook + +- [Trefwoorden: Statements](Statements) +- [Trefwoorden: Operators](Operators) +- [Trefwoorden: Directives](Directives) +- [Trefwoorden: Initialisers](Initialisers) diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/networkstats.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/networkstats.md index 1879af45212..85768cb7336 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/networkstats.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/networkstats.md @@ -5,28 +5,28 @@ description: Info zichtbaar met F5 wanneer je verbonden bent met een server. tags: [] --- -| Gegeven | Omschrijving | -| --------------------------------- | ------------------------------------------------------------------ | -| Download Rate | Snelheid waarmee data van de server wordt gedownload. | -| Upload Rate | Snelheid waarmee data naar de server wordt geüpload. | -| Vehicles | Aantal voertuigen dat voor de client is gestreamd. | -| Vehicle Models | Aantal verschillende voertuigmodellen die gestreamd zijn. | -| Vehicle Models Loaded | Aantal (voor)geladen voertuigmodellen. | -| RWObjects | Aantal gerenderde objecten. | -| PedSlotsUsed | Aantal gebruikte ped-slots (NPC’s/spelers gebruiken een ped-slot). | -| ObjectSlotsUsed | Gebruikte objectsloten. | -| OnFoot Send Rate | Interval (in ms) van on-foot sync. Instelbaar in server.cfg. | -| Streaming Mem Used (incl. totaal) | Gebruikt streaminggeheugen en totaal beschikbaar. | -| Messages in Send buffer | Aantal netwerkmeldingen in de verzendbuffer. | -| Messages sent | Aantal verzonden meldingen. | -| Bytes sent | Hoeveelheid verzonden data (bytes). | -| Acks sent | Aantal verzonden acknowledgements (ontvangstbevestigingen). | -| Acks in send buffer | Aantal acks in de verzendbuffer. | -| Messages waiting for ack | Aantal berichten in afwachting van ontvangstbevestiging. | -| Messages resent | Aantal opnieuw verzonden berichten. | -| Bytes resent | Hoeveelheid opnieuw verzonden data (bytes). | -| Packetloss | Percentage verloren pakketten. | -| Messages received | Aantal ontvangen meldingen. | -| Bytes received | Hoeveelheid ontvangen data (bytes). | -| Acks received | Aantal ontvangen acknowledgements. | -| Duplicate acks received | Aantal dubbele acknowledgements ontvangen. | +| Gegeven | Omschrijving | +| --------------------------------- | ----------------------------------------------------------------------------------------- | +| Download Rate | Snelheid waarmee data van de server wordt gedownload. | +| Upload Rate | Snelheid waarmee data naar de server wordt geüpload. | +| Vehicles | Aantal voertuigen dat voor de client is gestreamd. | +| Vehicle Models | Aantal verschillende voertuigmodellen die gestreamd zijn. | +| Vehicle Models Loaded | Aantal (voor)geladen voertuigmodellen. | +| RWObjects | Aantal gerenderde objecten. | +| PedSlotsUsed | Aantal gebruikte ped-slots (NPC’s/spelers gebruiken een ped-slot). | +| ObjectSlotsUsed | Gebruikte objectsloten. | +| OnFoot Send Rate | Interval (in ms) van on-foot sync. Instelbaar in [config.json](../../server/config.json). | +| Streaming Mem Used (incl. totaal) | Gebruikt streaminggeheugen en totaal beschikbaar. | +| Messages in Send buffer | Aantal netwerkmeldingen in de verzendbuffer. | +| Messages sent | Aantal verzonden meldingen. | +| Bytes sent | Hoeveelheid verzonden data (bytes). | +| Acks sent | Aantal verzonden acknowledgements (ontvangstbevestigingen). | +| Acks in send buffer | Aantal acks in de verzendbuffer. | +| Messages waiting for ack | Aantal berichten in afwachting van ontvangstbevestiging. | +| Messages resent | Aantal opnieuw verzonden berichten. | +| Bytes resent | Hoeveelheid opnieuw verzonden data (bytes). | +| Packetloss | Percentage verloren pakketten. | +| Messages received | Aantal ontvangen meldingen. | +| Bytes received | Hoeveelheid ontvangen data (bytes). | +| Acks received | Aantal ontvangen acknowledgements. | +| Duplicate acks received | Aantal dubbele acknowledgements ontvangen. | diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/pickuptypes.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/pickuptypes.md index 23668986866..58f075bd407 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/pickuptypes.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/pickuptypes.md @@ -7,7 +7,7 @@ sidebar_label: "Pickup-typen" :::note -- Gebruikt door [CreatePickup](../functions/CreatePickup) en [CreatePlayerPickup](../functions/CreatePlayerPickup). +- Gebruikt door AddStaticPickup, [CreatePickup](../functions/CreatePickup) en [CreatePlayerPickup](../functions/CreatePlayerPickup). - De meeste andere IDs zijn ongedocumenteerd of lijken op type 1; gebruik ze niet zomaar (sommige hebben bijwerkingen zoals 18 en 20). ::: diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md index 212b9fa0b97..93c1530d5c1 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md @@ -5,7 +5,7 @@ sidebar_label: Veelvoorkomende server issues ## Server crasht direct bij starten -Meestal is het een fout in je `server.cfg` of ontbreekt je gamemode. Check het bestand `server_log.txt` – de reden staat doorgaans onderaan. Zo niet, kijk in `crashinfo.txt`. Een betere manier om crash-oorzaken te vinden is de Crash Detect-plugin van Zeex/0x5A656578 ([link](https://github.com/AmyrAhmady/samp-plugin-crashdetect)), die extra info geeft (regelnummers, functienamen, parameterwaarden, etc.). Compileer het script in debug mode (flag `-d3`) zodat de compiler extra info in het `.amx`-outputbestand stopt. +Meestal is het een fout in je `config.json` of ontbreekt je gamemode. Check het bestand `log.txt` – de reden staat doorgaans onderaan. Zo niet, kijk in `crashinfo.txt`. Een betere manier om crash-oorzaken te vinden is de Crash Detect-plugin van Zeex/0x5A656578 ([link](https://github.com/AmyrAhmady/samp-plugin-crashdetect)), die extra info geeft (regelnummers, functienamen, parameterwaarden, etc.). Compileer het script in debug mode (flag `-d3`) zodat de compiler extra info in het `.amx`-outputbestand stopt. ## Server werkt niet – firewall is uitgeschakeld diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/server/ControllingServer.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/server/ControllingServer.md index 57dbc777b42..b54f73d7b5c 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/server/ControllingServer.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/server/ControllingServer.md @@ -18,14 +18,26 @@ description: Handige commands om je server te beheren. Hetzelfde als een custom gamemode draaien, behalve: - Plaats de `.amx` in de map `filterscripts` -- Voeg dit toe aan `server.cfg`: `filterscripts ` +- Voeg het pad van het filterscript zonder de `.amx`-extensie toe aan `pawn.side_scripts` in [config.json](config.json): + +```json +{ + "pawn": { + "side_scripts": [ + "filterscripts/scriptname" + ] + } +} +``` ## Je server voorzien van een wachtwoord -- Als je een password wilt instellen zodat alleen vrienden kunnen joinen, voeg dit toe aan [server.cfg](server.cfg): +- Als je een password wilt instellen zodat alleen vrienden kunnen joinen, voeg dit toe aan [config.json](config.json): -``` -password whatever +```json +{ + "password": "whatever" +} ``` - Hiermee is je server met het wachtwoord 'whatever' beschermd – verander dat natuurlijk naar iets eigens @@ -38,24 +50,26 @@ password whatever Je kunt inloggen terwijl je in-game bent met `/rcon login password`, of buiten de game via de RCON-modus in de [Remote Console](RemoteConsole). -Het password is hetzelfde als je in [server.cfg](server.cfg) hebt ingesteld. +Het RCON-wachtwoord is de waarde van `rcon.password` die je in [config.json](config.json) hebt ingesteld. ### Bans toevoegen -##### samp.ban +##### bans.json -`samp.ban` is het bestand waarin bans worden opgeslagen, met o.a. deze info: +`bans.json` is het bestand waarin bans worden opgeslagen, met o.a. deze info: - IP - Datum - Tijd -- Naam (naam van persoon of reden, zie [BanEx](../scripting/functions/BanEx)) -- Type ban +- Naam (naam van persoon) +- Reden (zie [BanEx](../scripting/functions/BanEx)) -Een ban toevoegen doe je door een regel te plaatsen als: +Een ban toevoegen doe je door een object in de JSON-array te plaatsen als: -``` -IP_HERE [28/05/09 | 13:37:00] PLAYER - BAN REASON +```json +[ + {"address": "IP_HERE", "player": "PLAYER", "reason": "BAN REASON", "time": "2009-05-28T13:37:00+0000"} +] ``` Op de plek van `IP_HERE` zet je het IP dat je wilt bannen. @@ -64,8 +78,10 @@ Op de plek van `IP_HERE` zet je het IP dat je wilt bannen. De functie [Ban](../scripting/functions/Ban) kun je vanuit een script gebruiken om een speler te bannen. De functie [BanEx](../scripting/functions/BanEx) voegt optioneel een reden toe, zoals: -``` -13.37.13.37 [28/05/09 | 13:37:00] Cheater - INGAME BAN +```json +[ + {"address": "13.37.13.37", "player": "Cheater", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` ##### RCON ban command @@ -100,27 +116,29 @@ banip IP Als iemand geband is, kun je op twee manieren unbannen: -- Regel verwijderen uit `samp.ban` +- Object verwijderen uit `bans.json` - Het RCON-commando `unbanip` -#### samp.ban +#### bans.json -`samp.ban` staat in je SA-MP-servermap en bevat regels met o.a.: +`bans.json` staat in je open.mp-servermap en bevat objecten met o.a.: - IP - Datum - Tijd -- Naam (naam van persoon of reden, zie [BanEx](../scripting/functions/BanEx)) -- Type ban (INGAME, IP BAN, etc.) +- Naam (naam van persoon) +- Reden (zie [BanEx](../scripting/functions/BanEx)) Voorbeelden: -``` -127.8.57.32 [13/06/09 | 69:69:69] NONE - IP BAN -13.37.13.37 [28/05/09 | 13:37:00] Kyeman - INGAME BAN +```json +[ + {"address": "127.8.57.32", "player": "NONE", "reason": "IP BAN", "time": "2009-06-13T13:37:00+0000"}, + {"address": "13.37.13.37", "player": "Kyeman", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` -Unban door de regel te verwijderen, en voer daarna het RCON-commando `reloadbans` uit zodat de server `samp.ban` opnieuw inleest. +Unban door het object te verwijderen, en voer daarna het RCON-commando `reloadbans` uit zodat de server `bans.json` opnieuw inleest. #### unbanip @@ -128,8 +146,10 @@ Het RCON-commando `unbanip` kan in-game of vanuit de serverconsole (zwarte box) Voorbeeld: -``` -13.37.13.37 [28/05/09 | 13:37:00] Kyeman - INGAME BAN +```json +[ + {"address": "13.37.13.37", "player": "Kyeman", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` ``` @@ -140,11 +160,9 @@ Voorbeeld: unbanip 13.37.13.37 ``` -Unban uitgevoerd? Gebruik daarna RCON `reloadbans` zodat de server `samp.ban` opnieuw leest. - #### reloadbans -`samp.ban` bevat de IP's die momenteel geband zijn. Dit bestand wordt bij serverstart ingelezen. Als je een IP/persoon unbant, MOET je het RCON-commando `reloadbans` uitvoeren zodat `samp.ban` opnieuw wordt ingelezen en ze weer kunnen joinen. +`bans.json` bevat de IP's die momenteel geband zijn. Dit bestand wordt bij serverstart ingelezen. Als je een IP/persoon unbant door het bestand te bewerken, MOET je het RCON-commando `reloadbans` uitvoeren zodat `bans.json` opnieuw wordt ingelezen en ze weer kunnen joinen. ### RCON-commands @@ -152,39 +170,39 @@ Typ `cmdlist` voor commands (of `varlist` voor variables) via RCON in-game (`/rc Dit zijn de commands die je als admin kunt gebruiken: -| Command | Description | -| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `/rcon cmdlist` | Toont een lijst met beschikbare commands. | -| `/rcon varlist` | Toont een lijst met de huidige variables. | -| `/rcon exit` | Sluit de server af. | -| `/rcon echo [text]` | Print `[text]` in de serverconsole (NIET de client-console in-game). | -| `/rcon hostname [name]` | Wijzigt de hostname-tekst (_voorbeeld: `/rcon hostname my server`_). | -| `/rcon gamemodetext [name]` | Wijzigt de gamemode-tekst (_voorbeeld: `/rcon gamemodetext my gamemode`_). | -| `/rcon mapname [name]` | Wijzigt de mapnaam-tekst (_voorbeeld: `/rcon mapname San Andreas`_). | -| `/rcon exec [filename]` | Voert het opgegeven cfg-bestand uit (_voorbeeld: `/rcon exec blah.cfg`_). | -| `/rcon kick [ID]` | Kickt de player met de opgegeven ID (_voorbeeld: `/rcon kick 2`_). | -| `/rcon ban [ID]` | Bannt de player met de opgegeven ID (_voorbeeld: `/rcon ban 2`_). | -| `/rcon changemode [mode]` | Wisselt naar de opgegeven gamemode (_voorbeeld: `/rcon changemode sftdm`_). | -| `/rcon gmx` | Laadt de volgende gamemode uit [server.cfg](server.cfg). | -| `/rcon reloadbans` | Laadt `samp.ban` opnieuw (lijst met gebande IP's). Gebruik dit na unbannen. | -| `/rcon reloadlog` | Laadt `server_log.txt` opnieuw. Handig voor automatische logrotatie. Op Linux ook te triggeren met het `SIGUSR1`-signaal. | -| `/rcon say` | Toont een bericht in de client-console van spelers (bijv. `/rcon say hello` toont `Admin: hello`). | -| `/rcon players` | Toont de players in de server (met naam, IP en ping). | -| `/rcon banip [IP]` | Bannt het opgegeven IP (_voorbeeld: `/rcon banip 127.0.0.1`_). | -| `/rcon unbanip [IP]` | Unbannt het opgegeven IP (_voorbeeld: `/rcon unbanip 127.0.0.1`_). | -| `/rcon gravity` | Wijzigt de gravity (_voorbeeld: `/rcon gravity 0.008`_). | -| `/rcon weather [ID]` | Wijzigt het weather (_voorbeeld: `/rcon weather 1`_). | -| `/rcon loadfs` | Laadt het opgegeven filterscript (_voorbeeld: `/rcon loadfs adminfs`_). | -| `/rcon weburl [server url]` | Wijzigt de server-URL in de masterlists/SA-MP client. | -| `/rcon unloadfs` | Unloadt het opgegeven filterscript (_voorbeeld: `/rcon unloadfs adminfs`_). | -| `/rcon reloadfs` | Reloadt het opgegeven filterscript (_voorbeeld: `/rcon reloadfs adminfs`_). | -| `/rcon rcon\_password [PASSWORD]` | Wijzigt het RCON-wachtwoord. | -| `/rcon password [password]` | Zet/reset het serverpassword. | -| `/rcon messageslimit [count]` | Wijzigt het max. aantal messages per seconde per client (standaard 500). | -| `/rcon ackslimit [count]` | Wijzigt de acks-limit (standaard 3000). | -| `/rcon messageholelimit [count]` | Wijzigt de message holes-limit (standaard 3000). | -| `/rcon playertimeout [limit m/s]` | Wijzigt de timeout (ms) wanneer een player geen packets verstuurt (standaard 1000). | -| `/rcon language [language]` | Wijzigt de servertaal (_voorbeeld: `/rcon language English`_). Wordt getoond in de serverbrowser. | +| Command | Description | +| --------------------------------- | ------------------------------------------------------------------------------------------------------------------ | +| `/rcon cmdlist` | Toont een lijst met beschikbare commands. | +| `/rcon varlist` | Toont een lijst met de huidige variables. | +| `/rcon exit` | Sluit de server af. | +| `/rcon echo [text]` | Print `[text]` in de serverconsole (NIET de client-console in-game). | +| `/rcon hostname [name]` | Wijzigt de hostname-tekst (_voorbeeld: `/rcon hostname my server`_). | +| `/rcon gamemodetext [name]` | Wijzigt de gamemode-tekst (_voorbeeld: `/rcon gamemodetext my gamemode`_). | +| `/rcon mapname [name]` | Wijzigt de mapnaam-tekst (_voorbeeld: `/rcon mapname San Andreas`_). | +| `/rcon exec [filename]` | Voert het opgegeven cfg-bestand uit (_voorbeeld: `/rcon exec blah.cfg`_). | +| `/rcon kick [ID]` | Kickt de player met de opgegeven ID (_voorbeeld: `/rcon kick 2`_). | +| `/rcon ban [ID]` | Bannt de player met de opgegeven ID (_voorbeeld: `/rcon ban 2`_). | +| `/rcon changemode [mode]` | Wisselt naar de opgegeven gamemode (_voorbeeld: `/rcon changemode sftdm`_). | +| `/rcon gmx` | Laadt de volgende gamemode uit [config.json](config.json). | +| `/rcon reloadbans` | Laadt `bans.json` opnieuw (lijst met gebande IP's). Gebruik dit na unbannen via het bestand. | +| `/rcon reloadlog` | Laadt `log.txt` opnieuw. Handig voor automatische logrotatie. Op Linux ook te triggeren met het `SIGUSR1`-signaal. | +| `/rcon say` | Toont een bericht in de client-console van spelers (bijv. `/rcon say hello` toont `Admin: hello`). | +| `/rcon players` | Toont de players in de server (met naam, IP en ping). | +| `/rcon banip [IP]` | Bannt het opgegeven IP (_voorbeeld: `/rcon banip 127.0.0.1`_). | +| `/rcon unbanip [IP]` | Unbannt het opgegeven IP (_voorbeeld: `/rcon unbanip 127.0.0.1`_). | +| `/rcon gravity` | Wijzigt de gravity (_voorbeeld: `/rcon gravity 0.008`_). | +| `/rcon weather [ID]` | Wijzigt het weather (_voorbeeld: `/rcon weather 1`_). | +| `/rcon loadfs` | Laadt het opgegeven filterscript (_voorbeeld: `/rcon loadfs adminfs`_). | +| `/rcon weburl [server url]` | Wijzigt de server-URL in de masterlists/SA-MP client. | +| `/rcon unloadfs` | Unloadt het opgegeven filterscript (_voorbeeld: `/rcon unloadfs adminfs`_). | +| `/rcon reloadfs` | Reloadt het opgegeven filterscript (_voorbeeld: `/rcon reloadfs adminfs`_). | +| `/rcon rcon\_password [PASSWORD]` | Wijzigt het RCON-wachtwoord. | +| `/rcon password [password]` | Zet/reset het serverpassword. | +| `/rcon messageslimit [count]` | Wijzigt het max. aantal messages per seconde per client (standaard 500). | +| `/rcon ackslimit [count]` | Wijzigt de acks-limit (standaard 3000). | +| `/rcon messageholelimit [count]` | Wijzigt de message holes-limit (standaard 3000). | +| `/rcon playertimeout [limit m/s]` | Wijzigt de timeout (ms) wanneer een player geen packets verstuurt (standaard 1000). | +| `/rcon language [language]` | Wijzigt de servertaal (_voorbeeld: `/rcon language English`_). Wordt getoond in de serverbrowser. | De vier limieten/counters hierboven zijn bedoeld om tools tegen te gaan die SA-MP-servers laten vastlopen of crashen. Stel ze in naar wat bij jouw server past. Standaarden zijn prima; als je onterechte kicks ziet, verhoog de waarden zodat legitieme spelers niet geraakt worden. diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/server/server.cfg.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/server/server.cfg.md index 44a580ec0de..3b537ba461c 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/server/server.cfg.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/server/server.cfg.md @@ -124,3 +124,7 @@ description: Serverconfiguratiebestand. - Waarden gemarkeerd als "Read-only" (zoals getoond door `/rcon varlist`) kunnen niet tijdens runtime worden gewijzigd. Alle andere waarden kunnen (tijdelijk) worden gewijzigd via `SendRconCommand`. - Waarden gemarkeerd als "Rule" (zoals getoond door `/rcon varlist`) worden in de serverbrowser in de sectie Rules weergegeven. - Scripts hoeven niet in de mappen `gamemodes` of `filterscripts` te staan. De informatie in `server.cfg` is een pad en kan dus `..` gebruiken. + +``` +filterscripts ../scriptfiles/first ../minimodes/second +``` diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md index 16e11e82d75..577d0294381 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md @@ -21,8 +21,9 @@ Er zijn twee manieren: [CreatePickup](../scripting/functions/CreatePickup) en [A **Parameters:** -| model | Het model voor de pickup. | +| Naam | Beschrijving | | ------------ | --------------------------------------------------------------------- | +| model | Het model voor de pickup. | | type | Het spawn-type van de pickup, zie onderaan op deze pagina. | | Float:X | X-coördinaat. | | Float:Y | Y-coördinaat. | diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/colorfix.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/colorfix.md index 16dc0ca3a1a..2283281a33b 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/colorfix.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/colorfix.md @@ -8,16 +8,16 @@ Deze tutorial gebruik je samen met [GetPlayerColor](../scripting/functions/GetPl ```pawn new PlayerColors[] = { - 0xFF8C13FF,0xC715FFFF,0x20B2AAFF,0xDC143CFF,0x6495EDFF,0xf0e68cFF,0x778899FF,0xFF1493FF,0xF4A460FF,0xEE82EEFF, - 0xFFD720FF,0x8b4513FF,0x4949A0FF,0x148b8bFF,0x14ff7fFF,0x556b2fFF,0x0FD9FAFF,0x10DC29FF,0x534081FF,0x0495CDFF, - 0xEF6CE8FF,0xBD34DAFF,0x247C1BFF,0x0C8E5DFF,0x635B03FF,0xCB7ED3FF,0x65ADEBFF,0x5C1ACCFF,0xF2F853FF,0x11F891FF, - 0x7B39AAFF,0x53EB10FF,0x54137DFF,0x275222FF,0xF09F5BFF,0x3D0A4FFF,0x22F767FF,0xD63034FF,0x9A6980FF,0xDFB935FF, - 0x3793FAFF,0x90239DFF,0xE9AB2FFF,0xAF2FF3FF,0x057F94FF,0xB98519FF,0x388EEAFF,0x028151FF,0xA55043FF,0x0DE018FF, - 0x93AB1CFF,0x95BAF0FF,0x369976FF,0x18F71FFF,0x4B8987FF,0x491B9EFF,0x829DC7FF,0xBCE635FF,0xCEA6DFFF,0x20D4ADFF, - 0x2D74FDFF,0x3C1C0DFF,0x12D6D4FF,0x48C000FF,0x2A51E2FF,0xE3AC12FF,0xFC42A8FF,0x2FC827FF,0x1A30BFFF,0xB740C2FF, - 0x42ACF5FF,0x2FD9DEFF,0xFAFB71FF,0x05D1CDFF,0xC471BDFF,0x94436EFF,0xC1F7ECFF,0xCE79EEFF,0xBD1EF2FF,0x93B7E4FF, - 0x3214AAFF,0x184D3BFF,0xAE4B99FF,0x7E49D7FF,0x4C436EFF,0xFA24CCFF,0xCE76BEFF,0xA04E0AFF,0x9F945CFF,0xDCDE3DFF, - 0x10C9C5FF,0x70524DFF,0x0BE472FF,0x8A2CD7FF,0x6152C2FF,0xCF72A9FF,0xE59338FF,0xEEDC2DFF,0xD8C762FF,0x3FE65CFF + 0xFF8C13FF, 0xC715FFFF, 0x20B2AAFF, 0xDC143CFF, 0x6495EDFF, 0xf0e68cFF, 0x778899FF, 0xFF1493FF, 0xF4A460FF, 0xEE82EEFF, + 0xFFD720FF, 0x8b4513FF, 0x4949A0FF, 0x148b8bFF, 0x14ff7fFF, 0x556b2fFF, 0x0FD9FAFF, 0x10DC29FF, 0x534081FF, 0x0495CDFF, + 0xEF6CE8FF, 0xBD34DAFF, 0x247C1BFF, 0x0C8E5DFF, 0x635B03FF, 0xCB7ED3FF, 0x65ADEBFF, 0x5C1ACCFF, 0xF2F853FF, 0x11F891FF, + 0x7B39AAFF, 0x53EB10FF, 0x54137DFF, 0x275222FF, 0xF09F5BFF, 0x3D0A4FFF, 0x22F767FF, 0xD63034FF, 0x9A6980FF, 0xDFB935FF, + 0x3793FAFF, 0x90239DFF, 0xE9AB2FFF, 0xAF2FF3FF, 0x057F94FF, 0xB98519FF, 0x388EEAFF, 0x028151FF, 0xA55043FF, 0x0DE018FF, + 0x93AB1CFF, 0x95BAF0FF, 0x369976FF, 0x18F71FFF, 0x4B8987FF, 0x491B9EFF, 0x829DC7FF, 0xBCE635FF, 0xCEA6DFFF, 0x20D4ADFF, + 0x2D74FDFF, 0x3C1C0DFF, 0x12D6D4FF, 0x48C000FF, 0x2A51E2FF, 0xE3AC12FF, 0xFC42A8FF, 0x2FC827FF, 0x1A30BFFF, 0xB740C2FF, + 0x42ACF5FF, 0x2FD9DEFF, 0xFAFB71FF, 0x05D1CDFF, 0xC471BDFF, 0x94436EFF, 0xC1F7ECFF, 0xCE79EEFF, 0xBD1EF2FF, 0x93B7E4FF, + 0x3214AAFF, 0x184D3BFF, 0xAE4B99FF, 0x7E49D7FF, 0x4C436EFF, 0xFA24CCFF, 0xCE76BEFF, 0xA04E0AFF, 0x9F945CFF, 0xDCDE3DFF, + 0x10C9C5FF, 0x70524DFF, 0x0BE472FF, 0x8A2CD7FF, 0x6152C2FF, 0xCF72A9FF, 0xE59338FF, 0xEEDC2DFF, 0xD8C762FF, 0x3FE65CFF }; ``` diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md index c6b185d2632..221ea028dac 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md @@ -1,7 +1,7 @@ --- title: Servervariabelensysteem sidebar_label: Servervariabelensysteem -description: "Het server variable system (kort: SVar) is een efficiënte, dynamische manier om globale servervariabelen te maken die tegelijk beschikbaar zijn in gamemode en filterscripts." +description: "Het server variable system (kort: SVar) is een efficiënte, dynamische manier om globale servervariabelen te maken." --- Het **server variable system** (kort: **SVar**) biedt een efficiënte, dynamische manier om globale servervariabelen te maken. Deze variabelen zijn tegelijk bruikbaar in de gamemode én in filterscripts. diff --git a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md index d0ec27e7812..e30c8167359 100644 --- a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md +++ b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md @@ -9,7 +9,7 @@ tags: [] ## Opis -Dodaje niestandardowy model postaci do pobrania. Pliki modelu będą przechowywane w ścieżce Dokumenty\GTA San Andreas User Files\SAMP\cache w katalogu nazwanym adresem IP oraz portem serwera, z nazwami w formie sum kontrolnych CRC. +Dodaje niestandardowy model postaci do pobrania. Pliki modelu będą przechowywane w ścieżce Dokumenty\GTA San Andreas User Files\SAMP\cache w katalogu nazwanym adresem IP oraz portem serwera, z nazwami w formie sum kontrolnych [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check). | Nazwa | Opis | | ------- | ------------------------------------------------------------------------------------------------------------------- | diff --git a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md index bccfb5a891d..069be51ceba 100644 --- a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md +++ b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md @@ -51,4 +51,5 @@ Aktualnie nie ma żadnych restrykcji co do wywoływania tej funkcji, ale miej na ## Powiązane funkcje +- [AddSimpleModelTimed](AddSimpleModelTimed): Dodaje do pobrania nowy obiekt. - [OnPlayerFinishedDownloading](../callbacks/OnPlayerFinishedDownloading): Wywoływane, kiedy gracz skończy pobierać niestandardowe modele. diff --git a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md index 7906df5a624..8cf3087e5f0 100644 --- a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md +++ b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md @@ -53,4 +53,5 @@ Aktualnie nie ma żadnych restrykcji co do wywoływania tej funkcji, ale miej na ## Powiązane funkcje +- [AddSimpleModel](AddSimpleModel): Dodaje do pobrania nowy obiekt. - [OnPlayerFinishedDownloading](../callbacks/OnPlayerFinishedDownloading): Wywoływane, kiedy gracz skończy pobierać niestandardowe modele. diff --git a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md index 30c65450b51..b8f72620f3c 100644 --- a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md +++ b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md @@ -1,7 +1,7 @@ --- title: AttachObjectToObject sidebar_label: AttachObjectToObject -description: Możesz używać tej funkcji, aby przyczepiać obiekty do innych obiektów. Obiekty będą podążać za głównym obiektem. +description: Możesz używać tej funkcji, aby przyczepiać obiekty do innych obiektów. tags: [] --- diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md index 1a1fd254fbc..68841a96fae 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md @@ -31,3 +31,5 @@ public OnClientMessage(color, text[]) ``` ## Funções Relacionadas + +- [OnPlayerText](OnPlayerText): Chamada quando um player ou NPC envia uma mensagem para o chat. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md index 4b16e86a6cf..fa9efa02af7 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md @@ -1,7 +1,7 @@ --- title: OnDialogResponse sidebar_label: OnDialogResponse -description: Esta callback é chamada quando um jogador responde a um dialog mostrado usando ShowPlayerDialog ao clicar em um botão, pressionar ENTER/ESC ou dar clique duplo em um item da lista. (se estiver usando o formato lista). +description: Esta callback é chamada quando um jogador responde a um dialog mostrado usando ShowPlayerDialog. tags: [] --- @@ -173,4 +173,6 @@ Um dialog de jogador não é escondido ao reiniciar o gamemode, ocasionando em u ## Funções Relacionadas +As seguintes funções podem ser úteis, pois estão relacionadas a esta callback. + - [ShowPlayerDialog](../functions/ShowPlayerDialog): Show a dialog to a player. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptExit.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptExit.md index 1b1c66b7659..674c1b51e2b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptExit.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptExit.md @@ -22,3 +22,9 @@ public OnFilterScriptExit() ``` ## Funções Relacionadas + +As seguintes Callbacks também podem ser úteis, pois estão relacionadas a esta Callback. + +- [OnFilterScriptInit](OnFilterScriptInit): Chamado quando um filterscript é carregado. +- [OnGameModeInit](OnGameModeInit): Chamada na inicialização do gamemode. +- [OnGameModeExit](OnGameModeExit): Chamado quando um gamemode é encerrado. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md index f04b8579001..86fda4347c3 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md @@ -22,3 +22,9 @@ public OnFilterScriptInit() ``` ## Funções Relacionadas + +As seguintes Callbacks também podem ser úteis, pois estão relacionadas a esta Callback. + +- [OnFilterScriptExit](OnFilterScriptExit): Chamado quando um filterscript é descarregado. +- [OnGameModeInit](OnGameModeInit): Chamada na inicialização do gamemode. +- [OnGameModeExit](OnGameModeExit): Chamado quando um gamemode é encerrado. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md index ed4362f4bc1..1c1f4309ce2 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md @@ -31,6 +31,16 @@ Esta função também pode ser usada em um filterscript para detectar se a gamem ::: +## Callbacks Relacionadas + +As seguintes Callbacks também podem ser úteis, pois estão relacionadas a esta Callback. + +- [OnGameModeInit](OnGameModeInit): Chamada na inicialização do gamemode. +- [OnFilterScriptInit](OnFilterScriptInit): Chamado quando um filterscript é carregado. +- [OnFilterScriptExit](OnFilterScriptExit): Chamado quando um filterscript é descarregado. + ## Funções Relacionadas +As seguintes funções podem ser úteis, pois estão relacionadas a esta callback. + - [GameModeExit](../functions/GameModeExit): Sair da atual gamemode. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md index 7973cafb1d7..188457bd02e 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md @@ -32,3 +32,9 @@ Esta função também pode ser usada em um filterscript para detectar se a gamem ::: ## Funções Relacionadas + +As seguintes Callbacks também podem ser úteis, pois estão relacionadas a esta Callback. + +- [OnGameModeExit](OnGameModeExit): Chamado quando um gamemode é encerrado. +- [OnFilterScriptInit](OnFilterScriptInit): Chamado quando um filterscript é carregado. +- [OnFilterScriptExit](OnFilterScriptExit): Chamado quando um filterscript é descarregado. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md index 2afff47b7bc..e6cf641c758 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md @@ -33,6 +33,13 @@ public OnIncomingConnection(playerid, ip_address[], port) } ``` +## Callbacks Relacionadas + +As seguintes Callbacks também podem ser úteis, pois estão relacionadas a esta Callback. + +- [OnPlayerConnect](OnPlayerConnect): Chamado quando um jogador conecta ao servidor. +- [OnPlayerDisconnect](OnPlayerDisconnect): Chamado quando um jogador desconecta do servidor. + ## Funções Relacionadas - [BlockIpAddress](../functions/BlockIpAddress): Bloqueia um IP de entrar no servidor por determinado tempo. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md index 3fb04e9d0f5..e4d73a54a09 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md @@ -47,6 +47,14 @@ public OnPlayerCommandText(playerid, cmdtext[]) +## Callbacks Relacionadas + +As seguintes Callbacks também podem ser úteis, pois estão relacionadas a esta Callback. + +- [OnPlayerText](OnPlayerText): Chamado quando um jogador envia uma mensagem através do chat. + ## Funções Relacionadas +As seguintes funções podem ser úteis, pois estão relacionadas a esta callback. + - [SendRconCommand](../functions/SendRconCommand): Envia um comando via RCON. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md index 90207658cd0..550d62dbdd4 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md @@ -42,3 +42,7 @@ public OnPlayerConnect(playerid) ## Funções Relacionadas + +As seguintes Callbacks também podem ser úteis, pois estão relacionadas a esta Callback. + +- [OnPlayerDisconnect](OnPlayerDisconnect): Chamado quando um jogador desconecta do servidor. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md index 2f2f9345fe6..a46f3103839 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md @@ -22,6 +22,14 @@ Esta callback é chamada quando um jogador disconecta do servidor. Sempre é chamada primeiro em filterscripts. +## Motivos + +| ID | Motivo | +| --- | ---------------------------------------------------- | +| 0 | Tempo esgotado (perda de conexão) ou Crash. | +| 1 | Saiu normalmente (/quit (/q) ou pelo menu de pausa). | +| 2 | Kickado ou banido (Conexão com o servidor fechada). | + ## Exemplos ```c @@ -56,3 +64,7 @@ Algumas funções podem não funcionar corretamente quando usadas nesta callback ::: ## Funções Relacionadas + +As seguintes Callbacks também podem ser úteis, pois estão relacionadas a esta Callback. + +- [OnPlayerConnect](OnPlayerConnect): Chamado quando um jogador conecta ao servidor. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md index 90ab7738de6..ddcb0b26ad5 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md @@ -17,6 +17,8 @@ Esta callback é chamada quando um jogador começa a entrar em um veículo, isso ## Retorno +Esta callback não lida com retornos. + Sempre é chamada primeiro em filterscripts. ## Exemplo @@ -39,7 +41,16 @@ Esta callback é chamada quando um jogador começa a entrar em um veículo, não ::: +## Callbacks Relacionadas + +As seguintes Callbacks também podem ser úteis, pois estão relacionadas a esta Callback. + +- [OnPlayerExitVehicle](OnPlayerExitVehicle): Chamado quando um jogador deixa o veículo. +- [OnPlayerStateChange](OnPlayerStateChange): Chamado quando um jogador muda de estado. + ## Funções Relacionadas +As seguintes funções podem ser úteis, pois estão relacionadas a esta callback. + - [PutPlayerInVehicle](../functions/PutPlayerInVehicle): Coloca um jogador em um veículo. - [GetPlayerVehicleSeat](../functions/GetPlayerVehicleSeat): Verifica qual assento o jogador está. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md index e309461f378..12371e4c218 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md @@ -38,7 +38,16 @@ Não é chamada quando o jogador cai de uma bicicleta ou é removido do veículo ::: +## Callbacks Relacionadas + +As seguintes Callbacks também podem ser úteis, pois estão relacionadas a esta Callback. + +- [OnPlayerEnterVehicle](OnPlayerEnterVehicle): Chamado quando um jogador começa a entrar em um veículo. +- [OnPlayerStateChange](OnPlayerStateChange): Chamado quando um jogador muda de estado. + ## Funções Relacionadas +As seguintes funções podem ser úteis, pois estão relacionadas a esta callback. + - [RemovePlayerFromVehicle](../functions/RemovePlayerFromVehicle): Tira o jogador do veículo. - [GetPlayerVehicleSeat](../functions/GetPlayerVehicleSeat): Verifica que assento o jogador está. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md index 6ec38910312..febc544e5d9 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md @@ -44,4 +44,6 @@ Esta callback também é chamada quando um jogador pressiona F4. ## Funções Relacionadas +As seguintes funções podem ser úteis, pois estão relacionadas a esta callback. + - [AddPlayerClass](../functions/AddPlayerClass): Adiciona uma classe. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md index c17972d09e9..52375652991 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md @@ -11,11 +11,11 @@ tags: ["player"] Esta callback é chamada quando um jogador solicita o download de modelos personalizados. -| Nome | Descrição | -| -------- | ------------------------------------------------------ | -| playerid | O ID do jogador que solicitou o download de um modelo. | -| type | O tipo de solicitação (veja abaixo). | -| crc | O CRC de soma de verificação dos modelos. | +| Nome | Descrição | +| -------- | -------------------------------------------------------------------------------------------------- | +| playerid | O ID do jogador que solicitou o download de um modelo. | +| type | O tipo de solicitação (veja abaixo). | +| crc | O [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) de soma de verificação dos modelos. | ## Retornos @@ -59,3 +59,6 @@ public OnPlayerRequestDownload(playerid, type, crc) ## Funções Relacionadas - [OnPlayerFinishedDownloading](OnPlayerFinishedDownloading): Chamada quando um jogador termina de baixar os modelos personalizados. +- [FindModelFileNameFromCRC](../functions/FindModelFileNameFromCRC): Encontra um arquivo de modelo existente de skin customizada ou objeto simples. +- [FindTextureFileNameFromCRC](../functions/FindTextureFileNameFromCRC): Encontra um arquivo de textura existente de skin customizada ou objeto simples. +- [RedirectDownload](../functions/RedirectDownload): Redirecione o download AddCharModel ou AddSimpleModel personalizado do jogador para uma página da Web HTTP específica. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md index 61107617b81..245058707bb 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md @@ -15,6 +15,8 @@ Chamada quando um jogador tenta spawnar através da seleção de classe pression ## Retorno +Retornando 0 nesta callback irá impedir que o player spawne. + Sempre é chamada primeiro em Filterscripts. ## Exemplos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSpawn.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSpawn.md index cc9b5bebadf..5f99f897453 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSpawn.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSpawn.md @@ -45,6 +45,8 @@ O jogo às vezes deduz $100 dos jogadores após o spawn. ## Funções Relacionadas +As seguintes funções podem ser úteis, pois estão relacionadas a esta callback. + - [SpawnPlayer](../functions/SpawnPlayer): Forçar um jogador a spawnar. - [AddPlayerClass](../functions/AddPlayerClass): Adiciona uma Classe. - [SetSpawnInfo](../functions/SetSpawnInfo): Define a configuração de spawn para um jogador. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md index 6067bc132e2..65c7df6bded 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md @@ -41,6 +41,8 @@ public OnPlayerStateChange(playerid, PLAYER_STATE:newstate, PLAYER_STATE:oldstat ## Funções Relacionadas +As seguintes funções podem ser úteis, pois estão relacionadas a esta callback. + - [GetPlayerState](../functions/GetPlayerState): Obtém o estado atual do jogador. - [GetPlayerSpecialAction](../functions/GetPlayerSpecialAction): Obtém a ação especial atual do jogador. - [SetPlayerSpecialAction](../functions/SetPlayerSpecialAction): Define uma ação especial a um jogador. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerText.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerText.md index 1df4bf036ca..8e2e3e16940 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerText.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerText.md @@ -36,7 +36,15 @@ public OnPlayerText(playerid, text[]) +## Callbacks Relacionadas + +As seguintes Callbacks também podem ser úteis, pois estão relacionadas a esta Callback. + +- [OnPlayerCommandText](OnPlayerCommandText): Chamado quando um jogador digita e envia um comando ao servidor. + ## Funções Relacionadas +As seguintes funções podem ser úteis, pois estão relacionadas a esta callback. + - [SendPlayerMessageToPlayer](../functions/SendPlayerMessageToPlayer): Força um jogador enviar uma mensagem para outro jogador. - [SendPlayerMessageToAll](../functions/SendPlayerMessageToAll): Força um jogador a mandar uma mensagem visível para todos. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md index bdf132002e0..a39724f1a36 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md @@ -40,4 +40,6 @@ Essa callback também será executada quando o veículo entrar na água, mesmo p ## Funções Relacionadas +As seguintes funções podem ser úteis, pois estão relacionadas a esta callback. + - [SetVehicleHealth](../functions/SetVehicleHealth): Define a vida do veículo. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md index 1a310e2e0c2..7b2f9f39e49 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md @@ -9,11 +9,11 @@ tags: ["vehicle"] Essa callback é executada quando um veículo é modificado. -| Nome | Descrição | -| ----------- | ----------------------------------------------- | -| playerid | ID do motorista do veículo. | -| vehicleid | ID do veículo modificado. | -| componentid | ID do componente que foi adicionado ao veículo. | +| Nome | Descrição | +| ----------- | ------------------------------------------------------------------------------ | +| playerid | ID do motorista do veículo. | +| vehicleid | ID do veículo modificado. | +| componentid | [ID do componente](../resources/carcomponentid) que foi adicionado ao veículo. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md index 269c44cd65d..c0e6cdbd026 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md @@ -1,7 +1,7 @@ --- title: AddCharModel sidebar_label: AddCharModel -description: Adiciona um novo modelo de personagem personalizado para download. Os arquivos do modelo são armazenados em Documentos\GTA San Andreas User Files\SAMP\cache do jogador sob a pasta IP e Porta do Servidor em um arquivo no formato CRC. +description: Adiciona um novo modelo de personagem personalizado para download. tags: [] --- @@ -13,14 +13,14 @@ Esta função foi adicionada no SA-MP 0.3.DL-R1 e não funcionará em versões a ::: -Adiciona um novo modelo de personagem personalizado para download. Os arquivos do modelo serão armazenados em Documentos\GTA San Andreas User Files\SAMP\cache do jogador sob a pasta IP e Porta do Servidor em um arquivo no formato CRC. +Adiciona um novo modelo de personagem personalizado para download. Os arquivos do modelo serão armazenados em Documentos\GTA San Andreas User Files\SAMP\cache do jogador sob a pasta IP e Porta do Servidor em um arquivo no [formato CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check). -| Nome | Descrição | -| ------- | ------------------------------------------------------------------------------------------------------------------------- | -| baseid | O ID do modelo da skin original a ser usado como base (personagens originais são usados caso o download falhar). | -| newid | O ID do modelo da nova skin. Varia entre 20001 a 30000 (10000 slots) para serem usados posteriormente com SetPlayerSkin. | -| dffname | Nome do arquivo de extensão .dff localizado na pasta do servidor de modelos por padrão (configuração artpath). | -| txdname | Nome do arquivo de textura de extensão .txd localizado na pasta do servidor de modelos por padrão (configuração artpath). | +| Nome | Descrição | +| ------- | -------------------------------------------------------------------------------------------------------------------------------------- | +| baseid | O [ID do modelo da skin](../resources/skins) original a ser usado como base (personagens originais são usados caso o download falhar). | +| newid | O ID do modelo da nova skin. Varia entre 20001 a 30000 (10000 slots) para serem usados posteriormente com SetPlayerSkin. | +| dffname | Nome do arquivo de extensão .dff localizado na pasta do servidor de modelos por padrão (configuração artpath). | +| txdname | Nome do arquivo de textura de extensão .txd localizado na pasta do servidor de modelos por padrão (configuração artpath). | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClass.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClass.md index 52614594e7d..907f38c3381 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClass.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClass.md @@ -1,7 +1,7 @@ --- title: AddPlayerClass sidebar_label: AddPlayerClass -description: Adiciona uma classe à seleção de classes. As classes são usadas para que os jogadores possam aparecer com uma skin (personagem) de sua escolha. +description: Adiciona uma classe à seleção de classes. tags: [] --- diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md index eac0de6fb7a..74920ea5691 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md @@ -51,4 +51,5 @@ Atualmente não há restrições sobre quando você pode chamar esta função, m ## Funções Relacionadas +- [AddSimpleModelTimed](AddSimpleModelTimed): Adiciona um novo modelo de objeto simples personalizado para download. - [OnPlayerFinishedDownloading](../callbacks/OnPlayerFinishedDownloading): É chamada quando um jogador termina o download dos modelos personalizados. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md index 57317a4f707..30f30f8b3ad 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md @@ -53,4 +53,5 @@ Atualmente não há restrições sobre quando você pode chamar esta função, m ## Funções Relacionadas +- [AddSimpleModel](AddSimpleModel): Adiciona um novo modelo de objeto simples personalizado para download. - [OnPlayerFinishedDownloading](../callbacks/OnPlayerFinishedDownloading): É chamada quando um jogador termina o download dos modelos personalizados. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md index 05926a37abe..a6ee671b8dd 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md @@ -1,13 +1,13 @@ --- title: Ban sidebar_label: Ban -description: Bane um jogador que está atualmente online no servidor. Ele não poderá mais entrar no servidor. A proibição será baseada em IP e será salva no arquivo samp.ban no diretório raiz do servidor. O BanEx pode ser usado para justificar o banimento. Os banimentos de IP podem ser adicionados ou removidos usando os comandos RCON banip e unbanip (SendRconCommand). +description: Bane um jogador que está atualmente online no servidor. tags: [] --- ## Descrição -Bane um jogador que está atualmente online no servidor. Ele não poderá mais entrar no servidor. A proibição será baseada em IP e será salva no arquivo samp.ban no diretório raiz do servidor. O BanEx pode ser usado para justificar o banimento. Os banimentos de IP podem ser adicionados ou removidos usando os comandos RCON banip e unbanip (SendRconCommand). +Bane um jogador que está atualmente online no servidor. Ele não poderá mais entrar no servidor. A proibição será baseada em IP e será salva no arquivo **bans.json** no diretório raiz do servidor. O BanEx pode ser usado para justificar o banimento. Os banimentos de IP podem ser adicionados ou removidos usando os comandos RCON banip e unbanip (SendRconCommand). | Nome | Descrição | | -------- | ----------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CallLocalFunction.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CallLocalFunction.md index c837f3c356f..7a58ea94d78 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CallLocalFunction.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CallLocalFunction.md @@ -32,6 +32,8 @@ Se a função não existe, retorna 0. | `f` | Passa um número de ponto flutuante. | | `s` | Passa uma string. | +Os valores dos placeholders seguem exatamente a mesma ordem dos parâmetros na chamada. + ## Exemplos ```c diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CallRemoteFunction.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CallRemoteFunction.md index 7b14343d5b3..c51aed806e1 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CallRemoteFunction.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CallRemoteFunction.md @@ -30,6 +30,8 @@ O valor que a última função pública retornou. | `f` | Passa um número de ponto flutuante. | | `s` | Passa uma string. | +Os valores dos placeholders seguem exatamente a mesma ordem dos parâmetros na chamada. + ## Exemplos ```c diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md index 44bfa6b6993..ab1276fb5cc 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md @@ -1,7 +1,7 @@ --- title: ClearAnimations sidebar_label: ClearAnimations -description: Limpa todas as animações para o jogador especificado (também cancela todas as tarefas atuais como jetpack, paraquedas, entrar em veículos, dirigir (remove o jogador do veículo), nadar, etc). +description: Limpa todas as animações para o jogador especificado. tags: ["player", "animation"] --- diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md index 401a8e26d2c..67545a7bf83 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md @@ -1,7 +1,7 @@ --- title: CreatePickup sidebar_label: CreatePickup -description: Esta função faz exatamente o mesmo que AddStaticPickup, exceto que retorna um ID de pickup que pode ser usado para destruí-lo posteriormente e ser rastreado usando OnPlayerPickUpPickup. +description: Esta função faz exatamente o mesmo que AddStaticPickup, exceto que retorna um ID de pickup. tags: ["pickup"] --- diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md index dc767c4fcc9..005adc6b0be 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md @@ -1,13 +1,13 @@ --- title: GetMaxPlayers sidebar_label: GetMaxPlayers -description: Retorna o número máximo de jogadores que podem entrar no servidor, conforme definido pela variável 'maxplayer' no servidor. +description: Retorna o número máximo de jogadores que podem entrar no servidor, conforme definido pela variável 'max_players'. tags: ["player"] --- ## Descrição -Retorna o número máximo de jogadores que podem entrar no servidor, conforme definido pela variável 'maxplayer' no server.cfg. +Retorna o número máximo de jogadores que podem entrar no servidor, conforme definido pela variável 'max_players' no config.json. ## Exemplos @@ -21,7 +21,7 @@ SendClientMessage(playerid, 0xFFFFFFFF, str); :::warning -Esta função não pode ser usada no lugar de MAX_PLAYERS. Não pode ser usado durante a compilação (por exemplo, para tamanhos de arrays). MAX_PLAYERS deve ser sempre redefinido ao valor que a variável 'maxplayer' será ou superior. Veja MAX_PLAYERS para mais informações. +Esta função não pode ser usada no lugar de MAX_PLAYERS. Não pode ser usado durante a compilação (por exemplo, para tamanhos de arrays). MAX_PLAYERS deve ser sempre redefinido ao valor que a variável 'max_players' será ou superior. Veja MAX_PLAYERS para mais informações. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetActor.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetActor.md index 109e6ab90cf..b7f3546150d 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetActor.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetActor.md @@ -63,7 +63,7 @@ public OnPlayerUpdate(playerid) :::tip -Esta função informa apenas para qual ator (se houver) o jogador está olhando. Para descobrir se eles estão mirando neles, você precisa usar GetPlayerTargetActor. +Esta função informa apenas para qual ator (se houver) o jogador está olhando. Para descobrir se eles estão mirando neles, você precisa usar [GetPlayerTargetActor](GetPlayerTargetActor). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md index 5f4afcf9041..17d0f06a4f8 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md @@ -17,6 +17,8 @@ Obtém o endereço IP de um jogador específico e armazena-o em uma string. ## Retorno +**-1** se o jogador especificado não existir. + O endereço IP do jogador que está armazenado na array especificada. ## Exemplos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md index b86379ac991..589ff7039a8 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md @@ -18,6 +18,8 @@ Retorna a versão do cliente SA-MP, conforme relatado pelo jogador. ## Retornos +**0** se o jogador especificado não existir. + A versão do cliente é armazenada na matriz especificada. ## Exemplos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarsUpperIndex.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarsUpperIndex.md index cd98326c672..c05bb354037 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarsUpperIndex.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarsUpperIndex.md @@ -10,6 +10,10 @@ tags: ["server variable", "svar"] Cada SVar (variável de servidor) possui seu próprio número de identificação exclusivo para pesquisa, esta função retorna o ID mais alto. +## Retornos + +O conjunto mais alto SVar ID. + ## Exemplos ```c diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md index 99aae4ac137..17f3083c4ba 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md @@ -1,7 +1,7 @@ --- title: Kick sidebar_label: Kick -description: Expulsa um jogador do servidor. Ele terá que sair do jogo e re-conectar caso queira continuar jogando. +description: Expulsa um jogador do servidor. tags: ["administration"] --- diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorHealth.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorHealth.md index 1e9c749372b..0bf61f33ebe 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorHealth.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorHealth.md @@ -36,3 +36,6 @@ public OnGameModeInit() ``` ## Funções Relacionadas + +- [GetActorHealth](GetActorHealth): Pega a vida do ator. +- [SetActorInvulnerable](SetActorInvulnerable): Alterna a invulnerabilidade do ator. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md index ac369bfb45b..548dcd34477 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md @@ -45,4 +45,6 @@ Uma vez definido como invulnerável, o ator não chama [OnPlayerGiveDamageActor] ## Funções Relacionadas +- [CreateActor](CreateActor): Crie um ator (estático NPC). - [IsActorInvulnerable](IsActorInvulnerable): Verifique se um ator é invulnerável. +- [SetActorHealth](SetActorHealth): Define a saúde de um ator. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md index 5b79ab36a86..96806b7a9e0 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md @@ -49,7 +49,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::tip -A incorporação de cores pode ser usada para várias cores no texto. +A [incorporação de cores](../resources/colorslist#color-embedding) pode ser usada para várias cores no texto. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md index 1d12266d350..11aced85c69 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md @@ -49,3 +49,6 @@ Esta função não afeta veículos desocupados e não afeta trens. ## Funções Relacionadas - [GetVehicleVelocity](GetVehicleVelocity): Obtenha a velocidade de um veículo nos eixos X, Y e Z. +- [SetVehicleAngularVelocity](SetVehicleAngularVelocity): Define a velocidade angular X, Y e Z de um veículo. +- [SetPlayerVelocity](SetPlayerVelocity): Define a velocidade de um jogador. +- [GetPlayerVelocity](GetPlayerVelocity): Obtenha a velocidade de um jogador. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayback.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayback.md index 499528e19f1..3406c2d03d9 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayback.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayback.md @@ -1,7 +1,7 @@ --- title: StartRecordingPlayback sidebar_label: StartRecordingPlayback -description: "Isso executará um arquivo .rec que deve ser salvo na pasta npcmodes/recordings. Esses arquivos permitem que o NPC siga determinadas ações. Suas ações podem ser registradas manualmente. Para mais informações, verifique as funções relacionadas." +description: "Isso executará um arquivo .rec que deve ser salvo na pasta npcmodes/recordings." tags: [] --- diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md index 1927768745d..6e7a63bdfb3 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md @@ -33,6 +33,12 @@ public OnGameModeInit() ``` ## Notas +:::tip + +Você também pode usar [cores do Gametext](../resources/gametextstyles) em textdraws. (por exemplo, `~r~` `~g~` `~b~`) + +::: + :::note Caso TextDraw já esteja sendo mostrado, ele deverá ser mostrado novamente ([TextDrawShowForAll](TextDrawShowForAll)/[TextDrawShowForPlayer](TextDrawShowForPlayer)) para que as alterações desta função tenham efeito. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md index 4959fc41c5d..76d3cae214f 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md @@ -8,7 +8,7 @@ tags: ["textdraw"] ## Descrição -Cria um desenho de texto. Textdraws são, como o nome indica, texto (principalmente - pode haver caixas, sprites e visualizações de modelos (skins/veículos/armas/objetos também) que é desenhado nas telas de um jogador. Consulte esta página para obter informações abrangentes sobre textdraws. +Cria um desenho de texto. Textdraws são, como o nome indica, texto (principalmente - pode haver caixas, sprites e visualizações de modelos (skins/veículos/armas/objetos também) que é desenhado nas telas de um jogador. Consulte [esta página](../resources/textdraws) para obter informações abrangentes sobre textdraws. | Nome | Descrição | | ---------------- | -------------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/UsePlayerPedAnims.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/UsePlayerPedAnims.md index d8d2d4ec66b..476a94a5e19 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/UsePlayerPedAnims.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/UsePlayerPedAnims.md @@ -1,7 +1,7 @@ --- title: UsePlayerPedAnims sidebar_label: UsePlayerPedAnims -description: "Usa animação de caminhada padrão do jogador (animação da skin CJ) em vez de animações personalizadas para cada skin (por exemplo, patinação para skins de skatista)." +description: "Usa animação de caminhada padrão do jogador (animação da skin CJ) em vez de animações personalizadas para cada skin." tags: ["player"] --- diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_next_row.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_next_row.md index 34c1af92223..198002e245a 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_next_row.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_next_row.md @@ -78,6 +78,12 @@ public OnGameModeExit() ## notas +:::warning + +Usando um identificador inválido seu servidor irá crashar! Pegue um identificador válido usando [db_query](db_query). Mas é protegido contra referências nulas. + +::: + ## funções relacionadas - [db_open](db_open): Abre conexão com banco SQLite diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_num_fields.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_num_fields.md index 162ba9f0e5a..daf21271926 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_num_fields.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_num_fields.md @@ -104,6 +104,12 @@ public OnGameModeExit() ## notas +:::warning + +Usando um identificador inválido seu servidor irá crashar! Pegue um identificador válido usando [db_query](db_query). Mas é protegido contra referências nulas. + +::: + ## funções relacionadas - [db_open](db_open): Abrir conexão com banco SQLite diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_num_rows.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_num_rows.md index 4df728fae01..06f3acbbaae 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_num_rows.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_num_rows.md @@ -77,6 +77,12 @@ public OnGameModeExit() ## notas +:::warning + +Usando um identificador inválido seu servidor irá crashar! Pegue um identificador válido usando [db_query](db_query). Mas é protegido contra referências nulas. + +::: + ## funções relacionadas - [db_open](db_open): Abrir conexão com banco SQLite diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_query.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_query.md index 2078067e234..6c1b6f30a9e 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_query.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_query.md @@ -72,6 +72,12 @@ public OnGameModeExit() ## notas +:::warning + +**Sempre** libere o resultado usando [db_free_result](db_free_result), não importa qual a consulta enviada mas sempre libere! + +::: + ## funções relacionadas - [db_open](db_open): Abrir uma conexão com uma base de dados SQLite diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/format.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/format.md index f4566aa4bc1..b097eed1e4f 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/format.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/format.md @@ -68,6 +68,8 @@ format(string, sizeof(string), "The time is %02d:%02d:%02d.", hour, minute, seco ```
+Uma maneira de inserir o sinal de porcentagem é fazer: + ```c new string[32]; format(string, sizeof(string), "43%s of my shirts are black.", "%%"); diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md index a6457cb4aac..3e52f23f6ef 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md @@ -252,7 +252,7 @@ new a = (b == 3) ? (5) : (7); ``` -A parte antes do '?' é a condição, é exatamente o mesmo que uma condição normal. A parte entre o '?' e o ':' é o valor que irá retornar se a condição for verdadeira, a outro parte é o valor que irá retornar se a condição for falsa. +A parte antes do '?' é a condição, é exatamente o mesmo que uma condição normal. A parte entre o '?' e o ':' é o valor que irá retornar se a condição for verdadeira, a outro parte é o valor que irá retornar se a condição for falsa. Você pode empilhá-los com varias comparações também: ```c new @@ -708,3 +708,10 @@ MinhaFunção(num) return 0; } ``` + +## Veja também + +- [Palavras-chave: Declarações](Statements) +- [Palavras-chave: operadores](Operators) +- [Palavras-chave: diretivas](Directives) +- [Palavras-chave: inicializadores](Initialisers) diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/Directives.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/Directives.md index d22f8f7a835..a5fdff3d249 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/Directives.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/Directives.md @@ -73,6 +73,11 @@ Pouca gente sabe que você pode criar definições multilinha escapando a quebra #define PL \ new i = 0; i < MAX_PLAYERS; i++) \ if (IsPlayerConnected(i) + +for (PL) +{ + printf("%d connected", i); +} ``` Macros também podem receber parâmetros: @@ -91,7 +96,7 @@ Se o número de argumentos fornecido for maior que o declarado, o último parâm ```c #define PP(%0,%1) \ - printf(%0, %1) + printf(#%0, %1) PP(%s %s %s, "hi", "hello", "hi"); // imprime "hi hello hi" ``` diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/Statements.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/Statements.md index 380f79c781f..fc2425337ed 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/Statements.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/Statements.md @@ -366,6 +366,7 @@ printf("Isso será impresso"); O compilador, no entanto, não lida muito bem com goto, então isso não será otimizado de forma alguma e coisas como: ```c +stock MyFunction() { new i = 5; @@ -435,7 +436,17 @@ if (i < 10) As condições que if pode aceitar são muitas demais para este post, porém algumas estão listadas abaixo: -Operador Explicação Exemplo Resultado quando a=1, b=0 Resultado quando a=1, b=1 Resultado quando a=0, b=1 Resultado quando a=0, b=0 == Verifica se uma coisa é igual a outra if (a == b) falso verdadeiro falso verdadeiro != Verifica se uma coisa não é igual a outra if (a != b) verdadeiro falso verdadeiro falso < Verifica se uma coisa é menor que outra if (a < b) falso falso verdadeiro falso > Verifica se uma coisa é maior que outra if (a > b) verdadeiro falso falso falso \<= Verifica se uma coisa é menor ou igual a outra if (a \<= b) falso verdadeiro verdadeiro verdadeiro >= Verifica se uma coisa é maior ou igual a outra if (a >= b) verdadeiro verdadeiro falso verdadeiro && Verifica se duas coisas são verdadeiras (não 0) if (a && b) falso verdadeiro falso falso || Verifica se pelo menos uma de duas coisas é verdadeira (não 0) if (a || b) verdadeiro verdadeiro verdadeiro falso ! Verifica se algo é falso if (!(a == b)) verdadeiro falso verdadeiro falso +| Operador | Explicação | Exemplo | Resultado quando a=1, b=0 | Resultado quando a=1, b=1 | Resultado quando a=0, b=1 | Resultado quando a=0, b=0 | +| -------- | -------------------------------------------------------------- | ---------------- | ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `==` | Verifica se uma coisa é igual a outra | `if (a == b)` | falso | verdadeiro | falso | verdadeiro | +| `!=` | Verifica se uma coisa não é igual a outra | `if (a != b)` | verdadeiro | falso | verdadeiro | falso | +| `<` | Verifica se uma coisa é menor que outra | `if (a < b)` | falso | falso | verdadeiro | falso | +| `>` | Verifica se uma coisa é maior que outra | `if (a > b)` | verdadeiro | falso | falso | falso | +| `<=` | Verifica se uma coisa é menor ou igual a outra | `if (a <= b)` | falso | verdadeiro | verdadeiro | verdadeiro | +| `>=` | Verifica se uma coisa é maior ou igual a outra | `if (a >= b)` | verdadeiro | verdadeiro | falso | verdadeiro | +| `&&` | Verifica se duas coisas são verdadeiras (não 0) | `if (a && b)` | falso | verdadeiro | falso | falso | +| `\|\|` | Verifica se pelo menos uma de duas coisas é verdadeira (não 0) | `if (a \|\| b)` | verdadeiro | verdadeiro | verdadeiro | falso | +| `!` | Verifica se algo é falso | `if (!(a == b))` | verdadeiro | falso | verdadeiro | falso | Obviamente, com estes você pode construir condicionais complexas: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/colorslist.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/colorslist.md index 5c3500151e0..abfa71a44ba 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/colorslist.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/colorslist.md @@ -1,7 +1,7 @@ --- title: Lista de Cores sidebar_label: Lista de Cores -description: Cores estão em toda parte no SA-MP - veículos, nomes de jogadores e blips, textdraws, gametext, chat, textos 3D e dialogs (as color embedding)! Abaixo você pode encontrar informações sobre essas coisas. +description: Cores estão em toda parte no SA-MP - veículos, nomes de jogadores e blips, textdraws, gametext, chat, textos 3D e dialogs (as color embedding)! --- ## Texto do chat e cor do jogador @@ -182,3 +182,9 @@ Now these colors are pretty dark. You can make them brighter by using **`~h~`** ``` ![Image:Blueandred2.png](https://assets.open.mp/assets/images/colorList/Blueandred2.png) + +--- + +## Vehicle Color IDs + +There is a full list of [vehicle color IDs](vehiclecolorid). You can find the colors used in single player for each car on the [Original Car Colors](original-car-colors) page. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/mapicons.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/mapicons.md index 805ffe1847b..b313ddbfc51 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/mapicons.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/mapicons.md @@ -54,7 +54,7 @@ Esta página possui uma lista de todos os ícones do mapa que podem ser usados p | 38 | ![](https://assets.open.mp/assets/images/mapIcons/icon38.gif) | Sweet | | | 39 | ![](https://assets.open.mp/assets/images/mapIcons/icon39.gif) | Tatuagem | | | 40 | ![](https://assets.open.mp/assets/images/mapIcons/icon40.gif) | The Truth | | -| 41 | ![](https://assets.open.mp/assets/images/mapIcons/icon41.gif) | Ponto de referência | Pode ser colocado pelos jogadores no mapa do menu de pausa clicando com o botão direito | +| 41 | ![](https://assets.open.mp/assets/images/mapIcons/icon41.gif) | Ponto de referência | Pode ser colocado pelos jogadores no mapa do menu de pausa clicando com o botão direito ([OnPlayerClickMap](../callbacks/OnPlayerClickMap)) | | 42 | ![](https://assets.open.mp/assets/images/mapIcons/icon42.gif) | Fazenda do Toreno | | | 43 | ![](https://assets.open.mp/assets/images/mapIcons/icon43.gif) | Tríades | | | 44 | ![](https://assets.open.mp/assets/images/mapIcons/icon44.gif) | Cassino Tríades | | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/networkstats.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/networkstats.md index 553c7e1df91..eb7dd03c7a9 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/networkstats.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/networkstats.md @@ -16,7 +16,7 @@ tags: [] | RWObjects | Número de objetos renderizados. | | PedSlotsUsed | Número de slots ped usados (NPCs/jogadores usam um slot 'ped'). | | ObjectSlotsUsed | Slots de objeto usados. | -| OnFoot Send Rate | A taxa (em MS) na qual os dados a pé estão sendo sincronizados. Pode ser definido em server.cfg. | +| OnFoot Send Rate | A taxa (em MS) na qual os dados a pé estão sendo sincronizados. Pode ser definido em [config.json](../../server/config.json). | | Streaming Mem (Memory) Used (Also shows total allowance) | A quantidade de memória de streaming usada e o total disponível. | | Messages in Send buffer | O número de mensagens de rede aguardando para serem enviadas. | | Messages sent | O número de mensagens de rede enviadas. | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/pickuptypes.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/pickuptypes.md index 05ff519ee3a..94e78be11ed 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/pickuptypes.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/pickuptypes.md @@ -8,7 +8,7 @@ sidebar_label: "Pickup Types" :::note -- Esses tipos de pickup são usados por [CreatePickup](../functions/CreatePickup) e [CreatePlayerPickup](../functions/CreatePlayerPickup). +- Esses tipos de pickup são usados por [AddStaticPickup](../functions/AddStaticPickup), [CreatePickup](../functions/CreatePickup) e [CreatePlayerPickup](../functions/CreatePlayerPickup). - A maioria dos outros IDs não estão documentados ou são semelhantes ao tipo 1 (mas não os use apenas porque parecem semelhantes ao ID 1, pois podem ter efeitos colaterais como ID 18 e 20). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/start.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/start.md index 00f76750f46..fe6ff36d6bc 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/start.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/start.md @@ -322,7 +322,7 @@ myArray[2]++; ### Exemplo -Conforme mencionado acima, um tipo comum de array é o array MAX_PLAYERS. MAX_PLAYERS não é uma variável, é uma definição que será explicada mais tarde, mas por enquanto aceite que é um número constante igual ao número máximo de jogadores que um servidor pode conter (por padrão é 500, mesmo se você alterar o número em seu arquivo server.cfg). O código a seguir usa variáveis ​​normais para armazenar dados de 4 jogadores e fazer algo com esses jogadores em uma função (para simplificar, suponha que MAX_PLAYERS seja 4 por enquanto): +Conforme mencionado acima, um tipo comum de array é o array MAX_PLAYERS. MAX_PLAYERS não é uma variável, é uma definição que será explicada mais tarde, mas por enquanto aceite que é um número constante igual ao número máximo de jogadores que um servidor pode conter (por padrão é 500, mesmo se você alterar o número em seu arquivo config.json). O código a seguir usa variáveis ​​normais para armazenar dados de 4 jogadores e fazer algo com esses jogadores em uma função (para simplificar, suponha que MAX_PLAYERS seja 4 por enquanto): ```c new diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/startingids.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/startingids.md index fbcfa55b7d8..f8c54d3a4d1 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/startingids.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/startingids.md @@ -1,7 +1,7 @@ --- title: Starting IDs sidebar_label: Starting IDs -description: "Tudo como objetos, jogadores ou veículos usam IDs. Alguns IDs começam com 0, outros começam com 1." +description: "Tudo como objetos, jogadores ou veículos usam IDs." --- diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/vendingmachines.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/vendingmachines.md index f8d1c9303a8..b8d21d07496 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/vendingmachines.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/vendingmachines.md @@ -1,7 +1,7 @@ --- title: Vending Machines sidebar_label: Vending Machines -description: "Lista de todos os locais das máquinas de venda automática. O jogador que as utiliza deve estar a 2 unidades de distância." +description: "Lista de todos os locais das máquinas de venda automática." --- diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md index 0c1dd008c86..02f1fc7c3fc 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md @@ -5,7 +5,7 @@ sidebar_label: Problemas Comuns do Servidor ## Servidor trava instantaneamente ao ser iniciado -Na maioria das vezes é um erro no seu arquivo server.cfg ou seu gamemode está faltando. Verifique o arquivo server_log.txt e a razão deve estar localizada no final. Se não estiver, verifique o arquivo crashinfo.txt. A melhor solução para descobrir o que está causando a falha é usar o plugin Crash detect por Zeex/0x5A656578 ([clique para o link](https://github.com/AmyrAhmady/samp-plugin-crashdetect)) que fornecerá mais informações como números de linha, nomes de funções, valores de parâmetros, etc. Se o script for compilado em modo debug (flag -d3) para fazer o compilador colocar informações extras sobre tudo isso no arquivo .amx de saída. +Na maioria das vezes é um erro no seu arquivo config.json ou seu gamemode está faltando. Verifique o arquivo log.txt e a razão deve estar localizada no final. Se não estiver, verifique o arquivo crashinfo.txt. A melhor solução para descobrir o que está causando a falha é usar o plugin Crash detect por Zeex/0x5A656578 ([clique para o link](https://github.com/AmyrAhmady/samp-plugin-crashdetect)) que fornecerá mais informações como números de linha, nomes de funções, valores de parâmetros, etc. Se o script for compilado em modo debug (flag -d3) para fazer o compilador colocar informações extras sobre tudo isso no arquivo .amx de saída. ## Servidor não está funcionando - firewall está desativado diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/ControllingServer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/ControllingServer.md index 2c1ee95e9a1..f41734d6e62 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/ControllingServer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/ControllingServer.md @@ -18,14 +18,26 @@ description: Comandos úteis para gerenciar um servidor. O mesmo que rodar um gamemode customizado, exceto: - Coloque o .amx em uma pasta chamada `filterscripts` -- Adicione o seguinte no server.cfg `filterscripts ` +- Adicione o caminho do filterscript sem a extensão `.amx` em `pawn.side_scripts` no [config.json](config.json): + +```json +{ + "pawn": { + "side_scripts": [ + "filterscripts/scriptname" + ] + } +} +``` ## Colocando senha no seu servidor -- Se você desejar, poderá adicionar uma senha para que apenas seus amigos possam entrar, adicione isso ao seu server.cfg +- Se você desejar, poderá adicionar uma senha para que apenas seus amigos possam entrar, adicione isso ao seu config.json -``` -password qualquercoisa +```json +{ + "password": "qualquercoisa" +} ``` - Isso irá fazer com que seu servidor contenha uma senha para acessar, que colocamos como 'qualquercoisa', mude-a como desejar. @@ -38,24 +50,26 @@ password qualquercoisa Você pode logar quando estiver no jogo, basta escrever `/rcon login senha`, ou quando estiver fora do jogo usando a RCON no Console Remoto. -A senha é a mesma que você colocou no server.cfg +A senha do RCON é o valor de `rcon.password` que você definiu no [config.json](config.json). ### Colocando Banimentos -##### samp.ban +##### bans.json -samp.ban é o arquivo usado para organizar banimentos, incluindo as seguintes informações sobre o mesmo: +bans.json é o arquivo usado para organizar banimentos, incluindo as seguintes informações sobre o mesmo: - IP - Data - Tempo -- Nome (Nome da pessoa ou motivo, veja [BanEx](../scripting/functions/BanEx)) -- Tipo de ban +- Nome (Nome da pessoa) +- Motivo (veja [BanEx](../scripting/functions/BanEx)) -Para adicionar um banido, basta colocar uma linha como esta: +Para adicionar um banido, basta colocar um objeto no array JSON como este: -``` -IP_AQUI [28/05/09 | 13:37:00] JOGADOR - INGAME BAN +```json +[ + {"address": "IP_AQUI", "player": "JOGADOR", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` Onde `IP_AQUI` é onde você coloca o IP que gostaria de banir. @@ -64,8 +78,10 @@ Onde `IP_AQUI` é onde você coloca o IP que gostaria de banir. A função de [Ban](../scripting/functions/Ban) pode ser usada para banir um jogador de um script. O [BanEx](../scripting/functions/BanEx) irá adicionar uma opção como esta: -``` -13.37.13.37 [28/05/09 | 13:37:00] Cheater - BANIMENTO NO JOGO +```json +[ + {"address": "13.37.13.37", "player": "Cheater", "reason": "BANIMENTO NO JOGO", "time": "2009-05-28T13:37:00+0000"} +] ``` ##### RCON Comando de Banimento @@ -100,27 +116,29 @@ banip IP Uma vez que alguém é banido, há duas maneiras de desabnir o mesmo. -- Remover do samp.ban +- Remover do bans.json - O comando `unbanip` do RCON -#### samp.ban +#### bans.json -samp.ban pode ser encontrado no diretório do seu servidor, ele contém linhas com as seguintes informações sobre cada banimento +bans.json pode ser encontrado no diretório do seu servidor, ele contém objetos com as seguintes informações sobre cada banimento - IP - Data - Tempo -- Nome (Nome do jogador ou motivo (veja [BanEx](../scripting/functions/BanEx))) -- Tipo do banimento (INGAME, IP BAN etc,) +- Nome (Nome do jogador) +- Motivo (veja [BanEx](../scripting/functions/BanEx)) Exemplos: -``` -127.8.57.32 [13/06/09 | 69:69:69] NONE - IP BAN -13.37.13.37 [28/05/09 | 13:37:00] Kyeman - INGAME BAN +```json +[ + {"address": "127.8.57.32", "player": "NONE", "reason": "IP BAN", "time": "2009-06-13T13:37:00+0000"}, + {"address": "13.37.13.37", "player": "Kyeman", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` -Para desbanir alguém, simplesmente remova a linha, então execute o comando do RCON "reloadbans" para fazer com que o servidor faça a leitura novamente do arquivo. +Para desbanir alguém, simplesmente remova o objeto, então execute o comando do RCON "reloadbans" para fazer com que o servidor faça a leitura novamente do arquivo. #### unbanip @@ -128,8 +146,10 @@ O comando de "unbanip" do RCON pode ser usado no jogo ou no console do servidor. Exemplo: -``` -13.37.13.37 [28/05/09 | 13:37:00] Kyeman - INGAME BAN +```json +[ + {"address": "13.37.13.37", "player": "Kyeman", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` ``` @@ -140,11 +160,11 @@ Exemplo: unbanip 13.37.13.37 ``` -Para desbanir alguém, simplesmente use `unbanip`, então execute o comando do RCON "reloadbans" para fazer com que o servidor faça a leitura novamente do arquivo. +Para desbanir alguém, simplesmente use `unbanip`. #### reloadbans -`samp.ban` é um arquivo que contém informações dos IP's que já foram banidos do servidor. Este arquivo é lido quando o servidor é iniciado. então caso desbane um IP/Jogador você PRECISA digitar no RCON `reloadbans` para fazer com que o servidor leia novamente o arquivo, permitindo com que os jogadores desbanidos entrem no servidor. +`bans.json` é um arquivo que contém informações dos IP's que já foram banidos do servidor. Este arquivo é lido quando o servidor é iniciado. então caso desbane um IP/Jogador editando o arquivo você PRECISA digitar no RCON `reloadbans` para fazer com que o servidor leia novamente o arquivo, permitindo com que os jogadores desbanidos entrem no servidor. ### Comandos do RCON @@ -165,9 +185,9 @@ Estas são as funções que você como admin pode usar: | `/rcon kick [ID]` | Kick o jogador de determinado ID (_exemplo: /rcon kick 2_). | | `/rcon ban [ID]` | Bane o jogador de determinado ID (_exemplo: /rcon ban 2_). | | `/rcon changemode [mode]` | Este comando irá alternar entre as gamemode's (_exemplo: /rcon changemode sftdm_). | -| `/rcon gmx` | Irá carregar a próxima gamemode no server.cfg. | -| `/rcon reloadbans` | Carrega e reliza uma nova leitura do samp.ban | -| `/rcon reloadlog` | Carrega novamente o server_log.txt. | +| `/rcon gmx` | Irá carregar a próxima gamemode no [config.json](config.json). | +| `/rcon reloadbans` | Carrega e reliza uma nova leitura do bans.json. | +| `/rcon reloadlog` | Carrega novamente o log.txt. | | `/rcon say` | Mostra uma mensagem no console dos jogadores (\_exemplo: `/rcon say olá` irá mostrar `Admin: olá`). | | `/rcon players` | Mostra os jogadores que estão no servidor (Com nome, IP e ping). | | `/rcon banip [IP]` | Bane determinado IP (_exemplo: /rcon banip 127.0.0.1_). | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/Installation.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/Installation.md index 3e7c82f3d52..a3fc8c25a93 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/Installation.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/Installation.md @@ -223,6 +223,18 @@ Abra o programa `omp-server.exe` ./omp-server ``` +## Mantendo o servidor online + +Esse programa vai reiniciar o `omp-server.exe` se o servidor open.mp travar. Tudo que você precisa fazer é salvar um arquivo de texto com a extensão `.bat` com o seguinte conteúdo: + +``` +:start +omp-server.exe +goto start +``` + +Coloque o arquivo no diretório onde o `omp-server.exe` está e inicie-o. Digite `exit` no console do servidor pra testar se o arquivo está funcionando. + ## Erros e avisos do compilador - **warning 213: tag mismatch: expected tag "?", but found none ("\_")**: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/server.cfg.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/server.cfg.md index 26883e5d945..a86d71cc6aa 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/server.cfg.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/server.cfg.md @@ -124,3 +124,7 @@ description: Arquivo de configuração do servidor. - Valores marcados como "Somente leitura" (conforme mostrado por `/rcon varlist`) não podem ser alterados durante a execução. Todos os outros valores podem ser (temporariamente) alterados passando-os para SendRconCommand. - Valores marcados como "Regra" (conforme mostrado por `/rcon varlist`) são exibidos no navegador de servidores na seção Regras. - Scripts não precisam estar nas pastas gamemodes ou filterscripts. A informação no server.cfg é um caminho e, portanto, pode usar "..". + +``` +filterscripts ../scriptfiles/first ../minimodes/second +``` diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md index 4dff80d8ab0..3e4b58136dc 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md @@ -21,8 +21,9 @@ Existem duas maneiras de criar pickups. [CreatePickup](../scripting/functions/Cr **Parâmetros:** -| model | O modelo que você gostaria de usar para o pickup. | +| Nome | Descrição | | ------------ | --------------------------------------------------------------------------------------------------- | +| model | O modelo que você gostaria de usar para o pickup. | | type | O tipo de spawn do pickup, veja mais abaixo nesta página. | | Float:X | A coordenada X para o pickup aparecer. | | Float:Y | A coordenada Y para o pickup aparecer. | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/colorfix.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/colorfix.md index c5bfa8eb32b..7ead8194590 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/colorfix.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/colorfix.md @@ -1,23 +1,23 @@ --- title: "Correção de Cores" sidebar_label: "Correção de Cores" -descripion: Um script básico para adicionar mais cores de jogadores. +description: Um script básico para adicionar mais cores de jogadores. --- Este tutorial deve ser usado com [GetPlayerColor](../scripting/functions/GetPlayerColor), se você não usar [SetPlayerColor](../scripting/functions/SetPlayerColor) no seu script quando os jogadores se conectam. ```pawn new PlayerColors[] = { - 0xFF8C13FF,0xC715FFFF,0x20B2AAFF,0xDC143CFF,0x6495EDFF,0xf0e68cFF,0x778899FF,0xFF1493FF,0xF4A460FF,0xEE82EEFF, - 0xFFD720FF,0x8b4513FF,0x4949A0FF,0x148b8bFF,0x14ff7fFF,0x556b2fFF,0x0FD9FAFF,0x10DC29FF,0x534081FF,0x0495CDFF, - 0xEF6CE8FF,0xBD34DAFF,0x247C1BFF,0x0C8E5DFF,0x635B03FF,0xCB7ED3FF,0x65ADEBFF,0x5C1ACCFF,0xF2F853FF,0x11F891FF, - 0x7B39AAFF,0x53EB10FF,0x54137DFF,0x275222FF,0xF09F5BFF,0x3D0A4FFF,0x22F767FF,0xD63034FF,0x9A6980FF,0xDFB935FF, - 0x3793FAFF,0x90239DFF,0xE9AB2FFF,0xAF2FF3FF,0x057F94FF,0xB98519FF,0x388EEAFF,0x028151FF,0xA55043FF,0x0DE018FF, - 0x93AB1CFF,0x95BAF0FF,0x369976FF,0x18F71FFF,0x4B8987FF,0x491B9EFF,0x829DC7FF,0xBCE635FF,0xCEA6DFFF,0x20D4ADFF, - 0x2D74FDFF,0x3C1C0DFF,0x12D6D4FF,0x48C000FF,0x2A51E2FF,0xE3AC12FF,0xFC42A8FF,0x2FC827FF,0x1A30BFFF,0xB740C2FF, - 0x42ACF5FF,0x2FD9DEFF,0xFAFB71FF,0x05D1CDFF,0xC471BDFF,0x94436EFF,0xC1F7ECFF,0xCE79EEFF,0xBD1EF2FF,0x93B7E4FF, - 0x3214AAFF,0x184D3BFF,0xAE4B99FF,0x7E49D7FF,0x4C436EFF,0xFA24CCFF,0xCE76BEFF,0xA04E0AFF,0x9F945CFF,0xDCDE3DFF, - 0x10C9C5FF,0x70524DFF,0x0BE472FF,0x8A2CD7FF,0x6152C2FF,0xCF72A9FF,0xE59338FF,0xEEDC2DFF,0xD8C762FF,0x3FE65CFF + 0xFF8C13FF, 0xC715FFFF, 0x20B2AAFF, 0xDC143CFF, 0x6495EDFF, 0xf0e68cFF, 0x778899FF, 0xFF1493FF, 0xF4A460FF, 0xEE82EEFF, + 0xFFD720FF, 0x8b4513FF, 0x4949A0FF, 0x148b8bFF, 0x14ff7fFF, 0x556b2fFF, 0x0FD9FAFF, 0x10DC29FF, 0x534081FF, 0x0495CDFF, + 0xEF6CE8FF, 0xBD34DAFF, 0x247C1BFF, 0x0C8E5DFF, 0x635B03FF, 0xCB7ED3FF, 0x65ADEBFF, 0x5C1ACCFF, 0xF2F853FF, 0x11F891FF, + 0x7B39AAFF, 0x53EB10FF, 0x54137DFF, 0x275222FF, 0xF09F5BFF, 0x3D0A4FFF, 0x22F767FF, 0xD63034FF, 0x9A6980FF, 0xDFB935FF, + 0x3793FAFF, 0x90239DFF, 0xE9AB2FFF, 0xAF2FF3FF, 0x057F94FF, 0xB98519FF, 0x388EEAFF, 0x028151FF, 0xA55043FF, 0x0DE018FF, + 0x93AB1CFF, 0x95BAF0FF, 0x369976FF, 0x18F71FFF, 0x4B8987FF, 0x491B9EFF, 0x829DC7FF, 0xBCE635FF, 0xCEA6DFFF, 0x20D4ADFF, + 0x2D74FDFF, 0x3C1C0DFF, 0x12D6D4FF, 0x48C000FF, 0x2A51E2FF, 0xE3AC12FF, 0xFC42A8FF, 0x2FC827FF, 0x1A30BFFF, 0xB740C2FF, + 0x42ACF5FF, 0x2FD9DEFF, 0xFAFB71FF, 0x05D1CDFF, 0xC471BDFF, 0x94436EFF, 0xC1F7ECFF, 0xCE79EEFF, 0xBD1EF2FF, 0x93B7E4FF, + 0x3214AAFF, 0x184D3BFF, 0xAE4B99FF, 0x7E49D7FF, 0x4C436EFF, 0xFA24CCFF, 0xCE76BEFF, 0xA04E0AFF, 0x9F945CFF, 0xDCDE3DFF, + 0x10C9C5FF, 0x70524DFF, 0x0BE472FF, 0x8A2CD7FF, 0x6152C2FF, 0xCF72A9FF, 0xE59338FF, 0xEEDC2DFF, 0xD8C762FF, 0x3FE65CFF }; ``` diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md index 7648c3f364d..cc353d84f38 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md @@ -2,7 +2,7 @@ title: Sistema de variáveis do servidor sidebar_label: Sistema de variáveis do servidor -description: O sistema de variáveis do servidor (abreviado, SVar) é uma nova forma de criar variáveis de servidor de maneira eficiente e dinâmica globalmente, o que significa que podem ser usadas no gamemode e filterscripts do servidor ao mesmo tempo. +description: O sistema de variáveis do servidor (abreviado, SVar) é uma nova forma de criar variáveis de servidor de maneira eficiente e dinâmica globalmente. --- O **sistema de variáveis do servidor** (abreviado, **SVar**) é uma nova forma de criar variáveis globais de servidor de maneira eficiente e dinâmica, o que significa que podem ser usadas no gamemode e filterscripts do servidor ao mesmo tempo. diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/client/ClientCommands.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/client/ClientCommands.md index 25a249a8562..4e962a6374f 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/client/ClientCommands.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/client/ClientCommands.md @@ -1,7 +1,7 @@ --- title: "Comenzile clientului" sidebar_label: "Comenzile clientului" -descripion: Lista tuturor comenzilor pentru client. +description: Lista tuturor comenzilor pentru client. --- | Comanda | Descriere | diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md index 0a85386c26a..bc00e95d2ac 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md @@ -1,7 +1,7 @@ --- title: OnDialogResponse sidebar_label: OnDialogResponse -description: Acest callback este apelat atunci când un jucător răspunde unui dialog afișat prin ShowPlayerDialog, după apăsarea unui buton, apăsarea de ENTER/ESC sau dublu-click pe un element al unei liste (dacă s-a folosit un dialog de tip listă). +description: Acest callback este apelat atunci când un jucător răspunde unui dialog afișat prin ShowPlayerDialog. tags: [] --- diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md index 2d67af07d97..948e00011a7 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md @@ -1,7 +1,7 @@ --- title: OnPlayerEnterVehicle sidebar_label: OnPlayerEnterVehicle -description: Acest callback este apelat atunci când un jucător începe să intre într-un vehicul, ceea ce înseamnă că jucătorul nu se află încă în vehicul în momentul în care este apelat. +description: Acest callback este apelat atunci când un jucător începe să intre într-un vehicul. tags: ["player", "vehicle"] --- @@ -17,6 +17,8 @@ Acest callback este apelat atunci când un jucător începe să intre într-un v ## Returnări +Acest callback nu se ocupă de returnări. + Este întotdeauna numit primul în filterscript-uri. ## Exemple diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md index 3274d45ee95..b72505d4d08 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md @@ -11,11 +11,11 @@ tags: ["player"] Acest callback este apelat atunci când un jucător solicită descărcarea unui model personalizat. -| Nume | Descriere | -| -------- | ------------------------------------------------------------------- | -| playerid | ID-ul jucătorului care solicită descărcarea modelului personalizat. | -| type | Tipul cererii (vezi mai jos). | -| crc | Suma de control CRC a fișierului model personalizat. | +| Nume | Descriere | +| -------- | ------------------------------------------------------------------------------------------------------------- | +| playerid | ID-ul jucătorului care solicită descărcarea modelului personalizat. | +| type | Tipul cererii (vezi mai jos). | +| crc | Suma de control [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) a fișierului model personalizat. | ## Returnări diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md index b98d4c12cff..3009521a614 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md @@ -9,11 +9,11 @@ tags: ["vehicle"] Acest callback este apelat atunci când un vehicul este modificat. -| Nume | Descriere | -| ----------- | --------------------------------------------------- | -| playerid | Actul de identitate al șoferului vehiculului. | -| vehicleid | ID-ul vehiculului care este modificat. | -| componentid | ID-ul componentei care a fost adăugată vehiculului. | +| Nume | Descriere | +| ----------- | ---------------------------------------------------------------------------------- | +| playerid | Actul de identitate al șoferului vehiculului. | +| vehicleid | ID-ul vehiculului care este modificat. | +| componentid | [ID-ul componentei](../resources/carcomponentid) care a fost adăugată vehiculului. | ## Returnări diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md index 948f6685fe4..bc259a94e70 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md @@ -18,6 +18,8 @@ Acest callback este apelat atunci când un jucător iese dintr-un magazin de mod ## Returnări +Returning 0 in this callback will deny the colour change. Returning 1 will allow it. + It is always called first in gamemode so returning 0 there also blocks other filterscripts from seeing it. ## Exemple diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md index c6d5d5b5948..718e5b09f63 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md @@ -9,7 +9,7 @@ tags: [] ## Descriere -Adaugă un nou model de caractere personalizat pentru descărcare. Fișierele model vor fi stocate în documentele playerului \ GTA San Andreas User Files \ SAMP \ cache sub folderul Server IP și Port într-un nume de fișier CRC. +Adaugă un nou model de caractere personalizat pentru descărcare. Fișierele model vor fi stocate în documentele playerului \ GTA San Andreas User Files \ SAMP \ cache sub folderul Server IP și Port într-un nume de fișier [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check). | Nume | Descriere | | ------- | -------------------------------------------------------------------------------------------------------------------------------------------- | diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md index 3104d2e67fa..159a5eb16db 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md @@ -51,4 +51,5 @@ public OnGameModeInit() ## Funcții conexe +- [AddSimpleModelTimed](AddSimpleModelTimed): Adaugă un nou model de obiect simplu personalizat pentru descărcare. - [OnPlayerFinishedDownloading](../callbacks/OnPlayerFinishedDownloading): Apelat când un jucător termină de descărcat modele personalizate. diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md index 6b96143739b..937bf2afaf2 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md @@ -53,4 +53,5 @@ Useartwork trebuie să fie activat mai întâi în setările serverului pentru c ## Funcții conexe +- [AddSimpleModel](AddSimpleModel): Adaugă un nou model de obiect simplu personalizat pentru descărcare. - [OnPlayerFinishedDownloading](../callbacks/OnPlayerFinishedDownloading): Apelat când un jucător termină de descărcat modele personalizate. diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/language/Initialisers.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/language/Initialisers.md index 6c7942747f5..a9e97bd2d9b 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/language/Initialisers.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/language/Initialisers.md @@ -123,7 +123,7 @@ enum E_EXAMPLE (*= 2) } ``` -În aceasta toate valorile sunt 0. De ce? Ei bine, prima valoare implicită este 0, apoi 0 _ 2 = 0, apoi 0 _ 2 = 0 și 0 \ \* 2 = 0. Deci, cum putem corecta acest lucru? Pentru aceasta sunt utilizate valorile personalizate: +În aceasta toate valorile sunt 0. De ce? Ei bine, prima valoare implicită este 0, apoi 0 \* 2 = 0, apoi 0 \* 2 = 0 și 0 \* 2 = 0. Deci, cum putem corecta acest lucru? Pentru aceasta sunt utilizate valorile personalizate: ```c enum E_EXAMPLE (*= 2) @@ -417,7 +417,7 @@ Nota ca forward include si tagul pentru returnare. O funcție nativă este una definită în mașina virtuală (adică lucrul care rulează scriptul), nu în scriptul în sine. Puteți defini funcții native numai dacă sunt codificate în SA: MP sau într-un plugin, totuși puteți crea nativi falși. Deoarece funcțiile native din fișierele .inc sunt detectate de pawno și listate în caseta din partea dreaptă a pawno, poate fi util să folosiți native pentru a obține propriile funcții personalizate listate acolo. O declarație nativă normală ar putea arăta astfel: ```c -native printf(const format[], \{Float, _}:...); +native printf(const format[], {Float, _}:...); ``` Dacă doriți ca propriile funcții să apară fără a fi declarate native, puteți face: @@ -580,6 +580,7 @@ main() BigEndian:a = 7, BigEndian:b = 199; printf("%d", _:(a + b)); +} ``` Va da pur și simplu 42, nimic de-a face cu adăugarea. diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/language/Style.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/language/Style.md index 4c79fe3c8a8..b3525cb1634 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/language/Style.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/language/Style.md @@ -1,7 +1,7 @@ --- title: "Ghid de aranjare Pawn" sidebar_label: "Ghid de aranjare Pawn" -description: A short guide on the generally accepted naming conventions and other aspects of Pawn source code to aid easier communication of intent and streamline debugging and sharing of code. +description: A short guide on the generally accepted naming conventions and other aspects of Pawn source code. --- Acest document este un scurt ghid privind convențiile de denumire general acceptate și alte aspecte ale codului sursă Pawn pentru a facilita comunicarea intenției și a simplifica depanarea și partajarea codului. diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/resources/colorslist.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/resources/colorslist.md index 17932538be5..fd2fa4b9074 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/resources/colorslist.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/resources/colorslist.md @@ -1,7 +1,7 @@ --- title: Lista de culori sidebar_label: Lista de culori -description: Culorile sunt pretutindeni în SA-MP - vehicule, nume de jucători și clipuri, extrase de text, gametext, chat, texte 3D și dialoguri (ca încorporare a culorilor)! Mai jos puteți găsi informații despre aceste lucruri diferite. +description: Culorile sunt pretutindeni în SA-MP - vehicule, nume de jucători și clipuri, extrase de text, gametext, chat, texte 3D și dialoguri (ca încorporare a culorilor)! --- ## Chat text and player color diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md index 39d3cf5ab8d..662dc11dfc6 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md @@ -5,7 +5,7 @@ sidebar_label: Probleme comune ## Serverul se blochează instantaneu la pornire -Cel mai frecvent este o eroare în fișierul server.cfg sau modul dvs. de joc lipsește. Verificați fișierul server_log.txt și motivul ar trebui să fie situat în partea de jos. Dacă nu, verificați fișierul crashinfo.txt. Soluția mai bună pentru a afla ce cauzează prăbușirea este folosirea pluginului Crash detect de Zeex/0x5A656578 [click pentru link](https://github.com/AmyrAhmady/samp-plugin-crashdetect) care va oferi mai multe informații, cum ar fi numerele de linie, numele funcțiilor, valorile parametrilor etc. Dacă scriptul este compilat în modul de depanare (-d3 flag) pentru a face compilatorul pune informații suplimentare despre toate aceste lucruri în ieșirea .amx. +Cel mai frecvent este o eroare în fișierul config.json sau modul dvs. de joc lipsește. Verificați fișierul log.txt și motivul ar trebui să fie situat în partea de jos. Dacă nu, verificați fișierul crashinfo.txt. Soluția mai bună pentru a afla ce cauzează prăbușirea este folosirea pluginului Crash detect de Zeex/0x5A656578 [click pentru link](https://github.com/AmyrAhmady/samp-plugin-crashdetect) care va oferi mai multe informații, cum ar fi numerele de linie, numele funcțiilor, valorile parametrilor etc. Dacă scriptul este compilat în modul de depanare (-d3 flag) pentru a face compilatorul pune informații suplimentare despre toate aceste lucruri în ieșirea .amx. ## Serverul nu funcționează - firewall-ul este dezactivat diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/ControllingServer.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/ControllingServer.md index 00648874f4f..81d6c6636bc 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/ControllingServer.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/ControllingServer.md @@ -17,19 +17,31 @@ descriere: Comenzi utile pentru controlarea unui server. La fel ca și folosirea unui gamemode custom, doar că: - Puneți fișierul .amx în folderul `filterscripts` -- Adăugați următorul lucru în server.cfg: `filterscripts ` +- Adăugați calea filterscriptului fără extensia `.amx` în `pawn.side_scripts` din [config.json](config.json): + +```json +{ + "pawn": { + "side_scripts": [ + "filterscripts/scriptname" + ] + } +} +``` ## Cum să puneți o parolă la server? -- Dacă vreți să folosiți o parolă ca să vă poată intra doar prietenii pe server, adăugați asta în [server.cfg](server.cfg): +- Dacă vreți să folosiți o parolă ca să vă poată intra doar prietenii pe server, adăugați asta în [config.json](config.json): -``` -password orice +```json +{ + "password": "orice" +} ``` - Astfel, parola serverului o sa devină 'orice', dar o puteți schimba cu orice doriți. - De asemenea, puteți să schimbați parola direct din joc cu `/rcon password orice` -- Puteți să scoateți parola dacă folosiți `/rcon password 0`, sau dacă restartați serverul. (parola o să rămână dacă ați scris-o în server.cfg, va trebui sa o ștergeți și de acolo) +- Puteți să scoateți parola dacă folosiți `/rcon password 0`, sau dacă restartați serverul. (parola o să rămână dacă ați scris-o în config.json, va trebui sa o ștergeți și de acolo) ## Despre RCON @@ -37,24 +49,26 @@ password orice Puteți să vă logați dacă tastați `/rcon login parola` în joc sau dacă folosiți modul RCON în [Remote Console](RemoteConsole). -Parola va fi aceeași ca și în [server.cfg](server.cfg). +Parola RCON este valoarea `rcon.password` setată în [config.json](config.json). ### Cum să adăugați interdicții -##### samp.ban +##### bans.json -samp.ban este fișierul în care se scriu banurile, dar și alte informații despre acestea, printre care: +bans.json este fișierul în care se scriu banurile, dar și alte informații despre acestea, printre care: - IP-ul jucătorului - Data banului - Ora banului -- Numele (Numele jucătorului sau un motiv, consultați [BanEx](../scripting/functions/BanEx)) -- Tipul banului +- Numele (Numele jucătorului) +- Motiv (consultați [BanEx](../scripting/functions/BanEx)) -Pentru a adăuga un ban, pur și simplu adăugați o linie ca aceasta în samp.ban: +Pentru a adăuga un ban, pur și simplu adăugați un obiect ca acesta în array-ul JSON din bans.json: -``` -IP_AICI [28/05/09 | 13:37:00] PLAYER - MOTIV BAN +```json +[ + {"address": "IP_AICI", "player": "PLAYER", "reason": "MOTIV BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` Înlocuiți `IP_AICI` cu IP-ul pe care doriți să îl banați. @@ -63,8 +77,10 @@ IP_AICI [28/05/09 | 13:37:00] PLAYER - MOTIV BAN Funcția [Ban](../scripting/functions/Ban) poate fi folosită ca să banați un jucător din script. Funcția [BanEx](../scripting/functions/BanEx) este la fel, doar că puteți adăuga și un motiv: -``` -13.37.13.37 [28/05/09 | 13:37:00] Cheater - INGAME BAN +```json +[ + {"address": "13.37.13.37", "player": "Cheater", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` ##### Comanda RCON pentru ban @@ -99,27 +115,29 @@ banip IP Din moment ce cineva este banat, există două moduri în care puteți să-i dați unban. -- Eliminați banul din samp.ban +- Eliminați banul din bans.json - Folosiți comanda RCON `unbanip` -#### samp.ban +#### bans.json -samp.ban poate fi găsit în fișierele serverului dumneavoastră, acesta conține următoarele informații pentru fiecare ban: +bans.json poate fi găsit în fișierele serverului dumneavoastră, acesta conține următoarele informații pentru fiecare ban: - IP - Dată - Oră -- Nume (Numele jucătorului sau un motiv, consultați [BanEx](../scripting/functions/BanEx)) -- Tipul banului (INGAME, IP BAN etc.) +- Nume (Numele jucătorului) +- Motiv (consultați [BanEx](../scripting/functions/BanEx)) Exemple: -``` -127.8.57.32 [13/06/09 | 69:69:69] NONE - IP BAN -13.37.13.37 [28/05/09 | 13:37:00] Kyeman - INGAME BAN +```json +[ + {"address": "127.8.57.32", "player": "NONE", "reason": "IP BAN", "time": "2009-06-13T13:37:00+0000"}, + {"address": "13.37.13.37", "player": "Kyeman", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` -Ca să-i debanați, pur și simplu ștergeți linia cu pricina, apoi folosiți comanda RCON reloadbans. +Ca să-i debanați, pur și simplu ștergeți obiectul cu pricina, apoi folosiți comanda RCON reloadbans. #### unbanip @@ -127,8 +145,10 @@ Comanda RCON unbanip se poate folosi din joc sau din consola serverului. Pentru Exemplu: -``` -13.37.13.37 [28/05/09 | 13:37:00] Kyeman - INGAME BAN +```json +[ + {"address": "13.37.13.37", "player": "Kyeman", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` ``` @@ -139,11 +159,9 @@ Exemplu: unbanip 13.37.13.37 ``` -După ce i-ați debanat, folosiși comanda RCON reloadbans pentru a reîncărca fișierul. - #### reloadbans -`samp.ban` este un fișier care conține informații despre IP-urile care sunt banate pe server. Acest fișier este citit atunci când serverul pornește, deci dacă debanați o persoană, trebuie neapărat să folosiți această comandă pentru a face serverul să citească `samp.ban` din nou. +`bans.json` este un fișier care conține informații despre IP-urile care sunt banate pe server. Acest fișier este citit atunci când serverul pornește, deci dacă debanați o persoană editând fișierul, trebuie neapărat să folosiți această comandă pentru a face serverul să citească `bans.json` din nou. ### Comenzi RCON @@ -151,39 +169,39 @@ Puteți folosi comanda cmdlist (sau varlist pentru variabile) în joc pentru a v Acestea sunt comenzile pe care le puteți folosi ca admin: -| Comandă | Descriere | -| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `/rcon cmdlist` | Afișează o listă cu toate comenzile. | -| `/rcon varlist` | Afișează o listă cu toate variabilele. | -| `/rcon exit` | Închide serverul. | -| `/rcon echo [text]` | Afișează `[text]` în consola serverului. | -| `/rcon hostname [nume]` | Schimbă numele serverului (_exemplu: /rcon hostname serverul meu_). | -| `/rcon gamemodetext [nume]` | Schimbă textul gamemode-ului (_exemplu: /rcon gamemodetext gamemode-ul meu_). | -| `/rcon mapname [nume]` | Schimbă numele hărții (_exemplu: /rcon mapname San Andreas_). | -| `/rcon exec [filename]` | Execută fișierul care conține server cfg (_exemplu: /rcon exec blah.cfg_). | -| `/rcon kick [ID]` | Dă kick jucătorului cu ID-ul respectiv (_exemplu: /rcon kick 2_). | -| `/rcon ban [ID]` | Dă ban jucătorului cu ID-ul respectiv (_exemplu: /rcon ban 2_). | -| `/rcon changemode [mod]` | Această comandă o să schimbe gamemode-ul curent cu cel pe care l-ați scris în `[mod]` (_exemplu: dacă vreți să schimbați cu sftdm: /rcon changemode sftdm_). | -| `/rcon gmx` | Această comandă va încărca următorul gamemode din [server.cfg](server.cfg). | -| `/rcon reloadbans` | Va reîncărca fișierul samp.ban unde sunt scrise toate adresele de IP banate. Această comandă ar trebui folosită după ce debanați o adresă IP. | -| `/rcon reloadlog` | Reîncarcă server_log.txt. Nu are efecte considerabile pe absolut nimic. | -| `/rcon say` | Trimite un mesaj jucătorilor. (exemplu: `/rcon say salut` va afișa `Admin: salut`). | -| `/rcon players` | Afișează jucătorii de pe server (cu tot cu nume, IP & ping). | -| `/rcon banip [IP]` | Banează IP-ul respectiv (_exemplu: /rcon banip 127.0.0.1_). | -| `/rcon unbanip [IP]` | Debanează IP-ul respectiv (_exemplu: /rcon unbanip 127.0.0.1_). | -| `/rcon gravity` | Schimbă gravitația (_exemplu: /rcon gravity 0.008_). | -| `/rcon weather [ID]` | Schimbă vremea (_exemplu: /rcon weather 1_). | -| `/rcon loadfs` | Încarcă filterscript-ul pe care l-ați scris (_exemplu: /rcon loadfs adminfs_). | -| `/rcon weburl [URL server]` | Schimbă URL-ul serverului în masterlists/SA-MP client. | -| `/rcon unloadfs` | Dezactivează filterscript-ul respectiv (_exemplu: /rcon unloadfs adminfs_). | -| `/rcon reloadfs` | Reîncarcă filterscriptul respectiv (_examplu: /rcon reloadfs adminfs_). | -| `/rcon rcon\_password [parolă]` | Schimbă parola RCON. | -| `/rcon password [parolă]` | Setează/resetează parola serverului. | -| `/rcon messageslimit [număr]` | Schimbă numărul de mesaje pe care un jucător le poate să le trimită. (implicit 500) | -| `/rcon ackslimit [număr]` | Schimbă limita de acks (implicit 3000) | -| `/rcon messageholelimit [număr]` | Schimbă limita de message holes (implicit 3000) | -| `/rcon playertimeout [limită m/s]` | Schimba timpul în milisecunde în care un player este considerat AFK, după ce nu mai trimite semnale către server. (implicit 1000) | -| `/rcon language [limbă]` | Schimbă limba serverului (_exemplu: /rcon language English_). Se afișează și în browser. | +| Comandă | Descriere | +| ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `/rcon cmdlist` | Afișează o listă cu toate comenzile. | +| `/rcon varlist` | Afișează o listă cu toate variabilele. | +| `/rcon exit` | Închide serverul. | +| `/rcon echo [text]` | Afișează `[text]` în consola serverului. | +| `/rcon hostname [nume]` | Schimbă numele serverului (_exemplu: /rcon hostname serverul meu_). | +| `/rcon gamemodetext [nume]` | Schimbă textul gamemode-ului (_exemplu: /rcon gamemodetext gamemode-ul meu_). | +| `/rcon mapname [nume]` | Schimbă numele hărții (_exemplu: /rcon mapname San Andreas_). | +| `/rcon exec [filename]` | Execută fișierul care conține server cfg (_exemplu: /rcon exec blah.cfg_). | +| `/rcon kick [ID]` | Dă kick jucătorului cu ID-ul respectiv (_exemplu: /rcon kick 2_). | +| `/rcon ban [ID]` | Dă ban jucătorului cu ID-ul respectiv (_exemplu: /rcon ban 2_). | +| `/rcon changemode [mod]` | Această comandă o să schimbe gamemode-ul curent cu cel pe care l-ați scris în `[mod]` (_exemplu: dacă vreți să schimbați cu sftdm: /rcon changemode sftdm_). | +| `/rcon gmx` | Această comandă va încărca următorul gamemode din [config.json](config.json). | +| `/rcon reloadbans` | Va reîncărca fișierul bans.json unde sunt scrise toate adresele de IP banate. Această comandă ar trebui folosită după ce debanați o adresă IP editând fișierul. | +| `/rcon reloadlog` | Reîncarcă log.txt. Nu are efecte considerabile pe absolut nimic. | +| `/rcon say` | Trimite un mesaj jucătorilor. (exemplu: `/rcon say salut` va afișa `Admin: salut`). | +| `/rcon players` | Afișează jucătorii de pe server (cu tot cu nume, IP & ping). | +| `/rcon banip [IP]` | Banează IP-ul respectiv (_exemplu: /rcon banip 127.0.0.1_). | +| `/rcon unbanip [IP]` | Debanează IP-ul respectiv (_exemplu: /rcon unbanip 127.0.0.1_). | +| `/rcon gravity` | Schimbă gravitația (_exemplu: /rcon gravity 0.008_). | +| `/rcon weather [ID]` | Schimbă vremea (_exemplu: /rcon weather 1_). | +| `/rcon loadfs` | Încarcă filterscript-ul pe care l-ați scris (_exemplu: /rcon loadfs adminfs_). | +| `/rcon weburl [URL server]` | Schimbă URL-ul serverului în masterlists/SA-MP client. | +| `/rcon unloadfs` | Dezactivează filterscript-ul respectiv (_exemplu: /rcon unloadfs adminfs_). | +| `/rcon reloadfs` | Reîncarcă filterscriptul respectiv (_examplu: /rcon reloadfs adminfs_). | +| `/rcon rcon\_password [parolă]` | Schimbă parola RCON. | +| `/rcon password [parolă]` | Setează/resetează parola serverului. | +| `/rcon messageslimit [număr]` | Schimbă numărul de mesaje pe care un jucător le poate să le trimită. (implicit 500) | +| `/rcon ackslimit [număr]` | Schimbă limita de acks (implicit 3000) | +| `/rcon messageholelimit [număr]` | Schimbă limita de message holes (implicit 3000) | +| `/rcon playertimeout [limită m/s]` | Schimba timpul în milisecunde în care un player este considerat AFK, după ce nu mai trimite semnale către server. (implicit 1000) | +| `/rcon language [limbă]` | Schimbă limba serverului (_exemplu: /rcon language English_). Se afișează și în browser. | Aceste limite au fost făcute pentru a evita pe cât posibil atacurile asupra serverelor de SA-MP. Deci, pur și simplu setați-le în concordanță cu serverul dumneavoastră. [Citiți mai mult aici](https://sampforum.blast.hk/showthread.php?tid=506214&pid=2990193#pid2990193). diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/RemoteConsole.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/RemoteConsole.md index c9c156896ad..dee95b6911f 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/RemoteConsole.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/RemoteConsole.md @@ -1,7 +1,7 @@ --- title: "Consolă la distanță (RCON)" sidebar_label: "Consolă la distanță (RCON)" -descripion: Administrare server de la distanță. +description: Administrare server de la distanță. --- Remote Console este un prompt de comandă în care puteți utiliza comenzile RCON fără a fi nevoie să fiți în joc și pe server. De la 0.3b, consola de la distanță a fost eliminată din browserul serverului. De acum înainte va trebui să utilizați un alt mod de a accesa Remote RCON, așa cum se explică mai jos. diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/server.cfg.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/server.cfg.md index 9877ffd8638..3e8e87e4e05 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/server.cfg.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/server.cfg.md @@ -124,3 +124,7 @@ description: Server configuration file. - Values marked as "Read-only" (as shown by `/rcon varlist`) can not be changed during runtime. All other values can be (temporarily) changed by passing them to SendRconCommand. - Values marked as "Rule" (as shown by `/rcon varlist`) are displayed in the server browser in the Rules section. - Scripts do not have to be in the gamemodes or filterscripts folders. The information in server.cfg is a path, and can therefore use "..". + +``` +filterscripts ../scriptfiles/first ../minimodes/second +``` diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md index a896e5f36ab..5bac245c22f 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md @@ -21,8 +21,9 @@ Există două moduri de a crea pickup-uri. [CreatePickup](../scripting/functions ** Parametri: ** -| model | Modelul pe care doriți să îl utilizați pentru preluare. | +| Nume | Descriere | | ------------ | ------------------------------------------------------------------------------------------------------------- | +| model | Modelul pe care doriți să îl utilizați pentru preluare. | | type | Tipul de reproducere a spawnului, consultați mai jos această pagină. | | Float:X | Coordonata X pentru afișarea preluării. | | Float:Y | Coordonata Y pentru afișarea preluării. | diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/colorfix.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/colorfix.md index eb51c833e02..bd85a8a2b8c 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/colorfix.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/colorfix.md @@ -7,16 +7,16 @@ Acest tutorial este facut sa fie folosit cu [GetPlayerColor](../scripting/functi ```c new PlayerColors[] = { - 0xFF8C13FF,0xC715FFFF,0x20B2AAFF,0xDC143CFF,0x6495EDFF,0xf0e68cFF,0x778899FF,0xFF1493FF,0xF4A460FF,0xEE82EEFF, - 0xFFD720FF,0x8b4513FF,0x4949A0FF,0x148b8bFF,0x14ff7fFF,0x556b2fFF,0x0FD9FAFF,0x10DC29FF,0x534081FF,0x0495CDFF, - 0xEF6CE8FF,0xBD34DAFF,0x247C1BFF,0x0C8E5DFF,0x635B03FF,0xCB7ED3FF,0x65ADEBFF,0x5C1ACCFF,0xF2F853FF,0x11F891FF, - 0x7B39AAFF,0x53EB10FF,0x54137DFF,0x275222FF,0xF09F5BFF,0x3D0A4FFF,0x22F767FF,0xD63034FF,0x9A6980FF,0xDFB935FF, - 0x3793FAFF,0x90239DFF,0xE9AB2FFF,0xAF2FF3FF,0x057F94FF,0xB98519FF,0x388EEAFF,0x028151FF,0xA55043FF,0x0DE018FF, - 0x93AB1CFF,0x95BAF0FF,0x369976FF,0x18F71FFF,0x4B8987FF,0x491B9EFF,0x829DC7FF,0xBCE635FF,0xCEA6DFFF,0x20D4ADFF, - 0x2D74FDFF,0x3C1C0DFF,0x12D6D4FF,0x48C000FF,0x2A51E2FF,0xE3AC12FF,0xFC42A8FF,0x2FC827FF,0x1A30BFFF,0xB740C2FF, - 0x42ACF5FF,0x2FD9DEFF,0xFAFB71FF,0x05D1CDFF,0xC471BDFF,0x94436EFF,0xC1F7ECFF,0xCE79EEFF,0xBD1EF2FF,0x93B7E4FF, - 0x3214AAFF,0x184D3BFF,0xAE4B99FF,0x7E49D7FF,0x4C436EFF,0xFA24CCFF,0xCE76BEFF,0xA04E0AFF,0x9F945CFF,0xDCDE3DFF, - 0x10C9C5FF,0x70524DFF,0x0BE472FF,0x8A2CD7FF,0x6152C2FF,0xCF72A9FF,0xE59338FF,0xEEDC2DFF,0xD8C762FF,0x3FE65CFF + 0xFF8C13FF, 0xC715FFFF, 0x20B2AAFF, 0xDC143CFF, 0x6495EDFF, 0xf0e68cFF, 0x778899FF, 0xFF1493FF, 0xF4A460FF, 0xEE82EEFF, + 0xFFD720FF, 0x8b4513FF, 0x4949A0FF, 0x148b8bFF, 0x14ff7fFF, 0x556b2fFF, 0x0FD9FAFF, 0x10DC29FF, 0x534081FF, 0x0495CDFF, + 0xEF6CE8FF, 0xBD34DAFF, 0x247C1BFF, 0x0C8E5DFF, 0x635B03FF, 0xCB7ED3FF, 0x65ADEBFF, 0x5C1ACCFF, 0xF2F853FF, 0x11F891FF, + 0x7B39AAFF, 0x53EB10FF, 0x54137DFF, 0x275222FF, 0xF09F5BFF, 0x3D0A4FFF, 0x22F767FF, 0xD63034FF, 0x9A6980FF, 0xDFB935FF, + 0x3793FAFF, 0x90239DFF, 0xE9AB2FFF, 0xAF2FF3FF, 0x057F94FF, 0xB98519FF, 0x388EEAFF, 0x028151FF, 0xA55043FF, 0x0DE018FF, + 0x93AB1CFF, 0x95BAF0FF, 0x369976FF, 0x18F71FFF, 0x4B8987FF, 0x491B9EFF, 0x829DC7FF, 0xBCE635FF, 0xCEA6DFFF, 0x20D4ADFF, + 0x2D74FDFF, 0x3C1C0DFF, 0x12D6D4FF, 0x48C000FF, 0x2A51E2FF, 0xE3AC12FF, 0xFC42A8FF, 0x2FC827FF, 0x1A30BFFF, 0xB740C2FF, + 0x42ACF5FF, 0x2FD9DEFF, 0xFAFB71FF, 0x05D1CDFF, 0xC471BDFF, 0x94436EFF, 0xC1F7ECFF, 0xCE79EEFF, 0xBD1EF2FF, 0x93B7E4FF, + 0x3214AAFF, 0x184D3BFF, 0xAE4B99FF, 0x7E49D7FF, 0x4C436EFF, 0xFA24CCFF, 0xCE76BEFF, 0xA04E0AFF, 0x9F945CFF, 0xDCDE3DFF, + 0x10C9C5FF, 0x70524DFF, 0x0BE472FF, 0x8A2CD7FF, 0x6152C2FF, 0xCF72A9FF, 0xE59338FF, 0xEEDC2DFF, 0xD8C762FF, 0x3FE65CFF }; ``` diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md index 666ac64a5fd..091e9f7aa07 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md @@ -1,7 +1,7 @@ --- title: Sistem de variabile pe jucător sidebar_label: Sistem de variabile pe jucător -description: Sistemul de variabile per jucător (pe scurt, PVar) este un nou mod de a crea variabile de jucător într-o metodă eficientă creată dinamic la nivel global, ceea ce înseamnă că pot fi folosite în modul de joc al serverului și în scripturile filtrelor în același timp. +description: Sistemul de variabile per jucător (pe scurt, PVar) este un nou mod de a crea variabile de jucător într-o metodă eficientă creată dinamic la nivel global. --- Sistemul de variabile per jucător (pe scurt, PVar) este un nou mod de a crea variabile de jucător într-o metodă eficientă creată dinamic la nivel global, ceea ce înseamnă că pot fi folosite în modul de joc al serverului și în scripturile filtrelor în același timp. diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md index 7d273c57968..039ab5025bf 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md @@ -2,7 +2,7 @@ title: System de variabile pe server sidebar_label: System de variabile pe server -description: Sistemul de variabile de server (scurtat, SVar) este un nou mod de a crea variabile de server într-o metodă eficientă creată dinamic la nivel global, ceea ce înseamnă că pot fi utilizate în mod de joc și filtru scripturi ale serverului în același timp. +description: Sistemul de variabile de server (scurtat, SVar) este un nou mod de a crea variabile de server într-o metodă eficientă creată dinamic la nivel global. --- **Sistemul de variabile de server** (pe scurt, **SVar**) este un nou mod de a crea variabile de server globale eficiente și dinamice, ceea ce înseamnă că pot fi utilizate în modul de joc al serverului și în scripturile filtrelor în același timp. diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/client/ClientCommands.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/client/ClientCommands.md index 19cc1915faa..7ad350acf3a 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/client/ClientCommands.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/client/ClientCommands.md @@ -1,7 +1,7 @@ --- title: "Клиентские комманды" sidebar_label: "Клиентские комманды" -descripion: Список всех клиентских команд. +description: Список всех клиентских команд. --- | Команда | Описание | diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md index 32650f0fac1..896aa18bd63 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md @@ -163,7 +163,7 @@ public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) :::tip -Это нормально переключаться между диалогами, если у вас их много. +Разумно использовать switch для поиска нужного диалога, если вы имеете их много. ::: @@ -175,4 +175,6 @@ public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) ## Функции +Следующие функции могут быть полезны, т.к. они так или иначе связаны с текущей функцией. + - [ShowPlayerDialog](../functions/ShowPlayerDialog): Показать диалог игроку. diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md index 4cac2d6414e..eabb20184f2 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md @@ -9,7 +9,7 @@ tags: [] ## Описание -Функция добавляет новую стороннюю модель (скин) игрока для скачивания. Файл модели будет помещен в папку на компьютер игрока Documents\GTA San Andreas User Files\SAMP\cache под названием IP и Порта сервера в виде CRC формы. +Функция добавляет новую стороннюю модель (скин) игрока для скачивания. Файл модели будет помещен в папку на компьютер игрока Documents\GTA San Andreas User Files\SAMP\cache под названием IP и Порта сервера в виде [CRC формы](https://en.wikipedia.org/wiki/Cyclic_redundancy_check). | Параметр | Описание | | -------- | ------------------------------------------------------------------------------------------------------------ | diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md index 8a243b95938..a1466018874 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md @@ -49,4 +49,5 @@ public OnGameModeInit() ## Связанные функции +- [AddSimpleModelTimed](AddSimpleModelTimed): Добавляет сторонний объект для скачивания. - [OnPlayerFinishedDownloading](../callbacks/OnPlayerFinishedDownloading): Вызывается когда игрок закончил скачку сторонних файлов. diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md index 14ad0cfd31a..abe258aec73 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md @@ -5,7 +5,7 @@ sidebar_label: Частые Проблемы ## Сервер мгновенно выключается при запуске -Чаще всего это вызвано ошибкой в server.cfg или .amx файл игрового режим отсутствует. Проверьте файл server_log.txt, причина должна быть указана внизу. Если нет, то проверьте файл crashinfo.txt. Лучшим решением для нахождения причины сбоя, будет использование плагина Crash Detect от Zeex/0x5A656578 ([ссылка на репозиторий](https://github.com/AmyrAhmady/samp-plugin-crashdetect)), который даёт намного больше такой отладочной информации, как номера строк, имена функций, значения передаваемых параметров и т.д. Если скрипт скомпилирован в режиме отладки (флаг -d3), то вы увидите больше информации о скрипте в окне вывода при компиляции. +Чаще всего это вызвано ошибкой в config.json или .amx файл игрового режим отсутствует. Проверьте файл log.txt, причина должна быть указана внизу. Если нет, то проверьте файл crashinfo.txt. Лучшим решением для нахождения причины сбоя, будет использование плагина Crash Detect от Zeex/0x5A656578 ([ссылка на репозиторий](https://github.com/AmyrAhmady/samp-plugin-crashdetect)), который даёт намного больше такой отладочной информации, как номера строк, имена функций, значения передаваемых параметров и т.д. Если скрипт скомпилирован в режиме отладки (флаг -d3), то вы увидите больше информации о скрипте в окне вывода при компиляции. ## Сервер не работает - брандмауэр выключен diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/ControllingServer.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/ControllingServer.md index 07b8daa87f3..34d70b7b7b4 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/ControllingServer.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/ControllingServer.md @@ -18,18 +18,30 @@ description: Полезные команды для управления сер Шаги точно такие же, как и с модом, но если отличия: - Поместите файл с расширением .amx в папку `filterscripts` -- Добавьте скрипт в server.cfg: `filterscripts <названиескрипта>` +- Добавьте путь к фильтрскрипту без расширения `.amx` в `pawn.side_scripts` в [config.json](config.json): + +```json +{ + "pawn": { + "side_scripts": [ + "filterscripts/scriptname" + ] + } +} +``` ## Установка пароля -- Если вы хотите установить на сервер пароль, чтобы войти могли только доверенные люди, добавьте следующую строку в [server.cfg](server.cfg): +- Если вы хотите установить на сервер пароль, чтобы войти могли только доверенные люди, добавьте следующую строку в [config.json](config.json): -``` -password парольдлявхода +```json +{ + "password": "whatever" +} ``` -- Это сделает ваш сервер защищённым с помощью пароль, где 'парольдлявхода' будет паролем, необходимым, для входа на сервер, всё логично. Вы можете изменить пароль на любой, какой вздумается. -- Пароль так же можно изменить через RCON прямо во время работы сервера с помощью команды `/rcon password парольдлявхода` или `password парольдлявхода`, используя консоль сервера или удалённую консоль. +- Это сделает ваш сервер защищённым с помощью пароль, где 'whatever' будет паролем, необходимым, для входа на сервер, всё логично. Вы можете изменить пароль на любой, какой вздумается. +- Пароль так же можно изменить через RCON прямо во время работы сервера с помощью команды `/rcon password whatever` или `password whatever`, используя консоль сервера или удалённую консоль. - Убрать вход по паролю можно, установив `0` в качестве пароля любым из вышеуказанных способов. ## Использование RCON @@ -38,24 +50,26 @@ password парольдлявхода Вы можете авторизоваться, как RCON администратор, при помощи команды `/rcon login password` в игре, или используя [удалённую консоль (rcon)](RemoteConsole). -Пароль будет точно таким же, как и тот, что указан в [server.cfg](server.cfg) +Для авторизации в RCON используйте значение `rcon.password` из [config.json](config.json). ### Блокировка пользователей -##### samp.ban +##### bans.json -samp.ban это файл, располагающейся в папку с сервером и содержащий в себе список блокировок, он содержит следующую информацию: +bans.json это файл, располагающейся в папку с сервером и содержащий в себе список блокировок, он содержит следующую информацию: - IP - Дата блокировки - Время блокировки -- Имя игрока (Имя игрока или причина блокировки, см. [BanEx](../scripting/functions/BanEx)) -- Тип блокировки +- Имя игрока +- Причина блокировки (см. [BanEx](../scripting/functions/BanEx)) -Чтобы заблокировать пользователя, добавьте строку по примеру: +Чтобы заблокировать пользователя, добавьте объект в JSON-массив по примеру: -``` -IP_ПОЛЬЗОВАТЕЛЯ [28/05/09 | 13:37:00] НИК - ПРИЧИНА БЛОКИРОВКИ +```json +[ + {"address": "IP_ПОЛЬЗОВАТЕЛЯ", "player": "НИК", "reason": "ПРИЧИНА БЛОКИРОВКИ", "time": "2009-05-28T13:37:00+0000"} +] ``` Где `IP_ПОЛЬЗОВАТЕЛЯ` это IP адрес, который вы хотите заблокировать. @@ -64,8 +78,10 @@ IP_ПОЛЬЗОВАТЕЛЯ [28/05/09 | 13:37:00] НИК - ПРИЧИНА БЛО Функция [Ban](../scripting/functions/Ban) используется для аналогичного метода блокировки, но из самого скрипта. Функция [BanEx](../scripting/functions/BanEx) добавляет к параметрам причину блокировки: -``` -13.37.13.37 [28/05/09 | 13:37:00] Читер - INGAME BAN +```json +[ + {"address": "13.37.13.37", "player": "Читер", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` ##### Блокировка через RCON @@ -100,27 +116,29 @@ banip IP Есть 2 способа разблокировать заблокированного пользователя. -- Удалить соответствующую строку из samp.ban +- Удалить соответствующий объект из bans.json - Использовать RCON команду `unbanip` -#### samp.ban +#### bans.json -samp.ban это файл, располагающейся в папку с сервером и содержащий в себе список блокировок, он содержит следующую информацию: +bans.json это файл, располагающейся в папку с сервером и содержащий в себе список блокировок, он содержит следующую информацию: - IP - Дата блокировки - Время блокировки -- Имя игрока (Имя игрока или причина блокировки, см. [BanEx](../scripting/functions/BanEx)) -- Тип блокировки +- Имя игрока +- Причина блокировки (см. [BanEx](../scripting/functions/BanEx)) Например: -``` -127.8.57.32 [13/06/09 | 69:69:69] NONE - IP BAN -13.37.13.37 [28/05/09 | 13:37:00] Kalcor - INGAME BAN +```json +[ + {"address": "127.8.57.32", "player": "NONE", "reason": "IP BAN", "time": "2009-06-13T13:37:00+0000"}, + {"address": "13.37.13.37", "player": "Kalcor", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` -Чтобы разблокировать данных пользователей, удалите нужные строки из файла и используйте RCON команду `reloadbans`, чтобы обновить список блокировок, не перезапуская сервер. +Чтобы разблокировать данных пользователей, удалите нужные объекты из файла и используйте RCON команду `reloadbans`, чтобы обновить список блокировок, не перезапуская сервер. #### unbanip @@ -128,8 +146,10 @@ RCON команда `unbanip` используется для разблокир Пример: -``` -13.37.13.37 [28/05/09 | 13:37:00] Kalcon - INGAME BAN +```json +[ + {"address": "13.37.13.37", "player": "Kalcon", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` ``` @@ -140,11 +160,9 @@ RCON команда `unbanip` используется для разблокир unbanip 13.37.13.37 ``` -Не забудьте использовать RCON команду `reloadbans`, чтобы обновить список блокировок, не перезапуская сервер. - #### reloadbans -Как было указано ранее, файл `samp.ban` содержит в себе список блокировок. Содержимое этого файла считывается лишь при запуске сервера, однако, если вы хотите обновить список во время работы сервера, используйте RCON команду `reloadbans` +Как было указано ранее, файл `bans.json` содержит в себе список блокировок. Содержимое этого файла считывается лишь при запуске сервера, однако, если вы хотите обновить список во время работы сервера, используйте RCON команду `reloadbans` ### RCON команды @@ -153,7 +171,7 @@ unbanip 13.37.13.37 | Команда | Описание | | --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | | `/rcon cmdlist` | Выводит список команд. | -| `/rcon varlist` | Выводит список текущих параметров в [server.cfg](server.cfg) | +| `/rcon varlist` | Выводит список текущих серверных переменных. | | `/rcon exit` | Прекращает работу сервера. | | `/rcon echo [text]` | Выводит текст, указанный в `[text]` в консоль сервера. | | `/rcon hostname [name]` | Изменяет название сервера в поиске (_пример: /rcon hostname my server_). | @@ -163,9 +181,9 @@ unbanip 13.37.13.37 | `/rcon kick [ID]` | Кикает игрока с указанным ID (_пример: /rcon kick 2_). | | `/rcon ban [ID]` | Блокирует ID (_пример: /rcon ban 2_). | | `/rcon changemode [mode]` | Изменяет загруженный игровой мод (_пример: /rcon changemode new_v2_). | -| `/rcon gmx` | Загрузит следующий игровой мод, указанный в `gamemodes` в [server.cfg](server.cfg). | -| `/rcon reloadbans` | Обновляет список блокировок из файла samp.ban. | -| `/rcon reloadlog` | Перезагружает файл server_log.txt. Нет видимого эффекта. | +| `/rcon gmx` | Загрузит следующий игровой мод, указанный в [config.json](config.json). | +| `/rcon reloadbans` | Обновляет список блокировок из файла bans.json. | +| `/rcon reloadlog` | Перезагружает файл log.txt. Нет видимого эффекта. | | `/rcon say` | Отправить сообщение в чат на сервере из RCON (\_пример: `/rcon say привет всем` выведет всем в чат `Admin: привет всем`). | | `/rcon players` | Выводит список игроков на сервере (с их именами, IP и пингом). | | `/rcon banip [IP]` | Блокирует указанный IP (_пример: /rcon banip 127.0.0.1_). | diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/LagCompensation.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/LagCompensation.md index 5ead1a9c19d..1729bb5cfbb 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/LagCompensation.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/LagCompensation.md @@ -1,7 +1,7 @@ --- title: "Компенсация лагов" sidebar_label: "Компенсация лагов" -descripion: Описание учитывания (компенсации) лагов. +description: Описание учитывания (компенсации) лагов. --- Компенсация лагов для выстреленных пуль включена по умолчанию, начиная с серверной версии SA-MP 0.3z. Статус может быть изменён в параметре `lagcompmode` в [server.cfg](server.cfg). Установив настройку на 0, это отключит лагокомпенсацию полностью и игроки будут вынуждены стрелять на упреждение при лагах, а не по скину цели. diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/RemoteConsole.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/RemoteConsole.md index 6a7443a5779..6c73907c43b 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/RemoteConsole.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/RemoteConsole.md @@ -1,7 +1,7 @@ --- title: "Удалённая консоль (RCON)" sidebar_label: "Удалённая консоль (RCON)" -descripion: Удалённое администрирование сервера. +description: Удалённое администрирование сервера. --- Удаленная консоль - это командная строка, в которой вы можете использовать команды RCON без необходимости находиться в игре и на вашем сервере. Начиная с версии 0.3b, удаленная консоль была удалена из браузера сервера. В дальнейшем вам будет необходимо использовать другой способ работы с удалённой консолью. diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/server.cfg.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/server.cfg.md index c8eafa1e21b..28523a7eb0e 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/server.cfg.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/server/server.cfg.md @@ -11,26 +11,26 @@ description: Конфигурационный файл сервера. ## Консоль -| Параметр | Тип | Значение по умолчанию | Только для чтения | Правило | Эффект | -| ------------- | ----------------- | -------------------------- | ----------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -| echo | string (строка) | Executing Server Config... | Да | Нет | Текст, который samp-server.exe выводит, когда считывает файл server.cfg. Нет необходимости менять, т.к. вы единственный, кто увидит это в консоли. | -| rcon_password | string (строка) | changeme | Нет | Нет | Пароль для авторизации RCON администраторов. Сервер не запустится, если пароль указан, как `changeme`, необходимо его изменить хотя бы на `123`. | -| rcon | bool (логический) | 1 | Нет | Нет | Активирует [Удалённую Консоль](RemoteConsole) на сервере и позволяет RCON администратором авторизоваться любым из способов (1 - активна, 0 - не активна). | +| Параметр | Тип | Значение по умолчанию | Только для чтения | Правило | Эффект | +| ------------- | ----------------- | -------------------------- | ----------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| echo | string (строка) | Executing Server Config... | Да | Нет | Текст, который samp-server.exe выводит, когда считывает файл server.cfg. Нет необходимости менять, т.к. вы единственный, кто увидит это в консоли. | +| rcon_password | string (строка) | changeme | Нет | Нет | Пароль для авторизации RCON администраторов. Вы должны убедиться, что изменили это на что-то трудно подбираемое, чтобы другие не могли получить контроль над вашим сервером. Сервер не запустится, если пароль указан, как `changeme`, необходимо его изменить хотя бы на `123`. | +| rcon | bool (логический) | 1 | Нет | Нет | Активирует [Удалённую Консоль](RemoteConsole) на сервере и позволяет RCON администратором авторизоваться любым из способов (1 - активна, 0 - не активна). | ## Скрипты -| Параметр | Type | Значение по умолчанию | Только для чтения | Правило | Эффект | -| ------------------- | --------------- | --------------------- | ----------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| gamemode(n) (N) (t) | string (строка) | gamemode0 grandlarc 1 | Нет | Нет | Файл с расширением .amx в папке gamemodes, который будет использован, как мод для сервера по умолчанию. (n) - это номер, указывающий на то, каким в порядке загрузки будет мод, (N) - это параметр, который отвечает за имя мода (имя файла без расширения .amx), (t) - это параметр, отвечающий за количество раз, сколько мод может быть сыгран до того, как будет сменён через gmx на следующий (бесполезно для серверов с одним модом) | -| filterscripts (N) | string (строка) | | Да | Нет | Файл с расширением .amx в папке filterscripts, который будет использован в качестве подключаемого скрипта на сервере. (N) - это имя файла скрипта без расширения .amx, который необходимо загрузить. Чтобы использовать несколько скриптов сразу, укажите их названия через пробел, например: filterscripts script1 script2 | -| plugins (N) | string (строка) | | Да | Нет | Список файлов с расширением .dll или .so, которые необходимо загрузить в качестве плагинов сервера при запуске. На Windows расширение в имени файла (N) указывать не обязательно, однако, на Linux необходимо дописывать .so в конце каждого имени. Плагины - это скрипты, которые предназначены для изменения и улучшения модов и подключаемых скриптов. Чтобы использовать несколько плагинов сразу, укажите их названия через пробел, например: plugins plugin1 plugin2 (на Linux будет выглядеть, как plugins plugin1.so plugin2.so) | +| Параметр | Type | Значение по умолчанию | Только для чтения | Правило | Эффект | +| ------------------- | --------------- | --------------------- | ----------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| gamemode(n) (N) (t) | string (строка) | gamemode0 grandlarc 1 | Нет | Нет | Файл с расширением .amx в папке gamemodes, который будет использован, как мод для сервера по умолчанию. (n) - это номер, указывающий на то, каким в порядке загрузки будет мод, (N) - это параметр, который отвечает за имя мода (имя файла без расширения .amx), (t) - это параметр, отвечающий за количество раз, сколько мод может быть сыгран до того, как будет сменён через gmx на следующий (бесполезно для серверов с одним модом) | +| filterscripts (N) | string (строка) | | Да | Нет | Файл с расширением .amx в папке filterscripts, который будет использован в качестве подключаемого скрипта на сервере. (N) - это имя файла скрипта без расширения .amx, который необходимо загрузить. Фильтрскрипты это скрипты, которые выполняются в фоновом режиме вашего мода, добавляя новые возможности на сервер без редактирования самого режима игры. Это очень полезно, если вы хотите добавить конкретные возможности для нескольких режимов одновременно. Чтобы использовать несколько скриптов сразу, укажите их названия через пробел, например: filterscripts script1 script2 | +| plugins (N) | string (строка) | | Да | Нет | Список файлов с расширением .dll или .so, которые необходимо загрузить в качестве плагинов сервера при запуске. На Windows расширение в имени файла (N) указывать не обязательно, однако, на Linux необходимо дописывать .so в конце каждого имени. Плагины - это скрипты, которые предназначены для изменения и улучшения модов и подключаемых скриптов. Чтобы использовать несколько плагинов сразу, укажите их названия через пробел, например: plugins plugin1 plugin2 (на Linux будет выглядеть, как plugins plugin1.so plugin2.so) | ## Браузер серверов (Список серверов в лаунчере SA-MP) | Параметр | Type | Значение по умолчанию | Только для чтения | Правило | Эффект | | ------------ | ------------------- | --------------------- | ----------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | announce | bool (логический) | 1 | Нет | Нет | Отвечает за отображение вашего сервера в списке серверов SA-MP. 1 - отображается, 0 - не отображается. | -| query | bool (логический) | 1 | Нет | Нет | Отвечает за отображение информации о сервере в списке серверов SA-MP. 1 - отображается, 0 - не отображается. | +| query | bool (логический) | 1 | Нет | Нет | Отвечает за отображение информации о сервере в списке серверов SA-MP. 1 - отображается, 0 - не отображается. (Игроки по-прежнему могут войти на сервер, который отключил обработку запросов!) | | hostname | string (строка) | SA-MP Server | Нет | Нет | Название сервера, которое будет отображаться в списке серверов SA-MP. | | language | string (строка) | | Нет | Нет | Язык сервера, который будет отображаться в списке серверов SA-MP. Игроки могут сортировать серверы по данному параметру.

**ПРИМЕЧАНИЕ:** Этот параметр был добавлен в версии 0.3.7, на более низких не имеет эффекта. | | mapname | string (строка) | San Andreas | Нет | Да | Название карты, отображаемое в списке серверов SA-MP. Можно написать что угодно, хоть сердце Southclaws. | @@ -49,7 +49,7 @@ description: Конфигурационный файл сервера. | ----------------- | --------------------- | ----------------------------- | ----------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | sleep | int (целочисленный) | 5 | Нет | Нет | Время в миллисекундах, отвечающее за время ожидания потока сети raknet в течение каждого цикла синхронизации. Чем больше значение, тем хуже качество синхронизации. Меньшие значения повышают качество синхронизации, но понижают производительность сервера. Не рекомендуется менять до тех пор, пока на сервере не находится огромное количество игроков и возникают проблемы с частотой кадров. | | lanmode | bool (логический) | 0 | Нет | Нет | Устарело. Не имеет эффекта. | -| bind | string (строка) | | Да | Нет | IP адрес, который должен быть установлен серверу. Принуждает использовать определённый IP адрес, вместо любого свободного. Будет полезно для запуска нескольких серверов на одной машине. Используется при запуске серверов на хостингах. | +| bind | string (строка) | | Да | Нет | IP адрес, который должен быть установлен серверу. Принуждает использовать определённый IP адрес, вместо любого свободного. Этот IP должен соответствовать IP, назначенному сетевой картой сервера. Будет полезно для запуска нескольких серверов на одной машине. Используется при запуске серверов на хостингах. | | port | int (целочисленный) | 8192 (чаще используется 7777) | Да | Нет | Порт, который должен использовать сервер. Вам нужно использовал [Перенаправление Портов](https://portforward.com) чтобы игроки могли зайти на ваш сервер не только из вашей локальной сети. | | conncookies | int (целочисленный)\* | 1 | Нет | Нет | Включает систему куков подключения 0.3.7. Укажите 1, чтобы включить, 0, чтобы выключить.

**ПРИМЕЧАНИЕ:** Эта переменная была добавлена в 0.3.7 R2 и не будет работать на предыдущих версиях. | | cookielogging | int (целочисленный)\* | 0 | Нет | Нет | Включает логирование подключений новых игроков. Укажите 1, чтобы включить, 0, чтобы выключить.

**ПРИМЕЧАНИЕ:** Эта переменная была добавлена в 0.3.7 R2 и не будет работать на предыдущих версиях. | diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/tutorials/colorfix.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/tutorials/colorfix.md index bb52d905134..11cf95aab50 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/tutorials/colorfix.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/tutorials/colorfix.md @@ -1,23 +1,23 @@ --- title: "Color Fix" sidebar_label: "Color Fix" -descripion: Базовый скрипт для добавления большего количества цветов для ников игроков. +description: Базовый скрипт для добавления большего количества цветов для ников игроков. --- Этот туториал предназначен для работы с [GetPlayerColor](../scripting/functions/GetPlayerColor), если вы не используете [SetPlayerColor](../scripting/functions/SetPlayerColor) в вашем скрипте при подключении игрока. ```c new PlayerColors[] = { - 0xFF8C13FF,0xC715FFFF,0x20B2AAFF,0xDC143CFF,0x6495EDFF,0xf0e68cFF,0x778899FF,0xFF1493FF,0xF4A460FF,0xEE82EEFF, - 0xFFD720FF,0x8b4513FF,0x4949A0FF,0x148b8bFF,0x14ff7fFF,0x556b2fFF,0x0FD9FAFF,0x10DC29FF,0x534081FF,0x0495CDFF, - 0xEF6CE8FF,0xBD34DAFF,0x247C1BFF,0x0C8E5DFF,0x635B03FF,0xCB7ED3FF,0x65ADEBFF,0x5C1ACCFF,0xF2F853FF,0x11F891FF, - 0x7B39AAFF,0x53EB10FF,0x54137DFF,0x275222FF,0xF09F5BFF,0x3D0A4FFF,0x22F767FF,0xD63034FF,0x9A6980FF,0xDFB935FF, - 0x3793FAFF,0x90239DFF,0xE9AB2FFF,0xAF2FF3FF,0x057F94FF,0xB98519FF,0x388EEAFF,0x028151FF,0xA55043FF,0x0DE018FF, - 0x93AB1CFF,0x95BAF0FF,0x369976FF,0x18F71FFF,0x4B8987FF,0x491B9EFF,0x829DC7FF,0xBCE635FF,0xCEA6DFFF,0x20D4ADFF, - 0x2D74FDFF,0x3C1C0DFF,0x12D6D4FF,0x48C000FF,0x2A51E2FF,0xE3AC12FF,0xFC42A8FF,0x2FC827FF,0x1A30BFFF,0xB740C2FF, - 0x42ACF5FF,0x2FD9DEFF,0xFAFB71FF,0x05D1CDFF,0xC471BDFF,0x94436EFF,0xC1F7ECFF,0xCE79EEFF,0xBD1EF2FF,0x93B7E4FF, - 0x3214AAFF,0x184D3BFF,0xAE4B99FF,0x7E49D7FF,0x4C436EFF,0xFA24CCFF,0xCE76BEFF,0xA04E0AFF,0x9F945CFF,0xDCDE3DFF, - 0x10C9C5FF,0x70524DFF,0x0BE472FF,0x8A2CD7FF,0x6152C2FF,0xCF72A9FF,0xE59338FF,0xEEDC2DFF,0xD8C762FF,0x3FE65CFF + 0xFF8C13FF, 0xC715FFFF, 0x20B2AAFF, 0xDC143CFF, 0x6495EDFF, 0xf0e68cFF, 0x778899FF, 0xFF1493FF, 0xF4A460FF, 0xEE82EEFF, + 0xFFD720FF, 0x8b4513FF, 0x4949A0FF, 0x148b8bFF, 0x14ff7fFF, 0x556b2fFF, 0x0FD9FAFF, 0x10DC29FF, 0x534081FF, 0x0495CDFF, + 0xEF6CE8FF, 0xBD34DAFF, 0x247C1BFF, 0x0C8E5DFF, 0x635B03FF, 0xCB7ED3FF, 0x65ADEBFF, 0x5C1ACCFF, 0xF2F853FF, 0x11F891FF, + 0x7B39AAFF, 0x53EB10FF, 0x54137DFF, 0x275222FF, 0xF09F5BFF, 0x3D0A4FFF, 0x22F767FF, 0xD63034FF, 0x9A6980FF, 0xDFB935FF, + 0x3793FAFF, 0x90239DFF, 0xE9AB2FFF, 0xAF2FF3FF, 0x057F94FF, 0xB98519FF, 0x388EEAFF, 0x028151FF, 0xA55043FF, 0x0DE018FF, + 0x93AB1CFF, 0x95BAF0FF, 0x369976FF, 0x18F71FFF, 0x4B8987FF, 0x491B9EFF, 0x829DC7FF, 0xBCE635FF, 0xCEA6DFFF, 0x20D4ADFF, + 0x2D74FDFF, 0x3C1C0DFF, 0x12D6D4FF, 0x48C000FF, 0x2A51E2FF, 0xE3AC12FF, 0xFC42A8FF, 0x2FC827FF, 0x1A30BFFF, 0xB740C2FF, + 0x42ACF5FF, 0x2FD9DEFF, 0xFAFB71FF, 0x05D1CDFF, 0xC471BDFF, 0x94436EFF, 0xC1F7ECFF, 0xCE79EEFF, 0xBD1EF2FF, 0x93B7E4FF, + 0x3214AAFF, 0x184D3BFF, 0xAE4B99FF, 0x7E49D7FF, 0x4C436EFF, 0xFA24CCFF, 0xCE76BEFF, 0xA04E0AFF, 0x9F945CFF, 0xDCDE3DFF, + 0x10C9C5FF, 0x70524DFF, 0x0BE472FF, 0x8A2CD7FF, 0x6152C2FF, 0xCF72A9FF, 0xE59338FF, 0xEEDC2DFF, 0xD8C762FF, 0x3FE65CFF }; ``` diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md index b8b864773e7..52981c2eefb 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md @@ -1,7 +1,7 @@ --- title: Система переменных для каждого игрока sidebar_label: Система переменных для каждого игрока -description: Система переменных для каждого игрока (в сокращении PVar) - это новый способ создания переменных для каждого игрока индивидуально в глобальном пространстве, т.е. к одной переменной можно получить доступ и из игрового мода (gamemode), и из подключаемого сценария (filterscript). +description: Система переменных для каждого игрока (в сокращении PVar) - это новый способ создания переменных для каждого игрока индивидуально в глобальном пространстве. --- Система **переменных для каждого игрока** (в сокращении **PVar**) - это новый способ создания переменных для каждого игрока индивидуально в глобальном пространстве, т.е. к одной переменной можно получить доступ и из игрового мода (gamemode), и из подключаемого сценария (filterscript). diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md index ed3713804ef..386cae4d4a4 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md @@ -2,7 +2,7 @@ title: Система серверных переменных sidebar_label: Система серверных переменных -description: Система серверных переменных (в сокращении SVar) - это новый способ динамического создания серверных переменных в глобальном пространстве, т.е. к одной переменной можно получить доступ и из игрового мода (gamemode), и из подключаемого сценария (filterscript). +description: Система серверных переменных (в сокращении SVar) - это новый способ динамического создания серверных переменных в глобальном пространстве. --- Система **серверных переменных** (в сокращении **SVar**) - это новый способ динамического создания серверных переменных в глобальном пространстве, т.е. к одной переменной можно получить доступ и из игрового мода (gamemode), и из подключаемого сценария (filterscript). diff --git a/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md b/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md index fea8065bef2..499dccb8b70 100644 --- a/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md +++ b/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md @@ -1,7 +1,7 @@ --- title: OnDialogResponse sidebar_label: OnDialogResponse -description: Ta "callback" se pokliče, ko se predvajalnik odzove na pogovorno okno, imenovano "ShowPlayerDialog", s klikom na gumb, s pritiskom na tipko ENTER / ESC ali z dvoklikom na element seznama (če uporabljate pogovorno okno sloga "seznam"). +description: Ta "callback" se pokliče, ko se predvajalnik odzove na pogovorno okno, imenovano "ShowPlayerDialog". tags: [] --- diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/client/ClientCommands.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/client/ClientCommands.md index 761f5765301..6f3617f9dc8 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/client/ClientCommands.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/client/ClientCommands.md @@ -1,7 +1,7 @@ --- title: "Клијент Команде" sidebar_label: "Клијент Команде" -descripion: Листа свих команди за клијент. +description: Листа свих команди за клијент. --- | Команда | Дескрипција | diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md index f0a4500752e..a05e072f360 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md @@ -1,7 +1,7 @@ --- title: OnDialogResponse sidebar_label: OnDialogResponse -description: Ова повратна функција се позива када играч одговори на дијалог који је приказан коришћењем ShowPlayerDialog, било да кликне на дугме, притисне ENTER/ESC, или двоструко кликне на ставку листе (ако користите дијалог стилa листе). +description: Ова повратна функција се позива када играч одговори на дијалог који је приказан коришћењем ShowPlayerDialog. tags: ["dialog"] --- diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md index f142a6088ea..09d2d503105 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md @@ -17,6 +17,8 @@ tags: ["player", "vehicle"] ## Враћа +Ова повратна функција не враћа било шта. + Увек се позива прва у филтер скрипти. ## Пример diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md index 42c1471f8eb..c371ff581b0 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md @@ -11,11 +11,11 @@ tags: ["player"] Ова повратна функција се позива када играч затражи преузимање прилагођеног модела. -| Име | Опис | -| --------------------- | ---------------------------------------------------------- | -| playerid | ID играча који је затражио преузимање прилагођеног модела. | -| DOWNLOAD_REQUEST:type | [Тип](../resources/download-requests) захтева. | -| crc | CRC чексума датотеке прилагођеног модела. | +| Име | Опис | +| --------------------- | -------------------------------------------------------------------------------------------------- | +| playerid | ID играча који је затражио преузимање прилагођеног модела. | +| DOWNLOAD_REQUEST:type | [Тип](../resources/download-requests) захтева. | +| crc | [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) чексума датотеке прилагођеног модела. | ## Враћа diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/tutorials/colorfix.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/tutorials/colorfix.md index 0787dfc12fa..cc19144fe63 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/tutorials/colorfix.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/tutorials/colorfix.md @@ -1,23 +1,23 @@ --- title: "Color Fix" sidebar_label: "Color Fix" -descripion: Основна скрипта за додавање више боја играча. +description: Основна скрипта за додавање више боја играча. --- Овај туторијал треба користити са [GetPlayerColor](../scripting/functions/GetPlayerColor), ако не користите [SetPlayerColor](../scripting/functions/SetPlayerColor) у вашем скрипту када се играчи повежу. ```c new PlayerColors[] = { - 0xFF8C13FF,0xC715FFFF,0x20B2AAFF,0xDC143CFF,0x6495EDFF,0xf0e68cFF,0x778899FF,0xFF1493FF,0xF4A460FF,0xEE82EEFF, - 0xFFD720FF,0x8b4513FF,0x4949A0FF,0x148b8bFF,0x14ff7fFF,0x556b2fFF,0x0FD9FAFF,0x10DC29FF,0x534081FF,0x0495CDFF, - 0xEF6CE8FF,0xBD34DAFF,0x247C1BFF,0x0C8E5DFF,0x635B03FF,0xCB7ED3FF,0x65ADEBFF,0x5C1ACCFF,0xF2F853FF,0x11F891FF, - 0x7B39AAFF,0x53EB10FF,0x54137DFF,0x275222FF,0xF09F5BFF,0x3D0A4FFF,0x22F767FF,0xD63034FF,0x9A6980FF,0xDFB935FF, - 0x3793FAFF,0x90239DFF,0xE9AB2FFF,0xAF2FF3FF,0x057F94FF,0xB98519FF,0x388EEAFF,0x028151FF,0xA55043FF,0x0DE018FF, - 0x93AB1CFF,0x95BAF0FF,0x369976FF,0x18F71FFF,0x4B8987FF,0x491B9EFF,0x829DC7FF,0xBCE635FF,0xCEA6DFFF,0x20D4ADFF, - 0x2D74FDFF,0x3C1C0DFF,0x12D6D4FF,0x48C000FF,0x2A51E2FF,0xE3AC12FF,0xFC42A8FF,0x2FC827FF,0x1A30BFFF,0xB740C2FF, - 0x42ACF5FF,0x2FD9DEFF,0xFAFB71FF,0x05D1CDFF,0xC471BDFF,0x94436EFF,0xC1F7ECFF,0xCE79EEFF,0xBD1EF2FF,0x93B7E4FF, - 0x3214AAFF,0x184D3BFF,0xAE4B99FF,0x7E49D7FF,0x4C436EFF,0xFA24CCFF,0xCE76BEFF,0xA04E0AFF,0x9F945CFF,0xDCDE3DFF, - 0x10C9C5FF,0x70524DFF,0x0BE472FF,0x8A2CD7FF,0x6152C2FF,0xCF72A9FF,0xE59338FF,0xEEDC2DFF,0xD8C762FF,0x3FE65CFF + 0xFF8C13FF, 0xC715FFFF, 0x20B2AAFF, 0xDC143CFF, 0x6495EDFF, 0xf0e68cFF, 0x778899FF, 0xFF1493FF, 0xF4A460FF, 0xEE82EEFF, + 0xFFD720FF, 0x8b4513FF, 0x4949A0FF, 0x148b8bFF, 0x14ff7fFF, 0x556b2fFF, 0x0FD9FAFF, 0x10DC29FF, 0x534081FF, 0x0495CDFF, + 0xEF6CE8FF, 0xBD34DAFF, 0x247C1BFF, 0x0C8E5DFF, 0x635B03FF, 0xCB7ED3FF, 0x65ADEBFF, 0x5C1ACCFF, 0xF2F853FF, 0x11F891FF, + 0x7B39AAFF, 0x53EB10FF, 0x54137DFF, 0x275222FF, 0xF09F5BFF, 0x3D0A4FFF, 0x22F767FF, 0xD63034FF, 0x9A6980FF, 0xDFB935FF, + 0x3793FAFF, 0x90239DFF, 0xE9AB2FFF, 0xAF2FF3FF, 0x057F94FF, 0xB98519FF, 0x388EEAFF, 0x028151FF, 0xA55043FF, 0x0DE018FF, + 0x93AB1CFF, 0x95BAF0FF, 0x369976FF, 0x18F71FFF, 0x4B8987FF, 0x491B9EFF, 0x829DC7FF, 0xBCE635FF, 0xCEA6DFFF, 0x20D4ADFF, + 0x2D74FDFF, 0x3C1C0DFF, 0x12D6D4FF, 0x48C000FF, 0x2A51E2FF, 0xE3AC12FF, 0xFC42A8FF, 0x2FC827FF, 0x1A30BFFF, 0xB740C2FF, + 0x42ACF5FF, 0x2FD9DEFF, 0xFAFB71FF, 0x05D1CDFF, 0xC471BDFF, 0x94436EFF, 0xC1F7ECFF, 0xCE79EEFF, 0xBD1EF2FF, 0x93B7E4FF, + 0x3214AAFF, 0x184D3BFF, 0xAE4B99FF, 0x7E49D7FF, 0x4C436EFF, 0xFA24CCFF, 0xCE76BEFF, 0xA04E0AFF, 0x9F945CFF, 0xDCDE3DFF, + 0x10C9C5FF, 0x70524DFF, 0x0BE472FF, 0x8A2CD7FF, 0x6152C2FF, 0xCF72A9FF, 0xE59338FF, 0xEEDC2DFF, 0xD8C762FF, 0x3FE65CFF }; ``` diff --git a/frontend/i18n/ta/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md b/frontend/i18n/ta/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md index ecd5ab07df7..b2250067084 100644 --- a/frontend/i18n/ta/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md +++ b/frontend/i18n/ta/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md @@ -5,7 +5,7 @@ sidebar_label: Common Server Issues ## தொடங்கும் போது சர்வர் உடனடியாக செயலிழக்கிறது -பொதுவாக இது உங்கள் server.cfg கோப்பில் ஒரு பிழை அல்லது உங்கள் கேம்மோட் இல்லை. server_log.txt கோப்பைச் சரிபார்த்து, காரணம் கீழே இருக்க வேண்டும். இல்லையெனில், crashinfo.txt கோப்பைச் சரிபார்க்கவும். செயலிழப்பிற்கு என்ன காரணம் என்பதைக் கண்டறிவதற்கான சிறந்த தீர்வாக, Zeex/0x5A656578 ([இணைப்புக்கு கிளிக் செய்யவும்](https://github.com/AmyrAhmady/samp-plugin-crashdetect)) செயலிழப்பைக் கண்டறியும் செருகுநிரலைப் பயன்படுத்துவது, இது கூடுதல் தகவலைத் தரும். வரி எண்கள், செயல்பாட்டுப் பெயர்கள், அளவுரு மதிப்புகள் போன்றவை. ஸ்கிரிப்ட் பிழைத்திருத்த பயன்முறையில் (-d3 flag) தொகுக்கப்பட்டால், கம்பைலர் அந்த எல்லா விஷயங்களைப் பற்றிய கூடுதல் தகவலையும் .amx வெளியீட்டில் வைக்கும். +பொதுவாக இது உங்கள் config.json கோப்பில் ஒரு பிழை அல்லது உங்கள் கேம்மோட் இல்லை. log.txt கோப்பைச் சரிபார்த்து, காரணம் கீழே இருக்க வேண்டும். இல்லையெனில், crashinfo.txt கோப்பைச் சரிபார்க்கவும். செயலிழப்பிற்கு என்ன காரணம் என்பதைக் கண்டறிவதற்கான சிறந்த தீர்வாக, Zeex/0x5A656578 ([இணைப்புக்கு கிளிக் செய்யவும்](https://github.com/AmyrAhmady/samp-plugin-crashdetect)) செயலிழப்பைக் கண்டறியும் செருகுநிரலைப் பயன்படுத்துவது, இது கூடுதல் தகவலைத் தரும். வரி எண்கள், செயல்பாட்டுப் பெயர்கள், அளவுரு மதிப்புகள் போன்றவை. ஸ்கிரிப்ட் பிழைத்திருத்த பயன்முறையில் (-d3 flag) தொகுக்கப்பட்டால், கம்பைலர் அந்த எல்லா விஷயங்களைப் பற்றிய கூடுதல் தகவலையும் .amx வெளியீட்டில் வைக்கும். ## சர்வர் வேலை செய்யவில்லை - ஃபயர்வால் முடக்கப்பட்டுள்ளது diff --git a/frontend/i18n/ta/docusaurus-plugin-content-docs/current/server/ControllingServer.md b/frontend/i18n/ta/docusaurus-plugin-content-docs/current/server/ControllingServer.md index 24151b3ee9a..ad1c7368697 100644 --- a/frontend/i18n/ta/docusaurus-plugin-content-docs/current/server/ControllingServer.md +++ b/frontend/i18n/ta/docusaurus-plugin-content-docs/current/server/ControllingServer.md @@ -18,14 +18,26 @@ description: சேவையகத்தை கட்டுப்படுத் தனிப்பயன் கேம்மோடை இயக்குவது போன்றது, தவிர: - .amx ஐ `filterscripts` என்ற கோப்புறையில் வைக்கவும் -- பின்வருவனவற்றை server.cfg இல் சேர்க்கவும்: `filterscripts ` +- ஃபில்டர் ஸ்கிரிப்டின் பாதையை `.amx` நீட்டிப்பு இல்லாமல் [config.json](config.json) இல் உள்ள `pawn.side_scripts` இல் சேர்க்கவும்: + +```json +{ + "pawn": { + "side_scripts": [ + "filterscripts/scriptname" + ] + } +} +``` ## Passwording your server -- நீங்கள் கடவுச்சொல்லைச் சேர்க்க விரும்பினால், உங்கள் நண்பர்கள் மட்டுமே சேர முடியும், இதை [server.cfg](server.cfg) இல் சேர்க்கவும்: +- நீங்கள் கடவுச்சொல்லைச் சேர்க்க விரும்பினால், உங்கள் நண்பர்கள் மட்டுமே சேர முடியும், இதை [config.json](config.json) இல் சேர்க்கவும்: -``` -password whatever +```json +{ + "password": "whatever" +} ``` - இது உங்கள் சர்வர் கடவுச்சொல்-பாதுகாப்பான கடவுச்சொல்லை 'whatever' என அமைக்கும் - அதை நீங்கள் விரும்பியபடி மாற்றவும். @@ -38,24 +50,26 @@ password whatever விளையாட்டின் போது `/rcon login password` என தட்டச்சு செய்வதன் மூலம் உள்நுழையலாம் அல்லது [Remote Console](RemoteConsole) இல் RCON பயன்முறையைப் பயன்படுத்தி கேமிற்கு வெளியே உள்நுழையலாம். -கடவுச்சொல் நீங்கள் [server.cfg](server.cfg) இல் அமைக்கப்பட்டுள்ளதைப் போலவே உள்ளது. +RCON கடவுச்சொல் என்பது [config.json](config.json) இல் அமைக்கப்பட்டுள்ள `rcon.password` மதிப்பாகும். ### Adding Bans -##### samp.ban +##### bans.json -samp.ban என்பது தடை பற்றிய பின்வரும் தகவல்கள் உட்பட, தடைகளைச் சேமிப்பதற்காகப் பயன்படுத்தப்படும் கோப்பு: +bans.json என்பது தடை பற்றிய பின்வரும் தகவல்கள் உட்பட, தடைகளைச் சேமிப்பதற்காகப் பயன்படுத்தப்படும் கோப்பு: - IP - Date - Time -- Name (நபரின் பெயர் அல்லது காரணத்தைப் பார்க்கவும் [BanEx](../scripting/functions/BanEx)) -- Type of ban +- Name (நபரின் பெயர்) +- Reason (பார்க்க [BanEx](../scripting/functions/BanEx)) -தடையைச் சேர்க்க, இது போன்ற ஒரு வரியைச் சேர்க்கவும்: +தடையைச் சேர்க்க, JSON வரிசையில் இது போன்ற ஒரு பொருளைச் சேர்க்கவும்: -``` -IP_HERE [28/05/09 | 13:37:00] PLAYER - BAN REASON +```json +[ + {"address": "IP_HERE", "player": "PLAYER", "reason": "BAN REASON", "time": "2009-05-28T13:37:00+0000"} +] ``` `IP_HERE` என்பது எங்கே, நீங்கள் தடைசெய்ய விரும்பும் IP ஐ வைக்கும் இடமாகும். @@ -64,8 +78,10 @@ IP_HERE [28/05/09 | 13:37:00] PLAYER - BAN REASON [Ban](../scripting/functions/Ban) செயல்பாடு ஒரு ஸ்கிரிப்டில் இருந்து ஒரு பிளேயரை தடை செய்ய பயன்படுத்தப்படலாம். [BanEx](../scripting/functions/BanEx) செயல்பாடு இது போன்ற ஒரு விருப்பக் காரணத்தைச் சேர்க்கும்: -``` -13.37.13.37 [28/05/09 | 13:37:00] Cheater - INGAME BAN +```json +[ + {"address": "13.37.13.37", "player": "Cheater", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` ##### RCON ban command @@ -100,27 +116,29 @@ banip IP ஒருவர் தடை செய்யப்பட்டவுடன், அவர்களை தடை செய்ய இரண்டு வழிகள் உள்ளன. -- samp.ban இலிருந்து அகற்று +- bans.json இலிருந்து அகற்று - RCON `unbanip` கட்டளை -#### samp.ban +#### bans.json -samp.ban ஐ உங்கள் sa-mp சர்வர் கோப்பகத்தில் காணலாம், ஒவ்வொரு தடையையும் பற்றிய பின்வரும் தகவல்களுடன் இது வரிகளைக் கொண்டுள்ளது: +bans.json ஐ உங்கள் open.mp சர்வர் கோப்பகத்தில் காணலாம், ஒவ்வொரு தடையையும் பற்றிய பின்வரும் தகவல்களுடன் இது பொருள்களைக் கொண்டுள்ளது: - IP - Date - Time -- Name (நபரின் பெயர் அல்லது காரணம் (பார்க்க [BanEx](../scripting/functions/BanEx))) -- Type of ban (INGAME, IP BAN etc,) +- Name (நபரின் பெயர்) +- Reason (பார்க்க [BanEx](../scripting/functions/BanEx)) உதாரணங்கள்: -``` -127.8.57.32 [13/06/09 | 69:69:69] NONE - IP BAN -13.37.13.37 [28/05/09 | 13:37:00] Kyeman - INGAME BAN +```json +[ + {"address": "127.8.57.32", "player": "NONE", "reason": "IP BAN", "time": "2009-06-13T13:37:00+0000"}, + {"address": "13.37.13.37", "player": "Kyeman", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` -அவற்றைத் தடை செய்ய, வரியை அகற்றவும், பின்னர் `RCON reloadbans` கட்டளையை இயக்கவும். +அவற்றைத் தடை செய்ய, பொருளை அகற்றவும், பின்னர் `RCON reloadbans` கட்டளையை இயக்கவும். #### unbanip @@ -128,8 +146,10 @@ RCON unbanip கட்டளையை விளையாட்டில் அ எடுத்துக்காட்டு: -``` -13.37.13.37 [28/05/09 | 13:37:00] Kyeman - INGAME BAN +```json +[ + {"address": "13.37.13.37", "player": "Kyeman", "reason": "INGAME BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` ``` @@ -140,11 +160,11 @@ RCON unbanip கட்டளையை விளையாட்டில் அ unbanip 13.37.13.37 ``` -அவற்றைத் தடை செய்ய, `unbanip` கட்டளையைப் பயன்படுத்தவும், பின்னர் RCON `reloadbans` கட்டளையை இயக்கவும், சர்வர் samp.ban ஐ மீண்டும் படிக்கச் செய்யவும். +அவற்றைத் தடை செய்ய, `unbanip` கட்டளையைப் பயன்படுத்தவும். #### reloadbans -`samp.ban` என்பது தற்போது சர்வரில் இருந்து தடைசெய்யப்பட்ட IPக்கான தகவல்களை வைத்திருக்கும் கோப்பு. சேவையகம் தொடங்கும் போது இந்தக் கோப்பு வாசிக்கப்படும், எனவே நீங்கள் ஒரு ஐபி/நபரை தடை நீக்கினால், சர்வரை மீண்டும் `samp.ban` படிக்கச் செய்ய `RCON reloadbans` கட்டளையைத் தட்டச்சு செய்து அவர்களை சர்வரில் சேர அனுமதிக்க வேண்டும். +`bans.json` என்பது தற்போது சர்வரில் இருந்து தடைசெய்யப்பட்ட IPக்கான தகவல்களை வைத்திருக்கும் கோப்பு. சேவையகம் தொடங்கும் போது இந்தக் கோப்பு வாசிக்கப்படும், எனவே நீங்கள் கோப்பைத் திருத்தி ஒரு ஐபி/நபரை தடை நீக்கினால், சர்வரை மீண்டும் `bans.json` படிக்கச் செய்ய `RCON reloadbans` கட்டளையைத் தட்டச்சு செய்து அவர்களை சர்வரில் சேர அனுமதிக்க வேண்டும். ### RCON Commands @@ -152,39 +172,39 @@ RCON இன்-கேமில் (`/rcon cmdlist`) பயன்படுத் நிர்வாகியாக நீங்கள் பயன்படுத்தக்கூடிய செயல்பாடுகள் இவை: -| Command | Description | -| --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `/rcon cmdlist` | கட்டளைகளுடன் ஒரு பட்டியலைக் காட்டுகிறது. | -| `/rcon varlist` | தற்போதைய மாறிகள் கொண்ட பட்டியலைக் காட்டுகிறது. | -| `/rcon exit` | சேவையகத்தை மூடுகிறது. | -| `/rcon echo [text]` | சேவையகத்தின் கன்சோலில் `[text]` ஐக் காட்டுகிறது (கேமில் உள்ள கிளையன்ட்-கன்சோல் அல்ல). | -| `/rcon hostname [name]` | ஹோஸ்ட்பெயர் உரையை மாற்றவும் (_எடுத்துக்காட்டு: /rcon hostname my server_). | -| `/rcon gamemodetext [name]` | கேம்மோட் உரையை மாற்றவும் (_எடுத்துக்காட்டு: /rcon gamemodetext my gamemode_). | -| `/rcon mapname [name]` | வரைபடத்தின் பெயர் உரையை மாற்றவும் (_எடுத்துக்காட்டு: /rcon mapname San Andreas_). | -| `/rcon exec [filename]` | சர்வர் cfg உள்ள கோப்பை இயக்குகிறது (_எடுத்துக்காட்டு: /rcon exec blah.cfg_). | -| `/rcon kick [ID]` | கொடுக்கப்பட்ட ஐடியுடன் வீரரை உதைக்கவும் (_எடுத்துக்காட்டு: /rcon kick 2_). | -| `/rcon ban [ID]` | கொடுக்கப்பட்ட ஐடியுடன் பிளேயரை தடை செய்யுங்கள் (_எடுத்துக்காட்டு: /rcon ban 2_). | -| `/rcon changemode [mode]` | இந்த கட்டளை தற்போதைய கேம்மோடை கொடுக்கப்பட்டதாக மாற்றும் (_எடுத்துக்காட்டு: if you want to play sftdm: /rcon changemode sftdm_). | -| `/rcon gmx` | அடுத்த கேம்மோடை ஏற்றும் [server.cfg](server.cfg). | -| `/rcon reloadbans` | தடைசெய்யப்பட்ட ஐபி முகவரிகள் சேமிக்கப்பட்டுள்ள `samp.ban` கோப்பை மீண்டும் ஏற்றுகிறது. தடை நீக்கம் மற்றும் ஐபி முகவரிக்குப் பிறகு பயன்படுத்தப்பட வேண்டும். | -| `/rcon reloadlog` | `server_log.txt` ஐ மீண்டும் ஏற்றுகிறது. தானியங்கி பதிவு சுழற்சிக்கு பயனுள்ளதாக இருக்கும். சேவையகத்திற்கு `SIGUSR1` சமிக்ஞையை அனுப்புவதன் மூலம் தூண்டப்படலாம் (Linux சேவையகம் மட்டும்). | -| `/rcon say` | கிளையன்ட்-கன்சோலில் உள்ள பிளேயர்களுக்கு ஒரு செய்தியைக் காட்டுகிறது (எடுத்துக்காட்டு: `/rcon say hello` என காட்டுவார்கள் `Admin: hello`). | -| `/rcon players` | சர்வரில் இருக்கும் பிளேயர்களைக் காட்டு (அவர்களின் பெயர், ஐபி மற்றும் பிங் உடன்). | -| `/rcon banip [IP]` | கொடுக்கப்பட்ட ஐபியை தடை செய்யுங்கள் (_எடுத்துக்காட்டு: /rcon banip 127.0.0.1_). | -| `/rcon unbanip [IP]` | கொடுக்கப்பட்ட ஐபியை தடைநீக்கு (_எடுத்துக்காட்டு: /rcon unbanip 127.0.0.1_). | -| `/rcon gravity` | ஈர்ப்பு விசையை மாற்றுகிறது (_எடுத்துக்காட்டு: /rcon gravity 0.008_). | -| `/rcon weather [ID]` | வானிலையை மாற்றுகிறது (_எடுத்துக்காட்டு: /rcon weather 1_). | -| `/rcon loadfs` | கொடுக்கப்பட்ட வடிகட்டி ஸ்கிரிப்டை ஏற்றுகிறது (_எடுத்துக்காட்டு: /rcon loadfs adminfs_). | -| `/rcon weburl [server url]` | "masterlists/SA-MP client" சர்வர் URL ஐ மாற்றவும் | -| `/rcon unloadfs` | கொடுக்கப்பட்ட "filterscript" இறக்கவும் (_எடுத்துக்காட்டு: /rcon unloadfs adminfs_). | -| `/rcon reloadfs` | கொடுக்கப்பட்ட "filterscript" மீண்டும் ஏற்றுகிறது (_எடுத்துக்காட்டு: /rcon reloadfs adminfs_). | -| `/rcon rcon\_password [PASSWORD]` | rcon இன் கடவுச்சொல்லை மாற்றவும் | -| `/rcon password [password]` | சேவையக கடவுச்சொல்லை அமைக்கிறது/மீட்டமைக்கிறது | -| `/rcon messageslimit [count]` | ஒரு கிளையன்ட் சர்வருக்கு அனுப்பும் ஒரு நொடிக்கு செய்திகளின் எண்ணிக்கையை மாற்றவும். (இயல்புநிலை 500) | -| `/rcon ackslimit [count]` | அக்குகளின் வரம்பை மாற்றவும் (இயல்புநிலை 3000) | -| `/rcon messageholelimit [count]` | செய்தி துளைகளின் வரம்பை மாற்றவும் (இயல்புநிலை 3000) | -| `/rcon playertimeout [limit m/s]` | எந்த பாக்கெட்டுகளையும் அனுப்பாத போது பிளேயர் நேரம் முடிவடையும் வரை மில்லி விநாடிகளில் நேரத்தை மாற்றவும். (இயல்புநிலை 1000) | -| `/rcon language [language]` | சேவையக மொழியை மாற்றவும் (_எடுத்துக்காட்டு: /rcon language English_). சர்வர் உலாவியில் காட்டப்பட்டுள்ளது. | +| Command | Description | +| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `/rcon cmdlist` | கட்டளைகளுடன் ஒரு பட்டியலைக் காட்டுகிறது. | +| `/rcon varlist` | தற்போதைய மாறிகள் கொண்ட பட்டியலைக் காட்டுகிறது. | +| `/rcon exit` | சேவையகத்தை மூடுகிறது. | +| `/rcon echo [text]` | சேவையகத்தின் கன்சோலில் `[text]` ஐக் காட்டுகிறது (கேமில் உள்ள கிளையன்ட்-கன்சோல் அல்ல). | +| `/rcon hostname [name]` | ஹோஸ்ட்பெயர் உரையை மாற்றவும் (_எடுத்துக்காட்டு: /rcon hostname my server_). | +| `/rcon gamemodetext [name]` | கேம்மோட் உரையை மாற்றவும் (_எடுத்துக்காட்டு: /rcon gamemodetext my gamemode_). | +| `/rcon mapname [name]` | வரைபடத்தின் பெயர் உரையை மாற்றவும் (_எடுத்துக்காட்டு: /rcon mapname San Andreas_). | +| `/rcon exec [filename]` | சர்வர் cfg உள்ள கோப்பை இயக்குகிறது (_எடுத்துக்காட்டு: /rcon exec blah.cfg_). | +| `/rcon kick [ID]` | கொடுக்கப்பட்ட ஐடியுடன் வீரரை உதைக்கவும் (_எடுத்துக்காட்டு: /rcon kick 2_). | +| `/rcon ban [ID]` | கொடுக்கப்பட்ட ஐடியுடன் பிளேயரை தடை செய்யுங்கள் (_எடுத்துக்காட்டு: /rcon ban 2_). | +| `/rcon changemode [mode]` | இந்த கட்டளை தற்போதைய கேம்மோடை கொடுக்கப்பட்டதாக மாற்றும் (_எடுத்துக்காட்டு: if you want to play sftdm: /rcon changemode sftdm_). | +| `/rcon gmx` | அடுத்த கேம்மோடை ஏற்றும் [config.json](config.json). | +| `/rcon reloadbans` | தடைசெய்யப்பட்ட ஐபி முகவரிகள் சேமிக்கப்பட்டுள்ள `bans.json` கோப்பை மீண்டும் ஏற்றுகிறது. கோப்பில் ஐபி முகவரியின் தடையை நீக்கிய பிறகு பயன்படுத்தப்பட வேண்டும். | +| `/rcon reloadlog` | `log.txt` ஐ மீண்டும் ஏற்றுகிறது. தானியங்கி பதிவு சுழற்சிக்கு பயனுள்ளதாக இருக்கும். சேவையகத்திற்கு `SIGUSR1` சமிக்ஞையை அனுப்புவதன் மூலம் தூண்டப்படலாம் (Linux சேவையகம் மட்டும்). | +| `/rcon say` | கிளையன்ட்-கன்சோலில் உள்ள பிளேயர்களுக்கு ஒரு செய்தியைக் காட்டுகிறது (எடுத்துக்காட்டு: `/rcon say hello` என காட்டுவார்கள் `Admin: hello`). | +| `/rcon players` | சர்வரில் இருக்கும் பிளேயர்களைக் காட்டு (அவர்களின் பெயர், ஐபி மற்றும் பிங் உடன்). | +| `/rcon banip [IP]` | கொடுக்கப்பட்ட ஐபியை தடை செய்யுங்கள் (_எடுத்துக்காட்டு: /rcon banip 127.0.0.1_). | +| `/rcon unbanip [IP]` | கொடுக்கப்பட்ட ஐபியை தடைநீக்கு (_எடுத்துக்காட்டு: /rcon unbanip 127.0.0.1_). | +| `/rcon gravity` | ஈர்ப்பு விசையை மாற்றுகிறது (_எடுத்துக்காட்டு: /rcon gravity 0.008_). | +| `/rcon weather [ID]` | வானிலையை மாற்றுகிறது (_எடுத்துக்காட்டு: /rcon weather 1_). | +| `/rcon loadfs` | கொடுக்கப்பட்ட வடிகட்டி ஸ்கிரிப்டை ஏற்றுகிறது (_எடுத்துக்காட்டு: /rcon loadfs adminfs_). | +| `/rcon weburl [server url]` | "masterlists/SA-MP client" சர்வர் URL ஐ மாற்றவும் | +| `/rcon unloadfs` | கொடுக்கப்பட்ட "filterscript" இறக்கவும் (_எடுத்துக்காட்டு: /rcon unloadfs adminfs_). | +| `/rcon reloadfs` | கொடுக்கப்பட்ட "filterscript" மீண்டும் ஏற்றுகிறது (_எடுத்துக்காட்டு: /rcon reloadfs adminfs_). | +| `/rcon rcon\_password [PASSWORD]` | rcon இன் கடவுச்சொல்லை மாற்றவும் | +| `/rcon password [password]` | சேவையக கடவுச்சொல்லை அமைக்கிறது/மீட்டமைக்கிறது | +| `/rcon messageslimit [count]` | ஒரு கிளையன்ட் சர்வருக்கு அனுப்பும் ஒரு நொடிக்கு செய்திகளின் எண்ணிக்கையை மாற்றவும். (இயல்புநிலை 500) | +| `/rcon ackslimit [count]` | அக்குகளின் வரம்பை மாற்றவும் (இயல்புநிலை 3000) | +| `/rcon messageholelimit [count]` | செய்தி துளைகளின் வரம்பை மாற்றவும் (இயல்புநிலை 3000) | +| `/rcon playertimeout [limit m/s]` | எந்த பாக்கெட்டுகளையும் அனுப்பாத போது பிளேயர் நேரம் முடிவடையும் வரை மில்லி விநாடிகளில் நேரத்தை மாற்றவும். (இயல்புநிலை 1000) | +| `/rcon language [language]` | சேவையக மொழியை மாற்றவும் (_எடுத்துக்காட்டு: /rcon language English_). சர்வர் உலாவியில் காட்டப்பட்டுள்ளது. | மேற்கூறிய நான்கு வரம்புகள்/கணக்குகள், எந்த SA-MP சேவையகத்தையும் முடக்கி அல்லது செயலிழக்கச் செய்வதன் மூலம் தாக்கக்கூடிய பல கருவிகளைத் தவிர்ப்பதற்காக உருவாக்கப்பட்டவை. எனவே, வெறுமனே, உங்கள் சேவையகத்தின் படி அவற்றை அமைக்கவும். இயல்புநிலை மதிப்புகள் இயல்புநிலையாக இருக்கும், ஏதேனும் தவறான உதைகளைக் கண்டால், அப்பாவி வீரர்கள் உதைக்கப்படாமல் இருக்க, கூடிய விரைவில் மதிப்புகளை அதிகரிக்கவும். diff --git a/frontend/i18n/ta/docusaurus-plugin-content-docs/current/server/server.cfg.md b/frontend/i18n/ta/docusaurus-plugin-content-docs/current/server/server.cfg.md index 43670683db5..552aed33110 100644 --- a/frontend/i18n/ta/docusaurus-plugin-content-docs/current/server/server.cfg.md +++ b/frontend/i18n/ta/docusaurus-plugin-content-docs/current/server/server.cfg.md @@ -124,3 +124,7 @@ description: சேவையக கட்டமைப்பு கோப்ப - "படிக்க மட்டும்" (`/rcon varlist` மூலம் காட்டப்பட்டுள்ளது) எனக் குறிக்கப்பட்ட மதிப்புகளை இயக்க நேரத்தில் மாற்ற முடியாது. SendRconCommand க்கு அனுப்புவதன் மூலம் மற்ற எல்லா மதிப்புகளையும் (தற்காலிகமாக) மாற்றலாம். - "விதி" எனக் குறிக்கப்பட்ட மதிப்புகள் (`/rcon varlist` மூலம் காட்டப்பட்டுள்ளது) விதிமுறைகள் பிரிவில் சர்வர் உலாவியில் காட்டப்படும். - ஸ்கிரிப்டுகள் கேம்மோட்கள் அல்லது ஃபில்டர்ஸ்கிரிப்ட் கோப்புறைகளில் இருக்க வேண்டியதில்லை. server.cfg இல் உள்ள தகவல் ஒரு பாதை, எனவே ".."ஐப் பயன்படுத்தலாம். + +``` +filterscripts ../scriptfiles/first ../minimodes/second +``` diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md index e66ce179d89..51bed874ea9 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md @@ -1,7 +1,7 @@ --- title: OnDialogResponse sidebar_label: OnDialogResponse -description: Callback นี้ถูกเรียกเมื่อผู้เล่นตอบสนองกับกล่องโต้ตอบที่แสดงโดยใช้ ShowPlayerDialog ไม่ว่าจะ คลิกปุ่ม, กด ENTER/ESC หรือดับเบิลคลิกที่รายการไอเทม (หากใช้กล่องโต้ตอบแบบรายการ) +description: Callback นี้ถูกเรียกเมื่อผู้เล่นตอบสนองกับกล่องโต้ตอบที่แสดงโดยใช้ ShowPlayerDialog tags: [] --- diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md index efe09d6be57..8bd1eed2326 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md @@ -17,6 +17,8 @@ This callback is called when a player starts to enter a vehicle, meaning the pla ## ส่งคืน +Callback นี้ไม่มีการส่งค่ากลับ + มันถูกเรียกในฟิลเตอร์สคริปต์ก่อนเสมอ ## ตัวอย่าง diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md index b55119bb285..d3c094bd1c0 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md @@ -15,11 +15,11 @@ Callback นี้ถูกเพิ่มใน SA-MP 0.3.DL R1 และจะ This callback is called when a player request for custom model downloads. -| Name | Description | -| -------- | -------------------------------------------------------- | -| playerid | The ID of the player that request custom model download. | -| type | The type of the request (see below). | -| crc | The CRC checksum of custom model file. | +| Name | Description | +| -------- | ----------------------------------------------------------------------------------------------- | +| playerid | The ID of the player that request custom model download. | +| type | The type of the request (see below). | +| crc | The [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) checksum of custom model file. | ## ส่งคืน @@ -63,3 +63,6 @@ public OnPlayerRequestDownload(playerid, type, crc) ## ฟังก์ชั่นที่เกี่ยวข้องกัน - [OnPlayerFinishedDownloading](OnPlayerFinishedDownloading): Called when a player finishes downloading custom models. +- [FindModelFileNameFromCRC](../functions/FindModelFileNameFromCRC): Find an existing custom skin or simple object model file. +- [FindTextureFileNameFromCRC](../functions/FindTextureFileNameFromCRC): Find an existing custom skin or simple object texture file. +- RedirectDownload: Redirect a player's custom AddCharModel or AddSimpleModel download to a specific HTTP webpage. diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md index 0af5af868dc..8b4188101ed 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md @@ -15,6 +15,8 @@ Called when a player attempts to spawn via class selection either by pressing SH ## ส่งคืน +Returning 0 in this callback will prevent the player from spawning. + It is always called first in filterscripts so returning 0 there also blocks other scripts from seeing it. ## ตัวอย่าง diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md index 598c34e58af..af7371b30d0 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md @@ -18,6 +18,8 @@ This callback is called when a player exits a mod shop, even if the colors weren ## ส่งคืน +Returning 0 in this callback will deny the colour change. Returning 1 will allow it. + It is always called first in gamemode so returning 0 there also blocks other filterscripts from seeing it. ## ตัวอย่าง diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md index f27530a7f07..49c70b4339c 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md @@ -13,7 +13,7 @@ This function was added in SA-MP 0.3.DL R1 and will not work in earlier versions ## คำอธิบาย -Adds a new custom character model for download. The model files will be stored in player's Documents\GTA San Andreas User Files\SAMP\cache under the Server IP and Port folder in a CRC-form file name. +Adds a new custom character model for download. The model files will be stored in player's Documents\GTA San Andreas User Files\SAMP\cache under the Server IP and Port folder in a [CRC-form](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) file name. | Name | Description | | ------- | -------------------------------------------------------------------------------------------------------------- | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md index 449f8885ae2..f7cb7b633c2 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md @@ -55,4 +55,5 @@ There are currently no restrictions on when you can call this function, but be a ## ฟังก์ชั่นที่เกี่ยวข้องกัน +- [AddSimpleModelTimed](AddSimpleModelTimed): Adds a new custom simple object model for download, which is only visible during a set time of day. - [OnPlayerFinishedDownloading](../callbacks/OnPlayerFinishedDownloading): Called when a player finishes downloading custom models. diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md index ebb69f0377b..35879461874 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md @@ -57,4 +57,5 @@ There are currently no restrictions on when you can call this function, but be a ## ฟังก์ชั่นที่เกี่ยวข้องกัน +- [AddSimpleModel](AddSimpleModel): Adds a new custom simple object model for download. - [OnPlayerFinishedDownloading](../callbacks/OnPlayerFinishedDownloading): Called when a player finishes downloading custom models. diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md index 085a07f43b2..70b816b5556 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md @@ -7,7 +7,7 @@ tags: ["administration"] ## คำอธิบาย -Ban a player who is currently in the server. They will be unable to join the server ever again. The ban will be IP-based, and be saved in the samp.ban file in the server's root directory. BanEx can be used to give a reason for the ban. IP bans can be added/removed using the RCON banip and unbanip commands (SendRconCommand). +Ban a player who is currently in the server. They will be unable to join the server ever again. The ban will be IP-based, and be saved in the **bans.json** file in the server's root directory. BanEx can be used to give a reason for the ban. IP bans can be added/removed using the RCON banip and unbanip commands (SendRconCommand). | Name | Description | | -------- | ---------------------------- | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md index e39bf121da7..ce859d28358 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md @@ -1,7 +1,7 @@ --- title: ClearAnimations sidebar_label: ClearAnimations -description: Clears all animations for the given player (it also cancels all current tasks such as jetpacking, parachuting,entering vehicles, driving (removes player out of vehicle), swimming, etc. +description: Clears all animations for the given player. tags: [] --- diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md index 839c999bb7c..35fa0336d7e 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md @@ -1,7 +1,7 @@ --- title: CreatePickup sidebar_label: CreatePickup -description: This function does exactly the same as AddStaticPickup, except it returns a pickup ID which can be used to destroy it afterwards and be tracked using OnPlayerPickUpPickup. +description: This function does exactly the same as AddStaticPickup, except it returns a pickup ID. tags: [] --- diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md index 42cdb583196..74ba26e3c01 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md @@ -1,13 +1,13 @@ --- title: GetMaxPlayers sidebar_label: GetMaxPlayers -description: Returns the maximum number of players that can join the server, as set by the server variable 'maxplayers' in server. +description: Returns the maximum number of players that can join the server, as set by the server variable 'max_players'. tags: ["player"] --- ## คำอธิบาย -Returns the maximum number of players that can join the server, as set by the server variable 'maxplayers' in server.cfg. +Returns the maximum number of players that can join the server, as set by the server variable 'max_players' in config.json. | Name | Description | | ---- | ----------- | @@ -24,7 +24,7 @@ SendClientMessage(playerid, 0xFFFFFFFF, s); :::warning -This function can not be used in place of MAX_PLAYERS. It can not be used at compile time (e.g. for array sizes). MAX_PLAYERS should always be re-defined to what the 'maxplayers' var will be, or higher. See MAX_PLAYERS for more info. +This function can not be used in place of MAX_PLAYERS. It can not be used at compile time (e.g. for array sizes). MAX_PLAYERS should always be re-defined to what the 'max_players' var will be, or higher. See MAX_PLAYERS for more info. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarType.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarType.md index 5d8b1a2bfed..f8f530554ba 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarType.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarType.md @@ -18,6 +18,13 @@ Gets the type (integer, float or string) of a player variable. Returns the type of the PVar. See table below. +| ID | Type | +| --- | -------------------------------------------------------------------- | +| 0 | PLAYER_VARTYPE_NONE (player variable with given name does not exist) | +| 1 | PLAYER_VARTYPE_INT | +| 2 | PLAYER_VARTYPE_STRING | +| 3 | PLAYER_VARTYPE_FLOAT | + ## ตัวอย่าง ```c diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetActor.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetActor.md index ab4d6293199..843848cce15 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetActor.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetActor.md @@ -25,6 +25,8 @@ The ID of the actor the player is looking at. ## ตัวอย่าง +Actors perform a 'hands up' animation when aimed at: + ```c new bool:ActorHandsup[MAX_ACTORS]; @@ -67,7 +69,7 @@ public OnPlayerUpdate(playerid) :::tip -This function only tells you which actor (if any) the player is looking at. To find out if they are aiming at them, you need to use GetPlayerTargetActor. +This function only tells you which actor (if any) the player is looking at. To find out if they are aiming at them, you need to use [GetPlayerTargetActor](GetPlayerTargetActor). ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md index 8738875b3e3..e588f0c201c 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md @@ -17,6 +17,10 @@ Get the specified player's IP address and store it in a string. ## ส่งคืน +The length of the player's IP address. + +**-1** if player specified doesn't exist. + The player's IP address is stored in the specified array. ## ตัวอย่าง diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md index c752c494f86..a8acca51709 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md @@ -22,6 +22,8 @@ The keys are stored in the specified variables. ## ตัวอย่าง +The following example shows how you can regularly check the up/down/left/right values using [OnPlayerUpdate](../callbacks/OnPlayerUpdate). + ```c public OnPlayerUpdate(playerid) { diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md index 88b984d0a03..c98b74b4af7 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md @@ -17,6 +17,10 @@ Returns the SA-MP client version, as reported by the player. ## ส่งคืน +The length of the player's client version. + +**0** if player specified doesn't exist. + The client version is stored in the specified array. ## ตัวอย่าง diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarType.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarType.md index fd87826b213..7bb2970ad3c 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarType.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarType.md @@ -17,6 +17,8 @@ Gets the type (integer, float or string) of a server variable. Returns the type of the SVar. See table below. +Returns `SERVER_VARTYPE_NONE` (0) if a server variable with the given name does not exist. + ## ตัวอย่าง ```c diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarsUpperIndex.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarsUpperIndex.md index 3be2c500e95..5be17a5596b 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarsUpperIndex.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarsUpperIndex.md @@ -12,6 +12,10 @@ Each SVar (server-variable) has its own unique identification number for lookup, | Name | Description | | ---- | ----------- | +## ส่งคืน + +The highest set SVar ID. + ## ตัวอย่าง ```c diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md index 4f945363803..cdcfba417a3 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md @@ -33,7 +33,9 @@ if (IsPlayerStreamedIn(playerid, 0)) :::note -Players stream out if they are more than 150 meters away (see server.cfg - stream_distance) +**SA-MP server:** Players stream out if they are more than 200.0 meters away (see server.cfg - stream_distance) + +**open.mp server:** Players stream out if they are more than 200.0 meters away (see config.json - network.stream_radius) ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md index beb5e3fdb01..7b71314d97c 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md @@ -1,7 +1,7 @@ --- title: Kick sidebar_label: Kick -description: Kicks a player from the server. They will have to quit the game and re-connect if they wish to continue playing. +description: Kicks a player from the server. tags: ["administration"] --- diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md index 65ff1b8256e..e390661def6 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md @@ -48,3 +48,6 @@ Once set invulnerable, the actor does not call OnPlayerGiveDamageActor. Players ::: ## ฟังก์ชั่นที่เกี่ยวข้องกัน + +- [CreateActor](CreateActor): Create an actor (static NPC). +- [SetActorHealth](SetActorHealth): Set the health of an actor. diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md index c9d1619ed5f..4f80d363760 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md @@ -21,6 +21,23 @@ Sets a timer to call a function after the specified interval. This variant ('Ex' The ID of the timer that was started. Timer IDs start at 1 and are never reused. +## Format Specifiers + +| Specifier | Meaning | +| --------- | -------------------------------------------------------------------------------- | +| `i` | Integer. | +| `d` | Integer. | +| `a` | Array. The next parameter must be an integer (`i` or `d`) with the array's size. | +| `s` | String. | +| `f` | Float. | +| `b` | Boolean (true/false). | + +:::note + +The array (`a`) and string (`s`) specifiers are unusable in SA-MP. Passing arrays and strings to timers is only supported in open.mp. + +::: + ## ตัวอย่าง ```c diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md index eb6f47efae4..2de24795811 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md @@ -45,3 +45,7 @@ This function has no affect on un-occupied vehicles and does not affect trains. ::: ## ฟังก์ชั่นที่เกี่ยวข้องกัน + +- [SetVehicleAngularVelocity](SetVehicleAngularVelocity): Set the angular velocity of a vehicle. +- [SetPlayerVelocity](SetPlayerVelocity): Set a player's velocity. +- [GetPlayerVelocity](GetPlayerVelocity): Get a player's velocity. diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md index 6d20bedc863..76836140ca2 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md @@ -33,6 +33,12 @@ public OnGameModeInit() ## บันทึก +:::tip + +You can also use GameText colors in textdraws (e.g. `~r~` `~g~` `~b~`). + +::: + :::note If the TextDraw is already shown, it must be re-shown (TextDrawShowForAll/TextDrawShowForPlayer) for the changes of this function to take effect. diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/print.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/print.md index 621818a1f64..6580d093c7d 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/print.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/print.md @@ -1,13 +1,13 @@ --- title: print sidebar_label: print -description: Prints a string to the server console (not in-game chat) and logs (server_log. +description: Prints a string to the server console (not in-game chat) and logs (log.txt). tags: [] --- ## คำอธิบาย -Prints a string to the server console (not in-game chat) and logs (server_log.txt). +Prints a string to the server console (not in-game chat) and logs (log.txt). | Name | Description | | -------- | -------------------- | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/resources/mapiconstyles.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/resources/mapiconstyles.md index 3c63ef9bef2..0f08eccd27e 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/resources/mapiconstyles.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/resources/mapiconstyles.md @@ -11,6 +11,12 @@ description: A list of Map Icons | 2 | MAPICON_LOCAL_CHECKPOINT | Yes | Close proximity only | | 3 | MAPICON_GLOBAL_CHECKPOINT | Yes | Show on radar edge as long as in range | +:::note + +The checkpoint styles also show a checkpoint-like marker in the game world at the icon's position, so remember to use a correct Z coordinate (not just X and Y) when using them. + +::: + ## ฟังก์ชั่นที่เกี่ยวข้องกัน - [SetPlayerMapIcon](../functions/SetPlayerMapIcon): Create a mapicon for a player. diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md index 6dc6d45d003..87091de04e1 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md @@ -1,7 +1,7 @@ --- title: OnDialogResponse sidebar_label: OnDialogResponse -description: Bu geri çağırma, bir oyuncu ShowPlayerDialog kullanılarak gösterilen bir dialog içerisinde bir butona tıkladığında, ENTER / esc tuşlarına bastığında veya liste dialogu içerisindeki bir seçeneğe çift tıkladığında(bu seçenek için dialog'un stili list olmalıdır) tetiklenir. +description: Bu geri çağırma, bir oyuncu ShowPlayerDialog kullanılarak gösterilen bir dialoga yanıt verdiğinde tetiklenir. tags: [] --- diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md index 5e48e821c68..eb304266099 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md @@ -1,7 +1,7 @@ --- title: OnPlayerEnterVehicle sidebar_label: OnPlayerEnterVehicle -description: Bu geri çağırma, bir oyuncu bir araca binmeye başladığında çağırılır, oyuncu araca bindiğinde çağırılmaz, binmeye başladığında (araca doğru yürüme/koşma animasyonu başladığında) çağırılır. +description: Bu geri çağırma, bir oyuncu bir araca binmeye başladığında çağırılır. tags: ["player", "vehicle"] --- @@ -17,6 +17,8 @@ Bu geri çağırma, bir oyuncu bir araca binmeye başladığında çağırılır ## Çalışınca Vereceği Sonuçlar +Bu geri çağırma dönüşleri ele almaz. + Her zaman ilk olarak filterscriptlerde çağırılır. ## Örnek diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md index 7134237d30a..dff42f4a212 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md @@ -11,11 +11,11 @@ tags: ["player"] Fonksiyon, bir oyuncu özel model indirmeleri istediğinde çağrılır. -| Parametre | Açıklama | -| --------- | ------------------------------------------ | -| playerid | Model indirmesi isteyen oyuncunun ID'si. | -| type | İsteğin türü (aşağıya bakın). | -| crc | Özel model dosyasının CRC sağlama toplamı. | +| Parametre | Açıklama | +| --------- | --------------------------------------------------------------------------------------------------- | +| playerid | Model indirmesi isteyen oyuncunun ID'si. | +| type | İsteğin türü (aşağıya bakın). | +| crc | Özel model dosyasının [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) sağlama toplamı. | ## Çalışınca Vereceği Sonuçlar diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md index 87b702ca07c..84e867a22e7 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md @@ -55,4 +55,5 @@ Sanal dünya ayarlandığında bunun çalışması için öncelikle sunucu ayarl ## Bağlantılı Fonksiyonlar +- [AddSimpleModelTimed](AddSimpleModelTimed): İndirmek için yeni bir basit nesne modeli ekler. - [OnPlayerFinishedDownloading](../callbacks/OnPlayerFinishedDownloading): Bir oyuncu özel modelleri indirmeyi bitirdiğinde çağrılır. diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md index 227b61c7407..cee459a473e 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md @@ -57,4 +57,5 @@ Sanal dünya ayarlandığında bunun çalışması için öncelikle sunucu ayarl ## Bağlantılı Fonksiyonlar +- [AddSimpleModel](AddSimpleModel): İndirmek için yeni bir özel basit nesne modeli ekler. - [OnPlayerFinishedDownloading](../callbacks/OnPlayerFinishedDownloading): Bir oyuncu özel modelleri indirmeyi bitirdiğinde çağrılır. diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md index e14cbf9732d..f9ed53d9a49 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md @@ -7,7 +7,7 @@ tags: ["administration"] ## Açıklama -Sunucuda aktif olan birisini yasaklayın. Yasaklanan kişi bir daha sunucuya giremez. Yasaklanan kişi IP tabanlı yasaklanır ve sunucu dizininde bulunan samp.ban dosyasına yasaklama kaydı oluşturulur. Özel bir neden göstemrek için BanEx kullanılabilir. IP yasaklamalarını kaldırmak/eklemek için RCON gişirinizden sonra banip ve unbanip komutlar kullanılabilir. +Sunucuda aktif olan birisini yasaklayın. Yasaklanan kişi bir daha sunucuya giremez. Yasaklanan kişi IP tabanlı yasaklanır ve sunucu dizininde bulunan **bans.json** dosyasına yasaklama kaydı oluşturulur. Özel bir neden göstemrek için BanEx kullanılabilir. IP yasaklamalarını kaldırmak/eklemek için RCON gişirinizden sonra banip ve unbanip komutlar kullanılabilir. | Parametre | Açıklama | | --------- | ----------------------------- | diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md index ac30cf7a7b2..9d61e4ca3f8 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md @@ -711,3 +711,10 @@ MyFunction(num) return 0; } ``` + +## Ayrıca bakınız + +- [Anahtar Kelimeler: İfadeler](Statements) +- [Anahtar Kelimeler: Operatörler](Operators) +- [Anahtar Kelimeler: Direktifler](Directives) +- [Anahtar Kelimeler: Başlatıcılar](Initialisers) diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Directives.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Directives.md index 7ed89d8024a..c7e0a93019b 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Directives.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Directives.md @@ -76,6 +76,16 @@ Define'lerin çok satırlı olabileceğini, yeni satıra kaçarak yapabileceğin new i = 0; i < MAX_PLAYERS; i++) \ if (IsPlayerConnected(i) +for (PL) +{ + printf("%d connected", i); +} +``` + +```c +#define MOO(%0) \ + ((%0) * 7) + printf("%d", MOO(6)); ``` @@ -110,7 +120,7 @@ Operasyonların sırasına bağlı olarak, bunun (5 + (6 \* 7)) olarak derlendi ```c #define PP(%0,%1) \ - printf(%0, %1) + printf(#%0, %1) PP(%s %s %s, "hi", "hello", "hi"); ``` diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Initialisers.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Initialisers.md index 6c4035baeb0..2ded0053e08 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Initialisers.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Initialisers.md @@ -123,7 +123,7 @@ enum E_EXAMPLE (*= 2) } ``` -Bu durumda tüm değerler 0'dır. Neden? İlk değer varsayılan olarak 0'dır, sonra 0 _ 2 = 0, sonra 0 _ 2 = 0 ve 0 \* 2 = 0. Peki bunu nasıl düzeltebiliriz? İşte bu durumda özel değerler devreye girer: +Bu durumda tüm değerler 0'dır. Neden? İlk değer varsayılan olarak 0'dır, sonra 0 \* 2 = 0, sonra 0 \* 2 = 0 ve 0 \* 2 = 0. Peki bunu nasıl düzeltebiliriz? İşte bu durumda özel değerler devreye girer: ```c enum E_EXAMPLE (*= 2) @@ -419,7 +419,7 @@ Not: `forward`, geri dönüş etiketini de içerir. Bir doğal işlev, sanal makinede (yani, betikleri çalıştıran şeyde) tanımlanan bir işlevidir, doğrudan betikte değil. SA:MP veya bir eklentiye kodlanmışsa yalnızca doğal işlevleri tanımlayabilirsiniz, ancak sahte doğal işlevler oluşturabilirsiniz. .inc dosyalarındaki doğal işlevler pawno tarafından algılandığından ve pawno'nun sağ tarafındaki listede göründüğünden, kendi özel işlevlerinizi orada listelenmiş olarak görmek faydalı olabilir. Normal bir doğal deklarasyon şu şekilde görünebilir: ```c -native printf(const format[], \{Float, _}:...); +native printf(const format[], {Float, _}:...); ``` Eğer kendi işlevlerinizin doğal olarak listelenmesini istiyorsanız, şu şekilde bir şey yapabilirsiniz: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Statements.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Statements.md index 549a81108d9..f15ac95cbfe 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Statements.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Statements.md @@ -366,6 +366,7 @@ printf("Bu yazdırılacak"); Ancak derleyici goto'yu çok iyi işlemez, bu yüzden hiçbir şekilde optimize edilmez ve şunun gibi şeyler: ```c +stock MyFunction() { new i = 5; @@ -437,7 +438,17 @@ if (i < 10) If'ın alabileceği koşullar bu gönderi için çok fazla olduğundan, bazıları aşağıda listelenmiştir: -Operator Açıklama Örnek a=1, b=0 Durum a=1, b=1 Durum a=0, b=1 Durum a=0, b=0 Durum == Bir şeyin başka bir şeye eşit olup olmadığını kontrol eder if (a == b) false true false true != Bir şeyin başka bir şeye eşit olmadığını kontrol eder if (a != b) true false true false {'<'} Bir şeyin başka bir şeyden küçük olup olmadığını kontrol eder if (a {'<'} b) false false true false > Bir şeyin başka bir şeyden büyük olup olmadığını kontrol eder if (a > b) true false false false {'<='} Bir şeyin başka bir şeyden küçük veya eşit olup olmadığını kontrol eder if (a {'<='} b) false true true true >= Bir şeyin başka bir şeyden büyük veya eşit olup olmadığını kontrol eder if (a >= b) true true false true && İki şeyin doğru olup olmadığını kontrol eder (0 değil) if (a && b) false true false false || İki şeyden en az birinin doğru olup olmadığını kontrol eder (0 değil) if (a || b) true true true false ! Bir şeyin yanlış olup olmadığını kontrol eder if (!(a == b)) true false true false +| Operator | Açıklama | Örnek | a=1, b=0 Durum | a=1, b=1 Durum | a=0, b=1 Durum | a=0, b=0 Durum | +| -------- | ----------------------------------------------------------------------- | ---------------- | -------------- | -------------- | -------------- | -------------- | +| `==` | Bir şeyin başka bir şeye eşit olup olmadığını kontrol eder | `if (a == b)` | false | true | false | true | +| `!=` | Bir şeyin başka bir şeye eşit olmadığını kontrol eder | `if (a != b)` | true | false | true | false | +| `<` | Bir şeyin başka bir şeyden küçük olup olmadığını kontrol eder | `if (a < b)` | false | false | true | false | +| `>` | Bir şeyin başka bir şeyden büyük olup olmadığını kontrol eder | `if (a > b)` | true | false | false | false | +| `<=` | Bir şeyin başka bir şeyden küçük veya eşit olup olmadığını kontrol eder | `if (a <= b)` | false | true | true | true | +| `>=` | Bir şeyin başka bir şeyden büyük veya eşit olup olmadığını kontrol eder | `if (a >= b)` | true | true | false | true | +| `&&` | İki şeyin doğru olup olmadığını kontrol eder (0 değil) | `if (a && b)` | false | true | false | false | +| `\|\|` | İki şeyden en az birinin doğru olup olmadığını kontrol eder (0 değil) | `if (a \|\| b)` | true | true | true | false | +| `!` | Bir şeyin yanlış olup olmadığını kontrol eder | `if (!(a == b))` | true | false | true | false | Bu ifadelerle karmaşık koşullar oluşturabilirsiniz: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Style.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Style.md index 25a7f3ab879..3460190b184 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Style.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Style.md @@ -1,7 +1,7 @@ --- title: "Pawn Stil Rehberi" sidebar_label: "Pawn Stil Rehberi" -description: Amaç, Pawn kaynak kodunun genellikle kabul edilen adlandırma kuralları ve diğer yönleri hakkında kısa bir rehber sunarak niyetin daha kolay iletilmesine ve kodun paylaşılmasına yönelik hata ayıklamayı kolaylaştırmaktır. +description: Amaç, Pawn kaynak kodunun genellikle kabul edilen adlandırma kuralları ve diğer yönleri hakkında kısa bir rehber sunmaktır. --- Amaç, Pawn kaynak kodunun genellikle kabul edilen adlandırma kuralları ve diğer yönleri hakkında kısa bir rehber sunarak niyetin daha kolay iletilmesine ve kodun paylaşılmasına yönelik hata ayıklamayı kolaylaştırmaktır. diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md index ac9280a89c3..3334414ff38 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md @@ -5,7 +5,7 @@ sidebar_label: Yaygın Sunucu Sorunları ## Sunucunun hemen çökmesi -En yaygın olarak, server.cfg dosyanızda bir hata veya oyun modunuzun eksik olmasından kaynaklanıyor olabilir. server_log.txt dosyasını kontrol edin, sunucunun çökmesine sebep olan sorun genellikle en altta yazar. Eğer bulamazsanız, crashinfo.txt dosyasını kontrol edin. Çökmeye neyin sebep olduğunu bulmak için daha iyi bir bir yöntem olan, Zeex/0x5A656578 tarafından geliştirilen Crash Detect eklentisini kullanmaktır ([link için tıklayın](https://github.com/AmyrAhmady/samp-plugin-crashdetect)). Bu eklenti, satır numaraları, fonksiyon adları, parametre değerleri gibi daha fazla bilgi sağlayacaktır. Eğer script debug modunda derlenmişse (-d3 flag), derleyici tüm bu bilgileri çıktı olarak .amx dosyasına ekleyecektir. +En yaygın olarak, config.json dosyanızda bir hata veya oyun modunuzun eksik olmasından kaynaklanıyor olabilir. log.txt dosyasını kontrol edin, sunucunun çökmesine sebep olan sorun genellikle en altta yazar. Eğer bulamazsanız, crashinfo.txt dosyasını kontrol edin. Çökmeye neyin sebep olduğunu bulmak için daha iyi bir bir yöntem olan, Zeex/0x5A656578 tarafından geliştirilen Crash Detect eklentisini kullanmaktır ([link için tıklayın](https://github.com/AmyrAhmady/samp-plugin-crashdetect)). Bu eklenti, satır numaraları, fonksiyon adları, parametre değerleri gibi daha fazla bilgi sağlayacaktır. Eğer script debug modunda derlenmişse (-d3 flag), derleyici tüm bu bilgileri çıktı olarak .amx dosyasına ekleyecektir. ## Sunucu çalışmıyor - güvenlik duvarı devre dışı diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/server/ControllingServer.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/server/ControllingServer.md index a786532165b..ac35a4687a6 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/server/ControllingServer.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/server/ControllingServer.md @@ -18,14 +18,26 @@ description: Sunucuyu kontrol etmek için kullanışlı komutlar. Özel bir oyun modu çalıştırmakla aynıdır, fakat farklı olarak: - .amx uzantılı Filterscriptler, sunucu ana dizininde bulunan `filterscripts` adlı klasörde barındırılır. -- server.cfg yapılandırma dosyasına şöyle eklenir: `filterscripts ` +- Filterscript yolunu `.amx` uzantısı olmadan [config.json](config.json) dosyasındaki `pawn.side_scripts` listesine ekleyin: + +```json +{ + "pawn": { + "side_scripts": [ + "filterscripts/scriptname" + ] + } +} +``` ## Sunucunuza Şifre Koyma -- Sadece arkadaşlarınızın katılmasını istiyorsanız, [server.cfg](server.cfg) - sunucu yapılandırma dosyasına şunu ekleyin: +- Sadece arkadaşlarınızın katılmasını istiyorsanız, [config.json](config.json) - sunucu yapılandırma dosyasına şunu ekleyin: -``` -password herneyse +```json +{ + "password": "herneyse" +} ``` - Bu, sunucunuzu 'herneyse' olarak ayarlanmış bir şifre ile korumalı hale getirecektir - istediğiniz şeyi yazarak değiştirebilirsiniz. @@ -36,24 +48,26 @@ password herneyse ### Giriş Yapma -Girişi oyun içi `/rcon login sifre` yazarak veya [server.cfg](server.cfg) dosyasında ayarladığınız şifreyi kullanarak oyun dışından RCON modunu kullanarak yapabilirsiniz. +Girişi oyun içi `/rcon login sifre` yazarak veya [config.json](config.json) dosyasında `rcon.password` ile ayarladığınız şifreyi kullanarak oyun dışından RCON modunu kullanarak yapabilirsiniz. ### Oyuncu Yasaklama -##### samp.ban +##### bans.json -samp.ban, yasaklamalar hakkında bilgileri içeren bir dosyadır, yasaklamalar hakkında aşağıdaki bilgileri içerir: +bans.json, yasaklamalar hakkında bilgileri içeren bir dosyadır, yasaklamalar hakkında aşağıdaki bilgileri içerir: - IP - Tarih - Saat -- Ad (Kişinin adı veya bir neden, [BanEx](../scripting/functions/BanEx) sayfasına bakın) -- Yasaklama türü +- Ad (Kişinin adı) +- Neden ([BanEx](../scripting/functions/BanEx) sayfasına bakın) -Oyuncu yasaklamak için, basitçe şu şekilde bir satır ekleyin: +Oyuncu yasaklamak için, basitçe JSON dizisine şu şekilde bir nesne ekleyin: -``` -IP_BURAYA [28/05/09 | 13:37:00] OYUNCU - YASAKLAMA NEDENİ +```json +[ + {"address": "IP_BURAYA", "player": "OYUNCU", "reason": "YASAKLAMA NEDENİ", "time": "2009-05-28T13:37:00+0000"} +] ``` `IP_BURAYA` kısmına, yasaklamak istediğiniz IP'yi ekleyin. @@ -62,8 +76,10 @@ IP_BURAYA [28/05/09 | 13:37:00] OYUNCU - YASAKLAMA NEDENİ [Ban](../scripting/functions/Ban) fonksiyonu bir oyuncuyu script üzerinden yasaklamak için kullanılabilir. [BanEx](../scripting/functions/BanEx) fonksiyonu, aşağıdaki gibi isteğe bağlı bir neden ekler: -``` -13.37.13.37 [28/05/09 | 13:37:00] Sack - OYUNICI YASAKLAMA +```json +[ + {"address": "13.37.13.37", "player": "Sack", "reason": "OYUNICI YASAKLAMA", "time": "2009-05-28T13:37:00+0000"} +] ``` ##### RCON Yasaklama Komutu @@ -98,27 +114,29 @@ banip IP Birisi oyuncunun yasağını kaldırmanın iki yolu vardır. -- samp.ban dosyasından kaldırmak +- bans.json dosyasından kaldırmak - Konsoldan veya oyun içinden RCON `unbanip` komutunu kullanmak -#### samp.ban +#### bans.json -samp.ban, sa-mp sunucu dizininde bulunabilir ve içinde şu bilgileri içeren IP'ler hakkında bilgi içerir: +bans.json, open.mp sunucu dizininde bulunabilir ve içinde şu bilgileri içeren IP'ler hakkında bilgi içerir: - IP - Tarih - Saat -- Ad (Kişinin adı veya neden (bkz: [BanEx](../scripting/functions/BanEx))) -- Yasak Türü (OYUNİÇİ, IP BAN vb.) +- Ad (Kişinin adı) +- Neden (bkz: [BanEx](../scripting/functions/BanEx)) Örnekler: -``` -127.8.57.32 [13/06/09 | 69:69:69] YOK - IP BAN -13.37.13.37 [28/05/09 | 13:37:00] Martin - OYUN İÇİ YASAK +```json +[ + {"address": "127.8.57.32", "player": "YOK", "reason": "IP BAN", "time": "2009-06-13T13:37:00+0000"}, + {"address": "13.37.13.37", "player": "Martin", "reason": "OYUN İÇİ YASAK", "time": "2009-05-28T13:37:00+0000"} +] ``` -Yasaklanan oyunucunun yasağını kaldırmak için, sadece satırı kaldırın ve ardından sunucunun samp.ban'ı tekrar okumasını sağlamak için RCON `reloadbans` komutunu kullanın. +Yasaklanan oyunucunun yasağını kaldırmak için, sadece nesneyi kaldırın ve ardından sunucunun bans.json'ı tekrar okumasını sağlamak için RCON `reloadbans` komutunu kullanın. #### unbanip @@ -126,8 +144,10 @@ RCON unbanip komutu oyun içi `/rcon unbanip IP_BURAYA` yazarak veya konsol'a "u Örnek: -``` -13.37.13.37 [28/05/09 | 13:37:00] Martin - OYUN İÇİ BAN +```json +[ + {"address": "13.37.13.37", "player": "Martin", "reason": "OYUN İÇİ BAN", "time": "2009-05-28T13:37:00+0000"} +] ``` ``` @@ -138,11 +158,11 @@ RCON unbanip komutu oyun içi `/rcon unbanip IP_BURAYA` yazarak veya konsol'a "u unbanip 13.37.13.37 ``` -Yasağı kaldırmak için, sadece `unbanip` komutunu kullanın ve ardından sunucunun `samp.ban`'ı tekrar okumasını sağlamak için RCON `reloadbans` komutunu kullanın. +Yasağı kaldırmak için, sadece `unbanip` komutunu kullanın. #### reloadbans -`samp.ban`, sunucudan yasaklanan IP adresleri hakkındaki bilgileri içeren bir dosyadır. Bu dosya, sunucu çalıştırıldığında okunur, bu nedenle bir IP'yi veya oyuncuyu yasaklarsanız, sunucunun `samp.ban`'ı tekrar okumasını sağlamak için RCON `reloadbans` komutunu yazmalısınız, böylece tekrar sunucuya giremezler. +`bans.json`, sunucudan yasaklanan IP adresleri hakkındaki bilgileri içeren bir dosyadır. Bu dosya, sunucu çalıştırıldığında okunur, bu nedenle dosyayı düzenleyerek bir IP'yi veya oyuncuyu yasaklarsanız, sunucunun `bans.json`'ı tekrar okumasını sağlamak için RCON `reloadbans` komutunu yazmalısınız, böylece tekrar sunucuya giremezler. ### RCON Komutları @@ -150,39 +170,39 @@ Oyun içinde (`/rcon cmdlist` yazarak) RCON kullanarak kullanabileceğiniz komut Aşağıdaki komutları sadece RCON girişi yapmış yöneticiler kullanabilir: -| Komut | Açıklama | -| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `/rcon cmdlist` | Komutları gösterir. | -| `/rcon varlist` | Mevcut değişkenleri gösterir. | -| `/rcon exit` | Sunucuyu kapatır. | -| `/rcon echo [metin]` | Metni sunucu konsolunda gösterir (Oyun içi oyuncu konsolu değil). | -| `/rcon hostname [isim]` | hostname metnini değiştirir (_örnek: /rcon hostname benim sunucum_). | -| `/rcon gamemodetext [isim]` | oyun modu metnini değiştirir (_örnek: /rcon gamemodetext benim oyun modum_). | -| `/rcon mapname [isim]` | harita metnini değiştirir (_örnek: /rcon mapname San Andreas_). | -| `/rcon exec [dosyaadı]` | Sunucu yapılandırmalarını içeren dosyayı yürütür (_örnek: /rcon exec blah.cfg_). | -| `/rcon kick [ID]` | Belirtilen ID'ye sahip oyuncuyu sunucudan atar (_örnek: /rcon kick 2_). | -| `/rcon ban [ID]` | Belirtilen ID'ye sahip oyuncuyu yasaklar (_örnek: /rcon ban 2_). | -| `/rcon changemode [mod]` | Bu komut, mevcut oyun modunu belirtilen oyun modu ile değiştirecek (_örnek: sftdm oynamak istiyorsanız: /rcon changemode sftdm_). | -| `/rcon gmx` | [server.cfg](server.cfg) dosyasındaki bir sonraki oyun modunu yükler. | -| `/rcon reloadbans` | Yasaklı IP adreslerini içeren `samp.ban` dosyasını tekrar yükler. Bu, bir IP'yi yasakladıktan sonra kullanılmalıdır. | -| `/rcon reloadlog` | `server_log.txt` dosyasını tekrar yükler. Otomatik log döndürme için kullanışlıdır. Sadece Linux sunucuda `SIGUSR1` sinyali gönderilerek tetiklenebilir. | -| `/rcon say` | Oyuncu konsoluna mesaj gösterir (örnek: `/rcon say merhaba` "Admin: merhaba" olarak görüntülenir). | -| `/rcon players` | Sunucuda bulunan oyuncuları (adları, IP'leri ve ping'leri ile birlikte) gösterir. | -| `/rcon banip [IP]` | Belirtilen IP'yi yasaklar (_örnek: /rcon banip 127.0.0.1_). | -| `/rcon unbanip [IP]` | Belirtilen IP'nin yasaklamasını kaldırır (_örnek: /rcon unbanip 127.0.0.1_). | -| `/rcon gravity` | Yer çekimini değiştirir (_örnek: /rcon gravity 0.008_). | -| `/rcon weather [ID]` | Hava durumunu değiştirir (_örnek: /rcon weather 1_). | -| `/rcon loadfs` | Belirtilem filterscript'i yükler (_örnek: /rcon loadfs adminfs_). | -| `/rcon weburl [sunucu url]` | Masterlist/SA-MP istemcisinde görünen sunucu URL'sini değiştirir. | -| `/rcon unloadfs` | Belirtilen filterscript'i devre dışı bırakır (_örnek: /rcon unloadfs adminfs_). | -| `/rcon reloadfs` | Belirtilem filterscript'i tekrar yükler (_örnek: /rcon reloadfs adminfs_). | -| `/rcon rcon_password [ŞİFRE]` | Rcon'un şifresini değiştirir. | -| `/rcon password [şifre]` | Sunucu şifresini ayarlar/sıfırlar. | -| `/rcon messageslimit [sayı]` | İstemcinin sunucuya saniyede gönderdiği mesaj sayısını değiştirir. (varsayılan 500) | -| `/rcon ackslimit [sayı]` | Ack'ların sınırını değiştirir (varsayılan 3000) | -| `/rcon messageholelimit [sayı]` | Mesaj deliklerinin sınırını değiştirir (varsayılan 3000). | -| `/rcon playertimeout [limit ms]` | Bir oyuncunun hiç paket göndermediği süreyi milisaniye cinsinden değiştirir (varsayılan 1000). | -| `/rcon language [dil]` | Sunucu dilini değiştirir (_örnek: /rcon language Turkish_). Sunucu tarayıcısında gösterilir. | +| Komut | Açıklama | +| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | +| `/rcon cmdlist` | Komutları gösterir. | +| `/rcon varlist` | Mevcut değişkenleri gösterir. | +| `/rcon exit` | Sunucuyu kapatır. | +| `/rcon echo [metin]` | Metni sunucu konsolunda gösterir (Oyun içi oyuncu konsolu değil). | +| `/rcon hostname [isim]` | hostname metnini değiştirir (_örnek: /rcon hostname benim sunucum_). | +| `/rcon gamemodetext [isim]` | oyun modu metnini değiştirir (_örnek: /rcon gamemodetext benim oyun modum_). | +| `/rcon mapname [isim]` | harita metnini değiştirir (_örnek: /rcon mapname San Andreas_). | +| `/rcon exec [dosyaadı]` | Sunucu yapılandırmalarını içeren dosyayı yürütür (_örnek: /rcon exec blah.cfg_). | +| `/rcon kick [ID]` | Belirtilen ID'ye sahip oyuncuyu sunucudan atar (_örnek: /rcon kick 2_). | +| `/rcon ban [ID]` | Belirtilen ID'ye sahip oyuncuyu yasaklar (_örnek: /rcon ban 2_). | +| `/rcon changemode [mod]` | Bu komut, mevcut oyun modunu belirtilen oyun modu ile değiştirecek (_örnek: sftdm oynamak istiyorsanız: /rcon changemode sftdm_). | +| `/rcon gmx` | [config.json](config.json) dosyasındaki bir sonraki oyun modunu yükler. | +| `/rcon reloadbans` | Yasaklı IP adreslerini içeren `bans.json` dosyasını tekrar yükler. Bu, dosyayı düzenleyerek bir IP'yi yasakladıktan sonra kullanılmalıdır. | +| `/rcon reloadlog` | `log.txt` dosyasını tekrar yükler. Otomatik log döndürme için kullanışlıdır. Sadece Linux sunucuda `SIGUSR1` sinyali gönderilerek tetiklenebilir. | +| `/rcon say` | Oyuncu konsoluna mesaj gösterir (örnek: `/rcon say merhaba` "Admin: merhaba" olarak görüntülenir). | +| `/rcon players` | Sunucuda bulunan oyuncuları (adları, IP'leri ve ping'leri ile birlikte) gösterir. | +| `/rcon banip [IP]` | Belirtilen IP'yi yasaklar (_örnek: /rcon banip 127.0.0.1_). | +| `/rcon unbanip [IP]` | Belirtilen IP'nin yasaklamasını kaldırır (_örnek: /rcon unbanip 127.0.0.1_). | +| `/rcon gravity` | Yer çekimini değiştirir (_örnek: /rcon gravity 0.008_). | +| `/rcon weather [ID]` | Hava durumunu değiştirir (_örnek: /rcon weather 1_). | +| `/rcon loadfs` | Belirtilem filterscript'i yükler (_örnek: /rcon loadfs adminfs_). | +| `/rcon weburl [sunucu url]` | Masterlist/SA-MP istemcisinde görünen sunucu URL'sini değiştirir. | +| `/rcon unloadfs` | Belirtilen filterscript'i devre dışı bırakır (_örnek: /rcon unloadfs adminfs_). | +| `/rcon reloadfs` | Belirtilem filterscript'i tekrar yükler (_örnek: /rcon reloadfs adminfs_). | +| `/rcon rcon_password [ŞİFRE]` | Rcon'un şifresini değiştirir. | +| `/rcon password [şifre]` | Sunucu şifresini ayarlar/sıfırlar. | +| `/rcon messageslimit [sayı]` | İstemcinin sunucuya saniyede gönderdiği mesaj sayısını değiştirir. (varsayılan 500) | +| `/rcon ackslimit [sayı]` | Ack'ların sınırını değiştirir (varsayılan 3000) | +| `/rcon messageholelimit [sayı]` | Mesaj deliklerinin sınırını değiştirir (varsayılan 3000). | +| `/rcon playertimeout [limit ms]` | Bir oyuncunun hiç paket göndermediği süreyi milisaniye cinsinden değiştirir (varsayılan 1000). | +| `/rcon language [dil]` | Sunucu dilini değiştirir (_örnek: /rcon language Turkish_). Sunucu tarayıcısında gösterilir. | Yukarıdaki dört sınırlama/sayı, herhangi bir SA-MP sunucusuna saldıran birkaç çakkalı önlemek için yapılmıştır, bu nedenle sadece sunucunuza göre bunları ayarlayın. Varsayılan değerler, eğer yanlış bir şeyler görürseniz, masum oyuncuların bunun nedeniyle atılmaması için değerleri mümkün olan en kısa sürede arttırın. [Daha fazla bilgi için buraya bakın](https://sampforum.blast.hk/showthread.php?tid=506214&pid=2990193#pid2990193). diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md index eb06d6fed9a..e3da16028f4 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md @@ -1,7 +1,7 @@ --- title: OnDialogResponse sidebar_label: OnDialogResponse -description: Callback này được gọi khi một người chơi phản hồi một hộp thoại được hiển thị bằng cách sử dụng ShowPlayerDialog, bằng cách nhấp vào nút, nhấn ENTER/ESC hoặc nhấp đúp vào một mục trong danh sách (nếu sử dụng hộp thoại kiểu danh sách). +description: Callback này được gọi khi một người chơi phản hồi một hộp thoại được hiển thị bằng cách sử dụng ShowPlayerDialog. tags: ["dialog"] --- diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md index e66090eeb81..d620ce38ee3 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md @@ -1,7 +1,7 @@ --- title: OnPlayerEditObject sidebar_label: OnPlayerEditObject -description: Callback này được gọi khi một người chơi kết thúc việc chỉnh sửa một đối tượng ([BeginObjectEditing](../functions/BeginObjectEditing)/[BeginPlayerObjectEditing](../functions/BeginPlayerObjectEditing)). +description: Callback này được gọi khi một người chơi kết thúc việc chỉnh sửa một đối tượng. tags: ["player", "object"] --- diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md index 287afb1df1c..7926eeabd1d 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md @@ -17,6 +17,8 @@ Callback này được gọi khi một người chơi bắt đầu vào một ph ## Trả Về +Callback này không xử lý trả về. + Callback này luôn được gọi đầu tiên trong filterscripts. ## Ví Dụ diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md index 0deb9a5b28d..e17fba0f46b 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md @@ -11,11 +11,11 @@ tags: ["player"] Callback này được gọi khi một người chơi yêu cầu tải xuống mô hình tùy chỉnh. -| Tên | Mô Tả | -| --------------------- | -------------------------------------------------------- | -| playerid | ID của người chơi yêu cầu tải xuống mô hình tùy chỉnh. | -| DOWNLOAD_REQUEST:type | Loại của yêu cầu [type](../resources/download-requests). | -| crc | CRC checksum của tệp mô hình tùy chỉnh. | +| Tên | Mô Tả | +| --------------------- | ------------------------------------------------------------------------------------------------ | +| playerid | ID của người chơi yêu cầu tải xuống mô hình tùy chỉnh. | +| DOWNLOAD_REQUEST:type | Loại của yêu cầu [type](../resources/download-requests). | +| crc | [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) checksum của tệp mô hình tùy chỉnh. | ## Trả Về diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md index 2a0ac1cd322..7bd3a4c03f3 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md @@ -1,7 +1,7 @@ --- title: OnDialogResponse sidebar_label: OnDialogResponse -description: 当玩家响应通过ShowPlayerDialog显示的对话框时触发此回调。响应方式包括点击按钮、按下ENTER/ESC键或双击列表项(列表式对话框)。 +description: 当玩家响应通过ShowPlayerDialog显示的对话框时触发此回调。 tags: ["对话框"] --- diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md index 64a146e7e45..b011c87083f 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterVehicle.md @@ -17,6 +17,8 @@ tags: ["玩家", "车辆"] ## 返回值 +此回调不处理返回值。 + 此回调始终在滤镜脚本中优先触发 ## 示例 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md index e5b96034953..cf8b5e0b99e 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md @@ -11,11 +11,11 @@ tags: ["玩家"] 当玩家请求下载自定义模型资源时触发此回调函数 -| 参数 | 说明 | -| --------------------- | ---------------------------------------------- | -| playerid | 发起下载请求的玩家ID | -| DOWNLOAD_REQUEST:type | [下载请求类型](../resources/download-requests) | -| crc | 自定义模型文件的CRC校验值 | +| 参数 | 说明 | +| --------------------- | ---------------------------------------------------------------------------------- | +| playerid | 发起下载请求的玩家ID | +| DOWNLOAD_REQUEST:type | [下载请求类型](../resources/download-requests) | +| crc | 自定义模型文件的[CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check)校验值 | ## 返回值 @@ -80,6 +80,14 @@ public OnPlayerRequestDownload(playerid, DOWNLOAD_REQUEST:type, crc) - [OnPlayerFinishedDownloading](OnPlayerFinishedDownloading): 当玩家完成下载时触发 +## 相关函数 + +以下函数可能与此回调函数相关: + +- [FindModelFileNameFromCRC](../functions/FindModelFileNameFromCRC): 查找现有的自定义皮肤或简单物体模型文件。 +- [FindTextureFileNameFromCRC](../functions/FindTextureFileNameFromCRC): 查找现有的自定义皮肤或简单物体纹理文件。 +- [RedirectDownload](../functions/RedirectDownload): 将玩家自定义的AddCharModel或AddSimpleModel模型下载请求重定向到指定的HTTP网页。 + ## 相关资源 - [下载请求类型说明](../resources/download-requests) diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md index 7c61865cef9..c2e75e9b8d4 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md @@ -9,14 +9,14 @@ tags: ["自定义皮肤", "角色模型"] ## 描述 -添加可供下载的新自定义角色模型。模型文件将存储在玩家的「文档\GTA San Andreas User Files\SAMP\cache」目录下,按服务器 IP 和端口分类的文件夹中,并以 CRC 格式文件名保存。 - -| 参数 | 说明 | -| ---------------------- | ------------------------------------------------------------------------------------ | -| baseid | 基础皮肤模型 ID(用于定义角色行为特性,当下载失败时将使用该原始角色模型)。 | -| newid | 新皮肤模型 ID(范围 20001-30000,共 10000 个槽位),后续可通过 SetPlayerSkin 使用 | -| const dff[] | .dff 模型碰撞文件名,默认位于服务器的 models 文件夹(可通过 artpath 配置修改路径)。 | -| const textureLibrary[] | .txd 模型贴图文件名,默认位于服务器的 models 文件夹(可通过 artpath 配置修改路径)。 | +添加可供下载的新自定义角色模型。模型文件将存储在玩家的「文档\GTA San Andreas User Files\SAMP\cache」目录下,按服务器 IP 和端口分类的文件夹中,并以 [CRC 格式](https://en.wikipedia.org/wiki/Cyclic_redundancy_check)文件名保存。 + +| 参数 | 说明 | +| ---------------------- | ------------------------------------------------------------------------------------------------- | +| baseid | 基础[皮肤模型 ID](../resources/skins)(用于定义角色行为特性,当下载失败时将使用该原始角色模型)。 | +| newid | 新皮肤模型 ID(范围 20001-30000,共 10000 个槽位),后续可通过 SetPlayerSkin 使用 | +| const dff[] | .dff 模型碰撞文件名,默认位于服务器的 models 文件夹(可通过 artpath 配置修改路径)。 | +| const textureLibrary[] | .txd 模型贴图文件名,默认位于服务器的 models 文件夹(可通过 artpath 配置修改路径)。 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md index c161b8f85b3..437031d6c23 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md @@ -53,6 +53,7 @@ public OnGameModeInit() ## 相关函数 +- [AddSimpleModelTimed](AddSimpleModelTimed): 添加一个带时限的自定义简单物体模型供下载 - [IsValidCustomModel](IsValidCustomModel): 验证自定义模型 ID 有效性 - [GetCustomModelPath](GetCustomModelPath): 获取自定义模型路径 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md index 5657c6f0793..da3156eb9f2 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md @@ -56,6 +56,7 @@ public OnGameModeInit() ## 相关函数 +- [AddSimpleModel](AddSimpleModel): 添加一个新的自定义简单物体模型供下载 - [IsValidCustomModel](IsValidCustomModel): 验证自定义模型 ID 有效性 - [GetCustomModelPath](GetCustomModelPath): 获取自定义模型路径 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CallLocalFunction.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CallLocalFunction.md index aa150841a39..0c59f08b57f 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CallLocalFunction.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CallLocalFunction.md @@ -32,6 +32,8 @@ tags: ["核心"] | `f` | 传递浮点数值 | | `s` | 传递字符串 | +占位符对应的参数值必须严格按照调用时的参数顺序排列。 + ## 示例代码 ```c diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CallRemoteFunction.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CallRemoteFunction.md index 9f4c840af64..70c0f2b29ec 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CallRemoteFunction.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CallRemoteFunction.md @@ -30,6 +30,8 @@ tags: ["核心"] | `f` | 传递浮点数值 | | `s` | 传递字符串 | +占位符对应的参数值必须严格按照调用时的参数顺序排列。 + ## 示例代码 ```c diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md index f1eccfae827..81f5a8e43c9 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md @@ -1,7 +1,7 @@ --- title: GetMaxPlayers sidebar_label: GetMaxPlayers -description: 返回服务器配置中设置的最大玩家数量(由config.json中的max_players变量决定)。 +description: 返回服务器配置中设置的最大玩家数量(由config.json决定)。 tags: ["玩家"] --- diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarType.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarType.md index 4fd7a4c804b..2c1b9732a4b 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarType.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarType.md @@ -22,8 +22,8 @@ tags: ["玩家变量"] | --------------------- | ---- | ----------------- | | PLAYER_VARTYPE_NONE | 0 | 变量不存在/未设置 | | PLAYER_VARTYPE_INT | 1 | 整型变量 | -| PLAYER_VARTYPE_FLOAT | 2 | 浮点型变量 | -| PLAYER_VARTYPE_STRING | 3 | 字符串型变量 | +| PLAYER_VARTYPE_STRING | 2 | 字符串型变量 | +| PLAYER_VARTYPE_FLOAT | 3 | 浮点型变量 | ## 示例代码 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md index 825f02f9cde..96f6bb9d009 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md @@ -17,6 +17,8 @@ tags: ["玩家", "IP地址"] ## 返回值 +**-1** 表示指定玩家不存在 + 玩家的 IP 地址将存储在指定的数组中 ## 示例代码 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md index b2381257eb1..5b4b4eb62dc 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVersion.md @@ -17,6 +17,8 @@ tags: ["玩家"] ## 返回值 +**0** 表示指定玩家不存在 + 客户端版本信息将存储在指定的字符数组中 ## 示例代码 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md index d88fedb1c94..717987f2b20 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md @@ -45,4 +45,6 @@ public OnGameModeInit() ## 相关函数 +- [CreateActor](CreateActor): 创建演员(静态 NPC) - [IsActorInvulnerable](IsActorInvulnerable): 检查演员是否无敌 +- [SetActorHealth](SetActorHealth): 设置演员的生命值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md index 75845f4a29e..024ac1e2c4e 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md @@ -49,7 +49,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::tip -可使用颜色嵌入代码实现文本多色效果 +可使用[颜色嵌入](../resources/colorslist#颜色嵌入)代码实现文本多色效果 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md index f9d3e63b3ea..58f13eb2c41 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md @@ -51,3 +51,6 @@ public OnPlayerCommandText(playerid, cmdtext[]) ## 相关函数 - [GetVehicleVelocity](GetVehicleVelocity): 获取车辆当前的三轴速度 +- [SetVehicleAngularVelocity](SetVehicleAngularVelocity): 设置车辆在X、Y、Z轴上的角速度 +- [SetPlayerVelocity](SetPlayerVelocity): 设置玩家的三维速度 +- [GetPlayerVelocity](GetPlayerVelocity): 获取玩家的三维速度 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayback.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayback.md index 160f2ba782d..dfbb18fdf62 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayback.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayback.md @@ -1,7 +1,7 @@ --- title: StartRecordingPlayback sidebar_label: StartRecordingPlayback -description: 加载并运行存储在npcmodes/recordings目录下的.rec文件。这些录制文件允许NPC执行特定动作,可通过手动录制生成。更多信息请参考相关函数。 +description: 加载并运行存储在npcmodes/recordings目录下的.rec文件。 tags: [] --- diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md index 843ec919c66..3af93eb8951 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md @@ -33,6 +33,12 @@ public OnGameModeInit() ## 注意事项 +:::tip + +可在文本内容中使用[游戏文本颜色代码](../resources/gametextstyles)(例如 `~r~` 红色、`~g~` 绿色、`~b~` 蓝色) + +::: + :::note 若文本绘图已显示,必须重新显示([TextDrawShowForAll](TextDrawShowForAll)/[TextDrawShowForPlayer](TextDrawShowForPlayer))才能使此函数修改生效 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md index df4f85cbcb0..8f6444e6941 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/language/ControlStructures.md @@ -711,3 +711,10 @@ MyFunction(num) return 0; } ``` + +## 相关阅读 + +- [关键字:语句](Statements) +- [关键字:操作符](Operators) +- [关键字:预处理器指令](Directives) +- [关键字:初始化器](Initialisers) diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/language/Directives.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/language/Directives.md index d85e35914e9..a9649787843 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/language/Directives.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/language/Directives.md @@ -76,6 +76,16 @@ for(PL) printf("%d 已连接", i); new i = 0; i < MAX_PLAYERS; i++) \ if (IsPlayerConnected(i) +for (PL) +{ + printf("%d 已连接", i); +} +``` + +```c +#define MOO(%0) \ + ((%0) * 7) + printf("%d", MOO(6)); ``` @@ -112,7 +122,7 @@ printf("%d", MOO(5 + 6 * 7)); ```c #define PP(%0,%1) \ - printf(%0, %1) + printf(#%0, %1) PP(%s %s %s, "hi", "hello", "hi"); ``` diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/language/Initialisers.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/language/Initialisers.md index 76a214d9b7c..c3657f89817 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/language/Initialisers.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/language/Initialisers.md @@ -424,7 +424,7 @@ Float:MyFloatFunction() 原生函数(native function)是指在虚拟机(即运行脚本的环境)中定义的函数,而非脚本自身实现。此类函数只能通过 SA:MP 或插件进行原生定义,但开发者可以创建伪原生函数。由于.inc 文件中定义的原生函数会被 PAWNO 识别并显示在右侧函数列表框中,使用`native`关键字有助于将自定义函数纳入该列表。典型原生函数声明示例如下: ```c -native printf(const format[], \{Float, _\}:...); +native printf(const format[], {Float, _}:...); ``` 若希望自定义函数显示在列表却无需实际声明为原生函数,可采用注释伪装法: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/language/Statements.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/language/Statements.md index 339b2567005..fb7cfbfa70f 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/language/Statements.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/language/Statements.md @@ -366,6 +366,7 @@ printf("此语句将被执行"); 编译器对 goto 语句的处理并不理想,因此这类代码完全不会进行优化处理,例如以下情况: ```c +stock MyFunction() { new i = 5; diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/colorslist.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/colorslist.md index 9f55140fc6a..45137d3bf02 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/colorslist.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/colorslist.md @@ -1,7 +1,7 @@ --- title: 颜色列表 sidebar_label: 颜色列表 -description: 颜色在SA-MP中无处不在——车辆、玩家昵称与地图标记、文本绘图、游戏文本、聊天信息、3D文本和对话框(通过颜色嵌入)!以下是关于这些不同元素的详细信息。 +description: 颜色在SA-MP中无处不在——车辆、玩家昵称与地图标记、文本绘图、游戏文本、聊天信息、3D文本和对话框(通过颜色嵌入)! --- ## 聊天文本与玩家颜色 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/mapicons.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/mapicons.md index 670f280d515..8e55b266031 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/mapicons.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/mapicons.md @@ -10,69 +10,69 @@ description: 可用的地图图标列表。 ::: -| ID | 图标 | 参数 | 备注 | -| --- | ------------------------------------------------------------- | --------------------- | ------------------------------------------------------------------------------ | -| 0 | ![](https://assets.open.mp/assets/images/mapIcons/icon0.gif) | 彩色方框/三角(动态) | 可使用任意颜色。用于单人任务目标,当标记与玩家不处于同一地面高度时显示为三角形 | -| 1 | ![](https://assets.open.mp/assets/images/mapIcons/icon1.gif) | 白色方框 | 尺寸为 ID 0 的两倍且无边框 | -| 2 | ![](https://assets.open.mp/assets/images/mapIcons/icon2.gif) | 玩家位置 | 默认显示在小地图上 | -| 3 | ![](https://assets.open.mp/assets/images/mapIcons/icon3.gif) | 玩家(菜单地图) | 暂停菜单大地图中显示的玩家位置 | -| 4 | ![](https://assets.open.mp/assets/images/mapIcons/icon4.gif) | 北方指示 | 始终在雷达上指向北方 | -| 5 | ![](https://assets.open.mp/assets/images/mapIcons/icon5.gif) | 航空站 | | -| 6 | ![](https://assets.open.mp/assets/images/mapIcons/icon6.gif) | 武器商店 | | -| 7 | ![](https://assets.open.mp/assets/images/mapIcons/icon7.gif) | 理发店 | | -| 8 | ![](https://assets.open.mp/assets/images/mapIcons/icon8.gif) | 斯莫克 | | -| 9 | ![](https://assets.open.mp/assets/images/mapIcons/icon9.gif) | 船坞 | | -| 10 | ![](https://assets.open.mp/assets/images/mapIcons/icon10.gif) | 汉堡店 | | -| 11 | ![](https://assets.open.mp/assets/images/mapIcons/icon11.gif) | 采石场 | | -| 12 | ![](https://assets.open.mp/assets/images/mapIcons/icon12.gif) | 卡塔琳娜 | | -| 13 | ![](https://assets.open.mp/assets/images/mapIcons/icon13.gif) | 塞萨尔 | | -| 14 | ![](https://assets.open.mp/assets/images/mapIcons/icon14.gif) | 炸鸡店 | | -| 15 | ![](https://assets.open.mp/assets/images/mapIcons/icon15.gif) | 卡尔·约翰逊 | | -| 16 | ![](https://assets.open.mp/assets/images/mapIcons/icon16.gif) | 特警队 | | -| 17 | ![](https://assets.open.mp/assets/images/mapIcons/icon17.gif) | 小餐馆 | | -| 18 | ![](https://assets.open.mp/assets/images/mapIcons/icon18.gif) | 埃米特 | | -| 19 | ![](https://assets.open.mp/assets/images/mapIcons/icon19.gif) | 敌人袭击 | | -| 20 | ![](https://assets.open.mp/assets/images/mapIcons/icon20.gif) | 火灾 | | -| 21 | ![](https://assets.open.mp/assets/images/mapIcons/icon21.gif) | 女友 | | -| 22 | ![](https://assets.open.mp/assets/images/mapIcons/icon22.gif) | 医院 | | -| 23 | ![](https://assets.open.mp/assets/images/mapIcons/icon23.gif) | 机车党 | | -| 24 | ![](https://assets.open.mp/assets/images/mapIcons/icon24.gif) | 疯狗多克 | | -| 25 | ![](https://assets.open.mp/assets/images/mapIcons/icon25.gif) | 卡里古拉赌场 | | -| 26 | ![](https://assets.open.mp/assets/images/mapIcons/icon26.gif) | 说唱明星 | | -| 27 | ![](https://assets.open.mp/assets/images/mapIcons/icon27.gif) | 改装店 | | -| 28 | ![](https://assets.open.mp/assets/images/mapIcons/icon28.gif) | OG 洛克 | | -| 29 | ![](https://assets.open.mp/assets/images/mapIcons/icon29.gif) | 披萨店 | | -| 30 | ![](https://assets.open.mp/assets/images/mapIcons/icon30.gif) | 警局 | | -| 31 | ![](https://assets.open.mp/assets/images/mapIcons/icon31.gif) | 待售房产 | 可自由购买的资产 | -| 32 | ![](https://assets.open.mp/assets/images/mapIcons/icon32.gif) | 非卖房产 | 不可购买的资产 | -| 33 | ![](https://assets.open.mp/assets/images/mapIcons/icon33.gif) | 竞速 | | -| 34 | ![](https://assets.open.mp/assets/images/mapIcons/icon34.gif) | 莱德尔 | | -| 35 | ![](https://assets.open.mp/assets/images/mapIcons/icon35.gif) | 安全屋 | 单人模式中用于保存游戏的存档点 | -| 36 | ![](https://assets.open.mp/assets/images/mapIcons/icon36.gif) | 驾校 | | -| 37 | ![](https://assets.open.mp/assets/images/mapIcons/icon37.gif) | 神秘事件 | | -| 38 | ![](https://assets.open.mp/assets/images/mapIcons/icon38.gif) | 斯威特 | | -| 39 | ![](https://assets.open.mp/assets/images/mapIcons/icon39.gif) | 纹身店 | | -| 40 | ![](https://assets.open.mp/assets/images/mapIcons/icon40.gif) | 真相 | | -| 41 | ![](https://assets.open.mp/assets/images/mapIcons/icon41.gif) | 路径点 | 玩家可通过在暂停菜单地图右键点击放置 | -| 42 | ![](https://assets.open.mp/assets/images/mapIcons/icon42.gif) | 托雷诺牧场 | | -| 43 | ![](https://assets.open.mp/assets/images/mapIcons/icon43.gif) | 三合会 | | -| 44 | ![](https://assets.open.mp/assets/images/mapIcons/icon44.gif) | 三合会赌场 | | -| 45 | ![](https://assets.open.mp/assets/images/mapIcons/icon45.gif) | 服装店 | | -| 46 | ![](https://assets.open.mp/assets/images/mapIcons/icon46.gif) | 吴子 | | -| 47 | ![](https://assets.open.mp/assets/images/mapIcons/icon47.gif) | 零 | | -| 48 | ![](https://assets.open.mp/assets/images/mapIcons/icon48.gif) | 迪斯科约会 | | -| 49 | ![](https://assets.open.mp/assets/images/mapIcons/icon49.gif) | 酒吧约会 | | -| 50 | ![](https://assets.open.mp/assets/images/mapIcons/icon50.gif) | 餐厅 | | -| 51 | ![](https://assets.open.mp/assets/images/mapIcons/icon51.gif) | 卡车运输 | | -| 52 | ![](https://assets.open.mp/assets/images/mapIcons/icon52.gif) | 抢劫 | 常用于银行场所 | -| 53 | ![](https://assets.open.mp/assets/images/mapIcons/icon53.gif) | 竞速锦标赛 | | -| 54 | ![](https://assets.open.mp/assets/images/mapIcons/icon54.gif) | 健身房 | | -| 55 | ![](https://assets.open.mp/assets/images/mapIcons/icon55.gif) | 扣押场 | | -| 56 | ![](https://assets.open.mp/assets/images/mapIcons/icon56.gif) | 灯光 | | -| 57 | ![](https://assets.open.mp/assets/images/mapIcons/icon57.gif) | 最近机场 | | -| 58 | ![](https://assets.open.mp/assets/images/mapIcons/icon58.gif) | 阿兹特克帮 | | -| 59 | ![](https://assets.open.mp/assets/images/mapIcons/icon59.gif) | 巴拉斯 | | -| 60 | ![](https://assets.open.mp/assets/images/mapIcons/icon60.gif) | 洛圣都流浪者 | | -| 61 | ![](https://assets.open.mp/assets/images/mapIcons/icon61.gif) | 圣菲耶罗里法 | | -| 62 | ![](https://assets.open.mp/assets/images/mapIcons/icon62.gif) | 葛洛夫街家族 | | -| 63 | ![](https://assets.open.mp/assets/images/mapIcons/icon63.gif) | 喷漆店 | | +| ID | 图标 | 参数 | 备注 | +| --- | ------------------------------------------------------------- | --------------------- | ----------------------------------------------------------------------------------------- | +| 0 | ![](https://assets.open.mp/assets/images/mapIcons/icon0.gif) | 彩色方框/三角(动态) | 可使用任意颜色。用于单人任务目标,当标记与玩家不处于同一地面高度时显示为三角形 | +| 1 | ![](https://assets.open.mp/assets/images/mapIcons/icon1.gif) | 白色方框 | 尺寸为 ID 0 的两倍且无边框 | +| 2 | ![](https://assets.open.mp/assets/images/mapIcons/icon2.gif) | 玩家位置 | 默认显示在小地图上 | +| 3 | ![](https://assets.open.mp/assets/images/mapIcons/icon3.gif) | 玩家(菜单地图) | 暂停菜单大地图中显示的玩家位置 | +| 4 | ![](https://assets.open.mp/assets/images/mapIcons/icon4.gif) | 北方指示 | 始终在雷达上指向北方 | +| 5 | ![](https://assets.open.mp/assets/images/mapIcons/icon5.gif) | 航空站 | | +| 6 | ![](https://assets.open.mp/assets/images/mapIcons/icon6.gif) | 武器商店 | | +| 7 | ![](https://assets.open.mp/assets/images/mapIcons/icon7.gif) | 理发店 | | +| 8 | ![](https://assets.open.mp/assets/images/mapIcons/icon8.gif) | 斯莫克 | | +| 9 | ![](https://assets.open.mp/assets/images/mapIcons/icon9.gif) | 船坞 | | +| 10 | ![](https://assets.open.mp/assets/images/mapIcons/icon10.gif) | 汉堡店 | | +| 11 | ![](https://assets.open.mp/assets/images/mapIcons/icon11.gif) | 采石场 | | +| 12 | ![](https://assets.open.mp/assets/images/mapIcons/icon12.gif) | 卡塔琳娜 | | +| 13 | ![](https://assets.open.mp/assets/images/mapIcons/icon13.gif) | 塞萨尔 | | +| 14 | ![](https://assets.open.mp/assets/images/mapIcons/icon14.gif) | 炸鸡店 | | +| 15 | ![](https://assets.open.mp/assets/images/mapIcons/icon15.gif) | 卡尔·约翰逊 | | +| 16 | ![](https://assets.open.mp/assets/images/mapIcons/icon16.gif) | 特警队 | | +| 17 | ![](https://assets.open.mp/assets/images/mapIcons/icon17.gif) | 小餐馆 | | +| 18 | ![](https://assets.open.mp/assets/images/mapIcons/icon18.gif) | 埃米特 | | +| 19 | ![](https://assets.open.mp/assets/images/mapIcons/icon19.gif) | 敌人袭击 | | +| 20 | ![](https://assets.open.mp/assets/images/mapIcons/icon20.gif) | 火灾 | | +| 21 | ![](https://assets.open.mp/assets/images/mapIcons/icon21.gif) | 女友 | | +| 22 | ![](https://assets.open.mp/assets/images/mapIcons/icon22.gif) | 医院 | | +| 23 | ![](https://assets.open.mp/assets/images/mapIcons/icon23.gif) | 机车党 | | +| 24 | ![](https://assets.open.mp/assets/images/mapIcons/icon24.gif) | 疯狗多克 | | +| 25 | ![](https://assets.open.mp/assets/images/mapIcons/icon25.gif) | 卡里古拉赌场 | | +| 26 | ![](https://assets.open.mp/assets/images/mapIcons/icon26.gif) | 说唱明星 | | +| 27 | ![](https://assets.open.mp/assets/images/mapIcons/icon27.gif) | 改装店 | | +| 28 | ![](https://assets.open.mp/assets/images/mapIcons/icon28.gif) | OG 洛克 | | +| 29 | ![](https://assets.open.mp/assets/images/mapIcons/icon29.gif) | 披萨店 | | +| 30 | ![](https://assets.open.mp/assets/images/mapIcons/icon30.gif) | 警局 | | +| 31 | ![](https://assets.open.mp/assets/images/mapIcons/icon31.gif) | 待售房产 | 可自由购买的资产 | +| 32 | ![](https://assets.open.mp/assets/images/mapIcons/icon32.gif) | 非卖房产 | 不可购买的资产 | +| 33 | ![](https://assets.open.mp/assets/images/mapIcons/icon33.gif) | 竞速 | | +| 34 | ![](https://assets.open.mp/assets/images/mapIcons/icon34.gif) | 莱德尔 | | +| 35 | ![](https://assets.open.mp/assets/images/mapIcons/icon35.gif) | 安全屋 | 单人模式中用于保存游戏的存档点 | +| 36 | ![](https://assets.open.mp/assets/images/mapIcons/icon36.gif) | 驾校 | | +| 37 | ![](https://assets.open.mp/assets/images/mapIcons/icon37.gif) | 神秘事件 | | +| 38 | ![](https://assets.open.mp/assets/images/mapIcons/icon38.gif) | 斯威特 | | +| 39 | ![](https://assets.open.mp/assets/images/mapIcons/icon39.gif) | 纹身店 | | +| 40 | ![](https://assets.open.mp/assets/images/mapIcons/icon40.gif) | 真相 | | +| 41 | ![](https://assets.open.mp/assets/images/mapIcons/icon41.gif) | 路径点 | 玩家可通过在暂停菜单地图右键点击放置([OnPlayerClickMap](../callbacks/OnPlayerClickMap)) | +| 42 | ![](https://assets.open.mp/assets/images/mapIcons/icon42.gif) | 托雷诺牧场 | | +| 43 | ![](https://assets.open.mp/assets/images/mapIcons/icon43.gif) | 三合会 | | +| 44 | ![](https://assets.open.mp/assets/images/mapIcons/icon44.gif) | 三合会赌场 | | +| 45 | ![](https://assets.open.mp/assets/images/mapIcons/icon45.gif) | 服装店 | | +| 46 | ![](https://assets.open.mp/assets/images/mapIcons/icon46.gif) | 吴子 | | +| 47 | ![](https://assets.open.mp/assets/images/mapIcons/icon47.gif) | 零 | | +| 48 | ![](https://assets.open.mp/assets/images/mapIcons/icon48.gif) | 迪斯科约会 | | +| 49 | ![](https://assets.open.mp/assets/images/mapIcons/icon49.gif) | 酒吧约会 | | +| 50 | ![](https://assets.open.mp/assets/images/mapIcons/icon50.gif) | 餐厅 | | +| 51 | ![](https://assets.open.mp/assets/images/mapIcons/icon51.gif) | 卡车运输 | | +| 52 | ![](https://assets.open.mp/assets/images/mapIcons/icon52.gif) | 抢劫 | 常用于银行场所 | +| 53 | ![](https://assets.open.mp/assets/images/mapIcons/icon53.gif) | 竞速锦标赛 | | +| 54 | ![](https://assets.open.mp/assets/images/mapIcons/icon54.gif) | 健身房 | | +| 55 | ![](https://assets.open.mp/assets/images/mapIcons/icon55.gif) | 扣押场 | | +| 56 | ![](https://assets.open.mp/assets/images/mapIcons/icon56.gif) | 灯光 | | +| 57 | ![](https://assets.open.mp/assets/images/mapIcons/icon57.gif) | 最近机场 | | +| 58 | ![](https://assets.open.mp/assets/images/mapIcons/icon58.gif) | 阿兹特克帮 | | +| 59 | ![](https://assets.open.mp/assets/images/mapIcons/icon59.gif) | 巴拉斯 | | +| 60 | ![](https://assets.open.mp/assets/images/mapIcons/icon60.gif) | 洛圣都流浪者 | | +| 61 | ![](https://assets.open.mp/assets/images/mapIcons/icon61.gif) | 圣菲耶罗里法 | | +| 62 | ![](https://assets.open.mp/assets/images/mapIcons/icon62.gif) | 葛洛夫街家族 | | +| 63 | ![](https://assets.open.mp/assets/images/mapIcons/icon63.gif) | 喷漆店 | | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/networkstats.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/networkstats.md index 258b75dd43b..28e6566b0ca 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/networkstats.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/networkstats.md @@ -5,28 +5,28 @@ description: 连接服务器时按住F5键显示的网络状态信息。 tags: [] --- -| 数据 | **说明** | -| -------------------------------------------------------- | --------------------------------------------------------------------------- | -| Download Rate | 从服务器下载数据的速率 | -| Upload Rate | 向服务器上传数据的速率 | -| Vehicles | 已为客户端流加载的车辆数量 | -| Vehicle Models | 已为客户端流加载的不同车辆模型种类数量 | -| Vehicle Models Loaded | (预)加载的车辆模型总数 | -| RWObjects | 当前渲染的物体数量 | -| PedSlotsUsed | 已占用的角色槽数量(NPC/玩家都会占用'角色'槽) | -| ObjectSlotsUsed | 已占用的物体槽数量 | -| OnFoot Send Rate | 步行状态数据同步频率(单位:毫秒)。可在 server.cfg 中设置 | -| Streaming Mem (Memory) Used (Also shows total allowance) | 当前使用的流内存容量及总可用容量 | -| Messages in Send buffer | 等待发送的网络消息数量 | -| Messages sent | 已发送的网络消息总数 | -| Bytes sent | 已发送的数据总量(单位:字节) | -| Acks sent | 已发送的确认包数量(用于确认数据包接收) | -| Acks in send buffer | 等待发送的确认包数量 | -| Messages waiting for ack | 等待接收确认的消息数量 | -| Messages resent | 因未收到确认而重新发送的消息数量。客户端在重新发送 109 次消息后尝试重新连接 | -| Bytes resent | 重新发送的数据总量(单位:字节) | -| Packetloss | 已发送但未被接收端收到的数据包百分比 | -| Messages received | 从服务器接收的网络消息总数 | -| Bytes received | 已接收的数据总量(单位:字节) | -| Acks received | 已接收的确认包数量 | -| Duplicate acks received | 已接收的重复确认包数量(已确认过的确认包) | +| 数据 | **说明** | +| -------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| Download Rate | 从服务器下载数据的速率 | +| Upload Rate | 向服务器上传数据的速率 | +| Vehicles | 已为客户端流加载的车辆数量 | +| Vehicle Models | 已为客户端流加载的不同车辆模型种类数量 | +| Vehicle Models Loaded | (预)加载的车辆模型总数 | +| RWObjects | 当前渲染的物体数量 | +| PedSlotsUsed | 已占用的角色槽数量(NPC/玩家都会占用'角色'槽) | +| ObjectSlotsUsed | 已占用的物体槽数量 | +| OnFoot Send Rate | 步行状态数据同步频率(单位:毫秒)。可在 [config.json](../../server/config.json) 中设置 | +| Streaming Mem (Memory) Used (Also shows total allowance) | 当前使用的流内存容量及总可用容量 | +| Messages in Send buffer | 等待发送的网络消息数量 | +| Messages sent | 已发送的网络消息总数 | +| Bytes sent | 已发送的数据总量(单位:字节) | +| Acks sent | 已发送的确认包数量(用于确认数据包接收) | +| Acks in send buffer | 等待发送的确认包数量 | +| Messages waiting for ack | 等待接收确认的消息数量 | +| Messages resent | 因未收到确认而重新发送的消息数量。客户端在重新发送 109 次消息后尝试重新连接 | +| Bytes resent | 重新发送的数据总量(单位:字节) | +| Packetloss | 已发送但未被接收端收到的数据包百分比 | +| Messages received | 从服务器接收的网络消息总数 | +| Bytes received | 已接收的数据总量(单位:字节) | +| Acks received | 已接收的确认包数量 | +| Duplicate acks received | 已接收的重复确认包数量(已确认过的确认包) | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/pickuptypes.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/pickuptypes.md index 0359d8ce57a..c5bb02e0c2b 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/pickuptypes.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/pickuptypes.md @@ -7,7 +7,7 @@ sidebar_label: 拾取物类型 :::note -- 以下类型参数适用于[CreatePickup](../functions/CreatePickup)和[CreatePlayerPickup](../functions/CreatePlayerPickup)函数。 +- 以下类型参数适用于[AddStaticPickup](../functions/AddStaticPickup)、[CreatePickup](../functions/CreatePickup)和[CreatePlayerPickup](../functions/CreatePlayerPickup)函数。 - 其他未列出的 ID 可能未被官方文档记录,或表现类似类型 1(但请勿仅因表面相似性使用,部分类型可能产生副作用,如类型 18 和 20)。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/start.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/start.md index 10e203166c6..6e9a81fd824 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/start.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/start.md @@ -362,7 +362,7 @@ myArray[2]++; ### 示例 -如前所述,MAX_PLAYERS 数组是常见的数组类型。MAX_PLAYERS 并非变量,而是一个宏定义(后续详述),现阶段可将其视为表示服务器最大玩家容量的常量(默认 500,即使你在 server.cfg 文件中修改该数值)。以下代码使用普通变量存储 4 个玩家的数据,并通过函数处理这些玩家数据(为简化示例,假设此时 MAX_PLAYERS 为 4): +如前所述,MAX_PLAYERS 数组是常见的数组类型。MAX_PLAYERS 并非变量,而是一个宏定义(后续详述),现阶段可将其视为表示服务器最大玩家容量的常量(默认 500,即使你在 config.json 文件中修改该数值)。以下代码使用普通变量存储 4 个玩家的数据,并通过函数处理这些玩家数据(为简化示例,假设此时 MAX_PLAYERS 为 4): ```c new @@ -710,3 +710,7 @@ MyFunc2() ``` 静态修饰符同样适用于函数声明。 + +# 控制结构 + +控制结构决定了程序走向. 程序可以依据变量内容、函数返回值或其他东西执行或不执行某些代码。程序也可以在需要的情况下重复做某些事。 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md index 786368c4217..f0584736c1b 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/CommonServerIssues.md @@ -5,7 +5,7 @@ sidebar_label: 常见服务器问题 ## 服务器启动后立即崩溃 -最常见的原因是 server.cfg 文件存在错误或游戏模式文件缺失。请检查 server_log.txt 文件,崩溃原因通常位于文件末尾。若未找到,请检查 crashinfo.txt 文件。更有效的排查方式是使用 Zeex/0x5A656578 开发的 Crash detect 插件([点击获取链接](https://github.com/AmyrAhmady/samp-plugin-crashdetect)),该插件可提供行号、函数名、参数值等详细信息。建议在调试模式(-d3 参数)下编译脚本,使编译器在输出的.amx 文件中包含额外调试信息。 +最常见的原因是 config.json 文件存在错误或游戏模式文件缺失。请检查 log.txt 文件,崩溃原因通常位于文件末尾。若未找到,请检查 crashinfo.txt 文件。更有效的排查方式是使用 Zeex/0x5A656578 开发的 Crash detect 插件([点击获取链接](https://github.com/AmyrAhmady/samp-plugin-crashdetect)),该插件可提供行号、函数名、参数值等详细信息。建议在调试模式(-d3 参数)下编译脚本,使编译器在输出的.amx 文件中包含额外调试信息。 ## 服务器无法运行 - 防火墙已关闭 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/ControllingServer.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/ControllingServer.md index 1edf12a3331..d1e4bae9c6c 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/ControllingServer.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/ControllingServer.md @@ -18,54 +18,72 @@ description: 控制服务器的实用命令。 与运行自定义游戏模式相同,除了: - 将 .amx 文件放入名为 `filterscripts` 的文件夹中 -- 在 server.cfg 中添加以下内容:`filterscripts <脚本名称>` +- 在 [config.json](config.json) 的 `pawn.side_scripts` 中添加不含 `.amx` 扩展名的脚本路径: + +```json +{ + "pawn": { + "side_scripts": [ + "filterscripts/scriptname" + ] + } +} +``` ## 为服务器设置密码 -- 如果你想添加密码,只有你的朋友可以加入,请在 [server.cfg](server.cfg) 中添加以下内容: +- 如果你想添加密码,只有你的朋友可以加入,请在 [config.json](config.json) 中添加以下内容: -``` -password whatever +```json +{ + "password": "whatever" +} ``` - 这将使你的服务器受密码保护,密码设置为 'whatever' —— 你可以将其更改为你想要的任何内容。 -- 你也可以在游戏中使用 `/rcon password 新密码` 更改密码。 +- 你也可以在游戏中使用 `/rcon password whatever` 更改密码。 - 你可以通过使用 `/rcon password 0` 或重启服务器来移除密码。 ## 使用 RCON ### 登录 -你可以在游戏内通过输入 `/rcon login 密码` 登录,也可以在游戏外使用 [远程控制台](RemoteConsole) 中的 RCON 模式登录。 +你可以在游戏内通过输入 `/rcon login whatever` 登录,也可以在游戏外使用 [远程控制台](RemoteConsole) 中的 RCON 模式登录。 -密码与你在 [server.cfg](server.cfg) 中设置的密码相同。 +RCON 密码是你在 [config.json](config.json) 中设置的 `rcon.password` 值。 ### 添加封禁 -##### samp.ban +封禁是指阻止一个 IP 连接到服务器。 + +##### bans.json -samp.ban 是用于存储封禁信息的文件,包括以下内容: +bans.json 是用于存储封禁信息的文件,包括以下内容: - IP - 日期 - 时间 -- 名称(人名或原因,参见 [BanEx](../scripting/functions/BanEx)) -- 封禁类型 +- 名称(人名) +- 原因(参见 [BanEx](../scripting/functions/BanEx)) -要添加封禁,只需添加如下一行: +要添加封禁,只需向 JSON 数组添加如下对象: -``` -IP_HERE [28/05/09 | 13:37:00] PLAYER - 封禁原因 +```json +[ + {"address": "IP_HERE", "player": "PLAYER", "reason": "封禁原因", "time": "2009-05-28T13:37:00+0000"} +] ``` -其中 `IP_HERE` 是你想要封禁的 IP 地址。 +其中 `IP_HERE` 是你想要封禁的 IP 地址。这种方法要比使用 RCON 命令 `banip` 花更长时间, 所以建议使用 RCON `banip`. ##### Ban() 函数 [Ban](../scripting/functions/Ban) 函数可用于从脚本中封禁玩家。[BanEx](../scripting/functions/BanEx) 函数将添加一个可选的原因,如下所示: -``` -13.37.13.37 [28/05/09 | 13:37:00] 作弊者 - 游戏内封禁 +```json +[ + {"address": "13.37.13.37", "player": "作弊者", "reason": "游戏内封禁", "time": "2009-05-28T13:37:00+0000"} +] ``` ##### RCON 封禁命令 @@ -100,27 +118,29 @@ banip IP 一旦某人被封禁,有两种方法可以解封。 -- 从 samp.ban 中移除 +- 从 bans.json 中移除 - 使用 RCON `unbanip` 命令 -#### samp.ban +#### bans.json -samp.ban 可以在你的 SA-MP 服务器目录中找到,它包含以下信息的行: +bans.json 可以在你的 open.mp 服务器目录中找到,它包含以下信息的对象: - IP - 日期 - 时间 -- 名称(人名或原因(参见 [BanEx](../scripting/functions/BanEx))) -- 封禁类型(游戏内、IP 封禁等) +- 名称(人名) +- 原因(参见 [BanEx](../scripting/functions/BanEx)) 示例: -``` -127.8.57.32 [13/06/09 | 69:69:69] 无 - IP 封禁 -13.37.13.37 [28/05/09 | 13:37:00] Kyeman - 游戏内封禁 +```json +[ + {"address": "127.8.57.32", "player": "无", "reason": "IP 封禁", "time": "2009-06-13T13:37:00+0000"}, + {"address": "13.37.13.37", "player": "Kyeman", "reason": "游戏内封禁", "time": "2009-05-28T13:37:00+0000"} +] ``` -要解封,只需移除该行,然后执行 RCON reloadbans 命令使服务器重新读取 samp.ban。 +要解封,只需移除该对象,然后执行 RCON reloadbans 命令使服务器重新读取 bans.json。 #### unbanip @@ -128,8 +148,10 @@ RCON unbanip 命令可以在游戏内或服务器控制台(黑框)中使用 示例: -``` -13.37.13.37 [28/05/09 | 13:37:00] Kyeman - 游戏内封禁 +```json +[ + {"address": "13.37.13.37", "player": "Kyeman", "reason": "游戏内封禁", "time": "2009-05-28T13:37:00+0000"} +] ``` ``` @@ -140,11 +162,11 @@ RCON unbanip 命令可以在游戏内或服务器控制台(黑框)中使用 unbanip 13.37.13.37 ``` -要解封,只需使用 `unbanip` 命令,然后执行 RCON `reloadbans` 命令使服务器重新读取 samp.ban。 +要解封,只需使用 `unbanip` 命令。 #### reloadbans -`samp.ban` 是一个存储当前被封禁 IP 信息的文件。该文件在服务器启动时读取,因此如果你解封了一个 IP/人,你必须输入 RCON `reloadbans` 命令使服务器重新读取 `samp.ban` 并允许他们加入服务器。 +`bans.json` 是一个存储当前被封禁 IP 信息的文件。该文件在服务器启动时读取,因此如果你通过编辑文件解封了一个 IP/人,你必须输入 RCON `reloadbans` 命令使服务器重新读取 `bans.json` 并允许他们加入服务器。 ### RCON 命令 @@ -152,39 +174,39 @@ unbanip 13.37.13.37 以下是你可以作为管理员使用的功能: -| 命令 | 说明 | -| -------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `/rcon cmdlist` | 显示命令列表。 | -| `/rcon varlist` | 显示当前变量列表。 | -| `/rcon exit` | 关闭服务器。 | -| `/rcon echo [文本]` | 在服务器控制台中显示 `[文本]`(非游戏内客户端控制台)。 | -| `/rcon hostname [名称]` | 更改主机名文本(_示例:/rcon hostname 我的服务器_)。 | -| `/rcon gamemodetext [名称]` | 更改游戏模式文本(_示例:/rcon gamemodetext 我的游戏模式_)。 | -| `/rcon mapname [名称]` | 更改地图名称文本(_示例:/rcon mapname 圣安地列斯_)。 | -| `/rcon exec [文件名]` | 执行包含服务器配置的文件(_示例:/rcon exec blah.cfg_)。 | -| `/rcon kick [ID]` | 踢出指定 ID 的玩家(_示例:/rcon kick 2_)。 | -| `/rcon ban [ID]` | 封禁指定 ID 的玩家(_示例:/rcon ban 2_)。 | -| `/rcon changemode [模式]` | 此命令将当前游戏模式更改为指定模式(_示例:如果你想玩 sftdm:/rcon changemode sftdm_)。 | -| `/rcon gmx` | 将加载 [server.cfg](server.cfg) 中的下一个游戏模式。 | -| `/rcon reloadbans` | 重新加载存储被封禁 IP 地址的 `samp.ban` 文件。解封 IP 地址后应使用此命令。 | -| `/rcon reloadlog` | 重新加载 `server_log.txt`。适用于自动日志轮换。可以通过向服务器发送 `SIGUSR1` 信号触发(仅限 Linux 服务器)。 | -| `/rcon say` | 向玩家显示消息到客户端控制台(示例:`/rcon say 你好` 将显示为 `管理员:你好`)。 | -| `/rcon players` | 显示服务器中的玩家(包括他们的名字、IP 和 ping)。 | -| `/rcon banip [IP]` | 封禁指定 IP(_示例:/rcon banip 127.0.0.1_)。 | -| `/rcon unbanip [IP]` | 解封指定 IP(_示例:/rcon unbanip 127.0.0.1_)。 | -| `/rcon gravity` | 更改重力(_示例:/rcon gravity 0.008_)。 | -| `/rcon weather [ID]` | 更改天气(_示例:/rcon weather 1_)。 | -| `/rcon loadfs` | 加载指定滤镜脚本(_示例:/rcon loadfs adminfs_)。 | -| `/rcon weburl [服务器 URL]` | 更改主列表/SA-MP 客户端中的服务器 URL | -| `/rcon unloadfs` | 卸载指定滤镜脚本(_示例:/rcon unloadfs adminfs_)。 | -| `/rcon reloadfs` | 重新加载指定滤镜脚本(_示例:/rcon reloadfs adminfs_)。 | -| `/rcon rcon\_password [密码]` | 更改 RCON 密码 | -| `/rcon password [密码]` | 设置/重置服务器密码 | -| `/rcon messageslimit [数量]` | 更改客户端每秒发送到服务器的消息数量。(默认 500) | -| `/rcon ackslimit [数量]` | 更改 acks 限制(默认 3000) | -| `/rcon messageholelimit [数量]` | 更改消息空洞限制(默认 3000) | -| `/rcon playertimeout [限制毫秒]` | 更改玩家在不发送任何数据包时的超时时间(默认 1000)。 | -| `/rcon language [语言]` | 更改服务器语言(_示例:/rcon language 英语_)。在服务器浏览器中显示。 | +| 命令 | 说明 | +| --------------------------------- | ------------------------------------------------------------------------------------------------------ | +| `/rcon cmdlist` | 显示命令列表。 | +| `/rcon varlist` | 显示当前变量列表。 | +| `/rcon exit` | 关闭服务器。 | +| `/rcon echo [文本]` | 在服务器控制台中显示 `[文本]`(非游戏内客户端控制台)。 | +| `/rcon hostname [名称]` | 更改主机名文本(_示例:/rcon hostname 我的服务器_)。 | +| `/rcon gamemodetext [名称]` | 更改游戏模式文本(_示例:/rcon gamemodetext 我的游戏模式_)。 | +| `/rcon mapname [名称]` | 更改地图名称文本(_示例:/rcon mapname 圣安地列斯_)。 | +| `/rcon exec [文件名]` | 执行包含服务器配置的文件(_示例:/rcon exec blah.cfg_)。 | +| `/rcon kick [ID]` | 踢出指定 ID 的玩家(_示例:/rcon kick 2_)。 | +| `/rcon ban [ID]` | 封禁指定 ID 的玩家(_示例:/rcon ban 2_)。 | +| `/rcon changemode [模式]` | 此命令将当前游戏模式更改为指定模式(_示例:如果你想玩 sftdm:/rcon changemode sftdm_)。 | +| `/rcon gmx` | 将加载 [config.json](config.json) 中的下一个游戏模式。 | +| `/rcon reloadbans` | 重新加载存储被封禁 IP 地址的 `bans.json` 文件。通过编辑文件解封 IP 地址后应使用此命令。 | +| `/rcon reloadlog` | 重新加载 `log.txt`。适用于自动日志轮换。可以通过向服务器发送 `SIGUSR1` 信号触发(仅限 Linux 服务器)。 | +| `/rcon say` | 向玩家显示消息到客户端控制台(示例:`/rcon say 你好` 将显示为 `管理员:你好`)。 | +| `/rcon players` | 显示服务器中的玩家(包括他们的名字、IP 和 ping)。 | +| `/rcon banip [IP]` | 封禁指定 IP(_示例:/rcon banip 127.0.0.1_)。 | +| `/rcon unbanip [IP]` | 解封指定 IP(_示例:/rcon unbanip 127.0.0.1_)。 | +| `/rcon gravity` | 更改重力(_示例:/rcon gravity 0.008_)。 | +| `/rcon weather [ID]` | 更改天气(_示例:/rcon weather 1_)。 | +| `/rcon loadfs` | 加载指定滤镜脚本(_示例:/rcon loadfs adminfs_)。 | +| `/rcon weburl [服务器 URL]` | 更改主列表/SA-MP 客户端中的服务器 URL | +| `/rcon unloadfs` | 卸载指定滤镜脚本(_示例:/rcon unloadfs adminfs_)。 | +| `/rcon reloadfs` | 重新加载指定滤镜脚本(_示例:/rcon reloadfs adminfs_)。 | +| `/rcon rcon\_password [whatever]` | 更改 RCON 密码 | +| `/rcon password [whatever]` | 设置/重置服务器密码 | +| `/rcon messageslimit [数量]` | 更改客户端每秒发送到服务器的消息数量。(默认 500) | +| `/rcon ackslimit [数量]` | 更改 acks 限制(默认 3000) | +| `/rcon messageholelimit [数量]` | 更改消息空洞限制(默认 3000) | +| `/rcon playertimeout [限制毫秒]` | 更改玩家在不发送任何数据包时的超时时间(默认 1000)。 | +| `/rcon language [语言]` | 更改服务器语言(_示例:/rcon language 英语_)。在服务器浏览器中显示。 | 上述四个限制/计数参数专门用于防范可能通过冻结或崩溃方式攻击 SA-MP 服务器的各类工具。因此,请根据你的服务器实际需求进行配置。系统默认值已预设为安全基准,若发现存在误踢正常玩家的情况,请立即适当调高相关数值阈值以避免良性玩家遭受影响。 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/Installation.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/Installation.md index c187caa7e4e..115af00079f 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/Installation.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/Installation.md @@ -229,6 +229,18 @@ description: 将游戏模式从 SA:MP 服务器迁移至 open.mp 服务器的指 ./omp-server ``` +## 保持服务器在线 + +这个批处理程序会在服务器崩溃时重启 `omp-server.exe`。你只需要把以下内容存到一个后缀名为 `.bat` 的文本文件里: + +``` +:start +omp-server.exe +goto start +``` + +把这个文件放到 `omp-server.exe` 所在的文件夹下并启动。在服务器控制台里输入 `exit` 来测试它是否有效。 + ## 编译错误与警告处理 - **warning 213: 标签不匹配: 预期标签 "?",但未找到 ("\_")**: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/colorfix.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/colorfix.md index 8dd8f316a59..8e066d2060a 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/colorfix.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/colorfix.md @@ -8,16 +8,16 @@ description: 基础脚本用于扩展玩家颜色库 ```pawn new PlayerColors[] = { - 0xFF8C13FF,0xC715FFFF,0x20B2AAFF,0xDC143CFF,0x6495EDFF,0xf0e68cFF,0x778899FF,0xFF1493FF,0xF4A460FF,0xEE82EEFF, - 0xFFD720FF,0x8b4513FF,0x4949A0FF,0x148b8bFF,0x14ff7fFF,0x556b2fFF,0x0FD9FAFF,0x10DC29FF,0x534081FF,0x0495CDFF, - 0xEF6CE8FF,0xBD34DAFF,0x247C1BFF,0x0C8E5DFF,0x635B03FF,0xCB7ED3FF,0x65ADEBFF,0x5C1ACCFF,0xF2F853FF,0x11F891FF, - 0x7B39AAFF,0x53EB10FF,0x54137DFF,0x275222FF,0xF09F5BFF,0x3D0A4FFF,0x22F767FF,0xD63034FF,0x9A6980FF,0xDFB935FF, - 0x3793FAFF,0x90239DFF,0xE9AB2FFF,0xAF2FF3FF,0x057F94FF,0xB98519FF,0x388EEAFF,0x028151FF,0xA55043FF,0x0DE018FF, - 0x93AB1CFF,0x95BAF0FF,0x369976FF,0x18F71FFF,0x4B8987FF,0x491B9EFF,0x829DC7FF,0xBCE635FF,0xCEA6DFFF,0x20D4ADFF, - 0x2D74FDFF,0x3C1C0DFF,0x12D6D4FF,0x48C000FF,0x2A51E2FF,0xE3AC12FF,0xFC42A8FF,0x2FC827FF,0x1A30BFFF,0xB740C2FF, - 0x42ACF5FF,0x2FD9DEFF,0xFAFB71FF,0x05D1CDFF,0xC471BDFF,0x94436EFF,0xC1F7ECFF,0xCE79EEFF,0xBD1EF2FF,0x93B7E4FF, - 0x3214AAFF,0x184D3BFF,0xAE4B99FF,0x7E49D7FF,0x4C436EFF,0xFA24CCFF,0xCE76BEFF,0xA04E0AFF,0x9F945CFF,0xDCDE3DFF, - 0x10C9C5FF,0x70524DFF,0x0BE472FF,0x8A2CD7FF,0x6152C2FF,0xCF72A9FF,0xE59338FF,0xEEDC2DFF,0xD8C762FF,0x3FE65CFF + 0xFF8C13FF, 0xC715FFFF, 0x20B2AAFF, 0xDC143CFF, 0x6495EDFF, 0xf0e68cFF, 0x778899FF, 0xFF1493FF, 0xF4A460FF, 0xEE82EEFF, + 0xFFD720FF, 0x8b4513FF, 0x4949A0FF, 0x148b8bFF, 0x14ff7fFF, 0x556b2fFF, 0x0FD9FAFF, 0x10DC29FF, 0x534081FF, 0x0495CDFF, + 0xEF6CE8FF, 0xBD34DAFF, 0x247C1BFF, 0x0C8E5DFF, 0x635B03FF, 0xCB7ED3FF, 0x65ADEBFF, 0x5C1ACCFF, 0xF2F853FF, 0x11F891FF, + 0x7B39AAFF, 0x53EB10FF, 0x54137DFF, 0x275222FF, 0xF09F5BFF, 0x3D0A4FFF, 0x22F767FF, 0xD63034FF, 0x9A6980FF, 0xDFB935FF, + 0x3793FAFF, 0x90239DFF, 0xE9AB2FFF, 0xAF2FF3FF, 0x057F94FF, 0xB98519FF, 0x388EEAFF, 0x028151FF, 0xA55043FF, 0x0DE018FF, + 0x93AB1CFF, 0x95BAF0FF, 0x369976FF, 0x18F71FFF, 0x4B8987FF, 0x491B9EFF, 0x829DC7FF, 0xBCE635FF, 0xCEA6DFFF, 0x20D4ADFF, + 0x2D74FDFF, 0x3C1C0DFF, 0x12D6D4FF, 0x48C000FF, 0x2A51E2FF, 0xE3AC12FF, 0xFC42A8FF, 0x2FC827FF, 0x1A30BFFF, 0xB740C2FF, + 0x42ACF5FF, 0x2FD9DEFF, 0xFAFB71FF, 0x05D1CDFF, 0xC471BDFF, 0x94436EFF, 0xC1F7ECFF, 0xCE79EEFF, 0xBD1EF2FF, 0x93B7E4FF, + 0x3214AAFF, 0x184D3BFF, 0xAE4B99FF, 0x7E49D7FF, 0x4C436EFF, 0xFA24CCFF, 0xCE76BEFF, 0xA04E0AFF, 0x9F945CFF, 0xDCDE3DFF, + 0x10C9C5FF, 0x70524DFF, 0x0BE472FF, 0x8A2CD7FF, 0x6152C2FF, 0xCF72A9FF, 0xE59338FF, 0xEEDC2DFF, 0xD8C762FF, 0x3FE65CFF }; ``` @@ -35,7 +35,7 @@ SetPlayerColor(playerid, PlayerColors[playerid % sizeof PlayerColors]); ```pawn new PlayerRainbowColors[511] = { - /*彩虹色系*/ 0x000022FF, 0x000044FF, 0x000066FF, 0x000088FF, 0x0000AAFF, 0x0000CCFF, 0x0000EEFF, + /*OKStyle*/ 0x000022FF, 0x000044FF, 0x000066FF, 0x000088FF, 0x0000AAFF, 0x0000CCFF, 0x0000EEFF, 0x002200FF, 0x002222FF, 0x002244FF, 0x002266FF, 0x002288FF, 0x0022AAFF, 0x0022CCFF, 0x0022EEFF, 0x004400FF, 0x004422FF, 0x004444FF, 0x004466FF, 0x004488FF, 0x0044AAFF, 0x0044CCFF, 0x0044EEFF, 0x006600FF, 0x006622FF, 0x006644FF, 0x006666FF, 0x006688FF, 0x0066AAFF, 0x0066CCFF, 0x0066EEFF, diff --git a/frontend/i18n/zh-TW/docusaurus-plugin-content-docs/current/client/ClientCommands.md b/frontend/i18n/zh-TW/docusaurus-plugin-content-docs/current/client/ClientCommands.md index d14f3643100..ba9e67dfc84 100644 --- a/frontend/i18n/zh-TW/docusaurus-plugin-content-docs/current/client/ClientCommands.md +++ b/frontend/i18n/zh-TW/docusaurus-plugin-content-docs/current/client/ClientCommands.md @@ -1,7 +1,7 @@ --- title: "用戶端可用指令表" sidebar_label: "用戶端可用指令表" -descripion: 所有在用戶端可使用的指令表。 +description: 所有在用戶端可使用的指令表。 --- ## 指令