diff --git a/frontend/docs/client/sa-mp.cfg.md b/frontend/docs/client/sa-mp.cfg.md index fc44dc62a6d7..7f165e135723 100644 --- a/frontend/docs/client/sa-mp.cfg.md +++ b/frontend/docs/client/sa-mp.cfg.md @@ -6,7 +6,7 @@ description: sa-mp client configuration file. ## Description -`sa-mp.cfg` is a client configuration file which allows you to change settings related to SA-MP. This file is found in your 'My Documents\\GTA San Andreas User Files\\SAMP' folder, under your Windows user account. This file can be edited with a text editor such as notepad. +sa-mp.cfg is a client configuration file which allows you to change settings related to SA-MP. This file is found in your `My Documents\GTA San Andreas User Files\SAMP` folder, under your Windows user account. This file can be edited with a text editor such as notepad. ## Options diff --git a/frontend/docs/scripting/callbacks/OnClientCheckResponse.md b/frontend/docs/scripting/callbacks/OnClientCheckResponse.md index 262ea4a47ff0..d8f620edb997 100644 --- a/frontend/docs/scripting/callbacks/OnClientCheckResponse.md +++ b/frontend/docs/scripting/callbacks/OnClientCheckResponse.md @@ -43,9 +43,8 @@ public OnClientCheckResponse(playerid, actionid, memaddr, retndata) :::warning -**SA:MP Server**: This callback is only called when it is in a filterscript. - -**Open Multiplayer Server**: This callback functions normally inside a gamemode / filterscript. +- **SA-MP server**: This callback is only called when it is in a filterscript. +- **open.mp server**: This callback functions normally inside a gamemode / filterscript. ::: diff --git a/frontend/docs/scripting/callbacks/OnDialogResponse.md b/frontend/docs/scripting/callbacks/OnDialogResponse.md index b30e084d93b8..0d7a2c540060 100644 --- a/frontend/docs/scripting/callbacks/OnDialogResponse.md +++ b/frontend/docs/scripting/callbacks/OnDialogResponse.md @@ -7,15 +7,15 @@ tags: ["dialog"] ## 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). +This callback is called when a player responds to a dialog shown using [ShowPlayerDialog](../functions/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). -| Name | Description | -| ----------- | ------------------------------------------------------------------------------------------------------------- | -| playerid | The ID of the player who responded to the dialog. | -| dialogid | The ID of the dialog the player responded to, as assigned in ShowPlayerDialog. | -| response | **1** for the left button, and **0** for the right button (if only one button is shown, it will always be 1). | -| listitem | The ID of the list item selected by the player (starts at 0). For non-list dialogs, it will be -1. | -| inputtext[] | The text entered in the input box by the player, or the selected list item text. | +| Name | Description | +| ----------- | --------------------------------------------------------------------------------------------------------------- | +| playerid | The ID of the player who responded to the dialog. | +| dialogid | The ID of the dialog the player responded to, as assigned in [ShowPlayerDialog](../functions/ShowPlayerDialog). | +| response | **1** for the left button, and **0** for the right button (if only one button is shown, it will always be 1). | +| listitem | The ID of the list item selected by the player (starts at 0). For non-list dialogs, it will be -1. | +| inputtext[] | The text entered in the input box by the player, or the selected list item text. | ## Returns @@ -179,7 +179,7 @@ The parameters can have different values depending on the dialog's style. ([Clic :::tip -Using a switch-case statement instead of if blocks is an appropriate method for handling multiple dialogs. +Using a [switch-case statement](../language/Statements#switch) instead of if blocks is an appropriate method for handling multiple dialogs. ::: diff --git a/frontend/docs/scripting/callbacks/OnEnterExitModShop.md b/frontend/docs/scripting/callbacks/OnEnterExitModShop.md index 71bc2d7a28b5..0b43bab092e9 100644 --- a/frontend/docs/scripting/callbacks/OnEnterExitModShop.md +++ b/frontend/docs/scripting/callbacks/OnEnterExitModShop.md @@ -9,11 +9,11 @@ tags: ["player"] This callback is called when a player enters or exits a mod shop. -| Name | Description | -| ---------- | ---------------------------------------------------------------------------- | -| playerid | The ID of the player that entered or exited the modshop | -| enterexit | **1** if the player entered or **0** if they exited | -| interiorid | The interior ID of the modshop that the player is entering (or 0 if exiting) | +| Name | Description | +| ---------- | ---------------------------------------------------------------------------------------------------------------------- | +| playerid | The ID of the player that entered or exited the modshop | +| enterexit | **1** if the player entered or **0** if they exited | +| interiorid | The [interior ID](../resources/interiorids#modding-shops) of the modshop that the player is entering (or 0 if exiting) | ## Returns diff --git a/frontend/docs/scripting/callbacks/OnFilterScriptInit.md b/frontend/docs/scripting/callbacks/OnFilterScriptInit.md index 091ac037fee3..efa89113e325 100644 --- a/frontend/docs/scripting/callbacks/OnFilterScriptInit.md +++ b/frontend/docs/scripting/callbacks/OnFilterScriptInit.md @@ -7,7 +7,7 @@ tags: [] ## Description -This callback is called when a filterscript is initialized (loaded). It is only called inside the filterscript which is starting. +This callback is called when a filterscript is **init**ialized (loaded). It is only called inside the filterscript which is starting. ## Examples diff --git a/frontend/docs/scripting/callbacks/OnGameModeExit.md b/frontend/docs/scripting/callbacks/OnGameModeExit.md index 3427086031c5..4caa723a93a4 100644 --- a/frontend/docs/scripting/callbacks/OnGameModeExit.md +++ b/frontend/docs/scripting/callbacks/OnGameModeExit.md @@ -7,7 +7,7 @@ tags: [] ## Description -This callback is called when a gamemode ends, either through 'gmx', the server being shut down, or GameModeExit. +This callback is called when a gamemode ends, either through 'gmx', the server being shut down, or [GameModeExit](../functions/GameModeExit). ## Returns @@ -29,7 +29,7 @@ public OnGameModeExit() :::tip -This function can also be used in a filterscript to detect if the gamemode changes with RCON commands like changemode or gmx, as changing the gamemode does not reload a filterscript. +This function can also be used in a filterscript to detect if the gamemode changes with [RCON commands](../../server/ControllingServer#rcon-commands) like changemode or gmx, as changing the gamemode does not reload a filterscript. ::: diff --git a/frontend/docs/scripting/callbacks/OnGameModeInit.md b/frontend/docs/scripting/callbacks/OnGameModeInit.md index c5db59fd3f4c..32639e41e641 100644 --- a/frontend/docs/scripting/callbacks/OnGameModeInit.md +++ b/frontend/docs/scripting/callbacks/OnGameModeInit.md @@ -29,7 +29,7 @@ public OnGameModeInit() :::tip -This function can also be used in a filterscript to detect if the gamemode changes with RCON commands like changemode or gmx, as changing the gamemode does not reload a filterscript. +This function can also be used in a filterscript to detect if the gamemode changes with [RCON commands](../../server/ControllingServer#rcon-commands) like changemode or gmx, as changing the gamemode does not reload a filterscript. ::: diff --git a/frontend/docs/scripting/callbacks/OnIncomingConnection.md b/frontend/docs/scripting/callbacks/OnIncomingConnection.md index 8cad75ad1acb..62fa3f2f5862 100644 --- a/frontend/docs/scripting/callbacks/OnIncomingConnection.md +++ b/frontend/docs/scripting/callbacks/OnIncomingConnection.md @@ -7,7 +7,7 @@ tags: [] ## Description -This callback is called when an IP address attempts a connection to the server. To block incoming connections, use BlockIpAddress. +This callback is called when an IP address attempts a connection to the server. To block incoming connections, use [BlockIpAddress](../functions/BlockIpAddress). | Name | Description | | ------------ | -------------------------------------------------- | diff --git a/frontend/docs/scripting/callbacks/OnObjectMoved.md b/frontend/docs/scripting/callbacks/OnObjectMoved.md index 5afb27fa4224..38b778eb9450 100644 --- a/frontend/docs/scripting/callbacks/OnObjectMoved.md +++ b/frontend/docs/scripting/callbacks/OnObjectMoved.md @@ -7,7 +7,7 @@ tags: ["object"] ## Description -This callback is called when an object is moved after MoveObject (when it stops moving). +This callback is called when an object is moved after [MoveObject](../functions/MoveObject) (when it stops moving). | Name | Description | | -------- | ----------------------------------- | diff --git a/frontend/docs/scripting/callbacks/OnPlayerClickMap.md b/frontend/docs/scripting/callbacks/OnPlayerClickMap.md index 4af36cabc5d9..85650daa587c 100644 --- a/frontend/docs/scripting/callbacks/OnPlayerClickMap.md +++ b/frontend/docs/scripting/callbacks/OnPlayerClickMap.md @@ -38,7 +38,8 @@ public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) :::note -As the callback name says, its only called when the player click to mark the target and not when pressed the key. The Z value returned will be 0 (invalid) if the clicked area on the map is far away from the player; use the [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) or [ColAndreas](https://github.com/Pottus/ColAndreas) plugin to get a more accurate Z coordinate. +- As the callback name says, its only called when the player click to mark the target and not when pressed the key. +- The Z value returned will be 0 (invalid) if the clicked area on the map is far away from the player; use the [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) or [ColAndreas](https://github.com/Pottus/ColAndreas) plugin to get a more accurate Z coordinate. ::: diff --git a/frontend/docs/scripting/callbacks/OnPlayerClickPlayerTextDraw.md b/frontend/docs/scripting/callbacks/OnPlayerClickPlayerTextDraw.md index 79f16e615082..5d25800b915a 100644 --- a/frontend/docs/scripting/callbacks/OnPlayerClickPlayerTextDraw.md +++ b/frontend/docs/scripting/callbacks/OnPlayerClickPlayerTextDraw.md @@ -7,7 +7,7 @@ tags: ["player", "textdraw", "playertextdraw"] ## Description -This callback is called when a player clicks on a player-textdraw. It is not called when player cancels the select mode (ESC) - however, OnPlayerClickTextDraw is. +This callback is called when a player clicks on a player-textdraw. It is not called when player cancels the select mode (ESC) - however, [OnPlayerClickTextDraw](OnPlayerClickTextDraw) is. | Name | Description | | ----------------------- | ------------------------------------------------------- | diff --git a/frontend/docs/scripting/callbacks/OnPlayerExitVehicle.md b/frontend/docs/scripting/callbacks/OnPlayerExitVehicle.md index 305964d88353..889b130dba69 100644 --- a/frontend/docs/scripting/callbacks/OnPlayerExitVehicle.md +++ b/frontend/docs/scripting/callbacks/OnPlayerExitVehicle.md @@ -34,7 +34,8 @@ public OnPlayerExitVehicle(playerid, vehicleid) :::warning -Not called if the player falls off a bike or is removed from a vehicle by other means such as using [SetPlayerPos](../functions/SetPlayerPos). You must use [OnPlayerStateChange](OnPlayerStateChange) and check if their old state is `PLAYER_STATE_DRIVER` or `PLAYER_STATE_PASSENGER` and their new state is `PLAYER_STATE_ONFOOT`. +- Not called if the player falls off a bike or is removed from a vehicle by other means such as using [SetPlayerPos](../functions/SetPlayerPos). +- You must use [OnPlayerStateChange](OnPlayerStateChange) and check if their old state is `PLAYER_STATE_DRIVER` or `PLAYER_STATE_PASSENGER` and their new state is `PLAYER_STATE_ONFOOT`. ::: diff --git a/frontend/docs/scripting/callbacks/OnPlayerGiveDamage.md b/frontend/docs/scripting/callbacks/OnPlayerGiveDamage.md index 6c79a0f2577c..e3c8d90b87c9 100644 --- a/frontend/docs/scripting/callbacks/OnPlayerGiveDamage.md +++ b/frontend/docs/scripting/callbacks/OnPlayerGiveDamage.md @@ -9,13 +9,13 @@ tags: ["player"] This callback is called when a player gives damage to another player. -| Name | Description | -| --------------- | ---------------------------------------------------------- | -| playerid | The ID of the player that gave damage. | -| damagedid | The ID of the player that received damage. | -| Float:amount | The amount of health/armour damagedid has lost (combined). | -| WEAPON:weaponid | The reason that caused the damage. | -| bodypart | The [body part](../resources/bodyparts) that was hit. | +| Name | Description | +| --------------- | ------------------------------------------------------------ | +| playerid | The ID of the player that gave damage. | +| damagedid | The ID of the player that received damage. | +| Float:amount | The amount of health/armour damagedid has lost (combined). | +| WEAPON:weaponid | The [reason](../resources/weaponids) that caused the damage. | +| bodypart | The [body part](../resources/bodyparts) that was hit. | ## Returns diff --git a/frontend/docs/scripting/callbacks/OnPlayerGiveDamageActor.md b/frontend/docs/scripting/callbacks/OnPlayerGiveDamageActor.md index 336085845c1c..6c45611461e5 100644 --- a/frontend/docs/scripting/callbacks/OnPlayerGiveDamageActor.md +++ b/frontend/docs/scripting/callbacks/OnPlayerGiveDamageActor.md @@ -11,13 +11,13 @@ tags: ["player", "actor"] This callback is called when a player gives damage to an actor. -| Name | Description | -| --------------- | ----------------------------------------------------- | -| playerid | The ID of the player that gave damage. | -| damaged_actorid | The ID of the actor that received damage. | -| Float:amount | The amount of health/armour damaged_actorid has lost. | -| WEAPON:weaponid | The reason that caused the damage. | -| bodypart | The [body part](../resources/bodyparts) that was hit | +| Name | Description | +| --------------- | ------------------------------------------------------------ | +| playerid | The ID of the player that gave damage. | +| damaged_actorid | The ID of the actor that received damage. | +| Float:amount | The amount of health/armour damaged_actorid has lost. | +| WEAPON:weaponid | The [reason](../resources/weaponids) that caused the damage. | +| bodypart | The [body part](../resources/bodyparts) that was hit | ## Returns diff --git a/frontend/docs/scripting/callbacks/OnPlayerInteriorChange.md b/frontend/docs/scripting/callbacks/OnPlayerInteriorChange.md index d0522179b8dd..9f5e1ad14d03 100644 --- a/frontend/docs/scripting/callbacks/OnPlayerInteriorChange.md +++ b/frontend/docs/scripting/callbacks/OnPlayerInteriorChange.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -This callback is called when a player changes interior. Can be triggered by SetPlayerInterior or when a player enter/exits a building. +This callback is called when a player changes interior. Can be triggered by [SetPlayerInterior](../functions/SetPlayerInterior) or when a player enter/exits a building. | Name | Description | | ------------- | -------------------------------------- | diff --git a/frontend/docs/scripting/callbacks/OnPlayerRequestSpawn.md b/frontend/docs/scripting/callbacks/OnPlayerRequestSpawn.md index 239205edde1d..03cdf625aa8b 100644 --- a/frontend/docs/scripting/callbacks/OnPlayerRequestSpawn.md +++ b/frontend/docs/scripting/callbacks/OnPlayerRequestSpawn.md @@ -39,7 +39,7 @@ public OnPlayerRequestSpawn(playerid) :::tip -To prevent players from spawning with certain classes, the last viewed class must be saved in a variable in OnPlayerRequestClass. +To prevent players from spawning with certain classes, the last viewed class must be saved in a variable in [OnPlayerRequestClass](OnPlayerRequestClass). ::: diff --git a/frontend/docs/scripting/callbacks/OnPlayerStateChange.md b/frontend/docs/scripting/callbacks/OnPlayerStateChange.md index 6991cc3c63ed..64f89240cd52 100644 --- a/frontend/docs/scripting/callbacks/OnPlayerStateChange.md +++ b/frontend/docs/scripting/callbacks/OnPlayerStateChange.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -This callback is called when a player changes state. For example, when a player changes from being the driver of a vehicle to being on-foot. +This callback is called when a player changes [state](../resources/playerstates). For example, when a player changes from being the driver of a vehicle to being on-foot. | Name | Description | | --------------------- | ---------------------------------------- | @@ -15,8 +15,6 @@ This callback is called when a player changes state. For example, when a player | PLAYER_STATE:newstate | The player's new state. | | PLAYER_STATE:oldstate | The player's previous state. | -Refer to [Player States](../resources/playerstates) for a list of all available player states. - ## Returns It is always called first in filterscripts. diff --git a/frontend/docs/scripting/callbacks/OnPlayerTakeDamage.md b/frontend/docs/scripting/callbacks/OnPlayerTakeDamage.md index a42af1cb522e..4e161008ca96 100644 --- a/frontend/docs/scripting/callbacks/OnPlayerTakeDamage.md +++ b/frontend/docs/scripting/callbacks/OnPlayerTakeDamage.md @@ -14,7 +14,7 @@ This callback is called when a player takes damage. | playerid | The ID of the player that took damage. | | issuerid | The ID of the player that caused the damage. INVALID_PLAYER_ID if self-inflicted. | | Float:amount | The amount of damage the player took (health and armour combined). | -| WEAPON:weaponid | The ID of the weapon/reason for the damage. | +| WEAPON:weaponid | The ID of the [weapon/reason](../resources/weaponids) for the damage. | | bodypart | The [body part](../resources/bodyparts) that was hit. | ## Returns diff --git a/frontend/docs/scripting/callbacks/OnPlayerWeaponShot.md b/frontend/docs/scripting/callbacks/OnPlayerWeaponShot.md index 452a435d62e4..e391acef8f0d 100644 --- a/frontend/docs/scripting/callbacks/OnPlayerWeaponShot.md +++ b/frontend/docs/scripting/callbacks/OnPlayerWeaponShot.md @@ -43,10 +43,10 @@ public OnPlayerWeaponShot(playerid, WEAPON:weaponid, BULLET_HIT_TYPE:hittype, hi :::note -This callback is only called when lag compensation is **enabled**. If **hittype** is: - -- `BULLET_HIT_TYPE_NONE`: The **fX**, **fY**, and **fZ** parameters are absolute coordinates. These will return 0.0 if nothing was hit (e.g., a distant object that the bullet can't reach). -- Other values: The **fX**, **fY**, and **fZ** values are offsets relative to **hitid**. +- This callback is only called when [lag compensation](../../server/LagCompensation) is **enabled**. +- If **hittype** is: + - `BULLET_HIT_TYPE_NONE`: The **fX**, **fY**, and **fZ** parameters are absolute coordinates. These will return 0.0 if nothing was hit (e.g., a distant object that the bullet can't reach). + - Other values: The **fX**, **fY**, and **fZ** values are offsets relative to **hitid**. ::: diff --git a/frontend/docs/scripting/callbacks/OnRconCommand.md b/frontend/docs/scripting/callbacks/OnRconCommand.md index c87afb776aaf..f4e882dd5b87 100644 --- a/frontend/docs/scripting/callbacks/OnRconCommand.md +++ b/frontend/docs/scripting/callbacks/OnRconCommand.md @@ -51,7 +51,7 @@ public OnRconCommand(cmd[]) - The /rcon prefix is not included in the cmd parameter when a player types a command. - If you use the print function here, it will send a message to both the player who typed the command in-game and the server log. - This callback is not called if the player is not logged in as an RCON admin. -- When a player uses `/rcon login` to log in, this callback will not be called, instead, OnRconLoginAttempt is called. Once logged in as an RCON admin, any subsequent commands will trigger this callback. +- When a player uses `/rcon login` to log in, this callback will not be called, instead, [OnRconLoginAttempt](OnRconLoginAttempt) is called. Once logged in as an RCON admin, any subsequent commands will trigger this callback. ::: diff --git a/frontend/docs/scripting/callbacks/OnVehicleMod.md b/frontend/docs/scripting/callbacks/OnVehicleMod.md index d74b4ba7e798..7c7764d66fc2 100644 --- a/frontend/docs/scripting/callbacks/OnVehicleMod.md +++ b/frontend/docs/scripting/callbacks/OnVehicleMod.md @@ -42,7 +42,7 @@ public OnVehicleMod(playerid, vehicleid, componentid) :::note -This callback is NOT called by AddVehicleComponent. +This callback is NOT called by [AddVehicleComponent](../functions/AddVehicleComponent). ::: diff --git a/frontend/docs/scripting/callbacks/OnVehiclePaintjob.md b/frontend/docs/scripting/callbacks/OnVehiclePaintjob.md index 30946ff7b92c..77c158032620 100644 --- a/frontend/docs/scripting/callbacks/OnVehiclePaintjob.md +++ b/frontend/docs/scripting/callbacks/OnVehiclePaintjob.md @@ -35,7 +35,8 @@ public OnVehiclePaintjob(playerid, vehicleid, paintjobid) :::note -This callback is not called by ChangeVehiclePaintjob. You might use OnVehicleChangePaintjob from vSync in order to know when the player **buys** the paintjob. +- This callback is not called by [ChangeVehiclePaintjob](../functions/ChangeVehiclePaintjob). +- You might use OnVehicleChangePaintjob from [vSync](https://github.com/Vasily-X/vSync) in order to know when the player **buys** the paintjob. ::: diff --git a/frontend/docs/scripting/callbacks/OnVehicleRespray.md b/frontend/docs/scripting/callbacks/OnVehicleRespray.md index a03afc10da8d..54534352e72f 100644 --- a/frontend/docs/scripting/callbacks/OnVehicleRespray.md +++ b/frontend/docs/scripting/callbacks/OnVehicleRespray.md @@ -38,7 +38,8 @@ public OnVehicleRespray(playerid, vehicleid, color1, color2) :::note -This callback is not called by ChangeVehicleColor. Misleadingly, this callback is not called for pay 'n' spray (only modshops). +- This callback is not called by [ChangeVehicleColor](../functions/ChangeVehicleColor). +- Misleadingly, this callback is not called for pay 'n' spray (only modshops). Fix here: https://pastebin.com/G81da7N1 diff --git a/frontend/docs/scripting/callbacks/OnVehicleSpawn.md b/frontend/docs/scripting/callbacks/OnVehicleSpawn.md index 95bbfd9adea1..97172474eac6 100644 --- a/frontend/docs/scripting/callbacks/OnVehicleSpawn.md +++ b/frontend/docs/scripting/callbacks/OnVehicleSpawn.md @@ -13,7 +13,7 @@ This callback is called **only** when vehicle **re**spawns! CreateVehicle and Ad ## Description -This callback is called when a vehicle respawns. +This callback is called when a vehicle **re**spawns. | Name | Description | | --------- | ----------------------------------- | diff --git a/frontend/docs/scripting/functions/AddCharModel.md b/frontend/docs/scripting/functions/AddCharModel.md index 68918aef2cc4..43d5b332013b 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](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) file name. +Adds a new custom [character model](SetPlayerSkin) 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). | +| 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](SetPlayerSkin) | +| const dff[] | Name of the **.dff** model collision file located in `models` server folder by default ([artpath setting](../../server/server.cfg#custom-models)). | +| const textureLibrary[] | Name of the **.txd** model texture file located in `models` server folder by default ([artpath setting](../../server/server.cfg#custom-models)). | ## Returns @@ -39,7 +39,7 @@ public OnGameModeInit() :::note -**useartwork** or **artwork.enable** must be enabled first in server settings in order for this to work. +**useartwork** or **artwork.enable** must be enabled first in [server settings](../../server/server.cfg#custom-models) in order for this to work. ::: diff --git a/frontend/docs/scripting/functions/AddMenuItem.md b/frontend/docs/scripting/functions/AddMenuItem.md index 7effbcf39443..f4c0853ee380 100644 --- a/frontend/docs/scripting/functions/AddMenuItem.md +++ b/frontend/docs/scripting/functions/AddMenuItem.md @@ -46,7 +46,8 @@ Crashes when passed an invalid menu ID. (Fixed in open.mp) - You can only have 12 items per menu (13th goes to the right side of the header of column name (colored), 14th and higher not display at all). - You can only use 2 columns (0 and 1). -- You can only add 8 color codes per one item (`~r~`, `~g~` etc.). Maximum length of menu item is 31 symbols. +- You can only add 8 color codes per one item (`~r~`, `~g~` etc.). +- Maximum length of menu item is 31 symbols. ::: diff --git a/frontend/docs/scripting/functions/AddPlayerClass.md b/frontend/docs/scripting/functions/AddPlayerClass.md index ab7a3a0ef842..60458b824a56 100644 --- a/frontend/docs/scripting/functions/AddPlayerClass.md +++ b/frontend/docs/scripting/functions/AddPlayerClass.md @@ -9,19 +9,19 @@ tags: ["player", "class"] Adds a class to class selection. Classes are used so players may spawn with a skin of their choice. -| Name | Description | -| -------------- | ---------------------------------------------------------------- | -| skin | The [skin](../resources/skins) which the player will spawn with. | -| Float:spawnX | The X coordinate of the spawnpoint of this class. | -| Float:spawnY | The Y coordinate of the spawnpoint of this class. | -| Float:spawnZ | The Z coordinate of the spawnpoint of this class. | -| Float:angle | The direction in which the player should face after spawning. | -| WEAPON:weapon1 | The first spawn-weapon for the player. | -| ammo1 | The amount of ammunition for the primary spawn weapon. | -| WEAPON:weapon2 | The second spawn-weapon for the player. | -| ammo2 | The amount of ammunition for the second spawn weapon. | -| WEAPON:weapon3 | The third spawn-weapon for the player. | -| ammo3 | The amount of ammunition for the third spawn weapon. | +| Name | Description | +| -------------- | ----------------------------------------------------------------- | +| skin | The [skin](../resources/skins) which the player will spawn with. | +| Float:spawnX | The X coordinate of the spawnpoint of this class. | +| Float:spawnY | The Y coordinate of the spawnpoint of this class. | +| Float:spawnZ | The Z coordinate of the spawnpoint of this class. | +| Float:angle | The direction in which the player should face after spawning. | +| WEAPON:weapon1 | The first spawn-[weapon](../resources/weaponids) for the player. | +| ammo1 | The amount of ammunition for the primary spawn weapon. | +| WEAPON:weapon2 | The second spawn-[weapon](../resources/weaponids) for the player. | +| ammo2 | The amount of ammunition for the second spawn weapon. | +| WEAPON:weapon3 | The third spawn-[weapon](../resources/weaponids) for the player. | +| ammo3 | The amount of ammunition for the third spawn weapon. | ## Returns diff --git a/frontend/docs/scripting/functions/AddPlayerClassEx.md b/frontend/docs/scripting/functions/AddPlayerClassEx.md index 36549ae2518c..cf119912288c 100644 --- a/frontend/docs/scripting/functions/AddPlayerClassEx.md +++ b/frontend/docs/scripting/functions/AddPlayerClassEx.md @@ -7,22 +7,22 @@ tags: ["player", "class"] ## Description -This function is exactly the same as the AddPlayerClass function, with the addition of a team parameter. - -| Name | Description | -| -------------- | ---------------------------------------------------------------- | -| team | The team you want the player to spawn in. | -| skin | The [skin](../resources/skins) which the player will spawn with. | -| Float:spawnX | The X coordinate of the spawnpoint of this class. | -| Float:spawnY | The Y coordinate of the spawnpoint of this class. | -| Float:spawnZ | The Z coordinate of the spawnpoint of this class. | -| Float:angle | The direction in which the player should face after spawning. | -| WEAPON:weapon1 | The first spawn-weapon for the player. | -| ammo1 | The amount of ammunition for the primary spawn weapon. | -| WEAPON:weapon2 | The second spawn-weapon for the player. | -| ammo2 | The amount of ammunition for the second spawn weapon. | -| WEAPON:weapon3 | The third spawn-weapon for the player. | -| ammo3 | The amount of ammunition for the third spawn weapon. | +This function is exactly the same as the [AddPlayerClass](AddPlayerClass) function, with the addition of a team parameter. + +| Name | Description | +| -------------- | ----------------------------------------------------------------- | +| team | The team you want the player to spawn in. | +| skin | The [skin](../resources/skins) which the player will spawn with. | +| Float:spawnX | The X coordinate of the spawnpoint of this class. | +| Float:spawnY | The Y coordinate of the spawnpoint of this class. | +| Float:spawnZ | The Z coordinate of the spawnpoint of this class. | +| Float:angle | The direction in which the player should face after spawning. | +| WEAPON:weapon1 | The first spawn-[weapon](../resources/weaponids) for the player. | +| ammo1 | The amount of ammunition for the primary spawn weapon. | +| WEAPON:weapon2 | The second spawn-[weapon](../resources/weaponids) for the player. | +| ammo2 | The amount of ammunition for the second spawn weapon. | +| WEAPON:weapon3 | The third spawn-[weapon](../resources/weaponids) for the player. | +| ammo3 | The amount of ammunition for the third spawn weapon. | ## Returns diff --git a/frontend/docs/scripting/functions/AddSimpleModel.md b/frontend/docs/scripting/functions/AddSimpleModel.md index fc10c1afc409..e05b779b9e46 100644 --- a/frontend/docs/scripting/functions/AddSimpleModel.md +++ b/frontend/docs/scripting/functions/AddSimpleModel.md @@ -9,15 +9,15 @@ tags: ["custom model", "simple model"] ## Description -Adds a new custom simple object 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 simple [object model](CreateObject) 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 | -| ---------------------- | --------------------------------------------------------------------------------------------------------------------------- | -| virtualWorld | The virtual world ID to make the model available at. Use -1 for all worlds. | -| baseid | The base object model ID to use (original object to use when download is failed). | -| newid | The new object model ID ranged from -1000 to -30000 (29000 slots) to be used later with CreateObject or CreatePlayerObject. | -| 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). | +| Name | Description | +| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| virtualWorld | The [virtual world ID](SetPlayerVirtualWorld) to make the model available at. Use -1 for all worlds. | +| baseid | The base [object model ID](https://models.open.mp/?cat=objects) to use (original object to use when download is failed). | +| newid | The new object model ID ranged from -1000 to -30000 (29000 slots) to be used later with [CreateObject](CreateObject) or [CreatePlayerObject](CreatePlayerObject). | +| const dff[] | Name of the **.dff** model collision file located in `models` server folder by default ([artpath setting](../../server/server.cfg#custom-models)). | +| const textureLibrary[] | Name of the **.txd** model texture file located in `models` server folder by default ([artpath setting](../../server/server.cfg#custom-models)). | ## Returns @@ -39,8 +39,8 @@ public OnGameModeInit() :::note -- **useartwork** or **artwork.enable** must be enabled first in server settings in order for this to work. -- When `virtualworld` is set, the models will be downloaded once the player enters the specific world. +- **useartwork** or **artwork.enable** must be enabled first in [server settings](../../server/server.cfg#custom-models) in order for this to work. +- When `virtualworld` is set, the [models will be downloaded once the player enters the specific world](../callbacks/OnPlayerFinishedDownloading). ::: diff --git a/frontend/docs/scripting/functions/AddSimpleModelTimed.md b/frontend/docs/scripting/functions/AddSimpleModelTimed.md index cc78b012efea..4cbe910ffb0a 100644 --- a/frontend/docs/scripting/functions/AddSimpleModelTimed.md +++ b/frontend/docs/scripting/functions/AddSimpleModelTimed.md @@ -9,17 +9,17 @@ tags: ["custom model", "simple model"] ## Description -Adds a new custom simple object 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 | -| ---------------------- | --------------------------------------------------------------------------------------------------------------------------- | -| virtualWorld | The virtual world ID to make the model available at. Use -1 for all worlds. | -| baseid | The base object model ID to use (original object to use when download is failed). | -| newid | The new object model ID ranged from -1000 to -30000 (29000 slots) to be used later with CreateObject or CreatePlayerObject. | -| 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). | -| timeOn | The world game time (hour) this object will appear | -| timeOff | The world game time (hour) this object will disappear | +Adds a new custom simple [object model](CreateObject) 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 | +| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| virtualWorld | The [virtual world ID](SetPlayerVirtualWorld) to make the model available at. Use -1 for all worlds. | +| baseid | The base [object model ID](https://models.open.mp/?cat=objects) to use (original object to use when download is failed). | +| newid | The new object model ID ranged from -1000 to -30000 (29000 slots) to be used later with [CreateObject](CreateObject) or [CreatePlayerObject](CreatePlayerObject). | +| const dff[] | Name of the **.dff** model collision file located in `models` server folder by default ([artpath setting](../../server/server.cfg#custom-models)). | +| const textureLibrary[] | Name of the **.txd** model texture file located in `models` server folder by default ([artpath setting](../../server/server.cfg#custom-models)). | +| timeOn | The [world game time (hour)](SetWorldTime) this object will appear | +| timeOff | The [world game time (hour)](SetWorldTime) this object will disappear | ## Returns @@ -41,8 +41,8 @@ public OnGameModeInit() :::note -- **useartwork** or **artwork.enable** must be enabled first in server settings in order for this to work. -- When `virtualworld` is set, the models will be downloaded once the player enters the specific world. +- **useartwork** or **artwork.enable** must be enabled first in [server settings](../../server/server.cfg#custom-models) in order for this to work. +- When `virtualworld` is set, the [models will be downloaded once the player enters the specific world](../callbacks/OnPlayerFinishedDownloading). ::: diff --git a/frontend/docs/scripting/functions/AddStaticPickup.md b/frontend/docs/scripting/functions/AddStaticPickup.md index 92ea3f417fc7..9900a4579ed1 100644 --- a/frontend/docs/scripting/functions/AddStaticPickup.md +++ b/frontend/docs/scripting/functions/AddStaticPickup.md @@ -43,7 +43,7 @@ public OnGameModeInit() :::note -This function doesn't return a pickup ID that you can use in, for example, OnPlayerPickUpPickup. Use [CreatePickup](CreatePickup) if you'd like to assign IDs. +This function doesn't return a pickup ID that you can use in, for example, [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup). Use [CreatePickup](CreatePickup) if you'd like to assign IDs. ::: diff --git a/frontend/docs/scripting/functions/AddStaticVehicleEx.md b/frontend/docs/scripting/functions/AddStaticVehicleEx.md index c3ce4483bcad..4203a645bed8 100644 --- a/frontend/docs/scripting/functions/AddStaticVehicleEx.md +++ b/frontend/docs/scripting/functions/AddStaticVehicleEx.md @@ -9,7 +9,7 @@ tags: ["vehicle"] Adds a 'static' vehicle (models are pre-loaded for players) to the gamemode. -Differs from AddStaticVehicle in only one way: allows a respawn time to be set for when the vehicle is left unoccupied by the driver. +Differs from [AddStaticVehicle](AddStaticVehicle) in only one way: allows a respawn time to be set for when the vehicle is left unoccupied by the driver. | Name | Description | | -------------------------------------- | --------------------------------------------------------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/AddVehicleComponent.md b/frontend/docs/scripting/functions/AddVehicleComponent.md index ad43a2f0755a..a06bf43ce6fc 100644 --- a/frontend/docs/scripting/functions/AddVehicleComponent.md +++ b/frontend/docs/scripting/functions/AddVehicleComponent.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Description -Adds a 'component' (often referred to as a 'mod' (modification)) to a vehicle. Valid components can be found here. +Adds a 'component' (often referred to as a 'mod' (modification)) to a vehicle. Valid components can be found [here](../resources/carcomponentid). | Name | Description | | ---------------------------------------- | ------------------------------------------------------------------------------- | @@ -49,7 +49,7 @@ public OnPlayerStateChange(playerid, PLAYER_STATE:newstate, PLAYER_STATE:oldstat :::warning -Using an invalid component ID crashes the player's game. (Fixed in open.mp) +Using an invalid [component ID](../resources/carcomponentid) crashes the player's game. (Fixed in open.mp) ::: diff --git a/frontend/docs/scripting/functions/ApplyActorAnimation.md b/frontend/docs/scripting/functions/ApplyActorAnimation.md index 3ca7899d4065..d30cd5eb6e70 100644 --- a/frontend/docs/scripting/functions/ApplyActorAnimation.md +++ b/frontend/docs/scripting/functions/ApplyActorAnimation.md @@ -14,8 +14,8 @@ Apply an animation to an actor. | Name | Description | | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | actorid | The ID of the actor to apply the animation to. | -| const animationLibrary[] | The animation library from which to apply an animation. | -| const animationName[] | The name of the animation to apply, within the specified library. | +| const animationLibrary[] | The [animation library](../resources/animations) from which to apply an animation. | +| const animationName[] | The name of the [animation](../resources/animations) to apply, within the specified library. | | float:delta | The speed to play the animation (use 4.1). | | bool:loop | If set to **true**, the animation will loop. If set to **false**, the animation will play once. | | bool:lockX | If set to **false**, the actor is returned to their old X coordinate once the animation is complete (for animations that move the actor such as walking). **true** will not return them to their old position. | diff --git a/frontend/docs/scripting/functions/ApplyAnimation.md b/frontend/docs/scripting/functions/ApplyAnimation.md index 6127b20c0bae..34d7b02d07c1 100644 --- a/frontend/docs/scripting/functions/ApplyAnimation.md +++ b/frontend/docs/scripting/functions/ApplyAnimation.md @@ -13,7 +13,7 @@ Apply an animation to a player. | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | playerid | The ID of the player to apply the animation to. | | const animationLibrary[] | The [animation library](../resources/animations) from which to apply an animation. | -| const animationName[] | The name of the animation to apply, within the specified library. | +| const animationName[] | The name of the [animation](../resources/animations) to apply, within the specified library. | | Float:delta | The speed to play the animation (use 4.1). | | bool:loop | If set to **true**, the animation will loop. If set to **false**, the animation will play once. | | bool:lockX | If set to **false**, the player is returned to their old X coordinate once the animation is complete (for animations that move the player such as walking). **true** will not return them to their old position. | diff --git a/frontend/docs/scripting/functions/AreAllAnimationsEnabled.md b/frontend/docs/scripting/functions/AreAllAnimationsEnabled.md index 61a4f82c3b75..cda7a39284e6 100644 --- a/frontend/docs/scripting/functions/AreAllAnimationsEnabled.md +++ b/frontend/docs/scripting/functions/AreAllAnimationsEnabled.md @@ -13,9 +13,9 @@ Are the animations missing from some versions enabled? ## Returns -true: Enable. +true: Enabled. -false: False. +false: Disabled. ## Examples diff --git a/frontend/docs/scripting/functions/Attach3DTextLabelToPlayer.md b/frontend/docs/scripting/functions/Attach3DTextLabelToPlayer.md index f1e6f6e8d941..d808d0ff5d36 100644 --- a/frontend/docs/scripting/functions/Attach3DTextLabelToPlayer.md +++ b/frontend/docs/scripting/functions/Attach3DTextLabelToPlayer.md @@ -7,15 +7,15 @@ tags: ["player", "3dtextlabel"] ## Description -Attach a 3D text label to a player. - -| Name | Description | -| ------------- | --------------------------------------------------------------------- | -| Text3D:textid | The ID of the 3D text label to attach. Returned by Create3DTextLabel. | -| playerid | The ID of the player to attach the label to. | -| Float:offsetX | The X offset from the player. | -| Float:offsetY | The Y offset from the player. | -| Float:offsetZ | The Z offset from the player. | +Attach a [3D text label](Create3DTextLabel) to a player. + +| Name | Description | +| ------------- | ------------------------------------------------------------------------------------------ | +| Text3D:textid | The ID of the 3D text label to attach. Returned by [Create3DTextLabel](Create3DTextLabel). | +| playerid | The ID of the player to attach the label to. | +| Float:offsetX | The X offset from the player. | +| Float:offsetY | The Y offset from the player. | +| Float:offsetZ | The Z offset from the player. | ## Returns diff --git a/frontend/docs/scripting/functions/AttachCameraToObject.md b/frontend/docs/scripting/functions/AttachCameraToObject.md index 73ba983aebe4..77fa7f952dc6 100644 --- a/frontend/docs/scripting/functions/AttachCameraToObject.md +++ b/frontend/docs/scripting/functions/AttachCameraToObject.md @@ -38,7 +38,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -You need to create the object first, before attempting to attach a player camera for that. +You need to [create](CreateObject) the object first, before attempting to attach a player camera for that. ::: diff --git a/frontend/docs/scripting/functions/AttachCameraToPlayerObject.md b/frontend/docs/scripting/functions/AttachCameraToPlayerObject.md index 1fdef0bb3468..dbd2fd270b40 100644 --- a/frontend/docs/scripting/functions/AttachCameraToPlayerObject.md +++ b/frontend/docs/scripting/functions/AttachCameraToPlayerObject.md @@ -7,7 +7,7 @@ tags: ["player", "camera"] ## Description -Attaches a player's camera to a player-object. The player is able to move their camera while it is attached to an object. Can be used with MovePlayerObject and AttachPlayerObjectToVehicle. +Attaches a player's camera to a player-object. The player is able to move their camera while it is attached to an object. Can be used with [MovePlayerObject](MovePlayerObject) and [AttachPlayerObjectToVehicle](AttachPlayerObjectToVehicle). | Name | Description | | -------------- | ------------------------------------------------------------------------------ | @@ -38,7 +38,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -The player-object must be created before attempting to attach the player's camera to it. +The player-object must be [created](CreatePlayerObject) before attempting to attach the player's camera to it. ::: diff --git a/frontend/docs/scripting/functions/AttachObjectToObject.md b/frontend/docs/scripting/functions/AttachObjectToObject.md index 36af3ade5674..2353840cc9bd 100644 --- a/frontend/docs/scripting/functions/AttachObjectToObject.md +++ b/frontend/docs/scripting/functions/AttachObjectToObject.md @@ -40,7 +40,7 @@ AttachObjectToObject(gObjectId, gAttachToId, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, true) :::note -- Both objects need to be created before attempting to attach them. +- Both objects need to be [created](CreateObject) before attempting to attach them. - There is no player-object version of this function in SA-MP. But there is [AttachPlayerObjectToObject](AttachPlayerObjectToObject) in open.mp ::: diff --git a/frontend/docs/scripting/functions/AttachObjectToVehicle.md b/frontend/docs/scripting/functions/AttachObjectToVehicle.md index 63b597d0d186..401bc87f6098 100644 --- a/frontend/docs/scripting/functions/AttachObjectToVehicle.md +++ b/frontend/docs/scripting/functions/AttachObjectToVehicle.md @@ -7,18 +7,18 @@ tags: ["object", "vehicle"] ## Description -Attach an object to a vehicle. - -| Name | Description | -| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| objectid | The ID of the object to attach to the vehicle. Note that this is an object ID, not a model ID. The object must be CreateObject created first. | -| parentid | The ID of the vehicle to attach the object to. | -| Float:offsetX | The X axis offset from the vehicle to attach the object to. | -| Float:offsetY | The Y axis offset from the vehicle to attach the object to. | -| Float:offsetZ | The Z axis offset from the vehicle to attach the object to. | -| Float:rotationX | The X rotation offset for the object. | -| Float:rotationY | The Y rotation offset for the object. | -| Float:rotationZ | The Z rotation offset for the object. | +Attach an [object](CreateObject) to a [vehicle](CreateVehicle). + +| Name | Description | +| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| objectid | The ID of the object to attach to the vehicle. Note that this is an object ID, not a model ID. The object must be [CreateObject](CreateObject) created first. | +| parentid | The ID of the vehicle to attach the object to. | +| Float:offsetX | The X axis offset from the vehicle to attach the object to. | +| Float:offsetY | The Y axis offset from the vehicle to attach the object to. | +| Float:offsetZ | The Z axis offset from the vehicle to attach the object to. | +| Float:rotationX | The X rotation offset for the object. | +| Float:rotationY | The Y rotation offset for the object. | +| Float:rotationZ | The Z rotation offset for the object. | ## Returns @@ -36,13 +36,13 @@ AttachObjectToVehicle(objectid, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0); :::note -The object must be created first. +The object must be [created](CreateObject) first. ::: :::warning -When the vehicle is destroyed or respawned, the attached objects won't be destroyed with it; they will remain stationary at the position the vehicle disappeared and be reattached to the next vehicle to claim the vehicle ID that the objects were attached to. +When the vehicle is [destroyed](DestroyVehicle) or respawned, the attached objects won't be destroyed with it; they will remain stationary at the position the vehicle disappeared and be reattached to the next vehicle to claim the vehicle ID that the objects were attached to. ::: diff --git a/frontend/docs/scripting/functions/AttachPlayerObjectToVehicle.md b/frontend/docs/scripting/functions/AttachPlayerObjectToVehicle.md index 59fce42b35b8..34a52acccd9a 100644 --- a/frontend/docs/scripting/functions/AttachPlayerObjectToVehicle.md +++ b/frontend/docs/scripting/functions/AttachPlayerObjectToVehicle.md @@ -46,7 +46,7 @@ public OnPlayerStateChange(playerid, PLAYER_STATE:newstate, PLAYER_STATE:oldstat :::note -You need to create the object before attempting to attach it to a vehicle. +You need to [create](CreatePlayerObject) the object before attempting to attach it to a vehicle. ::: diff --git a/frontend/docs/scripting/functions/Ban.md b/frontend/docs/scripting/functions/Ban.md index ad0a353bddf8..4a6bea97e737 100644 --- a/frontend/docs/scripting/functions/Ban.md +++ b/frontend/docs/scripting/functions/Ban.md @@ -13,7 +13,7 @@ The ban will be IP-based, and be saved in the **bans.json** file in the server's [BanEx](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](SendRconCommand)). +IP bans can be added/removed using the [RCON](../../server/RemoteConsole) `banip` and `unbanip` commands ([SendRconCommand](SendRconCommand)). | Name | Description | | -------- | ---------------------------- | diff --git a/frontend/docs/scripting/functions/ChangeVehicleColor.md b/frontend/docs/scripting/functions/ChangeVehicleColor.md index 5ca24152d4dd..aa20a699d917 100644 --- a/frontend/docs/scripting/functions/ChangeVehicleColor.md +++ b/frontend/docs/scripting/functions/ChangeVehicleColor.md @@ -9,11 +9,11 @@ tags: ["vehicle"] Change a vehicle's primary and secondary colors. -| Name | Description | -| --------- | ---------------------------------------------- | -| vehicleid | The ID of the vehicle to change the colors of. | -| color1 | The new vehicle's primary color ID. | -| color2 | The new vehicle's secondary color ID. | +| Name | Description | +| --------- | -------------------------------------------------------------------- | +| vehicleid | The ID of the vehicle to change the colors of. | +| color1 | The new vehicle's primary [color ID](../resources/vehiclecolorid). | +| color2 | The new vehicle's secondary [color ID](../resources/vehiclecolorid). | ## Returns diff --git a/frontend/docs/scripting/functions/ChangeVehiclePaintjob.md b/frontend/docs/scripting/functions/ChangeVehiclePaintjob.md index 6b09d0a7b3a7..23a6e8e5b049 100644 --- a/frontend/docs/scripting/functions/ChangeVehiclePaintjob.md +++ b/frontend/docs/scripting/functions/ChangeVehiclePaintjob.md @@ -32,7 +32,7 @@ ChangeVehiclePaintjob(vehicleid, rand); // changes the paintjob of the player's :::warning -If vehicle's color is black, paintjob may not be visible. Better to make vehicle white before applying painjob by using +If vehicle's color is black, paintjob may not be visible. Better to make vehicle white before applying paintjob by using: ```c ChangeVehicleColor(vehicleid, 1, 1); diff --git a/frontend/docs/scripting/functions/ClearAnimations.md b/frontend/docs/scripting/functions/ClearAnimations.md index 2e673652a918..0351b28e9c8a 100644 --- a/frontend/docs/scripting/functions/ClearAnimations.md +++ b/frontend/docs/scripting/functions/ClearAnimations.md @@ -36,7 +36,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- ClearAnimations doesn't do anything when the animation ends if we pass 'true' for the freeze parameter in ApplyAnimation. +- ClearAnimations doesn't do anything when the animation ends if we pass 'true' for the freeze parameter in [ApplyAnimation](ApplyAnimation). - Unlike some other ways to remove player from a vehicle, this will also reset the vehicle's velocity to zero, instantly stopping the car. Player will appear on top of the vehicle with the same location as he was in his car seat. ::: diff --git a/frontend/docs/scripting/functions/Create3DTextLabel.md b/frontend/docs/scripting/functions/Create3DTextLabel.md index 45c80f6bbcc0..7bba285bf32a 100644 --- a/frontend/docs/scripting/functions/Create3DTextLabel.md +++ b/frontend/docs/scripting/functions/Create3DTextLabel.md @@ -63,8 +63,8 @@ drawDistance seems to be a lot smaller when spectating. :::tip -- Use colour embedding for multiple colours in the text. -- To remove the background use colour with transparency less than 0xFF. +- Use [colour embedding](../resources/colorslist#color-embedding) for multiple colours in the text. +- To remove the background use colour with [transparency](../resources/colorslist#alpha-values-transparency) less than 0xFF. ::: diff --git a/frontend/docs/scripting/functions/CreateActor.md b/frontend/docs/scripting/functions/CreateActor.md index 57d6238624a4..555041018585 100644 --- a/frontend/docs/scripting/functions/CreateActor.md +++ b/frontend/docs/scripting/functions/CreateActor.md @@ -48,13 +48,14 @@ public OnGameModeExit() :::note - Actors are designed to just stand somewhere, for example cashiers and bartenders. They can perform animations (once or looping) using [ApplyActorAnimation](ApplyActorAnimation). -- Actors default to being invulnerable. +- Actors default to being [invulnerable](SetActorInvulnerable). ::: :::warning -- Actors are completely separate from NPCs. They do NOT use player IDs/slots on the server and CANNOT be handled like NPCs. Actors are limited to 1000 (MAX_ACTORS). +- Actors are completely separate from NPCs. They do NOT use player IDs/slots on the server and CANNOT be handled like NPCs. +- Actors are limited to 1000 (MAX_ACTORS). - Actors can be pushed by vehicles, use a timer to put them back at their positions. ::: diff --git a/frontend/docs/scripting/functions/CreateExplosionForPlayer.md b/frontend/docs/scripting/functions/CreateExplosionForPlayer.md index 3c97bfdf1c1f..8bbccb26df05 100644 --- a/frontend/docs/scripting/functions/CreateExplosionForPlayer.md +++ b/frontend/docs/scripting/functions/CreateExplosionForPlayer.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -Creates an explosion that is only visible to a single player. This can be used to isolate explosions from other players or to make them only appear in specific virtual worlds. +Creates an explosion that is only visible to a single player. This can be used to isolate explosions from other players or to make them only appear in specific [virtual worlds](SetPlayerVirtualWorld). | Name | Description | | ------------ | -------------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/CreateObject.md b/frontend/docs/scripting/functions/CreateObject.md index 396c940961e9..88d5b83440f6 100644 --- a/frontend/docs/scripting/functions/CreateObject.md +++ b/frontend/docs/scripting/functions/CreateObject.md @@ -11,7 +11,7 @@ Creates an object at specified coordinates in the game world. | Name | Description | | ------------------ | ------------------------------------------------------------------------------------------------------------------------- | -| modelid | The model to create. | +| modelid | The [model](https://models.open.mp/?cat=objects) to create. | | Float:x | The X coordinate to create the object at. | | Float:y | The Y coordinate to create the object at. | | Float:z | The Z coordinate to create the object at. | @@ -39,9 +39,8 @@ public OnGameModeInit() :::note -- Objects that emit light (lampposts, police lights, bollard lights, neons etc.) that have a greater rotation than **16.26 degrees** (or -16.26) on either the **X or Y axis** will stop shining. This effect also applies to light objects attached to other objects, players and vehicles. If a light object is attached to a car and the car is rotated over 16.26 degrees (like in a rollover), the object will also stop emitting light. This is a GTA:SA issue, not a server bug. -- In case the light is attached to another object, one fix for this is to set `syncRotation` to `false` in [AttachObjectToObject](AttachObjectToObject). This will ensure the light stays at 0 rotation. This would only really work for objects that consist ONLY of light, so it wouldn't work for the police light for example. -- There is a limit of 1000 objects (MAX_OBJECTS). To circumvent this limit, you can use the [streamer](https://github.com/samp-incognito/samp-streamer-plugin) plugin. +- Objects that emit light (lampposts, police lights, bollard lights, neons etc.) that have a greater rotation than **16.26 degrees** (or -16.26) on either the **X or Y axis** will stop shining. This effect also applies to light objects attached to other objects, players and vehicles. If a light object is attached to a car and the car is rotated over 16.26 degrees (like in a rollover), the object will also stop emitting light. This is a GTA:SA issue, not a server bug. In case the light is attached to another object, one fix for this is to set `syncRotation` to `false` in [AttachObjectToObject](AttachObjectToObject). This will ensure the light stays at 0 rotation. This would only really work for objects that consist ONLY of light, so it wouldn't work for the police light for example. +- There is a limit of 1000 objects ([MAX_OBJECTS](../resources/limits)). To circumvent this limit, you can use the [streamer](https://github.com/samp-incognito/samp-streamer-plugin) plugin. ::: diff --git a/frontend/docs/scripting/functions/CreatePickup.md b/frontend/docs/scripting/functions/CreatePickup.md index b07c1904d417..3aafc924efe8 100644 --- a/frontend/docs/scripting/functions/CreatePickup.md +++ b/frontend/docs/scripting/functions/CreatePickup.md @@ -7,7 +7,7 @@ tags: ["pickup"] ## 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. +This function does exactly the same as [AddStaticPickup](AddStaticPickup), except it returns a pickup ID which can be used to destroy it afterwards and be tracked using [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup). | Name | Description | | -------------------------------- | --------------------------------------------------------------------------------- | @@ -20,7 +20,7 @@ This function does exactly the same as AddStaticPickup, except it returns a pick ## Returns -The ID of the created pickup, -1 on failure (pickup max limit). +The ID of the created pickup, -1 on failure ([pickup max limit](../resources/limits)). ## Examples @@ -43,7 +43,7 @@ pickup_Armour = 0; // pickup variable needs to be reset to avoid future conflict :::note -- The only type of pickup that can be picked up from inside a vehicle is **14** (except for special pickups such as bribes). +- The only [type of pickup](../resources/pickuptypes) that can be picked up from inside a vehicle is **14** (except for special pickups such as bribes). - Pickups are shown to, and can be picked up by all players. - It is possible that if DestroyPickup is used when a pickup is picked up, more than one player can pick up the pickup, due to lag. This can be circumvented through the use of variables. - Certain pickup types come with 'automatic responses', for example using an M4 model in the pickup will automatically give the player the weapon and some ammo. @@ -58,7 +58,7 @@ For fully scripted pickups, type 1 should be used. :::warning -**Known Bug(s):** Pickups that have a X or Y lower than -4096.0 or bigger than 4096.0 won't show up and won't trigger OnPlayerPickUpPickup either. +**Known Bug(s):** Pickups that have a X or Y lower than -4096.0 or bigger than 4096.0 won't show up and won't trigger [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup) either. ::: diff --git a/frontend/docs/scripting/functions/CreatePlayerObject.md b/frontend/docs/scripting/functions/CreatePlayerObject.md index bfe9d15358d1..373a55450d43 100644 --- a/frontend/docs/scripting/functions/CreatePlayerObject.md +++ b/frontend/docs/scripting/functions/CreatePlayerObject.md @@ -12,7 +12,7 @@ Creates an object which will be visible to only one player. | Name | Description | | ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | playerid | The ID of the player to create the object for. | -| modelid | The model to create. | +| modelid | The [model](https://models.open.mp/?cat=objects) to create. | | Float:x | The X coordinate to create the object at. | | Float:y | The Y coordinate to create the object at. | | Float:z | The Z coordinate to create the object at. | diff --git a/frontend/docs/scripting/functions/CreatePlayerPickup.md b/frontend/docs/scripting/functions/CreatePlayerPickup.md index 1be0a5cdcd62..78d29c73f9b0 100644 --- a/frontend/docs/scripting/functions/CreatePlayerPickup.md +++ b/frontend/docs/scripting/functions/CreatePlayerPickup.md @@ -59,7 +59,7 @@ For fully scripted pickups, type 1 should be used. **Known Bug(s):** -- Pickups that have a X or Y lower than -4096.0 or bigger than 4096.0 won't show up and won't trigger OnPlayerPickUpPlayerPickup either. +- Pickups that have a X or Y lower than -4096.0 or bigger than 4096.0 won't show up and won't trigger [OnPlayerPickUpPlayerPickup](../callbacks/OnPlayerPickUpPlayerPickup) either. ::: diff --git a/frontend/docs/scripting/functions/CreatePlayerTextDraw.md b/frontend/docs/scripting/functions/CreatePlayerTextDraw.md index 63743cc00ddd..f40d0345db58 100644 --- a/frontend/docs/scripting/functions/CreatePlayerTextDraw.md +++ b/frontend/docs/scripting/functions/CreatePlayerTextDraw.md @@ -7,7 +7,7 @@ tags: ["player", "textdraw", "playertextdraw"] ## Description -Creates a textdraw for a single player. This can be used as a way around the global text-draw limit. +Creates a textdraw for a single player. This can be used as a way around the [global text-draw](TextDrawCreate) limit. | Name | Description | | ---------------- | ----------------------------------------------- | diff --git a/frontend/docs/scripting/functions/CreateVehicle.md b/frontend/docs/scripting/functions/CreateVehicle.md index 14bfefb94bcd..e4f2261c3db2 100644 --- a/frontend/docs/scripting/functions/CreateVehicle.md +++ b/frontend/docs/scripting/functions/CreateVehicle.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Description -Creates a vehicle in the world. Can be used in place of AddStaticVehicleEx at any time in the script. +Creates a vehicle in the world. Can be used in place of [AddStaticVehicleEx](AddStaticVehicleEx) at any time in the script. | Name | Description | | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/Delete3DTextLabel.md b/frontend/docs/scripting/functions/Delete3DTextLabel.md index 93c453742095..ba66dffc2eb2 100644 --- a/frontend/docs/scripting/functions/Delete3DTextLabel.md +++ b/frontend/docs/scripting/functions/Delete3DTextLabel.md @@ -7,7 +7,7 @@ tags: ["3dtextlabel"] ## Description -Delete a 3D text label (created with Create3DTextLabel). +Delete a 3D text label (created with [Create3DTextLabel](Create3DTextLabel)). | Name | Description | | ------------- | -------------------------------------- | diff --git a/frontend/docs/scripting/functions/DeletePlayer3DTextLabel.md b/frontend/docs/scripting/functions/DeletePlayer3DTextLabel.md index 478d769d3ba5..c86fa3bf16c8 100644 --- a/frontend/docs/scripting/functions/DeletePlayer3DTextLabel.md +++ b/frontend/docs/scripting/functions/DeletePlayer3DTextLabel.md @@ -7,7 +7,7 @@ tags: ["player", "3dtextlabel"] ## Description -Destroy a 3D text label that was created using CreatePlayer3DTextLabel. +Destroy a 3D text label that was created using [CreatePlayer3DTextLabel](CreatePlayer3DTextLabel). | Name | Description | | ------------------- | --------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/DestroyActor.md b/frontend/docs/scripting/functions/DestroyActor.md index bf28efeb5435..a408798e6618 100644 --- a/frontend/docs/scripting/functions/DestroyActor.md +++ b/frontend/docs/scripting/functions/DestroyActor.md @@ -9,11 +9,11 @@ tags: ["actor"] ## Description -Destroy an actor which was created with CreateActor. +Destroy an actor which was created with [CreateActor](CreateActor). -| Name | Description | -| ------- | -------------------------------------------------------- | -| actorid | The ID of the actor to destroy. Returned by CreateActor. | +| Name | Description | +| ------- | ----------------------------------------------------------------------- | +| actorid | The ID of the actor to destroy. Returned by [CreateActor](CreateActor). | ## Returns diff --git a/frontend/docs/scripting/functions/DestroyObject.md b/frontend/docs/scripting/functions/DestroyObject.md index 99fc10f1ab1a..94574d098c6c 100644 --- a/frontend/docs/scripting/functions/DestroyObject.md +++ b/frontend/docs/scripting/functions/DestroyObject.md @@ -7,11 +7,11 @@ tags: ["object"] ## Description -Destroys (removes) an object that was created using CreateObject. +Destroys (removes) an object that was created using [CreateObject](CreateObject). -| Name | Description | -| -------- | ---------------------------------------------------------- | -| objectid | The ID of the object to destroy. Returned by CreateObject. | +| Name | Description | +| -------- | -------------------------------------------------------------------------- | +| objectid | The ID of the object to destroy. Returned by [CreateObject](CreateObject). | ## Returns diff --git a/frontend/docs/scripting/functions/DestroyPickup.md b/frontend/docs/scripting/functions/DestroyPickup.md index b1e42e9022cc..dec2bc717f55 100644 --- a/frontend/docs/scripting/functions/DestroyPickup.md +++ b/frontend/docs/scripting/functions/DestroyPickup.md @@ -7,11 +7,11 @@ tags: ["pickup"] ## Description -Destroys a pickup created with CreatePickup. +Destroys a pickup created with [CreatePickup](CreatePickup). -| Name | Description | -| ------ | ----------------------------------------------------------- | -| pickup | The ID of the pickup to destroy (returned by CreatePickup). | +| Name | Description | +| ------ | --------------------------------------------------------------------------- | +| pickup | The ID of the pickup to destroy (returned by [CreatePickup](CreatePickup)). | ## Returns diff --git a/frontend/docs/scripting/functions/DestroyPlayerObject.md b/frontend/docs/scripting/functions/DestroyPlayerObject.md index 12f3740e66ee..f4fdae6f0a8d 100644 --- a/frontend/docs/scripting/functions/DestroyPlayerObject.md +++ b/frontend/docs/scripting/functions/DestroyPlayerObject.md @@ -9,10 +9,10 @@ tags: ["player", "object", "playerobject"] Destroy a player-object created using [CreatePlayerObject](CreatePlayerObject). -| Name | Description | -| -------- | ----------------------------------------------------------------------- | -| playerid | The ID of the player whose player-object to destroy. | -| objectid | The ID of the player-object to destroy. Returned by CreatePlayerObject. | +| Name | Description | +| -------- | --------------------------------------------------------------------------------------------- | +| playerid | The ID of the player whose player-object to destroy. | +| objectid | The ID of the player-object to destroy. Returned by [CreatePlayerObject](CreatePlayerObject). | ## Returns diff --git a/frontend/docs/scripting/functions/DisableInteriorEnterExits.md b/frontend/docs/scripting/functions/DisableInteriorEnterExits.md index 4f0838802544..ee92ac847054 100644 --- a/frontend/docs/scripting/functions/DisableInteriorEnterExits.md +++ b/frontend/docs/scripting/functions/DisableInteriorEnterExits.md @@ -27,9 +27,8 @@ public OnGameModeInit() :::warning -This function will only work if it has been used BEFORE a player connects (it is recommended to use it in [OnGameModeInit](../callbacks/OnGameModeInit)). It will not remove a connected player's markers. - -If the gamemode is changed after this function has been used, and the new gamemode doesn't disable markers, the markers will NOT reappear for already-connected players (but will for newly connected players). +- This function will only work if it has been used BEFORE a player connects (it is recommended to use it in [OnGameModeInit](../callbacks/OnGameModeInit)). It will not remove a connected player's markers. +- If the gamemode is changed after this function has been used, and the new gamemode doesn't disable markers, the markers will NOT reappear for already-connected players (but will for newly connected players). ::: diff --git a/frontend/docs/scripting/functions/EditAttachedObject.md b/frontend/docs/scripting/functions/EditAttachedObject.md index 32361e15ca5b..90245b51522d 100644 --- a/frontend/docs/scripting/functions/EditAttachedObject.md +++ b/frontend/docs/scripting/functions/EditAttachedObject.md @@ -54,7 +54,7 @@ You can move the camera while editing by pressing and holding the **spacebar** ( :::warning -Players will be able to scale objects up to a very large or negative value size. Limits should be put in place using OnPlayerEditAttachedObject to abort the edit or clip the scale values. +Players will be able to scale objects up to a very large or negative value size. Limits should be put in place using [OnPlayerEditAttachedObject](../callbacks/OnPlayerEditAttachedObject) to abort the edit or clip the scale values. ::: diff --git a/frontend/docs/scripting/functions/EnableVehicleFriendlyFire.md b/frontend/docs/scripting/functions/EnableVehicleFriendlyFire.md index dd5a3a169a20..3353afc93609 100644 --- a/frontend/docs/scripting/functions/EnableVehicleFriendlyFire.md +++ b/frontend/docs/scripting/functions/EnableVehicleFriendlyFire.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Description -Enable friendly fire for team vehicles. Players will be unable to damage teammates' vehicles (SetPlayerTeam must be used!). +Enable friendly fire for team vehicles. Players will be unable to damage teammates' vehicles ([SetPlayerTeam](SetPlayerTeam) must be used!). ## Returns diff --git a/frontend/docs/scripting/functions/EnableZoneNames.md b/frontend/docs/scripting/functions/EnableZoneNames.md index 60c95dabda20..ba030cae0917 100644 --- a/frontend/docs/scripting/functions/EnableZoneNames.md +++ b/frontend/docs/scripting/functions/EnableZoneNames.md @@ -7,7 +7,7 @@ tags: [] ## Description -This function allows to turn on zone / area names such as the "Vinewood" or "Doherty" text at the bottom-right of the screen as they enter the area. This is a gamemode option and should be set in the callback OnGameModeInit. +This function allows to turn on zone / area names such as the "Vinewood" or "Doherty" text at the bottom-right of the screen as they enter the area. This is a gamemode option and should be set in the callback [OnGameModeInit](../callbacks/OnGameModeInit). | Name | Description | | ----------- | ---------------------------------------------------------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/FindModelFileNameFromCRC.md b/frontend/docs/scripting/functions/FindModelFileNameFromCRC.md index b2d19d3f4d65..9a5f0091ce73 100644 --- a/frontend/docs/scripting/functions/FindModelFileNameFromCRC.md +++ b/frontend/docs/scripting/functions/FindModelFileNameFromCRC.md @@ -9,13 +9,13 @@ tags: ["custom model", "custom skin", "simple model"] ## Description -Find an existing custom skin or simple object model file. The model files are located in `models` server folder by default (artpath setting). +Find an existing custom [skin](AddCharModel) or simple [object](AddSimpleModel) model file. The model files are located in `models` server folder by default ([artpath setting](../../server/server.cfg#custom-models)). -| Name | Description | -| ---------------------- | ------------------------------------------------------------------------- | -| crc | The CRC checksum of custom model file. | -| output[] | An array into which to store the **.dff** file name, passed by reference. | -| size = sizeof (output) | The length of the string that should be stored. | +| Name | Description | +| ---------------------- | ----------------------------------------------------------------------------------------------- | +| crc | The [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) checksum of custom model file. | +| output[] | An array into which to store the **.dff** file name, passed by reference. | +| size = sizeof (output) | The length of the string that should be stored. | ## Returns diff --git a/frontend/docs/scripting/functions/FindTextureFileNameFromCRC.md b/frontend/docs/scripting/functions/FindTextureFileNameFromCRC.md index 62cc90626baa..ae0d876c727d 100644 --- a/frontend/docs/scripting/functions/FindTextureFileNameFromCRC.md +++ b/frontend/docs/scripting/functions/FindTextureFileNameFromCRC.md @@ -9,13 +9,13 @@ tags: ["custom model", "custom skin", "simple model"] ## Description -Find an existing custom skin or simple object texture file. The model files are located in `models` server folder by default (artpath setting). +Find an existing custom [skin](AddCharModel) or simple [object](AddSimpleModel) texture file. The model files are located in `models` server folder by default ([artpath setting](../../server/server.cfg#custom-models)). -| Name | Description | -| ---------------------- | ------------------------------------------------------------------------- | -| crc | The CRC checksum of custom model file. | -| output[] | An array into which to store the **.txd** file name, passed by reference. | -| size = sizeof (output) | The length of the string that should be stored. | +| Name | Description | +| ---------------------- | ----------------------------------------------------------------------------------------------- | +| crc | The [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) checksum of custom model file. | +| output[] | An array into which to store the **.txd** file name, passed by reference. | +| size = sizeof (output) | The length of the string that should be stored. | ## Returns diff --git a/frontend/docs/scripting/functions/ForceClassSelection.md b/frontend/docs/scripting/functions/ForceClassSelection.md index 76c9383968e1..21afe3b286b2 100644 --- a/frontend/docs/scripting/functions/ForceClassSelection.md +++ b/frontend/docs/scripting/functions/ForceClassSelection.md @@ -38,7 +38,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning - The player will not return to class selection until they re-spawn. This can be achieved with [TogglePlayerSpectating](TogglePlayerSpectating), as seen in the example above. -- This function does not perform a state change to `PLAYER_STATE_WASTED` when combined with TogglePlayerSpectating (see example above), as is listed here. +- This function does not perform a [state change](../callbacks/OnPlayerStateChange) to `PLAYER_STATE_WASTED` when combined with [TogglePlayerSpectating](TogglePlayerSpectating) (see example above), as is listed [here](../resources/playerstates). ::: diff --git a/frontend/docs/scripting/functions/GameTextForPlayer.md b/frontend/docs/scripting/functions/GameTextForPlayer.md index 3dedeaa265d9..4a715c313b14 100644 --- a/frontend/docs/scripting/functions/GameTextForPlayer.md +++ b/frontend/docs/scripting/functions/GameTextForPlayer.md @@ -45,9 +45,8 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::warning -Do note that the players may crash because of odd number of tilde (~) symbols used in the game text. Using color codes (e.g. `~r~`) beyond the 255th character may crash the client. - -Also, a blank space at end of the string may result in faliure. For example: `"Headshot "` results in failure. Instead it should be `"Headshot"` or `"Headshot_"`. +- Do note that the players may crash because of odd number of tilde (~) symbols used in the game text. Using color codes (e.g. `~r~`) beyond the 255th character may crash the client. +- Also, a blank space at end of the string may result in faliure. For example: `"Headshot "` results in failure. Instead it should be `"Headshot"` or `"Headshot_"`. ::: diff --git a/frontend/docs/scripting/functions/GangZoneStopFlashForAll.md b/frontend/docs/scripting/functions/GangZoneStopFlashForAll.md index fc2984bdb713..47e60a916546 100644 --- a/frontend/docs/scripting/functions/GangZoneStopFlashForAll.md +++ b/frontend/docs/scripting/functions/GangZoneStopFlashForAll.md @@ -9,9 +9,9 @@ tags: ["gangzone"] Stops a gangzone flashing for all players. -| Name | Description | -| ------ | ---------------------------------------------------------------- | -| zoneid | The ID of the zone to stop flashing. Returned by GangZoneCreate. | +| Name | Description | +| ------ | ---------------------------------------------------------------------------------- | +| zoneid | The ID of the zone to stop flashing. Returned by [GangZoneCreate](GangZoneCreate). | ## Returns diff --git a/frontend/docs/scripting/functions/GetActorPos.md b/frontend/docs/scripting/functions/GetActorPos.md index 82c3bbcbb0ce..914057170f8a 100644 --- a/frontend/docs/scripting/functions/GetActorPos.md +++ b/frontend/docs/scripting/functions/GetActorPos.md @@ -13,7 +13,7 @@ Get the position of an actor. | Name | Description | | -------- | --------------------------------------------------------------------------------------- | -| actorid | The ID of the actor to get the position of. Returned by CreateActor. | +| actorid | The ID of the actor to get the position of. Returned by [CreateActor](CreateActor). | | &Float:x | A float variable, passed by reference, in which to store the X coordinate of the actor. | | &Float:y | A float variable, passed by reference, in which to store the Y coordinate of the actor. | | &Float:z | A float variable, passed by reference, in which to store the Z coordinate of the actor. | diff --git a/frontend/docs/scripting/functions/GetAnimationName.md b/frontend/docs/scripting/functions/GetAnimationName.md index 7189d38ea5ad..1251459b36f6 100644 --- a/frontend/docs/scripting/functions/GetAnimationName.md +++ b/frontend/docs/scripting/functions/GetAnimationName.md @@ -9,13 +9,13 @@ tags: [] Get the animation library/name for the index. -| Name | Description | -| -------------------------------- | --------------------------------------------------------- | -| index | The animation index, returned by GetPlayerAnimationIndex. | -| animationLibrary[] | String variable that stores the animation library. | -| len1 = sizeof (animationLibrary) | Size of the string that stores the animation library. | -| animationName[] | String variable that stores the animation name. | -| len2 = sizeof (animationName) | Size of the string that stores the animation name. | +| Name | Description | +| -------------------------------- | ------------------------------------------------------------------------------------ | +| index | The animation index, returned by [GetPlayerAnimationIndex](GetPlayerAnimationIndex). | +| animationLibrary[] | String variable that stores the animation library. | +| len1 = sizeof (animationLibrary) | Size of the string that stores the animation library. | +| animationName[] | String variable that stores the animation name. | +| len2 = sizeof (animationName) | Size of the string that stores the animation name. | ## Returns diff --git a/frontend/docs/scripting/functions/GetGravity.md b/frontend/docs/scripting/functions/GetGravity.md index c1ec31667656..41e831038944 100644 --- a/frontend/docs/scripting/functions/GetGravity.md +++ b/frontend/docs/scripting/functions/GetGravity.md @@ -7,7 +7,7 @@ tags: [] ## Description -Get the currently global gravity. +Get the currently global [gravity](SetGravity). ## Returns diff --git a/frontend/docs/scripting/functions/GetObjectMaterial.md b/frontend/docs/scripting/functions/GetObjectMaterial.md index 6c2a27da0edf..0aee3ccc832c 100644 --- a/frontend/docs/scripting/functions/GetObjectMaterial.md +++ b/frontend/docs/scripting/functions/GetObjectMaterial.md @@ -11,16 +11,16 @@ tags: ["object"] Get the material data from an index of the object. -| Name | Description | -| ------------------ | --------------------------------------------------------------------- | -| objectid | The ID of the object. | -| materialIndex | The material index on the object. (0 to 15) | -| &modelid | A variable in which to store the model ID, passed by reference. | -| textureLibrary[] | An array into which to store the textureLibrary, passed by reference. | -| textureLibrarySize | The size of the textureLibrary. | -| textureName[] | An array into which to store the textureName, passed by reference. | -| textureNameSize | The size of the textureName. | -| &materialColour | A variable in which to store the materialColour, passed by reference. | +| Name | Description | +| ------------------ | ----------------------------------------------------------------------------------------------------------- | +| objectid | The ID of the object. | +| materialIndex | The material index on the object. (0 to 15) | +| &modelid | A variable in which to store the model ID, passed by reference. | +| textureLibrary[] | An array into which to store the texture library name, passed by reference. | +| textureLibrarySize | The size of the array for the texture library name. | +| textureName[] | An array into which to store the [texture](https://models.open.mp/?cat=textures) name, passed by reference. | +| textureNameSize | The size of the array for the texture name. | +| &materialColour | A variable in which to store the materialColour, passed by reference. | ## Returns diff --git a/frontend/docs/scripting/functions/GetPlayerArmour.md b/frontend/docs/scripting/functions/GetPlayerArmour.md index 6f84951c8369..cc14e1c17b7a 100644 --- a/frontend/docs/scripting/functions/GetPlayerArmour.md +++ b/frontend/docs/scripting/functions/GetPlayerArmour.md @@ -46,7 +46,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -Even though the armour can be set to near infinite values on the server side, the individual clients will only report values up to 255. Anything higher will wrap around; 256 becomes 0, 257 becomes 1, etc. Armour is obtained rounded to integers: set 50.15, but get 50.0 +- Even though the armour can be set to near infinite values on the server side, the individual clients will only report values up to 255. Anything higher will wrap around; 256 becomes 0, 257 becomes 1, etc. +- Armour is obtained rounded to integers: set 50.15, but get 50.0 ::: diff --git a/frontend/docs/scripting/functions/GetPlayerCameraAspectRatio.md b/frontend/docs/scripting/functions/GetPlayerCameraAspectRatio.md index 5c52c0481e44..6d8f2fa5b30e 100644 --- a/frontend/docs/scripting/functions/GetPlayerCameraAspectRatio.md +++ b/frontend/docs/scripting/functions/GetPlayerCameraAspectRatio.md @@ -7,7 +7,7 @@ tags: ["player", "camera"] ## Description -Retrieves the aspect ratio of a player's camera. +Retrieves the [aspect ratio](https://en.wikipedia.org/wiki/Aspect_ratio_(image)) of a player's camera. | Name | Description | | -------- | ------------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/GetPlayerCameraMode.md b/frontend/docs/scripting/functions/GetPlayerCameraMode.md index 0c1991a9dea7..9bb94abe32aa 100644 --- a/frontend/docs/scripting/functions/GetPlayerCameraMode.md +++ b/frontend/docs/scripting/functions/GetPlayerCameraMode.md @@ -15,7 +15,7 @@ Returns the current GTA [camera mode](../resources/cameramodes) for the requeste ## Returns -The camera mode as an integer (or -1 if player is not connected) +The [camera mode](../resources/cameramodes) as an integer (or -1 if player is not connected) ## Examples diff --git a/frontend/docs/scripting/functions/GetPlayerCameraTargetPlayer.md b/frontend/docs/scripting/functions/GetPlayerCameraTargetPlayer.md index 52bf40032a10..5c0fb7094345 100644 --- a/frontend/docs/scripting/functions/GetPlayerCameraTargetPlayer.md +++ b/frontend/docs/scripting/functions/GetPlayerCameraTargetPlayer.md @@ -35,7 +35,7 @@ if (IsPlayerAdmin(playerTarget)) :::warning - This function is disabled by default to save bandwidth. Use [EnablePlayerCameraTarget](EnablePlayerCameraTarget) to enable it for each player. -- Do not confuse this function with GetPlayerTargetPlayer. GetPlayerTargetPlayer returns the ID of the player playerid is **aiming** at (with a weapon). GetPlayerCameraTargetPlayer returns the ID of the player playerid is **looking** at (reference point is the center of the screen). +- Do not confuse this function with [GetPlayerTargetPlayer](GetPlayerTargetPlayer). GetPlayerTargetPlayer returns the ID of the player playerid is **aiming** at (with a weapon). GetPlayerCameraTargetPlayer returns the ID of the player playerid is **looking** at (reference point is the center of the screen). ::: diff --git a/frontend/docs/scripting/functions/GetPlayerColor.md b/frontend/docs/scripting/functions/GetPlayerColor.md index 65335caab28f..a0d27ce67f87 100644 --- a/frontend/docs/scripting/functions/GetPlayerColor.md +++ b/frontend/docs/scripting/functions/GetPlayerColor.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -Gets the color of the player's name and radar marker. Only works after SetPlayerColor. +Gets the color of the player's name and radar marker. Only works after [SetPlayerColor](SetPlayerColor). | Name | Description | | -------- | ----------------------------------------- | @@ -32,7 +32,7 @@ SendClientMessage(playerid, -1, output); :::warning -GetPlayerColor will return nothing (0) unless SetPlayerColor has been used first. Click [HERE](../../tutorials/colorfix) for a fix. +GetPlayerColor will return nothing (0) unless [SetPlayerColor](SetPlayerColor) has been used first. Click [HERE](../../tutorials/colorfix) for a fix. ::: diff --git a/frontend/docs/scripting/functions/GetPlayerCustomSkin.md b/frontend/docs/scripting/functions/GetPlayerCustomSkin.md index 62eb224647eb..ca7305ec3bef 100644 --- a/frontend/docs/scripting/functions/GetPlayerCustomSkin.md +++ b/frontend/docs/scripting/functions/GetPlayerCustomSkin.md @@ -9,7 +9,7 @@ tags: ["player"] ## Description -Returns the class of the players custom skin downloaded from the server. +Returns the class of the players custom skin [downloaded from the server](AddCharModel). | Name | Description | | -------- | ---------------------------------------- | diff --git a/frontend/docs/scripting/functions/GetPlayerDrunkLevel.md b/frontend/docs/scripting/functions/GetPlayerDrunkLevel.md index 4188f739dac7..58a1fd6817e4 100644 --- a/frontend/docs/scripting/functions/GetPlayerDrunkLevel.md +++ b/frontend/docs/scripting/functions/GetPlayerDrunkLevel.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -Checks the player's level of drunkenness. If the level is less than 2000, the player is sober. The player's level of drunkness goes down slowly automatically (26 levels per second) but will always reach 2000 at the end. The higher drunkenness levels affect the player's camera, and the car driving handling. The level of drunkenness increases when the player drinks from a bottle (You can use SetPlayerSpecialAction to give them bottles). +Checks the player's level of drunkenness. If the level is less than 2000, the player is sober. The player's level of drunkness goes down slowly automatically (26 levels per second) but will always reach 2000 at the end. The higher drunkenness levels affect the player's camera, and the car driving handling. The level of drunkenness increases when the player drinks from a bottle (you can use [SetPlayerSpecialAction](SetPlayerSpecialAction) to give them bottles). | Name | Description | | -------- | ------------------------------------------------------ | diff --git a/frontend/docs/scripting/functions/GetPlayerFightingStyle.md b/frontend/docs/scripting/functions/GetPlayerFightingStyle.md index 0c2b40ebf18e..7fa481ab4896 100644 --- a/frontend/docs/scripting/functions/GetPlayerFightingStyle.md +++ b/frontend/docs/scripting/functions/GetPlayerFightingStyle.md @@ -7,11 +7,11 @@ tags: ["player"] ## Description -Get the fighting style the player currently using. +Get the [fighting style](../resources/fightingstyles) the player currently using. -| Name | Description | -| -------- | -------------------------------------------------- | -| playerid | The ID of the player to get the fighting style of. | +| Name | Description | +| -------- | --------------------------------------------------------------------------------- | +| playerid | The ID of the player to get the [fighting style](../resources/fightingstyles) of. | ## Returns diff --git a/frontend/docs/scripting/functions/GetPlayerHealth.md b/frontend/docs/scripting/functions/GetPlayerHealth.md index eb0ccb88ba25..214799eced52 100644 --- a/frontend/docs/scripting/functions/GetPlayerHealth.md +++ b/frontend/docs/scripting/functions/GetPlayerHealth.md @@ -49,7 +49,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -Even though the health can be set to near infinite values on the server side, the individual clients will only report values up to 255. Anything higher will wrap around; 256 becomes 0, 257 becomes 1, etc. Health is obtained rounded to integers: set 50.15, but get 50.0 +- Even though the health can be set to near infinite values on the server side, the individual clients will only report values up to 255. Anything higher will wrap around; 256 becomes 0, 257 becomes 1, etc. +- Health is obtained rounded to integers: set 50.15, but get 50.0 ::: diff --git a/frontend/docs/scripting/functions/GetPlayerInterior.md b/frontend/docs/scripting/functions/GetPlayerInterior.md index 9f10f1462526..74d93b3f3389 100644 --- a/frontend/docs/scripting/functions/GetPlayerInterior.md +++ b/frontend/docs/scripting/functions/GetPlayerInterior.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -Retrieves the player's current interior. A list of currently known interiors with their positions can be found on this page. +Retrieves the player's current interior. A list of currently known interiors with their positions can be found on [this page](../resources/interiorids). | Name | Description | | -------- | ------------------------------------- | diff --git a/frontend/docs/scripting/functions/GetPlayerIp.md b/frontend/docs/scripting/functions/GetPlayerIp.md index eda3a613192e..ebbbf5210529 100644 --- a/frontend/docs/scripting/functions/GetPlayerIp.md +++ b/frontend/docs/scripting/functions/GetPlayerIp.md @@ -42,7 +42,7 @@ public OnPlayerConnect(playerid) :::note -- PAWN is case-sensitive. GetPlayerIP will not work. +- PAWN is case-sensitive. GetPlayerI**P** will not work. - **SA-MP server**: This function **does not work** when used in [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect) because the player is already disconnected. It will return an invalid IP (255.255.255.255). Save players' IPs under [OnPlayerConnect](../callbacks/OnPlayerConnect) if they need to be used under [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect). - **open.mp server**: This function **work** when used in [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect). diff --git a/frontend/docs/scripting/functions/GetPlayerKeys.md b/frontend/docs/scripting/functions/GetPlayerKeys.md index f021de295ef8..d2ded10c833b 100644 --- a/frontend/docs/scripting/functions/GetPlayerKeys.md +++ b/frontend/docs/scripting/functions/GetPlayerKeys.md @@ -9,12 +9,12 @@ tags: ["player"] Check which keys a player is pressing. -| Name | Description | -| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| playerid | The ID of the player to get the keys of. | -| &KEY:keys | A set of bits containing the player's key states. This value is what is called a bit mask. [Click here](../resources/keys) for a list of keys. | -| updown | Up/down state. | -| leftright | Left/right state. | +| Name | Description | +| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| playerid | The ID of the player to get the keys of. | +| &KEY:keys | A set of bits containing the player's key states. This value is what is called a [bit mask](https://en.wikipedia.org/wiki/Mask_(computing)). [Click here](../resources/keys) for a list of keys. | +| updown | Up/down state. | +| leftright | Left/right state. | ## Returns diff --git a/frontend/docs/scripting/functions/GetPlayerLastShotVectors.md b/frontend/docs/scripting/functions/GetPlayerLastShotVectors.md index a4c36f7d1cae..5bf32304b391 100644 --- a/frontend/docs/scripting/functions/GetPlayerLastShotVectors.md +++ b/frontend/docs/scripting/functions/GetPlayerLastShotVectors.md @@ -52,7 +52,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -- This function will only work when lag compensation is **enabled**. +- This function will only work when [lag compensation](../../server/LagCompensation) is **enabled**. - If the player hit nothing, the hit positions will be 0. This means you can't currently calculate how far a bullet travels through open air. - The function will return last shot information even if that shot was desynced (by returning 0 in [OnPlayerWeaponShot](../callbacks/OnPlayerWeaponShot)). diff --git a/frontend/docs/scripting/functions/GetPlayerMenu.md b/frontend/docs/scripting/functions/GetPlayerMenu.md index 4d4501599d2a..409875d9606b 100644 --- a/frontend/docs/scripting/functions/GetPlayerMenu.md +++ b/frontend/docs/scripting/functions/GetPlayerMenu.md @@ -7,7 +7,7 @@ tags: ["player", "menu"] ## Description -Gets the ID of the menu the player is currently viewing (shown by ShowMenuForPlayer). +Gets the ID of the menu the player is currently viewing (shown by [ShowMenuForPlayer](ShowMenuForPlayer)). | Name | Description | | -------- | ------------------------------------------------ | diff --git a/frontend/docs/scripting/functions/GetPlayerObjectMaterial.md b/frontend/docs/scripting/functions/GetPlayerObjectMaterial.md index 06af60471b71..d413ef85af23 100644 --- a/frontend/docs/scripting/functions/GetPlayerObjectMaterial.md +++ b/frontend/docs/scripting/functions/GetPlayerObjectMaterial.md @@ -11,17 +11,17 @@ tags: ["player", "object", "playerobject"] Get the material data from an index of the player-object. -| Name | Description | -| ------------------ | --------------------------------------------------------------------- | -| playerid | The ID of the player. | -| objectid | The ID of the player-object. | -| materialIndex | The material index on the object. (0 to 15) | -| &modelid | A variable in which to store the model ID, passed by reference. | -| textureLibrary[] | An array into which to store the textureLibrary, passed by reference. | -| textureLibrarySize | The size of the textureLibrary. | -| textureName[] | An array into which to store the textureName, passed by reference. | -| textureNameSize | The size of the textureName. | -| &materialColour | A variable in which to store the materialColour, passed by reference. | +| Name | Description | +| ------------------ | ----------------------------------------------------------------------------------------------------------- | +| playerid | The ID of the player. | +| objectid | The ID of the player-object. | +| materialIndex | The material index on the object. (0 to 15) | +| &modelid | A variable in which to store the model ID, passed by reference. | +| textureLibrary[] | An array into which to store the texture library name, passed by reference. | +| textureLibrarySize | The size of the array for the texture library name. | +| textureName[] | An array into which to store the [texture](https://models.open.mp/?cat=textures) name, passed by reference. | +| textureNameSize | The size of the array for the texture name. | +| &materialColour | A variable in which to store the materialColour, passed by reference. | ## Returns diff --git a/frontend/docs/scripting/functions/GetPlayerPing.md b/frontend/docs/scripting/functions/GetPlayerPing.md index 906fb9436b71..7565ecff1309 100644 --- a/frontend/docs/scripting/functions/GetPlayerPing.md +++ b/frontend/docs/scripting/functions/GetPlayerPing.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -Get the ping of a player. The ping measures the amount of time it takes for the server to 'ping' the client and for the client to send the message back. +Get the [ping](https://en.wikipedia.org/wiki/Ping_(networking_utility)) of a player. The ping measures the amount of time it takes for the server to 'ping' the client and for the client to send the message back. | Name | Description | | -------- | ---------------------------------------- | diff --git a/frontend/docs/scripting/functions/GetPlayerPos.md b/frontend/docs/scripting/functions/GetPlayerPos.md index 834241bc7037..cbd26de21ddb 100644 --- a/frontend/docs/scripting/functions/GetPlayerPos.md +++ b/frontend/docs/scripting/functions/GetPlayerPos.md @@ -43,7 +43,7 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::warning -This function is known to return unreliable values when used in [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect) and OnPlayerRequestClass. This is because the player is not spawned. +This function is known to return unreliable values when used in [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect) and [OnPlayerRequestClass](../callbacks/OnPlayerRequestClass). This is because the player is not spawned. ::: diff --git a/frontend/docs/scripting/functions/GetPlayerScore.md b/frontend/docs/scripting/functions/GetPlayerScore.md index 57316234843e..15cba7d58264 100644 --- a/frontend/docs/scripting/functions/GetPlayerScore.md +++ b/frontend/docs/scripting/functions/GetPlayerScore.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -This function returns a player's score as it was set using SetPlayerScore +This function returns a player's score as it was set using [SetPlayerScore](SetPlayerScore). | Name | Description | | -------- | ------------------------------- | diff --git a/frontend/docs/scripting/functions/GetPlayerSkin.md b/frontend/docs/scripting/functions/GetPlayerSkin.md index 07e2c0d5558c..73c6fdcd155a 100644 --- a/frontend/docs/scripting/functions/GetPlayerSkin.md +++ b/frontend/docs/scripting/functions/GetPlayerSkin.md @@ -15,9 +15,7 @@ Returns the class of the players skin ## Returns -The [skin id](../resources/skins). - -**0** if invalid. +The [skin id](../resources/skins). **0** if invalid. ## Examples diff --git a/frontend/docs/scripting/functions/GetPlayerSpecialAction.md b/frontend/docs/scripting/functions/GetPlayerSpecialAction.md index a25b7c18c2cf..a91dde09621e 100644 --- a/frontend/docs/scripting/functions/GetPlayerSpecialAction.md +++ b/frontend/docs/scripting/functions/GetPlayerSpecialAction.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -Retrieves a player's current special action. +Retrieves a player's current [special action](../resources/specialactions). | Name | Description | | -------- | -------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/GetPlayerState.md b/frontend/docs/scripting/functions/GetPlayerState.md index 3485377e88de..724e893f16b6 100644 --- a/frontend/docs/scripting/functions/GetPlayerState.md +++ b/frontend/docs/scripting/functions/GetPlayerState.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -Get a player's current state. +Get a player's current [state](../resources/playerstates). | Name | Description | | -------- | ------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/GetPlayerVirtualWorld.md b/frontend/docs/scripting/functions/GetPlayerVirtualWorld.md index 7b2ed1bae268..c3fc796799c7 100644 --- a/frontend/docs/scripting/functions/GetPlayerVirtualWorld.md +++ b/frontend/docs/scripting/functions/GetPlayerVirtualWorld.md @@ -37,7 +37,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -Virtual worlds are not the same as interiors. +Virtual worlds are not the same as [interiors](GetPlayerInterior). ::: diff --git a/frontend/docs/scripting/functions/GetPlayerWeapon.md b/frontend/docs/scripting/functions/GetPlayerWeapon.md index 5379fea39375..e1a5b89b8768 100644 --- a/frontend/docs/scripting/functions/GetPlayerWeapon.md +++ b/frontend/docs/scripting/functions/GetPlayerWeapon.md @@ -15,7 +15,7 @@ Returns the ID of the weapon a player is currently holding. ## Returns -The ID of the player's current weapon. Returns **-1** if the player specified does not exist. +The ID of the player's current [weapon](../resources/weaponids). Returns **-1** if the player specified does not exist. ## Examples diff --git a/frontend/docs/scripting/functions/GetPlayerWeaponState.md b/frontend/docs/scripting/functions/GetPlayerWeaponState.md index 595b424eea4e..eb9354968377 100644 --- a/frontend/docs/scripting/functions/GetPlayerWeaponState.md +++ b/frontend/docs/scripting/functions/GetPlayerWeaponState.md @@ -7,11 +7,11 @@ tags: ["player"] ## Description -Check the state of a player's weapon. +Check the [state](../resources/weaponstates) of a player's weapon. -| Name | Description | -| -------- | --------------------------------------------------- | -| playerid | The ID of the player to obtain the weapon state of. | +| Name | Description | +| -------- | -------------------------------------------------------------------------------- | +| playerid | The ID of the player to obtain the [weapon state](../resources/weaponstates) of. | ## Returns diff --git a/frontend/docs/scripting/functions/GetServerVarAsBool.md b/frontend/docs/scripting/functions/GetServerVarAsBool.md index 1e308cf58af9..04cf3bbed67b 100644 --- a/frontend/docs/scripting/functions/GetServerVarAsBool.md +++ b/frontend/docs/scripting/functions/GetServerVarAsBool.md @@ -7,7 +7,7 @@ tags: [] :::warning -This function, as of 0.3.7 R2, is deprecated. Please see GetConsoleVarAsBool +This function, as of 0.3.7 R2, is deprecated. Please see [GetConsoleVarAsBool](GetConsoleVarAsBool) ::: diff --git a/frontend/docs/scripting/functions/GetServerVarAsInt.md b/frontend/docs/scripting/functions/GetServerVarAsInt.md index a6ea7bc1ea65..405e4635c010 100644 --- a/frontend/docs/scripting/functions/GetServerVarAsInt.md +++ b/frontend/docs/scripting/functions/GetServerVarAsInt.md @@ -7,7 +7,7 @@ tags: [] :::warning -This function, as of 0.3.7 R2, is deprecated. Please see GetConsoleVarAsInt +This function, as of 0.3.7 R2, is deprecated. Please see [GetConsoleVarAsInt](GetConsoleVarAsInt) ::: diff --git a/frontend/docs/scripting/functions/GetServerVarAsString.md b/frontend/docs/scripting/functions/GetServerVarAsString.md index e205cec15b26..a354508e4276 100644 --- a/frontend/docs/scripting/functions/GetServerVarAsString.md +++ b/frontend/docs/scripting/functions/GetServerVarAsString.md @@ -7,7 +7,7 @@ tags: [] :::warning -This function, as of 0.3.7 R2, is deprecated. Please see GetConsoleVarAsString +This function, as of 0.3.7 R2, is deprecated. Please see [GetConsoleVarAsString](GetConsoleVarAsString) ::: diff --git a/frontend/docs/scripting/functions/GetVehicleComponentInSlot.md b/frontend/docs/scripting/functions/GetVehicleComponentInSlot.md index fbc8abeed3ef..45aff066dd8f 100644 --- a/frontend/docs/scripting/functions/GetVehicleComponentInSlot.md +++ b/frontend/docs/scripting/functions/GetVehicleComponentInSlot.md @@ -16,7 +16,7 @@ Retrieves the installed component ID (modshop mod(ification)) on a vehicle in a ## Returns -The ID of the component installed in the specified slot. +The ID of the [component](../resources/carcomponentid) installed in the specified slot. Returns **0** if no component in specified vehicle's specified slot, or if vehicle doesn't exist. diff --git a/frontend/docs/scripting/functions/GetVehicleComponentType.md b/frontend/docs/scripting/functions/GetVehicleComponentType.md index 3b2d6d521f3f..2eec38cab951 100644 --- a/frontend/docs/scripting/functions/GetVehicleComponentType.md +++ b/frontend/docs/scripting/functions/GetVehicleComponentType.md @@ -15,7 +15,7 @@ Find out what type of component a certain ID is. ## Returns -The component slot ID of the specified component or **-1** if the component is invalid. +The [component slot](../resources/componentslots) ID of the specified component or **-1** if the component is invalid. ## Examples diff --git a/frontend/docs/scripting/functions/GetVehicleModel.md b/frontend/docs/scripting/functions/GetVehicleModel.md index 6ca643a11246..884710d14bfd 100644 --- a/frontend/docs/scripting/functions/GetVehicleModel.md +++ b/frontend/docs/scripting/functions/GetVehicleModel.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Description -Gets the model ID of a vehicle. +Gets the [model ID](../resources/vehicleid) of a vehicle. | Name | Description | | --------- | ------------------------------------------ | diff --git a/frontend/docs/scripting/functions/GetVehicleModelInfo.md b/frontend/docs/scripting/functions/GetVehicleModelInfo.md index e69a479da71d..a18d8b8264dd 100644 --- a/frontend/docs/scripting/functions/GetVehicleModelInfo.md +++ b/frontend/docs/scripting/functions/GetVehicleModelInfo.md @@ -11,7 +11,7 @@ Retrieve information about a specific vehicle model such as the size or position | Name | Description | | --------------------------- | ---------------------------------------------------------------------------- | -| vehiclemodel | The vehicle model to get info of. | +| vehiclemodel | The [vehicle model](../resources/vehicleid) to get info of. | | VEHICLE_MODEL_INFO:infotype | The [type of information](../resources/vehicleinformationtypes) to retrieve. | | &Float:x | A float to store the X value. | | &Float:y | A float to store the Y value. | diff --git a/frontend/docs/scripting/functions/GetVehicleRotation.md b/frontend/docs/scripting/functions/GetVehicleRotation.md index bb43a4363af3..b5ee2d3b7f63 100644 --- a/frontend/docs/scripting/functions/GetVehicleRotation.md +++ b/frontend/docs/scripting/functions/GetVehicleRotation.md @@ -41,7 +41,7 @@ GetVehicleRotation(vehicleid, x, y, z); :::note -There is no 'set' variation of this function; you can not SET a vehicle's rotation (apart from the Z angle) +There is no 'set' variation of this function; you can not SET a vehicle's rotation (apart from the [Z angle](SetVehicleZAngle)) ::: diff --git a/frontend/docs/scripting/functions/GetVehicleRotationQuat.md b/frontend/docs/scripting/functions/GetVehicleRotationQuat.md index 91d897b48726..5a9477d946ea 100644 --- a/frontend/docs/scripting/functions/GetVehicleRotationQuat.md +++ b/frontend/docs/scripting/functions/GetVehicleRotationQuat.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Description -Returns a vehicle's rotation on all axes as a quaternion. +Returns a vehicle's rotation on all axes as a [quaternion](https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation). | Name | Description | | --------- | ------------------------------------------------------------------------------------ | @@ -41,7 +41,7 @@ GetVehicleRotationQuat(vehicleid, w, x, y, z); :::note -There is no 'set' variation of this function; you can not SET a vehicle's rotation (apart from the Z angle) +There is no 'set' variation of this function; you can not SET a vehicle's rotation (apart from the [Z angle](SetVehicleZAngle)) ::: diff --git a/frontend/docs/scripting/functions/GetWeaponName.md b/frontend/docs/scripting/functions/GetWeaponName.md index f593fe1ff706..1b0ca1009771 100644 --- a/frontend/docs/scripting/functions/GetWeaponName.md +++ b/frontend/docs/scripting/functions/GetWeaponName.md @@ -11,7 +11,7 @@ Get the name of a weapon. | Name | Description | | --------------------- | ----------------------------------------------------------------------- | -| WEAPON:weaponid | The ID of the weapon to get the name of. | +| WEAPON:weaponid | The [ID of the weapon](../resources/weaponids) to get the name of. | | weapon[] | An array to store the weapon's name in, passed by reference. | | len = sizeof (weapon) | The maximum length of the weapon name to store. Should be sizeof(name). | diff --git a/frontend/docs/scripting/functions/HideMenuForPlayer.md b/frontend/docs/scripting/functions/HideMenuForPlayer.md index 3acee3441dee..305c2cbb9a1e 100644 --- a/frontend/docs/scripting/functions/HideMenuForPlayer.md +++ b/frontend/docs/scripting/functions/HideMenuForPlayer.md @@ -9,10 +9,10 @@ tags: ["player", "menu"] Hides a menu for a player. -| Name | Description | -| ----------- | --------------------------------------------------------------------------------------------------------------------------------- | -| Menu:menuid | The ID of the menu to hide. Returned by CreateMenu and passed to [OnPlayerSelectedMenuRow](../callbacks/OnPlayerSelectedMenuRow). | -| playerid | The ID of the player that the menu will be hidden for. | +| Name | Description | +| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | +| Menu:menuid | The ID of the menu to hide. Returned by [CreateMenu](CreateMenu) and passed to [OnPlayerSelectedMenuRow](../callbacks/OnPlayerSelectedMenuRow). | +| playerid | The ID of the player that the menu will be hidden for. | ## Returns diff --git a/frontend/docs/scripting/functions/IsPlayerInRaceCheckpoint.md b/frontend/docs/scripting/functions/IsPlayerInRaceCheckpoint.md index 87f3dfd670f0..00535deac82f 100644 --- a/frontend/docs/scripting/functions/IsPlayerInRaceCheckpoint.md +++ b/frontend/docs/scripting/functions/IsPlayerInRaceCheckpoint.md @@ -7,7 +7,7 @@ tags: ["player", "checkpoint", "racecheckpoint"] ## Description -Check if the player is inside their current set race checkpoint (SetPlayerRaceCheckpoint). +Check if the player is inside their current set race checkpoint ([SetPlayerRaceCheckpoint](SetPlayerRaceCheckpoint)). | Name | Description | | -------- | ------------------------------ | diff --git a/frontend/docs/scripting/functions/IsPlayerStreamedIn.md b/frontend/docs/scripting/functions/IsPlayerStreamedIn.md index fbefc9e482f6..10ffa7e1bdfd 100644 --- a/frontend/docs/scripting/functions/IsPlayerStreamedIn.md +++ b/frontend/docs/scripting/functions/IsPlayerStreamedIn.md @@ -33,9 +33,8 @@ if (IsPlayerStreamedIn(playerid, 0)) :::note -**SA-MP server:** Players stream out if they are more than 200.0 meters away (see [server.cfg](../../server/server.cfg) - **stream_distance**) - -**open.mp server:** Players stream out if they are more than 200.0 meters away (see [config.json](../../server/config.json) - **network.stream_radius**) +- **SA-MP server:** Players stream out if they are more than 200.0 meters away (see [server.cfg](../../server/server.cfg) - **stream_distance**) +- **open.mp server:** Players stream out if they are more than 200.0 meters away (see [config.json](../../server/config.json) - **network.stream_radius**) ::: diff --git a/frontend/docs/scripting/functions/IsTrailerAttachedToVehicle.md b/frontend/docs/scripting/functions/IsTrailerAttachedToVehicle.md index ae7926c5bde8..53a5ce017082 100644 --- a/frontend/docs/scripting/functions/IsTrailerAttachedToVehicle.md +++ b/frontend/docs/scripting/functions/IsTrailerAttachedToVehicle.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Description -Checks if a vehicle has a trailer attached to it. Use GetVehicleTrailer to get the vehicle ID of the trailer (if any). +Checks if a vehicle has a trailer attached to it. Use [GetVehicleTrailer](GetVehicleTrailer) to get the vehicle ID of the trailer (if any). | Name | Description | | --------- | -------------------------------------------- | diff --git a/frontend/docs/scripting/functions/KillTimer.md b/frontend/docs/scripting/functions/KillTimer.md index f1770184c99e..ffa7b555cd4d 100644 --- a/frontend/docs/scripting/functions/KillTimer.md +++ b/frontend/docs/scripting/functions/KillTimer.md @@ -9,9 +9,9 @@ tags: ["timer"] Kills (stops) a running timer. -| Name | Description | -| ------- | ----------------------------------------------------------------- | -| timerid | The ID of the timer to kill (returned by SetTimer or SetTimerEx). | +| Name | Description | +| ------- | ------------------------------------------------------------------------------------------- | +| timerid | The ID of the timer to kill (returned by [SetTimer](SetTimer) or [SetTimerEx](SetTimerEx)). | ## Returns diff --git a/frontend/docs/scripting/functions/LinkVehicleToInterior.md b/frontend/docs/scripting/functions/LinkVehicleToInterior.md index 86acb48b8477..ff42465950d0 100644 --- a/frontend/docs/scripting/functions/LinkVehicleToInterior.md +++ b/frontend/docs/scripting/functions/LinkVehicleToInterior.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Description -Links a vehicle to an interior. Vehicles can only be seen by players in the same interior (SetPlayerInterior). +Links a vehicle to an interior. Vehicles can only be seen by players in the same interior ([SetPlayerInterior](SetPlayerInterior)). | Name | Description | | ---------- | ---------------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/ManualVehicleEngineAndLights.md b/frontend/docs/scripting/functions/ManualVehicleEngineAndLights.md index a779a395f476..2f76706ce7db 100644 --- a/frontend/docs/scripting/functions/ManualVehicleEngineAndLights.md +++ b/frontend/docs/scripting/functions/ManualVehicleEngineAndLights.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Description -Use this function before any player connects (OnGameModeInit) to tell all clients that the script will control vehicle engines and lights. This prevents the game automatically turning the engine on/off when players enter/exit vehicles and headlights automatically coming on when it is dark. +Use this function before any player connects ([OnGameModeInit](../callbacks/OnGameModeInit)) to tell all clients that the script will control vehicle engines and lights. This prevents the game automatically turning the engine on/off when players enter/exit vehicles and headlights automatically coming on when it is dark. ## Returns diff --git a/frontend/docs/scripting/functions/MoveObject.md b/frontend/docs/scripting/functions/MoveObject.md index 12921f4ad84b..666d9a72c7d6 100644 --- a/frontend/docs/scripting/functions/MoveObject.md +++ b/frontend/docs/scripting/functions/MoveObject.md @@ -7,7 +7,7 @@ tags: ["object"] ## Description -Move an object to a new position with a set speed. Players/vehicles will 'surf' the object as it moves. +Move an [object](CreateObject) to a new position with a set speed. Players/vehicles will 'surf' the object as it moves. | Name | Description | | --------------- | --------------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/MovePlayerObject.md b/frontend/docs/scripting/functions/MovePlayerObject.md index 75e66e1b2bfe..a8cdb5c4ccc8 100644 --- a/frontend/docs/scripting/functions/MovePlayerObject.md +++ b/frontend/docs/scripting/functions/MovePlayerObject.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -Move a player object with a set speed. Also supports rotation. Players/vehicles will surf moving objects. +Move a [player object](CreatePlayerObject) with a set speed. Also supports rotation. Players/vehicles will surf moving objects. | Name | Description | | --------------- | ------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/NetStats_GetConnectedTime.md b/frontend/docs/scripting/functions/NetStats_GetConnectedTime.md index 8ac228150e75..70e9e39507c9 100644 --- a/frontend/docs/scripting/functions/NetStats_GetConnectedTime.md +++ b/frontend/docs/scripting/functions/NetStats_GetConnectedTime.md @@ -38,7 +38,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -The return value is not reset to zero after changing the game mode (using the RCON command "gmx"). +The return value is not reset to zero after changing the game mode (using the RCON command "[gmx](../../server/ControllingServer#rcon-commands)"). ::: diff --git a/frontend/docs/scripting/functions/PlayerPlaySound.md b/frontend/docs/scripting/functions/PlayerPlaySound.md index 776f3b78e0fa..7cc5888557ac 100644 --- a/frontend/docs/scripting/functions/PlayerPlaySound.md +++ b/frontend/docs/scripting/functions/PlayerPlaySound.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -Plays the specified sound for a player. +Plays the specified [sound](../resources/sound-ids) for a player. For a library that lists all sounds, check out [this](https://github.com/WoutProvost/samp-sound-array). diff --git a/frontend/docs/scripting/functions/PlayerSpectatePlayer.md b/frontend/docs/scripting/functions/PlayerSpectatePlayer.md index 21cdb8c2d624..f574dce1b79a 100644 --- a/frontend/docs/scripting/functions/PlayerSpectatePlayer.md +++ b/frontend/docs/scripting/functions/PlayerSpectatePlayer.md @@ -36,8 +36,8 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::warning -- Order is CRITICAL! Ensure that you use TogglePlayerSpectating before PlayerSpectatePlayer. -- playerid and targetplayerid's virtual world and interior must be the same for this function to work properly. +- Order is CRITICAL! Ensure that you use [TogglePlayerSpectating](TogglePlayerSpectating) before PlayerSpectatePlayer. +- playerid and targetplayerid's [virtual world](SetPlayerVirtualWorld) and [interior](SetPlayerInterior) must be the same for this function to work properly. ::: diff --git a/frontend/docs/scripting/functions/PlayerSpectateVehicle.md b/frontend/docs/scripting/functions/PlayerSpectateVehicle.md index f2aa663a11e6..801d8b69913c 100644 --- a/frontend/docs/scripting/functions/PlayerSpectateVehicle.md +++ b/frontend/docs/scripting/functions/PlayerSpectateVehicle.md @@ -17,7 +17,7 @@ Sets a player to spectate another vehicle. Their camera will be attached to the ## Returns -**true** - The function was executed successfully. Note that success is reported if the player is not in spectator mode (TogglePlayerSpectating), but nothing will happen. TogglePlayerSpectating MUST be used first. +**true** - The function was executed successfully. Note that success is reported if the player is not in spectator mode ([TogglePlayerSpectating](TogglePlayerSpectating)), but nothing will happen. TogglePlayerSpectating MUST be used first. **false** - The function failed to execute. The player, vehicle, or both don't exist. @@ -32,7 +32,7 @@ PlayerSpectateVehicle(playerid, vehicleid); :::warning -- Order is CRITICAL! Ensure that you use TogglePlayerSpectating before PlayerSpectateVehicle. +- Order is CRITICAL! Ensure that you use [TogglePlayerSpectating](TogglePlayerSpectating) before PlayerSpectateVehicle. - The playerid and vehicleid have to be in the same interior and virtual world for this function to work properly. ::: diff --git a/frontend/docs/scripting/functions/PlayerTextDrawBackgroundColor.md b/frontend/docs/scripting/functions/PlayerTextDrawBackgroundColor.md index 13b1839c91c5..ca20b67e265e 100644 --- a/frontend/docs/scripting/functions/PlayerTextDrawBackgroundColor.md +++ b/frontend/docs/scripting/functions/PlayerTextDrawBackgroundColor.md @@ -37,7 +37,7 @@ public OnPlayerConnect(playerid) :::note -If [PlayerTextDrawSetOutline](PlayerTextDrawSetOutline) is used with size > 0, the outline colour will match the colour used in PlayerTextDrawBackgroundColour. Changing the value of colour seems to alter the colour used in PlayerTextDrawColour. +If [PlayerTextDrawSetOutline](PlayerTextDrawSetOutline) is used with size > 0, the outline colour will match the colour used in PlayerTextDrawBackgroundColour. Changing the value of colour seems to alter the colour used in [PlayerTextDrawColour](PlayerTextDrawColour). ::: diff --git a/frontend/docs/scripting/functions/PlayerTextDrawBackgroundColour.md b/frontend/docs/scripting/functions/PlayerTextDrawBackgroundColour.md index a43db40b58dc..d3eaba5ed6c0 100644 --- a/frontend/docs/scripting/functions/PlayerTextDrawBackgroundColour.md +++ b/frontend/docs/scripting/functions/PlayerTextDrawBackgroundColour.md @@ -40,7 +40,7 @@ public OnPlayerConnect(playerid) :::note - If [PlayerTextDrawSetOutline](PlayerTextDrawSetOutline) is used with size > 0, the outline colour will match the colour used in PlayerTextDrawBackgroundColour. -- Changing the value of colour seems to alter the colour used in PlayerTextDrawColour. +- Changing the value of colour seems to alter the colour used in [PlayerTextDrawColour](PlayerTextDrawColour). ::: diff --git a/frontend/docs/scripting/functions/PlayerTextDrawBoxColor.md b/frontend/docs/scripting/functions/PlayerTextDrawBoxColor.md index f73dfb5ee7ab..c92a237b81d2 100644 --- a/frontend/docs/scripting/functions/PlayerTextDrawBoxColor.md +++ b/frontend/docs/scripting/functions/PlayerTextDrawBoxColor.md @@ -7,7 +7,7 @@ tags: ["player", "textdraw", "playertextdraw"] ## Description -Sets the color of a textdraw's box (PlayerTextDrawUseBox). +Sets the color of a textdraw's box ([PlayerTextDrawUseBox](PlayerTextDrawUseBox)). | Name | Description | | ----------------- | ------------------------------------------------------------ | diff --git a/frontend/docs/scripting/functions/PlayerTextDrawBoxColour.md b/frontend/docs/scripting/functions/PlayerTextDrawBoxColour.md index cb6e817df395..48ddba47afc0 100644 --- a/frontend/docs/scripting/functions/PlayerTextDrawBoxColour.md +++ b/frontend/docs/scripting/functions/PlayerTextDrawBoxColour.md @@ -9,7 +9,7 @@ tags: ["player", "textdraw", "playertextdraw"] ## Description -Sets the colour of a textdraw's box (PlayerTextDrawUseBox). +Sets the colour of a textdraw's box ([PlayerTextDrawUseBox](PlayerTextDrawUseBox)). | Name | Description | | ----------------- | ------------------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/PlayerTextDrawColor.md b/frontend/docs/scripting/functions/PlayerTextDrawColor.md index b6cabc51cb8a..ae76c035e1d8 100644 --- a/frontend/docs/scripting/functions/PlayerTextDrawColor.md +++ b/frontend/docs/scripting/functions/PlayerTextDrawColor.md @@ -38,13 +38,13 @@ public OnPlayerConnect(playerid) :::tip -You can also use Gametext colours in textdraws. +You can also use [Gametext colours](../resources/gametextstyles) in textdraws. ::: :::note -The textdraw must be re-shown to the player in order to update the color. +The textdraw must be [re-shown](PlayerTextDrawShow) to the player in order to update the color. ::: diff --git a/frontend/docs/scripting/functions/PlayerTextDrawColour.md b/frontend/docs/scripting/functions/PlayerTextDrawColour.md index 5c7e7a6bc1f0..dc6aae34cf0e 100644 --- a/frontend/docs/scripting/functions/PlayerTextDrawColour.md +++ b/frontend/docs/scripting/functions/PlayerTextDrawColour.md @@ -40,13 +40,13 @@ public OnPlayerConnect(playerid) :::tip -You can also use Gametext colours in textdraws. (e.g. `~r~` `~g~` `~b~`) +You can also use [Gametext colours](../resources/gametextstyles) in textdraws. ::: :::note -The textdraw must be re-shown to the player in order to update the colour. +The textdraw must be [re-shown](PlayerTextDrawShow) to the player in order to update the colour. ::: diff --git a/frontend/docs/scripting/functions/PlayerTextDrawSetPreviewVehCol.md b/frontend/docs/scripting/functions/PlayerTextDrawSetPreviewVehCol.md index 61b9400e17c0..78cc636465ea 100644 --- a/frontend/docs/scripting/functions/PlayerTextDrawSetPreviewVehCol.md +++ b/frontend/docs/scripting/functions/PlayerTextDrawSetPreviewVehCol.md @@ -9,12 +9,12 @@ tags: ["player", "textdraw", "playertextdraw"] Set the color of a vehicle in a player-textdraw model preview (if a vehicle is shown). -| Name | Description | -| ----------------- | ----------------------------------------------------- | -| playerid | The ID of the player whose player-textdraw to change. | -| PlayerText:textid | The ID of the player's player-textdraw to change. | -| colour1 | The color to set the vehicle's primary color to. | -| colour2 | The color to set the vehicle's secondary color to. | +| Name | Description | +| ----------------- | --------------------------------------------------------------------------------- | +| playerid | The ID of the player whose player-textdraw to change. | +| PlayerText:textid | The ID of the player's player-textdraw to change. | +| colour1 | The [color](../resources/vehiclecolorid) to set the vehicle's primary color to. | +| colour2 | The [color](../resources/vehiclecolorid) to set the vehicle's secondary color to. | ## Returns diff --git a/frontend/docs/scripting/functions/PlayerTextDrawSetPreviewVehicleColours.md b/frontend/docs/scripting/functions/PlayerTextDrawSetPreviewVehicleColours.md index 1fe01a9abf94..485b4a9fc70c 100644 --- a/frontend/docs/scripting/functions/PlayerTextDrawSetPreviewVehicleColours.md +++ b/frontend/docs/scripting/functions/PlayerTextDrawSetPreviewVehicleColours.md @@ -11,12 +11,12 @@ tags: ["player", "textdraw", "playertextdraw"] Set the colour of a vehicle in a player-textdraw model preview (if a vehicle is shown). -| Name | Description | -| ----------------- | ----------------------------------------------------- | -| playerid | The ID of the player whose player-textdraw to change. | -| PlayerText:textid | The ID of the player's player-textdraw to change. | -| colour1 | The colour to set the vehicle's primary colour to. | -| colour2 | The colour to set the vehicle's secondary colour to. | +| Name | Description | +| ----------------- | ----------------------------------------------------------------------------------- | +| playerid | The ID of the player whose player-textdraw to change. | +| PlayerText:textid | The ID of the player's player-textdraw to change. | +| colour1 | The [colour](../resources/vehiclecolorid) to set the vehicle's primary colour to. | +| colour2 | The [colour](../resources/vehiclecolorid) to set the vehicle's secondary colour to. | ## Returns diff --git a/frontend/docs/scripting/functions/PlayerTextDrawTextSize.md b/frontend/docs/scripting/functions/PlayerTextDrawTextSize.md index 57a9c3ff783b..98d26296f657 100644 --- a/frontend/docs/scripting/functions/PlayerTextDrawTextSize.md +++ b/frontend/docs/scripting/functions/PlayerTextDrawTextSize.md @@ -43,7 +43,7 @@ public OnPlayerConnect(playerid) - 1 (left): they are the right-most corner of the box, absolute coordinates. - 2 (center): they need to inverted (switch the two) and the x value is the overall width of the box. - 3 (right): the x and y are the coordinates of the left-most corner of the box -- Using font type 4 (sprite) and 5 (model preview) converts X and Y of this function from corner coordinates to WIDTH and HEIGHT (offsets). +- Using [font type](PlayerTextDrawFont) 4 (sprite) and 5 (model preview) converts X and Y of this function from corner coordinates to WIDTH and HEIGHT (offsets). - The TextDraw box starts 10.0 units up and 5.0 to the left as the origin (TextDrawCreate coordinate). - This function defines the clickable area for use with [PlayerTextDrawSetSelectable](PlayerTextDrawSetSelectable), whether a box is shown or not. diff --git a/frontend/docs/scripting/functions/RedirectDownload.md b/frontend/docs/scripting/functions/RedirectDownload.md index cd72d012a5fa..95062715b3b3 100644 --- a/frontend/docs/scripting/functions/RedirectDownload.md +++ b/frontend/docs/scripting/functions/RedirectDownload.md @@ -9,7 +9,7 @@ tags: ["custom model", "custom skin", "simple model"] ## Description -Redirect a player custom AddCharModel or AddSimpleModel download to a specific HTTP webpage. +Redirect a player custom [AddCharModel](AddCharModel) or [AddSimpleModel](AddSimpleModel) download to a specific HTTP webpage. ## Parameters diff --git a/frontend/docs/scripting/functions/RemoveBuildingForPlayer.md b/frontend/docs/scripting/functions/RemoveBuildingForPlayer.md index eea585374c86..06c20122f559 100644 --- a/frontend/docs/scripting/functions/RemoveBuildingForPlayer.md +++ b/frontend/docs/scripting/functions/RemoveBuildingForPlayer.md @@ -12,7 +12,7 @@ Removes a standard San Andreas model for a single player within a specified rang | Name | Description | | ------------- | --------------------------------------------------------------------------------- | | playerid | The ID of the player to remove the objects for. | -| modelid | The model to remove. | +| modelid | The [model](https://models.open.mp/?cat=objects) to remove. | | Float:centerX | The X coordinate around which the objects will be removed. | | Float:centerY | The Y coordinate around which the objects will be removed. | | Float:centerZ | The Z coordinate around which the objects will be removed. | diff --git a/frontend/docs/scripting/functions/RemovePlayerMapIcon.md b/frontend/docs/scripting/functions/RemovePlayerMapIcon.md index 187e5370013e..5dbac207a17a 100644 --- a/frontend/docs/scripting/functions/RemovePlayerMapIcon.md +++ b/frontend/docs/scripting/functions/RemovePlayerMapIcon.md @@ -7,12 +7,12 @@ tags: ["player"] ## Description -Removes a map icon that was set earlier for a player using SetPlayerMapIcon. +Removes a map icon that was set earlier for a player using [SetPlayerMapIcon](SetPlayerMapIcon). -| Name | Description | -| -------- | ------------------------------------------------------------------------------- | -| playerid | The ID of the player whose icon to remove. | -| iconid | The ID of the icon to remove. This is the second parameter of SetPlayerMapIcon. | +| Name | Description | +| -------- | --------------------------------------------------------------------------------------------------- | +| playerid | The ID of the player whose icon to remove. | +| iconid | The ID of the icon to remove. This is the second parameter of [SetPlayerMapIcon](SetPlayerMapIcon). | ## Returns diff --git a/frontend/docs/scripting/functions/SHA256_PassHash.md b/frontend/docs/scripting/functions/SHA256_PassHash.md index 0e493d75d9a3..026e146cd36a 100644 --- a/frontend/docs/scripting/functions/SHA256_PassHash.md +++ b/frontend/docs/scripting/functions/SHA256_PassHash.md @@ -17,12 +17,12 @@ This function is deprecated in open.mp, Use [samp-bcrypt](https://github.com/Sre Hashes a password using the SHA-256 hashing algorithm. Includes a salt. The output is always 256 bits in length, or the equivalent of 64 Pawn cells. -| Name | Description | -| ---------------------- | -------------------------------------------------- | -| const password[] | The password to hash. | -| const salt[] | The salt to use in the hash. | -| output[] | The returned hash in uppercase hexadecimal digest. | -| size = sizeof (output) | The returned hash maximum length. | +| Name | Description | +| ---------------------- | --------------------------------------------------------------------------------- | +| const password[] | The password to hash. | +| const salt[] | The [salt](https://en.wikipedia.org/wiki/Salt_(cryptography)) to use in the hash. | +| output[] | The returned hash in uppercase hexadecimal digest. | +| size = sizeof (output) | The returned hash maximum length. | ## Returns diff --git a/frontend/docs/scripting/functions/SelectObject.md b/frontend/docs/scripting/functions/SelectObject.md index d9f86f5b606f..e8e7d0fd35f0 100644 --- a/frontend/docs/scripting/functions/SelectObject.md +++ b/frontend/docs/scripting/functions/SelectObject.md @@ -7,7 +7,7 @@ tags: [] ## Description -Display the cursor and allow the player to select an object. OnPlayerSelectObject is called when the player selects an object. +Display the cursor and allow the player to select an object. [OnPlayerSelectObject](../callbacks/OnPlayerSelectObject) is called when the player selects an object. | Name | Description | | -------- | ------------------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/SendClientCheck.md b/frontend/docs/scripting/functions/SendClientCheck.md index 6ecb1b3b4f07..a4cf6c8498b3 100644 --- a/frontend/docs/scripting/functions/SendClientCheck.md +++ b/frontend/docs/scripting/functions/SendClientCheck.md @@ -54,9 +54,8 @@ public OnClientCheckResponse(playerid, actionid, memaddr, retndata) :::warning -**SA:MP Server**: This function only works when it is in a filterscript. - -**Open Multiplayer Server**: This functions normally inside a gamemode / filterscript. +- **SA-MP server**: This function only works when it is in a filterscript. +- **open.mp server**: This functions normally inside a gamemode / filterscript. ::: diff --git a/frontend/docs/scripting/functions/SendClientMessage.md b/frontend/docs/scripting/functions/SendClientMessage.md index 2a488461446b..efe059605070 100644 --- a/frontend/docs/scripting/functions/SendClientMessage.md +++ b/frontend/docs/scripting/functions/SendClientMessage.md @@ -7,7 +7,7 @@ tags: [] ## Description -This function sends a message to a specific player with a chosen color in the chat. The whole line in the chatbox will be in the set color unless color embedding is used. +This function sends a message to a specific player with a chosen color in the chat. The whole line in the chatbox will be in the set color unless [color embedding](../resources/colorslist#color-embedding) is used. | Name | Description | | ---------------- | --------------------------------------------------------- | @@ -52,8 +52,8 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::tip -- You can use color embedding for multiple colors in the message. -- Using '-1' as the color will make the text white (for the simple reason that -1, when represented in hexadecimal notation, is 0xFFFFFFFF). +- You can use [color embedding](../resources/colorslist#color-embedding) for multiple colors in the message. +- Using '-1' as the color will make the text white (for the simple reason that -1, when represented in [hexadecimal notation](../resources/hexcolors), is 0xFFFFFFFF). ::: diff --git a/frontend/docs/scripting/functions/SendDeathMessage.md b/frontend/docs/scripting/functions/SendDeathMessage.md index 41f7e16404cf..1d51e6c9951e 100644 --- a/frontend/docs/scripting/functions/SendDeathMessage.md +++ b/frontend/docs/scripting/functions/SendDeathMessage.md @@ -11,11 +11,11 @@ Adds a death to the 'killfeed' on the right-hand side of the screen for all play The 5 most recent kills are shown on the right side of players' screens. Pressing **F9** will hide/show the list. -| Name | Description | -| ------ | --------------------------------------------------------------------------------------------------------------------------- | -| killer | The ID of the killer (can be INVALID_PLAYER_ID). | -| killee | The ID of the player that died. | -| weapon | The reason (not always a weapon) for the victim's death. Special icons can also be used (ICON_CONNECT and ICON_DISCONNECT). | +| Name | Description | +| ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| killer | The ID of the killer (can be INVALID_PLAYER_ID). | +| killee | The ID of the player that died. | +| weapon | The [reason](../resources/weaponids) (not always a weapon) for the victim's death. Special icons can also be used (ICON_CONNECT and ICON_DISCONNECT). | ## Returns diff --git a/frontend/docs/scripting/functions/SendDeathMessageToPlayer.md b/frontend/docs/scripting/functions/SendDeathMessageToPlayer.md index 245ed36de6f1..59408ea52cbf 100644 --- a/frontend/docs/scripting/functions/SendDeathMessageToPlayer.md +++ b/frontend/docs/scripting/functions/SendDeathMessageToPlayer.md @@ -11,12 +11,12 @@ Adds a death to the 'killfeed' on the right-hand side of the screen for a single The 5 most recent kills are shown on the right side of players' screens. Pressing **F9** will hide/show the list. -| Name | Description | -| -------- | --------------------------------------------------------------------------------------------------------------------------- | -| playerid | The ID of the player to send the death message to. | -| killer | The ID of the killer (can be INVALID_PLAYER_ID). | -| killee | The ID of the player that died. | -| weapon | The reason (not always a weapon) for the victim's death. Special icons can also be used (ICON_CONNECT and ICON_DISCONNECT). | +| Name | Description | +| -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| playerid | The ID of the player to send the death message to. | +| killer | The ID of the killer (can be INVALID_PLAYER_ID). | +| killee | The ID of the player that died. | +| weapon | The [reason](../resources/weaponids) (not always a weapon) for the victim's death. Special icons can also be used (ICON_CONNECT and ICON_DISCONNECT). | ## Returns diff --git a/frontend/docs/scripting/functions/SendRconCommand.md b/frontend/docs/scripting/functions/SendRconCommand.md index d05586eeddc4..48e582ff6d48 100644 --- a/frontend/docs/scripting/functions/SendRconCommand.md +++ b/frontend/docs/scripting/functions/SendRconCommand.md @@ -9,10 +9,10 @@ tags: ["administration"] Sends an RCON (Remote Console) command. -| Name | Description | -| ---------------- | ------------------------------------------ | -| const format[] | The RCON command to be executed. | -| OPEN_MP_TAGS:... | Indefinite number of arguments of any tag. | +| Name | Description | +| ---------------- | -------------------------------------------------------------------------------- | +| const format[] | The [RCON command](../../server/ControllingServer#rcon-commands) to be executed. | +| OPEN_MP_TAGS:... | Indefinite number of arguments of any tag. | ## Returns diff --git a/frontend/docs/scripting/functions/SetActorFacingAngle.md b/frontend/docs/scripting/functions/SetActorFacingAngle.md index b78b254bdf1c..14ada59b8fb3 100644 --- a/frontend/docs/scripting/functions/SetActorFacingAngle.md +++ b/frontend/docs/scripting/functions/SetActorFacingAngle.md @@ -11,10 +11,10 @@ tags: ["actor"] Set the facing angle of an actor. -| Name | Description | -| ----------- | ------------------------------------------------------------------------ | -| actorid | The ID of the actor to set the facing angle of. Returned by CreateActor. | -| Float:angle | The facing angle to set for the actor. | +| Name | Description | +| ----------- | --------------------------------------------------------------------------------------- | +| actorid | The ID of the actor to set the facing angle of. Returned by [CreateActor](CreateActor). | +| Float:angle | The facing angle to set for the actor. | ## Returns diff --git a/frontend/docs/scripting/functions/SetActorPos.md b/frontend/docs/scripting/functions/SetActorPos.md index 9a33691bec12..5ea5050b426c 100644 --- a/frontend/docs/scripting/functions/SetActorPos.md +++ b/frontend/docs/scripting/functions/SetActorPos.md @@ -11,12 +11,12 @@ tags: ["actor"] Set the position of an actor. -| Name | Description | -| ------- | -------------------------------------------------------------------- | -| actorid | The ID of the actor to set the position of. Returned by CreateActor. | -| Float:x | The X coordinate to position the actor at. | -| Float:y | The Y coordinate to position the actor at. | -| Float:z | The Z coordinate to position the actor at. | +| Name | Description | +| ------- | ----------------------------------------------------------------------------------- | +| actorid | The ID of the actor to set the position of. Returned by [CreateActor](CreateActor). | +| Float:x | The X coordinate to position the actor at. | +| Float:y | The Y coordinate to position the actor at. | +| Float:z | The Z coordinate to position the actor at. | ## Returns diff --git a/frontend/docs/scripting/functions/SetActorVirtualWorld.md b/frontend/docs/scripting/functions/SetActorVirtualWorld.md index 644503b7aad9..8b2e95c435d2 100644 --- a/frontend/docs/scripting/functions/SetActorVirtualWorld.md +++ b/frontend/docs/scripting/functions/SetActorVirtualWorld.md @@ -11,10 +11,10 @@ tags: ["actor"] Set the virtual world of an actor. Only players in the same world will see the actor. -| Name | Description | -| ------------ | -------------------------------------------------------------------------- | -| actorid | The ID of the actor (returned by CreateActor) to set the virtual world of. | -| virtualWorld | The virtual world to put the actor ID. | +| Name | Description | +| ------------ | ----------------------------------------------------------------------------------------- | +| actorid | The ID of the actor (returned by [CreateActor](CreateActor)) to set the virtual world of. | +| virtualWorld | The virtual world to put the actor ID. | ## Returns diff --git a/frontend/docs/scripting/functions/SetObjectMaterial.md b/frontend/docs/scripting/functions/SetObjectMaterial.md index 5ff3320b85a6..1bf0c83dcde7 100644 --- a/frontend/docs/scripting/functions/SetObjectMaterial.md +++ b/frontend/docs/scripting/functions/SetObjectMaterial.md @@ -15,7 +15,7 @@ Replace the texture of an object with the texture from another model in the game | materialIndex | The material index on the object to change (0 to 15) | | modelid | The modelid on which the replacement texture is located. Use 0 for alpha. Use -1 to change the material color without altering the texture. | | const textureLibrary[] | The name of the txd file which contains the replacement texture (use "none" if not required) | -| const textureName[] | The name of the texture to use as the replacement (use "none" if not required) | +| const textureName[] | The name of the [texture](https://models.open.mp/?cat=textures) to use as the replacement (use "none" if not required) | | materialColour | The object color to set, as an integer or hex in **ARGB** color format. Using **0** keeps the existing material color. | ## Returns diff --git a/frontend/docs/scripting/functions/SetObjectMaterialText.md b/frontend/docs/scripting/functions/SetObjectMaterialText.md index 14ec11b1af0d..00c1d34d2c66 100644 --- a/frontend/docs/scripting/functions/SetObjectMaterialText.md +++ b/frontend/docs/scripting/functions/SetObjectMaterialText.md @@ -55,8 +55,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -You MUST use **ARGB** color format, not RGBA like used in client messages etc. -Text does not update after 16 calls against the same object. +- You MUST use **ARGB** color format, not RGBA like used in client messages etc. +- Text does not update after 16 calls against the same object. ::: diff --git a/frontend/docs/scripting/functions/SetObjectPos.md b/frontend/docs/scripting/functions/SetObjectPos.md index efc2f144687e..d36424c70bb5 100644 --- a/frontend/docs/scripting/functions/SetObjectPos.md +++ b/frontend/docs/scripting/functions/SetObjectPos.md @@ -7,14 +7,14 @@ tags: ["object"] ## Description -Change the position of an object. - -| Name | Description | -| -------- | ---------------------------------------------------------------------- | -| objectid | The ID of the object to set the position of. Returned by CreateObject. | -| Float:x | The X coordinate to position the object at. | -| Float:y | The Y coordinate to position the object at. | -| Float:z | The Z coordinate to position the object at. | +Change the position of an [object](CreateObject). + +| Name | Description | +| -------- | -------------------------------------------------------------------------------------- | +| objectid | The ID of the object to set the position of. Returned by [CreateObject](CreateObject). | +| Float:x | The X coordinate to position the object at. | +| Float:y | The Y coordinate to position the object at. | +| Float:z | The Z coordinate to position the object at. | ## Returns diff --git a/frontend/docs/scripting/functions/SetPlayerAmmo.md b/frontend/docs/scripting/functions/SetPlayerAmmo.md index 508d08069be5..c479ce4154a8 100644 --- a/frontend/docs/scripting/functions/SetPlayerAmmo.md +++ b/frontend/docs/scripting/functions/SetPlayerAmmo.md @@ -9,11 +9,11 @@ tags: ["player"] Set the ammo of a player's weapon. -| Name | Description | -| --------------- | -------------------------------------------------------------------------------- | -| playerid | The ID of the player to set the weapon ammo of. | -| WEAPON:weaponid | The ID of the weapon to set the ammo of. (not the weaponslot as in samp include) | -| ammo | The amount of ammo to set. | +| Name | Description | +| --------------- | ---------------------------------------------------------------------------------------------------------- | +| playerid | The ID of the player to set the weapon ammo of. | +| WEAPON:weaponid | The [ID of the weapon](../resources/weaponids) to set the ammo of. (not the weaponslot as in samp include) | +| ammo | The amount of ammo to set. | ## Returns diff --git a/frontend/docs/scripting/functions/SetPlayerArmedWeapon.md b/frontend/docs/scripting/functions/SetPlayerArmedWeapon.md index 62c7b760ebda..a935e64cfb54 100644 --- a/frontend/docs/scripting/functions/SetPlayerArmedWeapon.md +++ b/frontend/docs/scripting/functions/SetPlayerArmedWeapon.md @@ -51,7 +51,7 @@ public OnPlayerStateChange(playerid, PLAYER_STATE:newstate, PLAYER_STATE:oldstat :::note -This function _arms_ a player with a weapon they **already have**; it does not _give_ them a new weapon. See GivePlayerWeapon. +This function _arms_ a player with a weapon they **already have**; it does not _give_ them a new weapon. See [GivePlayerWeapon](GivePlayerWeapon). ::: diff --git a/frontend/docs/scripting/functions/SetPlayerAttachedObject.md b/frontend/docs/scripting/functions/SetPlayerAttachedObject.md index ef60fa6eda28..80013f09e519 100644 --- a/frontend/docs/scripting/functions/SetPlayerAttachedObject.md +++ b/frontend/docs/scripting/functions/SetPlayerAttachedObject.md @@ -13,7 +13,7 @@ Attach an object to a specific bone on a player. | --------------- | ---------------------------------------------------------------------------------------- | | playerid | The ID of the player to attach the object to. | | index | The index (slot 0-9) to assign the object to. | -| modelid | The model to attach. | +| modelid | The [model](../resources/samp_objects) to attach. | | bone | The [bone](../resources/boneid) to attach the object to. | | Float:offsetX | (optional) X axis offset for the object position. | | Float:offsetY | (optional) Y axis offset for the object position. | @@ -49,7 +49,7 @@ public OnPlayerSpawn(playerid) :::note -This function is separate from the CreateObject / CreatePlayerObject pools. +This function is separate from the [CreateObject](CreateObject) / [CreatePlayerObject](CreatePlayerObject) pools. ::: diff --git a/frontend/docs/scripting/functions/SetPlayerCameraLookAt.md b/frontend/docs/scripting/functions/SetPlayerCameraLookAt.md index c5cfd2ae5d11..a111d9b1bdfd 100644 --- a/frontend/docs/scripting/functions/SetPlayerCameraLookAt.md +++ b/frontend/docs/scripting/functions/SetPlayerCameraLookAt.md @@ -7,7 +7,7 @@ tags: ["player", "camera"] ## Description -Set the direction a player's camera looks at. Generally meant to be used in combination with SetPlayerCameraPos. +Set the direction a player's camera looks at. Generally meant to be used in combination with [SetPlayerCameraPos](SetPlayerCameraPos). | Name | Description | | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- | @@ -34,7 +34,7 @@ SetPlayerCameraLookAt(playerid, 324.34, 54.122, 173.35); :::warning -Using the camera functions directly after enabling spectator mode doesn't work. +Using the camera functions directly after [enabling spectator mode](TogglePlayerSpectating) doesn't work. ::: diff --git a/frontend/docs/scripting/functions/SetPlayerCameraPos.md b/frontend/docs/scripting/functions/SetPlayerCameraPos.md index 4eccc4577beb..c22f339c7765 100644 --- a/frontend/docs/scripting/functions/SetPlayerCameraPos.md +++ b/frontend/docs/scripting/functions/SetPlayerCameraPos.md @@ -32,14 +32,14 @@ SetPlayerCameraPos(playerid, 652.23, 457.21, 10.84); :::tip -- You may also have to use SetPlayerCameraLookAt with this function in order to work properly. -- Use SetCameraBehindPlayer to reset the camera to behind the player. +- You may also have to use [SetPlayerCameraLookAt](SetPlayerCameraLookAt) with this function in order to work properly. +- Use [SetCameraBehindPlayer](SetCameraBehindPlayer) to reset the camera to behind the player. ::: :::warning -Using the camera functions directly after enabling spectator mode doesn't work. +Using the camera functions directly after [enabling spectator mode](TogglePlayerSpectating) doesn't work. ::: diff --git a/frontend/docs/scripting/functions/SetPlayerChatBubble.md b/frontend/docs/scripting/functions/SetPlayerChatBubble.md index ae5423e7d436..5b0ae2ac753e 100644 --- a/frontend/docs/scripting/functions/SetPlayerChatBubble.md +++ b/frontend/docs/scripting/functions/SetPlayerChatBubble.md @@ -36,14 +36,14 @@ public OnPlayerText(playerid, text[]) :::note -You can't see your own chat bubbles. The same applies to attached 3D text labels. +You can't see your own chat bubbles. The same applies to attached [3D text labels](Attach3DTextLabelToPlayer). ::: :::tip -- You can use color embedding for multiple colors in the message. -- Using '-1' as the color will make the text white (for the simple reason that -1, when represented in hexadecimal notation, is 0xFFFFFFFF). +- You can use [color embedding](../resources/colorslist#color-embedding) for multiple colors in the message. +- Using '-1' as the color will make the text white (for the simple reason that -1, when represented in [hexadecimal notation](../resources/hexcolors), is 0xFFFFFFFF). ::: diff --git a/frontend/docs/scripting/functions/SetPlayerCheckpoint.md b/frontend/docs/scripting/functions/SetPlayerCheckpoint.md index 458f9435e06c..2451a044709f 100644 --- a/frontend/docs/scripting/functions/SetPlayerCheckpoint.md +++ b/frontend/docs/scripting/functions/SetPlayerCheckpoint.md @@ -7,7 +7,7 @@ tags: ["player", "checkpoint"] ## Description -Sets a checkpoint (red cylinder) for a player. Also shows a red blip on the radar. When players enter a checkpoint, OnPlayerEnterCheckpoint is called and actions can be performed. +Sets a checkpoint (red cylinder) for a player. Also shows a red blip on the radar. When players enter a checkpoint, [OnPlayerEnterCheckpoint](../callbacks/OnPlayerEnterCheckpoint) is called and actions can be performed. | Name | Description | | ------------- | -------------------------------------------------- | @@ -55,7 +55,7 @@ public OnPlayerEnterCheckpoint(playerid) :::warning - Checkpoints are asynchronous, meaning only one can be shown at a time. To 'stream' checkpoints (only show them when players are close enough), use a checkpoint streamer. -- Checkpoints created on server-created objects ([CreateObject](CreateObject)/[CreatePlayerObject](CreatePlayerObject)) will appear down on the 'real' ground, but will still function correctly. A pickup can be used instead. +- Checkpoints created on server-created objects ([CreateObject](CreateObject)/[CreatePlayerObject](CreatePlayerObject)) will appear down on the 'real' ground, but will still function correctly. A [pickup](CreatePickup) can be used instead. ::: diff --git a/frontend/docs/scripting/functions/SetPlayerColor.md b/frontend/docs/scripting/functions/SetPlayerColor.md index 6dbc198fd19d..064ee67db8ed 100644 --- a/frontend/docs/scripting/functions/SetPlayerColor.md +++ b/frontend/docs/scripting/functions/SetPlayerColor.md @@ -9,10 +9,10 @@ tags: ["player"] Set the colour of a player's nametag and marker (radar blip). -| Name | Description | -| -------- | ---------------------------------------- | -| playerid | The ID of the player whose color to set. | -| colour | The color to set. Supports alpha values. | +| Name | Description | +| -------- | --------------------------------------------------------------------------------------------- | +| playerid | The ID of the player whose color to set. | +| colour | The color to set. Supports [alpha values](../resources/colorslist#alpha-values-transparency). | ## Returns @@ -32,8 +32,8 @@ SetPlayerColor(playerid, 4278190335); :::note -- This function will change player's color for everyone, even if player's color was changed with SetPlayerMarkerForPlayer for any other player. -- If used under OnPlayerConnect, the affecting player will not see the color in the TAB menu. +- This function will change player's color for everyone, even if player's color was changed with [SetPlayerMarkerForPlayer](SetPlayerMarkerForPlayer) for any other player. +- If used under [OnPlayerConnect](../callbacks/OnPlayerConnect), the affecting player will not see the color in the TAB menu. ::: diff --git a/frontend/docs/scripting/functions/SetPlayerHoldingObject.md b/frontend/docs/scripting/functions/SetPlayerHoldingObject.md index 71d74917a5d7..14ff0802a598 100644 --- a/frontend/docs/scripting/functions/SetPlayerHoldingObject.md +++ b/frontend/docs/scripting/functions/SetPlayerHoldingObject.md @@ -12,7 +12,7 @@ Attaches an object to a bone. | Name | Description | | -------- | ----------------------------------------------------------------- | | playerid | ID of the player you want to attach the object to. | -| modelid | The model you want to use. | +| modelid | The [model](../resources/samp_objects) you want to use. | | bone | The [bone](../resources/boneid) you want to attach the object to. | | fOffsetX | (optional) X axis offset for the object position. | | fOffsetY | (optional) Y axis offset for the object position. | diff --git a/frontend/docs/scripting/functions/SetPlayerInterior.md b/frontend/docs/scripting/functions/SetPlayerInterior.md index 37beea9a0f13..3b4605d87790 100644 --- a/frontend/docs/scripting/functions/SetPlayerInterior.md +++ b/frontend/docs/scripting/functions/SetPlayerInterior.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -Set a player's interior. A list of currently known interiors and their positions can be found here. +Set a player's interior. A list of currently known interiors and their positions can be found [here](../resources/interiorids). | Name | Description | | ---------- | ----------------------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/SetPlayerMarkerForPlayer.md b/frontend/docs/scripting/functions/SetPlayerMarkerForPlayer.md index 2ca9ba4c606e..056b52f36a44 100644 --- a/frontend/docs/scripting/functions/SetPlayerMarkerForPlayer.md +++ b/frontend/docs/scripting/functions/SetPlayerMarkerForPlayer.md @@ -9,11 +9,11 @@ tags: ["player"] Change the colour of a player's **nametag** and **radar blip** for another player. -| Name | Description | -| -------- | ---------------------------------------------------------------- | -| playerid | The player that will see the player's changed blip/nametag color | -| targetid | The player whose color will be changed | -| colour | New color. Supports alpha values. | +| Name | Description | +| -------- | -------------------------------------------------------------------------------------- | +| playerid | The player that will see the player's changed blip/nametag color | +| targetid | The player whose color will be changed | +| colour | New color. Supports [alpha values](../resources/colorslist#alpha-values-transparency). | ## Returns diff --git a/frontend/docs/scripting/functions/SetPlayerObjectMaterial.md b/frontend/docs/scripting/functions/SetPlayerObjectMaterial.md index aa31544f0ea7..b371e0b2e2b6 100644 --- a/frontend/docs/scripting/functions/SetPlayerObjectMaterial.md +++ b/frontend/docs/scripting/functions/SetPlayerObjectMaterial.md @@ -16,7 +16,7 @@ Replace the texture of a player-object with the texture from another model in th | materialIndex | The material index on the object to change (0 to 15) | | modelid | The modelid on which replacement texture is located. Use 0 for alpha. Use -1 to change the material color without altering the existing texture. | | const textureLibrary[] | The name of the txd file which contains the replacement texture (use "none" if not required) | -| const textureName[] | The name of the texture to use as the replacement (use "none" if not required) | +| const textureName[] | The name of the [texture](https://models.open.mp/?cat=textures) to use as the replacement (use "none" if not required) | | materialColour | The object color to set, as an integer or hex in **ARGB format**. Using **0** keeps the existing material color. | ## Returns diff --git a/frontend/docs/scripting/functions/SetPlayerObjectMaterialText.md b/frontend/docs/scripting/functions/SetPlayerObjectMaterialText.md index 315529bfd1f9..2d42a1fb2c63 100644 --- a/frontend/docs/scripting/functions/SetPlayerObjectMaterialText.md +++ b/frontend/docs/scripting/functions/SetPlayerObjectMaterialText.md @@ -48,7 +48,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/SetPlayerObjectPos.md b/frontend/docs/scripting/functions/SetPlayerObjectPos.md index 1a7bb8da8c39..17487a033ce8 100644 --- a/frontend/docs/scripting/functions/SetPlayerObjectPos.md +++ b/frontend/docs/scripting/functions/SetPlayerObjectPos.md @@ -9,13 +9,13 @@ tags: ["player", "object", "playerobject"] Sets the position of a player-object to the specified coordinates. -| Name | Description | -| -------- | ----------------------------------------------------------------------------------- | -| playerid | The ID of the player whose player-object to set the position of. | -| objectid | The ID of the player-object to set the position of. Returned by CreatePlayerObject. | -| Float:x | The X coordinate to put the object at. | -| Float:y | The Y coordinate to put the object at. | -| Float:z | The Z coordinate to put the object at. | +| Name | Description | +| -------- | --------------------------------------------------------------------------------------------------------- | +| playerid | The ID of the player whose player-object to set the position of. | +| objectid | The ID of the player-object to set the position of. Returned by [CreatePlayerObject](CreatePlayerObject). | +| Float:x | The X coordinate to put the object at. | +| Float:y | The Y coordinate to put the object at. | +| Float:z | The Z coordinate to put the object at. | ## Returns diff --git a/frontend/docs/scripting/functions/SetPlayerPos.md b/frontend/docs/scripting/functions/SetPlayerPos.md index 23d19d955c0e..afe7699d4b7e 100644 --- a/frontend/docs/scripting/functions/SetPlayerPos.md +++ b/frontend/docs/scripting/functions/SetPlayerPos.md @@ -47,7 +47,7 @@ Using this function on a player in a vehicle will instantly remove them from the :::tip -When setting a player's position to an interior, their interior must be set also. +When setting a player's position to an interior, [their interior](SetPlayerInterior) must be set also. ::: diff --git a/frontend/docs/scripting/functions/SetPlayerRaceCheckpoint.md b/frontend/docs/scripting/functions/SetPlayerRaceCheckpoint.md index 1138e549de4f..caad1071a0d5 100644 --- a/frontend/docs/scripting/functions/SetPlayerRaceCheckpoint.md +++ b/frontend/docs/scripting/functions/SetPlayerRaceCheckpoint.md @@ -7,7 +7,7 @@ tags: ["player", "checkpoint", "racecheckpoint"] ## Description -Creates a race checkpoint. When the player enters it, the OnPlayerEnterRaceCheckpoint callback is called. +Creates a race checkpoint. When the player enters it, the [OnPlayerEnterRaceCheckpoint](../callbacks/OnPlayerEnterRaceCheckpoint) callback is called. | Name | Description | | ------------- | -------------------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/SetPlayerSkillLevel.md b/frontend/docs/scripting/functions/SetPlayerSkillLevel.md index c7f2fa53a9de..ac2138805bfd 100644 --- a/frontend/docs/scripting/functions/SetPlayerSkillLevel.md +++ b/frontend/docs/scripting/functions/SetPlayerSkillLevel.md @@ -9,11 +9,11 @@ tags: ["player"] Set the skill level of a certain weapon type for a player. -| Name | Description | -| ----------------- | ---------------------------------------------------------------------------------------------------- | -| playerid | The ID of the player to set the weapon skill of. | -| WEAPONSKILL:skill | The [weapon](../resources/weaponskills) to set the skill of. | -| level | The skill level to set for that weapon, ranging from 0 to 999. A level out of range will max it out. | +| Name | Description | +| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | +| playerid | The ID of the player to set the weapon skill of. | +| WEAPONSKILL:skill | The [weapon](../resources/weaponskills) to set the skill of. | +| level | The [skill level](../resources/weaponskills#skill-levels) to set for that weapon, ranging from 0 to 999. A level out of range will max it out. | ## Returns diff --git a/frontend/docs/scripting/functions/SetPlayerSkin.md b/frontend/docs/scripting/functions/SetPlayerSkin.md index 424ae6e370d1..80044ec721a0 100644 --- a/frontend/docs/scripting/functions/SetPlayerSkin.md +++ b/frontend/docs/scripting/functions/SetPlayerSkin.md @@ -92,9 +92,9 @@ SetPlayerSkinFix(playerid, skinid) **Known Bug(s):** -- If a player's skin is set when they are crouching, in a vehicle, or performing certain animations, they will become frozen or otherwise glitched. This can be fixed by using [TogglePlayerControllable](TogglePlayerControllable). Players can be detected as being crouched through [GetPlayerSpecialAction](GetPlayerSpecialAction) (SPECIAL_ACTION_DUCK). +- If a player's skin is set when they are crouching, [in a vehicle](IsPlayerInAnyVehicle), or [performing certain animations](GetPlayerAnimationIndex), they will become frozen or otherwise glitched. This can be fixed by using [TogglePlayerControllable](TogglePlayerControllable). Players can be detected as being crouched through [GetPlayerSpecialAction](GetPlayerSpecialAction) (SPECIAL_ACTION_DUCK). - Other players around the player may crash if he is in a vehicle or if he is entering/leaving a vehicle. -- Setting a player's skin when he is dead may crash players around him. +- Setting a player's skin when he is [dead](../callbacks/OnPlayerDeath) may crash players around him. - Breaks sitting on bikes. ::: diff --git a/frontend/docs/scripting/functions/SetPlayerWeather.md b/frontend/docs/scripting/functions/SetPlayerWeather.md index 354b0687f0eb..ec262f4cdadf 100644 --- a/frontend/docs/scripting/functions/SetPlayerWeather.md +++ b/frontend/docs/scripting/functions/SetPlayerWeather.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -Set a player's weather. +Set a player's [weather](../resources/weatherid). | Name | Description | | -------- | --------------------------------------------- | diff --git a/frontend/docs/scripting/functions/SetPlayerWorldBounds.md b/frontend/docs/scripting/functions/SetPlayerWorldBounds.md index 1e523fec36da..61dacc81456b 100644 --- a/frontend/docs/scripting/functions/SetPlayerWorldBounds.md +++ b/frontend/docs/scripting/functions/SetPlayerWorldBounds.md @@ -53,7 +53,7 @@ A player's world boundaries can be reset by setting them to 20000.0000, -20000.0 :::warning -This function doesn't work in interiors! +This function doesn't work in [interiors](../resources/interiorids)! ::: diff --git a/frontend/docs/scripting/functions/SetSpawnInfo.md b/frontend/docs/scripting/functions/SetSpawnInfo.md index 63e0e545ae1d..bbb412d3f75c 100644 --- a/frontend/docs/scripting/functions/SetSpawnInfo.md +++ b/frontend/docs/scripting/functions/SetSpawnInfo.md @@ -18,11 +18,11 @@ This function can be used to change the spawn information of a specific player. | Float:spawnY | The Y-coordinate of the player's spawn position. | | Float:spawnZ | The Z-coordinate of the player's spawn position. | | Float:angle | The direction in which the player needs to be facing after spawning. | -| WEAPON:weapon1 | The first spawn-weapon for the player. | +| WEAPON:weapon1 | The first [spawn-weapon](../resources/weaponids) for the player. | | ammo1 | The amount of ammunition for the primary spawnweapon. | -| WEAPON:weapon2 | The second spawn-weapon for the player. | +| WEAPON:weapon2 | The second [spawn-weapon](../resources/weaponids) for the player. | | ammo2 | The amount of ammunition for the second spawnweapon. | -| WEAPON:weapon3 | The third spawn-weapon for the player. | +| WEAPON:weapon3 | The third [spawn-weapon](../resources/weaponids) for the player. | | ammo3 | The amount of ammunition for the third spawnweapon. | ## Returns @@ -45,9 +45,8 @@ public OnPlayerRequestClass(playerid, classid) :::warning -In case you don't need to set a team to the player, make sure that the "team" parameter is set to `NO_TEAM` (255). - -Team ID 0 in open.mp is a valid team while in SA-MP it is not (SA-MP bug). +- In case you don't need to set a team to the player, make sure that the "team" parameter is set to `NO_TEAM` (255). +- Team ID 0 in open.mp is a valid team while in SA-MP it is not (SA-MP bug). ::: diff --git a/frontend/docs/scripting/functions/SetTimer.md b/frontend/docs/scripting/functions/SetTimer.md index b18e94f7adf5..4f169c5d4449 100644 --- a/frontend/docs/scripting/functions/SetTimer.md +++ b/frontend/docs/scripting/functions/SetTimer.md @@ -49,7 +49,7 @@ public OneSecondTimer() :::note - Timer IDs are never used twice. You can use [KillTimer](KillTimer) on a timer ID and it won't matter if it's running or not. -- The function that should be called, must be public, meaning it has to be forwarded. +- The function that should be called, must be [public](../language/reference/Functions#-public-functions-function-main), meaning it has to be [forwarded](../language/reference/Functions#-forward-declarations). ::: diff --git a/frontend/docs/scripting/functions/SetTimerEx.md b/frontend/docs/scripting/functions/SetTimerEx.md index 40b24d802cc5..e7b150617a5f 100644 --- a/frontend/docs/scripting/functions/SetTimerEx.md +++ b/frontend/docs/scripting/functions/SetTimerEx.md @@ -9,13 +9,13 @@ tags: ["timer"] Sets a timer to call a function after the specified interval. This variant ('Ex') can pass parameters (such as a player ID) to the function. -| Name | Description | -| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | -| const functionName[] | The name of a public function to call when the timer expires. | -| interval | Interval in milliseconds (1 second = 1000 MS). | -| bool:repeating | Boolean (true/false (or 1/0)) that states whether the timer should be called repeatedly (can only be stopped with KillTimer) or only once. | -| const specifiers[] | Special format indicating the types of values the timer will pass. | -| OPEN_MP_TAGS:... | Indefinite number of arguments to pass (must follow format specified in previous parameter). | +| Name | Description | +| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| const functionName[] | The name of a public function to call when the timer expires. | +| interval | Interval in milliseconds (1 second = 1000 MS). | +| bool:repeating | Boolean (true/false (or 1/0)) that states whether the timer should be called repeatedly (can only be stopped with [KillTimer](KillTimer)) or only once. | +| const specifiers[] | Special format indicating the types of values the timer will pass. | +| OPEN_MP_TAGS:... | Indefinite number of arguments to pass (must follow format specified in previous parameter). | ## Returns @@ -94,7 +94,7 @@ Timer intervals are not accurate (roughly 25% off) in SA-MP. There are fixes ava :::tip - Timer ID variables should be reset to 0 when they can to minimise the chance of accidentally killing new timers by mistake. `-1` is commonly mistaken to be the invalid ID - it isn't. -- The function to be called must be public. That means it has to be forwarded. +- The function to be called must be [public](../language/reference/Functions#-public-functions-function-main). That means it has to be [forwarded](../language/reference/Functions#-forward-declarations). ::: diff --git a/frontend/docs/scripting/functions/SetVehicleHealth.md b/frontend/docs/scripting/functions/SetVehicleHealth.md index 5e22b3021f78..924b84ffd94b 100644 --- a/frontend/docs/scripting/functions/SetVehicleHealth.md +++ b/frontend/docs/scripting/functions/SetVehicleHealth.md @@ -9,10 +9,10 @@ tags: ["vehicle"] Set a vehicle's health. When a vehicle's health decreases the engine will produce smoke, and finally fire when it decreases to less than 250 (25%). -| Name | Description | -| ------------ | ------------------------------------------- | -| vehicleid | The ID of the vehicle to set the health of. | -| Float:health | The health, given as a float value. | +| Name | Description | +| ------------ | ----------------------------------------------------------------- | +| vehicleid | The ID of the vehicle to set the health of. | +| Float:health | The [health](../resources/vehiclehealth), given as a float value. | ## Returns diff --git a/frontend/docs/scripting/functions/SetVehicleNumberPlate.md b/frontend/docs/scripting/functions/SetVehicleNumberPlate.md index 3c89efa76eb9..58e4593fd54e 100644 --- a/frontend/docs/scripting/functions/SetVehicleNumberPlate.md +++ b/frontend/docs/scripting/functions/SetVehicleNumberPlate.md @@ -32,8 +32,8 @@ SetVehicleNumberPlate(vehicleid, "ABCD 123"); :::note -- This function has no internal error checking. -- The vehicle must be re-spawned or re-streamed for the changes to take effect. +- This function has no internal error checking. Do not assign custom number plates to vehicles without plates (boats, planes, etc) as this will result in some unneeded processing time on the client. +- The vehicle must be [re-spawned](SetVehicleToRespawn) or re-streamed for the changes to take effect. - There's a limit of 32 characters on each number plate (including embedded colors). - The text length that can be seen on the number plate is around 9 to 10 characters, more characters will cause the text to split. - Some vehicle models has a backward number plate, e.g. Boxville (498) (as an alternative to this vehicle you can use vehicle model ID 609, which is a duplicated Boxville (aka Boxburg), but with a regular number plate). @@ -42,8 +42,7 @@ SetVehicleNumberPlate(vehicleid, "ABCD 123"); :::tip -- Do not assign custom number plates to vehicles without plates (boats, planes, etc) as this will result in some unneeded processing time on the client. -- You can use color embedding on the number plate text. +You can use [color embedding](../resources/colorslist#color-embedding) on the number plate text. ::: diff --git a/frontend/docs/scripting/functions/SetVehicleParamsEx.md b/frontend/docs/scripting/functions/SetVehicleParamsEx.md index f219c6a70f85..e99107c13156 100644 --- a/frontend/docs/scripting/functions/SetVehicleParamsEx.md +++ b/frontend/docs/scripting/functions/SetVehicleParamsEx.md @@ -84,7 +84,7 @@ public DisableVehicleAlarm(vehicleid) :::note - The alarm will not reset when finished, you'll need to reset it by yourself with this function. -- Lights also operate during the day (Only when [ManualVehicleEngineAndLights](ManualVehicleEngineAndLights) is enabled). +- Lights also operate during the day (only when [ManualVehicleEngineAndLights](ManualVehicleEngineAndLights) is enabled). ::: diff --git a/frontend/docs/scripting/functions/SetVehicleParamsForPlayer.md b/frontend/docs/scripting/functions/SetVehicleParamsForPlayer.md index fbb95a6f05de..c5a101536a90 100644 --- a/frontend/docs/scripting/functions/SetVehicleParamsForPlayer.md +++ b/frontend/docs/scripting/functions/SetVehicleParamsForPlayer.md @@ -115,7 +115,7 @@ public OnVehicleStreamIn(vehicleid, forplayerid) :::note -Vehicles must be respawned for the 'objective' to be removed. This can be circumvented somewhat using [GetVehicleParamsEx](GetVehicleParamsEx)/[SetVehicleParamsEx](SetVehicleParamsEx) which do not require the vehicle to be respawned (see the first example above). It is worth noting however that the objective will be disabled on a global scale, and this is only useful if only one player has the vehicle as an objective. +Vehicles must be [respawned](SetVehicleToRespawn) for the 'objective' to be removed. This can be circumvented somewhat using [GetVehicleParamsEx](GetVehicleParamsEx)/[SetVehicleParamsEx](SetVehicleParamsEx) which do not require the vehicle to be respawned (see the first example above). It is worth noting however that the objective will be disabled on a global scale, and this is only useful if only one player has the vehicle as an objective. ::: diff --git a/frontend/docs/scripting/functions/ShowMenuForPlayer.md b/frontend/docs/scripting/functions/ShowMenuForPlayer.md index d9b1d13ca59e..d8b0877db68c 100644 --- a/frontend/docs/scripting/functions/ShowMenuForPlayer.md +++ b/frontend/docs/scripting/functions/ShowMenuForPlayer.md @@ -7,12 +7,12 @@ tags: ["player", "menu"] ## Description -Shows a previously created menu for a player. +Shows a [previously created](CreateMenu) menu for a player. -| Name | Description | -| ----------- | ---------------------------------------------------- | -| Menu:menuid | The ID of the menu to show. Returned by CreateMenu. | -| playerid | The ID of the player to whom the menu will be shown. | +| Name | Description | +| ----------- | ----------------------------------------------------------------- | +| Menu:menuid | The ID of the menu to show. Returned by [CreateMenu](CreateMenu). | +| playerid | The ID of the player to whom the menu will be shown. | ## Returns diff --git a/frontend/docs/scripting/functions/ShowPlayerDialog.md b/frontend/docs/scripting/functions/ShowPlayerDialog.md index fcf4d3e381b9..7c7546c5bbd6 100644 --- a/frontend/docs/scripting/functions/ShowPlayerDialog.md +++ b/frontend/docs/scripting/functions/ShowPlayerDialog.md @@ -70,7 +70,7 @@ ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_TABLIST_HEADERS, "Buy We :::tip - It is recommended to use enumerations (see above) or definitions (#define) to determine which IDs dialogs have, to avoid confusion in the future. You should never use literal numbers for IDs - it gets confusing. -- Use color embedding for multiple colors in the text. +- Use [color embedding](../resources/colorslist#color-embedding) for multiple colors in the text. - Using **-1** as `dialogid` closes all dialogs currently shown on the client's screen or you can use [HidePlayerDialog](HidePlayerDialog) function. ::: diff --git a/frontend/docs/scripting/functions/ShowPlayerMarkers.md b/frontend/docs/scripting/functions/ShowPlayerMarkers.md index 1e4a840e6390..7f167309908b 100644 --- a/frontend/docs/scripting/functions/ShowPlayerMarkers.md +++ b/frontend/docs/scripting/functions/ShowPlayerMarkers.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -Toggles player markers (blips on the radar). Must be used when the server starts (OnGameModeInit). For other times, see [SetPlayerMarkerForPlayer](SetPlayerMarkerForPlayer). +Toggles player markers (blips on the radar). Must be used when the server starts ([OnGameModeInit](../callbacks/OnGameModeInit)). For other times, see [SetPlayerMarkerForPlayer](SetPlayerMarkerForPlayer). | Name | Description | | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------- | @@ -39,7 +39,7 @@ public OnGameModeInit() :::tip -It is also possible to set a player's color to a color that has full transparency (no alpha value). This makes it possible to show markers on a per-player basis. +It is also possible to [set a player's color](SetPlayerColor) to a color that has full transparency (no alpha value). This makes it possible to show markers on a per-player basis. ::: diff --git a/frontend/docs/scripting/functions/ShowPlayerNameTagForPlayer.md b/frontend/docs/scripting/functions/ShowPlayerNameTagForPlayer.md index 4216774fb519..c70ede7122c3 100644 --- a/frontend/docs/scripting/functions/ShowPlayerNameTagForPlayer.md +++ b/frontend/docs/scripting/functions/ShowPlayerNameTagForPlayer.md @@ -44,7 +44,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -[ShowNameTags](ShowNameTags) must be set to 'true' to be able to show name tags with ShowPlayerNameTagForPlayer, that means that in order to be effective you need to ShowPlayerNameTagForPlayer(forplayerid, playerid, 0) ahead of time ([OnPlayerStreamIn](../callbacks/OnPlayerStreamIn) is a good spot). +[ShowNameTags](ShowNameTags) must be set to 'true' to be able to show name tags with ShowPlayerNameTagForPlayer, that means that in order to be effective you need to `ShowPlayerNameTagForPlayer(forplayerid, playerid, 0)` ahead of time ([OnPlayerStreamIn](../callbacks/OnPlayerStreamIn) is a good spot). ::: diff --git a/frontend/docs/scripting/functions/StopPlayerObject.md b/frontend/docs/scripting/functions/StopPlayerObject.md index 3d18ab28a6d4..e1cf31ca4cf1 100644 --- a/frontend/docs/scripting/functions/StopPlayerObject.md +++ b/frontend/docs/scripting/functions/StopPlayerObject.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -Stop a moving player-object after MovePlayerObject has been used. +Stop a moving player-object after [MovePlayerObject](MovePlayerObject) has been used. | Name | Description | | -------- | ------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/StopRecordingPlayerData.md b/frontend/docs/scripting/functions/StopRecordingPlayerData.md index d6451569fd24..5b499e3665e7 100644 --- a/frontend/docs/scripting/functions/StopRecordingPlayerData.md +++ b/frontend/docs/scripting/functions/StopRecordingPlayerData.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -Stops all the recordings that had been started with StartRecordingPlayerData for a specific player. +Stops all the recordings that had been started with [StartRecordingPlayerData](StartRecordingPlayerData) for a specific player. | Name | Description | | -------- | ---------------------------------------------- | diff --git a/frontend/docs/scripting/functions/TextDrawDestroy.md b/frontend/docs/scripting/functions/TextDrawDestroy.md index f14b0bf676bf..c57e6b579278 100644 --- a/frontend/docs/scripting/functions/TextDrawDestroy.md +++ b/frontend/docs/scripting/functions/TextDrawDestroy.md @@ -9,9 +9,9 @@ tags: ["textdraw"] Destroys a previously-created textdraw. -| Name | Description | -| ----------- | -------------------------------------------------------------- | -| Text:textid | The ID of the textdraw to destroy. Returned by TextDrawCreate. | +| Name | Description | +| ----------- | -------------------------------------------------------------------------------- | +| Text:textid | The ID of the textdraw to destroy. Returned by [TextDrawCreate](TextDrawCreate). | ## Returns diff --git a/frontend/docs/scripting/functions/TextDrawFont.md b/frontend/docs/scripting/functions/TextDrawFont.md index bd3e12d78546..299f97a4e8d0 100644 --- a/frontend/docs/scripting/functions/TextDrawFont.md +++ b/frontend/docs/scripting/functions/TextDrawFont.md @@ -9,10 +9,10 @@ tags: ["textdraw"] Changes the text font. -| Name | Description | -| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| Text:textid | The TextDraw to change | -| TEXT_DRAW_FONT:font | There are four font styles as shown below. Font value **4** specifies that this is a txd sprite; **5** specifies that this textdraw can display preview models. A font value greater than 5 does not display, and anything greater than 16 crashes the client. | +| Name | Description | +| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Text:textid | The TextDraw to change | +| TEXT_DRAW_FONT:font | There are four font styles as shown below. Font value **4** specifies that this is a [txd sprite](../resources/textdrawsprites); **5** specifies that this textdraw can display [preview models](TextDrawSetPreviewModel). A font value greater than 5 does not display, and anything greater than 16 crashes the client. | **Available Styles:** ![Available Styles](https://assets.open.mp/assets/images/textdraws/Textdraw_font_styles.png) diff --git a/frontend/docs/scripting/functions/TextDrawLetterSize.md b/frontend/docs/scripting/functions/TextDrawLetterSize.md index 6ff63aa34c23..3a8d787efeac 100644 --- a/frontend/docs/scripting/functions/TextDrawLetterSize.md +++ b/frontend/docs/scripting/functions/TextDrawLetterSize.md @@ -36,7 +36,7 @@ public OnGameModeInit() :::tip -- When using this function purely for the benefit of affecting the TextDraw box, multiply 'Y' by 0.135 to convert to TextDrawTextSize-like measurements. **Hint**: it is easier and extremely precise to use **LD_SPAC:white** sprite for box-only textdraws, TextDrawTextSize will have regular offsets. +- When using this function purely for the benefit of affecting the TextDraw box, multiply 'Y' by 0.135 to convert to [TextDrawTextSize](TextDrawTextSize)-like measurements. **Hint**: it is easier and extremely precise to use **LD_SPAC:white** sprite for box-only textdraws, TextDrawTextSize will have regular offsets. - If you want to change the letter size of a textdraw that is already shown, you don't have to recreate it. Simply use [TextDrawShowForPlayer](TextDrawShowForPlayer)/[TextDrawShowForAll](TextDrawShowForAll) after modifying the textdraw and the change will be visible. - Fonts appear to look the best with an X to Y ratio of 1 to 4 (e.g. if x is 0.5 then y should be 2). diff --git a/frontend/docs/scripting/functions/TextDrawSetOutline.md b/frontend/docs/scripting/functions/TextDrawSetOutline.md index 59b5edf8df26..75285a485014 100644 --- a/frontend/docs/scripting/functions/TextDrawSetOutline.md +++ b/frontend/docs/scripting/functions/TextDrawSetOutline.md @@ -7,7 +7,7 @@ tags: ["textdraw"] ## Description -Sets the thickness of a textdraw's text's outline. TextDrawBackgroundColor can be used to change the color. +Sets the thickness of a textdraw's text's outline. [TextDrawBackgroundColor](TextDrawBackgroundColor) can be used to change the color. | Name | Description | | ----------- | -------------------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/TextDrawSetPreviewVehCol.md b/frontend/docs/scripting/functions/TextDrawSetPreviewVehCol.md index 3205b85dd59f..320326ef6d58 100644 --- a/frontend/docs/scripting/functions/TextDrawSetPreviewVehCol.md +++ b/frontend/docs/scripting/functions/TextDrawSetPreviewVehCol.md @@ -9,11 +9,11 @@ tags: ["textdraw"] If a vehicle model is used in a 3D preview textdraw, this sets the two colour values for that vehicle. -| Name | Description | -| ----------- | ------------------------------------------------------------------ | -| Text:textid | The textdraw id that is set to display a 3D vehicle model preview. | -| colour1 | The primary color ID to set the vehicle to. | -| colour2 | The secondary color ID to set the vehicle to. | +| Name | Description | +| ----------- | ---------------------------------------------------------------------------- | +| Text:textid | The textdraw id that is set to display a 3D vehicle model preview. | +| colour1 | The primary [color ID](../resources/vehiclecolorid) to set the vehicle to. | +| colour2 | The secondary [color ID](../resources/vehiclecolorid) to set the vehicle to. | ## Returns diff --git a/frontend/docs/scripting/functions/TextDrawShowForPlayer.md b/frontend/docs/scripting/functions/TextDrawShowForPlayer.md index 3d2238891487..eea34a5c9b38 100644 --- a/frontend/docs/scripting/functions/TextDrawShowForPlayer.md +++ b/frontend/docs/scripting/functions/TextDrawShowForPlayer.md @@ -7,7 +7,7 @@ tags: ["player", "textdraw"] ## Description -Shows a textdraw for a specific player. +Shows a [textdraw](TextDrawCreate) for a specific player. | Name | Description | | ----------- | ---------------------------------------------------------------------------------- | @@ -42,7 +42,7 @@ public OnPlayerConnect(playerid) :::tip -If only a single player will see a textdraw, it might be wise to use player-textdraws instead. This is also useful for textdraws that need to show information specific for an individual player. +If only a single player will see a textdraw, it might be wise to use [player-textdraws](CreatePlayerTextDraw) instead. This is also useful for textdraws that need to show information specific for an individual player. ::: diff --git a/frontend/docs/scripting/functions/TextDrawTextSize.md b/frontend/docs/scripting/functions/TextDrawTextSize.md index 6adbdb25467e..106c7b100bae 100644 --- a/frontend/docs/scripting/functions/TextDrawTextSize.md +++ b/frontend/docs/scripting/functions/TextDrawTextSize.md @@ -36,10 +36,13 @@ public OnGameModeInit() :::note -- The x and y have different meanings with different TextDrawAlignment values: 1 (left): they are the right-most corner of the box, absolute coordinates. 2 (center): they need to inverted (switch the two) and the x value is the overall width of the box. 3 (right): the x and y are the coordinates of the left-most corner of the box -- Using font type 4 (sprite) and 5 (model preview) converts X and Y of this function from corner coordinates to WIDTH and HEIGHT (offsets). +- The x and y have different meanings with different [TextDrawAlignment](TextDrawAlignment) values: + - 1 (left): they are the right-most corner of the box, absolute coordinates. + - 2 (center): they need to inverted (switch the two) and the x value is the overall width of the box. + - 3 (right): the x and y are the coordinates of the left-most corner of the box +- Using [font type](TextDrawFont) 4 (sprite) and 5 (model preview) converts X and Y of this function from corner coordinates to WIDTH and HEIGHT (offsets). - The TextDraw box starts 10.0 units up and 5.0 to the left as the origin (TextDrawCreate coordinate). -- This function defines the clickable area for use with TextDrawSetSelectable, whether a box is shown or not. +- This function defines the clickable area for use with [TextDrawSetSelectable](TextDrawSetSelectable), whether a box is shown or not. ::: diff --git a/frontend/docs/scripting/functions/TogglePlayerSpectating.md b/frontend/docs/scripting/functions/TogglePlayerSpectating.md index 969afebd12bc..ef2cfb5844f9 100644 --- a/frontend/docs/scripting/functions/TogglePlayerSpectating.md +++ b/frontend/docs/scripting/functions/TogglePlayerSpectating.md @@ -37,13 +37,13 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::note -When spectator mode is disabled, OnPlayerSpawn will automatically be called, if you wish to restore player to state before spectating, you will have to handle that in OnPlayerSpawn. Note also, that player can also go to class selection before if they used F4 during spectate, a player also CAN die in spectate mode due to various glitches. +When spectator mode is disabled, [OnPlayerSpawn](../callbacks/OnPlayerSpawn) will automatically be called, if you wish to restore player to state before spectating, you will have to handle that in OnPlayerSpawn. Note also, that player can also go to class selection before if they used F4 during spectate, a player also CAN die in spectate mode due to various glitches. ::: :::tip -When a player is in spectate mode their HUD is hidden, making it useful for setting a player's camera without the HUD. Also, objects near the player's camera will be streamed in, making this useful for interpolating cameras. +When a player is in spectate mode their HUD is hidden, making it useful for setting a player's camera without the HUD. Also, objects near the player's camera will be streamed in, making this useful for [interpolating cameras](InterpolateCameraPos). ::: diff --git a/frontend/docs/scripting/functions/atan.md b/frontend/docs/scripting/functions/atan.md index 592eb07b4705..e3b4a47a1441 100644 --- a/frontend/docs/scripting/functions/atan.md +++ b/frontend/docs/scripting/functions/atan.md @@ -7,7 +7,7 @@ tags: ["math"] ## Description -Get the inversed value of a tangent in degrees. In trigonometrics, arc tangent is the inverse operation of tangent. Notice that because of the sign ambiguity, the function cannot determine with certainty in which quadrant the angle falls only by its tangent value. See [atan2](atan2) for an alternative that takes a fractional argument instead. +Get the inversed value of a [tangent](https://en.wikipedia.org/wiki/Trigonometric_functions) in degrees. In trigonometrics, arc tangent is the inverse operation of tangent. Notice that because of the sign ambiguity, the function cannot determine with certainty in which quadrant the angle falls only by its tangent value. See [atan2](atan2) for an alternative that takes a fractional argument instead. | Name | Description | | ----------- | ------------------------------------ | diff --git a/frontend/docs/scripting/functions/db_free_result.md b/frontend/docs/scripting/functions/db_free_result.md index e5f8044385af..103f7c9b960c 100644 --- a/frontend/docs/scripting/functions/db_free_result.md +++ b/frontend/docs/scripting/functions/db_free_result.md @@ -13,7 +13,7 @@ This function is deprecated. Please see [DB_FreeResultSet](DB_FreeResultSet). ## Description -Frees result memory allocated from db_query. +Frees result memory allocated from [db_query](db_query). | Name | Description | | ----------------- | -------------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/db_get_field.md b/frontend/docs/scripting/functions/db_get_field.md index a3f723a26796..4067b195a441 100644 --- a/frontend/docs/scripting/functions/db_get_field.md +++ b/frontend/docs/scripting/functions/db_get_field.md @@ -13,7 +13,7 @@ This function is deprecated. Please see [DB_GetFieldString](DB_GetFieldString). ## Description -Get the content of a field from db_query +Get the content of a field from [db_query](db_query). | Name | Description | | ----------------- | -------------------------------- | diff --git a/frontend/docs/scripting/functions/db_get_field_int.md b/frontend/docs/scripting/functions/db_get_field_int.md index d87f160be9b8..c0fd4e83c9a2 100644 --- a/frontend/docs/scripting/functions/db_get_field_int.md +++ b/frontend/docs/scripting/functions/db_get_field_int.md @@ -13,7 +13,7 @@ This function is deprecated. Please see [DB_GetFieldInt](DB_GetFieldInt). ## Description -Get the content of a field as an integer from db_query +Get the content of a field as an integer from [db_query](db_query). | Name | Description | | ----------------- | -------------------------------- | diff --git a/frontend/docs/scripting/functions/db_num_rows.md b/frontend/docs/scripting/functions/db_num_rows.md index 02c47af93fe0..c2e66b38ec36 100644 --- a/frontend/docs/scripting/functions/db_num_rows.md +++ b/frontend/docs/scripting/functions/db_num_rows.md @@ -13,11 +13,11 @@ This function is deprecated. Please see [DB_GetRowCount](DB_GetRowCount). ## Description -Returns the number of rows from a db_query +Returns the number of rows from a [db_query](db_query). -| Name | Description | -| ----------------- | ---------------------- | -| DBResult:dbresult | The result of db_query | +| Name | Description | +| ----------------- | ---------------------------------- | +| DBResult:dbresult | The result of [db_query](db_query) | ## Returns diff --git a/frontend/docs/scripting/functions/deleteproperty.md b/frontend/docs/scripting/functions/deleteproperty.md index e5c4b68231f9..64965a6bafee 100644 --- a/frontend/docs/scripting/functions/deleteproperty.md +++ b/frontend/docs/scripting/functions/deleteproperty.md @@ -9,11 +9,11 @@ tags: ["core", "property"] Delete an earlier set property ([setproperty](setproperty)). -| Name | Description | -| ------ | --------------------------------------------------------------------------------------------------- | -| id | The virtual machine to use. You should keep this as zero. _(optional=0)_ | -| name[] | The property's name, you should keep this blank (""). | -| value | The property's unique ID. Use the hash-function to calculate it from a string. _(optional=cellmin)_ | +| Name | Description | +| ------ | ------------------------------------------------------------------------------------------------------------------------- | +| id | The [virtual machine](https://en.wikipedia.org/wiki/Virtual_machine) to use. You should keep this as zero. _(optional=0)_ | +| name[] | The property's name, you should keep this blank (""). | +| value | The property's unique ID. Use the hash-function to calculate it from a string. _(optional=cellmin)_ | ## Returns diff --git a/frontend/docs/scripting/functions/existproperty.md b/frontend/docs/scripting/functions/existproperty.md index 4d9af38fa30a..61e4a8c9e305 100644 --- a/frontend/docs/scripting/functions/existproperty.md +++ b/frontend/docs/scripting/functions/existproperty.md @@ -9,11 +9,11 @@ tags: ["core", "property"] Check if a property exist. -| Name | Description | -| ------ | --------------------------------------------------------------------------------------------------- | -| id | The virtual machine to use, you should keep this zero. _(optional=0)_ | -| name[] | The property's name, you should keep this "". | -| value | The property's unique ID. Use the hash-function to calculate it from a string. _(optional=cellmin)_ | +| Name | Description | +| ------ | ---------------------------------------------------------------------------------------------------------------------- | +| id | The [virtual machine](https://en.wikipedia.org/wiki/Virtual_machine) to use, you should keep this zero. _(optional=0)_ | +| name[] | The property's name, you should keep this "". | +| value | The property's unique ID. Use the hash-function to calculate it from a string. _(optional=cellmin)_ | ## Returns diff --git a/frontend/docs/scripting/functions/fblockread.md b/frontend/docs/scripting/functions/fblockread.md index d1064cf8f6c8..bc61285acf65 100644 --- a/frontend/docs/scripting/functions/fblockread.md +++ b/frontend/docs/scripting/functions/fblockread.md @@ -9,11 +9,11 @@ tags: ["file management"] This function allows you to read data from a file, without encoding and line terminators -| Name | Description | -| ---------------------- | ------------------------------------ | -| File:handle | File handle to use, opened by fopen. | -| buffer | The buffer to save the read data in. | -| size = sizeof (buffer) | The number of cells to read. | +| Name | Description | +| ---------------------- | --------------------------------------------- | +| File:handle | File handle to use, opened by [fopen](fopen). | +| buffer | The buffer to save the read data in. | +| size = sizeof (buffer) | The number of cells to read. | ## Returns diff --git a/frontend/docs/scripting/functions/fblockwrite.md b/frontend/docs/scripting/functions/fblockwrite.md index 190dc1ed7b8f..fdaba2fda519 100644 --- a/frontend/docs/scripting/functions/fblockwrite.md +++ b/frontend/docs/scripting/functions/fblockwrite.md @@ -9,11 +9,11 @@ tags: ["file management"] Write data to a file in binary format, while ignoring line brakes and encoding. -| Name | Description | -| ---------------------- | ---------------------------------------- | -| File:handle | The File handle to use, opened by fopen. | -| const buffer[] | The data to write to the file. | -| size = sizeof (buffer) | The number of cells to write. | +| Name | Description | +| ---------------------- | ------------------------------------------------- | +| File:handle | The File handle to use, opened by [fopen](fopen). | +| const buffer[] | The data to write to the file. | +| size = sizeof (buffer) | The number of cells to write. | ## Returns diff --git a/frontend/docs/scripting/functions/fgetchar.md b/frontend/docs/scripting/functions/fgetchar.md index 0dcd9eed21c6..0ad32eae09bd 100644 --- a/frontend/docs/scripting/functions/fgetchar.md +++ b/frontend/docs/scripting/functions/fgetchar.md @@ -11,7 +11,7 @@ Reads a single character from a file. | Name | Description | | ----------- | ------------------------------------------------------------------------------------ | -| File:handle | The file handle to use; returned by fopen. | +| File:handle | The file handle to use; returned by [fopen](fopen). | | value | This parameter has no use, just keep it "0". | | bool:utf8 | If `true`, read a character as UTF-8, otherwise as extended ASCII. (default: `true`) | diff --git a/frontend/docs/scripting/functions/flength.md b/frontend/docs/scripting/functions/flength.md index 2cc246a4fb8c..4db9a49b3bfe 100644 --- a/frontend/docs/scripting/functions/flength.md +++ b/frontend/docs/scripting/functions/flength.md @@ -9,9 +9,9 @@ tags: ["file management"] Returns the length of a file. -| Name | Description | -| ----------- | ------------------------------------------ | -| File:handle | The file handle returned by fopen or ftemp | +| Name | Description | +| ----------- | ------------------------------------------------------------ | +| File:handle | The file handle returned by [fopen](fopen) or [ftemp](ftemp) | ## Returns diff --git a/frontend/docs/scripting/functions/floatabs.md b/frontend/docs/scripting/functions/floatabs.md index f393f5916fd7..e4f87114c251 100644 --- a/frontend/docs/scripting/functions/floatabs.md +++ b/frontend/docs/scripting/functions/floatabs.md @@ -7,7 +7,7 @@ tags: ["math", "floating-point"] ## Description -This function returns the absolute value of float. +This function returns the [absolute value](https://en.wikipedia.org/wiki/Absolute_value) of float. | Name | Description | | ----------- | --------------------------------------------- | diff --git a/frontend/docs/scripting/functions/floatcos.md b/frontend/docs/scripting/functions/floatcos.md index 3a5351aca4dd..22f5ae8e6c49 100644 --- a/frontend/docs/scripting/functions/floatcos.md +++ b/frontend/docs/scripting/functions/floatcos.md @@ -7,7 +7,7 @@ tags: ["math", "floating-point"] ## Description -Get the cosine from a given angle. The input angle may be in radians, degrees or grades. +Get the [cosine](https://en.wikipedia.org/wiki/Sine_and_cosine) from a given angle. The input angle may be in radians, degrees or grades. | Name | Description | | -------------- | --------------------------------------------------------------------------------------------------- | @@ -33,7 +33,8 @@ public OnGameModeInit() :::warning -GTA/SA-MP use **degrees** for angles in most circumstances, for example [GetPlayerFacingAngle](GetPlayerFacingAngle). Therefore, it is most likely you'll want to use the '**degrees**' angle mode, _not_ radians. Also note that angles in GTA are counterclockwise; 270° is East and 90° is West. South is still 180° and North still 0°/360°. +- GTA/SA-MP use **degrees** for angles in most circumstances, for example [GetPlayerFacingAngle](GetPlayerFacingAngle). Therefore, it is most likely you'll want to use the '**degrees**' angle mode, _not_ radians. +- Also note that angles in GTA are counterclockwise; 270° is East and 90° is West. South is still 180° and North still 0°/360°. ::: diff --git a/frontend/docs/scripting/functions/floatlog.md b/frontend/docs/scripting/functions/floatlog.md index ad176c80697c..625e0cea0464 100644 --- a/frontend/docs/scripting/functions/floatlog.md +++ b/frontend/docs/scripting/functions/floatlog.md @@ -7,7 +7,7 @@ tags: ["math", "floating-point"] ## Description -This function allows you to get the logarithm of a float value. +This function allows you to get the [logarithm](https://en.wikipedia.org/wiki/Logarithm) of a float value. | Name | Description | | ----------- | ---------------------------------------- | diff --git a/frontend/docs/scripting/functions/floatsin.md b/frontend/docs/scripting/functions/floatsin.md index 0f24237f22d9..c769296d74d0 100644 --- a/frontend/docs/scripting/functions/floatsin.md +++ b/frontend/docs/scripting/functions/floatsin.md @@ -7,7 +7,7 @@ tags: ["math", "floating-point"] ## Description -Get the sine from a given angle. The input angle may be in radians, degrees or grades. +Get the [sine](https://en.wikipedia.org/wiki/Sine_and_cosine) from a given angle. The input angle may be in radians, degrees or grades. | Name | Description | | -------------- | --------------------------------------------------------------------------------------------------- | @@ -41,7 +41,8 @@ GetPosInFrontOfPlayer(playerid, Float:distance, &Float:x, &Float:y, &Float:z) :::warning -GTA/SA-MP use **degrees** for angles in most circumstances, for example [GetPlayerFacingAngle](GetPlayerFacingAngle). Therefore, it is most likely you'll want to use the '**degrees**' angle mode, _not_ radians. Also note that angles in GTA are counterclockwise; 270° is East and 90° is West. South is still 180° and North still 0°/360°. +- GTA/SA-MP use **degrees** for angles in most circumstances, for example [GetPlayerFacingAngle](GetPlayerFacingAngle). Therefore, it is most likely you'll want to use the '**degrees**' angle mode, _not_ radians. +- Also note that angles in GTA are counterclockwise; 270° is East and 90° is West. South is still 180° and North still 0°/360°. ::: diff --git a/frontend/docs/scripting/functions/floatsqroot.md b/frontend/docs/scripting/functions/floatsqroot.md index 70adfd3b7aca..1f5e7c4968cd 100644 --- a/frontend/docs/scripting/functions/floatsqroot.md +++ b/frontend/docs/scripting/functions/floatsqroot.md @@ -7,7 +7,7 @@ tags: ["math", "floating-point"] ## Description -Calculates the square root of given value. +Calculates the [square root](https://en.wikipedia.org/wiki/Square_root) of given value. | Name | Description | | ----------- | ------------------------------------------ | diff --git a/frontend/docs/scripting/functions/floattan.md b/frontend/docs/scripting/functions/floattan.md index 5cf0f2161cf2..120f7ad7563a 100644 --- a/frontend/docs/scripting/functions/floattan.md +++ b/frontend/docs/scripting/functions/floattan.md @@ -7,7 +7,7 @@ tags: ["math", "floating-point"] ## Description -Get the tangent from a given angle. The input angle may be in radians, degrees or grades. +Get the [tangent](https://en.wikipedia.org/wiki/Trigonometric_functions) from a given angle. The input angle may be in radians, degrees or grades. | Name | Description | | ----------- | --------------------------------------------------------------------------------------------------- | @@ -33,7 +33,8 @@ public OnGameModeInit() :::warning -GTA/SA-MP use **degrees** for angles in most circumstances, for example [GetPlayerFacingAngle](GetPlayerFacingAngle). Therefore, it is most likely you'll want to use the '**degrees**' angle mode, _not_ radians. Also note that angles in GTA are counterclockwise; 270° is East and 90° is West. South is still 180° and North still 0°/360°. +- GTA/SA-MP use **degrees** for angles in most circumstances, for example [GetPlayerFacingAngle](GetPlayerFacingAngle). Therefore, it is most likely you'll want to use the '**degrees**' angle mode, _not_ radians. +- Also note that angles in GTA are counterclockwise; 270° is East and 90° is West. South is still 180° and North still 0°/360°. ::: diff --git a/frontend/docs/scripting/functions/fmatch.md b/frontend/docs/scripting/functions/fmatch.md index 010baa1e40e5..4ce97d1720bb 100644 --- a/frontend/docs/scripting/functions/fmatch.md +++ b/frontend/docs/scripting/functions/fmatch.md @@ -9,12 +9,12 @@ tags: ["file management"] Find a filename matching a pattern. -| Name | Description | -| ------------------------ | ------------------------------------------------------------------------ | -| const filename[] | The string to hold the result in, returned as a packed string. | -| const pattern[] | The pattern that should be matched. May contain wildcards. | -| index | The number of the file, in case there are multiple matches. (default: 0) | -| size = sizeof (filename) | The maximum size of parameter _name_ | +| Name | Description | +| ------------------------ | --------------------------------------------------------------------------- | +| const filename[] | The string to hold the result in, returned as a [packed](strunpack) string. | +| const pattern[] | The pattern that should be matched. May contain wildcards. | +| index | The number of the file, in case there are multiple matches. (default: 0) | +| size = sizeof (filename) | The maximum size of parameter _name_ | ## Returns diff --git a/frontend/docs/scripting/functions/format.md b/frontend/docs/scripting/functions/format.md index ba22eaf9237a..b1c1aaf10c86 100644 --- a/frontend/docs/scripting/functions/format.md +++ b/frontend/docs/scripting/functions/format.md @@ -84,7 +84,7 @@ SendClientMessage(playerid, 0xFF8000FF, string); :::warning -This function doesn't support packed strings. +This function doesn't support [packed](strpack) strings. ::: diff --git a/frontend/docs/scripting/functions/fputchar.md b/frontend/docs/scripting/functions/fputchar.md index 366ef807f089..e209671a0616 100644 --- a/frontend/docs/scripting/functions/fputchar.md +++ b/frontend/docs/scripting/functions/fputchar.md @@ -11,7 +11,7 @@ Write one character to a file. | Name | Description | | ----------- | ----------------------------------------------------------------------------- | -| File:handle | The File handle to use, earlier opened by fopen. | +| File:handle | The File handle to use, earlier opened by [fopen](fopen). | | value | The character to write into the file. | | bool:utf8 | If `true`, write in UTF8 mode, otherwise in extended ASCII. (default: `true`) | diff --git a/frontend/docs/scripting/functions/fread.md b/frontend/docs/scripting/functions/fread.md index a5cd29e54607..6fe79a635c53 100644 --- a/frontend/docs/scripting/functions/fread.md +++ b/frontend/docs/scripting/functions/fread.md @@ -9,12 +9,12 @@ tags: ["file management"] Read a single line from a file. -| Name | Description | -| ---------------------- | -------------------------------------------------------------- | -| File:handle | The handle of the file to read from (returned by fopen). | -| string[] | A string array to store the read text in, passed by reference. | -| size = sizeof (string) | The number of bytes to read. | -| bool:pack | Should the string be packed? (default: false). | +| Name | Description | +| ---------------------- | ----------------------------------------------------------------- | +| File:handle | The handle of the file to read from (returned by [fopen](fopen)). | +| string[] | A string array to store the read text in, passed by reference. | +| size = sizeof (string) | The number of bytes to read. | +| bool:pack | Should the string be packed? (default: false). | ## Returns diff --git a/frontend/docs/scripting/functions/fremove.md b/frontend/docs/scripting/functions/fremove.md index a6177190a7ec..f5f00306ca2a 100644 --- a/frontend/docs/scripting/functions/fremove.md +++ b/frontend/docs/scripting/functions/fremove.md @@ -51,7 +51,7 @@ else :::note -Files that are currently open (fopen) must be closed first (fclose) to be deleted. +Files that are currently open ([fopen](fopen)) must be closed first ([fclose](fclose)) to be deleted. ::: diff --git a/frontend/docs/scripting/functions/fseek.md b/frontend/docs/scripting/functions/fseek.md index 0f986548e3cb..3147806c973f 100644 --- a/frontend/docs/scripting/functions/fseek.md +++ b/frontend/docs/scripting/functions/fseek.md @@ -11,7 +11,7 @@ Change the current position in the file. You can either seek forward or backward | Name | Description | | --------------------------------------------------- | --------------------------------------------------------------------------- | -| File:handle | The file handle to use. Returned by fopen. | +| File:handle | The file handle to use. Returned by [fopen](fopen). | | position | The new position in the file, relative to the parameter whence (see below). | | [seek_whence:whence](../resources/file-seek-whence) | The starting position to which parameter position relates. | diff --git a/frontend/docs/scripting/functions/fwrite.md b/frontend/docs/scripting/functions/fwrite.md index 22672fd5a2a4..307d234a74ab 100644 --- a/frontend/docs/scripting/functions/fwrite.md +++ b/frontend/docs/scripting/functions/fwrite.md @@ -9,10 +9,10 @@ tags: ["file management"] Write text into a file. -| Name | Description | -| -------------- | ------------------------------------------------------- | -| File:handle | The handle of the file to write to (returned by fopen). | -| const string[] | The string of text to write in to the file. | +| Name | Description | +| -------------- | ---------------------------------------------------------------- | +| File:handle | The handle of the file to write to (returned by [fopen](fopen)). | +| const string[] | The string of text to write in to the file. | ## Returns @@ -106,7 +106,7 @@ else :::note -This functions writes to the file in UTF-8, which does not support some localized language symbols. +This functions writes to the file in [UTF-8](https://en.wikipedia.org/wiki/UTF-8), which does not support some localized language symbols. ::: diff --git a/frontend/docs/scripting/functions/getproperty.md b/frontend/docs/scripting/functions/getproperty.md index adaff7c605ab..115b091e7260 100644 --- a/frontend/docs/scripting/functions/getproperty.md +++ b/frontend/docs/scripting/functions/getproperty.md @@ -9,12 +9,12 @@ tags: ["core", "property"] Get a specific property from the memory, the string is returned as a packed string! -| Name | Description | -| -------- | --------------------------------------------------------------------------------------------------- | -| id | The virtual machine to use, you should keep this zero. _(optional=0)_ | -| name[] | The property's name, you should keep this "". | -| value | The property's unique ID, Use the hash-function to calculate it from a string. _(optional=cellmin)_ | -| string[] | The variable to store the result in, passed by reference. | +| Name | Description | +| -------- | ---------------------------------------------------------------------------------------------------------------------- | +| id | The [virtual machine](https://en.wikipedia.org/wiki/Virtual_machine) to use, you should keep this zero. _(optional=0)_ | +| name[] | The property's name, you should keep this "". | +| value | The property's unique ID, Use the hash-function to calculate it from a string. _(optional=cellmin)_ | +| string[] | The variable to store the result in, passed by reference. | ## Returns diff --git a/frontend/docs/scripting/functions/gettime.md b/frontend/docs/scripting/functions/gettime.md index 1b38db4aad5c..d5bbe32cbc28 100644 --- a/frontend/docs/scripting/functions/gettime.md +++ b/frontend/docs/scripting/functions/gettime.md @@ -17,7 +17,7 @@ Get the current server time, which will be stored in the variables &hour, &minut ## Returns -The function itself returns a Unix Timestamp. +The function itself returns a [Unix Timestamp](https://en.wikipedia.org/wiki/Unix_time). ## Examples diff --git a/frontend/docs/scripting/functions/random.md b/frontend/docs/scripting/functions/random.md index d2a30c9b0799..45ce911d489c 100644 --- a/frontend/docs/scripting/functions/random.md +++ b/frontend/docs/scripting/functions/random.md @@ -7,7 +7,7 @@ tags: ["core"] ## Description -Get a pseudo-random number. +Get a [pseudo-random number](https://en.wikipedia.org/wiki/Pseudorandom_number_generator). | Name | Description | | ---- | -------------------------------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/setproperty.md b/frontend/docs/scripting/functions/setproperty.md index 18ad104d1849..7543d34a1d18 100644 --- a/frontend/docs/scripting/functions/setproperty.md +++ b/frontend/docs/scripting/functions/setproperty.md @@ -11,7 +11,7 @@ Add a new property or change an existing property. | Name | Description | | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -| id | The virtual machine to use, you should keep this zero. _(optional=0)_ | +| id | The [virtual machine](https://en.wikipedia.org/wiki/Virtual_machine) to use, you should keep this zero. _(optional=0)_ | | name[] | Used in combination with _value_ when storing integers; don't use this if you want to store a string. | | value | The integer value to store **or** the property's unique ID if storing a string. Use the hash-function to calculate it from a string. _(optional=cellmin)_ | | string[] | The value of the property, as a string. Don't use this if you want to store an integer. | diff --git a/frontend/docs/scripting/functions/strcat.md b/frontend/docs/scripting/functions/strcat.md index 8ca3e097725e..2b202cc7dc0f 100644 --- a/frontend/docs/scripting/functions/strcat.md +++ b/frontend/docs/scripting/functions/strcat.md @@ -7,7 +7,7 @@ tags: ["string"] ## Description -This function concatenates (joins together) two strings into the destination string. +This function [concatenates](https://en.wikipedia.org/wiki/Concatenation) (joins together) two strings into the destination string. | Name | Description | | ------------------------- | ---------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/strcmp.md b/frontend/docs/scripting/functions/strcmp.md index 27fd32adfbaa..ecfa7a37d0ff 100644 --- a/frontend/docs/scripting/functions/strcmp.md +++ b/frontend/docs/scripting/functions/strcmp.md @@ -7,7 +7,7 @@ tags: ["string"] ## Description -Compares two strings to see if they are the same. +**C**o**mp**ares two **str**ings to see if they are the same. | Name | Description | | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/tickcount.md b/frontend/docs/scripting/functions/tickcount.md index 87481809f70e..e75b59b3b93f 100644 --- a/frontend/docs/scripting/functions/tickcount.md +++ b/frontend/docs/scripting/functions/tickcount.md @@ -7,7 +7,7 @@ tags: ["time"] ## Description -This function can be used as a replacement for GetTickCount, as it returns the number of milliseconds since the start-up of the server. +This function can be used as a replacement for [GetTickCount](GetTickCount), as it returns the number of milliseconds since the start-up of the server. | Name | Description | | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | diff --git a/frontend/docs/scripting/resources/cameramodes.md b/frontend/docs/scripting/resources/cameramodes.md index 090d407a736e..baeb9c2c7d61 100644 --- a/frontend/docs/scripting/resources/cameramodes.md +++ b/frontend/docs/scripting/resources/cameramodes.md @@ -30,9 +30,3 @@ There might still be more usable IDs hidden away in the game and some IDs are us | 53 | CAM_MODE_AIMWEAPON | MODE_AIMWEAPON | Aiming any other weapon | | 55 | CAM_MODE_AIMWEAPON_FROMCAR | MODE_AIMWEAPON_FROMCAR | Vehicle passenger aiming camera (drive by as a player) | | 56 | CAM_MODE_DW_HELI_CHASE | MODE_DW_HELI_CHASE | Chase camera: helicopter/bird view | -| 57 | - | MODE_DW_CAM_MAN | Chase camera: ground camera, zooms in quite quickly and pan to the vehicle | -| 58 | - | MODE_DW_BIRDY | Chase camera: horizontal flyby past vehicle | -| 59 | - | MODE_DW_PLANE_SPOTTER | Chase camera (for air vehicles only): ground camera, looking up to the air vehicle | -| 62 | - | MODE_DW_PLANECAM1 | Chase camera (for air vehicles only): vertical flyby past air vehicle | -| 63 | - | MODE_DW_PLANECAM2 | Chase camera (for air vehicles only): horizontal flyby past air vehicle (similar to 58 and 62) | -| 64 | - | MODE_DW_PLANECAM3 | Chase camera (for air vehicles only): camera focused on pilot, similar to pressing LOOK_BEHIND key on foot, but in air vehicle | diff --git a/frontend/docs/scripting/resources/damagestatus.md b/frontend/docs/scripting/resources/damagestatus.md index 43c56eeae91f..91f4ccec3d13 100644 --- a/frontend/docs/scripting/resources/damagestatus.md +++ b/frontend/docs/scripting/resources/damagestatus.md @@ -16,10 +16,10 @@ For example, the tires status stores 4 bits for the 4 tires. The value is 1 if t :::note -For more info on panel states, see [Panel States](panelstates). -For more info on door states, see [Door States](doorstates). -For more info on light states, see [Light States](lightstates). -For more info on tire states, see [Tire States](tirestates). +- For more info on panel states, see [Panel States](panelstates). +- For more info on door states, see [Door States](doorstates). +- For more info on light states, see [Light States](lightstates). +- For more info on tire states, see [Tire States](tirestates). ::: diff --git a/frontend/docs/scripting/resources/dialogstyles.md b/frontend/docs/scripting/resources/dialogstyles.md index 9947e5afe8cd..c4907fe93da0 100644 --- a/frontend/docs/scripting/resources/dialogstyles.md +++ b/frontend/docs/scripting/resources/dialogstyles.md @@ -7,7 +7,7 @@ sidebar_label: Dialog Styles - In [OnDialogResponse](../callbacks/OnDialogResponse), pressing **button1** sets **response** to **1**, while pressing **button2** sets **response** to **0**. - Every dialog can have an optional button 2. To make it disappear leave it empty, like in the first example. Players won't be able to click it, but they will be able to press ESC and trigger [OnDialogResponse](../callbacks/OnDialogResponse) with **response** = **0**. -- [ShowPlayerDialog](../functions/ShowPlayerDialog): Color embedding can be used for every string: **caption**, **info**, **button1** and **button2**. +- [ShowPlayerDialog](../functions/ShowPlayerDialog): [Color embedding](colorslist#color-embedding) can be used for every string: **caption**, **info**, **button1** and **button2**. ::: diff --git a/frontend/docs/scripting/resources/gametextstyles.md b/frontend/docs/scripting/resources/gametextstyles.md index 43be253d54cb..8b5b6eb73947 100644 --- a/frontend/docs/scripting/resources/gametextstyles.md +++ b/frontend/docs/scripting/resources/gametextstyles.md @@ -4,7 +4,7 @@ sidebar_label: GameText Styles description: GameText Styles used in textdraws and gametext. --- -This page covers everything you need to know about gametext styles, and how they can be used in textdraws and in text rendered for a (single) player. +This page covers everything you need to know about gametext styles, and how they can be used in [textdraws](../functions/TextDrawCreate) and in text rendered for a (single) player. Mainly used by [GameTextForPlayer](../functions/GameTextForPlayer) and [GameTextForAll](../functions/GameTextForAll). --- @@ -62,7 +62,9 @@ Unlike text colors, these slugs do not require encapsulation. They can be used a :::caution -Be careful, using too many text colors or special characters in one gametext may crash every player the gametext is shown to. Additionally, avoid using an uneven usage of the `~` character. Example: `~~r~Hello, ~g~how are ~y~you?` +Be careful, using too many text colors or special characters in one gametext may crash every player the gametext is shown to. Additionally, avoid using an uneven usage of the `~` character. + +Example: `~~r~Hello, ~g~how are ~y~you?` ::: diff --git a/frontend/docs/scripting/resources/limits.md b/frontend/docs/scripting/resources/limits.md index 406612ab43e7..5ee54dcfd6f5 100644 --- a/frontend/docs/scripting/resources/limits.md +++ b/frontend/docs/scripting/resources/limits.md @@ -40,24 +40,24 @@ tags: [] | Gamemodes | 16 | Unlimited | | Filterscripts | 16 | Unlimited | | Text Input (Chat/Commands) | 128 cells (512 bytes) | 128 cells (512 bytes) | -| Text Output | 144 cells (576 bytes) | 144 cells (576 bytes) | +| [Text Output](../functions/SendClientMessage) | 144 cells (576 bytes) | 144 cells (576 bytes) | | Name Length ([SetPlayerName](../functions/SetPlayerName)) | 24 characters | 24 characters | ## Textdraws -| Type | Limit (0.3.7) | -| ----------------------------------------------- | --------------- | -| String Length(2) | 1024 characters | -| Shown In A Single Client's Screen(3) | 2048 + 256 | -| Shown In A Single Client's Screen (sprites) | 100 | -| Created Serverwise (Global) | 2048 | -| Created Serverwise (Per-Player) | 256 | +| Type | Limit (0.3.7) | +| -------------------------------------------------------------------- | --------------- | +| String Length(2) | 1024 characters | +| Shown In A Single Client's Screen(3) | 2048 + 256 | +| Shown In A Single Client's Screen (sprites) | 100 | +| Created Serverwise ([Global](../functions/TextDrawCreate)) | 2048 | +| Created Serverwise ([Per-Player](../functions/CreatePlayerTextDraw)) | 256 | ## Dialogs | Type | Limit (0.3.7) | | ------------------------------------------------------------ | ------------- | -| Dialog IDs | 32768 | +| [Dialog IDs](../functions/ShowPlayerDialog) | 32768 | | Info (Main text) | 4096 | | Caption | 64 | | Input Text Box (DIALOG_STYLE_INPUT/PASSWORD) | 128 | @@ -68,7 +68,7 @@ tags: [] **Notes:** 1. Although the vehicle model limit in 0.3 is unlimited, if you use a large amount of vehicle models then it will affect client performance. -2. Although the textdraw string limit is 1024 characters, if colour codes (e.g. `~r~`) are used beyond the 255th character it may crash the client. +2. Although the textdraw string limit is 1024 characters, if [colour codes](gametextstyles#text-colors) (e.g. `~r~`) are used beyond the 255th character it may crash the client. 3. It is possible to show all Textdraws at the same time for one player, however this is not recommended. 4. To circumvent these limits, it is possible to use a [streamer](https://github.com/samp-incognito/samp-streamer-plugin). Streamers work by only creating the entities etc. that are close to players. 5. Due to client limitations only up to 51 actors may actually be shown at a time. diff --git a/frontend/docs/scripting/resources/sqlite-open-flags.md b/frontend/docs/scripting/resources/sqlite-open-flags.md index 37b37b48b2a6..e4a82a294d5d 100644 --- a/frontend/docs/scripting/resources/sqlite-open-flags.md +++ b/frontend/docs/scripting/resources/sqlite-open-flags.md @@ -38,8 +38,7 @@ These flags are used by [DB_Open](../functions/DB_Open_Modern) and [db_open](../ :::note -Learn more about these flags at https://www.sqlite.org/c3ref/open.html - -Learn about VFS at https://www.sqlite.org/c3ref/vfs.html +- Learn more about these flags at https://www.sqlite.org/c3ref/open.html +- Learn about VFS at https://www.sqlite.org/c3ref/vfs.html ::: diff --git a/frontend/docs/scripting/resources/startingids.md b/frontend/docs/scripting/resources/startingids.md index 6e19656d6f8a..a1054b668284 100644 --- a/frontend/docs/scripting/resources/startingids.md +++ b/frontend/docs/scripting/resources/startingids.md @@ -7,18 +7,18 @@ description: Everything like objects, players or vehicles use IDs. This page contains all of the starting IDs for numerous entities. Everything like objects, players or vehicles use IDs. Some IDs start with 0, others start with 1. -| Type | Starting ID | -| ------------------------- | ----------- | -| 3D Text Label | 0 | -| Actor | 0 | -| File | 0 | -| GangZone | 0 | -| Object | 1 | -| Pickup | 0 | -| Player | 0 | -| Player Class | 0 | -| TextDraw / PlayerTextDraw | 0 | -| Timer | 1 | -| Vehicle | 1 | +| Type | Starting ID | +| --------------------------------------------------------------------------------------------- | ----------- | +| [3D Text Label](../functions/Create3DTextLabel) | 0 | +| [Actor](../functions/CreateActor) | 0 | +| [File](../functions/fopen) | 0 | +| [GangZone](../functions/GangZoneCreate) | 0 | +| [Object](../functions/CreateObject) | 1 | +| [Pickup](../functions/CreatePickup) | 0 | +| Player | 0 | +| [Player Class](../functions/AddPlayerClass) | 0 | +| [TextDraw](../functions/TextDrawCreate) / [PlayerTextDraw](../functions/CreatePlayerTextDraw) | 0 | +| [Timer](../functions/SetTimer) | 1 | +| [Vehicle](../functions/CreateVehicle) | 1 | You see, vehicles and objects start using 1, not 0! So if you plan to use an array to hold all IDs you have to use the ID from CreateObject/CreateVehicle/... and subtract 1 to get the array element ID. diff --git a/frontend/docs/scripting/resources/weaponids.md b/frontend/docs/scripting/resources/weaponids.md index 9f4ef2e2c102..ad52ec610024 100644 --- a/frontend/docs/scripting/resources/weaponids.md +++ b/frontend/docs/scripting/resources/weaponids.md @@ -54,8 +54,8 @@ This page contains all of the in-game weapons used by [OnPlayerDeath](../callbac | ![](https://assets.open.mp/assets/images/weaponIcons/spraycan.png)
Spray Can | ![](https://assets.open.mp/assets/images/deathIcons/death-sprayCan.gif) | WEAPON_SPRAYCAN | 41 | 9 | 365 | 500 | No | Players that are sprayed choke | | ![](https://assets.open.mp/assets/images/weaponIcons/fireExtinguisher.png)
Fire Extinguisher | ![](https://assets.open.mp/assets/images/deathIcons/death-fireExtinguisher.gif) | WEAPON_FIREEXTINGUISHER | 42 | 9 | 366 | 500 | No | Players that are sprayed choke | | ![](https://assets.open.mp/assets/images/weaponIcons/camera.png)
Camera | ![](https://assets.open.mp/assets/images/deathIcons/death-camera.gif) | WEAPON_CAMERA | 43 | 9 | 367 | 36 | No | Saves photos to player's gallery if enabled via pause menu (My Documents\GTA San Andreas User Files\Gallery) | -| ![](https://assets.open.mp/assets/images/weaponIcons/nightVisGoggles.png)
Night Vision | ![](https://assets.open.mp/assets/images/deathIcons/death-nightVisGoggles.gif) | WEAPON_NIGHT_VISION_GOGGLES | 44 | 11 | 368 | - | - | Visual effects show for all players (fix available) | -| ![](https://assets.open.mp/assets/images/weaponIcons/thermalGoggles.png)
Thermal Goggles | ![](https://assets.open.mp/assets/images/deathIcons/death-thermalGoggles.gif) | WEAPON_THERMAL_GOGGLES | 45 | 11 | 369 | - | - | Visual effects show for all players (fix available) | +| ![](https://assets.open.mp/assets/images/weaponIcons/nightVisGoggles.png)
Night Vision | ![](https://assets.open.mp/assets/images/deathIcons/death-nightVisGoggles.gif) | WEAPON_NIGHT_VISION_GOGGLES | 44 | 11 | 368 | - | - | Visual effects show for all players (fixed in open.mp) | +| ![](https://assets.open.mp/assets/images/weaponIcons/thermalGoggles.png)
Thermal Goggles | ![](https://assets.open.mp/assets/images/deathIcons/death-thermalGoggles.gif) | WEAPON_THERMAL_GOGGLES | 45 | 11 | 369 | - | - | Visual effects show for all players (fixed in open.mp) | | ![](https://assets.open.mp/assets/images/weaponIcons/parachute.png)
Parachute | ![](https://assets.open.mp/assets/images/deathIcons/death-parachute.gif) | WEAPON_PARACHUTE | 46 | 11 | 371 | - | - | Players will die if teleported while diving with a parachute (can be fixed using [ResetPlayerWeapons](../functions/ResetPlayerWeapons)). Parachutes are given when bailing out of aircraft (omit from anti-cheat checks) | | ![](https://assets.open.mp/assets/images/weaponIcons/cellphone.png)
Cellphone | - | - | - | - | - | - | - | Cut from the game. | | ![](https://assets.open.mp/assets/images/weaponIcons/jetpack.png)
Jetpack | - | - | - | - | 370 | - | - | Doesn't work as a weapon. See [SetPlayerSpecialAction](../functions/SetPlayerSpecialAction). | diff --git a/frontend/docs/tutorials/PickupGuide.md b/frontend/docs/tutorials/PickupGuide.md index 27bceb0a8bb0..6bf384f0437f 100644 --- a/frontend/docs/tutorials/PickupGuide.md +++ b/frontend/docs/tutorials/PickupGuide.md @@ -23,7 +23,7 @@ There are two ways to create pickups. [CreatePickup](../scripting/functions/Crea | Name | Description | | ------------ | --------------------------------------------------------------------------------------------------------- | -| model | The model you'd like to use for the pickup. | +| model | The [model](../scripting/resources/pickupids) 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. | diff --git a/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md b/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md index 936345b9cb47..aca6759dd368 100644 --- a/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md +++ b/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md @@ -43,8 +43,8 @@ public OnVehiclePaintjob(playerid, vehicleid, paintjobid) :::note -هذا الكالب باك لا يتم إستدعائه من قبل (ChangeVehiclePaintjob). -يجب عليك إستعمال OnVehicleChangePaintJob من vSync لمعرفة إن قام اللاعب **بدفع ثمن** تغيير الطلاء +- هذا الكالب باك لا يتم إستدعائه من قبل (ChangeVehiclePaintjob). +- يجب عليك إستعمال OnVehicleChangePaintJob من [vSync](https://github.com/Vasily-X/vSync) لمعرفة إن قام اللاعب **بدفع ثمن** تغيير الطلاء ::: diff --git a/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md b/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md index 680c49ace9dc..1663453a6cc9 100644 --- a/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md +++ b/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md @@ -42,8 +42,8 @@ public OnVehicleRespray(playerid, vehicleid, color1, color2) :::note -هذا الكالب باك لا يتم إستدعائه من قبل (ChangeVehicleColor) بشكل مضلل. -هذا الكالباك لا يتم إستدعائه من قبل (إدفع و رش¹) +- هذا الكالب باك لا يتم إستدعائه من قبل (ChangeVehicleColor). +- بشكل مضلل، هذا الكالباك لا يتم إستدعائه من قبل (إدفع و رش¹) الإصلاح هنا: https://pastebin.com/G81da7N1 diff --git a/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md b/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md index 4ca0d5a2efd8..e33b80fd23c7 100644 --- a/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md +++ b/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md @@ -17,7 +17,7 @@ tags: ["vehicle"] ## الوصف -This callback is called when a vehicle respawns. +This callback is called when a vehicle **re**spawns. | Name | Description | | --------- | ----------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md index 918ba6095c51..aee7e65ff07b 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md @@ -6,7 +6,7 @@ description: sa-mp konfiguracioni fajl klijenta. ## Deskripcija -`sa-mp.cfg` je konfiguracijski fajl klijenta koji vam omogućava da promijenite postavke vezane za SA-MP. Ova datoteka se nalazi u vašoj fascikli 'Moji dokumenti\\GTA San Andreas User Files\\SAMP', pod vašim Windows korisničkim nalogom. Ovaj fajl se može uređivati pomoću uređivača teksta kao što je notepad. +sa-mp.cfg je konfiguracijski fajl klijenta koji vam omogućava da promijenite postavke vezane za SA-MP. Ova datoteka se nalazi u vašoj fascikli `Moji dokumenti\GTA San Andreas User Files\SAMP`, pod vašim Windows korisničkim nalogom. Ovaj fajl se može uređivati pomoću uređivača teksta kao što je notepad. ## Opcije diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md index fe54bd4da043..8f163841590f 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md @@ -7,7 +7,7 @@ tags: [] ## Deskripcija -Ovaj callback se poziva kada god NPC vidi ClientMessage (poruku poslanu od game-klijenta). Ovo će biti svaki put kada `SendClientMessageToAll` funkcija bude pozvana i svaki put kada funkcija `SendClientMessage` bude slala prema NPC-u. Ovaj callback se neće pozvati kada neko kaže nešto. Za verziju ovoga sa tekstom igrača pogledaj funkciju NPC:OnPlayerText. +Ovaj callback se poziva kada god NPC vidi ClientMessage (poruku poslanu od game-klijenta). Ovo će biti svaki put kada [SendClientMessageToAll](../functions/SendClientMessageToAll) funkcija bude pozvana i svaki put kada funkcija [SendClientMessage](../functions/SendClientMessage) bude slala prema NPC-u. Ovaj callback se neće pozvati kada neko kaže nešto. Za verziju ovoga sa tekstom igrača pogledaj funkciju NPC:OnPlayerText. | Ime | Deskripcija | | ------ | -------------------------- | 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 489f0a57f699..a028999bbcec 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 @@ -7,12 +7,12 @@ tags: [] ## Deskripcija -Ovaj callback se poziva kada igrač odgovori na dijalog koji je pozvan ShowPlayerDialog funkcijom bilo klikom dugmeta, klikom ENTER7ESC tipke ili duplim klikom na list item (ukoliko koristite list style dijalog). +Ovaj callback se poziva kada igrač odgovori na dijalog koji je pozvan [ShowPlayerDialog](../functions/ShowPlayerDialog) funkcijom bilo klikom dugmeta, klikom ENTER7ESC tipke ili duplim klikom na list item (ukoliko koristite list style dijalog). | Ime | Deskripcija | | ----------- | -------------------------------------------------------------------------------------------------------------------------------------- | | playerid | ID igrača koji je odgovorio na dijalog. | -| dialogid | ID dijaloga na koji je igrač odgovorio, dodijeljenog pozivanjem ShowPlayerDialog funkcije. | +| dialogid | ID dijaloga na koji je igrač odgovorio, dodijeljenog pozivanjem [ShowPlayerDialog](../functions/ShowPlayerDialog) funkcije. | | response | **1** za lijevo i **0** za desno dugme (ako je samo jedno dugme prikazano, uvijek 1). | | listitem | ID list item-a koji je selektovan od strane igrača (počinje od 0) (samo ukoliko koristite list style dijalog, u suprotnom će biti -1). | | inputtext[] | Tekst upisan u input box od strane igrača text selektovanog list item-a. | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md index 97608127e50b..175f5365fa79 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md @@ -7,7 +7,7 @@ tags: [] ## Deskripcija -Ovaj callback se poziva kada se gamemode završava, bilo to preko 'gmx', kada god se server ugasi, ili pod GameModeExit. +Ovaj callback se poziva kada se gamemode završava, bilo to preko 'gmx', kada god se server ugasi, ili pod [GameModeExit](../functions/GameModeExit). ## Primjeri @@ -24,7 +24,7 @@ public OnGameModeExit() :::tip - Ova funkcija također može biti korištena unutar filterskripte da detektuje ukoliko se gamemode promijeni koristeći RCON komande kao npr. changemode ili gmx, jer promjena gamemode-a ne pokreće ponovno filterskriptu. -- Kada se koristi OnGameModeExit u vezi sa 'rcon gmx' komandom u konzoli imajte na umu da može doći do potencijalnih bagova u klijentu, kao primjer ovoga je pretjerano pozivanje `RemoveBuildingForPlayer` tokom `OnGameModeInit` što može rezultirati da klijent crashuje. +- Kada se koristi OnGameModeExit u vezi sa 'rcon gmx' komandom u konzoli imajte na umu da može doći do potencijalnih bagova u klijentu, kao primjer ovoga je pretjerano pozivanje [RemoveBuildingForPlayer](../functions/RemoveBuildingForPlayer) tokom [OnGameModeInit](OnGameModeInit) što može rezultirati da klijent crashuje. - Ovaj callback se NEĆE pozvati ukoliko server crashuje ili ako ubijete proces drugim sredstvima kao npr Linux kill komandom. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md index 8800e8acaff9..b578deb43367 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md @@ -7,7 +7,7 @@ tags: [] ## Deskripcija -Ovaj callback se poziva kada IP adresa pokuša da se konektuje na server. Da blokirate nadolazeće konekcije, koristite BlockIpAddress. +Ovaj callback se poziva kada IP adresa pokuša da se konektuje na server. Da blokirate nadolazeće konekcije, koristite [BlockIpAddress](../functions/BlockIpAddress). | Name | Description | | ------------ | ---------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md index e17e11c0efb0..037c00df1588 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md @@ -7,7 +7,7 @@ tags: [] ## Deskripcija -Ovaj callback se poziva kada je objekt pomjeren nakon MoveObject (kada se prestane kretati). +Ovaj callback se poziva kada je objekt pomjeren nakon [MoveObject](../functions/MoveObject) (kada se prestane kretati). | Ime | Deskripcija | | -------- | --------------------------- | @@ -31,7 +31,7 @@ public OnObjectMoved(objectid) :::note -SetObjectPos ne radi kada ga koristite u ovom callback-u. Kako biste popravili to, ponovo kreirajte objekat. +[SetObjectPos](../functions/SetObjectPos) ne radi kada ga koristite u ovom callback-u. Kako biste popravili to, ponovo kreirajte objekat. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md index 881fc7bc2b94..0dd829ac7e84 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md @@ -38,7 +38,8 @@ public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) :::note -Kako samo ime callback-a kaže, poziva se samo kada igrač klikne da označi metu(waypoint) a ne kada pritisne tipku. Return-ovana vrijednost Z če biti 0 (netačno) ako je mjesto gdje je igrač kliknuo mnogo daleko od igrača; Koristi MapAndreas ili ColAndreas plugin kako bi dobio precizniju Z kordinatu. +- Kako samo ime callback-a kaže, poziva se samo kada igrač klikne da označi metu(waypoint) a ne kada pritisne tipku. +- Return-ovana vrijednost Z če biti 0 (netačno) ako je mjesto gdje je igrač kliknuo mnogo daleko od igrača; Koristi [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) ili [ColAndreas](https://github.com/Pottus/ColAndreas) plugin kako bi dobio precizniju Z kordinatu. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayer.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayer.md index 742373a3971e..80e57e460ef8 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayer.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayer.md @@ -13,7 +13,7 @@ Poziva se kada igrač dva puta klikne na igrača na scoreboard-u (TAB). | --------------- | ---------------------------------------------------- | | playerid | ID igrača koji je kliknuo na igrača na scoreboard-u. | | clickedplayerid | ID igrača koji je kliknut. | -| source | Izvor igračevog klika. | +| source | [Izvor](../resources/clicksources) igračevog klika. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md index 587a0fd1b19f..4d1135e37bf8 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md @@ -7,7 +7,7 @@ tags: ["player", "textdraw", "playertextdraw"] ## Deskripcija -Ovaj callback je pozvan kada igrač klikne na player-textdraw. Nije pozvan kada igrač napusti select mode (ESC) - međutim, OnPlayerClickTextDraw jeste. +Ovaj callback je pozvan kada igrač klikne na player-textdraw. Nije pozvan kada igrač napusti select mode (ESC) - međutim, [OnPlayerClickTextDraw](OnPlayerClickTextDraw) jeste. | Ime | Deskripcija | | ------------ | ---------------------------------------------- | @@ -69,7 +69,7 @@ public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) :::warning -Kada igrač pritisne ESC da prekine selektovanje textdraw-a, OnPlayerClickTextDraw biva pozvan sa textdraw IDem od 'INVALID_TEXT_DRAW'. OnPlayerClickPlayerTextDraw neće biti pozvan. +Kada igrač pritisne ESC da prekine selektovanje textdraw-a, [OnPlayerClickTextDraw](OnPlayerClickTextDraw) biva pozvan sa textdraw IDem od 'INVALID_TEXT_DRAW'. OnPlayerClickPlayerTextDraw neće biti pozvan. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md index bec341f0539a..c2746542e9b0 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md @@ -64,7 +64,8 @@ public OnPlayerClickTextDraw(playerid, Text:clickedid) :::warning -Klikljivo područje je definirano preko TextDrawTextSize. Parametri x i y prosljeđeni toj funkciji ne smiju biti nula ili negativni. Ne koristi CancelSelectTextDraw bezuslovno unutar ovog callback-a. To rezultira beskonačnom petljom. +- Klikljivo područje je definirano preko [TextDrawTextSize](../functions/TextDrawTextSize). Parametri x i y prosljeđeni toj funkciji ne smiju biti nula ili negativni. +- Ne koristi [CancelSelectTextDraw](../functions/CancelSelectTextDraw) bezuslovno unutar ovog callback-a. To rezultira beskonačnom petljom. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md index 0e1591cfd77d..6a19d0e85050 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md @@ -51,7 +51,7 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) - Razlog će return-ovati 37 (flame thrower/bacač plamena) ako je igrač umro od bilo kojeg izvora vatre (npr. molotov, 18). - Razlog će return-ovati 51 ako je igrač umro od bilo koje vrste eksplozije (npr. RPG, granata). -- Ne moraš provjeravati da li je `killerid` validan prije nego što ga koristite u `SendDeathMessage`. INVALID_PLAYER_ID je validan killerid ID parametar u toj funkciji. +- Ne moraš provjeravati da li je `killerid` validan prije nego što ga koristite u [SendDeathMessage](../functions/SendDeathMessage). INVALID_PLAYER_ID je validan killerid ID parametar u toj funkciji. - `playerid` je jedini koji može pozvati ovaj callback. (dobro za znati za sprječavanje lažne smrti 'anti fake death'). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditAttachedObject.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditAttachedObject.md index 6cc8e3ed910c..468692449dd5 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditAttachedObject.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditAttachedObject.md @@ -85,7 +85,7 @@ public OnPlayerEditAttachedObject(playerid, EDIT_RESPONSE:response, index, model :::warning -Izdanja treba odbaciti ako je odgovor bio '0' (otkazan). To se mora učiniti spremanjem ofseta itd. U niz PRIJE korištenja EditAttachedObject. +Izdanja treba odbaciti ako je odgovor bio '0' (otkazan). To se mora učiniti spremanjem ofseta itd. U niz PRIJE korištenja [EditAttachedObject](../functions/EditAttachedObject). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md index 16fd23a66f4f..a8631109caa0 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md @@ -7,7 +7,7 @@ tags: ["player"] ## Deskripcija -Ovaj callback je pozvan kada igrač dovrši uređivanje objekta (EditObject/EditPlayerObject). +Ovaj callback je pozvan kada igrač dovrši uređivanje objekta ([EditObject](../functions/EditObject)/[EditPlayerObject](../functions/EditPlayerObject)). | Ime | Deskripcija | | ---------------------- | ------------------------------------------------------- | 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 c37ed35f0351..6f33e4a971bc 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 @@ -37,7 +37,8 @@ public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) :::note -Ovaj callback je pozvana kada igrač **KRENE** da uđe u vozilo, ne kada su UŠLI u njega. Pogledaj `OnPlayerStateChange`. Ovaj callback se poziva i kada je igraču odbijen mogućnost ulaska u vozilo (npr. Vozilo je zaključano ili puno). +- Ovaj callback je pozvana kada igrač **KRENE** da uđe u vozilo, ne kada su UŠLI u njega. Pogledaj [OnPlayerStateChange](OnPlayerStateChange). +- Ovaj callback se poziva i kada je igraču odbijen mogućnost ulaska u vozilo (npr. Vozilo je zaključano ili puno). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md index c4205b2879f8..177736823fac 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md @@ -34,7 +34,8 @@ public OnPlayerExitVehicle(playerid, vehicleid) :::warning -Nije pozvan kada igrač spadne sa bicikla ili ako je uklonjen iz vozila iz drugih namjera ili načina kao npr. korištenjem funkcije `SetPlayerPos`. Moraš koristiti `OnPlayerStateChange` i provjeriti da li je igračevo posljednje stanje PLAYER_STATE_DRIVER ili PLAYER_STATE_PASSENGER i da li je njihovo novo stanje PLAYER_STATE_ONFOOT. +- Nije pozvan kada igrač spadne sa bicikla ili ako je uklonjen iz vozila iz drugih namjera ili načina kao npr. korištenjem funkcije [SetPlayerPos](../functions/SetPlayerPos). +- Moraš koristiti [OnPlayerStateChange](OnPlayerStateChange) i provjeriti da li je igračevo posljednje stanje PLAYER_STATE_DRIVER ili PLAYER_STATE_PASSENGER i da li je njihovo novo stanje PLAYER_STATE_ONFOOT. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md index f123191a471c..5d6cfc74b8b8 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md @@ -15,7 +15,7 @@ Ovaj callback je pozvan kada igrač zadaje povredu drugom igraču. | damagedid | ID igrača koji prima povredu. | | Float:amount | Količina healtha i armora kojeg je izgubio (kombinirano). | | WEAPON:weaponid | Razlog zbog kojeg je zadobio povredu. | -| bodypart | Dio tijela koji je udaren. | +| bodypart | [Dio tijela](../resources/bodyparts) koji je udaren. | ## Returns @@ -56,7 +56,7 @@ public OnPlayerGiveDamage(playerid, damagedid, Float:amount, WEAPON:weaponid, bo :::tip -Ako želite spriječiti da određeni igrači povrjeđuju, koristite `SetPlayerTeam`. +Ako želite spriječiti da određeni igrači povrjeđuju, koristite [SetPlayerTeam](../functions/SetPlayerTeam). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md index 706e4a2bd99b..3f23999fd67e 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md @@ -21,7 +21,7 @@ Ovaj callback je pozvan kada igrač nanese povredu aktoru. | damaged_actorid | ID aktora koji je primio povredu. | | Float:amount | Količina healtha i armora kojeg je izgubi damaged_actorid. | | WEAPON:weaponid | Razlog zbog kojeg je zadobio povredu. | -| bodypart | Dio tijela koji je udaren. | +| bodypart | [Dio tijela](../resources/bodyparts) koji je udaren. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerInteriorChange.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerInteriorChange.md index 77a9c2b02730..fa08f7029833 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerInteriorChange.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerInteriorChange.md @@ -7,7 +7,7 @@ tags: ["player"] ## Deskripcija -Pozvan kada igrač promijeni enterijer. Može biti izazvano od strane `SetPlayerInterior` funkcije ili kada igrač uđe/izađe iz izgrade(u zgradu). +Pozvan kada igrač promijeni enterijer. Može biti izazvano od strane [SetPlayerInterior](../functions/SetPlayerInterior) funkcije ili kada igrač uđe/izađe iz izgrade(u zgradu). | Ime | DescripDeskripcijation | | ------------- | ------------------------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveCheckpoint.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveCheckpoint.md index 723f88870b96..667d2ddf04dd 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveCheckpoint.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveCheckpoint.md @@ -7,7 +7,7 @@ tags: ["player", "checkpoint"] ## Deskripcija -Ovaj callback je pozvan kada igrač napusti checkpoint koji mu je postavljen sa SetPlayerCheckpoint. Samo jedan checkpoint može biti postavljen odjednom. +Ovaj callback je pozvan kada igrač napusti checkpoint koji mu je postavljen sa [SetPlayerCheckpoint](../functions/SetPlayerCheckpoint). Samo jedan checkpoint može biti postavljen odjednom. | Ime | Deskripcija | | -------- | ------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerObjectMoved.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerObjectMoved.md index 1045b79176db..a305d4515d40 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerObjectMoved.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerObjectMoved.md @@ -7,7 +7,7 @@ tags: ["player"] ## Deskripcija -Ovaj callback je pozvana kada player object biva premješten nakon MovePlayerObject funkcije (kada se prestane kretati). +Ovaj callback je pozvana kada player object biva premješten nakon [MovePlayerObject](../functions/MovePlayerObject) funkcije (kada se prestane kretati). | Ime | Deskripcija | | -------- | -------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md index 8869c738e1d8..bcb65a2ef066 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md @@ -7,12 +7,12 @@ tags: ["player"] ## Deskripcija -Pozvano kada igrač pokupi pickup kreiran funkcijom CreatePickup. +Pozvano kada igrač pokupi pickup kreiran funkcijom [CreatePickup](../functions/CreatePickup). -| Ime | Deskripcija | -| -------- | ------------------------------------------------ | -| playerid | ID igrača koji je pokupio pickup. | -| pickupid | ID pickup-a, return-ovan od strane CreatePickup. | +| Ime | Deskripcija | +| -------- | ----------------------------------------------------------------------------- | +| playerid | ID igrača koji je pokupio pickup. | +| pickupid | ID pickup-a, return-ovan od strane [CreatePickup](../functions/CreatePickup). | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md index 6dc91f721d89..0229e9176556 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md @@ -9,10 +9,10 @@ tags: ["player"] Pozvano kada igrač promijeni klasu na odabiru klase (i kada se odabir klase prvi put pojavi). -| Ime | Deskripcija | -| -------- | -------------------------------------------------------------------- | -| playerid | ID igrača koji je promijenio klasu. | -| classid | ID trenutne klase koja se pregledava (return-uje je AddPlayerClass). | +| Ime | Deskripcija | +| -------- | --------------------------------------------------------------------------------------------------- | +| playerid | ID igrača koji je promijenio klasu. | +| classid | ID trenutne klase koja se pregledava (return-uje je [AddPlayerClass](../functions/AddPlayerClass)). | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md index 92ce1a2839be..a96946feef7e 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md @@ -41,7 +41,7 @@ Ovaj callback pozvat će i NPC. :::tip -Kako biste spriječili da se igrači spawnaju (stvore) sa određenim klasama, zadnja viđena klasa mora biti sačuvana u varijabli u OnPlayerRequestClass. +Kako biste spriječili da se igrači spawnaju (stvore) sa određenim klasama, zadnja viđena klasa mora biti sačuvana u varijabli u [OnPlayerRequestClass](OnPlayerRequestClass). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectObject.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectObject.md index c45bcb3d2230..d36d1270ea40 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectObject.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectObject.md @@ -7,7 +7,7 @@ tags: ["player"] ## Deskripcija -Ovaj callback je pozvan kada igrač selektuje objekat nakon što je SelectObject funkcija iskorištena. +Ovaj callback je pozvan kada igrač selektuje objekat nakon što je [SelectObject](../functions/SelectObject) funkcija iskorištena. | Ime | Deskripcija | | -------- | ----------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectedMenuRow.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectedMenuRow.md index 5532cd8545d0..7b8d0f29e7c2 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectedMenuRow.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectedMenuRow.md @@ -7,7 +7,7 @@ tags: ["player", "menu"] ## Deskripcija -Ovaj callback je pozvan kada igrač selektuje određenu stavku (item) iz menija (ShowMenuForPlayer). +Ovaj callback je pozvan kada igrač selektuje određenu stavku (item) iz menija ([ShowMenuForPlayer](../functions/ShowMenuForPlayer)). | Ime | Deskripcija | | -------- | ----------------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSpawn.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSpawn.md index f23de745e5b0..d7c89936d779 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSpawn.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSpawn.md @@ -7,7 +7,7 @@ tags: ["player"] ## Deskripcija -Ovaj callback je pozvan kada se igrač spawnuje (stvori). (npr. nakon korištenja SpawnPlayer funkcije) +Ovaj callback je pozvan kada se igrač spawnuje (stvori). (npr. nakon korištenja [SpawnPlayer](../functions/SpawnPlayer) funkcije) | Ime | Deskripcija | | -------- | ------------------------------------ | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md index ecb8fa239bf9..a137a353ae86 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md @@ -7,7 +7,7 @@ tags: ["player"] ## Deskripcija -Ovaj callback je pozvan kada igrač promijeni stanje. Naprimjer, kada igrač promijeni stanje votača vozila u stanje da bude na nogama (on-foot) (napustio vozilo). +Ovaj callback je pozvan kada igrač promijeni [stanje](../resources/playerstates). Naprimjer, kada igrač promijeni stanje votača vozila u stanje da bude na nogama (on-foot) (napustio vozilo). | Ime | Deskripcija | | -------- | ------------------------------------ | @@ -15,8 +15,6 @@ Ovaj callback je pozvan kada igrač promijeni stanje. Naprimjer, kada igrač pro | newstate | Igračevo novo stanje. | | oldstate | Igračevo prethodno stanje. | -Pogledajte [Igračeva stanja/Player States](../resources/playerstates) za listu svih dostupnih stanja igrača. - ## Returns Uvijek je pozvan prvo u filterskripti. diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md index 2cb0e49f3fec..9c74d402829f 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md @@ -15,7 +15,7 @@ Ovaj callback je pozvan kada igrač prvimi povredu (damage). | issuerid | ID igrača koji je uzrokovao povredu. INVALID_PLAYER_ID ako je sam sebe povrijedio. | | Float:amount | Količina povrede (damage-a) koje je igrač primio (health i armor kombinirano). | | WEAPON:weaponid | ID oružja/razlog zbog kojeg je primio povredu (damage). | -| bodypart | Dio tijela u koji je igrač pogođen. | +| bodypart | [Dio tijela](../resources/bodyparts) u koji je igrač pogođen. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md index b5971ed2854a..050eee94ae21 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md @@ -43,10 +43,10 @@ public OnPlayerWeaponShot(playerid, WEAPON:weaponid, BULLET_HIT_TYPE:hittype, hi :::note -Ovaj callback je pozvan samo kada je is only called when kompenzacija zakašnjenja **omogućena**. Ako je **hittype**: - -- `BULLET_HIT_TYPE_NONE`: **fX**, **fY** i **fZ** parametri su normalne kordinate, dati će 0.0 za kordinatu ako ništa nije pogođeno (npr. daleki objekat kojeg metak ne može dohvatiti); -- Ostali: **fX**, **fY** i **fZ** su pomaci u odnosu na **hitid**. +- Ovaj callback je pozvan samo kada je is only called when kompenzacija zakašnjenja **omogućena**. +- Ako je **hittype**: + - `BULLET_HIT_TYPE_NONE`: **fX**, **fY** i **fZ** parametri su normalne kordinate, dati će 0.0 za kordinatu ako ništa nije pogođeno (npr. daleki objekat kojeg metak ne može dohvatiti); + - Ostali: **fX**, **fY** i **fZ** su pomaci u odnosu na **hitid**. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md index 3bc612b060ff..7689d65e61c2 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md @@ -47,7 +47,7 @@ public OnRconCommand(cmd[]) - "/rcon " nije uključen/svrstan u "cmd" kada igrač napiše komandu. - Ako koristite "print" funkciju ovdje, poslat će poruku igraču koji je upisao naredbu u igri, kao i log. - Ovaj callback se ne poziva kada igrač nije prijavljen kao RCON administrator. -- Kada igrač nije prijavljen kao RCON admin i koristi `/rcon login`, ovaj povratni poziv neće biti pozvan i umjesto toga će se pozvati OnRconLoginAttempt. Međutim, kada je igrač prijavljen kao RCON administrator, upotreba ove komande pozvat će ovaj callback. +- Kada igrač nije prijavljen kao RCON admin i koristi `/rcon login`, ovaj povratni poziv neće biti pozvan i umjesto toga će se pozvati [OnRconLoginAttempt](OnRconLoginAttempt). Međutim, kada je igrač prijavljen kao RCON administrator, upotreba ove komande pozvat će ovaj callback. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md index 4598cf2b82de..d0e42f3d1987 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md @@ -47,7 +47,7 @@ public OnRconLoginAttempt(ip[], password[], success) :::note - Ovaj callback je pozvan samo kada se `/rcon login` iskoristi unutar igra. -- Ovaj callback je pozvan samo kada igral nije još ulogovan (nije još pristupio) u RCON. Kada se igrač prijavi/uloguje u RCON, OnRconCommand se poziva umjesto toga. +- Ovaj callback je pozvan samo kada igral nije još ulogovan (nije još pristupio) u RCON. Kada se igrač prijavi/uloguje u RCON, [OnRconCommand](OnRconCommand) se poziva umjesto toga. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md index 105faefd86f8..346f50104eee 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md @@ -45,7 +45,8 @@ public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_ :::warning -Ovaj callback poziva se vrlo često u sekundi po nezauzetom vozilu. Trebali biste se suzdržati od provođenja intenzivnih proračuna ili intenzivnih operacija pisanja / čitanja datoteka u ovom callbacku. GetVehiclePos return-ovati će stare koordinate vozila prije ovog ažuriranja. +- Ovaj callback poziva se vrlo često u sekundi po nezauzetom vozilu. Trebali biste se suzdržati od provođenja intenzivnih proračuna ili intenzivnih operacija pisanja / čitanja datoteka u ovom callbacku. +- [GetVehiclePos](../functions/GetVehiclePos) return-ovati će stare koordinate vozila prije ovog ažuriranja. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md index 6150ecb7be19..e7033b1fa48d 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md @@ -39,7 +39,7 @@ public OnVehicleMod(playerid, vehicleid, componentid) :::note -Ovaj callback neće biti pozvan od strane `AddVehicleComponent`. +Ovaj callback neće biti pozvan od strane [AddVehicleComponent](../functions/AddVehicleComponent). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md index 0fbfce5c0d3b..99999ce2955c 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md @@ -35,7 +35,8 @@ public OnVehiclePaintjob(playerid, vehicleid, paintjobid) :::note -Ovaj callback nije pozvan od strane `ChangeVehiclePaintjob`. Možete koristiti `OnVehicleChangePaintjob` iz vSync-a u slučaju da znate kada igrač **kupi** paintjob. +- Ovaj callback nije pozvan od strane [ChangeVehiclePaintjob](../functions/ChangeVehiclePaintjob). +- Možete koristiti OnVehicleChangePaintjob iz [vSync](https://github.com/Vasily-X/vSync)-a u slučaju da znate kada igrač **kupi** paintjob. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md index 046edd168e75..22cbe65739e2 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md @@ -36,7 +36,8 @@ public OnVehicleRespray(playerid, vehicleid, color1, color2) :::note -Ovaj callback nije pozvan od strane `ChangeVehicleColor`. Zavaravajući, ovaj callback nije pozvan za pay 'n' spray (samo modshopovi). +- Ovaj callback nije pozvan od strane [ChangeVehicleColor](../functions/ChangeVehicleColor). +- Zavaravajući, ovaj callback nije pozvan za pay 'n' spray (samo modshopovi). Rješenje ovdje: https://pastebin.com/G81da7N1 diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md index 7fed8185acf8..94a124010b86 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md @@ -13,7 +13,7 @@ Ovaj callback je pozvan **samo** kada se vozilo **re**spawnuje! CreateVehicle i ## Deskripcija -Ovaj callback je pozvan kada se vozilo respawnuje/ponovo stvori. +Ovaj callback je pozvan kada se vozilo **re**spawnuje/ponovo stvori. | Ime | Deskripcija | | --------- | -------------------------------------- | 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 4b04534470ec..79ee5a07a534 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 @@ -18,7 +18,7 @@ Dodaje novog prilagođenog karaktera za preuzimanje. Fajlovi modela će biti poh | 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. | +| newid | Novi skin model ID između 20001 i 30000 (10000 slotova) da bi se kasnije koristio sa [SetPlayerSkin](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). | @@ -49,7 +49,7 @@ public OnGameModeInit() :::warning -Trenutno ne postoje nikakva ograničenja o pozivanju ove funkcije, ali budite oprezni jer ako ih ne koristite unutar OnFilterScriptInit/OnGameModeInit, riskirate da neki igrači, koji su već na server, možda ne preuzmu modele. +Trenutno ne postoje nikakva ograničenja o pozivanju ove funkcije, ali budite oprezni jer ako ih ne koristite unutar [OnFilterScriptInit](../callbacks/OnFilterScriptInit)/[OnGameModeInit](../callbacks/OnGameModeInit), riskirate da neki igrači, koji su već na server, možda ne preuzmu modele. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md index 3aa6dadc0903..5db6a593f046 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md @@ -43,7 +43,10 @@ Crashuje kada se proslijedi nevažeći ID menija. :::note -Možete imati samo 12 stavki/itema po meniju (13i ide na desnu stranu zaglavlja od imena rubrike (obojeno), 14i i više se neće uopće pojavljivati). možete koristiti samo 2 rubrike (0 i 1). Možete dodati samo 8 kodova boja po jednoj stavci/itemu (`~r~`, `~g~` itd.). Maksimalna dužina teksta stavke/itema je 31 simbol. +- Možete imati samo 12 stavki/itema po meniju (13i ide na desnu stranu zaglavlja od imena rubrike (obojeno), 14i i više se neće uopće pojavljivati). +- Možete koristiti samo 2 rubrike (0 i 1). +- Možete dodati samo 8 kodova boja po jednoj stavci/itemu (`~r~`, `~g~` itd.). +- Maksimalna dužina teksta stavke/itema je 31 simbol. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClass.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClass.md index ee931c2fc952..8d6ccb404d92 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClass.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClass.md @@ -9,19 +9,19 @@ tags: ["player"] Dodaje klasu na listu selekcije klasa. Klase se koriste da se igrači spawnaju sa skinom njihovog odabira. -| Ime | Deskripcija | -| ------------- | ---------------------------------------------------------- | -| modelid | Skin sa kojim će se igrač spawnovati/stvoriti. | -| Float:spawn_x | X kordinata spawnpointa ove klase. | -| Float:spawn_y | Y kordinata spawnpointa ove klase. | -| Float:spawn_z | Z kordinata spawnpointa ove klase. | -| Float:z_angle | Smjer u koji će igrač gledati nakon spawnovanja/stvaranja. | -| weapon1 | Prvo spawn-oružje za igrača. | -| weapon1_ammo | Količina municije za primarno spawn oružje. | -| weapon2 | Drugo spawn-oružje za igrača. | -| weapon2_ammo | Količina municije za sekundarno spawn oružje. | -| weapon3 | Treće spawn-oružje za igrača. | -| weapon3_ammo | Količina municije za treće spawn oružje. | +| Ime | Deskripcija | +| ----------------------------- | ---------------------------------------------------------- | +| [modelid](../resources/skins) | Skin sa kojim će se igrač spawnovati/stvoriti. | +| Float:spawn_x | X kordinata spawnpointa ove klase. | +| Float:spawn_y | Y kordinata spawnpointa ove klase. | +| Float:spawn_z | Z kordinata spawnpointa ove klase. | +| Float:z_angle | Smjer u koji će igrač gledati nakon spawnovanja/stvaranja. | +| weapon1 | Prvo spawn-oružje za igrača. | +| weapon1_ammo | Količina municije za primarno spawn oružje. | +| weapon2 | Drugo spawn-oružje za igrača. | +| weapon2_ammo | Količina municije za sekundarno spawn oružje. | +| weapon3 | Treće spawn-oružje za igrača. | +| weapon3_ammo | Količina municije za treće spawn oružje. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md index d0751933f0af..dae277d79508 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md @@ -7,22 +7,22 @@ tags: ["player"] ## Deskripcija -Ova funkcija je u potpunosti ista kao i AddPlayerClass funkcija, sa akcentom na 'Tim' parametar. - -| Ime | Deskripcija | -| ------------- | ---------------------------------------------------------- | -| teamid | Tim u koji hoćete da se igrač spawnuje/stvori. | -| modelid | Skin sa kojim će se igrač spawnovati/stvoriti. | -| Float:spawn_x | X kordinata spawnpointa ove klase. | -| Float:spawn_y | Y kordinata spawnpointa ove klase. | -| Float:spawn_z | Z kordinata spawnpointa ove klase. | -| Float:z_angle | Smjer u koji će igrač gledati nakon spawnovanja/stvaranja. | -| weapon1 | Prvo spawn-oružje za igrača. | -| weapon1_ammo | Količina municije za primarno spawn oružje. | -| weapon2 | Drugo spawn-oružje za igrača. | -| weapon2_ammo | Količina municije za sekundarno spawn oružje. | -| weapon3 | Treće spawn-oružje za igrača. | -| weapon3_ammo | Količina municije za treće spawn oružje. | +Ova funkcija je u potpunosti ista kao i [AddPlayerClass](AddPlayerClass) funkcija, sa akcentom na 'Tim' parametar. + +| Ime | Deskripcija | +| ----------------------------- | ---------------------------------------------------------- | +| teamid | Tim u koji hoćete da se igrač spawnuje/stvori. | +| [modelid](../resources/skins) | Skin sa kojim će se igrač spawnovati/stvoriti. | +| Float:spawn_x | X kordinata spawnpointa ove klase. | +| Float:spawn_y | Y kordinata spawnpointa ove klase. | +| Float:spawn_z | Z kordinata spawnpointa ove klase. | +| Float:z_angle | Smjer u koji će igrač gledati nakon spawnovanja/stvaranja. | +| weapon1 | Prvo spawn-oružje za igrača. | +| weapon1_ammo | Količina municije za primarno spawn oružje. | +| weapon2 | Drugo spawn-oružje za igrača. | +| weapon2_ammo | Količina municije za sekundarno spawn oružje. | +| weapon3 | Treće spawn-oružje za igrača. | +| weapon3_ammo | Količina municije za treće spawn oružje. | ## 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 81fa849e93b4..3daad39dc817 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 @@ -13,15 +13,15 @@ Ova funkcija je dodana u SA-MP 0.3.DL R1 i ne radi u nižim verzijama! ## Deskripcija -Dodaje novi prilagođen/custom prost model objekta 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. +Dodaje novi prilagođen/custom prost [model objekta](CreateObject) 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](https://en.wikipedia.org/wiki/Cyclic_redundancy_check)-formi imena fajla. -| Ime | Deskripcija | -| ------------ | ------------------------------------------------------------------------------------------------------------------------ | -| virtualworld | ID virtualnog svijeta za kojeg će model biti dostupan, koristi -1 za sve svjetove. | -| baseid | The base object model ID to use (original object to use when download is failed). | -| newid | Novi skin model ID između -1000 i -30000 (29000 slotova) da bi se kasnije koristio sa CreateObject i CreatePlayerObject. | -| 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). | +| Ime | Deskripcija | +| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| virtualworld | [ID virtualnog svijeta](SetPlayerVirtualWorld) za kojeg će model biti dostupan, koristi -1 za sve svjetove. | +| baseid | The base [object model ID](https://models.open.mp/?cat=objects) to use (original object to use when download is failed). | +| newid | Novi skin model ID između -1000 i -30000 (29000 slotova) da bi se kasnije koristio sa [CreateObject](CreateObject) i [CreatePlayerObject](CreatePlayerObject). | +| 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 @@ -43,13 +43,14 @@ public OnGameModeInit() :::note -**useartwork** mora biti omogućen (u server settings) da bi ovo radilo kada je `virtualworld` postavljen, modeli će se preuzimati kada igrač uđe u određeni svijet +- **useartwork** mora biti omogućen (u server settings) da bi ovo radilo. +- Kada je `virtualworld` postavljen, modeli će se preuzimati kada igrač uđe u određeni svijet ::: :::warning -Trenutno ne postoje nikakva ograničenja o pozivanju ove funkcije, ali budite oprezni jer ako ih ne koristite unutar OnFilterScriptInit/OnGameModeInit, riskirate da neki igrači, koji su već na server, možda ne preuzmu modele. +Trenutno ne postoje nikakva ograničenja o pozivanju ove funkcije, ali budite oprezni jer ako ih ne koristite unutar [OnFilterScriptInit](../callbacks/OnFilterScriptInit)/[OnGameModeInit](../callbacks/OnGameModeInit), riskirate da neki igrači, koji su već na server, možda ne preuzmu modele. ::: 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 0d596e2949d1..1ddcf4a36dbd 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 @@ -13,17 +13,17 @@ Ova funkcija je dodana u SA-MP 0.3.DL R1 i ne radi u nižim verzijama! ## Deskripcija -Dodaje novi prilagođen/custom prost model objekta 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 | -| ------------ | ------------------------------------------------------------------------------------------------------------------------ | -| virtualworld | ID virtualnog svijeta za kojeg će model biti dostupan, koristi -1 za sve svjetove. | -| baseid | The base object model ID to use (original object to use when download is failed). | -| newid | Novi skin model ID između -1000 i -30000 (29000 slotova) da bi se kasnije koristio sa CreateObject i CreatePlayerObject. | -| 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). | -| timeon | Vrijeme u igri (sat) kada će se ovaj objekat pojaviti. | -| timeoff | Vrijeme u igri (sat) kada će ovaj objekat nestati. | +Dodaje novi prilagođen/custom prost [model objekta](CreateObject) 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](https://en.wikipedia.org/wiki/Cyclic_redundancy_check)-formi imena fajla. + +| Ime | Deskripcija | +| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| virtualworld | [ID virtualnog svijeta](SetPlayerVirtualWorld) za kojeg će model biti dostupan, koristi -1 za sve svjetove. | +| baseid | The base [object model ID](https://models.open.mp/?cat=objects) to use (original object to use when download is failed). | +| newid | Novi skin model ID između -1000 i -30000 (29000 slotova) da bi se kasnije koristio sa [CreateObject](CreateObject) i [CreatePlayerObject](CreatePlayerObject). | +| 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). | +| timeon | Vrijeme u igri (sat) kada će se ovaj objekat pojaviti. | +| timeoff | Vrijeme u igri (sat) kada će ovaj objekat nestati. | ## Returns @@ -45,13 +45,14 @@ public OnGameModeInit() :::note -**useartwork** mora biti omogućen (u server settings) da bi ovo radilo kada je `virtualworld` postavljen, modeli će se preuzimati kada igrač uđe u određeni svijet +- **useartwork** mora biti omogućen (u server settings) da bi ovo radilo. +- Kada je `virtualworld` postavljen, modeli će se preuzimati kada igrač uđe u određeni svijet ::: :::warning -Trenutno ne postoje nikakva ograničenja o pozivanju ove funkcije, ali budite oprezni jer ako ih ne koristite unutar OnFilterScriptInit/OnGameModeInit, riskirate da neki igrači, koji su već na server, možda ne preuzmu modele. +Trenutno ne postoje nikakva ograničenja o pozivanju ove funkcije, ali budite oprezni jer ako ih ne koristite unutar [OnFilterScriptInit](../callbacks/OnFilterScriptInit)/[OnGameModeInit](../callbacks/OnGameModeInit), riskirate da neki igrači, koji su već na server, možda ne preuzmu modele. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md index 2bdf3ea1a441..134c86dbb64a 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md @@ -43,7 +43,7 @@ public OnGameModeInit() :::note -Funkcija ne returna ID pickupa kojeg možeš koristiti u, naprimjer, OnPlayerPickUpPickup. Koristi CreatePickup ako želite dodijeliti ID-ove. +Funkcija ne returna ID pickupa kojeg možeš koristiti u, naprimjer, [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup). Koristi [CreatePickup](CreatePickup) ako želite dodijeliti ID-ove. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md index ba4272b3b345..afbb932cecb8 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Deskripcija -Dodaje 'statično' vozilo (modeli su unaprijed učitani za igrač) u gamemode-u. Od `AddStaticVehicle` razlikuje se u tome što dozvoljava da se postavi proizvoljno respawn vrijeme za bozilo kada igrač napusti mjesto vozača. +Dodaje 'statično' vozilo (modeli su unaprijed učitani za igrač) u gamemode-u. Od [AddStaticVehicle](AddStaticVehicle) razlikuje se u tome što dozvoljava da se postavi proizvoljno respawn vrijeme za bozilo kada igrač napusti mjesto vozača. | Ime | Deskripcija | | ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md index 2d1096cd6293..d6b989a290de 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md @@ -9,13 +9,13 @@ tags: ["player", "3dtextlabel"] Prikvači 3D tekst label za igrača. -| Ime | Deskripcija | -| ------------- | -------------------------------------------------------------------------------------- | -| Text3D:textid | ID 3D tekst labela kojeg želite prikvačiti. Returnovan(uzvraćen) od Create3DTextLabel. | -| playerid | ID igrača za kojeg želite prikvačiti label. | -| OffsetX | X kordinata igrača. | -| OffsetY | Y kordinata igrača. | -| OffsetZ | Z kordinata igrača. | +| Ime | Deskripcija | +| ------------- | ----------------------------------------------------------------------------------------------------------- | +| Text3D:textid | ID 3D tekst labela kojeg želite prikvačiti. Returnovan(uzvraćen) od [Create3DTextLabel](Create3DTextLabel). | +| playerid | ID igrača za kojeg želite prikvačiti label. | +| OffsetX | X kordinata igrača. | +| OffsetY | Y kordinata igrača. | +| OffsetZ | Z kordinata igrača. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToPlayerObject.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToPlayerObject.md index 6c734ec9dd0f..e4b072b47ff0 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToPlayerObject.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToPlayerObject.md @@ -7,7 +7,7 @@ tags: ["player"] ## Deskripcija -Prikvači kameru igrača za player objekat. Igrač može pomicati svoju kameru dok je prikvačena za objekat. Može se koristiti s MovePlayerObject i AttachPlayerObjectToVehicle. +Prikvači kameru igrača za player objekat. Igrač može pomicati svoju kameru dok je prikvačena za objekat. Može se koristiti s [MovePlayerObject](MovePlayerObject) i [AttachPlayerObjectToVehicle](AttachPlayerObjectToVehicle). | Ime | Deskripcija | | -------------- | ------------------------------------------------------------ | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md index e48b9006fcaa..62feb16a2f34 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md @@ -40,7 +40,8 @@ AttachObjectToObject(gObjectId, gAttachToId, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1); :::note -Oba objekta treba stvoriti prije pokušaja da ih prikačite. Ne postoji verzija ove funkcije player-objekta (AttachPlayerObjectToObject), što znači da je streameri neće podržati. +- Oba objekta treba stvoriti prije pokušaja da ih prikačite. +- Ne postoji verzija ove funkcije player-objekta (AttachPlayerObjectToObject), što znači da je streameri neće podržati. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToVehicle.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToVehicle.md index 68378a7d34ce..1154ab17ac33 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToVehicle.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToVehicle.md @@ -7,18 +7,18 @@ tags: ["vehicle"] ## Deskripcija -Prikvači objekat za vozilo. - -| Ime | Deskripcija | -| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | -| objectid | ID objekta kojeg želite prikvačiti za vozilo. Zapamtite da je ovo ID objekta, ne modela. Objekat prvo mora biti kreiran preko CreateObject. | -| vehicleid | ID vozila za koje želite prikvačiti objekat. | -| Float:OffsetX | Osa X pomaknuta od vozila do objekta za prikvačiti. | -| Float:OffsetY | Osa Y pomaknuta od vozila do objekta za prikvačiti. | -| Float:OffsetZ | Osa Z pomaknuta od vozila do objekta za prikvačiti. | -| Float:RotX | Pomak X rotacije za objekt. | -| Float:RotY | Pomak Y rotacije za objekt. | -| Float:RotZ | Pomak Z rotacije za objekt. | +Prikvači [objekat](CreateObject) za [vozilo](CreateVehicle). + +| Ime | Deskripcija | +| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | +| objectid | ID objekta kojeg želite prikvačiti za vozilo. Zapamtite da je ovo ID objekta, ne modela. Objekat prvo mora biti kreiran preko [CreateObject](CreateObject). | +| vehicleid | ID vozila za koje želite prikvačiti objekat. | +| Float:OffsetX | Osa X pomaknuta od vozila do objekta za prikvačiti. | +| Float:OffsetY | Osa Y pomaknuta od vozila do objekta za prikvačiti. | +| Float:OffsetZ | Osa Z pomaknuta od vozila do objekta za prikvačiti. | +| Float:RotX | Pomak X rotacije za objekt. | +| Float:RotY | Pomak Y rotacije za objekt. | +| Float:RotZ | Pomak Z rotacije za objekt. | ## Returns @@ -36,13 +36,13 @@ AttachObjectToVehicle(objectid, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0); :::note -Objekat prvobitno mora biti kreiran. +Objekat prvobitno mora biti [kreiran](CreateObject). ::: :::warning -Kada se vozilo uništi ili respawnuje, prikvačeni predmeti se neće uništiti s njim; ostat će stacionarni na mjestu na kojem je vozilo nestalo i biti ponovno će se prikvačiti na sljedeće vozilo kako bi zatražili ID vozila na koje su predmeti prikvačeni. +Kada se vozilo [uništi](DestroyVehicle) ili [respawnuje](../callbacks/OnVehicleSpawn), prikvačeni predmeti se neće uništiti s njim; ostat će stacionarni na mjestu na kojem je vozilo nestalo i biti ponovno će se prikvačiti na sljedeće vozilo kako bi zatražili ID vozila na koje su predmeti prikvačeni. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToPlayer.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToPlayer.md index 94626f3c7531..d40589204ce1 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToPlayer.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToPlayer.md @@ -7,7 +7,7 @@ tags: ["player"] ## Deskripcija -Isto kao i AttachObjectToPlayer ali za objekte koji su kreirani za igrača. +Isto kao i [AttachObjectToPlayer](AttachObjectToPlayer) ali za objekte koji su kreirani za igrača. | Ime | Deskripcija | | ------------- | ------------------------------------------------------------------- | 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 f48b1ada987c..b683d5f481ff 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 **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). +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](BanEx) se može koristiti za obrazloženje zabrane. IP zabrane mogu se dodati / ukloniti pomoću naredbi RCON `banip` i `unbanip` ([SendRconCommand](SendRconCommand)). | Name | Description | | -------- | ----------------------- | @@ -63,7 +63,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -Sve radnje poduzete izravno prije Ban (poput slanja poruke pomoću SendClientMessage) neće doći do igrača. Za razmak/odgodu zabrane mora se koristiti tajmer. +Sve radnje poduzete izravno prije Ban (poput slanja poruke pomoću [SendClientMessage](SendClientMessage)) neće doći do igrača. Za razmak/odgodu zabrane mora se koristiti tajmer. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/BanEx.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/BanEx.md index b86c21adc53a..f87d8ecf88d7 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/BanEx.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/BanEx.md @@ -67,7 +67,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -Sve radnje poduzete izravno prije BanEx (poput slanja poruke pomoću SendClientMessage) neće doći do igrača. Za razmak/odgodu zabrane mora se koristiti tajmer. +Sve radnje poduzete izravno prije BanEx (poput slanja poruke pomoću [SendClientMessage](SendClientMessage)) neće doći do igrača. Za razmak/odgodu zabrane mora se koristiti tajmer. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CancelSelectTextDraw.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CancelSelectTextDraw.md index e6605ec5b40a..d2ff2baebf9e 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CancelSelectTextDraw.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CancelSelectTextDraw.md @@ -36,7 +36,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -\*Ova funkcija poziva OnPlayerClickTextDraw sa INVALID_TEXT_DRAW (65535). Korištenje ove funkcije unutar OnPlayerClickTextDraw bez zahvatanja ovog slučaja izazvati će to da će klijenti ući u beskonačnu petlju. +Ova funkcija poziva [OnPlayerClickTextDraw](../callbacks/OnPlayerClickTextDraw) sa INVALID_TEXT_DRAW (65535). Korištenje ove funkcije unutar OnPlayerClickTextDraw bez zahvatanja ovog slučaja izazvati će to da će klijenti ući u beskonačnu petlju. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehiclePaintjob.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehiclePaintjob.md index 2c07e48c9b9d..d5db1b790dc1 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehiclePaintjob.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehiclePaintjob.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Deskripcija -Promjena paintjob-a vozila (za obične boje pogledajte ChangeVehicleColor). +Promjena paintjob-a vozila (za obične boje pogledajte [ChangeVehicleColor](ChangeVehicleColor)). | Name | Description | | ---------- | --------------------------------------------------------------------- | @@ -20,7 +20,11 @@ This function always returns **1** (success), even if the vehicle passed is not :::warning -Ukoliko je boja vozila crna, paintjob može da bude nevidljiv. Bolje je napraviti vozilo sa bijelom bojom prije postavljanja paintjob-a korištenjem ChangeVehicleColor(vehicleid,1,1); +Ukoliko je boja vozila crna, paintjob može da bude nevidljiv. Bolje je napraviti vozilo sa bijelom bojom prije postavljanja paintjob-a korištenjem: + +```c +ChangeVehicleColor(vehicleid, 1, 1); +``` ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ClearActorAnimations.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ClearActorAnimations.md index 7885469165cf..8ea7ee10bd2d 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ClearActorAnimations.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ClearActorAnimations.md @@ -15,9 +15,9 @@ Ova funkcija je dodana u SA-MP 0.3.7 i ne radi u nižim verzijama! Uklanja bilo koju animaciju koja je postavljena aktoru. -| Ime | Deskripcija | -| ------- | --------------------------------------------------------------- | -| actorid | ID aktora (vraćeno od CreateActor) kojem se uklanjaju animacije | +| Ime | Deskripcija | +| ------- | ------------------------------------------------------------------------------ | +| actorid | ID aktora (vraćeno od [CreateActor](CreateActor)) kojem se uklanjaju animacije | ## Returns 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 ac65752c5a0d..cdff9c39e270 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 @@ -36,7 +36,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- ClearAnimations ne radi ništa kada animacija završi ako u ApplyAnimation dodamo 1 za parametar zamrzavanja. +- ClearAnimations ne radi ništa kada animacija završi ako u [ApplyAnimation](ApplyAnimation) dodamo 1 za parametar zamrzavanja. - Za razliku od nekih drugih načina uklanjanja igrača iz vozila, ovo će također resetirati brzinu vozila na nulu, trenutno zaustavljajući automobil. Igrač će se pojaviti na vrhu vozila s istim mjestom na kojem je bio u svome sjedištu. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ConnectNPC.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ConnectNPC.md index 780fa79f509f..383593a88ce3 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ConnectNPC.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ConnectNPC.md @@ -38,7 +38,7 @@ public OnGameModeInit() :::note -NPC-evi nemaju nametagove. Ovo može biti iskriptano sa Attach3DTextLabelToPlayer. +NPC-evi nemaju nametagove. Ovo može biti iskriptano sa [Attach3DTextLabelToPlayer](Attach3DTextLabelToPlayer). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md index 572ec6521fb4..ee3abd98c38e 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md @@ -56,7 +56,8 @@ Upotrijebite ugrađivanje boja za više boja u tekstu. :::warning -Ako je text[] prazan, server/clients pored teksta če možda crashati! Ako je virtualworld postavljen na -1 tekst se neće pojaviti. +- Ako je text[] prazan, server/clients pored teksta če možda crashati! +- Ako je virtualworld postavljen na -1 tekst se neće pojaviti. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md index cda66abb363a..2ce1802a135a 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md @@ -15,13 +15,13 @@ Ova funkcija je dodana u SA-MP 0.3.7 i ne radi u nižim verzijama! Kreiraj statičnog aktora u svijetu. Ovi aktori su kao NPC-ovi, kakogod imaju ograničene mogućnosti. Ne zauzimaju server slotove. -| Ime | Deskripcija | -| -------- | ----------------------------------------------- | -| modelid | ID modela (skin ID) kojeg će aktor imati. | -| x | X kordinata na kojoj će se kreirati aktor. | -| y | Y kordinata na kojoj će se kreirati aktor. | -| z | Z kordinata na kojoj će se kreirati aktor. | -| Rotation | Smjer gledanja (rotacija) kojeg će imati aktor. | +| Ime | Deskripcija | +| -------- | --------------------------------------------------------------- | +| modelid | ID modela ([skin ID](../resources/skins)) kojeg će aktor imati. | +| x | X kordinata na kojoj će se kreirati aktor. | +| y | Y kordinata na kojoj će se kreirati aktor. | +| z | Z kordinata na kojoj će se kreirati aktor. | +| Rotation | Smjer gledanja (rotacija) kojeg će imati aktor. | ## Returns @@ -51,14 +51,15 @@ public OnGameModeExit() :::note -- Aktori su zamišljeni da samo negdje stanu, na primjer blagajnici i barmeni. Oni mogu izvoditi animacije (jednom ili petljom) pomoću ApplyActorAnimation. -- Od 0.3.7 R2 aktori su zadani da budu neranjivi. +- Aktori su zamišljeni da samo negdje stanu, na primjer blagajnici i barmeni. Oni mogu izvoditi animacije (jednom ili petljom) pomoću [ApplyActorAnimation](ApplyActorAnimation). +- Od 0.3.7 R2 aktori su zadani da budu [neranjivi](SetActorInvulnerable). ::: :::warning -- Aktori su potpuno odvojeni od NPC-a. NE koriste ID-ove igrača / utora na poslužitelju i NE MOGU se s njima postupati kao s NPC-ima. Aktori su ograničeni na 1000 (MAX_ACTORS). +- Aktori su potpuno odvojeni od NPC-a. NE koriste ID-ove igrača / utora na poslužitelju i NE MOGU se s njima postupati kao s NPC-ima. +- Aktori su ograničeni na 1000 (MAX_ACTORS). - Vozače mogu potiskivati glumce, upotrijebite timer da biste ih vratili na njihova mjesta. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateMenu.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateMenu.md index 7fae84dc0e38..d0852deee7b8 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateMenu.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateMenu.md @@ -38,7 +38,9 @@ public OnGameModeInit() :::note -Ova funkcija samo STVARA meni - ShowMenuForPlayer mora se koristiti za prikaz. Možete stvoriti i pristupiti samo dvije kolone (0 i 1). Ako je dužina naslova jednaka ili veća od 32 znaka, naslov je skraćen na 30 znakova. +- Ova funkcija samo STVARA meni - [ShowMenuForPlayer](ShowMenuForPlayer) mora se koristiti za prikaz. +- Možete stvoriti i pristupiti samo dvije kolone (0 i 1). +- Ako je dužina naslova jednaka ili veća od 32 znaka, naslov je skraćen na 30 znakova. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md index 5d6acc378d84..f8a7c339b4f6 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md @@ -11,7 +11,7 @@ Kreira objekat na određenim kordinatama iz igre. | Ime | Deskripcija | | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| modelid | Model za kreirati. | +| modelid | [Model za kreirati](https://models.open.mp/?cat=objects). | | Float:X | X kordinata za kreirati objekat. | | Float:Y | Y kordinata za kreirati objekat. | | Float:Z | Z kordinata za kreirati objekat. | @@ -35,7 +35,7 @@ public OnGameModeInit() :::note -Postoji limit od 1000 objekata (MAX_OBJECTS). Da biste zaobišli ovo ograničenje, možete upotrijebiti streamer. +Postoji limit od 1000 objekata (MAX_OBJECTS). Da biste zaobišli ovo ograničenje, možete upotrijebiti [streamer](https://github.com/samp-incognito/samp-streamer-plugin). ::: 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 7c5df17a7f2c..20ad1a25ce43 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 @@ -7,7 +7,7 @@ tags: [] ## Deskripcija -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. +Ova funkcija radi u potpunosti isto kao i [AddStaticPickup](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](../callbacks/OnPlayerPickUpPickup). | Ime | Deskripcija | | -------------------------------- | ------------------------------------------------------------------------------------- | @@ -58,7 +58,7 @@ Za potpuno skriptirane pickupe treba koristiti tip 1. :::warning -**Poznati Bug(ovi):** Pickupi koji imaju X ili Y niži od -4096.0 ili veći od 4096.0 neće se pojaviti niti će pokrenuti OnPlayerPickUpPickup. +**Poznati Bug(ovi):** Pickupi koji imaju X ili Y niži od -4096.0 ili veći od 4096.0 neće se pojaviti niti će pokrenuti [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md index a7f809f56dac..b14dc4a2ef7a 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md @@ -12,7 +12,7 @@ Kreira objekat koji će biti vidljiv samo jednom igraču. | Ime | Deskripcija | | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | playerid | ID igrača za kojeg se kreira objekat. | -| modelid | Model za kreirati. | +| modelid | [Model za kreirati](https://models.open.mp/?cat=objects). | | Float:X | X kordinata za kreirati ovjekat. | | Float:Y | Y kordinata za kreirati ovjekat. | | Float:Z | Z kordinata za kreirati ovjekat. | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateVehicle.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateVehicle.md index 6ac74e1dcc2a..f256b58cb160 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateVehicle.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateVehicle.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Deskripcija -Creates a vehicle in the world. Can be used in place of AddStaticVehicleEx at any time in the script. +Creates a vehicle in the world. Can be used in place of [AddStaticVehicleEx](AddStaticVehicleEx) at any time in the script. | Ime | Deskripcija | | ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | @@ -44,7 +44,7 @@ public OnGameModeInit() :::warning -Vozovi se mogu dodati samo sa AddStaticVehicle i AddStaticVehicleEx. +Vozovi se mogu dodati samo sa [AddStaticVehicle](AddStaticVehicle) i [AddStaticVehicleEx](AddStaticVehicleEx). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Delete3DTextLabel.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Delete3DTextLabel.md index 3e916a235331..402fa2f1f99d 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Delete3DTextLabel.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Delete3DTextLabel.md @@ -7,7 +7,7 @@ tags: ["3dtextlabel"] ## Deskripcija -Obriši 3D text label (kreiran sa Create3DTextLabel). +Obriši 3D text label (kreiran sa [Create3DTextLabel](Create3DTextLabel)). | Ime | Deskripcija | | ------------- | ------------------------------ | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DeletePlayer3DTextLabel.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DeletePlayer3DTextLabel.md index e1ba8df52bd0..eb894936c1c0 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DeletePlayer3DTextLabel.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DeletePlayer3DTextLabel.md @@ -7,7 +7,7 @@ tags: ["player", "3dtextlabel"] ## Deskripcija -Uništi 3D text label koji je kreiran koristeći CreatePlayer3DTextLabel. +Uništi 3D text label koji je kreiran koristeći [CreatePlayer3DTextLabel](CreatePlayer3DTextLabel). | Ime | Deskripcija | | ------------------- | --------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md index aeb159979dec..ff21550701a8 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md @@ -13,11 +13,11 @@ Ova funkcija je dodana u SA-MP 0.3.7 i ne radi u nižim verzijama! ## Deskripcija -Uništi aktora koji je kreiran sa CreateActor. +Uništi aktora koji je kreiran sa [CreateActor](CreateActor). -| Ime | Deskripcija | -| ------- | -------------------------------------------------- | -| actorid | ID aktora koji se uništava. Kreiran sa CreateActor | +| Ime | Deskripcija | +| ------- | ----------------------------------------------------------------- | +| actorid | ID aktora koji se uništava. Kreiran sa [CreateActor](CreateActor) | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md index e94d4a69850f..72038940c447 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md @@ -7,11 +7,11 @@ tags: [] ## Deskripcija -Uništava (briše) objekat koji je kreiran sa CreateObject. +Uništava (briše) objekat koji je kreiran sa [CreateObject](CreateObject). -| Ime | Deskripcija | -| -------- | ---------------------------------------------------- | -| objectid | ID objekta koji se uništava. Kreiran sa CreateObject | +| Ime | Deskripcija | +| -------- | -------------------------------------------------------------------- | +| objectid | ID objekta koji se uništava. Kreiran sa [CreateObject](CreateObject) | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md index 9aa39e78247c..1a235455bc23 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md @@ -7,11 +7,11 @@ tags: [] ## Deskripcija -Uništava pickup kreiran sa CreatePickup. +Uništava pickup kreiran sa [CreatePickup](CreatePickup). -| Ime | Deskripcija | -| ------ | ----------------------------------------------------- | -| pickup | ID pickup-a koji se unišava (kreiran sa CreatePickup) | +| Ime | Deskripcija | +| ------ | --------------------------------------------------------------------- | +| pickup | ID pickup-a koji se unišava (kreiran sa [CreatePickup](CreatePickup)) | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPlayerObject.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPlayerObject.md index a206561a573b..1dbcf602bf51 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPlayerObject.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPlayerObject.md @@ -7,12 +7,12 @@ tags: ["player"] ## Deskripcija -Uništava objekat igrača kreiran sa CreatePlayerObject. +Uništava objekat igrača kreiran sa [CreatePlayerObject](CreatePlayerObject). -| Ime | Deskripcija | -| -------- | ---------------------------------------------------------- | -| playerid | ID igrača za kojeg se uništava objekat | -| objectid | ID objekta koji se uništava. Kreiran sa CreatePlayerObject | +| Ime | Deskripcija | +| -------- | -------------------------------------------------------------------------------- | +| playerid | ID igrača za kojeg se uništava objekat | +| objectid | ID objekta koji se uništava. Kreiran sa [CreatePlayerObject](CreatePlayerObject) | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/EditAttachedObject.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/EditAttachedObject.md index 97e6ee4f5bea..9d90e77a02ea 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/EditAttachedObject.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/EditAttachedObject.md @@ -48,7 +48,7 @@ Kameru možete pomicati tijekom uređivanja pritiskom i držanjem **razmaknice** :::warning -Igrači će moći skalirati objekte do vrlo velike ili negativne vrijednosti. Ograničenja treba uspostaviti pomoću OnPlayerEditAttachedObject za prekid uređivanja ili isjecanja vrijednosti skale. +Igrači će moći skalirati objekte do vrlo velike ili negativne vrijednosti. Ograničenja treba uspostaviti pomoću [OnPlayerEditAttachedObject](../callbacks/OnPlayerEditAttachedObject) za prekid uređivanja ili isjecanja vrijednosti skale. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/EnableVehicleFriendlyFire.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/EnableVehicleFriendlyFire.md index 976b644b9c26..2bf2fae73602 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/EnableVehicleFriendlyFire.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/EnableVehicleFriendlyFire.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Deskripcija -Omogućite "friendly-fire" za timska vozila. Igrači neće moći oštetiti vozila suigrača (mora se koristiti SetPlayerTeam!). +Omogućite "friendly-fire" za timska vozila. Igrači neće moći oštetiti vozila suigrača (mora se koristiti [SetPlayerTeam](SetPlayerTeam)!). ## Primjeri diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md index d9bd807e95bf..f066d1a0c78b 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md @@ -7,7 +7,7 @@ tags: [] ## Deskripcija -Ova funkcija omogućava uključivanje naziva zona / područja kao što je "Vinewood" ili "Doherty" tekst u donjem desnom dijelu ekrana dok ulaze u to područje. Ovo je opcija gamemodea i treba je postaviti u callbacku OnGameModeInit. +Ova funkcija omogućava uključivanje naziva zona / područja kao što je "Vinewood" ili "Doherty" tekst u donjem desnom dijelu ekrana dok ulaze u to područje. Ovo je opcija gamemodea i treba je postaviti u callbacku [OnGameModeInit](../callbacks/OnGameModeInit). | Ime | Deskripcija | | ------ | ------------------------------------------------------------------------------------------------------ | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md index 0ccbd1436552..862e0372c85f 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md @@ -15,11 +15,11 @@ Ova funkcija je dodana u SA-MP 0.3.DL R1 i ne radi u nižim verzijama! Pronađite postojeću prilagođenu kožu ili datoteku jednostavnog objektnog modela. Datoteke modela se prema zadanim postavkama nalaze u direktoriju `models` na poslužitelju (postavka artpath). -| Ime | Deskripcija | -| ----------- | -------------------------------------------------------------------------- | -| crc | CRC kontrolna suma datoteke prilagođenog modela. | -| retstr[] | Niz u koji treba pohraniti **.dff** ime datoteke, proslijeđeno referencom. | -| retstr_size | Dužina niza koji treba pohraniti. | +| Ime | Deskripcija | +| ----------- | --------------------------------------------------------------------------------------------------------- | +| crc | [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) kontrolna suma datoteke prilagođenog modela. | +| retstr[] | Niz u koji treba pohraniti **.dff** ime datoteke, proslijeđeno referencom. | +| retstr_size | Dužina niza koji treba pohraniti. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md index f8c5d6c43800..e5d07034ccce 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md @@ -15,11 +15,11 @@ Ova funkcija je dodana u SA-MP 0.3.DL R1 i ne radi u nižim verzijama! Pronađite postojeću prilagođenu datoteku teksture kože ili jednostavnog objekta. Datoteke modela se prema zadanim postavkama nalaze u direktoriju `models` na poslužitelju (postavka artpath). -| Ime | Deskripcija | -| ----------- | -------------------------------------------------------------------------- | -| crc | CRC kontrolna suma datoteke prilagođenog modela. | -| retstr[] | Niz u koji treba pohraniti **.txd** ime datoteke, proslijeđeno referencom. | -| retstr_size | Dužina niza koji treba pohraniti. | +| Ime | Deskripcija | +| ----------- | --------------------------------------------------------------------------------------------------------- | +| crc | [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) kontrolna suma datoteke prilagođenog modela. | +| retstr[] | Niz u koji treba pohraniti **.txd** ime datoteke, proslijeđeno referencom. | +| retstr_size | Dužina niza koji treba pohraniti. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ForceClassSelection.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ForceClassSelection.md index 277efa259b0f..b9e956b9fb87 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ForceClassSelection.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ForceClassSelection.md @@ -33,7 +33,7 @@ if (!strcmp(cmdtext, "/class", true)) :::warning -Ova funkcija ne vrši promjenu stanja u PLAYER_STATE_WASTED kada se kombinira s TogglePlayerSpectating (pogledajte primjer dolje), kao što je ovdje navedeno. +Ova funkcija ne vrši [promjenu stanja](../callbacks/OnPlayerStateChange) u PLAYER_STATE_WASTED kada se kombinira s [TogglePlayerSpectating](TogglePlayerSpectating) (pogledajte primjer dolje), kao što je ovdje navedeno. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md index 254703fb21fc..0e7d4ee30caf 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md @@ -36,9 +36,8 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::warning -Imajte na umu da igrači mogu crashati zbog neparnog broja simbola tilde (~) koji se koriste u tekstu igre. Korištenje kodova u boji (npr. `~r~`) izvan 255. znaka može srušiti client. - -Također, prazan prostor na kraju niza može rezultirati neuspjehom. Na primjer: `"Headshot "` rezultira neuspjehom. Umjesto toga, trebao bi biti `"Headshot"` ili `"Headshot_"`. +- Imajte na umu da igrači mogu crashati zbog neparnog broja simbola tilde (~) koji se koriste u tekstu igre. Korištenje kodova u boji (npr. `~r~`) izvan 255. znaka može srušiti client. +- Također, prazan prostor na kraju niza može rezultirati neuspjehom. Na primjer: `"Headshot "` rezultira neuspjehom. Umjesto toga, trebao bi biti `"Headshot"` ili `"Headshot_"`. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md index 396781f18a88..0c33259c0f9c 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md @@ -44,13 +44,14 @@ gangzone = GangZoneCreate(1248.011, 2072.804, 1439.348, 2204.319); :::note -Ova funkcija samo STVARA gangzonu, za prikaz morate koristiti GangZoneShowForPlayer ili GangZoneShowForAll. +Ova funkcija samo STVARA gangzonu, za prikaz morate koristiti [GangZoneShowForPlayer](GangZoneShowForPlayer) ili [GangZoneShowForAll](GangZoneShowForAll). ::: :::warning -Postoji ograničenje od 1024 gangzone. Stavljanje parametara u pogrešan redoslijed rezultira glitchy ponašanjem. +- Postoji ograničenje od 1024 gangzone. +- Stavljanje parametara u pogrešan redoslijed rezultira glitchy ponašanjem. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneShowForAll.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneShowForAll.md index 235667a89de3..32b79dbdb627 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneShowForAll.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneShowForAll.md @@ -11,7 +11,7 @@ Prikazuje gangzonu sa željenom bojom svim igračima. | Ime | Deskripcija | | ----- | ------------------------------------------------------------------------------------------------------------ | -| zone | ID gangzone za prikazati (returnovana/vraćena od GangZoneCreate). | +| zone | ID gangzone za prikazati (returnovana/vraćena od [GangZoneCreate](GangZoneCreate)). | | color | Boja za bljeskanje gangzone, kao cijeli broj ili hex u **RGBA** formatu boja. Podržana alfa transparentnost. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneShowForPlayer.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneShowForPlayer.md index a039711cc06c..4913bbde04f5 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneShowForPlayer.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneShowForPlayer.md @@ -7,12 +7,12 @@ tags: ["player", "gangzone"] ## Deskripcija -Prikaži gang zonu za igrača. Prvo mora biti kreirana sa GangZoneCreate. +Prikaži gang zonu za igrača. Prvo mora biti kreirana sa [GangZoneCreate](GangZoneCreate). | Ime | Deskripcija | | -------- | ------------------------------------------------------------------------------------------------------------ | | playerid | ID igrača kojem želite prikazati gangzonu. | -| zone | ID gang zone koju želite prikazati igrači. Returnovana/vraćena od GangZoneCreate | +| zone | ID gang zone koju želite prikazati igrači. Returnovana/vraćena od [GangZoneCreate](GangZoneCreate) | | color | Boja za bljeskanje gangzone, kao cijeli broj ili hex u **RGBA** formatu boja. Podržana alfa transparentnost. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneStopFlashForAll.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneStopFlashForAll.md index dad04de81d3f..b1e375da34ba 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneStopFlashForAll.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneStopFlashForAll.md @@ -9,9 +9,9 @@ tags: ["gangzone"] Zaustavlja treptanje gangzone za sve igrače. -| Ime | Deskripcija | -| ---- | -------------------------------------------------------------------- | -| zone | ID zone za prestati treptati. Returnovana/vraćena od GangZoneCreate. | +| Ime | Deskripcija | +| ---- | -------------------------------------------------------------------------------------- | +| zone | ID zone za prestati treptati. Returnovana/vraćena od [GangZoneCreate](GangZoneCreate). | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetActorFacingAngle.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetActorFacingAngle.md index f4be7b0830a7..4622502c5a1c 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetActorFacingAngle.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetActorFacingAngle.md @@ -11,10 +11,10 @@ tags: ["actor"] Pogledaj ugao posmatranja actora -| Ime | Deskripcija | -| ---------- | ---------------------------------------------------------------------------------------- | -| actorid | ID actora za dobivanje ugla posmatranja. Returnan (vraćen) od CreateActor funkcije. | -| &Float:ang | Float varijabla proslijeđena referencom, u kojoj će biti pohranjen ugao gledanja actora. | +| Ime | Deskripcija | +| ---------- | -------------------------------------------------------------------------------------------------- | +| actorid | ID actora za dobivanje ugla posmatranja. Returnan (vraćen) od [CreateActor](CreateActor) funkcije. | +| &Float:ang | Float varijabla proslijeđena referencom, u kojoj će biti pohranjen ugao gledanja actora. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md index bc285d45fe5a..a8636b824c57 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md @@ -11,12 +11,12 @@ tags: ["actor"] Dobij poziciju actora. -| Ime | Deskripcija | -| ------- | ---------------------------------------------------------------------------------- | -| actorid | ID actora koji će dobiti poziciju. Returnan od funkcije CreateActor. | -| X | Float varijabla proslijeđena referencom u kojoj se pohranjuje X koordinata actora. | -| Y | Float varijabla proslijeđena referencom u kojoj se pohranjuje Y koordinata actora. | -| Z | Float varijabla proslijeđena referencom u kojoj se pohranjuje Z koordinata actora. | +| Ime | Deskripcija | +| ------- | ----------------------------------------------------------------------------------- | +| actorid | ID actora koji će dobiti poziciju. Returnan od funkcije [CreateActor](CreateActor). | +| X | Float varijabla proslijeđena referencom u kojoj se pohranjuje X koordinata actora. | +| Y | Float varijabla proslijeđena referencom u kojoj se pohranjuje Y koordinata actora. | +| Z | Float varijabla proslijeđena referencom u kojoj se pohranjuje Z koordinata actora. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetGravity.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetGravity.md index b34f304f5eb0..2ccd34678e4d 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetGravity.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetGravity.md @@ -7,7 +7,7 @@ tags: [] ## Deskripcija -Dobij trenutno postavljenu gravitaciju servera. +Dobij trenutno postavljenu [gravitaciju](SetGravity) servera. ## Primjeri diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectModel.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectModel.md index cb1a4c6888b1..3e4df7b4c5e2 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectModel.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectModel.md @@ -9,7 +9,7 @@ tags: [] ## Deskripcija -Dobij ID modela određenog objekta (CreateObject). +Dobij ID modela određenog objekta ([CreateObject](CreateObject)). | Ime | Deskripcija | | -------- | ------------------------------ | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarFloat.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarFloat.md index b7800eade828..1ffa218b1a9d 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarFloat.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarFloat.md @@ -33,7 +33,7 @@ public LoadPos(playerid) :::note -Varijable se resetiraju tek nakon što se pozove OnPlayerDisconnect, tako da su vrijednosti i dalje dostupne u OnPlayerDisconnect. +Varijable se resetiraju tek nakon što se pozove [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect), tako da su vrijednosti i dalje dostupne u OnPlayerDisconnect. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarInt.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarInt.md index c5e4795e0281..7e8dab9d3794 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarInt.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarInt.md @@ -9,10 +9,10 @@ tags: ["pvar"] Dobiva vrijednost cijelog broja varijable igrača. -| Ime | Deskripcija | -| -------- | ------------------------------------------------------------------------------------- | -| playerid | ID igrača za dobiti igračevu varijablu. | -| varname | Ime igračeve varijable (osjetljivo na velika i mala slova). Dodijeljeno u SetPVarInt. | +| Ime | Deskripcija | +| -------- | --------------------------------------------------------------------------------------------------- | +| playerid | ID igrača za dobiti igračevu varijablu. | +| varname | Ime igračeve varijable (osjetljivo na velika i mala slova). Dodijeljeno u [SetPVarInt](SetPVarInt). | ## Returns @@ -33,7 +33,7 @@ public OnPlayerDisconnect(playerid, reason) :::note -Varijable se resetiraju tek nakon što se pozove OnPlayerDisconnect, tako da su vrijednosti i dalje dostupne u OnPlayerDisconnect. +Varijable se resetiraju tek nakon što se pozove [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect), tako da su vrijednosti i dalje dostupne u OnPlayerDisconnect. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarString.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarString.md index b0081753727c..a29d1a050f39 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarString.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPVarString.md @@ -9,12 +9,12 @@ tags: ["pvar"] Dobija igračevu varijablu kao string. -| Ime | Deskripcija | -| -------------- | ------------------------------------------------------------ | -| playerid | ID igrača za dobiti igračevu varijablu. | -| varname | Ime igračeve varijable, postavljeno od SetPVarString. | -| &string_return | Niz za pohraniti string vrijednost, proslijeđeno referencom. | -| len | Maksimalna dužina returnovanog/vraćenog stringa. | +| Ime | Deskripcija | +| -------------- | ---------------------------------------------------------------------- | +| playerid | ID igrača za dobiti igračevu varijablu. | +| varname | Ime igračeve varijable, postavljeno od [SetPVarString](SetPVarString). | +| &string_return | Niz za pohraniti string vrijednost, proslijeđeno referencom. | +| len | Maksimalna dužina returnovanog/vraćenog stringa. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md index de45cea41888..b3970335b104 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md @@ -27,8 +27,8 @@ playerskin = GetPlayerSkin(playerid); :::note -- Vraća novi skin nakon što se pozove SetSpawnInfo, ali prije nego što se igrač stvarno ponovo pokrene da bi dobio novi skin. -- Vraća stari skin ako je igrač stvoren putem funkcije SpawnPlayer. +- Vraća novi skin nakon što se pozove [SetSpawnInfo](SetSpawnInfo), ali prije nego što se igrač stvarno ponovo pokrene da bi dobio novi skin. +- Vraća stari skin ako je igrač stvoren putem funkcije [SpawnPlayer](SpawnPlayer). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md index 72aec9fa3b96..99a5f04189fd 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md @@ -42,7 +42,8 @@ public OnPlayerUpdate(playerid) :::warning -Ne radi za joypad/kontrolere i nakon određene udaljenosti. Ne radi za snajpersku pušku, jer se ništa ne zaključava i kao takva ne može i neće vratiti igrača. +- Ne radi za joypad/kontrolere i nakon određene udaljenosti. +- Ne radi za snajpersku pušku, jer se ništa ne zaključava i kao takva ne može i neće vratiti igrača. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTime.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTime.md index bfb9843beb5d..87d46c5624a4 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTime.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTime.md @@ -7,7 +7,7 @@ tags: ["player"] ## Deskripcija -Doznajte trenutno igračevo vrijeme igre. Postavlja SetWorldTime ili vraća vrijeme igre automatski ako se koristi TogglePlayerClock. +Doznajte trenutno igračevo vrijeme igre. Postavlja [SetWorldTime](SetWorldTime) ili vraća vrijeme igre automatski ako se koristi [TogglePlayerClock](TogglePlayerClock). | Ime | Deskripcija | | -------- | ------------------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVehicleID.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVehicleID.md index d96607d5c892..d66e7527f621 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVehicleID.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVehicleID.md @@ -7,7 +7,7 @@ tags: ["player", "vehicle"] ## Deskripcija -Ova funkcija dobija ID vozila u kojem je igrač trenutno. **Zabilješka:** **NE** ID modela vozila. Pogledaj GetVehicleModel za to. +Ova funkcija dobija ID vozila u kojem je igrač trenutno. **Zabilješka:** **NE** ID modela vozila. Pogledaj [GetVehicleModel](GetVehicleModel) za to. | Ime | Deskripcija | | -------- | ------------------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarFloat.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarFloat.md index 26a087be273d..51f93f19b7a8 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarFloat.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarFloat.md @@ -15,9 +15,9 @@ Ova funkcija je dodana u SA-MP 0.3.7 R2 i ne radi u nižim verzijama! Dobija float vrijednost server varijable. -| Ime | Deskripcija | -| ------- | ------------------------------------------------------------------------------------- | -| varname | Ime server varijable (osjetljivo na mala i velika slova). Dodijeljeno u SetSVarFloat. | +| Ime | Deskripcija | +| ------- | ----------------------------------------------------------------------------------------------------- | +| varname | Ime server varijable (osjetljivo na mala i velika slova). Dodijeljeno u [SetSVarFloat](SetSVarFloat). | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarInt.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarInt.md index f83c7f11bc9a..6ea0ea9eed92 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarInt.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarInt.md @@ -15,9 +15,9 @@ Ova funkcija je dodana u SA-MP 0.3.7 R2 i ne radi u nižim verzijama! Dobija cjelobrojnu vrijednost server varijable. -| Ime | Deskripcija | -| ------- | ----------------------------------------------------------------------------------- | -| varname | Ime server varijable (osjetljivo na mala i velika slova). Dodijeljeno u SetSVarInt. | +| Ime | Deskripcija | +| ------- | ------------------------------------------------------------------------------------------------- | +| varname | Ime server varijable (osjetljivo na mala i velika slova). Dodijeljeno u [SetSVarInt](SetSVarInt). | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarString.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarString.md index bdf982175f99..d501df3fd6ff 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarString.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetSVarString.md @@ -15,11 +15,11 @@ Ova funkcija je dodana u SA-MP 0.3.7 R2 i ne radi u nižim verzijama! Dobija string vrijednost server varijable. -| Ime | Deskripcija | -| ------------- | -------------------------------------------------------------------------------------- | -| varname | Ime server varijable (osjetljivo na mala i velika slova). Dodijeljeno u SetSVarString. | -| string_return | Niz za pohraniti vrijednost stringa, proslijeđeno referencom. | -| len | Maksimalna dužina returnovanog/vraćenog stringa. | +| Ime | Deskripcija | +| ------------- | ------------------------------------------------------------------------------------------------------- | +| varname | Ime server varijable (osjetljivo na mala i velika slova). Dodijeljeno u [SetSVarString](SetSVarString). | +| string_return | Niz za pohraniti vrijednost stringa, proslijeđeno referencom. | +| len | Maksimalna dužina returnovanog/vraćenog stringa. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsBool.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsBool.md index d72706b4d5e4..0997a97140d1 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsBool.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsBool.md @@ -7,7 +7,7 @@ tags: [] :::warning -This function, as of 0.3.7 R2, is deprecated. Please see GetConsoleVarAsBool +This function, as of 0.3.7 R2, is deprecated. Please see [GetConsoleVarAsBool](GetConsoleVarAsBool) ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsInt.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsInt.md index 7da01101a612..215860b69f79 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsInt.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsInt.md @@ -7,7 +7,7 @@ tags: [] :::warning -This function, as of 0.3.7 R2, is deprecated. Please see GetConsoleVarAsInt +This function, as of 0.3.7 R2, is deprecated. Please see [GetConsoleVarAsInt](GetConsoleVarAsInt) ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsString.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsString.md index 71341de366f2..88a010a0b12e 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsString.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsString.md @@ -7,7 +7,7 @@ tags: [] :::warning -This function, as of 0.3.7 R2, is deprecated. Please see GetConsoleVarAsString +This function, as of 0.3.7 R2, is deprecated. Please see [GetConsoleVarAsString](GetConsoleVarAsString) ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md index c0fcaa57a1a3..6ce051779bc7 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md @@ -29,7 +29,7 @@ Rotacija vozila pohranjena je u navedenim varijablama. :::note -Ne postoji 'set' varijacija ove funkcije; ne možete podesiti rotaciju vozila (osim Z ugla). +Ne postoji 'set' varijacija ove funkcije; ne možete podesiti rotaciju vozila (osim [Z ugla](SetVehicleZAngle)). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/HideMenuForPlayer.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/HideMenuForPlayer.md index 13a4adf84dee..eede3d817197 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/HideMenuForPlayer.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/HideMenuForPlayer.md @@ -9,10 +9,10 @@ tags: ["player", "menu"] Sakriva meni za igrača. -| Ime | Deskripcija | -| -------- | ------------------------------------------------------------------------------------ | -| menuid | ID menija za sakriti. Vraćen od CreateMenu i proslijeđen do OnPlayerSelectedMenuRow. | -| playerid | ID igrača za kojeg će meni biti sakriven. | +| Ime | Deskripcija | +| -------- | ------------------------------------------------------------------------------------------------------------------------------------------ | +| menuid | ID menija za sakriti. Vraćen od [CreateMenu](CreateMenu) i proslijeđen do [OnPlayerSelectedMenuRow](../callbacks/OnPlayerSelectedMenuRow). | +| playerid | ID igrača za kojeg će meni biti sakriven. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/InterpolateCameraLookAt.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/InterpolateCameraLookAt.md index 5391d5df8eb2..36c0c1757fe1 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/InterpolateCameraLookAt.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/InterpolateCameraLookAt.md @@ -47,7 +47,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::tip -Upotrijebite TogglePlayerSpectating da se objekti prikažu igraču/klijentu tokom reprodukcije kamere. Pomoću SetCameraBehindPlayer možete resetovati kameru iza igrača/klijenta. +- Upotrijebite [TogglePlayerSpectating](TogglePlayerSpectating) da se objekti prikažu igraču/klijentu tokom reprodukcije kamere. +- Pomoću [SetCameraBehindPlayer](SetCameraBehindPlayer) možete resetovati kameru iza igrača/klijenta. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/InterpolateCameraPos.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/InterpolateCameraPos.md index 6535aa7dd688..441af0795a49 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/InterpolateCameraPos.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/InterpolateCameraPos.md @@ -45,7 +45,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::tip -Upotrijebite TogglePlayerSpectating da se objekti prikažu igraču/klijentu tokom reprodukcije kamere. Pomoću SetCameraBehindPlayer možete resetovati kameru iza igrača/klijenta. +- Upotrijebite [TogglePlayerSpectating](TogglePlayerSpectating) da se objekti prikažu igraču/klijentu tokom reprodukcije kamere. +- Pomoću [SetCameraBehindPlayer](SetCameraBehindPlayer) možete resetovati kameru iza igrača/klijenta. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerAdmin.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerAdmin.md index ba886364ec3c..e4d600cdc037 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerAdmin.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerAdmin.md @@ -15,7 +15,9 @@ Provjerite je li igrač prijavljen kao RCON administrator. ## Returns -**1**: Igrač je RCON administrator. **0**: Igrač NIJE RCON administrator. +**1**: Igrač je RCON administrator. + +**0**: Igrač NIJE RCON administrator. ## Primjeri diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerInRaceCheckpoint.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerInRaceCheckpoint.md index 2c9441fe0af2..7c842372e847 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerInRaceCheckpoint.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerInRaceCheckpoint.md @@ -7,7 +7,7 @@ tags: ["player", "checkpoint", "racecheckpoint"] ## Deskripcija -Provjerava ako je igrač unutar njihovog trenutno postavljenog race checkpointa/markera (SetPlayerRaceCheckpoint). +Provjerava ako je igrač unutar njihovog trenutno postavljenog race checkpointa/markera ([SetPlayerRaceCheckpoint](SetPlayerRaceCheckpoint)). | Ime | Deskripcija | | -------- | ---------------------- | 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 04e21c005e8b..5ccb689179d3 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,9 +33,8 @@ if (IsPlayerStreamedIn(playerid, 0)) :::note -**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) +- **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/IsTrailerAttachedToVehicle.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/IsTrailerAttachedToVehicle.md index e4c48b7792d3..7f5a8aae3215 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/IsTrailerAttachedToVehicle.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/IsTrailerAttachedToVehicle.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Deskripcija -Provjerava ako vozilo ima prikvačenu prikolicu za sebe. Koristi GetVehicleTrailer da dobiješ ID vozila prikolice (ako ima). +Provjerava ako vozilo ima prikvačenu prikolicu za sebe. Koristi [GetVehicleTrailer](GetVehicleTrailer) da dobiješ ID vozila prikolice (ako ima). | Ime | Deskripcija | | --------- | ----------------------------------------- | 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 1e90098e8629..bc4291d2a0f2 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 @@ -21,7 +21,7 @@ Ova funkcija uvijek returna (vraća) **1**, bilo da funckija ne uspije da se izv :::warning -Bilo koja radnja poduzeta neposredno prije Kicka() (poput slanja poruke pomoću SendClientMessage) neće doći do igrača. Za odgodu udarca mora se koristiti tajmer. +Bilo koja radnja poduzeta neposredno prije Kicka() (poput slanja poruke pomoću [SendClientMessage](SendClientMessage)) neće doći do igrača. Za odgodu udarca mora se koristiti tajmer. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/KillTimer.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/KillTimer.md index 57f377f40cd2..308338996893 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/KillTimer.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/KillTimer.md @@ -9,9 +9,9 @@ tags: [] Ubija (stopira) pokrenuti tajmer. -| Ime | Deskripcija | -| ------- | ------------------------------------------------------------------- | -| timerid | ID tajmera za ubiti (returnovan/vraćen od SetTimer ili SetTimerEx). | +| Ime | Deskripcija | +| ------- | --------------------------------------------------------------------------------------------- | +| timerid | ID tajmera za ubiti (returnovan/vraćen od [SetTimer](SetTimer) ili [SetTimerEx](SetTimerEx)). | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/LinkVehicleToInterior.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/LinkVehicleToInterior.md index a96df1bf9a34..26ee2ad941d8 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/LinkVehicleToInterior.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/LinkVehicleToInterior.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Deskripcija -Povezuje vozilo za enterijer. Vozila mogu biti vidljiva samo igračima u istom enterijeru (SetPlayerInterior). +Povezuje vozilo za enterijer. Vozila mogu biti vidljiva samo igračima u istom enterijeru ([SetPlayerInterior](SetPlayerInterior)). | Ime | Deskripcija | | ---------- | ---------------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ManualVehicleEngineAndLights.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ManualVehicleEngineAndLights.md index c1480d7ec3d2..9e40c53fb4ab 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ManualVehicleEngineAndLights.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ManualVehicleEngineAndLights.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Deskripcija -Koristite ovu funkciju prije nego što se bilo koji igrač poveže (OnGameModeInit) kako biste svim klijentima rekli da će skripta kontrolirati motore i svjetla vozila.Ovo sprečava da igra automatski uključuje/isključuje motor kada igrači ulaze/izlaze iz vozila i kada se farovi automatski pale kad je mrak. +Koristite ovu funkciju prije nego što se bilo koji igrač poveže ([OnGameModeInit](../callbacks/OnGameModeInit)) kako biste svim klijentima rekli da će skripta kontrolirati motore i svjetla vozila. Ovo sprečava da igra automatski uključuje/isključuje motor kada igrači ulaze/izlaze iz vozila i kada se farovi automatski pale kad je mrak. ## Primjeri diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md index 6b4d0d0b9508..993782a5815c 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md @@ -7,7 +7,7 @@ tags: [] ## Deskripcija -Premjestite objekt na novi položaj zadanom brzinom. Igrači/vozila će 'surfati' objektom dok se kreće. +Premjestite [objekt](CreateObject) na novi položaj zadanom brzinom. Igrači/vozila će 'surfati' objektom dok se kreće. | Ime | Deskripcija | | ----------- | ------------------------------------------------------ | @@ -55,7 +55,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -Ovu funkciju možete koristiti za nesmetano okretanje objekata. Međutim, da bi se to postiglo, objekt se također mora **premjestiti**. Navedena rotacija je rotacija koju će objekt imati nakon kretanja. Stoga se objekt neće okretati kada se ne primijeni nikakvo kretanje. Za primjer skripte pogledajte filtrirnu datoteku ferriswheel.pwn koju je izradio Kye uključen u paket poslužitelja (SA-MP 0.3d i noviji). Da biste u potpunosti razumjeli gornju napomenu, možete (ali ne ograničavajući se na to) povećati Z poziciju za (+0.001), a zatim (-0.001) nakon ponovnog pomicanja, jer ako ne promijenite X, Y ili Z neće rotirati objekt. +- Ovu funkciju možete koristiti za nesmetano okretanje objekata. Međutim, da bi se to postiglo, objekt se također mora **premjestiti**. Navedena rotacija je rotacija koju će objekt imati nakon kretanja. Stoga se objekt neće okretati kada se ne primijeni nikakvo kretanje. Za primjer skripte pogledajte filtrirnu datoteku ferriswheel.pwn koju je izradio Kye uključen u paket poslužitelja (SA-MP 0.3d i noviji). +- Da biste u potpunosti razumjeli gornju napomenu, možete (ali ne ograničavajući se na to) povećati Z poziciju za (+0.001), a zatim (-0.001) nakon ponovnog pomicanja, jer ako ne promijenite X, Y ili Z neće rotirati objekt. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md index c0cfa8fec5de..45f50e097853 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md @@ -7,7 +7,7 @@ tags: ["player"] ## Deskripcija -Premjestite player objekat na novi položaj zadanom brzinom. Također podržava rotaciju. Also supports rotation. Igrači/vozila će 'surfati' objektom dok se kreće. +Premjestite [player objekat](CreatePlayerObject) na novi položaj zadanom brzinom. Također podržava rotaciju. Also supports rotation. Igrači/vozila će 'surfati' objektom dok se kreće. | Ime | Deskripcija | | ----------- | ------------------------------------------------------ | @@ -35,7 +35,8 @@ MovePlayerObject(playerid, objectid, 2001.195679, 1547.113892, 10); :::note -Ako koristite parametre rotacije, objekt se mora premjestiti (X / Y / Z). Objekt će interpolirati rotaciju od trenutka kada se objekti počnu kretati i kada se zaustavi. Dolje navedeni parametri su za 0.3d R2 i starije verzije i trebali bi se zanemariti ako pokrenete najnoviju verziju SA-MP. +- Ako koristite parametre rotacije, objekt se mora premjestiti (X / Y / Z). Objekt će interpolirati rotaciju od trenutka kada se objekti počnu kretati i kada se zaustavi. +- Dolje navedeni parametri su za 0.3d R2 i starije verzije i trebali bi se zanemariti ako pokrenete najnoviju verziju SA-MP. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md index cfab387c770b..ef708826f0fa 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md @@ -36,7 +36,8 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::warning -Red je KRITIČNA! Obavezno koristite TogglePlayerSpectating prije PlayerSpectatePlayer. Virtualni svijet i interijer playerida i targetplayerida moraju biti isti da bi ova funkcija radila ispravno. +- Red je KRITIČNA! Obavezno koristite [TogglePlayerSpectating](TogglePlayerSpectating) prije PlayerSpectatePlayer. +- [Virtualni svijet](SetPlayerVirtualWorld) i [interijer](SetPlayerInterior) playerida i targetplayerida moraju biti isti da bi ova funkcija radila ispravno. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md index 6e6a35505e56..d447a89a4bef 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md @@ -17,7 +17,7 @@ Postavlja igrača da spectate-a (nadgleda) neko vozilo. Njegova kamera će biti ## Returns -**1**: Funkcija uspješno izvršena. Imajte na umu da se uspjeh prijavljuje ako igrač nije u režimu gledatelja (TogglePlayerSpectating), ali ništa se neće dogoditi. TogglePlayerSpectating MORA se prvo koristiti. +**1**: Funkcija uspješno izvršena. Imajte na umu da se uspjeh prijavljuje ako igrač nije u režimu gledatelja ([TogglePlayerSpectating](TogglePlayerSpectating)), ali ništa se neće dogoditi. TogglePlayerSpectating MORA se prvo koristiti. **0**: Funkcija neuspješno izvršena. Igrač, vozilo ili oboje ne postoje. @@ -32,7 +32,8 @@ PlayerSpectateVehicle(playerid, vehicleid); :::warning -Red je KRITIČAN! Obavezno koristite TogglePlayerSpectating prije PlayerSpectateVehicle. Igrač i vozilo moraju biti u istom unutrašnjosti i virtualnom svijetu da bi ova funkcija radila ispravno. +- Red je KRITIČAN! Obavezno koristite [TogglePlayerSpectating](TogglePlayerSpectating) prije PlayerSpectateVehicle. +- Igrač i vozilo moraju biti u istom unutrašnjosti i virtualnom svijetu da bi ova funkcija radila ispravno. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawAlignment.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawAlignment.md index 125da892e23a..ae3db5e782c9 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawAlignment.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawAlignment.md @@ -36,7 +36,7 @@ public OnPlayerConnect(playerid) :::note -Za poravnanje 2 (u sredini) vrijednosti x i y TextSize moraju se zamijeniti, pogledajte bilješke na PlayerTextDrawTextSize. +Za poravnanje 2 (u sredini) vrijednosti x i y TextSize moraju se zamijeniti, pogledajte bilješke na [PlayerTextDrawTextSize](PlayerTextDrawTextSize). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md index 929942930c47..f493ef4b47f0 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md @@ -37,7 +37,7 @@ public OnPlayerConnect(playerid) :::note -Ako se PlayerTextDrawSetOutline koristi s veličinom> 0, boja obrisa odgovarat će boji koja se koristi u PlayerTextDrawBackgroundColor. Čini se da promjena vrijednosti boje mijenja boju koja se koristi u PlayerTextDrawColor +Ako se [PlayerTextDrawSetOutline](PlayerTextDrawSetOutline) koristi s veličinom> 0, boja obrisa odgovarat će boji koja se koristi u PlayerTextDrawBackgroundColor. Čini se da promjena vrijednosti boje mijenja boju koja se koristi u [PlayerTextDrawColor](PlayerTextDrawColor) ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColor.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColor.md index 90813139ac1f..c65398f8eab6 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColor.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColor.md @@ -7,7 +7,7 @@ tags: ["player", "textdraw", "playertextdraw"] ## Deskripcija -Postavlja boju box-a textdraw-a (PlayerTextDrawUseBox). +Postavlja boju box-a textdraw-a ([PlayerTextDrawUseBox](PlayerTextDrawUseBox)). | Ime | Deskripcija | | --------------- | --------------------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColor.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColor.md index e4dbc95657a8..b1b78b8eea19 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColor.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColor.md @@ -43,7 +43,7 @@ Boje Gametext-a možete koristiti i u textdrawu. :::note -Textdraw mora se ponovo prikazati za igrača kako bi se ažurirala boja. +Textdraw mora se [ponovo prikazati](PlayerTextDrawShow) za igrača kako bi se ažurirala boja. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetOutline.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetOutline.md index 2bcf7ae149fc..d9353c22a25b 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetOutline.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetOutline.md @@ -7,7 +7,7 @@ tags: ["player", "textdraw", "playertextdraw"] ## Deskripcija -Postavite outline za player-textdraw. Boja outline-a ne može biti promijenjena osim ako se PlayerTextDrawBackgroundColor ne koristi. +Postavite outline za player-textdraw. Boja outline-a ne može biti promijenjena osim ako se [PlayerTextDrawBackgroundColor](PlayerTextDrawBackgroundColor) ne koristi. | Ime | Deskripcija | | -------- | ---------------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md index 9416d46ec471..7c2a883c896e 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md @@ -7,7 +7,7 @@ tags: ["player", "textdraw", "playertextdraw"] ## Deskripcija -Promijeni veličinu player-textdrawa (box ako je PlayerTextDrawUseBox omogućen i/ili klikljivo područje za koristiti sa PlayerTextDrawSetSelectable). +Promijeni veličinu player-textdrawa (box ako je [PlayerTextDrawUseBox](PlayerTextDrawUseBox) omogućen i/ili klikljivo područje za koristiti sa [PlayerTextDrawSetSelectable](PlayerTextDrawSetSelectable)). | Ime | Deskripcija | | -------- | ----------------------------------------------------------------------------------- | @@ -31,9 +31,13 @@ PlayerTextDrawTextSize(playerid, MyTextDraw[playerid], 2.0, 3.6); :::note -X i y imaju različita značenja s različitim vrijednostima PlayerTextDrawAlignment: 1 (lijevo): oni su krajnji desni ugao box-a, apsolutna kordinatama. 2 (sredina): trebaju se okrenuti (prebaciti dva), a X vrijednost je ukupna širina box-a. 3 (desno): x i y su kordinate krajnjeg lijevog ugla box-a - -Upotrebom fonta tipa 4 (sprite) i 5 (pregled modela) pretvara se X i Y ove funkcije iz kordinatama ugla u WIDTH i HEIGHT (offseti). The TextDraw box počinje sa 10.0 jedinica gore i 5.0 ulijevo po zadanom (TextDrawCreate kordinata). Ova funkcija definira područje na koje je moguće kliknuti za upotrebu s PlayerTextDrawSetSelectable, bilo da je box prikazan ili ne. +- X i y imaju različita značenja s različitim vrijednostima [PlayerTextDrawAlignment](PlayerTextDrawAlignment): + - 1 (lijevo): oni su krajnji desni ugao box-a, apsolutna kordinatama. + - 2 (sredina): trebaju se okrenuti (prebaciti dva), a X vrijednost je ukupna širina box-a. + - 3 (desno): x i y su kordinate krajnjeg lijevog ugla box-a +- Upotrebom [fonta tipa](PlayerTextDrawFont) 4 (sprite) i 5 (pregled modela) pretvara se X i Y ove funkcije iz kordinatama ugla u WIDTH i HEIGHT (offseti). +- The TextDraw box počinje sa 10.0 jedinica gore i 5.0 ulijevo po zadanom (TextDrawCreate kordinata). +- Ova funkcija definira područje na koje je moguće kliknuti za upotrebu s [PlayerTextDrawSetSelectable](PlayerTextDrawSetSelectable), bilo da je box prikazan ili ne. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md index 9cee452b9093..fe269cf3995c 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md @@ -43,7 +43,7 @@ public OnPlayerEnterVehicle(playerid, vehicleid, ispassanger) :::tip -Možete koristiti GetPlayerVehicleSeat u petlji kako biste provjerili da li neko mjesto zauzima bilo koji igrač. +Možete koristiti [GetPlayerVehicleSeat](GetPlayerVehicleSeat) u petlji kako biste provjerili da li neko mjesto zauzima bilo koji igrač. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RedirectDownload.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RedirectDownload.md index d44a4043668c..2720d912c09a 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RedirectDownload.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RedirectDownload.md @@ -13,7 +13,7 @@ Ova funkcija je dodana u SA-MP 0.3.DL R1 i ne radi u nižim verzijama! ## Deskripcija -Preusmjerite preuzimanje prilagođenog AddCharModel ili AddSimpleModel uređaja na određenu HTTP web stranicu. +Preusmjerite preuzimanje prilagođenog [AddCharModel](AddCharModel) ili [AddSimpleModel](AddSimpleModel) uređaja na određenu HTTP web stranicu. ## Parameters diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md index 2155c677b0c8..b94e2ab285b7 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md @@ -12,7 +12,7 @@ Uklanja standardni model San Andreasa za jednog igrača u određenom opsegu. | Ime | Deskripcija | | ------------- | ---------------------------------------------------------------------- | | playerid | ID igrača za ukloniti objekte. | -| modelid | Model za ukloniti. | +| modelid | [Model](https://models.open.mp/?cat=objects) za ukloniti. | | Float:fX | X kordinata oko koje će objekat biti obrisan. | | Float:fY | Y kordinata oko koje će objekat biti obrisan. | | Float:fZ | Z kordinata oko koje će objekat biti obrisan. | @@ -53,7 +53,8 @@ U SA-MP 0.3.7 možete koristiti -1 za Modelid za uklanjanje svih objekata unutar :::warning -Čini se da postoji ograničenje od oko 1000 linija/objekata. Zaobilazno rješenje nema. Kada uklonite isti predmet za igrača, oni će se srušiti. Obično se igrači sruše pri ponovnom povezivanju s serverom jer server uklanja zgrade na OnPlayerConnectu. +- Čini se da postoji ograničenje od oko 1000 linija/objekata. Zaobilazno rješenje nema. +- Kada uklonite isti predmet za igrača, oni će se srušiti. Obično se igrači sruše pri ponovnom povezivanju s serverom jer server uklanja zgrade na OnPlayerConnectu. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerAttachedObject.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerAttachedObject.md index 1a03a39ff289..47f1a2d4fbb9 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerAttachedObject.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerAttachedObject.md @@ -9,10 +9,10 @@ tags: ["player"] Ukloni prikvačeni objekat sa igrača. -| Ime | Deskripcija | -| -------- | ------------------------------------------------------------------ | -| playerid | ID igrača od kojeg treba ukloniti prikvačeni objekat. | -| index | Index objekta za ukloniti (postavljen sa SetPlayerAttachedObject). | +| Ime | Deskripcija | +| -------- | --------------------------------------------------------------------------------------------- | +| playerid | ID igrača od kojeg treba ukloniti prikvačeni objekat. | +| index | Index objekta za ukloniti (postavljen sa [SetPlayerAttachedObject](SetPlayerAttachedObject)). | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerFromVehicle.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerFromVehicle.md index c17504725487..15e231cf9511 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerFromVehicle.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerFromVehicle.md @@ -38,7 +38,7 @@ public OnPlayerStateChange(playerid, PLAYER_STATE:newstate, PLAYER_STATE:oldstat :::note - Izlazna animacija nije sinhronizirana za druge igrače. -- Ova funkcija neće raditi kada se koristi u OnPlayerEnterVehicle, jer igrač nije u vozilu kad se pozove povratni poziv. Umjesto toga koristite OnPlayerStateChange (pogledajte primjer dolje). +- Ova funkcija neće raditi kada se koristi u [OnPlayerEnterVehicle](../callbacks/OnPlayerEnterVehicle), jer igrač nije u vozilu kad se pozove povratni poziv. Umjesto toga koristite [OnPlayerStateChange](../callbacks/OnPlayerStateChange) (pogledajte primjer dolje). - Igrač se ne uklanja ako je u RC vozilu. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerMapIcon.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerMapIcon.md index 856a629aee4b..066c89009e2b 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerMapIcon.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerMapIcon.md @@ -7,12 +7,12 @@ tags: ["player"] ## Deskripcija -Uklanja ikonicu na mapi koja je prethodno postavljena za igrača koristeći SetPlayerMapIcon. +Uklanja ikonicu na mapi koja je prethodno postavljena za igrača koristeći [SetPlayerMapIcon](SetPlayerMapIcon). -| Ime | Deskripcija | -| -------- | ------------------------------------------------------------------- | -| playerid | ID igrača čija će ikonica biti uklonjena. | -| iconid | ID ikonice za ukloniti. Ovo je drugi parametar od SetPlayerMapIcon. | +| Ime | Deskripcija | +| -------- | --------------------------------------------------------------------------------------- | +| playerid | ID igrača čija će ikonica biti uklonjena. | +| iconid | ID ikonice za ukloniti. Ovo je drugi parametar od [SetPlayerMapIcon](SetPlayerMapIcon). | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ResetPlayerWeapons.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ResetPlayerWeapons.md index 26f8f772470d..5758ba8fcc6c 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ResetPlayerWeapons.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ResetPlayerWeapons.md @@ -34,7 +34,7 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::tip -Da biste uklonili pojedinačno oružje sa igrača, postavite njegovu municiju na 0 pomoću SetPlayerAmmo. +Da biste uklonili pojedinačno oružje sa igrača, postavite njegovu municiju na 0 pomoću [SetPlayerAmmo](SetPlayerAmmo). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md index 769490e06446..837cd8309020 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md @@ -15,12 +15,12 @@ Ova funkcija je dodana u SA-MP 0.3.7 R1 i ne radi u nižim verzijama! Hashira lozinku pomoću algoritma heširanja SHA-256. Uključuje salt. Izlaz je uvijek 256 bita, ili ekvivalent od 64 Pawn ćelija. -| Ime | Deskripcija | -| ------------ | ---------------------------------------------- | -| password[] | Lozinka za heširati. | -| salt[] | Salt za koristiti u heširanju. | -| ret_hash[] | Vraćeni heš u velikom heksadecimalnom sažetku. | -| ret_hash_len | Vraćeni heš u maksimalnoj dužini. | +| Ime | Deskripcija | +| ------------ | ----------------------------------------------------------------------------------- | +| password[] | Lozinka za heširati. | +| salt[] | [Salt](https://en.wikipedia.org/wiki/Salt_(cryptography)) za koristiti u heširanju. | +| ret_hash[] | Vraćeni heš u velikom heksadecimalnom sažetku. | +| ret_hash_len | Vraćeni heš u maksimalnoj dužini. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SelectObject.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SelectObject.md index c123b905a4c0..b955dfe10551 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SelectObject.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SelectObject.md @@ -7,7 +7,7 @@ tags: [] ## Deskripcija -Prikaži miš i dozvoli igraču da selektuje objekat. OnPlayerSelectObject je pozvan kada igrač selektuje objekat. +Prikaži miš i dozvoli igraču da selektuje objekat. [OnPlayerSelectObject](../callbacks/OnPlayerSelectObject) je pozvan kada igrač selektuje objekat. | Ime | Deskripcija | | -------- | ---------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md index c5f6232c9f82..298b3f6b112c 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md @@ -39,13 +39,15 @@ public OnPlayerConnect(playerid) :::tip -Ugradnju boja možete koristiti za više boja u poruci. Korištenje '-1' kao boje učinit će tekst bijelim (iz jednostavnog razloga što je -1, kada je predstavljen u heksadecimalnom zapisu, 0xFFFFFFFF). +- Ugradnju boja možete koristiti za više boja u poruci. +- Korištenje '-1' kao boje učinit će tekst bijelim (iz jednostavnog razloga što je -1, kada je predstavljen u heksadecimalnom zapisu, 0xFFFFFFFF). ::: :::warning -Ako je poruka duža od 144 znaka, neće se poslati. Skraćivanje se može koristiti da se to spriječi. Prikazivanje poruke u više redaka također će riješiti ovaj problem. Izbjegavajte upotrebu znaka postotka (ili specifikatora formata) u stvarnom tekstu poruke, a da ga pravilno ne izbjegnete (poput %%). U suprotnom će rezultirati padovima. +- Ako je poruka duža od 144 znaka, neće se poslati. Skraćivanje se može koristiti da se to spriječi. Prikazivanje poruke u više redaka također će riješiti ovaj problem. +- Izbjegavajte upotrebu znaka postotka (ili specifikatora formata) u stvarnom tekstu poruke, a da ga pravilno ne izbjegnete (poput %%). U suprotnom će rezultirati padovima. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessageToAll.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessageToAll.md index 9258dc437013..60b0eb7d9bb8 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessageToAll.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessageToAll.md @@ -7,7 +7,7 @@ tags: [] ## Deskripcija -Prikazuje poruku u chatu za sve igrače. Ovo je ekvivalent SendClientMessage za više igrača. +Prikazuje poruku u chatu za sve igrače. Ovo je ekvivalent [SendClientMessage](SendClientMessage) za više igrača. | Ime | Deskripcija | | --------------- | -------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md index 0cb5dd56fbd3..bb730347e501 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md @@ -34,7 +34,7 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::tip - Poruke smrti mogu se obrisati upotrebom važećeg ID-a igrača za `playerid` koji **nije povezan**. -- Da biste prikazali smrtnu poruku samo za jednog igrača, koristite SendDeathMessageToPlayer. +- Da biste prikazali smrtnu poruku samo za jednog igrača, koristite [SendDeathMessageToPlayer](SendDeathMessageToPlayer). - NPC-ove možete koristiti za stvaranje vlastitih razloga smrti. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendRconCommand.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendRconCommand.md index 5c9045011b8f..609ec1bc915d 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendRconCommand.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendRconCommand.md @@ -23,7 +23,7 @@ Ova funkcija uvijek returna (vraća) **1**. - Ne podržava **login**, zbog nedostatka `playerid` parametra. - 'password 0' će ukloniti lozinku servera ako je postavljena. -- Ova funkcija će rezultirati da se OnRconCommand pozove. +- Ova funkcija će rezultirati da se [OnRconCommand](../callbacks/OnRconCommand) pozove. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md index dcf8fed68740..553d54964922 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md @@ -15,10 +15,10 @@ Ova funkcija je dodana u SA-MP 0.3.7 i ne radi u nižim verzijama! Postavi smjer gledanja aktora. -| Ime | Deskripcija | -| ------- | ------------------------------------------------------------------------ | -| actorid | ID aktora za postaviti smjer gledanja. Returnovan/vraćen od CreateActor. | -| ang | Smjer gledanja za postaviti. | +| Ime | Deskripcija | +| ------- | --------------------------------------------------------------------------------------- | +| actorid | ID aktora za postaviti smjer gledanja. Returnovan/vraćen od [CreateActor](CreateActor). | +| ang | Smjer gledanja za postaviti. | ## Returns @@ -45,7 +45,7 @@ SetActorFacingAngle(MyActor, 180.0); :::note -Kada kreirate aktora pomoću CreateActor-a, odredite njegov okrenuti ugao/smjer gledanja. Ovu funkciju ne morate koristiti ako kasnije ne želite promijeniti njegov ugao/smjer gledanja okretanja. +Kada kreirate aktora pomoću [CreateActor](CreateActor)-a, odredite njegov okrenuti ugao/smjer gledanja. Ovu funkciju ne morate koristiti ako kasnije ne želite promijeniti njegov ugao/smjer gledanja okretanja. ::: 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 6942a49d40dd..039ec32d93cf 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 @@ -43,7 +43,7 @@ public OnGameModeInit() :::warning -- Jednom postavljen za neranjivog, aktor ne poziva OnPlayerGiveDamageActor. +- Jednom postavljen za neranjivog, aktor ne poziva [OnPlayerGiveDamageActor](../callbacks/OnPlayerGiveDamageActor). - Igračima će se stanje aktorove neranjivosti promijeniti samo kad im se to ponovno učita. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md index fdc23cae3cbd..804d5659bcda 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md @@ -15,12 +15,12 @@ Ova funkcija je dodana u SA-MP 0.3.7 i ne radi u nižim verzijama! Postavi poziciju aktora. -| Ime | Deskripcija | -| ------- | ------------------------------------------------------------------ | -| actorid | ID aktora za postaviti poziciju. Returnovan/vraćen od CreateActor. | -| X | X kordinata za pozicionirati aktora. | -| Y | Y kordinata za pozicionirati aktora. | -| Z | Z kordinata za pozicionirati aktora. | +| Ime | Deskripcija | +| ------- | --------------------------------------------------------------------------------- | +| actorid | ID aktora za postaviti poziciju. Returnovan/vraćen od [CreateActor](CreateActor). | +| X | X kordinata za pozicionirati aktora. | +| Y | Y kordinata za pozicionirati aktora. | +| Z | Z kordinata za pozicionirati aktora. | ## Returns @@ -47,7 +47,7 @@ SetActorPos(gMyActor, 1.0, 2.0, 3.0); :::note -Kada kreirate aktora pomoću CreateActor, vi odredite njegovu poziciju. Ovu funkciju ne trebate koristiti ako kasnije ne želite promijeniti njegov položaj. +Kada kreirate aktora pomoću [CreateActor](CreateActor), vi odredite njegovu poziciju. Ovu funkciju ne trebate koristiti ako kasnije ne želite promijeniti njegov položaj. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorVirtualWorld.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorVirtualWorld.md index dca0c7c3172b..5a970bb03aeb 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorVirtualWorld.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorVirtualWorld.md @@ -15,10 +15,10 @@ Ova funkcija je dodana u SA-MP 0.3.7 i ne radi u nižim verzijama! Postavi virtualni svijet za aktora. Samo igrači u istom virtualnom svijetu će ga vidjeti. -| Ime | Deskripcija | -| ------- | --------------------------------------------------------------------------- | -| actorid | ID aktora (returnovan/vraćen od CreateActor) za postaviti virtualni svijet. | -| vworld | Virtualni svijet za ubaciti aktora. | +| Ime | Deskripcija | +| ------- | ------------------------------------------------------------------------------------------ | +| actorid | ID aktora (returnovan/vraćen od [CreateActor](CreateActor)) za postaviti virtualni svijet. | +| vworld | Virtualni svijet za ubaciti aktora. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md index e234620f9592..8bbd2185427b 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md @@ -15,7 +15,7 @@ Zamijeni teksturu objekta sa teksturom drugog modela iz igre. | materialindex | Index materijala na objektu za zamijeniti (od 0 do 15) | | modelid | ID modela na kome se nalazi zamjenska tekstura. Koristite 0 za alfa. Koristite -1 za promjenu boje materijala bez mijenjanja postojeće teksture. | | txdname | Ime txd fatoteke koja sadrži zamjensku teksturu (koristi "none" ako nije potrebno) | -| texturename | Ime teksture za koristiti kao zamjensku (koristi "none" ako nije potrebno) | +| texturename | Ime [teksture](https://models.open.mp/?cat=textures) za koristiti kao zamjensku (koristi "none" ako nije potrebno) | | materialcolor | Boja objekta za postaviti, kao cijeli broj ili hex u **ARGB** formatu. Korištenjem **0** čuva trenutnu boju materijala. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectPos.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectPos.md index c80eb6d95bd6..a109083fef40 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectPos.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectPos.md @@ -7,14 +7,14 @@ tags: [] ## Deskripcija -Promijeni poziciju objekta. - -| Ime | Deskripcija | -| -------- | -------------------------------------------------------------------- | -| objectid | ID objekta za postaviti poziciju. Returnovan/vraćen od CreateObject. | -| Float:X | X kordinata za pozicionirati objekat. | -| Float:Y | Y kordinata za pozicionirati objekat. | -| Float:Z | Z kordinata za pozicionirati objekat. | +Promijeni poziciju [objekta](CreateObject). + +| Ime | Deskripcija | +| -------- | ------------------------------------------------------------------------------------ | +| objectid | ID objekta za postaviti poziciju. Returnovan/vraćen od [CreateObject](CreateObject). | +| Float:X | X kordinata za pozicionirati objekat. | +| Float:Y | Y kordinata za pozicionirati objekat. | +| Float:Z | Z kordinata za pozicionirati objekat. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarFloat.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarFloat.md index a5e4a937847e..5a844b2edc31 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarFloat.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarFloat.md @@ -42,7 +42,7 @@ public SavePos(playerid) :::note -Varijable se resetiraju tek nakon što se pozove OnPlayerDisconnect, tako da su vrijednosti i dalje dostupne u OnPlayerDisconnect. +Varijable se resetiraju tek nakon što se pozove [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect), tako da su vrijednosti i dalje dostupne u OnPlayerDisconnect. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarInt.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarInt.md index e2826beef308..19597c29b700 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarInt.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarInt.md @@ -34,7 +34,7 @@ printf("money: %d", GetPVarInt(playerid, "Money")); :::note -Varijable se resetiraju tek nakon što se pozove OnPlayerDisconnect, tako da su vrijednosti i dalje dostupne u OnPlayerDisconnect. +Varijable se resetiraju tek nakon što se pozove [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect), tako da su vrijednosti i dalje dostupne u OnPlayerDisconnect. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarString.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarString.md index 1d59934e4465..f85cba333cb2 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarString.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarString.md @@ -36,7 +36,7 @@ public OnPlayerConnect(playerid) :::note -Varijable se resetiraju tek nakon što se pozove OnPlayerDisconnect, tako da su vrijednosti i dalje dostupne u OnPlayerDisconnect. +Varijable se resetiraju tek nakon što se pozove [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect), tako da su vrijednosti i dalje dostupne u OnPlayerDisconnect. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAmmo.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAmmo.md index 31301a04bcb0..82a7bf7996f1 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAmmo.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAmmo.md @@ -37,7 +37,7 @@ Parametar 'weaponslot' je greška u kucanju u sa-mp include-u. Morate koristiti :::tip -Postavite streljivo na 0 da biste uklonili oružje iz inventara igrača. Imajte na umu da će se oružje i dalje prikazivati u GetPlayerWeaponData, iako sa 0 streljiva. +Postavite streljivo na 0 da biste uklonili oružje iz inventara igrača. Imajte na umu da će se oružje i dalje prikazivati u [GetPlayerWeaponData](GetPlayerWeaponData), iako sa 0 streljiva. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerArmedWeapon.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerArmedWeapon.md index b18c10d03e8b..21fa008fc991 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerArmedWeapon.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerArmedWeapon.md @@ -51,7 +51,7 @@ public OnPlayerStateChange(playerid, PLAYER_STATE:newstate, PLAYER_STATE:oldstat :::note -Ova funkcija _naoružava_ igrača oružjem koje **već ima**; ne _daje_ im novo oružje. Pogledajte GivePlayerWeapon. +Ova funkcija _naoružava_ igrača oružjem koje **već ima**; ne _daje_ im novo oružje. Pogledajte [GivePlayerWeapon](GivePlayerWeapon). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md index 1373269f7d25..b96c19aa5ede 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md @@ -49,7 +49,7 @@ public OnPlayerSpawn(playerid) :::note -Ova je funkcija odvojena od spremišta CreateObject / CreatePlayerObject. +Ova je funkcija odvojena od spremišta [CreateObject](CreateObject) / [CreatePlayerObject](CreatePlayerObject). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraLookAt.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraLookAt.md index 31df30f66f73..8f82c54499bc 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraLookAt.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraLookAt.md @@ -7,7 +7,7 @@ tags: ["player"] ## Deskripcija -Postavi smjer u kojem će gledati kamera igrača. Generalno namijenjeno korištenju u kombinaciji s SetPlayerCameraPos. +Postavi smjer u kojem će gledati kamera igrača. Generalno namijenjeno korištenju u kombinaciji s [SetPlayerCameraPos](SetPlayerCameraPos). | Ime | Deskripcija | | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -34,7 +34,7 @@ SetPlayerCameraLookAt(playerid, 324.34, 54.122, 173.35); :::warning -Korištenje funkcija kamere izravno nakon omogućavanja režima spectatora ne radi. +Korištenje funkcija kamere izravno nakon [omogućavanja režima spectatora](TogglePlayerSpectating) ne radi. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md index bd254c43c11e..268fe9b19464 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md @@ -32,13 +32,14 @@ SetPlayerCameraPos(playerid, 652.23, 457.21, 10.84); :::tip -Možda ćete morati koristiti SetPlayerCameraLookAt s ovom funkcijom da bis ispravno radila. Koristite SetCameraBehindPlayer da vratite kameru iza uređaja. +- Možda ćete morati koristiti [SetPlayerCameraLookAt](SetPlayerCameraLookAt) s ovom funkcijom da bis ispravno radila. +- Koristite [SetCameraBehindPlayer](SetCameraBehindPlayer) da vratite kameru iza uređaja. ::: :::warning -Korištenje funkcija kamere izravno nakon omogućavanja režima spectatora ne radi. +Korištenje funkcija kamere izravno nakon [omogućavanja režima spectatora](TogglePlayerSpectating) ne radi. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md index f7c40417c98c..70f8a84955e6 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md @@ -35,13 +35,14 @@ public OnPlayerText(playerid, text[]) :::note -Ne možete vidjeti svoje lične chat balončiće. Isto se dešava i sa prikavčenim 3D text labelom. +Ne možete vidjeti svoje lične chat balončiće. Isto se dešava i sa prikavčenim [3D text labelom](Attach3DTextLabelToPlayer). ::: :::tip -Ugradnju boja možete koristiti za više boja u poruci. Korištenje '-1' kao boje učinit će tekst bijelim (iz jednostavnog razloga što je -1, kada je predstavljen u heksadecimalnom zapisu, 0xFFFFFFFF). +- Ugradnju boja možete koristiti za više boja u poruci. +- Korištenje '-1' kao boje učinit će tekst bijelim (iz jednostavnog razloga što je -1, kada je predstavljen u heksadecimalnom zapisu, 0xFFFFFFFF). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md index 0c2cf3cc82d3..7b044390c805 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md @@ -7,7 +7,7 @@ tags: ["player", "checkpoint"] ## Deskripcija -Postavi checkpoint (crveni cilindar) za igrača. Također prikazuje crvenu bljeskalicu na radaru/mapi. Kada igrač uđe u checkpoint, poziva se OnPlayerEnterCheckpoint i određene akcije se mogu izvršiti. +Postavi checkpoint (crveni cilindar) za igrača. Također prikazuje crvenu bljeskalicu na radaru/mapi. Kada igrač uđe u checkpoint, poziva se [OnPlayerEnterCheckpoint](../callbacks/OnPlayerEnterCheckpoint) i određene akcije se mogu izvršiti. | Ime | Deskripcija | | ---------- | ------------------------------------ | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerColor.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerColor.md index 528fd8323185..dfd1c9500b9d 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerColor.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerColor.md @@ -32,8 +32,8 @@ SetPlayerColor(playerid, 4278190335); :::note -- Ova funkcija će promijeniti boju igrača za sve, čak i ako je boja igrača promijenjena pomoću SetPlayerMarkerForPlayer za bilo koji drugi igrač. -- Ako se koristi pod OnPlayerConnect, igrač koji utječe neće vidjeti boju u TAB izborniku. +- Ova funkcija će promijeniti boju igrača za sve, čak i ako je boja igrača promijenjena pomoću [SetPlayerMarkerForPlayer](SetPlayerMarkerForPlayer) za bilo koji drugi igrač. +- Ako se koristi pod [OnPlayerConnect](../callbacks/OnPlayerConnect), igrač koji utječe neće vidjeti boju u TAB izborniku. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md index 83056726d157..0cecb00a8e6e 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md @@ -44,7 +44,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -Ako je health/zdravlje igrača postavljeno na 0 ili minus vrijednost, oni će odmah umrijeti. Ako je zdravstveno stanje igrača ispod 10 ili više od 98303, traka zdravlja će treptati. +- Ako je health/zdravlje igrača postavljeno na 0 ili minus vrijednost, oni će odmah umrijeti. +- Ako je zdravstveno stanje igrača ispod 10 ili više od 98303, traka zdravlja će treptati. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerMapIcon.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerMapIcon.md index 5f67c103562f..285344308419 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerMapIcon.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerMapIcon.md @@ -41,13 +41,15 @@ public OnPlayerConnect(playerid) :::note -Ako koristite nevažeći tip markera, stvorit će se ID 1 (Bijeli kvadrat). Ako koristite ID ikone koji se već koristi, on će zamijeniti trenutnu ikonu karte pomoću tog ID-a. +- Ako koristite nevažeći tip markera, stvorit će se ID 1 (Bijeli kvadrat). +- Ako koristite ID ikone koji se već koristi, on će zamijeniti trenutnu ikonu karte pomoću tog ID-a. ::: :::warning -Možete imati samo 100 ikona mapa! Oznake tipa 1 (), 2 (), 4 () i 56 () uzrokovat će pad vaše igre ako ste tijekom pregledavanja karte omogućili legende karte. +- Možete imati samo 100 ikona mapa! +- Oznake tipa 1, 2, 4 i 56 uzrokovat će pad vaše igre ako ste tijekom pregledavanja karte omogućili legende karte. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerName.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerName.md index b008b1566e8b..6d3a7fdfbea6 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerName.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerName.md @@ -60,7 +60,7 @@ if (strcmp(cmdtext, "/superman", true) == 0) :::warning - Promjena imena igrača u isto ime, ali s različitim slučajevima slova (npr. "John" u "JOHN") neće uspjeti. -- Ako se koristi u OnPlayerConnect, novo ime **neće** biti prikazano za povezujećeg igrača. +- Ako se koristi u [OnPlayerConnect](../callbacks/OnPlayerConnect), novo ime **neće** biti prikazano za povezujećeg igrača. - Prosljeđivanje null niza kao novog imena srušit će server. - Imena igrača mogu imati do **24** znaka kada se koristi ova funkcija, ali kada se pridružuju serveru iz pregledača servera SA-MP, imena igrača ne smiju biti veća od **20** i manja od **3** znaka (server će odbiti ulazak). Ovo omogućava dodavanje 4 znaka kada koristite SetPlayerName. diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md index 4026d734d99b..6a607abcee10 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md @@ -16,7 +16,7 @@ Zamijeni teksturu player-objekta sa teksturom drugog modela u igri. | materialindex | Index materijala na objektu za zamijeniti (od 0 do 15) | | modelid | ID modela na kome se nalazi zamjenska tekstura. Koristite 0 za alfa. Koristite -1 za promjenu boje materijala bez mijenjanja postojeće teksture. | | txdname | Ime txd fatoteke koja sadrži zamjensku teksturu (koristi "none" ako nije potrebno) | -| texturename | Ime teksture za koristiti kao zamjensku (koristi "none" ako nije potrebno) | +| texturename | Ime [teksture](https://models.open.mp/?cat=textures) za koristiti kao zamjensku (koristi "none" ako nije potrebno) | | materialcolor | Boja objekta za postaviti, kao cijeli broj ili hex u **ARGB formatu**. Korištenjem **0** čuva trenutnu boju materijala. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectPos.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectPos.md index c0bd7f1f1a70..ad41a8f77a09 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectPos.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectPos.md @@ -9,13 +9,13 @@ tags: ["player"] Postavlja poziciju player-objekta u navedenim kordinatama. -| Ime | Deskripcija | -| -------- | --------------------------------------------------------------------------------- | -| playerid | ID čijem će se player-objektu promijeniti pozicija. | -| objectid | ID player-objekta za postaviti poziciju. Returnovan/vraćen od CreatePlayerObject. | -| Float:X | X kordinata za staviti objekat. | -| Float:Y | Y kordinata za staviti objekat. | -| Float:Z | Z kordinata za staviti objekat. | +| Ime | Deskripcija | +| -------- | ------------------------------------------------------------------------------------------------------- | +| playerid | ID čijem će se player-objektu promijeniti pozicija. | +| objectid | ID player-objekta za postaviti poziciju. Returnovan/vraćen od [CreatePlayerObject](CreatePlayerObject). | +| Float:X | X kordinata za staviti objekat. | +| Float:Y | Y kordinata za staviti objekat. | +| Float:Z | Z kordinata za staviti objekat. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPos.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPos.md index 150d7378a17a..2ea51201b529 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPos.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPos.md @@ -47,7 +47,7 @@ Korištenje ove funkcije na igraču koji je u vozilu odmah će ga ukloniti iz vo :::tip -Kada postavljate položaj igrača u enterijer, mora se postaviti i njegov enterijer. +Kada postavljate položaj igrača u enterijer, mora se postaviti i [njegov enterijer](SetPlayerInterior). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPosFindZ.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPosFindZ.md index a1044c1eeb01..f1d05ca5c238 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPosFindZ.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPosFindZ.md @@ -32,7 +32,7 @@ SetPlayerPosFindZ(playerid, 1234.5, 1234.5, 1000.0); :::warning -Ova funkcija ne radi ako su nove kordinate mnogo daleko od pozicije na kojima je igrač trenutno. Z visina će biti 0 što će igrača u većini slučajeva staviti pod zemlju. Vrlo je preporučljivo da koristite MapAndreas ili ColAndreas plugine umjesto ovoga. +Ova funkcija ne radi ako su nove kordinate mnogo daleko od pozicije na kojima je igrač trenutno. Z visina će biti 0 što će igrača u većini slučajeva staviti pod zemlju. Vrlo je preporučljivo da koristite [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) ili [ColAndreas](https://github.com/Pottus/ColAndreas) plugine umjesto ovoga. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerRaceCheckpoint.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerRaceCheckpoint.md index 78740c9dc3dd..cd437a1d56f4 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerRaceCheckpoint.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerRaceCheckpoint.md @@ -7,7 +7,7 @@ tags: ["player", "checkpoint", "racecheckpoint"] ## Deskripcija -Kreira race (trkački) checkpoint. Kada igrač uđe u njega, callback OnPlayerEnterRaceCheckpoint se poziva. +Kreira race (trkački) checkpoint. Kada igrač uđe u njega, callback [OnPlayerEnterRaceCheckpoint](../callbacks/OnPlayerEnterRaceCheckpoint) se poziva. | Ime | Deskripcija | | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md index 3d551b72c6db..6d2137b8d7bb 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md @@ -92,9 +92,9 @@ SetPlayerSkinFix(playerid, skinid) **Poznati Bug(ovi):** -- Ako je igračeva koža postavljena kada čuči, u vozilu ili izvodi određene animacije, postat će smrznuti ili na neki drugi način uklonjeni. To se može popraviti pomoću TogglePlayerControllable. Igrači se mogu otkriti kako su čučali preko GetPlayerSpecialAction (SPECIAL_ACTION_DUCK). +- Ako je igračeva koža postavljena kada čuči, [u vozilu](IsPlayerInAnyVehicle) ili izvodi određene animacije, postat će smrznuti ili na neki drugi način uklonjeni. To se može popraviti pomoću [TogglePlayerControllable](TogglePlayerControllable). Igrači se mogu otkriti kako su čučali preko [GetPlayerSpecialAction](GetPlayerSpecialAction) (SPECIAL_ACTION_DUCK). - Ostali igrači oko igrača mogu se srušiti ako je u vozilu ili ako ulazi/izlazi iz vozila. -- Postavljanje kože igrača kada je mrtav može srušiti igrače oko njega. +- Postavljanje kože igrača kada je [mrtav](../callbacks/OnPlayerDeath) može srušiti igrače oko njega. - Prekidi sjedeći na biciklima. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md index 38f5b10db08b..108949715bac 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md @@ -33,7 +33,7 @@ public OnPlayerSpawn(playerid) :::note -- Igrači ne mogu oštetiti / ubiti igrače iz istog tima, osim ako nožem ne prerežu grkljan. Od SA-MP 0.3x, igrači takođe ne mogu oštetiti vozila koja vozi igrač iz istog tima. To se može omogućiti pomoću EnableVehicleFriendlyFire. +- Igrači ne mogu oštetiti / ubiti igrače iz istog tima, osim ako nožem ne prerežu grkljan. Od SA-MP 0.3x, igrači takođe ne mogu oštetiti vozila koja vozi igrač iz istog tima. To se može omogućiti pomoću [EnableVehicleFriendlyFire](EnableVehicleFriendlyFire). - 255 (ili NO_TEAM) je zadani tim koji može pucati na druge igrače, a ne na 0. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTime.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTime.md index 6496b7375376..caa4df168016 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTime.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTime.md @@ -7,7 +7,7 @@ tags: ["player"] ## Deskripcija -Postavlja vrijeme igre za igrača. Ako je sat igrača uključen (TogglePlayerClock) prikazano vrijeme će se automatski ažurirati. +Postavlja vrijeme igre za igrača. Ako je sat igrača uključen ([TogglePlayerClock](TogglePlayerClock)) prikazano vrijeme će se automatski ažurirati. | Ime | Deskripcija | | -------- | ------------------------------------ | @@ -32,7 +32,7 @@ SetPlayerTime(playerid, 0, 0); // Ponoć :::note -Korištenje ove funkcije unutar OnPlayerConnect neće raditi. +Korištenje ove funkcije unutar [OnPlayerConnect](../callbacks/OnPlayerConnect) neće raditi. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md index 72f0e9a7ec43..1d072679df89 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md @@ -36,7 +36,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -Ako je omogućen TogglePlayerClock, vrijeme će se polako mijenjati s vremenom, umjesto da se promijeni trenutno. U igri postoje samo važeći 21 vremenski ID (0 - 20), ali igra nema bilo kakav oblik provjere dometa. +- Ako je omogućen [TogglePlayerClock](TogglePlayerClock), vrijeme će se polako mijenjati s vremenom, umjesto da se promijeni trenutno. +- U igri postoje samo važeći 21 vremenski ID (0 - 20), ali igra nema bilo kakav oblik provjere dometa. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetSpawnInfo.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetSpawnInfo.md index b2a3aa87e18c..aa704780b6ba 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetSpawnInfo.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetSpawnInfo.md @@ -9,21 +9,21 @@ tags: [] Ova funkcija se može koristiti za promijeniti spawn informacije određenog igrača. Ona omogućava da automatski postaviš nekome spawn oružje, njihov tim, skin ili spawn poziciju, normalno se koristi u slučaju miniigara ili automatskih spawn sistema. Ova funkcija je sigurnija od crasha u odnosu na SetPlayerSkin u OnPlayerSpawn i/ili OnPlayerRequestClass, iako je ovo ispravljeno u 0.2. -| Ime | Deskripcija | -| -------------- | --------------------------------------------------------- | -| playerid | ID igrača kojem želite postaviti spawn informacije. | -| team | Team-ID odabranog igrača. | -| skin | Skin s kojim će se igrač spawnovati. | -| Float:X | X-kordinata igračeve spawn pozicije. | -| Float:Y | Y-kordinata igračeve spawn pozicije. | -| Float:Z | Z-kordinata igračeve spawn pozicije. | -| Float:rotation | Smjer u kojem igrač treba da gleda nakon što se spawnuje. | -| weapon1 | Prvo spawn-oružje za igrača. | -| weapon1_ammo | Količina streljiva za primarni spawnweapon. | -| weapon2 | Drugo spawn-oružje za igrača. | -| weapon2_ammo | Količina streljiva za sekundarni spawnweapon. | -| weapon3 | Treće spawn-oružje za igrača. | -| weapon3_ammo | Količina streljiva za treći spawnweapon. | +| Ime | Deskripcija | +| -------------- | ---------------------------------------------------------- | +| playerid | ID igrača kojem želite postaviti spawn informacije. | +| team | Team-ID odabranog igrača. | +| skin | [Skin](../resources/skins) s kojim će se igrač spawnovati. | +| Float:X | X-kordinata igračeve spawn pozicije. | +| Float:Y | Y-kordinata igračeve spawn pozicije. | +| Float:Z | Z-kordinata igračeve spawn pozicije. | +| Float:rotation | Smjer u kojem igrač treba da gleda nakon što se spawnuje. | +| weapon1 | Prvo spawn-oružje za igrača. | +| weapon1_ammo | Količina streljiva za primarni spawnweapon. | +| weapon2 | Drugo spawn-oružje za igrača. | +| weapon2_ammo | Količina streljiva za sekundarni spawnweapon. | +| weapon3 | Treće spawn-oružje za igrača. | +| weapon3_ammo | Količina streljiva za treći spawnweapon. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md index 00a1f0b42735..4b9a3369e9c5 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md @@ -9,13 +9,13 @@ tags: [] Postavlja tajmer za pozivanje funkcije nakon navedenog intervala. Ova varijanta ('Ex') može proslijediti parametre (kao npr playerID) funkciji. -| Ime | Deskripcija | -| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- | -| funcname[] | Ime javne funkcije koju treba pozvati kada istekne tajmer. | -| interval | Interval u milisekundama (1 sekunda = 1000 MS). | -| repeating | Boolean (true/false (ili 1/0)) koji navodi treba li tajmer pozivati više puta (može se zaustaviti samo pomoću KillTimer) ili samo jednom. | -| format[] | Poseban format koji označava vrste vrijednosti koje će tajmer proći. | -| \ \{Float, \_}:... | Neograničeni broj argumenata koje treba proslijediti (mora slijediti format naveden u prethodnom parametru). | +| Ime | Deskripcija | +| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | +| funcname[] | Ime javne funkcije koju treba pozvati kada istekne tajmer. | +| interval | Interval u milisekundama (1 sekunda = 1000 MS). | +| repeating | Boolean (true/false (ili 1/0)) koji navodi treba li tajmer pozivati više puta (može se zaustaviti samo pomoću [KillTimer](KillTimer)) ili samo jednom. | +| format[] | Poseban format koji označava vrste vrijednosti koje će tajmer proći. | +| \ \{Float, \_}:... | Neograničeni broj argumenata koje treba proslijediti (mora slijediti format naveden u prethodnom parametru). | ## Returns @@ -69,7 +69,7 @@ Intervali tajmera nisu tačni (otprilike 25% popusta). Postoje ispravci dostupni :::tip -- Varijable ID-a tajmera trebaju se inicijalizirati na -1 kada mogu kako bi se smanjila mogućnost slučajnog ubijanja ID-a tajmera 0 greškom (ili upotrijebite ID tajmera 0 gore na početku OnGameModeInit). +- Varijable ID-a tajmera trebaju se inicijalizirati na -1 kada mogu kako bi se smanjila mogućnost slučajnog ubijanja ID-a tajmera 0 greškom (ili upotrijebite ID tajmera 0 gore na početku [OnGameModeInit](../callbacks/OnGameModeInit)). - Funkcija koju treba pozvati mora biti javna. To znači da se mora proslijediti. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md index 65e5d0171b10..98a93993d7c9 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md @@ -32,8 +32,8 @@ SetVehicleNumberPlate(vehicleid, "ABCD 123"); :::note -- Ova funkcija nema internu provjeru grešaka. -- Da bi promjene stupile na snagu, vozilo se mora ponovno mrijestiti ili reproducirati. +- Ova funkcija nema internu provjeru grešaka. Ne dodjeljujte prilagođene registarske tablice vozilima bez tablica (čamci, avioni, itd.) Jer će to rezultirati nekim nepotrebnim vremenom obrade na klijentu. +- Da bi promjene stupile na snagu, vozilo se mora [ponovno mrijestiti](SetVehicleToRespawn) ili reproducirati. - Na svakoj tablici postoji ograničenje od 32 znaka (uključujući ugrađene boje). - Dužina teksta koja se može vidjeti na pločici s brojevima je oko 9 do 10 znakova, a više znakova uzrokovat će razdvajanje teksta. - Neki modeli vozila imaju unazad registarsku tablicu, npr. Boxville (498) (kao alternativu ovom vozilu možete koristiti model vozila ID 609, koji je duplicirani Boxville (zvan Boxburg), ali s redovnom tablicom). @@ -42,8 +42,7 @@ SetVehicleNumberPlate(vehicleid, "ABCD 123"); :::tip -- Ne dodjeljujte prilagođene registarske tablice vozilima bez tablica (čamci, avioni, itd.) Jer će to rezultirati nekim nepotrebnim vremenom obrade na klijentu. -- Na tekstu pločice možete koristiti ugrađivanje boja. +Na tekstu pločice možete koristiti ugrađivanje boja. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsEx.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsEx.md index eee6322a2818..053fff68187d 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsEx.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsEx.md @@ -83,7 +83,8 @@ public DisableVehicleAlarm(vehicleid) :::note -Alarm se neće resetirati po završetku, morat ćete ga resetirati sami pomoću ove funkcije. Svjetla rade i danju (samo kada je omogućen ManualVehicleEngineAndLights). +- Alarm se neće resetirati po završetku, morat ćete ga resetirati sami pomoću ove funkcije. +- Svjetla rade i danju (samo kada je omogućen ManualVehicleEngineAndLights). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsForPlayer.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsForPlayer.md index c0c7a6fa9902..6bf3f996a71b 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsForPlayer.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsForPlayer.md @@ -106,13 +106,13 @@ public OnVehicleStreamIn(vehicleid, forplayerid) :::note -Vozila se moraju respawnovati kako bi se 'objective' uklonio. +Vozila se moraju [respawnovati](SetVehicleToRespawn) kako bi se 'objective' uklonio. ::: :::warning -Od 0.3a verzije morati ćete ponovo primijeniti ovu funkciju kada je OnVehicleStreamIn pozvan. +Od 0.3a verzije morati ćete ponovo primijeniti ovu funkciju kada je [OnVehicleStreamIn](../callbacks/OnVehicleStreamIn) pozvan. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md index ec2ebc06db71..867bd3a00828 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md @@ -31,7 +31,8 @@ if (!strcmp(cmdtext, "/sandstorm", true)) :::note -Ako je omogućen TogglePlayerClock, vrijeme će se polahko mijenjati s vremenom, umjesto da se promijeni trenutno. U igri postoje samo važeći 21 vremenski ID (0 - 20), ali igra nema bilo kakav oblik provjere dometa. +- Ako je omogućen [TogglePlayerClock](TogglePlayerClock), vrijeme će se polahko mijenjati s vremenom, umjesto da se promijeni trenutno. +- U igri postoje samo važeći 21 vremenski ID (0 - 20), ali igra nema bilo kakav oblik provjere dometa. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetWorldTime.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetWorldTime.md index 4630332b8dc6..27559694bf0c 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetWorldTime.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetWorldTime.md @@ -28,13 +28,13 @@ SetWorldTime(12); :::note -Ova je funkcija relevantna samo za igrače koji ne koriste sat koji prolazi - pogledajte TogglePlayerClock. +Ova je funkcija relevantna samo za igrače koji ne koriste sat koji prolazi - pogledajte [TogglePlayerClock](TogglePlayerClock). ::: :::tip -Da biste postavili minute i/ili postavili vrijeme za pojedine igrače, pogledajte SetPlayerTime. +Da biste postavili minute i/ili postavili vrijeme za pojedine igrače, pogledajte [SetPlayerTime](SetPlayerTime). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ShowMenuForPlayer.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ShowMenuForPlayer.md index d0a9b483b7d1..708ed253eff5 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ShowMenuForPlayer.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ShowMenuForPlayer.md @@ -7,12 +7,12 @@ tags: ["player", "menu"] ## Deskripcija -Prikazuje prethodno kreirani meni za igrača. +Prikazuje [prethodno kreirani](CreateMenu) meni za igrača. -| Ime | Deskripcija | -| -------- | -------------------------------------------------------- | -| menuid | ID menija za prikazati. Returnovan/vraćen od CreateMenu. | -| playerid | ID igrača kojem će meni biti prikazan. | +| Ime | Deskripcija | +| -------- | ---------------------------------------------------------------------- | +| menuid | ID menija za prikazati. Returnovan/vraćen od [CreateMenu](CreateMenu). | +| playerid | ID igrača kojem će meni biti prikazan. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ShowNameTags.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ShowNameTags.md index 3616bc62121b..39ad10c1905f 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ShowNameTags.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ShowNameTags.md @@ -32,7 +32,7 @@ public OnGameModeInit() :::warning -Ova funkcija se može koristiti samo u OnGameModeInit. Za ostala vremena, pogledajte ShowPlayerNameTagForPlayer. +Ova funkcija se može koristiti samo u [OnGameModeInit](../callbacks/OnGameModeInit). Za ostala vremena, pogledajte [ShowPlayerNameTagForPlayer](ShowPlayerNameTagForPlayer). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md index 2bdce770fa1e..f05371c645ff 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md @@ -7,7 +7,7 @@ tags: ["player"] ## Deskripcija -Omogućava/onemogućava markere/oznake igrača (bljeskalice na radaru). Mora se koristiti kada server počne (OnGameModeInit). Za ostala vremena, pogledaj SetPlayerMarkerForPlayer. +Omogućava/onemogućava markere/oznake igrača (bljeskalice na radaru). Mora se koristiti kada server počne ([OnGameModeInit](../callbacks/OnGameModeInit)). Za ostala vremena, pogledaj [SetPlayerMarkerForPlayer](SetPlayerMarkerForPlayer). | Ime | Deskripcija | | ---- | --------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -39,7 +39,7 @@ public OnGameModeInit() :::tip -Takođe je moguće postaviti boju igrača na boju koja ima potpunu prozirnost (bez alfa vrijednosti). To omogućava prikazivanje markera/oznaka po igraču. +Takođe je moguće [postaviti boju igrača](SetPlayerColor) na boju koja ima potpunu prozirnost (bez alfa vrijednosti). To omogućava prikazivanje markera/oznaka po igraču. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerNameTagForPlayer.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerNameTagForPlayer.md index 947d6cc0258f..29f398a8e3db 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerNameTagForPlayer.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerNameTagForPlayer.md @@ -7,7 +7,7 @@ tags: ["player"] ## Deskripcija -Ova funkcija ti omogućava da omogućite/onemogućite iscrtavanje nametag-ova, healthbar-pva i armoa igrača koji se prikazuju iznad njegove glave. Za upotrebu slične funkcije poput ove na globalnom nivou, funkcija ShowNameTags. +Ova funkcija ti omogućava da omogućite/onemogućite iscrtavanje nametag-ova, healthbar-pva i armoa igrača koji se prikazuju iznad njegove glave. Za upotrebu slične funkcije poput ove na globalnom nivou, funkcija [ShowNameTags](ShowNameTags). | Ime | Deskripcija | | ------------ | ------------------------------------------------- | @@ -40,7 +40,7 @@ if (strcmp("/nameoff", cmdtext, true) == 0) :::warning -ShowNameTags mora biti postavljen na 1 da bi bilo moguće prikazati name tagove sa ShowPlayerNameTagForPlayer, to znači da u slučaju da bude efikasno moraš da izvršiš funkciju: ShowPlayerNameTagForPlayer(forplayerid, playerid, 0) ispred vremena (OnPlayerStreamIn je dobro mjesto). +[ShowNameTags](ShowNameTags) mora biti postavljen na 1 da bi bilo moguće prikazati name tagove sa ShowPlayerNameTagForPlayer, to znači da u slučaju da bude efikasno moraš da izvršiš funkciju: `ShowPlayerNameTagForPlayer(forplayerid, playerid, 0)` ispred vremena (OnPlayerStreamIn je dobro mjesto). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/StopObject.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/StopObject.md index 252d01820f53..fa8f60b2e4a2 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/StopObject.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/StopObject.md @@ -7,7 +7,7 @@ tags: [] ## Deskripcija -Zaustavi objekat koji se kreće nakon što se MoveObject koristio. +Zaustavi objekat koji se kreće nakon što se [MoveObject](MoveObject) koristio. | Ime | Deskripcija | | -------- | ------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/StopPlayerObject.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/StopPlayerObject.md index 137c80685814..cea3928d0ac5 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/StopPlayerObject.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/StopPlayerObject.md @@ -7,7 +7,7 @@ tags: ["player"] ## Deskripcija -Zaustavi player-object koji se kreće nakon što se MovePlayerObject koristio. +Zaustavi player-object koji se kreće nakon što se [MovePlayerObject](MovePlayerObject) koristio. | Ime | Deskripcija | | -------- | ---------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/StopRecordingPlayerData.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/StopRecordingPlayerData.md index ca3e4133b5a6..b77d2bdeceec 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/StopRecordingPlayerData.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/StopRecordingPlayerData.md @@ -7,7 +7,7 @@ tags: ["player"] ## Deskripcija -Zaustavlja sve snimke započete sa StartRecordingPlayerData za određenog igrača. +Zaustavlja sve snimke započete sa [StartRecordingPlayerData](StartRecordingPlayerData) za određenog igrača. | Ime | Deskripcija | | -------- | ---------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawAlignment.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawAlignment.md index 1aac90791369..a27760aa7464 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawAlignment.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawAlignment.md @@ -35,8 +35,8 @@ public OnGameModeInit() :::note -- Za poravnanje 2 (centrirano) x i y vrijednosti TextSize-a treba zamijeniti, pogledaj zabilješke na TextDrawTextSize, zakođer pozicija kordinata postaje pozicija centra textdrawa a ne lijevi/gornji rubovi. - Ako je textdraw već prikazan, on mora biti ponovno prikazan (TextDrawShowForAll/TextDrawShowForPlayer) kako bi se prikazale promjene ove funkcije. +- Za poravnanje 2 (centrirano) x i y vrijednosti TextSize-a treba zamijeniti, pogledaj zabilješke na [TextDrawTextSize](TextDrawTextSize), zakođer pozicija kordinata postaje pozicija centra textdrawa a ne lijevi/gornji rubovi. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md index 0538fe5e700b..f36852b5fe39 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md @@ -7,7 +7,7 @@ tags: ["textdraw"] ## Deskripcija -Prilagođava boju pozadine područja za textdraw (obris / sjena - NE box. Za boju boxa, pogledajte TextDrawBoxColor). +Prilagođava boju pozadine područja za textdraw (obris / sjena - NE box. Za boju boxa, pogledajte [TextDrawBoxColor](TextDrawBoxColor)). | Ime | Deskripcija | | ----- | ---------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md index 57b3db72d0f4..88406cb19795 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md @@ -46,7 +46,7 @@ public OnPlayerConnect(playerid) :::note - X, Y kordinata je gornja lijeva kordinata za područje textdrawa na osnovu 640x480 "platna" (bez obzira na razlučivost zaslona). Ako planirate koristiti TextDrawAlignment s poravnanjem 3 (desno), kordinata x, Y je gornja desna kordinata za crtanje teksta. -- Ova funkcija samo KREIRA izvlačenje teksta, za prikaz morate koristiti TextDrawShowForPlayer ili TextDrawShowForAll. +- Ova funkcija samo KREIRA izvlačenje teksta, za prikaz morate koristiti [TextDrawShowForPlayer](TextDrawShowForPlayer) ili [TextDrawShowForAll](TextDrawShowForAll). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawDestroy.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawDestroy.md index 79e80c77e9b7..933b1d3b6c8d 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawDestroy.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawDestroy.md @@ -9,9 +9,9 @@ tags: ["textdraw"] Uništava prethodno kreirani textdraw. -| Ime | Deskripcija | -| ---- | -------------------------------------------------------------- | -| text | ID textdrawa za uništiti. Returnovan/vraćen od TextDrawCreate. | +| Ime | Deskripcija | +| ---- | -------------------------------------------------------------------------------- | +| text | ID textdrawa za uništiti. Returnovan/vraćen od [TextDrawCreate](TextDrawCreate). | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawFont.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawFont.md index 27124a0c21f6..b1dd732d4e5b 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawFont.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawFont.md @@ -9,10 +9,10 @@ tags: ["textdraw"] Mijenja font teksta. -| Ime | Deskripcija | -| ---- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| text | Textdraw za izmijeniti. | -| font | Postoje četiri stila fonrova koji su prikazani dole. Font vrijednosti **4** precizira da je to txd sprite; **5** precizira da je ovo textdraw koji može prikazati pregled modela. Vrijednost fonta veća od 5 se neće prikazati, a sve više od 16 će crashovati klijent. | +| Ime | Deskripcija | +| ---- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| text | Textdraw za izmijeniti. | +| font | Postoje četiri stila fonrova koji su prikazani dole. Font vrijednosti **4** precizira da je to txd sprite; **5** precizira da je ovo textdraw koji može prikazati [pregled modela](TextDrawSetPreviewModel). Vrijednost fonta veća od 5 se neće prikazati, a sve više od 16 će crashovati klijent. | **Dostupni stilovi:** ![Available Styles](https://assets.open.mp/assets/images/textdraws/Textdraw_font_styles.png) diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawHideForAll.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawHideForAll.md index 6027b9606937..78a54e54c2b3 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawHideForAll.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawHideForAll.md @@ -9,9 +9,9 @@ tags: ["textdraw"] Sakriva textdraw za sve igrače. -| Ime | Deskripcija | -| ---- | -------------------------------------------------------------- | -| text | ID textdrawa za sakriti (returnovan/vraćen od TextDrawCreate). | +| Ime | Deskripcija | +| ---- | -------------------------------------------------------------------------------- | +| text | ID textdrawa za sakriti (returnovan/vraćen od [TextDrawCreate](TextDrawCreate)). | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md index d6244923f1cf..cbbf6c0e8718 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md @@ -36,8 +36,8 @@ public OnGameModeInit() :::tip -- Kada ovu funkciju koristite čisto da biste utjecali na box TextDrawa, pomnožite 'Y' s 0.135 da biste pretvorili u mjerenja nalik TextDrawTextSize. **Savjet**: Lakše je i izuzetno precizno koristiti **LD_SPAC:white** sprit za samo crtanje boxa, TextDrawTextSize će imati redovite pomake. - Ukoliko želite promijeniti veličinu slova textdrawa koji je već prikazan, ne morate ga ponovno kreirati. Prosto koristite TextDrawShowForPlayer/TextDrawShowForAll nakon uređivanja i promjena će biti vidljiva. +- Kada ovu funkciju koristite čisto da biste utjecali na box TextDrawa, pomnožite 'Y' s 0.135 da biste pretvorili u mjerenja nalik [TextDrawTextSize](TextDrawTextSize). **Savjet**: Lakše je i izuzetno precizno koristiti **LD_SPAC:white** sprit za samo crtanje boxa, TextDrawTextSize će imati redovite pomake. - Fontovi izgledaju najbolje sa X naprema Y rastojanju od 1 do 4 (npr. ako je x 0.5 onda bi y trebao biti 2). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetOutline.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetOutline.md index 97dedc0b8869..9a997cb3320b 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetOutline.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetOutline.md @@ -7,7 +7,7 @@ tags: ["textdraw"] ## Deskripcija -Postavlja debljinu outline-a od texta u textdrawu. TextDrawBackgroundColor se može koristiti kako biste promijenili boju. +Postavlja debljinu outline-a od texta u textdrawu. [TextDrawBackgroundColor](TextDrawBackgroundColor) se može koristiti kako biste promijenili boju. | Ime | Deskripcija | | ---- | -------------------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetProportional.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetProportional.md index 2a248ab8fd7b..a746e4a477d9 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetProportional.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetProportional.md @@ -35,7 +35,8 @@ public OnGameModeInit() :::tip -Proporcionalnost je po zadanim postavkama postavljena na 1, mogli biste preskočiti ovu funkciju ako ne želite da je onemogućite. Ukoliko želite promijeniti proporcionalnost textdrawa koji je već prikazan, ne morate ga ponovno kreirati. Prosto koristite TextDrawShowForPlayer/TextDrawShowForAll nakon uređivanja i promjena će biti vidljiva. +- Proporcionalnost je po zadanim postavkama postavljena na 1, mogli biste preskočiti ovu funkciju ako ne želite da je onemogućite. +- Ukoliko želite promijeniti proporcionalnost textdrawa koji je već prikazan, ne morate ga ponovno kreirati. Prosto koristite TextDrawShowForPlayer/TextDrawShowForAll nakon uređivanja i promjena će biti vidljiva. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForAll.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForAll.md index 705707d525d6..e3c6287f2ccf 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForAll.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForAll.md @@ -9,9 +9,9 @@ tags: ["textdraw"] Prikazuje textdraw svim igračima. -| Ime | Deskripcija | -| ---- | --------------------------------------------------------------- | -| text | ID textdrawa za prikazati. Returnovan/vraćen od TextDrawCreate. | +| Ime | Deskripcija | +| ---- | --------------------------------------------------------------------------------- | +| text | ID textdrawa za prikazati. Returnovan/vraćen od [TextDrawCreate](TextDrawCreate). | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForPlayer.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForPlayer.md index 9e4c771a12ee..128890b33282 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForPlayer.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForPlayer.md @@ -7,12 +7,12 @@ tags: ["player", "textdraw"] ## Deskripcija -Prikazuje textdraw za određenog igrača. +Prikazuje [textdraw](TextDrawCreate) za određenog igrača. -| Ime | Deskripcija | -| -------- | --------------------------------------------------------------- | -| playerid | ID igrača za prikazati textdraw. | -| text | ID textdrawa za prikazati. Returnovan/vraćen od TextDrawCreate. | +| Ime | Deskripcija | +| -------- | --------------------------------------------------------------------------------- | +| playerid | ID igrača za prikazati textdraw. | +| text | ID textdrawa za prikazati. Returnovan/vraćen od [TextDrawCreate](TextDrawCreate). | ## Returns @@ -34,7 +34,7 @@ public OnPlayerConnect(playerid) :::tip -Ako će samo jedan igrač vidjeti textdraw, bilo bi pametno da koristite player-textdraw-ove. Ovo je također koristno za textdraw-ove koji moraju da prikažu informacije koje su posebne za svakog igrača posebno. +Ako će samo jedan igrač vidjeti textdraw, bilo bi pametno da koristite [player-textdraw-ove](CreatePlayerTextDraw). Ovo je također koristno za textdraw-ove koji moraju da prikažu informacije koje su posebne za svakog igrača posebno. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md index b33e30c0aa17..6418c6c9f66f 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md @@ -7,7 +7,7 @@ tags: ["textdraw"] ## Deskripcija -Promijeni veličinu textdrawa (veličinu boxa ako je TextDrawUseBox omogućen i/ili klikljivo područje za koristiti sa TextDrawSetSelectable). +Promijeni veličinu textdrawa (veličinu boxa ako je [TextDrawUseBox](TextDrawUseBox) omogućen i/ili klikljivo područje za koristiti sa [TextDrawSetSelectable](TextDrawSetSelectable)). | Ime | Deskripcija | | ------- | ----------------------------------------------------------------------------------- | @@ -36,16 +36,19 @@ public OnGameModeInit() :::note -- X i y imaju različita značenja s različitim vrijednostima TextDrawAlignment: 1 (lijevo): krajnji su desni ugao boxa, apsolutna kordinatama. 2 (sredina): trebaju se okrenuti (prebaciti dva), a X vrijednost je ukupna širina boxa. 3 (desno): x i y su kordinate krajnjeg lijevog ugla boxa. -- Upotrebom tipa fonta 4 (sprite) i 5 (pregled modela) pretvara X i Y ove funkcije iz kordinata ugla u WIDTH i HEIGHT (offseti). +- X i y imaju različita značenja s različitim vrijednostima [TextDrawAlignment](TextDrawAlignment): + - 1 (lijevo): krajnji su desni ugao boxa, apsolutna kordinatama. + - 2 (sredina): trebaju se okrenuti (prebaciti dva), a X vrijednost je ukupna širina boxa. + - 3 (desno): x i y su kordinate krajnjeg lijevog ugla boxa. +- Upotrebom [tipa fonta](TextDrawFont) 4 (sprite) i 5 (pregled modela) pretvara X i Y ove funkcije iz kordinata ugla u WIDTH i HEIGHT (offseti). - Okvir TextDraw započinje 10.0 jedinica gore i 5.0 lijevo kao ishodište (TextDrawCreate kordinata). -- Ova funkcija definira područje na koje je moguće kliknuti za upotrebu s TextDrawSetSelectable, bilo da je box prikazan ili ne. +- Ova funkcija definira područje na koje je moguće kliknuti za upotrebu s [TextDrawSetSelectable](TextDrawSetSelectable), bilo da je box prikazan ili ne. ::: :::tip -Ako želite promijeniti veličinu teksta textdrawa koji je već prikazan, ne morate ga ponovno kreirati. Prosto koristite TextDrawShowForPlayer/TextDrawShowForAll nakon uređivanja i promjena će biti vidljiva. +Ako želite promijeniti veličinu teksta textdrawa koji je već prikazan, ne morate ga ponovno kreirati. Prosto koristite [TextDrawShowForPlayer](TextDrawShowForPlayer)/[TextDrawShowForAll](TextDrawShowForAll) nakon uređivanja i promjena će biti vidljiva. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerClock.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerClock.md index e2fb5baf7d67..229f09e071bc 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerClock.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerClock.md @@ -7,7 +7,7 @@ tags: ["player"] ## Deskripcija -Uključite sat u igri (gornji desni kut) za određenog igrača. Kada je ovo omogućeno, vrijeme će napredovati 1 minutu u sekundi. Vrijeme će se također interpolirati (polako mijenjati tokom vremena) kada se postavi pomoću SetWeather / SetPlayerWeather. +Uključite sat u igri (gornji desni kut) za određenog igrača. Kada je ovo omogućeno, vrijeme će napredovati 1 minutu u sekundi. Vrijeme će se također interpolirati (polako mijenjati tokom vremena) kada se postavi pomoću [SetWeather](SetWeather) / [SetPlayerWeather](SetPlayerWeather). | Ime | Deskripcija | | -------- | --------------------------------------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerSpectating.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerSpectating.md index 3f0c563d9004..eb1e600ab837 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerSpectating.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerSpectating.md @@ -7,7 +7,7 @@ tags: ["player"] ## Deskripcija -Uključite ili isključite da li je igrač u režimu spectatora/gledatelja. Dok je u spectator režimu igrač može gledati ostale igrače i vozila. Nakon korištenja ove funkcije ili PlayerSpectatePlayer ili PlayerSpectateVehicle mora biti korišten. +Uključite ili isključite da li je igrač u režimu spectatora/gledatelja. Dok je u spectator režimu igrač može gledati ostale igrače i vozila. Nakon korištenja ove funkcije ili [PlayerSpectatePlayer](PlayerSpectatePlayer) ili [PlayerSpectateVehicle](PlayerSpectateVehicle) mora biti korišten. | Ime | Deskripcija | | -------- | ------------------------------------------------------------- | @@ -35,13 +35,13 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::note -Kada je režim gledatelja onemogućen, automatski će se pozvati OnPlayerSpawn, ako želite vratiti stanje igrača u stanje prije gledanja, morat ćete to riješiti u OnPlayerSpawn. Takođe imajte na umu da taj igrač također može ići na odabir klase prije nego što je koristio F4 za vrijeme gledanja, igrač također MOŽE umrijeti u režimu spektakularnosti zbog različitih kvarova. +Kada je režim gledatelja onemogućen, automatski će se pozvati [OnPlayerSpawn](../callbacks/OnPlayerSpawn), ako želite vratiti stanje igrača u stanje prije gledanja, morat ćete to riješiti u OnPlayerSpawn. Takođe imajte na umu da taj igrač također može ići na odabir klase prije nego što je koristio F4 za vrijeme gledanja, igrač također MOŽE umrijeti u režimu spektakularnosti zbog različitih kvarova. ::: :::tip -Kada je igrač u spectate načinu rada, njegov HUD je skriven, što ga čini korisnim za postavljanje igračeve kamere bez HUD-a. Također će se usmjeravati objekti u blizini kamere igrača, što ovo čini korisnim za interpolaciju kamera. +Kada je igrač u spectate načinu rada, njegov HUD je skriven, što ga čini korisnim za postavljanje igračeve kamere bez HUD-a. Također će se usmjeravati objekti u blizini kamere igrača, što ovo čini korisnim za [interpolaciju kamera](InterpolateCameraPos). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/UnBlockIpAddress.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/UnBlockIpAddress.md index 97c3d1cf5467..75e46f3f2be9 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/UnBlockIpAddress.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/UnBlockIpAddress.md @@ -7,7 +7,7 @@ tags: [] ## Deskripcija -Deblokirajte IP adresu koja je prethodno bila blokirana pomoću BlockIpAddress. +Deblokirajte IP adresu koja je prethodno bila blokirana pomoću [BlockIpAddress](BlockIpAddress). | Ime | Deskripcija | | ---------- | -------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/atan.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/atan.md index 7938d8e977f8..5a2c904de148 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/atan.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/atan.md @@ -7,7 +7,7 @@ tags: [] ## Deskripcija -Dobijte obrnutu vrijednost tangente luka u radijanima. +Dobijte obrnutu vrijednost [tangente](https://en.wikipedia.org/wiki/Trigonometric_functions) luka u radijanima. | Ime | Deskripcija | | ----------- | ----------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_free_result.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_free_result.md index c100dcda13fd..acb4ecdba0df 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_free_result.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_free_result.md @@ -7,7 +7,7 @@ tags: ["sqlite"] ## Deskripcija -Oslobađa memoriju rezultata dodijeljenu iz db_query. +Oslobađa memoriju rezultata dodijeljenu iz [db_query](db_query). | Ime | Deskripcija | | ----------------- | ---------------------------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field.md index fcdb607c31ca..51030d3cf3d6 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field.md @@ -7,7 +7,7 @@ tags: ["sqlite"] ## Deskripcija -Preuzmite sadržaj polja iz db_query. +Preuzmite sadržaj polja iz [db_query](db_query). | Ime | Deskripcija | | ----------------- | -------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_int.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_int.md index 0f7cbd54b0e0..8ada7a2342ae 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_int.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_int.md @@ -7,7 +7,7 @@ tags: ["sqlite"] ## Deskripcija -Dobijte sadržaj polja kao cijeli broj iz db_query. +Dobijte sadržaj polja kao cijeli broj iz [db_query](db_query). | Ime | Deskripcija | | ----------------- | -------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_num_rows.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_num_rows.md index d72697d525c6..1d29fe539a14 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_num_rows.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_num_rows.md @@ -7,11 +7,11 @@ tags: ["sqlite"] ## Deskripcija -Vraća broj redaka iz db_query. +Vraća broj redaka iz [db_query](db_query). -| Ime | Deskripcija | -| ----------------- | -------------------- | -| DBResult:dbresult | Rezultat od db_query | +| Ime | Deskripcija | +| ----------------- | -------------------------------- | +| DBResult:dbresult | Rezultat od [db_query](db_query) | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md index 0aa0aaf827da..0fc43cf0117f 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md @@ -7,13 +7,13 @@ tags: [] ## Deskripcija -Izbriši prethodno postavljenu imovinu (setproperty). +Izbriši prethodno postavljenu imovinu ([setproperty](setproperty)). -| Ime | Deskripcija | -| ----- | ---------------------------------------------------------------------------- | -| id | Virtualna mašina za upotrebu. Trebali biste ovo držati kao nulu. | -| Ime[] | Ime imovine, trebali biste ovo ostaviti prazno (""). | -| value | Jedinstveni ID imovine. Upotrijebite hash-funkciju za izračunavanje iz niza. | +| Ime | Deskripcija | +| ----- | ----------------------------------------------------------------------------------------------------------------- | +| id | Virtualna [mašina](https://en.wikipedia.org/wiki/Virtual_machine) za upotrebu. Trebali biste ovo držati kao nulu. | +| Ime[] | Ime imovine, trebali biste ovo ostaviti prazno (""). | +| value | Jedinstveni ID imovine. Upotrijebite hash-funkciju za izračunavanje iz niza. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md index 9d5508d1c4a2..a2f718f14696 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md @@ -9,11 +9,11 @@ tags: [] Provjeri da li imovina postoji. -| Ime | Deskripcija | -| ------ | ---------------------------------------------------------------------------- | -| id | Virtualna mašina za upotrebu. Trebali biste ovo držati kao nulu. | -| name[] | Ime imovine, trebali biste ovo ostaviti prazno (""). | -| value | Jedinstveni ID imovine. Upotrijebite hash-funkciju za izračunavanje iz niza. | +| Ime | Deskripcija | +| ------ | ----------------------------------------------------------------------------------------------------------------- | +| id | Virtualna [mašina](https://en.wikipedia.org/wiki/Virtual_machine) za upotrebu. Trebali biste ovo držati kao nulu. | +| name[] | Ime imovine, trebali biste ovo ostaviti prazno (""). | +| value | Jedinstveni ID imovine. Upotrijebite hash-funkciju za izračunavanje iz niza. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fblockread.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fblockread.md index 6b01543237c8..d629eb58ab9e 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fblockread.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fblockread.md @@ -9,11 +9,11 @@ tags: [] Ova funkcija vam omogućuje čitanje podataka iz datoteke, bez kodiranja i završetaka linije. -| Ime | Deskripcija | -| -------------------- | --------------------------------------------------- | -| handle | Upravitelj datoteke za upotrebu, otvorila je fopen. | -| buffer | Upremnik za spremanje pročitanih podataka. | -| size = sizeof buffer | Broj ćelija za čitanje. | +| Ime | Deskripcija | +| -------------------- | ------------------------------------------------------------ | +| handle | Upravitelj datoteke za upotrebu, otvorila je [fopen](fopen). | +| buffer | Upremnik za spremanje pročitanih podataka. | +| size = sizeof buffer | Broj ćelija za čitanje. | ## Returns @@ -77,7 +77,7 @@ else :::warning -Korištenje **nevaljanog upravitelja** srušit će vaš server! Nabavite **važeći upravitelj** pomoću fopen ili ftemp. +Korištenje **nevaljanog upravitelja** srušit će vaš server! Nabavite **važeći upravitelj** pomoću [fopen](fopen) ili [ftemp](ftemp). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fblockwrite.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fblockwrite.md index c495a9a823e7..1db4a3cab141 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fblockwrite.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fblockwrite.md @@ -9,11 +9,11 @@ tags: [] Zapišite podatke u datoteku u binarnom formatu, zanemarujući linijske kočnice i kodiranje. -| Ime | Deskripcija | -| -------------------- | --------------------------------------------------- | -| handle | Upravitelj datoteke za upotrebu, otvorila je fopen. | -| buffer | Upremnik za spremanje pročitanih podataka. | -| size = sizeof buffer | Broj ćelija za čitanje. | +| Ime | Deskripcija | +| -------------------- | ------------------------------------------------------------ | +| handle | Upravitelj datoteke za upotrebu, otvorila je [fopen](fopen). | +| buffer | Upremnik za spremanje pročitanih podataka. | +| size = sizeof buffer | Broj ćelija za čitanje. | ## Returns @@ -60,7 +60,7 @@ else :::warning -Korištenje **nevaljanog upravitelja** srušit će vaš server! Nabavite **važeći upravitelj** pomoću fopen ili ftemp. +Korištenje **nevaljanog upravitelja** srušit će vaš server! Nabavite **važeći upravitelj** pomoću [fopen](fopen) ili [ftemp](ftemp). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fclose.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fclose.md index 8b7a6ffae356..7fedffc36f11 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fclose.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fclose.md @@ -9,9 +9,9 @@ tags: [] Zatvara fajl/datoteku. Fajlove/Datoteke treba uvijek zatvoriti kada ih skripta više ne treba (nakon čitanja / pisanja). -| Ime | Deskripcija | -| ----------- | ------------------------------------------------------------- | -| File:handle | Upravitelj datoteke za zatvoriti. Returnovan/vraćen od fopen. | +| Ime | Deskripcija | +| ----------- | ---------------------------------------------------------------------- | +| File:handle | Upravitelj datoteke za zatvoriti. Returnovan/vraćen od [fopen](fopen). | ## Returns @@ -47,7 +47,7 @@ else :::warning -Korištenje **nevaljanog upravitelja** srušit će vaš server! Nabavite **važeći upravitelj** pomoću fopen ili ftemp. +Korištenje **nevaljanog upravitelja** srušit će vaš server! Nabavite **važeći upravitelj** pomoću [fopen](fopen) ili [ftemp](ftemp). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fgetchar.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fgetchar.md index 6f28c36d6f1d..5988a4ab5bf3 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fgetchar.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fgetchar.md @@ -11,7 +11,7 @@ tags: [] | Ime | Deskripcija | | ------ | ---------------------------------------------------------------- | -| handle | Upravitelj datoteke za upotrebu, otvorila je fopen. | +| handle | Upravitelj datoteke za upotrebu, otvorila je [fopen](fopen). | | value | Ovaj parametar nema koristi, samo ga ostavite na "0". | | utf8 | Ako je tačno, čitajte znak kao UTF-8, inače kao prošireni ASCII. | @@ -52,7 +52,7 @@ else :::warning -Korištenje **nevaljanog upravitelja** srušit će vaš server! Nabavite **važeći upravitelj** pomoću fopen ili ftemp. +Korištenje **nevaljanog upravitelja** srušit će vaš server! Nabavite **važeći upravitelj** pomoću [fopen](fopen) ili [ftemp](ftemp). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/flength.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/flength.md index 352d95edc911..e68031c3c11e 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/flength.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/flength.md @@ -9,9 +9,9 @@ tags: [] Vraća dužinu datoteke. -| Ime | Deskripcija | -| ------ | ------------------------------------------- | -| handle | Upravitelj datoteke vraćena fopen ili ftemp | +| Ime | Deskripcija | +| ------ | ------------------------------------------------------------- | +| handle | Upravitelj datoteke vraćena [fopen](fopen) ili [ftemp](ftemp) | ## Returns @@ -45,7 +45,7 @@ else :::warning -Korištenje **nevaljanog upravitelja** srušit će vaš server! Nabavite **važeći upravitelj** pomoću fopen ili ftemp. +Korištenje **nevaljanog upravitelja** srušit će vaš server! Nabavite **važeći upravitelj** pomoću [fopen](fopen) ili [ftemp](ftemp). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md index 0c56896297da..80c6f21edf28 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md @@ -7,7 +7,7 @@ tags: [] ## Deskripcija -Ova funkcija vraća apsolutnu vrijednost float-a. +Ova funkcija vraća [apsolutnu vrijednost](https://en.wikipedia.org/wiki/Absolute_value) float-a. | Ime | Deskripcija | | ----------- | ---------------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md index d4fe6f8b63cd..233a58dafbd4 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md @@ -7,12 +7,12 @@ tags: [] ## Deskripcija -Dobijte kosinus iz zadanog ugla. Ulazni kut može biti u radijanima, stupnjevima ili stupnjevima. +Dobijte [kosinus](https://en.wikipedia.org/wiki/Sine_and_cosine) iz zadanog ugla. Ulazni kut može biti u radijanima, stupnjevima ili stupnjevima. -| Ime | Deskripcija | -| ----------- | ---------------------------------------------------------- | -| Float:value | Ugao iz kojeg se dobija kosinus. | -| anglemode | Način kuta koji se koristi, ovisno o unesenoj vrijednosti. | +| Ime | Deskripcija | +| ------------------------------------ | ---------------------------------------------------------- | +| Float:value | Ugao iz kojeg se dobija kosinus. | +| [anglemode](../resources/anglemodes) | Način kuta koji se koristi, ovisno o unesenoj vrijednosti. | ## Returns @@ -33,7 +33,8 @@ public OnGameModeInit() :::warning -GTA / SA-MP u većini slučajeva koriste **stupnjeve** za uglove, na primjer GetPlayerFacingAngle. Stoga ćete najvjerojatnije htjeti koristiti način rada pod uglom '**degrees**', a _ne_ radijane. Takođe imajte na umu da su uglovi u GTA suprotno kazaljki na satu; 270° je istok, a 90° zapad. Jug je i dalje 180°, a sjever još uvijek 0° / 360°. +- GTA / SA-MP u većini slučajeva koriste **stupnjeve** za uglove, na primjer GetPlayerFacingAngle. Stoga ćete najvjerojatnije htjeti koristiti način rada pod uglom '**degrees**', a _ne_ radijane. +- Takođe imajte na umu da su uglovi u GTA suprotno kazaljki na satu; 270° je istok, a 90° zapad. Jug je i dalje 180°, a sjever još uvijek 0° / 360°. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md index eb720e64ced6..1dc8ce66a481 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md @@ -7,7 +7,7 @@ tags: [] ## Deskripcija -Ova funkcija vam omogućuje da dobijete logaritam float vrijednosti. +Ova funkcija vam omogućuje da dobijete [logaritam](https://en.wikipedia.org/wiki/Logarithm) float vrijednosti. | Ime | Deskripcija | | ----------- | --------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md index 8b8237a2a893..f331d38ad369 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md @@ -7,12 +7,12 @@ tags: [] ## Deskripcija -Uzmi sinus iz zadanog ugla. Ulazni ugao može biti u radijanima, stupnjevima ili stupnjevima. +Uzmi [sinus](https://en.wikipedia.org/wiki/Sine_and_cosine) iz zadanog ugla. Ulazni ugao može biti u radijanima, stupnjevima ili stupnjevima. -| Ime | Deskripcija | -| ----------- | ---------------------------------------------------------- | -| Float:value | Ugao iz kojeg se dobija sinus. | -| anglemode | Način kuta koji se koristi, ovisno o unesenoj vrijednosti. | +| Ime | Deskripcija | +| ------------------------------------ | ---------------------------------------------------------- | +| Float:value | Ugao iz kojeg se dobija sinus. | +| [anglemode](../resources/anglemodes) | Način kuta koji se koristi, ovisno o unesenoj vrijednosti. | ## Returns @@ -41,7 +41,8 @@ GetPosInFrontOfPlayer(playerid, Float:distance, &Float:x, &Float:y, &Float:z) :::warning -GTA / SA-MP u većini slučajeva koristi **stupnjeve** za uglove, na primjer GetPlayerFacingAngle. Stoga ćete najvjerojatnije htjeti koristiti način rada pod uglom '**degrees**', a _ne_ radijane. Takođe imajte na umu da su uglovi u GTA suprotno kazaljkama na satu; 270° je istočno, a 90° zapadno. Jug je i dalje 180°, a sjever još uvijek 0° / 360°. +- GTA / SA-MP u većini slučajeva koristi **stupnjeve** za uglove, na primjer GetPlayerFacingAngle. Stoga ćete najvjerojatnije htjeti koristiti način rada pod uglom '**degrees**', a _ne_ radijane. +- Takođe imajte na umu da su uglovi u GTA suprotno kazaljkama na satu; 270° je istočno, a 90° zapadno. Jug je i dalje 180°, a sjever još uvijek 0° / 360°. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md index b1d1820bff5d..f18527f026cc 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md @@ -7,7 +7,7 @@ tags: [] ## Deskripcija -Izračunava kvadratni korijen zadate vrijednosti. +Izračunava [kvadratni korijen](https://en.wikipedia.org/wiki/Square_root) zadate vrijednosti. | Ime | Deskripcija | | ----- | ------------------------------------------------ | @@ -27,7 +27,7 @@ floatsqroot(25.0); // Vraća 5, zato što je 5x5 = 25 :::note -Ova funkcija dovodi do greške "domene" ako je ulazna vrijednost negativna. Možete koristiti floatabs da biste dobili apsolutnu (pozitivnu) vrijednost. +Ova funkcija dovodi do greške "domene" ako je ulazna vrijednost negativna. Možete koristiti [floatabs](floatabs) da biste dobili apsolutnu (pozitivnu) vrijednost. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md index 847a1eed7956..d2e7ed0d0421 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md @@ -7,12 +7,12 @@ tags: [] ## Deskripcija -Uzmi tangentu iz zadanog ugla. Ulazni ugao može biti u radijanima, stupnjevima ili stupnjevima. +Uzmi [tangentu](https://en.wikipedia.org/wiki/Trigonometric_functions) iz zadanog ugla. Ulazni ugao može biti u radijanima, stupnjevima ili stupnjevima. -| Ime | Deskripcija | -| ----------- | ---------------------------------------------------------- | -| Float:value | Kut iz kojeg se dobija tangenta. | -| anglemode | Način kuta koji se koristi, ovisno o unesenoj vrijednosti. | +| Ime | Deskripcija | +| ------------------------------------ | ---------------------------------------------------------- | +| Float:value | Kut iz kojeg se dobija tangenta. | +| [anglemode](../resources/anglemodes) | Način kuta koji se koristi, ovisno o unesenoj vrijednosti. | ## Returns @@ -33,7 +33,8 @@ public OnGameModeInit() :::warning -GTA / SA-MP u većini slučajeva koristi **stupnjeve** za uglove, na primjer GetPlayerFacingAngle. Stoga ćete najvjerojatnije htjeti koristiti način rada pod uglom '**degrees**', a _ne_ radijane. Takođe imajte na umu da su uglovi u GTA suprotno kazaljkama na satu; 270° je istočno, a 90° zapadno. Jug je i dalje 180°, a sjever još uvijek 0° / 360°. +- GTA / SA-MP u većini slučajeva koristi **stupnjeve** za uglove, na primjer GetPlayerFacingAngle. Stoga ćete najvjerojatnije htjeti koristiti način rada pod uglom '**degrees**', a _ne_ radijane. +- Takođe imajte na umu da su uglovi u GTA suprotno kazaljkama na satu; 270° je istočno, a 90° zapadno. Jug je i dalje 180°, a sjever još uvijek 0° / 360°. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fputchar.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fputchar.md index 63d100814a2e..5008b7bada6d 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fputchar.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fputchar.md @@ -11,7 +11,7 @@ Napišite jedan znak u datoteku. | Ime | Deskripcija | | ------ | ---------------------------------------------------------------- | -| handle | Upravitelj datoteke za upotrebu, otvorila je fopen. | +| handle | Upravitelj datoteke za upotrebu, otvorila je [fopen](fopen). | | value | Ovaj parametar nema koristi, samo ga ostavite na "0". | | utf8 | Ako je tačno, čitajte znak kao UTF-8, inače kao prošireni ASCII. | @@ -45,7 +45,7 @@ else :::warning -Korištenje **nevaljanog upravitelja** srušit će vaš server! Nabavite **važeći upravitelj** pomoću fopen ili ftemp. +Korištenje **nevaljanog upravitelja** srušit će vaš server! Nabavite **važeći upravitelj** pomoću [fopen](fopen) ili [ftemp](ftemp). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fread.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fread.md index 62ce43d40627..dc9a769ad366 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fread.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fread.md @@ -11,7 +11,7 @@ Pročitajte jedan redak iz datoteke. | Ime | Deskripcija | | ------ | ----------------------------------------------------------------- | -| handle | Upravitelj datoteke za upotrebu, otvorila je fopen. | +| handle | Upravitelj datoteke za upotrebu, otvorila je [fopen](fopen). | | string | String niza za čuvanje pročitanog teksta, proslijeđen referencom. | | size | Broj bajtova za čitanje. | | pack | Da li bi niz trebao biti spakovan? true/false. | @@ -82,7 +82,7 @@ else :::warning -Korištenje **nevaljanog upravitelja** srušit će vaš server! Nabavite **važeći upravitelj** pomoću fopen ili ftemp. +Korištenje **nevaljanog upravitelja** srušit će vaš server! Nabavite **važeći upravitelj** pomoću [fopen](fopen) ili [ftemp](ftemp). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fremove.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fremove.md index 66e4866a9a4e..ad8af1ad9a58 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fremove.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fremove.md @@ -29,7 +29,7 @@ fremove("Example.txt"); :::note -Datoteke koje su trenutno otvorene (fopen) moraju se prvo zatvoriti (fclose) da bi se izbrisale. +Datoteke koje su trenutno otvorene ([fopen](fopen)) moraju se prvo zatvoriti ([fclose](fclose)) da bi se izbrisale. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fseek.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fseek.md index 68b9c3911ec4..1288bebac05b 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fseek.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fseek.md @@ -11,7 +11,7 @@ Promijenite trenutni položaj u datoteci. Kroz datoteku možete tražiti unaprij | Ime | Deskripcija | | ------------ | ------------------------------------------------------------------------------------------------------------------ | -| handle | Upravitelj datoteke za upotrebu, otvorila je fopen. | +| handle | Upravitelj datoteke za upotrebu, otvorila je [fopen](fopen). | | position | Nova pozicija u datoteci, u odnosu na parametar odakle (vidi dolje). | | whence | Početni položaj na koji se odnosi položaj parametra. | | seek_start | Postavite položaj datoteke u odnosu na početak datoteke (parametar položaja mora biti pozitivan). | @@ -56,7 +56,7 @@ else :::warning -Korištenje **nevaljanog upravitelja** srušit će vaš server! Nabavite **važeći upravitelj** pomoću fopen ili ftemp. +Korištenje **nevaljanog upravitelja** srušit će vaš server! Nabavite **važeći upravitelj** pomoću [fopen](fopen) ili [ftemp](ftemp). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md index 32a7aeeeadef..081cd7b992dd 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md @@ -9,10 +9,10 @@ tags: [] Napišite tekst u datoteku. -| Ime | Deskripcija | -| ------ | --------------------------------------------------- | -| handle | Upravitelj datoteke za upotrebu, otvorila je fopen. | -| string | String za upisati u fajl. | +| Ime | Deskripcija | +| ------ | ------------------------------------------------------------ | +| handle | Upravitelj datoteke za upotrebu, otvorila je [fopen](fopen). | +| string | String za upisati u fajl. | ## Returns @@ -99,13 +99,13 @@ else :::note -Ova funkcija zapisuje u datoteku u UTF-8, koja ne podržava neke simbole lokaliziranog jezika. +Ova funkcija zapisuje u datoteku u [UTF-8](https://en.wikipedia.org/wiki/UTF-8), koja ne podržava neke simbole lokaliziranog jezika. ::: :::warning -Korištenje **nevaljanog upravitelja** srušit će vaš server! Nabavite **važeći upravitelj** pomoću fopen ili ftemp. +Korištenje **nevaljanog upravitelja** srušit će vaš server! Nabavite **važeći upravitelj** pomoću [fopen](fopen) ili [ftemp](ftemp). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md index 93611a000c9d..c915bcc57af9 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md @@ -9,12 +9,12 @@ tags: [] Uzmite određenu imovinu iz memorije, string se vraća kao spakirani string! -| Ime | Deskripcija | -| -------- | ------------------------------------------------------------------------------- | -| id | Virtualna mašina za upotrebu, trebali biste zadržati ovu nulu. | -| name[] | Ime imovine, trebali biste ovo zadržati "". | -| value | Jedinstveni ID imovine, upotrijebite hash-funkciju za izračunavanje iz stringa. | -| string[] | Varijabla za pohraniti rezultat, proslijeđeno referencom. | +| Ime | Deskripcija | +| -------- | --------------------------------------------------------------------------------------------------------------- | +| id | Virtualna [mašina](https://en.wikipedia.org/wiki/Virtual_machine) za upotrebu, trebali biste zadržati ovu nulu. | +| name[] | Ime imovine, trebali biste ovo zadržati "". | +| value | Jedinstveni ID imovine, upotrijebite hash-funkciju za izračunavanje iz stringa. | +| string[] | Varijabla za pohraniti rezultat, proslijeđeno referencom. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/gettime.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/gettime.md index adfe7b84f9d4..dbb35a171956 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/gettime.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/gettime.md @@ -17,7 +17,7 @@ Dobij trenutno vrijeme servera koje će biti pohranjeno u varijablama &hour, &mi ## Returns -Sama funkcija vraća Unix vremensku oznaku. +Sama funkcija vraća [Unix vremensku oznaku](https://en.wikipedia.org/wiki/Unix_time). ## Primjeri diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/random.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/random.md index 68779d3f5298..ac7e6884728a 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/random.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/random.md @@ -7,7 +7,7 @@ tags: [] ## Deskripcija -Dobij (pseudo-)slučajni broj. +Dobij [(pseudo-)slučajni broj](https://en.wikipedia.org/wiki/Pseudorandom_number_generator). | Ime | Deskripcija | | --- | ---------------------------------------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md index 6da9e958aeb5..b99cd2992e78 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md @@ -11,7 +11,7 @@ Dodaj novu imovinu ili promijeni već postojeću. | Ime | Deskripcija | | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| id | Virtualna mašina za upotrebu, trebali biste zadržati ovu nulu. | +| id | [Virtualna mašina](https://en.wikipedia.org/wiki/Virtual_machine) za upotrebu, trebali biste zadržati ovu nulu. | | name[] | Koristi se u kombinaciji s _vrijednošću_ prilikom pohrane cijelih brojeva; nemojte koristiti ovo ako želite pohraniti niz. | | value | Cjelobrojna vrijednost za pohraniti **ili** jedinstveni ID imovine ako pohranjujemo string. Upotrijebite hash-funkciju za izračunavanje iz stringa. | | string[] | Vrijednost svojstva, kao string. Ne koristite ovo ako želite pohraniti cijeli broj. | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md index 4b465937b815..ae6d61cbcc62 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md @@ -7,7 +7,7 @@ tags: [] ## Deskripcija -Ova funkcija spaja dva stringa u odredišni string. +Ova funkcija [spaja](https://en.wikipedia.org/wiki/Concatenation) dva stringa u odredišni string. | Ime | Deskripcija | | --------------------- | ---------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md index 348bc42f7f24..fb5809e2d222 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md @@ -18,7 +18,11 @@ Upoređuje dva stringa kako pi vidjelo da li su isti ## Returns -**0** ako se stringovi podudaraju na zadanoj dužini; **1** ili **-1** ako se neki znak ne podudara: string1 [i] - string2 [i] ('i' predstavlja indeks znakova počevši od 0); **razlika u broju znakova** ako jedan niz odgovara samo dijelu drugog stringa. +**0** ako se stringovi podudaraju na zadanoj dužini; + +**1** ili **-1** ako se neki znak ne podudara: string1 [i] - string2 [i] ('i' predstavlja indeks znakova počevši od 0); + +**razlika u broju znakova** ako jedan niz odgovara samo dijelu drugog stringa. ## Primjeri @@ -47,7 +51,7 @@ if (!strcmp(string1, string2) && !isnull(string1) && !isnull(string2)) :::warning -Ako uspoređujete nizove iz tekstualne datoteke, trebali biste uzeti u obzir posebne znakove 'carriage return' i 'new line' (\r \n), kada su uključeni, kada koristite fread. +Ako uspoređujete nizove iz tekstualne datoteke, trebali biste uzeti u obzir posebne znakove 'carriage return' i 'new line' (\r \n), kada su uključeni, kada koristite [fread](fread). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/tickcount.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/tickcount.md index 1afc6b0fc50c..b383a68fd0e1 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/tickcount.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/tickcount.md @@ -7,7 +7,7 @@ tags: [] ## Deskripcija -Ova se funkcija može koristiti kao zamjena za GetTickCount, jer vraća broj milisekundi od pokretanja poslužitelja. +Ova se funkcija može koristiti kao zamjena za [GetTickCount](GetTickCount), jer vraća broj milisekundi od pokretanja poslužitelja. | Ime | Deskripcija | | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md index bf5f0c9b405c..2aa3d6558d06 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md @@ -30,9 +30,3 @@ Još uvijek može biti više upotrebljivih ID-ova skrivenih u igri, a neki ID-ov | 53 | CAM_MODE_AIMWEAPON | MODE_AIMWEAPON | Ciljanje bilo kojeg drugog oružja | | 55 | CAM_MODE_AIMWEAPON_FROMCAR | MODE_AIMWEAPON_FROMCAR | Kamera za ciljanje putnika u vozilu (provozajte se kao igrač) | | 56 | CAM_MODE_DW_HELI_CHASE | MODE_DW_HELI_CHASE | Chase kamera: pogled iz helikoptera (ptičja perspektiva) | -| 57 | - | MODE_DW_CAM_MAN | Kamera za potjeru: ground camera, zooms in quite quickly and pan to the vehicle | -| 58 | - | MODE_DW_BIRDY | Kamera za potjeru: horizontalni let pored vozila | -| 59 | - | MODE_DW_PLANE_SPOTTER | Kamera za potjeru (samo za vazdušna vozila): zemaljska kamera, gleda u zračno vozilo | -| 62 | - | MODE_DW_PLANECAM1 | Kamera za potjeru (samo za vazdušna vozila): vertikalni let pored vazdušnog vozila | -| 63 | - | MODE_DW_PLANECAM2 | Kamera za potjeru (samo za vazdušna vozila): horizontalni let pored vazdušnog vozila (slično kao 58 i 62) | -| 64 | - | MODE_DW_PLANECAM3 | Kamera za potjeru (samo za vazdušna vozila): kamera fokusirana na pilota, slično pritiskanju tipke LOOK_BEHIND pješice, ali u vazdušnom vozilu | diff --git a/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md b/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md index 22ad8c16877c..ea9b396ea609 100644 --- a/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md +++ b/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md @@ -7,7 +7,7 @@ tags: [] ## Beschreibung -Wird ausgeführt wenn ein Filterscript gestartet wird (initialize). Wird nur im entsprechenden Filterscript ausgeführt. +Wird ausgeführt wenn ein Filterscript gestartet wird (**init**ialize). Wird nur im entsprechenden Filterscript ausgeführt. ## Beispiele diff --git a/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClass.md b/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClass.md index 137c36b33e1f..8234cbec7b50 100644 --- a/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClass.md +++ b/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClass.md @@ -7,7 +7,7 @@ tags: ["player"] ## Beschreibung -Fügt eine Klasse zur Klassen-Auswahl(class-selection) hinzu. Klassen ermöglichen dem Spieler mit einem Skin ihrer Wahl zu spawnen. +Fügt eine Klasse zur Klassen-Auswahl (class-selection) hinzu. Klassen ermöglichen dem Spieler mit einem Skin ihrer Wahl zu spawnen. | Name | Beschreibung | | ------------- | -------------------------------------------- | diff --git a/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md b/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md index fa82e0771d61..effd6c893820 100644 --- a/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md +++ b/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md @@ -7,7 +7,7 @@ tags: ["player"] ## Beschreibung -Fügt eine Klasse zur Klassen-Auswahl(class-selection) hinzu. Genau wie "AddPlayerClass" nur mit einem team Parameter. +Fügt eine Klasse zur Klassen-Auswahl (class-selection) hinzu. Genau wie [AddPlayerClass](AddPlayerClass) nur mit einem team Parameter. | Name | Beschreibung | | ------------- | -------------------------------------------- | diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md index 68d93e0a8d54..4b140c7fd99d 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md @@ -6,7 +6,7 @@ description: La configuración del cliente sa-mp. ## Descripción -`sa-mp.cfg` es un archivo de configuración del cliente que te permite cambiar opciones relacionadas a SA-MP. Se encuentra generalmente en la carpeta "Documentos\\GTA San Andreas User Files\\SAMP', dentro de la carpeta de tu usuario de WIndows. Puedes modificarle con cualquier editor de texto, como Notepad. +sa-mp.cfg es un archivo de configuración del cliente que te permite cambiar opciones relacionadas a SA-MP. Se encuentra generalmente en la carpeta `Documentos\GTA San Andreas User Files\SAMP`, dentro de la carpeta de tu usuario de WIndows. Puedes modificarle con cualquier editor de texto, como Notepad. ## Opciones diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md index 3fe137aa6990..adbeae88222e 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md @@ -27,7 +27,7 @@ public OnGameModeExit() :::tip - Esta función también puede ser usada en un filterscript para detectar si el gamemode cambia, con comandos RCON como 'changemode' o 'gmx', ya que cambiando el gamemode no recarga un filterscript. -- Cuando usamos OnGameModeExit en conjunto con el comando de consola 'rcon gmx' tener en cuenta que hay una potencial posibilidad de que ocurran bugs en el cliente. Un ejemplo de esto son las excesivas llamadas a RemoveBuildingForPlayer durante OnGameModeInit, lo que podría causar un crash en el cliente. +- Cuando usamos OnGameModeExit en conjunto con el comando de consola 'rcon gmx' tener en cuenta que hay una potencial posibilidad de que ocurran bugs en el cliente. Un ejemplo de esto son las excesivas llamadas a RemoveBuildingForPlayer durante [OnGameModeInit](OnGameModeInit), lo que podría causar un crash en el cliente. - Este callback NO será llamado si el servidor crashea o el proceso es finalizado por otros medios, como usando el comando de Linux 'kill'. ::: @@ -40,8 +40,8 @@ Los siguientes callbacks pueden ser útiles, ya que están relacionados de algun - [OnFilterScriptInit](OnFilterScriptInit): Este callback es llamado cuando un filterscript inicia. - [OnFilterScriptExit](OnFilterScriptExit): Este callback es llamado cuando un filterscript finaliza. -- ## Funciones Relacionadas +## Funciones Relacionadas - La siguiente función puede ser útil, ya que está relacionada de alguna forma u otra con OnGameModeExit: +La siguiente función puede ser útil, ya que está relacionada de alguna forma u otra con OnGameModeExit: - [GameModeExit](../functions/GameModeExit): Finaliza el modo de juego actual. 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 5e553783dd2d..0913078925ab 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 @@ -37,7 +37,8 @@ public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) :::note -Como dice el nombre del callback, sólo se llama cuando el jugador hace click para marcar el punto y no cuando presiona la tecla. El valor Z devuelto será 0 (inválido) si el área clickeada en el mapa está muy lejos del jugador; usá los plugins MapAndreas o ColAndreas para recibir una coordenada Z más precisa. +- Como dice el nombre del callback, sólo se llama cuando el jugador hace click para marcar el punto y no cuando presiona la tecla. +- El valor Z devuelto será 0 (inválido) si el área clickeada en el mapa está muy lejos del jugador; usá los plugins [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) o [ColAndreas](https://github.com/Pottus/ColAndreas) para recibir una coordenada Z más precisa. ::: diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md index cfa4aa857567..c58542e7053b 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md @@ -6,7 +6,7 @@ tags: ["player", "textdraw", "playertextdraw"] ## Descripción -Este callback se llama cuando un jugador clickea en un player-textdraw. No se llama cuando el jugador cancela el modo de selección (ESC), sin embargo, OnPlayerClickTextdraw sí. +Este callback se llama cuando un jugador clickea en un player-textdraw. No se llama cuando el jugador cancela el modo de selección (ESC), sin embargo, [OnPlayerClickTextdraw](OnPlayerClickTextDraw) sí. | Nombre | Descripción | | ------------ | ---------------------------------------------------- | @@ -72,7 +72,7 @@ public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) :::warning -Cuando un jugador presiona ESC para cancelar la selección de un textdraw, OnPlayerClickTextDraw es llamado con un textdraw ID 'INVALID_TEXT_DRAW'. En estos casos, OnPlayerClickPlayerTextDraw no se llamará. +Cuando un jugador presiona ESC para cancelar la selección de un textdraw, [OnPlayerClickTextDraw](OnPlayerClickTextDraw) es llamado con un textdraw ID 'INVALID_TEXT_DRAW'. En estos casos, OnPlayerClickPlayerTextDraw no se llamará. ::: diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md index e2bc0c426973..a4cabecc277a 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md @@ -67,7 +67,8 @@ public OnPlayerClickTextDraw(playerid, Text:clickedid) :::warning -El area clickeable está definida por TextDrawTextSize. Los parámetors X y Y pasados a esta función no deben ser cero o negativos. No uses CancelSelectTextDraw incondicionalmente dentro de este callback. Esto resultará en un loop infinito. +- El area clickeable está definida por TextDrawTextSize. Los parámetors X y Y pasados a esta función no deben ser cero o negativos. +- No uses CancelSelectTextDraw incondicionalmente dentro de este callback. Esto resultará en un loop infinito. ::: 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 4851c8ea7b31..de9813d3b820 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 @@ -36,7 +36,8 @@ public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) :::note -Este callback es llamado cuando un jugador **COMIENZA** a entrar a un vehículo, no cuando este ENTRÓ realmente. Vea OnPlayerStateChange. Este callback es igualmente llamado si al jugador se le niega la entrada (ej. el auto está cerrado o lleno). +- Este callback es llamado cuando un jugador **COMIENZA** a entrar a un vehículo, no cuando este ENTRÓ realmente. Vea [OnPlayerStateChange](OnPlayerStateChange). +- Este callback es igualmente llamado si al jugador se le niega la entrada (ej. el auto está cerrado o lleno). ::: 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 9789e1b4c2d0..5872b1beb1bf 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 @@ -33,7 +33,8 @@ public OnPlayerExitVehicle(playerid, vehicleid) :::warning -No se llama si el jugador se cae de una moto o es removido del vehículo por otros medios como usando SetPlayerPos. Debes usar OnPlayerStateChange y comprobar si su estado anterior es PLAYER_STATE_DRIVER o PLAYER_STATE_PASSENGER y su nuevo estado es PLAYER_STATE_ONFOOT. +- No se llama si el jugador se cae de una moto o es removido del vehículo por otros medios como usando SetPlayerPos. +- Debes usar [OnPlayerStateChange](OnPlayerStateChange) y comprobar si su estado anterior es PLAYER_STATE_DRIVER o PLAYER_STATE_PASSENGER y su nuevo estado es PLAYER_STATE_ONFOOT. ::: 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 dbab3aea3c1c..980c3b613321 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 @@ -42,7 +42,7 @@ public OnPlayerRequestSpawn(playerid) :::tip -Para prevenir a los jugadores de spawnear con ciertas clases, la última clase vista debe ser guardada en una variable en OnPlayerRequestClass. +Para prevenir a los jugadores de spawnear con ciertas clases, la última clase vista debe ser guardada en una variable en [OnPlayerRequestClass](OnPlayerRequestClass). ::: diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md index 512b0c8be544..7ee08f8c2a07 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md @@ -6,7 +6,7 @@ tags: ["player"] ## Description -Este callback se llama cuando un jugador cambia de estado. Por ejemplo, cuando pasa de ser conductor a estár a pie (bajándose de vehículo). +Este callback se llama cuando un jugador cambia de [estado](../resources/playerstates). Por ejemplo, cuando pasa de ser conductor a estár a pie (bajándose de vehículo). | Nombre | Descripción | | -------- | --------------------------------------- | @@ -14,8 +14,6 @@ Este callback se llama cuando un jugador cambia de estado. Por ejemplo, cuando p | newstate | El nuevo estado del jugador. | | oldstate | El estado anterior del jugador. | -Vea [Player States](../resources/playerstates) para ver una lista de todos los estados de jugador disponibles. - ## Devoluciones Siempre se llama primero en filterscripts. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md index e3616d7cc432..b9a61126eeef 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md @@ -42,10 +42,10 @@ public OnPlayerWeaponShot(playerid, WEAPON:weaponid, BULLET_HIT_TYPE:hittype, hi :::note -Este callback sólo se llama cuando lag compensation está **activado**. Si **hittype** es: - -- `BULLET_HIT_TYPE_NONE`: Los parámetros **fX**, **fY** y **fZ** son coordenadas normales, devolverá 0.0 para coordenadas si nada fue impactado (ej. objeto lejano que la bala no puede alcanzar); -- Otros: Los parámetros **fX**, **fY** y **fZ** son compensaciones relativas al **hitid**. +- Este callback sólo se llama cuando [lag compensation](../../server/LagCompensation) está **activado**. +- Si **hittype** es: + - `BULLET_HIT_TYPE_NONE`: Los parámetros **fX**, **fY** y **fZ** son coordenadas normales, devolverá 0.0 para coordenadas si nada fue impactado (ej. objeto lejano que la bala no puede alcanzar); + - Otros: Los parámetros **fX**, **fY** y **fZ** son compensaciones relativas al **hitid**. ::: diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md index 5ddde1f5cb9a..df4d7599207a 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md @@ -52,7 +52,7 @@ public OnRconCommand(cmd[]) - "/rcon " no está incluido en "cmd" cuando un jugador esribe un comando. - Si usas la función "print" acá, esta enviará un mensaje al jugador que escribió el comando en el juego así como en el log de la consola. - Este callback no se llama cuando el jugador no está logeado como un admin RCON. -- Cuando el jugador no está logeado como RCON y usa `/rcon login`, este callback no va a ser llamado y OnRconLoginAttempt es llamado en su lugar. Sin embargo, cuando el jugador está logeado como RCON, el uso de este comando llamará este callback. +- Cuando el jugador no está logeado como RCON y usa `/rcon login`, este callback no va a ser llamado y [OnRconLoginAttempt](OnRconLoginAttempt) es llamado en su lugar. Sin embargo, cuando el jugador está logeado como RCON, el uso de este comando llamará este callback. ::: 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 1616aaf6cb10..6adb3c23a659 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 @@ -46,7 +46,7 @@ public OnRconLoginAttempt(ip[], password[], success) :::note - Este callback se llama solo cuando `/rcon login` se usa adentro del juego. -- Este callback solo se llama cuando el jugador no está logeado aún. Cuando el jugador está logeado (como RCON obviamente), OnRconCommand es llamado en su lugar. +- Este callback solo se llama cuando el jugador no está logeado aún. Cuando el jugador está logeado (como RCON obviamente), [OnRconCommand](OnRconCommand) es llamado en su lugar. ::: diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md index 5982258787c3..b3d4a544c04f 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md @@ -50,7 +50,8 @@ public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_ :::warning -Este callback se llama muy frecuentemente por segundo por cada vehículo. Deberías abstenerte de implementar cálculos intensivos o operaciones de escritura/lectura sobre archivos en este callback. GetVehiclePos las coordenadas antiguas del vehículo antes de esta actualización. +- Este callback se llama muy frecuentemente por segundo por cada vehículo. Deberías abstenerte de implementar cálculos intensivos o operaciones de escritura/lectura sobre archivos en este callback. +- GetVehiclePos las coordenadas antiguas del vehículo antes de esta actualización. ::: diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md index 3c56a6e5bf25..bbda2930726b 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md @@ -36,7 +36,8 @@ public OnVehiclePaintjob(playerid, vehicleid, paintjobid) :::note -Este callback no se llama por ChangeVehiclePaintJob. Puede usar OnVehicleChangePaintjob desde Vsync para saber cuándo el jugador **compra** el trabajo de pintura. +- Este callback no se llama por ChangeVehiclePaintJob. +- Puede usar OnVehicleChangePaintjob desde [Vsync](https://github.com/Vasily-X/vSync) para saber cuándo el jugador **compra** el trabajo de pintura. ::: diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md index 6dbb6befbdb2..a83dce3fbe3b 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md @@ -37,7 +37,8 @@ public OnVehicleRespray(playerid, vehicleid, color1, color2) :::note -Este callback no es llamado por ChangeVehicleColor. Engañosamente, este callback no se llama por pay 'n' spray (solo tiendas de modificación). +- Este callback no es llamado por ChangeVehicleColor. +- Engañosamente, este callback no se llama por pay 'n' spray (solo tiendas de modificación). Solución acá: https://pastebin.com/G81da7N1 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 1f40cfd28b46..9d5a6155b7a4 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 @@ -12,7 +12,7 @@ Este callback se llama **solo** cuando el vehículo **re**aparece! CreateVehicle ## Descripción -Este callback se llama cuando un vehículo reaparece. +Este callback se llama cuando un vehículo **re**aparece. | Name | Description | | --------- | ------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md index 5376c887d9c2..fa371ef6f440 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md @@ -6,7 +6,7 @@ description: فایل پیکربندی کلاینت sa-mp. ## توضیحات -`sa-mp.cfg` فایل پیکربندی کلاینت است که به شما اجازه تغییر تنظیمات مربوط به SA-MP را می‌دهد. این فایل در پوشه 'My Documents\\GTA San Andreas User Files\\SAMP' تحت حساب کاربری Windows شما قرار دارد. این فایل را می‌توان با ویرایشگر متنی مثل notepad ویرایش کرد. +sa-mp.cfg فایل پیکربندی کلاینت است که به شما اجازه تغییر تنظیمات مربوط به SA-MP را می‌دهد. این فایل در پوشه `My Documents\GTA San Andreas User Files\SAMP` تحت حساب کاربری Windows شما قرار دارد. این فایل را می‌توان با ویرایشگر متنی مثل notepad ویرایش کرد. ## گزینه‌ها diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md index d0ded8cc1234..0e883f1b1984 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md @@ -49,9 +49,8 @@ public OnClientCheckResponse(playerid, actionid, memaddr, retndata) :::warning -**سرور SA:MP**: این کالبک فقط زمانی فرا خوانده می‌شود که در یک فیلتر اسکریپت باشد. - -**سرور Open Multiplayer**: این کالبک به طور عادی در داخل gamemode / فیلتر اسکریپت کار می‌کند. +- **سرور SA-MP**: این کالبک فقط زمانی فرا خوانده می‌شود که در یک فیلتر اسکریپت باشد. +- **سرور open.mp**: این کالبک به طور عادی در داخل gamemode / فیلتر اسکریپت کار می‌کند. ::: 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 e3420f71c33d..003b241aa447 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" پاسخ بدهد فرا خوانده میشود. +description: این کالبک زمانی که بازیکن با ShowPlayerDialog پاسخ بدهد فرا خوانده میشود. tags: [] --- @@ -9,7 +9,7 @@ tags: [] ## توضیحات -این کالبک زمانی که بازیکن با "ShowPlayerDialog" از طریق کلیک روی دکمه یا فشردن دکمه ESC/ENTER یا کلیک بر روی آیتم(در صورتی که نوع دیالوگ لیست باشد) پاسخ بدهد فرا خوانده میشود +این کالبک زمانی که بازیکن با [ShowPlayerDialog](../functions/ShowPlayerDialog) از طریق کلیک روی دکمه یا فشردن دکمه ESC/ENTER یا کلیک بر روی آیتم(در صورتی که نوع دیالوگ لیست باشد) پاسخ بدهد فرا خوانده میشود | اسم | توضیح | | ----------- | ------------------------------------------------------------------------------------------------------------------------------------ | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md index feaeff6ffa99..5ec847e6694c 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md @@ -9,7 +9,7 @@ tags: [] ## توضیحات -این کالبک زمانی فرا خوانده می‌شود که یک فیلتر اسکریپت initialize (لود) شود. این فقط در داخل فیلتر اسکریپتی که شروع می‌شود فرا خوانده می‌شود. +این کالبک زمانی فرا خوانده می‌شود که یک فیلتر اسکریپت **init**ialize (لود) شود. این فقط در داخل فیلتر اسکریپتی که شروع می‌شود فرا خوانده می‌شود. ## مثال ها diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md index c656f33250fa..fc599e2a4178 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md @@ -35,8 +35,8 @@ public OnGameModeExit() :::tip -- این تابع همچنین میتواند در یک فیلتر اسکریپت مورد استفاده قرار گیرد تا تشخیص دهد که حالت gamemode با دستورات مانند changemode یا gmx تغییر می کند، زیرا تغییر gamemode باعث بارگیری مجدد فیلتر اسکریپت نمی شود. -- هنگام استفاده از OnGameModeExit همراه با دستور 'rcon gmx' به خاطر داشته باشید، احتمال بروز مشکلات برای کلاینت وجود دارد. مثالی از این موارد فراخوانی های بیش از حد RemoveBuildingForPlayer هنگام OnGameModeExit است که منجر به به crash(خرابی) بیشتر کلاینت می شود. +- این تابع همچنین میتواند در یک فیلتر اسکریپت مورد استفاده قرار گیرد تا تشخیص دهد که حالت gamemode با [دستورات](../../server/ControllingServer#دستورات-rcon) مانند changemode یا gmx تغییر می کند، زیرا تغییر gamemode باعث بارگیری مجدد فیلتر اسکریپت نمی شود. +- هنگام استفاده از OnGameModeExit همراه با دستور 'rcon gmx' به خاطر داشته باشید، احتمال بروز مشکلات برای کلاینت وجود دارد. مثالی از این موارد فراخوانی های بیش از حد [RemoveBuildingForPlayer](../functions/RemoveBuildingForPlayer) هنگام OnGameModeExit است که منجر به به crash(خرابی) بیشتر کلاینت می شود. - در صورت crash سرور یا از بین رفتن روند کار با روش های دیگر مانند استفاده از دستور Linux kill، این کالبک مجدد فرا خوانده نمی شود. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md index 99b8acefd198..62ad66233338 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md @@ -35,7 +35,7 @@ public OnGameModeInit() :::tip -این تابع همچنین میتواند در یک فیلتر اسکریپت مورد استفاده قرار گیرد تا تشخیص دهد که حالت gamemode با دستورات +این تابع همچنین میتواند در یک فیلتر اسکریپت مورد استفاده قرار گیرد تا تشخیص دهد که حالت gamemode با [دستورات](../../server/ControllingServer#دستورات-rcon) مانند changemode یا gmx تغییر می کند، زیرا تغییر gamemode باعث بارگیری مجدد فیلتر اسکریپت نمی شود. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md index a6cd23676fe9..2e0f7c7dea7b 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md @@ -9,7 +9,7 @@ tags: [] ## توضیحات -این کالبک زمانی فرا خوانده می‌شود که یک آدرس IP تلاش برای اتصال به سرور کند. برای مسدود کردن اتصالات ورودی، از BlockIpAddress استفاده کنید. +این کالبک زمانی فرا خوانده می‌شود که یک آدرس IP تلاش برای اتصال به سرور کند. برای مسدود کردن اتصالات ورودی، از [BlockIpAddress](../functions/BlockIpAddress) استفاده کنید. | نام | توضیحات | | ------------ | ----------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md index b85786bc65a0..00632923ec86 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md @@ -7,7 +7,7 @@ tags: ["object"] ## توضیحات -این کالبک پس از حرکت یک شی با MoveObject فراخوانده می‌شود (زمانی که حرکت متوقف می‌شود). +این کالبک پس از حرکت یک شی با [MoveObject](../functions/MoveObject) فراخوانده می‌شود (زمانی که حرکت متوقف می‌شود). | نام | توضیحات | | -------- | ------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md index 127e47140975..f757606bb98e 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md @@ -38,7 +38,8 @@ public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) :::note -همانطور که نام کالبک می‌گوید، فقط زمانی فراخوانده می‌شود که بازیکن کلیک کند تا هدف را علامت‌گذاری کند و نه زمانی که کلید را فشار دهد. مقدار Z برگشت داده شده 0 (نامعتبر) خواهد بود اگر ناحیه کلیک شده روی نقشه از بازیکن دور باشد؛ از افزونه [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) یا [ColAndreas](https://github.com/Pottus/ColAndreas) برای به دست آوردن مختصات Z دقیق‌تر استفاده کنید. +- همانطور که نام کالبک می‌گوید، فقط زمانی فراخوانده می‌شود که بازیکن کلیک کند تا هدف را علامت‌گذاری کند و نه زمانی که کلید را فشار دهد. +- مقدار Z برگشت داده شده 0 (نامعتبر) خواهد بود اگر ناحیه کلیک شده روی نقشه از بازیکن دور باشد؛ از افزونه [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) یا [ColAndreas](https://github.com/Pottus/ColAndreas) برای به دست آوردن مختصات Z دقیق‌تر استفاده کنید. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md index e7a4a1ca9f24..417e7528298b 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md @@ -7,7 +7,7 @@ tags: ["player", "textdraw", "playertextdraw"] ## توضیحات -این کالبک زمانی فراخوانده می‌شود که یک بازیکن روی یک player-textdraw کلیک کند. زمانی که بازیکن حالت انتخاب را لغو کند (ESC) فراخوانده نمی‌شود - اما OnPlayerClickTextDraw فراخوانده می‌شود. +این کالبک زمانی فراخوانده می‌شود که یک بازیکن روی یک player-textdraw کلیک کند. زمانی که بازیکن حالت انتخاب را لغو کند (ESC) فراخوانده نمی‌شود - اما [OnPlayerClickTextDraw](OnPlayerClickTextDraw) فراخوانده می‌شود. | نام | توضیحات | | ----------------------- | ------------------------------------------------------ | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md index 30a1b9600137..4276902fdabe 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md @@ -65,7 +65,7 @@ public OnPlayerDisconnect(playerid, reason) :::note -برخی از تابع ها ممکن است هنگام استفاده در این کال‌بک به درستی کار نکنند چون ممکن است بازیکن قبلاً از بازی خارج شده است. این بدان معنی است که شما نمی توانید اطلاعات واضحی را از توابعی مانند GetPlayerIp و GetPlayerPos دریافت کنید. (در open.mp رفع شده) +برخی از تابع ها ممکن است هنگام استفاده در این کال‌بک به درستی کار نکنند چون ممکن است بازیکن قبلاً از بازی خارج شده است. این بدان معنی است که شما نمی توانید اطلاعات واضحی را از توابعی مانند [GetPlayerIp](../functions/GetPlayerIp) و [GetPlayerPos](../functions/GetPlayerPos) دریافت کنید. (در open.mp رفع شده) ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md index f7fceb8348f9..dbb1777d792d 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md @@ -34,7 +34,8 @@ public OnPlayerExitVehicle(playerid, vehicleid) :::warning -اگر بازیکن از موتورسیکلت بیفتد یا به وسایل دیگری مثل استفاده از [SetPlayerPos](../functions/SetPlayerPos) از وسیله نقلیه حذف شود، فراخوانده نمی‌شود. باید از [OnPlayerStateChange](OnPlayerStateChange) استفاده کنید و بررسی کنید که آیا وضعیت قبلی آن‌ها `PLAYER_STATE_DRIVER` یا `PLAYER_STATE_PASSENGER` و وضعیت جدید آن‌ها `PLAYER_STATE_ONFOOT` است. +- اگر بازیکن از موتورسیکلت بیفتد یا به وسایل دیگری مثل استفاده از [SetPlayerPos](../functions/SetPlayerPos) از وسیله نقلیه حذف شود، فراخوانده نمی‌شود. +- باید از [OnPlayerStateChange](OnPlayerStateChange) استفاده کنید و بررسی کنید که آیا وضعیت قبلی آن‌ها `PLAYER_STATE_DRIVER` یا `PLAYER_STATE_PASSENGER` و وضعیت جدید آن‌ها `PLAYER_STATE_ONFOOT` است. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerInteriorChange.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerInteriorChange.md index be532ab74bd8..132afb2a2132 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerInteriorChange.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerInteriorChange.md @@ -7,7 +7,7 @@ tags: ["player"] ## توضیحات -این کالبک زمانی فراخوانده می‌شود که یک بازیکن interior را تغییر دهد. می‌تواند توسط SetPlayerInterior یا زمانی که بازیکن وارد/خارج ساختمان می‌شود فعال شود. +این کالبک زمانی فراخوانده می‌شود که یک بازیکن interior را تغییر دهد. می‌تواند توسط [SetPlayerInterior](../functions/SetPlayerInterior) یا زمانی که بازیکن وارد/خارج ساختمان می‌شود فعال شود. | نام | توضیحات | | ------------- | ---------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md index b686ecb3dc90..4174354e5d34 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md @@ -37,7 +37,7 @@ public OnPlayerRequestSpawn(playerid) :::tip -برای جلوگیری از spawn شدن بازیکنان با کلاس‌های خاص، آخرین کلاس مشاهده شده باید در یک متغیر در OnPlayerRequestClass ذخیره شود. +برای جلوگیری از spawn شدن بازیکنان با کلاس‌های خاص، آخرین کلاس مشاهده شده باید در یک متغیر در [OnPlayerRequestClass](OnPlayerRequestClass) ذخیره شود. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md index abbfe19ddd0c..3bb4243de93d 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md @@ -7,7 +7,7 @@ tags: ["player"] ## توضیحات -این کالبک زمانی فراخوانده می‌شود که بازیکن وضعیت تغییر می‌دهد. برای مثال، وقتی بازیکن از راننده بودن وسیله نقلیه به پیاده بودن تغییر وضعیت می‌دهد. +این کالبک زمانی فراخوانده می‌شود که بازیکن [وضعیت](../resources/playerstates) خود را تغییر می‌دهد. برای مثال، وقتی بازیکن از راننده بودن وسیله نقلیه به پیاده بودن تغییر وضعیت می‌دهد. | نام | توضیحات | | --------------------- | ---------------------------------- | @@ -15,8 +15,6 @@ tags: ["player"] | PLAYER_STATE:newstate | وضعیت جدید بازیکن. | | PLAYER_STATE:oldstate | وضعیت قبلی بازیکن. | -برای لیست تمام وضعیت‌های موجود بازیکن به [وضعیت‌های بازیکن](../resources/playerstates) مراجعه کنید. - ## مقادیر برگشتی همیشه ابتدا در فیلتراسکریپت‌ها فراخوانده می‌شود. diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md index 8bb32cda3392..9ab5c9f0d8f9 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md @@ -43,10 +43,10 @@ public OnPlayerWeaponShot(playerid, WEAPON:weaponid, BULLET_HIT_TYPE:hittype, hi :::note -این کالبک فقط زمانی فراخوانده می‌شود که lag compensation **فعال** باشد. اگر **hittype** برابر باشد با: - -- `BULLET_HIT_TYPE_NONE`: پارامترهای **fX**، **fY**، و **fZ** مختصات مطلق هستند. اگر چیزی اصابت نشده باشد (مثل آبجکت دوری که گلوله نمی‌تواند به آن برسد) مقدار 0.0 برخواهند گرداند. -- سایر مقادیر: مقادیر **fX**، **fY**، و **fZ** آفست‌هایی نسبت به **hitid** هستند. +- این کالبک فقط زمانی فراخوانده می‌شود که [lag compensation](../../server/LagCompensation) **فعال** باشد. +- اگر **hittype** برابر باشد با: + - `BULLET_HIT_TYPE_NONE`: پارامترهای **fX**، **fY**، و **fZ** مختصات مطلق هستند. اگر چیزی اصابت نشده باشد (مثل آبجکت دوری که گلوله نمی‌تواند به آن برسد) مقدار 0.0 برخواهند گرداند. + - سایر مقادیر: مقادیر **fX**، **fY**، و **fZ** آفست‌هایی نسبت به **hitid** هستند. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md index 6eb73fbe3508..b80d8c5d9e13 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md @@ -47,7 +47,7 @@ public OnRconCommand(cmd[]) - پیشوند /rcon در پارامتر cmd هنگامی که بازیکن دستور تایپ می‌کند شامل نمی‌شود. - اگر از تابع print اینجا استفاده کنید، پیامی هم به بازیکنی که دستور را در بازی تایپ کرده و هم به لاگ سرور ارسال خواهد شد. - این کالبک اگر بازیکن به عنوان admin RCON وارد نشده باشد فراخوانده نمی‌شود. -- زمانی که بازیکن از `/rcon login` برای ورود استفاده می‌کند، این کالبک فراخوانده نخواهد شد، در عوض، OnRconLoginAttempt فراخوانده می‌شود. پس از ورود به عنوان admin RCON، هر دستور بعدی این کالبک را فعال خواهد کرد. +- زمانی که بازیکن از `/rcon login` برای ورود استفاده می‌کند، این کالبک فراخوانده نخواهد شد، در عوض، [OnRconLoginAttempt](OnRconLoginAttempt) فراخوانده می‌شود. پس از ورود به عنوان admin RCON، هر دستور بعدی این کالبک را فعال خواهد کرد. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md index cb53a92325fc..e4dd43b0b48d 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md @@ -40,7 +40,7 @@ public OnVehicleMod(playerid, vehicleid, componentid) :::note -این کالبک توسط AddVehicleComponent فراخوانده نمی‌شود. +این کالبک توسط [AddVehicleComponent](../functions/AddVehicleComponent) فراخوانده نمی‌شود. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md index 50e0c1e21752..9423ee500c22 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md @@ -35,7 +35,8 @@ public OnVehiclePaintjob(playerid, vehicleid, paintjobid) :::note -این کالبک توسط ChangeVehiclePaintjob فراخوانده نمی‌شود. ممکن است از OnVehicleChangePaintjob از vSync استفاده کنید تا بدانید بازیکن کی paintjob را **خریداری** می‌کند. +- این کالبک توسط [ChangeVehiclePaintjob](../functions/ChangeVehiclePaintjob) فراخوانده نمی‌شود. +- ممکن است از OnVehicleChangePaintjob از [vSync](https://github.com/Vasily-X/vSync) استفاده کنید تا بدانید بازیکن کی paintjob را **خریداری** می‌کند. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md index b86b70913c62..9cc85f784221 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md @@ -36,7 +36,8 @@ public OnVehicleRespray(playerid, vehicleid, color1, color2) :::note -این کالبک توسط ChangeVehicleColor فراخوانده نمی‌شود. گمراه‌کننده است، این کالبک برای pay 'n' spray فراخوانده نمی‌شود (فقط modshop ها). +- این کالبک توسط [ChangeVehicleColor](../functions/ChangeVehicleColor) فراخوانده نمی‌شود. +- گمراه‌کننده است، این کالبک برای pay 'n' spray فراخوانده نمی‌شود (فقط modshop ها). رفع اینجا: https://pastebin.com/G81da7N1 diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md index 59568cbbaa61..2209bfc611f6 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md @@ -13,7 +13,7 @@ tags: ["vehicle"] ## توضیحات -این کالبک زمانی فراخوانده می‌شود که وسیله نقلیه دوباره اسپان می‌شود. +این کالبک زمانی فراخوانده می‌شود که وسیله نقلیه **دوباره** اسپان می‌شود. | نام | توضیحات | | --------- | ---------------------------------- | 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 37f0669edb5c..fef3d1cd15ef 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 @@ -11,12 +11,12 @@ tags: ["custom skin", "char model"] یک مدل کاراکتر سفارشی جدید برای دانلود اضافه می‌کند. فایل‌های مدل در `Documents\GTA San Andreas User Files\SAMP\cache` بازیکن در پوشه IP و Port سرور با نام فایل به [شکل CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) ذخیره خواهند شد. -| نام | توضیحات | -| ---------------------- | ------------------------------------------------------------------------------------------------------ | -| baseid | ID مدل اسکین پایه برای استفاده (رفتار کاراکتر و کاراکتر اصلی برای استفاده زمانی که دانلود شکست بخورد). | -| newid | ID مدل اسکین جدید در محدوده 20001 تا 30000 (10000 slot) برای استفاده بعدی با SetPlayerSkin | -| const dff[] | نام فایل کالیژن مدل **.dff** که به طور پیش‌فرض در پوشه `models` سرور قرار دارد (تنظیمات artpath). | -| const textureLibrary[] | نام فایل texture مدل **.txd** که به طور پیش‌فرض در پوشه `models` سرور قرار دارد (تنظیمات artpath). | +| نام | توضیحات | +| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | +| baseid | ID مدل اسکین پایه برای استفاده (رفتار کاراکتر و کاراکتر اصلی برای استفاده زمانی که دانلود شکست بخورد). | +| newid | ID مدل اسکین جدید در محدوده 20001 تا 30000 (10000 slot) برای استفاده بعدی با [SetPlayerSkin](SetPlayerSkin) | +| const dff[] | نام فایل کالیژن مدل **.dff** که به طور پیش‌فرض در پوشه `models` سرور قرار دارد (تنظیمات [artpath](../../server/server.cfg#مدلهای-سفارشی)). | +| const textureLibrary[] | نام فایل texture مدل **.txd** که به طور پیش‌فرض در پوشه `models` سرور قرار دارد (تنظیمات [artpath](../../server/server.cfg#مدلهای-سفارشی)). | ## مقدار بازگشتی @@ -39,7 +39,7 @@ public OnGameModeInit() :::note -ابتدا باید **useartwork** یا **artwork.enable** در تنظیمات سرور فعال شود تا این کار کند. +ابتدا باید **useartwork** یا **artwork.enable** در [تنظیمات سرور](../../server/server.cfg#مدلهای-سفارشی) فعال شود تا این کار کند. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md index 71bfae64f9ea..068194ebc231 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md @@ -46,7 +46,8 @@ public OnGameModeInit() - فقط می‌توانید 12 آیتم در هر منو داشته باشید (13امی به سمت راست header نام ستون می‌رود (رنگی)، 14امی و بالاتر اصلاً نمایش داده نمی‌شوند). - فقط می‌توانید از 2 ستون استفاده کنید (0 و 1). -- فقط می‌توانید 8 کد رنگ در هر آیتم اضافه کنید (`~r~`, `~g~` و غیره). حداکثر طول آیتم منو 31 نماد است. +- فقط می‌توانید 8 کد رنگ در هر آیتم اضافه کنید (`~r~`, `~g~` و غیره). +- حداکثر طول آیتم منو 31 نماد است. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md index c33bfb7d2dae..c5b58b3c724d 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md @@ -7,7 +7,7 @@ tags: ["player", "class"] ## توضیحات -این تابع دقیقاً مشابه تابع AddPlayerClass است، با اضافه شدن پارامتر team. +این تابع دقیقاً مشابه تابع [AddPlayerClass](AddPlayerClass) است، با اضافه شدن پارامتر team. | نام | توضیحات | | -------------- | ------------------------------------------------------------ | 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 dc49633382d7..1e9fb04c85ef 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 @@ -9,15 +9,15 @@ tags: ["custom model", "simple model"] ## توضیحات -مدل object ساده سفارشی جدیدی برای دانلود اضافه می‌کند. فایل‌های مدل در `Documents\GTA San Andreas User Files\SAMP\cache` بازیکن در پوشه IP و Port سرور با نام فایل به شکل CRC ذخیره خواهند شد. +مدل object ساده سفارشی جدیدی برای دانلود اضافه می‌کند. فایل‌های مدل در `Documents\GTA San Andreas User Files\SAMP\cache` بازیکن در پوشه IP و Port سرور با نام فایل به شکل [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) ذخیره خواهند شد. -| نام | توضیحات | -| ---------------------- | ------------------------------------------------------------------------------------------------------------------ | -| virtualWorld | ID دنیای مجازی برای در دسترس قرار دادن مدل. از -1 برای همه دنیاها استفاده کنید. | -| baseid | ID مدل object پایه برای استفاده (object اصلی برای استفاده زمانی که دانلود شکست بخورد). | -| newid | ID مدل object جدید در محدوده -1000 تا -30000 (29000 slot) برای استفاده بعدی با CreateObject یا CreatePlayerObject. | -| const dff[] | نام فایل کالیژن مدل **.dff** که به طور پیش‌فرض در پوشه `models` سرور قرار دارد (تنظیمات artpath). | -| const textureLibrary[] | نام فایل texture مدل **.txd** که به طور پیش‌فرض در پوشه `models` سرور قرار دارد (تنظیمات artpath). | +| نام | توضیحات | +| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| virtualWorld | ID دنیای مجازی برای در دسترس قرار دادن مدل. از -1 برای همه دنیاها استفاده کنید. | +| baseid | [ID مدل object پایه](https://models.open.mp/?cat=objects) برای استفاده (object اصلی برای استفاده زمانی که دانلود شکست بخورد). | +| newid | ID مدل object جدید در محدوده -1000 تا -30000 (29000 slot) برای استفاده بعدی با [CreateObject](CreateObject) یا [CreatePlayerObject](CreatePlayerObject). | +| const dff[] | نام فایل کالیژن مدل **.dff** که به طور پیش‌فرض در پوشه `models` سرور قرار دارد (تنظیمات [artpath](../../server/server.cfg#مدلهای-سفارشی)). | +| const textureLibrary[] | نام فایل texture مدل **.txd** که به طور پیش‌فرض در پوشه `models` سرور قرار دارد (تنظیمات [artpath](../../server/server.cfg#مدلهای-سفارشی)). | ## مقدار بازگشتی @@ -39,7 +39,7 @@ public OnGameModeInit() :::note -- ابتدا باید **useartwork** یا **artwork.enable** در تنظیمات سرور فعال شود تا این کار کند. +- ابتدا باید **useartwork** یا **artwork.enable** در [تنظیمات سرور](../../server/server.cfg#مدلهای-سفارشی) فعال شود تا این کار کند. - وقتی `virtualworld` تنظیم شود، مدل‌ها یک بار دانلود خواهند شد که بازیکن وارد دنیای خاص شود. ::: 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 9d6d20fd7df8..95af340c4280 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 @@ -9,17 +9,17 @@ tags: ["custom model", "simple model"] ## توضیحات -مدل object ساده سفارشی جدیدی برای دانلود اضافه می‌کند. فایل‌های مدل در `Documents\GTA San Andreas User Files\SAMP\cache` بازیکن در پوشه IP و Port سرور با نام فایل به شکل CRC ذخیره خواهند شد. - -| نام | توضیحات | -| ---------------------- | ------------------------------------------------------------------------------------------------------------------ | -| virtualWorld | ID دنیای مجازی برای در دسترس قرار دادن مدل. از -1 برای همه دنیاها استفاده کنید. | -| baseid | ID مدل object پایه برای استفاده (object اصلی برای استفاده زمانی که دانلود شکست بخورد). | -| newid | ID مدل object جدید در محدوده -1000 تا -30000 (29000 slot) برای استفاده بعدی با CreateObject یا CreatePlayerObject. | -| const dff[] | نام فایل کالیژن مدل **.dff** که به طور پیش‌فرض در پوشه `models` سرور قرار دارد (تنظیمات artpath). | -| const textureLibrary[] | نام فایل texture مدل **.txd** که به طور پیش‌فرض در پوشه `models` سرور قرار دارد (تنظیمات artpath). | -| timeOn | زمان بازی دنیا (ساعت) که این object ظاهر خواهد شد | -| timeOff | زمان بازی دنیا (ساعت) که این object ناپدید خواهد شد | +مدل object ساده سفارشی جدیدی برای دانلود اضافه می‌کند. فایل‌های مدل در `Documents\GTA San Andreas User Files\SAMP\cache` بازیکن در پوشه IP و Port سرور با نام فایل به شکل [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) ذخیره خواهند شد. + +| نام | توضیحات | +| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| virtualWorld | ID دنیای مجازی برای در دسترس قرار دادن مدل. از -1 برای همه دنیاها استفاده کنید. | +| baseid | [ID مدل object پایه](https://models.open.mp/?cat=objects) برای استفاده (object اصلی برای استفاده زمانی که دانلود شکست بخورد). | +| newid | ID مدل object جدید در محدوده -1000 تا -30000 (29000 slot) برای استفاده بعدی با [CreateObject](CreateObject) یا [CreatePlayerObject](CreatePlayerObject). | +| const dff[] | نام فایل کالیژن مدل **.dff** که به طور پیش‌فرض در پوشه `models` سرور قرار دارد (تنظیمات [artpath](../../server/server.cfg#مدلهای-سفارشی)). | +| const textureLibrary[] | نام فایل texture مدل **.txd** که به طور پیش‌فرض در پوشه `models` سرور قرار دارد (تنظیمات [artpath](../../server/server.cfg#مدلهای-سفارشی)). | +| timeOn | زمان بازی دنیا ([ساعت](SetWorldTime)) که این object ظاهر خواهد شد | +| timeOff | زمان بازی دنیا ([ساعت](SetWorldTime)) که این object ناپدید خواهد شد | ## مقدار بازگشتی @@ -41,7 +41,7 @@ public OnGameModeInit() :::note -- ابتدا باید **useartwork** یا **artwork.enable** در تنظیمات سرور فعال شود تا این کار کند. +- ابتدا باید **useartwork** یا **artwork.enable** در [تنظیمات سرور](../../server/server.cfg#مدلهای-سفارشی) فعال شود تا این کار کند. - وقتی `virtualworld` تنظیم شود، مدل‌ها یک بار دانلود خواهند شد که بازیکن وارد دنیای خاص شود. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md index aede85cfc588..d1c699399504 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md @@ -43,7 +43,7 @@ public OnGameModeInit() :::note -این تابع ID pickup برنمی‌گرداند که بتوانید مثلاً در OnPlayerPickUpPickup استفاده کنید. اگر می‌خواهید ID ها اختصاص دهید از [CreatePickup](CreatePickup) استفاده کنید. +این تابع ID pickup برنمی‌گرداند که بتوانید مثلاً در [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup) استفاده کنید. اگر می‌خواهید ID ها اختصاص دهید از [CreatePickup](CreatePickup) استفاده کنید. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md index 2a22d407125f..e8eeae775ab5 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md @@ -9,7 +9,7 @@ tags: ["vehicle"] یک وسیله نقلیه 'استاتیک' (مدل‌ها از قبل برای بازیکنان بارگذاری می‌شوند) را به گیم مود اضافه می‌کند. -تنها در یک مورد با AddStaticVehicle متفاوت است: امکان تنظیم زمان ریسپان را برای زمانی که وسیله نقلیه توسط راننده خالی از سکنه باشد فراهم می‌کند. +تنها در یک مورد با [AddStaticVehicle](AddStaticVehicle) متفاوت است: امکان تنظیم زمان ریسپان را برای زمانی که وسیله نقلیه توسط راننده خالی از سکنه باشد فراهم می‌کند. | نام | توضیحات | | -------------------------------------- | ------------------------------------------------------------------------------------------------------------ | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md index eb4c95cb31fa..d21700c70a22 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md @@ -9,13 +9,13 @@ tags: ["player", "3dtextlabel"] یک برچسب متنی سه‌بعدی را به بازیکن متصل می‌کند. -| نام | توضیحات | -| ------------- | ----------------------------------------------------------------------------- | -| Text3D:textid | شناسه برچسب متنی سه‌بعدی برای اتصال. توسط Create3DTextLabel برگردانده می‌شود. | -| playerid | شناسه بازیکن برای اتصال برچسب. | -| Float:offsetX | فاصله X از بازیکن. | -| Float:offsetY | فاصله Y از بازیکن. | -| Float:offsetZ | فاصله Z از بازیکن. | +| نام | توضیحات | +| ------------- | ------------------------------------------------------------------------------------------------ | +| Text3D:textid | شناسه برچسب متنی سه‌بعدی برای اتصال. توسط [Create3DTextLabel](Create3DTextLabel) برگردانده می‌شود. | +| playerid | شناسه بازیکن برای اتصال برچسب. | +| Float:offsetX | فاصله X از بازیکن. | +| Float:offsetY | فاصله Y از بازیکن. | +| Float:offsetZ | فاصله Z از بازیکن. | ## مقدار بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToObject.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToObject.md index 5a6c88b28ce3..e4cc942a24ab 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToObject.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToObject.md @@ -38,7 +38,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -شما باید ابتدا شیء را ایجاد کنید، قبل از تلاش برای اتصال دوربین بازیکن به آن. +شما باید ابتدا شیء را [ایجاد](CreateObject) کنید، قبل از تلاش برای اتصال دوربین بازیکن به آن. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToPlayerObject.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToPlayerObject.md index a63889899082..8c58c60b5691 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToPlayerObject.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToPlayerObject.md @@ -7,7 +7,7 @@ tags: ["player", "camera"] ## توضیحات -دوربین یک بازیکن را به یک شی‌ء بازیکن متصل می‌کند. بازیکن قادر است دوربین خود را حین اتصال به شی‌ء حرکت دهد. می‌تواند با MovePlayerObject و AttachPlayerObjectToVehicle استفاده شود. +دوربین یک بازیکن را به یک شی‌ء بازیکن متصل می‌کند. بازیکن قادر است دوربین خود را حین اتصال به شی‌ء حرکت دهد. می‌تواند با [MovePlayerObject](MovePlayerObject) و [AttachPlayerObjectToVehicle](AttachPlayerObjectToVehicle) استفاده شود. | نام | توضیحات | | -------------- | ------------------------------------------------------ | @@ -38,7 +38,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -شی‌ء بازیکن باید قبل از تلاش برای اتصال دوربین بازیکن به آن ایجاد شود. +شی‌ء بازیکن باید قبل از تلاش برای اتصال دوربین بازیکن به آن [ایجاد](CreatePlayerObject) شود. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md index b7becf003510..12c0ce5b49f9 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md @@ -40,7 +40,7 @@ AttachObjectToObject(gObjectId, gAttachToId, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, true) :::note -- هر دو شیء باید قبل از تلاش برای اتصال آن‌ها ایجاد شوند. +- هر دو شیء باید قبل از تلاش برای اتصال آن‌ها [ایجاد](CreateObject) شوند. - نسخه player-object از این تابع در SA-MP وجود ندارد. اما [AttachPlayerObjectToObject](AttachPlayerObjectToObject) در open.mp وجود دارد ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToVehicle.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToVehicle.md index e293d289cda3..b65072fafa8b 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToVehicle.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToVehicle.md @@ -7,18 +7,18 @@ tags: ["object", "vehicle"] ## توضیحات -اتصال یک شیء به وسیله نقلیه. - -| نام | توضیحات | -| --------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| objectid | ID شیئی که به وسیله نقلیه متصل می‌شود. توجه کنید که این یک object ID است، نه model ID. شیء ابتدا باید با CreateObject ایجاد شده باشد. | -| parentid | ID وسیله نقلیه‌ای که شیء به آن متصل می‌شود. | -| Float:offsetX | جابجایی محور X از وسیله نقلیه برای اتصال شیء. | -| Float:offsetY | جابجایی محور Y از وسیله نقلیه برای اتصال شیء. | -| Float:offsetZ | جابجایی محور Z از وسیله نقلیه برای اتصال شیء. | -| Float:rotationX | جابجایی چرخش X برای شیء. | -| Float:rotationY | جابجایی چرخش Y برای شیء. | -| Float:rotationZ | جابجایی چرخش Z برای شیء. | +اتصال یک [شیء](CreateObject) به [وسیله نقلیه](CreateVehicle). + +| نام | توضیحات | +| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | +| objectid | ID شیئی که به وسیله نقلیه متصل می‌شود. توجه کنید که این یک object ID است، نه model ID. شیء ابتدا باید با [CreateObject](CreateObject) ایجاد شده باشد. | +| parentid | ID وسیله نقلیه‌ای که شیء به آن متصل می‌شود. | +| Float:offsetX | جابجایی محور X از وسیله نقلیه برای اتصال شیء. | +| Float:offsetY | جابجایی محور Y از وسیله نقلیه برای اتصال شیء. | +| Float:offsetZ | جابجایی محور Z از وسیله نقلیه برای اتصال شیء. | +| Float:rotationX | جابجایی چرخش X برای شیء. | +| Float:rotationY | جابجایی چرخش Y برای شیء. | +| Float:rotationZ | جابجایی چرخش Z برای شیء. | ## مقدار بازگشتی @@ -36,13 +36,13 @@ AttachObjectToVehicle(objectid, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0); :::note -شیء باید ابتدا ایجاد شده باشد. +شیء باید ابتدا [ایجاد شده](CreateObject) باشد. ::: :::warning -زمانی که وسیله نقلیه نابود یا respawn می‌شود، اشیاء متصل شده با آن نابود نخواهند شد؛ آن‌ها در موقعیتی که وسیله نقلیه ناپدید شده ثابت باقی می‌مانند و به وسیله نقلیه بعدی که vehicle ID که اشیاء به آن متصل بودند را بگیرد، متصل خواهند شد. +زمانی که وسیله نقلیه [نابود](DestroyVehicle) یا [respawn](../callbacks/OnVehicleSpawn) می‌شود، اشیاء متصل شده با آن نابود نخواهند شد؛ آن‌ها در موقعیتی که وسیله نقلیه ناپدید شده ثابت باقی می‌مانند و به وسیله نقلیه بعدی که vehicle ID که اشیاء به آن متصل بودند را بگیرد، متصل خواهند شد. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToVehicle.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToVehicle.md index 42436bbcc9ea..34f35bd71473 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToVehicle.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToVehicle.md @@ -46,7 +46,7 @@ public OnPlayerStateChange(playerid, PLAYER_STATE:newstate, PLAYER_STATE:oldstat :::note -باید شیء را قبل از تلاش برای اتصال آن به وسیله نقلیه ایجاد کنید. +باید شیء را قبل از تلاش برای اتصال آن به وسیله نقلیه [ایجاد](CreatePlayerObject) کنید. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md index ff050310cd23..60a3e1fb14aa 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md @@ -13,7 +13,7 @@ tags: ["player", "administration"] می‌توانید از [BanEx](BanEx) برای ارائه دلیل مسدودیت استفاده کنید. -مسدودیت‌های IP را می‌توان با استفاده از دستورات RCON `banip` و `unbanip` اضافه/حذف کرد ([SendRconCommand](SendRconCommand)). +مسدودیت‌های IP را می‌توان با استفاده از دستورات [RCON](../../server/RemoteConsole) `banip` و `unbanip` اضافه/حذف کرد ([SendRconCommand](SendRconCommand)). | نام | توضیحات | | -------- | ----------------------------- | 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 f10269e4378c..58e0c5d2e2a3 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 @@ -36,7 +36,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- ClearAnimations زمانی که انیمیشن تمام می‌شود کاری انجام نمی‌دهد اگر ما 'true' را برای پارامتر freeze در ApplyAnimation پاس دهیم. +- ClearAnimations زمانی که انیمیشن تمام می‌شود کاری انجام نمی‌دهد اگر ما 'true' را برای پارامتر freeze در [ApplyAnimation](ApplyAnimation) پاس دهیم. - برخلاف برخی روش‌های دیگر برای بیرون کردن بازیکن از وسیله نقلیه، این همچنین سرعت وسیله نقلیه را به صفر ریست می‌کند و بلافاصله ماشین را متوقف می‌کند. بازیکن در بالای وسیله نقلیه با همان مکانی که در صندلی ماشین بود ظاهر می‌شود. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md index daec05e916e9..08cbf8918706 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md @@ -48,13 +48,14 @@ public OnGameModeExit() :::note - بازیگرها برای ایستادن در جایی طراحی شده‌اند، مثلاً صندوقداران و بارمن‌ها. آنها می‌توانند انیمیشن اجرا کنند (یک بار یا حلقه‌ای) با استفاده از [ApplyActorAnimation](ApplyActorAnimation). -- بازیگرها به طور پیش‌فرض آسیب‌ناپذیر هستند. +- بازیگرها به طور پیش‌فرض [آسیب‌ناپذیر](SetActorInvulnerable) هستند. ::: :::warning -- بازیگرها کاملاً از NPC ها جدا هستند. آنها از شناسه/اسلات بازیکن در سرور استفاده نمی‌کنند و نمی‌توان آنها را مانند NPC ها مدیریت کرد. بازیگرها محدود به 1000 (MAX_ACTORS) هستند. +- بازیگرها کاملاً از NPC ها جدا هستند. آنها از شناسه/اسلات بازیکن در سرور استفاده نمی‌کنند و نمی‌توان آنها را مانند NPC ها مدیریت کرد. +- بازیگرها محدود به 1000 (MAX_ACTORS) هستند. - بازیگرها می‌توانند توسط وسایل نقلیه هل داده شوند، از تایمر استفاده کنید تا آنها را به موقعیت خود برگردانید. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md index 955638c3aa17..95ee9192a592 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md @@ -9,15 +9,15 @@ tags: ["object"] در مختصات مشخص شده در دنیای بازی یک شیء ایجاد می‌کند. -| نام | توضیحات | -| ------------------ | ------------------------------------------------------------------------------------------------------------------- | -| modelid | مدلی که باید ایجاد شود. | -| Float:x | مختصات X برای ایجاد شیء. | -| Float:y | مختصات Y برای ایجاد شیء. | -| Float:z | مختصات Z برای ایجاد شیء. | -| Float:rotationX | چرخش X شیء. | -| Float:rotationY | چرخش Y شیء. | -| Float:rotationZ | چرخش Z شیء. | +| نام | توضیحات | +| ------------------ | --------------------------------------------------------------------------------------------------------------- | +| modelid | [مدلی](https://models.open.mp/?cat=objects) که باید ایجاد شود. | +| Float:x | مختصات X برای ایجاد شیء. | +| Float:y | مختصات Y برای ایجاد شیء. | +| Float:z | مختصات Z برای ایجاد شیء. | +| Float:rotationX | چرخش X شیء. | +| Float:rotationY | چرخش Y شیء. | +| Float:rotationZ | چرخش Z شیء. | | Float:drawDistance | (اختیاری) فاصله‌ای که San Andreas اشیاء را در آن رندر می‌کند. 0.0 باعث می‌شود اشیاء در فاصله پیش‌فرض خود رندر شوند. | ## مقادیر برگشتی 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 73fc6ef3f8fe..ddd5a772ee79 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 @@ -7,7 +7,7 @@ tags: ["pickup"] ## توضیحات -این تابع دقیقاً همان کار AddStaticPickup را انجام می‌دهد، به جز اینکه ID پیکاپی را برمی‌گرداند که می‌تواند برای حذف آن و ردیابی با OnPlayerPickUpPickup استفاده شود. +این تابع دقیقاً همان کار [AddStaticPickup](AddStaticPickup) را انجام می‌دهد، به جز اینکه ID پیکاپی را برمی‌گرداند که می‌تواند برای حذف آن و ردیابی با [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup) استفاده شود. | نام | توضیحات | | -------------------------------- | ------------------------------------------------------------------------------- | @@ -58,7 +58,7 @@ pickup_Armour = 0; // متغیر پیکاپ باید ریست شود تا از :::warning -**باگ‌های شناخته شده:** پیکاپ‌هایی که X یا Y آن‌ها کمتر از 4096.0- یا بیشتر از 4096.0 باشد، نمایش داده نمی‌شوند و OnPlayerPickUpPickup را هم فعال نمی‌کنند. +**باگ‌های شناخته شده:** پیکاپ‌هایی که X یا Y آن‌ها کمتر از 4096.0- یا بیشتر از 4096.0 باشد، نمایش داده نمی‌شوند و [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup) را هم فعال نمی‌کنند. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md index de2f8bcbcb29..9e2cf8179a00 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md @@ -9,16 +9,16 @@ tags: ["player", "object", "playerobject"] شیئی ایجاد می‌کند که فقط برای یک بازیکن قابل مشاهده است. -| نام | توضیحات | -| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| playerid | ID بازیکنی که برایش شیء ایجاد شود. | -| modelid | مدلی که باید ایجاد شود. | -| Float:x | مختصات X برای ایجاد شیء. | -| Float:y | مختصات Y برای ایجاد شیء. | -| Float:z | مختصات Z برای ایجاد شیء. | -| Float:rotationX | چرخش X شیء. | -| Float:rotationY | چرخش Y شیء. | -| Float:rotationZ | چرخش Z شیء. | +| نام | توضیحات | +| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| playerid | ID بازیکنی که برایش شیء ایجاد شود. | +| modelid | [مدلی](https://models.open.mp/?cat=objects) که باید ایجاد شود. | +| Float:x | مختصات X برای ایجاد شیء. | +| Float:y | مختصات Y برای ایجاد شیء. | +| Float:z | مختصات Z برای ایجاد شیء. | +| Float:rotationX | چرخش X شیء. | +| Float:rotationY | چرخش Y شیء. | +| Float:rotationZ | چرخش Z شیء. | | Float:drawDistance | فاصله‌ای که اشیاء برای بازیکنان ظاهر می‌شوند. 0.0 باعث می‌شود شیء در فاصله پیش‌فرض خود رندر شود. عدم استفاده از این پارامتر باعث می‌شود اشیاء در فاصله پیش‌فرض خود رندر شوند. | ## مقادیر بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md index 4e0a011fd157..d15c133395c7 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md @@ -59,7 +59,7 @@ public OnPlayerConnect(playerid) **باگ‌های شناخته شده:** -- پیکاپ‌هایی که X یا Y آن‌ها کمتر از 4096.0- یا بیشتر از 4096.0 باشد، نمایش داده نمی‌شوند و OnPlayerPickUpPlayerPickup را هم فعال نمی‌کنند. +- پیکاپ‌هایی که X یا Y آن‌ها کمتر از 4096.0- یا بیشتر از 4096.0 باشد، نمایش داده نمی‌شوند و [OnPlayerPickUpPlayerPickup](../callbacks/OnPlayerPickUpPlayerPickup) را هم فعال نمی‌کنند. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreateVehicle.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreateVehicle.md index 9d377e6acf71..8ed67ae3123d 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreateVehicle.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreateVehicle.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## توضیحات -وسیله نقلیه‌ای در دنیا ایجاد می‌کند. می‌تواند در هر زمانی در اسکریپت به جای AddStaticVehicleEx استفاده شود. +وسیله نقلیه‌ای در دنیا ایجاد می‌کند. می‌تواند در هر زمانی در اسکریپت به جای [AddStaticVehicleEx](AddStaticVehicleEx) استفاده شود. | نام | توضیحات | | -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/Delete3DTextLabel.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/Delete3DTextLabel.md index 9e4320d5d7b7..20f7d65b9445 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/Delete3DTextLabel.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/Delete3DTextLabel.md @@ -7,7 +7,7 @@ tags: ["3dtextlabel"] ## توضیحات -حذف برچسب متن سه‌بعدی (ایجادشده با Create3DTextLabel). +حذف برچسب متن سه‌بعدی (ایجادشده با [Create3DTextLabel](Create3DTextLabel)). | نام | توضیحات | | ------------- | --------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DeletePlayer3DTextLabel.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DeletePlayer3DTextLabel.md index c8528e6c024b..690368f7e779 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DeletePlayer3DTextLabel.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DeletePlayer3DTextLabel.md @@ -7,7 +7,7 @@ tags: ["player", "3dtextlabel"] ## توضیحات -برچسب متن سه‌بعدی ایجاد شده با CreatePlayer3DTextLabel را نابود می‌کند. +برچسب متن سه‌بعدی ایجاد شده با [CreatePlayer3DTextLabel](CreatePlayer3DTextLabel) را نابود می‌کند. | نام | توضیحات | | ------------------- | --------------------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md index b8e636e5e27b..6a2b78ac4573 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md @@ -9,11 +9,11 @@ tags: ["actor"] ## توضیحات -بازیگری که با CreateActor ایجاد شده را نابود می‌کند. +بازیگری که با [CreateActor](CreateActor) ایجاد شده را نابود می‌کند. -| نام | توضیحات | -| ------- | --------------------------------------------------------- | -| actorid | شناسه بازیگر برای نابودی. توسط CreateActor برگردانده شده. | +| نام | توضیحات | +| ------- | ------------------------------------------------------------------------ | +| actorid | شناسه بازیگر برای نابودی. توسط [CreateActor](CreateActor) برگردانده شده. | ## مقادیر بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md index fc1f89c884e1..d8fcb57ee911 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md @@ -7,11 +7,11 @@ tags: ["object"] ## توضیحات -آبجکتی که با CreateObject ایجاد شده را نابود (حذف) می‌کند. +آبجکتی که با [CreateObject](CreateObject) ایجاد شده را نابود (حذف) می‌کند. -| نام | توضیحات | -| -------- | --------------------------------------------------------- | -| objectid | شناسه آبجکت برای نابودی. توسط CreateObject برگردانده شده. | +| نام | توضیحات | +| -------- | ------------------------------------------------------------------------- | +| objectid | شناسه آبجکت برای نابودی. توسط [CreateObject](CreateObject) برگردانده شده. | ## مقادیر بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md index 071cb6527ff9..afc5f192b763 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md @@ -7,11 +7,11 @@ tags: ["pickup"] ## توضیحات -پیکاپی که با CreatePickup ایجاد شده را نابود می‌کند. +پیکاپی که با [CreatePickup](CreatePickup) ایجاد شده را نابود می‌کند. -| نام | توضیحات | -| ------ | ---------------------------------------------------------- | -| pickup | شناسه پیکاپ برای نابودی (توسط CreatePickup برگردانده شده). | +| نام | توضیحات | +| ------ | -------------------------------------------------------------------------- | +| pickup | شناسه پیکاپ برای نابودی (توسط [CreatePickup](CreatePickup) برگردانده شده). | ## مقادیر بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPlayerObject.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPlayerObject.md index 8bf922e9284b..926434ab75be 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPlayerObject.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPlayerObject.md @@ -9,10 +9,10 @@ tags: ["player", "object", "playerobject"] آبجکت بازیکن ایجاد شده با [CreatePlayerObject](CreatePlayerObject) را نابود می‌کند. -| نام | توضیحات | -| -------- | ---------------------------------------------------------------------- | -| playerid | شناسه بازیکنی که آبجکت بازیکن او باید نابود شود. | -| objectid | شناسه آبجکت بازیکن برای نابودی. توسط CreatePlayerObject برگردانده شده. | +| نام | توضیحات | +| -------- | -------------------------------------------------------------------------------------------- | +| playerid | شناسه بازیکنی که آبجکت بازیکن او باید نابود شود. | +| objectid | شناسه آبجکت بازیکن برای نابودی. توسط [CreatePlayerObject](CreatePlayerObject) برگردانده شده. | ## مقادیر بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DisableInteriorEnterExits.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DisableInteriorEnterExits.md index ef89b32d70cc..08012bab6ee4 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DisableInteriorEnterExits.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DisableInteriorEnterExits.md @@ -27,9 +27,8 @@ public OnGameModeInit() :::warning -این تابع فقط در صورتی کار خواهد کرد که قبل از اتصال بازیکن استفاده شود (توصیه می‌شود در [OnGameModeInit](../callbacks/OnGameModeInit) استفاده شود). نشانگرهای بازیکن متصل را حذف نخواهد کرد. - -اگر gamemode بعد از استفاده از این تابع تغییر کند و gamemode جدید نشانگرها را غیرفعال نکند، نشانگرها برای بازیکنان از قبل متصل دوباره ظاهر نخواهند شد (اما برای بازیکنان تازه متصل ظاهر خواهند شد). +- این تابع فقط در صورتی کار خواهد کرد که قبل از اتصال بازیکن استفاده شود (توصیه می‌شود در [OnGameModeInit](../callbacks/OnGameModeInit) استفاده شود). نشانگرهای بازیکن متصل را حذف نخواهد کرد. +- اگر gamemode بعد از استفاده از این تابع تغییر کند و gamemode جدید نشانگرها را غیرفعال نکند، نشانگرها برای بازیکنان از قبل متصل دوباره ظاهر نخواهند شد (اما برای بازیکنان تازه متصل ظاهر خواهند شد). ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/EditAttachedObject.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/EditAttachedObject.md index 9ad155957b4c..0e67ca2e15da 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/EditAttachedObject.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/EditAttachedObject.md @@ -48,7 +48,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -بازیکنان قادر خواهند بود آبجکت‌ها را تا اندازه بسیار بزرگ یا منفی مقیاس کنند. باید محدودیت‌هایی با استفاده از OnPlayerEditAttachedObject برای لغو ویرایش یا کلیپ کردن مقادیر مقیاس در نظر گرفته شود. +بازیکنان قادر خواهند بود آبجکت‌ها را تا اندازه بسیار بزرگ یا منفی مقیاس کنند. باید محدودیت‌هایی با استفاده از [OnPlayerEditAttachedObject](../callbacks/OnPlayerEditAttachedObject) برای لغو ویرایش یا کلیپ کردن مقادیر مقیاس در نظر گرفته شود. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/EnableVehicleFriendlyFire.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/EnableVehicleFriendlyFire.md index 5e6603485cb0..6fbf4c799ced 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/EnableVehicleFriendlyFire.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/EnableVehicleFriendlyFire.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## توضیحات -آتش دوستانه را برای خودروهای تیمی فعال می‌کند. بازیکنان قادر به آسیب زدن به خودروهای هم‌تیمی‌هایشان نخواهند بود (باید از SetPlayerTeam استفاده شود!). +آتش دوستانه را برای خودروهای تیمی فعال می‌کند. بازیکنان قادر به آسیب زدن به خودروهای هم‌تیمی‌هایشان نخواهند بود (باید از [SetPlayerTeam](SetPlayerTeam) استفاده شود!). ## مقادیر برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md index b5fdc0b0be2d..d27101cd5583 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md @@ -7,7 +7,7 @@ tags: [] ## توضیحات -این تابع اجازه روشن کردن نام‌های منطقه / ناحیه مثل متن "Vinewood" یا "Doherty" در پایین-راست صفحه هنگام ورود به ناحیه را می‌دهد. این یک گزینه gamemode است و باید در کال‌بک OnGameModeInit تنظیم شود. +این تابع اجازه روشن کردن نام‌های منطقه / ناحیه مثل متن "Vinewood" یا "Doherty" در پایین-راست صفحه هنگام ورود به ناحیه را می‌دهد. این یک گزینه gamemode است و باید در کال‌بک [OnGameModeInit](../callbacks/OnGameModeInit) تنظیم شود. | نام | توضیحات | | ----------- | ----------------------------------------------------------------------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md index 4b27fc3d5b8f..5f4f2a414aeb 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md @@ -9,13 +9,13 @@ tags: ["custom model", "custom skin", "simple model"] ## توضیحات -پیدا کردن فایل مدل کاستوم اسکین یا شیء ساده موجود. فایل‌های مدل به صورت پیش‌فرض در پوشه `models` سرور قرار دارند (تنظیمات artpath). +پیدا کردن فایل مدل کاستوم اسکین یا [شیء](AddSimpleModel) ساده موجود. فایل‌های مدل به صورت پیش‌فرض در پوشه `models` سرور قرار دارند (تنظیمات [artpath](../../server/server.cfg#مدلهای-سفارشی)). -| نام | توضیحات | -| ---------------------- | ---------------------------------------------------------------------- | -| crc | CRC checksum فایل مدل کاستوم. | -| output[] | آرایه ای برای ذخیره کردن نام فایل **.dff**، که با رفرنس پاس داده میشه. | -| size = sizeof (output) | طول رشته ای که باید ذخیره بشه. | +| نام | توضیحات | +| ---------------------- | -------------------------------------------------------------------------------------- | +| crc | [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) checksum فایل مدل کاستوم. | +| output[] | آرایه ای برای ذخیره کردن نام فایل **.dff**، که با رفرنس پاس داده میشه. | +| size = sizeof (output) | طول رشته ای که باید ذخیره بشه. | ## برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md index c30c6fa578bf..d900d946a240 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md @@ -9,13 +9,13 @@ tags: ["custom model", "custom skin", "simple model"] ## توضیحات -پیدا کردن فایل تکسچر کاستوم اسکین یا شیء ساده موجود. فایل‌های مدل به صورت پیش‌فرض در پوشه `models` سرور قرار دارند (تنظیمات artpath). +پیدا کردن فایل تکسچر کاستوم اسکین یا [شیء](AddSimpleModel) ساده موجود. فایل‌های مدل به صورت پیش‌فرض در پوشه `models` سرور قرار دارند (تنظیمات [artpath](../../server/server.cfg#مدلهای-سفارشی)). -| نام | توضیحات | -| ---------------------- | ---------------------------------------------------------------------- | -| crc | CRC checksum فایل مدل کاستوم. | -| output[] | آرایه ای برای ذخیره کردن نام فایل **.txd**، که با رفرنس پاس داده میشه. | -| size = sizeof (output) | طول رشته ای که باید ذخیره بشه. | +| نام | توضیحات | +| ---------------------- | -------------------------------------------------------------------------------------- | +| crc | [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) checksum فایل مدل کاستوم. | +| output[] | آرایه ای برای ذخیره کردن نام فایل **.txd**، که با رفرنس پاس داده میشه. | +| size = sizeof (output) | طول رشته ای که باید ذخیره بشه. | ## برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ForceClassSelection.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ForceClassSelection.md index 82710a5dc953..212e3f0f4277 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ForceClassSelection.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ForceClassSelection.md @@ -37,7 +37,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -این تابع وقتی با TogglePlayerSpectating ترکیب می‌شه (مثال بالا رو ببینین) تغییر وضعیت به `PLAYER_STATE_WASTED` انجام نمی‌ده، همونطور که اینجا لیست شده. +این تابع وقتی با [TogglePlayerSpectating](TogglePlayerSpectating) ترکیب می‌شه (مثال بالا رو ببینین) [تغییر وضعیت](../callbacks/OnPlayerStateChange) به `PLAYER_STATE_WASTED` انجام نمی‌ده، همونطور که اینجا لیست شده. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md index 5074d9832e24..ac0b02f31ccf 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md @@ -51,9 +51,8 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::warning -توجه کن که بازیکنا ممکنه کرش کنن اگه از تعداد فرد علامت تیلد (~) توی متن بازی استفاده کنی. استفاده از کدهای رنگ (مثل `~r~`) بعد از کاراکتر 255ام ممکنه کلاینت رو کرش کنه. - -همچنین، فاصله خالی در انتهای رشته ممکنه باعث شکست بشه. مثلاً: `"Headshot "` باعث شکست میشه. به جاشون باید `"Headshot"` یا `"Headshot_"` استفاده کنی. +- توجه کن که بازیکنا ممکنه کرش کنن اگه از تعداد فرد علامت تیلد (~) توی متن بازی استفاده کنی. استفاده از کدهای رنگ (مثل `~r~`) بعد از کاراکتر 255ام ممکنه کلاینت رو کرش کنه. +- همچنین، فاصله خالی در انتهای رشته ممکنه باعث شکست بشه. مثلاً: `"Headshot "` باعث شکست میشه. به جاشون باید `"Headshot"` یا `"Headshot_"` استفاده کنی. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneStopFlashForAll.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneStopFlashForAll.md index c8c4e6ad1aba..c6d5b918bbc2 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneStopFlashForAll.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneStopFlashForAll.md @@ -9,9 +9,9 @@ tags: ["gangzone"] چشمک زدن یه gangzone رو برای همه بازیکن‌ها متوقف میکنه. -| نام | توضیحات | -| ------ | ---------------------------------------------------------------------- | -| zoneid | ID zone ای که باید چشمک زدنش متوقف بشه. که از GangZoneCreate برمیگرده. | +| نام | توضیحات | +| ------ | ---------------------------------------------------------------------------------------- | +| zoneid | ID zone ای که باید چشمک زدنش متوقف بشه. که از [GangZoneCreate](GangZoneCreate) برمیگرده. | ## برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md index d12712720c14..9f92dfd833bb 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md @@ -13,12 +13,12 @@ tags: ["actor"] موقعیت Actor رو می‌گیره. -| اسم | توضیح | -| -------- | ---------------------------------------------------------------------------------- | -| actorid | شناسه Actor که می‌خوای موقعیت‌ش رو بگیری. با CreateActor برگشت داده میشه. | -| &Float:x | متغیری از نوع float که با reference پاس داده میشه و مختصات X Actor توش ذخیره میشه. | -| &Float:y | متغیری از نوع float که با reference پاس داده میشه و مختصات Y Actor توش ذخیره میشه. | -| &Float:z | متغیری از نوع float که با reference پاس داده میشه و مختصات Z Actor توش ذخیره میشه. | +| اسم | توضیح | +| -------- | -------------------------------------------------------------------------------------- | +| actorid | شناسه Actor که می‌خوای موقعیت‌ش رو بگیری. با [CreateActor](CreateActor) برگشت داده میشه. | +| &Float:x | متغیری از نوع float که با reference پاس داده میشه و مختصات X Actor توش ذخیره میشه. | +| &Float:y | متغیری از نوع float که با reference پاس داده میشه و مختصات Y Actor توش ذخیره میشه. | +| &Float:z | متغیری از نوع float که با reference پاس داده میشه و مختصات Z Actor توش ذخیره میشه. | ## مقادیر برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetAnimationName.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetAnimationName.md index b2899196a0a8..b9f1a8cc8b54 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetAnimationName.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetAnimationName.md @@ -11,13 +11,13 @@ tags: [] کتابخونه/اسم انیمیشن رو برای index مشخص شده می‌گیره. -| اسم | توضیح | -| -------------------------------- | ------------------------------------------------------------- | -| index | index انیمیشن، که با GetPlayerAnimationIndex برگشت داده میشه. | -| animationLibrary[] | متغیر string که کتابخونه انیمیشن رو ذخیره می‌کنه. | -| len1 = sizeof (animationLibrary) | اندازه string که کتابخونه انیمیشن رو ذخیره می‌کنه. | -| animationName[] | متغیر string که اسم انیمیشن رو ذخیره می‌کنه. | -| len2 = sizeof (animationName) | اندازه string که اسم انیمیشن رو ذخیره می‌کنه. | +| اسم | توضیح | +| -------------------------------- | ---------------------------------------------------------------------------------------- | +| index | index انیمیشن، که با [GetPlayerAnimationIndex](GetPlayerAnimationIndex) برگشت داده میشه. | +| animationLibrary[] | متغیر string که کتابخونه انیمیشن رو ذخیره می‌کنه. | +| len1 = sizeof (animationLibrary) | اندازه string که کتابخونه انیمیشن رو ذخیره می‌کنه. | +| animationName[] | متغیر string که اسم انیمیشن رو ذخیره می‌کنه. | +| len2 = sizeof (animationName) | اندازه string که اسم انیمیشن رو ذخیره می‌کنه. | ## مقادیر برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md index 5eb60dbdfe5f..f46c717ea815 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md @@ -13,16 +13,16 @@ tags: ["object"] دریافت داده‌های متریال از یک شاخص از آبجکت. -| نام | توضیحات | -| ------------------ | -------------------------------------------------------------- | -| objectid | شناسه آبجکت. | -| materialIndex | شاخص متریال روی آبجکت. (0 تا 15) | -| &modelid | متغیری برای ذخیره شناسه مدل، به صورت مرجع ارسال می‌شود. | -| textureLibrary[] | آرایه‌ای برای ذخیره textureLibrary، به صورت مرجع ارسال می‌شود. | -| textureLibrarySize | اندازه textureLibrary. | -| textureName[] | آرایه‌ای برای ذخیره textureName، به صورت مرجع ارسال می‌شود. | -| textureNameSize | اندازه textureName. | -| &materialColour | متغیری برای ذخیره materialColour، به صورت مرجع ارسال می‌شود. | +| نام | توضیحات | +| ------------------ | ---------------------------------------------------------------------------------------------- | +| objectid | شناسه آبجکت. | +| materialIndex | شاخص متریال روی آبجکت. (0 تا 15) | +| &modelid | متغیری برای ذخیره شناسه مدل، به صورت مرجع ارسال می‌شود. | +| textureLibrary[] | آرایه‌ای برای ذخیره نام کتابخانهٔ بافت، به صورت مرجع ارسال می‌شود. | +| textureLibrarySize | اندازهٔ آرایه‌ای که نام کتابخانهٔ بافت را ذخیره می‌کند. | +| textureName[] | آرایه‌ای برای ذخیره نام [بافت](https://models.open.mp/?cat=textures)، به صورت مرجع ارسال می‌شود. | +| textureNameSize | اندازهٔ آرایه‌ای که نام بافت را ذخیره می‌کند. | +| &materialColour | متغیری برای ذخیره materialColour، به صورت مرجع ارسال می‌شود. | ## مقادیر بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md index a688c36d1b66..7279c4ad8fd1 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md @@ -52,7 +52,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -اگرچه armor می‌تونه در سمت سرور به مقادیر تقریباً بی‌نهایت تنظیم بشه، کلاینت‌های منفرد فقط مقادیر تا 255 رو گزارش می‌دن. هر چیزی بالاتر wrap around می‌شه؛ 256 به 0، 257 به 1 و غیره تبدیل میشه. Armor به صورت گرد شده اعداد صحیح بدست می‌آد: 50.15 رو ست کنید ولی 50.0 بگیرید +- اگرچه armor می‌تونه در سمت سرور به مقادیر تقریباً بی‌نهایت تنظیم بشه، کلاینت‌های منفرد فقط مقادیر تا 255 رو گزارش می‌دن. هر چیزی بالاتر wrap around می‌شه؛ 256 به 0، 257 به 1 و غیره تبدیل میشه. +- Armor به صورت گرد شده اعداد صحیح بدست می‌آد: 50.15 رو ست کنید ولی 50.0 بگیرید ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraAspectRatio.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraAspectRatio.md index 2480a56fef2c..9bc14154c6ac 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraAspectRatio.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraAspectRatio.md @@ -7,7 +7,7 @@ tags: ["player", "camera"] ## توضیحات -نسبت ابعاد دوربین یک بازیکن را بازمی‌گرداند. +[نسبت ابعاد](https://en.wikipedia.org/wiki/Aspect_ratio_(image)) دوربین یک بازیکن را بازمی‌گرداند. | نام | توضیحات | | -------- | ------------------------------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetPlayer.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetPlayer.md index 3b1100e91dc1..3414293b2af1 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetPlayer.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetPlayer.md @@ -34,7 +34,7 @@ if (IsPlayerAdmin(playerTarget)) :::warning -این تابع را با GetPlayerTargetPlayer اشتباه نگیرید. GetPlayerTargetPlayer شناسه بازیکنی که playerid با سلاح به آن **نشانه‌گیری می‌کند** را برمی‌گرداند. GetPlayerCameraTargetPlayer شناسه بازیکنی که playerid به آن **نگاه می‌کند** (نقطه مرجع مرکز صفحه است) را برمی‌گرداند. +این تابع را با [GetPlayerTargetPlayer](GetPlayerTargetPlayer) اشتباه نگیرید. GetPlayerTargetPlayer شناسه بازیکنی که playerid با سلاح به آن **نشانه‌گیری می‌کند** را برمی‌گرداند. GetPlayerCameraTargetPlayer شناسه بازیکنی که playerid به آن **نگاه می‌کند** (نقطه مرجع مرکز صفحه است) را برمی‌گرداند. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerColor.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerColor.md index 88eb66906b74..7b26f4351469 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerColor.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerColor.md @@ -7,7 +7,7 @@ tags: ["player"] ## توضیحات -رنگ نام و نشانگر رادار بازیکن را دریافت می‌کند. فقط بعد از استفاده از SetPlayerColor کار می‌کند. +رنگ نام و نشانگر رادار بازیکن را دریافت می‌کند. فقط بعد از استفاده از [SetPlayerColor](SetPlayerColor) کار می‌کند. | نام | توضیحات | | -------- | ------------------------------------------ | @@ -32,7 +32,7 @@ SendClientMessage(playerid, -1, output); :::warning -GetPlayerColor چیزی برنمی‌گرداند (0) مگر اینکه قبلاً SetPlayerColor استفاده شده باشد. برای حل این مشکل [اینجا](../../tutorials/colorfix) کلیک کنید. +GetPlayerColor چیزی برنمی‌گرداند (0) مگر اینکه قبلاً [SetPlayerColor](SetPlayerColor) استفاده شده باشد. برای حل این مشکل [اینجا](../../tutorials/colorfix) کلیک کنید. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerDrunkLevel.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerDrunkLevel.md index f4b74467254b..89c042014d22 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerDrunkLevel.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerDrunkLevel.md @@ -7,7 +7,7 @@ tags: ["player"] ## توضیحات -بررسی سطح مستی بازیکن. اگر سطح کمتر از 2000 باشد، بازیکن هوشیار است. سطح مستی بازیکن به آرامی و خودکار کاهش می‌یابد (26 سطح در ثانیه) اما همیشه در نهایت به 2000 می‌رسد. سطوح مستی بالاتر روی دوربین بازیکن و رانندگی ماشین تأثیر می‌گذارند. سطح مستی زمانی افزایش می‌یابد که بازیکن از بطری بنوشد (می‌توانید از SetPlayerSpecialAction برای دادن بطری استفاده کنید). +بررسی سطح مستی بازیکن. اگر سطح کمتر از 2000 باشد، بازیکن هوشیار است. سطح مستی بازیکن به آرامی و خودکار کاهش می‌یابد (26 سطح در ثانیه) اما همیشه در نهایت به 2000 می‌رسد. سطوح مستی بالاتر روی دوربین بازیکن و رانندگی ماشین تأثیر می‌گذارند. سطح مستی زمانی افزایش می‌یابد که بازیکن از بطری بنوشد (می‌توانید از [SetPlayerSpecialAction](SetPlayerSpecialAction) برای دادن بطری استفاده کنید). | نام | توضیحات | | -------- | ----------------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md index a21ede3cfd23..63bb18d54d99 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md @@ -49,7 +49,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -اگرچه سلامتی را می‌توان در سمت سرور روی مقادیر نزدیک به بی‌نهایت تنظیم کرد، کلاینت‌ها فقط مقادیر تا 255 را گزارش می‌دهند. هر چیز بالاتر دور می‌زند؛ 256 به 0 تبدیل می‌شود، 257 به 1 و این طور ادامه پیدا می‌کند. سلامتی به صورت رند شده به عدد صحیح دریافت می‌شود: 50.15 تنظیم کنید، اما 50.0 دریافت می‌کنید. +- اگرچه سلامتی را می‌توان در سمت سرور روی مقادیر نزدیک به بی‌نهایت تنظیم کرد، کلاینت‌ها فقط مقادیر تا 255 را گزارش می‌دهند. هر چیز بالاتر دور می‌زند؛ 256 به 0 تبدیل می‌شود، 257 به 1 و این طور ادامه پیدا می‌کند. +- سلامتی به صورت رند شده به عدد صحیح دریافت می‌شود: 50.15 تنظیم کنید، اما 50.0 دریافت می‌کنید. ::: 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 4170a7fc36a6..4faf78f7023a 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 @@ -40,7 +40,7 @@ public OnPlayerConnect(playerid) :::note -- PAWN حساس به حروف کوچک و بزرگ است. GetPlayerIP کار نخواهد کرد. +- PAWN حساس به حروف کوچک و بزرگ است. GetPlayerI**P** کار نخواهد کرد. - **سرور SA-MP**: این تابع در [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect) **کار نمی‌کند** چون بازیکن قبلاً قطع شده است. IP نامعتبری (255.255.255.255) برمی‌گرداند. IPهای بازیکنان را در [OnPlayerConnect](../callbacks/OnPlayerConnect) ذخیره کنید اگر نیاز است در [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect) استفاده شوند. - **سرور open.mp**: این تابع در [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect) **کار می‌کند**. diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md index 0749dca764f2..4b6fac572ace 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md @@ -9,12 +9,12 @@ tags: ["player"] بررسی اینکه بازیکن کدام کلیدها را فشار داده است. -| نام | توضیحات | -| --------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| playerid | ID بازیکن برای دریافت کلیدهایش. | -| &KEY:keys | مجموعه‌ای از بیت‌ها حاوی حالت کلیدهای بازیکن. این مقدار bit mask نامیده می‌شود. [اینجا کلیک کنید](../resources/keys) برای لیست کلیدها. | -| updown | حالت بالا/پایین. | -| leftright | حالت چپ/راست. | +| نام | توضیحات | +| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| playerid | ID بازیکن برای دریافت کلیدهایش. | +| &KEY:keys | مجموعه‌ای از بیت‌ها حاوی حالت کلیدهای بازیکن. این مقدار [bit mask](https://en.wikipedia.org/wiki/Mask_(computing)) نامیده می‌شود. [اینجا کلیک کنید](../resources/keys) برای لیست کلیدها. | +| updown | حالت بالا/پایین. | +| leftright | حالت چپ/راست. | ## مقادیر برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerLastShotVectors.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerLastShotVectors.md index 7c1cbb7ceec9..0e1340e6736e 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerLastShotVectors.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerLastShotVectors.md @@ -52,7 +52,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -- این تابع فقط زمانی کار می‌کند که lag compensation **فعال** باشد. +- این تابع فقط زمانی کار می‌کند که [lag compensation](../../server/LagCompensation) **فعال** باشد. - اگر بازیکن به چیزی برخورد نکرده باشد، موقعیت‌های برخورد 0 خواهند بود. این یعنی شما نمی‌توانید فاصله طی شده گلوله در هوای آزاد را محاسبه کنید. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerMenu.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerMenu.md index 6dbb2292234b..32739d859e9f 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerMenu.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerMenu.md @@ -7,7 +7,7 @@ tags: ["player", "menu"] ## توضیحات -دریافت ID منویی که بازیکن در حال حاضر آن را مشاهده می‌کند (با ShowMenuForPlayer نمایش داده شده). +دریافت ID منویی که بازیکن در حال حاضر آن را مشاهده می‌کند (با [ShowMenuForPlayer](ShowMenuForPlayer) نمایش داده شده). | نام | توضیحات | | -------- | ----------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md index b308848845f1..50bc7041dc72 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md @@ -11,17 +11,17 @@ tags: ["player", "object", "playerobject"] دریافت داده‌های متریال از یک index از player-object. -| نام | توضیحات | -| ------------------ | ---------------------------------------------------------------------- | -| playerid | ID بازیکن. | -| objectid | ID player-object. | -| materialIndex | index متریال در object. (0 تا 15) | -| &modelid | متغیری برای ذخیره ID مدل، به صورت reference پاس داده می‌شود. | -| textureLibrary[] | آرایه‌ای برای ذخیره textureLibrary، به صورت reference پاس داده می‌شود. | -| textureLibrarySize | اندازه textureLibrary. | -| textureName[] | آرایه‌ای برای ذخیره textureName، به صورت reference پاس داده می‌شود. | -| textureNameSize | اندازه textureName. | -| &materialColour | متغیری برای ذخیره materialColour، به صورت reference پاس داده می‌شود. | +| نام | توضیحات | +| ------------------ | ------------------------------------------------------------------------------------------------------ | +| playerid | ID بازیکن. | +| objectid | ID player-object. | +| materialIndex | index متریال در object. (0 تا 15) | +| &modelid | متغیری برای ذخیره ID مدل، به صورت reference پاس داده می‌شود. | +| textureLibrary[] | آرایه‌ای برای ذخیره نام کتابخانهٔ بافت، به صورت reference پاس داده می‌شود. | +| textureLibrarySize | اندازهٔ آرایه‌ای که نام کتابخانهٔ بافت را ذخیره می‌کند. | +| textureName[] | آرایه‌ای برای ذخیره نام [بافت](https://models.open.mp/?cat=textures)، به صورت reference پاس داده می‌شود. | +| textureNameSize | اندازهٔ آرایه‌ای که نام بافت را ذخیره می‌کند. | +| &materialColour | متغیری برای ذخیره materialColour، به صورت reference پاس داده می‌شود. | ## مقادیر برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md index 160e3952db68..f9c37ce8a8c5 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md @@ -7,7 +7,7 @@ tags: ["player"] ## توضیحات -دریافت پینگ بازیکن. پینگ مقدار زمانی را اندازه‌گیری می‌کند که طول می‌کشد تا سرور کلاینت را 'ping' کند و کلاینت پیام را بازگرداند. +دریافت پینگ بازیکن. پینگ مقدار زمانی را اندازه‌گیری می‌کند که طول می‌کشد تا سرور کلاینت را [ping](https://en.wikipedia.org/wiki/Ping_(networking_utility)) کند و کلاینت پیام را بازگرداند. | نام | توضیحات | | -------- | ---------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPos.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPos.md index 43932d5accdb..d58577797efa 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPos.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPos.md @@ -49,7 +49,7 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::warning -این تابع وقتی توی [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect) و OnPlayerRequestClass استفاده میشه مقادیر غیرقابل اعتمادی برمی‌گردونه. چون بازیکن spawn نشده. +این تابع وقتی توی [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect) و [OnPlayerRequestClass](../callbacks/OnPlayerRequestClass) استفاده میشه مقادیر غیرقابل اعتمادی برمی‌گردونه. چون بازیکن spawn نشده. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerScore.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerScore.md index c1575839b550..50e4bb18710e 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerScore.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerScore.md @@ -7,7 +7,7 @@ tags: ["player"] ## توضیحات -این تابع امتیاز بازیکن را همان‌طور که با SetPlayerScore تنظیم شده برمی‌گرداند +این تابع امتیاز بازیکن را همان‌طور که با [SetPlayerScore](SetPlayerScore) تنظیم شده برمی‌گرداند. | نام | توضیحات | | -------- | -------------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md index c1a1a4c35909..8350d4eae4ab 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md @@ -15,9 +15,7 @@ tags: ["player"] ## مقدار بازگشتی -[شناسه اسکین](../resources/skins). - -**0** اگر نامعتبر باشد. +[شناسه اسکین](../resources/skins). **0** اگر نامعتبر باشد. ## مثال‌ها diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVirtualWorld.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVirtualWorld.md index 9dbc04193b29..abfe2deaa674 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVirtualWorld.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVirtualWorld.md @@ -37,7 +37,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -دنیاهای مجازی مثل فضاهای داخلی نیستند. +دنیاهای مجازی مثل [فضاهای داخلی](GetPlayerInterior) نیستند. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsBool.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsBool.md index 3dcd99b341e5..b301a70248e0 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsBool.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsBool.md @@ -7,7 +7,7 @@ tags: [] :::warning -این تابع از نسخه 0.3.7 R2 deprecated شده. لطفاً GetConsoleVarAsBool رو ببین +این تابع از نسخه 0.3.7 R2 deprecated شده. لطفاً [GetConsoleVarAsBool](GetConsoleVarAsBool) رو ببین ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsInt.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsInt.md index bbf4df263b3d..7e5f7726f6f0 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsInt.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsInt.md @@ -7,7 +7,7 @@ tags: [] :::warning -این تابع از نسخه 0.3.7 R2 deprecated شده. لطفاً GetConsoleVarAsInt رو ببین +این تابع از نسخه 0.3.7 R2 deprecated شده. لطفاً [GetConsoleVarAsInt](GetConsoleVarAsInt) رو ببین ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsString.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsString.md index 0f77cb80fb8f..bbe15b7a1202 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsString.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsString.md @@ -7,7 +7,7 @@ tags: [] :::warning -این تابع از نسخه 0.3.7 R2 deprecated شده. لطفاً GetConsoleVarAsString رو ببین +این تابع از نسخه 0.3.7 R2 deprecated شده. لطفاً [GetConsoleVarAsString](GetConsoleVarAsString) رو ببین ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md index deb059dc83bd..61dc7f84fd1b 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## توضیحات -چرخش یه وسیله نقلیه در همه محورها رو به صورت quaternion برمی‌گردونه. +چرخش یه وسیله نقلیه در همه محورها رو به صورت [quaternion](https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation) برمی‌گردونه. | نام | توضیحات | | --------- | ------------------------------------------------------------------------------------ | @@ -41,7 +41,7 @@ GetVehicleRotationQuat(vehicleid, w, x, y, z); :::note -هیچ نسخه 'set' از این تابع وجود نداره؛ نمی‌تونی چرخش یه وسیله نقلیه رو SET کنی (جز زاویه Z) +هیچ نسخه 'set' از این تابع وجود نداره؛ نمی‌تونی چرخش یه وسیله نقلیه رو SET کنی (جز [زاویه Z](SetVehicleZAngle)) ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/HideMenuForPlayer.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/HideMenuForPlayer.md index ff22fb37f485..ca3087f9bdc9 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/HideMenuForPlayer.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/HideMenuForPlayer.md @@ -9,10 +9,10 @@ tags: ["player", "menu"] یه منو رو برای بازیکن مخفی می‌کنه. -| نام | توضیحات | -| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | -| Menu:menuid | ID منویی که باید مخفی بشه. توسط CreateMenu برگردونده می‌شه و به [OnPlayerSelectedMenuRow](../callbacks/OnPlayerSelectedMenuRow) پاس داده می‌شه. | -| playerid | ID بازیکنی که منو براش مخفی می‌شه. | +| نام | توضیحات | +| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Menu:menuid | ID منویی که باید مخفی بشه. توسط [CreateMenu](CreateMenu) برگردونده می‌شه و به [OnPlayerSelectedMenuRow](../callbacks/OnPlayerSelectedMenuRow) پاس داده می‌شه. | +| playerid | ID بازیکنی که منو براش مخفی می‌شه. | ## مقادیر برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerInRaceCheckpoint.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerInRaceCheckpoint.md index cb8dc57d29eb..8b45c4c98dbc 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerInRaceCheckpoint.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerInRaceCheckpoint.md @@ -7,7 +7,7 @@ tags: ["player", "checkpoint", "racecheckpoint"] ## توضیحات -چک می‌کنه که آیا بازیکن داخل race checkpoint فعلی تنظیم شده‌ش هست یا نه (SetPlayerRaceCheckpoint). +چک می‌کنه که آیا بازیکن داخل race checkpoint فعلی تنظیم شده‌ش هست یا نه ([SetPlayerRaceCheckpoint](SetPlayerRaceCheckpoint)). | نام | توضیحات | | -------- | -------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md index 2c4b05e5735c..493ac05c0348 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md @@ -33,9 +33,8 @@ if (IsPlayerStreamedIn(playerid, 0)) :::note -**سرور SA-MP:** بازیکنان اگه بیشتر از 200.0 متر فاصله داشته باشن stream out می‌شن (ببین [server.cfg](../../server/server.cfg) - **stream_distance**) - -**سرور open.mp:** بازیکنان اگه بیشتر از 200.0 متر فاصله داشته باشن stream out می‌شن (ببین [config.json](../../server/config.json) - **network.stream_radius**) +- **سرور SA-MP:** بازیکنان اگه بیشتر از 200.0 متر فاصله داشته باشن stream out می‌شن (ببین [server.cfg](../../server/server.cfg) - **stream_distance**) +- **سرور open.mp:** بازیکنان اگه بیشتر از 200.0 متر فاصله داشته باشن stream out می‌شن (ببین [config.json](../../server/config.json) - **network.stream_radius**) ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/IsTrailerAttachedToVehicle.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/IsTrailerAttachedToVehicle.md index b670da091deb..7bb90af1cc9b 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/IsTrailerAttachedToVehicle.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/IsTrailerAttachedToVehicle.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## توضیحات -چک می‌کنه که آیا یه ماشین trailer داره یا نه. از GetVehicleTrailer استفاده کن تا ID ماشین trailer رو دریافت کنی (اگه داشته باشه). +چک می‌کنه که آیا یه ماشین trailer داره یا نه. از [GetVehicleTrailer](GetVehicleTrailer) استفاده کن تا ID ماشین trailer رو دریافت کنی (اگه داشته باشه). | نام | توضیحات | | --------- | -------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/KillTimer.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/KillTimer.md index ffd561950bbf..296426671f40 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/KillTimer.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/KillTimer.md @@ -11,9 +11,9 @@ tags: ["timer"] یک تایمر در حال اجرا رو می‌کشه (متوقف می‌کنه). -| اسم | توضیح | -| ------- | --------------------------------------------------------------------------- | -| timerid | شناسه تایمری که می‌خوای بکشیش (که از SetTimer یا SetTimerEx برگردونده شده). | +| اسم | توضیح | +| ------- | ---------------------------------------------------------------------------------------------------- | +| timerid | شناسه تایمری که می‌خوای بکشیش (که از [SetTimer](SetTimer) یا [SetTimerEx](SetTimerEx) برگردونده شده). | ## مقادیر برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/LinkVehicleToInterior.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/LinkVehicleToInterior.md index c3a1c1c3be33..cc6d29d8ed85 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/LinkVehicleToInterior.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/LinkVehicleToInterior.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## توضیحات -وسیله نقلیه را به interior لینک می‌کند. وسایل نقلیه فقط توسط بازیکنانی که در همان interior هستند قابل مشاهده است (SetPlayerInterior). +وسیله نقلیه را به interior لینک می‌کند. وسایل نقلیه فقط توسط بازیکنانی که در همان interior هستند قابل مشاهده است ([SetPlayerInterior](SetPlayerInterior)). | نام | توضیحات | | ---------- | --------------------------------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ManualVehicleEngineAndLights.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ManualVehicleEngineAndLights.md index d11e6d5c771b..f728818ef4e2 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ManualVehicleEngineAndLights.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ManualVehicleEngineAndLights.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## توضیحات -از این تابع قبل از اتصال هر بازیکنی (OnGameModeInit) استفاده کن تا به همه کلاینت‌ها بگویی که اسکریپت موتور و چراغ‌های وسایل نقلیه را کنترل می‌کند. این امر از روشن/خاموش شدن خودکار موتور هنگام ورود/خروج بازیکنان از وسایل نقلیه و روشن شدن خودکار چراغ‌های جلو در تاریکی جلوگیری می‌کند. +از این تابع قبل از اتصال هر بازیکنی ([OnGameModeInit](../callbacks/OnGameModeInit)) استفاده کن تا به همه کلاینت‌ها بگویی که اسکریپت موتور و چراغ‌های وسایل نقلیه را کنترل می‌کند. این امر از روشن/خاموش شدن خودکار موتور هنگام ورود/خروج بازیکنان از وسایل نقلیه و روشن شدن خودکار چراغ‌های جلو در تاریکی جلوگیری می‌کند. ## مقادیر برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md index 1287ea1dbd52..b4fe12196d6e 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md @@ -7,7 +7,7 @@ tags: ["object"] ## توضیحات -آبجکت را با سرعت تعیین شده به موقعیت جدید منتقل می‌کند. بازیکنان/وسایل نقلیه روی آبجکت "surf" خواهند کرد تا زمانی که حرکت می‌کند. +[آبجکت](CreateObject) را با سرعت تعیین شده به موقعیت جدید منتقل می‌کند. بازیکنان/وسایل نقلیه روی آبجکت "surf" خواهند کرد تا زمانی که حرکت می‌کند. | نام | توضیحات | | --------------- | ---------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md index d7df6c6c1a7d..e59c40dd3778 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md @@ -7,7 +7,7 @@ tags: ["player"] ## توضیحات -آبجکت بازیکن را با سرعت تعیین شده منتقل می‌کند. همچنین از چرخش پشتیبانی می‌کند. بازیکنان/وسایل نقلیه روی آبجکت‌های در حال حرکت surf خواهند کرد. +[آبجکت بازیکن](CreatePlayerObject) را با سرعت تعیین شده منتقل می‌کند. همچنین از چرخش پشتیبانی می‌کند. بازیکنان/وسایل نقلیه روی آبجکت‌های در حال حرکت surf خواهند کرد. | نام | توضیحات | | --------------- | ------------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_GetConnectedTime.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_GetConnectedTime.md index 053cb238ca69..b1e548d4e0bd 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_GetConnectedTime.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_GetConnectedTime.md @@ -38,7 +38,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -مقدار بازگشتی پس از تغییر حالت بازی (استفاده از دستور RCON "gmx") به صفر reset نمی‌شود. +مقدار بازگشتی پس از تغییر حالت بازی (استفاده از دستور RCON "[gmx](../../server/ControllingServer#دستورات-rcon)") به صفر reset نمی‌شود. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md index f9ad9774131a..e37fb1110814 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md @@ -36,8 +36,8 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::warning -- ترتیب خیلی مهم هست! مطمئن شو که ابتدا از TogglePlayerSpectating استفاده می‌کنی و بعد PlayerSpectatePlayer. -- playerid و targetplayerid باید در همون virtual world و interior باشن تا این تابع درست کار کنه. +- ترتیب خیلی مهم هست! مطمئن شو که ابتدا از [TogglePlayerSpectating](TogglePlayerSpectating) استفاده می‌کنی و بعد PlayerSpectatePlayer. +- playerid و targetplayerid باید در همون [virtual world](SetPlayerVirtualWorld) و [interior](SetPlayerInterior) باشن تا این تابع درست کار کنه. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md index 868f6da700f7..71360235b5e6 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md @@ -17,7 +17,7 @@ tags: ["player", "vehicle"] ## مقادیر بازگشتی -**true** - تابع با موفقیت اجرا شد. توجه کن که موفقیت حتی وقتی هم گزارش می‌شه که بازیکن در حالت تماشا نباشه (TogglePlayerSpectating)، اما چیزی اتفاق نمی‌افته. ابتدا حتماً باید از TogglePlayerSpectating استفاده کنی. +**true** - تابع با موفقیت اجرا شد. توجه کن که موفقیت حتی وقتی هم گزارش می‌شه که بازیکن در حالت تماشا نباشه ([TogglePlayerSpectating](TogglePlayerSpectating))، اما چیزی اتفاق نمی‌افته. ابتدا حتماً باید از TogglePlayerSpectating استفاده کنی. **false** - تابع اجرا نشد. بازیکن، وسیله نقلیه، یا هر دوتاشون وجود ندارن. @@ -32,7 +32,7 @@ PlayerSpectateVehicle(playerid, vehicleid); :::warning -- ترتیب خیلی مهم هست! مطمئن شو که ابتدا از TogglePlayerSpectating استفاده می‌کنی و بعد PlayerSpectateVehicle. +- ترتیب خیلی مهم هست! مطمئن شو که ابتدا از [TogglePlayerSpectating](TogglePlayerSpectating) استفاده می‌کنی و بعد PlayerSpectateVehicle. - playerid و vehicleid باید در همون interior و virtual world باشن تا این تابع درست کار کنه. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md index 64db599058c1..4af85ce71fd7 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md @@ -37,7 +37,7 @@ public OnPlayerConnect(playerid) :::note -اگه از [PlayerTextDrawSetOutline](PlayerTextDrawSetOutline) با اندازه > 0 استفاده کنی، رنگ outline با رنگی که در PlayerTextDrawBackgroundColour استفاده شده مطابقت می‌کنه. تغییر مقدار رنگ به نظر می‌رسه که رنگ استفاده شده در PlayerTextDrawColour رو تغییر می‌ده. +اگه از [PlayerTextDrawSetOutline](PlayerTextDrawSetOutline) با اندازه > 0 استفاده کنی، رنگ outline با رنگی که در PlayerTextDrawBackgroundColour استفاده شده مطابقت می‌کنه. تغییر مقدار رنگ به نظر می‌رسه که رنگ استفاده شده در [PlayerTextDrawColour](PlayerTextDrawColour) رو تغییر می‌ده. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColour.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColour.md index 1a02976725ad..bff6cfe62f2b 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColour.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColour.md @@ -40,7 +40,7 @@ public OnPlayerConnect(playerid) :::note - اگر [PlayerTextDrawSetOutline](PlayerTextDrawSetOutline) با اندازه > 0 استفاده شود، رنگ حاشیه با رنگ استفاده شده در PlayerTextDrawBackgroundColour مطابقت خواهد داشت. -- تغییر مقدار رنگ به نظر می‌رسد که رنگ استفاده شده در PlayerTextDrawColour را تغییر می‌دهد. +- تغییر مقدار رنگ به نظر می‌رسد که رنگ استفاده شده در [PlayerTextDrawColour](PlayerTextDrawColour) را تغییر می‌دهد. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColor.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColor.md index 8e8ca9481e6b..f710154e961f 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColor.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColor.md @@ -7,7 +7,7 @@ tags: ["player", "textdraw", "playertextdraw"] ## توضیحات -رنگ جعبه یک textdraw (PlayerTextDrawUseBox) رو تنظیم می‌کنه. +رنگ جعبه یک textdraw ([PlayerTextDrawUseBox](PlayerTextDrawUseBox)) رو تنظیم می‌کنه. | نام | توضیحات | | ----------------- | --------------------------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColour.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColour.md index b44a762b9128..c52057db2171 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColour.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColour.md @@ -9,7 +9,7 @@ tags: ["player", "textdraw", "playertextdraw"] ## توضیحات -رنگ جعبه textdraw بازیکن را تنظیم کنید (PlayerTextDrawUseBox). +رنگ جعبه textdraw بازیکن را تنظیم کنید ([PlayerTextDrawUseBox](PlayerTextDrawUseBox)). | نام | توضیحات | | ----------------- | ------------------------------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColor.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColor.md index fc342fa43e99..0ab8ec315645 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColor.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColor.md @@ -44,7 +44,7 @@ public OnPlayerConnect(playerid) :::note -textdraw باید دوباره برای بازیکن نمایش داده بشه تا رنگ بروزرسانی بشه. +textdraw باید دوباره برای بازیکن [نمایش داده بشه](PlayerTextDrawShow) تا رنگ بروزرسانی بشه. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColour.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColour.md index d5f97d5a53f6..23b47d214bb1 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColour.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColour.md @@ -40,13 +40,13 @@ public OnPlayerConnect(playerid) :::tip -همچنین می‌توانید از رنگ‌های Gametext در textdraw ها استفاده کنید. (مثل `~r~` `~g~` `~b~`) +همچنین می‌توانید از رنگ‌های Gametext در textdraw ها استفاده کنید. ::: :::note -textdraw باید دوباره به بازیکن نشان داده شود تا رنگ به‌روزرسانی شود. +textdraw باید دوباره به بازیکن [نشان داده شود](PlayerTextDrawShow) تا رنگ به‌روزرسانی شود. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md index 8d064657e164..96c57f2a2e87 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md @@ -43,7 +43,7 @@ public OnPlayerConnect(playerid) - 1 (چپ): اونها گوشه سمت راست جعبه هستن، مختصات مطلق. - 2 (وسط): باید معکوس بشن (دوتا رو جابجا کن) و مقدار x عرض کلی جعبه هست. - 3 (راست): x و y مختصات گوشه سمت چپ جعبه هستن -- استفاده از نوع فونت 4 (sprite) و 5 (model preview) X و Y این تابع رو از مختصات گوشه به WIDTH و HEIGHT (افست‌ها) تبدیل می‌کنه. +- استفاده از [نوع فونت](PlayerTextDrawFont) 4 (sprite) و 5 (model preview) X و Y این تابع رو از مختصات گوشه به WIDTH و HEIGHT (افست‌ها) تبدیل می‌کنه. - جعبه TextDraw 10.0 واحد بالا و 5.0 واحد سمت چپ به عنوان مبدأ (مختصات TextDrawCreate) شروع می‌شه. - این تابع منطقه قابل کلیک رو برای استفاده با [PlayerTextDrawSetSelectable](PlayerTextDrawSetSelectable) تعریف می‌کنه، چه جعبه‌ای نمایش داده بشه یا نشه. diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/RedirectDownload.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/RedirectDownload.md index 1db32470a6d3..9195a3a3b132 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/RedirectDownload.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/RedirectDownload.md @@ -9,7 +9,7 @@ tags: ["custom model", "custom skin", "simple model"] ## توضیحات -دانلود AddCharModel یا AddSimpleModel یک بازیکن رو به یک صفحه وب HTTP مشخص هدایت می‌کنه. +دانلود [AddCharModel](AddCharModel) یا [AddSimpleModel](AddSimpleModel) یک بازیکن رو به یک صفحه وب HTTP مشخص هدایت می‌کنه. ## پارامترها diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md index f9e54eefa456..4505119ee8d3 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md @@ -9,14 +9,14 @@ tags: ["player"] یک مدل استاندارد San Andreas رو برای یک بازیکن در یک محدوده مشخص حذف می‌کنه. -| نام | توضیحات | -| ------------- | ----------------------------------------------------------- | -| playerid | آی‌دی بازیکنی که آبجکت‌ها براش حذف می‌شن. | -| modelid | مدلی که باید حذف بشه. | -| Float:centerX | مختصات X نقطه ای که آبجکت‌ها اطرافش حذف می‌شن. | -| Float:centerY | مختصات Y نقطه ای که آبجکت‌ها اطرافش حذف می‌شن. | -| Float:centerZ | مختصات Z نقطه ای که آبجکت‌ها اطرافش حذف می‌شن. | -| Float:radius | شعاع اطراف نقطه مشخص شده برای حذف آبجکت‌ها با مدل مشخص شده. | +| نام | توضیحات | +| ------------- | ------------------------------------------------------------ | +| playerid | آی‌دی بازیکنی که آبجکت‌ها براش حذف می‌شن. | +| modelid | [مدلی](https://models.open.mp/?cat=objects) که باید حذف بشه. | +| Float:centerX | مختصات X نقطه ای که آبجکت‌ها اطرافش حذف می‌شن. | +| Float:centerY | مختصات Y نقطه ای که آبجکت‌ها اطرافش حذف می‌شن. | +| Float:centerZ | مختصات Z نقطه ای که آبجکت‌ها اطرافش حذف می‌شن. | +| Float:radius | شعاع اطراف نقطه مشخص شده برای حذف آبجکت‌ها با مدل مشخص شده. | ## مقادیر بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerMapIcon.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerMapIcon.md index d813f9c39287..5328f2f5b1a6 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerMapIcon.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerMapIcon.md @@ -7,12 +7,12 @@ tags: ["player"] ## توضیحات -یک map icon که قبلاً با SetPlayerMapIcon برای بازیکن تنظیم شده رو حذف می‌کنه. +یک map icon که قبلاً با [SetPlayerMapIcon](SetPlayerMapIcon) برای بازیکن تنظیم شده رو حذف می‌کنه. -| نام | توضیح | -| -------- | -------------------------------------------------------------------- | -| playerid | ID بازیکنی که می‌خوایم iconش رو حذف کنیم. | -| iconid | ID iconی که می‌خوایم حذف کنیم. این پارامتر دوم SetPlayerMapIcon هست. | +| نام | توضیح | +| -------- | --------------------------------------------------------------------------------------- | +| playerid | ID بازیکنی که می‌خوایم iconش رو حذف کنیم. | +| iconid | ID iconی که می‌خوایم حذف کنیم. این پارامتر دوم [SetPlayerMapIcon](SetPlayerMapIcon) هست. | ## مقادیر بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md index ccde1edfe19b..82221047effc 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md @@ -17,12 +17,12 @@ tags: ["encryption"] یه پسورد رو با استفاده از الگوریتم هش SHA-256 هش می‌کنه. شامل یه salt هست. خروجی همیشه 256 بیت طول داره، یا معادل 64 سل Pawn. -| نام | توضیحات | -| ---------------------- | --------------------------------------------- | -| const password[] | پسوردی که باید هش بشه. | -| const salt[] | salt ای که در هش استفاده می‌شه. | -| output[] | هش برگشتی در hexadecimal digest با حروف بزرگ. | -| size = sizeof (output) | حداکثر طول هش برگشتی. | +| نام | توضیحات | +| ---------------------- | ----------------------------------------------------------------------------------- | +| const password[] | پسوردی که باید هش بشه. | +| const salt[] | [salt](https://en.wikipedia.org/wiki/Salt_(cryptography)) ای که در هش استفاده می‌شه. | +| output[] | هش برگشتی در hexadecimal digest با حروف بزرگ. | +| size = sizeof (output) | حداکثر طول هش برگشتی. | ## مقدار برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SelectObject.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SelectObject.md index 7d3e34f698ef..29e39eeef44a 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SelectObject.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SelectObject.md @@ -7,7 +7,7 @@ tags: [] ## توضیحات -کرسر رو نمایش می‌ده و به بازیکن اجازه می‌ده که یه object انتخاب کنه. وقتی بازیکن object انتخاب کنه OnPlayerSelectObject صدا زده می‌شه. +کرسر رو نمایش می‌ده و به بازیکن اجازه می‌ده که یه object انتخاب کنه. وقتی بازیکن object انتخاب کنه [OnPlayerSelectObject](../callbacks/OnPlayerSelectObject) صدا زده می‌شه. | نام | توضیحات | | -------- | ----------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendClientCheck.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendClientCheck.md index 79bd1b67f60a..19659018ee64 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendClientCheck.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendClientCheck.md @@ -54,9 +54,8 @@ public OnClientCheckResponse(playerid, actionid, memaddr, retndata) :::warning -**SA:MP Server**: این تابع فقط وقتی در filterscript باشه کار می‌کنه. - -**Open Multiplayer Server**: این تابع معمولی در gamemode / filterscript کار می‌کنه. +- **SA-MP server**: این تابع فقط وقتی در filterscript باشه کار می‌کنه. +- **open.mp server**: این تابع معمولی در gamemode / filterscript کار می‌کنه. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md index 527e5d8e6992..4a2ea388f592 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md @@ -45,13 +45,15 @@ public OnPlayerConnect(playerid) :::tip -می توانید از جاسازی رنگ برای چندین رنگ در پیام استفاده کنید. با استفاده از "-1" به عنوان رنگ ، متن سفید می شود (به همین دلیل ساده که -1 ، اگر در نماد hexadecimal نشان داده شود ، 0xFFFFFFFF است). +- می توانید از جاسازی رنگ برای چندین رنگ در پیام استفاده کنید. +- با استفاده از "-1" به عنوان رنگ ، متن سفید می شود (به همین دلیل ساده که -1 ، اگر در نماد hexadecimal نشان داده شود ، 0xFFFFFFFF است). ::: :::warning -اگر پیامی بیش از 144 کاراکتر داشته باشد، ارسال نمی شود. برای جلوگیری از این امر می توان از کوتاه کردن استفاده کرد. نمایش پیام در چندین خط نیز این مسئله را حل می کند. از استفاده از علامت درصد (یا مشخص کننده های فرمت) در متن پیام واقعی بدون فرار صحیح از آن خودداری کنید (مانند ٪٪). در غیر این صورت منجر به crash(خرابی) می شود. +- اگر پیامی بیش از 144 کاراکتر داشته باشد، ارسال نمی شود. برای جلوگیری از این امر می توان از کوتاه کردن استفاده کرد. نمایش پیام در چندین خط نیز این مسئله را حل می کند. +- از استفاده از علامت درصد (یا مشخص کننده های فرمت) در متن پیام واقعی بدون فرار صحیح از آن خودداری کنید (مانند ٪٪). در غیر این صورت منجر به crash(خرابی) می شود. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessageToAll.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessageToAll.md index b9939661a0c3..cbb1fa651b79 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessageToAll.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessageToAll.md @@ -9,7 +9,7 @@ tags: [] ## توضیحات -یک پیام را برای همه بازیکن ها نشان میدهد. این معادل چند نفره SendClientMessage است. +یک پیام را برای همه بازیکن ها نشان میدهد. این معادل چند نفره [SendClientMessage](SendClientMessage) است. | Name | Description | | --------------- | --------------------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendRconCommand.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendRconCommand.md index e7d327b87fb2..3cf2bbd2cc2b 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendRconCommand.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendRconCommand.md @@ -9,10 +9,10 @@ tags: ["administration"] یه دستور RCON (Remote Console) ارسال می‌کنه. -| نام | توضیحات | -| ---------------- | --------------------------------- | -| const format[] | دستور RCON که باید اجرا بشه. | -| OPEN_MP_TAGS:... | تعداد نامحدودی آرگومان از هر نوع. | +| نام | توضیحات | +| ---------------- | --------------------------------------------------------------------------- | +| const format[] | [دستور RCON](../../server/ControllingServer#دستورات-rcon) که باید اجرا بشه. | +| OPEN_MP_TAGS:... | تعداد نامحدودی آرگومان از هر نوع. | ## مقدار برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md index 69103138bf0e..0bfbeddb9657 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md @@ -11,10 +11,10 @@ tags: ["actor"] زاویه رو به رو بودن actor رو تنظیم می‌کنه. -| نام | توضیحات | -| ----------- | ---------------------------------------------------------------------------------- | -| actorid | ID actor که زاویه رو به رو بودنش رو می‌خوایم تنظیم کنیم. از CreateActor برمی‌گرده. | -| Float:angle | زاویه رو به رو که برای actor تنظیم می‌شه. | +| نام | توضیحات | +| ----------- | ----------------------------------------------------------------------------------------------- | +| actorid | ID actor که زاویه رو به رو بودنش رو می‌خوایم تنظیم کنیم. از [CreateActor](CreateActor) برمی‌گرده. | +| Float:angle | زاویه رو به رو که برای actor تنظیم می‌شه. | ## مقدار برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md index 2c6b72dabf31..4820ff3ad115 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md @@ -11,12 +11,12 @@ tags: ["actor"] موقعیت actor رو تنظیم می‌کنه. -| نام | توضیحات | -| ------- | --------------------------------------------------------------------- | -| actorid | ID actor که موقعیتش رو می‌خوایم تنظیم کنیم. از CreateActor برمی‌گرده. | -| Float:x | مختصات X که actor باید توش قرار بگیره. | -| Float:y | مختصات Y که actor باید توش قرار بگیره. | -| Float:z | مختصات Z که actor باید توش قرار بگیره. | +| نام | توضیحات | +| ------- | ---------------------------------------------------------------------------------- | +| actorid | ID actor که موقعیتش رو می‌خوایم تنظیم کنیم. از [CreateActor](CreateActor) برمی‌گرده. | +| Float:x | مختصات X که actor باید توش قرار بگیره. | +| Float:y | مختصات Y که actor باید توش قرار بگیره. | +| Float:z | مختصات Z که actor باید توش قرار بگیره. | ## مقدار برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorVirtualWorld.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorVirtualWorld.md index a70e8b602595..cd125a2edcd1 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorVirtualWorld.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorVirtualWorld.md @@ -11,10 +11,10 @@ tags: ["actor"] virtual world ای actor رو تنظیم می‌کنه. فقط بازیکنایی که در همون world هستن actor رو می‌بینن. -| نام | توضیحات | -| ------------ | --------------------------------------------------------------------------------- | -| actorid | ID actor (که از CreateActor برمی‌گرده) که virtual world ش رو می‌خوایم تنظیم کنیم. | -| virtualWorld | virtual world که actor باید توش قرار بگیره. | +| نام | توضیحات | +| ------------ | ---------------------------------------------------------------------------------------------- | +| actorid | ID actor (که از [CreateActor](CreateActor) برمی‌گرده) که virtual world ش رو می‌خوایم تنظیم کنیم. | +| virtualWorld | virtual world که actor باید توش قرار بگیره. | ## مقدار برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md index 0c8585676a66..5bc52d2e0cd8 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md @@ -15,8 +15,8 @@ tags: ["object"] | materialIndex | شاخص متریال روی آبجکت برای تغییر (۰ تا ۱۵) | | modelid | شناسه مدلی که بافت جایگزین روی آن قرار دارد. از ۰ برای شفافیت استفاده کنید. از -۱ برای تغییر رنگ متریال بدون تغییر بافت استفاده کنید. | | const textureLibrary[] | نام فایل txd که شامل بافت جایگزین است (در صورت عدم نیاز از "none" استفاده کنید) | -| const textureName[] | نام بافتی که به عنوان جایگزین استفاده می‌شود (در صورت عدم نیاز از "none" استفاده کنید) | -| materialColour | رنگ آبجکت که تنظیم می‌شود، به صورت عدد صحیح یا هگزادسیمال در فرمت رنگ **ARGB**. استفاده از **۰** رنگ موجود متریال را حفظ می‌کند. | +| const textureName[] | نام [بافتی](https://models.open.mp/?cat=textures) که به عنوان جایگزین استفاده می‌شود (در صورت عدم نیاز از "none" استفاده کنید) | +| materialColour | رنگ آبجکت که تنظیم می‌شود، به صورت عدد صحیح یا هگزادسیمال در فرمت رنگ **ARGB**. استفاده از **۰** رنگ موجود متریال را حفظ می‌کند. | ## مقدار بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md index 9de93591ea79..1f4b3eb0b776 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md @@ -55,8 +55,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -شما باید از فرمت رنگ **ARGB** استفاده کنید، نه RGBA که در پیام‌های کلاینت و غیره استفاده می‌شود. -متن پس از ۱۶ فراخوانی در مقابل همان آبجکت به‌روزرسانی نمی‌شود. +- شما باید از فرمت رنگ **ARGB** استفاده کنید، نه RGBA که در پیام‌های کلاینت و غیره استفاده می‌شود. +- متن پس از ۱۶ فراخوانی در مقابل همان آبجکت به‌روزرسانی نمی‌شود. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectPos.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectPos.md index 1849f6d29c8c..898d685b51b1 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectPos.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectPos.md @@ -7,14 +7,14 @@ tags: ["object"] ## توضیحات -تغییر موقعیت یک آبجکت. - -| نام | توضیحات | -| -------- | --------------------------------------------------------------------------------- | -| objectid | شناسه آبجکتی که قرار است موقعیت آن تنظیم شود. توسط CreateObject برگردانده می‌شود. | -| Float:x | مختصات X برای قرار دادن آبجکت. | -| Float:y | مختصات Y برای قرار دادن آبجکت. | -| Float:z | مختصات Z برای قرار دادن آبجکت. | +تغییر موقعیت یک [آبجکت](CreateObject). + +| نام | توضیحات | +| -------- | ------------------------------------------------------------------------------------------------ | +| objectid | شناسه آبجکتی که قرار است موقعیت آن تنظیم شود. توسط [CreateObject](CreateObject) برگردانده می‌شود. | +| Float:x | مختصات X برای قرار دادن آبجکت. | +| Float:y | مختصات Y برای قرار دادن آبجکت. | +| Float:z | مختصات Z برای قرار دادن آبجکت. | ## مقدار بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerArmedWeapon.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerArmedWeapon.md index d213942675f4..09a36ce65887 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerArmedWeapon.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerArmedWeapon.md @@ -51,7 +51,7 @@ public OnPlayerStateChange(playerid, PLAYER_STATE:newstate, PLAYER_STATE:oldstat :::note -این function بازیکن رو با اسلحه‌ای که **از قبل داره** _مسلح می‌کنه_؛ اسلحه جدید بهش _نمی‌ده_. برای اون از GivePlayerWeapon استفاده کن. +این function بازیکن رو با اسلحه‌ای که **از قبل داره** _مسلح می‌کنه_؛ اسلحه جدید بهش _نمی‌ده_. برای اون از [GivePlayerWeapon](GivePlayerWeapon) استفاده کن. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md index 549c2ffd9fdc..34096bab6423 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md @@ -49,7 +49,7 @@ public OnPlayerSpawn(playerid) :::note -این تابع جدا از CreateObject / CreatePlayerObject pool ها هست. +این تابع جدا از [CreateObject](CreateObject) / [CreatePlayerObject](CreatePlayerObject) pool ها هست. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraLookAt.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraLookAt.md index 2553be78d2aa..4129fd74ab8e 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraLookAt.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraLookAt.md @@ -7,7 +7,7 @@ tags: ["player", "camera"] ## توضیحات -جهت نگاه دوربین یک بازیکن رو تنظیم می‌کنه. معمولاً قرار هست همراه با SetPlayerCameraPos استفاده بشه. +جهت نگاه دوربین یک بازیکن رو تنظیم می‌کنه. معمولاً قرار هست همراه با [SetPlayerCameraPos](SetPlayerCameraPos) استفاده بشه. | نام | توضیحات | | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -34,7 +34,7 @@ SetPlayerCameraLookAt(playerid, 324.34, 54.122, 173.35); :::warning -استفاده از توابع دوربین درست بعد از فعال کردن spectator mode کار نمی‌کنه. +استفاده از توابع دوربین درست بعد از [فعال کردن spectator mode](TogglePlayerSpectating) کار نمی‌کنه. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md index 67844056e404..63466c05a3cb 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md @@ -32,14 +32,14 @@ SetPlayerCameraPos(playerid, 652.23, 457.21, 10.84); :::tip -- ممکنه لازم باشه SetPlayerCameraLookAt رو هم با این تابع استفاده کنی تا درست کار کنه. -- از SetCameraBehindPlayer استفاده کن تا دوربین رو به پشت بازیکن برگردونی. +- ممکنه لازم باشه [SetPlayerCameraLookAt](SetPlayerCameraLookAt) رو هم با این تابع استفاده کنی تا درست کار کنه. +- از [SetCameraBehindPlayer](SetCameraBehindPlayer) استفاده کن تا دوربین رو به پشت بازیکن برگردونی. ::: :::warning -استفاده از توابع دوربین درست بعد از فعال کردن spectator mode کار نمی‌کنه. +استفاده از توابع دوربین درست بعد از [فعال کردن spectator mode](TogglePlayerSpectating) کار نمی‌کنه. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md index a97ba3a0bcc8..df186ddda72a 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md @@ -36,7 +36,7 @@ public OnPlayerText(playerid, text[]) :::note -خودت نمی‌تونی chat bubble های خودت رو ببینی. همین موضوع برای attached 3D text label ها هم صدق می‌کنه. +خودت نمی‌تونی chat bubble های خودت رو ببینی. همین موضوع برای attached [3D text label ها](Attach3DTextLabelToPlayer) هم صدق می‌کنه. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md index d93776efc80a..fe3917536685 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md @@ -7,7 +7,7 @@ tags: ["player", "checkpoint"] ## توضیحات -یک checkpoint (استوانه قرمز) برای پلیر تنظیم می‌کنه. همچنین یک نقطه قرمز در رادار نشون می‌ده. وقتی پلیر وارد checkpoint می‌شه، OnPlayerEnterCheckpoint فراخوانی می‌شه و می‌تونی اکشن‌های مختلفی انجام بدی. +یک checkpoint (استوانه قرمز) برای پلیر تنظیم می‌کنه. همچنین یک نقطه قرمز در رادار نشون می‌ده. وقتی پلیر وارد checkpoint می‌شه، [OnPlayerEnterCheckpoint](../callbacks/OnPlayerEnterCheckpoint) فراخوانی می‌شه و می‌تونی اکشن‌های مختلفی انجام بدی. | نام | توضیحات | | ------------- | --------------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerColor.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerColor.md index f7ea9f5c925e..a06bf961991d 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerColor.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerColor.md @@ -32,8 +32,8 @@ SetPlayerColor(playerid, 4278190335); :::note -- این تابع رنگ بازیکن را برای همه تغییر می‌دهد، حتی اگر رنگ بازیکن با SetPlayerMarkerForPlayer برای هر بازیکن دیگری تغییر کرده باشد. -- اگر تحت OnPlayerConnect استفاده شود، بازیکن متأثر رنگ را در منوی TAB نخواهد دید. +- این تابع رنگ بازیکن را برای همه تغییر می‌دهد، حتی اگر رنگ بازیکن با [SetPlayerMarkerForPlayer](SetPlayerMarkerForPlayer) برای هر بازیکن دیگری تغییر کرده باشد. +- اگر تحت [OnPlayerConnect](../callbacks/OnPlayerConnect) استفاده شود، بازیکن متأثر رنگ را در منوی TAB نخواهد دید. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md index 3b742655bc37..41e31265cc03 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md @@ -16,8 +16,8 @@ texture یک player-object رو با texture از مدل دیگه‌ای توی | materialIndex | اندکس material روی object که قراره تغییر کنه (0 تا 15) | | modelid | آیدی مدلی که texture جایگزین روش قرار داره. از 0 برای alpha استفاده کن. از -1 برای تغییر رنگ material بدون تغییر texture موجود استفاده کن | | const textureLibrary[] | اسم فایل txd که شامل texture جایگزین هست (از "none" استفاده کن اگه نیاز نیست) | -| const textureName[] | اسم texture ای که قراره به عنوان جایگزین استفاده بشه (از "none" استفاده کن اگه نیاز نیست) | -| materialColour | رنگ object که قراره تنظیم بشه، به عنوان عدد صحیح یا hex با **فرمت ARGB**. استفاده از **0** رنگ material موجود رو نگه می‌داره | +| const textureName[] | اسم [بافتی](https://models.open.mp/?cat=textures) که قراره به عنوان جایگزین استفاده بشه (از "none" استفاده کن اگه نیاز نیست) | +| materialColour | رنگ object که قراره تنظیم بشه، به عنوان عدد صحیح یا hex با **فرمت ARGB**. استفاده از **0** رنگ material موجود رو نگه می‌داره | ## مقادیر بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectPos.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectPos.md index 63ed9fd5f804..2fdc080ce650 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectPos.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectPos.md @@ -9,13 +9,13 @@ tags: ["player", "object", "playerobject"] موقعیت یک player-object رو به مختصات مشخص شده تنظیم می‌کنه. -| نام | توضیحات | -| -------- | ----------------------------------------------------------------------------------------- | -| playerid | آیدی پلیری که قراره موقعیت player-object اش تنظیم بشه | -| objectid | آیدی player-object ای که قراره موقعیتش تنظیم بشه. توسط CreatePlayerObject برگردونده می‌شه | -| Float:x | مختصات X که قراره object اونجا قرار بگیره | -| Float:y | مختصات Y که قراره object اونجا قرار بگیره | -| Float:z | مختصات Z که قراره object اونجا قرار بگیره | +| نام | توضیحات | +| -------- | -------------------------------------------------------------------------------------------------------------- | +| playerid | آیدی پلیری که قراره موقعیت player-object اش تنظیم بشه | +| objectid | آیدی player-object ای که قراره موقعیتش تنظیم بشه. توسط [CreatePlayerObject](CreatePlayerObject) برگردونده می‌شه | +| Float:x | مختصات X که قراره object اونجا قرار بگیره | +| Float:y | مختصات Y که قراره object اونجا قرار بگیره | +| Float:z | مختصات Z که قراره object اونجا قرار بگیره | ## مقادیر بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerRaceCheckpoint.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerRaceCheckpoint.md index ee1ae6debef9..08e78d80799d 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerRaceCheckpoint.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerRaceCheckpoint.md @@ -7,7 +7,7 @@ tags: ["player", "checkpoint", "racecheckpoint"] ## توضیحات -یک race checkpoint می‌سازه. وقتی پلیر وارد اون می‌شه، callback OnPlayerEnterRaceCheckpoint فراخوانی می‌شه. +یک race checkpoint می‌سازه. وقتی پلیر وارد اون می‌شه، callback [OnPlayerEnterRaceCheckpoint](../callbacks/OnPlayerEnterRaceCheckpoint) فراخوانی می‌شه. | نام | توضیحات | | ------------- | --------------------------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md index f560171be05f..366a88b1a2bf 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md @@ -49,7 +49,7 @@ public OneSecondTimer() :::note - شناسه‌های تایمر هرگز دوباره استفاده نمی‌شوند. شما می‌توانید با استفاده از [KillTimer](KillTimer) یک شناسه تایمر را متوقف کنید و مهم نیست که در حال اجرا باشد یا نه. -- تابعی که باید فراخوانی شود، باید عمومی باشد، به این معنی که باید forwarded باشد. +- تابعی که باید فراخوانی شود، باید [عمومی](../language/reference/Functions#-توابع-public-تابع-main) باشد، به این معنی که باید [forwarded](../language/reference/Functions#-اعلانهای-forward) باشد. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md index d4ae028d7da7..7eac052c17ab 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md @@ -9,13 +9,13 @@ tags: ["timer"] یک تایمر برای فراخوانی تابع پس از یک بازه زمانی مشخص تنظیم می‌کند. این نسخه ('Ex') امکان ارسال پارامترها (مانند شناسه بازیکن) به تابع را فراهم می‌کند. -| نام | توضیحات | -| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | -| const functionName[] | نام یک تابع عمومی که پس از انقضای تایمر فراخوانی می‌شود. | -| interval | بازه زمانی به میلی‌ثانیه (1 ثانیه = 1000 میلی‌ثانیه). | -| bool:repeating | مقدار بولی (true/false یا 1/0) که مشخص می‌کند آیا تایمر باید به صورت مکرر فراخوانی شود (فقط با KillTimer متوقف می‌شود) یا تنها یک بار اجرا شود. | -| const specifiers[] | فرمت خاصی که نشان‌دهنده نوع مقادیر ارسالی تایمر است. | -| OPEN_MP_TAGS:... | تعداد نامحدودی از آرگومان‌ها برای ارسال (باید مطابق فرمت مشخص شده در پارامتر قبلی باشد). | +| نام | توضیحات | +| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | +| const functionName[] | نام یک تابع عمومی که پس از انقضای تایمر فراخوانی می‌شود. | +| interval | بازه زمانی به میلی‌ثانیه (1 ثانیه = 1000 میلی‌ثانیه). | +| bool:repeating | مقدار بولی (true/false یا 1/0) که مشخص می‌کند آیا تایمر باید به صورت مکرر فراخوانی شود (فقط با [KillTimer](KillTimer) متوقف می‌شود) یا تنها یک بار اجرا شود. | +| const specifiers[] | فرمت خاصی که نشان‌دهنده نوع مقادیر ارسالی تایمر است. | +| OPEN_MP_TAGS:... | تعداد نامحدودی از آرگومان‌ها برای ارسال (باید مطابق فرمت مشخص شده در پارامتر قبلی باشد). | ## مقادیر بازگشتی @@ -75,7 +75,7 @@ public EndAntiSpawnKill(playerid) :::tip - متغیرهای شناسه تایمر باید زمانی که دیگر مورد استفاده نیستند به 0 تنظیم شوند تا احتمال از کار انداختن اشتباهی تایمرهای جدید به حداقل برسد. مقدار `-1` معمولاً به اشتباه به عنوان شناسه نامعتبر در نظر گرفته می‌شود - که نیست. -- تابعی که باید فراخوانی شود، باید عمومی باشد، به این معنی که باید forwarded باشد. +- تابعی که باید فراخوانی شود، باید [عمومی](../language/reference/Functions#-توابع-public-تابع-main) باشد، به این معنی که باید [forwarded](../language/reference/Functions#-اعلانهای-forward) باشد. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md index 1e1cd0ebb43c..e9155705be39 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md @@ -32,8 +32,8 @@ SetVehicleNumberPlate(vehicleid, "ABCD 123"); :::note -- این تابع بررسی خطای داخلی نداره. -- ماشین باید دوباره spawn یا re-stream بشه تا تغییرات اعمال بشن. +- این تابع بررسی خطای داخلی نداره. به ماشین‌هایی که پلاک ندارن (قایق، هواپیما و غیره) پلاک اختصاصی تخصیص نده چون باعث پردازش غیرضروری در client می‌شه. +- ماشین باید [دوباره spawn](SetVehicleToRespawn) یا re-stream بشه تا تغییرات اعمال بشن. - روی هر پلاک محدودیت 32 کاراکتر وجود داره (شامل رنگ‌های embedded). - طول متنی که می‌تونه روی پلاک دیده بشه حدود 9 تا 10 کاراکتر هست، کاراکترهای بیشتر باعث تقسیم شدن متن می‌شه. - بعضی مدل‌های ماشین پلاک برعکس دارن، مثل Boxville (498) (به عنوان جایگزین این ماشین می‌تونی از مدل 609 استفاده کنی که یه Boxville تکراری هست (یا Boxburg) ولی با پلاک معمولی). @@ -42,8 +42,7 @@ SetVehicleNumberPlate(vehicleid, "ABCD 123"); :::tip -- به ماشین‌هایی که پلاک ندارن (قایق، هواپیما و غیره) پلاک اختصاصی تخصیص نده چون باعث پردازش غیرضروری در client می‌شه. -- می‌تونی از color embedding روی متن پلاک استفاده کنی. +می‌تونی از color embedding روی متن پلاک استفاده کنی. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsForPlayer.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsForPlayer.md index a2e9533c14bc..8e7196f50072 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsForPlayer.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsForPlayer.md @@ -113,7 +113,7 @@ public OnVehicleStreamIn(vehicleid, forplayerid) :::note -ماشین‌ها باید respawn بشن تا 'objective' حذف بشه. +ماشین‌ها باید [respawn بشن](SetVehicleToRespawn) تا 'objective' حذف بشه. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md index 972facc1945c..bde9c6a11d90 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md @@ -7,7 +7,7 @@ tags: ["player"] ## توضیحات -marker های پلیر (blip های روی radar) رو تغییر می‌ده. باید وقتی سرور شروع می‌شه استفاده بشه (OnGameModeInit). برای زمان‌های دیگه، [SetPlayerMarkerForPlayer](SetPlayerMarkerForPlayer) رو ببین. +marker های پلیر (blip های روی radar) رو تغییر می‌ده. باید وقتی سرور شروع می‌شه استفاده بشه ([OnGameModeInit](../callbacks/OnGameModeInit)). برای زمان‌های دیگه، [SetPlayerMarkerForPlayer](SetPlayerMarkerForPlayer) رو ببین. | نام | توضیحات | | ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- | @@ -39,7 +39,7 @@ public OnGameModeInit() :::tip -همچنین امکان تنظیم رنگ یه پلیر به رنگی که شفافیت کامل داره (بدون مقدار alpha) وجود داره. این امکان نمایش marker ها رو به صورت per-player فراهم می‌کنه. +همچنین امکان [تنظیم رنگ یه پلیر](SetPlayerColor) به رنگی که شفافیت کامل داره (بدون مقدار alpha) وجود داره. این امکان نمایش marker ها رو به صورت per-player فراهم می‌کنه. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/StopPlayerObject.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/StopPlayerObject.md index 1606d1c10b2c..b1673fa58e11 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/StopPlayerObject.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/StopPlayerObject.md @@ -7,7 +7,7 @@ tags: ["player"] ## توضیحات -یک شیء بازیکن در حال حرکت را پس از استفاده از MovePlayerObject متوقف می‌کند. +یک شیء بازیکن در حال حرکت را پس از استفاده از [MovePlayerObject](MovePlayerObject) متوقف می‌کند. | نام | توضیحات | | -------- | --------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/StopRecordingPlayerData.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/StopRecordingPlayerData.md index db0d01322f22..6fb2ba2e694c 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/StopRecordingPlayerData.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/StopRecordingPlayerData.md @@ -7,7 +7,7 @@ tags: ["player"] ## توضیحات -تمام ضبط‌هایی که با StartRecordingPlayerData برای یک بازیکن خاص شروع شده‌اند را متوقف می‌کند. +تمام ضبط‌هایی که با [StartRecordingPlayerData](StartRecordingPlayerData) برای یک بازیکن خاص شروع شده‌اند را متوقف می‌کند. | نام | توضیحات | | -------- | ---------------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawDestroy.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawDestroy.md index 250fa2e82c12..7d9d9c95b800 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawDestroy.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawDestroy.md @@ -9,9 +9,9 @@ tags: ["textdraw"] نابودی یک textdraw که قبلاً ایجاد شده است. -| نام | توضیحات | -| ----------- | ------------------------------------------------------------------ | -| Text:textid | شناسه textdraw برای نابود کردن. توسط TextDrawCreate برگردانده شده. | +| نام | توضیحات | +| ----------- | ------------------------------------------------------------------------------------ | +| Text:textid | شناسه textdraw برای نابود کردن. توسط [TextDrawCreate](TextDrawCreate) برگردانده شده. | ## مقدار بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawFont.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawFont.md index 5482df133b9b..d4dc2d2a22b6 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawFont.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawFont.md @@ -9,10 +9,10 @@ tags: ["textdraw"] فونت متن رو تغییر می‌ده. -| نام | توضیحات | -| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| Text:textid | TextDraw ای که می‌خوای تغییر بدی | -| TEXT_DRAW_FONT:font | چهار استایل فونت وجود داره که در زیر نشون داده شده. مقدار فونت **4** مشخص می‌کنه که این یک txd sprite هست؛ **5** مشخص می‌کنه که این textdraw می‌تونه preview model ها رو نمایش بده. مقدار فونت بیشتر از 5 نمایش داده نمیشه، و هر چیزی بیشتر از 16 کلاینت رو crash می‌کنه. | +| نام | توضیحات | +| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| Text:textid | TextDraw ای که می‌خوای تغییر بدی | +| TEXT_DRAW_FONT:font | چهار استایل فونت وجود داره که در زیر نشون داده شده. مقدار فونت **4** مشخص می‌کنه که این یک txd sprite هست؛ **5** مشخص می‌کنه که این textdraw می‌تونه [preview model ها](TextDrawSetPreviewModel) رو نمایش بده. مقدار فونت بیشتر از 5 نمایش داده نمیشه، و هر چیزی بیشتر از 16 کلاینت رو crash می‌کنه. | **استایل‌های موجود:** ![Available Styles](https://assets.open.mp/assets/images/textdraws/Textdraw_font_styles.png) diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md index 10535e946e72..af066b9146b9 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md @@ -36,7 +36,7 @@ public OnGameModeInit() :::tip -- وقتی از این تابع فقط برای تأثیر روی جعبه TextDraw استفاده می‌کنی، 'Y' رو در 0.135 ضرب کن تا به اندازه‌گیری‌های مشابه TextDrawTextSize تبدیل بشه. **نکته**: استفاده از sprite **LD_SPAC:white** برای textdraw های فقط جعبه آسون‌تر و دقیق‌تره، TextDrawTextSize offset های معمولی خواهد داشت. +- وقتی از این تابع فقط برای تأثیر روی جعبه TextDraw استفاده می‌کنی، 'Y' رو در 0.135 ضرب کن تا به اندازه‌گیری‌های مشابه [TextDrawTextSize](TextDrawTextSize) تبدیل بشه. **نکته**: استفاده از sprite **LD_SPAC:white** برای textdraw های فقط جعبه آسون‌تر و دقیق‌تره، TextDrawTextSize offset های معمولی خواهد داشت. - اگر می‌خوای اندازه حروف یک textdraw که قبلاً نشون داده شده رو تغییر بدی، نیازی نیست دوباره بسازیش. بعد از تغییر textdraw، فقط از [TextDrawShowForPlayer](TextDrawShowForPlayer)/[TextDrawShowForAll](TextDrawShowForAll) استفاده کن و تغییر قابل مشاهده خواهد بود. - فونت‌ها با نسبت X به Y برابر 1 به 4 بهترین ظاهر رو دارن (مثلاً اگر x برابر 0.5 باشه، y باید 2 باشه). diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetOutline.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetOutline.md index b6272dd8019b..66f06c2703f8 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetOutline.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetOutline.md @@ -7,7 +7,7 @@ tags: ["textdraw"] ## توضیحات -ضخامت outline متن یک textdraw رو تنظیم می‌کنه. می‌تونی از TextDrawBackgroundColor برای تغییر رنگ استفاده کنی. +ضخامت outline متن یک textdraw رو تنظیم می‌کنه. می‌تونی از [TextDrawBackgroundColor](TextDrawBackgroundColor) برای تغییر رنگ استفاده کنی. | نام | توضیحات | | ----------- | --------------------------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForPlayer.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForPlayer.md index eb6388400246..dfa1e71c34fe 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForPlayer.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForPlayer.md @@ -7,7 +7,7 @@ tags: ["player", "textdraw"] ## توضیحات -یک textdraw رو برای یک بازیکن خاص نشون می‌ده. +یک [textdraw](TextDrawCreate) رو برای یک بازیکن خاص نشون می‌ده. | نام | توضیحات | | ----------- | ------------------------------------------------------------------------------------------------- | @@ -42,7 +42,7 @@ public OnPlayerConnect(playerid) :::tip -اگر فقط یک بازیکن textdraw رو می‌بینه، بهتره از player-textdraw ها استفاده کنی. این برای textdraw هایی که باید اطلاعات مخصوص یک بازیکن رو نشون بدن هم مفیده. +اگر فقط یک بازیکن textdraw رو می‌بینه، بهتره از [player-textdraw ها](CreatePlayerTextDraw) استفاده کنی. این برای textdraw هایی که باید اطلاعات مخصوص یک بازیکن رو نشون بدن هم مفیده. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md index c944b9999666..432d92afc17a 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md @@ -36,10 +36,13 @@ public OnGameModeInit() :::note -- x و y با مقادیر مختلف TextDrawAlignment معنی متفاوتی دارن: 1 (چپ): اونا گوشه سمت راست جعبه هستن، مختصات مطلق. 2 (وسط): باید معکوس بشن (دو تاشون رو عوض کن) و مقدار x عرض کلی جعبه هست. 3 (راست): x و y مختصات گوشه سمت چپ جعبه هستن -- استفاده از نوع فونت 4 (sprite) و 5 (model preview) X و Y این تابع رو از مختصات گوشه به WIDTH و HEIGHT (offset ها) تبدیل می‌کنه. +- x و y با مقادیر مختلف [TextDrawAlignment](TextDrawAlignment) معنی متفاوتی دارن: + - 1 (چپ): اونا گوشه سمت راست جعبه هستن، مختصات مطلق. + - 2 (وسط): باید معکوس بشن (دو تاشون رو عوض کن) و مقدار x عرض کلی جعبه هست. + - 3 (راست): x و y مختصات گوشه سمت چپ جعبه هستن +- استفاده از [نوع فونت](TextDrawFont) 4 (sprite) و 5 (model preview) X و Y این تابع رو از مختصات گوشه به WIDTH و HEIGHT (offset ها) تبدیل می‌کنه. - جعبه TextDraw از 10.0 واحد بالا و 5.0 واحد سمت چپ به عنوان مبدأ (مختصات TextDrawCreate) شروع می‌شه. -- این تابع ناحیه قابل کلیک رو برای استفاده با TextDrawSetSelectable تعریف می‌کنه، چه جعبه نشون داده بشه چه نشه. +- این تابع ناحیه قابل کلیک رو برای استفاده با [TextDrawSetSelectable](TextDrawSetSelectable) تعریف می‌کنه، چه جعبه نشون داده بشه چه نشه. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerSpectating.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerSpectating.md index 1b744e260431..2c2c9f271f70 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerSpectating.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerSpectating.md @@ -37,13 +37,13 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::note -وقتی حالت spectator غیرفعال میشه، OnPlayerSpawn به طور خودکار فراخوانی میشه، اگه می‌خوای بازیکن رو به حالت قبل از spectating برگردونی، باید این کار رو توی OnPlayerSpawn انجام بدی. همچنین توجه کن که بازیکن می‌تونه قبل از اینکه F4 رو توی spectate بزنه به class selection هم بره، همچنین بازیکن می‌تونه توی حالت spectate هم به خاطر باگ‌های مختلف بمیره. +وقتی حالت spectator غیرفعال میشه، [OnPlayerSpawn](../callbacks/OnPlayerSpawn) به طور خودکار فراخوانی میشه، اگه می‌خوای بازیکن رو به حالت قبل از spectating برگردونی، باید این کار رو توی OnPlayerSpawn انجام بدی. همچنین توجه کن که بازیکن می‌تونه قبل از اینکه F4 رو توی spectate بزنه به class selection هم بره، همچنین بازیکن می‌تونه توی حالت spectate هم به خاطر باگ‌های مختلف بمیره. ::: :::tip -وقتی بازیکن توی حالت spectate هست، HUD ش مخفی میشه، که این کار برای تنظیم دوربین بازیکن بدون HUD مفیده. همچنین، اشیاء نزدیک دوربین بازیکن stream میشن، که این کار برای interpolating دوربین‌ها مفیده. +وقتی بازیکن توی حالت spectate هست، HUD ش مخفی میشه، که این کار برای تنظیم دوربین بازیکن بدون HUD مفیده. همچنین، اشیاء نزدیک دوربین بازیکن stream میشن، که این کار برای [interpolating دوربین‌ها](InterpolateCameraPos) مفیده. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/atan.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/atan.md index 48cf96acb389..aa74615ec249 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/atan.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/atan.md @@ -7,7 +7,7 @@ tags: ["math"] ## توضیحات -مقدار معکوس یک تانژانت را به درجه دریافت کنید. در مثلثات، آرک تانژانت عملیات معکوس تانژانت است. توجه کنید که به دلیل ابهام علامت، تابع نمی‌تواند با قطعیت مشخص کند که زاویه در کدام ربع قرار می‌گیرد فقط با مقدار تانژانت آن. برای جایگزین [atan2](atan2) را ببینید که آرگومان کسری می‌گیرد. +مقدار معکوس یک [تانژانت](https://en.wikipedia.org/wiki/Trigonometric_functions) را به درجه دریافت کنید. در مثلثات، آرک تانژانت عملیات معکوس تانژانت است. توجه کنید که به دلیل ابهام علامت، تابع نمی‌تواند با قطعیت مشخص کند که زاویه در کدام ربع قرار می‌گیرد فقط با مقدار تانژانت آن. برای جایگزین [atan2](atan2) را ببینید که آرگومان کسری می‌گیرد. | نام | توضیحات | | ----------- | --------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_free_result.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_free_result.md index 0f388e9c2b8e..0f1c4b15b5e4 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_free_result.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_free_result.md @@ -7,7 +7,7 @@ tags: ["sqlite"] ## توضیحات -حافظه نتیجه تخصیص یافته از db_query را آزاد می کند. +حافظه نتیجه تخصیص یافته از [db_query](db_query) را آزاد می کند. | نام | توضیحات | | ----------------- | ------------------------------------------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field.md index b8316fd86fef..5520cca566f6 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field.md @@ -7,7 +7,7 @@ tags: ["sqlite"] ## توضیحات -محتوای یک فیلد رو از db_query دریافت می‌کنه. +محتوای یک فیلد رو از [db_query](db_query) دریافت می‌کنه. | نام | توضیحات | | ----------------- | -------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_int.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_int.md index 5041ca4e74d7..eb0efede7fc6 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_int.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_int.md @@ -7,7 +7,7 @@ tags: ["sqlite"] ## توضیحات -محتوای یک فیلد رو به عنوان یک عدد صحیح از db_query دریافت می‌کنه. +محتوای یک فیلد رو به عنوان یک عدد صحیح از [db_query](db_query) دریافت می‌کنه. | نام | توضیحات | | ----------------- | -------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_next_row.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_next_row.md index 4cc0c8d0fb6d..2c0ac38bf8d5 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_next_row.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_next_row.md @@ -11,11 +11,11 @@ tags: ["sqlite"] ## توضیحات -به ردیف بعدی در نتیجه‌ای که از db_query برگردونده شده میره. +به ردیف بعدی در نتیجه‌ای که از [db_query](db_query) برگردونده شده میره. -| اسم | توضیح | -| ----------------- | -------------------------------------- | -| DBResult:dbresult | نتیجه‌ای که از db_query برگردونده شده. | +| اسم | توضیح | +| ----------------- | ------------------------------------------------- | +| DBResult:dbresult | نتیجه‌ای که از [db_query](db_query) برگردونده شده. | ## مقادیر برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_num_fields.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_num_fields.md index 578671d24a06..40b8e3595bf4 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_num_fields.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_num_fields.md @@ -11,11 +11,11 @@ tags: ["sqlite"] ## توضیحات -تعداد فیلدهای موجود در نتیجه‌ای که از db_query برگردونده شده رو می‌گیره. +تعداد فیلدهای موجود در نتیجه‌ای که از [db_query](db_query) برگردونده شده رو می‌گیره. -| اسم | توضیح | -| ----------------- | -------------------------------------- | -| DBResult:dbresult | نتیجه‌ای که از db_query برگردونده شده. | +| اسم | توضیح | +| ----------------- | ------------------------------------------------- | +| DBResult:dbresult | نتیجه‌ای که از [db_query](db_query) برگردونده شده. | ## مقادیر برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_num_rows.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_num_rows.md index 88285dd94d09..0ace3e72ea2b 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_num_rows.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_num_rows.md @@ -11,11 +11,11 @@ tags: ["sqlite"] ## توضیحات -تعداد ردیف‌های موجود در نتیجه‌ای که از db_query برگردونده شده رو می‌گیره. +تعداد ردیف‌های موجود در نتیجه‌ای که از [db_query](db_query) برگردونده شده رو می‌گیره. -| اسم | توضیح | -| ----------------- | -------------------------------------- | -| DBResult:dbresult | نتیجه‌ای که از db_query برگردونده شده. | +| اسم | توضیح | +| ----------------- | ------------------------------------------------- | +| DBResult:dbresult | نتیجه‌ای که از [db_query](db_query) برگردونده شده. | ## مقادیر برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md index 750322dd4cb5..12b845748d41 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md @@ -9,11 +9,11 @@ tags: ["core", "property"] حذف یک خاصیت از پیش تنظیم شده ([setproperty](setproperty)). -| نام | توضیحات | -| ------ | ---------------------------------------------------------------------------------------- | -| id | ماشین مجازی برای استفاده. باید این را صفر نگه دارید. _(اختیاری=0)_ | -| name[] | نام خاصیت، باید این را خالی نگه دارید (""). | -| value | شناسه یکتای خاصیت. از تابع hash برای محاسبه آن از رشته استفاده کنید. _(اختیاری=cellmin)_ | +| نام | توضیحات | +| ------ | ------------------------------------------------------------------------------------------------------------------- | +| id | [ماشین مجازی](https://en.wikipedia.org/wiki/Virtual_machine) برای استفاده. باید این را صفر نگه دارید. _(اختیاری=0)_ | +| name[] | نام خاصیت، باید این را خالی نگه دارید (""). | +| value | شناسه یکتای خاصیت. از تابع hash برای محاسبه آن از رشته استفاده کنید. _(اختیاری=cellmin)_ | ## مقادیر بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md index 95e4a59eb8ba..92aa6a63d246 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md @@ -9,11 +9,11 @@ tags: ["core", "property"] بررسی وجود یک خاصیت. -| نام | توضیحات | -| ------ | ---------------------------------------------------------------------------------------- | -| id | ماشین مجازی برای استفاده، باید این را صفر نگه دارید. _(اختیاری=0)_ | -| name[] | نام خاصیت، باید این را "" نگه دارید. | -| value | شناسه یکتای خاصیت. از تابع hash برای محاسبه آن از رشته استفاده کنید. _(اختیاری=cellmin)_ | +| نام | توضیحات | +| ------ | ------------------------------------------------------------------------------------------------------------------- | +| id | [ماشین مجازی](https://en.wikipedia.org/wiki/Virtual_machine) برای استفاده، باید این را صفر نگه دارید. _(اختیاری=0)_ | +| name[] | نام خاصیت، باید این را "" نگه دارید. | +| value | شناسه یکتای خاصیت. از تابع hash برای محاسبه آن از رشته استفاده کنید. _(اختیاری=cellmin)_ | ## مقادیر بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fblockread.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fblockread.md index c1b75456e8f0..a4113e16fb3a 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fblockread.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fblockread.md @@ -9,11 +9,11 @@ tags: ["file management"] این تابع به شما امکان خواندن داده از فایل، بدون کدگذاری و پایان‌دهنده‌های خط را می‌دهد -| نام | توضیحات | -| ---------------------- | ------------------------------------------- | -| File:handle | هندل فایل برای استفاده، باز شده با ()fopen. | -| buffer | بافر برای ذخیره داده‌های خوانده شده. | -| size = sizeof (buffer) | تعداد سلول‌های برای خواندن. | +| نام | توضیحات | +| ---------------------- | -------------------------------------------------- | +| File:handle | هندل فایل برای استفاده، باز شده با [fopen](fopen). | +| buffer | بافر برای ذخیره داده‌های خوانده شده. | +| size = sizeof (buffer) | تعداد سلول‌های برای خواندن. | ## مقادیر بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fblockwrite.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fblockwrite.md index 836b41636760..1183bd748f30 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fblockwrite.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fblockwrite.md @@ -9,11 +9,11 @@ tags: ["file management"] نوشتن داده در فایل به فرمت باینری، با نادیده گرفتن شکست خط و کدگذاری. -| نام | توضیحات | -| ---------------------- | ------------------------------------------- | -| File:handle | هندل فایل برای استفاده، باز شده با ()fopen. | -| const buffer[] | داده برای نوشتن در فایل. | -| size = sizeof (buffer) | تعداد سلول‌های برای نوشتن. | +| نام | توضیحات | +| ---------------------- | -------------------------------------------------- | +| File:handle | هندل فایل برای استفاده، باز شده با [fopen](fopen). | +| const buffer[] | داده برای نوشتن در فایل. | +| size = sizeof (buffer) | تعداد سلول‌های برای نوشتن. | ## مقادیر بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fgetchar.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fgetchar.md index f61385a28bc8..76f968233e7b 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fgetchar.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fgetchar.md @@ -9,10 +9,10 @@ tags: ["file management"] خواندن یک کاراکتر از فایل. -| نام | توضیحات | -| ----------- | -------------------------------------------------------------------------------------------------- | -| File:handle | دستگیره فایل که بوسیله fopen برگردونده میشه. | -| value | این پارامتر استفاده ای نداره، فقط "0" رو بذار. | +| نام | توضیحات | +| ----------- | ------------------------------------------------------------------------------------------------- | +| File:handle | دستگیره فایل که بوسیله [fopen](fopen) برگردونده میشه. | +| value | این پارامتر استفاده ای نداره، فقط "0" رو بذار. | | bool:utf8 | اگه `true` باشه، کاراکتر رو به صورت UTF-8 میخونه، در غیر اینصورت extended ASCII. (پیش‌فرض: `true`) | ## برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/flength.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/flength.md index 28e9295e2dca..20fbbb5a759a 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/flength.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/flength.md @@ -9,9 +9,9 @@ tags: ["file management"] برگرداندن طول یک فایل. -| نام | توضیحات | -| ----------- | ---------------------------------------------------- | -| File:handle | دستگیره فایل که بوسیله fopen یا ftemp برگردونده میشه | +| نام | توضیحات | +| ----------- | ---------------------------------------------------------------------- | +| File:handle | دستگیره فایل که بوسیله [fopen](fopen) یا [ftemp](ftemp) برگردونده میشه | ## برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md index 91f4acd3dba1..a32504291f6f 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md @@ -9,7 +9,7 @@ tags: ["math", "floating-point"] ## توضیحات -این تابع مقدار مطلق یک عدد اعشاری رو برمی‌گردونه. +این تابع [مقدار مطلق](https://en.wikipedia.org/wiki/Absolute_value) یک عدد اعشاری رو برمی‌گردونه. | اسم | توضیح | | ----------- | ------------------------------------------ | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md index cb26df94965c..af680a6fafb1 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md @@ -7,7 +7,7 @@ tags: ["math", "floating-point"] ## توضیحات -گرفتن کسینوس از زاویه داده شده. زاویه ورودی میتونه بر حسب رادیان، درجه یا گراد باشه. +گرفتن [کسینوس](https://en.wikipedia.org/wiki/Sine_and_cosine) از زاویه داده شده. زاویه ورودی میتونه بر حسب رادیان، درجه یا گراد باشه. | نام | توضیحات | | -------------- | ------------------------------------------------------------------------------------------------------ | @@ -33,7 +33,8 @@ public OnGameModeInit() :::warning -GTA/SA-MP از **درجه** برای زاویه در بیشتر شرایط استفاده میکنه، مثلاً [GetPlayerFacingAngle](GetPlayerFacingAngle). بنابراین احتمالاً میخوای از حالت زاویه '**degrees**' استفاده کنی، _نه_ radian. همچنین توجه کن که زاویه‌ها در GTA پادساعتگردن؛ 270° شرقه و 90° غرب. جنوب هنوز 180° و شمال هنوز 0°/360°. +- GTA/SA-MP از **درجه** برای زاویه در بیشتر شرایط استفاده میکنه، مثلاً [GetPlayerFacingAngle](GetPlayerFacingAngle). بنابراین احتمالاً میخوای از حالت زاویه '**degrees**' استفاده کنی، _نه_ radian. +- همچنین توجه کن که زاویه‌ها در GTA پادساعتگردن؛ 270° شرقه و 90° غرب. جنوب هنوز 180° و شمال هنوز 0°/360°. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md index 1f76ab83e499..0bf80f20f011 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md @@ -7,7 +7,7 @@ tags: ["math", "floating-point"] ## توضیحات -این تابع بهت اجازه میده لگاریتم یک مقدار اعشاری رو بگیری. +این تابع بهت اجازه میده [لگاریتم](https://en.wikipedia.org/wiki/Logarithm) یک مقدار اعشاری رو بگیری. | نام | توضیحات | | ----------- | ------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md index a121c2b2a3d0..8cf32f30b334 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md @@ -7,7 +7,7 @@ tags: ["math", "floating-point"] ## توضیحات -sine یک زاویه داده شده رو دریافت میکنه. زاویه ورودی میتونه بر حسب radian، درجه یا grade باشه. +[sine](https://en.wikipedia.org/wiki/Sine_and_cosine) یک زاویه داده شده رو دریافت میکنه. زاویه ورودی میتونه بر حسب radian، درجه یا grade باشه. | نام | توضیحات | | -------------- | ------------------------------------------------------------------------------------------------ | @@ -41,7 +41,8 @@ GetPosInFrontOfPlayer(playerid, Float:distance, &Float:x, &Float:y, &Float:z) :::warning -GTA/SA-MP از **درجه** برای زاویه‌ها در اکثر شرایط استفاده میکنن، مثلاً [GetPlayerFacingAngle](GetPlayerFacingAngle). بنابراین، احتمالاً میخوای از حالت زاویه '**degrees**' استفاده کنی، _نه_ radian. همچنین دقت کن که زاویه‌ها در GTA پادساعتگردن؛ 270° شرق و 90° غرب. جنوب هنوز 180° و شمال هنوز 0°/360°. +- GTA/SA-MP از **درجه** برای زاویه‌ها در اکثر شرایط استفاده میکنن، مثلاً [GetPlayerFacingAngle](GetPlayerFacingAngle). بنابراین، احتمالاً میخوای از حالت زاویه '**degrees**' استفاده کنی، _نه_ radian. +- همچنین دقت کن که زاویه‌ها در GTA پادساعتگردن؛ 270° شرق و 90° غرب. جنوب هنوز 180° و شمال هنوز 0°/360°. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md index 8ce390f56b79..40bba8f9f25e 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md @@ -7,7 +7,7 @@ tags: ["math", "floating-point"] ## توضیحات -جذر مربع مقدار داده شده رو محاسبه میکنه. +[جذر مربع](https://en.wikipedia.org/wiki/Square_root) مقدار داده شده رو محاسبه میکنه. | نام | توضیحات | | ----------- | ------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md index e5c21e567f78..9ca7ed4c1ecf 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md @@ -7,7 +7,7 @@ tags: ["math", "floating-point"] ## توضیحات -tangent یک زاویه داده شده رو دریافت میکنه. زاویه ورودی میتونه بر حسب radian، درجه یا grade باشه. +[tangent](https://en.wikipedia.org/wiki/Trigonometric_functions) یک زاویه داده شده رو دریافت میکنه. زاویه ورودی میتونه بر حسب radian، درجه یا grade باشه. | نام | توضیحات | | ----------- | ------------------------------------------------------------------------------------------------ | @@ -33,7 +33,8 @@ public OnGameModeInit() :::warning -GTA/SA-MP از **درجه** برای زاویه‌ها در اکثر شرایط استفاده میکنن، مثلاً [GetPlayerFacingAngle](GetPlayerFacingAngle). بنابراین، احتمالاً میخوای از حالت زاویه '**degrees**' استفاده کنی، _نه_ radian. همچنین دقت کن که زاویه‌ها در GTA پادساعتگردن؛ 270° شرق و 90° غرب. جنوب هنوز 180° و شمال هنوز 0°/360°. +- GTA/SA-MP از **درجه** برای زاویه‌ها در اکثر شرایط استفاده میکنن، مثلاً [GetPlayerFacingAngle](GetPlayerFacingAngle). بنابراین، احتمالاً میخوای از حالت زاویه '**degrees**' استفاده کنی، _نه_ radian. +- همچنین دقت کن که زاویه‌ها در GTA پادساعتگردن؛ 270° شرق و 90° غرب. جنوب هنوز 180° و شمال هنوز 0°/360°. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fmatch.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fmatch.md index 0153134db692..c1378c834638 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fmatch.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fmatch.md @@ -9,12 +9,12 @@ tags: ["file management"] نام فایلی که با pattern مطابقت داره رو پیدا میکنه. -| نام | توضیحات | -| ------------------------ | ----------------------------------------------------------------- | -| const filename[] | string که نتیجه توش ذخیره میشه، به صورت packed string برمیگردونه. | -| const pattern[] | pattern که باید match بشه. میتونه wildcard داشته باشه. | -| index | شماره فایل، در صورتی که چندین match وجود داشته باشه. (پیش‌فرض: 0) | -| size = sizeof (filename) | بیشترین اندازه پارامتر _name_ | +| نام | توضیحات | +| ------------------------ | ------------------------------------------------------------------------------ | +| const filename[] | string که نتیجه توش ذخیره میشه، به صورت [packed](strunpack) string برمیگردونه. | +| const pattern[] | pattern که باید match بشه. میتونه wildcard داشته باشه. | +| index | شماره فایل، در صورتی که چندین match وجود داشته باشه. (پیش‌فرض: 0) | +| size = sizeof (filename) | بیشترین اندازه پارامتر _name_ | ## برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/format.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/format.md index 4600ebcf978c..6d53b7713efd 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/format.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/format.md @@ -80,7 +80,7 @@ SendClientMessage(playerid, 0xFF8000FF, string); :::warning -این تابع از packed string‌ها پشتیبانی نمی‌کنه. +این تابع از [packed](strpack) string‌ها پشتیبانی نمی‌کنه. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fputchar.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fputchar.md index 3dd7cd3228a5..421a5a3f17ab 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fputchar.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fputchar.md @@ -9,10 +9,10 @@ tags: ["file management"] یک کاراکتر رو در یک فایل می‌نویسه. -| نام | توضیحات | -| ----------- | ---------------------------------------------------------------------------------- | -| File:handle | هندل فایل که استفاده می‌شه، که قبلاً توسط fopen باز شده. | -| value | کاراکتری که در فایل نوشته می‌شه. | +| نام | توضیحات | +| ----------- | -------------------------------------------------------------------------------- | +| File:handle | هندل فایل که استفاده می‌شه، که قبلاً توسط [fopen](fopen) باز شده. | +| value | کاراکتری که در فایل نوشته می‌شه. | | bool:utf8 | اگه `true` باشه، در حالت UTF8 می‌نویسه، وگرنه در extended ASCII. (پیش‌فرض: `true`) | ## مقدار بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fread.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fread.md index 836e242ab89d..7d7179eb7172 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fread.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fread.md @@ -9,9 +9,9 @@ tags: ["file management"] یک خط از یک فایل رو می‌خونه. -| نام | توضیحات | -| ---------------------- | ----------------------------------------------------------------- | -| File:handle | هندل فایل که ازش خونده می‌شه (توسط fopen برگردونده شده). | +| نام | توضیحات | +| ---------------------- | ---------------------------------------------------------------- | +| File:handle | هندل فایل که ازش خونده می‌شه (توسط [fopen](fopen) برگردونده شده). | | string[] | آرایه string برای ذخیره متن خونده شده، که با reference پاس می‌شه. | | size = sizeof (string) | تعداد بایت‌هایی که باید خونده بشن. | | bool:pack | آیا string باید pack شده باشه؟ (پیش‌فرض: false). | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fremove.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fremove.md index 66aa3ab04f3d..0f0b1094694f 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fremove.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fremove.md @@ -51,7 +51,7 @@ else :::note -فایل‌هایی که در حال حاضر باز هستن (fopen) باید اول بسته بشن (fclose) تا بتونن حذف بشن. +فایل‌هایی که در حال حاضر باز هستن ([fopen](fopen)) باید اول بسته بشن ([fclose](fclose)) تا بتونن حذف بشن. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fseek.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fseek.md index b5404085a6ff..bbf80130313a 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fseek.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fseek.md @@ -9,11 +9,11 @@ tags: ["file management"] موقعیت فعلی توی فایل رو تغییر بده. میتونی جلو یا عقب بری. -| نام | توضیحات | -| --------------------------------------------------- | ---------------------------------------------------------- | -| File:handle | دستگیره فایلی که باید استفاده بشه. از fopen برمیگرده. | -| position | موقعیت جدید توی فایل، نسبت به پارامتر whence (ببین پایین). | -| [seek_whence:whence](../resources/file-seek-whence) | موقعیت شروعی که پارامتر position به اون ربط داره. | +| نام | توضیحات | +| --------------------------------------------------- | -------------------------------------------------------------- | +| File:handle | دستگیره فایلی که باید استفاده بشه. از [fopen](fopen) برمیگرده. | +| position | موقعیت جدید توی فایل، نسبت به پارامتر whence (ببین پایین). | +| [seek_whence:whence](../resources/file-seek-whence) | موقعیت شروعی که پارامتر position به اون ربط داره. | ## برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md index b2761f3c1f26..10e378832daa 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md @@ -9,10 +9,10 @@ tags: ["file management"] متن رو توی فایل بنویس. -| نام | توضیحات | -| -------------- | ------------------------------------------------------------- | -| File:handle | دستگیره فایلی که میخوای توش بنویسی (از fopen برگردونده میشه). | -| const string[] | متنی که میخوای توی فایل بنویسی. | +| نام | توضیحات | +| -------------- | ---------------------------------------------------------------------- | +| File:handle | دستگیره فایلی که میخوای توش بنویسی (از [fopen](fopen) برگردونده میشه). | +| const string[] | متنی که میخوای توی فایل بنویسی. | ## برگشتی @@ -106,7 +106,7 @@ else :::note -این تابع توی فایل با UTF-8 مینویسه، که از بعضی کاراکترهای زبان‌های محلی پشتیبانی نمیکنه. +این تابع توی فایل با [UTF-8](https://en.wikipedia.org/wiki/UTF-8) مینویسه، که از بعضی کاراکترهای زبان‌های محلی پشتیبانی نمیکنه. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md index 45564811ff02..02632fc4b572 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md @@ -9,12 +9,12 @@ tags: ["core", "property"] یه property خاص رو از حافظه دریافت می‌کنه، string به صورت packed برگردونده می‌شه! -| نام | توضیحات | -| -------- | -------------------------------------------------------------------------------------------------- | -| id | ماشین مجازی برای استفاده، بهتره صفر بذاری. _(اختیاری=0)_ | -| name[] | اسم property، بهتره "" بذاری. | -| value | ID منحصر به فرد property، از hash-function استفاده کن تا از string محاسبه کنی. _(اختیاری=cellmin)_ | -| string[] | متغیری برای ذخیره نتیجه، به صورت reference پاس داده می‌شه. | +| نام | توضیحات | +| -------- | --------------------------------------------------------------------------------------------------------- | +| id | [ماشین مجازی](https://en.wikipedia.org/wiki/Virtual_machine) برای استفاده، بهتره صفر بذاری. _(اختیاری=0)_ | +| name[] | اسم property، بهتره "" بذاری. | +| value | ID منحصر به فرد property، از hash-function استفاده کن تا از string محاسبه کنی. _(اختیاری=cellmin)_ | +| string[] | متغیری برای ذخیره نتیجه، به صورت reference پاس داده می‌شه. | ## مقادیر برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/random.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/random.md index 7e2f43255aff..aff14505a2fb 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/random.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/random.md @@ -7,7 +7,7 @@ tags: ["core"] ## توضیحات -یک عدد شبه-تصادفی دریافت می‌کنه. +یک [عدد شبه-تصادفی](https://en.wikipedia.org/wiki/Pseudorandom_number_generator) دریافت می‌کنه. | نام | توضیحات | | --- | --------------------------------------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md index a4ded03d04ad..3d3f2267fe17 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md @@ -9,10 +9,10 @@ tags: ["core", "property"] یک property جدید اضافه می‌کنه یا یک property موجود رو تغییر می‌ده. -| نام | توضیحات | -| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| id | virtual machine که باید استفاده بشه، باید این رو صفر نگه داری. _(اختیاری=0)_ | -| name[] | همراه با _value_ وقتی integer ذخیره می‌کنی استفاده می‌شه؛ اگر می‌خوای string ذخیره کنی از این استفاده نکن. | +| نام | توضیحات | +| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| id | [virtual machine](https://en.wikipedia.org/wiki/Virtual_machine) که باید استفاده بشه، باید این رو صفر نگه داری. _(اختیاری=0)_ | +| name[] | همراه با _value_ وقتی integer ذخیره می‌کنی استفاده می‌شه؛ اگر می‌خوای string ذخیره کنی از این استفاده نکن. | | value | مقدار integer که باید ذخیره بشه **یا** ID منحصر به فرد property اگر string ذخیره می‌کنی. از تابع hash استفاده کن تا از string محاسبه کنی. _(اختیاری=cellmin)_ | | string[] | مقدار property، به عنوان string. اگر می‌خوای integer ذخیره کنی از این استفاده نکن. | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md index 4420d50cc61d..d4c968f58a77 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md @@ -7,7 +7,7 @@ tags: ["string"] ## توضیحات -این تابع دو رشته را به هم متصل (ترکیب) می‌کند در رشته مقصد. +این تابع دو رشته را به هم [متصل](https://en.wikipedia.org/wiki/Concatenation) (ترکیب) می‌کند در رشته مقصد. | نام | توضیحات | | ------------------------- | ------------------------------------ | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md index 3eea9d6186c3..24a1f417313b 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md @@ -20,7 +20,11 @@ tags: ["string"] ## مقادیر برگشتی -اگر رشته ها با طول مشخص شده با هم مطابقت داشته باشند **0** بر می گرداند; اگر برخی از کاراکتر ها با هم مطابقت نداشته باشند: string1 [i] - string2 [i] ('i' شاخص کاراکتر را از 0 نشان می دهد) **1** یا **-1** برمی گرداند؛ **تفاوت در تعداد کاراکتر ها** اگر یک رشته باشد فقط با بخشی از رشته دیگر مطابقت دارد. +اگر رشته ها با طول مشخص شده با هم مطابقت داشته باشند **0** بر می گرداند; + +اگر برخی از کاراکتر ها با هم مطابقت نداشته باشند: string1 [i] - string2 [i] ('i' شاخص کاراکتر را از 0 نشان می دهد) **1** یا **-1** برمی گرداند؛ + +**تفاوت در تعداد کاراکتر ها** اگر یک رشته باشد فقط با بخشی از رشته دیگر مطابقت دارد. ## مثال ها @@ -53,7 +57,7 @@ if (!strcmp(string1, string2) && !isnull(string1) && !isnull(string2)) :::warning -اگر رشته ها را از یک فایل متنی مقایسه می کنید ، باید هنگام استفاده از fread ، کاراکتر های خاص "carriage return" و "خط جدید" را در نظر بگیرید (n \r\) ، همانطور که در آنها گنجانده شده است. +اگر رشته ها را از یک فایل متنی مقایسه می کنید ، باید هنگام استفاده از [fread](fread) ، کاراکتر های خاص "carriage return" و "خط جدید" را در نظر بگیرید (n \r\) ، همانطور که در آنها گنجانده شده است. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/tickcount.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/tickcount.md index 08a208b8eb43..a14bc2c161a8 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/tickcount.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/tickcount.md @@ -7,7 +7,7 @@ tags: ["time"] ## توضیحات -این تابع میتونه به عنوان جایگزین GetTickCount استفاده بشه، چون تعداد میلی‌ثانیه‌ها از زمان راه‌اندازی سرور رو برمی‌گردونه. +این تابع میتونه به عنوان جایگزین [GetTickCount](GetTickCount) استفاده بشه، چون تعداد میلی‌ثانیه‌ها از زمان راه‌اندازی سرور رو برمی‌گردونه. | نام | توضیحات | | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md index 7fe078b0361d..a3258f2803f7 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md @@ -284,7 +284,8 @@ playerid = 0, dialogid = YOUR_DIALOGID, response = 0, listitem = 1, inputtext = - **\t** مقداری فاصله ایجاد میکند. - **\n** یک خط جدید میسازد. -- روش Color-Embedding بعد از **\n** یا **\t** ریست میشود. اولین خط **info** شامل سر تیتر میشود. +- روش Color-Embedding بعد از **\n** یا **\t** ریست میشود. +- اولین خط **info** شامل سر تیتر میشود. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/resources/keys.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/resources/keys.md index 6d55a18e358f..5749d61b2903 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/resources/keys.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/resources/keys.md @@ -8,6 +8,7 @@ sidebar_label: "دکمه ها" :::note نکته میتوانید در [GetPlayerKeys](../functions/GetPlayerKeys) و [OnPlayerKeyStateChange](../callbacks/OnPlayerKeyStateChange) استفاده کنید. + سمپ از bitmasking برای تعیین کردم کلید فشرده شده یا فشرده نشده استفاده میکند. این یک مقاله درباره bitmasking است: [https://en.wikipedia.org/wiki/Mask\_(computing)]() ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md index cd22c0193e64..5f377c130e8f 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md @@ -43,9 +43,8 @@ public OnClientCheckResponse(playerid, actionid, memaddr, retndata) :::warning -**SA:MP Server**: Ang callback na ito ay tinatawag lamang kapag ito ay nasa isang filterscript. - -**Open Multiplayer Server**: Ang callback na ito ay normal na gumagana sa loob ng isang gamemode / filterscript. +- **SA-MP server**: Ang callback na ito ay tinatawag lamang kapag ito ay nasa isang filterscript. +- **open.mp server**: Ang callback na ito ay normal na gumagana sa loob ng isang gamemode / filterscript. ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md index 6e91734c1aee..75af1b2657af 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md @@ -7,7 +7,7 @@ tags: [] ## Description -Ang callback na ito ay itinatawag kapag ang isang gamemode ay isinara or itinapos. Itinatawag ito tuwing itinatawag ang rcon command na `gmx`, o kapag and server ay ishinu-shutdown, o GameModeExit. +Ang callback na ito ay itinatawag kapag ang isang gamemode ay isinara or itinapos. Itinatawag ito tuwing itinatawag ang rcon command na `gmx`, o kapag and server ay ishinu-shutdown, o [GameModeExit](../functions/GameModeExit). ## Returns @@ -30,7 +30,7 @@ public OnGameModeExit() :::tip - Ang function na ito ay pwede rin gamitin sa mga filterscript, upang idetect kung ang gamemode ay nabago gamit ang RCON commands katulad ng changemode o gmx, sapagkat ang pagpapalit ng gamemode ay hindi nagrereload ng filterscript. -- Kapag ginagamit ang OnGameModeExit kasabay ang 'rcon gmx' na command sa console, tandaan na pwede ito magdulot ng client bugs tulad ng sobra sobra na pagtawag ng RemoveBuildingForPlayer tuwing OnGameModeInit na pwede magdulot ng crash sa client. +- Kapag ginagamit ang OnGameModeExit kasabay ang 'rcon gmx' na command sa console, tandaan na pwede ito magdulot ng client bugs tulad ng sobra sobra na pagtawag ng RemoveBuildingForPlayer tuwing [OnGameModeInit](OnGameModeInit) na pwede magdulot ng crash sa client. - Ang callback na ito ay hindi tatawagin kapag ang server ay nag crash or napatay gamit ang ibang bagay, tulad ng Linux kill command. ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md index 8226944ef12f..856be1672abe 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md @@ -38,7 +38,8 @@ public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) :::note -Sabi nga sa pangalan ng callback, ito ay itinatawag lang kapag ang player ay nag right click upang mag mark sa kanilang mapa, at hindi sa pagpindot ng key. Ang Z value na irereturn ay magiging 0 (invalid) kapag ang area na ipinindot ng player ay malayo sa kanila; gamitin ang MapAndreas o ColAndreas na plugin upang makakuha ng mas tumpak na Z coordinate. +- Sabi nga sa pangalan ng callback, ito ay itinatawag lang kapag ang player ay nag right click upang mag mark sa kanilang mapa, at hindi sa pagpindot ng key. +- Ang Z value na irereturn ay magiging 0 (invalid) kapag ang area na ipinindot ng player ay malayo sa kanila; gamitin ang [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) o [ColAndreas](https://github.com/Pottus/ColAndreas) na plugin upang makakuha ng mas tumpak na Z coordinate. ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md index de2485357157..944040a58835 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md @@ -69,7 +69,7 @@ public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) :::warning -Kapag ang player ay pinindot ang ESC para i cancel ang textdraw, OnPlayerClickTextDraw ay matatawag kasama ang ID na `INVALID_TEXT_DRAW`. OnPlayerClickPlayerTextDraw ay hindi rin matatawag. +Kapag ang player ay pinindot ang ESC para i cancel ang textdraw, [OnPlayerClickTextDraw](OnPlayerClickTextDraw) ay matatawag kasama ang ID na `INVALID_TEXT_DRAW`. OnPlayerClickPlayerTextDraw ay hindi rin matatawag. ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md index 3ec0a835e6ca..e48b577a835f 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md @@ -70,7 +70,8 @@ public OnPlayerClickTextDraw(playerid, Text:clickedid) :::warning -Ang napipindot na area ay na dedefine sa TextDrawTextSize. Ang x at y na parameter ay napapass sa function na iyon at hindi eto pwedeng maging zero o negative. Wag gamitin ang CancelSelectTextdraw ng hindi alam ang gagawin o walang pasubali sa callback. Magreresulta ito sa infinite na loop. +- Ang napipindot na area ay na dedefine sa TextDrawTextSize. Ang x at y na parameter ay napapass sa function na iyon at hindi eto pwedeng maging zero o negative. +- Wag gamitin ang [CancelSelectTextdraw](../functions/CancelSelectTextDraw) ng hindi alam ang gagawin o walang pasubali sa callback. Magreresulta ito sa infinite na loop. ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md index 35f16dde4f87..4200232bbb66 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md @@ -36,7 +36,8 @@ public OnPlayerExitVehicle(playerid, vehicleid) :::warning -Hindi tinawag kung ang manlalaro ay nahulog mula sa isang bisikleta o inalis mula sa isang sasakyan sa pamamagitan ng iba pang paraan tulad ng paggamit ng [SetPlayerPos](../functions/SetPlayerPos). Dapat mong gamitin ang [OnPlayerStateChange](OnPlayerStateChange) at tingnan kung ang kanilang lumang estado ay PLAYER_STATE_DRIVER o PLAYER_STATE_PASSENGER at ang kanilang bagong estado ay PLAYER_STATE_ONFOOT. +- Hindi tinawag kung ang manlalaro ay nahulog mula sa isang bisikleta o inalis mula sa isang sasakyan sa pamamagitan ng iba pang paraan tulad ng paggamit ng [SetPlayerPos](../functions/SetPlayerPos). +- Dapat mong gamitin ang [OnPlayerStateChange](OnPlayerStateChange) at tingnan kung ang kanilang lumang estado ay PLAYER_STATE_DRIVER o PLAYER_STATE_PASSENGER at ang kanilang bagong estado ay PLAYER_STATE_ONFOOT. ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md index b057327d83ac..6fad57ee19cf 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md @@ -7,7 +7,7 @@ tags: ["player"] ## Paglalarawan -Ang callback na ito ay tinatawag kapag ang isang player ay nagbago ng estado. Halimbawa, kapag ang isang manlalaro ay nagbago mula sa pagiging driver ng isang sasakyan patungo sa pagiging on-foot. +Ang callback na ito ay tinatawag kapag ang isang player ay nagbago ng [estado](../resources/playerstates). Halimbawa, kapag ang isang manlalaro ay nagbago mula sa pagiging driver ng isang sasakyan patungo sa pagiging on-foot. | Name | Description | | -------- | -------------------------------------- | @@ -15,8 +15,6 @@ Ang callback na ito ay tinatawag kapag ang isang player ay nagbago ng estado. Ha | newstate | Ang bagong estado ng manlalaro. | | oldstate | Ang dating estado ng manlalaro. | -Sumangguni sa [Player States](../resources/playerstates) para sa listahan ng lahat ng available na estado ng manlalaro. - ## Returns Lagi itong na tatawag una sa mga filterscript. diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md index 906d06fa4e2a..3352e970c3df 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md @@ -13,7 +13,7 @@ Ang callback na ito ay tinatawag **lamang** kapag ang sasakyan ay **muling** umu ## Paglalarawan -Ang callback na ito ay tinatawag kapag ang isang sasakyan ay nag respawn. +Ang callback na ito ay tinatawag kapag ang isang sasakyan ay nag **re**spawn. | Name | Description | | --------- | ---------------------------------- | 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 82f50dffcc31..9d4e57f566d2 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 @@ -45,7 +45,7 @@ Ang **useartwork** ay dapat munang paganahin sa mga setting ng server upang ito :::warning -Kasalukuyang walang mga paghihigpit sa kung kailan mo maaaring tawagan ang function na ito, ngunit magkaroon ng kamalayan na kung hindi mo sila tatawagan sa loob ng OnFilterScriptInit/OnGameModeInit, magkakaroon ka ng panganib na ang ilang mga manlalaro, na nasa server na, ay maaaring hindi na-download ang mga modelo. +Kasalukuyang walang mga paghihigpit sa kung kailan mo maaaring tawagan ang function na ito, ngunit magkaroon ng kamalayan na kung hindi mo sila tatawagan sa loob ng [OnFilterScriptInit](../callbacks/OnFilterScriptInit)/[OnGameModeInit](../callbacks/OnGameModeInit), magkakaroon ka ng panganib na ang ilang mga manlalaro, na nasa server na, ay maaaring hindi na-download ang mga modelo. ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md index b54624111f97..be4bf9508824 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md @@ -43,7 +43,10 @@ Nag-crash kapag naipasa ang isang di-wastong ID ng menu. :::note -Maaari ka lang magkaroon ng 12 item sa bawat menu (ang ika-13 ay mapupunta sa kanang bahagi ng header ng pangalan ng column (kulay), ika-14 at mas mataas na hindi ipinapakita). Maaari ka lamang gumamit ng 2 column (0 at 1). Maaari ka lamang magdagdag ng 8 color code sa bawat isang item (`~r~`, `~g~` atbp.). Ang maximum na haba ng item sa menu ay 31 simbolo. +- Maaari ka lang magkaroon ng 12 item sa bawat menu (ang ika-13 ay mapupunta sa kanang bahagi ng header ng pangalan ng column (kulay), ika-14 at mas mataas na hindi ipinapakita). +- Maaari ka lamang gumamit ng 2 column (0 at 1). +- Maaari ka lamang magdagdag ng 8 color code sa bawat isang item (`~r~`, `~g~` atbp.). +- Ang maximum na haba ng item sa menu ay 31 simbolo. ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md index 85cf3d7706fd..412fb901a122 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -Ang function na ito ay eksaktong kapareho ng AddPlayerClass function, kasama ang pagdaragdag ng isang parameter ng koponan. +Ang function na ito ay eksaktong kapareho ng [AddPlayerClass](AddPlayerClass) function, kasama ang pagdaragdag ng isang parameter ng koponan. | 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 1cfdaf40336f..acfcb526a4fa 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 @@ -9,12 +9,12 @@ tags: [] ## Description -Nagdaragdag ng bagong custom na simpleng object model 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 simpleng object model 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 | | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | | virtualworld | Ang virtual world ID para gawing available ang modelo sa. Gamitin ang -1 para sa lahat ng mundo. | -| baseid | Ang batayang object model ID na gagamitin (orihinal na object na gagamitin kapag nabigo ang pag-download). | +| baseid | Ang batayang [object model ID](https://models.open.mp/?cat=objects) na gagamitin (orihinal na object na gagamitin kapag nabigo ang pag-download). | | newid | Ang bagong object model ID ay mula -1000 hanggang -30000 (29000 slots) na gagamitin sa ibang pagkakataon kasama ang CreateObject o CreatePlayerObject. | | dffname | Pangalan ng **.dff** model collision file na matatagpuan sa folder ng server ng mga modelo bilang default (setting ng artpath). | | txdname | Pangalan ng **.txd** model texture file na matatagpuan sa folder ng server ng mga modelo bilang default (setting ng artpath). | @@ -46,7 +46,7 @@ public OnGameModeInit() :::warning -Kasalukuyang walang mga paghihigpit sa kung kailan mo maaaring tawagan ang function na ito, ngunit magkaroon ng kamalayan na kung hindi mo sila tatawagan sa loob ng OnFilterScriptInit/OnGameModeInit, magkakaroon ka ng panganib na ang ilang mga manlalaro, na nasa server na, ay maaaring hindi na-download ang mga modelo. +Kasalukuyang walang mga paghihigpit sa kung kailan mo maaaring tawagan ang function na ito, ngunit magkaroon ng kamalayan na kung hindi mo sila tatawagan sa loob ng [OnFilterScriptInit](../callbacks/OnFilterScriptInit)/[OnGameModeInit](../callbacks/OnGameModeInit), magkakaroon ka ng panganib na ang ilang mga manlalaro, na nasa server na, ay maaaring hindi na-download ang mga 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 8e39d4b3f658..2cc88991c245 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 @@ -9,12 +9,12 @@ tags: [] ## Description -Nagdaragdag ng bagong custom na simpleng object model 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 simpleng object model 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 | | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | | virtualworld | Ang virtual world ID para gawing available ang modelo sa. Gamitin ang -1 para sa lahat ng mundo. | -| baseid | Ang batayang object model ID na gagamitin (orihinal na object na gagamitin kapag nabigo ang pag-download). | +| baseid | Ang batayang [object model ID](https://models.open.mp/?cat=objects) na gagamitin (orihinal na object na gagamitin kapag nabigo ang pag-download). | | newid | Ang bagong object model ID ay mula -1000 hanggang -30000 (29000 slots) na gagamitin sa ibang pagkakataon kasama ang CreateObject o CreatePlayerObject. | | dffname | Pangalan ng **.dff** model collision file na matatagpuan sa folder ng server ng mga modelo bilang default (setting ng artpath). | | txdname | Pangalan ng **.txd** model texture file na matatagpuan sa folder ng server ng mga modelo bilang default (setting ng artpath). | @@ -48,7 +48,7 @@ public OnGameModeInit() :::warning -Kasalukuyang walang mga paghihigpit sa kung kailan mo maaaring tawagan ang function na ito, ngunit magkaroon ng kamalayan na kung hindi mo sila tatawagan sa loob ng OnFilterScriptInit/OnGameModeInit, magkakaroon ka ng panganib na ang ilang mga manlalaro, na nasa server na, ay maaaring hindi na-download ang mga modelo. +Kasalukuyang walang mga paghihigpit sa kung kailan mo maaaring tawagan ang function na ito, ngunit magkaroon ng kamalayan na kung hindi mo sila tatawagan sa loob ng [OnFilterScriptInit](../callbacks/OnFilterScriptInit)/[OnGameModeInit](../callbacks/OnGameModeInit), magkakaroon ka ng panganib na ang ilang mga manlalaro, na nasa server na, ay maaaring hindi na-download ang mga modelo. ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md index 820d4b66fcaf..5ecc1d986fc5 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Description -Nagdaragdag ng 'static' na sasakyan (mga modelo ay paunang na-load para sa mga manlalaro) sa gamemode. Naiiba sa AddStaticVehicle sa isang paraan lamang: nagbibigay-daan sa isang respawn time na itakda kapag ang sasakyan ay naiwang walang tao ng driver. +Nagdaragdag ng 'static' na sasakyan (mga modelo ay paunang na-load para sa mga manlalaro) sa gamemode. Naiiba sa [AddStaticVehicle](AddStaticVehicle) sa isang paraan lamang: nagbibigay-daan sa isang respawn time na itakda kapag ang sasakyan ay naiwang walang tao ng driver. | Name | Description | | ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md index 7ec8298b03b7..53031e3fe50c 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md @@ -40,7 +40,8 @@ AttachObjectToObject(gObjectId, gAttachToId, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1); :::note -Ang parehong object ay kailangang gawin bago subukang ilakip ang mga ito. Walang player-object na bersyon ng function na ito (AttachPlayerObjectToObject), ibig sabihin ay hindi ito susuportahan ng mga streamer. +- Ang parehong object ay kailangang gawin bago subukang ilakip ang mga ito. +- Walang player-object na bersyon ng function na ito (AttachPlayerObjectToObject), ibig sabihin ay hindi ito susuportahan ng mga streamer. ::: 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 993309eca1b2..8297b882bad9 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 **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). +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](BanEx) upang magbigay ng dahilan para sa pagbabawal. Maaaring idagdag/alisin ang mga IP ban gamit ang RCON `banip` at `unbanip` command ([SendRconCommand](SendRconCommand)). | Name | Description | | -------- | ------------------------------ | diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/CancelSelectTextDraw.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/CancelSelectTextDraw.md index 1ba7b6b440fd..5a5e8e4ce671 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/CancelSelectTextDraw.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/CancelSelectTextDraw.md @@ -36,7 +36,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -\*Ang function na ito ay tumatawag sa OnPlayerClickTextDraw na may INVALID_TEXT_DRAW (65535). Ang paggamit ng function na ito sa loob ng OnPlayerClickTextDraw nang hindi nahuhuli ang kasong ito ay magiging sanhi ng mga client na pumunta sa isang walang katapusang loop. +Ang function na ito ay tumatawag sa [OnPlayerClickTextDraw](../callbacks/OnPlayerClickTextDraw) na may INVALID_TEXT_DRAW (65535). Ang paggamit ng function na ito sa loob ng OnPlayerClickTextDraw nang hindi nahuhuli ang kasong ito ay magiging sanhi ng mga client na pumunta sa isang walang katapusang loop. ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehiclePaintjob.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehiclePaintjob.md index 29c47bd14720..a1bffd57c67a 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehiclePaintjob.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehiclePaintjob.md @@ -20,7 +20,11 @@ Ang function na ito ay palaging nagbabalik ng **1** (tagumpay), kahit na ang sas :::warning -Kung itim ang kulay ng sasakyan , maaaring hindi makita ang paintjob. Mas mainam na gawing puti ang sasakyan bago ilapat ang painjob sa pamamagitan ng paggamit ng ChangeVehicleColor(vehicleid,1,1); +Kung itim ang kulay ng sasakyan, maaaring hindi makita ang paintjob. Mas mainam na gawing puti ang sasakyan bago ilapat ang paintjob sa pamamagitan ng paggamit ng: + +```c +ChangeVehicleColor(vehicleid, 1, 1); +``` ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ConnectNPC.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ConnectNPC.md index b6637197041d..149669015067 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ConnectNPC.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ConnectNPC.md @@ -32,7 +32,7 @@ public OnGameModeInit() :::note -Ang mga NPC ay walang mga nametag. Maaaring i-script ang mga ito gamit ang Attach3DTextLabelToPlayer. +Ang mga NPC ay walang mga nametag. Maaaring i-script ang mga ito gamit ang [Attach3DTextLabelToPlayer](Attach3DTextLabelToPlayer). ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/EnableVehicleFriendlyFire.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/EnableVehicleFriendlyFire.md index 688334c2e727..9f72cc9b4ac0 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/EnableVehicleFriendlyFire.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/EnableVehicleFriendlyFire.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Description -Paganahin ang friendly fire para sa mga sasakyan ng team. Hindi masisira ng mga manlalaro ang mga sasakyan ng mga kasamahan sa koponan (Dapat gamitin ang SetPlayerTeam!). +Paganahin ang friendly fire para sa mga sasakyan ng team. Hindi masisira ng mga manlalaro ang mga sasakyan ng mga kasamahan sa koponan (Dapat gamitin ang [SetPlayerTeam](SetPlayerTeam)!). ## Returns 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 f85505f4b857..dd647a65c942 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 @@ -7,7 +7,7 @@ tags: [] ## 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. Isa itong opsyon sa gamemode at dapat itakda sa callback na OnGameModeInit. +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. Isa itong opsyon sa gamemode at dapat itakda sa callback na [OnGameModeInit](../callbacks/OnGameModeInit). | Name | Description | | ------ | ------------------------------------------------------------------------------------------------------------------------------- | diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md index fd7c85c4eda3..3be9f9b74f14 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md @@ -9,13 +9,13 @@ tags: [] ## Description -Maghanap ng umiiral nang custom skin o simple object model file. Ang mga file ng model ay matatagpuan sa folder ng server ng mga `models` bilang default (setting ng artpath). +Maghanap ng umiiral nang custom [skin](AddCharModel) o simple [object](AddSimpleModel) model file. Ang mga file ng model ay matatagpuan sa folder ng server ng mga `models` bilang default (setting ng artpath). -| Name | Description | -| ----------- | -------------------------------------------------------------------------------------------- | -| crc | Ang checksum ng CRC ng custom na file ng model. | -| retstr[] | Isang array kung saan iimbak ang **.dff** file name, na ipinasa sa pamamagitan ng reference. | -| retstr_size | Ang haba ng string na dapat itabi. | +| Name | Description | +| ----------- | -------------------------------------------------------------------------------------------------------- | +| crc | Ang checksum ng [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) ng custom na file ng model. | +| retstr[] | Isang array kung saan iimbak ang **.dff** file name, na ipinasa sa pamamagitan ng reference. | +| retstr_size | Ang haba ng string na dapat itabi. | ## Returns diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md index 28e72e950abe..b2ac6df862de 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md @@ -9,13 +9,13 @@ tags: [] ## Description -Maghanap ng umiiral nang custom skin o simple object texture file. Ang mga file ng model ay matatagpuan sa folder ng server ng mga `models` bilang default (setting ng artpath). +Maghanap ng umiiral nang custom [skin](AddCharModel) o simple [object](AddSimpleModel) texture file. Ang mga file ng model ay matatagpuan sa folder ng server ng mga `models` bilang default (setting ng artpath). -| Name | Description | -| ----------- | -------------------------------------------------------------------------------------------- | -| crc | Ang checksum ng CRC ng custom na file ng model. | -| retstr[] | Isang array kung saan iimbak ang **.txd** file name, na ipinasa sa pamamagitan ng reference. | -| retstr_size | Ang haba ng string na dapat itabi. | +| Name | Description | +| ----------- | -------------------------------------------------------------------------------------------------------- | +| crc | Ang checksum ng [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) ng custom na file ng model. | +| retstr[] | Isang array kung saan iimbak ang **.txd** file name, na ipinasa sa pamamagitan ng reference. | +| retstr_size | Ang haba ng string na dapat itabi. | ## Returns diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/GetGravity.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/GetGravity.md index 7d0f1b03733e..26c6e50126ac 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/GetGravity.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/GetGravity.md @@ -7,7 +7,7 @@ tags: [] ## Description -Kunin ang kasalukuyang naka set na gravity. +Kunin ang kasalukuyang naka set na [gravity](SetGravity). ## Examples diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerScore.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerScore.md index 0e859b58b43b..a16496897c70 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerScore.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerScore.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -Ni-rereturn ng function na ito ang score ng isang player gaya ng pagkakatakda nito gamit ang SetPlayerScore. +Ni-rereturn ng function na ito ang score ng isang player gaya ng pagkakatakda nito gamit ang [SetPlayerScore](SetPlayerScore). | Name | Description | | -------- | ------------------------------- | diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md index e7b9a8ab2832..e25d927b8993 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md @@ -43,7 +43,7 @@ public OnPlayerEnterVehicle(playerid, vehicleid, ispassanger) :::tip -- Maaari mong gamitin ang GetPlayerVehicleSeat sa isang loop upang tingnan kung ang isang upuan ay inookupahan ng sinumang manlalaro. +- Maaari mong gamitin ang [GetPlayerVehicleSeat](GetPlayerVehicleSeat) sa isang loop upang tingnan kung ang isang upuan ay inookupahan ng sinumang manlalaro. ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md index 2ce10b72e257..5a573434e354 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md @@ -33,7 +33,7 @@ public OnPlayerSpawn(playerid) :::note -- Ang mga manlalaro ay hindi maaaring makapinsala/makapatay ng mga manlalaro sa parehong koponan maliban kung gagamit sila ng kutsilyo upang laslasin ang kanilang lalamunan. Sa SA-MP 0.3x, ang mga manlalaro ay hindi rin makakasira ng mga sasakyang minamaneho ng isang manlalaro mula sa parehong koponan. Maaari itong paganahin sa EnableVehicleFriendlyFire. +- Ang mga manlalaro ay hindi maaaring makapinsala/makapatay ng mga manlalaro sa parehong koponan maliban kung gagamit sila ng kutsilyo upang laslasin ang kanilang lalamunan. Sa SA-MP 0.3x, ang mga manlalaro ay hindi rin makakasira ng mga sasakyang minamaneho ng isang manlalaro mula sa parehong koponan. Maaari itong paganahin sa [EnableVehicleFriendlyFire](EnableVehicleFriendlyFire). - Ang 255 (o NO_TEAM) ay ang default na koponan na makakapag-shoot ng iba pang mga manlalaro, hindi 0. ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md index 1a4921a4a4bd..7b5779e1b098 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md @@ -36,7 +36,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -Kung pinagana ang TogglePlayerClock, dahan-dahang magbabago ang panahon sa paglipas ng panahon, sa halip na agad na magbago. Mayroon lamang valid na 21 weather ID sa laro (0 - 20), gayunpaman ang laro ay walang anumang anyo ng range check. +- Kung pinagana ang TogglePlayerClock, dahan-dahang magbabago ang panahon sa paglipas ng panahon, sa halip na agad na magbago. +- Mayroon lamang valid na 21 weather ID sa laro (0 - 20), gayunpaman ang laro ay walang anumang anyo ng range check. ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md index 001e313681fe..caa68d439b0d 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md @@ -31,7 +31,8 @@ if (!strcmp(cmdtext, "/sandstorm", true)) :::note -Kung pinagana ang TogglePlayerClock, dahan-dahang magbabago ang panahon sa paglipas ng panahon, sa halip na agad na magbago. Mayroon lamang valid na 21 weather ID sa laro (0 - 20), gayunpaman ang laro ay walang anumang anyo ng range check. +- Kung pinagana ang TogglePlayerClock, dahan-dahang magbabago ang panahon sa paglipas ng panahon, sa halip na agad na magbago. +- Mayroon lamang valid na 21 weather ID sa laro (0 - 20), gayunpaman ang laro ay walang anumang anyo ng range check. ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ShowNameTags.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ShowNameTags.md index bb6f23938da2..f3dfb7b5b184 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ShowNameTags.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ShowNameTags.md @@ -32,7 +32,7 @@ public OnGameModeInit() :::warning -Magagamit lang ang function na ito sa OnGameModeInit. Para sa ibang pagkakataon, tingnan ang ShowPlayerNameTagForPlayer. +Magagamit lang ang function na ito sa [OnGameModeInit](../callbacks/OnGameModeInit). Para sa ibang pagkakataon, tingnan ang ShowPlayerNameTagForPlayer. ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md index c5b0d155c1c0..c248e153690a 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md @@ -7,7 +7,7 @@ tags: ["math", "floating-point"] ## Description -Ibinabalik ng function na ito ang absolute value ng float. +Ibinabalik ng function na ito ang [absolute value](https://en.wikipedia.org/wiki/Absolute_value) ng float. | Name | Description | | ----------- | -------------------------------------------------- | diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md index 573cbae670d6..7fbff84b4834 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md @@ -7,7 +7,7 @@ tags: ["math", "floating-point"] ## Description -Kunin ang cosine mula sa isang naibigay na anggulo. Ang input angle ay maaaring nasa radians, degrees o grades. +Kunin ang [cosine](https://en.wikipedia.org/wiki/Sine_and_cosine) mula sa isang naibigay na anggulo. Ang input angle ay maaaring nasa radians, degrees o grades. | Name | Description | | ----------- | ------------------------------------------------------------------------------------- | @@ -33,7 +33,8 @@ public OnGameModeInit() :::warning -Gumagamit ang GTA/SA-MP ng mga **degree** para sa mga anggulo sa karamihan ng mga pangyayari, halimbawa [GetPlayerFacingAngle](GetPlayerFacingAngle). Samakatuwid, malamang na gugustuhin mong gamitin ang '**degrees**' angle mode, _hindi_ radians. Tandaan din na ang mga anggulo sa GTA ay counterclockwise; 270° ay Silangan at 90° ay Kanluran. Ang timog ay 180° pa rin at ang Hilaga ay 0°/360° pa rin. +- Gumagamit ang GTA/SA-MP ng mga **degree** para sa mga anggulo sa karamihan ng mga pangyayari, halimbawa [GetPlayerFacingAngle](GetPlayerFacingAngle). Samakatuwid, malamang na gugustuhin mong gamitin ang '**degrees**' angle mode, _hindi_ radians. +- Tandaan din na ang mga anggulo sa GTA ay counterclockwise; 270° ay Silangan at 90° ay Kanluran. Ang timog ay 180° pa rin at ang Hilaga ay 0°/360° pa rin. ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md index cbc34ac6c564..424beca9aa27 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md @@ -7,7 +7,7 @@ tags: ["math", "floating-point"] ## Description -Binibigyang-daan ka ng function na ito na makuha ang logarithm ng isang float value. +Binibigyang-daan ka ng function na ito na makuha ang [logarithm](https://en.wikipedia.org/wiki/Logarithm) ng isang float value. | Name | Description | | ----------- | ------------------------------------------- | diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md index ad0143b34b8d..abf233a56c64 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md @@ -6,7 +6,7 @@ description: fichier de configuration du client SA-MP. ## Description -`sa-mp.cfg` est un fichier de configuration du client qui vous permet de modifier les paramètres liés à SA-MP. Ce fichier se trouve dans le dossier 'Mes documents\\Fichiers utilisateur de GTA San Andreas\\SAMP', sous votre compte utilisateur Windows. Ce fichier peut être édité avec un éditeur de texte tel que le bloc-notes. +sa-mp.cfg est un fichier de configuration du client qui vous permet de modifier les paramètres liés à SA-MP. Ce fichier se trouve dans le dossier `Mes documents\Fichiers utilisateur de GTA San Andreas\SAMP`, sous votre compte utilisateur Windows. Ce fichier peut être édité avec un éditeur de texte tel que le bloc-notes. ## Options diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md index cb108e546076..8ea6d17c0d57 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md @@ -44,9 +44,8 @@ public OnClientCheckResponse(playerid, actionid, memaddr, retndata) :::warning -**Serveur SA:MP**: Ce rappel est uniquement appelé lorsqu'il est dans un filterscript.. - -**Serveur Open Multiplayer**: Ce rappel fonctionne normalement dans un gamemode / filterscript. +- **Serveur SA-MP**: Ce rappel est uniquement appelé lorsqu'il est dans un filterscript.. +- **Serveur open.mp**: Ce rappel fonctionne normalement dans un gamemode / filterscript. ::: 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 5cf3bdb94054..b76e2aeaf748 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 @@ -27,8 +27,8 @@ public OnGameModeExit() :::tip -- Cette fonction peut également être utilisée dans un filterscript pour détecter si le gamemode change avec les commandes RCON comme changemode ou gmx, car le changement de gamemode ne recharge pas un filterscript. -- Lorsque vous utilisez OnGameModeExit en conjonction avec la commande de console 'rcon gmx', gardez à l'esprit qu'il y a un risque que des bugs se produisent, par exemple avec les callbacks RemoveBuildingForPlayer excessifs pendant OnGameModeInit qui pourraient faire crash le joueur. +- Cette fonction peut également être utilisée dans un filterscript pour détecter si le gamemode change avec les [commandes RCON](../../server/ControllingServer#commandes-rcon) comme changemode ou gmx, car le changement de gamemode ne recharge pas un filterscript. +- Lorsque vous utilisez OnGameModeExit en conjonction avec la commande de console 'rcon gmx', gardez à l'esprit qu'il y a un risque que des bugs se produisent, par exemple avec les callbacks RemoveBuildingForPlayer excessifs pendant [OnGameModeInit](OnGameModeInit) qui pourraient faire crash le joueur. - Cette callback ne sera PAS appelée si le serveur crash ou si le processus est fermé par d'autres moyens. ::: 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 21dfa6a1ad9b..f8ada3df3484 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 @@ -27,7 +27,7 @@ public OnGameModeInit() :::tip -Cette fonction peut aussi être utilisée dans un filterscript pour détecter si le gamemode a changé avec des commandes RCON comme changemode ou gmx, puisque changer de gamemode ne recharge pas les filterscripts. +Cette fonction peut aussi être utilisée dans un filterscript pour détecter si le gamemode a changé avec des [commandes RCON](../../server/ControllingServer#commandes-rcon) comme changemode ou gmx, puisque changer de gamemode ne recharge pas les filterscripts. ::: diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md index 721fb8660b0a..bc0c42c5a027 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md @@ -35,9 +35,8 @@ public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) :::note -Cette callback n'est appelée que quand le joueur place un point sur la carte, pas nécessairement quand il a fait un clic droit. - -Le `float` Z retournera une valeur de 0 (invalide) si le point du joueur est trop loin sur la carte du joueur lui-même. Utilisez le plugin MapAndreas ou ColAndreas pour résorber cette difficulté. +- Cette callback n'est appelée que quand le joueur place un point sur la carte, pas nécessairement quand il a fait un clic droit. +- Le `float` Z retournera une valeur de 0 (invalide) si le point du joueur est trop loin sur la carte du joueur lui-même. Utilisez le plugin [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) ou [ColAndreas](https://github.com/Pottus/ColAndreas) pour résorber cette difficulté. ::: diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md index 3da969ec96ff..345aa2625490 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md @@ -69,7 +69,7 @@ public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) :::warning -Quand un joueur quitte le textdraw sélectionné avec ECHAP, OnPlayerClickTextDraw est appelé avec le textdraw ID `INVALID_TEXT_DRAW`. OnPlayerClickPlayerTextDraw ne sera pas appelé. +Quand un joueur quitte le textdraw sélectionné avec ECHAP, [OnPlayerClickTextDraw](OnPlayerClickTextDraw) est appelé avec le textdraw ID `INVALID_TEXT_DRAW`. OnPlayerClickPlayerTextDraw ne sera pas appelé. ::: diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md index e639ad1565b6..eae47d06d378 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md @@ -64,9 +64,8 @@ public OnPlayerClickTextDraw(playerid, Text:clickedid) :::warning -La zone cliquable est définie par TextDrawTextSize. Les paramètres x et y ne doivent pas retourner une valeur de 0 ou une valeur négative. - -N'utilisez pas CancelSelectTextDraw sans condition dans cette callback. Il en résulterait une loop infinie. +- La zone cliquable est définie par TextDrawTextSize. Les paramètres x et y ne doivent pas retourner une valeur de 0 ou une valeur négative. +- N'utilisez pas CancelSelectTextDraw sans condition dans cette callback. Il en résulterait une loop infinie. ::: 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 d58630d47bb2..1a3120c605d2 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 @@ -35,9 +35,8 @@ public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) :::note -Cette callback est appelée quand le joueur **COMMENCE** à entrer dans un véhicule, pas quand il effectivement dedans _(v. [OnPlayerStateChange](OnPlayerStateChange))_. - -OnPlayerEnterVehicle est quand même appelé si le joueur est interdit d'entrer dans le véhicule _(par exemple si celui-ci est verrouillé)_. +- Cette callback est appelée quand le joueur **COMMENCE** à entrer dans un véhicule, pas quand il effectivement dedans _(v. [OnPlayerStateChange](OnPlayerStateChange))_. +- OnPlayerEnterVehicle est quand même appelé si le joueur est interdit d'entrer dans le véhicule _(par exemple si celui-ci est verrouillé)_. ::: 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 529001864db5..9418925aa817 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 @@ -34,9 +34,8 @@ public OnPlayerExitVehicle(playerid, vehicleid) :::warning -Cette callback n'est pas appelée en cas de chute d'une moto ou si le joueur est sorti du véhicule par un autre moyen que la touche F, par exemple avec SetPlayerPos. - -Il faudra utiliser [OnPlayerStateChange](OnPlayerStateChange) et vérifier si l'ancien état du joueur est `PLAYER_STATE_DRIVER` ou `PLAYER_STATE_PASSENGER` et que son nouvel état est `PLAYER_STATE_ONFOOT`. +- Cette callback n'est pas appelée en cas de chute d'une moto ou si le joueur est sorti du véhicule par un autre moyen que la touche F, par exemple avec SetPlayerPos. +- Il faudra utiliser [OnPlayerStateChange](OnPlayerStateChange) et vérifier si l'ancien état du joueur est `PLAYER_STATE_DRIVER` ou `PLAYER_STATE_PASSENGER` et que son nouvel état est `PLAYER_STATE_ONFOOT`. ::: 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 3c7082302ec4..a61b4c112a54 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 @@ -37,7 +37,7 @@ public OnPlayerRequestSpawn(playerid) :::tip -Pour éviter que les joueurs spawn avec une certaine classe, la classe dernièrement vue doit être sauvegardée dans une variable dans OnPlayerRequestClass. +Pour éviter que les joueurs spawn avec une certaine classe, la classe dernièrement vue doit être sauvegardée dans une variable dans [OnPlayerRequestClass](OnPlayerRequestClass). ::: 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 244349d9a4cb..889fa8f59a2a 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 @@ -7,7 +7,7 @@ tags: ["player"] ## Paramètres -Cette callback est appelée lorsqu'un joueur change d'état _(à pied, dans un véhicule, en mode spectateur, etc...)_. +Cette callback est appelée lorsqu'un joueur change d'[état](../resources/playerstates) _(à pied, dans un véhicule, en mode spectateur, etc...)_. | Nom | Description | | -------------- | ---------------------------------- | @@ -15,8 +15,6 @@ Cette callback est appelée lorsqu'un joueur change d'état _(à pied, dans un v | `int` newstate | Le nouvel état du joueur | | `int` oldstate | L'ancien état du joueur. | -Voir ["Player States"](../resources/playerstates) pour une liste complète de tous les états d'un joueur. - ## Valeur de retour 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. 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 45c1b97f0be5..4644a8031035 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 @@ -13,7 +13,7 @@ Cette callback est appelée **seulement** quand un véhicule **re**spawn ! [Crea ## Paramètres -description: Cette callback est appelée lorsqu'un véhicule respawn _(réapparaît)_. +description: Cette callback est appelée lorsqu'un véhicule **re**spawn _(réapparaît)_. | Nom | Description | | --------------- | ------------------------------ | 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 bc101f8353ac..f4f3ea5a20f8 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 @@ -45,7 +45,7 @@ public OnGameModeInit() :::warning -Il n'y a actuellement aucune restriction sur le moment où vous pouvez appeler cette fonction, mais sachez que si vous ne les appelez pas dans OnFilterScriptInit/OnGameModeInit, vous courez le risque que certains joueurs, qui sont déjà sur le serveur, n'aient pas téléchargé les modèles. +Il n'y a actuellement aucune restriction sur le moment où vous pouvez appeler cette fonction, mais sachez que si vous ne les appelez pas dans [OnFilterScriptInit](../callbacks/OnFilterScriptInit)/[OnGameModeInit](../callbacks/OnGameModeInit), vous courez le risque que certains joueurs, qui sont déjà sur le serveur, n'aient pas téléchargé les modèles. ::: diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md index 155d47d24499..84412267e75b 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md @@ -42,7 +42,10 @@ Crash lors de la transmission d'un ID de menu non valide. :::note -Vous ne pouvez avoir que 12 éléments par menu (le 13e va à droite de l'en-tête du nom de la colonne (en couleur), le 14e et les suivants ne s'affichent pas du tout). Vous ne pouvez utiliser que 2 colonnes (0 et 1). Vous ne pouvez ajouter que 8 codes de couleur par article (`~r~`, `~g~` etc.). La longueur maximale de l'élément de menu est de 31 symboles. +- Vous ne pouvez avoir que 12 éléments par menu (le 13e va à droite de l'en-tête du nom de la colonne (en couleur), le 14e et les suivants ne s'affichent pas du tout). +- Vous ne pouvez utiliser que 2 colonnes (0 et 1). +- Vous ne pouvez ajouter que 8 codes de couleur par article (`~r~`, `~g~` etc.). +- La longueur maximale de l'élément de menu est de 31 symboles. ::: diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md index 66cb158ebbdb..b566cb44ee50 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md @@ -7,7 +7,7 @@ tags: ["player"] ## Description -Cette fonction est exactement la même que la fonction AddPlayerClass, avec l'ajout d'un paramètre d'équipe. +Cette fonction est exactement la même que la fonction [AddPlayerClass](AddPlayerClass), avec l'ajout d'un paramètre d'équipe. | Nom | Description | | ------------- | ------------------------------------------------------------- | diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md index 9f6dd5d5cbcd..8f0dfe37ee48 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md @@ -8,12 +8,12 @@ tags: [] ## Description -Ajoute un nouveau modèle d'objet simple 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 d'objet simple 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 | | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | | virtualworld | L'identifiant du monde virtuel sur lequel rendre le modèle disponible. Utilisez -1 pour tous les mondes. | -| baseid | ID de modèle d'objet de base à utiliser (objet d'origine à utiliser lorsque le téléchargement échoue). | +| baseid | [ID de modèle d'objet](https://models.open.mp/?cat=objects) de base à utiliser (objet d'origine à utiliser lorsque le téléchargement échoue). | | newid | Le nouvel ID de modèle d'objet allait de -1000 à -30000 (29000 emplacements) pour être utilisé ultérieurement avec CreateObject ou CreatePlayerObject. | | dffname | Nom du fichier de collision de modèles **.dff** situé dans le dossier du serveur de modèles par défaut (paramètre artpath). | | txdname | Nom du fichier de texture de modèle **.txd** situé dans le dossier du serveur de modèles par défaut (paramètre artpath). | @@ -45,7 +45,7 @@ public OnGameModeInit() :::warning -Il n'y a actuellement aucune restriction sur le moment où vous pouvez appeler cette fonction, mais sachez que si vous ne les appelez pas dans OnFilterScriptInit/OnGameModeInit, vous courez le risque que certains joueurs, qui sont déjà sur le serveur, n'aient pas téléchargé les modèles. +Il n'y a actuellement aucune restriction sur le moment où vous pouvez appeler cette fonction, mais sachez que si vous ne les appelez pas dans [OnFilterScriptInit](../callbacks/OnFilterScriptInit)/[OnGameModeInit](../callbacks/OnGameModeInit), vous courez le risque que certains joueurs, qui sont déjà sur le serveur, n'aient pas téléchargé les modèles. ::: 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 03744a00a0a1..5bd8b2dadd40 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 @@ -7,7 +7,7 @@ tags: [] ## Leírás -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. +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](../functions/GameModeExit)-en keresztül. ## Példák @@ -29,7 +29,7 @@ Ezt a funckiót filterszkriptben arra is lehet használni, hogy érzékelje a `c :::warning -- Ha az OnGameModeExit parancsot az 'rcon gmx' konzolparanccsal együtt van használva, ne feledd, hogy előfordulhatnak hibák. Példa erre a túlzott RemoveBuildingForPlayer hívása az OnGameModeInit alatt, ami az kliens összeomlásához vezethet. +- Ha az OnGameModeExit parancsot az 'rcon gmx' konzolparanccsal együtt van használva, ne feledd, hogy előfordulhatnak hibák. Példa erre a túlzott RemoveBuildingForPlayer hívása az [OnGameModeInit](OnGameModeInit) alatt, ami az kliens összeomlásához vezethet. - Ezt a visszahívást NEM hívja meg, ha a kliens összeomlik, vagy a folyamatot más módon leállítják, például a Linux kill parancsával. ::: diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md index 79ac68349103..883eb4527171 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md @@ -29,8 +29,8 @@ public OnGameModeExit() :::tip -- Fungsi ini juga dapat digunakan dalam sebuah filterscript untuk mendeteksi apakah sebuah gamemode berubah dengan perintah RCON seperti changemode atau gmx, sebagaimana gamemode tidak dapat memuat ulang filterscript. -- Ketika menggunakan OnGameModeExit sehubungan dengan perintah konsol 'rcon gmx' perlu diingat akan ada potensi client bugs terjadi seperti contoh panggilan RemoveBuildingForPlayer yang berlebihan selama OnGameModeInit yang dapat mengakibatkan crash pada client. +- Fungsi ini juga dapat digunakan dalam sebuah filterscript untuk mendeteksi apakah sebuah gamemode berubah dengan [perintah RCON](../../server/ControllingServer#perintah-rcon) seperti changemode atau gmx, sebagaimana gamemode tidak dapat memuat ulang filterscript. +- Ketika menggunakan OnGameModeExit sehubungan dengan perintah konsol 'rcon gmx' perlu diingat akan ada potensi client bugs terjadi seperti contoh panggilan RemoveBuildingForPlayer yang berlebihan selama [OnGameModeInit](OnGameModeInit) yang dapat mengakibatkan crash pada client. - Callback ini TIDAK akan dipanggil apabila server crash atau prosesnya dimatikan dengan cara lain, seperti menggunakan perintah kill di linux. ::: diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md index 4bad349cb4ff..30d531099b04 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md @@ -29,7 +29,7 @@ public OnGameModeInit() :::tip -Fungsi ini dapat digunakan dalam sebuah filterscript untuk mendeteksi apakah sebuah gamemode berubah dengan perintah RCON seperti changemode atau gmx, sebagaimana gamemode tidak dapat memuat ulang filterscript. +Fungsi ini dapat digunakan dalam sebuah filterscript untuk mendeteksi apakah sebuah gamemode berubah dengan [perintah RCON](../../server/ControllingServer#perintah-rcon) seperti changemode atau gmx, sebagaimana gamemode tidak dapat memuat ulang filterscript. ::: diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md index 710a68d68468..b2eb7ac0e554 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md @@ -7,7 +7,7 @@ tags: [] ## Deskripsi -Callback ini akan terpanggil ketika sebuah object berpindah setelah MoveObject (ketika selesai bergerak). +Callback ini akan terpanggil ketika sebuah object berpindah setelah [MoveObject](../functions/MoveObject) (ketika selesai bergerak). | Nama | Deskripsi | | -------- | -------------------------------------- | diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md index f8e8ac73b9ae..2732013904c7 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md @@ -38,7 +38,7 @@ public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) :::note -Nilai Z akan berubah menjadi 0 (invalid) jika sangat jauh dari pemain, gunakan MapAndreas plugin untuk mendapatkan koordinat Z yang akurat. +Nilai Z akan berubah menjadi 0 (invalid) jika sangat jauh dari pemain, gunakan [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) plugin untuk mendapatkan koordinat Z yang akurat. ::: diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md index b350835efc15..de67aaf9fbdf 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md @@ -7,7 +7,7 @@ tags: ["player", "textdraw", "playertextdraw"] ## Deskripsi -Callback ini terpanggil ketika pemain mengklik sebuah player-textdraw. Ini tidak akan terpanggil ketika player membatalkan mode 'select' (ESC) - tetapi pengecualian untuk OnPlayerClickTextDraw. +Callback ini terpanggil ketika pemain mengklik sebuah player-textdraw. Ini tidak akan terpanggil ketika player membatalkan mode 'select' (ESC) - tetapi pengecualian untuk [OnPlayerClickTextDraw](OnPlayerClickTextDraw). | Nama | Deskripsi | | ------------ | ---------------------------------------- | @@ -69,7 +69,7 @@ public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) :::warning -Ketika player menekan ESC untuk membatalkan pemilihan textdraw, OnPlayerClickTextDraw akan dipanggil dengan ID textraw yang menjadi 'INVALID_TEXT_DRAW'. OnPlayerClickPlayerTextDraw tentu tidak akan terpanggil. +Ketika player menekan ESC untuk membatalkan pemilihan textdraw, [OnPlayerClickTextDraw](OnPlayerClickTextDraw) akan dipanggil dengan ID textraw yang menjadi 'INVALID_TEXT_DRAW'. OnPlayerClickPlayerTextDraw tentu tidak akan terpanggil. ::: diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md index fe3ebd87574b..f6b0cc8ac931 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md @@ -64,7 +64,8 @@ public OnPlayerClickTextDraw(playerid, Text:clickedid) :::warning -Area yang dapat diklik ditentukan oleh TextDrawTextSize. parameter x dan y yang diteruskan ke fungsi tersbut tidak boleh nol atau negatif. Jangan pernah gunakan CancelSelectextDraw tanpa pengecekan dalam callback ini. Kemungkinan pengulangan tak terbatas bisa terjadi. +- Area yang dapat diklik ditentukan oleh TextDrawTextSize. parameter x dan y yang diteruskan ke fungsi tersbut tidak boleh nol atau negatif. +- Jangan pernah gunakan CancelSelectextDraw tanpa pengecekan dalam callback ini. Kemungkinan pengulangan tak terbatas bisa terjadi. ::: diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md index a04676c2d637..b9601c1ee13e 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md @@ -13,7 +13,7 @@ Callback ini akan terpanggil ketika pemain mati, entah itu dengan bunuh diri ata | ------------- | ------------------------------------------------------------------------------------- | | playerid | ID dari pemain yang mati. | | killerid | ID dari pemain yang membunuh pemain yang mati, atau INVALID_PLAYER_ID jika tidak ada. | -| WEAPON:reason | ID dari alasan untuk kematian pemain. | +| WEAPON:reason | ID dari [alasan](../resources/weaponids) untuk kematian pemain. | ## Returns 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 cf89158bcb69..3f7d269c2802 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 @@ -37,7 +37,8 @@ public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) :::note -Callback ini di panggil ketika PEMAIN **mulai** memasuki kendaraan, bukan ketika pemain TELAH memasukinya. Lihat OnPlayerStateChange. Callback ini tetap dipanggil jika pemain di tolak masuk ke kendaraan (misalnya terkunci atau penuh). +- Callback ini di panggil ketika PEMAIN **mulai** memasuki kendaraan, bukan ketika pemain TELAH memasukinya. Lihat [OnPlayerStateChange](OnPlayerStateChange). +- Callback ini tetap dipanggil jika pemain di tolak masuk ke kendaraan (misalnya terkunci atau penuh). ::: diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md index b085af2425ae..00477d3357b3 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md @@ -34,7 +34,8 @@ public OnPlayerExitVehicle(playerid, vehicleid) :::warning -Tidak di panggil jika pemain jatuh dari sepeda atau dikeluarkan dari kendaraan dengan cara lain seperti menggunakan SetPlayerPos. Anda harus menggunakan OnPlayerStateChange dan memeriksa apakah status lama mereka adalah PLAYER_STATE_DRIVER atau PLAYER_STATE_PASSENGER dan status baru mereka adalah PLAYER_STATE_ONFOOT. +- Tidak di panggil jika pemain jatuh dari sepeda atau dikeluarkan dari kendaraan dengan cara lain seperti menggunakan SetPlayerPos. +- Anda harus menggunakan [OnPlayerStateChange](OnPlayerStateChange) dan memeriksa apakah status lama mereka adalah PLAYER_STATE_DRIVER atau PLAYER_STATE_PASSENGER dan status baru mereka adalah PLAYER_STATE_ONFOOT. ::: diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md index a9a5971a4879..fde8690050e1 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md @@ -7,12 +7,12 @@ tags: ["player"] ## Deskripsi -Callback ini dipanggil ketika pemain mengambil pickup yang dibuat dengan CreatePickup. +Callback ini dipanggil ketika pemain mengambil pickup yang dibuat dengan [CreatePickup](../functions/CreatePickup). -| Nama | Deskripsi | -| -------- | ------------------------------------------ | -| playerid | ID pemain yang mengambil pickup. | -| pickupid | ID pickup, dikembalikan oleh CreatePickup. | +| Nama | Deskripsi | +| -------- | ----------------------------------------------------------------------- | +| playerid | ID pemain yang mengambil pickup. | +| pickupid | ID pickup, dikembalikan oleh [CreatePickup](../functions/CreatePickup). | ## Returns diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md index 51450e74e1d3..b5b7b27d4259 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md @@ -7,7 +7,7 @@ tags: ["player"] ## Deskripsi -Callback ini akan terpanggil ketika pemain melakukan perubahan status. (misalnya saat player yang sedang mengendarai) +Callback ini akan terpanggil ketika pemain melakukan perubahan [status](../resources/playerstates). (misalnya saat player yang sedang mengendarai) | Nama | Deskripsi | | -------- | ----------------------------------------------- | @@ -15,8 +15,6 @@ Callback ini akan terpanggil ketika pemain melakukan perubahan status. (misalnya | newstate | Status baru dari player. | | oldstate | Status lama dari player. | -Pergi ke [Player States](../resources/playerstates) untuk list semua variable player state. - ## Returns Selalu terpanggil pertama di filterscripts. diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md index 233b6647d776..b915e1595f0b 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md @@ -9,13 +9,13 @@ tags: ["player"] Callback ini terpanggil ketika pemain menerima damage. -| Nama | Deskripsi | -| --------------- | ------------------------------------------------------------------------- | -| playerid | ID dari pemain yang mendapatkan damage. | -| issuerid | ID dari pemain yang memberikan damage. INVALID_PLAYER_ID jika bunuh diri. | -| Float:amount | Jumlah damage yang diterima (darah and armour dikombinasikan). | -| WEAPON:weaponid | ID dari senjata atau alasan yang digunakan untuk memberi damage. | -| bodypart | Bagian tubuh yang terkena. | +| Nama | Deskripsi | +| --------------- | ------------------------------------------------------------------------------------------ | +| playerid | ID dari pemain yang mendapatkan damage. | +| issuerid | ID dari pemain yang memberikan damage. INVALID_PLAYER_ID jika bunuh diri. | +| Float:amount | Jumlah damage yang diterima (darah and armour dikombinasikan). | +| WEAPON:weaponid | ID dari [senjata atau alasan](../resources/weaponids) yang digunakan untuk memberi damage. | +| bodypart | Bagian tubuh yang terkena. | ## Returns diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md index 5fe9c76c67d0..d83c0074bb55 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md @@ -43,10 +43,10 @@ public OnPlayerWeaponShot(playerid, WEAPON:weaponid, BULLET_HIT_TYPE:hittype, hi :::note -Callback ini hanya di panggil ketika kompensasi lag **diaktifkan**. Jika **tipe hit** adalah: - -- `BULLET_HIT_TYPE_NONE`: parameter **fX**, **fY** dan **fZ** adalah koordinat normal, akan memberikan 0.0 untuk koordinat jika tidak ada yang terkena (misalnya objek jauh yang tidak dapat dijangkau oleh peluru); -- Others: **fX**, **fY** dan **fZ** adalah offset relatif kepada **hitid**. +- Callback ini hanya di panggil ketika [kompensasi lag](../../server/LagCompensation) **diaktifkan**. +- Jika **tipe hit** adalah: + - `BULLET_HIT_TYPE_NONE`: parameter **fX**, **fY** dan **fZ** adalah koordinat normal, akan memberikan 0.0 untuk koordinat jika tidak ada yang terkena (misalnya objek jauh yang tidak dapat dijangkau oleh peluru); + - Others: **fX**, **fY** dan **fZ** adalah offset relatif kepada **hitid**. ::: 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 d5b04ca3abd4..eee17990d7cf 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 @@ -11,12 +11,12 @@ tags: [] 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 | -| ------- | ------------------------------------------------------------------------------------------------------------------------ | -| baseid | Model ID skin dasar yang ingin digunakan (sifat dari karakter & original karakter untuk dipakai setelah download gagal). | -| newid | Model ID skin baru dari jangkauan 20000 sampai 30000 (10000 slot) untuk digunakan nanti bersamaan dengan SetPlayerSkin | -| dffname | Nama file model collision file **.dff** didalam folder `models` server secara default (setting artpath). | -| txdname | Nama file model texture file **.txd** didalam folder `models` server secara default (setting artpath). | +| Nama | Deskripsi | +| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | +| baseid | Model ID skin dasar yang ingin digunakan (sifat dari karakter & original karakter untuk dipakai setelah download gagal). | +| newid | Model ID skin baru dari jangkauan 20000 sampai 30000 (10000 slot) untuk digunakan nanti bersamaan dengan SetPlayerSkin | +| dffname | Nama file model collision file **.dff** didalam folder `models` server secara default (setting [artpath](../../server/server.cfg#model-kustom)). | +| txdname | Nama file model texture file **.txd** didalam folder `models` server secara default (setting [artpath](../../server/server.cfg#model-kustom)). | ## Returns @@ -39,13 +39,13 @@ public OnGameModeInit() :::note -**useartwork** harus diaktifkan terlebih dahulu di server settings agar fungsi ini berfungsi. +**useartwork** harus diaktifkan terlebih dahulu di [server settings](../../server/server.cfg#model-kustom) agar fungsi ini berfungsi. ::: :::warning -Saat ini tidak ada batasan kapan Anda dapat memanggil fungsi ini, tetapi perhatikan bahwa jika Anda tidak memanggilnya di dalam OnFilterScriptInit/OnGameModeInit, anda bisa membuat player lain beresiko, dimana sudah didalam server, tidak bisa mendownload models. +Saat ini tidak ada batasan kapan Anda dapat memanggil fungsi ini, tetapi perhatikan bahwa jika Anda tidak memanggilnya di dalam [OnFilterScriptInit](../callbacks/OnFilterScriptInit)/[OnGameModeInit](../callbacks/OnGameModeInit), anda bisa membuat player lain beresiko, dimana sudah didalam server, tidak bisa mendownload models. ::: diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md index 8598ec25927c..a1e1b0fe338b 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModel.md @@ -9,15 +9,15 @@ tags: [] ## Description -Menambahkan model simpel kustom objek diunggah. Model file bawaanya terletak pada folder `Documents\GTA San Andreas User Files\SAMP\cache` milik player bernama IP dan PORT dalam bentuk nama CRC. +Menambahkan model simpel kustom objek diunggah. Model file bawaanya terletak pada folder `Documents\GTA San Andreas User Files\SAMP\cache` milik player bernama IP dan PORT dalam bentuk nama [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check). -| Name | Description | -| ------------ | ----------------------------------------------------------------------------------------------------------------------------- | -| virtualworld | Virtual world ID untuk membuat model tersedia. Gunakan -1 untuk semua world. | -| baseid | Basis object model ID untuk digunakan (object original akan digunakan jika download gagal). | -| newid | Object model ID baru berkisar dari -1000 ke -30000 (29000 slots) digunakan nanti dengan CreateObject atau Create PlayerObject | -| dffname | Nama dari **.dff** model file collision berlokasi di `models` server folder secara bawaan (artpath setting). | -| txdname | Nama dari **.txd** model tekstur file berlokasi di `models` server secara bawaan (artpath setting). | +| Name | Description | +| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- | +| virtualworld | Virtual world ID untuk membuat model tersedia. Gunakan -1 untuk semua world. | +| baseid | Basis [object model ID](https://models.open.mp/?cat=objects) untuk digunakan (object original akan digunakan jika download gagal). | +| newid | Object model ID baru berkisar dari -1000 ke -30000 (29000 slots) digunakan nanti dengan CreateObject atau Create PlayerObject | +| dffname | Nama dari **.dff** model file collision berlokasi di `models` server folder secara bawaan ([artpath setting](../../server/server.cfg#model-kustom)). | +| txdname | Nama dari **.txd** model tekstur file berlokasi di `models` server secara bawaan ([artpath setting](../../server/server.cfg#model-kustom)). | ## Returns @@ -39,13 +39,14 @@ public OnGameModeInit() :::note -**useartwork** harus diaktifkan terlebih dahulu dalam pengaturan server agar dapat berfungsi ketika `virtualworld` diatur, model akan didownload setelah player memasuki world tertentu +- **useartwork** harus diaktifkan terlebih dahulu dalam pengaturan server agar dapat berfungsi. +- Ketika `virtualworld` diatur, model akan didownload setelah player memasuki world tertentu ::: :::warning -Saat ini tidak ada batasan kapan Anda dapat memanggil fungsi ini, tetapi perhatikan bahwa jika Anda tidak memanggilnya di dalam OnFilterScriptInit/OnGameModeInit, Anda berisiko bahwa beberapa player, yang sudah ada di server, mungkin belum mendownload modelnya. +Saat ini tidak ada batasan kapan Anda dapat memanggil fungsi ini, tetapi perhatikan bahwa jika Anda tidak memanggilnya di dalam [OnFilterScriptInit](../callbacks/OnFilterScriptInit)/[OnGameModeInit](../callbacks/OnGameModeInit), Anda berisiko bahwa beberapa player, yang sudah ada di server, mungkin belum mendownload modelnya. ::: 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 87b576f8748e..a516806cb7b1 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 **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). +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](BanEx) dapat digunakan untuk memberi alasan mengapa player tersebut di ban. IP ban dapat di tambah/di hapus menggunakan command [RCON](../../server/RemoteConsole) `banip` dan `unbanip` (SendRconCommand). | Nama | Deskripsi | | -------- | -------------------------------------- | diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md index 9547481f45b7..b375dbeb20cc 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md @@ -11,7 +11,7 @@ Membuat Object pada koordinat tertentu di dalam game. | Name | Description | | ------------------ | ------------------------------------------------------------------------------------------------------------- | -| modelid | Model Object yang ingin di buat. | +| modelid | [Model Object](https://models.open.mp/?cat=objects) yang ingin di buat. | | Float:X | Cordinat X untuk membuat suatu Object. | | Float:Y | Cordinat Y untuk membuat suatu Object. | | Float:Z | Cordinat Z untuk membuat suatu Object. | @@ -35,7 +35,7 @@ public OnGameModeInit() :::note -Ada batas 1000 Object (MAX_OBJECTS). Untuk menghindari batasan ini, Anda dapat menggunakan streamer. +Ada batas 1000 Object ([MAX_OBJECTS](../resources/limits)). Untuk menghindari batasan ini, Anda dapat menggunakan [streamer](https://github.com/samp-incognito/samp-streamer-plugin). ::: 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 9e812a234cbb..6dd15f9ee44b 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 @@ -7,7 +7,7 @@ tags: [] ## Deskripsi -Fungsi ini melakukan sama persis dengan AddStaticPickup, kecuali ia mengembalikan ID pengembalian yang dapat digunakan untuk menghancurkannya setelah itu dilacak menggunakan OnPlayerPickUpPickup. +Fungsi ini melakukan sama persis dengan AddStaticPickup, kecuali ia mengembalikan ID pengembalian yang dapat digunakan untuk menghancurkannya setelah itu dilacak menggunakan [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup). | Nama | Deskripsi | | -------------------------------- | ----------------------------------------------------------------------------------- | @@ -58,7 +58,7 @@ Untuk pickup yang sepenuhnya scripted, tipe 1 harus digunakan. :::warning -**Bug yang diketahui:** Pickups yang mempunyai X atau Y kurang dari -4096.0 atau lebih besar dari 4096.0 tidak akan muncul dan tidak akan memicu OnPlayerPickUpPickup salah satu. +**Bug yang diketahui:** Pickups yang mempunyai X atau Y kurang dari -4096.0 atau lebih besar dari 4096.0 tidak akan muncul dan tidak akan memicu [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup) salah satu. ::: diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md index 41c9c6d7ab84..618101513e19 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md @@ -7,11 +7,11 @@ tags: [] ## Deskripsi -Menghancurkan (menghapus) Object yang dibuat menggunakan CreateObject.. +Menghancurkan (menghapus) Object yang dibuat menggunakan [CreateObject](CreateObject). -| Name | Description | -| -------- | ---------------------------------------------------------------- | -| objectid | ID Object yang akan dihancurkan. Dikembalikan oleh CreateObject. | +| Name | Description | +| -------- | -------------------------------------------------------------------------------- | +| objectid | ID Object yang akan dihancurkan. Dikembalikan oleh [CreateObject](CreateObject). | ## Returns diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md index d68ff5d219e1..e21768972dab 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md @@ -7,11 +7,11 @@ tags: ["pickup"] ## Deskripsi -Menghancurkan item yang dibuat dengan CreatePickup. +Menghancurkan item yang dibuat dengan [CreatePickup](CreatePickup). -| Nama | Deskripsi | -| ------ | ---------------------------------------------------------------------- | -| pickup | ID dari pickup yang akan dihancurkan (dikembalikan oleh CreatePickup). | +| Nama | Deskripsi | +| ------ | -------------------------------------------------------------------------------------- | +| pickup | ID dari pickup yang akan dihancurkan (dikembalikan oleh [CreatePickup](CreatePickup)). | ## Returns diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md index b5774698e475..1a24d60d82c8 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md @@ -7,7 +7,7 @@ tags: [] ## Deskripsi -Memindahkan Object ke posisi baru dengan kecepatan yang ditentukan. Pemain/kendaraan akan 'menjelajah' Object saat bergerak. +Memindahkan [Object](CreateObject) ke posisi baru dengan kecepatan yang ditentukan. Pemain/kendaraan akan 'menjelajah' Object saat bergerak. | Name | Description | | ----------- | ------------------------------------------ | @@ -55,7 +55,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -Function ini dapat digunakan untuk membuat Object berputar dengan lancar. Namun untuk mencapai ini, Object juga harus **dipindahkan**. Rotasi yang ditentukan adalah rotasi yang akan dimiliki Object setelah gerakan. Oleh karena itu Object tidak akan berputar ketika tidak ada gerakan yang diterapkan. Untuk contoh skrip, lihat skrip filter ferriswheel.pwn yang dibuat oleh Kye yang disertakan dalam paket server (SA-MP 0.3d ke atas). Untuk memahami sepenuhnya catatan di atas, Anda dapat (tetapi tidak terbatas pada) menaikkan posisi z sebesar (+0.001) dan kemudian (-0.001) setelah memindahkannya lagi, karena tidak mengubah X,Y atau Z tidak akan memutar Object. +- Function ini dapat digunakan untuk membuat Object berputar dengan lancar. Namun untuk mencapai ini, Object juga harus **dipindahkan**. Rotasi yang ditentukan adalah rotasi yang akan dimiliki Object setelah gerakan. Oleh karena itu Object tidak akan berputar ketika tidak ada gerakan yang diterapkan. Untuk contoh skrip, lihat skrip filter ferriswheel.pwn yang dibuat oleh Kye yang disertakan dalam paket server (SA-MP 0.3d ke atas). +- Untuk memahami sepenuhnya catatan di atas, Anda dapat (tetapi tidak terbatas pada) menaikkan posisi z sebesar (+0.001) dan kemudian (-0.001) setelah memindahkannya lagi, karena tidak mengubah X,Y atau Z tidak akan memutar Object. ::: diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleHealth.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleHealth.md index 7eae5312cc87..125b35f3fdcf 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleHealth.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleHealth.md @@ -9,10 +9,10 @@ tags: ["vehicle"] Mengatur Health kendaraan. Ketika kendaraan menurun, mesin kendaraan akan mengeluarkan asap, dan akhirnya api ketika menurun health kendaraan berkurang menjadi 250 (%25) -| Nama | Deskripsi | -| ------------ | -------------------------------------- | -| vehicleid | ID Kendaraan untuk set health kendaran | -| Float:health | Health, diberikan sebagai nilai Float | +| Nama | Deskripsi | +| ------------ | ------------------------------------------------------------------- | +| vehicleid | ID Kendaraan untuk set health kendaran | +| Float:health | [Health](../resources/vehiclehealth), diberikan sebagai nilai Float | ## Returns diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md index 232ca3230ffb..c9510beea071 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md @@ -32,7 +32,7 @@ SetVehicleNumberPlate(vehicleid, "ABCD 123"); :::note -- Fungsi ini tidak memiliki pemeriksaan kesalahan internal. +- Fungsi ini tidak memiliki pemeriksaan kesalahan internal. Jangan menetapkan plat nomor khusus untuk kendaraan tanpa plat (kapal, pesawat, dll) karena ini akan menghasilkan beberapa waktu pemrosesan yang tidak perlu pada client. - Kendaraan harus spawn kembali atau stream ulang agar perubahan berlaku. - Ada batas 32 karakter pada setiap plat nomor (termasuk warna tertanam). - Panjang teks yang dapat dilihat pada plat nomor adalah sekitar 9 hingga 10 karakter, lebih banyak karakter akan menyebabkan teks terpotong. @@ -42,8 +42,7 @@ SetVehicleNumberPlate(vehicleid, "ABCD 123"); :::tip -- Jangan menetapkan plat nomor khusus untuk kendaraan tanpa plat (kapal, pesawat, dll) karena ini akan menghasilkan beberapa waktu pemrosesan yang tidak perlu pada client. -- kamu dapat memberikan warna pada plat nomor. +kamu dapat memberikan warna pada plat nomor. ::: diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md index d2da3e541d4b..2749b08bf577 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md @@ -31,7 +31,8 @@ if (!strcmp(cmdtext, "/sandstorm", true)) :::note -Jika TogglePlayerClock menyala, Cuaca perlahan-lahan akan berubah dari waktu ke waktu, alih alih berubah secara instant. Hanya ada 21 ID cuaca yang valid dalam game (0 - 20), Namun game tidak memiliki bentuk cek jangkauan. +- Jika TogglePlayerClock menyala, Cuaca perlahan-lahan akan berubah dari waktu ke waktu, alih alih berubah secara instant. +- Hanya ada 21 ID cuaca yang valid dalam game (0 - 20), Namun game tidak memiliki bentuk cek jangkauan. ::: diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md index eca908d328db..957c4ad5d142 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md @@ -7,7 +7,7 @@ tags: ["string"] ## Deskripsi -Fungsi ini menggabungkan dua buah string menjadi sebuah string. +Fungsi ini [menggabungkan](https://en.wikipedia.org/wiki/Concatenation) dua buah string menjadi sebuah string. | Nama | Deskripsi | | --------------------- | ----------------------------------------- | diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md index 1ab97bff3a4d..7858e68396d5 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md @@ -18,7 +18,11 @@ Fungsi ini membandingkan kedua string untuk mengecek apakah mereka sama. ## Returns -**0** jika stringnya sama dengan lainnya pada panjang tertentu; **1** atau **-1** jika sebuah karakter tidak sama: string1[i] - string2[i] ('i' mewakili indeks karakter dimulai dari 0); **perbedaan jumlah karakter** jika satu string cocok dengan bagian dari string lain. +**0** jika stringnya sama dengan lainnya pada panjang tertentu; + +**1** atau **-1** jika sebuah karakter tidak sama: string1[i] - string2[i] ('i' mewakili indeks karakter dimulai dari 0); + +**perbedaan jumlah karakter** jika satu string cocok dengan bagian dari string lain. ## Contoh diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/damagestatus.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/damagestatus.md index 2d5f77c9b4ec..b0d1648bc2a8 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/damagestatus.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/damagestatus.md @@ -16,10 +16,10 @@ Sebagai contohnya, status ban menyimpan 4 bit untuk 4 ban. Nilainya bernilai 1 j :::note -Untuk informasi selebihnya mengenai keadaan panel, lihat [Keadaan Panel](panelstates). -Untuk informasi selebihnya mengenai keadaan pintu, lihat [Keadaan Pintu](doorstates). -Untuk informasi selebihnya mengenai keadaan lampu, lihat [Keadaan Lampu](lightstates). -Untuk informasi selebihnya mengenai keadaan ban, lihat [Keadaan Ban](tirestates). +- Untuk informasi selebihnya mengenai keadaan panel, lihat [Keadaan Panel](panelstates). +- Untuk informasi selebihnya mengenai keadaan pintu, lihat [Keadaan Pintu](doorstates). +- Untuk informasi selebihnya mengenai keadaan lampu, lihat [Keadaan Lampu](lightstates). +- Untuk informasi selebihnya mengenai keadaan ban, lihat [Keadaan Ban](tirestates). ::: diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md index 3da102d2e375..42649e8d622f 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md @@ -239,7 +239,8 @@ Menampilkan: - **\t** menambah sebuah TAB (lebih banyak spasi). - **\n** membuat sebuah baris baru. -- Pewarnaan akan diatur ulang setelah **\n** dan **\t**. **info** pada baris pertama berisi header. +- Pewarnaan akan diatur ulang setelah **\n** dan **\t**. +- **info** pada baris pertama berisi header. ::: diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md index 2cb4f758f0fb..b4c37114fbcd 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md @@ -55,8 +55,8 @@ Informasi ini untuk digunakan dengan [OnPlayerDeath](../callbacks/OnPlayerDeath) | ![](https://assets.open.mp/assets/images/weaponIcons/spraycan.png)
Spray Can | ![](https://assets.open.mp/assets/images/deathIcons/death-sprayCan.gif) | WEAPON_SPRAYCAN | 41 | 9 | 365 | Pemain akan tersedak karena disemprot | | ![](https://assets.open.mp/assets/images/weaponIcons/fireExtinguisher.png)
Fire Extinguisher | ![](https://assets.open.mp/assets/images/deathIcons/death-fireExtinguisher.gif) | WEAPON_FIREEXTINGUISHER | 42 | 9 | 366 | Pemain akan tersedak karena disemprot | | ![](https://assets.open.mp/assets/images/weaponIcons/camera.png)
Camera | ![](https://assets.open.mp/assets/images/deathIcons/death-camera.gif) | WEAPON_CAMERA | 43 | 9 | 367 | Menyimpan foto ke galeri player jika sudah aktif melalui menu pause (My Documents\GTA San Andreas User Files\Gallery) | -| ![](https://assets.open.mp/assets/images/weaponIcons/nightVisGoggles.png)
Night Vision | ![](https://assets.open.mp/assets/images/deathIcons/death-nightVisGoggles.gif) | WEAPON_NIGHT_VISION_GOGGLES | 44 | 11 | 368 | Efek visual muncul ke semua player (sudah tersedia perbaikannya) | -| ![](https://assets.open.mp/assets/images/weaponIcons/thermalGoggles.png)
Thermal Goggles | ![](https://assets.open.mp/assets/images/deathIcons/death-thermalGoggles.gif) | WEAPON_THERMAL_GOGGLES | 45 | 11 | 369 | Efek visual muncul ke semua player (sudah tersedia perbaikannya) | +| ![](https://assets.open.mp/assets/images/weaponIcons/nightVisGoggles.png)
Night Vision | ![](https://assets.open.mp/assets/images/deathIcons/death-nightVisGoggles.gif) | WEAPON_NIGHT_VISION_GOGGLES | 44 | 11 | 368 | Efek visual muncul ke semua player (sudah diperbaiki di open.mp) | +| ![](https://assets.open.mp/assets/images/weaponIcons/thermalGoggles.png)
Thermal Goggles | ![](https://assets.open.mp/assets/images/deathIcons/death-thermalGoggles.gif) | WEAPON_THERMAL_GOGGLES | 45 | 11 | 369 | Efek visual muncul ke semua player (sudah diperbaiki di open.mp) | | ![](https://assets.open.mp/assets/images/weaponIcons/parachute.png)
Parachute | ![](https://assets.open.mp/assets/images/deathIcons/death-parachute.gif) | WEAPON_PARACHUTE | 46 | 11 | 371 | Pemain akan mati jika dipindah ketika dengan terjun dengan parasut; Parasut diberikan ketika lompat keluar dari pesawat. | | ![](https://assets.open.mp/assets/images/weaponIcons/cellphone.png)
Cellphone | - | - | - | - | - | Dihiangkan dari _game_. | | ![](https://assets.open.mp/assets/images/weaponIcons/jetpack.png)
Jetpack | - | - | - | - | 370 | Tidak bekerja sebagai senjata. Lihat [SetPlayerSpecialAction](../functions/SetPlayerSpecialAction). | 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 fce7dac474c0..fbe6f58f97a2 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 @@ -23,7 +23,7 @@ Ada dua cara untuk membuat pickup. [CreatePickup](../scripting/functions/CreateP | Nama | Deskripsi | | ------------ | ------------------------------------------------------------------------------------------------------ | -| model | Model yang anda suka gunakan untuk pickup. | +| model | [Model](../scripting/resources/pickupids) 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/it/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md b/frontend/i18n/it/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md index bad7b5e012c8..8f0305cb5413 100644 --- a/frontend/i18n/it/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md +++ b/frontend/i18n/it/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md @@ -46,9 +46,8 @@ public OnClientCheckResponse(playerid, actionid, memaddr, retndata) :::warning -**Server SA:MP**: Questo callback viene chiamato solo se è presente in un filterscript. - -**Server open.mp**: Questo callback funziona normalmente sia all'interno di un gamemode che di un filterscript. +- **Server SA-MP**: Questo callback viene chiamato solo se è presente in un filterscript. +- **Server open.mp**: Questo callback funziona normalmente sia all'interno di un gamemode che di un filterscript. ::: diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md index e61cff6207c3..272944925039 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md @@ -6,7 +6,7 @@ description: SA-MP clientconfiguratiebestand. ## Beschrijving -`sa-mp.cfg` is het clientconfiguratiebestand waarmee je SA-MP-gerelateerde instellingen kunt aanpassen. Dit bestand staat in je map ‘Mijn Documenten\\GTA San Andreas User Files\\SAMP’ onder je Windows-gebruikersaccount. Je kunt dit bestand bewerken met een teksteditor zoals Kladblok. +sa-mp.cfg is het clientconfiguratiebestand waarmee je SA-MP-gerelateerde instellingen kunt aanpassen. Dit bestand staat in je map `Mijn Documenten\GTA San Andreas User Files\SAMP` onder je Windows-gebruikersaccount. Je kunt dit bestand bewerken met een teksteditor zoals Kladblok. ## Opties diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md index 3a29d6b5f40f..1973772725ee 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md @@ -43,9 +43,8 @@ public OnClientCheckResponse(playerid, actionid, memaddr, retndata) :::warning -**SA:MP Server**: Deze callback wordt alleen aangeroepen wanneer het in een filterscript staat. - -**Open Multiplayer Server**: Deze callback werkt normaal binnen een gamemode / filterscript. +- **SA-MP server**: Deze callback wordt alleen aangeroepen wanneer het in een filterscript staat. +- **open.mp server**: Deze callback werkt normaal binnen een gamemode / filterscript. ::: 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 5cad4765598e..58a1a291fb85 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 @@ -179,7 +179,7 @@ De parameters kunnen verschillende waarden hebben afhankelijk van de stijl van d :::tip -Het gebruik van een switch-case in plaats van if-blokken is een geschikte manier om meerdere dialogs af te handelen. +Het gebruik van een [switch-case](../language/Statements#switch) in plaats van if-blokken is een geschikte manier om meerdere dialogs af te handelen. ::: diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md index 3afe97f7c787..ebb456798a01 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md @@ -9,11 +9,11 @@ tags: ["player"] Deze callback wordt aangeroepen wanneer een speler een modshop binnenkomt of verlaat. -| Naam | Beschrijving | -| ---------- | --------------------------------------------------------------------------- | -| playerid | Het ID van de speler die de modshop binnenkwam of verliet | -| enterexit | **1** als de speler binnenkwam of **0** als ze verlieten | -| interiorid | Het interior ID van de modshop die de speler binnenkomt (of 0 als verlaten) | +| Naam | Beschrijving | +| ---------- | ------------------------------------------------------------------------------------------------------- | +| playerid | Het ID van de speler die de modshop binnenkwam of verliet | +| enterexit | **1** als de speler binnenkwam of **0** als ze verlieten | +| interiorid | Het [interior ID](../resources/interiorids) van de modshop die de speler binnenkomt (of 0 als verlaten) | ## Returns diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md index 8761f330faba..a6ac4d12ba60 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md @@ -29,7 +29,7 @@ public OnGameModeExit() :::tip -Deze functie kan ook gebruikt worden in een filterscript om te detecteren of de gamemode verandert met RCON commands zoals changemode of gmx, omdat het veranderen van de gamemode een filterscript niet herlaadt. +Deze functie kan ook gebruikt worden in een filterscript om te detecteren of de gamemode verandert met [RCON commands](../../server/ControllingServer#rcon-commands) zoals changemode of gmx, omdat het veranderen van de gamemode een filterscript niet herlaadt. ::: diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md index 2d1f29d29c4a..72f35967176a 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md @@ -29,7 +29,7 @@ public OnGameModeInit() :::tip -Deze functie kan ook gebruikt worden in een filterscript om te detecteren of de gamemode verandert met RCON commands zoals changemode of gmx, omdat het veranderen van de gamemode een filterscript niet herlaadt. +Deze functie kan ook gebruikt worden in een filterscript om te detecteren of de gamemode verandert met [RCON commands](../../server/ControllingServer#rcon-commands) zoals changemode of gmx, omdat het veranderen van de gamemode een filterscript niet herlaadt. ::: diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md index b283b6371ece..0076e6443e9b 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md @@ -38,7 +38,8 @@ public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) :::note -Zoals de naam al zegt, wordt dit alleen aangeroepen wanneer de speler klikt om een target te markeren, niet bij het indrukken van een toets. De Z-waarde is 0 (ongeldig) als de geklikte locatie ver van de speler is; gebruik de [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) of [ColAndreas](https://github.com/Pottus/ColAndreas) plugin voor nauwkeurige Z-coördinaten. +- Zoals de naam al zegt, wordt dit alleen aangeroepen wanneer de speler klikt om een target te markeren, niet bij het indrukken van een toets. +- De Z-waarde is 0 (ongeldig) als de geklikte locatie ver van de speler is; gebruik de [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) of [ColAndreas](https://github.com/Pottus/ColAndreas) plugin voor nauwkeurige Z-coördinaten. ::: diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md index 154956a2040c..4d538f18146e 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md @@ -34,7 +34,8 @@ public OnPlayerExitVehicle(playerid, vehicleid) :::warning -Wordt niet aangeroepen als de speler van een fiets valt of uit een voertuig wordt gehaald door andere middelen zoals [SetPlayerPos](../functions/SetPlayerPos). Je moet [OnPlayerStateChange](OnPlayerStateChange) gebruiken en controleren of hun oude staat `PLAYER_STATE_DRIVER` of `PLAYER_STATE_PASSENGER` is en hun nieuwe staat `PLAYER_STATE_ONFOOT`. +- Wordt niet aangeroepen als de speler van een fiets valt of uit een voertuig wordt gehaald door andere middelen zoals [SetPlayerPos](../functions/SetPlayerPos). +- Je moet [OnPlayerStateChange](OnPlayerStateChange) gebruiken en controleren of hun oude staat `PLAYER_STATE_DRIVER` of `PLAYER_STATE_PASSENGER` is en hun nieuwe staat `PLAYER_STATE_ONFOOT`. ::: diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md index 1cc6b2ccc8c6..151f4f204ca3 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md @@ -9,13 +9,13 @@ tags: ["player"] Deze callback wordt aangeroepen wanneer een speler schade toebrengt aan een andere speler. -| Naam | Beschrijving | -| --------------- | ----------------------------------------------------------------- | -| playerid | Het ID van de speler die schade toebracht. | -| damagedid | Het ID van de speler die schade ontving. | -| Float:amount | De hoeveelheid health/armor die damagedid verloor (gecombineerd). | -| WEAPON:weaponid | De reden/het wapen dat de schade veroorzaakte. | -| bodypart | Het [lichaamsdeel](../resources/bodyparts) dat geraakt werd. | +| Naam | Beschrijving | +| --------------- | ------------------------------------------------------------------------ | +| playerid | Het ID van de speler die schade toebracht. | +| damagedid | Het ID van de speler die schade ontving. | +| Float:amount | De hoeveelheid health/armor die damagedid verloor (gecombineerd). | +| WEAPON:weaponid | De [reden/het wapen](../resources/weaponids) dat de schade veroorzaakte. | +| bodypart | Het [lichaamsdeel](../resources/bodyparts) dat geraakt werd. | ## Returns diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md index fd9323061245..190815a71f3f 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md @@ -16,7 +16,7 @@ Deze callback wordt aangeroepen wanneer een speler schade toebrengt aan een acto | playerid | Het ID van de speler die schade toebracht. | | damaged_actorid | Het ID van de actor die schade ontving. | | Float:amount | De hoeveelheid gezondheid/pantser die damaged_actorid verloor. | -| WEAPON:weaponid | De reden die de schade veroorzaakte. | +| WEAPON:weaponid | De [reden](../resources/weaponids) die de schade veroorzaakte. | | bodypart | Het [lichaamsdeel](../resources/bodyparts) dat werd geraakt | ## Returns diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md index 2f6e0b48f320..0458333bc381 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md @@ -37,7 +37,7 @@ public OnPlayerRequestSpawn(playerid) :::tip -Om te voorkomen dat spelers spawnen met bepaalde klassen, moet de laatst bekeken klasse worden opgeslagen in een variabele in OnPlayerRequestClass. +Om te voorkomen dat spelers spawnen met bepaalde klassen, moet de laatst bekeken klasse worden opgeslagen in een variabele in [OnPlayerRequestClass](OnPlayerRequestClass). ::: diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md index 824aa0015ddb..b885fc720631 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md @@ -7,7 +7,7 @@ tags: ["player"] ## Beschrijving -Deze callback wordt aangeroepen wanneer een speler van staat verandert. Bijvoorbeeld, wanneer een speler verandert van bestuurder van een voertuig naar lopend. +Deze callback wordt aangeroepen wanneer een speler van [staat](../resources/playerstates) verandert. Bijvoorbeeld, wanneer een speler verandert van bestuurder van een voertuig naar lopend. | Naam | Beschrijving | | --------------------- | ---------------------------------------------- | @@ -15,8 +15,6 @@ Deze callback wordt aangeroepen wanneer een speler van staat verandert. Bijvoorb | PLAYER_STATE:newstate | De nieuwe staat van de speler. | | PLAYER_STATE:oldstate | De vorige staat van de speler. | -Zie [Player States](../resources/playerstates) voor een lijst van alle beschikbare spelerstaten. - ## Returns Wordt altijd als eerste aangeroepen in filterscripts. diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md index ee49e0c3e697..8ca9730cd197 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md @@ -14,7 +14,7 @@ Deze callback wordt aangeroepen wanneer een speler schade ontvangt. | playerid | Het ID van de speler die schade ontving. | | issuerid | Het ID van de speler die de schade veroorzaakte. INVALID_PLAYER_ID bij zelfschade. | | Float:amount | De hoeveelheid ontvangen schade (health en armor gecombineerd). | -| WEAPON:weaponid | Het ID van het wapen/de reden voor de schade. | +| WEAPON:weaponid | Het ID van het [wapen/de reden](../resources/weaponids) voor de schade. | | bodypart | Het [lichaamsdeel](../resources/bodyparts) dat geraakt werd. | ## Returns diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md index 860d34181e5b..dc4119976f53 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md @@ -43,10 +43,10 @@ public OnPlayerWeaponShot(playerid, WEAPON:weaponid, BULLET_HIT_TYPE:hittype, hi :::note -Deze callback wordt alleen aangeroepen wanneer lag compensation is **ingeschakeld**. Als **hittype** is: - -- `BULLET_HIT_TYPE_NONE`: **fX**, **fY** en **fZ** zijn absolute coördinaten (0.0 als niets geraakt is). -- Anders: **fX**, **fY** en **fZ** zijn offsets relatief ten opzichte van **hitid**. +- Deze callback wordt alleen aangeroepen wanneer [lag compensation](../../server/LagCompensation) is **ingeschakeld**. +- Als **hittype** is: + - `BULLET_HIT_TYPE_NONE`: **fX**, **fY** en **fZ** zijn absolute coördinaten (0.0 als niets geraakt is). + - Anders: **fX**, **fY** en **fZ** zijn offsets relatief ten opzichte van **hitid**. ::: diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md index ebf2c1207b14..c60d3b257b8e 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md @@ -47,7 +47,7 @@ public OnRconCommand(cmd[]) - De /rcon prefix zit niet in de `cmd` parameter wanneer een speler een command typt. - Als je hier `print` gebruikt, gaat het bericht naar zowel de speler die het command intypte als de serverlog. - Deze callback wordt niet aangeroepen als de speler niet is ingelogd als RCON admin. -- Wanneer een speler `/rcon login` gebruikt om in te loggen, wordt deze callback niet aangeroepen; in plaats daarvan wordt OnRconLoginAttempt aangeroepen. Zodra je bent ingelogd als RCON admin, triggert elk volgend command deze callback. +- Wanneer een speler `/rcon login` gebruikt om in te loggen, wordt deze callback niet aangeroepen; in plaats daarvan wordt [OnRconLoginAttempt](OnRconLoginAttempt) aangeroepen. Zodra je bent ingelogd als RCON admin, triggert elk volgend command deze callback. ::: 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 bd2d23ae74e6..67df1df6ed8d 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 @@ -35,7 +35,8 @@ public OnVehiclePaintjob(playerid, vehicleid, paintjobid) :::note -Deze callback wordt niet aangeroepen door ChangeVehiclePaintjob. Je kunt OnVehicleChangePaintjob van vSync gebruiken om te weten wanneer de speler de paintjob **koopt**. +- Deze callback wordt niet aangeroepen door ChangeVehiclePaintjob. +- Je kunt OnVehicleChangePaintjob van [vSync](https://github.com/Vasily-X/vSync) gebruiken om te weten wanneer de speler de paintjob **koopt**. ::: diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md index b94cfac9ec86..31d0fd95577d 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md @@ -36,7 +36,8 @@ public OnVehicleRespray(playerid, vehicleid, color1, color2) :::note -Deze callback wordt niet aangeroepen door ChangeVehicleColor. Misleidend genoeg wordt deze callback niet aangeroepen voor pay 'n' spray (alleen modshops). +- Deze callback wordt niet aangeroepen door ChangeVehicleColor. +- Misleidend genoeg wordt deze callback niet aangeroepen voor pay 'n' spray (alleen modshops). Fix hier: http://pastebin.com/G81da7N1 diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md index 0474e04b8788..2d02d037edae 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md @@ -13,7 +13,7 @@ Deze callback wordt **alleen** aangeroepen wanneer een voertuig **re**spawnt! Cr ## Beschrijving -Deze callback wordt aangeroepen wanneer een voertuig respawnt. +Deze callback wordt aangeroepen wanneer een voertuig **re**spawnt. | Naam | Beschrijving | | --------- | ------------------------------------ | diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md index 11772811ad78..453668722fd8 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md @@ -16,7 +16,9 @@ Sla de armour van een speler op in een variabele. ## Retourneert -**1** bij succes, **0** bij falen (niet verbonden). Armour wordt in de variabele geplaatst. +**1** bij succes, **0** bij falen (niet verbonden). + +Armour wordt in de variabele geplaatst. ## Voorbeeld @@ -38,7 +40,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) ## Opmerkingen -De client rapporteert waarden tot maximaal 255; hogere waarden lopen over (256→0, 257→1, …). Bij het opvragen wordt de waarde afgerond naar een geheel getal. +- De client rapporteert waarden tot maximaal 255; hogere waarden lopen over (256→0, 257→1, …). +- Bij het opvragen wordt de waarde afgerond naar een geheel getal. ## Gerelateerd diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerFacingAngle.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerFacingAngle.md index c2492b2388bf..b4b49dbad853 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerFacingAngle.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerFacingAngle.md @@ -16,7 +16,9 @@ Haal de rotatie op waar de speler naartoe kijkt. ## Retourneert -**true** bij succes, **false** als de speler niet bestaat. De rotatie wordt in de variabele opgeslagen. +**true** bij succes, **false** als de speler niet bestaat. + +De rotatie wordt in de variabele opgeslagen. ## Voorbeeld diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md index 51d966338f74..2706f70e3909 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md @@ -16,7 +16,9 @@ Haal de health van een speler op (nuttig o.a. voor cheat‑detectie). ## Retourneert -**true** bij succes, **false** bij falen (niet verbonden). Health wordt in de variabele geplaatst. +**true** bij succes, **false** bij falen (niet verbonden). + +Health wordt in de variabele geplaatst. ## Voorbeeld @@ -36,7 +38,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) ## Opmerkingen -De client rapporteert waarden tot maximaal 255; hogere waarden lopen over (256→0, 257→1, …). Bij het opvragen wordt de waarde afgerond naar een geheel getal. +- De client rapporteert waarden tot maximaal 255; hogere waarden lopen over (256→0, 257→1, …). +- Bij het opvragen wordt de waarde afgerond naar een geheel getal. ## Gerelateerd diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md index 986b30cbcd89..9e06d9b6622a 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md @@ -9,12 +9,12 @@ tags: ["player"] Lees de huidige key‑states van een speler. -| Naam | Beschrijving | -| --------- | ------------------------------------------------------- | -| playerid | ID van de speler. | -| &KEY:keys | Bitmask met key‑states (zie [Keys](../resources/keys)). | -| updown | Up/down‑state. | -| leftright | Left/right‑state. | +| Naam | Beschrijving | +| --------- | --------------------------------------------------------------------------------------------------------- | +| playerid | ID van de speler. | +| &KEY:keys | [Bitmask](https://en.wikipedia.org/wiki/Mask_(computing)) met key‑states (zie [Keys](../resources/keys)). | +| updown | Up/down‑state. | +| leftright | Left/right‑state. | ## Retourneert @@ -37,7 +37,8 @@ public OnPlayerUpdate(playerid) ## Opmerkingen -Alleen de FUNCTIE van toetsen wordt gedetecteerd; niet de fysieke toets. Bijvoorbeeld **SPRINT** i.p.v. **SPATIE**. In voertuigen worden A en D niet herkend; W en S wel via `keys`. +- Alleen de FUNCTIE van toetsen wordt gedetecteerd; niet de fysieke toets. Bijvoorbeeld **SPRINT** i.p.v. **SPATIE**. +- In voertuigen worden A en D niet herkend; W en S wel via `keys`. ## Gerelateerde Callbacks diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md index acddb44fcf7c..02dcd5896aac 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md @@ -7,7 +7,7 @@ tags: ["player"] ## Beschrijving -Haal de ping van een speler op (round‑trip tijd in milliseconden). +Haal de [ping](https://en.wikipedia.org/wiki/Ping_(networking_utility)) van een speler op (round‑trip tijd in milliseconden). | Naam | Beschrijving | | -------- | ----------------- | diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPos.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPos.md index a2ad67d39858..87143895169c 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPos.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPos.md @@ -18,7 +18,9 @@ Haal de positie van een speler op, als X‑, Y‑ en Z‑coördinaten. ## Retourneert -**true** bij succes, **false** bij falen (speler niet verbonden). Coördinaten worden in de variabelen opgeslagen. +**true** bij succes, **false** bij falen (speler niet verbonden). + +Coördinaten worden in de variabelen opgeslagen. ## Voorbeeld @@ -34,7 +36,7 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) ## Opmerkingen -Kan onbetrouwbaar zijn in [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect) en `OnPlayerRequestClass` (speler niet gespawned). +Kan onbetrouwbaar zijn in [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect) en [OnPlayerRequestClass](../callbacks/OnPlayerRequestClass) (speler niet gespawned). ## Gerelateerd diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md index 4a5d4661dc4d..f08e9d65c22a 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md @@ -36,7 +36,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) ## Opmerkingen -Geeft de nieuwe skin terug nadat [SetSpawnInfo](SetSpawnInfo) is aangeroepen, maar vóór de speler daadwerkelijk respawnt. Als de speler via [SpawnPlayer](SpawnPlayer) is gespawned, wordt de oude skin teruggegeven. +- Geeft de nieuwe skin terug nadat [SetSpawnInfo](SetSpawnInfo) is aangeroepen, maar vóór de speler daadwerkelijk respawnt. +- Als de speler via [SpawnPlayer](SpawnPlayer) is gespawned, wordt de oude skin teruggegeven. ## Gerelateerd diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTime.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTime.md index 0506fed180f0..d28ba14cbb56 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTime.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTime.md @@ -17,7 +17,9 @@ Haal de huidige in‑game tijd van de speler op. Wordt gezet met [SetWorldTime]( ## Retourneert -**true** bij succes, **false** als de speler niet bestaat. Tijd wordt in de variabelen opgeslagen. +**true** bij succes, **false** als de speler niet bestaat. + +Tijd wordt in de variabelen opgeslagen. ## Voorbeeld diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/atan.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/atan.md index 29ea73270fa3..5ce924edc9f9 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/atan.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/atan.md @@ -7,7 +7,7 @@ tags: ["math"] ## Beschrijving -Geef de arc‑tangens (inverse van tangens) in graden. Door tekenambiguïteit kan de kwadrant niet eenduidig bepaald worden; zie [atan2](../functions/atan2) voor een alternatief met y/x. +Geef de arc‑[tangens](https://en.wikipedia.org/wiki/Trigonometric_functions) (inverse van tangens) in graden. Door tekenambiguïteit kan de kwadrant niet eenduidig bepaald worden; zie [atan2](../functions/atan2) voor een alternatief met y/x. | Naam | Beschrijving | | ----------- | --------------------------------------------- | diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/fread.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/fread.md index faf7d2b8d8fd..e47f95d351d2 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/fread.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/fread.md @@ -11,7 +11,7 @@ Lees één regel uit een bestand. | Naam | Beschrijving | | ---------------------- | --------------------------------------------------- | -| File:handle | Handle van het bestand (van fopen). | +| File:handle | Handle van het bestand (van [fopen](fopen)). | | string[] | Buffer om de gelezen tekst in op te slaan (by ref). | | size = sizeof (string) | Aantal bytes om te lezen. | | bool:pack | Of de string packed moet zijn (standaard: false). | diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md index f457710ef1b0..b64548e3d88d 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md @@ -9,10 +9,10 @@ tags: ["file management"] Schrijf tekst naar een bestand. -| Naam | Beschrijving | -| -------------- | ----------------------------------- | -| File:handle | Handle van het bestand (van fopen). | -| const string[] | De te schrijven tekst. | +| Naam | Beschrijving | +| -------------- | -------------------------------------------- | +| File:handle | Handle van het bestand (van [fopen](fopen)). | +| const string[] | De te schrijven tekst. | ## Retourneert diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md index c4a536a8205f..0ec3c10efdc8 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md @@ -22,9 +22,3 @@ De volgende cameramodi worden gebruikt door [GetPlayerCameraMode](../functions/G | 53 | CAM_MODE_AIMWEAPON | MODE_AIMWEAPON | Richten met ander wapen | | 55 | CAM_MODE_AIMWEAPON_FROMCAR | MODE_AIMWEAPON_FROMCAR | Passagiers‑drive‑by camera | | 56 | CAM_MODE_DW_HELI_CHASE | MODE_DW_HELI_CHASE | Chase: helikopter/bird view | -| 57 | - | MODE_DW_CAM_MAN | Chase: grondcamera; zoomt snel in en pant naar voertuig | -| 58 | - | MODE_DW_BIRDY | Chase: horizontale flyby | -| 59 | - | MODE_DW_PLANE_SPOTTER | Chase (lucht): grondcamera, omhoog naar vliegtuig | -| 62 | - | MODE_DW_PLANECAM1 | Chase (lucht): verticale flyby | -| 63 | - | MODE_DW_PLANECAM2 | Chase (lucht): horizontale flyby | -| 64 | - | MODE_DW_PLANECAM3 | Chase (lucht): focus op piloot, vergelijkbaar met LOOK_BEHIND te voet | diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/damagestatus.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/damagestatus.md index ff0d7cee4f64..025beaf63070 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/damagestatus.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/damagestatus.md @@ -12,6 +12,11 @@ Gebruikt door [GetVehicleDamageStatus](../functions/GetVehicleDamageStatus) en [ Voertuigschade bestaat uit vier waarden: Panels, Doors, Lights en Tires. Elke waarde is een bitmask dat de toestand van alle panelen/deuren/lampen/banden bevat; gebruik bitwise‑operators. -Zie ook: [Panel States](../resources/panelstates), [Door States](../resources/doorstates), [Light States](../resources/lightstates), [Tire States](../resources/tirestates). +Zie ook: + +- [Panel States](../resources/panelstates) +- [Door States](../resources/doorstates) +- [Light States](../resources/lightstates) +- [Tire States](../resources/tirestates) Voor het coderen/decoderen kun je hulpfuncties gebruiken (identiek aan de Engelse voorbeelden). diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md index 1dadb88a6ab4..b15f9f15c114 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md @@ -7,35 +7,64 @@ sidebar_label: "Dialoogstijlen" - In [OnDialogResponse](../callbacks/OnDialogResponse) zet **button1** `response` op **1**, **button2** op **0**. - Elke dialoog kan een optionele button 2 hebben; leeg laten verbergt deze. ESC triggert dan `response = 0`. -- [ShowPlayerDialog](../functions/ShowPlayerDialog): kleur‑embedding werkt in `caption`, `info`, `button1`, `button2`. +- [ShowPlayerDialog](../functions/ShowPlayerDialog): [kleur‑embedding](colorslist#kleur-embedding) werkt in `caption`, `info`, `button1`, `button2`. ::: -- Deze pagina beschrijft het gedrag van `ShowPlayerDialog` en `OnDialogResponse`. +- Deze pagina beschrijft het gedrag van ShowPlayerDialog en OnDialogResponse. - Voor limieten: zie [Limits](../resources/limits). ## Stijl 0: `DIALOG_STYLE_MSGBOX` -Opmerkingen: `\t` voegt een TAB toe; `\n` nieuwe regel; kleur‑embedding reset niet op `\n` of `\t`. +:::note Opmerkingen -`listitem = -1`, `inputtext` leeg. +- `\t` voegt een TAB toe. +- `\n` nieuwe regel. +- [Kleur‑embedding](colorslist#kleur-embedding) reset niet op `\n` of `\t`. + +::: + +- `listitem = -1` +- `inputtext` leeg. ## Stijl 1: `DIALOG_STYLE_INPUT` -`listitem = -1`; `inputtext` bevat de ingevoerde tekst (incl. kleuren). +- `listitem = -1` +- `inputtext` bevat de ingevoerde tekst (incl. kleuren). ## Stijl 2: `DIALOG_STYLE_LIST` -`listitem` is de index (0‑based); `inputtext` is de tekst van het gekozen item (zonder kleuren). +- `listitem` is de index (0‑based). +- `inputtext` is de tekst van het gekozen item (zonder kleuren). ## Stijl 3: `DIALOG_STYLE_PASSWORD` -Vergelijkbaar met INPUT. `listitem = -1`; `inputtext` bevat de invoer (zonder kleurenweergave). +Vergelijkbaar met INPUT. + +- `listitem = -1` +- `inputtext` bevat de invoer (zonder kleurenweergave). ## Stijl 4: `DIALOG_STYLE_TABLIST` -`\t` maakt een nieuwe kolom; `\n` een nieuw item. Kleur‑embedding reset na `\n` en `\t`. `listitem` is index; `inputtext` is tekst van de eerste kolom. +:::note + +- `\t` maakt een nieuwe kolom. +- `\n` een nieuw item. +- [Kleur‑embedding](colorslist#kleur-embedding) reset na `\n` en `\t`. + +::: + +- `listitem` is index. +- `inputtext` is tekst van de eerste kolom. ## Stijl 5: `DIALOG_STYLE_TABLIST_HEADERS` -Als TABLIST; eerste `info`‑rij bevat headers; `inputtext` is tekst van de eerste kolom van het gekozen item. +Als TABLIST. + +:::note + +Eerste `info`‑rij bevat headers. + +::: + +`inputtext` is tekst van de eerste kolom van het gekozen item. diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/limits.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/limits.md index 2aaee123206f..3968671fc8c4 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/limits.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/limits.md @@ -68,7 +68,7 @@ tags: [] **Notities:** 1. Veel voertuigmodellen kunnen clientperformance beïnvloeden. -2. Boven ~255 met kleurcodes kan de client crashen. +2. Boven ~255 met [kleurcodes](gametextstyles#tekstkleuren) kan de client crashen. 3. Alle textdraws tegelijk tonen kan, maar is niet aan te raden. 4. Gebruik een [streamer](https://github.com/samp-incognito/samp-streamer-plugin) om limieten te omzeilen (nabij speler creëren). 5. Door clientlimieten worden maximaal 51 actors tegelijk getoond. 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 577d02943812..69ff73e23a2d 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 @@ -23,7 +23,7 @@ Er zijn twee manieren: [CreatePickup](../scripting/functions/CreatePickup) en [A | Naam | Beschrijving | | ------------ | --------------------------------------------------------------------- | -| model | Het model voor de pickup. | +| model | Het [model](../scripting/resources/pickupids) 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/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md index e50bc0387782..783a5f06bba0 100644 --- a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md +++ b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md @@ -43,7 +43,10 @@ Podanie nieprawidłowego ID menu powoduje crash. :::note -Możesz mieć tylko 12 elementów w każdym menu (13 przechodzi na prawą stronę nagłówka nazwy kolumny (pokolorowany), 14 i większe nie są wyświetlane wcale. Możesz używać tylko 2 kolumn (0 i 1). Możesz dodać tylko 8 kolorów do jednego elementu (`~r~`, `~g~`, itd.). Maksymalna długość elementu menu to 31 znaków. +- Możesz mieć tylko 12 elementów w każdym menu (13 przechodzi na prawą stronę nagłówka nazwy kolumny (pokolorowany), 14 i większe nie są wyświetlane wcale. +- Możesz używać tylko 2 kolumn (0 i 1). +- Możesz dodać tylko 8 kolorów do jednego elementu (`~r~`, `~g~`, itd.). +- Maksymalna długość elementu menu to 31 znaków. ::: diff --git a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md index b844e991e3d4..250b6349b253 100644 --- a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md +++ b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md @@ -7,7 +7,7 @@ tags: ["player"] ## Opis -Ta funkcja jest dokładnie taka sama, jak funkcja AddPlayerClass, z wyjątkiem dodatkowego parametru na drużynę. +Ta funkcja jest dokładnie taka sama, jak funkcja [AddPlayerClass](AddPlayerClass), z wyjątkiem dodatkowego parametru na drużynę. | 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 f5b47ca8588f..52011287bb7e 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 @@ -9,15 +9,15 @@ tags: [] ## Opis -Dodaje nowy niestandardowy obiekt 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. - -| Nazwa | Opis | -| ------------ | ------------------------------------------------------------------------------------------------------------------------- | -| virtualworld | ID wirtualnego świata, w którym obiekt będzie dostępny. Użyj -1, aby był dostępny we wszystkich światach. | -| baseid | Bazowe ID obiektu do użycia (oryginalny obiekt, który zostanie wykorzystany, gdy pobieranie się nie uda). | -| newid | Nowe ID obiektu z zakresu od -1000 do -30000 (29000 slotów), używane później w CreateObject lub CreatePlayerObject. | -| dffname | Nazwa pliku **.dff** z kolizjami modelu, znajdującego się domyślnie w serwerowym katalogu `models` (ustawienie artpath). | -| txdname | Nazwa pliku **.txd** z teksturami modelu, znajdującego się domyślnie w serwerowym katalogu `models` (ustawienie artpath). | +Dodaje nowy niestandardowy obiekt 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 | +| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | +| virtualworld | ID wirtualnego świata, w którym obiekt będzie dostępny. Użyj -1, aby był dostępny we wszystkich światach. | +| baseid | Bazowe [ID obiektu](https://models.open.mp/?cat=objects) do użycia (oryginalny obiekt, który zostanie wykorzystany, gdy pobieranie się nie uda). | +| newid | Nowe ID obiektu z zakresu od -1000 do -30000 (29000 slotów), używane później w CreateObject lub CreatePlayerObject. | +| dffname | Nazwa pliku **.dff** z kolizjami modelu, znajdującego się domyślnie w serwerowym katalogu `models` (ustawienie artpath). | +| txdname | Nazwa pliku **.txd** z teksturami modelu, znajdującego się domyślnie w serwerowym katalogu `models` (ustawienie artpath). | ## Zwracane wartości 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 7fd23d189385..abe2aee7dd1a 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 @@ -9,17 +9,17 @@ tags: [] ## Opis -Dodaje nowy niestandardowy obiekt 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. - -| Nazwa | Opis | -| ------------ | ------------------------------------------------------------------------------------------------------------------------- | -| virtualworld | ID wirtualnego świata, w którym obiekt będzie dostępny. Użyj -1, aby był dostępny we wszystkich światach. | -| baseid | Bazowe ID obiektu do użycia (oryginalny obiekt, który zostanie wykorzystany, gdy pobieranie się nie uda). | -| newid | Nowe ID obiektu z zakresu od -1000 do -30000 (29000 slotów), używane później w CreateObject lub CreatePlayerObject. | -| dffname | Nazwa pliku **.dff** z kolizjami modelu, znajdującego się domyślnie w serwerowym katalogu `models` (ustawienie artpath). | -| txdname | Nazwa pliku **.txd** z teksturami modelu, znajdującego się domyślnie w serwerowym katalogu `models` (ustawienie artpath). | -| timeon | Godzina w świecie gry, o której obiekt się pojawi. | -| timeoff | Godzina w świecie gry, o której obiekt zniknie. | +Dodaje nowy niestandardowy obiekt 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 | +| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | +| virtualworld | ID wirtualnego świata, w którym obiekt będzie dostępny. Użyj -1, aby był dostępny we wszystkich światach. | +| baseid | Bazowe [ID obiektu](https://models.open.mp/?cat=objects) do użycia (oryginalny obiekt, który zostanie wykorzystany, gdy pobieranie się nie uda). | +| newid | Nowe ID obiektu z zakresu od -1000 do -30000 (29000 slotów), używane później w CreateObject lub CreatePlayerObject. | +| dffname | Nazwa pliku **.dff** z kolizjami modelu, znajdującego się domyślnie w serwerowym katalogu `models` (ustawienie artpath). | +| txdname | Nazwa pliku **.txd** z teksturami modelu, znajdującego się domyślnie w serwerowym katalogu `models` (ustawienie artpath). | +| timeon | Godzina w świecie gry, o której obiekt się pojawi. | +| timeoff | Godzina w świecie gry, o której obiekt zniknie. | ## Zwracane wartości diff --git a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md index 9fab4df9f9fa..f2c4163f7124 100644 --- a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md +++ b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Opis -Dodaje „statyczny” pojazd (pojazdy są wstępnie ładowane dla graczy) do gamemodu. Różnica pomiędzy AddStaticVehicle polega na tym, że ta funkcja umożliwia ustawienie czasu respawnu pojazdu, gdy kierowca go porzuci. +Dodaje „statyczny” pojazd (pojazdy są wstępnie ładowane dla graczy) do gamemodu. Różnica pomiędzy [AddStaticVehicle](AddStaticVehicle) polega na tym, że ta funkcja umożliwia ustawienie czasu respawnu pojazdu, gdy kierowca go porzuci. | Nazwa | Opis | | ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | diff --git a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AllowPlayerTeleport.md b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AllowPlayerTeleport.md index db03a11445e1..7c75bb508645 100644 --- a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AllowPlayerTeleport.md +++ b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AllowPlayerTeleport.md @@ -39,7 +39,7 @@ public OnPlayerConnect(playerid) :::warning -Ta funkcja będzie działać tylko jeżeli AllowAdminTeleport jest włączone, musisz być również administratorem. +Ta funkcja będzie działać tylko jeżeli [AllowAdminTeleport](AllowAdminTeleport) jest włączone, musisz być również administratorem. ::: 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 d18d6d2a8ef7..91f25909369b 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 @@ -40,7 +40,8 @@ AttachObjectToObject(gObjectId, gAttachToId, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1); :::note -Oba obiekty muszą być utworzone przed próbą ich połączenia. Nie ma odpowiednika tej funkcji dla obiektów gracza (AttachPlayerObjectToObject), dlatego nie jest ona wspierana przez streamery. +- Oba obiekty muszą być utworzone przed próbą ich połączenia. +- Nie ma odpowiednika tej funkcji dla obiektów gracza (AttachPlayerObjectToObject), dlatego nie jest ona wspierana przez streamery. ::: diff --git a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToPlayer.md b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToPlayer.md index 62a137cc2490..1d657d620230 100644 --- a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToPlayer.md +++ b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToPlayer.md @@ -7,7 +7,7 @@ tags: ["player"] ## Opis -Odpowiednik AttachObjectToPlayer, tylko dla obiektów stworzonych dla danego gracza. +Odpowiednik [AttachObjectToPlayer](AttachObjectToPlayer), tylko dla obiektów stworzonych dla danego gracza. | Nazwa | Opis | | ------------- | ---------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md index 3cdd82d2da38..5be9a5fadc6d 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md @@ -6,7 +6,7 @@ description: Guia configuração samp.cfg. ## Descrição -`samp.cfg` é um arquivo de configuração do cliente que permite alterar as configurações relacionadas ao SA-MP. Este arquivo é encontrado na pasta 'Meus Documentos\GTA San Andreas User Files\SAMP', na sua conta de usuário do Windows. Este arquivo pode ser editado com um editor de texto como o bloco de notas. +sa-mp.cfg é um arquivo de configuração do cliente que permite alterar as configurações relacionadas ao SA-MP. Este arquivo é encontrado na pasta `Meus Documentos\GTA San Andreas User Files\SAMP`, na sua conta de usuário do Windows. Este arquivo pode ser editado com um editor de texto como o bloco de notas. ## Opções 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 279fad8c2823..451554a985f2 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 @@ -7,7 +7,7 @@ tags: [] ## Descrição -Essa callback é chamada sempre que um NPC ver uma ClientMessage. Isso acontecerá sempre que uma função SendClientMessageToAll for usada e sempre que uma função SendClientMessage é enviada para um NPC. Esta callback não será chamada quando alguém falar algo. Para este tipo de texto, veja: NPC:OnPlayerText. +Essa callback é chamada sempre que um NPC ver uma ClientMessage. Isso acontecerá sempre que uma função [SendClientMessageToAll](../functions/SendClientMessageToAll) for usada e sempre que uma função [SendClientMessage](../functions/SendClientMessage) é enviada para um NPC. Esta callback não será chamada quando alguém falar algo. Para este tipo de texto, veja: NPC:OnPlayerText. | Nome | Descrição | | ------ | ---------------------------- | 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 9c7b3d03e833..39c14e7dcb04 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 @@ -7,12 +7,12 @@ tags: [] ## Descrição -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). +Esta callback é chamada quando um jogador responde a um dialog mostrado usando [ShowPlayerDialog](../functions/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). | Parâmetro | Descrição | | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------- | | playerid | O ID do jogador que respondeu ao dialog. | -| dialogid | O ID do dialog que foi respondido, conforme definido no ShowPlayerDialog. | +| dialogid | O ID do dialog que foi respondido, conforme definido no [ShowPlayerDialog](../functions/ShowPlayerDialog). | | response | **1** para o botão esquerdo e **0** para o botão direito (se for apenas um botão, sempre será 1). | | listitem | O ID do item da lista selecionado pelo jogador (inicia 0) (apenas se estiver usando dialog no estilo de lista, caso contrário, será -1). | | inputtext[] | O texto inserido no campo pelo jogador ou texto do item da lista que foi selecionado. | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md index a1cea38adfe8..4d58dda0f9f3 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md @@ -9,11 +9,11 @@ tags: [] Esta callback é chamada quando o jogador entra ou sai de um shop mod. -| Nome | Descrição | -| ---------- | ----------------------------------------------------------------- | -| playerid | O ID do jogador que entrou/saiu do modshop | -| enterexit | **1** se o jogador entrou ou **0** se ele saiu | -| interiorid | O ID do interior do modshop que o jogador entrou (ou 0 caso saia) | +| Nome | Descrição | +| ---------- | ----------------------------------------------------------------------------------------------------------- | +| playerid | O ID do jogador que entrou/saiu do modshop | +| enterexit | **1** se o jogador entrou ou **0** se ele saiu | +| interiorid | O [ID do interior](../resources/interiorids#lojas-de-mods) do modshop que o jogador entrou (ou 0 caso saia) | ## Retornos 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 c9c137ea794a..473f6ae464b4 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 @@ -7,7 +7,7 @@ tags: [] ## Descrição -Esta callback é chamada quando uma gamemode finaliza, também através do 'gmx', do servidor ser desligado ou GameModeExit. +Esta callback é chamada quando uma gamemode finaliza, também através do 'gmx', do servidor ser desligado ou [GameModeExit](../functions/GameModeExit). ## Retornos @@ -27,8 +27,8 @@ public OnGameModeExit() :::tip -- Esta função também pode ser usada em um filterscript para detectar se a gamemode mudou através de comandos do RCON como o "changemode" ou "gmx", pois mudar o gamemode não recarrega um filterscript. -- Quando usar OnGameModeExit em conjunto com o comando "rcon gmx" do console, mantenha em mente que há um potencial problema que pode acarretar em bugs para os clientes, um exemplo disso é as excessivas chamadas de "RemoveBuildingForPlayer" durante o OnGameModeInit que poderia resultar no crash do cliente. +- Esta função também pode ser usada em um filterscript para detectar se a gamemode mudou através de [comandos do RCON](../../server/ControllingServer#comandos-do-rcon) como o "changemode" ou "gmx", pois mudar o gamemode não recarrega um filterscript. +- Quando usar OnGameModeExit em conjunto com o comando "rcon gmx" do console, mantenha em mente que há um potencial problema que pode acarretar em bugs para os clientes, um exemplo disso é as excessivas chamadas de [RemoveBuildingForPlayer](../functions/RemoveBuildingForPlayer) durante o [OnGameModeInit](OnGameModeInit) que poderia resultar no crash do cliente. - Esta callback não será chamada se o servidor crashar ou o processor ser finalizado por outros meios, como usando o comandos do Linux. ::: 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 188457bd02e9..9ee4f04602e0 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 @@ -27,7 +27,7 @@ public OnGameModeInit() :::tip -Esta função também pode ser usada em um filterscript para detectar se a gamemode mudou através de comandos do RCON como o "changemode" ou "gmx", pois mudar o gamemode não recarrega um filterscript. +Esta função também pode ser usada em um filterscript para detectar se a gamemode mudou através de [comandos do RCON](../../server/ControllingServer#comandos-do-rcon) como o "changemode" ou "gmx", pois mudar o gamemode não recarrega um filterscript. ::: 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 32cf62d23bfc..fe78f443174a 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 @@ -7,7 +7,7 @@ tags: [] ## Descrição -Esta callback é chamada quando um endereço de IP tenta conectar no servidor. Para bloquear tentativas de conexão, use BlockIpAddress. +Esta callback é chamada quando um endereço de IP tenta conectar no servidor. Para bloquear tentativas de conexão, use [BlockIpAddress](../functions/BlockIpAddress). | Nome | Descrição | | ------------ | ------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md index 771a7fa9f16f..0bcebb5a972e 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md @@ -7,7 +7,7 @@ tags: [] ## Descrição -Esta callback é chamada quando um objeto é movido após o MoveObject (quando para de se mover). +Esta callback é chamada quando um objeto é movido após o [MoveObject](../functions/MoveObject) (quando para de se mover). | Nome | Descrição | | -------- | ----------------------------- | @@ -31,7 +31,7 @@ public OnObjectMoved(objectid) :::note -SetObjectPos não funciona quando usado nesta callback. Para consertar isso, recrie o objeto. +[SetObjectPos](../functions/SetObjectPos) não funciona quando usado nesta callback. Para consertar isso, recrie o objeto. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md index d0ce852d4291..94d48af7dace 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md @@ -38,7 +38,8 @@ public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) :::note -Como o nome da callback diz, é apenas chamada quando o jogador marca o alvo no mapa, e não quandoa tecla é pressionada. O valor Z retornada será 0 (invalido) se a área clicada no mapa estiver muito distante do jogador. Use os plugins MapAndreas ou ColAndreas para receber uma coordenada Z mais precisa. +- Como o nome da callback diz, é apenas chamada quando o jogador marca o alvo no mapa, e não quandoa tecla é pressionada. +- O valor Z retornada será 0 (invalido) se a área clicada no mapa estiver muito distante do jogador. Use os plugins [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) ou [ColAndreas](https://github.com/Pottus/ColAndreas) para receber uma coordenada Z mais precisa. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayer.md index f78155a44196..2437fcb7e332 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayer.md @@ -9,11 +9,11 @@ tags: ["player"] Chamado quando um jogador realiza um clique duplo em um jogador no placar. -| Nome | Descrição | -| --------------- | ---------------------------------------------- | -| playerid | O ID do jogador que clicou em outro no placar. | -| clickedplayerid | O ID do jogador que foi clicado. | -| source | A fonte do clique do jogador. | +| Nome | Descrição | +| --------------- | ---------------------------------------------------------- | +| playerid | O ID do jogador que clicou em outro no placar. | +| clickedplayerid | O ID do jogador que foi clicado. | +| source | A [fonte](../resources/clicksources) do clique do jogador. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md index 36f8cb83ba07..1accf0f3d7dc 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md @@ -7,7 +7,7 @@ tags: ["player", "textdraw", "playertextdraw"] ## Descrição -Esta callback é chamada quando um jogador clica em uma player-textdraw. Não é chamada quando um jogador cancela o modo de seleção (pressionando ESC), entretanto, OnPlayerClickTextDraw é. +Esta callback é chamada quando um jogador clica em uma player-textdraw. Não é chamada quando um jogador cancela o modo de seleção (pressionando ESC), entretanto, [OnPlayerClickTextDraw](OnPlayerClickTextDraw) é. | Nome | Descrição | | ------------ | ----------------------------------------------- | @@ -73,7 +73,7 @@ public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) :::warning -Quando um jogador pressiona ESC para cancelar o modo de seleção, OnPlayerClickTextDraw será chamada com um ID de TextDraw de: 'INVALID_TEXT_DRAW' (para TextDraw's inválidas). Porém, OnPlayerClickPlayerTextDraw não será chamado neste mesmo caso. +Quando um jogador pressiona ESC para cancelar o modo de seleção, [OnPlayerClickTextDraw](OnPlayerClickTextDraw) será chamada com um ID de TextDraw de: 'INVALID_TEXT_DRAW' (para TextDraw's inválidas). Porém, OnPlayerClickPlayerTextDraw não será chamado neste mesmo caso. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md index 1f642e13c880..124faba0f8e0 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md @@ -70,7 +70,8 @@ public OnPlayerClickTextDraw(playerid, Text:clickedid) :::warning -A área 'clicável' é definida pelo TextDrawTextSize. Os parâmetros de X e Y passados pela função não devem ser "0" ou negativo. Não utilize CancelSelectTextDraw incondicionalmente dentro desta callback. Isso resultaria em um loop infinito. +- A área 'clicável' é definida pelo [TextDrawTextSize](../functions/TextDrawTextSize). Os parâmetros de X e Y passados pela função não devem ser "0" ou negativo. +- Não utilize [CancelSelectTextDraw](../functions/CancelSelectTextDraw) incondicionalmente dentro desta callback. Isso resultaria em um loop infinito. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md index ceac7007f390..ea4743b758fd 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md @@ -13,7 +13,7 @@ Esta callback é chamada quando um jogador morre, tanto por suicídio ou por ser | ------------- | ------------------------------------------------------------------------------------- | | playerid | O ID do jogador que morreu | | killerid | O ID do jogador que matou o jogador que morreu, ou INVALID_PLAYER_ID se não houve um. | -| WEAPON:reason | O ID do motivo da morte do jogador. | +| WEAPON:reason | O ID do [motivo da morte](../resources/weaponids) do jogador. | ## Retorno @@ -51,7 +51,7 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) - O motivo da morte retornará 37 (Lança Chamas) para qualquer fonte que utilize fogo (EX: Molotov). - O motivo da morte retornará 51 para qualquer fonte que utilize explosões (EX: RPG, granada). -- Você não precisa verificar se o `killerid` é valido antes de usa-lo no SendDeathMessage. INVALID_PLAYER_ID é um parâmetro valido nesta função. +- Você não precisa verificar se o `killerid` é valido antes de usa-lo no [SendDeathMessage](../functions/SendDeathMessage). INVALID_PLAYER_ID é um parâmetro valido nesta função. - `playerid` é o único que pode chamar esta callback. ::: 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 c119e784076d..e71b2ed8fd3a 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 @@ -59,7 +59,7 @@ public OnPlayerDisconnect(playerid, reason) :::note -Algumas funções podem não funcionar corretamente quando usadas nesta callback pois o jogador já está desconectado quando a callback é chamada. Isso significa que você não pode ter informações inequívocas de funções como GetPlayerIp e GetPlayerPos. (Corrigido em open.mp) +Algumas funções podem não funcionar corretamente quando usadas nesta callback pois o jogador já está desconectado quando a callback é chamada. Isso significa que você não pode ter informações inequívocas de funções como [GetPlayerIp](../functions/GetPlayerIp) e [GetPlayerPos](../functions/GetPlayerPos). (Corrigido em open.mp) ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditAttachedObject.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditAttachedObject.md index 4cc09ae5683d..ec8abaf3f645 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditAttachedObject.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditAttachedObject.md @@ -85,7 +85,7 @@ public OnPlayerEditAttachedObject(playerid, EDIT_RESPONSE:response, index, model :::warning -Edições devem ser discartadas se a resposta for '0' (cancelado). Isso deve ser feito armazenando os valores em uma arrat ANTES de usar EditAttachedObject. +Edições devem ser discartadas se a resposta for '0' (cancelado). Isso deve ser feito armazenando os valores em uma arrat ANTES de usar [EditAttachedObject](../functions/EditAttachedObject). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md index 6e42c22bc5aa..b9e0343b9d8b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md @@ -7,7 +7,7 @@ tags: ["player"] ## Descição -Esta callback é chamada quando um jogador termina de editar um objeto (EditObject/EditPlayerObject). +Esta callback é chamada quando um jogador termina de editar um objeto ([EditObject](../functions/EditObject)/[EditPlayerObject](../functions/EditPlayerObject)). | Name | Descrição | | ---------------------- | ------------------------------------------------------------- | 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 a0eb863074e2..56239f75f8d6 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 @@ -37,7 +37,8 @@ public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) :::note -Esta callback é chamada quando um jogador **começa** a entrar em um veículo, não quando ele entram nele. Veja OnPlayerStateChange. Esta callback ainda é chamada se o jogador for impedido de entrar no veículo. +- Esta callback é chamada quando um jogador **começa** a entrar em um veículo, não quando ele entram nele. Veja [OnPlayerStateChange](OnPlayerStateChange). +- Esta callback ainda é chamada se o jogador for impedido de entrar no veículo. ::: 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 12371e4c2183..85024ced36d0 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 @@ -34,7 +34,8 @@ public OnPlayerExitVehicle(playerid, vehicleid) :::warning -Não é chamada quando o jogador cai de uma bicicleta ou é removido do veículo por outros meios como o uso do SetPlayerPos. Você deve usar OnPlayerStateChange e checar se o antigo estado é PLAYER_STATE_DRIVER ou PLAYER_STATE_PASSENGER e se o novo estado é PLAYER_STATE_ONFOOT. +- Não é chamada quando o jogador cai de uma bicicleta ou é removido do veículo por outros meios como o uso do [SetPlayerPos](../functions/SetPlayerPos). +- Você deve usar [OnPlayerStateChange](OnPlayerStateChange) e checar se o antigo estado é PLAYER_STATE_DRIVER ou PLAYER_STATE_PASSENGER e se o novo estado é PLAYER_STATE_ONFOOT. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md index eb854b4aba5b..d6ab7f8dbdc7 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md @@ -9,13 +9,13 @@ tags: ["player"] Esta callback é chamada quando um jogador causa danos a algum jogador. -| Nome | Descrição | -| ---------------------------------- | ----------------------------------- | -| playerid | O ID do jogador que causou o dano. | -| damagedid | O ID do jogador que recebeu o dano. | -| Float:amount | A quantidade de dano causado. | -| WEAPON:weaponid | O motivo que causou o dano. | -| [bodypart](../resources/bodyparts) | A parte do corpo que foi atingida. | +| Nome | Descrição | +| ---------------------------------- | ----------------------------------------------------- | +| playerid | O ID do jogador que causou o dano. | +| damagedid | O ID do jogador que recebeu o dano. | +| Float:amount | A quantidade de dano causado. | +| WEAPON:weaponid | O [motivo](../resources/weaponids) que causou o dano. | +| [bodypart](../resources/bodyparts) | A parte do corpo que foi atingida. | ## Retorno @@ -55,7 +55,7 @@ public OnPlayerGiveDamage(playerid, damagedid, Float:amount, WEAPON:weaponid, bo :::tip -Se deseja impedir que um determinado player cause dano a outro use SetPlayerTeam. +Se deseja impedir que um determinado player cause dano a outro use [SetPlayerTeam](../functions/SetPlayerTeam). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md index 4b986bfc33de..1776d3e35692 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md @@ -11,13 +11,13 @@ tags: ["player"] Esta callback é chamada quando o jogador causa dano a um ator. -| Nome | Descrição | -| --------------- | --------------------------------------------------------- | -| playerid | ID do jogador que realizou o dano. | -| damaged_actorid | ID do ator que recebeu o dano. | -| Float:amount | A quantidade de vida/colete que o damaged_actorid perdeu. | -| WEAPON:weaponid | O motivo que causou o dano. | -| bodypart | A parte do corpo que foi acertada | +| Nome | Descrição | +| --------------- | ----------------------------------------------------------- | +| playerid | ID do jogador que realizou o dano. | +| damaged_actorid | ID do ator que recebeu o dano. | +| Float:amount | A quantidade de vida/colete que o damaged_actorid perdeu. | +| WEAPON:weaponid | O [motivo](../resources/weaponids) que causou o dano. | +| bodypart | A [parte do corpo](../resources/bodyparts) que foi acertada | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerInteriorChange.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerInteriorChange.md index 3463a37d1354..b00830070b3e 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerInteriorChange.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerInteriorChange.md @@ -7,7 +7,7 @@ tags: ["player"] ## Descrição -Chamada quando um jogador muda de interior. Pode ser chamada pela função SetPlayerInterior ou quando um jogador entre/sai de uma construção. +Chamada quando um jogador muda de interior. Pode ser chamada pela função [SetPlayerInterior](../functions/SetPlayerInterior) ou quando um jogador entre/sai de uma construção. | Nome | Descrição | | ------------- | ------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveCheckpoint.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveCheckpoint.md index e5fbdfb7b5c2..4783ab7ca4e2 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveCheckpoint.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveCheckpoint.md @@ -7,7 +7,7 @@ tags: ["player", "checkpoint"] ## Descrição -Esta callback é chamada quando um jogador sai de um checkpoint definido para eles por SetPlayerCheckpoint. Apenas um checkpoint pode ser definido por vez. +Esta callback é chamada quando um jogador sai de um checkpoint definido para eles por [SetPlayerCheckpoint](../functions/SetPlayerCheckpoint). Apenas um checkpoint pode ser definido por vez. | Nome | Descrição | | -------- | -------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerObjectMoved.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerObjectMoved.md index fd886c12b645..f5c980f714b7 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerObjectMoved.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerObjectMoved.md @@ -7,7 +7,7 @@ tags: ["player"] ## Descrição -Esta callback é chamada quando o objeto de um jogador é movido após o MovePlayerObject (quando para de se mover). +Esta callback é chamada quando o objeto de um jogador é movido após o [MovePlayerObject](../functions/MovePlayerObject) (quando para de se mover). | Nome | Descrição | | -------- | ---------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md index 699444d77df7..2176e3c23d07 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md @@ -7,12 +7,12 @@ tags: ["player"] ## Descrição -Esta callback é chamada quando um jogador coleta um pickup criado com CreatePickup. +Esta callback é chamada quando um jogador coleta um pickup criado com [CreatePickup](../functions/CreatePickup). -| Nome | Descrição | -| -------- | ------------------------------------------------- | -| playerid | O ID do jogador que coletou o pickup. | -| pickupid | O ID do pickup retornado através do CreatePickup. | +| Nome | Descrição | +| -------- | ------------------------------------------------------------------------------ | +| playerid | O ID do jogador que coletou o pickup. | +| pickupid | O ID do pickup retornado através do [CreatePickup](../functions/CreatePickup). | ## Retorno 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 225bb3d5962e..74d5879fe618 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 @@ -9,10 +9,10 @@ tags: ["player"] Chamado quando um jogador muda de classe na seleção de classe (e quando a seleção de classe aparece pela primeira vez). -| Nome | Descrição | -| -------- | --------------------------------------------------------------------------- | -| playerid | O ID do jogador que mudou de classe | -| classid | O ID da classe atual que está sendo vista (retornardo pelo AddPlayerClass). | +| Nome | Descrição | +| -------- | ---------------------------------------------------------------------------------------------------------- | +| playerid | O ID do jogador que mudou de classe | +| classid | O ID da classe atual que está sendo vista (retornardo pelo [AddPlayerClass](../functions/AddPlayerClass)). | ## Retorno 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 3d4977e88887..063ed75c6649 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 @@ -39,7 +39,7 @@ public OnPlayerRequestSpawn(playerid) :::tip -Para previnir jogadores de spawnar em determinadas classes, a última classe vista deve ser salva em uma variavel em OnPlayerRequestClass. +Para previnir jogadores de spawnar em determinadas classes, a última classe vista deve ser salva em uma variavel em [OnPlayerRequestClass](OnPlayerRequestClass). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectObject.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectObject.md index e81b7d856f3b..7423fdb96009 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectObject.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectObject.md @@ -7,7 +7,7 @@ tags: ["player"] ## Descrição -Esta callback é chamada quando um jogador seleciona um objeto após SelectObject ser usado. +Esta callback é chamada quando um jogador seleciona um objeto após [SelectObject](../functions/SelectObject) ser usado. | Nome | Descrição | | -------- | --------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectedMenuRow.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectedMenuRow.md index 93eb3c383e42..bf11fed2ec19 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectedMenuRow.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectedMenuRow.md @@ -7,7 +7,7 @@ tags: ["player", "menu"] ## Descrição -Esta callback é chamada quano um jogador seleciona um item de um menu (ShowMenuForPlayer). +Esta callback é chamada quano um jogador seleciona um item de um menu ([ShowMenuForPlayer](../functions/ShowMenuForPlayer)). | Nome | Descrição | | -------- | ---------------------------------------------------------------- | @@ -49,7 +49,7 @@ public OnPlayerSelectedMenuRow(playerid, row) :::note -O ID do menu não é passado através da callback, portanto, GetPlayerMenu deve ser utilizado para determinar em qual menu o jogador selecionou o item. +O ID do menu não é passado através da callback, portanto, [GetPlayerMenu](../functions/GetPlayerMenu) deve ser utilizado para determinar em qual menu o jogador selecionou o item. ::: 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 2bc7587a0360..b42b23970b5f 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 @@ -7,7 +7,7 @@ tags: ["player"] ## Descrição -Este evento é chamado quando um spawna. (Após chamada da função SpawnPlayer) +Este evento é chamado quando um spawna. (Após chamada da função [SpawnPlayer](../functions/SpawnPlayer)) | Nome | Descrição | | -------- | -------------------------- | 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 01c56f4626d4..eabb653bdee2 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 @@ -7,7 +7,7 @@ tags: ["player"] ## Descrição -Esta callback é chamada quando o estado de um jogador muda. Por exemplo, quando um jogador deixa de ser o piloto de um veículo e fica a pé. +Esta callback é chamada quando o [estado](../resources/playerstates) de um jogador muda. Por exemplo, quando um jogador deixa de ser o piloto de um veículo e fica a pé. | Nome | Desrição | | -------- | ------------------------------------------- | @@ -15,8 +15,6 @@ Esta callback é chamada quando o estado de um jogador muda. Por exemplo, quando | newstate | O novo estado do jogador. | | oldstate | O antigo estado do jogador. | -Verifique em [Player States](../resources/playerstates) a lista de todos os estados disponíveis. - ## Retorno Sempre é chamada primeiro em filterscripts. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md index b4865d137ef7..84e3fca9629b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md @@ -14,7 +14,7 @@ Esta callback é chama quando algum jogador recebe dano. | playerid | O ID do jogador que recebeu determinado dano. | | issuerid | O ID do jogador que causou o dano. INVALID_PLAYER_ID se o dano for auto-infligido. | | Float:amount | A quantidade de dano total que o jogador recebey (vida e colete combinados). | -| WEAPON:weaponid | O ID da arma/razão do determinado dano. | +| WEAPON:weaponid | O ID da [arma/razão](../resources/weaponids) do determinado dano. | | bodypart | A [Parte do Corpo](../resources/bodyparts) que foi atingida. | ## Retornos @@ -75,7 +75,7 @@ public OnPlayerTakeDamage(playerid, issuerid, Float:amount, WEAPON:weaponid, bod :::warning -- GetPlayerHealth e GetPlayerArmour retornarão as quantidades específicas anteriores a chamada desta callback. +- [GetPlayerHealth](../functions/GetPlayerHealth) e [GetPlayerArmour](../functions/GetPlayerArmour) retornarão as quantidades específicas anteriores a chamada desta callback. - **Sempre** verifique se o ID do jogador que causou o dano (`issuerid`) é válido antes de usá-lo como index de uma array. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md index 6da44cc56214..5439a4aa8809 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md @@ -43,10 +43,10 @@ public OnPlayerWeaponShot(playerid, WEAPON:weaponid, BULLET_HIT_TYPE:hittype, hi :::note -Essa callback é executada somente quando o "lag compensation" está **ativado**. Caso o **tipo de acerto** seja: - -- `BULLET_HIT_TYPE_NONE`: Os parâmetros **fX**, **fY** e **fZ** irão retornar 0.0 nas coordenadas, caso não haja acerto em nenhuma superficíe (ex. Objeto distante no qual a bala não consegue chegar); -- Outros: Os parâmetros **fX**, **fY** e **fZ** são offsets relativos ao **hitid**. +- Essa callback é executada somente quando o [lag compensation](../../server/LagCompensation) está **ativado**. +- Caso o **tipo de acerto** seja: + - `BULLET_HIT_TYPE_NONE`: Os parâmetros **fX**, **fY** e **fZ** irão retornar 0.0 nas coordenadas, caso não haja acerto em nenhuma superficíe (ex. Objeto distante no qual a bala não consegue chegar); + - Outros: Os parâmetros **fX**, **fY** e **fZ** são offsets relativos ao **hitid**. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md index 6c6b98997bdf..c128cd57a05b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md @@ -47,7 +47,7 @@ public OnRconCommand(cmd[]) - "/rcon " não está inclusa no "cmd" quando um player utiliza um comando. - Caso você utilize a função "print", uma mensagem será enviada para o jogador que digitou o comando in-game e também no log do servidor. - Essa callback não é executada caso o jogador não esteja logado na RCON. -- Quando o jogador não está logado na RCON como admin ele deve usar o comando `/rcon login`, a callback OnRconLoginAttempt será executada ao invés da OnRconCommand. Apesar disso, quando o jogador fizer login na RCON como admin, o uso do comando /rcon fará com que o mesmo execute a callback OnRconCommand. +- Quando o jogador não está logado na RCON como admin ele deve usar o comando `/rcon login`, a callback [OnRconLoginAttempt](OnRconLoginAttempt) será executada ao invés da OnRconCommand. Apesar disso, quando o jogador fizer login na RCON como admin, o uso do comando /rcon fará com que o mesmo execute a callback OnRconCommand. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md index bc6ed1214f5b..c06f90283a5b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md @@ -47,7 +47,7 @@ public OnRconLoginAttempt(ip[], password[], success) :::note - Essa callback é executada somente quando o comando `/rcon login` é utilizado in-game. -- É executada somente quando o jogador não está logado na RCON. Quando o jogador já está logado na RCON a callback OnRconCommand é executada ao invés dessa. +- É executada somente quando o jogador não está logado na RCON. Quando o jogador já está logado na RCON a callback [OnRconCommand](OnRconCommand) é executada ao invés dessa. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md index f2bdb777e98d..f9405b7d2886 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md @@ -45,6 +45,7 @@ public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_ :::warning -Essa callback é executada com frequência a cada segundo, por veículo não ocupado. Você deve evitar realizar grandes operações de gravação e leitura de arquivos. A função GetVehiclePos irá retornar coordenadas antigas da posição do veículo (antes do update). +- Essa callback é executada com frequência a cada segundo, por veículo não ocupado. Você deve evitar realizar grandes operações de gravação e leitura de arquivos. +- A função [GetVehiclePos](../functions/GetVehiclePos) irá retornar coordenadas antigas da posição do veículo (antes do update). ::: 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 7ac5b33c7518..90ce0c641b6f 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 @@ -39,7 +39,7 @@ public OnVehicleMod(playerid, vehicleid, componentid) :::note -Essa callback NÃO É EXECUTADA ao utilizar a função AddVehicleComponent. +Essa callback NÃO É EXECUTADA ao utilizar a função [AddVehicleComponent](../functions/AddVehicleComponent). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md index 675eae64dea5..6fc76e656abf 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md @@ -19,7 +19,7 @@ Executada quando um jogador pré-visualiza um paintjob na garagem (modshop). Cui | ---------- | ----------------------------------------------------- | | playerid | ID do jogador que está mudando o paintjob do veículo. | | vehicleid | ID do veículo que está mudando o paintjob. | -| paintjobid | ID do novo paintjob. | +| paintjobid | ID do novo [paintjob](../resources/paintjobs). | ## Retornos @@ -41,7 +41,8 @@ public OnVehiclePaintjob(playerid, vehicleid, paintjobid) :::note -Essa callback não é executada pela função ChangeVehiclePaintjob. Você deve utilizar o OnVehicleChangePaintjob juntamente com o vSync para saber exatamente quando o player **fez a compra**. +- Essa callback não é executada pela função [ChangeVehiclePaintjob](../functions/ChangeVehiclePaintjob). +- Você deve utilizar o OnVehicleChangePaintjob juntamente com o [vSync](https://github.com/Vasily-X/vSync) para saber exatamente quando o player **fez a compra**. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md index 614c6c6c5b1b..c412ffa022bc 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md @@ -36,7 +36,8 @@ public OnVehicleRespray(playerid, vehicleid, color1, color2) :::note -Essa callback não é chamada ao usar ChangeVehicleColor. Estranhamente, não é chamada também ao ir em uma Oficina de Pintura (só Garagens de Personalização). +- Essa callback não é chamada ao usar [ChangeVehicleColor](../functions/ChangeVehicleColor). +- Estranhamente, não é chamada também ao ir em uma Oficina de Pintura (só Garagens de Personalização). Código para conserto: https://pastebin.com/G81da7N1 diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md index 1ab74fc07260..c5eb6ed18c55 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md @@ -13,7 +13,7 @@ Essa callback **só é chamada** quando um veículo **re**nasce. CreateVehicle e ## Descrição -Essa callback é chamada quando um veículo renasce. +Essa callback é chamada quando um veículo **re**nasce. | Nome | Descrição | | --------- | ------------------------------------- | 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 422310b1f8f1..213900c3f209 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 @@ -9,14 +9,14 @@ tags: [] -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). +Adiciona um novo [modelo de personagem](SetPlayerSkin) 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](../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). | +| 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](SetPlayerSkin). | +| dffname | Nome do arquivo de extensão **.dff** localizado na pasta do servidor de modelos por padrão (configuração [artpath](../../server/server.cfg#modelos-personalizados)). | +| txdname | Nome do arquivo de textura de extensão **.txd** localizado na pasta do servidor de modelos por padrão (configuração [artpath](../../server/server.cfg#modelos-personalizados)). | ## Retorno @@ -39,13 +39,13 @@ public OnGameModeInit() :::note -**useartwork** deve ser habilitado primeiro nas configurações do servidor para que essa função funcione. +**useartwork** deve ser habilitado primeiro nas [configurações do servidor](../../server/server.cfg#modelos-personalizados) para que essa função funcione. ::: :::warning -Atualmente não há restrições sobre quando você pode chamar esta função, mas esteja ciente de que se você não chamá-los dentro de OnFilterScriptInit ou OnGameModeInit, você corre o risco de que alguns jogadores, que já estão no servidor, não tenham baixado os modelos. +Atualmente não há restrições sobre quando você pode chamar esta função, mas esteja ciente de que se você não chamá-los dentro de [OnFilterScriptInit](../callbacks/OnFilterScriptInit) ou [OnGameModeInit](../callbacks/OnGameModeInit), você corre o risco de que alguns jogadores, que já estão no servidor, não tenham baixado os modelos. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md index 10f0e217234f..0b4656e94ae4 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md @@ -42,7 +42,10 @@ Gera um crash quando é passado um ID de menu inválido. (Corrigido em open.mp) :::note -Cada menu só pode ter até 12 itens (o 13º vai para o lado direito do cabeçalho do nome da coluna (colorido), o 14º e posteriores não são exibidos). É possível usar apenas 2 colunas (0 e 1). Cada item só pode ter até 8 códigos de cor (`~r~`, `~g~` etc.). O tamanho máximo do título do item de menu é de 31 símbolos. +- Cada menu só pode ter até 12 itens (o 13º vai para o lado direito do cabeçalho do nome da coluna (colorido), o 14º e posteriores não são exibidos). +- É possível usar apenas 2 colunas (0 e 1). +- Cada item só pode ter até 8 códigos de cor (`~r~`, `~g~` etc.). +- O tamanho máximo do título do item de menu é de 31 símbolos. ::: 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 049ab83f5b2f..2936e6a71021 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 @@ -9,19 +9,19 @@ tags: [] 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. -| Nome | Descrição | -| -------------- | --------------------------------------------------------- | -| modelid | A skin com a qual o jogador irá dar spawn. | -| Float: spawn_x | A coordenada X do ponto de spawn desta classe. | -| Float: spawn_y | A coordenada Y do ponto de spawn desta classe. | -| Float: spawn_z | A coordenada Z do ponto de desova desta classe. | -| Float: z_angle | O ângulo Z que o jogador deverá ser voltado após o spawn. | -| weapon1 | A primeira arma com que o jogador irá dar spawn. | -| weapon1_ammo | A quantidade de munição para a arma primária. | -| weapon2 | A segunda arma com que o jogador irá dar spawn. | -| weapon2_ammo | A quantidade de munição para a arma secundária. | -| weapon3 | A terceira arma com que o jogador irá dar spawn. | -| weapon3_ammo | A quantidade de munição para a arma terciária. | +| Nome | Descrição | +| -------------- | -------------------------------------------------------------------------- | +| modelid | A [skin](../resources/skins) com a qual o jogador irá dar spawn. | +| Float: spawn_x | A coordenada X do ponto de spawn desta classe. | +| Float: spawn_y | A coordenada Y do ponto de spawn desta classe. | +| Float: spawn_z | A coordenada Z do ponto de desova desta classe. | +| Float: z_angle | O ângulo Z que o jogador deverá ser voltado após o spawn. | +| weapon1 | A primeira [arma](../resources/weaponids) com que o jogador irá dar spawn. | +| weapon1_ammo | A quantidade de munição para a arma primária. | +| weapon2 | A segunda [arma](../resources/weaponids) com que o jogador irá dar spawn. | +| weapon2_ammo | A quantidade de munição para a arma secundária. | +| weapon3 | A terceira [arma](../resources/weaponids) com que o jogador irá dar spawn. | +| weapon3_ammo | A quantidade de munição para a arma terciária. | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md index ca88e03eed4d..1067f9439f57 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md @@ -7,22 +7,22 @@ tags: [] ## Descrição -Esta função é exatamente igual à função AddPlayerClass, com a adição de um parâmetro de equipe. - -| Nome | Descrição | -| -------------- | --------------------------------------------------------- | -| teamid | A equipe em que o jogador deverá dar spawn. | -| modelid | A skin com a qual o jogador irá dar spawn. | -| Float: spawn_x | A coordenada X do ponto de spawn desta classe. | -| Float: spawn_y | A coordenada Y do ponto de spawn desta classe. | -| Float: spawn_z | A coordenada Z do ponto de desova desta classe. | -| Float: z_angle | O ângulo Z que o jogador deverá ser voltado após o spawn. | -| weapon1 | A primeira arma com que o jogador irá dar spawn. | -| weapon1_ammo | A quantidade de munição para a arma primária. | -| weapon2 | A segunda arma com que o jogador irá dar spawn. | -| weapon2_ammo | A quantidade de munição para a arma secundária. | -| weapon3 | A terceira arma com que o jogador irá dar spawn. | -| weapon3_ammo | A quantidade de munição para a arma terciária. | +Esta função é exatamente igual à função [AddPlayerClass](AddPlayerClass), com a adição de um parâmetro de equipe. + +| Nome | Descrição | +| -------------- | -------------------------------------------------------------------------- | +| teamid | A equipe em que o jogador deverá dar spawn. | +| modelid | A [skin](../resources/skins) com a qual o jogador irá dar spawn. | +| Float: spawn_x | A coordenada X do ponto de spawn desta classe. | +| Float: spawn_y | A coordenada Y do ponto de spawn desta classe. | +| Float: spawn_z | A coordenada Z do ponto de desova desta classe. | +| Float: z_angle | O ângulo Z que o jogador deverá ser voltado após o spawn. | +| weapon1 | A primeira [arma](../resources/weaponids) com que o jogador irá dar spawn. | +| weapon1_ammo | A quantidade de munição para a arma primária. | +| weapon2 | A segunda [arma](../resources/weaponids) com que o jogador irá dar spawn. | +| weapon2_ammo | A quantidade de munição para a arma secundária. | +| weapon3 | A terceira [arma](../resources/weaponids) com que o jogador irá dar spawn. | +| weapon3_ammo | A quantidade de munição para a arma terciária. | ## Retorno 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 cd5b3d220dd1..f60a4453dbad 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 @@ -9,15 +9,15 @@ tags: [] ## Descrição -Adiciona um novo modelo de objeto simples 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. +Adiciona um novo [modelo de objeto](CreateObject) simples 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](https://en.wikipedia.org/wiki/Cyclic_redundancy_check). -| Nome | Descrição | -| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | -| virtualworld | O ID do mundo virtual ao qual pretende colocar o modelo. Use -1 para todos os mundos. | -| baseid | O ID do modelo do objeto original a ser usado como base (objeto original é usado se o download falhar). | -| newid | O ID do modelo do novo objeto. Varia entre -1000 a -30000 (29000 slots) para serem usados posteriormente com CreateObject ou CreatePlayerObject. | -| 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 | +| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| virtualworld | O [ID do mundo virtual](SetPlayerVirtualWorld) ao qual pretende colocar o modelo. Use -1 para todos os mundos. | +| baseid | O [ID do modelo do objeto](https://models.open.mp/?cat=objects) original a ser usado como base (objeto original é usado se o download falhar). | +| newid | O ID do modelo do novo objeto. Varia entre -1000 a -30000 (29000 slots) para serem usados posteriormente com [CreateObject](CreateObject) ou [CreatePlayerObject](CreatePlayerObject). | +| dffname | Nome do arquivo de extensão **.dff** localizado na pasta do servidor de modelos por padrão (configuração [artpath](../../server/server.cfg#modelos-personalizados)). | +| txdname | Nome do arquivo de textura de extensão **.txd** localizado na pasta do servidor de modelos por padrão (configuração [artpath](../../server/server.cfg#modelos-personalizados)). | ## Retorno @@ -39,13 +39,13 @@ public OnGameModeInit() :::note -**useartwork** deve ser habilitado primeiro nas configurações do servidor para que essa função funcione. +**useartwork** deve ser habilitado primeiro nas [configurações do servidor](../../server/server.cfg#modelos-personalizados) para que essa função funcione. ::: :::warning -Atualmente não há restrições sobre quando você pode chamar esta função, mas esteja ciente de que se você não chamá-los dentro de OnFilterScriptInit ou OnGameModeInit, você corre o risco de que alguns jogadores, que já estão no servidor, não tenham baixado os modelos. +Atualmente não há restrições sobre quando você pode chamar esta função, mas esteja ciente de que se você não chamá-los dentro de [OnFilterScriptInit](../callbacks/OnFilterScriptInit) ou [OnGameModeInit](../callbacks/OnGameModeInit), você corre o risco de que alguns jogadores, que já estão no servidor, não tenham baixado os modelos. ::: 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 63c7499a0c17..b7133fd170e7 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 @@ -9,17 +9,17 @@ tags: [] ## Descrição -Adiciona um novo modelo de objeto simples 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. - -| Nome | Descrição | -| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | -| virtualworld | O ID do mundo virtual ao qual pretende colocar o modelo. Use -1 para todos os mundos. | -| baseid | O ID do modelo do objeto original a ser usado como base (objeto original é usado se o download falhar). | -| newid | O ID do modelo do novo objeto. Varia entre -1000 a -30000 (29000 slots) para serem usados posteriormente com CreateObject ou CreatePlayerObject. | -| 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). | -| timeon | O horário do jogo (em horas) em que este objeto irá aparecer. | -| timeoff | O horário do jogo (em horas) em que este objecto irá desaparecer. | +Adiciona um novo [modelo de objeto](CreateObject) simples 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](https://en.wikipedia.org/wiki/Cyclic_redundancy_check). + +| Nome | Descrição | +| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| virtualworld | O [ID do mundo virtual](SetPlayerVirtualWorld) ao qual pretende colocar o modelo. Use -1 para todos os mundos. | +| baseid | O [ID do modelo do objeto](https://models.open.mp/?cat=objects) original a ser usado como base (objeto original é usado se o download falhar). | +| newid | O ID do modelo do novo objeto. Varia entre -1000 a -30000 (29000 slots) para serem usados posteriormente com [CreateObject](CreateObject) ou [CreatePlayerObject](CreatePlayerObject). | +| dffname | Nome do arquivo de extensão **.dff** localizado na pasta do servidor de modelos por padrão (configuração [artpath](../../server/server.cfg#modelos-personalizados)). | +| txdname | Nome do arquivo de textura de extensão **.txd** localizado na pasta do servidor de modelos por padrão (configuração [artpath](../../server/server.cfg#modelos-personalizados)). | +| timeon | O horário do jogo (em horas) em que este objeto irá aparecer. | +| timeoff | O horário do jogo (em horas) em que este objecto irá desaparecer. | ## Retorno @@ -41,13 +41,13 @@ public OnGameModeInit() :::note -**useartwork** deve ser habilitado primeiro nas configurações do servidor para que essa função funcione. +**useartwork** deve ser habilitado primeiro nas [configurações do servidor](../../server/server.cfg#modelos-personalizados) para que essa função funcione. ::: :::warning -Atualmente não há restrições sobre quando você pode chamar esta função, mas esteja ciente de que se você não chamá-los dentro de OnFilterScriptInit ou OnGameModeInit, você corre o risco de que alguns jogadores, que já estão no servidor, não tenham baixado os modelos. +Atualmente não há restrições sobre quando você pode chamar esta função, mas esteja ciente de que se você não chamá-los dentro de [OnFilterScriptInit](../callbacks/OnFilterScriptInit) ou [OnGameModeInit](../callbacks/OnGameModeInit), você corre o risco de que alguns jogadores, que já estão no servidor, não tenham baixado os modelos. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md index c7cf4db2ce67..c06b402fd153 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md @@ -43,7 +43,7 @@ public OnGameModeInit() :::note -Esta função não retorna um pickup ID que você pode usar, por exemplo, em OnPlayerPickUpPickup. Use CreatePickup se desejar atribuir IDs. +Esta função não retorna um pickup ID que você pode usar, por exemplo, em [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup). Use [CreatePickup](CreatePickup) se desejar atribuir IDs. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicle.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicle.md index c797be0f014b..66bcaddd5c81 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicle.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicle.md @@ -11,7 +11,7 @@ Adiciona um veículo 'fixo' (modelos são pré-carregados para os jogadores) ao | Name | Descrição | | ------------------------------------- | ------------------------------------------ | -| modelid | O modelo ID para o veículo. | +| [modelid](../resources/vehicleid) | O modelo ID para o veículo. | | Float:spawn_X | A coordenada-X para o veículo. | | Float:spawn_Y | A coordenada-Y para o veículo. | | Float:spawn_Z | A coordenada-Z para o veículo. | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md index d62bcc76ec0a..12d0daa3de3c 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md @@ -7,11 +7,11 @@ tags: ["vehicle"] ## Descrição -Adiciona um veículo 'fixo' (modelos são pré-carregados para os jogadores) ao gamemode. Diferente do AddStaticVehicle numa única maneira: permite re-spawnar após um tempo, quando o veículo estiver sem condutor. +Adiciona um veículo 'fixo' (modelos são pré-carregados para os jogadores) ao gamemode. Diferente do [AddStaticVehicle](AddStaticVehicle) numa única maneira: permite re-spawnar após um tempo, quando o veículo estiver sem condutor. | Nome | Descrição | | ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| modelid | O modelo ID para o veículo. | +| [modelid](../resources/vehicleid) | O modelo ID para o veículo. | | Float:spawn_X | A coordenada-X para o veículo. | | Float:spawn_Y | A coordenada-Y para o veículo. | | Float:spawn_Z | A coordenada-Z para o veículo. | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddVehicleComponent.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddVehicleComponent.md index a922e2a88ecb..c778f475acaa 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddVehicleComponent.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AddVehicleComponent.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Descrição -Adiciona um 'componente' (frequentemente chamado de 'mod' (modificação)) a um veículo. Componentes válidos podem ser encontrados aqui. +Adiciona um 'componente' (frequentemente chamado de 'mod' (modificação)) a um veículo. Componentes válidos podem ser encontrados [aqui](../resources/carcomponentid). | Name | Descrição | | ------------------------------------------ | ----------------------------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md index 0e4b3306a7a4..9a76b79f9e9f 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md @@ -14,8 +14,8 @@ Aplica uma animação a um ator. | Nome | Descrição | | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | actorid | O ID do ator a aplicar a animação. | -| animlib[] | A biblioteca de animação da qual aplicar a animação. | -| animname[] | O nome da animação a aplicar, dentro da biblioteca especificada. | +| animlib[] | A [biblioteca de animação](../resources/animations) da qual aplicar a animação. | +| animname[] | O nome da [animação](../resources/animations) a aplicar, dentro da biblioteca especificada. | | fDelta | A velocidade para reproduzir a animação (use 4.1). | | loop | Se definido **1**, a animação irá repetir. Se definido **0**, a animação vai reproduzir uma vez. | | lockx | Se definido **0**, o ator vai retornar à sua coordenada X antiga, assim que a animação concluir (para animações que o ator move, como caminhar). **1** não irá retornar à posição antiga. | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md index 78e50cae11c3..60155eadaf9c 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md @@ -11,8 +11,8 @@ Aplica uma animação a um jogador. | Nome | Descrição | | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | playerid | O ID do jogador a aplicar a animação. | -| animlib[] | A biblioteca de animação da qual aplicar a animação. | -| animname[] | O nome da animação a aplicar, dentro da biblioteca especificada. | +| animlib[] | A [biblioteca de animação](../resources/animations) da qual aplicar a animação. | +| animname[] | O nome da [animação](../resources/animations) a aplicar, dentro da biblioteca especificada. | | fDelta | A velocidade para reproduzir a animação (use 4.1). | | loop | Se **1**, a animação irá repetir. Se definido **0**, a animação vai reproduzir uma vez. | | lockx | Se **0**, o ator irá retornar à sua coordenada X antiga assim que a animação concluir(para animações que o ator se mova, como caminhar). **1** não irá retornar à posição antiga. | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AreAllAnimationsEnabled.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AreAllAnimationsEnabled.md index 894c90f06d3f..9950fbae53df 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AreAllAnimationsEnabled.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AreAllAnimationsEnabled.md @@ -14,6 +14,7 @@ As animações ausentes em algumas versões estão habilitadas? ## Retorno true: Habilitado. + false: Desabilitado. ## Exemplos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AreInteriorWeaponsAllowed.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AreInteriorWeaponsAllowed.md index aa942711ef77..6017aa631d1b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AreInteriorWeaponsAllowed.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AreInteriorWeaponsAllowed.md @@ -14,6 +14,7 @@ Armas podem ser usadas em interiores? ## Retorno true: Permitido. + false: Não permitido. ## Exemplos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ArePlayerWeaponsAllowed.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ArePlayerWeaponsAllowed.md index 4432958d85f4..3915bda76eab 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ArePlayerWeaponsAllowed.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ArePlayerWeaponsAllowed.md @@ -18,6 +18,7 @@ O jogador pode usar armas? ## Retorno **true** - Jogador está permitido. + **false** - Jogador não está permitido. ## Exemplos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md index 3857776d3806..4130a9f124c3 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md @@ -9,13 +9,13 @@ tags: ["player", "3dtextlabel"] Anexa uma text label 3D a um jogador. -| Nome | Descrição | -| ------------- | --------------------------------------------------------------------- | -| Text3D:textid | O ID da text label 3D a ser anexada. Retornado por Create3DTextLabel. | -| playerid | O ID do jogador ao qual deseja anexar a text label 3D. | -| OffsetX | O deslocamento (offset) X da text label 3D até ao jogador. | -| OffsetY | O deslocamento (offset) Y da text label 3D até ao jogador. | -| OffsetZ | O deslocamento (offset) Z da text label 3D até ao jogador. | +| Nome | Descrição | +| ------------- | ------------------------------------------------------------------------------------------ | +| Text3D:textid | O ID da text label 3D a ser anexada. Retornado por [Create3DTextLabel](Create3DTextLabel). | +| playerid | O ID do jogador ao qual deseja anexar a text label 3D. | +| OffsetX | O deslocamento (offset) X da text label 3D até ao jogador. | +| OffsetY | O deslocamento (offset) Y da text label 3D até ao jogador. | +| OffsetZ | O deslocamento (offset) Z da text label 3D até ao jogador. | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToObject.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToObject.md index 12dc44d39dc1..052359bbb25a 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToObject.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToObject.md @@ -38,7 +38,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -Você precisa criar o objeto primeiro, antes de tentar conectar uma câmera do jogador. +Você precisa [criar](CreateObject) o objeto primeiro, antes de tentar conectar uma câmera do jogador. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToPlayerObject.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToPlayerObject.md index ea70a3b5db15..7094bf72ef83 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToPlayerObject.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToPlayerObject.md @@ -7,7 +7,7 @@ tags: ["player", "camera"] ## Descrição -Anexa a câmera de um jogador a um objeto do jogador. O jogador consegue mover sua câmera enquanto ela está anexada a um objeto. Pode ser usada com MovePlayerObject e AttachPlayerObjectToVehicle. +Anexa a câmera de um jogador a um objeto do jogador. O jogador consegue mover sua câmera enquanto ela está anexada a um objeto. Pode ser usada com [MovePlayerObject](MovePlayerObject) e [AttachPlayerObjectToVehicle](AttachPlayerObjectToVehicle). | Nome | Descrição | | -------------- | ------------------------------------------------------------------- | @@ -38,7 +38,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -O objeto do jogador deve ser criado antes de tentar anexar a câmera do jogador a ele. +O objeto do jogador deve ser [criado](CreatePlayerObject) antes de tentar anexar a câmera do jogador a ele. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md index 70262ad98020..ea8cb0e2f94b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md @@ -24,6 +24,7 @@ Você pode usar esta função para anexar objetos a outros objetos. Os objetos s ## Retorno **true** - A função foi executada com sucesso. + **false** - A função falhou ao executar. Isso significa que o primeiro objeto (objectid) não existe. Não há verificações internas para verificar se o segundo objeto (attachtoid) existe. ## Exemplos @@ -38,7 +39,7 @@ AttachObjectToObject(gObjectId, gAttachToId, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, true) :::note -- Ambos os objetos precisam ser criados antes de tentar anexá-los. +- Ambos os objetos precisam ser [criados](CreateObject) antes de tentar anexá-los. - Não há uma versão player-object desta função no SA-MP. Mas existe [AttachPlayerObjectToObject](AttachPlayerObjectToObject) no open.mp diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToVehicle.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToVehicle.md index 84bdcd8e65d3..20e6851fd564 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToVehicle.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToVehicle.md @@ -7,18 +7,18 @@ tags: ["object", "vehicle"] ## Descrição -Anexa um objeto a um veículo. - -| Nome | Descrição | -| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -| objectid | O ID do objeto a ser anexado ao veículo. Note que este é um ID de objeto, não um ID de modelo. O objeto deve ser criado com CreateObject primeiro. | -| parentid | O ID do veículo ao qual anexar o objeto. | -| Float:offsetX | O deslocamento do eixo X a partir do veículo para anexar o objeto. | -| Float:offsetY | O deslocamento do eixo Y a partir do veículo para anexar o objeto. | -| Float:offsetZ | O deslocamento do eixo Z a partir do veículo para anexar o objeto. | -| Float:rotationX | O deslocamento de rotação X para o objeto. | -| Float:rotationY | O deslocamento de rotação Y para o objeto. | -| Float:rotationZ | O deslocamento de rotação Z para o objeto. | +Anexa um [objeto](CreateObject) a um [veículo](CreateVehicle). + +| Nome | Descrição | +| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| objectid | O ID do objeto a ser anexado ao veículo. Note que este é um ID de objeto, não um ID de modelo. O objeto deve ser criado com [CreateObject](CreateObject) primeiro. | +| parentid | O ID do veículo ao qual anexar o objeto. | +| Float:offsetX | O deslocamento do eixo X a partir do veículo para anexar o objeto. | +| Float:offsetY | O deslocamento do eixo Y a partir do veículo para anexar o objeto. | +| Float:offsetZ | O deslocamento do eixo Z a partir do veículo para anexar o objeto. | +| Float:rotationX | O deslocamento de rotação X para o objeto. | +| Float:rotationY | O deslocamento de rotação Y para o objeto. | +| Float:rotationZ | O deslocamento de rotação Z para o objeto. | ## Retorno @@ -36,13 +36,13 @@ AttachObjectToVehicle(objectid, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0); :::note -O objeto deve ser criado primeiro. +O objeto deve ser [criado](CreateObject) primeiro. ::: :::warning -Quando o veículo é destruído ou respawnado, os objetos anexados não serão destruídos junto com ele; eles permanecerão estacionários na posição onde o veículo desapareceu e serão reanexados ao próximo veículo que reclamar o ID do veículo ao qual os objetos estavam anexados. +Quando o veículo é [destruído](DestroyVehicle) ou [respawnado](../callbacks/OnVehicleSpawn), os objetos anexados não serão destruídos junto com ele; eles permanecerão estacionários na posição onde o veículo desapareceu e serão reanexados ao próximo veículo que reclamar o ID do veículo ao qual os objetos estavam anexados. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToVehicle.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToVehicle.md index f157f5039500..c23967e473ab 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToVehicle.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToVehicle.md @@ -46,7 +46,7 @@ public OnPlayerStateChange(playerid, PLAYER_STATE:newstate, PLAYER_STATE:oldstat :::note -Você precisa criar o objeto antes de tentar anexá-lo a um veículo. +Você precisa [criar](CreatePlayerObject) o objeto antes de tentar anexá-lo a um veículo. ::: 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 ff6c86d80f8f..5bee224fb7b8 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 @@ -7,7 +7,7 @@ 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 **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). +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](BanEx) pode ser usado para justificar o banimento. Os banimentos de IP podem ser adicionados ou removidos usando os comandos [RCON](../../server/RemoteConsole) `banip` e `unbanip` ([SendRconCommand](SendRconCommand)). | Nome | Descrição | | -------- | ----------------------------- | @@ -63,7 +63,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -Qualquer ação realizada diretamente antes do Ban (como enviar uma mensagem com SendClientMessage) não chegará ao jogador. Um cronômetro (timer) deve ser usado para atrasar o banimento. +Qualquer ação realizada diretamente antes do Ban (como enviar uma mensagem com [SendClientMessage](SendClientMessage)) não chegará ao jogador. Um cronômetro (timer) deve ser usado para atrasar o banimento. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/BanEx.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/BanEx.md index 119a1e461a75..ab2bcefc7ce8 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/BanEx.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/BanEx.md @@ -69,7 +69,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -Qualquer ação realizada diretamente antes do BanEx (como enviar uma mensagem com SendClientMessage) não chegará ao jogador. Um cronômetro (timer) deve ser usado para atrasar o banimento. +Qualquer ação realizada diretamente antes do BanEx (como enviar uma mensagem com [SendClientMessage](SendClientMessage)) não chegará ao jogador. Um cronômetro (timer) deve ser usado para atrasar o banimento. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehicleColor.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehicleColor.md index 3b04c2f36ba3..ede14219034b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehicleColor.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehicleColor.md @@ -9,11 +9,11 @@ tags: ["vehicle"] Altere a cor primária e secundária de um veículo. -| Nome | Descrição | -| --------- | -------------------------------------------- | -| vehicleid | O ID do veículo cujas cores serão alteradas. | -| color1 | O ID da nova cor primária do veículo. | -| color2 | O ID da nova cor secundária do veículo. | +| Nome | Descrição | +| ------------------------------------- | -------------------------------------------- | +| vehicleid | O ID do veículo cujas cores serão alteradas. | +| [color1](../resources/vehiclecolorid) | O ID da nova cor primária do veículo. | +| [color2](../resources/vehiclecolorid) | O ID da nova cor secundária do veículo. | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehiclePaintjob.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehiclePaintjob.md index 3efb77936dec..187045ecf421 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehiclePaintjob.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehiclePaintjob.md @@ -7,12 +7,12 @@ tags: ["vehicle"] ## Descrição -Altere o paintjob de um veículo (para cores normais, consulte ChangeVehicleColor). +Altere o paintjob de um veículo (para cores normais, consulte [ChangeVehicleColor](ChangeVehicleColor)). -| Nome | Descrição | -| ---------- | ----------------------------------------------------------- | -| vehicleid | O ID do veículo para alterar o paintjob. | -| paintjobid | O ID do paintjob a aplicar. Use 3 para remover um paintjob. | +| Nome | Descrição | +| ---------- | ------------------------------------------------------------------------------------- | +| vehicleid | O ID do veículo para alterar o paintjob. | +| paintjobid | O ID do [paintjob](../resources/paintjobs) a aplicar. Use 3 para remover um paintjob. | ## Retorno @@ -20,7 +20,11 @@ Esta função sempre retorna **1** (sucesso), mesmo que o veículo não exista. :::warning -Se a cor do veículo for preta, o paintjob pode não ser visível. É melhor deixar o veículo branco antes de aplicar o paintjob, usando ChangeVehicleColor(vehicleid,1,1); +Se a cor do veículo for preta, o paintjob pode não ser visível. É melhor deixar o veículo branco antes de aplicar o paintjob, usando: + +```c +ChangeVehicleColor(vehicleid, 1, 1); +``` ::: 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 ab1276fb5cc0..9b797b61d8a8 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 @@ -36,7 +36,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- ClearAnimations não faz nada quando a animação termina se passarmos 'true' para o parâmetro freeze em ApplyAnimation. +- ClearAnimations não faz nada quando a animação termina se passarmos 'true' para o parâmetro freeze em [ApplyAnimation](ApplyAnimation). - Ao contrário de outras maneiras de remover o jogador de um veículo, isso também redefinirá a velocidade do veículo para zero, parando instantaneamente o carro. O jogador aparecerá no topo do veículo com a mesma localização que estava no assento do carro. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md index b0391ff57cec..47af7319c7ee 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md @@ -63,7 +63,7 @@ drawDistance parece ser muito menor quando especta. :::tip -Use incorporação de cores para múltiplas cores no texto. +Use [incorporação de cores](../resources/colorslist#color-embedding) para múltiplas cores no texto. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md index 7d55a1952f64..a21c48520142 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md @@ -48,13 +48,14 @@ public OnGameModeExit() :::note - Atores são projetados para apenas ficar em algum lugar, por exemplo caixas e bartenders. Eles podem executar animações (uma vez ou em loop) usando [ApplyActorAnimation](ApplyActorAnimation). -- Atores são invulneráveis por padrão. +- Atores são [invulneráveis](SetActorInvulnerable) por padrão. ::: :::warning -- Atores são completamente separados dos NPCs. Eles NÃO usam IDs/slots de jogadores no servidor e NÃO PODEM ser manipulados como NPCs. Atores são limitados a 1000 (MAX_ACTORS). +- Atores são completamente separados dos NPCs. Eles NÃO usam IDs/slots de jogadores no servidor e NÃO PODEM ser manipulados como NPCs. +- Atores são limitados a 1000 (MAX_ACTORS). - Atores podem ser empurrados por veículos, use um timer para colocá-los de volta em suas posições. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreateExplosionForPlayer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreateExplosionForPlayer.md index 75081c3ddd3c..a68a7a4ec5f7 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreateExplosionForPlayer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreateExplosionForPlayer.md @@ -7,7 +7,7 @@ tags: ["player"] ## Descrição -Cria uma explosão que é visível apenas para um único jogador. Isso pode ser usado para isolar explosões de outros jogadores ou para fazê-las aparecer apenas em mundos virtuais específicos. +Cria uma explosão que é visível apenas para um único jogador. Isso pode ser usado para isolar explosões de outros jogadores ou para fazê-las aparecer apenas em [mundos virtuais](SetPlayerVirtualWorld) específicos. | Nome | Descrição | | ------------ | ------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md index 96bd6659a754..4f062c060884 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md @@ -11,7 +11,7 @@ Cria um objeto em coordenadas especificadas no mundo do jogo. | Nome | Descrição | | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| modelid | O modelo do objeto. | +| modelid | O [modelo do objeto](https://models.open.mp/?cat=objects). | | Float:X | A coordenada X para criar o objeto. | | Float:Y | A coordenada Y para criar o objeto. | | Float:Z | A coordenada Z para criar o objeto. | @@ -39,7 +39,7 @@ public OnGameModeInit() :::note -Há um limite de 1000 objetos (MAX_OBJECTS). Para contornar esse limite, você pode usar um streamer. +Há um limite de 1000 objetos ([MAX_OBJECTS](../resources/limits)). Para contornar esse limite, você pode usar um [streamer](https://github.com/samp-incognito/samp-streamer-plugin). ::: 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 1fedb5e1345b..83bacde86990 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 @@ -7,7 +7,7 @@ tags: ["pickup"] ## Descrição -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. +Esta função faz exatamente o mesmo que [AddStaticPickup](AddStaticPickup), exceto que retorna um ID de pickup que pode ser usado para destruí-lo posteriormente e ser rastreado usando [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup). | Nome | Descrição | | -------------------------------- | ---------------------------------------------------------------------------------------- | @@ -43,7 +43,7 @@ pickup_Armour = 0; // variável pickup precisa ser resetada para evitar conflito :::note -- O único tipo de pickup que pode ser coletado de dentro de um veículo é **14** (exceto para pickups especiais como propinas). +- O único [tipo de pickup](../resources/pickuptypes) que pode ser coletado de dentro de um veículo é **14** (exceto para pickups especiais como propinas). - Pickups são mostrados para, e podem ser coletados por todos os jogadores. - É possível que se DestroyPickup for usado quando um pickup é coletado, mais de um jogador pode coletar o pickup, devido ao lag. Isso pode ser evitado através do uso de variáveis. - Certos tipos de pickup vêm com 'respostas automáticas', por exemplo usar um modelo M4 no pickup automaticamente dará ao jogador a arma e alguma munição. @@ -58,7 +58,7 @@ Para pickups totalmente programados, o tipo 1 deve ser usado. :::warning -**Bug(s) Conhecido(s):** Pickups que têm um X ou Y menor que -4096.0 ou maior que 4096.0 não aparecerão e não acionarão OnPlayerPickUpPickup também. +**Bug(s) Conhecido(s):** Pickups que têm um X ou Y menor que -4096.0 ou maior que 4096.0 não aparecerão e não acionarão [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup) também. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md index afeb3a0d4ff7..3e09e8eef69d 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md @@ -12,7 +12,7 @@ Cria um objeto que será visível apenas para um jogador. | Nome | Descrição | | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | playerid | O ID do jogador para criar o objeto. | -| modelid | O modelo a ser criado. | +| modelid | O [modelo](https://models.open.mp/?cat=objects) a ser criado. | | Float:x | A coordenada X onde criar o objeto. | | Float:y | A coordenada Y onde criar o objeto. | | Float:z | A coordenada Z onde criar o objeto. | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md index 4f8593728784..8bd081dbdf5a 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md @@ -59,7 +59,7 @@ Para pickups totalmente programados, o tipo 1 deve ser usado. **Bug(s) Conhecido(s):** -- Pickups que têm um X ou Y menor que -4096.0 ou maior que 4096.0 não aparecerão e não acionarão OnPlayerPickUpPlayerPickup também. +- Pickups que têm um X ou Y menor que -4096.0 ou maior que 4096.0 não aparecerão e não acionarão [OnPlayerPickUpPlayerPickup](../callbacks/OnPlayerPickUpPlayerPickup) também. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreateVehicle.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreateVehicle.md index 38d9d51d78b2..55762da30f5c 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreateVehicle.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreateVehicle.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Descrição -Cria um veículo no mundo. Pode ser usado no lugar de AddStaticVehicleEx a qualquer momento no script. +Cria um veículo no mundo. Pode ser usado no lugar de [AddStaticVehicleEx](AddStaticVehicleEx) a qualquer momento no script. | Nome | Descrição | | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md index b4919bc19e30..4e01391def91 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md @@ -9,11 +9,11 @@ tags: [] ## Descrição -Destrói um ator que foi criado com CreateActor. +Destrói um ator que foi criado com [CreateActor](CreateActor). -| Nome | Descrição | -| ------- | -------------------------------------------------------- | -| actorid | O ID do ator a ser destruído. Retornado por CreateActor. | +| Nome | Descrição | +| ------- | ----------------------------------------------------------------------- | +| actorid | O ID do ator a ser destruído. Retornado por [CreateActor](CreateActor). | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md index cbd0f8042634..9e7e8c175c31 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md @@ -7,11 +7,11 @@ tags: [] ## Descrição -Destrói (remove) um objeto que foi criado usando CreateObject. +Destrói (remove) um objeto que foi criado usando [CreateObject](CreateObject). -| Nome | Descrição | -| -------- | ----------------------------------------------------------- | -| objectid | O ID do objeto a ser destruído. Retornado por CreateObject. | +| Nome | Descrição | +| -------- | --------------------------------------------------------------------------- | +| objectid | O ID do objeto a ser destruído. Retornado por [CreateObject](CreateObject). | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md index be17ee23d883..b6ae12c79bcc 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md @@ -7,11 +7,11 @@ tags: ["pickup"] ## descrição -Destrói um pickup criado com CreatePickup. +Destrói um pickup criado com [CreatePickup](CreatePickup). -| Nome | Descrição | -| ------ | ------------------------------------------------------ | -| pickup | O ID do pickup a destruir (retornado por CreatePickup) | +| Nome | Descrição | +| ------ | ---------------------------------------------------------------------- | +| pickup | O ID do pickup a destruir (retornado por [CreatePickup](CreatePickup)) | ## retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPlayerObject.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPlayerObject.md index 6409e1b690fc..8d5b9d91fe85 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPlayerObject.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPlayerObject.md @@ -7,12 +7,12 @@ tags: ["player"] ## Descrição -Destrói um objeto de jogador (player-object) criado usando CreatePlayerObject. +Destrói um objeto de jogador (player-object) criado usando [CreatePlayerObject](CreatePlayerObject). -| Nome | Descrição | -| -------- | ----------------------------------------------------------------------- | -| playerid | The ID of the player whose player-object to destroy. | -| objectid | The ID of the player-object to destroy. Returned by CreatePlayerObject. | +| Nome | Descrição | +| -------- | --------------------------------------------------------------------------------------------- | +| playerid | The ID of the player whose player-object to destroy. | +| objectid | The ID of the player-object to destroy. Returned by [CreatePlayerObject](CreatePlayerObject). | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DisableInteriorEnterExits.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DisableInteriorEnterExits.md index 3001f3e5ec81..0ecf641c17ac 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DisableInteriorEnterExits.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DisableInteriorEnterExits.md @@ -27,9 +27,8 @@ public OnGameModeInit() :::warning -Esta função só terá efeito se for usada ANTES de um jogador se conectar (recomenda-se usá-la em [OnGameModeInit](../callbacks/OnGameModeInit)). Ela não remove os marcadores de jogadores já conectados. - -Se o gamemode for alterado após o uso desta função, e o novo gamemode não desativar os marcadores, eles NÃO reaparecerão para jogadores já conectados (mas aparecerão para novos jogadores). +- Esta função só terá efeito se for usada ANTES de um jogador se conectar (recomenda-se usá-la em [OnGameModeInit](../callbacks/OnGameModeInit)). Ela não remove os marcadores de jogadores já conectados. +- Se o gamemode for alterado após o uso desta função, e o novo gamemode não desativar os marcadores, eles NÃO reaparecerão para jogadores já conectados (mas aparecerão para novos jogadores). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/EditAttachedObject.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/EditAttachedObject.md index 4b1c121fc5e7..19b0aa8e5465 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/EditAttachedObject.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/EditAttachedObject.md @@ -48,7 +48,7 @@ Você pode mover a câmera durante a edição pressionando e segurando a **barra :::warning -Jogadores poderão escalonar objetos para tamanhos muito grandes ou valores negativos. Limites devem ser implementados usando OnPlayerEditAttachedObject para abortar a edição ou limitar os valores de escala. +Jogadores poderão escalonar objetos para tamanhos muito grandes ou valores negativos. Limites devem ser implementados usando [OnPlayerEditAttachedObject](../callbacks/OnPlayerEditAttachedObject) para abortar a edição ou limitar os valores de escala. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/EnableVehicleFriendlyFire.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/EnableVehicleFriendlyFire.md index 6dad4ec44f77..573390dd2850 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/EnableVehicleFriendlyFire.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/EnableVehicleFriendlyFire.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Descrição -Habilita fogo amigo para veículos de equipe. Jogadores não poderão danificar os veículos dos companheiros de equipe (é necessário usar SetPlayerTeam!). +Habilita fogo amigo para veículos de equipe. Jogadores não poderão danificar os veículos dos companheiros de equipe (é necessário usar [SetPlayerTeam](SetPlayerTeam)!). ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md index a1b50d3856a5..b328495fda4b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md @@ -8,7 +8,7 @@ tags: [] ## Descrição -Esta função permite ativar nomes de zonas/áreas, como o texto "Vinewood" ou "Doherty" no canto inferior direito da tela à medida que entram na área. Esta é uma opção de modo de jogo e deve ser definida no callback OnGameModeInit. +Esta função permite ativar nomes de zonas/áreas, como o texto "Vinewood" ou "Doherty" no canto inferior direito da tela à medida que entram na área. Esta é uma opção de modo de jogo e deve ser definida no callback [OnGameModeInit](../callbacks/OnGameModeInit). | Nome | Descrição | | ----------- | ---------------------------------------------------------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md index 03241c0b5b7d..aed529506143 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md @@ -9,13 +9,13 @@ tags: ["custom model", "custom skin", "simple model"] ## Descrição -Encontra um arquivo de modelo existente de skin customizada ou objeto simples. Os arquivos de modelo ficam na pasta `models` do servidor por padrão (configuração artpath). +Encontra um arquivo de modelo existente de [skin](AddCharModel) customizada ou [objeto](AddSimpleModel) simples. Os arquivos de modelo ficam na pasta `models` do servidor por padrão (configuração [artpath](../../server/server.cfg#modelos-personalizados)). -| Name | Description | -| ---------------------- | --------------------------------------------------------------------------- | -| crc | O checksum CRC do arquivo de modelo customizado. | -| output[] | Um array para armazenar o nome do arquivo **.dff**, passado por referência. | -| size = sizeof (output) | O tamanho da string que deve ser armazenada. | +| Name | Description | +| ---------------------- | --------------------------------------------------------------------------------------------------------- | +| crc | O checksum [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) do arquivo de modelo customizado. | +| output[] | Um array para armazenar o nome do arquivo **.dff**, passado por referência. | +| size = sizeof (output) | O tamanho da string que deve ser armazenada. | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md index a5075999b194..07c765554c74 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md @@ -9,13 +9,13 @@ tags: ["custom model", "custom skin", "simple model"] ## Descrição -Encontra um arquivo de textura existente de skin customizada ou objeto simples. Os arquivos de modelo ficam na pasta `models` do servidor por padrão (configuração artpath). +Encontra um arquivo de textura existente de [skin](AddCharModel) customizada ou [objeto](AddSimpleModel) simples. Os arquivos de modelo ficam na pasta `models` do servidor por padrão (configuração [artpath](../../server/server.cfg#modelos-personalizados)). -| Name | Description | -| ---------------------- | --------------------------------------------------------------------------- | -| crc | O checksum CRC do arquivo de modelo customizado. | -| output[] | Um array para armazenar o nome do arquivo **.txd**, passado por referência. | -| size = sizeof (output) | O tamanho da string que deve ser armazenada. | +| Name | Description | +| ---------------------- | --------------------------------------------------------------------------------------------------------- | +| crc | O checksum [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) do arquivo de modelo customizado. | +| output[] | Um array para armazenar o nome do arquivo **.txd**, passado por referência. | +| size = sizeof (output) | O tamanho da string que deve ser armazenada. | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ForceClassSelection.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ForceClassSelection.md index 0628ad9a8670..f9bb0d90015b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ForceClassSelection.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ForceClassSelection.md @@ -37,7 +37,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -Esta função não realiza uma mudança de estado para `PLAYER_STATE_WASTED` quando combinada com TogglePlayerSpectating (veja o exemplo acima), conforme listado aqui. +Esta função não realiza uma [mudança de estado](../callbacks/OnPlayerStateChange) para `PLAYER_STATE_WASTED` quando combinada com [TogglePlayerSpectating](TogglePlayerSpectating) (veja o exemplo acima), conforme listado [aqui](../resources/playerstates). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md index dfff42010890..745be14d3cfb 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md @@ -45,9 +45,8 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::warning -Observe que os jogadores podem travar devido ao número ímpar de símbolos de til (~) usados no texto do jogo. Usar códigos de cores (por exemplo, `~r~`) além do 255º caractere pode travar o cliente. - -Além disso, um espaço em branco no final da string pode resultar em falha. Por exemplo: `"Headshot "` resulta em falha. Em vez disso, deveria ser `"Headshot"` ou `"Headshot_"`. +- Observe que os jogadores podem travar devido ao número ímpar de símbolos de til (~) usados no texto do jogo. Usar códigos de cores (por exemplo, `~r~`) além do 255º caractere pode travar o cliente. +- Além disso, um espaço em branco no final da string pode resultar em falha. Por exemplo: `"Headshot "` resulta em falha. Em vez disso, deveria ser `"Headshot"` ou `"Headshot_"`. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md index b2d397a78372..19fc9528ac24 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md @@ -44,13 +44,14 @@ gangzone = GangZoneCreate(1248.011, 2072.804, 1439.348, 2204.319); :::note -Esta função apenas CRIA a gangzone, você deve usar GangZoneShowForPlayer ou GangZoneShowForAll para mostrá-la. +Esta função apenas CRIA a gangzone, você deve usar [GangZoneShowForPlayer](GangZoneShowForPlayer) ou [GangZoneShowForAll](GangZoneShowForAll) para mostrá-la. ::: :::warning -Existe um limite de 1024 gangzones. Colocar parâmetros na ordem errada resulta em glitches. +- Existe um limite de 1024 gangzones. +- Colocar parâmetros na ordem errada resulta em glitches. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneShowForAll.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneShowForAll.md index 91c749db3530..9ae62b1e85a0 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneShowForAll.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneShowForAll.md @@ -11,7 +11,7 @@ Mostra uma gangzone com a cor desejada para todos os jogadores. | Nome | Descrição | | ----- | -------------------------------------------------------------------------------------------------------------------- | -| zone | O ID da gangzone a ser mostrada (retornada por GangZoneCreate). | +| zone | O ID da gangzone a ser mostrada (retornada por [GangZoneCreate](GangZoneCreate)). | | color | A cor a ser mostrada na gangzone, pode ser integer ou hex no formato de cor **RGBA**. Transparência Alpha suportada. | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneShowForPlayer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneShowForPlayer.md index 629d0089551a..f628469d37cc 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneShowForPlayer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneShowForPlayer.md @@ -7,12 +7,12 @@ tags: ["player", "gangzone"] ## Descrição -Mostra a gangzone para um jogador. Deve ser criado com GangZoneCreate primeiro. +Mostra a gangzone para um jogador. Deve ser criado com [GangZoneCreate](GangZoneCreate) primeiro. | Nome | Descrição | | -------- | -------------------------------------------------------------------------------------------------------------------- | | playerid | O ID do jogador para o qual mostrar a gangzone. | -| zone | O ID da gangzone a esconder para o jogador. Retornado por GangZoneCreate | +| zone | O ID da gangzone a esconder para o jogador. Retornado por [GangZoneCreate](GangZoneCreate) | | color | A cor a ser mostrada na gangzone, pode ser integer ou hex no formato de cor **RGBA**. Transparência Alpha suportada. | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneStopFlashForAll.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneStopFlashForAll.md index 855410ee68e1..bb646f72ce9c 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneStopFlashForAll.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneStopFlashForAll.md @@ -9,9 +9,9 @@ tags: ["gangzone"] Pare uma Gangzone de piscar para todos os jogadores. -| Nome | Descrição | -| ---- | ------------------------------------------------------------------------ | -| zone | O ID da gangzone que quer parar de piscar. Retornado por GangZoneCreate. | +| Nome | Descrição | +| ---- | ------------------------------------------------------------------------------------------ | +| zone | O ID da gangzone que quer parar de piscar. Retornado por [GangZoneCreate](GangZoneCreate). | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md index a3aa820184c3..c058d02ad304 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md @@ -12,12 +12,12 @@ tags: ["actor"] Obtenha a posição de um ator. -| Nome | Descrição | -| -------- | --------------------------------------------------------------------------------------- | -| actorid | O ID do ator para obter a posição. Retornado por CreateActor. | -| &Float:x | Uma variável flutuante, passada por referência, na qual armazena a coordenada X do ator. | +| Nome | Descrição | +| -------- | ----------------------------------------------------------------------------------------- | +| actorid | O ID do ator para obter a posição. Retornado por [CreateActor](CreateActor). | +| &Float:x | Uma variável flutuante, passada por referência, na qual armazena a coordenada X do ator. | | &Float:y | Uma variável flutuante, passada por referência, na qual armazenar a coordenada Y do ator. | -| &Float:z | Uma variável flutuante, passada por referência, na qual armazena a coordenada Z do ator. | +| &Float:z | Uma variável flutuante, passada por referência, na qual armazena a coordenada Z do ator. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetAnimationName.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetAnimationName.md index 20b4a860ab7d..609f21a2630f 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetAnimationName.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetAnimationName.md @@ -10,13 +10,13 @@ tags: [] Obtenha a biblioteca/nome da animação para o índice. -| Nome | Descrição | -| -------------------------------- | --------------------------------------------------------- | -| index | O índice de animação, retornado por GetPlayerAnimationIndex. | -| animationLibrary[] | Variável string que armazena a biblioteca de animação. | -| len1 = sizeof (animationLibrary) | Tamanho da string que armazena a biblioteca de animação. | -| animationName[] | Variável string que armazena o nome da animação. | -| len2 = sizeof (animationName) | Tamanho da string que armazena o nome da animação. | +| Nome | Descrição | +| -------------------------------- | --------------------------------------------------------------------------------------- | +| index | O índice de animação, retornado por [GetPlayerAnimationIndex](GetPlayerAnimationIndex). | +| animationLibrary[] | Variável string que armazena a biblioteca de animação. | +| len1 = sizeof (animationLibrary) | Tamanho da string que armazena a biblioteca de animação. | +| animationName[] | Variável string que armazena o nome da animação. | +| len2 = sizeof (animationName) | Tamanho da string que armazena o nome da animação. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetGravity.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetGravity.md index 743883b4d1cc..f992c71b03a8 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetGravity.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetGravity.md @@ -7,7 +7,7 @@ tags: [] ## Descrição -Obtém a gravidade atualmente definida. +Obtém a [gravidade](SetGravity) atualmente definida. ## Exemplos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md index 37864b1f26de..e5d5c5585366 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md @@ -12,16 +12,16 @@ tags: ["object"] Obtenha os dados do material de um índice do objeto. -| Nome | Descrição | -| ------------------ | --------------------------------------------------------------------- | -| objectid | O ID do objeto. | -| materialIndex | O índice de material no objeto. (0 a 15) | -| &modelid | Uma variável na qual armazenar o modelo ID, passado por referência. | -| textureLibrary[] | Uma matriz na qual armazenar a texturaLibrary, passada por referência. | -| textureLibrarySize | O tamanho da texturaLibrary. | -| textureName[] | Uma matriz na qual armazenar o TextureName, passado por referência. | -| textureNameSize | O tamanho da texturaName. | -| &materialColour | Uma variável na qual armazenar o materialColour, passada por referência. | +| Nome | Descrição | +| ------------------ | --------------------------------------------------------------------------------------------------------------- | +| objectid | O ID do objeto. | +| materialIndex | O índice de material no objeto. (0 a 15) | +| &modelid | Uma variável na qual armazenar o modelo ID, passado por referência. | +| textureLibrary[] | Uma matriz na qual armazenar o nome da biblioteca de texturas, passado por referência. | +| textureLibrarySize | O tamanho da matriz que armazena o nome da biblioteca de texturas. | +| textureName[] | Uma matriz na qual armazenar o nome da [textura](https://models.open.mp/?cat=textures), passado por referência. | +| textureNameSize | O tamanho da matriz que armazena o nome da textura. | +| &materialColour | Uma variável na qual armazenar o materialColour, passada por referência. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectModel.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectModel.md index 7f46893f0134..149fcff51a28 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectModel.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectModel.md @@ -9,7 +9,7 @@ tags: [] ## Descrição -Obtém o ID do modelo de um objeto (CreateObject). +Obtém o ID do modelo de um objeto ([CreateObject](CreateObject)). | Nome | Descrição | | -------- | --------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md index beb2d2c1cea0..81e900459a22 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md @@ -46,7 +46,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -Mesmo que a armadura possa ser definida para valores quase infinitos no lado do servidor, os clientes individuais reportarão apenas valores até 255. Qualquer valor superior será resolvido; 256 torna-se 0, 257 torna-se 1, etc. A armadura é arredondada para números inteiros: defina 50.15, mas obtenha 50.0 +- Mesmo que a armadura possa ser definida para valores quase infinitos no lado do servidor, os clientes individuais reportarão apenas valores até 255. Qualquer valor superior será resolvido; 256 torna-se 0, 257 torna-se 1, etc. +- A armadura é arredondada para números inteiros: defina 50.15, mas obtenha 50.0 ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraAspectRatio.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraAspectRatio.md index bc3d3626ef35..2a753f7d2f0a 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraAspectRatio.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraAspectRatio.md @@ -8,7 +8,7 @@ tags: ["player", "camera"] ## Descrição -Recupera a proporção da câmera de um jogador. +Recupera a [proporção](https://en.wikipedia.org/wiki/Aspect_ratio_(image)) da câmera de um jogador. | Nome | Descrição | | -------- | ------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraMode.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraMode.md index d4f2bded765a..b666a8dfd366 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraMode.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraMode.md @@ -16,7 +16,7 @@ Retorna o GTA [modo de câmera](../resources/cameramodes) atual para o jogador s ## Retornos -O modo da câmera como um número inteiro (ou -1 se o jogador não estiver conectado) +O [modo da câmera](../resources/cameramodes) como um número inteiro (ou -1 se o jogador não estiver conectado) ## Exemplos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetPlayer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetPlayer.md index fb7a1a69e7ad..aff64cf539c5 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetPlayer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetPlayer.md @@ -34,7 +34,7 @@ if (IsPlayerAdmin(playerTarget)) :::warning -Não confunda esta função com GetPlayerTargetPlayer. GetPlayerTargetPlayer retorna o ID do jogador que playerid está **atacando** (com uma arma). GetPlayerCameraTargetPlayer retorna o ID do jogador que o playerid está **olhando** (o ponto de referência é o centro da tela). +Não confunda esta função com [GetPlayerTargetPlayer](GetPlayerTargetPlayer). GetPlayerTargetPlayer retorna o ID do jogador que playerid está **atacando** (com uma arma). GetPlayerCameraTargetPlayer retorna o ID do jogador que o playerid está **olhando** (o ponto de referência é o centro da tela). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerColor.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerColor.md index 1abca27fd238..ea709145c49f 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerColor.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerColor.md @@ -8,7 +8,7 @@ tags: ["player"] ## Descrição -Obtém a cor do nome do jogador e do marcador de radar. Só funciona após SetPlayerColor. +Obtém a cor do nome do jogador e do marcador de radar. Só funciona após [SetPlayerColor](SetPlayerColor). | Nome | Descrição | | -------- | -------------------------------------- | @@ -32,7 +32,7 @@ SendClientMessage(playerid, -1, output); :::warning -GetPlayerColor não retornará nada (0), a menos que SetPlayerColor tenha sido usado primeiro. Clique em [HERE](../../tutorials/colorfix) para obter uma correção. +GetPlayerColor não retornará nada (0), a menos que [SetPlayerColor](SetPlayerColor) tenha sido usado primeiro. Clique em [HERE](../../tutorials/colorfix) para obter uma correção. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerDrunkLevel.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerDrunkLevel.md index bdbb80a564e8..294e4a8c00e7 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerDrunkLevel.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerDrunkLevel.md @@ -8,7 +8,7 @@ tags: ["player"] ## Descrição -Verifica o nível de embriaguez do jogador. Se o nível for inferior a 2.000, o jogador está sóbrio. O nível de embriaguez do jogador diminui lentamente e automaticamente (26 níveis por segundo), mas sempre chegará a 2.000 no final. Os níveis mais elevados de embriaguez afetam a câmera do jogador e o manuseio do carro. O nível de embriaguez aumenta quando o jogador bebe de uma garrafa (você pode usar SetPlayerSpecialAction para dar garrafas). +Verifica o nível de embriaguez do jogador. Se o nível for inferior a 2.000, o jogador está sóbrio. O nível de embriaguez do jogador diminui lentamente e automaticamente (26 níveis por segundo), mas sempre chegará a 2.000 no final. Os níveis mais elevados de embriaguez afetam a câmera do jogador e o manuseio do carro. O nível de embriaguez aumenta quando o jogador bebe de uma garrafa (você pode usar [SetPlayerSpecialAction](SetPlayerSpecialAction) para dar garrafas). | Nome | Descrição | | -------- | ------------------------------------------------------ | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerFacingAngle.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerFacingAngle.md index 233e7804ddb1..f044b81b8582 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerFacingAngle.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerFacingAngle.md @@ -35,7 +35,7 @@ SendClientMessage(playerid, 0xFFFFFFFF, string); :::note -Os ângulos retornados quando dentro de um veículo raramente são corretos. Para obter o ângulo de visão correto dentro de um veículo, use GetVehicleZAngle. +Os ângulos retornados quando dentro de um veículo raramente são corretos. Para obter o ângulo de visão correto dentro de um veículo, use [GetVehicleZAngle](GetVehicleZAngle). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerFightingStyle.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerFightingStyle.md index d4a179c65689..ccb5da696602 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerFightingStyle.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerFightingStyle.md @@ -8,11 +8,11 @@ tags: ["player"] ## Descrição -Obtenha o estilo de luta que o jogador está usando atualmente. +Obtenha o [estilo de luta](../resources/fightingstyles) que o jogador está usando atualmente. -| Nome | Descrição | -| -------- | -------------------------------------------- | -| playerid | O ID do jogador para obter o estilo de luta. | +| Nome | Descrição | +| -------- | --------------------------------------------------------------------------- | +| playerid | O ID do jogador para obter o [estilo de luta](../resources/fightingstyles). | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md index 9db027754bf4..4db42682ac17 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md @@ -44,7 +44,8 @@ if (strcmp(cmdtext, "/doctor", true) == 0) :::warning -Mesmo que a vida possa ser definida para valores quase infinitos no lado do servidor, os usuários vão reportar valores até 255. Qualquer valor superior não funcionará; 256 passa a 0, 257 passa a 1, etc. A vida é obtida arredondando os integers: se definir 50.15, o jogador obtém 50.0. +- Mesmo que a vida possa ser definida para valores quase infinitos no lado do servidor, os usuários vão reportar valores até 255. Qualquer valor superior não funcionará; 256 passa a 0, 257 passa a 1, etc. +- A vida é obtida arredondando os integers: se definir 50.15, o jogador obtém 50.0. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerInterior.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerInterior.md index 279d755c0c6c..34eda9286252 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerInterior.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerInterior.md @@ -7,7 +7,7 @@ tags: ["player"] ## Descrição -Obtém o interior atual de um jogador. Uma lista com os interiores atualmente conhecidos, com as suas posições, podem ser encontrados nesta página. +Obtém o interior atual de um jogador. Uma lista com os interiores atualmente conhecidos, com as suas posições, podem ser encontrados [nesta página](../resources/interiorids). | Nome | Descrição | | -------- | ------------------------------------------------ | 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 17d0f06a4f8f..9ca0075bb948 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 @@ -40,7 +40,7 @@ public OnPlayerConnect(playerid) :::note -- PAWN é case-sensitive (sensível a maiúsculas e minúsculas). GetPlayerIP não irá funcionar. +- PAWN é case-sensitive (sensível a maiúsculas e minúsculas). GetPlayerI**P** não irá funcionar. - **SA-MP server**: Esta função não funciona quando usada em [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect) porque o jogador já está desconectado. Irá retornar um IP inválido (255.255.255.255). Salve os IPs dos jogador em [OnPlayerConnect](../callbacks/OnPlayerConnect) se eles precisarem ser usados no [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect). - **open.mp server**: This function **work** when used in [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect). diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md index d4f5120e023e..0fc747d7bd05 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md @@ -9,12 +9,12 @@ tags: ["player"] Verifica quais teclas um jogador está pressionando. -| Nome | Descrição | -| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| playerid | O ID do jogador do qual deseja obter as teclas. | -| keys | Um conjunto de bits contendo o estado das teclas do jogador. Este valor é chamado de máscara de bits (bit mask). Clique aqui para ver a lista de teclas. | -| updown | Up/down state. | -| leftright | Left/right state. | +| Nome | Descrição | +| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| playerid | O ID do jogador do qual deseja obter as teclas. | +| keys | Um conjunto de bits contendo o estado das teclas do jogador. Este valor é chamado de máscara de bits ([bit mask](https://en.wikipedia.org/wiki/Mask_(computing))). Clique aqui para ver a lista de teclas. | +| updown | Up/down state. | +| leftright | Left/right state. | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerLastShotVectors.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerLastShotVectors.md index 1cbead09128a..1b10e4aa8406 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerLastShotVectors.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerLastShotVectors.md @@ -52,7 +52,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -- Esta função só funcionará quando a compensação de atraso estiver **habilitada**. +- Esta função só funcionará quando a [compensação de atraso](../../server/LagCompensation) estiver **habilitada**. - Se o jogador não acertar nada, as posições de acerto serão 0. Isso significa que atualmente você não pode calcular a distância que uma bala percorre no ar livre. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerMenu.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerMenu.md index 4bdcfe8a8987..80cbd0122fc9 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerMenu.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerMenu.md @@ -7,7 +7,7 @@ tags: ["player", "menu"] ## Descrição -Obtém o ID do menu que o player está a visualizar no momento (mostrado por ShowMenuForPlayer). +Obtém o ID do menu que o player está a visualizar no momento (mostrado por [ShowMenuForPlayer](ShowMenuForPlayer)). | Nome | Descrição | | -------- | -------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerName.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerName.md index 85461f241ad3..5035c3ef3db9 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerName.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerName.md @@ -41,7 +41,7 @@ public OnPlayerConnect(playerid) :::note -O nome do jogador pode ter até 24 caracteres (a partir da 0.3d R2) usando SetPlayerName. Isso é definido na a_samp.inc em MAX_PLAYER_NAME. Porém, no client só pode entrar com um nickname entre 3 e 20 caracteres, caso contrário a conexão será rejeitada e o jogador terá que sair e escolher um nome válido. +O nome do jogador pode ter até 24 caracteres (a partir da 0.3d R2) usando [SetPlayerName](SetPlayerName). Isso é definido na a_samp.inc em MAX_PLAYER_NAME. Porém, no client só pode entrar com um nickname entre 3 e 20 caracteres, caso contrário a conexão será rejeitada e o jogador terá que sair e escolher um nome válido. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md index acd403e3600d..9319734cf50e 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md @@ -12,17 +12,17 @@ tags: ["player", "object", "playerobject"] Obtenha os dados do material de um índice do objeto do jogador. -| Nome | Descrição | -| ------------------ | --------------------------------------------------------------------- | -| playerid | O ID do jogador. | -| objectid | O ID do objeto do jogador. | -| materialIndex | O índice de material no objeto. (0 a 15) | -| &modelid | Uma variável na qual armazenar o modelo ID, passado por referência. | -| textureLibrary[] | Uma matriz na qual armazenar a texturaLibrary, passada por referência. | -| textureLibrarySize | O tamanho da texturaLibrary. | -| textureName[] | Uma matriz na qual armazenar o TextureName, passado por referência. | -| textureNameSize | O tamanho da texturaName. | -| &materialColour | Uma variável na qual armazenar o materialColour, passada por referência. | +| Nome | Descrição | +| ------------------ | --------------------------------------------------------------------------------------------------------------- | +| playerid | O ID do jogador. | +| objectid | O ID do objeto do jogador. | +| materialIndex | O índice de material no objeto. (0 a 15) | +| &modelid | Uma variável na qual armazenar o modelo ID, passado por referência. | +| textureLibrary[] | Uma matriz na qual armazenar o nome da biblioteca de texturas, passado por referência. | +| textureLibrarySize | O tamanho da matriz que armazena o nome da biblioteca de texturas. | +| textureName[] | Uma matriz na qual armazenar o nome da [textura](https://models.open.mp/?cat=textures), passado por referência. | +| textureNameSize | O tamanho da matriz que armazena o nome da textura. | +| &materialColour | Uma variável na qual armazenar o materialColour, passada por referência. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md index cfa903a2cec9..ec3ba819ba5c 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md @@ -8,7 +8,7 @@ tags: ["player"] ## Descrição -Obtenha o ping de um jogador. O ping mede a quantidade de tempo que leva para o servidor fazer 'ping' no cliente e para o cliente enviar a mensagem de volta. +Obtenha o [ping](https://en.wikipedia.org/wiki/Ping_(networking_utility)) de um jogador. O ping mede a quantidade de tempo que leva para o servidor fazer 'ping' no cliente e para o cliente enviar a mensagem de volta. | Nome | Descrição | | -------- | ------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPos.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPos.md index 975d1d3ae571..8d866fdf1bad 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPos.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPos.md @@ -43,7 +43,7 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::warning -Esta função é conhecida por retornar valores não confiáveis quando usada em [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect) e OnPlayerRequestClass. Isso ocorre porque o jogador não é gerado. +Esta função é conhecida por retornar valores não confiáveis quando usada em [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect) e [OnPlayerRequestClass](../callbacks/OnPlayerRequestClass). Isso ocorre porque o jogador não é gerado. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerScore.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerScore.md index 7ce1c87e8af4..1eabe6573e0e 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerScore.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerScore.md @@ -8,7 +8,7 @@ tags: ["player"] ## Descrição -Esta função retorna a pontuação de um jogador conforme foi definida usando SetPlayerScore +Esta função retorna a pontuação de um jogador conforme foi definida usando [SetPlayerScore](SetPlayerScore). | Nome | Descrição | | -------- | ------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md index 7af8243a229a..c087627460a9 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md @@ -16,9 +16,7 @@ Retorna a classe da skin dos jogadores ## Retornos -O [id da capa](../resources/skins). - -**0** se for inválido. +O [id da capa](../resources/skins). **0** se for inválido. ## Exemplos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSpecialAction.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSpecialAction.md index e218205e8278..5ba4b6e8d62e 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSpecialAction.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSpecialAction.md @@ -8,7 +8,7 @@ tags: ["player"] ## Descrição -Recupera a ação especial atual de um jogador. +Recupera a [ação especial](../resources/specialactions) atual de um jogador. | Nome | Descrição | | -------- | ------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerState.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerState.md index 62ae3d311a40..8959ea321c73 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerState.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerState.md @@ -8,7 +8,7 @@ tags: ["player"] ## Descrição -Obtenha o estado atual de um jogador. +Obtenha o [estado](../resources/playerstates) atual de um jogador. | Nome | Descrição | | -------- | --------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVirtualWorld.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVirtualWorld.md index 8e6df5f0a347..53099b2d1367 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVirtualWorld.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVirtualWorld.md @@ -37,7 +37,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -Os mundos virtuais não são iguais aos interiores. +Os mundos virtuais não são iguais aos [interiores](GetPlayerInterior). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeapon.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeapon.md index fd52c337b584..9c1e5f7600f0 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeapon.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeapon.md @@ -16,7 +16,7 @@ Retorna o ID da arma que o jogador está segurando no momento. ## Retornos -O ID da arma atual do jogador. Retorna **-1** se o jogador especificado não existir. +O ID da [arma](../resources/weaponids) atual do jogador. Retorna **-1** se o jogador especificado não existir. ## Exemplos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeaponState.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeaponState.md index cc3513da5a7e..804b8c454a58 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeaponState.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeaponState.md @@ -8,11 +8,11 @@ tags: ["player"] ## Descrição -Verifique o estado da arma de um jogador. +Verifique o [estado](../resources/weaponstates) da arma de um jogador. -| Nome | Descrição | -| -------- | -------------------------------------------- | -| playerid | O ID do jogador para obter o estado da arma. | +| Nome | Descrição | +| -------- | ------------------------------------------------------------------------- | +| playerid | O ID do jogador para obter o [estado da arma](../resources/weaponstates). | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsBool.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsBool.md index 650b1b0d9191..a4a62400d796 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsBool.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsBool.md @@ -8,7 +8,7 @@ tags: [] :::warning -Esta função, a partir de 0.3.7 R2, está obsoleta. Consulte GetConsoleVarAsBool +Esta função, a partir de 0.3.7 R2, está obsoleta. Consulte [GetConsoleVarAsBool](GetConsoleVarAsBool) ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsInt.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsInt.md index c115ea357d31..91bd10c31f0d 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsInt.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsInt.md @@ -8,7 +8,7 @@ tags: [] :::warning -Esta função, a partir de 0.3.7 R2, está obsoleta. Consulte GetConsoleVarAsInt +Esta função, a partir de 0.3.7 R2, está obsoleta. Consulte [GetConsoleVarAsInt](GetConsoleVarAsInt) ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsString.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsString.md index 0a9fe9f6d91d..441e25a04eff 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsString.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsString.md @@ -8,7 +8,7 @@ tags: [] :::warning -Esta função, a partir de 0.3.7 R2, está obsoleta. Consulte GetConsoleVarAsString +Esta função, a partir de 0.3.7 R2, está obsoleta. Consulte [GetConsoleVarAsString](GetConsoleVarAsString) ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleComponentType.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleComponentType.md index 22eff24470ab..86492a6ea834 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleComponentType.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleComponentType.md @@ -16,7 +16,7 @@ Descubra que tipo de componente é um determinado ID. ## Retornos -O slot do componente ID do componente especificado ou **-1** se o componente for inválido. +O [slot do componente](../resources/componentslots) ID do componente especificado ou **-1** se o componente for inválido. ## Exemplos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleModel.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleModel.md index e46220aa0f8a..047c8c3a485d 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleModel.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleModel.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Descrição -Obtém o ID do modelo de um veículo. +Obtém o [ID do modelo](../resources/vehicleid) de um veículo. | Nome | Descrição | | --------- | ------------------------------------ | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleModelInfo.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleModelInfo.md index 5dd32f679acc..ff7114a90060 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleModelInfo.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleModelInfo.md @@ -10,13 +10,13 @@ tags: ["vehicle"] Recuperar informações sobre um modelo de veículo específico, como tamanho ou posição dos assentos -| Nome | Descrição | -| --------------------------- | ---------------------------------------------------------------------------- | -| vehiclemodel | O modelo do veículo do qual obter informações. | +| Nome | Descrição | +| --------------------------- | ------------------------------------------------------------------------------ | +| vehiclemodel | O [modelo do veículo](../resources/vehicleid) do qual obter informações. | | VEHICLE_MODEL_INFO:infotype | O [tipo de informação](../resources/vehicleinformationtypes) a ser recuperado. | -| &Float:x | Um float para armazenar o valor X. | -| &Float:y | Um float para armazenar o valor Y. | -| &Float:z | Um float para armazenar o valor Z. | +| &Float:x | Um float para armazenar o valor X. | +| &Float:y | Um float para armazenar o valor Y. | +| &Float:z | Um float para armazenar o valor Z. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotation.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotation.md index 819500a62588..95a3c2c10ed0 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotation.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotation.md @@ -41,7 +41,7 @@ GetVehicleRotation(vehicleid, x, y, z); :::note -Não existe variação ‘definida’ desta função; você não pode SET a rotação de um veículo (além do ângulo Z) +Não existe variação ‘definida’ desta função; você não pode SET a rotação de um veículo (além do [ângulo Z](SetVehicleZAngle)) ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md index 0b2bda3ec88e..91f8c1f92337 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md @@ -8,7 +8,7 @@ tags: ["vehicle"] ## Descrição -Retorna a rotação de um veículo em todos os eixos como um quatérnio. +Retorna a rotação de um veículo em todos os eixos como um [quatérnio](https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation). | Nome | Descrição | | --------- | ------------------------------------------------------------------------------------ | @@ -41,7 +41,7 @@ GetVehicleRotationQuat(vehicleid, w, x, y, z); :::note -Não existe variação ‘definida’ desta função; você não pode SET a rotação de um veículo (além do ângulo Z) +Não existe variação ‘definida’ desta função; você não pode SET a rotação de um veículo (além do [ângulo Z](SetVehicleZAngle)) ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetWeaponName.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetWeaponName.md index 0119ac847f78..914b8fde9005 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetWeaponName.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetWeaponName.md @@ -10,11 +10,11 @@ tags: [] Obtenha o nome de uma arma. -| Nome | Descrição | -| --------------------- | ----------------------------------------------------------------------- | -| WEAPON:weaponid | O ID da arma cujo nome deseja obter. | -| weapon[] | Um array para armazenar o nome da arma, passado por referência. | -| len = sizeof (weapon) | O comprimento máximo do nome da arma a ser armazenado. Deve ser sizeof(nome). | +| Nome | Descrição | +| --------------------- | ----------------------------------------------------------------------------------------- | +| WEAPON:weaponid | O [ID da arma](../resources/weaponids) cujo nome deseja obter. | +| weapon[] | Um array para armazenar o nome da [arma](../resources/weaponids), passado por referência. | +| len = sizeof (weapon) | O comprimento máximo do nome da arma a ser armazenado. Deve ser sizeof(nome). | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/HideMenuForPlayer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/HideMenuForPlayer.md index a3798ce80abb..42f07ac75f90 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/HideMenuForPlayer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/HideMenuForPlayer.md @@ -10,10 +10,10 @@ tags: ["player", "menu"] Oculta um menu para um jogador. -| Nome | Descrição | -| ----------- | --------------------------------------------------------------------------------------------------------------------------------- | -| Menu:menuid | O ID do menu a ser ocultado. Retornado por CreateMenu e passado para [OnPlayerSelectedMenuRow](../callbacks/OnPlayerSelectedMenuRow). | -| playerid | O ID do jogador para o qual o menu ficará oculto. | +| Nome | Descrição | +| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | +| Menu:menuid | O ID do menu a ser ocultado. Retornado por [CreateMenu](CreateMenu) e passado para [OnPlayerSelectedMenuRow](../callbacks/OnPlayerSelectedMenuRow). | +| playerid | O ID do jogador para o qual o menu ficará oculto. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerInRaceCheckpoint.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerInRaceCheckpoint.md index aa8176a1a9f7..2273ca2602e9 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerInRaceCheckpoint.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerInRaceCheckpoint.md @@ -8,7 +8,7 @@ tags: ["player", "checkpoint", "racecheckpoint"] ## Descrição -Verifique se o jogador está dentro do ponto de verificação de corrida atual (SetPlayerRaceCheckpoint). +Verifique se o jogador está dentro do ponto de verificação de corrida atual ([SetPlayerRaceCheckpoint](SetPlayerRaceCheckpoint)). | Nome | Descrição | | -------- | ------------------------------ | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md index 57f3e0062084..9880417c68cf 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md @@ -33,9 +33,8 @@ if (IsPlayerStreamedIn(playerid, 0)) :::note -**Servidor SA-MP:** Os jogadores transmitem se estiverem a mais de 200.0 metros de distância (consulte [server.cfg](../../server/server.cfg) - **stream_distance**) - -**servidor open.mp:** Os jogadores transmitem se estiverem a mais de 200.0 metros de distância (consulte [config.json](../../server/config.json) - **network.stream_radius**) +- **Servidor SA-MP:** Os jogadores transmitem se estiverem a mais de 200.0 metros de distância (consulte [server.cfg](../../server/server.cfg) - **stream_distance**) +- **Servidor open.mp:** Os jogadores transmitem se estiverem a mais de 200.0 metros de distância (consulte [config.json](../../server/config.json) - **network.stream_radius**) ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/IsTrailerAttachedToVehicle.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/IsTrailerAttachedToVehicle.md index 9fc1cddbfcda..e25d1c86ae8f 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/IsTrailerAttachedToVehicle.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/IsTrailerAttachedToVehicle.md @@ -8,7 +8,7 @@ tags: ["vehicle"] ## Descrição -Verifica se um veículo possui um trailer acoplado. Use GetVehicleTrailer para obter o veículo ID do trailer (se houver). +Verifica se um veículo possui um trailer acoplado. Use [GetVehicleTrailer](GetVehicleTrailer) para obter o veículo ID do trailer (se houver). | Nome | Descrição | | --------- | -------------------------------------------- | 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 a55cff719827..47faee2e6d6a 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 @@ -21,7 +21,7 @@ Esta função sempre retorna **1**, mesmo que a função falhe a ser executada ( :::warning -Qualquer ação realizada antes de Kick (como enviar mensagem com SendClientMessage) não irá funcionar. Um temporizador deve ser usado para atrasar a expulsão. +Qualquer ação realizada antes de Kick (como enviar mensagem com [SendClientMessage](SendClientMessage)) não irá funcionar. Um temporizador deve ser usado para atrasar a expulsão. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/KillTimer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/KillTimer.md index 14be84b22f4c..409bbe437b12 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/KillTimer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/KillTimer.md @@ -10,9 +10,9 @@ tags: ["timer"] Mata (para) um cronômetro em execução. -| Nome | Descrição | -| ------- | ----------------------------------------------------------------- | -| timerid | O ID do temporizador para matar (retornado por SetTimer ou SetTimerEx). | +| Nome | Descrição | +| ------- | ------------------------------------------------------------------------------------------------- | +| timerid | O ID do temporizador para matar (retornado por [SetTimer](SetTimer) ou [SetTimerEx](SetTimerEx)). | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/LinkVehicleToInterior.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/LinkVehicleToInterior.md index b6012927ca3f..979262109c00 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/LinkVehicleToInterior.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/LinkVehicleToInterior.md @@ -8,7 +8,7 @@ tags: ["vehicle"] ## Descrição -Vincula um veículo a um interior. Os veículos só podem ser vistos pelos jogadores no mesmo interior (SetPlayerInterior). +Vincula um veículo a um interior. Os veículos só podem ser vistos pelos jogadores no mesmo interior ([SetPlayerInterior](SetPlayerInterior)). | Nome | Descrição | | ---------- | ---------------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ManualVehicleEngineAndLights.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ManualVehicleEngineAndLights.md index 8173705c8b29..8754c8afaa4b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ManualVehicleEngineAndLights.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ManualVehicleEngineAndLights.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Description -Use esta função antes que qualquer jogador se conecte (OnGameModeInit) para informar a todos os clientes que o script controlará os motores e as luzes do veículo. Isso evita que o jogo ligue / desligue automaticamente o motor quando os jogadores entram/saem dos veículos e os faróis acendem automaticamente quando está escuro. +Use esta função antes que qualquer jogador se conecte ([OnGameModeInit](../callbacks/OnGameModeInit)) para informar a todos os clientes que o script controlará os motores e as luzes do veículo. Isso evita que o jogo ligue / desligue automaticamente o motor quando os jogadores entram/saem dos veículos e os faróis acendem automaticamente quando está escuro. ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md index b1393b30cb27..d61b9b120b34 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md @@ -7,7 +7,7 @@ tags: ["object"] ## Descrição -Mova um objeto para uma nova posição com uma velocidade definida. Jogadores/veículos irão ‘surfar’ no objeto enquanto ele se move. +Mova um [objeto](CreateObject) para uma nova posição com uma velocidade definida. Jogadores/veículos irão ‘surfar’ no objeto enquanto ele se move. | Nome | Descrição | | --------------- | ----------------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md index bd429ea94603..044388910e26 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md @@ -8,7 +8,7 @@ tags: ["player"] ## Descrição -Mova um objeto do jogador com uma velocidade definida. Também suporta rotação. Jogadores/veículos navegarão em objetos em movimento. +Mova um [objeto do jogador](CreatePlayerObject) com uma velocidade definida. Também suporta rotação. Jogadores/veículos navegarão em objetos em movimento. | Nome | Descrição | | --------------- | ------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_GetConnectedTime.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_GetConnectedTime.md index 26d96765e9ab..afbf7e373845 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_GetConnectedTime.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_GetConnectedTime.md @@ -38,7 +38,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -O valor de retorno não é zerado após alterar o modo de jogo (usando o comando RCON "gmx"). +O valor de retorno não é zerado após alterar o modo de jogo (usando o comando RCON "[gmx](../../server/ControllingServer#comandos-do-rcon)"). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerPlaySound.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerPlaySound.md index 37002e499e39..303b29144e3f 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerPlaySound.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerPlaySound.md @@ -8,7 +8,7 @@ tags: ["player"] ## Descrição -Reproduz o som especificado para um jogador. +Reproduz o [som](../resources/sound-ids) especificado para um jogador. Para uma biblioteca que lista todos os sons, confira [isto](https://github.com/WoutProvost/samp-sound-array). diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md index 6a3985f2f6aa..6ae61c57eeaa 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md @@ -36,8 +36,8 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::warning -- O pedido é CRITICAL! Certifique-se de usar TogglePlayerSpectating antes de PlayerSpectatePlayer. -- o mundo virtual e o interior de playerid e targetplayerid devem ser os mesmos para que esta função funcione corretamente. +- O pedido é CRITICAL! Certifique-se de usar [TogglePlayerSpectating](TogglePlayerSpectating) antes de PlayerSpectatePlayer. +- o [mundo virtual](SetPlayerVirtualWorld) e o [interior](SetPlayerInterior) de playerid e targetplayerid devem ser os mesmos para que esta função funcione corretamente. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md index b8700711df7f..fad5a3e87a02 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md @@ -18,7 +18,7 @@ Define um jogador para assistir outro veículo. A câmera deles será acoplada a ## Retornos -**true** – A função foi executada com sucesso. Observe que o sucesso é relatado se o jogador não estiver no modo espectador (TogglePlayerSpectating), mas nada acontecerá. TogglePlayerSpectating MUST seja usado primeiro. +**true** – A função foi executada com sucesso. Observe que o sucesso é relatado se o jogador não estiver no modo espectador ([TogglePlayerSpectating](TogglePlayerSpectating)), mas nada acontecerá. TogglePlayerSpectating MUST seja usado primeiro. **false** - Falha na execução da função. O jogador, o veículo ou ambos não existem. @@ -32,7 +32,7 @@ PlayerSpectateVehicle(playerid, vehicleid); :::warning -- O pedido é CRITICAL! Certifique-se de usar TogglePlayerSpectating antes de PlayerSpectateVehicle. +- O pedido é CRITICAL! Certifique-se de usar [TogglePlayerSpectating](TogglePlayerSpectating) antes de PlayerSpectateVehicle. - O playerid e o veículo devem estar no mesmo mundo interior e virtual para que esta função funcione corretamente. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md index e4fbe67c1b6e..fe3542697808 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md @@ -37,7 +37,7 @@ public OnPlayerConnect(playerid) :::note -Se [PlayerTextDrawSetOutline](PlayerTextDrawSetOutline) for usado com tamanho > 0, a cor do contorno corresponderá à cor usada em PlayerTextDrawBackgroundColour. Alterar o valor da cor parece alterar a cor usada em PlayerTextDrawColour. +Se [PlayerTextDrawSetOutline](PlayerTextDrawSetOutline) for usado com tamanho > 0, a cor do contorno corresponderá à cor usada em PlayerTextDrawBackgroundColour. Alterar o valor da cor parece alterar a cor usada em [PlayerTextDrawColour](PlayerTextDrawColour). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColour.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColour.md index b284915f8619..b50e81592516 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColour.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColour.md @@ -40,7 +40,7 @@ public OnPlayerConnect(playerid) :::note - Se [PlayerTextDrawSetOutline](PlayerTextDrawSetOutline) for usado com tamanho > 0, a cor do contorno corresponderá à cor usada em PlayerTextDrawBackgroundColour. -- Alterar o valor da cor parece alterar a cor usada em PlayerTextDrawColour. +- Alterar o valor da cor parece alterar a cor usada em [PlayerTextDrawColour](PlayerTextDrawColour). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColor.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColor.md index 5c67614b8ec7..a649d2bbab8c 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColor.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColor.md @@ -8,7 +8,7 @@ tags: ["player", "textdraw", "playertextdraw"] ## Descrição -Define a cor da caixa de um textdraw (PlayerTextDrawUseBox). +Define a cor da caixa de um textdraw ([PlayerTextDrawUseBox](PlayerTextDrawUseBox)). | Nome | Descrição | | ----------------- | -------------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColour.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColour.md index 5b62b155e246..4972b2777151 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColour.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColour.md @@ -10,7 +10,7 @@ tags: ["player", "textdraw", "playertextdraw"] ## Descrição -Define a cor da caixa de um textdraw (PlayerTextDrawUseBox). +Define a cor da caixa de um textdraw ([PlayerTextDrawUseBox](PlayerTextDrawUseBox)). | Nome | Descrição | | ----------------- | -------------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColor.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColor.md index 3d5be94af885..468d7e6349d1 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColor.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColor.md @@ -38,13 +38,13 @@ public OnPlayerConnect(playerid) :::tip -Você também pode usar cores do Gametext em textdraws. +Você também pode usar [cores do Gametext](../resources/gametextstyles) em textdraws. ::: :::note -O textdraw deve ser mostrado novamente ao jogador para atualizar a cor. +O textdraw deve ser [mostrado novamente](PlayerTextDrawShow) ao jogador para atualizar a cor. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColour.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColour.md index d579c1a8c344..5e18407f8855 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColour.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColour.md @@ -40,13 +40,13 @@ public OnPlayerConnect(playerid) :::tip -Você também pode usar cores do Gametext em textdraws. (por exemplo, `~r~` `~g~` `~b~`) +Você também pode usar [cores do Gametext](../resources/gametextstyles) em textdraws. ::: :::note -O textdraw deve ser mostrado novamente ao jogador para atualizar a cor. +O textdraw deve ser [mostrado novamente](PlayerTextDrawShow) ao jogador para atualizar a cor. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetPreviewVehCol.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetPreviewVehCol.md index f16d6da9b575..62a0fccb3d4b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetPreviewVehCol.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetPreviewVehCol.md @@ -10,12 +10,12 @@ tags: ["player", "textdraw", "playertextdraw"] Defina a cor de um veículo em uma visualização do modelo player-textdraw (se um veículo for mostrado). -| Nome | Descrição | -| ----------------- | --------------------------------------------------- | -| playerid | O ID do jogador cujo player-textdraw será alterado. | -| PlayerText:textid | O ID do player-textdraw do jogador a ser alterado. | -| colour1 | A cor para definir a cor primária do veículo. | -| colour2 | A cor para definir a cor secundária do veículo. | +| Nome | Descrição | +| ----------------- | ------------------------------------------------------------------------------ | +| playerid | O ID do jogador cujo player-textdraw será alterado. | +| PlayerText:textid | O ID do player-textdraw do jogador a ser alterado. | +| colour1 | A [cor](../resources/vehiclecolorid) para definir a cor primária do veículo. | +| colour2 | A [cor](../resources/vehiclecolorid) para definir a cor secundária do veículo. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetPreviewVehicleColours.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetPreviewVehicleColours.md index b0877b7c1a9a..c5a99af1f810 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetPreviewVehicleColours.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetPreviewVehicleColours.md @@ -12,12 +12,12 @@ tags: ["player", "textdraw", "playertextdraw"] Defina a cor de um veículo em uma visualização do modelo player-textdraw (se um veículo for mostrado). -| Nome | Descrição | -| ----------------- | --------------------------------------------------- | -| playerid | O ID do jogador cujo player-textdraw será alterado. | -| PlayerText:textid | O ID do player-textdraw do jogador a ser alterado. | -| colour1 | A cor para definir a cor primária do veículo. | -| colour2 | A cor para definir a cor secundária do veículo. | +| Nome | Descrição | +| ----------------- | ------------------------------------------------------------------------------ | +| playerid | O ID do jogador cujo player-textdraw será alterado. | +| PlayerText:textid | O ID do player-textdraw do jogador a ser alterado. | +| colour1 | A [cor](../resources/vehiclecolorid) para definir a cor primária do veículo. | +| colour2 | A [cor](../resources/vehiclecolorid) para definir a cor secundária do veículo. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md index 3a23ddde6e87..27b144c607bf 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md @@ -43,7 +43,7 @@ public OnPlayerConnect(playerid) - 1 (esquerda): são o canto direito da caixa, coordenadas absolutas. - 2 (centro): precisam ser invertidos (trocar os dois) e o valor de x é a largura total da caixa. - 3 (direita): x e y são as coordenadas do canto mais esquerdo da caixa -- Usar o tipo de fonte 4 (sprite) e 5 (visualização do modelo) converte X e Y desta função das coordenadas de canto para WIDTH e HEIGHT (offsets). +- Usar o [tipo de fonte](PlayerTextDrawFont) 4 (sprite) e 5 (visualização do modelo) converte X e Y desta função das coordenadas de canto para WIDTH e HEIGHT (offsets). - A caixa TextDraw inicia 10.0 unidades para cima e 5.0 para a esquerda como origem (coordenada TextDrawCreate). - Esta função define a área clicável para uso com [PlayerTextDrawSetSelectable](PlayerTextDrawSetSelectable), independentemente de uma caixa ser mostrada ou não. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/RedirectDownload.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/RedirectDownload.md index c6de753e7acd..04e37f4a1199 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/RedirectDownload.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/RedirectDownload.md @@ -10,7 +10,7 @@ tags: ["custom model", "custom skin", "simple model"] ## Descrição -Redirecione o download AddCharModel ou AddSimpleModel personalizado do jogador para uma página da Web HTTP específica. +Redirecione o download [AddCharModel](AddCharModel) ou [AddSimpleModel](AddSimpleModel) personalizado do jogador para uma página da Web HTTP específica. ## Parâmetros diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md index e18ed2f190e6..7229f38e12c8 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md @@ -12,7 +12,7 @@ Remove um modelo de San Andreas para um único jogador em um raio específico. | Nome | Descrição | | ------------- | ------------------------------------------------------------------------------------- | | playerid | O ID do jogador para o qual remover os objetos. | -| modelid | O modelo a ser removido. | +| modelid | O [modelo](https://models.open.mp/?cat=objects) a ser removido. | | Float:fX | A coordenada X em torno da qual os objetos serão removidos. | | Float:fY | A coordenada Y em torno da qual os objetos serão removidos. | | Float:fZ | A coordenada Z em torno da qual os objetos serão removidos. | @@ -53,7 +53,8 @@ No SA-MP 0.3.7 você pode usar -1 no modelid para remover todos os objetos dentr :::warning -Há um limite de cerca de 1000 linhas/objetos. Não há solução alternativa. Ao remover o mesmo objeto para um jogador, eles travarão. Comummente, os jogadores travam ao se reconectar ao servidor porque o servidor remove o objeto no OnPlayerConnect. +- Há um limite de cerca de 1000 linhas/objetos. Não há solução alternativa. +- Ao remover o mesmo objeto para um jogador, eles travarão. Comummente, os jogadores travam ao se reconectar ao servidor porque o servidor remove o objeto no OnPlayerConnect. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerMapIcon.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerMapIcon.md index d715847e6c46..4f7c18a4c661 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerMapIcon.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerMapIcon.md @@ -8,12 +8,12 @@ tags: ["player"] ## Descrição -Remove um ícone de mapa definido anteriormente para um jogador usando SetPlayerMapIcon. +Remove um ícone de mapa definido anteriormente para um jogador usando [SetPlayerMapIcon](SetPlayerMapIcon). -| Nome | Descrição | -| -------- | ----------------------------------------------------------------------------- | -| playerid | O ID do jogador cujo ícone será removido. | -| iconid | O ID do ícone a ser removido. Este é o segundo parâmetro de SetPlayerMapIcon. | +| Nome | Descrição | +| -------- | ------------------------------------------------------------------------------------------------- | +| playerid | O ID do jogador cujo ícone será removido. | +| iconid | O ID do ícone a ser removido. Este é o segundo parâmetro de [SetPlayerMapIcon](SetPlayerMapIcon). | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md index 923547036b61..dbf410b1349d 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md @@ -18,12 +18,12 @@ Esta função está obsoleta em open.mp. Use o plugin [samp-bcrypt](https://gith Faz hash de uma senha usando o algoritmo de hash SHA-256. Inclui um sal. A saída tem sempre 256 bits de comprimento, ou o equivalente a 64 células de penhor. -| Nome | Descrição | -| ---------------------- | ------------------------------------------------- | -| const password[] | A senha para hash. | -| const salt[] | O sal para usar no hash. | -| output[] | O hash retornado em resumo hexadecimal maiúsculo. | -| size = sizeof (output) | O comprimento máximo do hash retornado. | +| Nome | Descrição | +| ---------------------- | ----------------------------------------------------------------------------- | +| const password[] | A senha para hash. | +| const salt[] | O [sal](https://en.wikipedia.org/wiki/Salt_(cryptography)) para usar no hash. | +| output[] | O hash retornado em resumo hexadecimal maiúsculo. | +| size = sizeof (output) | O comprimento máximo do hash retornado. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SelectObject.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SelectObject.md index e109716ffda4..c0695e287308 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SelectObject.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SelectObject.md @@ -8,7 +8,7 @@ tags: [] ## Descrição -Exiba o cursor e permita que o jogador selecione um objeto. OnPlayerSelectObject é chamado quando o jogador seleciona um objeto. +Exiba o cursor e permita que o jogador selecione um objeto. [OnPlayerSelectObject](../callbacks/OnPlayerSelectObject) é chamado quando o jogador seleciona um objeto. | Nome | Descrição | | -------- | ----------------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendClientCheck.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendClientCheck.md index 35790b2d1f1a..36a42e6b422d 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendClientCheck.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendClientCheck.md @@ -54,9 +54,8 @@ public OnClientCheckResponse(playerid, actionid, memaddr, retndata) :::warning -**SA:MP Servidor**: Esta função só funciona quando está em um filterscript. - -**Servidor multijogador aberto**: Funciona normalmente dentro de um gamemode/filterscript. +- **SA-MP servidor**: Esta função só funciona quando está em um filterscript. +- **open.mp servidor**: Funciona normalmente dentro de um gamemode/filterscript. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md index b59644f48c5a..59402aee3f17 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md @@ -8,7 +8,7 @@ tags: [] ## Descrição -Esta função envia uma mensagem para um jogador específico com uma cor escolhida no chat. Toda a linha na caixa de bate-papo estará na cor definida, a menos que a incorporação de cores seja usada. +Esta função envia uma mensagem para um jogador específico com uma cor escolhida no chat. Toda a linha na caixa de bate-papo estará na cor definida, a menos que a [incorporação de cores](../resources/colorslist#color-embedding) seja usada. | Nome | Descrição | | ---------------- | ----------------------------------------------------- | @@ -52,8 +52,8 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::tip -- Você pode usar a incorporação de cores para várias cores na mensagem. -- Usar '-1' como cor tornará o texto branco (pela simples razão de que -1, quando representado em notação hexadecimal, é 0xFFFFFFFF). +- Você pode usar a [incorporação de cores](../resources/colorslist#color-embedding) para várias cores na mensagem. +- Usar '-1' como cor tornará o texto branco (pela simples razão de que -1, quando representado em [notação hexadecimal](../resources/hexcolors), é 0xFFFFFFFF). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md index 52fd2c1d4ff0..aef5dff52c17 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md @@ -10,11 +10,11 @@ tags: [] Adiciona uma morte ao 'killfeed' no lado direito da tela para todos os jogadores. -| Nome | Descrição | -| ------ | ----------------------------------------------------------------------------------------------------------------------------- | -| killer | O ID do assassino (pode ser INVALID_PLAYER_ID). | -| killee | O ID do jogador que morreu. | -| weapon | O motivo (nem sempre uma arma) da morte da vítima. Ícones especiais também podem ser usados (ICON_CONNECT e ICON_DISCONNECT). | +| Nome | Descrição | +| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| killer | O ID do assassino (pode ser INVALID_PLAYER_ID). | +| killee | O ID do jogador que morreu. | +| weapon | O [motivo](../resources/weaponids) (nem sempre uma arma) da morte da vítima. Ícones especiais também podem ser usados (ICON_CONNECT e ICON_DISCONNECT). | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessageToPlayer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessageToPlayer.md index 0c8c55d59130..cdc16d8f0c4c 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessageToPlayer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessageToPlayer.md @@ -10,12 +10,12 @@ tags: ["player"] Adiciona uma morte ao 'killfeed' no lado direito da tela para um único jogador. -| Nome | Descrição | -| -------- | ----------------------------------------------------------------------------------------------------------------------------- | -| playerid | O ID do jogador para o qual enviar a mensagem de morte. | -| killer | O ID do assassino (pode ser INVALID_PLAYER_ID). | -| killee | O ID do jogador que morreu. | -| weapon | O motivo (nem sempre uma arma) da morte da vítima. Ícones especiais também podem ser usados (ICON_CONNECT e ICON_DISCONNECT). | +| Nome | Descrição | +| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| playerid | O ID do jogador para o qual enviar a mensagem de morte. | +| killer | O ID do assassino (pode ser INVALID_PLAYER_ID). | +| killee | O ID do jogador que morreu. | +| weapon | O [motivo](../resources/weaponids) (nem sempre uma arma) da morte da vítima. Ícones especiais também podem ser usados (ICON_CONNECT e ICON_DISCONNECT). | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendRconCommand.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendRconCommand.md index ba6bb9adb98c..d1125f58d37d 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendRconCommand.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SendRconCommand.md @@ -10,10 +10,10 @@ tags: ["administration"] Envia um comando RCON (console remoto). -| Nome | Descrição | -| ---------------- | ------------------------------------------ | -| const format[] | O comando RCON a ser executado. | -| OPEN_MP_TAGS:... | Número indefinido de argumentos de qualquer tag. | +| Nome | Descrição | +| ---------------- | ---------------------------------------------------------------------------------- | +| const format[] | O [comando RCON](../../server/ControllingServer#comandos-do-rcon) a ser executado. | +| OPEN_MP_TAGS:... | Número indefinido de argumentos de qualquer tag. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md index 624df29062c1..50c844c529fc 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md @@ -12,10 +12,10 @@ tags: ["actor"] Defina o ângulo de visão de um ator. -| Nome | Descrição | -| ----------- | ----------------------------------------------------------------------- | -| actorid | O ID do ator para definir o ângulo de visão. Retornado por CreateActor. | -| Float:angle | O ângulo de visão a ser definido para o ator. | +| Nome | Descrição | +| ----------- | -------------------------------------------------------------------------------------- | +| actorid | O ID do ator para definir o ângulo de visão. Retornado por [CreateActor](CreateActor). | +| Float:angle | O ângulo de visão a ser definido para o ator. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md index 7a4cf14d3476..043d422c73dc 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md @@ -11,12 +11,12 @@ tags: [] Define a posição de um ator. -| Nome | Descrição | -| ------- | ------------------------------------------------------------- | -| actorid | O ID do ator a definir a posição. Retornado pelo CreateActor. | -| X | A coordenada X na qual posicionar o ator. | -| Y | A coordenada Y na qual posicionar o ator. | -| Z | A coordenada Z na qual posicionar o ator. | +| Nome | Descrição | +| ------- | ---------------------------------------------------------------------------- | +| actorid | O ID do ator a definir a posição. Retornado pelo [CreateActor](CreateActor). | +| X | A coordenada X na qual posicionar o ator. | +| Y | A coordenada Y na qual posicionar o ator. | +| Z | A coordenada Z na qual posicionar o ator. | ## Retorno @@ -43,7 +43,7 @@ SetActorPos(gMyActor, 1.0, 2.0, 3.0); :::note -Ao criar um ator com CreateActor, você específica a sua posição. Você não precisa usar esta função, a menos que queira alterar a posição depois. +Ao criar um ator com [CreateActor](CreateActor), você específica a sua posição. Você não precisa usar esta função, a menos que queira alterar a posição depois. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorVirtualWorld.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorVirtualWorld.md index f5ce7b5606c9..ed0e5b89a889 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorVirtualWorld.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorVirtualWorld.md @@ -12,10 +12,10 @@ tags: ["actor"] Defina o mundo virtual de um ator. Apenas jogadores do mesmo mundo verão o ator. -| Nome | Descrição | -| ------------ | ------------------------------------------------------------------------- | -| actorid | O ID do ator (retornado por CreateActor) para definir o mundo virtual de. | -| virtualWorld | O mundo virtual para colocar o ator ID. | +| Nome | Descrição | +| ------------ | ---------------------------------------------------------------------------------------- | +| actorid | O ID do ator (retornado por [CreateActor](CreateActor)) para definir o mundo virtual de. | +| virtualWorld | O mundo virtual para colocar o ator ID. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md index 8465f3dc57f8..aea41d13cf60 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md @@ -16,7 +16,7 @@ Substitua a textura de um objeto pela textura de outro modelo do jogo. | materialIndex | O índice de material no objeto a ser alterado (0 a 15) | | modelid | O modelid no qual a textura de substituição está localizada. Use 0 para alfa. Use -1 para alterar a cor do material sem alterar a textura. | | const textureLibrary[] | O nome do arquivo txd que contém a textura de substituição (use "none" se não for necessário) | -| const textureName[] | O nome da textura a ser usada como substituição (use "none" se não for necessário) | +| const textureName[] | O nome da [textura](https://models.open.mp/?cat=textures) a ser usada como substituição (use "none" se não for necessário) | | materialColour | A cor do objeto a ser definida, como um número inteiro ou hexadecimal no formato de cor **ARGB**. Usar **0** mantém a cor do material existente. | ## Retornos 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 6328f600c804..cd188cdcc4ba 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 @@ -55,8 +55,8 @@ A [incorporação de cores](../resources/colorslist#color-embedding) pode ser us :::warning -Você MUST usa o formato de cores **ARGB**, não RGBA como usado em mensagens de clientes, etc. -O texto não é atualizado após 16 chamadas no mesmo objeto. +- Você MUST usa o formato de cores **ARGB**, não RGBA como usado em mensagens de clientes, etc. +- O texto não é atualizado após 16 chamadas no mesmo objeto. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectPos.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectPos.md index 146bd9d27dad..1d98b8a032f0 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectPos.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectPos.md @@ -8,14 +8,14 @@ tags: ["object"] ## Descrição -Alterar a posição de um objeto. - -| Nome | Descrição | -| -------- | ---------------------------------------------------------------------- | -| objectid | O ID do objeto cuja posição será definida. Retornado por CreateObject. | -| Float:x | A coordenada X na qual posicionar o objeto. | -| Float:y | A coordenada Y na qual posicionar o objeto. | -| Float:z | A coordenada Z na qual posicionar o objeto. | +Alterar a posição de um [objeto](CreateObject). + +| Nome | Descrição | +| -------- | -------------------------------------------------------------------------------------- | +| objectid | O ID do objeto cuja posição será definida. Retornado por [CreateObject](CreateObject). | +| Float:x | A coordenada X na qual posicionar o objeto. | +| Float:y | A coordenada Y na qual posicionar o objeto. | +| Float:z | A coordenada Z na qual posicionar o objeto. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAmmo.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAmmo.md index a4e7a474222b..013a0536010d 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAmmo.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAmmo.md @@ -10,11 +10,11 @@ tags: ["player"] Defina a munição da arma de um jogador. -| Nome | Descrição | -| --------------- | ------------------------------------------------------------------------------ | -| playerid | O ID do jogador para definir a munição da arma. | -| WEAPON:weaponid | O ID da arma para definir a munição. (não o slot de armas como no samp inclui) | -| ammo | A quantidade de munição a ser definida. | +| Nome | Descrição | +| --------------- | -------------------------------------------------------------------------------------------------------- | +| playerid | O ID do jogador para definir a munição da arma. | +| WEAPON:weaponid | O [ID da arma](../resources/weaponids) para definir a munição. (não o slot de armas como no samp inclui) | +| ammo | A quantidade de munição a ser definida. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerArmedWeapon.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerArmedWeapon.md index 77c14261ca67..df14ee882ab1 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerArmedWeapon.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerArmedWeapon.md @@ -51,7 +51,7 @@ public OnPlayerStateChange(playerid, PLAYER_STATE:newstate, PLAYER_STATE:oldstat :::note -Esta função _equipa_ o jogador com uma arma que ele **já possui**; não lhes _dá_ uma nova arma. Consulte GivePlayerWeapon. +Esta função _equipa_ o jogador com uma arma que ele **já possui**; não lhes _dá_ uma nova arma. Consulte [GivePlayerWeapon](GivePlayerWeapon). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md index 4244bd2bf64d..61c0b53dd527 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md @@ -14,7 +14,7 @@ Anexe um objeto a um osso específico de um jogador. | --------------- | --------------------------------------------------------------------------------------------------------------------- | | playerid | O ID do jogador ao qual anexar o objeto. | | index | O índice (slot 0-9) ao qual atribuir o objeto. | -| modelid | O modelo a ser anexado. | +| modelid | O [modelo](../resources/samp_objects) a ser anexado. | | bone | O [osso](../resources/boneid) ao qual anexar o objeto. | | Float:offsetX | (opcional) Deslocamento do eixo X para a posição do objeto. | | Float:offsetY | (opcional) Deslocamento do eixo Y para a posição do objeto. | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraLookAt.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraLookAt.md index 4900738491ca..658025147c54 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraLookAt.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraLookAt.md @@ -8,7 +8,7 @@ tags: ["player", "camera"] ## Descrição -Defina a direção para a qual a câmera do jogador olha. Geralmente destinado a ser usado em combinação com SetPlayerCameraPos. +Defina a direção para a qual a câmera do jogador olha. Geralmente destinado a ser usado em combinação com [SetPlayerCameraPos](SetPlayerCameraPos). | Nome | Descrição | | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- | @@ -34,7 +34,7 @@ SetPlayerCameraLookAt(playerid, 324.34, 54.122, 173.35); :::warning -Usar as funções da câmera diretamente após ativar o modo espectador não funciona. +Usar as funções da câmera diretamente após [ativar o modo espectador](TogglePlayerSpectating) não funciona. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md index 5f6ab5f34a4e..d9a657ce3a97 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md @@ -32,14 +32,14 @@ SetPlayerCameraPos(playerid, 652.23, 457.21, 10.84); :::tip -- Talvez você também precise usar SetPlayerCameraLookAt com esta função para funcionar corretamente. -- Use SetCameraBehindPlayer para redefinir a câmera para trás do jogador. +- Talvez você também precise usar [SetPlayerCameraLookAt](SetPlayerCameraLookAt) com esta função para funcionar corretamente. +- Use [SetCameraBehindPlayer](SetCameraBehindPlayer) para redefinir a câmera para trás do jogador. ::: :::warning -Usar as funções da câmera diretamente após ativar o modo espectador não funciona. +Usar as funções da câmera diretamente após [ativar o modo espectador](TogglePlayerSpectating) não funciona. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md index 1a5ae5ed71fc..0c3d0d5e464d 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md @@ -36,14 +36,14 @@ public OnPlayerText(playerid, text[]) :::note -Você não pode ver seus próprios balões de bate-papo. O mesmo se aplica às etiquetas de texto 3D anexadas. +Você não pode ver seus próprios balões de bate-papo. O mesmo se aplica às [etiquetas de texto 3D](Attach3DTextLabelToPlayer) anexadas. ::: :::tip -- Você pode usar a incorporação de cores para várias cores na mensagem. -- Usar '-1' como cor tornará o texto branco (pela simples razão de que -1, quando representado em notação hexadecimal, é 0xFFFFFFFF). +- Você pode usar a [incorporação de cores](../resources/colorslist#color-embedding) para várias cores na mensagem. +- Usar '-1' como cor tornará o texto branco (pela simples razão de que -1, quando representado em [notação hexadecimal](../resources/hexcolors), é 0xFFFFFFFF). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md index 0be24baa33b4..035e44581733 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md @@ -8,7 +8,7 @@ tags: ["player", "checkpoint"] ## Descrição -Define um ponto de verificação (cilindro vermelho) para um jogador. Também mostra uma mancha vermelha no radar. Quando os jogadores entram em um checkpoint, OnPlayerEnterCheckpoint é chamado e ações podem ser executadas. +Define um ponto de verificação (cilindro vermelho) para um jogador. Também mostra uma mancha vermelha no radar. Quando os jogadores entram em um checkpoint, [OnPlayerEnterCheckpoint](../callbacks/OnPlayerEnterCheckpoint) é chamado e ações podem ser executadas. | Nome | Descrição | | ------------- | -------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerColor.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerColor.md index 0806dfbdafe3..339998cc387e 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerColor.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerColor.md @@ -10,10 +10,10 @@ tags: ["player"] Defina a cor do crachá e do marcador de um jogador (ponto de radar). -| Nome | Descrição | -| -------- | ---------------------------------------- | -| playerid | O ID do jogador cuja cor será definida. | -| colour | A cor a ser definida. Suporta valores alfa. | +| Nome | Descrição | +| -------- | -------------------------------------------------------------------------------------------------- | +| playerid | O ID do jogador cuja cor será definida. | +| colour | A cor a ser definida. Suporta [valores alfa](../resources/colorslist#valores-alpha-transparência). | ## Retornos @@ -32,8 +32,8 @@ SetPlayerColor(playerid, 4278190335); :::note -- Esta função mudará a cor do jogador para todos, mesmo que a cor do jogador tenha sido alterada com SetPlayerMarkerForPlayer para qualquer outro jogador. -- Se usado em OnPlayerConnect, o jogador afetado não verá a cor no menu TAB. +- Esta função mudará a cor do jogador para todos, mesmo que a cor do jogador tenha sido alterada com [SetPlayerMarkerForPlayer](SetPlayerMarkerForPlayer) para qualquer outro jogador. +- Se usado em [OnPlayerConnect](../callbacks/OnPlayerConnect), o jogador afetado não verá a cor no menu TAB. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md index 37687d013a7e..456cadcfa21b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md @@ -10,17 +10,17 @@ tags: ["player"] Anexa um objeto a um osso. -| Nome | Descrição | -| -------- | ----------------------------------------------------------------- | -| playerid | ID do jogador ao qual você deseja anexar o objeto. | -| modelid | O modelo que você deseja usar. | -| bone | O [osso](../resources/boneid) ao qual você deseja anexar o objeto. | -| fOffsetX | (opcional) Deslocamento do eixo X para a posição do objeto. | -| fOffsetY | (opcional) Deslocamento do eixo Y para a posição do objeto. | -| fOffsetZ | (opcional) Deslocamento do eixo Z para a posição do objeto. | -| fRotX | (opcional) Rotação do eixo X do objeto. | -| fRotY | (opcional) Rotação do eixo Y do objeto. | -| fRotZ | (opcional) Rotação do eixo Z do objeto. | +| Nome | Descrição | +| -------- | ------------------------------------------------------------------ | +| playerid | ID do jogador ao qual você deseja anexar o objeto. | +| modelid | O [modelo](../resources/samp_objects) que você deseja usar. | +| bone | O [osso](../resources/boneid) ao qual você deseja anexar o objeto. | +| fOffsetX | (opcional) Deslocamento do eixo X para a posição do objeto. | +| fOffsetY | (opcional) Deslocamento do eixo Y para a posição do objeto. | +| fOffsetZ | (opcional) Deslocamento do eixo Z para a posição do objeto. | +| fRotX | (opcional) Rotação do eixo X do objeto. | +| fRotY | (opcional) Rotação do eixo Y do objeto. | +| fRotZ | (opcional) Rotação do eixo Z do objeto. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerInterior.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerInterior.md index d018c4915e2e..2dac3381d6b4 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerInterior.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerInterior.md @@ -8,7 +8,7 @@ tags: ["player"] ## Descrição -Defina o interior de um jogador. Uma lista de interiores atualmente conhecidos e suas posições pode ser encontrada aqui. +Defina o interior de um jogador. Uma lista de interiores atualmente conhecidos e suas posições pode ser encontrada [aqui](../resources/interiorids). | Nome | Descrição | | ---------- | ----------------------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerMarkerForPlayer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerMarkerForPlayer.md index ca314176494a..a87c0cd58842 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerMarkerForPlayer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerMarkerForPlayer.md @@ -10,11 +10,11 @@ tags: ["player"] Altere a cor do **crachá** de um jogador e do **sinal de radar** de outro jogador. -| Nome | Descrição | -| -------- | ---------------------------------------------------------- | -| playerid | O jogador que verá a cor alterada do ícone/nome do jogador | -| targetid | O jogador cuja cor será alterada | -| colour | Nova cor. Suporta valores alfa. | +| Nome | Descrição | +| -------- | -------------------------------------------------------------------------------------- | +| playerid | O jogador que verá a cor alterada do ícone/nome do jogador | +| targetid | O jogador cuja cor será alterada | +| colour | Nova cor. Suporta [valores alfa](../resources/colorslist#valores-alpha-transparência). | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md index 8f11f8a6e7e1..684c0a623bfc 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md @@ -17,7 +17,7 @@ Substitua a textura de um objeto do jogador pela textura de outro modelo do jogo | materialIndex | O índice de material no objeto a ser alterado (0 a 15) | | modelid | O modelid no qual a textura de substituição está localizada. Use 0 para alfa. Use -1 para alterar a cor do material sem alterar a textura existente. | | const textureLibrary[] | O nome do arquivo txd que contém a textura de substituição (use "none" se não for necessário) | -| const textureName[] | O nome da textura a ser usada como substituição (use "none" se não for necessário) | +| const textureName[] | O nome da [textura](https://models.open.mp/?cat=textures) a ser usada como substituição (use "none" se não for necessário) | | materialColour | A cor do objeto a ser definida, como um número inteiro ou hexadecimal no **formato ARGB**. Usar **0** mantém a cor do material existente. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md index 298f8ce2118b..fde42a903db5 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md @@ -10,20 +10,20 @@ tags: ["player", "object", "playerobject"] Substitua a textura de um objeto de jogador por texto. -| Nome | Descrição | -| ---------------------------------------- | ---------------------------------------------------------------------------- | -| playerid | O ID do jogador cujo jogador se opõe a definir o texto. | -| objectid | O ID do objeto no qual o texto será colocado. | -| text[] | O texto a ser definido. | -| materialIndex | O índice do material a ser substituído por texto (padrão: 0). | -| OBJECT_MATERIAL_SIZE:materialSize | O [tamanho](../resources/materialtextsizes) do material (padrão: 256x128). | -| const fontFace[] | A fonte a ser usada (padrão: Arial). | -| fontSize | O tamanho do texto (padrão: 24) (máx. 255). | -| bool:bold | Texto em negrito. Defina como 1 para negrito e 0 para não (padrão: 1). | -| fontColour | A cor do texto (padrão: branco). | -| backgroundColour | A cor de fundo (padrão: nenhuma (transparente)). | -| OBJECT_MATERIAL_TEXT_ALIGN:textAlignment | O [alinhamento](../resources/materialtextsizes) do texto (padrão: esquerda). | -| OPEN_MP_TAGS:... | Número indefinido de argumentos de qualquer tag. | +| Nome | Descrição | +| ---------------------------------------- | -------------------------------------------------------------------------------- | +| playerid | O ID do jogador cujo jogador se opõe a definir o texto. | +| objectid | O ID do objeto no qual o texto será colocado. | +| text[] | O texto a ser definido. | +| materialIndex | O índice do material a ser substituído por texto (padrão: 0). | +| OBJECT_MATERIAL_SIZE:materialSize | O [tamanho](../resources/materialtextsizes) do material (padrão: 256x128). | +| const fontFace[] | A fonte a ser usada (padrão: Arial). | +| fontSize | O tamanho do texto (padrão: 24) (máx. 255). | +| bool:bold | Texto em negrito. Defina como 1 para negrito e 0 para não (padrão: 1). | +| fontColour | A cor do texto (padrão: branco). | +| backgroundColour | A cor de fundo (padrão: nenhuma (transparente)). | +| OBJECT_MATERIAL_TEXT_ALIGN:textAlignment | O [alinhamento](../resources/materialtextalignment) do texto (padrão: esquerda). | +| OPEN_MP_TAGS:... | Número indefinido de argumentos de qualquer tag. | ## Retornos @@ -48,7 +48,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/SetPlayerObjectPos.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectPos.md index 727ca8cdd852..0838a554c3a6 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectPos.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectPos.md @@ -10,13 +10,13 @@ tags: ["player", "object", "playerobject"] Define a posição de um objeto do jogador nas coordenadas especificadas. -| Nome | Descrição | -| -------- | ----------------------------------------------------------------------------------- | -| playerid | O ID do jogador cujo objeto de jogador deseja definir a posição. | -| objectid | O ID do objeto do jogador para definir a posição. Retornado por CreatePlayerObject. | -| Float:x | A coordenada X na qual colocar o objeto. | -| Float:y | A coordenada Y na qual colocar o objeto. | -| Float:z | A coordenada Z na qual colocar o objeto. | +| Nome | Descrição | +| -------- | --------------------------------------------------------------------------------------------------------- | +| playerid | O ID do jogador cujo objeto de jogador deseja definir a posição. | +| objectid | O ID do objeto do jogador para definir a posição. Retornado por [CreatePlayerObject](CreatePlayerObject). | +| Float:x | A coordenada X na qual colocar o objeto. | +| Float:y | A coordenada Y na qual colocar o objeto. | +| Float:z | A coordenada Z na qual colocar o objeto. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPos.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPos.md index 3f59c80b07d5..159c74cc8f1e 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPos.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPos.md @@ -47,7 +47,7 @@ Usar esta função em um jogador em um veículo irá removê-lo instantaneamente :::tip -Ao definir a posição de um jogador para um interior, o seu interior também deve ser definido. +Ao definir a posição de um jogador para um interior, [o seu interior](SetPlayerInterior) também deve ser definido. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerRaceCheckpoint.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerRaceCheckpoint.md index 861af43929f9..e5f4772f093e 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerRaceCheckpoint.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerRaceCheckpoint.md @@ -8,7 +8,7 @@ tags: ["player", "checkpoint", "racecheckpoint"] ## Descrição -Cria um ponto de verificação de corrida. Quando o jogador entra, o callback OnPlayerEnterRaceCheckpoint é chamado. +Cria um ponto de verificação de corrida. Quando o jogador entra, o callback [OnPlayerEnterRaceCheckpoint](../callbacks/OnPlayerEnterRaceCheckpoint) é chamado. | Nome | Descrição | | ------------- | -------------------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkillLevel.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkillLevel.md index 8bf3b0f67f81..550e05e98284 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkillLevel.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkillLevel.md @@ -10,11 +10,11 @@ tags: ["player"] Defina o nível de habilidade de um determinado tipo de arma para um jogador. -| Nome | Descrição | -| ----------------- | ---------------------------------------------------------------------------------------------------- | -| playerid | O ID do jogador para definir a habilidade da arma. | -| WEAPONSKILL:skill | A [arma](../resources/weaponskills) para definir a habilidade. | -| level | O nível de habilidade a ser definido para aquela arma, variando de 0 a 999. Um nível fora do alcance irá maximizá-lo. | +| Nome | Descrição | +| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| playerid | O ID do jogador para definir a habilidade da arma. | +| WEAPONSKILL:skill | A [arma](../resources/weaponskills) para definir a habilidade. | +| level | O [nível de habilidade](../resources/weaponskills#níveis-de-habilidade) a ser definido para aquela arma, variando de 0 a 999. Um nível fora do alcance irá maximizá-lo. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md index a8f7ea3a9ebd..7a7bb1e7f3b5 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md @@ -92,9 +92,9 @@ SetPlayerSkinFix(playerid, skinid) **Erros conhecidos:** -- Se a skin de um jogador for definida quando ele estiver agachado, em um veículo ou executando certas animações, ele ficará congelado ou com falhas. Isso pode ser corrigido usando [TogglePlayerControllable](TogglePlayerControllable). Os jogadores podem ser detectados como agachados através de [GetPlayerSpecialAction](GetPlayerSpecialAction) (SPECIAL_ACTION_DUCK). +- Se a skin de um jogador for definida quando ele estiver agachado, [em um veículo](IsPlayerInAnyVehicle) ou [executando certas animações](GetPlayerAnimationIndex), ele ficará congelado ou com falhas. Isso pode ser corrigido usando [TogglePlayerControllable](TogglePlayerControllable). Os jogadores podem ser detectados como agachados através de [GetPlayerSpecialAction](GetPlayerSpecialAction) (SPECIAL_ACTION_DUCK). - Outros jogadores ao redor do jogador podem bater se ele estiver em um veículo ou se estiver entrando/saindo de um veículo. -- Definir a skin de um jogador quando ele está morto pode derrubar os jogadores ao seu redor. +- Definir a skin de um jogador quando ele está [morto](../callbacks/OnPlayerDeath) pode derrubar os jogadores ao seu redor. - Pausas sentadas nas bicicletas. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md index 9fbbbf92bd6d..488115fe8626 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md @@ -8,7 +8,7 @@ tags: ["player"] ## Descrição -Defina o clima de um jogador. +Defina o [clima](../resources/weatherid) de um jogador. | Nome | Descrição | | -------- | --------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWorldBounds.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWorldBounds.md index 2f1839938f85..9b620ee840ec 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWorldBounds.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWorldBounds.md @@ -52,7 +52,7 @@ Os limites mundiais de um jogador podem ser redefinidos definindo-os para 20.000 :::warning -Esta função não funciona em interiores! +Esta função não funciona em [interiores](../resources/interiorids)! ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetSpawnInfo.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetSpawnInfo.md index 0bb92a5d68b3..a264065bcac5 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetSpawnInfo.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetSpawnInfo.md @@ -13,16 +13,16 @@ Esta função pode ser usada para mudar as informações de spawn de um jogador | -------------- | ------------------------------------------------------------------ | | playerid | O ID do jogador de quem você quer definir as informações de spawn. | | team | O ID do time do jogador escolhido. | -| skin | A skin com o qual o jogador irá spawnar. | +| skin | A [skin](../resources/skins) com o qual o jogador irá spawnar. | | Float:X | A coordenada-X da posição de spawn do jogador. | | Float:Y | A coordenada-Y da posição de spawn do jogador. | | Float:Z | A coordenada-Z da posição de spawn do jogador. | | Float:rotation | A direção na qual o jogador precisa estar olhando depois do spawn. | -| weapon1 | A primeira arma de spawn para o jogador. | +| weapon1 | A primeira [arma de spawn](../resources/weaponids) para o jogador. | | weapon1_ammo | A quantidade de munição para a primeira arma de spawn. | -| weapon2 | A segunda arma de spawn para o jogador. | +| weapon2 | A segunda [arma de spawn](../resources/weaponids) para o jogador. | | weapon2_ammo | A quantidade de munição para a segunda arma de spawn. | -| weapon3 | A terceira arma de spawn para o jogador. | +| weapon3 | A terceira [arma de spawn](../resources/weaponids) para o jogador. | | weapon3_ammo | A quantidade de munição para a terceira arma de spawn. | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md index ab7713e347e8..c01112c7cc76 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md @@ -49,7 +49,7 @@ public OneSecondTimer() :::note - O temporizador IDs nunca é usado duas vezes. Você pode usar [KillTimer](KillTimer) em um timer ID e não importa se ele está funcionando ou não. -- A função que deve ser chamada deve ser pública, ou seja, deve ser encaminhada. +- A função que deve ser chamada deve ser [pública](../language/reference/Functions#-funções-public-e-main), ou seja, deve ser [encaminhada](../language/reference/Functions#-declarações-antecipadas). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md index 4f02df88f2ba..9cb14f447625 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md @@ -10,13 +10,13 @@ tags: ["timer"] Define um cronômetro para chamar uma função após o intervalo especificado. Esta variante ('Ex') pode passar parâmetros (como um jogador ID) para a função. -| Nome | Descrição | -| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -| const functionName[] | O nome de uma função pública a ser chamada quando o cronômetro expirar. | -| interval | Intervalo em milissegundos (1 segundo = 1000 MS). | -| bool:repeating | Booleano (true/false (ou 1/0)) que indica se o temporizador deve ser chamado repetidamente (só pode ser interrompido com KillTimer) ou apenas uma vez. | -| const specifiers[] | Formato especial que indica os tipos de valores que o temporizador passará. | -| OPEN_MP_TAGS:... | Número indefinido de argumentos a serem passados (deve seguir o formato especificado no parâmetro anterior). | +| Nome | Descrição | +| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| const functionName[] | O nome de uma função pública a ser chamada quando o cronômetro expirar. | +| interval | Intervalo em milissegundos (1 segundo = 1000 MS). | +| bool:repeating | Booleano (true/false (ou 1/0)) que indica se o temporizador deve ser chamado repetidamente (só pode ser interrompido com [KillTimer](KillTimer)) ou apenas uma vez. | +| const specifiers[] | Formato especial que indica os tipos de valores que o temporizador passará. | +| OPEN_MP_TAGS:... | Número indefinido de argumentos a serem passados (deve seguir o formato especificado no parâmetro anterior). | ## Retornos @@ -74,7 +74,7 @@ Os intervalos do temporizador não são precisos (cerca de 25% de desconto) em S :::tip - As variáveis do temporizador ID devem ser redefinidas para 0 quando possível, para minimizar a chance de matar acidentalmente novos temporizadores por engano. `-1` é comumente confundido com o ID inválido - não é. -- A função a ser chamada deve ser pública. Isso significa que tem que ser encaminhado. +- A função a ser chamada deve ser [pública](../language/reference/Functions#-funções-public-e-main). Isso significa que tem que ser [encaminhado](../language/reference/Functions#-declarações-antecipadas). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleHealth.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleHealth.md index 0994c90b080b..dc00452899ca 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleHealth.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleHealth.md @@ -9,10 +9,10 @@ tags: ["vehicle"] Define a vida de um veículo. Quando a vida do veículo diminui, o motor irá fazer fumaça, até que arde quando diminuir para menos de 250 (25%). -| Nome | Descrição | -| ------------ | --------------------------------- | -| vehicleid | O ID do veículo a definir a vida. | -| Float:health | A vida, em valor float. | +| Nome | Descrição | +| ------------ | ----------------------------------------------------- | +| vehicleid | O ID do veículo a definir a vida. | +| Float:health | A [vida](../resources/vehiclehealth), em valor float. | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md index 3c9020614960..91578f9a94cf 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md @@ -32,8 +32,8 @@ SetVehicleNumberPlate(vehicleid, "ABCD 123"); :::note -- Esta função não possui verificação de erros internos. -- O veículo deve ser gerado novamente ou transmitido novamente para que as alterações tenham efeito. +- Esta função não possui verificação de erros internos. Não atribua matrículas personalizadas a veículos sem matrícula (barcos, aviões, etc.), pois isso resultará em algum tempo de processamento desnecessário para o cliente. +- O veículo deve ser [gerado novamente](SetVehicleToRespawn) ou transmitido novamente para que as alterações tenham efeito. - Há um limite de 32 caracteres em cada matrícula (incluindo cores incorporadas). - O comprimento do texto que pode ser visto na placa de matrícula é de cerca de 9 a 10 caracteres, mais caracteres farão com que o texto seja dividido. - Alguns modelos de veículos possuem a matrícula invertida, por ex. Boxville (498) (como alternativa a este veículo você pode usar o modelo de veículo ID 609, que é um Boxville duplicado (também conhecido como Boxburg), mas com placa regular). @@ -42,8 +42,7 @@ SetVehicleNumberPlate(vehicleid, "ABCD 123"); :::tip -- Não atribua matrículas personalizadas a veículos sem matrícula (barcos, aviões, etc.), pois isso resultará em algum tempo de processamento desnecessário para o cliente. -- Você pode usar a incorporação de cores no texto da placa de matrícula. +Você pode usar a [incorporação de cores](../resources/colorslist#color-embedding) no texto da placa de matrícula. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsForPlayer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsForPlayer.md index 5c1850b1026d..5b6d4f6d3e7e 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsForPlayer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsForPlayer.md @@ -113,7 +113,7 @@ public OnVehicleStreamIn(vehicleid, forplayerid) :::note -Os veículos devem ser respawnados para que o ‘objetivo’ seja removido. +Os veículos devem ser [respawnados](SetVehicleToRespawn) para que o ‘objetivo’ seja removido. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ShowMenuForPlayer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ShowMenuForPlayer.md index 6b291a53de4d..41d4d4aa74b2 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ShowMenuForPlayer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ShowMenuForPlayer.md @@ -10,10 +10,10 @@ tags: ["player", "menu"] Mostra um menu criado anteriormente para um jogador. -| Nome | Descrição | -| ----------- | ---------------------------------------------------- | -| Menu:menuid | O ID do menu a ser exibido. Retornado por CreateMenu. | -| playerid | O ID do jogador para quem o menu será mostrado. | +| Nome | Descrição | +| ----------- | ------------------------------------------------------------------- | +| Menu:menuid | O ID do menu a ser exibido. Retornado por [CreateMenu](CreateMenu). | +| playerid | O ID do jogador para quem o menu será mostrado. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerDialog.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerDialog.md index 44c372641240..a9f118961ca1 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerDialog.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerDialog.md @@ -67,7 +67,7 @@ ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_TABLIST_HEADERS, "Buy We :::tip - É recomendado usar enumerações (enums - veja abaixo) ou constantes (#define) para determinar quais dialogid's estão sendo usados, para evitar confusões no futuro. Você nunca deve usar números direto, porque isso gera confusões. -- Use cores embutidas para múltiplas cores no texto. +- Use [cores embutidas](../resources/colorslist#color-embedding) para múltiplas cores no texto. - Usando **-1** como `dialogid` fecha todos os dialogs abertos na tela do cliente (jogador). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md index 275f19f27a01..b39e4ae70a9e 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md @@ -8,7 +8,7 @@ tags: ["player"] ## Descrição -Alterna marcadores de jogador (pontos no radar). Deve ser usado quando o servidor for iniciado (OnGameModeInit). Para outras ocasiões, consulte [SetPlayerMarkerForPlayer](SetPlayerMarkerForPlayer). +Alterna marcadores de jogador (pontos no radar). Deve ser usado quando o servidor for iniciado ([OnGameModeInit](../callbacks/OnGameModeInit)). Para outras ocasiões, consulte [SetPlayerMarkerForPlayer](SetPlayerMarkerForPlayer). | Nome | Descrição | | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------- | @@ -39,7 +39,7 @@ public OnGameModeInit() :::tip -Também é possível definir a cor de um jogador para uma cor que tenha transparência total (sem valor alfa). Isso torna possível mostrar marcadores por jogador. +Também é possível [definir a cor de um jogador](SetPlayerColor) para uma cor que tenha transparência total (sem valor alfa). Isso torna possível mostrar marcadores por jogador. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerNameTagForPlayer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerNameTagForPlayer.md index 6c27bc28ad13..378d48610782 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerNameTagForPlayer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerNameTagForPlayer.md @@ -44,7 +44,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -[ShowNameTags](ShowNameTags) deve ser definido como 'true' para poder mostrar tags de nome com ShowPlayerNameTagForPlayer, isso significa que para ser eficaz você precisa ShowPlayerNameTagForPlayer(forplayerid, playerid, 0) com antecedência ([OnPlayerStreamIn](../callbacks/OnPlayerStreamIn) é um bom local). +[ShowNameTags](ShowNameTags) deve ser definido como 'true' para poder mostrar tags de nome com ShowPlayerNameTagForPlayer, isso significa que para ser eficaz você precisa `ShowPlayerNameTagForPlayer(forplayerid, playerid, 0)` com antecedência ([OnPlayerStreamIn](../callbacks/OnPlayerStreamIn) é um bom local). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/StopPlayerObject.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/StopPlayerObject.md index 920e47e5a35c..6ebf30800306 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/StopPlayerObject.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/StopPlayerObject.md @@ -8,7 +8,7 @@ tags: ["player"] ## Descrição -Pare um objeto de jogador em movimento após MovePlayerObject ter sido usado. +Pare um objeto de jogador em movimento após [MovePlayerObject](MovePlayerObject) ter sido usado. | Nome | Descrição | | -------- | ------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/StopRecordingPlayerData.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/StopRecordingPlayerData.md index 39fa15cbde04..79b2e9f66706 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/StopRecordingPlayerData.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/StopRecordingPlayerData.md @@ -8,7 +8,7 @@ tags: ["player"] ## Descrição -Pára todas as gravações iniciadas com StartRecordingPlayerData para um jogador específico. +Pára todas as gravações iniciadas com [StartRecordingPlayerData](StartRecordingPlayerData) para um jogador específico. | Nome | Descrição | | -------- | ---------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawDestroy.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawDestroy.md index fa43c6fb5204..cc7208b7b208 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawDestroy.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawDestroy.md @@ -10,9 +10,9 @@ tags: ["textdraw"] Destrói um textdraw criado anteriormente. -| Nome | Descrição | -| ----------- | -------------------------------------------------------------- | -| Text:textid | O ID do textdraw a ser destruído. Retornado por TextDrawCreate. | +| Nome | Descrição | +| ----------- | --------------------------------------------------------------------------------- | +| Text:textid | O ID do textdraw a ser destruído. Retornado por [TextDrawCreate](TextDrawCreate). | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawFont.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawFont.md index ebd436c6dc07..8c4c0bc5a911 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawFont.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawFont.md @@ -10,10 +10,10 @@ tags: ["textdraw"] Altera a fonte do texto. -| Nome | Descrição | -| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| Text:textid | O TextDraw para mudar | -| TEXT_DRAW_FONT:font | Existem quatro estilos de fonte, conforme mostrado abaixo. O valor da fonte **4** especifica que este é um sprite txd; **5** especifica que este textdraw pode exibir modelos de visualização. Um valor de fonte maior que 5 não é exibido e qualquer valor maior que 16 trava o cliente. | +| Nome | Descrição | +| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Text:textid | O TextDraw para mudar | +| TEXT_DRAW_FONT:font | Existem quatro estilos de fonte, conforme mostrado abaixo. O valor da fonte **4** especifica que este é um [sprite txd](../resources/textdrawsprites); **5** especifica que este textdraw pode exibir [modelos de visualização](TextDrawSetPreviewModel). Um valor de fonte maior que 5 não é exibido e qualquer valor maior que 16 trava o cliente. | **Estilos disponíveis:** ![Estilos disponíveis](https://assets.open.mp/assets/images/textdraws/Textdraw_font_styles.png) diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md index 7a89aade7d7c..e965e59f2d58 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md @@ -36,7 +36,7 @@ public OnGameModeInit() :::tip -- Ao usar esta função apenas para afetar a caixa TextDraw, multiplique 'Y' por 0.135 para converter para medições semelhantes a TextDrawTextSize. **Dica**: é mais fácil e extremamente preciso usar o sprite **LD_SPAC:white** para desenhos de texto somente em caixa, TextDrawTextSize terá deslocamentos regulares. +- Ao usar esta função apenas para afetar a caixa TextDraw, multiplique 'Y' por 0.135 para converter para medições semelhantes a [TextDrawTextSize](TextDrawTextSize). **Dica**: é mais fácil e extremamente preciso usar o sprite **LD_SPAC:white** para desenhos de texto somente em caixa, TextDrawTextSize terá deslocamentos regulares. - Se quiser alterar o tamanho da letra de um textdraw que já está mostrado, não é necessário recriá-lo. Basta usar [TextDrawShowForPlayer](TextDrawShowForPlayer)/[TextDrawShowForAll](TextDrawShowForAll) após modificar o textdraw e a alteração ficará visível. - As fontes parecem ter melhor aparência com uma proporção de X para Y de 1 para 4 (por exemplo, se x for 0.5, y deverá ser 2). diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetOutline.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetOutline.md index 1fc06ee4f8e4..7abf4cb76087 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetOutline.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetOutline.md @@ -8,7 +8,7 @@ tags: ["textdraw"] ## Descrição -Define a espessura do contorno do texto de um textdraw. TextDrawBackgroundColor pode ser usado para alterar a cor. +Define a espessura do contorno do texto de um textdraw. [TextDrawBackgroundColor](TextDrawBackgroundColor) pode ser usado para alterar a cor. | Nome | Descrição | | ----------- | -------------------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewVehCol.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewVehCol.md index 582ef01f85c5..1581b77f333a 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewVehCol.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewVehCol.md @@ -10,11 +10,11 @@ tags: ["textdraw"] Se um modelo de veículo for usado em um textdraw de visualização 3D, isso definirá os dois valores de cores para esse veículo. -| Nome | Descrição | -| ----------- | ------------------------------------------------------------------ | +| Nome | Descrição | +| ----------- | ------------------------------------------------------------------------------- | | Text:textid | O ID do textdraw definido para exibir uma visualização do modelo de veículo 3D. | -| colour1 | A cor primária ID para definir o veículo. | -| colour2 | A cor secundária ID para definir o veículo. | +| colour1 | A [cor primária ID](../resources/vehiclecolorid) para definir o veículo. | +| colour2 | A [cor secundária ID](../resources/vehiclecolorid) para definir o veículo. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForPlayer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForPlayer.md index aeacf5580289..ab809df18414 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForPlayer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForPlayer.md @@ -8,7 +8,7 @@ tags: ["player", "textdraw"] ## Descrição -Mostra um textdraw para um jogador específico. +Mostra um [textdraw](TextDrawCreate) para um jogador específico. | Nome | Descrição | | ----------- | ---------------------------------------------------------------------------------- | @@ -42,7 +42,7 @@ public OnPlayerConnect(playerid) :::tip -Se apenas um único jogador verá um textdraws, pode ser aconselhável usar player-textdraws. Isto também é útil para textdraws que precisam mostrar informações específicas para um jogador individual. +Se apenas um único jogador verá um textdraws, pode ser aconselhável usar [player-textdraws](CreatePlayerTextDraw). Isto também é útil para textdraws que precisam mostrar informações específicas para um jogador individual. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md index 3b4960fe93db..5a647dbe231b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md @@ -36,10 +36,13 @@ public OnGameModeInit() :::note -- Os x e y têm significados diferentes com valores TextDrawAlignment diferentes: 1 (esquerda): são o canto mais direito da caixa, coordenadas absolutas. 2 (centro): eles precisam ser invertidos (trocar os dois) e o valor x é a largura total da caixa. 3 (direita): x e y são as coordenadas do canto mais esquerdo da caixa -- Usar o tipo de fonte 4 (sprite) e 5 (visualização do modelo) converte X e Y desta função das coordenadas de canto para WIDTH e HEIGHT (offsets). +- Os x e y têm significados diferentes com valores [TextDrawAlignment](TextDrawAlignment) diferentes: + - 1 (esquerda): são o canto mais direito da caixa, coordenadas absolutas. + - 2 (centro): eles precisam ser invertidos (trocar os dois) e o valor x é a largura total da caixa. + - 3 (direita): x e y são as coordenadas do canto mais esquerdo da caixa +- Usar o [tipo de fonte](TextDrawFont) 4 (sprite) e 5 (visualização do modelo) converte X e Y desta função das coordenadas de canto para WIDTH e HEIGHT (offsets). - A caixa TextDraw inicia 10.0 unidades para cima e 5.0 para a esquerda como origem (coordenada TextDrawCreate). -- Esta função define a área clicável para uso com TextDrawSetSelectable, seja uma caixa mostrada ou não. +- Esta função define a área clicável para uso com [TextDrawSetSelectable](TextDrawSetSelectable), seja uma caixa mostrada ou não. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerSpectating.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerSpectating.md index d7182d97c972..0550776edf11 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerSpectating.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerSpectating.md @@ -37,13 +37,13 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::note -Quando o modo espectador estiver desabilitado, OnPlayerSpawn será chamado automaticamente, se você deseja restaurar o estado do jogador antes de ser espectador, você terá que lidar com isso em OnPlayerSpawn. Observe também que o jogador também pode ir para a seleção de classe antes, se tiver usado F4 durante o espectador, um jogador também CAN morre no modo espectador devido a várias falhas. +Quando o modo espectador estiver desabilitado, [OnPlayerSpawn](../callbacks/OnPlayerSpawn) será chamado automaticamente, se você deseja restaurar o estado do jogador antes de ser espectador, você terá que lidar com isso em OnPlayerSpawn. Observe também que o jogador também pode ir para a seleção de classe antes, se tiver usado F4 durante o espectador, um jogador também CAN morre no modo espectador devido a várias falhas. ::: :::tip -Quando um jogador está no modo espectador, seu HUD fica oculto, tornando-o útil para configurar a câmera de um jogador sem o HUD. Além disso, objetos próximos à câmera do jogador serão transmitidos, tornando isso útil para interpolar câmeras. +Quando um jogador está no modo espectador, seu HUD fica oculto, tornando-o útil para configurar a câmera de um jogador sem o HUD. Além disso, objetos próximos à câmera do jogador serão transmitidos, tornando isso útil para [interpolar câmeras](InterpolateCameraPos). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/atan.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/atan.md index 1a616e9dab37..548661b2cd66 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/atan.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/atan.md @@ -7,7 +7,7 @@ tags: ["math"] ## Descrição -Obter o valor inverso de uma tangente em graus. Em trigonometria, arco tangente é a operação inversa da tangente. Note que devido à ambiguidade de sinal, a função não consegue determinar com certeza em qual quadrante o ângulo se encontra apenas pelo seu valor de tangente. Veja [atan2](atan2) para uma alternativa que aceita um argumento fracional. +Obter o valor inverso de uma [tangente](https://en.wikipedia.org/wiki/Trigonometric_functions) em graus. Em trigonometria, arco tangente é a operação inversa da tangente. Note que devido à ambiguidade de sinal, a função não consegue determinar com certeza em qual quadrante o ângulo se encontra apenas pelo seu valor de tangente. Veja [atan2](atan2) para uma alternativa que aceita um argumento fracional. | Nome | Descrição | | ----------- | ------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_free_result.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_free_result.md index b2768cc3c8b8..8583dcd087d6 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_free_result.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_free_result.md @@ -7,7 +7,7 @@ tags: ["sqlite"] ## Descrição -Libera a memória do resultado alocada de db_query. +Libera a memória do resultado alocada de [db_query](db_query). | Nome | Descrição | | ----------------- | ---------------------------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field.md index 26988bb83a4e..636e04a68615 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field.md @@ -7,7 +7,7 @@ tags: ["sqlite"] ## Descrição -Obtém o conteúdo de um campo de db_query +Obtém o conteúdo de um campo de [db_query](db_query). | Nome | Descrição | | ----------------- | ----------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_int.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_int.md index 2dfe46b60953..361844a89d21 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_int.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_int.md @@ -7,7 +7,7 @@ tags: ["sqlite"] ## Descrição -Obtém o conteúdo de um campo como um inteiro de db_query +Obtém o conteúdo de um campo como um inteiro de [db_query](db_query). | Nome | Descrição | | ----------------- | ----------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md index 96905582518a..de2521b197a7 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md @@ -10,11 +10,11 @@ tags: ["core", "property"] Verifique se existe uma propriedade. -| Nome | Descrição | -| ------ | --------------------------------------------------------------------------------------------------- | -| id | A máquina virtual a ser usada, você deve manter este zero. _(opcional=0)_ | -| name[] | O nome da propriedade, você deve manter este "". | -| valor | O ID exclusivo da propriedade. Use a função hash para calculá-lo a partir de uma string. _(opcional=célulamin)_ | +| Nome | Descrição | +| ------ | -------------------------------------------------------------------------------------------------------------------------- | +| id | A [máquina virtual](https://en.wikipedia.org/wiki/Virtual_machine) a ser usada, você deve manter este zero. _(opcional=0)_ | +| name[] | O nome da propriedade, você deve manter este "". | +| valor | O ID exclusivo da propriedade. Use a função hash para calculá-lo a partir de uma string. _(opcional=cellmin)_ | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fblockread.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fblockread.md index 5baca7ef7aef..530c351d53ba 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fblockread.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fblockread.md @@ -10,11 +10,11 @@ tags: ["file management"] Esta função permite ler dados de um arquivo, sem codificação e terminadores de linha -| Nome | Descrição | -| ---------------------- | ------------------------------------------------------- | -| File:handle | Identificador de arquivo a ser usado, aberto por fopen. | -| buffer | O buffer para salvar os dados lidos. | -| size = sizeof (buffer) | O número de células a serem lidas. | +| Nome | Descrição | +| ---------------------- | ---------------------------------------------------------------- | +| File:handle | Identificador de arquivo a ser usado, aberto por [fopen](fopen). | +| buffer | O buffer para salvar os dados lidos. | +| size = sizeof (buffer) | O número de células a serem lidas. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fblockwrite.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fblockwrite.md index 072d4b0f77f9..753bfe42b27c 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fblockwrite.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fblockwrite.md @@ -10,11 +10,11 @@ tags: ["file management"] Grave dados em um arquivo em formato binário, ignorando freios de linha e codificação. -| Nome | Descrição | -| ---------------------- | --------------------------------------------------------- | -| File:handle | O identificador de arquivo a ser usado, aberto por fopen. | -| const buffer[] | Os dados a serem gravados no arquivo. | -| size = sizeof (buffer) | O número de células a serem gravadas. | +| Nome | Descrição | +| ---------------------- | ------------------------------------------------------------------ | +| File:handle | O identificador de arquivo a ser usado, aberto por [fopen](fopen). | +| const buffer[] | Os dados a serem gravados no arquivo. | +| size = sizeof (buffer) | O número de células a serem gravadas. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fgetchar.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fgetchar.md index 9ff61552231d..35e6a2d1ab4c 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fgetchar.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fgetchar.md @@ -10,11 +10,11 @@ tags: ["file management"] Lê um único caractere de um arquivo. -| Nome | Descrição | -| ----------- | ------------------------------------------------------------------------------------ | -| File:handle | O identificador de arquivo a ser usado; retornado por fopen. | -| valor | Este parâmetro não tem utilidade, basta mantê-lo em “0”. | -| bool:utf8 | Se for `true`, leia um caractere como UTF-8, caso contrário, como ASCII estendido. (padrão: `true`) | +| Nome | Descrição | +| ----------- | --------------------------------------------------------------------------------------------------- | +| File:handle | O identificador de arquivo a ser usado; retornado por [fopen](fopen). | +| valor | Este parâmetro não tem utilidade, basta mantê-lo em “0”. | +| bool:utf8 | Se for `true`, leia um caractere como UTF-8, caso contrário, como ASCII estendido. (padrão: `true`) | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/flength.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/flength.md index 5718c9e07ffc..f6bb81fb5db3 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/flength.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/flength.md @@ -10,9 +10,9 @@ tags: ["file management"] Retorna o comprimento de um arquivo. -| Nome | Descrição | -| ----------- | ------------------------------------------ | -| File:handle | O identificador de arquivo retornado por fopen ou ftemp | +| Nome | Descrição | +| ----------- | ------------------------------------------------------------------------- | +| File:handle | O identificador de arquivo retornado por [fopen](fopen) ou [ftemp](ftemp) | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md index 492bb9401b51..9a9cb647a46b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md @@ -7,7 +7,7 @@ tags: ["math", "floating-point"] ## Descrição -Esta função retorna o valor absoluto de um float. +Esta função retorna o [valor absoluto](https://en.wikipedia.org/wiki/Absolute_value) de um float. | Name | Description | | ----------- | ------------------------------------------ | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md index 68a62a30dd7f..1bab6b2ba329 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md @@ -8,7 +8,7 @@ tags: ["math", "floating-point"] ## Descrição -Obtenha o cosseno de um determinado ângulo. O ângulo de entrada pode estar em radianos, graus ou graus. +Obtenha o [cosseno](https://en.wikipedia.org/wiki/Sine_and_cosine) de um determinado ângulo. O ângulo de entrada pode estar em radianos, graus ou graus. | Nome | Descrição | | -------------- | --------------------------------------------------------------------------------------------------- | @@ -33,7 +33,8 @@ public OnGameModeInit() :::warning -GTA/SA-MP usam **graus** para ângulos na maioria das circunstâncias, por exemplo [GetPlayerFacingAngle](GetPlayerFacingAngle). Portanto, é mais provável que você queira usar o modo de ângulo '**degrees**', _não_ radianos. Observe também que os ângulos em GTA são no sentido anti-horário; 270° é Leste e 90° é Oeste. O Sul ainda é 180° e o Norte ainda é 0°/360°. +- GTA/SA-MP usam **graus** para ângulos na maioria das circunstâncias, por exemplo [GetPlayerFacingAngle](GetPlayerFacingAngle). Portanto, é mais provável que você queira usar o modo de ângulo '**degrees**', _não_ radianos. +- Observe também que os ângulos em GTA são no sentido anti-horário; 270° é Leste e 90° é Oeste. O Sul ainda é 180° e o Norte ainda é 0°/360°. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md index baa54a503aee..062ac66d971d 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md @@ -8,7 +8,7 @@ tags: ["math", "floating-point"] ## Descrição -Esta função permite obter o logaritmo de um valor flutuante. +Esta função permite obter o [logaritmo](https://en.wikipedia.org/wiki/Logarithm) de um valor flutuante. | Nome | Descrição | | ----------- | ---------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md index f79d33ea849a..a13179bd75f4 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md @@ -8,7 +8,7 @@ tags: ["math", "floating-point"] ## Descrição -Obtenha o seno de um determinado ângulo. O ângulo de entrada pode estar em radianos, graus ou graus. +Obtenha o [seno](https://en.wikipedia.org/wiki/Sine_and_cosine) de um determinado ângulo. O ângulo de entrada pode estar em radianos, graus ou graus. | Nome | Descrição | | -------------- | --------------------------------------------------------------------------------------------------- | @@ -41,7 +41,8 @@ GetPosInFrontOfPlayer(playerid, Float:distance, &Float:x, &Float:y, &Float:z) :::warning -GTA/SA-MP usam **graus** para ângulos na maioria das circunstâncias, por exemplo [GetPlayerFacingAngle](GetPlayerFacingAngle). Portanto, é mais provável que você queira usar o modo de ângulo '**degrees**', _não_ radianos. Observe também que os ângulos em GTA são no sentido anti-horário; 270° é Leste e 90° é Oeste. O Sul ainda é 180° e o Norte ainda é 0°/360°. +- GTA/SA-MP usam **graus** para ângulos na maioria das circunstâncias, por exemplo [GetPlayerFacingAngle](GetPlayerFacingAngle). Portanto, é mais provável que você queira usar o modo de ângulo '**degrees**', _não_ radianos. +- Observe também que os ângulos em GTA são no sentido anti-horário; 270° é Leste e 90° é Oeste. O Sul ainda é 180° e o Norte ainda é 0°/360°. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md index bd3501041fc3..a6cb0f44d80a 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md @@ -8,7 +8,7 @@ tags: ["math", "floating-point"] ## Descrição -Calcula a raiz quadrada de determinado valor. +Calcula a [raiz quadrada](https://en.wikipedia.org/wiki/Square_root) de determinado valor. | Nome | Descrição | | ----------- | ----------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md index 64e42b289772..22bd3b5ec78b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md @@ -8,7 +8,7 @@ tags: ["math", "floating-point"] ## Descrição -Obtenha a tangente de um determinado ângulo. O ângulo de entrada pode estar em radianos, graus ou graus. +Obtenha a [tangente](https://en.wikipedia.org/wiki/Trigonometric_functions) de um determinado ângulo. O ângulo de entrada pode estar em radianos, graus ou graus. | Nome | Descrição | | ----------- | --------------------------------------------------------------------------------------------------- | @@ -33,7 +33,8 @@ public OnGameModeInit() :::warning -GTA/SA-MP usam **graus** para ângulos na maioria das circunstâncias, por exemplo [GetPlayerFacingAngle](GetPlayerFacingAngle). Portanto, é mais provável que você queira usar o modo de ângulo '**degrees**', _não_ radianos. Observe também que os ângulos em GTA são no sentido anti-horário; 270° é Leste e 90° é Oeste. O Sul ainda é 180° e o Norte ainda é 0°/360°. +- GTA/SA-MP usam **graus** para ângulos na maioria das circunstâncias, por exemplo [GetPlayerFacingAngle](GetPlayerFacingAngle). Portanto, é mais provável que você queira usar o modo de ângulo '**degrees**', _não_ radianos. +- Observe também que os ângulos em GTA são no sentido anti-horário; 270° é Leste e 90° é Oeste. O Sul ainda é 180° e o Norte ainda é 0°/360°. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fmatch.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fmatch.md index f72c664de89e..00658302f227 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fmatch.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fmatch.md @@ -10,12 +10,12 @@ tags: ["file management"] Encontre um nome de arquivo que corresponda a um padrão. -| Nome | Descrição | -| ------------------------ | -------------------------------------------------------------------------- | -| const filename[] | A string para armazenar o resultado, retornada como uma string compactada. | -| const pattern[] | O padrão que deve ser correspondido. Pode conter curingas. | -| index | O número do arquivo, caso haja múltiplas correspondências. (padrão: 0) | -| size = sizeof (filename) | O tamanho máximo do _nome_ do parâmetro. | +| Nome | Descrição | +| ------------------------ | --------------------------------------------------------------------------------------- | +| const filename[] | A string para armazenar o resultado, retornada como uma [string compactada](strunpack). | +| const pattern[] | O padrão que deve ser correspondido. Pode conter curingas. | +| index | O número do arquivo, caso haja múltiplas correspondências. (padrão: 0) | +| size = sizeof (filename) | O tamanho máximo do _nome_ do parâmetro. | ## Retornos 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 37b6a9843ce6..0838a086f0dc 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 @@ -79,7 +79,7 @@ SendClientMessage(playerid, 0xFF8000FF, string); :::warning -Esta função não oferece suporte a strings compactadas. +Esta função não oferece suporte a [strings compactadas](strpack). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fputchar.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fputchar.md index 28bba997a317..a72bd77d8137 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fputchar.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fputchar.md @@ -12,7 +12,7 @@ Escreva um caractere em um arquivo. | Nome | Descrição | | ----------- | ----------------------------------------------------------------------------------------- | -| File:handle | O identificador de arquivo a ser usado, aberto anteriormente por fopen. | +| File:handle | O identificador de arquivo a ser usado, aberto anteriormente por [fopen](fopen). | | valor | O caractere a ser gravado no arquivo. | | bool:utf8 | Se for `true`, escreva no modo UTF8, caso contrário, em ASCII estendido. (padrão: `true`) | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fread.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fread.md index d613751ff816..bca2aa0b4139 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fread.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fread.md @@ -10,12 +10,12 @@ tags: ["file management"] Leia uma única linha de um arquivo. -| Nome | Descrição | -| ---------------------- | -------------------------------------------------------------- | -| File:handle | O identificador do arquivo a ser lido (retornado por fopen). | -| string[] | Uma matriz de strings para armazenar o texto lido, passado por referência. | -| size = sizeof (string) | O número de bytes a serem lidos. | -| bool:pack | A string deve ser embalada? (padrão: false). | +| Nome | Descrição | +| ---------------------- | -------------------------------------------------------------------------- | +| File:handle | O identificador do arquivo a ser lido (retornado por [fopen](fopen)). | +| string[] | Uma matriz de strings para armazenar o texto lido, passado por referência. | +| size = sizeof (string) | O número de bytes a serem lidos. | +| bool:pack | A string deve ser embalada? (padrão: false). | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fremove.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fremove.md index c45c6b8dcc19..60272ce8796c 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fremove.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fremove.md @@ -50,7 +50,7 @@ else :::note -Os arquivos que estão atualmente abertos (fopen) devem ser fechados primeiro (fclose) para serem excluídos. +Os arquivos que estão atualmente abertos ([fopen](fopen)) devem ser fechados primeiro ([fclose](fclose)) para serem excluídos. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fseek.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fseek.md index d9af5d8073b2..6081bfad1f49 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fseek.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fseek.md @@ -12,7 +12,7 @@ Altere a posição atual no arquivo. Você pode avançar ou retroceder no arquiv | Nome | Descrição | | --------------------------------------------------- | ------------------------------------------------------------------------- | -| File:handle | O identificador de arquivo a ser usado. Retornado por fopen. | +| File:handle | O identificador de arquivo a ser usado. Retornado por [fopen](fopen). | | position | A nova posição no arquivo, relativa ao parâmetro de origem (veja abaixo). | | [seek_whence:whence](../resources/file-seek-whence) | A posição inicial à qual a posição do parâmetro se refere. | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md index cdb33b66702f..8434968330a3 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md @@ -10,10 +10,10 @@ tags: ["file management"] Escreva texto em um arquivo. -| Nome | Descrição | -| -------------- | ------------------------------------------------------- | -| File:handle | O identificador do arquivo no qual gravar (retornado por fopen). | -| const string[] | A sequência de texto a ser gravada no arquivo. | +| Nome | Descrição | +| -------------- | ------------------------------------------------------------------------- | +| File:handle | O identificador do arquivo no qual gravar (retornado por [fopen](fopen)). | +| const string[] | A sequência de texto a ser gravada no arquivo. | ## Retornos @@ -104,7 +104,7 @@ else :::note -Esta função grava no arquivo em UTF-8, que não suporta alguns símbolos de idioma localizados. +Esta função grava no arquivo em [UTF-8](https://en.wikipedia.org/wiki/UTF-8), que não suporta alguns símbolos de idioma localizados. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md index e22ad49d5e46..f2eb1aa24071 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md @@ -10,12 +10,12 @@ tags: ["core", "property"] Obtenha uma propriedade específica da memória, a string é retornada como uma string compactada! -| Nome | Descrição | -| -------- | --------------------------------------------------------------------------------------------------- | -| id | A máquina virtual a ser usada, você deve manter este zero. _(opcional=0)_ | -| name[] | O nome da propriedade, você deve manter este "". | -| valor | O ID exclusivo da propriedade. Use a função hash para calculá-lo a partir de uma string. _(opcional=célulamin)_ | -| string[] | A variável para armazenar o resultado, passada por referência. | +| Nome | Descrição | +| -------- | -------------------------------------------------------------------------------------------------------------------------- | +| id | A [máquina virtual](https://en.wikipedia.org/wiki/Virtual_machine) a ser usada, você deve manter este zero. _(opcional=0)_ | +| name[] | O nome da propriedade, você deve manter este "". | +| valor | O ID exclusivo da propriedade. Use a função hash para calculá-lo a partir de uma string. _(opcional=cellmin)_ | +| string[] | A variável para armazenar o resultado, passada por referência. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/gettime.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/gettime.md index c324a3070618..a16baf5897c4 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/gettime.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/gettime.md @@ -17,7 +17,7 @@ Retorna o horário atual do servidor, aonde será guardado nas variáveis &hora, ## Retorno -A própria função se retorna em Unix Timestamp. +A própria função se retorna em [Unix Timestamp](https://en.wikipedia.org/wiki/Unix_time). ## Exemplos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/random.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/random.md index 2f62965e9c55..6cff32a9775f 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/random.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/random.md @@ -7,7 +7,7 @@ tags: ["core"] ## Descrição -Obtenha um número pseudo-aleatório. +Obtenha um [número pseudo-aleatório](https://en.wikipedia.org/wiki/Pseudorandom_number_generator). | Nome | Descrição | | ---- | --------------------------------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md index 28e4268b7795..828a1c83d643 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md @@ -9,12 +9,12 @@ tags: ["core", "property"] Adicione uma nova propriedade ou altere uma propriedade existente. -| Nome | Descrição | -| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| id | A máquina virtual a ser usada, você deve manter este zero. _(opcional=0)_ | -| name[] | Usado em combinação com _valor_ ao armazenar números inteiros; não use isso se quiser armazenar uma string. | -| valor | O valor inteiro a ser armazenado **ou** o ID exclusivo da propriedade, se estiver armazenando uma string. Use a função hash para calculá-lo a partir de uma string. _(opcional=célulamin)_ | -| string[] | O valor da propriedade, como uma string. Não use isso se quiser armazenar um número inteiro. | +| Nome | Descrição | +| -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| id | A [máquina virtual](https://en.wikipedia.org/wiki/Virtual_machine) a ser usada, você deve manter este zero. _(opcional=0)_ | +| name[] | Usado em combinação com _valor_ ao armazenar números inteiros; não use isso se quiser armazenar uma string. | +| valor | O valor inteiro a ser armazenado **ou** o ID exclusivo da propriedade, se estiver armazenando uma string. Use a função hash para calculá-lo a partir de uma string. _(opcional=cellmin)_ | +| string[] | O valor da propriedade, como uma string. Não use isso se quiser armazenar um número inteiro. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md index acdbfe643045..bb3c099f7c72 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md @@ -7,7 +7,7 @@ tags: ["string"] ## Descrição -Esta função concatena (junta) duas strings numa string de destino. +Esta função [concatena](https://en.wikipedia.org/wiki/Concatenation) (junta) duas strings numa string de destino. | Nome | Descrição | | ------------------------- | ------------------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md index 9ac15e5489a4..125f5a218fe8 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md @@ -19,7 +19,10 @@ Compara duas strings para ver se são iguais. ## Retorno **0** se as strings combinam entre si em determinado comprimento; -**1** ou **-1** se algum caractere não combina: string1[i] - string2[i] ('i' representa o índice de caracteres começando em 0); **Diferença no número de caracteres** se uma string corresponde apenas a parte de outra string. + +**1** ou **-1** se algum caractere não combina: string1[i] - string2[i] ('i' representa o índice de caracteres começando em 0); + +**Diferença no número de caracteres** se uma string corresponde apenas a parte de outra string. ## Exemplos @@ -48,7 +51,7 @@ if (!strcmp(string1, string2) && !isnull(string1) && !isnull(string2)) :::warning -Se você comparar strings de um arquivo de texto, você deve levar em consideração os caracteres especiais 'carriage return' e 'new line' (\r \n), conforme eles são incluídos, ao usar fread. +Se você comparar strings de um arquivo de texto, você deve levar em consideração os caracteres especiais 'carriage return' e 'new line' (\r \n), conforme eles são incluídos, ao usar [fread](fread). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/tickcount.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/tickcount.md index eb7b8aef0094..16d304f3f23e 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/tickcount.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/tickcount.md @@ -7,7 +7,7 @@ tags: ["time"] ## Descrição -Esta função pode ser usada como substituição para GetTickCount, pois retorna o número de milissegundos desde a inicialização do servidor. +Esta função pode ser usada como substituição para [GetTickCount](GetTickCount), pois retorna o número de milissegundos desde a inicialização do servidor. | Name | Description | | -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md index 637bd190c2cd..08dda6b8572b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md @@ -30,9 +30,3 @@ Podem haver mais IDs utilizáveis escondidos no jogo e alguns IDs são usados pa | 53 | CAM_MODE_AIMWEAPON | Mirando qualquer outra ara. | | 55 | CAM_MODE_AIMWEAPON_FROMCAR | Câmera drive-by de passageiros no veículo. | | 56 | CAM_MODE_DW_HELI_CHASE | Câmera de perseguição: visão de helicoptero. | -| 57 | - | Câmera de perseguição: câmera no chão, zoom rápido. (Assim como o 56, mas no chão.) | -| 58 | - | Câmera de perseguição: Voo vertical que passa pelo veículo. | -| 59 | - | Câmera de perseguição (apenas para veículo aéreos): câmera no chão olhando para o veículo. | -| 62 | - | Câmera de perseguição (apenas para veículo aéreos): Voo vertical que passa pelo veículo. | -| 63 | - | Câmera de perseguição (apenas para veículo aéreos): Voo horizontal que passa pelo veículo. (similar com 58 e 62). | -| 64 | - | Câmera de perseguição (apenas para veículo aéreos): câmera focada no piloto, similar ao pressionar LOOK_BEHIND (olhar para trás) ao estar apé, mas em um veículo aéreo. | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/damagestatus.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/damagestatus.md index 013b018d14c0..50df6f165424 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/damagestatus.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/damagestatus.md @@ -16,10 +16,10 @@ Por exemplo, o status dos pneus armazena 4 bits para os 4 pneus. O valor é 1 se :::note -Para mais informações sobre estados de painéis, veja [Panel States](panelstates). -Para mais informações sobre estados de portas, veja [Door States](doorstates). -Para mais informações sobre estados de luzes, veja [Light States](lightstates). -Para mais informações sobre estados de pneus, veja [Tire States](tirestates). +- Para mais informações sobre estados de painéis, veja [Panel States](panelstates). +- Para mais informações sobre estados de portas, veja [Door States](doorstates). +- Para mais informações sobre estados de luzes, veja [Light States](lightstates). +- Para mais informações sobre estados de pneus, veja [Tire States](tirestates). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md index aee9970143c4..597b5ce82774 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md @@ -7,7 +7,7 @@ sidebar_label: Dialog Styles - Em [OnDialogResponse](../callbacks/OnDialogResponse), pressionar **button1** define **response** para **1**, enquanto pressionar **button2** define **response** para **0**. - Todo dialog tem um button2 opcional. Para que ele não seja mostrado, mantenha o parâmetro vazio, como no primeiro exemplo. Os jogadores não poderão clicá-lo, mas eles ainda poderão apertar ESC e chamar [OnDialogResponse](../callbacks/OnDialogResponse) com **response** = **0**. -- [ShowPlayerDialog](../functions/ShowPlayerDialog): As cores embutidas podem ser utilizadas nos parâmetros: **caption**, **info**, **button1** e **button2**. +- [ShowPlayerDialog](../functions/ShowPlayerDialog): As [cores embutidas](colorslist#color-embedding) podem ser utilizadas nos parâmetros: **caption**, **info**, **button1** e **button2**. ::: @@ -33,7 +33,7 @@ Visualização: - **\t** adiciona um TAB (mais espaço). - **\n** cria uma nova linha. -- Cores embutidas não resetarão após **\n** ou **\t** +- [Cores embutidas](colorslist#color-embedding) não resetarão após **\n** ou **\t** ::: @@ -68,7 +68,7 @@ Visualização: - **\t** adiciona um TAB (mais espaço). - **\n** cria uma nova linha. -- Cores embutidas não resetarão após **\n** ou **\t** +- [Cores embutidas](colorslist#color-embedding) não resetarão após **\n** ou **\t** ::: @@ -103,7 +103,7 @@ Visualização: - **\t** adiciona um TAB (mais espaço). - **\n** cria uma nova linha. -- Cores embutidas não resetarão após **\n** ou **\t** +- [Cores embutidas](colorslist#color-embedding) não resetarão após **\n** ou **\t** ::: @@ -190,7 +190,7 @@ Visualização: - **\t** adiciona um TAB (mais espaço). - **\n** cria uma nova linha. -- Cores embutidas não resetarão após **\n** ou **\t**. +- [Cores embutidas](colorslist#color-embedding) não resetarão após **\n** ou **\t**. ::: @@ -238,7 +238,8 @@ Showing: - **\t** cria uma nova coluna. - **\n** cria um novo item na lista. -- Cores embutidas reiniciarão após **\n** e **\t**. A primeira linha **info** define o cabeçalho. +- [Cores embutidas](colorslist#color-embedding) reiniciarão após **\n** e **\t**. +- A primeira linha **info** define o cabeçalho. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md index afe5eb2851f3..c61e8692b58a 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md @@ -4,7 +4,7 @@ sidebar_label: Estilos de GameText description: Estilos de GameText usados em textdraws e gametext. --- -Esta página aborda tudo o que você precisa saber sobre estilos de gametext e como eles podem ser usados em textdraw e em texto renderizado para um (único) jogador. +Esta página aborda tudo o que você precisa saber sobre estilos de gametext e como eles podem ser usados em [textdraw](../functions/TextDrawCreate) e em texto renderizado para um (único) jogador. Usado principalmente por [GameTextForPlayer](../functions/GameTextForPlayer) e [GameTextForAll](../functions/GameTextForAll). --- @@ -62,7 +62,9 @@ Diferentemente das cores de texto, esses slugs (código de texto) não exigem en :::caution -Tenha cuidado, usar muitas cores de texto ou caracteres especiais em um gametext pode travar todos os jogadores para os quais o gametext é exibido. Além disso, evite usar o caractere `~` de forma desigual. Exemplo: `~~r~Olá, ~g~como vai ~y~você?` +Tenha cuidado, usar muitas cores de texto ou caracteres especiais em um gametext pode travar todos os jogadores para os quais o gametext é exibido. Além disso, evite usar o caractere `~` de forma desigual. + +Exemplo: `~~r~Olá, ~g~como vai ~y~você?` ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/limits.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/limits.md index 66dfe1d7ebdd..e975bc3b4249 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/limits.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/limits.md @@ -41,35 +41,35 @@ tags: [] | Gamemodes | 16 | Ilimitado | | Filterscripts | 16 | Ilimitado | | Text Input (Chat/Commands) | 128 células (512 bytes) | 128 células (512 bytes) | -| Text Output | 144 células (576 bytes) | 144 células (576 bytes) | +| [Text Output](../functions/SendClientMessage) | 144 células (576 bytes) | 144 células (576 bytes) | | Name Length ([SetPlayerName](../functions/SetPlayerName)) | 24 caracteres | 24 caracteres | ## Textdraws -| Tipo | Limite (0.3.7) | -| ----------------------------------------------- | --------------- | -| String Length(2) | 1024 caracteres | -| Shown In A Single Client's Screen(3) | 2048 + 256 | -| Shown In A Single Client's Screen (sprites) | 100 | -| Created Serverwise (Global) | 2048 | -| Created Serverwise (Per-Player) | 256 | +| Tipo | Limite (0.3.7) | +| -------------------------------------------------------------------- | --------------- | +| String Length(2) | 1024 caracteres | +| Shown In A Single Client's Screen(3) | 2048 + 256 | +| Shown In A Single Client's Screen (sprites) | 100 | +| Created Serverwise ([Global](../functions/TextDrawCreate)) | 2048 | +| Created Serverwise ([Per-Player](../functions/CreatePlayerTextDraw)) | 256 | ## Diálogos -| Tipo | Limite (0.3.7) | -| ------------------------------------------------------------ | ------------- | -| Dialog IDs | 32768 | -| Info (Main text) | 4096 | -| Caption | 64 | -| Input Text Box (DIALOG_STYLE_INPUT/PASSWORD) | 128 | -| Tab List Columns (DIALOG_STYLE_TABLIST(\_HEADERS)) | 4 | -| Tab List Column Characters (DIALOG_STYLE_TABLIST(\_HEADERS)) | 128 | -| Tab List Row Characters (DIALOG_STYLE_TABLIST(\_HEADERS)) | 256 | +| Tipo | Limite (0.3.7) | +| ------------------------------------------------------------ | -------------- | +| [Dialog IDs](../functions/ShowPlayerDialog) | 32768 | +| Info (Main text) | 4096 | +| Caption | 64 | +| Input Text Box (DIALOG_STYLE_INPUT/PASSWORD) | 128 | +| Tab List Columns (DIALOG_STYLE_TABLIST(\_HEADERS)) | 4 | +| Tab List Column Characters (DIALOG_STYLE_TABLIST(\_HEADERS)) | 128 | +| Tab List Row Characters (DIALOG_STYLE_TABLIST(\_HEADERS)) | 256 | **Notas:** 1. Embora o limite de modelo de veículo em 0.3 seja ilimitado, se você usar uma grande quantidade de modelos de veículos, isso afetará o desempenho do cliente. -2. Embora o limite da string textdraw seja de 1.024 caracteres, se códigos de cores (por exemplo, `~r~`) forem usados além do 255º caractere, o cliente poderá travar. +2. Embora o limite da string textdraw seja de 1.024 caracteres, se [códigos de cores](gametextstyles#cores-do-texto) (por exemplo, `~r~`) forem usados além do 255º caractere, o cliente poderá travar. 3. É possível mostrar todos os Textdraws ao mesmo tempo para um jogador, porém isso não é recomendado. 4. Para contornar esses limites, é possível utilizar um [streamer](https://github.com/samp-incognito/samp-streamer-plugin). Os streamers funcionam apenas criando entidades, etc., que estão próximas dos jogadores. 5. Devido a limitações do cliente, apenas até 51 atores podem ser exibidos por vez. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/sqlite-open-flags.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/sqlite-open-flags.md index 0031b8122fe1..d949bf11d988 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/sqlite-open-flags.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/sqlite-open-flags.md @@ -39,8 +39,7 @@ Esses sinalizadores são usados por [DB_Open](../functions/DB_Open_Modern) e [db :::note -Saiba mais sobre essas bandeiras em https://www.sqlite.org/c3ref/open.html - -Saiba mais sobre VFS em https://www.sqlite.org/c3ref/vfs.html +- Saiba mais sobre essas bandeiras em https://www.sqlite.org/c3ref/open.html +- Saiba mais sobre VFS em https://www.sqlite.org/c3ref/vfs.html ::: 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 f8c54d3a4d15..c1a2437d106e 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 @@ -8,18 +8,18 @@ description: "Tudo como objetos, jogadores ou veículos usam IDs." Esta página contém todos os IDs iniciais para várias entidades. Tudo como objetos, jogadores ou veículos usam IDs. Alguns IDs começam com 0, outros começam com 1. -| Tipo | Iniciando ID | -| ------------------------- | ------------ | -| 3D Text Label | 0 | -| Actor | 0 | -| File | 0 | -| GangZone | 0 | -| Object | 1 | -| Pickup | 0 | -| Player | 0 | -| Player Class | 0 | -| TextDraw / PlayerTextDraw | 0 | -| Timer | 1 | -| Vehicle | 1 | +| Tipo | Iniciando ID | +| --------------------------------------------------------------------------------------------- | ------------ | +| [3D Text Label](../functions/Create3DTextLabel) | 0 | +| [Actor](../functions/CreateActor) | 0 | +| [File](../functions/fopen) | 0 | +| [GangZone](../functions/GangZoneCreate) | 0 | +| [Object](../functions/CreateObject) | 1 | +| [Pickup](../functions/CreatePickup) | 0 | +| Player | 0 | +| [Player Class](../functions/AddPlayerClass) | 0 | +| [TextDraw](../functions/TextDrawCreate) / [PlayerTextDraw](../functions/CreatePlayerTextDraw) | 0 | +| [Timer](../functions/SetTimer) | 1 | +| [Vehicle](../functions/CreateVehicle) | 1 | Veja bem, veículos e objetos começam a usar 1, não 0! Portanto, se você planeja usar um array para armazenar todos os IDs, você deve usar o ID de CreateObject/CreateVehicle/... e subtrair 1 para obter o elemento do array ID. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md index 95026cedf309..b652dadefde2 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md @@ -12,63 +12,63 @@ Esta página contém todas as armas do jogo usadas por [OnPlayerDeath](../callba --- -| Hud icon | Razão da morte | Definição | ID | Slot | Modelo | Tamanho do clipe | Munição intercambiável no slot | Notas | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------- | --------------------------- | --- | ---- | ----- | ------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| ![](https://assets.open.mp/assets/images/weaponIcons/fist.png)
Fist | ![](https://assets.open.mp/assets/images/deathIcons/death-fist.gif) | WEAPON_FIST | 0 | 0 | - | - | - | - | -| ![](https://assets.open.mp/assets/images/weaponIcons/brassKnuckles.png)
Brass Knuckles | ![](https://assets.open.mp/assets/images/deathIcons/death-brassKnuckles.gif) | WEAPON_BRASSKNUCKLE | 1 | 0 | 331 | - | - | - | -| ![](https://assets.open.mp/assets/images/weaponIcons/golfClub.png)
Golf Club | ![](https://assets.open.mp/assets/images/deathIcons/death-golfClub.gif) | WEAPON_GOLFCLUB | 2 | 1 | 333 | - | - | - | -| ![](https://assets.open.mp/assets/images/weaponIcons/nightStick.png)
Nite Stick | ![](https://assets.open.mp/assets/images/deathIcons/death-nightstick.gif) | WEAPON_NITESTICK | 3 | 1 | 334 | - | - | - | -| ![](https://assets.open.mp/assets/images/weaponIcons/knife.png)
Knife | ![](https://assets.open.mp/assets/images/deathIcons/death-knife.gif) | WEAPON_KNIFE | 4 | 1 | 335 | - | - | Pode dessincronizar jogadores quando sua garganta é cortada (eles parecem mortos para outros jogadores). Além disso, a morte por faca pode não ser sincronizada para jogadores mortos em AFK | -| ![](https://assets.open.mp/assets/images/weaponIcons/baseballBat.png)
Baseball Bat | ![](https://assets.open.mp/assets/images/deathIcons/death-baseballBat.gif) | WEAPON_BAT | 5 | 1 | 336 | - | - | - | -| ![](https://assets.open.mp/assets/images/weaponIcons/shovel.png)
Shovel | ![](https://assets.open.mp/assets/images/deathIcons/death-shovel.gif) | WEAPON_SHOVEL | 6 | 1 | 337 | - | - | - | -| ![](https://assets.open.mp/assets/images/weaponIcons/poolCue.png)
Pool Cue | ![](https://assets.open.mp/assets/images/deathIcons/death-poolCue.gif) | WEAPON_POOLSTICK | 7 | 1 | 338 | - | - | - | -| ![](https://assets.open.mp/assets/images/weaponIcons/katana.png)
Katana | ![](https://assets.open.mp/assets/images/deathIcons/death-katana.gif) | WEAPON_KATANA | 8 | 1 | 339 | - | - | Não é possível decapitar jogadores (como no modo single player) | -| ![](https://assets.open.mp/assets/images/weaponIcons/chainsaw.png)
Chainsaw | ![](https://assets.open.mp/assets/images/deathIcons/death-chainsaw.gif) | WEAPON_CHAINSAW | 9 | 1 | 341 | - | - | - | -| ![](https://assets.open.mp/assets/images/weaponIcons/purpleDildo.png)
Dildo | ![](https://assets.open.mp/assets/images/deathIcons/death-purpleDildo.gif) | WEAPON_DILDO | 10 | 10 | 321 | - | - | - | -| ![](https://assets.open.mp/assets/images/weaponIcons/dildo.png)
Dildo | ![](https://assets.open.mp/assets/images/deathIcons/death-dildo.gif) | WEAPON_DILDO2 | 11 | 10 | 322 | - | - | - | -| ![](https://assets.open.mp/assets/images/weaponIcons/vibrator.png)
Vibrator | ![](https://assets.open.mp/assets/images/deathIcons/death-vibrator.gif) | WEAPON_VIBRATOR | 12 | 10 | 323 | - | - | - | -| ![](https://assets.open.mp/assets/images/weaponIcons/silverVibrator.png)
Vibrator | ![](https://assets.open.mp/assets/images/deathIcons/death-silverVibrator.gif) | WEAPON_VIBRATOR2 | 13 | 10 | 324 | - | - | - | -| ![](https://assets.open.mp/assets/images/weaponIcons/flowers.png)
Flowers | ![](https://assets.open.mp/assets/images/deathIcons/death-flowers.gif) | WEAPON_FLOWER | 14 | 10 | 325 | - | - | - | -| ![](https://assets.open.mp/assets/images/weaponIcons/cane.png)
Cane | ![](https://assets.open.mp/assets/images/deathIcons/death-cane.gif) | WEAPON_CANE | 15 | 10 | 326 | - | - | - | -| ![](https://assets.open.mp/assets/images/weaponIcons/grenade.png)
Grenade | ![](https://assets.open.mp/assets/images/deathIcons/death-grenade.gif) | WEAPON_GRENADE | 16 | 8 | 342 | 1 | Não | Não produz fogo. Sincronizado apenas para jogadores que fizeram streaming quando uma granada foi lançada | -| ![](https://assets.open.mp/assets/images/weaponIcons/tearGas.png)
Teargas | ![](https://assets.open.mp/assets/images/deathIcons/death-tearGas.gif) | WEAPON_TEARGAS | 17 | 8 | 343 | 1 | Não | O efeito de tosse está desativado em SA-MP. Sincronizado apenas para jogadores que foram transmitidos quando uma granada de gás lacrimogêneo foi lançada | -| ![](https://assets.open.mp/assets/images/weaponIcons/molotovCocktail.png)
Molotov Cocktail | ![](https://assets.open.mp/assets/images/deathIcons/death-molotovCocktail.gif) | WEAPON_MOLTOV | 18 | 8 | 344 | 1 | Não | Produz fogo. Sincronizado apenas para jogadores que foram transmitidos quando um coquetel molotov foi lançado | -| ![](https://assets.open.mp/assets/images/weaponIcons/9mm.png)
Colt 45 | ![](https://assets.open.mp/assets/images/deathIcons/death-9mm.gif) | WEAPON_COLT45 | 22 | 2 | 346 | 17 (34 para arma dupla) | Não | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | -| ![](https://assets.open.mp/assets/images/weaponIcons/silenced9mm.png)
Silenced Pistol | ![](https://assets.open.mp/assets/images/deathIcons/death-silenced9mm.gif) | WEAPON_SILENCED | 23 | 2 | 347 | 17 | Não | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | -| ![](https://assets.open.mp/assets/images/weaponIcons/desertEagle.png)
Desert Eagle | ![](https://assets.open.mp/assets/images/deathIcons/death-desertEagle.gif) | WEAPON_DEAGLE | 24 | 2 | 348 | 7 | Não | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | -| ![](https://assets.open.mp/assets/images/weaponIcons/shotgun.png)
Shotgun | ![](https://assets.open.mp/assets/images/deathIcons/death-shotgun.gif) | WEAPON_SHOTGUN | 25 | 3 | 349 | 1 | Sim | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | -| ![](https://assets.open.mp/assets/images/weaponIcons/sawnoffShotgun.png)
Sawn-off Shotgun | ![](https://assets.open.mp/assets/images/deathIcons/death-sawnoffShotgun.gif) | WEAPON_SAWEDOFF | 26 | 3 | 350 | 2 (4 para arma dupla) | Sim | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | -| ![](https://assets.open.mp/assets/images/weaponIcons/combatShotgun.png)
Combat Shotgun | ![](https://assets.open.mp/assets/images/deathIcons/death-combatShotgun.gif) | WEAPON_SHOTGSPA | 27 | 3 | 351 | 7 | Sim | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | -| ![](https://assets.open.mp/assets/images/weaponIcons/microSMG-Uzi.png)
UZI | ![](https://assets.open.mp/assets/images/deathIcons/death-microSMG-Uzi.gif) | WEAPON_UZI | 28 | 4 | 352 | 50 (100 para arma dupla) | Sim | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | -| ![](https://assets.open.mp/assets/images/weaponIcons/mp5.png)
MP5 | ![](https://assets.open.mp/assets/images/deathIcons/death-mp5.gif) | WEAPON_MP5 | 29 | 4 | 353 | 30 | Sim | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | -| ![](https://assets.open.mp/assets/images/weaponIcons/ak47.png)
AK-47 | ![](https://assets.open.mp/assets/images/deathIcons/death-ak47.gif) | WEAPON_AK47 | 30 | 5 | 355 | 30 | Sim | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | -| ![](https://assets.open.mp/assets/images/weaponIcons/m4.png)
M4 | ![](https://assets.open.mp/assets/images/deathIcons/death-m4.gif) | WEAPON_M4 | 31 | 5 | 356 | 50 | Sim | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | -| ![](https://assets.open.mp/assets/images/weaponIcons/tec9.png)
TEC9 | ![](https://assets.open.mp/assets/images/deathIcons/death-tec9.gif) | WEAPON_TEC9 | 32 | 4 | 372 | 50 (100 para arma dupla) | Sim | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | -| ![](https://assets.open.mp/assets/images/weaponIcons/countryRifle.png)
Rifle | ![](https://assets.open.mp/assets/images/deathIcons/death-countryRifle.gif) | WEAPON_RIFLE | 33 | 6 | 357 | 1 | Não | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel), mas não terá nenhum efeito | -| ![](https://assets.open.mp/assets/images/weaponIcons/sniperRifle.png)
Sniper Rifle | ![](https://assets.open.mp/assets/images/deathIcons/death-sniperRifle.gif) | WEAPON_SNIPER | 34 | 6 | 358 | 1 | Não | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel), mas não terá nenhum efeito | -| ![](https://assets.open.mp/assets/images/weaponIcons/rpg.png)
Rocket Launcher | ![](https://assets.open.mp/assets/images/deathIcons/death-rpg.gif) | WEAPON_ROCKETLAUNCHER | 35 | 7 | 359 | 1 | Não | Sincronizado apenas para jogadores que foram transmitidos quando o projétil foi lançado | -| ![](https://assets.open.mp/assets/images/weaponIcons/hsRocket.png)
Heat Seeker | ![](https://assets.open.mp/assets/images/deathIcons/death-hsRocket.gif) | WEAPON_HEATSEEKER | 36 | 7 | 360 | 1 | Não | O bloqueio não está sincronizado. Sincronizado apenas para jogadores que foram transmitidos quando o projétil foi lançado | -| ![](https://assets.open.mp/assets/images/weaponIcons/flame-Thrower.png)
Flamethrower | ![](https://assets.open.mp/assets/images/deathIcons/death-flameThrower.gif) | WEAPON_FLAMETHROWER | 37 | 7 | 361 | 500 (mostra no jogo como 50) | Não | Isso é usado para causar danos por fogo, mesmo quando o fogo é criado pela explosão de um foguete ou molotov. O fogo produzido não sincroniza entre os jogadores | -| ![](https://assets.open.mp/assets/images/weaponIcons/minigun.png)
Minigun | ![](https://assets.open.mp/assets/images/deathIcons/death-minigun.gif) | WEAPON_MINIGUN | 38 | 7 | 362 | 500 | Não | - | -| ![](https://assets.open.mp/assets/images/weaponIcons/satchelCharge.png)
Satchel Explosives | ![](https://assets.open.mp/assets/images/deathIcons/death-satchelCharge.gif) | WEAPON_SATCHEL | 39 | 8 | 363 | 1 | Não | Sincronizado apenas para jogadores que foram transmitidos quando as mochilas foram lançadas | -| ![](https://assets.open.mp/assets/images/weaponIcons/detonator.png)
Bomb | ![](https://assets.open.mp/assets/images/deathIcons/death-detonator.gif) | WEAPON_BOMB | 40 | 12 | 364 | - | - | Dado automaticamente quando os jogadores lançam uma carga satchel (consulte ID 39) (omitir das verificações anti-cheat). Também detona bombas lançadas por outros jogadores | -| ![](https://assets.open.mp/assets/images/weaponIcons/spraycan.png)
Spray Can | ![](https://assets.open.mp/assets/images/deathIcons/death-sprayCan.gif) | WEAPON_SPRAYCAN | 41 | 9 | 365 | 500 | Não | Jogadores que são pulverizados estrangulam | -| ![](https://assets.open.mp/assets/images/weaponIcons/fireExtinguisher.png)
Fire Extinguisher | ![](https://assets.open.mp/assets/images/deathIcons/death-fireExtinguisher.gif) | WEAPON_FIREEXTINGUISHER | 42 | 9 | 366 | 500 | Não | Jogadores que são pulverizados estrangulam | -| ![](https://assets.open.mp/assets/images/weaponIcons/camera.png)
Camera | ![](https://assets.open.mp/assets/images/deathIcons/death-camera.gif) | WEAPON_CAMERA | 43 | 9 | 367 | 36 | Não | Salva fotos na galeria do jogador se habilitado através do menu de pausa (Meus Documentos\GTA San Andreas User Files\Gallery) | -| ![](https://assets.open.mp/assets/images/weaponIcons/nightVisGoggles.png)
Night Vision | ![](https://assets.open.mp/assets/images/deathIcons/death-nightVisGoggles.gif) | WEAPON_NIGHT_VISION_GOGGLES | 44 | 11 | 368 | - | - | Efeitos visuais são exibidos para todos os jogadores (correção disponível) | -| ![](https://assets.open.mp/assets/images/weaponIcons/thermalGoggles.png)
Thermal Goggles | ![](https://assets.open.mp/assets/images/deathIcons/death-thermalGoggles.gif) | WEAPON_THERMAL_GOGGLES | 45 | 11 | 369 | - | - | Efeitos visuais são exibidos para todos os jogadores (correção disponível) | -| ![](https://assets.open.mp/assets/images/weaponIcons/parachute.png)
Parachute | ![](https://assets.open.mp/assets/images/deathIcons/death-parachute.gif) | WEAPON_PARACHUTE | 46 | 11 | 371 | - | - | Os jogadores morrerão se forem teletransportados enquanto mergulham de pára-quedas (pode ser corrigido usando [ResetPlayerWeapons](../functions/ResetPlayerWeapons)). Pára-quedas são dados ao saltar da aeronave (omitir das verificações anti-cheat) | -| ![](https://assets.open.mp/assets/images/weaponIcons/cellphone.png)
Cellphone | - | - | - | - | - | - | - | Corte do jogo. | -| ![](https://assets.open.mp/assets/images/weaponIcons/jetpack.png)
Jetpack | - | - | - | - | 370 | - | - | Não funciona como arma. Consulte [SetPlayerSpecialAction](../functions/SetPlayerSpecialAction). | -| ![](https://assets.open.mp/assets/images/weaponIcons/skateboard.png)
Skateboard | - | - | - | - | - | - | - | Corte do jogo. | -| Fake Pistol | ![](https://assets.open.mp/assets/images/deathIcons/death-fakePistol.gif) | - | 47 | N/A | N/A | - | - | Apenas um ícone de morte, não pode ser usado em [GivePlayerWeapon](../functions/GivePlayerWeapon) etc. -| Vehicle | ![](https://assets.open.mp/assets/images/deathIcons/death-vehicle.gif) | WEAPON_VEHICLE | 49 | N/A | N/A | - | - | Apenas um ícone de morte, não pode ser usado em [GivePlayerWeapon](../functions/GivePlayerWeapon) etc. -| Helicopter Blades | ![](https://assets.open.mp/assets/images/deathIcons/death-heliBlades.gif) | REASON_HELICOPTER_BLADES | 50 | N/A | N/A | - | - | Apenas um ícone de morte, não pode ser usado em [GivePlayerWeapon](../functions/GivePlayerWeapon) etc. -| Explosion | ![](https://assets.open.mp/assets/images/deathIcons/death-explosion.gif) | REASON_EXPLOSION | 51 | N/A | N/A | - | - | Apenas um ícone de morte, não pode ser usado em [GivePlayerWeapon](../functions/GivePlayerWeapon) etc. Às vezes, isso pode ser usado em danos indiretos através da explosão de um foguete ou granada | -| Drowned | ![](https://assets.open.mp/assets/images/deathIcons/death-drowned.gif) | WEAPON_DROWN | 53 | N/A | N/A | - | - | Apenas um ícone de morte, não pode ser usado em [GivePlayerWeapon](../functions/GivePlayerWeapon) etc. -| Splat | ![](https://assets.open.mp/assets/images/deathIcons/death-splat.gif) | WEAPON_COLLISION | 54 | N/A | N/A | - | - | Apenas um ícone de morte, não pode ser usado em [GivePlayerWeapon](../functions/GivePlayerWeapon) etc. -| Connect | ![](https://assets.open.mp/assets/images/deathIcons/death-connect.gif) | REASON_CONNECT | 200 | N/A | N/A | - | - | Utilizável apenas em [SendDeathMessage](../functions/SendDeathMessage) | -| Disconnect | ![](https://assets.open.mp/assets/images/deathIcons/death-disconnect.gif) | REASON_DISCONNECT | 201 | N/A | N/A | - | - | Utilizável apenas em [SendDeathMessage](../functions/SendDeathMessage) | -| Suicide | ![](https://assets.open.mp/assets/images/deathIcons/death-suicide.gif) | REASON_SUICIDE | 255 | N/A | N/A | - | - | Apenas um ícone de morte, não pode ser usado em [GivePlayerWeapon](../functions/GivePlayerWeapon) etc. Usado quando um jogador obtém 0 HP por SetPlayerHealth, explodindo em um veículo etc. | +| Hud icon | Razão da morte | Definição | ID | Slot | Modelo | Tamanho do clipe | Munição intercambiável no slot | Notas | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------- | --------------------------- | --- | ---- | ------ | ---------------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| ![](https://assets.open.mp/assets/images/weaponIcons/fist.png)
Fist | ![](https://assets.open.mp/assets/images/deathIcons/death-fist.gif) | WEAPON_FIST | 0 | 0 | - | - | - | - | +| ![](https://assets.open.mp/assets/images/weaponIcons/brassKnuckles.png)
Brass Knuckles | ![](https://assets.open.mp/assets/images/deathIcons/death-brassKnuckles.gif) | WEAPON_BRASSKNUCKLE | 1 | 0 | 331 | - | - | - | +| ![](https://assets.open.mp/assets/images/weaponIcons/golfClub.png)
Golf Club | ![](https://assets.open.mp/assets/images/deathIcons/death-golfClub.gif) | WEAPON_GOLFCLUB | 2 | 1 | 333 | - | - | - | +| ![](https://assets.open.mp/assets/images/weaponIcons/nightStick.png)
Nite Stick | ![](https://assets.open.mp/assets/images/deathIcons/death-nightstick.gif) | WEAPON_NITESTICK | 3 | 1 | 334 | - | - | - | +| ![](https://assets.open.mp/assets/images/weaponIcons/knife.png)
Knife | ![](https://assets.open.mp/assets/images/deathIcons/death-knife.gif) | WEAPON_KNIFE | 4 | 1 | 335 | - | - | Pode dessincronizar jogadores quando sua garganta é cortada (eles parecem mortos para outros jogadores). Além disso, a morte por faca pode não ser sincronizada para jogadores mortos em AFK | +| ![](https://assets.open.mp/assets/images/weaponIcons/baseballBat.png)
Baseball Bat | ![](https://assets.open.mp/assets/images/deathIcons/death-baseballBat.gif) | WEAPON_BAT | 5 | 1 | 336 | - | - | - | +| ![](https://assets.open.mp/assets/images/weaponIcons/shovel.png)
Shovel | ![](https://assets.open.mp/assets/images/deathIcons/death-shovel.gif) | WEAPON_SHOVEL | 6 | 1 | 337 | - | - | - | +| ![](https://assets.open.mp/assets/images/weaponIcons/poolCue.png)
Pool Cue | ![](https://assets.open.mp/assets/images/deathIcons/death-poolCue.gif) | WEAPON_POOLSTICK | 7 | 1 | 338 | - | - | - | +| ![](https://assets.open.mp/assets/images/weaponIcons/katana.png)
Katana | ![](https://assets.open.mp/assets/images/deathIcons/death-katana.gif) | WEAPON_KATANA | 8 | 1 | 339 | - | - | Não é possível decapitar jogadores (como no modo single player) | +| ![](https://assets.open.mp/assets/images/weaponIcons/chainsaw.png)
Chainsaw | ![](https://assets.open.mp/assets/images/deathIcons/death-chainsaw.gif) | WEAPON_CHAINSAW | 9 | 1 | 341 | - | - | - | +| ![](https://assets.open.mp/assets/images/weaponIcons/purpleDildo.png)
Dildo | ![](https://assets.open.mp/assets/images/deathIcons/death-purpleDildo.gif) | WEAPON_DILDO | 10 | 10 | 321 | - | - | - | +| ![](https://assets.open.mp/assets/images/weaponIcons/dildo.png)
Dildo | ![](https://assets.open.mp/assets/images/deathIcons/death-dildo.gif) | WEAPON_DILDO2 | 11 | 10 | 322 | - | - | - | +| ![](https://assets.open.mp/assets/images/weaponIcons/vibrator.png)
Vibrator | ![](https://assets.open.mp/assets/images/deathIcons/death-vibrator.gif) | WEAPON_VIBRATOR | 12 | 10 | 323 | - | - | - | +| ![](https://assets.open.mp/assets/images/weaponIcons/silverVibrator.png)
Vibrator | ![](https://assets.open.mp/assets/images/deathIcons/death-silverVibrator.gif) | WEAPON_VIBRATOR2 | 13 | 10 | 324 | - | - | - | +| ![](https://assets.open.mp/assets/images/weaponIcons/flowers.png)
Flowers | ![](https://assets.open.mp/assets/images/deathIcons/death-flowers.gif) | WEAPON_FLOWER | 14 | 10 | 325 | - | - | - | +| ![](https://assets.open.mp/assets/images/weaponIcons/cane.png)
Cane | ![](https://assets.open.mp/assets/images/deathIcons/death-cane.gif) | WEAPON_CANE | 15 | 10 | 326 | - | - | - | +| ![](https://assets.open.mp/assets/images/weaponIcons/grenade.png)
Grenade | ![](https://assets.open.mp/assets/images/deathIcons/death-grenade.gif) | WEAPON_GRENADE | 16 | 8 | 342 | 1 | Não | Não produz fogo. Sincronizado apenas para jogadores que fizeram streaming quando uma granada foi lançada | +| ![](https://assets.open.mp/assets/images/weaponIcons/tearGas.png)
Teargas | ![](https://assets.open.mp/assets/images/deathIcons/death-tearGas.gif) | WEAPON_TEARGAS | 17 | 8 | 343 | 1 | Não | O efeito de tosse está desativado em SA-MP. Sincronizado apenas para jogadores que foram transmitidos quando uma granada de gás lacrimogêneo foi lançada | +| ![](https://assets.open.mp/assets/images/weaponIcons/molotovCocktail.png)
Molotov Cocktail | ![](https://assets.open.mp/assets/images/deathIcons/death-molotovCocktail.gif) | WEAPON_MOLTOV | 18 | 8 | 344 | 1 | Não | Produz fogo. Sincronizado apenas para jogadores que foram transmitidos quando um coquetel molotov foi lançado | +| ![](https://assets.open.mp/assets/images/weaponIcons/9mm.png)
Colt 45 | ![](https://assets.open.mp/assets/images/deathIcons/death-9mm.gif) | WEAPON_COLT45 | 22 | 2 | 346 | 17 (34 para arma dupla) | Não | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | +| ![](https://assets.open.mp/assets/images/weaponIcons/silenced9mm.png)
Silenced Pistol | ![](https://assets.open.mp/assets/images/deathIcons/death-silenced9mm.gif) | WEAPON_SILENCED | 23 | 2 | 347 | 17 | Não | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | +| ![](https://assets.open.mp/assets/images/weaponIcons/desertEagle.png)
Desert Eagle | ![](https://assets.open.mp/assets/images/deathIcons/death-desertEagle.gif) | WEAPON_DEAGLE | 24 | 2 | 348 | 7 | Não | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | +| ![](https://assets.open.mp/assets/images/weaponIcons/shotgun.png)
Shotgun | ![](https://assets.open.mp/assets/images/deathIcons/death-shotgun.gif) | WEAPON_SHOTGUN | 25 | 3 | 349 | 1 | Sim | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | +| ![](https://assets.open.mp/assets/images/weaponIcons/sawnoffShotgun.png)
Sawn-off Shotgun | ![](https://assets.open.mp/assets/images/deathIcons/death-sawnoffShotgun.gif) | WEAPON_SAWEDOFF | 26 | 3 | 350 | 2 (4 para arma dupla) | Sim | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | +| ![](https://assets.open.mp/assets/images/weaponIcons/combatShotgun.png)
Combat Shotgun | ![](https://assets.open.mp/assets/images/deathIcons/death-combatShotgun.gif) | WEAPON_SHOTGSPA | 27 | 3 | 351 | 7 | Sim | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | +| ![](https://assets.open.mp/assets/images/weaponIcons/microSMG-Uzi.png)
UZI | ![](https://assets.open.mp/assets/images/deathIcons/death-microSMG-Uzi.gif) | WEAPON_UZI | 28 | 4 | 352 | 50 (100 para arma dupla) | Sim | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | +| ![](https://assets.open.mp/assets/images/weaponIcons/mp5.png)
MP5 | ![](https://assets.open.mp/assets/images/deathIcons/death-mp5.gif) | WEAPON_MP5 | 29 | 4 | 353 | 30 | Sim | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | +| ![](https://assets.open.mp/assets/images/weaponIcons/ak47.png)
AK-47 | ![](https://assets.open.mp/assets/images/deathIcons/death-ak47.gif) | WEAPON_AK47 | 30 | 5 | 355 | 30 | Sim | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | +| ![](https://assets.open.mp/assets/images/weaponIcons/m4.png)
M4 | ![](https://assets.open.mp/assets/images/deathIcons/death-m4.gif) | WEAPON_M4 | 31 | 5 | 356 | 50 | Sim | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | +| ![](https://assets.open.mp/assets/images/weaponIcons/tec9.png)
TEC9 | ![](https://assets.open.mp/assets/images/deathIcons/death-tec9.gif) | WEAPON_TEC9 | 32 | 4 | 372 | 50 (100 para arma dupla) | Sim | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel) | +| ![](https://assets.open.mp/assets/images/weaponIcons/countryRifle.png)
Rifle | ![](https://assets.open.mp/assets/images/deathIcons/death-countryRifle.gif) | WEAPON_RIFLE | 33 | 6 | 357 | 1 | Não | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel), mas não terá nenhum efeito | +| ![](https://assets.open.mp/assets/images/weaponIcons/sniperRifle.png)
Sniper Rifle | ![](https://assets.open.mp/assets/images/deathIcons/death-sniperRifle.gif) | WEAPON_SNIPER | 34 | 6 | 358 | 1 | Não | A habilidade pode ser definida com [SetPlayerSkillLevel](../functions/SetPlayerSkillLevel), mas não terá nenhum efeito | +| ![](https://assets.open.mp/assets/images/weaponIcons/rpg.png)
Rocket Launcher | ![](https://assets.open.mp/assets/images/deathIcons/death-rpg.gif) | WEAPON_ROCKETLAUNCHER | 35 | 7 | 359 | 1 | Não | Sincronizado apenas para jogadores que foram transmitidos quando o projétil foi lançado | +| ![](https://assets.open.mp/assets/images/weaponIcons/hsRocket.png)
Heat Seeker | ![](https://assets.open.mp/assets/images/deathIcons/death-hsRocket.gif) | WEAPON_HEATSEEKER | 36 | 7 | 360 | 1 | Não | O bloqueio não está sincronizado. Sincronizado apenas para jogadores que foram transmitidos quando o projétil foi lançado | +| ![](https://assets.open.mp/assets/images/weaponIcons/flame-Thrower.png)
Flamethrower | ![](https://assets.open.mp/assets/images/deathIcons/death-flameThrower.gif) | WEAPON_FLAMETHROWER | 37 | 7 | 361 | 500 (mostra no jogo como 50) | Não | Isso é usado para causar danos por fogo, mesmo quando o fogo é criado pela explosão de um foguete ou molotov. O fogo produzido não sincroniza entre os jogadores | +| ![](https://assets.open.mp/assets/images/weaponIcons/minigun.png)
Minigun | ![](https://assets.open.mp/assets/images/deathIcons/death-minigun.gif) | WEAPON_MINIGUN | 38 | 7 | 362 | 500 | Não | - | +| ![](https://assets.open.mp/assets/images/weaponIcons/satchelCharge.png)
Satchel Explosives | ![](https://assets.open.mp/assets/images/deathIcons/death-satchelCharge.gif) | WEAPON_SATCHEL | 39 | 8 | 363 | 1 | Não | Sincronizado apenas para jogadores que foram transmitidos quando as mochilas foram lançadas | +| ![](https://assets.open.mp/assets/images/weaponIcons/detonator.png)
Bomb | ![](https://assets.open.mp/assets/images/deathIcons/death-detonator.gif) | WEAPON_BOMB | 40 | 12 | 364 | - | - | Dado automaticamente quando os jogadores lançam uma carga satchel (consulte ID 39) (omitir das verificações anti-cheat). Também detona bombas lançadas por outros jogadores | +| ![](https://assets.open.mp/assets/images/weaponIcons/spraycan.png)
Spray Can | ![](https://assets.open.mp/assets/images/deathIcons/death-sprayCan.gif) | WEAPON_SPRAYCAN | 41 | 9 | 365 | 500 | Não | Jogadores que são pulverizados estrangulam | +| ![](https://assets.open.mp/assets/images/weaponIcons/fireExtinguisher.png)
Fire Extinguisher | ![](https://assets.open.mp/assets/images/deathIcons/death-fireExtinguisher.gif) | WEAPON_FIREEXTINGUISHER | 42 | 9 | 366 | 500 | Não | Jogadores que são pulverizados estrangulam | +| ![](https://assets.open.mp/assets/images/weaponIcons/camera.png)
Camera | ![](https://assets.open.mp/assets/images/deathIcons/death-camera.gif) | WEAPON_CAMERA | 43 | 9 | 367 | 36 | Não | Salva fotos na galeria do jogador se habilitado através do menu de pausa (Meus Documentos\GTA San Andreas User Files\Gallery) | +| ![](https://assets.open.mp/assets/images/weaponIcons/nightVisGoggles.png)
Night Vision | ![](https://assets.open.mp/assets/images/deathIcons/death-nightVisGoggles.gif) | WEAPON_NIGHT_VISION_GOGGLES | 44 | 11 | 368 | - | - | Efeitos visuais são exibidos para todos os jogadores (corrigido no open.mp) | +| ![](https://assets.open.mp/assets/images/weaponIcons/thermalGoggles.png)
Thermal Goggles | ![](https://assets.open.mp/assets/images/deathIcons/death-thermalGoggles.gif) | WEAPON_THERMAL_GOGGLES | 45 | 11 | 369 | - | - | Efeitos visuais são exibidos para todos os jogadores (corrigido no open.mp) | +| ![](https://assets.open.mp/assets/images/weaponIcons/parachute.png)
Parachute | ![](https://assets.open.mp/assets/images/deathIcons/death-parachute.gif) | WEAPON_PARACHUTE | 46 | 11 | 371 | - | - | Os jogadores morrerão se forem teletransportados enquanto mergulham de pára-quedas (pode ser corrigido usando [ResetPlayerWeapons](../functions/ResetPlayerWeapons)). Pára-quedas são dados ao saltar da aeronave (omitir das verificações anti-cheat) | +| ![](https://assets.open.mp/assets/images/weaponIcons/cellphone.png)
Cellphone | - | - | - | - | - | - | - | Corte do jogo. | +| ![](https://assets.open.mp/assets/images/weaponIcons/jetpack.png)
Jetpack | - | - | - | - | 370 | - | - | Não funciona como arma. Consulte [SetPlayerSpecialAction](../functions/SetPlayerSpecialAction). | +| ![](https://assets.open.mp/assets/images/weaponIcons/skateboard.png)
Skateboard | - | - | - | - | - | - | - | Corte do jogo. | +| Fake Pistol | ![](https://assets.open.mp/assets/images/deathIcons/death-fakePistol.gif) | - | 47 | N/A | N/A | - | - | Apenas um ícone de morte, não pode ser usado em [GivePlayerWeapon](../functions/GivePlayerWeapon) etc. | +| Vehicle | ![](https://assets.open.mp/assets/images/deathIcons/death-vehicle.gif) | WEAPON_VEHICLE | 49 | N/A | N/A | - | - | Apenas um ícone de morte, não pode ser usado em [GivePlayerWeapon](../functions/GivePlayerWeapon) etc. | +| Helicopter Blades | ![](https://assets.open.mp/assets/images/deathIcons/death-heliBlades.gif) | REASON_HELICOPTER_BLADES | 50 | N/A | N/A | - | - | Apenas um ícone de morte, não pode ser usado em [GivePlayerWeapon](../functions/GivePlayerWeapon) etc. | +| Explosion | ![](https://assets.open.mp/assets/images/deathIcons/death-explosion.gif) | REASON_EXPLOSION | 51 | N/A | N/A | - | - | Apenas um ícone de morte, não pode ser usado em [GivePlayerWeapon](../functions/GivePlayerWeapon) etc. Às vezes, isso pode ser usado em danos indiretos através da explosão de um foguete ou granada | +| Drowned | ![](https://assets.open.mp/assets/images/deathIcons/death-drowned.gif) | WEAPON_DROWN | 53 | N/A | N/A | - | - | Apenas um ícone de morte, não pode ser usado em [GivePlayerWeapon](../functions/GivePlayerWeapon) etc. | +| Splat | ![](https://assets.open.mp/assets/images/deathIcons/death-splat.gif) | WEAPON_COLLISION | 54 | N/A | N/A | - | - | Apenas um ícone de morte, não pode ser usado em [GivePlayerWeapon](../functions/GivePlayerWeapon) etc. | +| Connect | ![](https://assets.open.mp/assets/images/deathIcons/death-connect.gif) | REASON_CONNECT | 200 | N/A | N/A | - | - | Utilizável apenas em [SendDeathMessage](../functions/SendDeathMessage) | +| Disconnect | ![](https://assets.open.mp/assets/images/deathIcons/death-disconnect.gif) | REASON_DISCONNECT | 201 | N/A | N/A | - | - | Utilizável apenas em [SendDeathMessage](../functions/SendDeathMessage) | +| Suicide | ![](https://assets.open.mp/assets/images/deathIcons/death-suicide.gif) | REASON_SUICIDE | 255 | N/A | N/A | - | - | Apenas um ícone de morte, não pode ser usado em [GivePlayerWeapon](../functions/GivePlayerWeapon) etc. Usado quando um jogador obtém 0 HP por SetPlayerHealth, explodindo em um veículo etc. | --- 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 3d92a0528e2b..08364acbc6a8 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 @@ -23,7 +23,7 @@ Existem duas maneiras de criar pickups. [CreatePickup](../scripting/functions/Cr | Nome | Descrição | | ------------ | --------------------------------------------------------------------------------------------------- | -| model | O modelo que você gostaria de usar para o pickup. | +| model | O [modelo](../scripting/resources/pickupids) 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/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md index 2c441279de64..9197088e0021 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 @@ -7,12 +7,12 @@ tags: [] ## Descriere -Acest callback este apelat 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ă). +Acest callback este apelat când un jucător răspunde unui dialog afișat prin [ShowPlayerDialog](../functions/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ă). | Nume | Descriere | | ----------- | ---------------------------------------------------------------------------------------------------------------------------- | | playerid | ID-ul jucătorului care a răspuns dialogului. | -| dialogid | ID-ul dialogului căruia jucătorul i-a răspuns, atribuit în ShowPlayerDialog. | +| dialogid | ID-ul dialogului căruia jucătorul i-a răspuns, atribuit în [ShowPlayerDialog](../functions/ShowPlayerDialog). | | response | **1** pentru butonul din stânga, **0** pentru butonul din dreapta (dacă numai un buton este afișat atunci mereu 1). | | listitem | ID-ul elementului din listă selectat (începe de la 0) (doar dacă s-a folosit un dialog de tip listă, altfel va fi mereu -1). | | inputtext[] | Textul inserat de către jucător în căsuța de intrare, sau textul elementului din listă selectat. | diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md index 9aef92a7f619..5dbea59a0b03 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md @@ -29,8 +29,8 @@ public OnGameModeExit() :::tip -- Această funcție poate fi, de asemenea, utilizată într-un filterscript pentru a detecta dacă modul de joc se schimbă cu comenzi RCON precum changemode sau gmx, deoarece schimbarea modului de joc nu reîncarcă un filterscript. -- Când utilizați OnGameModeExit împreună cu comanda consolei „rcon gmx”, rețineți că există potențialul de apariție a erorilor clientului, un exemplu în acest sens este apelurile excesive la RemoveBuildingForPlayer în timpul OnGameModeInit, care ar putea duce la o blocare a clientului. +- Această funcție poate fi, de asemenea, utilizată într-un filterscript pentru a detecta dacă modul de joc se schimbă cu [comenzi RCON](../../server/ControllingServer#comenzi-rcon) precum changemode sau gmx, deoarece schimbarea modului de joc nu reîncarcă un filterscript. +- Când utilizați OnGameModeExit împreună cu comanda consolei „rcon gmx”, rețineți că există potențialul de apariție a erorilor clientului, un exemplu în acest sens este apelurile excesive la RemoveBuildingForPlayer în timpul [OnGameModeInit](OnGameModeInit), care ar putea duce la o blocare a clientului. - Acest callback NU va fi apelat dacă serverul se blochează sau procesul este oprit prin alte mijloace, cum ar fi utilizarea comenzii Linux kill. ::: diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md index e65a9bdb0a89..9d828d8c7ab4 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md @@ -28,7 +28,7 @@ public OnGameModeInit() :::tip -Această funcție poate fi utilizată și într-un filterscript pentru a detecta dacă gamemode-ul se modifică cu comenzi RCON precum changemode sau gmx, deoarece schimbarea de gamemode nu reîncarcă filterscript-ul. +Această funcție poate fi utilizată și într-un filterscript pentru a detecta dacă gamemode-ul se modifică cu [comenzi RCON](../../server/ControllingServer#comenzi-rcon) precum changemode sau gmx, deoarece schimbarea de gamemode nu reîncarcă filterscript-ul. ::: diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md index c194dbe7b09d..642e1f24fd5e 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md @@ -38,7 +38,8 @@ public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) :::note -După cum spune și numele callback-ului, este apelat numai atunci când jucătorul face clic pentru a marca ținta și nu atunci când este apăsat tasta. Valoarea Z returnată va fi 0 (invalidă) dacă zona pe care se face clic pe hartă este departe de jucător; utilizați pluginul MapAndreas sau ColAndreas pentru a obține o coordonată Z mai precisă. +- După cum spune și numele callback-ului, este apelat numai atunci când jucătorul face clic pentru a marca ținta și nu atunci când este apăsat tasta. +- Valoarea Z returnată va fi 0 (invalidă) dacă zona pe care se face clic pe hartă este departe de jucător; utilizați pluginul [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) sau [ColAndreas](https://github.com/Pottus/ColAndreas) pentru a obține o coordonată Z mai precisă. ::: diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md index b01f946e55ad..7b1915b49af6 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md @@ -7,7 +7,7 @@ tags: ["player", "textdraw", "playertextdraw"] ## Descriere -Acest callback este apelat atunci când un jucător dă clic pe un player-textdraw. Nu este apelat atunci când jucătorul anulează modul de selectare (ESC) - cu toate acestea, OnPlayerClickTextDraw este. +Acest callback este apelat atunci când un jucător dă clic pe un player-textdraw. Nu este apelat atunci când jucătorul anulează modul de selectare (ESC) - cu toate acestea, [OnPlayerClickTextDraw](OnPlayerClickTextDraw) este. | Nume | Descriere | | ------------ | ----------------------------------------------------- | @@ -69,7 +69,7 @@ public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) :::warning -Când un jucător apasă ESC pentru a anula selectarea unui textdraw, OnPlayerClickTextDraw este apelat cu un ID textdraw „INVALID_TEXT_DRAW”. De asemenea, OnPlayerClickPlayerTextDraw nu va fi numit. +Când un jucător apasă ESC pentru a anula selectarea unui textdraw, [OnPlayerClickTextDraw](OnPlayerClickTextDraw) este apelat cu un ID textdraw „INVALID_TEXT_DRAW”. De asemenea, OnPlayerClickPlayerTextDraw nu va fi numit. ::: diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md index 37c88217ae6c..90c26da7ad2f 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md @@ -64,7 +64,8 @@ public OnPlayerClickTextDraw(playerid, Text:clickedid) :::warning -Zona pe care se poate face clic este definită de TextDrawTextSize. Parametrii x și y trecuți acelei funcție nu trebuie să fie zero sau negativi. Nu utilizați CancelSelectTextDraw necondiționat în acest callback. Aceasta are ca rezultat o buclă infinită. +- Zona pe care se poate face clic este definită de TextDrawTextSize. Parametrii x și y trecuți acelei funcție nu trebuie să fie zero sau negativi. +- Nu utilizați CancelSelectTextDraw necondiționat în acest callback. Aceasta are ca rezultat o buclă infinită. ::: 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 df19a4937b0d..4b85edcd406e 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 @@ -37,7 +37,8 @@ public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) :::note -Acest apel invers este apelat atunci când un jucător **ÎNCEPE** să intre într-un vehicul, nu când a intrat în el. Consultați OnPlayerStateChange. Acest apel invers este în continuare apelat dacă jucătorului i se interzice intrarea în vehicul (de exemplu, acesta este blocat sau plin). +- Acest apel invers este apelat atunci când un jucător **ÎNCEPE** să intre într-un vehicul, nu când a intrat în el. Consultați [OnPlayerStateChange](OnPlayerStateChange). +- Acest apel invers este în continuare apelat dacă jucătorului i se interzice intrarea în vehicul (de exemplu, acesta este blocat sau plin). ::: diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md index 6daa53909b29..4d8173ee9049 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md @@ -34,7 +34,8 @@ public OnPlayerExitVehicle(playerid, vehicleid) :::warning -Nu este apelat dacă jucătorul cade de pe bicicletă sau este scos dintr-un vehicul prin alte mijloace, cum ar fi utilizarea SetPlayerPos. Trebuie să utilizați OnPlayerStateChange și să verificați dacă starea lor veche este PLAYER_STATE_DRIVER sau PLAYER_STATE_PASSENGER și dacă noua lor stare este PLAYER_STATE_ONFOOT. +- Nu este apelat dacă jucătorul cade de pe bicicletă sau este scos dintr-un vehicul prin alte mijloace, cum ar fi utilizarea SetPlayerPos. +- Trebuie să utilizați [OnPlayerStateChange](OnPlayerStateChange) și să verificați dacă starea lor veche este PLAYER_STATE_DRIVER sau PLAYER_STATE_PASSENGER și dacă noua lor stare este PLAYER_STATE_ONFOOT. ::: diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md index b4496320033e..762a3672c467 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md @@ -9,10 +9,10 @@ tags: ["player"] Apelat atunci când un jucător schimbă clasa la selecția clasei (și când apare prima dată selecția clasei). -| Nume | Descriere | -| -------- | ------------------------------------------------------------------------ | -| playerid | ID-ul jucătorului care a schimbat clasa. | -| classid | ID-ul clasei curente care este vizualizată (returnat de AddPlayerClass). | +| Nume | Descriere | +| -------- | ------------------------------------------------------------------------------------------------------- | +| playerid | ID-ul jucătorului care a schimbat clasa. | +| classid | ID-ul clasei curente care este vizualizată (returnat de [AddPlayerClass](../functions/AddPlayerClass)). | ## Returnări diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md index c4679f0d2c86..7f7d9a5fca2c 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md @@ -37,7 +37,7 @@ public OnPlayerRequestSpawn(playerid) :::tip -Pentru a împiedica jucătorii să apară cu anumite clase, ultima clasă vizualizată trebuie salvată într-o variabilă în OnPlayerRequestClass. +Pentru a împiedica jucătorii să apară cu anumite clase, ultima clasă vizualizată trebuie salvată într-o variabilă în [OnPlayerRequestClass](OnPlayerRequestClass). ::: diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md index 9d593ae7f8a6..8a424d4d0dd9 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md @@ -7,7 +7,7 @@ tags: ["player"] ## Descriere -Acest callback este apelat atunci când un jucător își schimbă starea. +Acest callback este apelat atunci când un jucător își schimbă [starea](../resources/playerstates). | Nume | Descriere | | -------- | -------------------------------------------- | @@ -15,8 +15,6 @@ Acest callback este apelat atunci când un jucător își schimbă starea. | newstate | Noua stare a jucătorului. | | oldstate | Starea anterioară a jucătorului. | -Consultați [Starile jucătorului](../resources/playerstates) pentru o listă a tuturor stărilor de jucător disponibile. - ## Returnări It is always called first in filterscripts. diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md index 8d1f59d3b2c0..305082a9a823 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md @@ -43,10 +43,10 @@ public OnPlayerWeaponShot(playerid, WEAPON:weaponid, BULLET_HIT_TYPE:hittype, hi :::note -Acest apel invers este apelat numai când este **activată** compensarea întârzierii. Dacă **hittype** este: - -- `BULLET_HIT_TYPE_NONE`: parametrii **fX**, **fY** și **fZ** sunt coordonate normale, vor da 0.0 pentru coordonate dacă nu a fost lovit nimic (de exemplu, obiect îndepărtat pe care glonțul nu poate ajunge); -- Altele: **fX**, **fY** și **fZ** sunt decalaje relativ la **hitid**. +- Acest apel invers este apelat numai când este **activată** [compensarea întârzierii](../../server/LagCompensation). +- Dacă **hittype** este: + - `BULLET_HIT_TYPE_NONE`: parametrii **fX**, **fY** și **fZ** sunt coordonate normale, vor da 0.0 pentru coordonate dacă nu a fost lovit nimic (de exemplu, obiect îndepărtat pe care glonțul nu poate ajunge); + - Altele: **fX**, **fY** și **fZ** sunt decalaje relativ la **hitid**. ::: diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md index 014c8da97928..bb6b47464e2c 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md @@ -47,7 +47,7 @@ public OnRconCommand(cmd[]) - „/rcon” nu este inclus în „cmd” atunci când un jucător introduce o comandă. - Dacă utilizați funcția „printare” aici, aceasta va trimite un mesaj jucătorului care a tastat comanda în joc, precum și jurnalul. - Acest apel invers nu este apelat atunci când jucătorul nu este conectat ca administrator RCON. -- Când jucătorul nu este conectat ca administrator RCON și folosește `/rcon login`, acest apel invers nu va fi apelat și OnRconLoginAttempt este apelat în schimb. Cu toate acestea, atunci când jucătorul este conectat ca administrator RCON, utilizarea acestei comenzi va apela acest apel invers. +- Când jucătorul nu este conectat ca administrator RCON și folosește `/rcon login`, acest apel invers nu va fi apelat și [OnRconLoginAttempt](OnRconLoginAttempt) este apelat în schimb. Cu toate acestea, atunci când jucătorul este conectat ca administrator RCON, utilizarea acestei comenzi va apela acest apel invers. ::: diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md index 90978006ade6..777b1bbea8b8 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md @@ -47,7 +47,7 @@ public OnRconLoginAttempt(ip[], password[], success) :::note - Acest callback este apelat numai când `/rcon login` este folosită în joc. -- Acest callback este apelat numai atunci când jucătorul nu este încă conectat. Când jucătorul este conectat, este apelat OnRconCommand. +- Acest callback este apelat numai atunci când jucătorul nu este încă conectat. Când jucătorul este conectat, este apelat [OnRconCommand](OnRconCommand). ::: diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md index b86149e5033c..66e8edeee776 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md @@ -45,7 +45,8 @@ public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_ :::warning -Acest apel invers este apelat foarte frecvent pe secundă per vehicul neocupat. Ar trebui să vă abțineți de la implementarea unor calcule intensive sau operațiuni intensive de scriere/citire a fișierelor în acest apel invers. GetVehiclePos va returna coordonatele vechi ale vehiculului înainte de această actualizare. +- Acest apel invers este apelat foarte frecvent pe secundă per vehicul neocupat. Ar trebui să vă abțineți de la implementarea unor calcule intensive sau operațiuni intensive de scriere/citire a fișierelor în acest apel invers. +- GetVehiclePos va returna coordonatele vechi ale vehiculului înainte de această actualizare. ::: 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 9e7d416908dc..3e20470d1f85 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 @@ -39,7 +39,7 @@ public OnVehicleMod(playerid, vehicleid, componentid) :::note -Acest apel invers NU este apelat de AddVehicleComponent. +Acest apel invers NU este apelat de [AddVehicleComponent](../functions/AddVehicleComponent). ::: diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md index edc6caed86fd..3763592a9832 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md @@ -35,7 +35,8 @@ public OnVehiclePaintjob(playerid, vehicleid, paintjobid) :::note -Acest apel invers nu este apelat de ChangeVehiclePaintjob. Puteți utiliza OnVehicleChangePaintjob de la vSync pentru a ști când jucătorul **cumpără** lucrarea. +- Acest apel invers nu este apelat de ChangeVehiclePaintjob. +- Puteți utiliza OnVehicleChangePaintjob de la [vSync](https://github.com/Vasily-X/vSync) pentru a ști când jucătorul **cumpără** lucrarea. ::: 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 9ad3f4133638..17f9e8342337 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 @@ -38,7 +38,8 @@ public OnVehicleRespray(playerid, vehicleid, color1, color2) :::note -Acest apel invers nu este apelat de ChangeVehicleColor. În mod înșelător, acest apel invers nu este apelat pentru pay 'n' spray (doar modshop-uri). +- Acest apel invers nu este apelat de ChangeVehicleColor. +- În mod înșelător, acest apel invers nu este apelat pentru pay 'n' spray (doar modshop-uri). Remediați aici: https://pastebin.com/G81da7N1 diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md index e98f3d8aabf1..7f6209c57ef6 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md @@ -13,7 +13,7 @@ Acest callback se numește **doar** când vehiculul **re**apare! CreateVehicle ## Descriere -Acest callback este apelat atunci când un vehicul reapare. +Acest callback este apelat atunci când un vehicul **re**apare. | Nume | Descriere | | --------- | -------------------------------- | 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 256161c77104..e2558e464078 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 @@ -45,7 +45,7 @@ public OnGameModeInit() :::warning -În prezent, nu există restricții cu privire la momentul în care puteți apela această funcție, dar rețineți că, dacă nu le apelați în OnFilterScriptInit / OnGameModeInit, aveți riscul ca unii jucători, care sunt deja pe server, să nu fi descărcat modelele. +În prezent, nu există restricții cu privire la momentul în care puteți apela această funcție, dar rețineți că, dacă nu le apelați în [OnFilterScriptInit](../callbacks/OnFilterScriptInit) / [OnGameModeInit](../callbacks/OnGameModeInit), aveți riscul ca unii jucători, care sunt deja pe server, să nu fi descărcat modelele. ::: diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md index f373d61264de..8daf0fb41f0d 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md @@ -43,7 +43,10 @@ Se blochează la trecerea unui ID de meniu nevalid. :::note -Puteți avea doar 12 elemente pe meniu (al 13-lea merge în partea dreaptă a antetului numelui coloanei (colorat), al 14-lea și superior nu este afișat deloc). Puteți utiliza doar 2 coloane (0 și 1). Puteți adăuga doar 8 coduri de culoare pentru un singur articol (`~r~`, `~g~` etc.). Lungimea maximă a elementului de meniu este de 31 de simboluri. +- Puteți avea doar 12 elemente pe meniu (al 13-lea merge în partea dreaptă a antetului numelui coloanei (colorat), al 14-lea și superior nu este afișat deloc). +- Puteți utiliza doar 2 coloane (0 și 1). +- Puteți adăuga doar 8 coduri de culoare pentru un singur articol (`~r~`, `~g~` etc.). +- Lungimea maximă a elementului de meniu este de 31 de simboluri. ::: diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md index 9d121252cea6..f7a3de79871a 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md @@ -7,7 +7,22 @@ tags: ["player"] ## Descriere -Această funcție este exact aceeași cu funcția AddPlayerClass, cu adăugarea unui parametru de echipă. | Nume | Descriere | | ------------- | ----------------------------------------------------------- | | teamid | Echipa în care doriți să apară jucătorul. | | modelid | Pielea cu care jucătorul va genera. | | Float:spawn_x | Coordonata X a poziției de reproducere a clasei. | | Float:spawn_y | Coordonata Y a poziției de reproducere a clasei. | | Float:spawn_z | Coordonata Z a poziției de reproducere a clasei. | | Float:z_angle | Direcția în care se va confrunta jucătorul după reproducere. | | weapon1 | Prima armă de reproducere pentru jucător. | | weapon1_ammo | Cantitatea de muniție pentru prima armă de reproducere. | | weapon2 | A doua armă de reproducere pentru jucător. | | weapon2_ammo | Cantitatea de muniție pentru a doua armă de reproducere. | | weapon3 | A treia armă de reproducere pentru jucător. | | weapon3_ammo | Cantitatea de muniție pentru a treia armă de reproducere. | +Această funcție este exact aceeași cu funcția [AddPlayerClass](AddPlayerClass), cu adăugarea unui parametru de echipă. + +| Nume | Descriere | +| ------------- | ------------------------------------------------------------ | +| teamid | Echipa în care doriți să apară jucătorul. | +| modelid | Pielea cu care jucătorul va genera. | +| Float:spawn_x | Coordonata X a poziției de reproducere a clasei. | +| Float:spawn_y | Coordonata Y a poziției de reproducere a clasei. | +| Float:spawn_z | Coordonata Z a poziției de reproducere a clasei. | +| Float:z_angle | Direcția în care se va confrunta jucătorul după reproducere. | +| weapon1 | Prima armă de reproducere pentru jucător. | +| weapon1_ammo | Cantitatea de muniție pentru prima armă de reproducere. | +| weapon2 | A doua armă de reproducere pentru jucător. | +| weapon2_ammo | Cantitatea de muniție pentru a doua armă de reproducere. | +| weapon3 | A treia armă de reproducere pentru jucător. | +| weapon3_ammo | Cantitatea de muniție pentru a treia armă de reproducere. | ## Se intoarce 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 177b688d678a..d0cc16c94ad3 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 @@ -9,15 +9,15 @@ tags: [] ## Descriere -Adaugă un nou model de obiect simplu personalizat pentru descărcare. Fișierele model vor fi stocate în `Documents\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 obiect simplu personalizat pentru descărcare. Fișierele model vor fi stocate în `Documents\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 | -| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| virtualworld | ID-ul lumii virtuale pentru a face modelul disponibil la. Folosiți -1 pentru toate lumile. | -| baseid | ID-ul modelului de obiect de bază de utilizat (obiectul original de utilizat atunci când descărcarea eșuează). | -| newid | ID-ul noului model de obiect a variat de la -1000 la -30000 (29000 de sloturi) pentru a fi utilizat ulterior cu CreateObject sau CreatePlayerObject. | -| dffname | Numele fișierului de coliziune a modelului **.dff** situat în dosarul serverului de modele în mod implicit (setare artpath). | -| txdname | Numele fișierului de textură model **.txd** situat în dosarul serverului modele în mod implicit (setare artpath). | +| Nume | Descriere | +| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| virtualworld | ID-ul lumii virtuale pentru a face modelul disponibil la. Folosiți -1 pentru toate lumile. | +| baseid | [ID-ul modelului de obiect](https://models.open.mp/?cat=objects) de bază de utilizat (obiectul original de utilizat atunci când descărcarea eșuează). | +| newid | ID-ul noului model de obiect a variat de la -1000 la -30000 (29000 de sloturi) pentru a fi utilizat ulterior cu CreateObject sau CreatePlayerObject. | +| dffname | Numele fișierului de coliziune a modelului **.dff** situat în dosarul serverului de modele în mod implicit (setare artpath). | +| txdname | Numele fișierului de textură model **.txd** situat în dosarul serverului modele în mod implicit (setare artpath). | ## Se intoarce @@ -46,7 +46,7 @@ public OnGameModeInit() :::warning -În prezent, nu există restricții cu privire la momentul în care puteți apela această funcție, dar rețineți că, dacă nu le apelați în OnFilterScriptInit / OnGameModeInit, aveți riscul ca unii jucători, care sunt deja pe server, să nu fi descărcat modelele. +În prezent, nu există restricții cu privire la momentul în care puteți apela această funcție, dar rețineți că, dacă nu le apelați în [OnFilterScriptInit](../callbacks/OnFilterScriptInit) / [OnGameModeInit](../callbacks/OnGameModeInit), aveți riscul ca unii jucători, care sunt deja pe server, să nu fi descărcat modelele. ::: 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 58ba0226d0be..777e5a1cddd4 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 @@ -9,17 +9,17 @@ tags: [] ## Descriere -Adaugă un nou model de obiect simplu personalizat pentru descărcare. Fișierele model vor fi stocate în `Documents\GTA San Andreas User Files\SAMP\cache` sub folderul Server IP și Port într-un nume de fișier CRC. - -| Nume | Descriere | -| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| virtualworld | ID-ul lumii virtuale pentru a face modelul disponibil la. Folosiți -1 pentru toate lumile. | -| baseid | ID-ul modelului de obiect de bază de utilizat (obiectul original de utilizat atunci când descărcarea eșuează). | -| newid | ID-ul noului model de obiect a variat de la -1000 la -30000 (29000 de sloturi) pentru a fi utilizat ulterior cu CreateObject sau CreatePlayerObject. | -| dffname | Numele fișierului de coliziune a modelului **.dff** situat în dosarul serverului de modele în mod implicit (setare artpath). | -| txdname | Numele fișierului de textură model **.txd** situat în dosarul serverului modele în mod implicit (setare artpath). | -| timeon | Ora jocului mondial (ora) va apărea acest obiect | -| timeoff | Timpul de joc mondial (ora) acestui obiect va dispărea | +Adaugă un nou model de obiect simplu personalizat pentru descărcare. Fișierele model vor fi stocate în `Documents\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 | +| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| virtualworld | ID-ul lumii virtuale pentru a face modelul disponibil la. Folosiți -1 pentru toate lumile. | +| baseid | [ID-ul modelului de obiect](https://models.open.mp/?cat=objects) de bază de utilizat (obiectul original de utilizat atunci când descărcarea eșuează). | +| newid | ID-ul noului model de obiect a variat de la -1000 la -30000 (29000 de sloturi) pentru a fi utilizat ulterior cu CreateObject sau CreatePlayerObject. | +| dffname | Numele fișierului de coliziune a modelului **.dff** situat în dosarul serverului de modele în mod implicit (setare artpath). | +| txdname | Numele fișierului de textură model **.txd** situat în dosarul serverului modele în mod implicit (setare artpath). | +| timeon | Ora jocului mondial (ora) va apărea acest obiect | +| timeoff | Timpul de joc mondial (ora) acestui obiect va dispărea | ## Se intoarce @@ -48,7 +48,7 @@ public OnGameModeInit() :::warning -În prezent, nu există restricții cu privire la momentul în care puteți apela această funcție, dar rețineți că, dacă nu le apelați în OnFilterScriptInit / OnGameModeInit, aveți riscul ca unii jucători, care sunt deja pe server, să nu fi descărcat modelele. +În prezent, nu există restricții cu privire la momentul în care puteți apela această funcție, dar rețineți că, dacă nu le apelați în [OnFilterScriptInit](../callbacks/OnFilterScriptInit) / [OnGameModeInit](../callbacks/OnGameModeInit), aveți riscul ca unii jucători, care sunt deja pe server, să nu fi descărcat modelele. ::: diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md index 74f7ca9b5519..14a225d92c44 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md @@ -43,7 +43,7 @@ public OnGameModeInit() :::note -Această funcție nu returnează un ID de preluare pe care îl puteți utiliza, de exemplu, OnPlayerPickUpPickup. Utilizați CreatePickup dacă doriți să atribuiți ID-uri. +Această funcție nu returnează un ID de preluare pe care îl puteți utiliza, de exemplu, [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup). Utilizați CreatePickup dacă doriți să atribuiți ID-uri. ::: diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md index 8047ea40a98e..971a33bf9880 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Descriere -Adaugă un vehicul 'static' (modelele sunt preîncărcate pentru jucători) la modul de joc. Diferă de la AddStaticVehicle într-un singur mod: permite setarea unui timp de respawn pentru când vehiculul este lăsat neocupat de șofer. +Adaugă un vehicul 'static' (modelele sunt preîncărcate pentru jucători) la modul de joc. Diferă de la [AddStaticVehicle](AddStaticVehicle) într-un singur mod: permite setarea unui timp de respawn pentru când vehiculul este lăsat neocupat de șofer. | Nume | Descriere | | ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerDialog.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerDialog.md index 12899fa541fc..eaa179bc1d81 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerDialog.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerDialog.md @@ -69,7 +69,7 @@ ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_TABLIST_HEADERS, "Buy We :::tip - Este recomandat să se folosească enumerații (vezi mai sus) sau definiții (#define) pentru a determina care ID-uri sunt ale căror dialoguri, pentru ca pe viitor să se evite confuzia. -- Folosește color embedding pentru mai multe culori în text. +- Folosește [color embedding](../resources/colorslist#incorporarea-culorii) pentru mai multe culori în text. - Folosind **-1** ca și `dialogid` închide toate dialog-urile deschise pe ecranul clientului. ::: diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md index c09c10e11059..f1b89859cfbf 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md @@ -30,9 +30,3 @@ S-ar putea să existe încă mai multe ID-uri utilizabile ascunse în joc și un | 53 | CAM_MODE_AIMWEAPON | Țintind orice altă armă. | | 55 | CAM_MODE_AIMWEAPON_FROMCAR | Cameră vehicul pasager cu vehicul. | | 56 | CAM_MODE_DW_HELI_CHASE | Camera de urmărire: elicopter / vedere păsări. | -| 57 | - | Camera de urmărire: cameră de la sol, se apropie foarte repede. (Similar cu 56, dar la sol.) | -| 58 | - | Cameră de urmărire: zbura orizontală pe lângă vehicul. | -| 59 | - | Cameră de urmărire (numai pentru vehiculele aeriene): cameră de la sol, cu ochii în sus spre vehiculul aerian. | -| 62 | - | Camera de urmărire (numai pentru vehiculele aeriene): zboară verticală pe lângă vehiculul aerian. | -| 63 | - | Cameră de urmărire (numai pentru vehiculele aeriene): zbura orizontală pe lângă vehiculul aerian (similar cu 58 și 62). | -| 64 | - | Cameră de urmărire (numai pentru vehiculele aeriene): cameră focalizată pe pilot, similar cu apăsarea tastei LOOK_BEHIND pe jos, dar în vehiculul aerian. | diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/Binary.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/Binary.md index 5527002f5f44..c000eea2e284 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/Binary.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/Binary.md @@ -50,7 +50,7 @@ Binarul este un sistem numeric care folosește două simboluri unice pentru a re 1101 //13 ``` -Privind ambele sisteme unul lângă altul, veți observa că se comportă exact la fel. Odată ce ați ajuns la ultimul număr disponibil, trebuie să treceți la un alt loc. Aceste locuri în binar sunt denumite biți (**b** inary dig **its**) și sunt pur și simplu puteri a două; la fel cum locurile din sistemul zecimal sunt puteri de 10. Pentru a demonstra acest lucru, să aruncăm o privire la numărul 13 din notația standard. +Privind ambele sisteme unul lângă altul, veți observa că se comportă exact la fel. Odată ce ați ajuns la ultimul număr disponibil, trebuie să treceți la un alt loc. Aceste locuri în binar sunt denumite biți (**b**inary dig**its**) și sunt pur și simplu puteri a două; la fel cum locurile din sistemul zecimal sunt puteri de 10. Pentru a demonstra acest lucru, să aruncăm o privire la numărul 13 din notația standard. ** NOTĂ: ** '^' este putere în următoarele câteva exemple, nu este exclusiv bitologic (pe care îl vom acoperi mai târziu). diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/stringmanipulation.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/stringmanipulation.md index 07bae55a9a8d..6024461d215a 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/stringmanipulation.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/stringmanipulation.md @@ -227,7 +227,7 @@ Deci, terminatorul nul (_aka caracterul nul_), este un caracter prezent pe toate În _pawn_, îl puteți tasta ca valoare numerică sau ca caracter `_\0_`. Backslashul acționează ca un personaj care scapă, este acolo pentru a spune mașinii că acel caracter este caracterul nul cu valoarea 0 și **NU** caracterul `0` care are valoarea `48`. -Există un simbol folosit în _pawn_, ** EOS **, prescurtarea pentru **E** nd **O**f**S** tring, este o macro predefinită pentru terminatorul nul, puteți seta terminatorul nul în multe feluri diferite; +Există un simbol folosit în _pawn_, **EOS**, prescurtarea pentru **E**nd **O**f **S**tring, este o macro predefinită pentru terminatorul nul, puteți seta terminatorul nul în multe feluri diferite; ```cpp message_9[0] = 0; diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md index 826fb69826f7..3f9a44b02fb9 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md @@ -6,7 +6,7 @@ description: файл конфигурации клиента sa-mp. ## Описание -`sa-mp.cfg` — это файл конфигурации клиента, который позволяет вам изменять настройки, связанные с SA-MP. Этот файл находится в папке 'My Documents\\GTA San Andreas User Files\\SAMP', вашей учетной записи пользователя Windows. Для редактирования этого файла можно использовать текстовый редактор, например, блокнот. +sa-mp.cfg — это файл конфигурации клиента, который позволяет вам изменять настройки, связанные с SA-MP. Этот файл находится в папке `My Documents\GTA San Andreas User Files\SAMP`, вашей учетной записи пользователя Windows. Для редактирования этого файла можно использовать текстовый редактор, например, блокнот. ## Параметры 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 4d0eda1bb925..d9b07fdd39f1 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 @@ -11,12 +11,12 @@ tags: [] Функция добавляет новую стороннюю модель (скин) игрока для скачивания. Файл модели будет помещен в папку на компьютер игрока `Documents\GTA San Andreas User Files\SAMP\cache` под названием IP и Порта сервера в виде [CRC формы](https://en.wikipedia.org/wiki/Cyclic_redundancy_check). -| Параметр | Описание | -| -------- | ---------------------------------------------------------------------------------------------------------------- | -| baseid | ID существующей базовой модели - скина (для копирования поведения скина и замены скина при ошибке загрузки). | -| newid | Новый ID скина в пределах от 20000 до 30000 (10000 слотов) для использования в SetPlayerSkin. | -| dffname | Название **.dff** файла колизии модели, расположенного стандартно в папке `models` (параметр настройки artpath). | -| txdname | Название **.txd** файла текстур модели, расположенного стандартно в папке `models` (параметр настройки artpath). | +| Параметр | Описание | +| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| baseid | ID существующей базовой модели - скина (для копирования поведения скина и замены скина при ошибке загрузки). | +| newid | Новый ID скина в пределах от 20000 до 30000 (10000 слотов) для использования в [SetPlayerSkin](SetPlayerSkin). | +| dffname | Название **.dff** файла колизии модели, расположенного стандартно в папке `models` (параметр настройки [artpath](../../server/server.cfg#пользовательские-модели)). | +| txdname | Название **.txd** файла текстур модели, расположенного стандартно в папке `models` (параметр настройки [artpath](../../server/server.cfg#пользовательские-модели)). | ## Возвращаемые данные diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md index ab121ba830fc..fac966cd84f1 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md @@ -43,7 +43,10 @@ public OnGameModeInit() :::note -Можно иметь 12 элементов меню (13ый идёт наверх в название правого столбца (название имеет другой цвет), 14ый элемент и выше не будет показан вообще). Можно добавить только 2 столбца (0 и 1). Можно добавить 8 цветовых кодов для 1 элемента (`~r~`, `~g~` и др.). Максимальная длинна текста элемента 31 символ. +- Можно иметь 12 элементов меню (13ый идёт наверх в название правого столбца (название имеет другой цвет), 14ый элемент и выше не будет показан вообще). +- Можно добавить только 2 столбца (0 и 1). +- Можно добавить 8 цветовых кодов для 1 элемента (`~r~`, `~g~` и др.). +- Максимальная длинна текста элемента 31 символ. ::: diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md index 489196d92cbe..28c4d623d3e4 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md @@ -7,7 +7,7 @@ tags: ["player"] ## Описание -Функция такая же самая как AddPlayerClass, только с дополнительным параметром teamid - установка команды, при выборе класса. +Функция такая же самая как [AddPlayerClass](AddPlayerClass), только с дополнительным параметром teamid - установка команды, при выборе класса. | Параметр | Описание | | ------------- | -------------------------------------------------- | 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 c1be6b252e9c..6c1710c3d90f 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 @@ -9,15 +9,15 @@ tags: [] ## Описание -Добавляет сторонний объект для скачивания. Файл модели будет помещен в папку на компьютер игрока `Documents\GTA San Andreas User Files\SAMP\cache` под названием IP и Порта сервера в виде CRC формы. - -| Параметр | Описание | -| ------------ | ----------------------------------------------------------------------------------------------------------------------- | -| virtualworld | Виртуальный мир, в котором объект доступен. Используйте -1 для всех миров. | -| baseid | ID существующего объекта (для замены объекта при ошибке загрузки). | -| newid | ID нового объекта в пределах от -1000 до -30000 (29000 слотов) для использования в CreateObject или CreatePlayerObject. | -| dffname | Название **.dff** файла колизии модели, расположенного стандартно в папке `models` (параметр настройки artpath). | -| txdname | Название **.txd** файла текстур модели, расположенного стандартно в папке `models` (параметр настройки artpath). | +Добавляет сторонний объект для скачивания. Файл модели будет помещен в папку на компьютер игрока `Documents\GTA San Andreas User Files\SAMP\cache` под названием IP и Порта сервера в виде [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) формы. + +| Параметр | Описание | +| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| virtualworld | Виртуальный мир, в котором объект доступен. Используйте -1 для всех миров. | +| baseid | [ID существующего объекта](https://models.open.mp/?cat=objects) (для замены объекта при ошибке загрузки). | +| newid | ID нового объекта в пределах от -1000 до -30000 (29000 слотов) для использования в CreateObject или CreatePlayerObject. | +| dffname | Название **.dff** файла колизии модели, расположенного стандартно в папке `models` (параметр настройки [artpath](../../server/server.cfg#пользовательские-модели)). | +| txdname | Название **.txd** файла текстур модели, расположенного стандартно в папке `models` (параметр настройки [artpath](../../server/server.cfg#пользовательские-модели)). | ## Возвращаемые данные diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md index 4f67d500225c..4bd12c151c50 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/AddSimpleModelTimed.md @@ -10,17 +10,17 @@ tags: [] ## Описание Аналог AddSimpleModel, только с дополнительными крайними двумя параметрами времени. -Добавляет сторонний объект для скачивания. Файл модели будет помещен в папку на компьютер игрока `Documents\GTA San Andreas User Files\SAMP\cache` под названием IP и Порта сервера в виде CRC. - -| Параметр | Описание | -| ------------ | ----------------------------------------------------------------------------------------------------------------------- | -| virtualworld | Виртуальный мир, в котором объект доступен. Используйте -1 для всех миров. | -| baseid | ID существующего объекта (для замены объекта при ошибке загрузки). | -| newid | ID нового объекта в пределах от -1000 до -30000 (29000 слотов) для использования в CreateObject или CreatePlayerObject. | -| dffname | Название **.dff** файла колизии модели, расположенного стандартно в папке `models` (параметр настройки artpath). | -| txdname | Название **.txd** файла текстур модели, расположенного стандартно в папке `models` (параметр настройки artpath). | -| timeon | Время игрового мира (часы), со скольки объект виден. | -| timeoff | Время игрового мира (часы), когда объект пропадает. | +Добавляет сторонний объект для скачивания. Файл модели будет помещен в папку на компьютер игрока `Documents\GTA San Andreas User Files\SAMP\cache` под названием IP и Порта сервера в виде [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check). + +| Параметр | Описание | +| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| virtualworld | Виртуальный мир, в котором объект доступен. Используйте -1 для всех миров. | +| baseid | [ID существующего объекта](https://models.open.mp/?cat=objects) (для замены объекта при ошибке загрузки). | +| newid | ID нового объекта в пределах от -1000 до -30000 (29000 слотов) для использования в CreateObject или CreatePlayerObject. | +| dffname | Название **.dff** файла колизии модели, расположенного стандартно в папке `models` (параметр настройки [artpath](../../server/server.cfg#пользовательские-модели)). | +| txdname | Название **.txd** файла текстур модели, расположенного стандартно в папке `models` (параметр настройки [artpath](../../server/server.cfg#пользовательские-модели)). | +| timeon | Время игрового мира (часы), со скольки объект виден. | +| timeoff | Время игрового мира (часы), когда объект пропадает. | ## Возвращаемые данные diff --git a/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md b/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md index 5b61472d5662..586d6de35168 100644 --- a/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md +++ b/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md @@ -7,7 +7,7 @@ tags: [] ## Opis -Ta "callback" se pokliče vsakič, ko NPC vidi "ClientMessage" (sporočilo, ki ga pošlje "client"). To bo vsakič, ko se prikliče funkcijo `SendClientMessageToAll` in vsakič, ko se funkcijo" SendClientMessage "pošlje NPC. Ta povratni klic ne bo poklican, ko nekdo nekaj reče. Za besedilno različico predvajalnika glejte funkcijo NPC: "OnPlayerText". +Ta "callback" se pokliče vsakič, ko NPC vidi "ClientMessage" (sporočilo, ki ga pošlje "client"). To bo vsakič, ko se prikliče funkcijo `SendClientMessageToAll` in vsakič, ko se funkcijo SendClientMessage pošlje NPC. Ta povratni klic ne bo poklican, ko nekdo nekaj reče. Za besedilno različico predvajalnika glejte funkcijo NPC:OnPlayerText. | Ime | Opis | | ------ | -------------------------------- | 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 b7620109f5e1..4e0d2a1f0f3f 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,18 +1,18 @@ --- title: OnDialogResponse sidebar_label: OnDialogResponse -description: Ta "callback" se pokliče, ko se predvajalnik odzove na pogovorno okno, imenovano "ShowPlayerDialog". +description: Ta "callback" se pokliče, ko se predvajalnik odzove na pogovorno okno, imenovano ShowPlayerDialog. tags: [] --- ## Opis -Ta "callback" se pokliče, ko se predvajalnik odzove na pogovorno okno s funkcijo "ShowPlayerDialog" s klikom na gumb, s pritiskom na tipko ENTER/ESC ali z dvojnim klikom na element seznama (če uporabljate pogovorno okno sloga seznama). +Ta "callback" se pokliče, ko se predvajalnik odzove na pogovorno okno s funkcijo ShowPlayerDialog s klikom na gumb, s pritiskom na tipko ENTER/ESC ali z dvojnim klikom na element seznama (če uporabljate pogovorno okno sloga seznama). | Ime | Opis | | ----------- | --------------------------------------------------------------------------------------------------------------------------------- | | playerid | ID igralca, ki se je odzval na dialog. | -| dialogid | ID pogovornega okna, na katerega se je predvajalnik odzval, dodeljena iz "ShowPlayerDialog". | +| dialogid | ID pogovornega okna, na katerega se je predvajalnik odzval, dodeljena iz ShowPlayerDialog. | | response | **1** za levi in **0** za desni gumb (če je prikazan samo en gumb, vedno 1). | | listitem | ID seznama elementa, ki ga je izbrala naprava (začne se pri 0) (samo če uporabljate pogovorno okno za slog seznama, sicer bo -1). | | inputtext[] | Besedilo vneseno v "input box" s strani igralca ali besedilo izbranega elementa seznama. | diff --git a/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md b/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md index 90203058311f..eb79f3b864e4 100644 --- a/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md +++ b/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md @@ -1,13 +1,13 @@ --- title: OnGameModeExit sidebar_label: OnGameModeExit -description: Ta "callback" se pokliče, ko se "gamemode" izklopi prek 'gmx', kadar koli se strežnik izklopi, bodisi pod "GameModeExit" +description: Ta "callback" se pokliče, ko se "gamemode" izklopi prek 'gmx', kadar koli se strežnik izklopi, bodisi pod GameModeExit tags: [] --- ## Opis -Ta "callback" se pokliče, ko se "gamemode" izklopi prek 'gmx', kadar koli se strežnik izklopi, bodisi pod "GameModeExit" +Ta "callback" se pokliče, ko se "gamemode" izklopi prek 'gmx', kadar koli se strežnik izklopi, bodisi pod GameModeExit ## Returns @@ -28,7 +28,7 @@ public OnGameModeExit() :::tip - Ta funkcijo se lahko uporablja tudi znotraj "filterscript" da zazna, če "gamemode" spremenite z uporabo ukazov RCON, kot je "changemode" ali "gmx", ker sprememba "gamemode" se ne zažene znova "filterscript". -- Ko se uporablja "OnGameModeExit" skupaj z'rcon gmx' ukaz v konzoli, upoštevajte, da lahko v "client" obstajajo morebitne napake, kot primer tega je pretirano kliče `RemoveBuildingForPlayer` med `OnGameModeInit` kar lahko povzroči "client" odjemalca. +- Ko se uporablja OnGameModeExit skupaj z'rcon gmx' ukaz v konzoli, upoštevajte, da lahko v "client" obstajajo morebitne napake, kot primer tega je pretirano kliče RemoveBuildingForPlayer med [OnGameModeInit](OnGameModeInit) kar lahko povzroči "client" odjemalca. - Ta "callback" ne bo poklican, če se strežnik zruši ali če postopek ubijete z drugimi sredstvi, kot je ukaz Linux "kill". ::: diff --git a/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md b/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md index 9ea829fa3901..d8b20396e09d 100644 --- a/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md +++ b/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md @@ -7,7 +7,7 @@ tags: [] ## Opis -Ta "callback" se pokliče, ko se naslov IP poskuša povezati s strežnikom. Če želite blokirati dohodne povezave, uporabite "BlockIpAddress". +Ta "callback" se pokliče, ko se naslov IP poskuša povezati s strežnikom. Če želite blokirati dohodne povezave, uporabite BlockIpAddress. | Ime | Opis | | ------------ | ----------------------------------------------- | diff --git a/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md b/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md index 62486da532dd..0d1b50b66827 100644 --- a/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md +++ b/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md @@ -38,7 +38,8 @@ public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) :::note -Kakšno ime "callback" piše, da se pokliče le, če igralec klikne, da označi tarčo(waypoint) in ne, ko pritisne gumb. Return vrednost "Z" če bi bilo 0 (nepravilno) če je kraj, kjer je igralec kliknil, daleč stran od igralca; Uporaba MapAndreas ali ColAndreas "plugin" da bi bili bolj natančni "Z" koordinate. +- Kakšno ime "callback" piše, da se pokliče le, če igralec klikne, da označi tarčo(waypoint) in ne, ko pritisne gumb. +- Return vrednost "Z" če bi bilo 0 (nepravilno) če je kraj, kjer je igralec kliknil, daleč stran od igralca; Uporaba [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) ali [ColAndreas](https://github.com/Pottus/ColAndreas) "plugin" da bi bili bolj natančni "Z" koordinate. ::: diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md index 4befea570f90..2db679e01062 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md @@ -6,7 +6,7 @@ description: Конфигурациони фајл SA-MP клијента. ## Опис -`sa-mp.cfg` је конфигурациона датотека клијента која вам омогућава да промените подешавања везана за SA-MP. Ова датотека се налази у вашем фолдеру 'My Documents\\GTA San Andreas User Files\\SAMP', под вашим Windows корисничким налогом. Ова датотека се може изменити помоћу текстуалног едитора као што је Notepad. +sa-mp.cfg је конфигурациона датотека клијента која вам омогућава да промените подешавања везана за SA-MP. Ова датотека се налази у вашем фолдеру `My Documents\GTA San Andreas User Files\SAMP`, под вашим Windows корисничким налогом. Ова датотека се може изменити помоћу текстуалног едитора као што је Notepad. ## Подешавања diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md index 98edc528b9d5..416d038555bf 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md @@ -43,9 +43,8 @@ public OnClientCheckResponse(playerid, actionid, memaddr, retndata) :::warning -**SA:MP Server**: Ова повратна функција се позива само када се налази у филтер скрипи. - -**Open Multiplayer Server**: Ова повратна функција функционише нормално унутар gamemode-a / филтер скрипти. +- **SA-MP server**: Ова повратна функција се позива само када се налази у филтер скрипи. +- **open.mp server**: Ова повратна функција функционише нормално унутар gamemode-a / филтер скрипти. ::: diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md index 12425a241ad2..c95b7a9e77b4 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md @@ -38,7 +38,8 @@ public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) :::note -Као што назив функције указује, она се позива само када играч кликне да обележи циљ, а не када притисне тастер. Вредност Z координате ће бити 0 (неважећа) ако је кликнута област на мапи далеко од играча; користите [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) или [ColAndreas](https://github.com/Pottus/ColAndreas) додатак да добијете прецизнију Z координату. +- Као што назив функције указује, она се позива само када играч кликне да обележи циљ, а не када притисне тастер. +- Вредност Z координате ће бити 0 (неважећа) ако је кликнута област на мапи далеко од играча; користите [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) или [ColAndreas](https://github.com/Pottus/ColAndreas) додатак да добијете прецизнију Z координату. ::: diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md index 5486add277c0..bf37f96d3566 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md @@ -7,7 +7,7 @@ tags: ["player", "textdraw", "playertextdraw"] ## Опис -Ова функција се позива када играч кликне на текстдрава играча. Не позива се када играч откаже режим селекције (ESC) - међутим, OnPlayerClickTextDraw јесте. +Ова функција се позива када играч кликне на текстдрава играча. Не позива се када играч откаже режим селекције (ESC) - међутим, [OnPlayerClickTextDraw](OnPlayerClickTextDraw) јесте. | Име | Опис | | ----------------------- | ------------------------------------------- | diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md index 6430cd266047..88f9f673e0f6 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md @@ -34,7 +34,8 @@ public OnPlayerExitVehicle(playerid, vehicleid) :::warning -Не позива се ако играч падне са бицикла или буде уклоњен из возила другим средствима као што је коришћење [SetPlayerPos](../functions/SetPlayerPos). Треба користити [OnPlayerStateChange](OnPlayerStateChange) и проверити да ли је њихово старо стање `PLAYER_STATE_DRIVER` или `PLAYER_STATE_PASSENGER` и њихово ново стање `PLAYER_STATE_ONFOOT`. +- Не позива се ако играч падне са бицикла или буде уклоњен из возила другим средствима као што је коришћење [SetPlayerPos](../functions/SetPlayerPos). +- Треба користити [OnPlayerStateChange](OnPlayerStateChange) и проверити да ли је њихово старо стање `PLAYER_STATE_DRIVER` или `PLAYER_STATE_PASSENGER` и њихово ново стање `PLAYER_STATE_ONFOOT`. ::: diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md index 69111c92030e..e405e61db530 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md @@ -7,7 +7,7 @@ tags: ["player"] ## Опис -Ова повратна функција се позива када играч промени стање. На пример, када играч прелази из стања возача возила у стање ходања. +Ова повратна функција се позива када играч промени [стање](../resources/playerstates). На пример, када играч прелази из стања возача возила у стање ходања. | Име | Опис | | --------------------- | -------------------------- | @@ -15,8 +15,6 @@ tags: ["player"] | PLAYER_STATE:newstate | Старо стање играча. | | PLAYER_STATE:oldstate | Ново стање играча. | -[Листа](../resources/playerstates) свих могућих стања играча. - ## Враћа Позива се прво у филтерскриптама. diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md index 54a5fb221890..ee8baa0445ef 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md @@ -43,10 +43,10 @@ public OnPlayerWeaponShot(playerid, WEAPON:weaponid, BULLET_HIT_TYPE:hittype, hi :::note -Овај повратни позив се позива само када је компензција за кашњење **омогућена**. Ако је **hittype**: - -- `BULLET_HIT_TYPE_NONE`: параметри **fX**, **fY** и **fZ** су нормалне координате, вратиће 0.0 за координате ако ништа није погођено (нпр. удаљени објекат који метак не може да достигне); -- Остало: **fX**, **fY** и **fZ** су оффсети релативно на **hitid**. +- Овај повратни позив се позива само када је компензција за кашњење **омогућена**. +- Ако је **hittype**: + - `BULLET_HIT_TYPE_NONE`: параметри **fX**, **fY** и **fZ** су нормалне координате, вратиће 0.0 за координате ако ништа није погођено (нпр. удаљени објекат који метак не може да достигне); + - Остало: **fX**, **fY** и **fZ** су оффсети релативно на **hitid**. ::: diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md index c1059f9e9477..76cb8dd95c56 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md @@ -47,7 +47,7 @@ public OnRconCommand(cmd[]) - "/rcon " није укључено у "cmd" када играч напише команду. - Ако користите функцију "print" овде, послаће поруку играчу који је написао команду у игри, као и у лог. - Ова функција се не позива када играч није пријављен као RCON администратор. -- Када играч није пријављен као RCON администратор и користи `/rcon login`, ова функција се не позива и уместо тога се позива OnRconLoginAttempt. Међутим, када играч буде пријављен као RCON администратор, употреба ове команде ће позвати ову функцију. +- Када играч није пријављен као RCON администратор и користи `/rcon login`, ова функција се не позива и уместо тога се позива [OnRconLoginAttempt](OnRconLoginAttempt). Међутим, када играч буде пријављен као RCON администратор, употреба ове команде ће позвати ову функцију. ::: diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md index 2090b20483bc..1302c55835b2 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md @@ -35,7 +35,8 @@ public OnVehiclePaintjob(playerid, vehicleid, paintjobid) :::note -Ова повратна функција се не позива од стране [ChangeVehiclePaintjob](../functions/ChangeVehiclePaintjob). Можете користити OnVehicleChangePaintjob из vSync како бисте знали када играч **купи** боју. +- Ова повратна функција се не позива од стране [ChangeVehiclePaintjob](../functions/ChangeVehiclePaintjob). +- Можете користити OnVehicleChangePaintjob из [vSync](https://github.com/Vasily-X/vSync) како бисте знали када играч **купи** боју. ::: diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md index 461126f92456..046a959afaf0 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md @@ -36,7 +36,8 @@ public OnVehicleRespray(playerid, vehicleid, color1, color2) :::note -Ова повратна функција се не позива од стране ChangeVehicleColor. Назив може бити обмануто, ова повратна функција се не позива за pay 'n' spray (само за радње за модификацију). +- Ова повратна функција се не позива од стране ChangeVehicleColor. +- Назив може бити обмануто, ова повратна функција се не позива за pay 'n' spray (само за радње за модификацију). Погледај ово: https://pastebin.com/G81da7N1 diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md index f327d09b0ca6..f8799f1785a4 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md @@ -13,7 +13,7 @@ tags: ["vehicle"] ## Опис -Ова повратна функција се позива када се возило респаунује. +Ова повратна функција се позива када се возило **ре**спаунује. | Име | Опис | | --------- | ------------------------------- | diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md index 8ca2641fc8ab..0eef6ff64847 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md @@ -7,7 +7,7 @@ tags: [] ## Опис -Ова функција ради исто и AddStaticPickup, осим што враћа ИД pickup-a који можемо да пратимо под OnPlayerPickUpPickup или да га уништимо. +Ова функција ради исто и AddStaticPickup, осим што враћа ИД pickup-a који можемо да пратимо под [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup) или да га уништимо. | Име | Опис | | -------------------------------- | ------------------------------------------------------------------------------- | @@ -58,7 +58,7 @@ pickup = 0; // варијабла се мора ресетовати да би :::warning -**Познати багови:** Pickup-ови који имају X или Y мањи од -4096.0 или већи од 4096.0 неће бити приказани и неће активирати OnPlayerPickUpPickup. +**Познати багови:** Pickup-ови који имају X или Y мањи од -4096.0 или већи од 4096.0 неће бити приказани и неће активирати [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup). ::: diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md index 334b63e9ba8e..ddabf5c2ab91 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md @@ -7,7 +7,7 @@ tags: ["player", "checkpoint"] ## Опис -Поставља checkpoint (црвени круг) за играча. Такође приказује црвену коцку на мапи. Када играч уђе у checkpoint, OnPlayerEnterCheckpoint се позива и извршава оно што је у њему. +Поставља checkpoint (црвени круг) за играча. Такође приказује црвену коцку на мапи. Када играч уђе у checkpoint, [OnPlayerEnterCheckpoint](../callbacks/OnPlayerEnterCheckpoint) се позива и извршава оно што је у њему. | ИМе | Опис | | ---------- | -------------------------------------- | diff --git a/frontend/i18n/ta/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md b/frontend/i18n/ta/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md index 9480a76d8856..e15d824caa5d 100644 --- a/frontend/i18n/ta/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md +++ b/frontend/i18n/ta/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md @@ -6,7 +6,7 @@ description: sa-mp கிளையன்ட் உள்ளமைவு கோ ## விளக்கம் -`sa-mp.cfg` என்பது கிளையன்ட் உள்ளமைவுக் கோப்பாகும், இது SA-MP தொடர்பான அமைப்புகளை மாற்ற உங்களை அனுமதிக்கிறது. இந்தக் கோப்பு உங்கள் Windows பயனர் கணக்கின் கீழ், உங்கள் 'My Documents\\GTA San Andreas User Files\\SAMP' கோப்புறையில் உள்ளது. நோட்பேட் போன்ற உரை திருத்தி மூலம் இந்தக் கோப்பைத் திருத்தலாம். +sa-mp.cfg என்பது கிளையன்ட் உள்ளமைவுக் கோப்பாகும், இது SA-MP தொடர்பான அமைப்புகளை மாற்ற உங்களை அனுமதிக்கிறது. இந்தக் கோப்பு உங்கள் Windows பயனர் கணக்கின் கீழ், உங்கள் `My Documents\GTA San Andreas User Files\SAMP` கோப்புறையில் உள்ளது. நோட்பேட் போன்ற உரை திருத்தி மூலம் இந்தக் கோப்பைத் திருத்தலாம். ## விருப்பங்கள் diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md index 3d335e36a769..b0559cf8b86c 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md @@ -26,7 +26,9 @@ public OnGameModeExit() :::tip -ฟังก์ชั่นนี้ยังสามารถถูกใช้ในฟิลเตอร์สคริปต์ได้เพื่อตรวจสอบว่าเกมโหมดมีการเปลี่ยนแปลงด้วยคำสั่ง RCON ไหม เช่น changemode, gmx หรือมีการเปลี่ยนเกมโหมดแล้วแต่ฟิลเตอร์สคริปต์ยังไม่ถูกรีโหลด เมื่อใช้ OnGameModeExit ร่วมกับคำสั่ง 'rcon gmx' ในคอนโซล มีความเป็นไปได้ที่จะเกิดข้อผิดพลาดขึ้นกับไคลเอนต์ยกตัวอย่างเช่น การเรียก RemoveBuildingForPlayer มากเกินไปในระหว่างที่ OnGameModeInit กำลังทำงานอยู่ซึ่งอาจส่งผลให้ไคลเอนต์หยุดทำงาน Callback นี้จะไม่ถูกเรียกถ้าหากเซิร์ฟเวอร์ขัดข้องหรือโปรเซสถูกปิดโดยวิธีอื่นอย่างเช่นการใช้คำสั่ง Linux ในการหยุดการทำงาน +- ฟังก์ชั่นนี้ยังสามารถถูกใช้ในฟิลเตอร์สคริปต์ได้เพื่อตรวจสอบว่าเกมโหมดมีการเปลี่ยนแปลงด้วยคำสั่ง RCON ไหม เช่น changemode, gmx หรือมีการเปลี่ยนเกมโหมดแล้วแต่ฟิลเตอร์สคริปต์ยังไม่ถูกรีโหลด +- เมื่อใช้ OnGameModeExit ร่วมกับคำสั่ง 'rcon gmx' ในคอนโซล มีความเป็นไปได้ที่จะเกิดข้อผิดพลาดขึ้นกับไคลเอนต์ยกตัวอย่างเช่น การเรียก RemoveBuildingForPlayer มากเกินไปในระหว่างที่ [OnGameModeInit](OnGameModeInit) กำลังทำงานอยู่ซึ่งอาจส่งผลให้ไคลเอนต์หยุดทำงาน +- Callback นี้จะไม่ถูกเรียกถ้าหากเซิร์ฟเวอร์ขัดข้องหรือโปรเซสถูกปิดโดยวิธีอื่นอย่างเช่นการใช้คำสั่ง Linux ในการหยุดการทำงาน ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md index fe8281e7403d..1e24d0011b2a 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md @@ -44,7 +44,7 @@ public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) :::note -ค่า Z จะถูกส่งกลับเป็น 0 (ไม่ถูกต้อง) หากมันอยู่ไกลจากผู้เล่นเกินไป; ใช้ปลั๊กอิน MapAndreas เพื่อให้ได้พิกัด Z ได้แม่นยำขึ้น +ค่า Z จะถูกส่งกลับเป็น 0 (ไม่ถูกต้อง) หากมันอยู่ไกลจากผู้เล่นเกินไป; ใช้ปลั๊กอิน [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) เพื่อให้ได้พิกัด Z ได้แม่นยำขึ้น ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md index 6be1c2583255..8203282c476e 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md @@ -64,7 +64,8 @@ public OnPlayerClickTextDraw(playerid, Text:clickedid) :::warning -The clickable area is defined by TextDrawTextSize. The x and y parameters passed to that function must not be zero or negative. Do not use CancelSelectTextDraw unconditionally within this callback. This results in an infinite loop. +- The clickable area is defined by TextDrawTextSize. The x and y parameters passed to that function must not be zero or negative. +- Do not use CancelSelectTextDraw unconditionally within this callback. This results in an infinite loop. ::: 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 9fa34fc40e15..10596acfbb04 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 @@ -37,7 +37,8 @@ public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) :::note -This callback is called when a player **BEGINS** to enter a vehicle, not when they HAVE entered it. See OnPlayerStateChange. This callback is still called if the player is denied entry to the vehicle (e.g. it is locked or full). +- This callback is called when a player **BEGINS** to enter a vehicle, not when they HAVE entered it. See OnPlayerStateChange. +- This callback is still called if the player is denied entry to the vehicle (e.g. it is locked or full). ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md index d88cb4d9b387..f82d4e14facd 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md @@ -34,7 +34,8 @@ public OnPlayerExitVehicle(playerid, vehicleid) :::warning -Not called if the player falls off a bike or is removed from a vehicle by other means such as using SetPlayerPos. You must use OnPlayerStateChange and check if their old state is PLAYER_STATE_DRIVER or PLAYER_STATE_PASSENGER and their new state is PLAYER_STATE_ONFOOT. +- Not called if the player falls off a bike or is removed from a vehicle by other means such as using SetPlayerPos. +- You must use OnPlayerStateChange and check if their old state is PLAYER_STATE_DRIVER or PLAYER_STATE_PASSENGER and their new state is PLAYER_STATE_ONFOOT. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md index ac59cbf38165..583a89db0a14 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md @@ -7,7 +7,7 @@ tags: ["player"] ## คำอธิบาย -This callback is called when a player changes state. For example, when a player changes from being the driver of a vehicle to being on-foot. +This callback is called when a player changes [state](../resources/playerstates). For example, when a player changes from being the driver of a vehicle to being on-foot. | Name | Description | | -------- | ---------------------------------------- | @@ -15,8 +15,6 @@ This callback is called when a player changes state. For example, when a player | newstate | The player's new state. | | oldstate | The player's previous state. | -Refer to [Player States](../resources/playerstates) for a list of all available player states. - ## ส่งคืน มันถูกเรียกในฟิลเตอร์สคริปต์ก่อนเสมอ diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md index cc0a7e062a69..0260f3143a4c 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md @@ -43,10 +43,10 @@ public OnPlayerWeaponShot(playerid, WEAPON:weaponid, BULLET_HIT_TYPE:hittype, hi :::note -This callback is only called when lag compensation is **enabled**. If **hittype** is: - -- `BULLET_HIT_TYPE_NONE`: the **fX**, **fY** and **fZ** parameters are normal coordinates, will give 0.0 for coordinates if nothing was hit (e.g. far object that the bullet can't reach); -- Others: the **fX**, **fY** and **fZ** are offsets relative to the **hitid**. +- This callback is only called when lag compensation is **enabled**. +- If **hittype** is: + - `BULLET_HIT_TYPE_NONE`: the **fX**, **fY** and **fZ** parameters are normal coordinates, will give 0.0 for coordinates if nothing was hit (e.g. far object that the bullet can't reach); + - Others: the **fX**, **fY** and **fZ** are offsets relative to the **hitid**. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md index 25d22053fb77..3a9e98950abe 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md @@ -45,7 +45,8 @@ public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_ :::warning -This callback is called very frequently per second per unoccupied vehicle. You should refrain from implementing intensive calculations or intensive file writing/reading operations in this callback. GetVehiclePos will return the old coordinates of the vehicle before this update. +- This callback is called very frequently per second per unoccupied vehicle. You should refrain from implementing intensive calculations or intensive file writing/reading operations in this callback. +- GetVehiclePos will return the old coordinates of the vehicle before this update. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md index ee15f663f8fb..b713bfcc4b79 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md @@ -35,7 +35,8 @@ public OnVehiclePaintjob(playerid, vehicleid, paintjobid) :::note -This callback is not called by ChangeVehiclePaintjob. You might use OnVehicleChangePaintjob from vSync in order to know when the player **buys** the paintjob. +- This callback is not called by ChangeVehiclePaintjob. +- You might use OnVehicleChangePaintjob from [vSync](https://github.com/Vasily-X/vSync) in order to know when the player **buys** the paintjob. ::: 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 ccbd946d5b32..611af48a5e08 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 @@ -38,7 +38,8 @@ public OnVehicleRespray(playerid, vehicleid, color1, color2) :::note -This callback is not called by ChangeVehicleColor. Misleadingly, this callback is not called for pay 'n' spray (only modshops). +- This callback is not called by ChangeVehicleColor. +- Misleadingly, this callback is not called for pay 'n' spray (only modshops). Fix here: https://pastebin.com/G81da7N1 diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md index 24edbf0e8c6f..3b36fd7c4c2f 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md @@ -13,7 +13,7 @@ This callback is called **only** when vehicle **re**spawns! CreateVehicle and Ad ## คำอธิบาย -This callback is called when a vehicle respawns. +This callback is called when a vehicle **re**spawns. | Name | Description | | --------- | ----------------------------------- | 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 896acded15f0..094a1fd06785 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 @@ -49,7 +49,7 @@ public OnGameModeInit() :::warning -There are currently no restrictions on when you can call this function, but be aware that if you do not call them inside OnFilterScriptInit/OnGameModeInit, you run the risk that some players, who are already on the server, may not have downloaded the models. +There are currently no restrictions on when you can call this function, but be aware that if you do not call them inside [OnFilterScriptInit](../callbacks/OnFilterScriptInit)/[OnGameModeInit](../callbacks/OnGameModeInit), you run the risk that some players, who are already on the server, may not have downloaded the models. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md index 41dce6e4e134..90d5c2295d62 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md @@ -43,7 +43,10 @@ Crashes when passed an invalid menu ID. (Fixed in open.mp) :::note -You can only have 12 items per menu (13th goes to the right side of the header of column name (colored), 14th and higher not display at all). You can only use 2 columns (0 and 1). You can only add 8 color codes per one item (`~r~`, `~g~` etc.). Maximum length of menu item is 31 symbols. +- You can only have 12 items per menu (13th goes to the right side of the header of column name (colored), 14th and higher not display at all). +- You can only use 2 columns (0 and 1). +- You can only add 8 color codes per one item (`~r~`, `~g~` etc.). +- Maximum length of menu item is 31 symbols. ::: 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 977d4e3d29b4..29d80a4b5025 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 @@ -13,12 +13,12 @@ This function was added in SA-MP 0.3.DL R1 and will not work in earlier versions ## คำอธิบาย -Adds a new custom simple object 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 simple object 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 | | ------------ | --------------------------------------------------------------------------------------------------------------------------- | | virtualworld | The virtual world ID to make the model available at. Use -1 for all worlds. | -| baseid | The base object model ID to use (original object to use when download is failed). | +| baseid | The base [object model ID](https://models.open.mp/?cat=objects) to use (original object to use when download is failed). | | newid | The new object model ID ranged from -1000 to -30000 (29000 slots) to be used later with CreateObject or CreatePlayerObject. | | dffname | Name of the **.dff** model collision file located in `models` server folder by default (artpath setting). | | txdname | Name of the **.txd** model texture file located in `models` server folder by default (artpath setting). | @@ -50,7 +50,7 @@ public OnGameModeInit() :::warning -There are currently no restrictions on when you can call this function, but be aware that if you do not call them inside OnFilterScriptInit/OnGameModeInit, you run the risk that some players, who are already on the server, may not have downloaded the models. +There are currently no restrictions on when you can call this function, but be aware that if you do not call them inside [OnFilterScriptInit](../callbacks/OnFilterScriptInit)/[OnGameModeInit](../callbacks/OnGameModeInit), you run the risk that some players, who are already on the server, may not have downloaded the 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 e752801eeff6..bf3b4e90fe06 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 @@ -13,12 +13,12 @@ This function was added in SA-MP 0.3.DL R1 and will not work in earlier versions ## คำอธิบาย -Adds a new custom simple object 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 simple object 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 | | ------------ | --------------------------------------------------------------------------------------------------------------------------- | | virtualworld | The virtual world ID to make the model available at. Use -1 for all worlds. | -| baseid | The base object model ID to use (original object to use when download is failed). | +| baseid | The base [object model ID](https://models.open.mp/?cat=objects) to use (original object to use when download is failed). | | newid | The new object model ID ranged from -1000 to -30000 (29000 slots) to be used later with CreateObject or CreatePlayerObject. | | dffname | Name of the **.dff** model collision file located in `models` server folder by default (artpath setting). | | txdname | Name of the **.txd** model texture file located in `models` server folder by default (artpath setting). | @@ -52,7 +52,7 @@ public OnGameModeInit() :::warning -There are currently no restrictions on when you can call this function, but be aware that if you do not call them inside OnFilterScriptInit/OnGameModeInit, you run the risk that some players, who are already on the server, may not have downloaded the models. +There are currently no restrictions on when you can call this function, but be aware that if you do not call them inside [OnFilterScriptInit](../callbacks/OnFilterScriptInit)/[OnGameModeInit](../callbacks/OnGameModeInit), you run the risk that some players, who are already on the server, may not have downloaded the models. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AllowAdminTeleport.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AllowAdminTeleport.md index 4a2c21b1c070..9d610f336764 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AllowAdminTeleport.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AllowAdminTeleport.md @@ -7,7 +7,7 @@ tags: [] :::warning -This function, as of 0.3d, is deprecated. Please see OnPlayerClickMap. +This function, as of 0.3d, is deprecated. Please see [OnPlayerClickMap](../callbacks/OnPlayerClickMap). ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AllowPlayerTeleport.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AllowPlayerTeleport.md index 92d5c81cb125..0e06d1b1d07f 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AllowPlayerTeleport.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/AllowPlayerTeleport.md @@ -7,7 +7,7 @@ tags: ["player"] :::warning -This function, as of 0.3d, is deprecated. Check OnPlayerClickMap. +This function, as of 0.3d, is deprecated. Check [OnPlayerClickMap](../callbacks/OnPlayerClickMap). ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CancelSelectTextDraw.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CancelSelectTextDraw.md index 531f41525c00..f2ff2a8d8466 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CancelSelectTextDraw.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CancelSelectTextDraw.md @@ -36,7 +36,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -\*This function calls OnPlayerClickTextDraw with INVALID_TEXT_DRAW (65535). Using this function inside OnPlayerClickTextDraw without catching this case will cause clients to go into an infinite loop. +This function calls OnPlayerClickTextDraw with INVALID_TEXT_DRAW (65535). Using this function inside OnPlayerClickTextDraw without catching this case will cause clients to go into an infinite loop. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md index d16850f41ef0..cbe5098f884e 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md @@ -52,7 +52,8 @@ public OnGameModeInit() :::warning -- Actors are completely separate from NPCs. They do NOT use player IDs/slots on the server and CANNOT be handled like NPCs. Actors are limited to 1000 (MAX_ACTORS). +- Actors are completely separate from NPCs. They do NOT use player IDs/slots on the server and CANNOT be handled like NPCs. +- Actors are limited to 1000 (MAX_ACTORS). - Actors can be pushed by vehicles, use a timer to put them back at their positions. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreateMenu.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreateMenu.md index a6023970caf1..2a283aec0090 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreateMenu.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreateMenu.md @@ -38,7 +38,9 @@ public OnGameModeInit() :::note -This function merely CREATES the menu - ShowMenuForPlayer must be used to show it. You can only create and access 2 columns (0 & 1). If the title's length is equal to or greater than 32 chars the title is truncated to 30 characters. +- This function merely CREATES the menu - ShowMenuForPlayer must be used to show it. +- You can only create and access 2 columns (0 & 1). +- If the title's length is equal to or greater than 32 chars the title is truncated to 30 characters. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md index b405d2659c00..50168d1d7cb4 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md @@ -11,7 +11,7 @@ Creates an object at specified coordinates in the game world. | Name | Description | | ------------------ | ------------------------------------------------------------------------------------------------------------------------- | -| modelid | The model to create. | +| modelid | The [model](https://models.open.mp/?cat=objects) to create. | | Float:X | The X coordinate to create the object at. | | Float:Y | The Y coordinate to create the object at. | | Float:Z | The Z coordinate to create the object at. | @@ -35,7 +35,7 @@ public OnGameModeInit() :::note -There is a limit of 1000 objects (MAX_OBJECTS). To circumvent this limit, you can use a streamer. +There is a limit of 1000 objects (MAX_OBJECTS). To circumvent this limit, you can use a [streamer](https://github.com/samp-incognito/samp-streamer-plugin). ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md index 5d5f265561e2..811ea1a92b51 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md @@ -12,7 +12,7 @@ Creates an object which will be visible to only one player. | Name | Description | | ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | playerid | The ID of the player to create the object for. | -| modelid | The model to create. | +| modelid | The [model](https://models.open.mp/?cat=objects) to create. | | Float:X | The X coordinate to create the object at. | | Float:Y | The Y coordinate to create the object at. | | Float:Z | The Z coordinate to create the object at. | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md index 7c52cb8ff899..9214065c32fe 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/EnableZoneNames.md @@ -7,7 +7,7 @@ tags: [] ## คำอธิบาย -This function allows to turn on zone / area names such as the "Vinewood" or "Doherty" text at the bottom-right of the screen as they enter the area. This is a gamemode option and should be set in the callback OnGameModeInit. +This function allows to turn on zone / area names such as the "Vinewood" or "Doherty" text at the bottom-right of the screen as they enter the area. This is a gamemode option and should be set in the callback [OnGameModeInit](../callbacks/OnGameModeInit). | Name | Description | | ------ | ----------------------------------------------------------------------------------------- | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md index 6867badb6ef6..115c063e98ab 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md @@ -15,11 +15,11 @@ This function was added in SA-MP 0.3.DL R1 and will not work in earlier versions Find an existing custom skin or simple object model file. The model files are located in `models` server folder by default (artpath setting). -| Name | Description | -| ----------- | ------------------------------------------------------------------------- | -| crc | The CRC checksum of custom model file. | -| retstr[] | An array into which to store the **.dff** file name, passed by reference. | -| retstr_size | The length of the string that should be stored. | +| Name | Description | +| ----------- | ----------------------------------------------------------------------------------------------- | +| crc | The [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) checksum of custom model file. | +| retstr[] | An array into which to store the **.dff** file name, passed by reference. | +| retstr_size | The length of the string that should be stored. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md index 4b29870f8d7c..8ff6cbd11701 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md @@ -15,11 +15,11 @@ This function was added in SA-MP 0.3.DL R1 and will not work in earlier versions Find an existing custom skin or simple object texture file. The model files are located in `models` server folder by default (artpath setting). -| Name | Description | -| ----------- | ------------------------------------------------------------------------- | -| crc | The CRC checksum of custom model file. | -| retstr[] | An array into which to store the **.txd** file name, passed by reference. | -| retstr_size | The length of the string that should be stored. | +| Name | Description | +| ----------- | ----------------------------------------------------------------------------------------------- | +| crc | The [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) checksum of custom model file. | +| retstr[] | An array into which to store the **.txd** file name, passed by reference. | +| retstr_size | The length of the string that should be stored. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md index f273dc772845..936b7f7f01fd 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md @@ -50,7 +50,8 @@ This function merely CREATES the gangzone, you must use GangZoneShowForPlayer or :::warning -There is a limit of 1024 gangzones. Putting the parameters in the wrong order results in glitchy behavior. +- There is a limit of 1024 gangzones. +- Putting the parameters in the wrong order results in glitchy behavior. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md index 85118c5c30a9..0422aef3af7f 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md @@ -36,7 +36,8 @@ SendClientMessage(playerid, 0xFFFFFFAA, s); :::warning -Even though the armour can be set to near infinite values on the server side, the individual clients will only report values up to 255. Anything higher will wrap around; 256 becomes 0, 257 becomes 1, etc. Armour is obtained rounded to integers: set 50.15, but get 50.0 +- Even though the armour can be set to near infinite values on the server side, the individual clients will only report values up to 255. Anything higher will wrap around; 256 becomes 0, 257 becomes 1, etc. +- Armour is obtained rounded to integers: set 50.15, but get 50.0 ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraAspectRatio.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraAspectRatio.md index c2d75a096fc8..0a3eb305801e 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraAspectRatio.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraAspectRatio.md @@ -7,7 +7,7 @@ tags: ["player"] ## คำอธิบาย -Retrieves the aspect ratio of a player's camera. +Retrieves the [aspect ratio](https://en.wikipedia.org/wiki/Aspect_ratio_(image)) of a player's camera. | Name | Description | | -------- | ------------------------------------------------------- | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerDrunkLevel.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerDrunkLevel.md index 1808c5601ebc..7b0e279f1253 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerDrunkLevel.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerDrunkLevel.md @@ -7,7 +7,7 @@ tags: ["player"] ## คำอธิบาย -Checks the player's level of drunkenness. If the level is less than 2000, the player is sober. The player's level of drunkness goes down slowly automatically (26 levels per second) but will always reach 2000 at the end (in 0.3b it will stop at zero). The higher drunkenness levels affect the player's camera, and the car driving handling. The level of drunkenness increases when the player drinks from a bottle (You can use SetPlayerSpecialAction to give them bottles). +Checks the player's level of drunkenness. If the level is less than 2000, the player is sober. The player's level of drunkness goes down slowly automatically (26 levels per second) but will always reach 2000 at the end (in 0.3b it will stop at zero). The higher drunkenness levels affect the player's camera, and the car driving handling. The level of drunkenness increases when the player drinks from a bottle (you can use SetPlayerSpecialAction to give them bottles). | Name | Description | | -------- | ------------------------------------------------------ | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md index 393d53790d8f..1b36a374f7b3 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md @@ -44,7 +44,8 @@ if (strcmp(cmdtext, "/doctor", true) == 0) :::warning -Even though the health can be set to near infinite values on the server side, the individual clients will only report values up to 255. Anything higher will wrap around; 256 becomes 0, 257 becomes 1, etc. Health is obtained rounded to integers: set 50.15, but get 50.0 +- Even though the health can be set to near infinite values on the server side, the individual clients will only report values up to 255. Anything higher will wrap around; 256 becomes 0, 257 becomes 1, etc. +- Health is obtained rounded to integers: set 50.15, but get 50.0 ::: 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 e588f0c201cc..a25444aeeb23 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 @@ -42,7 +42,7 @@ public OnPlayerConnect(playerid) :::note -- PAWN is case-sensitive. GetPlayerIP will not work. +- PAWN is case-sensitive. GetPlayerI**P** will not work. - **SA-MP server**: This function **does not work** when used in [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect) because the player is already disconnected. It will return an invalid IP (255.255.255.255). Save players' IPs under [OnPlayerConnect](../callbacks/OnPlayerConnect) if they need to be used under [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect). - **open.mp server**: This function **work** when used in [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect). 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 4ef9d514cf88..b56df48f4d73 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 @@ -9,12 +9,12 @@ tags: ["player"] Check which keys a player is pressing. -| Name | Description | -| --------- | ------------------------------------------------------------------------------------------------------------------------- | -| playerid | The ID of the player to get the keys of. | -| keys | A set of bits containing the player's key states. This value is what is called a bit mask. Click here for a list of keys. | -| updown | Up/down state. | -| leftright | Left/right state. | +| Name | Description | +| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| playerid | The ID of the player to get the keys of. | +| keys | A set of bits containing the player's key states. This value is what is called a [bit mask](https://en.wikipedia.org/wiki/Mask_(computing)). Click here for a list of keys. | +| updown | Up/down state. | +| leftright | Left/right state. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerLastShotVectors.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerLastShotVectors.md index 8e0b5d4f9d6d..fab180f46af3 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerLastShotVectors.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerLastShotVectors.md @@ -51,7 +51,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -This function will only work when lag compensation is **enabled**. If the player hit nothing, the hit positions will be 0. This means you can't currently calculate how far a bullet travels through open air. +- This function will only work when lag compensation is **enabled**. +- If the player hit nothing, the hit positions will be 0. This means you can't currently calculate how far a bullet travels through open air. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md index 7a5d92140a29..84aadceaa515 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md @@ -7,7 +7,7 @@ tags: ["player"] ## คำอธิบาย -Get the ping of a player. The ping measures the amount of time it takes for the server to 'ping' the client and for the client to send the message back. +Get the [ping](https://en.wikipedia.org/wiki/Ping_(networking_utility)) of a player. The ping measures the amount of time it takes for the server to 'ping' the client and for the client to send the message back. | Name | Description | | -------- | ---------------------------------------- | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerScore.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerScore.md index 76a3f1157384..fdee041f28a4 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerScore.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerScore.md @@ -7,7 +7,7 @@ tags: ["player"] ## คำอธิบาย -This function returns a player's score as it was set using SetPlayerScore +This function returns a player's score as it was set using SetPlayerScore. | Name | Description | | -------- | ------------------------------- | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md index 64aaa0948848..a68d576644fc 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md @@ -41,7 +41,8 @@ public OnPlayerUpdate(playerid) :::warning -Does not work for joypads/controllers, and after a certain distance. Does not work for the sniper rifle, as it doesn't lock on to anything and as such can't and won't return a player. +- Does not work for joypads/controllers, and after a certain distance. +- Does not work for the sniper rifle, as it doesn't lock on to anything and as such can't and won't return a player. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetTickCount.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetTickCount.md index 15e6d3b0e358..d4088410441d 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetTickCount.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetTickCount.md @@ -28,7 +28,7 @@ public OnPlayerConnect(playerid) :::tip -One common use for GetTickCount is for benchmarking. It can be used to calculate how much time some code takes to execute. +One common use for GetTickCount is for [benchmarking](https://en.wikipedia.org/wiki/Benchmark_(computing)). It can be used to calculate how much time some code takes to execute. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleDamageStatus.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleDamageStatus.md index e9e02467e9a2..e280681f300c 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleDamageStatus.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleDamageStatus.md @@ -40,7 +40,7 @@ printf("Vehicle Status: [Panels]: %d - [Doors]: %d - [Lights]: %d - [Tyres]: %d" :::tip -- The stored values are bit masks. Bitwise operators will allow you to use the values. +- The stored values are [bit masks](https://en.wikipedia.org/wiki/Mask_(computing)). Bitwise operators will allow you to use the values. - For some useful functions for working with vehicle damage values, see here. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md index 7b2871b69e9e..eb77d8004cf5 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## คำอธิบาย -Returns a vehicle's rotation on all axes as a quaternion. +Returns a vehicle's rotation on all axes as a [quaternion](https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation). | Name | Description | | --------- | ------------------------------------------------------------------------------------ | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/InterpolateCameraLookAt.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/InterpolateCameraLookAt.md index 69682c253f53..a9b2203a0626 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/InterpolateCameraLookAt.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/InterpolateCameraLookAt.md @@ -47,7 +47,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::tip -Use TogglePlayerSpectating to make objects stream in for the player while the camera is moving. You can reset the camera behind the player with SetCameraBehindPlayer. +- Use TogglePlayerSpectating to make objects stream in for the player while the camera is moving. +- You can reset the camera behind the player with SetCameraBehindPlayer. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/InterpolateCameraPos.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/InterpolateCameraPos.md index c00b8f586380..d21eea95a354 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/InterpolateCameraPos.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/InterpolateCameraPos.md @@ -45,7 +45,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::tip -Use TogglePlayerSpectating to make objects stream in for the player while the camera is moving and remove the HUD. The player's camera can be reset to behind the player with SetCameraBehindPlayer. +- Use TogglePlayerSpectating to make objects stream in for the player while the camera is moving and remove the HUD. +- The player's camera can be reset to behind the player with SetCameraBehindPlayer. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerAdmin.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerAdmin.md index 7d6b3e3558c1..b8552f221c71 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerAdmin.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerAdmin.md @@ -15,7 +15,9 @@ Check if a player is logged in as an RCON admin. ## ส่งคืน -**1**: Player is an RCON admin. **0**: Player is NOT an RCON admin. +**1**: Player is an RCON admin. + +**0**: Player is NOT an RCON admin. ## ตัวอย่าง 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 3ea26648fcdc..5abd9e63576a 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,9 +33,8 @@ if (IsPlayerStreamedIn(playerid, 0)) :::note -**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) +- **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/ManualVehicleEngineAndLights.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ManualVehicleEngineAndLights.md index 3bd8e2a21c9a..6c6f9cf568a8 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ManualVehicleEngineAndLights.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ManualVehicleEngineAndLights.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## คำอธิบาย -Use this function before any player connects (OnGameModeInit) to tell all clients that the script will control vehicle engines and lights. This prevents the game automatically turning the engine on/off when players enter/exit vehicles and headlights automatically coming on when it is dark. +Use this function before any player connects ([OnGameModeInit](../callbacks/OnGameModeInit)) to tell all clients that the script will control vehicle engines and lights. This prevents the game automatically turning the engine on/off when players enter/exit vehicles and headlights automatically coming on when it is dark. | Name | Description | | ---- | ----------- | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md index f31644adc8b9..ba22d0bbc12e 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md @@ -53,7 +53,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -This function can be used to make objects rotate smoothly. In order to achieve this however, the object must also be **moved**. The specified rotation is the rotation the object will have after the movement. Hence the object will not rotate when no movement is applied. For a script example take a look at the ferriswheel.pwn filterscript made by Kye included in the server package (SA-MP 0.3d and above). To fully understand the above note, you can (but not limited to) increase the z position by (+0.001) and then (-0.001) after moving it again, as not changing the X,Y or Z will not rotate the object. +- This function can be used to make objects rotate smoothly. In order to achieve this however, the object must also be **moved**. The specified rotation is the rotation the object will have after the movement. Hence the object will not rotate when no movement is applied. For a script example take a look at the ferriswheel.pwn filterscript made by Kye included in the server package (SA-MP 0.3d and above). +- To fully understand the above note, you can (but not limited to) increase the z position by (+0.001) and then (-0.001) after moving it again, as not changing the X,Y or Z will not rotate the object. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md index d7ffc9889c29..85e498e3aec8 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md @@ -35,7 +35,8 @@ MovePlayerObject(playerid, objectid, 2001.195679, 1547.113892, 10); :::note -If using the rotation parameters, the object must be moved (X/Y/Z). The object will interpolate the rotation from when the objects starts moving and when it stops. The parameters below are for 0.3d R2 and older versions and should be ignored if you run the latest version of SA-MP. +- If using the rotation parameters, the object must be moved (X/Y/Z). The object will interpolate the rotation from when the objects starts moving and when it stops. +- The parameters below are for 0.3d R2 and older versions and should be ignored if you run the latest version of SA-MP. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md index e0aa65a82e3a..b3a54db82c6e 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md @@ -36,7 +36,8 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::warning -Order is CRITICAL! Ensure that you use TogglePlayerSpectating before PlayerSpectatePlayer. playerid and targetplayerid's virtual world and interior must be the same for this function to work properly. +- Order is CRITICAL! Ensure that you use TogglePlayerSpectating before PlayerSpectatePlayer. +- playerid and targetplayerid's virtual world and interior must be the same for this function to work properly. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md index 11dfc44ebe13..59ea424e54b2 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md @@ -32,7 +32,8 @@ PlayerSpectateVehicle(playerid, vehicleid); :::warning -Order is CRITICAL! Ensure that you use TogglePlayerSpectating before PlayerSpectateVehicle. The playerid and vehicleid have to be in the same interior and virtual world for this function to work properly. +- Order is CRITICAL! Ensure that you use TogglePlayerSpectating before PlayerSpectateVehicle. +- The playerid and vehicleid have to be in the same interior and virtual world for this function to work properly. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md index a3e0c4be805d..58c832942ea5 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md @@ -31,9 +31,13 @@ PlayerTextDrawTextSize(playerid, MyTextDraw, 2.0, 3.6); :::note -The x and y have different meanings with different PlayerTextDrawAlignment values: 1 (left): they are the right-most corner of the box, absolute coordinates. 2 (center): they need to inverted (switch the two) and the x value is the overall width of the box. 3 (right): the x and y are the coordinates of the left-most corner of the box - -Using font type 4 (sprite) and 5 (model preview) converts X and Y of this function from corner coordinates to WIDTH and HEIGHT (offsets). The TextDraw box starts 10.0 units up and 5.0 to the left as the origin (TextDrawCreate coordinate). This function defines the clickable area for use with PlayerTextDrawSetSelectable, whether a box is shown or not. +- The x and y have different meanings with different PlayerTextDrawAlignment values: + - 1 (left): they are the right-most corner of the box, absolute coordinates. + - 2 (center): they need to inverted (switch the two) and the x value is the overall width of the box. + - 3 (right): the x and y are the coordinates of the left-most corner of the box +- Using font type 4 (sprite) and 5 (model preview) converts X and Y of this function from corner coordinates to WIDTH and HEIGHT (offsets). +- The TextDraw box starts 10.0 units up and 5.0 to the left as the origin (TextDrawCreate coordinate). +- This function defines the clickable area for use with PlayerTextDrawSetSelectable, whether a box is shown or not. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md index 2a107688ea1f..7af71667786b 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md @@ -18,7 +18,7 @@ Removes a standard San Andreas model for a single player within a specified rang | Name | Description | | ------------- | --------------------------------------------------------------------------------- | | playerid | The ID of the player to remove the objects for. | -| modelid | The model to remove. | +| modelid | The [model](https://models.open.mp/?cat=objects) to remove. | | Float:fX | The X coordinate around which the objects will be removed. | | Float:fY | The Y coordinate around which the objects will be removed. | | Float:fZ | The Z coordinate around which the objects will be removed. | @@ -59,7 +59,8 @@ In SA-MP 0.3.7 you can use -1 for the modelid to remove all objects within the s :::warning -There appears to be a limit of around 1000 lines/objects. There is no workaround. When removing the same object for a player, they will crash. Commonly, players crash when reconnecting to the server because the server removes buildings on OnPlayerConnect. +- There appears to be a limit of around 1000 lines/objects. There is no workaround. +- When removing the same object for a player, they will crash. Commonly, players crash when reconnecting to the server because the server removes buildings on OnPlayerConnect. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md index 20e4b73a75cf..95ae839ecedf 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md @@ -15,12 +15,12 @@ This function was added in SA-MP 0.3.7 R1 and will not work in earlier versions! Hashes a password using the SHA-256 hashing algorithm. Includes a salt. The output is always 256 bits in length, or the equivalent of 64 Pawn cells. -| Name | Description | -| ------------ | -------------------------------------------------- | -| password[] | The password to hash. | -| salt[] | The salt to use in the hash. | -| ret_hash[] | The returned hash in uppercase hexadecimal digest. | -| ret_hash_len | The returned hash maximum length. | +| Name | Description | +| ------------ | --------------------------------------------------------------------------------- | +| password[] | The password to hash. | +| salt[] | The [salt](https://en.wikipedia.org/wiki/Salt_(cryptography)) to use in the hash. | +| ret_hash[] | The returned hash in uppercase hexadecimal digest. | +| ret_hash_len | The returned hash maximum length. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md index d4bc84d9f6e7..4c11e676d93c 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md @@ -39,13 +39,15 @@ public OnPlayerConnect(playerid) :::tip -You can use color embedding for multiple colors in the message. Using '-1' as the color will make the text white (for the simple reason that -1, when represented in hexadecimal notation, is 0xFFFFFFFF). +- You can use color embedding for multiple colors in the message. +- Using '-1' as the color will make the text white (for the simple reason that -1, when represented in hexadecimal notation, is 0xFFFFFFFF). ::: :::warning -If a message is longer than 144 characters, it will not be sent. Truncation can be used to prevent this. Displaying a message on multiple lines will also solve this issue. Avoid using the percent sign (or format specifiers) in the actual message text without properly escaping it (like %%). It will result in crashes otherwise. +- If a message is longer than 144 characters, it will not be sent. Truncation can be used to prevent this. Displaying a message on multiple lines will also solve this issue. +- Avoid using the percent sign (or format specifiers) in the actual message text without properly escaping it (like %%). It will result in crashes otherwise. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md index fc0b6543e88e..72ff7bf8e67c 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md @@ -15,7 +15,7 @@ Replace the texture of an object with the texture from another model in the game | materialindex | The material index on the object to change (0 to 15) | | modelid | The modelid on which the replacement texture is located. Use 0 for alpha. Use -1 to change the material color without altering the texture. | | txdname | The name of the txd file which contains the replacement texture (use "none" if not required) | -| texturename | The name of the texture to use as the replacement (use "none" if not required) | +| texturename | The name of the [texture](https://models.open.mp/?cat=textures) to use as the replacement (use "none" if not required) | | materialcolor | The object color to set, as an integer or hex in **ARGB** color format. Using **0** keeps the existing material color. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md index 7755a7a82c12..67d9f5c42bb1 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md @@ -32,7 +32,8 @@ SetPlayerCameraPos(playerid, 652.23, 457.21, 10.84); :::tip -You may also have to use SetPlayerCameraLookAt with this function in order to work properly. Use SetCameraBehindPlayer to reset the camera to behind the player. +- You may also have to use SetPlayerCameraLookAt with this function in order to work properly. +- Use SetCameraBehindPlayer to reset the camera to behind the player. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md index 5c63da12fd1e..abf34e194cdd 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md @@ -41,7 +41,8 @@ You can't see your own chatbubbles. The same applies to attached 3D text labels. :::tip -You can use color embedding for multiple colors in the message. Using '-1' as the color will make the text white (for the simple reason that -1, when represented in hexadecimal notation, is 0xFFFFFFFF). +- You can use color embedding for multiple colors in the message. +- Using '-1' as the color will make the text white (for the simple reason that -1, when represented in hexadecimal notation, is 0xFFFFFFFF). ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md index 933d23d3475b..bd8e4eacf687 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md @@ -44,7 +44,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -If a player's health is set to 0 or a minus value, they will die instantly. If a player's health is below 10 or above 98303, their health bar will flash. +- If a player's health is set to 0 or a minus value, they will die instantly. +- If a player's health is below 10 or above 98303, their health bar will flash. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerMapIcon.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerMapIcon.md index b9c67a995ea9..41c24f043f49 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerMapIcon.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerMapIcon.md @@ -41,13 +41,15 @@ public OnPlayerConnect(playerid) :::note -If you use an invalid marker type, it will create ID 1 (White Square). If you use an icon ID that is already in use, it will replace the current map icon using that ID. +- If you use an invalid marker type, it will create ID 1 (White Square). +- If you use an icon ID that is already in use, it will replace the current map icon using that ID. ::: :::warning -You can only have 100 map icons! Marker type 1 (![](https://assets.open.mp/assets/images/mapIcons/icon1.gif)), 2 (![](https://assets.open.mp/assets/images/mapIcons/icon2.gif)), 4 (![](https://assets.open.mp/assets/images/mapIcons/icon4.gif)), and 56 (![](https://assets.open.mp/assets/images/mapIcons/icon56.gif)) will cause your game to crash if you have map legends enabled while viewing the map. +- You can only have 100 map icons! +- Marker type 1 (![](https://assets.open.mp/assets/images/mapIcons/icon1.gif)), 2 (![](https://assets.open.mp/assets/images/mapIcons/icon2.gif)), 4 (![](https://assets.open.mp/assets/images/mapIcons/icon4.gif)), and 56 (![](https://assets.open.mp/assets/images/mapIcons/icon56.gif)) will cause your game to crash if you have map legends enabled while viewing the map. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md index 09618cb3c3e1..f9329081884e 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md @@ -16,7 +16,7 @@ Replace the texture of a player-object with the texture from another model in th | materialindex | The material index on the object to change (0 to 15) | | modelid | The modelid on which replacement texture is located. Use 0 for alpha. Use -1 to change the material color without altering the existing texture. | | txdname | The name of the txd file which contains the replacement texture (use "none" if not required) | -| texturename | The name of the texture to use as the replacement (use "none" if not required) | +| texturename | The name of the [texture](https://models.open.mp/?cat=textures) to use as the replacement (use "none" if not required) | | materialcolor | The object color to set, as an integer or hex in **ARGB format**. Using **0** keeps the existing material color. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPosFindZ.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPosFindZ.md index a3dee395e481..ea87df4b8025 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPosFindZ.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPosFindZ.md @@ -32,7 +32,7 @@ SetPlayerPosFindZ(playerid, 1234.5, 1234.5, 1000.0); :::warning -This function does not work if the new coordinates are far away from where the player currently is. The Z height will be 0, which will likely put them underground. It is highly recommended that the MapAndreas plugin be used instead. +This function does not work if the new coordinates are far away from where the player currently is. The Z height will be 0, which will likely put them underground. It is highly recommended that the [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) plugin be used instead. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md index 3039c1854c11..3a9707d0bdec 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md @@ -36,7 +36,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -If TogglePlayerClock is enabled, weather will slowly change over time, instead of changing instantly. There are only valid 21 weather IDs in the game (0 - 20), however the game does not have any form of range check. +- If TogglePlayerClock is enabled, weather will slowly change over time, instead of changing instantly. +- There are only valid 21 weather IDs in the game (0 - 20), however the game does not have any form of range check. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md index ba5d3c883c0b..3f974c0302b6 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md @@ -31,7 +31,7 @@ SetVehicleNumberPlate(vehicleid, "ABCD 123"); :::note -- This function has no internal error checking. +- This function has no internal error checking. Do not assign custom number plates to vehicles without plates (boats, planes, etc) as this will result in some unneeded processing time on the client. - The vehicle must be re-spawned or re-streamed for the changes to take effect. - There's a limit of 32 characters on each number plate (including embedded colors). - The text length that can be seen on the number plate is around 9 to 10 characters, more characters will cause the text to split. @@ -41,8 +41,7 @@ SetVehicleNumberPlate(vehicleid, "ABCD 123"); :::tip -- Do not assign custom number plates to vehicles without plates (boats, planes, etc) as this will result in some unneeded processing time on the client. -- You can use color embedding on the number plate text. +You can use color embedding on the number plate text. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsEx.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsEx.md index 5716891b2876..8b027915fe01 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsEx.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsEx.md @@ -64,7 +64,8 @@ public DisableVehicleAlarm(vehicleid) :::note -The alarm will not reset when finished, you'll need to reset it by yourself with this function. Lights also operate during the day (Only when ManualVehicleEngineAndLights is enabled). +- The alarm will not reset when finished, you'll need to reset it by yourself with this function. +- Lights also operate during the day (only when ManualVehicleEngineAndLights is enabled). ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md index 16a22c29c4d7..d121ce79e965 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md @@ -31,7 +31,8 @@ if (!strcmp(cmdtext, "/sandstorm", true)) :::note -If TogglePlayerClock is enabled, weather will slowly change over time, instead of changing instantly. There are only valid 21 weather IDs in the game (0 - 20), however the game does not have any form of range check. +- If TogglePlayerClock is enabled, weather will slowly change over time, instead of changing instantly. +- There are only valid 21 weather IDs in the game (0 - 20), however the game does not have any form of range check. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ShowNameTags.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ShowNameTags.md index a7e879f522bc..7c868bbfe3f0 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ShowNameTags.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ShowNameTags.md @@ -32,7 +32,7 @@ public OnGameModeInit() :::warning -This function can only be used in OnGameModeInit. For other times, see ShowPlayerNameTagForPlayer. +This function can only be used in [OnGameModeInit](../callbacks/OnGameModeInit). For other times, see ShowPlayerNameTagForPlayer. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md index b76639a6f281..015709bdb25d 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md @@ -7,7 +7,7 @@ tags: ["player"] ## คำอธิบาย -Toggles player markers (blips on the radar). Must be used when the server starts (OnGameModeInit). For other times, see SetPlayerMarkerForPlayer. +Toggles player markers (blips on the radar). Must be used when the server starts ([OnGameModeInit](../callbacks/OnGameModeInit)). For other times, see SetPlayerMarkerForPlayer. | Name | Description | | ---- | ------------------------------------------------------------------------------------------------------------------------------------- | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerNameTagForPlayer.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerNameTagForPlayer.md index 1d8128803cdc..03342aeb4f52 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerNameTagForPlayer.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerNameTagForPlayer.md @@ -37,7 +37,7 @@ if (strcmp("/nameoff", cmdtext, true) == 0) :::warning -ShowNameTags must be set to 1 to be able to show name tags with ShowPlayerNameTagForPlayer, that means that in order to be effective you need to ShowPlayerNameTagForPlayer(forplayerid, playerid, 0) ahead of time(OnPlayerStreamIn is a good spot). +ShowNameTags must be set to 1 to be able to show name tags with ShowPlayerNameTagForPlayer, that means that in order to be effective you need to `ShowPlayerNameTagForPlayer(forplayerid, playerid, 0)` ahead of time (OnPlayerStreamIn is a good spot). ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetProportional.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetProportional.md index b7b437b8a685..93ff9f9f5994 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetProportional.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetProportional.md @@ -35,7 +35,8 @@ public OnGameModeInit() :::tip -Proportionality is set to 1 by default, you might skip this function if you don't want to disable it. If you want to change the proportionality of a textdraw that is already shown, you don't have to recreate it. Simply use TextDrawShowForPlayer/TextDrawShowForAll after modifying the textdraw and the change will be visible. +- Proportionality is set to 1 by default, you might skip this function if you don't want to disable it. +- If you want to change the proportionality of a textdraw that is already shown, you don't have to recreate it. Simply use TextDrawShowForPlayer/TextDrawShowForAll after modifying the textdraw and the change will be visible. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md index c5337c0d9297..88535fde857d 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md @@ -36,7 +36,10 @@ public OnGameModeInit() :::note -- The x and y have different meanings with different TextDrawAlignment values: 1 (left): they are the right-most corner of the box, absolute coordinates. 2 (center): they need to inverted (switch the two) and the x value is the overall width of the box. 3 (right): the x and y are the coordinates of the left-most corner of the box +- The x and y have different meanings with different TextDrawAlignment values: + - 1 (left): they are the right-most corner of the box, absolute coordinates. + - 2 (center): they need to inverted (switch the two) and the x value is the overall width of the box. + - 3 (right): the x and y are the coordinates of the left-most corner of the box - Using font type 4 (sprite) and 5 (model preview) converts X and Y of this function from corner coordinates to WIDTH and HEIGHT (offsets). - The TextDraw box starts 10.0 units up and 5.0 to the left as the origin (TextDrawCreate coordinate). - This function defines the clickable area for use with TextDrawSetSelectable, whether a box is shown or not. diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/atan.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/atan.md index a99e6d5a1a22..c111a87fdd8e 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/atan.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/atan.md @@ -7,7 +7,7 @@ tags: ["math"] ## คำอธิบาย -Get the inversed value of a tangent in degrees. In trigonometrics, arc tangent is the inverse operation of tangent. Notice that because of the sign ambiguity, the function cannot determine with certainty in which quadrant the angle falls only by its tangent value. See [atan2](atan2) for an alternative that takes a fractional argument instead. +Get the inversed value of a [tangent](https://en.wikipedia.org/wiki/Trigonometric_functions) in degrees. In trigonometrics, arc tangent is the inverse operation of tangent. Notice that because of the sign ambiguity, the function cannot determine with certainty in which quadrant the angle falls only by its tangent value. See [atan2](atan2) for an alternative that takes a fractional argument instead. | Name | Description | | ----------- | ------------------------------------ | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field.md index 05aa50ba3b75..2747ca3a7afc 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field.md @@ -7,7 +7,7 @@ tags: ["sqlite"] ## คำอธิบาย -Get the content of a field from db_query +Get the content of a field from db_query. | Name | Description | | ----------------- | -------------------------------- | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_float.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_float.md index 8b921bc476fa..c18b289aeaaa 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_float.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_float.md @@ -7,7 +7,7 @@ tags: ["sqlite"] ## คำอธิบาย -Get the content of a field as a float from db_query +Get the content of a field as a float from db_query. | Name | Description | | ----------------- | -------------------------------- | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_int.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_int.md index 6c8aeaf50255..1804662fa742 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_int.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_int.md @@ -7,7 +7,7 @@ tags: ["sqlite"] ## คำอธิบาย -Get the content of a field as an integer from db_query +Get the content of a field as an integer from db_query. | Name | Description | | ----------------- | -------------------------------- | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_num_rows.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_num_rows.md index b328bb75e60a..745ab6c91070 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_num_rows.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_num_rows.md @@ -7,7 +7,7 @@ tags: ["sqlite"] ## คำอธิบาย -Returns the number of rows from a db_query +Returns the number of rows from a db_query. | Name | Description | | ----------------- | ---------------------- | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md index 209ec33da32f..0bbc7e96e902 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md @@ -9,11 +9,11 @@ tags: [] Delete an earlier set property (setproperty). -| Name | Description | -| ------ | ------------------------------------------------------------------------------ | -| id | The virtual machine to use. You should keep this as zero. | -| name[] | The property's name, you should keep this blank (""). | -| value | The property's unique ID. Use the hash-function to calculate it from a string. | +| Name | Description | +| ------ | ---------------------------------------------------------------------------------------------------------- | +| id | The [virtual machine](https://en.wikipedia.org/wiki/Virtual_machine) to use. You should keep this as zero. | +| name[] | The property's name, you should keep this blank (""). | +| value | The property's unique ID. Use the hash-function to calculate it from a string. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md index def76750adfe..b5144d343858 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md @@ -9,11 +9,11 @@ tags: [] Check if a property exist. -| Name | Description | -| ------ | ------------------------------------------------------------------------------ | -| id | The virtual machine to use, you should keep this zero. | -| name[] | The property's name, you should keep this "". | -| value | The property's unique ID. Use the hash-function to calculate it from a string. | +| Name | Description | +| ------ | ------------------------------------------------------------------------------------------------------- | +| id | The [virtual machine](https://en.wikipedia.org/wiki/Virtual_machine) to use, you should keep this zero. | +| name[] | The property's name, you should keep this "". | +| value | The property's unique ID. Use the hash-function to calculate it from a string. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md index a53b6cbb4765..53cd97b570f8 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md @@ -7,7 +7,7 @@ tags: [] ## คำอธิบาย -This function returns the absolute value of float. +This function returns the [absolute value](https://en.wikipedia.org/wiki/Absolute_value) of float. | Name | Description | | ----------- | --------------------------------------------- | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md index 5ad348efeb3d..690293a565fe 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md @@ -7,7 +7,7 @@ tags: [] ## คำอธิบาย -Get the cosine from a given angle. The input angle may be in radians, degrees or grades. +Get the [cosine](https://en.wikipedia.org/wiki/Sine_and_cosine) from a given angle. The input angle may be in radians, degrees or grades. | Name | Description | | ----------- | ------------------------------------------------------ | @@ -33,7 +33,8 @@ public OnGameModeInit() :::warning -GTA/SA-MP use **degrees** for angles in most circumstances, for example GetPlayerFacingAngle. Therefore, it is most likely you'll want to use the '**degrees**' angle mode, _not_ radians. Also note that angles in GTA are counterclockwise; 270° is East and 90° is West. South is still 180° and North still 0°/360°. +- GTA/SA-MP use **degrees** for angles in most circumstances, for example GetPlayerFacingAngle. Therefore, it is most likely you'll want to use the '**degrees**' angle mode, _not_ radians. +- Also note that angles in GTA are counterclockwise; 270° is East and 90° is West. South is still 180° and North still 0°/360°. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md index d378e519544d..5bfdda94821b 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md @@ -7,7 +7,7 @@ tags: [] ## คำอธิบาย -This function allows you to get the logarithm of a float value. +This function allows you to get the [logarithm](https://en.wikipedia.org/wiki/Logarithm) of a float value. | Name | Description | | ----------- | ---------------------------------------- | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md index 9767144342b8..cc980ee6f72f 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md @@ -7,7 +7,7 @@ tags: [] ## คำอธิบาย -Get the sine from a given angle. The input angle may be in radians, degrees or grades. +Get the [sine](https://en.wikipedia.org/wiki/Sine_and_cosine) from a given angle. The input angle may be in radians, degrees or grades. | Name | Description | | ----------- | ------------------------------------------------------ | @@ -41,7 +41,8 @@ GetPosInFrontOfPlayer(playerid, Float:distance, &Float:x, &Float:y, &Float:z) :::warning -GTA/SA-MP use **degrees** for angles in most circumstances, for example GetPlayerFacingAngle. Therefore, it is most likely you'll want to use the '**degrees**' angle mode, _not_ radians. Also note that angles in GTA are counterclockwise; 270° is East and 90° is West. South is still 180° and North still 0°/360°. +- GTA/SA-MP use **degrees** for angles in most circumstances, for example GetPlayerFacingAngle. Therefore, it is most likely you'll want to use the '**degrees**' angle mode, _not_ radians. +- Also note that angles in GTA are counterclockwise; 270° is East and 90° is West. South is still 180° and North still 0°/360°. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md index 6d26bfa80855..9a1e6bec27df 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md @@ -7,7 +7,7 @@ tags: [] ## คำอธิบาย -Calculates the square root of given value. +Calculates the [square root](https://en.wikipedia.org/wiki/Square_root) of given value. | Name | Description | | ----- | ------------------------------------------ | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md index 97ad7f34ccdf..24adaaa24bff 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md @@ -7,7 +7,7 @@ tags: [] ## คำอธิบาย -Get the tangent from a given angle. The input angle may be in radians, degrees or grades. +Get the [tangent](https://en.wikipedia.org/wiki/Trigonometric_functions) from a given angle. The input angle may be in radians, degrees or grades. | Name | Description | | ----------- | ------------------------------------------------------ | @@ -33,7 +33,8 @@ public OnGameModeInit() :::warning -GTA/SA-MP use **degrees** for angles in most circumstances, for example GetPlayerFacingAngle. Therefore, it is most likely you'll want to use the '**degrees**' angle mode, _not_ radians. Also note that angles in GTA are counterclockwise; 270° is East and 90° is West. South is still 180° and North still 0°/360°. +- GTA/SA-MP use **degrees** for angles in most circumstances, for example GetPlayerFacingAngle. Therefore, it is most likely you'll want to use the '**degrees**' angle mode, _not_ radians. +- Also note that angles in GTA are counterclockwise; 270° is East and 90° is West. South is still 180° and North still 0°/360°. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md index 5c88dfe966a6..a5c0ccbb914b 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md @@ -99,7 +99,7 @@ else :::note -This functions writes to the file in UTF-8, which does not support some localized language symbols. +This functions writes to the file in [UTF-8](https://en.wikipedia.org/wiki/UTF-8), which does not support some localized language symbols. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md index 6dfded4177bb..3de32baf3f48 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md @@ -9,12 +9,12 @@ tags: [] Get a specific property from the memory, the string is returned as a packed string! -| Name | Description | -| -------- | ------------------------------------------------------------------------------ | -| id | The virtual machine to use, you should keep this zero. | -| name[] | The property's name, you should keep this "". | -| value | The property's unique ID, Use the hash-function to calculate it from a string. | -| string[] | The variable to store the result in, passed by reference. | +| Name | Description | +| -------- | ------------------------------------------------------------------------------------------------------- | +| id | The [virtual machine](https://en.wikipedia.org/wiki/Virtual_machine) to use, you should keep this zero. | +| name[] | The property's name, you should keep this "". | +| value | The property's unique ID, Use the hash-function to calculate it from a string. | +| string[] | The variable to store the result in, passed by reference. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/gettime.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/gettime.md index 5ff25321800b..57fd83c20499 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/gettime.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/gettime.md @@ -17,7 +17,7 @@ Get the current server time, which will be stored in the variables &hour, &minut ## ส่งคืน -The function itself returns a Unix Timestamp. +The function itself returns a [Unix Timestamp](https://en.wikipedia.org/wiki/Unix_time). ## ตัวอย่าง diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/random.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/random.md index 96ccdd1ef699..034b0b431389 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/random.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/random.md @@ -7,7 +7,7 @@ tags: [] ## คำอธิบาย -Get a pseudo-random number. +Get a [pseudo-random number](https://en.wikipedia.org/wiki/Pseudorandom_number_generator). | Name | Description | | ---- | -------------------------------------------------------------------------- | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md index 428dd3a478ac..2e354ead66c8 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md @@ -11,7 +11,7 @@ Add a new property or change an existing property. | Name | Description | | -------- | ------------------------------------------------------------------------------------------------------------------------------------ | -| id | The virtual machine to use, you should keep this zero. | +| id | The [virtual machine](https://en.wikipedia.org/wiki/Virtual_machine) to use, you should keep this zero. | | name[] | Used in combination with _value_ when storing integers; don't use this if you want to store a string. | | value | The integer value to store **or** the property's unique ID if storing a string. Use the hash-function to calculate it from a string. | | string[] | The value of the property, as a string. Don't use this if you want to store an integer. | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md index 22dcdf7bf2ab..d3cf8abe426e 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md @@ -7,7 +7,7 @@ tags: [] ## คำอธิบาย -This function concatenates (joins together) two strings into the destination string. +This function [concatenates](https://en.wikipedia.org/wiki/Concatenation) (joins together) two strings into the destination string. | Name | Description | | --------------------- | ---------------------------------------------------- | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md index 49aa9bdab106..954dc15325a3 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/strcmp.md @@ -7,7 +7,7 @@ tags: [] ## คำอธิบาย -Compares two strings to see if they are the same. +**C**o**mp**ares two **str**ings to see if they are the same. | Name | Description | | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | @@ -18,7 +18,11 @@ Compares two strings to see if they are the same. ## ส่งคืน -**0** if strings match each other on given length;**1** o r **-1** if some character do not match: string1[i] - string2[i] ('i' represents character index starting from 0);**difference in number of characters** if one string matches only part of another string. +**0** if strings match each other on given length; + +**1** o r **-1** if some character do not match: string1[i] - string2[i] ('i' represents character index starting from 0); + +**difference in number of characters** if one string matches only part of another string. ## ตัวอย่าง diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md index 085b4ae4d526..ca1e4ac732e0 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md @@ -24,9 +24,3 @@ A list of possible camera modes to be used with [GetPlayerCameraMode](../functio | 53 | CAM_MODE_AIMWEAPON | Aiming any other weapon | | 55 | CAM_MODE_AIMWEAPON_FROMCAR | Vehicle passenger aiming camera (drive by as a player) | | 56 | CAM_MODE_DW_HELI_CHASE | Chase camera: helicopter/bird view | -| 57 | - | Chase camera: ground camera, zooms in quite quickly and pan to the vehicle | -| 58 | - | Chase camera: horizontal flyby past vehicle | -| 59 | - | Chase camera (for air vehicles only): ground camera, looking up to the air vehicle | -| 62 | - | Chase camera (for air vehicles only): vertical flyby past air vehicle | -| 63 | - | Chase camera (for air vehicles only): horizontal flyby past air vehicle (similar to 58 and 62) | -| 64 | - | Chase camera (for air vehicles only): camera focused on pilot, similar to pressing LOOK_BEHIND key on foot, but in air vehicle | diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md index 75213b660451..0819f452d720 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md @@ -6,7 +6,7 @@ description: SA-MP istemci yapılandırma dosyası. ## Açıklama -`sa-mp.cfg`, SA-MP ile ilgili ayarları değiştirmenize olanak tanıyan bir istemci yapılandırma dosyasıdır. Bu dosya, 'Belgelerim\\GTA San Andreas User Files\\SAMP' klasöründe, Windows kullanıcı hesabınızın altında bulunur. Bu dosyayı notepad gibi bir metin düzenleyici ile düzenleyebilirsiniz. +sa-mp.cfg, SA-MP ile ilgili ayarları değiştirmenize olanak tanıyan bir istemci yapılandırma dosyasıdır. Bu dosya, `Belgelerim\GTA San Andreas User Files\SAMP` klasöründe, Windows kullanıcı hesabınızın altında bulunur. Bu dosyayı notepad gibi bir metin düzenleyici ile düzenleyebilirsiniz. ## Seçenekler diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md index 5b06ecad6beb..9aee4be8a4b9 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md @@ -44,9 +44,8 @@ public OnClientCheckResponse(playerid, actionid, memaddr, retndata) :::warning -**SA:MP Sunucusu**: Bu geri çağırma yalnızca bir filterscript içindeyken çağrılır. - -**Open Multiplayer Sunucusu**: Bu geri çağırma bir oyun modu / filterscript içinde normal şekilde çalışır. +- **SA-MP sunucusu**: Bu geri çağırma yalnızca bir filterscript içindeyken çağrılır. +- **open.mp sunucusu**: Bu geri çağırma bir oyun modu / filterscript içinde normal şekilde çalışır. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md index 241f96de1db0..ae092c7c0787 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md @@ -29,7 +29,7 @@ public OnGameModeExit() :::tip -- Bu geri çağırma aynı zamanda filterscript içinde changemode veya gmx gibi RCON komutlarıyla yapılan oyun modu değişimini algılamak için kullanılabilir. +- Bu geri çağırma aynı zamanda filterscript içinde changemode veya gmx gibi [RCON komutlarıyla](../../server/ControllingServer#rcon-komutları) yapılan oyun modu değişimini algılamak için kullanılabilir. - OnGameModeExit 'rcon gmx' konsol komutu ile tetiklendiğinde potansiyel istemci hataları oluşabileceğini unutmayın. Örneğin oyun modunda kullanılan RemoveBuildingForPlayer aşırılığı istemcinin hatalı sonlanmasına neden olabilir. - Eğer istemci hatalı sonlanırsa bu geri çağırma tetiklenmez, Linux kill komutu işlemlerinde olduğu gibi. diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md index fc0a7a9c1cb5..b9d17df79eb3 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md @@ -29,7 +29,7 @@ public OnGameModeInit() :::tip -Bu geri çağırma ayrıca bir filterscript içinde eğer oyun modu changemode veya gmx gibi komutlarla değiştirilirse oyun modu değişim kontrolünün yapılması için kullanılabilir.(filterscript yeniden yüklenmez) +Bu geri çağırma ayrıca bir filterscript içinde eğer oyun modu changemode veya gmx gibi [komutlarla](../../server/ControllingServer#rcon-komutları) değiştirilirse oyun modu değişim kontrolünün yapılması için kullanılabilir.(filterscript yeniden yüklenmez) ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md index bf3231d2e6e1..fc176cdee16c 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md @@ -7,7 +7,7 @@ tags: [] ## Açıklama -Bu geri çağırma bir IP adresi sunucuya erişim sağlamaya çalıştığında tetiklenir. BlockIpAddress kullanarak gelen bağlantıları engelleyebilirsiniz. +Bu geri çağırma bir IP adresi sunucuya erişim sağlamaya çalıştığında tetiklenir. [BlockIpAddress](../functions/BlockIpAddress) kullanarak gelen bağlantıları engelleyebilirsiniz. | Parametre | Açıklama | | ------------ | --------------------------------------------- | diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md index 3419708fb848..71c33f0ac16e 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md @@ -38,7 +38,8 @@ public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) :::note -Bu geri çağırma sadece haritada bir yer işaretlemek için tıkladığında çağrılır, tuşa basarak işaretlediğinde çağrılmaz. Eğer oyuncu işaretlediği yerden uzaksa Z koordinatı 0 (geçersiz) olarak döndürülür, bunu çözmek için ColAndreas veya MapAndreas pluginini kullanın. +- Bu geri çağırma sadece haritada bir yer işaretlemek için tıkladığında çağrılır, tuşa basarak işaretlediğinde çağrılmaz. +- Eğer oyuncu işaretlediği yerden uzaksa Z koordinatı 0 (geçersiz) olarak döndürülür, bunu çözmek için [ColAndreas](https://github.com/Pottus/ColAndreas) veya [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) pluginini kullanın. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md index 9b16f8838165..a70ddf76043f 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayerTextDraw.md @@ -7,7 +7,7 @@ tags: ["player", "textdraw", "playertextdraw"] ## Açıklama -Bu geri çağırma, bir oyuncu bir player-textdrawa tıkladığı zaman çağırılır. Oyuncu seçim modunu ESC ile iptal ettiğinde çağırılmaz ancak OnPlayerClickTextDraw'da çağırılır. +Bu geri çağırma, bir oyuncu bir player-textdrawa tıkladığı zaman çağırılır. Oyuncu seçim modunu ESC ile iptal ettiğinde çağırılmaz ancak [OnPlayerClickTextDraw](OnPlayerClickTextDraw)'da çağırılır. | Parametre | Açıklama | | ------------ | ----------------------------------- | @@ -69,7 +69,7 @@ public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) :::warning -Bir oyuncu textdraw seçimini ESC'ye basarak iptal ettiğinde 'INVALID_TEXT_DRAW' ID'si ile OnPlayerClickTextDraw çağırılır. OnPlayerClickPlayerTextDraw çağırılmaz. +Bir oyuncu textdraw seçimini ESC'ye basarak iptal ettiğinde 'INVALID_TEXT_DRAW' ID'si ile [OnPlayerClickTextDraw](OnPlayerClickTextDraw) çağırılır. OnPlayerClickPlayerTextDraw çağırılmaz. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md index 4033288fa2a3..0004eb56cdf3 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickTextDraw.md @@ -64,7 +64,8 @@ public OnPlayerClickTextDraw(playerid, Text:clickedid) :::warning -Tıklanılabilir bölge TextDrawTextSize tarafından belirlenir. X ve Y parametreleri sıfır ya da negatif bir değer olmamalıdır. Bu geri çağırmada CancelSelectTextDraw koşulsuz olarak kullanmayın, bu sonsuz bir döngü ile sonuçlanır. +- Tıklanılabilir bölge TextDrawTextSize tarafından belirlenir. X ve Y parametreleri sıfır ya da negatif bir değer olmamalıdır. +- Bu geri çağırmada [CancelSelectTextDraw](../functions/CancelSelectTextDraw) koşulsuz olarak kullanmayın, bu sonsuz bir döngü ile sonuçlanır. ::: 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 15baeb7f169a..902e69180ebf 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 @@ -37,7 +37,8 @@ public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) :::note -Bu geri çağırma oyuncu araca binmeye **BAŞLADIĞINDA** çağırılır, oyuncu ARACA BİNDİĞİNDE çağırılmaz. Araca bindiğinde çağırılması için OnPlayerStateChange geri çağırmasını inceleyin. Araç kilitli veya dolu olsa bile oyuncu araca binmeye çalıştığında çağırılacaktır. +- Bu geri çağırma oyuncu araca binmeye **BAŞLADIĞINDA** çağırılır, oyuncu ARACA BİNDİĞİNDE çağırılmaz. Araca bindiğinde çağırılması için [OnPlayerStateChange](OnPlayerStateChange) geri çağırmasını inceleyin. +- Araç kilitli veya dolu olsa bile oyuncu araca binmeye çalıştığında çağırılacaktır. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md index 99a6562a63aa..3675a439cc94 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md @@ -34,7 +34,8 @@ public OnPlayerExitVehicle(playerid, vehicleid) :::warning -Bu geri çağırma, oyuncu motordan düştüğünde veya SetPlayerPos gibi fonksiyonlar kullanılarak araçtan başka bir şekilde çıkartıldığında çağırılmaz. Bunu sağlamak için OnPlayerStateChange'de eski durumlarının PLAYER_STATE_DRIVER veya PLAYER_STATE_PASSENGER ve yeni durumlarının PLAYER_STATE_ONFOOT olup olmadığına bakmalısınız. +- Bu geri çağırma, oyuncu motordan düştüğünde veya SetPlayerPos gibi fonksiyonlar kullanılarak araçtan başka bir şekilde çıkartıldığında çağırılmaz. +- Bunu sağlamak için [OnPlayerStateChange](OnPlayerStateChange)'de eski durumlarının PLAYER_STATE_DRIVER veya PLAYER_STATE_PASSENGER ve yeni durumlarının PLAYER_STATE_ONFOOT olup olmadığına bakmalısınız. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md index 0bd37030d582..0d1af122a9e0 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md @@ -9,10 +9,10 @@ tags: ["player"] Fonksiyon, bir oyuncu sınıf seçiminde sınıfını değiştirdiğinde (ve sınıf seçimi ilk göründüğünde) çağrılır. -| Parametre | Açıklama | -| --------- | -------------------------------------------------------------------------- | -| playerid | Sınıfını değiştiren oyuncunun ID'si. | -| classid | Görüntülenmekte olan sınıfın ID'si (AddPlayerClass tarafından döndürülür). | +| Parametre | Açıklama | +| --------- | --------------------------------------------------------------------------------------------------------- | +| playerid | Sınıfını değiştiren oyuncunun ID'si. | +| classid | Görüntülenmekte olan sınıfın ID'si ([AddPlayerClass](../functions/AddPlayerClass) tarafından döndürülür). | ## Çalışınca Vereceği Sonuçlar diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md index 7cfd5c7a628e..146e2ef53c33 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md @@ -37,7 +37,7 @@ public OnPlayerRequestSpawn(playerid) :::tip -Oyuncuların belirli sınıflarla ortaya çıkmasını önlemek için son görüntülenen sınıf, OnPlayerRequestClass içinde bir değişkene kaydedilmelidir. +Oyuncuların belirli sınıflarla ortaya çıkmasını önlemek için son görüntülenen sınıf, [OnPlayerRequestClass](OnPlayerRequestClass) içinde bir değişkene kaydedilmelidir. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md index c2df0ba822fc..5060d19178b0 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md @@ -7,7 +7,7 @@ tags: ["player"] ## Açıklama -Bu fonksiyon, bir oyuncu durumunu değiştirdiğinde çağrılır. Örneğin, bir oyuncu bir aracın sürücüsündeyken yaya olarak değiştğinde çağrılır. +Bu fonksiyon, bir oyuncu [durumunu](../resources/playerstates) değiştirdiğinde çağrılır. Örneğin, bir oyuncu bir aracın sürücüsündeyken yaya olarak değiştğinde çağrılır. | Parametre | Açıklama | | --------- | ------------------------------------ | @@ -15,8 +15,6 @@ Bu fonksiyon, bir oyuncu durumunu değiştirdiğinde çağrılır. Örneğin, bi | newstate | Oyuncunun yeni durumu. | | oldstate | Oyuncunun önceki durumu. | -Mevcut tüm oyuncu durumlarının listesi için [Oyuncu Durumları](../resources/playerstates)'na bakın. - ## Çalışınca Vereceği Sonuçlar Filtercsript komutlarında her zaman ilk olarak çağrılır. diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md index f9f9ea9bbcf7..761c6c819268 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md @@ -43,10 +43,10 @@ public OnPlayerWeaponShot(playerid, WEAPON:weaponid, BULLET_HIT_TYPE:hittype, hi :::note -Bu fonksiyon, yalnızca gecikme telafisi **etkinleştirildiğinde** çağrılır. **İsabet türü** eğer: - -- `BULLET_HIT_TYPE_NONE` ise : **fX**, **fY** ve **fZ** parametreleri normal koordinatlardır, eğer hiçbir şey vurulmadıysa koordinatlar için 0.0 döner. (örneğin, merminin ulaşamadığı uzak nesne) -- Diğerleri ise : **fX**, **fY** ve **fZ**, **hitid**'ye göre ofsetlerdir. +- Bu fonksiyon, yalnızca [gecikme telafisi](../../server/LagCompensation) **etkinleştirildiğinde** çağrılır. +- **İsabet türü** eğer: + - `BULLET_HIT_TYPE_NONE` ise : **fX**, **fY** ve **fZ** parametreleri normal koordinatlardır, eğer hiçbir şey vurulmadıysa koordinatlar için 0.0 döner. (örneğin, merminin ulaşamadığı uzak nesne) + - Diğerleri ise : **fX**, **fY** ve **fZ**, **hitid**'ye göre ofsetlerdir. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md index 90b15de4f087..b49c306cddb2 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md @@ -47,7 +47,7 @@ public OnRconCommand(cmd[]) - Bir oyuncu bir komut yazdığında "/rcon" "cmd" ye dahil edilmez. - Burada "print" işlevini kullanırsanız, hem oyun içinde komutu yazan oyuncuya hem de günlüğe bir mesaj gönderir. - Bu fonksiyon, oyuncu RCON yöneticisi olarak oturum açmadığında çağrılmaz. -- Oyuncu RCON yöneticisi olarak oturum açmadığında ve `/rcon login` kullandığında, bu fonksiyon çağrılmaz ve onun yerine OnRconLoginAttempt çağrılır. Ancak, oyuncu RCON yöneticisi olarak oturum açtığında, bu komutun kullanılması bu fonksiyonu çağıracaktır. +- Oyuncu RCON yöneticisi olarak oturum açmadığında ve `/rcon login` kullandığında, bu fonksiyon çağrılmaz ve onun yerine [OnRconLoginAttempt](OnRconLoginAttempt) çağrılır. Ancak, oyuncu RCON yöneticisi olarak oturum açtığında, bu komutun kullanılması bu fonksiyonu çağıracaktır. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md index a040ef4d5f45..b95f0df87111 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md @@ -47,7 +47,7 @@ public OnRconLoginAttempt(ip[], password[], success) :::note - Bu fonksiyon yalnızca `/rcon login` komutu oyun içinde kullanıldığında çağrılır. -- Fonksiyon, yalnızca oyuncu henüz oturum açmamışsa çağrılır. Oyuncu oturum açtığında, bunun yerine OnRconCommand çağrılır. +- Fonksiyon, yalnızca oyuncu henüz oturum açmamışsa çağrılır. Oyuncu oturum açtığında, bunun yerine [OnRconCommand](OnRconCommand) çağrılır. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md index 1c7517ea1454..66abf35cf36c 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md @@ -45,7 +45,8 @@ public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_ :::warning -Bu fonksiyon, kullanılmayan araç başına saniyede çok sık çağrılır. Çağırdığınızda yoğun hesaplamalar veya yoğun dosya yazma / okuma işlemleri yapmaktan kaçınmalısınız. GetVehiclePos, araç değerleri güncellenmeden önce aracın eski koordinatlarını döndürecektir. +- Bu fonksiyon, kullanılmayan araç başına saniyede çok sık çağrılır. Çağırdığınızda yoğun hesaplamalar veya yoğun dosya yazma / okuma işlemleri yapmaktan kaçınmalısınız. +- GetVehiclePos, araç değerleri güncellenmeden önce aracın eski koordinatlarını döndürecektir. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md index 0982ec323d3f..a9ef93cc900f 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md @@ -39,7 +39,7 @@ public OnVehicleMod(playerid, vehicleid, componentid) :::note -Bu fonksiyon AddVehicleComponent tarafından ÇAĞRILMAZ. +Bu fonksiyon [AddVehicleComponent](../functions/AddVehicleComponent) tarafından ÇAĞRILMAZ. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md index 3df89cd21ea9..b654b33f4879 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md @@ -35,7 +35,8 @@ public OnVehiclePaintjob(playerid, vehicleid, paintjobid) :::note -Bu fonksiyon ChangeVehiclePaintjob tarafından çağrılmaz. Oyuncunun kaplamayı ne zaman **satın aldığını** kontrol etmek için vSync'nin OnVehicleChangePaintjob'ını kullanabilirsiniz. +- Bu fonksiyon [ChangeVehiclePaintjob](../functions/ChangeVehiclePaintjob) tarafından çağrılmaz. +- Oyuncunun kaplamayı ne zaman **satın aldığını** kontrol etmek için [vSync](https://github.com/Vasily-X/vSync)'nin OnVehicleChangePaintjob'ını kullanabilirsiniz. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md index 1362a5e669ba..bc7bb11dca0c 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md @@ -36,7 +36,8 @@ public OnVehicleRespray(playerid, vehicleid, color1, color2) :::note -Bu geri çağırma ChangeVehicleColor tarafından çağrılamaz. Pay 'n' Spray için kullanılamaz, sadece mod mağazaları için kullanılabilir. +- Bu geri çağırma [ChangeVehicleColor](../functions/ChangeVehicleColor) tarafından çağrılamaz. +- Pay 'n' Spray için kullanılamaz, sadece mod mağazaları için kullanılabilir. Buradan düzeltilebilir: https://pastebin.com/G81da7N1 diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md index 2d25c8949253..de8feb14caf6 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md @@ -13,7 +13,7 @@ Bu geri çağırma **sadece** araç **re**spawn edildiğinde çağrılır! Creat ## Açıklama -Bu geri çağırma bir araç respawn edildiğinde çağrılır. +Bu geri çağırma bir araç **re**spawn edildiğinde çağrılır. | Parametre | Açıklama | | --------- | ------------------------ | diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md index 3da189f756ba..eccc4965c189 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddCharModel.md @@ -49,7 +49,7 @@ Bunun işe yaraması için kullanılabilir resmin öncelikle sunucu ayarlarında :::warning -Şu anda bu fonksiyonu ne zaman arayabileceğiniz konusunda herhangi bir kısıtlama yoktur, ancak OnFilterScriptInit/OnGameModeInit içinde aramamanız durumunda, halihazırda sunucuda bulunan bazı oyuncuların modelleri indirmemiş olma riskini çalıştırdığınızı unutmayın. +Şu anda bu fonksiyonu ne zaman arayabileceğiniz konusunda herhangi bir kısıtlama yoktur, ancak [OnFilterScriptInit](../callbacks/OnFilterScriptInit)/[OnGameModeInit](../callbacks/OnGameModeInit) içinde aramamanız durumunda, halihazırda sunucuda bulunan bazı oyuncuların modelleri indirmemiş olma riskini çalıştırdığınızı unutmayın. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md index 53d53c08be28..7647c95c571a 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md @@ -43,7 +43,10 @@ Geçersiz bir menü kimliği geçtiğinde çöker. :::note -Menü başına yalnızca 12 öğe olabilir (13. Sütun adı üstbilgisinin sağ tarafına gider (renkli), 14. Ve üstü hiç görüntülenmez). Yalnızca 2 sütun (0 ve 1) kullanabilirsiniz. Bir öğe başına yalnızca 8 renk kodu ekleyebilirsiniz (`~r~`, `~g~` vb.). Menü öğesinin maksimum uzunluğu 31 simgedir. +- Menü başına yalnızca 12 öğe olabilir (13. Sütun adı üstbilgisinin sağ tarafına gider (renkli), 14. Ve üstü hiç görüntülenmez). +- Yalnızca 2 sütun (0 ve 1) kullanabilirsiniz. +- Bir öğe başına yalnızca 8 renk kodu ekleyebilirsiniz (`~r~`, `~g~` vb.). +- Menü öğesinin maksimum uzunluğu 31 simgedir. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md index 6bfdea58b478..8ac877cc5024 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md @@ -7,7 +7,7 @@ tags: ["player"] ## Açıklamalar -Bu işlev, bir takım parametresi eklenmesiyle birlikte AddPlayerClass işleviyle tamamen aynıdır. +Bu işlev, bir takım parametresi eklenmesiyle birlikte [AddPlayerClass](AddPlayerClass) işleviyle tamamen aynıdır. | İsim | Açıklama | | ------------- | --------------------------------------- | 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 c3d11a91758e..c360e12c8449 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 @@ -13,15 +13,15 @@ Bu işlev SA-MP 0.3.DL R1'e eklenmiştir ve önceki sürümlerde çalışmayacak ## Açıklama -İndirmek için yeni bir özel basit nesne modeli ekler. Model dosyaları, oynatıcının `Belgelerim\GTA San Andreas User Files\SAMP\cache` dizinindeki Sunucu IP'si ve Bağlantı Noktası klasörü altında, CRC biçiminde dosya adlarıyla saklanır. +İndirmek için yeni bir özel basit nesne modeli ekler. Model dosyaları, oynatıcının `Belgelerim\GTA San Andreas User Files\SAMP\cache` dizinindeki Sunucu IP'si ve Bağlantı Noktası klasörü altında, [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) biçiminde dosya adlarıyla saklanır. -| İsim | Açıklama | -| ------------ | ----------------------------------------------------------------------------------------------------------------------------- | -| virtualworld | Modeli adresinde kullanılabilir hale getirmek için sanal dünya kimliği. Tüm dünyalar için -1 kullanın. | -| baseid | Kullanılacak temel nesne model kimliği (indirme başarısız olduğunda kullanılacak orijinal nesne). | -| newid | Yeni obje model kimliği daha sonra CreateObject veya CreatePlayerObject ile -1000 ile -30000 arasında (29000 yuva) sıralandı. | -| dffname | Modellerde bulunan **.dff** modeli çarpışma dosyasının adı varsayılan olarak sunucu klasörü (çalışma yolu ayarı). | -| txdname | Modeller sunucu klasöründe varsayılan olarak bulunan **.txd** model kaplama dosyasının adı (çalışma yolu ayarı). | +| İsim | Açıklama | +| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------- | +| virtualworld | Modeli adresinde kullanılabilir hale getirmek için sanal dünya kimliği. Tüm dünyalar için -1 kullanın. | +| baseid | Kullanılacak temel [nesne model kimliği](https://models.open.mp/?cat=objects) (indirme başarısız olduğunda kullanılacak orijinal nesne). | +| newid | Yeni obje model kimliği daha sonra CreateObject veya CreatePlayerObject ile -1000 ile -30000 arasında (29000 yuva) sıralandı. | +| dffname | Modellerde bulunan **.dff** modeli çarpışma dosyasının adı varsayılan olarak sunucu klasörü (çalışma yolu ayarı). | +| txdname | Modeller sunucu klasöründe varsayılan olarak bulunan **.txd** model kaplama dosyasının adı (çalışma yolu ayarı). | ## Çalışınca Vereceği Sonuçlar @@ -43,13 +43,14 @@ public OnGameModeInit() :::note -Sanal dünya ayarlandığında bunun çalışması için öncelikle sunucu ayarlarında **useartwork** etkinleştirilmesi gerekir; oynatıcı belirli bir dünyaya girdiğinde modeller indirilir. +- Bunun çalışması için öncelikle sunucu ayarlarında **useartwork** etkinleştirilmesi gerekir. +- Sanal dünya ayarlandığında, oynatıcı belirli bir dünyaya girdiğinde modeller indirilir. ::: :::warning -Şu anda bu fonksiyonu ne zaman arayabileceğiniz konusunda herhangi bir kısıtlama yoktur, ancak OnFilterScriptInit/OnGameModeInit içinde aramamanız durumunda, halihazırda sunucuda bulunan bazı oyuncuların modelleri indirmemiş olma riskini çalıştırdığınızı unutmayın. +Şu anda bu fonksiyonu ne zaman arayabileceğiniz konusunda herhangi bir kısıtlama yoktur, ancak [OnFilterScriptInit](../callbacks/OnFilterScriptInit)/[OnGameModeInit](../callbacks/OnGameModeInit) içinde aramamanız durumunda, halihazırda sunucuda bulunan bazı oyuncuların modelleri indirmemiş olma riskini çalıştırdığınızı unutmayın. ::: 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 e3081241c1c9..fe7dcb504833 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 @@ -13,17 +13,17 @@ Bu işlev SA-MP 0.3.DL R1'e eklenmiştir ve önceki sürümlerde çalışmayacak ## Açıklama -İndirmek için yeni bir basit nesne modeli ekler. Model dosyaları, oynatıcının `Belgelerim\GTA San Andreas User Files\SAMP\cache` dizinindeki Sunucu IP'si ve Bağlantı Noktası klasörü altında, CRC biçiminde dosya adlarıyla saklanır. - -| İsim | Açıklama | -| ------------ | ----------------------------------------------------------------------------------------------------------------------------- | -| virtualworld | Modeli adresinde kullanılabilir hale getirmek için sanal dünya kimliği. Tüm dünyalar için -1 kullanın. | -| baseid | Kullanılacak temel nesne model kimliği (indirme başarısız olduğunda kullanılacak orijinal nesne). | -| newid | Yeni obje model kimliği daha sonra CreateObject veya CreatePlayerObject ile -1000 ile -30000 arasında (29000 yuva) sıralandı. | -| dffname | Modellerde bulunan **.dff** modeli çarpışma dosyasının adı varsayılan olarak sunucu klasörü (çalışma yolu ayarı). | -| txdname | Modeller sunucu klasöründe varsayılan olarak bulunan **.txd** model kaplama dosyasının adı (çalışma yolu ayarı). | -| timeon | Dünya oyun zamanı (saat) bu nesne görünür. | -| timeoff | Dünya oyun zamanı (saat) bu nesne kaybolacak. | +İndirmek için yeni bir basit nesne modeli ekler. Model dosyaları, oynatıcının `Belgelerim\GTA San Andreas User Files\SAMP\cache` dizinindeki Sunucu IP'si ve Bağlantı Noktası klasörü altında, [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) biçiminde dosya adlarıyla saklanır. + +| İsim | Açıklama | +| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------- | +| virtualworld | Modeli adresinde kullanılabilir hale getirmek için sanal dünya kimliği. Tüm dünyalar için -1 kullanın. | +| baseid | Kullanılacak temel [nesne model kimliği](https://models.open.mp/?cat=objects) (indirme başarısız olduğunda kullanılacak orijinal nesne). | +| newid | Yeni obje model kimliği daha sonra CreateObject veya CreatePlayerObject ile -1000 ile -30000 arasında (29000 yuva) sıralandı. | +| dffname | Modellerde bulunan **.dff** modeli çarpışma dosyasının adı varsayılan olarak sunucu klasörü (çalışma yolu ayarı). | +| txdname | Modeller sunucu klasöründe varsayılan olarak bulunan **.txd** model kaplama dosyasının adı (çalışma yolu ayarı). | +| timeon | Dünya oyun zamanı (saat) bu nesne görünür. | +| timeoff | Dünya oyun zamanı (saat) bu nesne kaybolacak. | ## Çalışınca Vereceği Sonuçlar @@ -45,13 +45,14 @@ public OnGameModeInit() :::note -Sanal dünya ayarlandığında bunun çalışması için öncelikle sunucu ayarlarında **useartwork** etkinleştirilmesi gerekir; oynatıcı belirli bir dünyaya girdiğinde modeller indirilir. +- Bunun çalışması için öncelikle sunucu ayarlarında **useartwork** etkinleştirilmesi gerekir. +- Sanal dünya ayarlandığında, oynatıcı belirli bir dünyaya girdiğinde modeller indirilir. ::: :::warning -Şu anda bu fonksiyonu ne zaman arayabileceğiniz konusunda herhangi bir kısıtlama yoktur, ancak OnFilterScriptInit/OnGameModeInit içinde aramamanız durumunda, halihazırda sunucuda bulunan bazı oyuncuların modelleri indirmemiş olma riskini çalıştırdığınızı unutmayın. +Şu anda bu fonksiyonu ne zaman arayabileceğiniz konusunda herhangi bir kısıtlama yoktur, ancak [OnFilterScriptInit](../callbacks/OnFilterScriptInit)/[OnGameModeInit](../callbacks/OnGameModeInit) içinde aramamanız durumunda, halihazırda sunucuda bulunan bazı oyuncuların modelleri indirmemiş olma riskini çalıştırdığınızı unutmayın. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md index 0da420146cd6..00c258093462 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md @@ -43,7 +43,7 @@ public OnGameModeInit() :::note -Bu işlev, OnPlayerPickUpPickup gibi kullanabileceğiniz bir pickup kimliği getirmez. Kimlik atamak istiyorsanız CreatePickup'ı kullanın. +Bu işlev, [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup) gibi kullanabileceğiniz bir pickup kimliği getirmez. Kimlik atamak istiyorsanız CreatePickup'ı kullanın. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md index 889bde4d9868..ce2c4aee4434 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md @@ -7,7 +7,7 @@ tags: [] ## Açıklama -Oyun modunda oyuncular için modeli daha önceden yüklenmiş olan statik araç oluşturmanızı sağlar. AddStaticVehicle fonksiyonundan tek farkı vardır: sürücü aracı boş bıraktıktan sonra girdiğiniz parametre sayesinde aracın ne kadar süre sonra respawn olacağını ayarlayabilirsiniz. +Oyun modunda oyuncular için modeli daha önceden yüklenmiş olan statik araç oluşturmanızı sağlar. [AddStaticVehicle](AddStaticVehicle) fonksiyonundan tek farkı vardır: sürücü aracı boş bıraktıktan sonra girdiğiniz parametre sayesinde aracın ne kadar süre sonra respawn olacağını ayarlayabilirsiniz. | İsim | Açıklama | | -------------------- | ----------------------------------------------------------------------- | diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md index 7969ca911b94..f71e04b6081f 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md @@ -7,11 +7,11 @@ tags: ["player", "3dtextlabel"] ## Açıklama -Oyuncuya 3D Text Label bağlama fonksiyonu. +Oyuncuya [3D Text Label](Create3DTextLabel) bağlama fonksiyonu. | Parametre | Açıklama | | ------------- | ------------------------------------------------------------------------------- | -| Text3D:textid | Create3DTextLabel ile oluşturulmuş label ID'si. | +| Text3D:textid | [Create3DTextLabel](Create3DTextLabel) ile oluşturulmuş label ID'si. | | playerid | Label'ın bağlanacağı oyuncunun ID'si. | | OffsetX | Oyuncunun X-ofset koordinatı. (oyuncunun ortasından başlar, '0.0, 0.0, 0.0'dır) | | OffsetY | Oyuncunun Y-ofset koordinatı. (oyuncunun ortasından başlar, '0.0, 0.0, 0.0'dır) | diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md index 463dbba0df1e..3bb4ec151adc 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md @@ -41,8 +41,8 @@ AttachObjectToObject(gObjectId, gAttachToId, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1); :::note -Fonksiyon kullanılmadan önce iki objede oluşturulmalıdır. -Bu fonksiyon oyuncu için özel oluşturulmuş objelerde çalışmaz. +- Fonksiyon kullanılmadan önce iki objede oluşturulmalıdır. +- Bu fonksiyon oyuncu için özel oluşturulmuş objelerde çalışmaz. ::: 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 c77701574cd7..5cf6b6203e0b 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 **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. +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](BanEx) kullanılabilir. IP yasaklamalarını kaldırmak/eklemek için [RCON](../../server/RemoteConsole) gişirinizden sonra `banip` ve `unbanip` komutlar kullanılabilir. | Parametre | Açıklama | | --------- | ----------------------------- | diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CancelSelectTextDraw.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CancelSelectTextDraw.md index a2d6730dc5d7..41abef41c22b 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CancelSelectTextDraw.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CancelSelectTextDraw.md @@ -36,7 +36,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -\*Bu fonksiyon OnPlayerClickTextDraw'ı ile INVALID_TEXT_DRAW(65535) çağırır. Bu işlevi OnPlayerClickTextDraw içinde bu duruma yakalanmadan kullanmak, istemcilerin sonsuz bir döngüye girmesine neden olur. +Bu fonksiyon [OnPlayerClickTextDraw](../callbacks/OnPlayerClickTextDraw)'ı ile INVALID_TEXT_DRAW(65535) çağırır. Bu işlevi OnPlayerClickTextDraw içinde bu duruma yakalanmadan kullanmak, istemcilerin sonsuz bir döngüye girmesine neden olur. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehiclePaintjob.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehiclePaintjob.md index 49a1ba32d27f..904d9afe278a 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehiclePaintjob.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehiclePaintjob.md @@ -7,7 +7,7 @@ tags: ["vehicle"] ## Açıklama -Aracın kaplamasını değiştirme. (düz renkler için bkz. ChangeVehicleColor). +Aracın kaplamasını değiştirme. (düz renkler için bkz. [ChangeVehicleColor](ChangeVehicleColor)). | Parametre | Açıklama | | ---------- | ------------------------------------------------------------ | @@ -20,7 +20,11 @@ Bu fonksiyon belirtilen araç ID'si oluşturulmamış olsa bile her zaman **1**' :::warning -Eğer aracın rengi siyahsa kaplama gözükmeyebilir. Aracı beyaza boyamak daha iyi olabilir, yapmak için ChangeVehicleColor(vehicleid,1,1); kullanılabilir. +Eğer aracın rengi siyahsa kaplama gözükmeyebilir. Aracı beyaza boyamak daha iyi olabilir; bunu yapmak için aşağıdaki kod kullanılabilir: + +```c +ChangeVehicleColor(vehicleid, 1, 1); +``` ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md index ed48ea6d8bd3..778547b3a54e 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md @@ -36,7 +36,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- ApplyAnimation'da freeze parametresi için 1 olarak girilirse, animasyon bittiğinde ClearAnimations hiçbir şey yapmaz. +- [ApplyAnimation](ApplyAnimation)'da freeze parametresi için 1 olarak girilirse, animasyon bittiğinde ClearAnimations hiçbir şey yapmaz. - Oyuncuyu bir araçtan çıkarmanın diğer bazı yollarının aksine, bu aynı zamanda aracın hızını sıfırlayarak aracı anında durdurur. Oyuncu, araba koltuğu ile aynı konumda aracın üstünde görünecektir. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ConnectNPC.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ConnectNPC.md index f799bd78ff1f..12c8e5e471b4 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ConnectNPC.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ConnectNPC.md @@ -32,7 +32,7 @@ public OnGameModeInit() :::note -Bağlanan NPC'lerin isim etiketleri bulunmaz. Attach3DTextLabelToPlayer ile yapılabilir. +Bağlanan NPC'lerin isim etiketleri bulunmaz. [Attach3DTextLabelToPlayer](Attach3DTextLabelToPlayer) ile yapılabilir. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md index c85cb53640cf..176d3a9cf8ec 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md @@ -50,7 +50,8 @@ Metinde birden çok renk için renk katıştırmayı kullanın. :::warning -Eğer metin alanı (text[]) boşsa sunucuyu çökertebilir! Sanal dünya değeri -1 olarak ayarlanmışsa metin görünmeyecektir. +- Eğer metin alanı (text[]) boşsa sunucuyu çökertebilir! +- Sanal dünya değeri -1 olarak ayarlanmışsa metin görünmeyecektir. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md index 06f3211b4e03..047f14031cfe 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md @@ -47,14 +47,15 @@ public OnGameModeExit() :::note -- Aktörler, kasiyerler ve barmenler gibi sadece bir yerde duracak şekilde tasarlanmıştır. ApplyActorAnimation kullanarak (döngü veya bir kez) animasyonlar gerçekleştirebilir. +- Aktörler, kasiyerler ve barmenler gibi sadece bir yerde duracak şekilde tasarlanmıştır. [ApplyActorAnimation](ApplyActorAnimation) kullanarak (döngü veya bir kez) animasyonlar gerçekleştirebilir. - 0.3.7 R2 sürümü ve sonraki sürümlerde aktörler dokunulmaz (hasar almaz) olarak ayarlanabilir. ::: :::warning -- Aktörler NPC'lerden tamamen farklıdır. Sunucunun slotlarını KULLANMAZLAR ve NPC'ler gibi KULLANILMAZLAR. Aktörler 1000 (MAX_ACTORS) ile sınırlıdır. +- Aktörler NPC'lerden tamamen farklıdır. Sunucunun slotlarını KULLANMAZLAR ve NPC'ler gibi KULLANILMAZLAR. +- Aktörler 1000 (MAX_ACTORS) ile sınırlıdır. - Araçlar ile itilebilirler, ayrıca konumlarına geri koymak içinde timer kullanılabilir. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CreateMenu.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CreateMenu.md index b45d08b962d0..67ee993e1063 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CreateMenu.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CreateMenu.md @@ -38,7 +38,9 @@ public OnGameModeInit() :::note -Bu fonksiyon menüyü sadece OLUŞTURUR. - Oyuncuya gösterilmesi için ShowMenuForPlayer kullanılmalıdır. Yalnıza iki sütun oluşturulabilir. (0 ve 1). Başlığın uzunluğu 32 karaktere eşit veya daha fazlaysa başlık 30 karaktere kısaltılır. +- Bu fonksiyon menüyü sadece OLUŞTURUR. Oyuncuya gösterilmesi için ShowMenuForPlayer kullanılmalıdır. +- Yalnıza iki sütun oluşturulabilir. (0 ve 1). +- Başlığın uzunluğu 32 karaktere eşit veya daha fazlaysa başlık 30 karaktere kısaltılır. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md index fad71966d6af..84e5a6600586 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md @@ -11,7 +11,7 @@ Oyun dünyası üzerinde obje oluşturma. | Parametre | Açıklama | | ------------------ | ----------------------------------------------------------------------------------------------------- | -| modelid | Oluşturulacak objenin modeli. | +| modelid | Oluşturulacak [objenin modeli](https://models.open.mp/?cat=objects). | | Float:X | Oluşturulacak objenin X koordinatı. | | Float:Y | Oluşturulacak objenin Y koordinatı. | | Float:Z | Oluşturulacak objenin Z koordinatı. | @@ -35,7 +35,7 @@ public OnGameModeInit() :::note -Obje sınırı 1000(MAX_OBJECTS)'dir. Sınırın aşılması için streamer kullanılabilir. +Obje sınırı 1000(MAX_OBJECTS)'dir. Sınırın aşılması için [streamer](https://github.com/samp-incognito/samp-streamer-plugin) kullanılabilir. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md index 895f7674a108..69bd8ea293c1 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md @@ -9,7 +9,7 @@ tags: [] ## Açıklama -CreateActor ile oluşturulan aktörü silin. +[CreateActor](CreateActor) ile oluşturulan aktörü silin. | Parametre | Açıklama | | --------- | ------------------------ | diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md index b408bc914efb..439836731bb4 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md @@ -67,7 +67,7 @@ public OnGameModeExit() :::warning -- Eğer /scriptsfolder içerisinde SQLite veritabanı dosyası yoksa bunu kendisi oluşturacaktır, sunucu kapanırken veritabanı bağlantısını [db_close](db_close)! -- fonksiyonu ile **kesin**. +- Eğer /scriptsfolder içerisinde SQLite veritabanı dosyası yoksa bunu kendisi oluşturacaktır. +- Sunucu kapanırken veritabanı bağlantısını [db_close](db_close) fonksiyonu ile **kesin**! ::: diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md index b842d85a3e23..bcf7910f88eb 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md @@ -6,7 +6,7 @@ description: Tệp cấu hình client của SA-MP. ## Mô Tả -`sa-mp.cfg` là tệp cấu hình của client cho phép bạn thay đổi các cài đặt liên quan đến SA-MP. Tệp này được tìm thấy trong thư mục 'Document\\GTA San Andreas User Files\\SAMP' dưới tài khoản người dùng Windows của bạn. Bạn có thể chỉnh sửa tệp này bằng trình soạn thảo văn bản như Notepad. +sa-mp.cfg là tệp cấu hình của client cho phép bạn thay đổi các cài đặt liên quan đến SA-MP. Tệp này được tìm thấy trong thư mục `Document\GTA San Andreas User Files\SAMP` dưới tài khoản người dùng Windows của bạn. Bạn có thể chỉnh sửa tệp này bằng trình soạn thảo văn bản như Notepad. ## Các Tùy Chọn diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md index f7ea3373c8e2..51056c31137c 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md @@ -43,9 +43,8 @@ public OnClientCheckResponse(playerid, actionid, memaddr, retndata) :::warning -**Máy chủ SA:MP**: Callback này chỉ được gọi khi nó nằm trong một filterscript. - -**Máy chủ Open Multiplayer**: Callback này hoạt động bình thường trong gamemode / filterscript. +- **Máy chủ SA-MP**: Callback này chỉ được gọi khi nó nằm trong một filterscript. +- **Máy chủ open.mp**: Callback này hoạt động bình thường trong gamemode / filterscript. ::: diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md index 816ed4f19fad..836b19ca8eea 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md @@ -38,7 +38,8 @@ public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) :::note -Như tên callback đã nói, nó chỉ được gọi khi người chơi nhấp chuột để đánh dấu mục tiêu chứ không phải khi nhấn phím. Giá trị Z trả về sẽ là 0 (không hợp lệ) nếu khu vực nhấp chuột trên bản đồ cách xa người chơi; sử dụng plugin [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) hoặc [ColAndreas](https://github.com/Pottus/ColAndreas) để có tọa độ Z chính xác hơn. +- Như tên callback đã nói, nó chỉ được gọi khi người chơi nhấp chuột để đánh dấu mục tiêu chứ không phải khi nhấn phím. +- Giá trị Z trả về sẽ là 0 (không hợp lệ) nếu khu vực nhấp chuột trên bản đồ cách xa người chơi; sử dụng plugin [MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas) hoặc [ColAndreas](https://github.com/Pottus/ColAndreas) để có tọa độ Z chính xác hơn. ::: diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md index a7191969d365..d9b6bedcd89e 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitVehicle.md @@ -34,7 +34,8 @@ public OnPlayerExitVehicle(playerid, vehicleid) :::warning -Không được gọi nếu người chơi bị rơi khỏi xe đạp hoặc bị loại khỏi phương tiện bằng các phương pháp khác như sử dụng [SetPlayerPos](../functions/SetPlayerPos). Bạn cần sử dụng [OnPlayerStateChange](OnPlayerStateChange) và kiểm tra xem trạng thái cũ của họ là `PLAYER_STATE_DRIVER` hoặc `PLAYER_STATE_PASSENGER` và trạng thái mới của họ là `PLAYER_STATE_ONFOOT`. +- Không được gọi nếu người chơi bị rơi khỏi xe đạp hoặc bị loại khỏi phương tiện bằng các phương pháp khác như sử dụng [SetPlayerPos](../functions/SetPlayerPos). +- Bạn cần sử dụng [OnPlayerStateChange](OnPlayerStateChange) và kiểm tra xem trạng thái cũ của họ là `PLAYER_STATE_DRIVER` hoặc `PLAYER_STATE_PASSENGER` và trạng thái mới của họ là `PLAYER_STATE_ONFOOT`. ::: diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md index 904d8143b043..196d9312b168 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md @@ -37,7 +37,7 @@ public OnPlayerRequestSpawn(playerid) :::tip -Để ngăn người chơi xuất hiện với các lớp nhất định, lớp cuối cùng đã xem phải được lưu trong một biến trong OnPlayerRequestClass. +Để ngăn người chơi xuất hiện với các lớp nhất định, lớp cuối cùng đã xem phải được lưu trong một biến trong [OnPlayerRequestClass](OnPlayerRequestClass). ::: diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md index 7233b1b95c5a..1f558bae6a12 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md @@ -7,7 +7,7 @@ tags: ["player"] ## Mô tả -Callback này được gọi khi người chơi thay đổi trạng thái. Ví dụ, khi người chơi thay đổi từ việc là tài xế của một phương tiện sang đi bộ. +Callback này được gọi khi người chơi thay đổi [trạng thái](../resources/playerstates). Ví dụ, khi người chơi thay đổi từ việc là tài xế của một phương tiện sang đi bộ. | Tên | Mô tả | | --------------------- | ----------------------------------------- | @@ -15,8 +15,6 @@ Callback này được gọi khi người chơi thay đổi trạng thái. Ví d | PLAYER_STATE:newstate | Trạng thái mới của người chơi. | | PLAYER_STATE:oldstate | Trạng thái trước đó của người chơi. | -Tham khảo [Trạng thái Người chơi](../resources/playerstates) để biết danh sách tất cả các trạng thái người chơi có sẵn. - ## Giá trị trả về Nó luôn được gọi đầu tiên trong filterscripts. diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md index d95955354064..70e9507aa4e2 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md @@ -43,10 +43,10 @@ public OnPlayerWeaponShot(playerid, WEAPON:weaponid, BULLET_HIT_TYPE:hittype, hi :::note -Callback này chỉ được gọi khi bù trừ độ trễ (lag compensation) được **bật**. Nếu **hittype** là: - -- `BULLET_HIT_TYPE_NONE`: các tham số **fX**, **fY** và **fZ** là tọa độ bình thường, sẽ trả về 0.0 cho các tọa độ nếu không có gì bị bắn trúng (ví dụ: vật thể ở xa mà viên đạn không thể đến); -- Các loại khác: **fX**, **fY** và **fZ** là độ dịch chuyển tương đối với **hitid**. +- Callback này chỉ được gọi khi bù trừ độ trễ (lag compensation) được **bật**. +- Nếu **hittype** là: + - `BULLET_HIT_TYPE_NONE`: các tham số **fX**, **fY** và **fZ** là tọa độ bình thường, sẽ trả về 0.0 cho các tọa độ nếu không có gì bị bắn trúng (ví dụ: vật thể ở xa mà viên đạn không thể đến); + - Các loại khác: **fX**, **fY** và **fZ** là độ dịch chuyển tương đối với **hitid**. ::: diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md index ab79e832ad48..c58b40ed8024 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md @@ -47,7 +47,7 @@ public OnRconCommand(cmd[]) - "/rcon " không được bao gồm trong "cmd" khi người chơi gõ lệnh. - Nếu bạn sử dụng hàm "print" ở đây, nó sẽ gửi thông điệp tới người chơi đã gõ lệnh trong trò chơi cũng như ghi vào log. - Callback này không được gọi khi người chơi chưa đăng nhập với tư cách là quản trị viên RCON. -- Khi người chơi chưa đăng nhập với tư cách là quản trị viên RCON và sử dụng `/rcon login`, callback này sẽ không được gọi và thay vào đó, `OnRconLoginAttempt` sẽ được gọi. Tuy nhiên, khi người chơi đã đăng nhập với tư cách là quản trị viên RCON, việc sử dụng lệnh này sẽ gọi callback này. +- Khi người chơi chưa đăng nhập với tư cách là quản trị viên RCON và sử dụng `/rcon login`, callback này sẽ không được gọi và thay vào đó, [OnRconLoginAttempt](OnRconLoginAttempt) sẽ được gọi. Tuy nhiên, khi người chơi đã đăng nhập với tư cách là quản trị viên RCON, việc sử dụng lệnh này sẽ gọi callback này. ::: diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md index 62d3184ea50b..90bd921674e0 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md @@ -35,7 +35,8 @@ public OnVehiclePaintjob(playerid, vehicleid, paintjobid) :::note -Callback này không được gọi bởi ChangeVehiclePaintjob. Bạn có thể sử dụng OnVehicleChangePaintjob từ vSync để biết khi người chơi **mua** lớp sơn. +- Callback này không được gọi bởi ChangeVehiclePaintjob. +- Bạn có thể sử dụng OnVehicleChangePaintjob từ [vSync](https://github.com/Vasily-X/vSync) để biết khi người chơi **mua** lớp sơn. ::: diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md index b4d53e084a4e..1731da17191d 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md @@ -36,7 +36,8 @@ public OnVehicleRespray(playerid, vehicleid, color1, color2) :::note -Callback này không được gọi bởi ChangeVehicleColor. Tên của callback này có thể gây hiểu lầm, và nó không được gọi cho các cửa hàng Pay 'n' Spray (chỉ các cửa hàng tùy chỉnh). +- Callback này không được gọi bởi ChangeVehicleColor. +- Tên của callback này có thể gây hiểu lầm, và nó không được gọi cho các cửa hàng Pay 'n' Spray (chỉ các cửa hàng tùy chỉnh). Fix ở đây: https://pastebin.com/G81da7N1 diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md index 344e9f2704fe..7c15f34f4792 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md @@ -13,7 +13,7 @@ Callback này chỉ được gọi khi xe **hồi sinh** (respawn)! Hàm `Create ## Mô tả -Callback này được gọi khi một xe hồi sinh. +Callback này được gọi khi một xe **hồi sinh**. | Tên | Mô tả | | --------- | ----------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md index e442a96e07c6..fe5caef1caea 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/client/sa-mp.cfg.md @@ -6,7 +6,7 @@ description: SA-MP客户端配置文件 ## 配置文件说明 -`sa-mp.cfg` 是用于配置 SA-MP 客户端设置的配置文件。该文件位于 Windows 用户账户下的`我的文档\GTA San Andreas User Files\SAMP`文件夹中,可使用记事本等文本编辑器进行编辑。 +sa-mp.cfg 是用于配置 SA-MP 客户端设置的配置文件。该文件位于 Windows 用户账户下的`我的文档\GTA San Andreas User Files\SAMP`文件夹中,可使用记事本等文本编辑器进行编辑。 ## 配置选项 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md index 53c7168d8f76..4ec19b5cd9c1 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md @@ -43,9 +43,8 @@ public OnClientCheckResponse(playerid, actionid, memaddr, retndata) :::warning -**SA:MP 服务端**:此回调仅在滤镜脚本中触发 - -**Open Multiplayer 服务端**:此回调在游戏模式/滤镜脚本中均可正常触发 +- **SA-MP 服务端**:此回调仅在滤镜脚本中触发 +- **open.mp 服务端**:此回调在游戏模式/滤镜脚本中均可正常触发 ::: 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 9b76709f564a..1c6cca83213c 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 @@ -7,19 +7,19 @@ tags: ["对话框"] ## 描述 -当玩家响应通过ShowPlayerDialog显示的对话框时触发此回调。响应方式包括: +当玩家响应通过[ShowPlayerDialog](../functions/ShowPlayerDialog)显示的对话框时触发此回调。响应方式包括: - 点击按钮 - 按下ENTER/ESC键 - 双击列表项(针对列表式对话框) -| 参数 | 说明 | -| ----------- | ------------------------------------------------------------------- | -| playerid | 响应对话框的玩家ID | -| dialogid | 对话框ID(与ShowPlayerDialog中设置的ID对应) | -| response | 按钮响应值:**1**=左按钮,**0**=右按钮(若仅显示单个按钮则始终为1) | -| listitem | 玩家选择的列表项ID(从0开始计数),非列表式对话框该值为-1 | -| inputtext[] | 玩家在输入框中输入的文本内容 或 选中的列表项文本 | +| 参数 | 说明 | +| ----------- | ----------------------------------------------------------------------------- | +| playerid | 响应对话框的玩家ID | +| dialogid | 对话框ID(与[ShowPlayerDialog](../functions/ShowPlayerDialog)中设置的ID对应) | +| response | 按钮响应值:**1**=左按钮,**0**=右按钮(若仅显示单个按钮则始终为1) | +| listitem | 玩家选择的列表项ID(从0开始计数),非列表式对话框该值为-1 | +| inputtext[] | 玩家在输入框中输入的文本内容 或 选中的列表项文本 | ## 返回值 @@ -167,7 +167,7 @@ public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) :::tip -使用switch-case语句处理多个对话框比if语句更高效 +使用[switch-case](../language/Statements#switch)语句处理多个对话框比if语句更高效 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md index 5e6288e08d3e..3b8fc44b91c6 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md @@ -9,11 +9,11 @@ tags: ["玩家"] 当玩家进入或离开车辆改装店时触发此回调。 -| 参数 | 说明 | -| ---------- | -------------------------------------------- | -| playerid | 触发事件的玩家 ID | -| enterexit | 状态标识:**1**=进入改装店,**0**=离开改装店 | -| interiorid | 玩家进入的改装店室内空间 ID(离开时为 0) | +| 参数 | 说明 | +| ---------- | ---------------------------------------------------------------------------- | +| playerid | 触发事件的玩家 ID | +| enterexit | 状态标识:**1**=进入改装店,**0**=离开改装店 | +| interiorid | 玩家进入的改装店[室内空间 ID](../resources/interiorids#改装店)(离开时为 0) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md index a9c1a17b7f3f..dfa91b090a60 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md @@ -11,7 +11,7 @@ tags: [] - 执行'gmx'指令 - 服务器关闭 -- 调用GameModeExit函数 +- 调用[GameModeExit](../functions/GameModeExit)函数 ## 返回值 @@ -33,7 +33,7 @@ public OnGameModeExit() :::tip -此回调也可用于滤镜脚本中,通过RCON指令(如changemode或gmx)检测游戏模式变更,因为更换游戏模式不会重新加载滤镜脚本 +此回调也可用于滤镜脚本中,通过[RCON指令](../../server/ControllingServer#rcon-命令)(如changemode或gmx)检测游戏模式变更,因为更换游戏模式不会重新加载滤镜脚本 ::: @@ -41,8 +41,7 @@ public OnGameModeExit() 使用OnGameModeExit时需注意: -- 配合`rcon gmx`指令使用时可能导致客户端异常 -- 在[OnGameModeInit](OnGameModeInit)中过度调用[RemoveBuildingForPlayer](../functions/RemoveBuildingForPlayer)可能引发客户端崩溃 +- 配合`rcon gmx`指令使用时可能导致客户端异常。例如,在[OnGameModeInit](OnGameModeInit)中过度调用[RemoveBuildingForPlayer](../functions/RemoveBuildingForPlayer)可能引发客户端崩溃 - 服务器崩溃或进程被强制终止(如Linux kill命令)不会触发此回调 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md index 70fde616882f..d51c388b4e46 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md @@ -29,7 +29,7 @@ public OnGameModeInit() :::tip -此回调也可用于滤镜脚本中,通过RCON指令(如changemode或gmx)检测游戏模式变更,因为更换游戏模式不会重新加载滤镜脚本 +此回调也可用于滤镜脚本中,通过[RCON指令](../../server/ControllingServer#rcon-命令)(如changemode或gmx)检测游戏模式变更,因为更换游戏模式不会重新加载滤镜脚本 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md index a731a4e7635c..e1a77e664f66 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md @@ -7,7 +7,7 @@ tags: [] ## 描述 -当IP地址尝试连接服务器时触发此回调。如需阻止连接,请使用BlockIpAddress函数。 +当IP地址尝试连接服务器时触发此回调。如需阻止连接,请使用[BlockIpAddress](../functions/BlockIpAddress)函数。 | 参数 | 说明 | | ------------ | -------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md index e3a31b605cd9..fc1814b325ff 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md @@ -7,7 +7,7 @@ tags: ["物体"] ## 描述 -当物体通过MoveObject函数移动并停止时触发此回调。 +当物体通过[MoveObject](../functions/MoveObject)函数移动并停止时触发此回调。 | 参数 | 说明 | | -------- | ------------------ | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md index c1c80b7df44b..6731cd6942d6 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickMap.md @@ -37,7 +37,8 @@ public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) :::note -此回调仅在玩家通过点击地图标记目标时触发,按键操作不会触发。若点击位置距离玩家过远,返回的Z坐标将为0(无效值),建议使用[MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas)或[ColAndreas](https://github.com/Pottus/ColAndreas)插件获取精确Z坐标 +- 此回调仅在玩家通过点击地图标记目标时触发,按键操作不会触发。 +- 若点击位置距离玩家过远,返回的Z坐标将为0(无效值),建议使用[MapAndreas](https://github.com/philip1337/samp-plugin-mapandreas)或[ColAndreas](https://github.com/Pottus/ColAndreas)插件获取精确Z坐标 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md index 02bd8c809ac1..4e586deaa8b3 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md @@ -9,13 +9,13 @@ tags: ["玩家"] 当玩家对另一名玩家造成伤害时触发此回调函数。 -| 参数 | 说明 | -| --------------- | ------------------------------------------ | -| playerid | 造成伤害的玩家ID | -| damagedid | 受到伤害的玩家ID | -| Float:amount | 损失的生命值/护甲值总和(单位:浮点数) | -| WEAPON:weaponid | 造成伤害的武器类型 | -| bodypart | 被击中的[身体部位](../resources/bodyparts) | +| 参数 | 说明 | +| --------------- | -------------------------------------------- | +| playerid | 造成伤害的玩家ID | +| damagedid | 受到伤害的玩家ID | +| Float:amount | 损失的生命值/护甲值总和(单位:浮点数) | +| WEAPON:weaponid | 造成伤害的[武器类型](../resources/weaponids) | +| bodypart | 被击中的[身体部位](../resources/bodyparts) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md index 26159bda6c39..5e36190d8006 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md @@ -11,13 +11,13 @@ tags: ["玩家", 演员] 当玩家对演员造成伤害时触发此回调函数。 -| 参数 | 说明 | -| --------------- | ------------------------------------------ | -| playerid | 造成伤害的玩家ID | -| damaged_actorid | 受到伤害的演员ID | -| Float:amount | 损失的生命值/护甲值(单位:浮点数) | -| WEAPON:weaponid | 造成伤害的武器类型 | -| bodypart | 被击中的[身体部位](../resources/bodyparts) | +| 参数 | 说明 | +| --------------- | -------------------------------------------- | +| playerid | 造成伤害的玩家ID | +| damaged_actorid | 受到伤害的演员ID | +| Float:amount | 损失的生命值/护甲值(单位:浮点数) | +| WEAPON:weaponid | 造成伤害的[武器类型](../resources/weaponids) | +| bodypart | 被击中的[身体部位](../resources/bodyparts) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md index e367225f6750..f9c1645ac06e 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md @@ -50,7 +50,7 @@ public OnPlayerPickUpPickup(playerid, pickupid) :::tip -- 仅适用于通过CreatePickup创建的常规拾取物 +- 仅适用于通过[CreatePickup](../functions/CreatePickup)创建的常规拾取物 - 武器拾取物(通过CreateWeaponPickup创建)不会触发此回调 - 使用前请用IsValidPickup验证拾取物有效性 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md index b6a11d6c6eff..8b00a77ca58f 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestSpawn.md @@ -37,7 +37,7 @@ public OnPlayerRequestSpawn(playerid) :::tip -如需限制玩家使用特定职业生成,需在 OnPlayerRequestClass 回调中保存最后查看的职业类别 +如需限制玩家使用特定职业生成,需在 [OnPlayerRequestClass](OnPlayerRequestClass) 回调中保存最后查看的职业类别 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md index 4ad43bc573f0..8a38725e8a9e 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStateChange.md @@ -7,7 +7,7 @@ tags: ["玩家"] ## 描述 -当玩家状态发生改变时触发此回调函数。例如:当玩家从车辆驾驶员状态切换为步行状态时。 +当玩家[状态](../resources/playerstates)发生改变时触发此回调函数。例如:当玩家从车辆驾驶员状态切换为步行状态时。 | 参数 | 说明 | | --------------------- | -------------------- | @@ -15,8 +15,6 @@ tags: ["玩家"] | PLAYER_STATE:newstate | 玩家当前的新状态 | | PLAYER_STATE:oldstate | 玩家之前的旧状态 | -完整状态列表请参考[玩家状态](../resources/playerstates)。 - ## 返回值 此回调始终在滤镜脚本中优先触发。 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md index 5189df67fa21..2fcf2c976cb9 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md @@ -14,7 +14,7 @@ tags: ["玩家"] | playerid | 受到伤害的玩家ID | | issuerid | 造成伤害的玩家ID(若为自伤则返回INVALID_PLAYER_ID) | | Float:amount | 玩家承受的伤害值(生命值与护甲值合计) | -| WEAPON:weaponid | 造成伤害的武器ID/原因 | +| WEAPON:weaponid | 造成伤害的[武器ID/原因](../resources/weaponids) | | bodypart | 受击的[身体部位](../resources/bodyparts) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md index a84045a73e3c..ad11304cbaab 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md @@ -43,9 +43,10 @@ public OnPlayerWeaponShot(playerid, WEAPON:weaponid, BULLET_HIT_TYPE:hittype, hi :::note -- 仅在**启用**延迟补偿时触发此回调 -- 当**hittype**为BULLET_HIT_TYPE_NONE时,fX/fY/fZ为绝对坐标(若未命中则返回0.0) -- 其他命中类型时,坐标为相对于hitid的偏移量 +- 仅在**启用**[延迟补偿](../../server/LagCompensation)时触发此回调 +- 坐标的含义取决于**hittype**: + - 当命中类型为BULLET_HIT_TYPE_NONE时,fX/fY/fZ为绝对坐标(若未命中则返回0.0) + - 其他命中类型时,坐标为相对于hitid的偏移量 ::: @@ -59,8 +60,7 @@ public OnPlayerWeaponShot(playerid, WEAPON:weaponid, BULLET_HIT_TYPE:hittype, hi **已知问题** -- 作为车辆驾驶员射击时不会触发 -- 开启瞄准镜向后射击时不会触发 +- 作为车辆驾驶员射击或开启瞄准镜向后射击时不会触发 - 击中车辆内玩家时返回BULLET_HIT_TYPE_VEHICLE而非PLAYER类型 - 0.3.7版本后需校验weaponid真实性以防止客户端崩溃 - 武装车辆(如直升机机炮)射击时不会触发 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md index 70e370bf90ee..8b6ed8e80351 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md @@ -9,11 +9,11 @@ tags: ["车辆"] 当车辆被改装(添加组件)时触发此回调函数。 -| 参数 | 说明 | -| ----------- | ------------------------------ | -| playerid | 进行改装的玩家ID(车辆驾驶员) | -| vehicleid | 被改装的车辆ID | -| componentid | 添加到车辆的改装组件ID | +| 参数 | 说明 | +| ----------- | ----------------------------------------------------- | +| playerid | 进行改装的玩家ID(车辆驾驶员) | +| vehicleid | 被改装的车辆ID | +| componentid | 添加到车辆的[改装组件ID](../resources/carcomponentid) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md index 890777e12cbe..96efb243be37 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md @@ -9,11 +9,11 @@ tags: ["车辆"] 当玩家在改装店内预览车辆涂装时触发此回调函数(注意:玩家购买涂装时不会触发)。 -| 参数 | 说明 | -| ---------- | -------------------- | -| playerid | 变更涂装预览的玩家ID | -| vehicleid | 变更涂装预览的车辆ID | -| paintjobid | 新预览的涂装ID | +| 参数 | 说明 | +| ---------- | ---------------------------------------- | +| playerid | 变更涂装预览的玩家ID | +| vehicleid | 变更涂装预览的车辆ID | +| paintjobid | 新预览的[涂装ID](../resources/paintjobs) | ## 返回值 @@ -36,7 +36,7 @@ public OnVehiclePaintjob(playerid, vehicleid, paintjobid) :::note - 此回调不会通过 [ChangeVehiclePaintjob](../functions/ChangeVehiclePaintjob) 函数触发 -- 如需检测玩家**购买**涂装行为,可使用 vSync 插件的 OnVehicleChangePaintjob 回调 +- 如需检测玩家**购买**涂装行为,可使用 [vSync](https://github.com/Vasily-X/vSync) 插件的 OnVehicleChangePaintjob 回调 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md index d25a19e53807..c5d12493dabb 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleRespray.md @@ -38,7 +38,8 @@ public OnVehicleRespray(playerid, vehicleid, color1, color2) - 此回调不会通过 [ChangeVehicleColor](../functions/ChangeVehicleColor) 函数触发 - 仅改装店(Mod Shop)会触发此回调,Pay 'n' Spray涂装店不会触发 -- 修复方案参考:[https://pastebin.com/G81da7N1](https://pastebin.com/G81da7N1) + +修复方案参考:[https://pastebin.com/G81da7N1](https://pastebin.com/G81da7N1) ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md index c7c9a116c10e..703ca49d3d4d 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSpawn.md @@ -13,7 +13,7 @@ tags: ["车辆"] ## 描述 -当车辆重生时触发此回调函数。 +当车辆**重**生时触发此回调函数。 | 参数 | 说明 | | --------- | ------------ | 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 0a059365da0a..89ce23812efe 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 格式](https://en.wikipedia.org/wiki/Cyclic_redundancy_check)文件名保存。 +添加可供下载的新自定义[角色模型](SetPlayerSkin)。模型文件将存储在玩家的「`文档\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 配置修改路径)。 | +| 参数 | 说明 | +| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| baseid | 基础[皮肤模型 ID](../resources/skins)(用于定义角色行为特性,当下载失败时将使用该原始角色模型)。 | +| newid | 新皮肤模型 ID(范围 20001-30000,共 10000 个槽位),后续可通过 [SetPlayerSkin](SetPlayerSkin) 使用 | +| const dff[] | **.dff** 模型碰撞文件名,默认位于服务器的 `models` 文件夹(可通过 [artpath](../../server/server.cfg#自定义模型) 配置修改路径)。 | +| const textureLibrary[] | **.txd** 模型贴图文件名,默认位于服务器的 `models` 文件夹(可通过 [artpath](../../server/server.cfg#自定义模型) 配置修改路径)。 | ## 返回值 @@ -39,7 +39,7 @@ public OnGameModeInit() :::note -需先在服务器配置中启用**useartwork**或**artwork.enable**选项才能使此函数生效。 +需先在[服务器配置](../../server/server.cfg#自定义模型)中启用**useartwork**或**artwork.enable**选项才能使此函数生效。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md index 3347ab40a6c0..2034fa9cd208 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md @@ -46,7 +46,8 @@ public OnGameModeInit() - 每个菜单最多容纳 12 个项目(第 13 个项目会显示在列名的右侧,第 14 个及后续项目不可见) - 仅支持 2 列(0 和 1) -- 单个菜单项最多支持 8 个颜色代码(如`~r~`,`~g~`等),最大显示长度为 31 个字符 +- 单个菜单项最多支持 8 个颜色代码(如`~r~`,`~g~`等) +- 最大显示长度为 31 个字符 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClass.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClass.md index 8e1f5033f061..732ebeff69f8 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClass.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClass.md @@ -9,19 +9,19 @@ tags: ["玩家", "职业"] 添加一个职业到职业选择系统。职业系统允许玩家使用自选皮肤进行重生。 -| 参数 | 说明 | -| -------------- | --------------------------------------------- | -| skin | 玩家重生时使用的[皮肤 ID](../resources/skins) | -| Float:spawnX | 该职业重生点的 X 坐标 | -| Float:spawnY | 该职业重生点的 Y 坐标 | -| Float:spawnZ | 该职业重生点的 Z 坐标 | -| Float:angle | 玩家重生后的初始朝向角度 | -| WEAPON:weapon1 | 玩家初始携带的第一把武器 | -| ammo1 | 主武器的弹药数量 | -| WEAPON:weapon2 | 玩家初始携带的第二把武器 | -| ammo2 | 副武器的弹药数量 | -| WEAPON:weapon3 | 玩家初始携带的第三把武器 | -| ammo3 | 特殊武器的弹药数量 | +| 参数 | 说明 | +| -------------- | -------------------------------------------------- | +| skin | 玩家重生时使用的[皮肤 ID](../resources/skins) | +| Float:spawnX | 该职业重生点的 X 坐标 | +| Float:spawnY | 该职业重生点的 Y 坐标 | +| Float:spawnZ | 该职业重生点的 Z 坐标 | +| Float:angle | 玩家重生后的初始朝向角度 | +| WEAPON:weapon1 | 玩家初始携带的第一把[武器](../resources/weaponids) | +| ammo1 | 主武器的弹药数量 | +| WEAPON:weapon2 | 玩家初始携带的第二把[武器](../resources/weaponids) | +| ammo2 | 副武器的弹药数量 | +| WEAPON:weapon3 | 玩家初始携带的第三把[武器](../resources/weaponids) | +| ammo3 | 特殊武器的弹药数量 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md index a843ac5f368c..08ce2b4b771c 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddPlayerClassEx.md @@ -7,22 +7,22 @@ tags: ["玩家", "职业"] ## 描述 -此函数功能与 AddPlayerClass 完全一致,额外增加团队参数支持。 - -| 参数 | 说明 | -| -------------- | --------------------------------------------- | -| team | 玩家所属的初始团队 | -| skin | 玩家重生时使用的[皮肤 ID](../resources/skins) | -| Float:spawnX | 该职业重生点的 X 坐标 | -| Float:spawnY | 该职业重生点的 Y 坐标 | -| Float:spawnZ | 该职业重生点的 Z 坐标 | -| Float:angle | 玩家重生后的初始朝向角度 | -| WEAPON:weapon1 | 玩家初始携带的第一把武器 | -| ammo1 | 主武器的弹药数量 | -| WEAPON:weapon2 | 玩家初始携带的第二把武器 | -| ammo2 | 副武器的弹药数量 | -| WEAPON:weapon3 | 玩家初始携带的第三把武器 | -| ammo3 | 特殊武器的弹药数量 | +此函数功能与 [AddPlayerClass](AddPlayerClass) 完全一致,额外增加团队参数支持。 + +| 参数 | 说明 | +| -------------- | -------------------------------------------------- | +| team | 玩家所属的初始团队 | +| skin | 玩家重生时使用的[皮肤 ID](../resources/skins) | +| Float:spawnX | 该职业重生点的 X 坐标 | +| Float:spawnY | 该职业重生点的 Y 坐标 | +| Float:spawnZ | 该职业重生点的 Z 坐标 | +| Float:angle | 玩家重生后的初始朝向角度 | +| WEAPON:weapon1 | 玩家初始携带的第一把[武器](../resources/weaponids) | +| ammo1 | 主武器的弹药数量 | +| WEAPON:weapon2 | 玩家初始携带的第二把[武器](../resources/weaponids) | +| ammo2 | 副武器的弹药数量 | +| WEAPON:weapon3 | 玩家初始携带的第三把[武器](../resources/weaponids) | +| ammo3 | 特殊武器的弹药数量 | ## 返回值 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 04998bf44f84..3b999225939c 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 @@ -9,15 +9,15 @@ tags: ["自定义模型", "简单模型"] ## 描述 -添加可供下载的新自定义简单物体模型。模型文件将存储在玩家的「`文档\GTA San Andreas User Files\SAMP\cache`」目录下,按服务器 IP 和端口分类的文件夹中,并以 CRC 格式文件名保存。 +添加可供下载的新自定义简单[物体模型](CreateObject)。模型文件将存储在玩家的「`文档\GTA San Andreas User Files\SAMP\cache`」目录下,按服务器 IP 和端口分类的文件夹中,并以 [CRC 格式](https://en.wikipedia.org/wiki/Cyclic_redundancy_check)文件名保存。 -| 参数 | 说明 | -| ---------------------- | -------------------------------------------------------------------------------------------------------- | -| virtualWorld | 模型生效的虚拟世界 ID,使用-1 表示全虚拟世界 | -| baseid | 基础物体模型 ID(当下载失败时将使用该原始物体模型) | -| newid | 新物体模型 ID(范围-1000 至-30000,共 29000 个槽位),后续可通过 CreateObject 或 CreatePlayerObject 使用 | -| const dff[] | **.dff** 模型碰撞文件名,默认位于服务器的 `models` 文件夹(可通过 artpath 配置修改路径) | -| const textureLibrary[] | **.txd** 模型贴图文件名,默认位于服务器的 `models` 文件夹(可通过 artpath 配置修改路径) | +| 参数 | 说明 | +| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | +| virtualWorld | 模型生效的[虚拟世界 ID](SetPlayerVirtualWorld),使用-1 表示全虚拟世界 | +| baseid | 基础[物体模型 ID](https://models.open.mp/?cat=objects)(当下载失败时将使用该原始物体模型) | +| newid | 新物体模型 ID(范围-1000 至-30000,共 29000 个槽位),后续可通过 [CreateObject](CreateObject) 或 [CreatePlayerObject](CreatePlayerObject) 使用 | +| const dff[] | **.dff** 模型碰撞文件名,默认位于服务器的 `models` 文件夹(可通过 [artpath](../../server/server.cfg#自定义模型) 配置修改路径) | +| const textureLibrary[] | **.txd** 模型贴图文件名,默认位于服务器的 `models` 文件夹(可通过 [artpath](../../server/server.cfg#自定义模型) 配置修改路径) | ## 返回值 @@ -39,7 +39,7 @@ public OnGameModeInit() :::note -- 需先在服务器配置中启用**useartwork**或**artwork.enable**选项才能使此函数生效。 +- 需先在[服务器配置](../../server/server.cfg#自定义模型)中启用**useartwork**或**artwork.enable**选项才能使此函数生效。 - 当`virtualworld`参数设置时,模型将在玩家进入指定虚拟世界时自动下载。 ::: 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 258e4a40b692..09ae9941c404 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 @@ -9,17 +9,17 @@ tags: ["自定义模型", "简单模型"] ## 描述 -添加具有时间限制的自定义简单物体模型。模型文件将存储在玩家的「`文档\GTA San Andreas User Files\SAMP\cache`」目录下,按服务器 IP 和端口分类的文件夹中,并以 CRC 格式文件名保存。 - -| 参数 | 说明 | -| ---------------------- | -------------------------------------------------------------------------------------------------------- | -| virtualWorld | 模型生效的虚拟世界 ID,使用-1 表示全虚拟世界 | -| baseid | 基础物体模型 ID(当下载失败时将使用该原始物体模型) | -| newid | 新物体模型 ID(范围-1000 至-30000,共 29000 个槽位),后续可通过 CreateObject 或 CreatePlayerObject 使用 | -| const dff[] | **.dff** 模型碰撞文件名,默认位于服务器的 `models` 文件夹(可通过 artpath 配置修改路径) | -| const textureLibrary[] | **.txd** 模型贴图文件名,默认位于服务器的 `models` 文件夹(可通过 artpath 配置修改路径) | -| timeOn | 模型开始渲染的世界游戏时间(小时) | -| timeOff | 模型停止渲染的世界游戏时间(小时) | +添加具有时间限制的自定义简单[物体模型](CreateObject)。模型文件将存储在玩家的「`文档\GTA San Andreas User Files\SAMP\cache`」目录下,按服务器 IP 和端口分类的文件夹中,并以 [CRC 格式](https://en.wikipedia.org/wiki/Cyclic_redundancy_check)文件名保存。 + +| 参数 | 说明 | +| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | +| virtualWorld | 模型生效的[虚拟世界 ID](SetPlayerVirtualWorld),使用-1 表示全虚拟世界 | +| baseid | 基础[物体模型 ID](https://models.open.mp/?cat=objects)(当下载失败时将使用该原始物体模型) | +| newid | 新物体模型 ID(范围-1000 至-30000,共 29000 个槽位),后续可通过 [CreateObject](CreateObject) 或 [CreatePlayerObject](CreatePlayerObject) 使用 | +| const dff[] | **.dff** 模型碰撞文件名,默认位于服务器的 `models` 文件夹(可通过 [artpath](../../server/server.cfg#自定义模型) 配置修改路径) | +| const textureLibrary[] | **.txd** 模型贴图文件名,默认位于服务器的 `models` 文件夹(可通过 [artpath](../../server/server.cfg#自定义模型) 配置修改路径) | +| timeOn | 模型开始渲染的世界[游戏时间](SetWorldTime)(小时) | +| timeOff | 模型停止渲染的世界[游戏时间](SetWorldTime)(小时) | ## 返回值 @@ -42,7 +42,7 @@ public OnGameModeInit() :::note -- 需先在服务器配置中启用**useartwork**或**artwork.enable**选项才能使此函数生效。 +- 需先在[服务器配置](../../server/server.cfg#自定义模型)中启用**useartwork**或**artwork.enable**选项才能使此函数生效。 - 当`virtualworld`参数设置时,模型将在玩家进入指定虚拟世界时自动下载。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md index 129b46bb39f6..da00319842ba 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticPickup.md @@ -43,7 +43,7 @@ public OnGameModeInit() :::note -此函数不会返回可用于 OnPlayerPickUpPickup 等回调的拾取物 ID。若需要分配 ID,请使用[CreatePickup](CreatePickup)函数。 +此函数不会返回可用于 [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup) 等回调的拾取物 ID。若需要分配 ID,请使用[CreatePickup](CreatePickup)函数。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md index 0fde399d0496..c3ee52be1dbd 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddStaticVehicleEx.md @@ -9,7 +9,7 @@ tags: ["车辆"] 在游戏模式中添加静态车辆(模型会预加载给玩家)。 -与 AddStaticVehicle 的唯一区别:可设置车辆无人驾驶后的重生时间。 +与 [AddStaticVehicle](AddStaticVehicle) 的唯一区别:可设置车辆无人驾驶后的重生时间。 | 参数 | 说明 | | -------------------------------------- | ----------------------------------------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddVehicleComponent.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddVehicleComponent.md index 1652e3fe2438..a3576f726053 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddVehicleComponent.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddVehicleComponent.md @@ -49,7 +49,7 @@ public OnPlayerStateChange(playerid, PLAYER_STATE:newstate, PLAYER_STATE:oldstat :::warning -使用无效的组件 ID 会导致玩家游戏崩溃(该问题已在 open.mp 中修复) +使用无效的[组件 ID](../resources/carcomponentid) 会导致玩家游戏崩溃(该问题已在 open.mp 中修复) ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md index fdf86a552beb..9d153605d13e 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md @@ -14,8 +14,8 @@ tags: ["演员", "动画"] | 参数 | 说明 | | ------------------------ | ------------------------------------------------------------------------------------------------------ | | actorid | 要应用动画的演员 ID | -| const animationLibrary[] | 动画资源库名称 | -| const animationName[] | 动画名称(需在指定资源库中存在) | +| const animationLibrary[] | [动画资源库](../resources/animations)名称 | +| const animationName[] | [动画](../resources/animations)名称(需在指定资源库中存在) | | float:delta | 动画播放速度(建议使用 4.1) | | bool:loop | 是否循环播放:**true** 循环播放,**false** 单次播放 | | bool:lockX | X 轴位置锁定:**false** 在动画结束后恢复原始 X 坐标(适用于移动类动画),**true** 保持动画结束时的位置 | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md index dcc03f69f55c..6545d1d32562 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md @@ -13,7 +13,7 @@ tags: ["玩家", "动画"] | ------------------------ | ------------------------------------------------------------------------------------------------------------------- | | playerid | 需要应用动画的玩家 ID | | const animationLibrary[] | [动画资源库](../resources/animations)名称 | -| const animationName[] | 动画名称(需在指定资源库中存在) | +| const animationName[] | [动画](../resources/animations)名称(需在指定资源库中存在) | | Float:delta | 动画播放速度(建议使用 4.1) | | bool:loop | 是否循环播放:**true**循环播放,**false**单次播放 | | bool:lockX | X 轴位置锁定:**false**在动画结束后恢复原始 X 坐标(适用于移动类动画),**true**保持动画结束时的位置 | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md index 7ae8b401353f..102d401ac055 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md @@ -7,15 +7,15 @@ tags: ["玩家", "3d文本标签"] ## 描述 -将 3D 文本标签附加到玩家身上。 - -| 参数 | 说明 | -| ------------- | ---------------------------------------------------- | -| Text3D:textid | 要附加的 3D 文本标签 ID(由 Create3DTextLabel 返回) | -| playerid | 要附加标签的玩家 ID | -| Float:offsetX | 玩家坐标的 X 轴偏移量 | -| Float:offsetY | 玩家坐标的 Y 轴偏移量 | -| Float:offsetZ | 玩家坐标的 Z 轴偏移量 | +将 [3D 文本标签](Create3DTextLabel)附加到玩家身上。 + +| 参数 | 说明 | +| ------------- | ------------------------------------------------------------------------- | +| Text3D:textid | 要附加的 3D 文本标签 ID(由 [Create3DTextLabel](Create3DTextLabel) 返回) | +| playerid | 要附加标签的玩家 ID | +| Float:offsetX | 玩家坐标的 X 轴偏移量 | +| Float:offsetY | 玩家坐标的 Y 轴偏移量 | +| Float:offsetZ | 玩家坐标的 Z 轴偏移量 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToObject.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToObject.md index 1e3e8f7793b6..334c789893fb 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToObject.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToObject.md @@ -38,7 +38,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -在附加玩家视角之前,必须先创建对应的物体。 +在附加玩家视角之前,必须先[创建](CreateObject)对应的物体。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToPlayerObject.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToPlayerObject.md index 7186548a187e..f0698eefd90b 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToPlayerObject.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachCameraToPlayerObject.md @@ -7,7 +7,7 @@ tags: ["玩家", "视角"] ## 描述 -将玩家的视角附加到玩家创建的物体上。玩家在视角附加期间仍可自由操控视角,可与 MovePlayerObject 及 AttachPlayerObjectToVehicle 配合使用。 +将玩家的视角附加到玩家创建的物体上。玩家在视角附加期间仍可自由操控视角,可与 [MovePlayerObject](MovePlayerObject) 及 [AttachPlayerObjectToVehicle](AttachPlayerObjectToVehicle) 配合使用。 | 参数 | 说明 | | -------------- | ----------------------------- | @@ -38,7 +38,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -在附加玩家视角之前,必须先创建对应的玩家创建的物体。 +在附加玩家视角之前,必须先[创建](CreatePlayerObject)对应的玩家创建的物体。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md index 2885caa5e34b..5b0a395ceb0d 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToObject.md @@ -40,7 +40,7 @@ AttachObjectToObject(gObjectId, gAttachToId, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, true) :::note -- 在附加操作前必须确保两个物体都已创建 +- 在附加操作前必须确保两个物体都已[创建](CreateObject) - SA-MP 原生版本没有玩家物体版的此函数 但 open.mp 提供了[AttachPlayerObjectToObject](AttachPlayerObjectToObject) diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToVehicle.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToVehicle.md index 3f324da0f42c..23d0d261ada3 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToVehicle.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachObjectToVehicle.md @@ -7,7 +7,7 @@ tags: ["物体", "车辆"] ## 描述 -将物体附加到车辆上。 +将[物体](CreateObject)附加到[车辆](CreateVehicle)上。 | 参数 | 说明 | | --------------- | --------------------------------------------------- | @@ -36,13 +36,13 @@ AttachObjectToVehicle(objectid, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0); :::note -必须预先创建物体 +必须预先[创建](CreateObject)物体 ::: :::warning -当车辆被销毁或重置时,附加物体不会随之销毁,它们会保持在车辆消失的位置静止,并在新车辆占用该 ID 时重新附加 +当车辆被[销毁](DestroyVehicle)或[重置](../callbacks/OnVehicleSpawn)时,附加物体不会随之销毁,它们会保持在车辆消失的位置静止,并在新车辆占用该 ID 时重新附加 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToVehicle.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToVehicle.md index eb8a3d058896..08bc0941be33 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToVehicle.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AttachPlayerObjectToVehicle.md @@ -46,7 +46,7 @@ public OnPlayerStateChange(playerid, PLAYER_STATE:newstate, PLAYER_STATE:oldstat :::note -在附加操作前必须创建物体 +在附加操作前必须[创建](CreatePlayerObject)物体 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md index a655d961c3c1..74d0bd0c48c7 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/Ban.md @@ -13,7 +13,7 @@ tags: ["玩家", "管理"] 使用[BanEx](BanEx)可以指定封禁原因。 -可通过 RCON 命令`banip`和`unbanip`管理 IP 封禁(需配合[SendRconCommand](SendRconCommand)使用)。 +可通过 [RCON](../../server/RemoteConsole) 命令`banip`和`unbanip`管理 IP 封禁(需配合[SendRconCommand](SendRconCommand)使用)。 | 参数 | 说明 | | -------- | --------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehicleColor.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehicleColor.md index e012320165b4..9fbf2ddbf858 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehicleColor.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ChangeVehicleColor.md @@ -9,11 +9,11 @@ tags: ["车辆"] 修改指定车辆的主色和副色 -| 参数 | 说明 | -| --------- | ------------- | -| vehicleid | 目标车辆 ID | -| color1 | 新的主颜色 ID | -| color2 | 新的副颜色 ID | +| 参数 | 说明 | +| --------- | -------------------------------------------- | +| vehicleid | 目标车辆 ID | +| color1 | 新的主[颜色 ID](../resources/vehiclecolorid) | +| color2 | 新的副[颜色 ID](../resources/vehiclecolorid) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md index 70cff52bac95..44bb4ab0322d 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md @@ -36,7 +36,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- 当在 ApplyAnimation 函数中使用'freeze'参数冻结动画时,ClearAnimations 在动画结束后不会生效 +- 当在 [ApplyAnimation](ApplyAnimation) 函数中使用'freeze'参数冻结动画时,ClearAnimations 在动画结束后不会生效 - 与其他移出车辆方式不同,此函数会将车辆速度立即归零。玩家将出现在车辆顶部,位置与其在座位上的坐标一致 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md index 0b7a1783a459..dfaf7353e9f9 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md @@ -21,7 +21,9 @@ tags: ["演员"] ## 返回值 -成功返回演员 ID(从 0 开始计数),当达到演员数量上限(1000)时返回 INVALID_ACTOR_ID(65535)。 +成功返回演员 ID(从 0 开始计数)。 + +当达到演员数量上限(1000)时返回 INVALID_ACTOR_ID(65535)。 ## 应用示例 @@ -46,7 +48,7 @@ public OnGameModeExit() :::note - 演员实体适用于静态场景元素(如收银员、酒保),可通过[ApplyActorAnimation](ApplyActorAnimation)执行单次或循环动画 -- 默认处于无敌状态 +- 默认处于[无敌](SetActorInvulnerable)状态 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreateExplosionForPlayer.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreateExplosionForPlayer.md index a41edeb86788..599574d7e5e3 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreateExplosionForPlayer.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreateExplosionForPlayer.md @@ -7,7 +7,7 @@ tags: ["玩家"] ## 描述 -创建仅对特定玩家可见的爆炸特效。适用于隔离爆炸效果或指定虚拟世界显示。 +创建仅对特定玩家可见的爆炸特效。适用于隔离爆炸效果或指定[虚拟世界](SetPlayerVirtualWorld)显示。 | 参数 | 说明 | | ------------ | ------------------------------------------ | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md index 3069d22b37e2..34a4bc9196e9 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreateObject.md @@ -9,16 +9,16 @@ tags: ["物体"] 在三维空间指定位置生成静态/动态物体模型。 -| 参数 | 说明 | -| ------------------ | -------------------------------------------- | -| modelid | 模型 ID | -| Float:x | X 轴坐标 | -| Float:y | Y 轴坐标 | -| Float:z | Z 轴坐标 | -| Float:rotationX | X 轴旋转角度 | -| Float:rotationY | Y 轴旋转角度 | -| Float:rotationZ | Z 轴旋转角度 | -| Float:drawDistance | (可选参数)自定义渲染距离(0.0=使用默认值) | +| 参数 | 说明 | +| ------------------ | ---------------------------------------------- | +| modelid | [模型 ID](https://models.open.mp/?cat=objects) | +| Float:x | X 轴坐标 | +| Float:y | Y 轴坐标 | +| Float:z | Z 轴坐标 | +| Float:rotationX | X 轴旋转角度 | +| Float:rotationY | Y 轴旋转角度 | +| Float:rotationZ | Z 轴旋转角度 | +| Float:drawDistance | (可选参数)自定义渲染距离(0.0=使用默认值) | ## 返回值 @@ -41,7 +41,7 @@ public OnGameModeInit() :::note -全局物体数量上限为 1000(MAX_OBJECTS),建议使用[流加载插件](https://github.com/samp-incognito/samp-streamer-plugin)突破限制 +全局物体数量上限为 1000([MAX_OBJECTS](../resources/limits)),建议使用[流加载插件](https://github.com/samp-incognito/samp-streamer-plugin)突破限制 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md index 98327cff1c87..e0debeb4683d 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePickup.md @@ -7,7 +7,7 @@ tags: ["拾取物"] ## 描述 -此函数功能与 AddStaticPickup 相同,但会返回可用于后续销毁操作的拾取物 ID,并能通过 OnPlayerPickUpPickup 回调追踪拾取事件。 +此函数功能与 [AddStaticPickup](AddStaticPickup) 相同,但会返回可用于后续销毁操作的拾取物 ID,并能通过 [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup) 回调追踪拾取事件。 | 参数 | 说明 | | -------------------------------- | ------------------------------------------ | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md index 459bc3811b53..b0908c3d6f11 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerObject.md @@ -12,7 +12,7 @@ tags: ["玩家", "物体", "玩家物体"] | 参数 | 说明 | | ------------------ | -------------------------------------------------------------------------------------- | | playerid | 要为其创建物体的玩家 ID | -| modelid | 要创建的模型 ID | +| modelid | 要创建的[模型 ID](https://models.open.mp/?cat=objects) | | Float:x | 物体创建的 X 坐标 | | Float:y | 物体创建的 Y 坐标 | | Float:z | 物体创建的 Z 坐标 | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md index c568dc6051cd..96f4ce7cd167 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md @@ -59,7 +59,7 @@ public OnPlayerConnect(playerid) **已知缺陷**: -- 当 X 或 Y 坐标小于-4096.0 或大于 4096.0 时,拾取物将不可见且不会触发 OnPlayerPickUpPlayerPickup 回调 +- 当 X 或 Y 坐标小于-4096.0 或大于 4096.0 时,拾取物将不可见且不会触发 [OnPlayerPickUpPlayerPickup](../callbacks/OnPlayerPickUpPlayerPickup) 回调 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreateVehicle.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreateVehicle.md index a7fa1b11a5d0..13bfa644fe69 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreateVehicle.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreateVehicle.md @@ -7,7 +7,7 @@ tags: ["车辆"] ## 描述 -在游戏世界中动态创建车辆,可在脚本任意时刻替代 AddStaticVehicleEx 使用。 +在游戏世界中动态创建车辆,可在脚本任意时刻替代 [AddStaticVehicleEx](AddStaticVehicleEx) 使用。 | 参数 | 说明 | | -------------------------------------- | ------------------------------------------------------------ | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DeletePlayer3DTextLabel.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DeletePlayer3DTextLabel.md index b21bdce8d7cc..db0b52942dc9 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DeletePlayer3DTextLabel.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DeletePlayer3DTextLabel.md @@ -7,7 +7,7 @@ tags: ["玩家", "3D文本标签"] ## 描述 -销毁通过 CreatePlayer3DTextLabel 创建的 3D 文本标签。 +销毁通过 [CreatePlayer3DTextLabel](CreatePlayer3DTextLabel) 创建的 3D 文本标签。 | 参数 | 说明 | | ------------------- | ------------------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md index a52bc7c3e563..2e8df3916c7c 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DestroyActor.md @@ -9,11 +9,11 @@ tags: ["演员"] ## 描述 -销毁通过 CreateActor 创建的演员。 +销毁通过 [CreateActor](CreateActor) 创建的演员。 -| 参数 | 说明 | -| ------- | -------------------------------------------- | -| actorid | 要销毁的演员 ID。该 ID 由 CreateActor 返回。 | +| 参数 | 说明 | +| ------- | ----------------------------------------------------------- | +| actorid | 要销毁的演员 ID。该 ID 由 [CreateActor](CreateActor) 返回。 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md index 08032828c9e2..8ada79bda42c 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DestroyObject.md @@ -7,11 +7,11 @@ tags: ["物体"] ## 描述 -销毁通过 CreateObject 创建的物体。 +销毁通过 [CreateObject](CreateObject) 创建的物体。 -| 参数 | 说明 | -| -------- | ------------------------------------- | -| objectid | 要销毁的物体 ID,由 CreateObject 返回 | +| 参数 | 说明 | +| -------- | ----------------------------------------------------- | +| objectid | 要销毁的物体 ID,由 [CreateObject](CreateObject) 返回 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md index c57f33d60b0b..7830df2321ee 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPickup.md @@ -7,11 +7,11 @@ tags: ["拾取物"] ## 描述 -销毁通过 CreatePickup 创建的拾取物。 +销毁通过 [CreatePickup](CreatePickup) 创建的拾取物。 -| 参数 | 说明 | -| ------ | ----------------------------------------- | -| pickup | 要销毁的拾取物 ID(由 CreatePickup 返回) | +| 参数 | 说明 | +| ------ | --------------------------------------------------------- | +| pickup | 要销毁的拾取物 ID(由 [CreatePickup](CreatePickup) 返回) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPlayerObject.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPlayerObject.md index ce39f844acee..8c7b8e407b09 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPlayerObject.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DestroyPlayerObject.md @@ -9,10 +9,10 @@ tags: ["玩家", "物体", "玩家物体"] 销毁通过 [CreatePlayerObject](CreatePlayerObject) 创建的玩家专属物体。 -| 参数 | 说明 | -| -------- | ----------------------------------------------------- | -| playerid | 要销毁其玩家专属物体的玩家 ID | -| objectid | 要销毁的玩家专属物体 ID(由 CreatePlayerObject 返回) | +| 参数 | 说明 | +| -------- | --------------------------------------------------------------------------- | +| playerid | 要销毁其玩家专属物体的玩家 ID | +| objectid | 要销毁的玩家专属物体 ID(由 [CreatePlayerObject](CreatePlayerObject) 返回) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DisableInteriorEnterExits.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DisableInteriorEnterExits.md index dd2de243e7ab..9132134dabd1 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DisableInteriorEnterExits.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DisableInteriorEnterExits.md @@ -27,9 +27,8 @@ public OnGameModeInit() :::warning -此函数仅在玩家连接前调用有效(建议在 [OnGameModeInit](../callbacks/OnGameModeInit) 中使用)。已连接玩家的标记不会被移除。 - -若在调用此函数后切换游戏模式,且新游戏模式未禁用标记,已连接玩家不会重新显示标记(但新连接玩家会显示)。 +- 此函数仅在玩家连接前调用有效(建议在 [OnGameModeInit](../callbacks/OnGameModeInit) 中使用)。已连接玩家的标记不会被移除。 +- 若在调用此函数后切换游戏模式,且新游戏模式未禁用标记,已连接玩家不会重新显示标记(但新连接玩家会显示)。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md index 40b349ed27bf..bae5b3a4640d 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/FindModelFileNameFromCRC.md @@ -9,13 +9,13 @@ tags: ["自定义模型", "自定义皮肤", "简单模型"] ## 描述 -根据 CRC 校验和查找已存在的自定义皮肤或简单物体模型文件。模型文件默认存储在服务器的 `models` 目录下(通过 artpath 配置指定)。 +根据 CRC 校验和查找已存在的自定义[皮肤](AddCharModel)或简单[物体](AddSimpleModel)模型文件。模型文件默认存储在服务器的 `models` 目录下(通过 [artpath](../../server/server.cfg#自定义模型) 配置指定)。 -| 参数 | 说明 | -| ---------------------- | ---------------------------------------------- | -| crc | 自定义模型文件的 CRC 校验和 | -| output[] | 用于存储 **.dff** 文件名的数组(通过引用传递) | -| size = sizeof (output) | 需存储的字符串长度,默认值为 sizeof(output) | +| 参数 | 说明 | +| ---------------------- | ------------------------------------------------------------------------------------ | +| crc | 自定义模型文件的 [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) 校验和 | +| output[] | 用于存储 **.dff** 文件名的数组(通过引用传递) | +| size = sizeof (output) | 需存储的字符串长度,默认值为 sizeof(output) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md index e7e928ce10ae..8e484c2ef5d0 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/FindTextureFileNameFromCRC.md @@ -9,13 +9,13 @@ tags: ["自定义模型", "自定义皮肤", "简单模型"] ## 描述 -根据 CRC 校验和查找已存在的自定义皮肤或简单物体纹理文件。模型文件默认存储在服务器的 `models` 目录下(通过 artpath 配置指定)。 +根据 CRC 校验和查找已存在的自定义[皮肤](AddCharModel)或简单[物体](AddSimpleModel)纹理文件。模型文件默认存储在服务器的 `models` 目录下(通过 [artpath](../../server/server.cfg#自定义模型) 配置指定)。 -| 参数 | 说明 | -| ---------------------- | ---------------------------------------------- | -| crc | 自定义模型文件的 CRC 校验和 | -| output[] | 用于存储 **.txd** 文件名的数组(通过引用传递) | -| size = sizeof (output) | 需存储的字符串长度,默认值为 sizeof(output) | +| 参数 | 说明 | +| ---------------------- | ------------------------------------------------------------------------------------ | +| crc | 自定义模型文件的 [CRC](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) 校验和 | +| output[] | 用于存储 **.txd** 文件名的数组(通过引用传递) | +| size = sizeof (output) | 需存储的字符串长度,默认值为 sizeof(output) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ForceClassSelection.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ForceClassSelection.md index e23a96bb9959..354e8af6d250 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ForceClassSelection.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ForceClassSelection.md @@ -37,7 +37,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -当结合使用 TogglePlayerSpectating 函数时(如上例所示),此函数不会将玩家状态切换为 PLAYER_STATE_WASTED(濒死状态)。 +当结合使用 [TogglePlayerSpectating](TogglePlayerSpectating) 函数时(如上例所示),此函数不会将玩家状态切换为 PLAYER_STATE_WASTED(濒死状态)。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md index 5f6fdbcda75b..eb73a0977350 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md @@ -45,9 +45,8 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::warning -注意:游戏文本中波浪号(`~`)的数量为奇数可能导致客户端崩溃。颜色代码(如`~r~`)在超过 255 字符后使用会引发崩溃。 - -字符串末尾的空格会导致失效。例如:`"爆头 "` 会失败,应改为 `"爆头"` 或 `"爆头_"`(使用下划线替代空格)。 +- 注意:游戏文本中波浪号(`~`)的数量为奇数可能导致客户端崩溃。颜色代码(如`~r~`)在超过 255 字符后使用会引发崩溃。 +- 字符串末尾的空格会导致失效。例如:`"爆头 "` 会失败,应改为 `"爆头"` 或 `"爆头_"`(使用下划线替代空格)。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneStopFlashForAll.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneStopFlashForAll.md index 6d264f56e4bb..fe5bcae144c1 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneStopFlashForAll.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneStopFlashForAll.md @@ -9,9 +9,9 @@ tags: ["帮派区域"] 停止指定帮派区域对所有玩家的闪烁效果。 -| 参数 | 说明 | -| ------ | ------------------------------------------------- | -| zoneid | 要停止闪烁的区域 ID(由 GangZoneCreate 创建返回) | +| 参数 | 说明 | +| ------ | ------------------------------------------------------------------- | +| zoneid | 要停止闪烁的区域 ID(由 [GangZoneCreate](GangZoneCreate) 创建返回) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetAnimationName.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetAnimationName.md index db7e094de364..6d787b2232b5 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetAnimationName.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetAnimationName.md @@ -9,13 +9,13 @@ tags: [] 根据动画索引获取对应的动画库名称和动画名称。 -| 参数 | 说明 | -| ------------------ | ------------------------------------------- | -| index | 动画索引(由 GetPlayerAnimationIndex 返回) | -| animationLibrary[] | 字符串变量,用于存储动画库名称 | -| len1(数组长度) | 存储动画库名称的字符串数组长度 | -| animationName[] | 字符串变量,用于存储动画名称 | -| len2(数组长度) | 存储动画名称的字符串数组长度 | +| 参数 | 说明 | +| ------------------ | ---------------------------------------------------------------------- | +| index | 动画索引(由 [GetPlayerAnimationIndex](GetPlayerAnimationIndex) 返回) | +| animationLibrary[] | 字符串变量,用于存储动画库名称 | +| len1(数组长度) | 存储动画库名称的字符串数组长度 | +| animationName[] | 字符串变量,用于存储动画名称 | +| len2(数组长度) | 存储动画名称的字符串数组长度 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetGravity.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetGravity.md index 688691b48025..ded19a649679 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetGravity.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetGravity.md @@ -7,7 +7,7 @@ tags: [] ## 描述 -获取当前服务器的全局重力值。 +获取当前服务器的全局[重力](SetGravity)值。 ## 示例代码 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md index 8043d1184ed0..26d1d7ebce49 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md @@ -11,16 +11,16 @@ tags: ["物体"] 从物体的材质索引获取材质数据。 -| 参数 | 说明 | -| ------------------ | ---------------------------------- | -| objectid | 物体 ID | -| materialIndex | 物体的材质索引 (0 至 15) | -| &modelid | 存储模型 ID 的变量,通过引用传递 | -| textureLibrary[] | 存储纹理库名称的数组,通过引用传递 | -| textureLibrarySize | 纹理库数组的尺寸 | -| textureName[] | 存储纹理名称的数组,通过引用传递 | -| textureNameSize | 纹理名称数组的尺寸 | -| &materialColour | 存储材质颜色的变量,通过引用传递 | +| 参数 | 说明 | +| ------------------ | ------------------------------------------------------------------------ | +| objectid | 物体 ID | +| materialIndex | 物体的材质索引 (0 至 15) | +| &modelid | 存储模型 ID 的变量,通过引用传递 | +| textureLibrary[] | 存储纹理库名称的数组,通过引用传递 | +| textureLibrarySize | 纹理库数组的尺寸 | +| textureName[] | 存储[纹理](https://models.open.mp/?cat=textures)名称的数组,通过引用传递 | +| textureNameSize | 纹理名称数组的尺寸 | +| &materialColour | 存储材质颜色的变量,通过引用传递 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md index 1fcf66fd5aa1..8fadb2979f3a 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerArmour.md @@ -45,7 +45,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -尽管服务端可以设置接近无限的护甲值,但客户端最多只能显示 255。超过的值会循环计算:256 变为 0,257 变为 1,依此类推。获取的护甲值会被取整:设置 50.15 将得到 50.0 +- 尽管服务端可以设置接近无限的护甲值,但客户端最多只能显示 255。超过的值会循环计算:256 变为 0,257 变为 1,依此类推。 +- 获取的护甲值会被取整:设置 50.15 将得到 50.0 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraAspectRatio.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraAspectRatio.md index f81228dcfc15..988757882322 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraAspectRatio.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraAspectRatio.md @@ -7,7 +7,7 @@ tags: ["玩家", "视角"] ## 描述 -获取玩家当前视角的宽高比参数。 +获取玩家当前视角的[宽高比](https://en.wikipedia.org/wiki/Aspect_ratio_(image))参数。 | 参数 | 说明 | | -------- | --------------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerColor.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerColor.md index d9bbd3880816..9ac109f0126c 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerColor.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerColor.md @@ -7,7 +7,7 @@ tags: ["玩家"] ## 描述 -获取玩家昵称及雷达标记的显示颜色(仅在调用 SetPlayerColor 后生效) +获取玩家昵称及雷达标记的显示颜色(仅在调用 [SetPlayerColor](SetPlayerColor) 后生效) | 参数名 | 说明 | | -------- | --------------------- | @@ -32,7 +32,7 @@ SendClientMessage(playerid, -1, output); :::warning -若未预先调用 SetPlayerColor 设置颜色,此函数将返回 0。点击[此处](../../tutorials/colorfix)查看修复方法 +若未预先调用 [SetPlayerColor](SetPlayerColor) 设置颜色,此函数将返回 0。点击[此处](../../tutorials/colorfix)查看修复方法 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCustomSkin.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCustomSkin.md index 14ddbb62a96b..8ad18d5b12a5 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCustomSkin.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCustomSkin.md @@ -17,7 +17,7 @@ tags: ["玩家"] ## 返回值 -通过 AddCharModel 函数设置的 **newid** 参数值(若未使用自定义皮肤则返回 0) +通过 [AddCharModel](AddCharModel) 函数设置的 **newid** 参数值(若未使用自定义皮肤则返回 0) ## 示例代码 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerDrunkLevel.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerDrunkLevel.md index 21c2e76534df..eb8641104343 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerDrunkLevel.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerDrunkLevel.md @@ -7,7 +7,7 @@ tags: ["玩家"] ## 描述 -检测玩家当前的醉酒等级。当等级低于 2000 时表示清醒状态。醉酒等级会以每秒 26 点的速度自动降低,最终会稳定在 2000 点。高醉酒等级会影响玩家视角和车辆操控,玩家使用酒瓶道具时该数值会增加(可通过 SetPlayerSpecialAction 赋予酒瓶道具)。 +检测玩家当前的醉酒等级。当等级低于 2000 时表示清醒状态。醉酒等级会以每秒 26 点的速度自动降低,最终会稳定在 2000 点。高醉酒等级会影响玩家视角和车辆操控,玩家使用酒瓶道具时该数值会增加(可通过 [SetPlayerSpecialAction](SetPlayerSpecialAction) 赋予酒瓶道具)。 | 参数名 | 说明 | | -------- | ----------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerFightingStyle.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerFightingStyle.md index 065c12fbd162..83e2832ba793 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerFightingStyle.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerFightingStyle.md @@ -7,11 +7,11 @@ tags: ["玩家"] ## 描述 -获取玩家当前使用的近战战斗风格类型 +获取玩家当前使用的近战[战斗风格](../resources/fightingstyles)类型 -| 参数名 | 说明 | -| -------- | ------------------------- | -| playerid | 需要获取战斗风格的玩家 ID | +| 参数名 | 说明 | +| -------- | -------------------------------------------------------- | +| playerid | 需要获取[战斗风格](../resources/fightingstyles)的玩家 ID | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md index 5a0fe4b1558b..6c09a3400a44 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerHealth.md @@ -47,7 +47,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -服务端可设置极大生命值,但客户端最大显示值为 255(超过部分会循环计算:256→0,257→1)。生命值获取时会取整,如设置 50.15 将返回 50.0 +- 服务端可设置极大生命值,但客户端最大显示值为 255(超过部分会循环计算:256→0,257→1)。 +- 生命值获取时会取整,如设置 50.15 将返回 50.0 ::: 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 96f6bb9d0099..23f83670976f 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 @@ -40,7 +40,7 @@ public OnPlayerConnect(playerid) :::note -- PAWN 语言区分大小写,错误使用 GetPlayerIP(大写)将无法正常工作 +- PAWN 语言区分大小写,错误使用 GetPlayerI**P**(大写)将无法正常工作 - **SA-MP 服务端**:在[OnPlayerDisconnect](../callbacks/OnPlayerDisconnect)回调中使用时将返回无效 IP(255.255.255.255),建议在[OnPlayerConnect](../callbacks/OnPlayerConnect)中保存 IP 地址 - **open.mp 服务端**:支持在[OnPlayerDisconnect](../callbacks/OnPlayerDisconnect)回调中正常获取 IP diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md index ea90c97f3938..6ed52455745c 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerKeys.md @@ -9,12 +9,12 @@ tags: ["玩家"] 检测玩家当前操作的按键状态(行走/驾驶控制) -| 参数 | 说明 | -| ---------- | ----------------------------------------------------------------------------------------------------- | -| playerid | 需要检测的玩家 ID | -| &KEY:keys | 存储按键位掩码的变量(通过引用传递),用于检测特定功能键状态,详见[按键位掩码说明](../resources/keys) | -| &updown | 存储上下方向键状态(KEY_UP/KEY_DOWN) | -| &leftright | 存储左右方向键状态(KEY_LEFT/KEY_RIGHT) | +| 参数 | 说明 | +| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| playerid | 需要检测的玩家 ID | +| &KEY:keys | 存储按键[位掩码](https://en.wikipedia.org/wiki/Mask_(computing))的变量(通过引用传递),用于检测特定功能键状态,详见[按键位掩码说明](../resources/keys) | +| &updown | 存储上下方向键状态(KEY_UP/KEY_DOWN) | +| &leftright | 存储左右方向键状态(KEY_LEFT/KEY_RIGHT) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerLastShotVectors.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerLastShotVectors.md index 9c44d367ba95..7c8d05c98de9 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerLastShotVectors.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerLastShotVectors.md @@ -52,7 +52,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -- 此函数仅在**开启**延迟补偿时生效 +- 此函数仅在**开启**[延迟补偿](../../server/LagCompensation)时生效 - 若子弹未命中任何物体,命中点坐标将返回 0。当前无法计算子弹在空中的飞行距离 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerMenu.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerMenu.md index 440fe652b017..dbab93f4b289 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerMenu.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerMenu.md @@ -7,7 +7,7 @@ tags: ["玩家", "菜单"] ## 描述 -获取玩家当前正在查看的菜单 ID(由 ShowMenuForPlayer 显示) +获取玩家当前正在查看的菜单 ID(由 [ShowMenuForPlayer](ShowMenuForPlayer) 显示) | 参数名 | 说明 | | -------- | ------------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md index a06c2bf25fe2..3848836033b2 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md @@ -11,17 +11,17 @@ tags: ["玩家", "物体", "玩家物体"] 获取玩家物体指定索引的材质数据 -| 参数 | 说明 | -| ------------------ | ------------------------------------ | -| playerid | 玩家 ID | -| objectid | 玩家物体 ID | -| materialIndex | 材质索引号(0-15) | -| &modelid | 存储模型 ID 的变量(通过引用传递) | -| textureLibrary[] | 存储纹理库名称的数组(通过引用传递) | -| textureLibrarySize | 纹理库数组的缓冲区大小 | -| textureName[] | 存储纹理名称的数组(通过引用传递) | -| textureNameSize | 纹理名称数组的缓冲区大小 | -| &materialColour | 存储材质颜色的变量(通过引用传递) | +| 参数 | 说明 | +| ------------------ | -------------------------------------------------------------------------- | +| playerid | 玩家 ID | +| objectid | 玩家物体 ID | +| materialIndex | 材质索引号(0-15) | +| &modelid | 存储模型 ID 的变量(通过引用传递) | +| textureLibrary[] | 存储纹理库名称的数组(通过引用传递) | +| textureLibrarySize | 纹理库数组的缓冲区大小 | +| textureName[] | 存储[纹理](https://models.open.mp/?cat=textures)名称的数组(通过引用传递) | +| textureNameSize | 纹理名称数组的缓冲区大小 | +| &materialColour | 存储材质颜色的变量(通过引用传递) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md index 9247faa429fd..3bd47db4ff91 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPing.md @@ -7,7 +7,7 @@ tags: ["玩家"] ## 描述 -获取玩家的网络延迟(Ping)。Ping 值表示服务器与客户端之间通信的往返时间。 +获取玩家的网络[延迟](https://en.wikipedia.org/wiki/Ping_(networking_utility))(Ping)。Ping 值表示服务器与客户端之间通信的往返时间。 | 参数名 | 说明 | | -------- | ------------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPos.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPos.md index 0987071be6c0..e52dbe79eb48 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPos.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPos.md @@ -43,7 +43,7 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::warning -在[OnPlayerDisconnect](../callbacks/OnPlayerDisconnect)和 OnPlayerRequestClass 回调中使用时可能返回不可靠值(因玩家尚未生成) +在[OnPlayerDisconnect](../callbacks/OnPlayerDisconnect)和 [OnPlayerRequestClass](../callbacks/OnPlayerRequestClass) 回调中使用时可能返回不可靠值(因玩家尚未生成) ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md index a6a8979a5d11..871655dd7aad 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md @@ -15,9 +15,7 @@ tags: ["玩家"] ## 返回值 -返回玩家的[皮肤 ID](../resources/skins) - -**0** 表示获取失败(玩家无效) +返回玩家的[皮肤 ID](../resources/skins)。**0** 表示获取失败(玩家无效) ## 示例代码 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSpecialAction.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSpecialAction.md index b20c3dca0a7e..0d77e222a688 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSpecialAction.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSpecialAction.md @@ -7,7 +7,7 @@ tags: ["玩家"] ## 描述 -获取玩家当前激活的特殊动作状态 +获取玩家当前激活的[特殊动作](../resources/specialactions)状态 | 参数名 | 说明 | | -------- | ----------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerState.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerState.md index c831ddf66378..21ff3010fdbd 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerState.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerState.md @@ -7,7 +7,7 @@ tags: ["玩家"] ## 描述 -获取玩家当前的游戏状态 +获取玩家当前的游戏[状态](../resources/playerstates) | 参数名 | 说明 | | -------- | --------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVirtualWorld.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVirtualWorld.md index 7f4564117657..a0629599906a 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVirtualWorld.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerVirtualWorld.md @@ -37,7 +37,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -虚拟世界与室内空间(Interior)是两个独立的概念 +虚拟世界与[室内空间](GetPlayerInterior)(Interior)是两个独立的概念 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeapon.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeapon.md index 849603b5149f..7d35a76d6064 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeapon.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeapon.md @@ -15,7 +15,7 @@ tags: ["玩家"] ## 返回值 -玩家当前持有的武器 ID。若指定玩家不存在,返回 **-1** +玩家当前持有的[武器](../resources/weaponids) ID。若指定玩家不存在,返回 **-1** ## 示例代码 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeaponState.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeaponState.md index 690f41534b43..c72469387f34 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeaponState.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeaponState.md @@ -7,11 +7,11 @@ tags: ["玩家"] ## 描述 -获取指定玩家武器的当前状态信息 +获取指定玩家武器的当前[状态](../resources/weaponstates)信息 -| 参数 | 说明 | -| -------- | ------------------------- | -| playerid | 需要获取武器状态的玩家 ID | +| 参数 | 说明 | +| -------- | ------------------------------------------------------ | +| playerid | 需要获取[武器状态](../resources/weaponstates)的玩家 ID | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsString.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsString.md index 706cb2457c4e..488136d4c4b6 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsString.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetServerVarAsString.md @@ -7,7 +7,7 @@ tags: [] :::warning -此函数自 0.3.7 R2 版本起已弃用,请使用 GetConsoleVarAsString +此函数自 0.3.7 R2 版本起已弃用,请使用 [GetConsoleVarAsString](GetConsoleVarAsString) ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleDamageStatus.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleDamageStatus.md index 028cdd944590..b06bcd08e412 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleDamageStatus.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleDamageStatus.md @@ -15,13 +15,13 @@ tags: ["车辆"] 获取车辆的损坏状态信息 -| 参数 | 说明 | -| --------------------------- | -------------------------------------- | -| vehicleid | 要获取损坏状态的车辆 ID | -| VEHICLE_PANEL_STATUS:panels | 存储面板损坏数据的变量(通过引用传递) | -| VEHICLE_DOOR_STATUS:doors | 存储车门损坏数据的变量(通过引用传递) | -| VEHICLE_LIGHT_STATUS:lights | 存储车灯损坏数据的变量(通过引用传递) | -| VEHICLE_TYRE_STATUS:tyres | 存储轮胎损坏数据的变量(通过引用传递) | +| 参数 | 说明 | +| ------------------------------------------------------- | -------------------------------------- | +| vehicleid | 要获取损坏状态的车辆 ID | +| VEHICLE_PANEL_STATUS:[panels](../resources/panelstates) | 存储面板损坏数据的变量(通过引用传递) | +| VEHICLE_DOOR_STATUS:[doors](../resources/doorstates) | 存储车门损坏数据的变量(通过引用传递) | +| VEHICLE_LIGHT_STATUS:[lights](../resources/lightstates) | 存储车灯损坏数据的变量(通过引用传递) | +| VEHICLE_TYRE_STATUS:[tyres](../resources/tirestates) | 存储轮胎损坏数据的变量(通过引用传递) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleModel.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleModel.md index d8e95d492849..25c4de7e202b 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleModel.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleModel.md @@ -7,7 +7,7 @@ tags: ["车辆"] ## 描述 -获取指定车辆的模型 ID。 +获取指定车辆的[模型 ID](../resources/vehicleid)。 | 参数 | 说明 | | --------- | --------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleModelInfo.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleModelInfo.md index 8a1f24908f36..f3333869cdf2 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleModelInfo.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleModelInfo.md @@ -11,7 +11,7 @@ tags: ["车辆"] | 参数 | 说明 | | --------------------------- | ---------------------------------------------------------- | -| vehiclemodel | 需要查询的车辆模型 ID | +| vehiclemodel | 需要查询的[车辆模型](../resources/vehicleid) ID | | VEHICLE_MODEL_INFO:infotype | 需要获取的[信息类型](../resources/vehicleinformationtypes) | | &Float:x | 用于存储 X 轴数据的浮点变量 | | &Float:y | 用于存储 Y 轴数据的浮点变量 | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md index 1f4aa4660d0f..09ae006e4bba 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotationQuat.md @@ -7,7 +7,7 @@ tags: ["车辆"] ## 描述 -获取车辆基于四元数(Quaternion)的三维旋转参数。 +获取车辆基于[四元数](https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation)(Quaternion)的三维旋转参数。 | 参数 | 说明 | | --------- | --------------------------------------------- | @@ -41,7 +41,7 @@ GetVehicleRotationQuat(vehicleid, w, x, y, z); :::note -此函数没有对应的设置方法(只能通过 SetVehicleZAngle 设置 Z 轴角度) +此函数没有对应的设置方法(只能通过 SetVehicleZAngle 设置 [Z 轴角度](SetVehicleZAngle)) ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetWeaponName.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetWeaponName.md index 147dcd41c905..186cfe87d440 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetWeaponName.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetWeaponName.md @@ -9,11 +9,11 @@ tags: [] 获取指定武器的名称。 -| 参数 | 说明 | -| --------------------- | ----------------------------------------------------- | -| WEAPON:weaponid | 武器的 ID 编号 | -| weapon[] | 存储武器名称的数组(按引用传递) | -| len = sizeof (weapon) | 应存储的武器名称最大长度(通常使用 sizeof(name)获取) | +| 参数 | 说明 | +| --------------------- | ---------------------------------------------------------- | +| WEAPON:weaponid | [武器](../resources/weaponids)的 ID 编号 | +| weapon[] | 存储[武器](../resources/weaponids)名称的数组(按引用传递) | +| len = sizeof (weapon) | 应存储的武器名称最大长度(通常使用 sizeof(name)获取) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/HideMenuForPlayer.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/HideMenuForPlayer.md index 2b911e7d186e..9114bf60988b 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/HideMenuForPlayer.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/HideMenuForPlayer.md @@ -9,10 +9,10 @@ tags: ["玩家", "菜单"] 隐藏指定玩家的菜单。 -| 参数 | 说明 | -| ----------- | ---------------------------------------------------------------------------------------------------------------- | -| Menu:menuid | 要隐藏的菜单 ID。由 CreateMenu 生成并传递给[OnPlayerSelectedMenuRow](../callbacks/OnPlayerSelectedMenuRow)回调。 | -| playerid | 需要隐藏菜单的玩家 ID | +| 参数 | 说明 | +| ----------- | ------------------------------------------------------------------------------------------------------------------------------ | +| Menu:menuid | 要隐藏的菜单 ID。由 [CreateMenu](CreateMenu) 生成并传递给[OnPlayerSelectedMenuRow](../callbacks/OnPlayerSelectedMenuRow)回调。 | +| playerid | 需要隐藏菜单的玩家 ID | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsObjectMaterialSlotUsed.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsObjectMaterialSlotUsed.md index a637c251b78f..14884b5c7c25 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsObjectMaterialSlotUsed.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsObjectMaterialSlotUsed.md @@ -21,7 +21,9 @@ tags: ["物体"] 返回材质槽位使用类型: `0` - 未使用 + `1` - 材质贴图 + `2` - 文本贴图 ## 示例 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerInRaceCheckpoint.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerInRaceCheckpoint.md index 67decd153d1c..a6a7d4cc572d 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerInRaceCheckpoint.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerInRaceCheckpoint.md @@ -7,7 +7,7 @@ tags: ["玩家", "检查点", "竞速检查点"] ## 描述 -检测玩家是否处于通过 SetPlayerRaceCheckpoint 设置的竞速检查点范围内 +检测玩家是否处于通过 [SetPlayerRaceCheckpoint](SetPlayerRaceCheckpoint) 设置的竞速检查点范围内 | 参数名 | 说明 | | -------- | ----------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md index 56d3d8268686..548912821e0e 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsPlayerStreamedIn.md @@ -33,9 +33,8 @@ if (IsPlayerStreamedIn(playerid, 0)) :::note -**SA-MP 服务器:** 玩家距离超过 200 米时自动流卸载(参见[server.cfg](../../server/server.cfg) - **stream_distance**) - -**open.mp 服务器:** 玩家距离超过 200 米时自动流卸载(参见[config.json](../../server/config.json) - **network.stream_radius**) +- **SA-MP 服务器:** 玩家距离超过 200 米时自动流卸载(参见[server.cfg](../../server/server.cfg) - **stream_distance**) +- **open.mp 服务器:** 玩家距离超过 200 米时自动流卸载(参见[config.json](../../server/config.json) - **network.stream_radius**) ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsVehicleDead.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsVehicleDead.md index 130a6bd1637f..eb12f3bd4550 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsVehicleDead.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsVehicleDead.md @@ -38,4 +38,4 @@ else ## 相关函数 -- [`SetVehicleDead`](SetVehicleDead): 设置车辆损毁状态 +- [SetVehicleDead](SetVehicleDead): 设置车辆损毁状态 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsVehicleSirenEnabled.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsVehicleSirenEnabled.md index 29b6c09d7789..519c2621f043 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsVehicleSirenEnabled.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/IsVehicleSirenEnabled.md @@ -38,5 +38,5 @@ else ## 相关函数 -- [`SetVehicleParamsSirenState`](SetVehicleParamsSirenState): 设置车辆警报器状态 -- [`ToggleVehicleSirenEnabled`](ToggleVehicleSirenEnabled): 切换车辆警报器状态 +- [SetVehicleParamsSirenState](SetVehicleParamsSirenState): 设置车辆警报器状态 +- [ToggleVehicleSirenEnabled](ToggleVehicleSirenEnabled): 切换车辆警报器状态 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/KillTimer.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/KillTimer.md index 923a6970c6d1..dc29bc86a079 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/KillTimer.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/KillTimer.md @@ -11,9 +11,9 @@ tags: ["定时器"] ## 参数说明 -| 参数名 | 说明 | -| ------- | --------------------------------------------------- | -| timerid | 要终止的定时器 ID(由 SetTimer 或 SetTimerEx 返回) | +| 参数名 | 说明 | +| ------- | ----------------------------------------------------------------------------- | +| timerid | 要终止的定时器 ID(由 [SetTimer](SetTimer) 或 [SetTimerEx](SetTimerEx) 返回) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ManualVehicleEngineAndLights.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ManualVehicleEngineAndLights.md index bd0a6e2f7cc4..3e569e0de872 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ManualVehicleEngineAndLights.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ManualVehicleEngineAndLights.md @@ -7,7 +7,7 @@ tags: ["车辆"] ## 描述 -需在玩家首次连接前(通常在`OnGameModeInit`回调中)调用此函数,通知所有客户端将由脚本完全控制车辆引擎和灯光系统。启用后将阻止游戏自动执行以下行为: +需在玩家首次连接前(通常在[OnGameModeInit](../callbacks/OnGameModeInit)回调中)调用此函数,通知所有客户端将由脚本完全控制车辆引擎和灯光系统。启用后将阻止游戏自动执行以下行为: - 玩家进入/离开车辆时自动开关引擎 - 环境光线变暗时自动开启车灯 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md index c9826de66bb3..1fa8d68ef04f 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/MoveObject.md @@ -7,7 +7,7 @@ tags: ["物体"] ## 描述 -用于将物体以指定速度移动到新位置的函数。玩家/车辆将在物体移动时附着其上 +用于将[物体](CreateObject)以指定速度移动到新位置的函数。玩家/车辆将在物体移动时附着其上 | 参数 | 说明 | | --------------- | ------------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md index 6edfcb348227..0ab2e331a4f4 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/MovePlayerObject.md @@ -7,7 +7,7 @@ tags: ["玩家"] ## 描述 -用于移动玩家专属物体并支持旋转的函数。玩家/车辆将在物体移动时附着其上 +用于移动[玩家专属物体](CreatePlayerObject)并支持旋转的函数。玩家/车辆将在物体移动时附着其上 | 参数 | 说明 | | --------------- | ------------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_GetConnectedTime.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_GetConnectedTime.md index 6bc5968001bb..715f1928fc4d 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_GetConnectedTime.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_GetConnectedTime.md @@ -38,7 +38,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -该返回值在通过 RCON 命令"gmx"切换游戏模式时不会被重置 +该返回值在通过 RCON 命令"[gmx](../../server/ControllingServer#rcon-命令)"切换游戏模式时不会被重置 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerPlaySound.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerPlaySound.md index 620ab2522296..29fcb3a81575 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerPlaySound.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerPlaySound.md @@ -7,7 +7,7 @@ tags: ["玩家"] ## 描述 -用于为特定玩家播放指定音效 +用于为特定玩家播放指定[音效](../resources/sound-ids) | 参数 | 说明 | | -------- | ----------------------------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md index decfa6abca4e..ed85965744dd 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectatePlayer.md @@ -36,8 +36,8 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::warning -- 调用顺序至关重要!必须先使用 TogglePlayerSpectating 启用观战模式 -- 观战者与被观战者必须处于相同虚拟世界和室内环境 +- 调用顺序至关重要!必须先使用 [TogglePlayerSpectating](TogglePlayerSpectating) 启用观战模式 +- 观战者与被观战者必须处于相同[虚拟世界](SetPlayerVirtualWorld)和[室内环境](SetPlayerInterior) ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md index eca0f9cfca7d..3d3a0cb3f864 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerSpectateVehicle.md @@ -17,7 +17,7 @@ tags: ["玩家", "车辆"] ## 返回值 -**true** - 指令执行成功(注意:未启用观战模式时也会返回成功,但实际无效,必须先调用 TogglePlayerSpectating) +**true** - 指令执行成功(注意:未启用观战模式时也会返回成功,但实际无效,必须先调用 [TogglePlayerSpectating](TogglePlayerSpectating)) **false** - 执行失败(玩家/车辆不存在或参数无效) @@ -32,7 +32,7 @@ PlayerSpectateVehicle(playerid, vehicleid); // 开始观察指定车辆 :::warning -- 调用顺序强制要求:必须先使用 TogglePlayerSpectating 启用观战状态 +- 调用顺序强制要求:必须先使用 [TogglePlayerSpectating](TogglePlayerSpectating) 启用观战状态 - 观战者与被观战车辆必须处于相同室内空间和虚拟世界 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md index 6c6699240a9d..c436935361e0 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md @@ -37,7 +37,7 @@ public OnPlayerConnect(playerid) :::note -当使用[PlayerTextDrawSetOutline](PlayerTextDrawSetOutline)且尺寸参数>0 时,轮廓颜色将与 PlayerTextDrawBackgroundColor 设置的颜色一致修改颜色值会影响 PlayerTextDrawColor 函数设置的颜色效果 +当使用[PlayerTextDrawSetOutline](PlayerTextDrawSetOutline)且尺寸参数>0 时,轮廓颜色将与 PlayerTextDrawBackgroundColor 设置的颜色一致修改颜色值会影响 [PlayerTextDrawColor](PlayerTextDrawColor) 函数设置的颜色效果 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColour.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColour.md index e766838922c0..7eb85ffc3dc3 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColour.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColour.md @@ -40,7 +40,7 @@ public OnPlayerConnect(playerid) :::note - 当使用[PlayerTextDrawSetOutline](PlayerTextDrawSetOutline)且尺寸参数>0 时,轮廓颜色将与 PlayerTextDrawBackgroundColour 设置的颜色一致 -- 修改颜色值会影响 PlayerTextDrawColour 函数设置的颜色效果 +- 修改颜色值会影响 [PlayerTextDrawColour](PlayerTextDrawColour) 函数设置的颜色效果 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColor.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColor.md index fbecb1ac0697..3c57ab4c2165 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColor.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColor.md @@ -7,7 +7,7 @@ tags: ["玩家", "文本绘图", "玩家文本绘图"] ## 描述 -设置玩家文本绘图方框的颜色(需要先使用 PlayerTextDrawUseBox 启用方框)。 +设置玩家文本绘图方框的颜色(需要先使用 [PlayerTextDrawUseBox](PlayerTextDrawUseBox) 启用方框)。 | 参数 | 说明 | | ----------------- | ---------------------------------------------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColour.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColour.md index 5b0c5ade7a7c..a351897c46e6 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColour.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBoxColour.md @@ -9,7 +9,7 @@ tags: ["玩家", "文本绘图", "玩家文本绘图"] ## 描述 -设置玩家文本绘图方框的颜色(需要先使用 PlayerTextDrawUseBox 启用方框)。 +设置玩家文本绘图方框的颜色(需要先使用 [PlayerTextDrawUseBox](PlayerTextDrawUseBox) 启用方框)。 | 参数 | 说明 | | ----------------- | ---------------------------------------------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColor.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColor.md index 977136ce4e8a..020e06f2783b 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColor.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColor.md @@ -38,13 +38,13 @@ public OnPlayerConnect(playerid) :::tip -可在文本内容中使用游戏文本颜色代码 +可在文本内容中使用[游戏文本颜色代码](../resources/gametextstyles) ::: :::note -修改颜色后需调用 PlayerTextDrawShow 重新显示文本绘图才能生效 +修改颜色后需调用 [PlayerTextDrawShow](PlayerTextDrawShow) 重新显示文本绘图才能生效 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColour.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColour.md index 8bd618d6c6d2..edcbc9063655 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColour.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawColour.md @@ -40,13 +40,13 @@ public OnPlayerConnect(playerid) :::tip -可在文本内容中使用游戏文本颜色代码(例如 `~r~` 红色、`~g~` 绿色、`~b~` 蓝色) +可在文本内容中使用[游戏文本颜色代码](../resources/gametextstyles) ::: :::note -修改颜色后需调用 PlayerTextDrawShow 重新显示文本绘图才能生效 +修改颜色后需调用 [PlayerTextDrawShow](PlayerTextDrawShow) 重新显示文本绘图才能生效 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetPreviewVehCol.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetPreviewVehCol.md index a4b817f7838e..9e6e440e9ad1 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetPreviewVehCol.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetPreviewVehCol.md @@ -9,12 +9,12 @@ tags: ["玩家", "文本绘图", "玩家文本绘图"] 设置玩家文本绘图 3D 预览中显示的车辆主副配色(需预览模型为车辆) -| 参数 | 说明 | -| ----------------- | ------------------------- | -| playerid | 要修改的玩家 ID | -| PlayerText:textid | 要修改的玩家文本绘图的 ID | -| colour1 | 车辆主颜色 ID | -| colour2 | 车辆副颜色 ID | +| 参数 | 说明 | +| ----------------- | -------------------------------------------- | +| playerid | 要修改的玩家 ID | +| PlayerText:textid | 要修改的玩家文本绘图的 ID | +| colour1 | 车辆主[颜色 ID](../resources/vehiclecolorid) | +| colour2 | 车辆副[颜色 ID](../resources/vehiclecolorid) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetPreviewVehicleColours.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetPreviewVehicleColours.md index 1e89333d77c8..b010fd7f9d97 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetPreviewVehicleColours.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawSetPreviewVehicleColours.md @@ -11,12 +11,12 @@ tags: ["玩家", "文本绘图", "玩家文本绘图"] 设置玩家文本绘图 3D 预览中显示的车辆主副配色(需预览模型为车辆) -| 参数 | 说明 | -| ----------------- | ------------------------- | -| playerid | 要修改的玩家 ID | -| PlayerText:textid | 要修改的玩家文本绘图的 ID | -| colour1 | 车辆主颜色 ID | -| colour2 | 车辆副颜色 ID | +| 参数 | 说明 | +| ----------------- | -------------------------------------------- | +| playerid | 要修改的玩家 ID | +| PlayerText:textid | 要修改的玩家文本绘图的 ID | +| colour1 | 车辆主[颜色 ID](../resources/vehiclecolorid) | +| colour2 | 车辆副[颜色 ID](../resources/vehiclecolorid) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md index 179c581afca6..978ce292bf4b 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawTextSize.md @@ -39,23 +39,13 @@ public OnPlayerConnect(playerid) :::note -坐标含义根据对齐方式变化: - -- 对齐方式 1(左对齐): width/height 表示方框右边界绝对坐标 -- 对齐方式 2(居中): 需交换 width/height 参数,width 表示方框总宽度 -- 对齐方式 3(右对齐): width/height 表示方框左边界起始坐标 - -特殊字体处理: - -- 使用字体类型 4(精灵图)和 5(模型预览)时,width/height 参数将转换为宽高偏移量 - -坐标系原点: - -- 方框坐标系原点位于 TextDrawCreate 坐标点向下 10.0 单位、向右 5.0 单位的位置 - -交互区域定义: - -- 此函数定义的区域将作为[PlayerTextDrawSetSelectable](PlayerTextDrawSetSelectable)的可点击区域 +- 坐标含义根据[对齐方式](PlayerTextDrawAlignment)变化: + - 对齐方式 1(左对齐): width/height 表示方框右边界绝对坐标 + - 对齐方式 2(居中): 需交换 width/height 参数,width 表示方框总宽度 + - 对齐方式 3(右对齐): width/height 表示方框左边界起始坐标 +- 特殊字体处理:使用[字体类型](PlayerTextDrawFont) 4(精灵图)和 5(模型预览)时,width/height 参数将转换为宽高偏移量 +- 坐标系原点:方框坐标系原点位于 TextDrawCreate 坐标点向下 10.0 单位、向右 5.0 单位的位置 +- 交互区域定义:此函数定义的区域将作为[PlayerTextDrawSetSelectable](PlayerTextDrawSetSelectable)的可点击区域 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/RedirectDownload.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/RedirectDownload.md index 71ecd6e3c41f..e87270e85f63 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/RedirectDownload.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/RedirectDownload.md @@ -9,7 +9,7 @@ tags: ["自定义模型", "自定义皮肤", "简单模型"] ## 描述 -将玩家通过 AddCharModel 或 AddSimpleModel 请求的自定义模型下载重定向到指定的 HTTP 网页。 +将玩家通过 [AddCharModel](AddCharModel) 或 [AddSimpleModel](AddSimpleModel) 请求的自定义模型下载重定向到指定的 HTTP 网页。 ## 参数 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md index df65172cee3a..9ca8ae4fd625 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/RemoveBuildingForPlayer.md @@ -9,14 +9,14 @@ tags: ["玩家"] 为单个玩家在指定范围内移除圣安地列斯的标准模型。 -| 参数 | 说明 | -| ------------- | ---------------------------------------------- | -| playerid | 需要移除物体的玩家 ID | -| modelid | 要移除的模型 ID | -| Float:centerX | 移除物体范围的 X 轴中心坐标 | -| Float:centerY | 移除物体范围的 Y 轴中心坐标 | -| Float:centerZ | 移除物体范围的 Z 轴中心坐标 | -| Float:radius | 以指定坐标为中心,移除该模型物体的球形半径范围 | +| 参数 | 说明 | +| ------------- | ------------------------------------------------------ | +| playerid | 需要移除物体的玩家 ID | +| modelid | 要移除的[模型 ID](https://models.open.mp/?cat=objects) | +| Float:centerX | 移除物体范围的 X 轴中心坐标 | +| Float:centerY | 移除物体范围的 Y 轴中心坐标 | +| Float:centerZ | 移除物体范围的 Z 轴中心坐标 | +| Float:radius | 以指定坐标为中心,移除该模型物体的球形半径范围 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerMapIcon.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerMapIcon.md index c07ef94129cd..129ef620ef18 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerMapIcon.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/RemovePlayerMapIcon.md @@ -7,12 +7,12 @@ tags: ["玩家"] ## 描述 -移除玩家之前通过 SetPlayerMapIcon 设置的地图图标。 +移除玩家之前通过 [SetPlayerMapIcon](SetPlayerMapIcon) 设置的地图图标。 -| 参数名 | 说明 | -| -------- | ------------------------------------------------------- | -| playerid | 需要移除图标的玩家 ID | -| iconid | 要移除的图标 ID(即 SetPlayerMapIcon 函数的第二个参数) | +| 参数名 | 说明 | +| -------- | --------------------------------------------------------------------------- | +| playerid | 需要移除图标的玩家 ID | +| iconid | 要移除的图标 ID(即 [SetPlayerMapIcon](SetPlayerMapIcon) 函数的第二个参数) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md index 1e495899c541..808e483178de 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SHA256_PassHash.md @@ -17,12 +17,12 @@ tags: ["加密"] 使用 SHA-256 哈希算法对密码进行哈希处理(含盐值)。输出固定为 256 位(即 64 个 Pawn 单元长度)。 -| 参数 | 说明 | -| ---------------------- | ---------------------------- | -| const password[] | 待哈希的原始密码字符串 | -| const salt[] | 用于哈希计算的盐值 | -| output[] | 输出的大写十六进制哈希字符串 | -| size = sizeof (output) | 输出缓冲区的最大容量 | +| 参数 | 说明 | +| ---------------------- | ----------------------------------------------------------------------- | +| const password[] | 待哈希的原始密码字符串 | +| const salt[] | 用于哈希计算的[盐值](https://en.wikipedia.org/wiki/Salt_(cryptography)) | +| output[] | 输出的大写十六进制哈希字符串 | +| size = sizeof (output) | 输出缓冲区的最大容量 | ## 返回值 @@ -50,11 +50,8 @@ public OnGameModeInit() :::tip -盐值会附加在密码末尾(如密码'foo'和盐'bar'会组合成'foobar') - -- 盐值应为每个玩家生成随机唯一值 -- 盐值长度建议与哈希值相当 -- 需将盐值与哈希值同时存储于玩家账户数据 +- 盐值会附加在密码末尾(如密码'foo'和盐'bar'会组合成'foobar') +- 盐值应为每个玩家生成随机唯一值。盐值长度建议与哈希值相当。需将盐值与哈希值同时存储于玩家账户数据 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendClientCheck.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendClientCheck.md index 7e3f088b3bb6..5533ce0b4868 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendClientCheck.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendClientCheck.md @@ -54,9 +54,8 @@ public OnClientCheckResponse(playerid, actionid, memaddr, retndata) :::warning -**SA:MP 服务器**:此函数仅在滤镜脚本中生效 - -**Open Multiplayer 服务器**:此函数在游戏模式/滤镜脚本中均可正常使用 +- **SA-MP 服务器**:此函数仅在滤镜脚本中生效 +- **open.mp 服务器**:此函数在游戏模式/滤镜脚本中均可正常使用 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md index d56c0be5f253..cd95b27a7131 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendClientMessage.md @@ -7,7 +7,7 @@ tags: [] ## 描述 -此函数向指定玩家的聊天框发送带有设定颜色的消息。聊天框中的整行文字将显示为设定颜色,除非使用了颜色嵌入技术。 +此函数向指定玩家的聊天框发送带有设定颜色的消息。聊天框中的整行文字将显示为设定颜色,除非使用了[颜色嵌入](../resources/colorslist#颜色嵌入)技术。 | 参数 | 说明 | | ---------------- | --------------------------------------- | @@ -52,8 +52,8 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::tip -- 可使用颜色嵌入技术在一条消息中显示多种颜色 -- 使用-1 作为颜色值时,消息将显示为白色(十六进制表示为 0xFFFFFFFF) +- 可使用[颜色嵌入](../resources/colorslist#颜色嵌入)技术在一条消息中显示多种颜色 +- 使用-1 作为颜色值时,消息将显示为白色([十六进制表示](../resources/hexcolors)为 0xFFFFFFFF) ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md index db3cc95c442f..f659e2c34a09 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md @@ -9,11 +9,11 @@ tags: [] 在全屏右侧的击杀信息栏添加死亡记录。 -| 参数名 | 说明 | -| ------ | ----------------------------------------------------------------------------------------------- | -| killer | 凶手玩家 ID(可使用 INVALID_PLAYER_ID 表示无凶手) | -| killee | 死亡玩家的 ID | -| weapon | 死亡原因(不一定是武器 ID),可使用特殊图标(ICON_CONNECT 连接图标和 ICON_DISCONNECT 断开图标) | +| 参数名 | 说明 | +| ------ | ------------------------------------------------------------------------------------------------------------------------- | +| killer | 凶手玩家 ID(可使用 INVALID_PLAYER_ID 表示无凶手) | +| killee | 死亡玩家的 ID | +| weapon | [死亡原因](../resources/weaponids)(不一定是武器 ID),可使用特殊图标(ICON_CONNECT 连接图标和 ICON_DISCONNECT 断开图标) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessageToPlayer.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessageToPlayer.md index bcd6280b1511..90d7b29edbbc 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessageToPlayer.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessageToPlayer.md @@ -9,12 +9,12 @@ tags: ["玩家"] 向指定玩家屏幕右侧的击杀信息栏添加死亡记录 -| 参数名 | 说明 | -| -------- | ----------------------------------------------------------------------------------------------- | -| playerid | 接收死亡信息的玩家 ID | -| killer | 凶手玩家 ID(可使用 INVALID_PLAYER_ID 表示无凶手) | -| killee | 死亡玩家的 ID | -| weapon | 死亡原因(不一定是武器 ID),可使用特殊图标(ICON_CONNECT 连接图标和 ICON_DISCONNECT 断开图标) | +| 参数名 | 说明 | +| -------- | ------------------------------------------------------------------------------------------------------------------------- | +| playerid | 接收死亡信息的玩家 ID | +| killer | 凶手玩家 ID(可使用 INVALID_PLAYER_ID 表示无凶手) | +| killee | 死亡玩家的 ID | +| weapon | [死亡原因](../resources/weaponids)(不一定是武器 ID),可使用特殊图标(ICON_CONNECT 连接图标和 ICON_DISCONNECT 断开图标) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendRconCommand.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendRconCommand.md index ab8584b8a9b8..ed0437582200 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendRconCommand.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SendRconCommand.md @@ -9,10 +9,10 @@ tags: ["管理"] 发送 RCON(远程控制台)命令 -| 参数 | 说明 | -| ---------------- | -------------------------- | -| const format[] | 需要执行的 RCON 命令 | -| OPEN_MP_TAGS:... | 不定数量的任意标签类型参数 | +| 参数 | 说明 | +| ---------------- | ---------------------------------------------------------------- | +| const format[] | 需要执行的 [RCON 命令](../../server/ControllingServer#rcon-命令) | +| OPEN_MP_TAGS:... | 不定数量的任意标签类型参数 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md index 264a83a43421..efcb7c3545da 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md @@ -11,10 +11,10 @@ tags: ["演员"] 设置演员的朝向角度。 -| 参数 | 说明 | -| ----------- | ------------------------------------------------ | -| actorid | 要设置朝向角度的演员 ID,由 CreateActor 函数返回 | -| Float:angle | 要设置的朝向角度值(单位:度) | +| 参数 | 说明 | +| ----------- | --------------------------------------------------------------- | +| actorid | 要设置朝向角度的演员 ID,由 [CreateActor](CreateActor) 函数返回 | +| Float:angle | 要设置的朝向角度值(单位:度) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md index 36144257ec60..8ae653b42050 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md @@ -11,12 +11,12 @@ tags: ["演员"] 设置演员的坐标位置。 -| 参数 | 说明 | -| ------- | ------------------------------------------------ | -| actorid | 要设置坐标位置的演员 ID,由 CreateActor 函数返回 | -| Float:x | X 坐标值 | -| Float:y | Y 坐标值 | -| Float:z | Z 坐标值 | +| 参数 | 说明 | +| ------- | --------------------------------------------------------------- | +| actorid | 要设置坐标位置的演员 ID,由 [CreateActor](CreateActor) 函数返回 | +| Float:x | X 坐标值 | +| Float:y | Y 坐标值 | +| Float:z | Z 坐标值 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorVirtualWorld.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorVirtualWorld.md index 8e9881ad4e09..1c145eb54ba9 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorVirtualWorld.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorVirtualWorld.md @@ -11,10 +11,10 @@ tags: ["演员"] 设置演员的虚拟世界。只有处于相同虚拟世界的玩家才能看到该演员。 -| 参数 | 说明 | -| ------------ | -------------------------------------------------- | -| actorid | 要设置虚拟世界的演员 ID(由 CreateActor 函数返回) | -| virtualWorld | 演员所属的虚拟世界 ID | +| 参数 | 说明 | +| ------------ | ----------------------------------------------------------------- | +| actorid | 要设置虚拟世界的演员 ID(由 [CreateActor](CreateActor) 函数返回) | +| virtualWorld | 演员所属的虚拟世界 ID | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md index 8859561deba0..94625321e991 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md @@ -9,14 +9,14 @@ tags: ["物体"] 使用游戏中其他模型的纹理替换指定物体的材质。 -| 参数 | 说明 | -| ---------------------- | ------------------------------------------------------------------------ | -| objectid | 要修改的物体 ID | -| materialIndex | 要修改的材质索引(0-15) | -| modelid | 包含替换纹理的模型 ID(0 表示透明通道,-1 表示仅修改材质颜色不改变纹理) | -| const textureLibrary[] | 包含替换纹理的 txd 文件名称(不需要时使用"none") | -| const textureName[] | 要使用的替换纹理名称(不需要时使用"none") | -| materialColour | 要设置的材质颜色(**ARGB** 格式的整型或十六进制值,**0** 表示保留原色) | +| 参数 | 说明 | +| ---------------------- | ---------------------------------------------------------------------------------- | +| objectid | 要修改的物体 ID | +| materialIndex | 要修改的材质索引(0-15) | +| modelid | 包含替换纹理的模型 ID(0 表示透明通道,-1 表示仅修改材质颜色不改变纹理) | +| const textureLibrary[] | 包含替换纹理的 txd 文件名称(不需要时使用"none") | +| const textureName[] | 要使用的替换[纹理](https://models.open.mp/?cat=textures)名称(不需要时使用"none") | +| materialColour | 要设置的材质颜色(**ARGB** 格式的整型或十六进制值,**0** 表示保留原色) | ## 返回值 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 4775281d03b3..2014ef08d0c2 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 @@ -55,8 +55,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -必须使用 **ARGB** 颜色格式(不同于客户端消息使用的 RGBA 格式) -同一物体最多只能应用 16 次材质文本修改 +- 必须使用 **ARGB** 颜色格式(不同于客户端消息使用的 RGBA 格式) +- 同一物体最多只能应用 16 次材质文本修改 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectPos.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectPos.md index a7fdfbf59d68..3f74620898b0 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectPos.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectPos.md @@ -7,14 +7,14 @@ tags: ["物体"] ## 描述 -设置物体的坐标位置 - -| 参数 | 说明 | -| -------- | ----------------------------------------------- | -| objectid | 要设置位置的物体 ID(由 CreateObject 函数返回) | -| Float:x | 物体新的 X 坐标值 | -| Float:y | 物体新的 Y 坐标值 | -| Float:z | 物体新的 Z 坐标值 | +设置[物体](CreateObject)的坐标位置 + +| 参数 | 说明 | +| -------- | --------------------------------------------------------------- | +| objectid | 要设置位置的物体 ID(由 [CreateObject](CreateObject) 函数返回) | +| Float:x | 物体新的 X 坐标值 | +| Float:y | 物体新的 Y 坐标值 | +| Float:z | 物体新的 Z 坐标值 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAmmo.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAmmo.md index 10a4580cd081..09db148e1d51 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAmmo.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAmmo.md @@ -9,11 +9,11 @@ tags: ["玩家"] 设置玩家武器的弹药量。 -| 参数 | 说明 | -| --------------- | --------------------------------------------------- | -| playerid | 要设置武器弹药的玩家 ID | -| WEAPON:weaponid | 要设置弹药的武器 ID(非 SAMP 头文件中的武器槽编号) | -| ammo | 要设置的弹药数量 | +| 参数 | 说明 | +| --------------- | ----------------------------------------------------------------------------- | +| playerid | 要设置武器弹药的玩家 ID | +| WEAPON:weaponid | 要设置弹药的[武器 ID](../resources/weaponids)(非 SAMP 头文件中的武器槽编号) | +| ammo | 要设置的弹药数量 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerArmedWeapon.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerArmedWeapon.md index 2ba7899cd724..0a4fbd769931 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerArmedWeapon.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerArmedWeapon.md @@ -51,7 +51,7 @@ public OnPlayerStateChange(playerid, PLAYER_STATE:newstate, PLAYER_STATE:oldstat :::note -此函数仅*切换*玩家**已持有**的武器,不会*给予*新武器。具体给予武器功能请参考 GivePlayerWeapon +此函数仅*切换*玩家**已持有**的武器,不会*给予*新武器。具体给予武器功能请参考 [GivePlayerWeapon](GivePlayerWeapon) ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md index 2569edc258f1..b0ce2eb8c0a5 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md @@ -13,7 +13,7 @@ tags: ["玩家", "物体", "附加"] | --------------- | ----------------------------------------------------- | | playerid | 目标玩家 ID | | index | 附加槽位索引(0-9) | -| modelid | 要附加的物体模型 ID | +| modelid | 要附加的[物体模型 ID](../resources/samp_objects) | | bone | 目标[骨骼 ID](../resources/boneid) | | Float:offsetX | (可选) X 轴位置偏移量 | | Float:offsetY | (可选) Y 轴位置偏移量 | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraLookAt.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraLookAt.md index 5b25c1e4887f..914e12a1ff20 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraLookAt.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraLookAt.md @@ -7,7 +7,7 @@ tags: ["玩家", "视角"] ## 描述 -设置玩家视角的观察方向。通常需与 SetPlayerCameraPos 配合使用。 +设置玩家视角的观察方向。通常需与 [SetPlayerCameraPos](SetPlayerCameraPos) 配合使用。 | 参数 | 说明 | | ------------ | --------------------------------------------------------------------------------- | @@ -34,7 +34,7 @@ SetPlayerCameraLookAt(playerid, 324.34, 54.122, 173.35); :::warning -在启用观察者模式后立即使用此函数将无法生效 +在[启用观察者模式](TogglePlayerSpectating)后立即使用此函数将无法生效 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md index 8f7c186ef2fa..06254d93cc12 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCameraPos.md @@ -32,14 +32,14 @@ SetPlayerCameraPos(playerid, 652.23, 457.21, 10.84); :::tip -- 需配合使用 SetPlayerCameraLookAt 以确保功能正常 -- 使用 SetCameraBehindPlayer 可重置视角至玩家身后视角 +- 需配合使用 [SetPlayerCameraLookAt](SetPlayerCameraLookAt) 以确保功能正常 +- 使用 [SetCameraBehindPlayer](SetCameraBehindPlayer) 可重置视角至玩家身后视角 ::: :::warning -在启用观战模式后立即调用此函数无效 +在[启用观战模式](TogglePlayerSpectating)后立即调用此函数无效 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md index 9885db1f51a0..5ddaac31ddb7 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md @@ -36,14 +36,14 @@ public OnPlayerText(playerid, text[]) :::note -玩家无法看到自己的聊天气泡,此规则同样适用于附加的 3D 文本标签 +玩家无法看到自己的聊天气泡,此规则同样适用于附加的 [3D 文本标签](Attach3DTextLabelToPlayer) ::: :::tip -- 支持在文本中使用颜色嵌入代码实现多色文字效果 -- 使用"-1"作为颜色值将显示为白色(因为-1 的十六进制表示为 0xFFFFFFFF) +- 支持在文本中使用[颜色嵌入](../resources/colorslist#颜色嵌入)代码实现多色文字效果 +- 使用"-1"作为颜色值将显示为白色(因为-1 的[十六进制表示](../resources/hexcolors)为 0xFFFFFFFF) ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md index 99f42bafdc5b..dde485dd3944 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerCheckpoint.md @@ -7,7 +7,7 @@ tags: ["玩家", "检查点"] ## 描述 -为玩家设置检查点(红色圆柱体),同时在小地图显示红色标记。当玩家进入检查点时,将触发 OnPlayerEnterCheckpoint 回调并执行相关操作。 +为玩家设置检查点(红色圆柱体),同时在小地图显示红色标记。当玩家进入检查点时,将触发 [OnPlayerEnterCheckpoint](../callbacks/OnPlayerEnterCheckpoint) 回调并执行相关操作。 | 参数 | 说明 | | ------------- | --------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerColor.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerColor.md index 35abf6fd34fe..a66a60b326fb 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerColor.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerColor.md @@ -9,10 +9,10 @@ tags: ["玩家"] 设置玩家的名牌和地图标记(雷达点)颜色 -| 参数名 | 说明 | -| -------- | -------------------------------- | -| playerid | 要设置颜色的玩家 ID | -| colour | 要设置的颜色值(支持透明度通道) | +| 参数名 | 说明 | +| -------- | -------------------------------------------------------------------- | +| playerid | 要设置颜色的玩家 ID | +| colour | 要设置的颜色值(支持[透明度通道](../resources/colorslist#透明度值)) | ## 返回值 @@ -32,8 +32,8 @@ SetPlayerColor(playerid, 4278190335); :::note -- 此函数将全局修改玩家颜色,即使其他玩家通过 SetPlayerMarkerForPlayer 设置了不同颜色 -- 在 OnPlayerConnect 回调中使用时,被设置玩家在 TAB 列表中将看不到颜色变化 +- 此函数将全局修改玩家颜色,即使其他玩家通过 [SetPlayerMarkerForPlayer](SetPlayerMarkerForPlayer) 设置了不同颜色 +- 在 [OnPlayerConnect](../callbacks/OnPlayerConnect) 回调中使用时,被设置玩家在 TAB 列表中将看不到颜色变化 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md index c563d6d62e6a..7fbc87a66118 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md @@ -9,17 +9,17 @@ tags: ["玩家"] 将物体附加到骨骼上。 -| 参数名 | 说明 | -| -------- | ---------------------------------- | -| playerid | 要附加物体的玩家 ID | -| modelid | 使用的物体模型 ID | -| bone | 目标[骨骼 ID](../resources/boneid) | -| fOffsetX | (可选) X 轴位置偏移量 | -| fOffsetY | (可选) Y 轴位置偏移量 | -| fOffsetZ | (可选) Z 轴位置偏移量 | -| fRotX | (可选) X 轴旋转角度 | -| fRotY | (可选) Y 轴旋转角度 | -| fRotZ | (可选) Z 轴旋转角度 | +| 参数名 | 说明 | +| -------- | ---------------------------------------------- | +| playerid | 要附加物体的玩家 ID | +| modelid | 使用的[物体模型 ID](../resources/samp_objects) | +| bone | 目标[骨骼 ID](../resources/boneid) | +| fOffsetX | (可选) X 轴位置偏移量 | +| fOffsetY | (可选) Y 轴位置偏移量 | +| fOffsetZ | (可选) Z 轴位置偏移量 | +| fRotX | (可选) X 轴旋转角度 | +| fRotY | (可选) Y 轴旋转角度 | +| fRotZ | (可选) Z 轴旋转角度 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerInterior.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerInterior.md index f0ad77026c20..271659fa404e 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerInterior.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerInterior.md @@ -7,7 +7,7 @@ tags: ["玩家"] ## 描述 -设置玩家的室内场景。当前已知室内场景及其坐标的完整列表可在此处查看。 +设置玩家的室内场景。当前已知室内场景及其坐标的完整列表可在[此处](../resources/interiorids)查看。 | 参数 | 说明 | | ---------- | ------------------------------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerMarkerForPlayer.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerMarkerForPlayer.md index e8fe69e51685..73d91b2394a2 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerMarkerForPlayer.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerMarkerForPlayer.md @@ -9,11 +9,11 @@ tags: ["玩家"] 修改指定玩家视角中另一玩家的**名牌**颜色与**雷达标记**颜色。 -| 参数 | 说明 | -| -------- | ----------------------------- | -| playerid | 将看到颜色变化的观察者玩家 ID | -| targetid | 要修改其标记颜色的目标玩家 ID | -| colour | 新颜色值(支持 RGBA 透明度) | +| 参数 | 说明 | +| -------- | ---------------------------------------------------------------- | +| playerid | 将看到颜色变化的观察者玩家 ID | +| targetid | 要修改其标记颜色的目标玩家 ID | +| colour | 新颜色值(支持 [RGBA 透明度](../resources/colorslist#透明度值)) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md index 2d0b69da98c1..414dd3b58cc0 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md @@ -9,15 +9,15 @@ tags: ["玩家", "物体", "玩家物体"] 将玩家专属物体的纹理替换为游戏内其他模型的纹理 -| 参数 | 说明 | -| ---------------------- | ---------------------------------------------------------------------- | -| playerid | 所属玩家 ID | -| objectid | 要替换纹理的物体 ID | -| materialIndex | 要修改的材质索引(0-15) | -| modelid | 目标纹理所在的模型 ID。0 表示透明通道,-1 表示仅修改材质颜色不改变纹理 | -| const textureLibrary[] | 包含替换纹理的 txd 文件名称(若无需求使用"none") | -| const textureName[] | 要使用的替换纹理名称(若无需求使用"none") | -| materialColour | 材质颜色(**ARGB 格式**整型或十六进制)。**0** 表示保留原色 | +| 参数 | 说明 | +| ---------------------- | ---------------------------------------------------------------------------------- | +| playerid | 所属玩家 ID | +| objectid | 要替换纹理的物体 ID | +| materialIndex | 要修改的材质索引(0-15) | +| modelid | 目标纹理所在的模型 ID。0 表示透明通道,-1 表示仅修改材质颜色不改变纹理 | +| const textureLibrary[] | 包含替换纹理的 txd 文件名称(若无需求使用"none") | +| const textureName[] | 要使用的替换[纹理](https://models.open.mp/?cat=textures)名称(若无需求使用"none") | +| materialColour | 材质颜色(**ARGB 格式**整型或十六进制)。**0** 表示保留原色 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md index 86c4a188c444..369d2d13db44 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md @@ -9,20 +9,20 @@ tags: ["玩家", "物体", "玩家物体"] 将玩家物体的材质替换为文本。 -| 参数 | 说明 | -| ---------------------------------------- | -------------------------------------------------------------- | -| playerid | 目标玩家 ID | -| objectid | 要设置文本的物体 ID | -| text[] | 要显示的文本内容 | -| materialIndex | 材质索引(默认:0) | -| OBJECT_MATERIAL_SIZE:materialSize | 材质[尺寸](../resources/materialtextsizes)(默认:256x128) | -| const fontFace[] | 字体名称(默认:Arial) | -| fontSize | 字体大小(默认:24)(最大值 255) | -| bool:bold | 粗体显示(1 启用/0 禁用,默认:1) | -| fontColour | 字体颜色(默认:白色) | -| backgroundColour | 背景颜色(默认:透明) | -| OBJECT_MATERIAL_TEXT_ALIGN:textAlignment | 文本[对齐方式](../resources/materialtextsizes)(默认:左对齐) | -| OPEN_MP_TAGS:... | 不定数量的任意标签参数 | +| 参数 | 说明 | +| ---------------------------------------- | ------------------------------------------------------------------ | +| playerid | 目标玩家 ID | +| objectid | 要设置文本的物体 ID | +| text[] | 要显示的文本内容 | +| materialIndex | 材质索引(默认:0) | +| OBJECT_MATERIAL_SIZE:materialSize | 材质[尺寸](../resources/materialtextsizes)(默认:256x128) | +| const fontFace[] | 字体名称(默认:Arial) | +| fontSize | 字体大小(默认:24)(最大值 255) | +| bool:bold | 粗体显示(1 启用/0 禁用,默认:1) | +| fontColour | 字体颜色(默认:白色) | +| backgroundColour | 背景颜色(默认:透明) | +| OBJECT_MATERIAL_TEXT_ALIGN:textAlignment | 文本[对齐方式](../resources/materialtextalignment)(默认:左对齐) | +| OPEN_MP_TAGS:... | 不定数量的任意标签参数 | ## 返回值 @@ -48,7 +48,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::tip -可使用颜色嵌入语法实现多色文本效果 +可使用[颜色嵌入](../resources/colorslist#颜色嵌入)语法实现多色文本效果 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectPos.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectPos.md index 1c569cec899b..acbbc1519c6e 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectPos.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectPos.md @@ -9,13 +9,13 @@ tags: ["玩家", "物体", "玩家物体"] 设置玩家物体到指定坐标位置。 -| 参数名 | 说明 | -| -------- | ----------------------------------------- | -| playerid | 目标玩家 ID | -| objectid | 玩家物体 ID(由 CreatePlayerObject 创建) | -| Float:x | 目标位置 X 坐标 | -| Float:y | 目标位置 Y 坐标 | -| Float:z | 目标位置 Z 坐标 | +| 参数名 | 说明 | +| -------- | --------------------------------------------------------------- | +| playerid | 目标玩家 ID | +| objectid | 玩家物体 ID(由 [CreatePlayerObject](CreatePlayerObject) 创建) | +| Float:x | 目标位置 X 坐标 | +| Float:y | 目标位置 Y 坐标 | +| Float:z | 目标位置 Z 坐标 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPos.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPos.md index c57c30e60fb9..f8416abb54a6 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPos.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPos.md @@ -47,7 +47,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::tip -设置玩家位置至室内时,必须同时设置其室内环境。 +设置玩家位置至室内时,必须同时[设置其室内环境](SetPlayerInterior)。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerRaceCheckpoint.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerRaceCheckpoint.md index 096860bb957e..cdf72548e43d 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerRaceCheckpoint.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerRaceCheckpoint.md @@ -7,7 +7,7 @@ tags: ["玩家", "检查点", "竞速检查点"] ## 描述 -创建竞速检查点。当玩家进入时,将触发 OnPlayerEnterRaceCheckpoint 回调。 +创建竞速检查点。当玩家进入时,将触发 [OnPlayerEnterRaceCheckpoint](../callbacks/OnPlayerEnterRaceCheckpoint) 回调。 | 参数 | 说明 | | ------------- | ---------------------------------------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkillLevel.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkillLevel.md index de5633597a37..4669970c86a8 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkillLevel.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkillLevel.md @@ -9,11 +9,11 @@ tags: ["玩家"] 设置玩家特定武器类型的技能等级。 -| 参数 | 说明 | -| ----------------- | ------------------------------------------------- | -| playerid | 要设置武器技能的玩家 ID | -| WEAPONSKILL:skill | 要设置的[武器技能类型](../resources/weaponskills) | -| level | 技能等级值(0-999),超出范围的数值会自动取极值 | +| 参数 | 说明 | +| ----------------- | ------------------------------------------------------------------------------------- | +| playerid | 要设置武器技能的玩家 ID | +| WEAPONSKILL:skill | 要设置的[武器技能类型](../resources/weaponskills) | +| level | [技能等级值](../resources/weaponskills#技能等级)(0-999),超出范围的数值会自动取极值 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md index 1e002ad1d018..f266ebc855e7 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md @@ -92,9 +92,9 @@ SetPlayerSkinFix(playerid, skinid) **已知问题**: -- 当玩家处于下蹲、车辆内或特定动画状态时切换皮肤会导致角色冻结/异常,可通过[TogglePlayerControllable](TogglePlayerControllable)解除使用[GetPlayerSpecialAction](GetPlayerSpecialAction)检测 SPECIAL_ACTION_DUCK 状态可判断玩家是否下蹲 +- 当玩家处于下蹲、[车辆内](IsPlayerInAnyVehicle)或[特定动画状态](GetPlayerAnimationIndex)时切换皮肤会导致角色冻结/异常,可通过[TogglePlayerControllable](TogglePlayerControllable)解除使用[GetPlayerSpecialAction](GetPlayerSpecialAction)检测 SPECIAL_ACTION_DUCK 状态可判断玩家是否下蹲 - 玩家在车辆内切换皮肤可能导致周围玩家客户端崩溃 -- 玩家死亡时切换皮肤可能引发周围玩家崩溃 +- 玩家[死亡](../callbacks/OnPlayerDeath)时切换皮肤可能引发周围玩家崩溃 - 会中断自行车乘坐状态 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md index 15afe94a8230..5edf3942f8b4 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md @@ -7,7 +7,7 @@ tags: ["玩家"] ## 描述 -设置玩家的天气。 +设置玩家的[天气](../resources/weatherid)。 | 参数 | 说明 | | -------- | -------------------------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWorldBounds.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWorldBounds.md index 974fdd998fc2..9e5695f67b46 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWorldBounds.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWorldBounds.md @@ -53,7 +53,7 @@ public OnPlayerSpawn(playerid) :::warning -此函数在室内环境中无效! +此函数在[室内环境](../resources/interiorids)中无效! ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetSpawnInfo.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetSpawnInfo.md index d2b9542156fa..fd50a44216f6 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetSpawnInfo.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetSpawnInfo.md @@ -18,11 +18,11 @@ tags: ["玩家"] | Float:spawnY | 生成点的 Y 坐标 | | Float:spawnZ | 生成点的 Z 坐标 | | Float:angle | 生成后的面朝方向(角度制) | -| WEAPON:weapon1 | 第一主武器 ID | +| WEAPON:weapon1 | 第一[主武器 ID](../resources/weaponids) | | ammo1 | 第一主武器弹药量 | -| WEAPON:weapon2 | 第二副武器 ID | +| WEAPON:weapon2 | 第二[副武器 ID](../resources/weaponids) | | ammo2 | 第二副武器弹药量 | -| WEAPON:weapon3 | 第三近战武器 ID | +| WEAPON:weapon3 | 第三[近战武器 ID](../resources/weaponids) | | ammo3 | 第三近战武器弹药量 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md index 69c9553191d0..119e3dfff9f2 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md @@ -9,13 +9,13 @@ tags: ["定时器"] 设置定时器以在指定间隔后调用函数。此变体 ('Ex') 可向目标函数传递参数(如玩家 ID)。 -| 参数 | 说明 | -| -------------------- | ---------------------------------------------------------------------------------------- | -| const functionName[] | 定时器到期时调用的公共函数名称 | -| interval | 时间间隔(单位:毫秒,1 秒=1000 毫秒) | -| bool:repeating | 布尔值(true/false 或 1/0),决定定时器是否重复执行(仅能通过 KillTimer 停止)或单次执行 | -| const specifiers[] | 特殊格式说明符,用于指示传递参数的类型 | -| OPEN_MP_TAGS:... | 不定数量参数(需符合前参数指定的格式) | +| 参数 | 说明 | +| -------------------- | ----------------------------------------------------------------------------------------------------- | +| const functionName[] | 定时器到期时调用的公共函数名称 | +| interval | 时间间隔(单位:毫秒,1 秒=1000 毫秒) | +| bool:repeating | 布尔值(true/false 或 1/0),决定定时器是否重复执行(仅能通过 [KillTimer](KillTimer) 停止)或单次执行 | +| const specifiers[] | 特殊格式说明符,用于指示传递参数的类型 | +| OPEN_MP_TAGS:... | 不定数量参数(需符合前参数指定的格式) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleHealth.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleHealth.md index a6f91d9f2df3..67e1f06cbe85 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleHealth.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleHealth.md @@ -11,10 +11,10 @@ tags: ["车辆"] 设置车辆的生命值。当生命值降低时,引擎会先冒烟,当生命值低于 250(25%)时会出现火焰。 -| 参数 | 说明 | -| ------------ | ---------------------- | -| vehicleid | 要设置生命值的车辆 ID | -| Float:health | 以浮点数值表示的生命值 | +| 参数 | 说明 | +| ------------ | ---------------------------------------------------- | +| vehicleid | 要设置生命值的车辆 ID | +| Float:health | 以浮点数值表示的[生命值](../resources/vehiclehealth) | ## 返回值 @@ -45,8 +45,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- 车辆满血状态为 **1000.0**,允许设置更高数值 -- 详细生命值参数说明请参考[此文档](../resources/vehiclehealth) +车辆满血状态为 **1000.0**,允许设置更高数值。详细生命值参数说明请参考[此文档](../resources/vehiclehealth)。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md index 809eabf1c664..50e243db5d58 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleNumberPlate.md @@ -32,8 +32,8 @@ SetVehicleNumberPlate(vehicleid, "ABCD 123"); // 设置车牌号为ABCD 123 :::note -- 此函数不会进行内置错误校验 -- 需重新生成或重新流加载车辆才能使更改生效 +- 此函数不会进行内置错误校验。请勿为无车牌车辆(船只、飞机等)设置自定义车牌,这会导致不必要的客户端处理 +- 需[重新生成](SetVehicleToRespawn)或重新流加载车辆才能使更改生效 - 车牌文本最大支持 32 字符(含颜色代码) - 可视区域仅显示约 9-10 个字符,超长文本会自动换行 - 部分车辆模型(如 Boxville 498)使用倒置车牌,可用 Boxburg 609 替代 @@ -42,8 +42,7 @@ SetVehicleNumberPlate(vehicleid, "ABCD 123"); // 设置车牌号为ABCD 123 :::tip -- 请勿为无车牌车辆(船只、飞机等)设置自定义车牌,这会导致不必要的客户端处理 -- 车牌文本支持颜色代码嵌入 +车牌文本支持[颜色代码嵌入](../resources/colorslist#颜色嵌入) ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsForPlayer.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsForPlayer.md index 859154a373d2..b077328cabe8 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsForPlayer.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleParamsForPlayer.md @@ -111,7 +111,7 @@ public OnVehicleStreamIn(vehicleid, forplayerid) :::note -需要重置车辆(Respawn)才能完全移除目标箭头 +需要[重置车辆](SetVehicleToRespawn)(Respawn)才能完全移除目标箭头 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ShowMenuForPlayer.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ShowMenuForPlayer.md index 1290f0a18f23..7ed77229db3d 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ShowMenuForPlayer.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ShowMenuForPlayer.md @@ -7,12 +7,12 @@ tags: ["玩家", "菜单"] ## 描述 -向指定玩家显示已创建的菜单界面。 +向指定玩家显示[已创建](CreateMenu)的菜单界面。 -| 参数 | 说明 | -| ----------- | --------------------------------------- | -| Menu:menuid | 要显示的菜单 ID(通过 CreateMenu 创建) | -| playerid | 目标玩家 ID | +| 参数 | 说明 | +| ----------- | ----------------------------------------------------- | +| Menu:menuid | 要显示的菜单 ID(通过 [CreateMenu](CreateMenu) 创建) | +| playerid | 目标玩家 ID | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerDialog.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerDialog.md index c723193d4dc6..5d0300b2ac94 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerDialog.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerDialog.md @@ -70,7 +70,7 @@ ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_TABLIST_HEADERS, "购买 :::tip - 建议使用枚举(如上例)或宏定义来管理对话框 ID,避免直接使用数字造成混乱 -- 可使用颜色嵌入代码实现多色文本 +- 可使用[颜色嵌入](../resources/colorslist#颜色嵌入)代码实现多色文本 - 使用 **-1** 作为 `dialogid` 可关闭客户端当前显示的所有对话框,也可使用[HidePlayerDialog](HidePlayerDialog)函数 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md index bed52fe2f965..3d13644f8bbf 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerMarkers.md @@ -7,7 +7,7 @@ tags: ["玩家"] ## 描述 -切换玩家雷达标记(小地图上的光点显示状态)。必须在服务器启动时调用(OnGameModeInit 回调中)。如需运行时控制,请使用[SetPlayerMarkerForPlayer](SetPlayerMarkerForPlayer)。 +切换玩家雷达标记(小地图上的光点显示状态)。必须在服务器启动时调用([OnGameModeInit](../callbacks/OnGameModeInit) 回调中)。如需运行时控制,请使用[SetPlayerMarkerForPlayer](SetPlayerMarkerForPlayer)。 | 参数名称 | 说明 | | ------------------------ | ------------------------------------------------------------------------------ | @@ -39,7 +39,7 @@ public OnGameModeInit() :::tip -通过设置玩家颜色为完全透明(无 Alpha 通道值),可实现按玩家单独控制标记显示。此方法支持基于玩家的个性化标记显示方案。 +通过[设置玩家颜色](SetPlayerColor)为完全透明(无 Alpha 通道值),可实现按玩家单独控制标记显示。此方法支持基于玩家的个性化标记显示方案。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/StopPlayerObject.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/StopPlayerObject.md index f2171678affe..c8d3a94e4135 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/StopPlayerObject.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/StopPlayerObject.md @@ -7,7 +7,7 @@ tags: ["玩家"] ## 描述 -停止通过 MovePlayerObject 移动的玩家物体。 +停止通过 [MovePlayerObject](MovePlayerObject) 移动的玩家物体。 ## 参数 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md index 38986e0f4827..263744e1ba27 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md @@ -7,7 +7,7 @@ tags: ["文本绘图"] ## 描述 -创建文本绘图。文本绘图(正如其名)是绘制在玩家屏幕上的文字元素(主要形式),也可包含方框、精灵和模型预览(皮肤/车辆/武器/物体等)。详见[文本绘图专题页面](../resources/textdrawsprites)获取详细信息。 +创建文本绘图。文本绘图(正如其名)是绘制在玩家屏幕上的文字元素(主要形式),也可包含方框、精灵和模型预览(皮肤/车辆/武器/物体等)。详见[文本绘图专题页面](../resources/textdraws)获取详细信息。 | 参数 | 说明 | | ---------------- | --------------------------------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawDestroy.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawDestroy.md index 00e98ceb6280..d88a8a541fd8 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawDestroy.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawDestroy.md @@ -9,9 +9,9 @@ tags: ["文本绘图"] 销毁先前创建的文本绘图。 -| 参数 | 说明 | -| ----------- | --------------------------------------------- | -| Text:textid | 需要销毁的文本绘图 ID,由 TextDrawCreate 返回 | +| 参数 | 说明 | +| ----------- | --------------------------------------------------------------- | +| Text:textid | 需要销毁的文本绘图 ID,由 [TextDrawCreate](TextDrawCreate) 返回 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawFont.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawFont.md index cf5d417b2528..e350adae1686 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawFont.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawFont.md @@ -9,10 +9,10 @@ tags: ["文本绘图"] 更改文本绘图的字体样式 -| 参数 | 说明 | -| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| Text:textid | 需要修改的文本绘图 ID | -| TEXT_DRAW_FONT:font | SA-MP 提供四种字体样式选择机制:1. **字体值 4** 表示使用 txd 精灵图字体 2. **字体值 5** 用于 3D 模型预览显示功能 3. **字体值 >5** 时文本内容将不可见 4. **字体值 >16** 会导致客户端程序崩溃 | +| 参数 | 说明 | +| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| Text:textid | 需要修改的文本绘图 ID | +| TEXT_DRAW_FONT:font | SA-MP 提供四种字体样式选择机制:1. **字体值 4** 表示使用 [txd 精灵图](../resources/textdrawsprites)字体 2. **字体值 5** 用于 [3D 模型预览](TextDrawSetPreviewModel)显示功能 3. **字体值 >5** 时文本内容将不可见 4. **字体值 >16** 会导致客户端程序崩溃 | **可用样式预览:** ![可用样式](https://assets.open.mp/assets/images/textdraws/Textdraw_font_styles.png) diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md index e457d24e5618..98c00ca21800 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md @@ -36,7 +36,7 @@ public OnGameModeInit() :::tip -- 当需要仅调整文本绘图的方框尺寸时,可将 height 参数乘以 0.135 来获得类似 TextDrawTextSize 的尺寸效果。**技巧**:对于纯方框型文本绘图,建议使用**LD_SPAC:white**精灵配合 TextDrawTextSize 函数,可获得更精准的尺寸控制。 +- 当需要仅调整文本绘图的方框尺寸时,可将 height 参数乘以 0.135 来获得类似 [TextDrawTextSize](TextDrawTextSize) 的尺寸效果。**技巧**:对于纯方框型文本绘图,建议使用**LD_SPAC:white**精灵配合 TextDrawTextSize 函数,可获得更精准的尺寸控制。 - 修改已显示的文本绘图字符尺寸后,无需重新创建,调用[TextDrawShowForPlayer](TextDrawShowForPlayer)或[TextDrawShowForAll](TextDrawShowForAll)即可刷新显示 - 最佳视觉效果通常需要保持宽度与高度的 1:4 比例(例如宽度 0.5 对应高度 2.0) diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetOutline.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetOutline.md index fa175c82cac3..92b84c3515f0 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetOutline.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetOutline.md @@ -7,7 +7,7 @@ tags: ["文本绘图"] ## 描述 -设置文本绘图文本的描边粗细。可通过 TextDrawBackgroundColor 修改描边颜色。 +设置文本绘图文本的描边粗细。可通过 [TextDrawBackgroundColor](TextDrawBackgroundColor) 修改描边颜色。 | 参数 | 说明 | | ----------- | ---------------------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewVehCol.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewVehCol.md index 9e6ccc19a408..2fd8b401546b 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewVehCol.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewVehCol.md @@ -9,11 +9,11 @@ tags: ["文本绘图"] 若在 3D 预览文本绘图中使用车辆模型,此函数用于设置该车辆的两个颜色值。 -| 参数 | 说明 | -| ----------- | ----------------------------------------- | -| Text:textid | 已设置为显示 3D 车辆模型预览的文本绘图 ID | -| colour1 | 车辆主颜色 ID | -| colour2 | 车辆副颜色 ID | +| 参数 | 说明 | +| ----------- | -------------------------------------------- | +| Text:textid | 已设置为显示 3D 车辆模型预览的文本绘图 ID | +| colour1 | 车辆[主颜色 ID](../resources/vehiclecolorid) | +| colour2 | 车辆[副颜色 ID](../resources/vehiclecolorid) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForPlayer.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForPlayer.md index 6ff11a71a915..84d437b2787e 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForPlayer.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawShowForPlayer.md @@ -7,7 +7,7 @@ tags: ["玩家", "文本绘图"] ## 描述 -为特定玩家显示文本绘图。 +为特定玩家显示[文本绘图](TextDrawCreate)。 | 参数 | 说明 | | ----------- | ------------------------------------------------------------------- | @@ -42,7 +42,7 @@ public OnPlayerConnect(playerid) :::tip -若只需单个玩家查看文本绘图,建议使用玩家专属文本绘图(PlayerTextDraw)。这种方式也适用于需要展示玩家个性化信息的场景。 +若只需单个玩家查看文本绘图,建议使用[玩家专属文本绘图](CreatePlayerTextDraw)(PlayerTextDraw)。这种方式也适用于需要展示玩家个性化信息的场景。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md index d12aea044107..fb318478c891 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawTextSize.md @@ -36,13 +36,13 @@ public OnGameModeInit() :::note -- 不同 TextDrawAlignment 值对坐标系的解释差异: - 1(左对齐):参数值为文本框右侧边界的绝对坐标 - 2(居中对齐):需交换 X/Y 参数顺序,X 值代表整体宽度 - 3(右对齐):参数值为文本框左侧边界的绝对坐标 -- 使用 4 号字体(精灵)和 5 号字体(模型预览)时,此函数参数将转换为宽高偏移量 +- 不同 [TextDrawAlignment](TextDrawAlignment) 值对坐标系的解释差异: + - 1(左对齐):参数值为文本框右侧边界的绝对坐标 + - 2(居中对齐):需交换 X/Y 参数顺序,X 值代表整体宽度 + - 3(右对齐):参数值为文本框左侧边界的绝对坐标 +- 使用 [4 号字体(精灵)和 5 号字体(模型预览)](TextDrawFont)时,此函数参数将转换为宽高偏移量 - 文本框坐标系原点(TextDrawCreate 设定坐标)向左偏移 5.0 单位,向上偏移 10.0 单位 -- 此函数定义的可点击区域在启用 TextDrawSetSelectable 时生效,无论是否显示文本框 +- 此函数定义的可点击区域在启用 [TextDrawSetSelectable](TextDrawSetSelectable) 时生效,无论是否显示文本框 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerSpectating.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerSpectating.md index 9d677c55e41a..6dd008f627e9 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerSpectating.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerSpectating.md @@ -35,13 +35,13 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::note -禁用观察模式时会自动触发 OnPlayerSpawn 回调。若需恢复玩家原始状态,需在 OnPlayerSpawn 中处理。注意玩家可能通过 F4 进入选角界面,且观察模式中可能因漏洞导致死亡。 +禁用观察模式时会自动触发 [OnPlayerSpawn](../callbacks/OnPlayerSpawn) 回调。若需恢复玩家原始状态,需在 OnPlayerSpawn 中处理。注意玩家可能通过 F4 进入选角界面,且观察模式中可能因漏洞导致死亡。 ::: :::tip -观察模式下会隐藏 HUD 界面,适合需要纯净视角控制的场景。玩家视角附近的物体会自动流加载,适用于视角插值功能。 +观察模式下会隐藏 HUD 界面,适合需要纯净视角控制的场景。玩家视角附近的物体会自动流加载,适用于[视角插值](InterpolateCameraPos)功能。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/UpdateVehicleDamageStatus.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/UpdateVehicleDamageStatus.md index c0f46ef5550e..618bc8afa9b5 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/UpdateVehicleDamageStatus.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/UpdateVehicleDamageStatus.md @@ -15,13 +15,13 @@ tags: ["车辆"] 设置车辆的各类视觉损坏状态,包括爆胎、车灯破损和车身面板损伤。 -| 参数 | 说明 | -| --------------------------- | ------------------------- | -| vehicleid | 需要设置损坏状态的车辆 ID | -| VEHICLE_PANEL_STATUS:panels | 包含面板损坏状态的位集合 | -| VEHICLE_DOOR_STATUS:doors | 包含车门损坏状态的位集合 | -| VEHICLE_LIGHT_STATUS:lights | 包含车灯损坏状态的位集合 | -| VEHICLE_TIRE_STATUS:tires | 包含轮胎损坏状态的位集合 | +| 参数 | 说明 | +| --------------------------- | ---------------------------------------------------- | +| vehicleid | 需要设置损坏状态的车辆 ID | +| VEHICLE_PANEL_STATUS:panels | 包含[面板损坏状态](../resources/panelstates)的位集合 | +| VEHICLE_DOOR_STATUS:doors | 包含[车门损坏状态](../resources/doorstates)的位集合 | +| VEHICLE_LIGHT_STATUS:lights | 包含[车灯损坏状态](../resources/lightstates)的位集合 | +| VEHICLE_TIRE_STATUS:tires | 包含[轮胎损坏状态](../resources/tirestates)的位集合 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/atan.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/atan.md index ceeace166bb6..27b081a1e7ef 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/atan.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/atan.md @@ -7,7 +7,7 @@ tags: ["数学"] ## 描述 -计算指定正切值的单值反正切角度(以度为单位)。在三角函数中,反正切是正切的逆运算。注意由于符号歧义,此函数无法单独确定角度所在象限。建议需要精确判断时使用[atan2](atan2)函数。 +计算指定[正切值](https://en.wikipedia.org/wiki/Trigonometric_functions)的单值反正切角度(以度为单位)。在三角函数中,反正切是正切的逆运算。注意由于符号歧义,此函数无法单独确定角度所在象限。建议需要精确判断时使用[atan2](atan2)函数。 | 参数 | 说明 | | ----------- | ---------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md index 3e1fbcc3be74..e8cdb503cc02 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md @@ -9,11 +9,11 @@ tags: ["核心", "属性"] 删除先前设置的属性([setproperty](setproperty))。 -| 参数 | 说明 | -| ------ | ----------------------------------------------------------------- | -| id | 使用的虚拟机 ID。应保持该值为零。_(optional=0)_ | -| name[] | 属性名称,应保持为空字符串("")。 | -| value | 属性的唯一 ID。使用哈希函数从字符串计算得出。_(optional=cellmin)_ | +| 参数 | 说明 | +| ------ | ------------------------------------------------------------------------------------------------ | +| id | 使用的[虚拟机](https://en.wikipedia.org/wiki/Virtual_machine) ID。应保持该值为零。_(optional=0)_ | +| name[] | 属性名称,应保持为空字符串("")。 | +| value | 属性的唯一 ID。使用哈希函数从字符串计算得出。_(optional=cellmin)_ | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md index d8914012d9dc..925ab855ed38 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md @@ -9,11 +9,11 @@ tags: ["核心", "属性"] 检查指定属性是否存在。 -| 参数 | 说明 | -| ------ | ------------------------------------------------------ | -| id | 使用的虚拟机 ID,应保持为 0 _(可选=0)_ | -| name[] | 属性名称,应保持为空字符串 "" | -| value | 属性唯一 ID。使用哈希函数从字符串生成 _(可选=cellmin)_ | +| 参数 | 说明 | +| ------ | --------------------------------------------------------------------------------------- | +| id | 使用的[虚拟机](https://en.wikipedia.org/wiki/Virtual_machine) ID,应保持为 0 _(可选=0)_ | +| name[] | 属性名称,应保持为空字符串 "" | +| value | 属性唯一 ID。使用哈希函数从字符串生成 _(可选=cellmin)_ | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fblockread.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fblockread.md index eb5232cb8ace..c271a69561e2 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fblockread.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fblockread.md @@ -11,7 +11,7 @@ tags: ["文件管理"] | 参数 | 说明 | | ---------------------- | -------------------------------------- | -| File:handle | 通过 fopen打开的文件句柄 | +| File:handle | 通过 [fopen](fopen)打开的文件句柄 | | buffer | 存储读取数据的缓冲区 | | size = sizeof (buffer) | 要读取的数据单元数量(默认缓冲区大小) | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fblockwrite.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fblockwrite.md index 08326ebce1df..3ae39585e1b4 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fblockwrite.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fblockwrite.md @@ -11,7 +11,7 @@ tags: ["文件管理"] | 参数 | 说明 | | ---------------------- | -------------------------------------- | -| File:handle | 通过 fopen打开的文件句柄 | +| File:handle | 通过 [fopen](fopen)打开的文件句柄 | | const buffer[] | 要写入文件的数据缓冲区 | | size = sizeof (buffer) | 要写入的数据单元数量(默认缓冲区大小) | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md index c2102937fe89..3008d48afb54 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatabs.md @@ -7,7 +7,7 @@ tags: ["数学", "浮点数"] ## 描述 -返回指定浮点数的绝对值。 +返回指定浮点数的[绝对值](https://en.wikipedia.org/wiki/Absolute_value)。 | 参数 | 说明 | | ----------- | ---------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md index a79c3b99a444..447f10235918 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md @@ -7,7 +7,7 @@ tags: ["数学", "浮点数"] ## 描述 -获取指定角度的余弦值。输入角度可使用弧度、角度或梯度单位。 +获取指定角度的[余弦值](https://en.wikipedia.org/wiki/Sine_and_cosine)。输入角度可使用弧度、角度或梯度单位。 | 参数 | 说明 | | -------------- | ----------------------------------------------------------------------------- | @@ -33,7 +33,8 @@ public OnGameModeInit() :::warning -在大多数情况下,GTA/SA-MP 使用**角度制**表示方向,例如[GetPlayerFacingAngle](GetPlayerFacingAngle)。因此建议优先使用'**degrees**'角度模式而*非*弧度制。同时注意 GTA 的角度系统采用逆时针方向:270° 为东方,90° 为西方,南方仍为 180°,北方仍为 0°/360°。 +- 在大多数情况下,GTA/SA-MP 使用**角度制**表示方向,例如[GetPlayerFacingAngle](GetPlayerFacingAngle)。因此建议优先使用'**degrees**'角度模式而*非*弧度制。 +- 同时注意 GTA 的角度系统采用逆时针方向:270° 为东方,90° 为西方,南方仍为 180°,北方仍为 0°/360°。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md index 54863ed8cba3..240d625e3f17 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatlog.md @@ -7,7 +7,7 @@ tags: ["数学", "浮点数"] ## 描述 -此函数用于计算以指定底数的浮点数对数。 +此函数用于计算以指定底数的浮点数[对数](https://en.wikipedia.org/wiki/Logarithm)。 | 参数 | 说明 | | ----------- | ---------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md index 8a1406c93284..fd77e637245a 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatsin.md @@ -7,7 +7,7 @@ tags: ["数学", "浮点数"] ## 描述 -获取指定角度的正弦值。输入角度可使用弧度、角度或梯度单位。 +获取指定角度的[正弦值](https://en.wikipedia.org/wiki/Sine_and_cosine)。输入角度可使用弧度、角度或梯度单位。 | 参数 | 说明 | | -------------- | ----------------------------------------------------------------------------- | @@ -41,7 +41,8 @@ GetPosInFrontOfPlayer(playerid, Float:distance, &Float:x, &Float:y, &Float:z) :::warning -在大多数情况下,GTA/SA-MP 使用**角度制**表示方向,例如[GetPlayerFacingAngle](GetPlayerFacingAngle)。因此建议优先使用'**degrees**'角度模式而*非*弧度制。同时注意 GTA 的角度系统采用逆时针方向:270° 为东方,90° 为西方,南方仍为 180°,北方仍为 0°/360°。 +- 在大多数情况下,GTA/SA-MP 使用**角度制**表示方向,例如[GetPlayerFacingAngle](GetPlayerFacingAngle)。因此建议优先使用'**degrees**'角度模式而*非*弧度制。 +- 同时注意 GTA 的角度系统采用逆时针方向:270° 为东方,90° 为西方,南方仍为 180°,北方仍为 0°/360°。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md index 533b04c7d862..29e92a6231cc 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md @@ -7,7 +7,7 @@ tags: ["数学", "浮点数"] ## 描述 -计算指定浮点数的平方根。 +计算指定浮点数的[平方根](https://en.wikipedia.org/wiki/Square_root)。 | 参数 | 说明 | | ---------- | ------------------------ | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md index 346dd92449d0..565ff83dd9b4 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md @@ -7,7 +7,7 @@ tags: ["数学", "浮点数"] ## 描述 -获取指定角度的正切值。输入角度可使用弧度、角度或梯度单位。 +获取指定角度的[正切值](https://en.wikipedia.org/wiki/Trigonometric_functions)。输入角度可使用弧度、角度或梯度单位。 | 参数 | 说明 | | ----------- | ----------------------------------------------------------------------------- | @@ -33,7 +33,8 @@ public OnGameModeInit() :::warning -在大多数情况下,GTA/SA-MP 使用**角度制**表示方向,例如[GetPlayerFacingAngle](GetPlayerFacingAngle)。因此建议优先使用'**degrees**'角度模式而*非*弧度制。同时注意 GTA 的角度系统采用逆时针方向:270° 为东方,90° 为西方,南方仍为 180°,北方仍为 0°/360°。 +- 在大多数情况下,GTA/SA-MP 使用**角度制**表示方向,例如[GetPlayerFacingAngle](GetPlayerFacingAngle)。因此建议优先使用'**degrees**'角度模式而*非*弧度制。 +- 同时注意 GTA 的角度系统采用逆时针方向:270° 为东方,90° 为西方,南方仍为 180°,北方仍为 0°/360°。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fmatch.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fmatch.md index a7fbee7f50d3..968da29a8323 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fmatch.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fmatch.md @@ -9,12 +9,12 @@ tags: ["文件管理"] 根据通配符模式查找匹配的文件名。 -| 参数 | 说明 | -| ------------------------ | ------------------------------------------ | -| const filename[] | 存储匹配结果的字符串(返回压缩字符串格式) | -| const pattern[] | 匹配模式(支持通配符) | -| index | 当存在多个匹配项时的文件索引号(默认:0) | -| size = sizeof (filename) | 目标字符串的最大容量 | +| 参数 | 说明 | +| ------------------------ | ------------------------------------------------------- | +| const filename[] | 存储匹配结果的字符串(返回[压缩字符串](strunpack)格式) | +| const pattern[] | 匹配模式(支持通配符) | +| index | 当存在多个匹配项时的文件索引号(默认:0) | +| size = sizeof (filename) | 目标字符串的最大容量 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fopen.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fopen.md index f134e9116b11..8571e53cc195 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fopen.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fopen.md @@ -128,8 +128,7 @@ else :::warning -- 在 `io_read` 模式下打开不存在的文件将返回空句柄 -- 使用**无效句柄**执行文件操作会导致服务器**崩溃**(该问题已在 open.mp 中修复) +- 在 `io_read` 模式下打开不存在的文件将返回空句柄。使用**无效句柄**执行文件操作会导致服务器**崩溃**(该问题已在 open.mp 中修复) - 文件操作完成后务必使用 [fclose](fclose) 关闭文件 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/format.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/format.md index 858c36b5c5ef..e684551b277c 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/format.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/format.md @@ -83,7 +83,7 @@ SendClientMessage(playerid, 0xFF8000FF, string); // 显示"43%的衬衫是黑色 :::warning -- 此函数不支持压缩字符串(packed strings) +- 此函数不支持压缩字符串([packed](strpack) strings) ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fputchar.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fputchar.md index 85aaf90cb96e..1097615e13d7 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fputchar.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fputchar.md @@ -11,7 +11,7 @@ tags: ["文件管理"] | 参数 | 说明 | | ----------- | ------------------------------------------------------------------------- | -| File:handle | 要操作的文件句柄,需预先通过 fopen 打开。 | +| File:handle | 要操作的文件句柄,需预先通过 [fopen](fopen) 打开。 | | value | 需要写入的字符。 | | bool:utf8 | 设为 `true` 使用 UTF8 编码模式,否则使用扩展 ASCII 编码。(默认:`true`) | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fread.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fread.md index cd6a1703b2ee..2dadcf077293 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fread.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fread.md @@ -9,12 +9,12 @@ tags: ["文件管理"] 从文件中读取单行内容。 -| 参数 | 说明 | -| ---------------------- | -------------------------------------- | -| File:handle | 要读取的文件句柄(由 fopen 返回)。 | -| string[] | 存储读取内容的字符串数组(引用传递)。 | -| size = sizeof (string) | 要读取的字节数。 | -| bool:pack | 是否启用压缩格式?(默认:false)。 | +| 参数 | 说明 | +| ---------------------- | -------------------------------------------- | +| File:handle | 要读取的文件句柄(由 [fopen](fopen) 返回)。 | +| string[] | 存储读取内容的字符串数组(引用传递)。 | +| size = sizeof (string) | 要读取的字节数。 | +| bool:pack | 是否启用压缩格式?(默认:false)。 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fremove.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fremove.md index 87503100658b..eb10c012de46 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fremove.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fremove.md @@ -51,7 +51,7 @@ else :::note -正在使用的文件(已通过 fopen 打开)需先关闭(fclose)才能删除。 +正在使用的文件(已通过 [fopen](fopen) 打开)需先关闭([fclose](fclose))才能删除。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fseek.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fseek.md index 9de17d645ac9..2700ce3a8413 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fseek.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fseek.md @@ -11,7 +11,7 @@ tags: ["文件管理"] | 参数 | 说明 | | --------------------------------------------------- | -------------------------------------------- | -| File:handle | 要操作的文件句柄(由 fopen 返回)。 | +| File:handle | 要操作的文件句柄(由 [fopen](fopen) 返回)。 | | position | 相对于基准位置的偏移量(详见 whence 参数)。 | | [seek_whence:whence](../resources/file-seek-whence) | 定位基准点(指定偏移量计算的起始位置)。 | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md index b6a444a9b514..20fc73def2df 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/fwrite.md @@ -9,10 +9,10 @@ tags: ["文件管理"] 向指定文件写入文本内容。 -| 参数 | 说明 | -| -------------- | ----------------------------------- | -| File:handle | 要操作的文件句柄(由 fopen 返回)。 | -| const string[] | 需要写入的文本字符串。 | +| 参数 | 说明 | +| -------------- | -------------------------------------------- | +| File:handle | 要操作的文件句柄(由 [fopen](fopen) 返回)。 | +| const string[] | 需要写入的文本字符串。 | ## 返回值 @@ -102,7 +102,7 @@ else :::note -此函数使用 UTF-8 编码写入文件,可能无法支持某些特殊语言符号。 +此函数使用 [UTF-8](https://en.wikipedia.org/wiki/UTF-8) 编码写入文件,可能无法支持某些特殊语言符号。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md index e3ac49b0237d..439585f83d2b 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md @@ -9,12 +9,12 @@ tags: ["核心", "属性"] 从内存中获取特定属性,返回的字符串为打包格式(需使用 strunpack 解包) -| 参数 | 说明 | -| -------- | -------------------------------------------------------------- | -| id | 使用的虚拟机 ID(应始终保留为 0) _(可选参数=0)_ | -| name[] | 属性名称(应保留为空字符串) | -| value | 属性唯一 ID(可通过哈希函数从字符串生成) _(可选参数=cellmin)_ | -| string[] | 存储结果的字符数组(引用传递) | +| 参数 | 说明 | +| -------- | ------------------------------------------------------------------------------------------------- | +| id | 使用的[虚拟机](https://en.wikipedia.org/wiki/Virtual_machine) ID(应始终保留为 0) _(可选参数=0)_ | +| name[] | 属性名称(应保留为空字符串) | +| value | 属性唯一 ID(可通过哈希函数从字符串生成) _(可选参数=cellmin)_ | +| string[] | 存储结果的字符数组(引用传递) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/gettime.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/gettime.md index 15898a257b85..152b520ea1eb 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/gettime.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/gettime.md @@ -17,7 +17,7 @@ tags: ["时间"] ## 返回值 -返回 Unix 时间戳。 +返回 [Unix 时间戳](https://en.wikipedia.org/wiki/Unix_time)。 ## 示例 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/random.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/random.md index d866a612dc1a..cb169e1ca529 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/random.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/random.md @@ -7,7 +7,7 @@ tags: ["核心"] ## 描述 -获取伪随机数 +获取[伪随机数](https://en.wikipedia.org/wiki/Pseudorandom_number_generator) | 参数 | 说明 | | ---- | --------------------------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md index cbd35a7b8bd4..51e00f84213a 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md @@ -11,7 +11,7 @@ tags: ["核心", "属性"] | 参数 | 说明 | | -------- | ------------------------------------------------------------------------------------------------------- | -| id | 虚拟机标识符(应保持默认值 0)_(optional=0)_ | +| id | [虚拟机](https://en.wikipedia.org/wiki/Virtual_machine)标识符(应保持默认值 0)_(optional=0)_ | | name[] | 与 _value_ 参数配合使用存储整型数据,存储字符串时无需使用 | | value | 存储的整型数值,**或**存储字符串时使用的属性唯一 ID(可通过哈希函数计算字符串生成)_(optional=cellmin)_ | | string[] | 字符串类型的属性值,存储整型时无需使用 | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md index 79a077b07b04..59ec4036c4c9 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/strcat.md @@ -7,7 +7,7 @@ tags: ["字符串"] ## 描述 -此函数用于将两个字符串拼接(连接)到目标字符串中。 +此函数用于将两个字符串[拼接](https://en.wikipedia.org/wiki/Concatenation)(连接)到目标字符串中。 | 参数 | 说明 | | ------------------------- | ------------------------ | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/tickcount.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/tickcount.md index 58660e45225e..8051a77f9de9 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/tickcount.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/tickcount.md @@ -7,7 +7,7 @@ tags: ["时间"] ## 描述 -此函数可作为 GetTickCount 的替代方案,返回服务器启动至今经过的毫秒数。 +此函数可作为 [GetTickCount](GetTickCount) 的替代方案,返回服务器启动至今经过的毫秒数。 | 参数 | 说明 | | -------------- | -------------------------------------------------------------------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md index 713e8699b3d4..59d9843d1329 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/cameramodes.md @@ -30,9 +30,3 @@ sidebar_label: 视角模式 | 53 | CAM_MODE_AIMWEAPON | MODE_AIMWEAPON | 常规武器瞄准 | | 55 | CAM_MODE_AIMWEAPON_FROMCAR | MODE_AIMWEAPON_FROMCAR | 车辆乘客射击视角(玩家进行乘车射击时) | | 56 | CAM_MODE_DW_HELI_CHASE | MODE_DW_HELI_CHASE | 追逐视角:直升机/鸟瞰视角 | -| 57 | - | MODE_DW_CAM_MAN | 追逐视角:地面视角,会快速拉近并对准车辆 | -| 58 | - | MODE_DW_BIRDY | 追逐视角:水平飞越车辆的过场视角 | -| 59 | - | MODE_DW_PLANE_SPOTTER | 追逐视角(仅限飞行车辆):地面视角,仰视空中车辆 | -| 62 | - | MODE_DW_PLANECAM1 | 追逐视角(仅限飞行车辆):垂直飞越空中车辆的过场视角 | -| 63 | - | MODE_DW_PLANECAM2 | 追逐视角(仅限飞行车辆):水平飞越空中车辆的过场视角(类似 58 和 62) | -| 64 | - | MODE_DW_PLANECAM3 | 追逐视角(仅限飞行车辆):聚焦飞行员的视角,类似于步行时按下"向后看"键的效果,但应用于飞行车辆 | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/damagestatus.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/damagestatus.md index ebd25e3f3813..5de4257f86f9 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/damagestatus.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/damagestatus.md @@ -16,10 +16,10 @@ description: 车辆损坏状态信息及代码示例 :::note -有关面板状态的更多信息,请参阅[面板状态](panelstates) -有关车门状态的更多信息,请参阅[车门状态](doorstates) -有关车灯状态的更多信息,请参阅[车灯状态](lightstates) -有关轮胎状态的更多信息,请参阅[轮胎状态](tirestates) +- 有关面板状态的更多信息,请参阅[面板状态](panelstates) +- 有关车门状态的更多信息,请参阅[车门状态](doorstates) +- 有关车灯状态的更多信息,请参阅[车灯状态](lightstates) +- 有关轮胎状态的更多信息,请参阅[轮胎状态](tirestates) ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md index 67fbde688c31..6edc32b67723 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md @@ -9,7 +9,7 @@ sidebar_label: 对话框样式 - 按下**button1**会将**response**设为**1** - 按下**button2**会将**response**设为**0** - 所有对话框都可选配按钮 2,留空则不显示(如首个示例)。玩家无法点击隐藏按钮,但按 ESC 键仍会触发[OnDialogResponse](../callbacks/OnDialogResponse)且**response**=**0** -- [ShowPlayerDialog](../functions/ShowPlayerDialog)支持在以下字符串中使用颜色嵌入:**caption**(标题)、**info**(内容)、**button1**和**button2** +- [ShowPlayerDialog](../functions/ShowPlayerDialog)支持在以下字符串中使用[颜色嵌入](colorslist#颜色嵌入):**caption**(标题)、**info**(内容)、**button1**和**button2** ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md index 5795e84bf62d..fdcb1c90eb2f 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md @@ -4,7 +4,7 @@ sidebar_label: 游戏文本样式 description: 文本绘图与游戏文本的样式说明 --- -本文详细说明在文本绘图(TextDraw)和玩家游戏文本(GameText)中使用的样式规则,主要应用于[GameTextForPlayer](../functions/GameTextForPlayer)和[GameTextForAll](../functions/GameTextForAll)函数。 +本文详细说明在[文本绘图(TextDraw)](../functions/TextDrawCreate)和玩家游戏文本(GameText)中使用的样式规则,主要应用于[GameTextForPlayer](../functions/GameTextForPlayer)和[GameTextForAll](../functions/GameTextForAll)函数。 --- @@ -61,7 +61,9 @@ description: 文本绘图与游戏文本的样式说明 :::caution -警告:单个游戏文本中使用过多颜色代码或特殊字符可能导致玩家客户端崩溃。同时避免波浪号`~`的不对称使用,错误示例:`~~r~错误~g~示例` +警告:单个游戏文本中使用过多颜色代码或特殊字符可能导致玩家客户端崩溃。同时避免波浪号`~`的不对称使用。 + +错误示例:`~~r~错误~g~示例` ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/limits.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/limits.md index 5150ca2d0267..94f4be01adc5 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/limits.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/limits.md @@ -40,24 +40,24 @@ tags: [] | 游戏模式 | 16 | 无限制 | | 滤镜脚本 | 16 | 无限制 | | 文本输入(聊天/指令) | 128 单元 (512 字节) | 128 单元 (512 字节) | -| 文本输出 | 144 单元 (576 字节) | 144 单元 (576 字节) | +| [文本输出](../functions/SendClientMessage) | 144 单元 (576 字节) | 144 单元 (576 字节) | | 名称长度 ([SetPlayerName](../functions/SetPlayerName)) | 24 字符 | 24 字符 | ## 文本绘图 -| 类型 | 限制 (0.3.7) | -| ------------------------------------ | ------------ | -| 字符串长度(2) | 1024 字符 | -| 单个客户端屏幕显示数量(3) | 2048 + 256 | -| 单个客户端屏幕精灵图显示数量 | 100 | -| 服务器全局创建数量 | 2048 | -| 玩家专属创建数量 | 256 | +| 类型 | 限制 (0.3.7) | +| ----------------------------------------------------- | ------------ | +| 字符串长度(2) | 1024 字符 | +| 单个客户端屏幕显示数量(3) | 2048 + 256 | +| 单个客户端屏幕精灵图显示数量 | 100 | +| [服务器全局创建数量](../functions/TextDrawCreate) | 2048 | +| [玩家专属创建数量](../functions/CreatePlayerTextDraw) | 256 | ## 对话框 | 类型 | 限制 (0.3.7) | | ---------------------------------------------------- | ------------ | -| 对话框 ID | 32768 | +| [对话框 ID](../functions/ShowPlayerDialog) | 32768 | | 信息(主文本) | 4096 | | 标题 | 64 | | 输入文本框 (DIALOG_STYLE_INPUT/PASSWORD) | 128 | @@ -68,7 +68,7 @@ tags: [] **注意事项:** 1. 虽然 0.3 版本中车辆模型数量无限制,但使用大量车辆模型会影响客户端性能 -2. 尽管文本绘图字符串限制为 1024 字符,若在 255 字符后使用颜色代码(如`~r~`)可能导致客户端崩溃 +2. 尽管文本绘图字符串限制为 1024 字符,若在 255 字符后使用[颜色代码](gametextstyles#文本颜色)(如`~r~`)可能导致客户端崩溃 3. 理论上可为单个玩家同时显示所有文本绘图,但不建议这样做 4. 可通过[流加载插件](https://github.com/samp-incognito/samp-streamer-plugin)突破这些限制,该插件通过仅在玩家附近创建实体等方式工作 5. 受客户端限制,实际最多仅能显示 51 个角色 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/startingids.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/startingids.md index 775d30d564d3..663786c5bc18 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/startingids.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/startingids.md @@ -7,18 +7,18 @@ description: 各类实体(如物体、玩家或车辆)的ID起始编号规 本文档列出了多种实体类型的起始 ID 编号规则。 诸如物体、玩家或车辆等所有实体都使用 ID 进行标识,部分类型从 0 开始计数,另一些则从 1 开始。 -| 实体类型 | 起始 ID | -| --------------------- | ------- | -| 3D 文本标签 | 0 | -| 演员 | 0 | -| 文件句柄 | 0 | -| 帮派区域 | 0 | -| 物体 | 1 | -| 拾取物 | 0 | -| 玩家 | 0 | -| 玩家职业 | 0 | -| 文本绘图/玩家文本绘图 | 0 | -| 定时器 | 1 | -| 车辆 | 1 | +| 实体类型 | 起始 ID | +| ----------------------------------------------------------------------------------------- | ------- | +| [3D 文本标签](../functions/Create3DTextLabel) | 0 | +| [演员](../functions/CreateActor) | 0 | +| [文件句柄](../functions/fopen) | 0 | +| [帮派区域](../functions/GangZoneCreate) | 0 | +| [物体](../functions/CreateObject) | 1 | +| [拾取物](../functions/CreatePickup) | 0 | +| 玩家 | 0 | +| [玩家职业](../functions/AddPlayerClass) | 0 | +| [文本绘图](../functions/TextDrawCreate)/[玩家文本绘图](../functions/CreatePlayerTextDraw) | 0 | +| [定时器](../functions/SetTimer) | 1 | +| [车辆](../functions/CreateVehicle) | 1 | 请注意:**车辆和物体的 ID 从 1 开始计数**!如果计划使用数组存储所有 ID,需要将 CreateObject/CreateVehicle 等函数返回的 ID 值减 1,才能正确对应数组索引位置。 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md index e4c96d84e0c1..4c0e271b3330 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md @@ -54,8 +54,8 @@ sidebar_label: 武器ID | ![](https://assets.open.mp/assets/images/weaponIcons/spraycan.png)
喷漆罐 | ![](https://assets.open.mp/assets/images/deathIcons/death-sprayCan.gif) | WEAPON_SPRAYCAN(喷漆) | 41 | 9 | 365 | 500 | 否 | 被喷漆的玩家会触发窒息动画 | | ![](https://assets.open.mp/assets/images/weaponIcons/fireExtinguisher.png)
灭火器 | ![](https://assets.open.mp/assets/images/deathIcons/death-fireExtinguisher.gif) | WEAPON_FIREEXTINGUISHER | 42 | 9 | 366 | 500 | 否 | 被喷射的玩家会窒息 | | ![](https://assets.open.mp/assets/images/weaponIcons/camera.png)
相机 | ![](https://assets.open.mp/assets/images/deathIcons/death-camera.gif) | WEAPON_CAMERA | 43 | 9 | 367 | 36 | 否 | 通过暂停菜单启用后,拍摄的照片将保存至玩家图库(路径:我的文档\GTA San Andreas User Files\Gallery) | -| ![](https://assets.open.mp/assets/images/weaponIcons/nightVisGoggles.png)
夜视镜 | ![](https://assets.open.mp/assets/images/deathIcons/death-nightVisGoggles.gif) | WEAPON_NIGHT_VISION_GOGGLES | 44 | 11 | 368 | - | - | 所有玩家都会看到视觉效果(已有修复方案) | -| ![](https://assets.open.mp/assets/images/weaponIcons/thermalGoggles.png)
热成像镜 | ![](https://assets.open.mp/assets/images/deathIcons/death-thermalGoggles.gif) | WEAPON_THERMAL_GOGGLES | 45 | 11 | 369 | - | - | 所有玩家都会看到视觉效果(已有修复方案) | +| ![](https://assets.open.mp/assets/images/weaponIcons/nightVisGoggles.png)
夜视镜 | ![](https://assets.open.mp/assets/images/deathIcons/death-nightVisGoggles.gif) | WEAPON_NIGHT_VISION_GOGGLES | 44 | 11 | 368 | - | - | 所有玩家都会看到视觉效果(已在 open.mp 中修复) | +| ![](https://assets.open.mp/assets/images/weaponIcons/thermalGoggles.png)
热成像镜 | ![](https://assets.open.mp/assets/images/deathIcons/death-thermalGoggles.gif) | WEAPON_THERMAL_GOGGLES | 45 | 11 | 369 | - | - | 所有玩家都会看到视觉效果(已在 open.mp 中修复) | | ![](https://assets.open.mp/assets/images/weaponIcons/parachute.png)
降落伞 | ![](https://assets.open.mp/assets/images/deathIcons/death-parachute.gif) | WEAPON_PARACHUTE | 46 | 11 | 371 | - | - | 使用降落伞俯冲时传送会导致死亡(可通过[ResetPlayerWeapons](../functions/ResetPlayerWeapons)修复)。弃机时自动获得(需在反作弊检测中豁免) | | ![](https://assets.open.mp/assets/images/weaponIcons/cellphone.png)
手机 | - | - | - | - | - | - | - | 已从游戏移除 | | ![](https://assets.open.mp/assets/images/weaponIcons/jetpack.png)
喷气背包 | - | - | - | - | 370 | - | - | 无法作为武器使用,详见[SetPlayerSpecialAction](../functions/SetPlayerSpecialAction) | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md index 0ea2ae67e03c..2ad0fbd014fd 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/PickupGuide.md @@ -19,14 +19,14 @@ new gMyPickup; **[CreatePickup](../scripting/functions/CreatePickup) 参数说明:** -| 参数 | 说明 | -| ------------ | ------------------------------------ | -| model | 拾取物显示模型 ID | -| type | 生成类型(详见下文) | -| Float:X | X 坐标 | -| Float:Y | Y 坐标 | -| Float:Z | Z 坐标 | -| Virtualworld | 虚拟世界 ID(-1 表示全虚拟世界可见) | +| 参数 | 说明 | +| ------------ | ----------------------------------------------------- | +| model | 拾取物显示[模型 ID](../scripting/resources/pickupids) | +| type | 生成类型(详见下文) | +| Float:X | X 坐标 | +| Float:Y | Y 坐标 | +| Float:Z | Z 坐标 | +| Virtualworld | 虚拟世界 ID(-1 表示全虚拟世界可见) | 以在格罗夫街创建金钱拾取物为例: