diff --git a/frontend/docs/scripting/callbacks/OnDialogResponse.md b/frontend/docs/scripting/callbacks/OnDialogResponse.md index c13dfd8bd957..36ebe55c7444 100644 --- a/frontend/docs/scripting/callbacks/OnDialogResponse.md +++ b/frontend/docs/scripting/callbacks/OnDialogResponse.md @@ -185,9 +185,7 @@ Using a switch-case statement instead of if blocks is an appropriate method for :::warning -A player's dialog doesn't automatically close when the gamemode restarts. - -If a player responds to a dialog after the server was restarted, the server will print the warning: "Warning: PlayerDialogResponse PlayerId: 0 dialog ID doesn't match last sent dialog ID". +A player's dialog doesn't automatically close when the gamemode restarts. If a player responds to a dialog after the server was restarted, the server will print the warning: "Warning: PlayerDialogResponse PlayerId: 0 dialog ID doesn't match last sent dialog ID". ::: diff --git a/frontend/docs/scripting/callbacks/OnEnterExitModShop.md b/frontend/docs/scripting/callbacks/OnEnterExitModShop.md index a40628cf119e..b5742f1fcedc 100644 --- a/frontend/docs/scripting/callbacks/OnEnterExitModShop.md +++ b/frontend/docs/scripting/callbacks/OnEnterExitModShop.md @@ -37,9 +37,7 @@ public OnEnterExitModShop(playerid, enterexit, interiorid) :::warning -Known Bug(s): - -- Players collide when they get into the same mod shop. +Known Bug(s): Players collide when they get into the same mod shop. ::: diff --git a/frontend/docs/scripting/callbacks/OnGameModeExit.md b/frontend/docs/scripting/callbacks/OnGameModeExit.md index 12679d509d0a..3427086031c5 100644 --- a/frontend/docs/scripting/callbacks/OnGameModeExit.md +++ b/frontend/docs/scripting/callbacks/OnGameModeExit.md @@ -35,9 +35,8 @@ This function can also be used in a filterscript to detect if the gamemode chang :::warning -When using OnGameModeExit in conjunction with the 'rcon gmx' console command keep in mind there is a potential for client bugs to occur. - -An example of this is excessive [RemoveBuildingForPlayer](../functions/RemoveBuildingForPlayer) calls during [OnGameModeInit](OnGameModeInit) which could result in a client crash. This callback will NOT be called if the server crashes or the process is killed by other means, such as using the Linux kill command or pressing the close-button on the Windows console. +- When using OnGameModeExit in conjunction with the 'rcon gmx' console command keep in mind there is a potential for client bugs to occur. An example of this is excessive [RemoveBuildingForPlayer](../functions/RemoveBuildingForPlayer) calls during [OnGameModeInit](OnGameModeInit) which could result in a client crash. +- This callback will NOT be called if the server crashes or the process is killed by other means, such as using the Linux kill command. ::: diff --git a/frontend/docs/scripting/callbacks/OnPlayerExitVehicle.md b/frontend/docs/scripting/callbacks/OnPlayerExitVehicle.md index 792561f7546d..fa7a9240496a 100644 --- a/frontend/docs/scripting/callbacks/OnPlayerExitVehicle.md +++ b/frontend/docs/scripting/callbacks/OnPlayerExitVehicle.md @@ -34,8 +34,7 @@ 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/OnPlayerUpdate.md b/frontend/docs/scripting/callbacks/OnPlayerUpdate.md index a188581242f1..ad3e764a46da 100644 --- a/frontend/docs/scripting/callbacks/OnPlayerUpdate.md +++ b/frontend/docs/scripting/callbacks/OnPlayerUpdate.md @@ -93,6 +93,7 @@ public OnPlayerUpdate(playerid) :::warning -This callback is called, on average, 30 times per second, per player; only use it when you know what it's meant for (or more importantly what it's NOT meant for). The frequency with which this callback is called for each player varies, depending on what the player is doing. Driving or shooting will trigger a lot more updates than idling. +- This callback is called, on average, 30 times per second, per player; only use it when you know what it's meant for (or more importantly what it's NOT meant for). +- The frequency with which this callback is called for each player varies, depending on what the player is doing. Driving or shooting will trigger a lot more updates than idling. ::: diff --git a/frontend/docs/scripting/callbacks/OnRconCommand.md b/frontend/docs/scripting/callbacks/OnRconCommand.md index 2e352d365317..ef11913e429b 100644 --- a/frontend/docs/scripting/callbacks/OnRconCommand.md +++ b/frontend/docs/scripting/callbacks/OnRconCommand.md @@ -48,8 +48,10 @@ public OnRconCommand(cmd[]) :::note -- 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. +- 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. ::: diff --git a/frontend/docs/scripting/callbacks/OnRconLoginAttempt.md b/frontend/docs/scripting/callbacks/OnRconLoginAttempt.md index 74ba3e92eaad..4fd760945c47 100644 --- a/frontend/docs/scripting/callbacks/OnRconLoginAttempt.md +++ b/frontend/docs/scripting/callbacks/OnRconLoginAttempt.md @@ -55,7 +55,8 @@ public OnRconLoginAttempt(ip[], password[], success) :::note -This callback is only called when /rcon login is used in-game. This callback is only called when the player is not yet logged in. When the player is logged in, [OnRconCommand](OnRconCommand) is called instead. +- This callback is only called when /rcon login is used in-game. +- This callback is only called when the player is not yet logged in. When the player is logged in, [OnRconCommand](OnRconCommand) is called instead. ::: diff --git a/frontend/docs/scripting/callbacks/OnVehicleRespray.md b/frontend/docs/scripting/callbacks/OnVehicleRespray.md index 5140f03c3d61..f6b1a7610082 100644 --- a/frontend/docs/scripting/callbacks/OnVehicleRespray.md +++ b/frontend/docs/scripting/callbacks/OnVehicleRespray.md @@ -46,9 +46,7 @@ Fix here: https://pastebin.com/G81da7N1 :::warning -Known Bug(s): - -- Previewing a component inside a mod shop might call this callback. +Known Bug(s): Previewing a component inside a mod shop might call this callback. ::: diff --git a/frontend/docs/scripting/functions/AddSimpleModel.md b/frontend/docs/scripting/functions/AddSimpleModel.md index 12d13e78c3ea..933aed791a5f 100644 --- a/frontend/docs/scripting/functions/AddSimpleModel.md +++ b/frontend/docs/scripting/functions/AddSimpleModel.md @@ -39,9 +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 in order for this to work. +- When `virtualworld` is set, the models will be downloaded once the player enters the specific world. ::: diff --git a/frontend/docs/scripting/functions/AddSimpleModelTimed.md b/frontend/docs/scripting/functions/AddSimpleModelTimed.md index e6a36d4e7bc4..139c511178fb 100644 --- a/frontend/docs/scripting/functions/AddSimpleModelTimed.md +++ b/frontend/docs/scripting/functions/AddSimpleModelTimed.md @@ -41,9 +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 in order for this to work. +- When virtualworld is set, the models will be downloaded once the player enters the specific world. ::: diff --git a/frontend/docs/scripting/functions/ApplyAnimation.md b/frontend/docs/scripting/functions/ApplyAnimation.md index 7ee7152cb136..5558716c75dd 100644 --- a/frontend/docs/scripting/functions/ApplyAnimation.md +++ b/frontend/docs/scripting/functions/ApplyAnimation.md @@ -49,8 +49,7 @@ ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.1, true, true, true, true, 1, SY :::note -- The 'forceSync' optional parameter, which defaults to 0 (SYNC_NONE), in most cases is not needed since players sync animations themselves. -- The 'forcesync' parameter can force all players who can see 'playerid' to play the animation regardless of whether the player is performing that animation. This is useful in circumstances where the player can't sync the animation themselves. For example, they may be paused. +The 'forceSync' optional parameter, which defaults to 0 (SYNC_NONE), in most cases is not needed since players sync animations themselves. The 'forcesync' parameter can force all players who can see 'playerid' to play the animation regardless of whether the player is performing that animation. This is useful in circumstances where the player can't sync the animation themselves. For example, they may be paused. ::: diff --git a/frontend/docs/scripting/functions/CreatePickup.md b/frontend/docs/scripting/functions/CreatePickup.md index 9a73fb2b4649..260c44edbfbd 100644 --- a/frontend/docs/scripting/functions/CreatePickup.md +++ b/frontend/docs/scripting/functions/CreatePickup.md @@ -58,9 +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 either. ::: diff --git a/frontend/docs/scripting/functions/CreatePlayerTextDraw.md b/frontend/docs/scripting/functions/CreatePlayerTextDraw.md index 793bb590389e..63743cc00ddd 100644 --- a/frontend/docs/scripting/functions/CreatePlayerTextDraw.md +++ b/frontend/docs/scripting/functions/CreatePlayerTextDraw.md @@ -43,8 +43,7 @@ public OnPlayerConnect(playerid) :::note -- The `x, y` coordinate is the top left coordinate for the text draw area based on a 640x480 "canvas" (irrespective of screen resolution). -- If you plan on using [PlayerTextDrawAlignment](PlayerTextDrawAlignment) with alignment 3 (`TEXT_DRAW_ALIGN_RIGHT`), the `x, y` coordinate is the top right coordinate for the text draw. +- The `x, y` coordinate is the top left coordinate for the text draw area based on a 640x480 "canvas" (irrespective of screen resolution). If you plan on using [PlayerTextDrawAlignment](PlayerTextDrawAlignment) with alignment 3 (`TEXT_DRAW_ALIGN_RIGHT`), the `x, y` coordinate is the top right coordinate for the text draw. - This function merely CREATES the textdraw, you must use [PlayerTextDrawShow](PlayerTextDrawShow) to show it to a player. - Player-textdraws are automatically destroyed when a player disconnects. diff --git a/frontend/docs/scripting/functions/DB_Open_Modern.md b/frontend/docs/scripting/functions/DB_Open_Modern.md index ff5538726512..024dbeebb56e 100644 --- a/frontend/docs/scripting/functions/DB_Open_Modern.md +++ b/frontend/docs/scripting/functions/DB_Open_Modern.md @@ -68,7 +68,8 @@ public OnGameModeExit() :::warning -It will create a new SQLite database file, if there is no SQLite database file with the same file name available. Close your SQLite database connection with [DB_Close](DB_Close_Modern)! +- It will create a new SQLite database file, if there is no SQLite database file with the same file name available. +- Close your SQLite database connection with [DB_Close](DB_Close_Modern)! ::: diff --git a/frontend/docs/scripting/functions/DisableMenuRow.md b/frontend/docs/scripting/functions/DisableMenuRow.md index 268d8f293dd4..ef42934a4901 100644 --- a/frontend/docs/scripting/functions/DisableMenuRow.md +++ b/frontend/docs/scripting/functions/DisableMenuRow.md @@ -56,8 +56,7 @@ Crashes when passed an invalid menu ID. (Fixed in open.mp) :::note -- This function disabled the specified menu row for all players. -- There is no function to disable a menu row for a specific player. You'd have to create two menus - one with a row disabled, and one without. Or one per player. +This function disabled the specified menu row for all players. There is no function to disable a menu row for a specific player. You'd have to create two menus - one with a row disabled, and one without. Or one per player. ::: diff --git a/frontend/docs/scripting/functions/EnableTirePopping.md b/frontend/docs/scripting/functions/EnableTirePopping.md index 4a2356a629c0..241f852fceaf 100644 --- a/frontend/docs/scripting/functions/EnableTirePopping.md +++ b/frontend/docs/scripting/functions/EnableTirePopping.md @@ -38,8 +38,7 @@ This function was removed in SA-MP 0.3. :::note -- Tire popping is enabled by default. -- If you want to disable tire popping, you'll have to manually script it using [OnVehicleDamageStatusUpdate](../callbacks/OnVehicleDamageStatusUpdate). +Tire popping is enabled by default. If you want to disable tire popping, you'll have to manually script it using [OnVehicleDamageStatusUpdate](../callbacks/OnVehicleDamageStatusUpdate). ::: diff --git a/frontend/docs/scripting/functions/GetMaxPlayers.md b/frontend/docs/scripting/functions/GetMaxPlayers.md index 55707e283534..d94752a01e61 100644 --- a/frontend/docs/scripting/functions/GetMaxPlayers.md +++ b/frontend/docs/scripting/functions/GetMaxPlayers.md @@ -21,8 +21,7 @@ SendClientMessage(playerid, 0xFFFFFFFF, string); :::warning -- This function can not be used in place of MAX_PLAYERS. It can not be used at compile time (e.g. for array sizes). -- `MAX_PLAYERS` should always be re-defined to what the 'max_players' var will be, or higher. +This function can not be used in place of MAX_PLAYERS. It can not be used at compile time (e.g. for array sizes). `MAX_PLAYERS` should always be re-defined to what the 'max_players' var will be, or higher. ::: diff --git a/frontend/docs/scripting/functions/GetObjectType.md b/frontend/docs/scripting/functions/GetObjectType.md index f47f2a3a6cef..9333f6229393 100644 --- a/frontend/docs/scripting/functions/GetObjectType.md +++ b/frontend/docs/scripting/functions/GetObjectType.md @@ -1,7 +1,7 @@ --- title: GetObjectType sidebar_label: GetObjectType -description: Get the type of an object. (global or player) +description: Get the type of an object (global or player). tags: ["object"] --- diff --git a/frontend/docs/scripting/functions/GetPlayerCameraPos.md b/frontend/docs/scripting/functions/GetPlayerCameraPos.md index 3f66d1afe78e..21d2e2f343c5 100644 --- a/frontend/docs/scripting/functions/GetPlayerCameraPos.md +++ b/frontend/docs/scripting/functions/GetPlayerCameraPos.md @@ -37,7 +37,7 @@ public OnPlayerDisconnect(playerid, reason) :::warning -Player's camera positions are only updated once a second, unless aiming.It is recommended to set a 1 second timer if you wish to take action that relies on a player's camera position. +Player's camera positions are only updated once a second, unless aiming. It is recommended to set a 1 second timer if you wish to take action that relies on a player's camera position. ::: diff --git a/frontend/docs/scripting/functions/GetPlayerCameraTargetPlayer.md b/frontend/docs/scripting/functions/GetPlayerCameraTargetPlayer.md index 509853646b66..a45c3a57423e 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 aming 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 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/GetPlayerKeys.md b/frontend/docs/scripting/functions/GetPlayerKeys.md index d035c6945a19..09976b41721e 100644 --- a/frontend/docs/scripting/functions/GetPlayerKeys.md +++ b/frontend/docs/scripting/functions/GetPlayerKeys.md @@ -58,9 +58,8 @@ public OnPlayerUpdate(playerid) :::warning -Only the FUNCTION of keys can be detected; not actual keys. For example, it is not possible to detect if a player presses SPACE, but you can detect if they press SPRINT (which can be mapped (assigned/binded) to ANY key (but is space by default)). - -As of update 0.3.7, the keys "A" and "D" are not recognized when in a vehicle. However, keys "W" and "S" can be detected with the "keys" parameter. +- Only the FUNCTION of keys can be detected; not actual keys. For example, it is not possible to detect if a player presses SPACE, but you can detect if they press SPRINT (which can be mapped (assigned/binded) to ANY key (but is space by default)). +- As of update 0.3.7, the keys "A" and "D" are not recognized when in a vehicle. However, keys "W" and "S" can be detected with the "keys" parameter. ::: diff --git a/frontend/docs/scripting/functions/GetPlayerSkin.md b/frontend/docs/scripting/functions/GetPlayerSkin.md index 541a74b1c465..07e2c0d5558c 100644 --- a/frontend/docs/scripting/functions/GetPlayerSkin.md +++ b/frontend/docs/scripting/functions/GetPlayerSkin.md @@ -41,7 +41,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -Returns the new skin after [SetSpawnInfo](SetSpawnInfo) is called but before the player actually respawns to get the new skin. Returns the old skin if the player was spawned through [SpawnPlayer](SpawnPlayer) function. +- Returns the new skin after [SetSpawnInfo](SetSpawnInfo) is called but before the player actually respawns to get the new skin. +- Returns the old skin if the player was spawned through [SpawnPlayer](SpawnPlayer) function. ::: diff --git a/frontend/docs/scripting/functions/GetPlayerTargetActor.md b/frontend/docs/scripting/functions/GetPlayerTargetActor.md index 5086b840ba98..93ac654be0a7 100644 --- a/frontend/docs/scripting/functions/GetPlayerTargetActor.md +++ b/frontend/docs/scripting/functions/GetPlayerTargetActor.md @@ -38,7 +38,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/docs/scripting/functions/GetPlayerTargetPlayer.md b/frontend/docs/scripting/functions/GetPlayerTargetPlayer.md index 81eb9be27ff1..eca42b48e835 100644 --- a/frontend/docs/scripting/functions/GetPlayerTargetPlayer.md +++ b/frontend/docs/scripting/functions/GetPlayerTargetPlayer.md @@ -35,7 +35,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/docs/scripting/functions/GetPlayerWeaponData.md b/frontend/docs/scripting/functions/GetPlayerWeaponData.md index b0471792ecea..e9d273d9f0eb 100644 --- a/frontend/docs/scripting/functions/GetPlayerWeaponData.md +++ b/frontend/docs/scripting/functions/GetPlayerWeaponData.md @@ -1,7 +1,7 @@ --- title: GetPlayerWeaponData sidebar_label: GetPlayerWeaponData -description: Get the weapon and ammo in a specific player's weapon slot (e. +description: Get the weapon and ammo in a specific player's weapon slot (e.g. the weapon in the 'SMG' slot). tags: ["player"] --- diff --git a/frontend/docs/scripting/functions/GetVehicleParamsCarDoors.md b/frontend/docs/scripting/functions/GetVehicleParamsCarDoors.md index 542dde42a9c7..429ea3399a12 100644 --- a/frontend/docs/scripting/functions/GetVehicleParamsCarDoors.md +++ b/frontend/docs/scripting/functions/GetVehicleParamsCarDoors.md @@ -29,11 +29,9 @@ The vehicle's doors state is stored in the specified variables. The values returned in each variable are as follows: -**-1**: Door state not set - -**1**: Open - -**0**: Closed +- **-1**: Door state not set +- **1**: Open +- **0**: Closed ::: diff --git a/frontend/docs/scripting/functions/GetVehicleParamsCarWindows.md b/frontend/docs/scripting/functions/GetVehicleParamsCarWindows.md index 8d98f47073d2..c4c5214e3cf3 100644 --- a/frontend/docs/scripting/functions/GetVehicleParamsCarWindows.md +++ b/frontend/docs/scripting/functions/GetVehicleParamsCarWindows.md @@ -29,11 +29,9 @@ The vehicle's windows state is stored in the specified variables. The values returned in each variable are as follows: -**-1**: Window state not set (generally closed, unless set explicitly to -1) - -**0**: Open - -**1**: Closed +- **-1**: Window state not set (generally closed, unless set explicitly to -1) +- **0**: Open +- **1**: Closed ::: diff --git a/frontend/docs/scripting/functions/GetVehicleParamsEx.md b/frontend/docs/scripting/functions/GetVehicleParamsEx.md index 0a7620ac1aac..6d2c8d64f302 100644 --- a/frontend/docs/scripting/functions/GetVehicleParamsEx.md +++ b/frontend/docs/scripting/functions/GetVehicleParamsEx.md @@ -12,7 +12,7 @@ Gets a vehicle's parameters. | Name | Description | | ---------- | ------------------------------------------------------------------- | | vehicleid | The ID of the vehicle to get the parameters from. | -| &engine | Get the engine status. If 1, the engine is running.. | +| &engine | Get the engine status. If 1, the engine is running. | | &lights | Get the vehicle's lights' state. If 1 the lights are on. | | &alarm | Get the vehicle's alarm state. If 1 the alarm is (or was) sounding. | | &doors | Get the lock status of the doors. If 1 the doors are locked. | diff --git a/frontend/docs/scripting/functions/HTTP.md b/frontend/docs/scripting/functions/HTTP.md index 81e32d7e20b2..ec94f27d4fba 100644 --- a/frontend/docs/scripting/functions/HTTP.md +++ b/frontend/docs/scripting/functions/HTTP.md @@ -28,7 +28,9 @@ Sends a threaded HTTP request. #define HTTP_GET (HTTP_METHOD:1) // Sends a regular HTTP request. #define HTTP_POST (HTTP_METHOD:2) // Sends a HTTP request with POST data. #define HTTP_HEAD (HTTP_METHOD:3) // Sends a regular HTTP request, but ignores any response data - returning only the response code. +``` +```c // HTTP error response codes // These codes compliment ordinary HTTP response codes returned in 'response_code' #define HTTP_ERROR_BAD_HOST (HTTP_ERROR:1) diff --git a/frontend/docs/scripting/functions/HasObjectCameraCollision.md b/frontend/docs/scripting/functions/HasObjectCameraCollision.md index 183b45be2efa..0bb2ca075c73 100644 --- a/frontend/docs/scripting/functions/HasObjectCameraCollision.md +++ b/frontend/docs/scripting/functions/HasObjectCameraCollision.md @@ -1,7 +1,7 @@ --- title: HasObjectCameraCollision sidebar_label: HasObjectCameraCollision -description: Checks if an object has camera collision enabled. (SetObjectNoCameraCollision) +description: Checks if an object has camera collision enabled (SetObjectNoCameraCollision). tags: ["object"] --- diff --git a/frontend/docs/scripting/functions/HasPlayerObjectCameraCollision.md b/frontend/docs/scripting/functions/HasPlayerObjectCameraCollision.md index 93d5243329db..30c12748cc51 100644 --- a/frontend/docs/scripting/functions/HasPlayerObjectCameraCollision.md +++ b/frontend/docs/scripting/functions/HasPlayerObjectCameraCollision.md @@ -1,7 +1,7 @@ --- title: HasPlayerObjectCameraCollision sidebar_label: HasPlayerObjectCameraCollision -description: Checks if a player-object has camera collision enabled. (SetPlayerObjectNoCameraCollision) +description: Checks if a player-object has camera collision enabled (SetPlayerObjectNoCameraCollision). tags: ["player", "object", "playerobject"] --- diff --git a/frontend/docs/scripting/functions/PlayerTextDrawBackgroundColor.md b/frontend/docs/scripting/functions/PlayerTextDrawBackgroundColor.md index 3fa1049a6c06..13b1839c91c5 100644 --- a/frontend/docs/scripting/functions/PlayerTextDrawBackgroundColor.md +++ b/frontend/docs/scripting/functions/PlayerTextDrawBackgroundColor.md @@ -37,8 +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. ::: diff --git a/frontend/docs/scripting/functions/PlayerTextDrawColor.md b/frontend/docs/scripting/functions/PlayerTextDrawColor.md index dfd4b5dd1395..b6cabc51cb8a 100644 --- a/frontend/docs/scripting/functions/PlayerTextDrawColor.md +++ b/frontend/docs/scripting/functions/PlayerTextDrawColor.md @@ -38,7 +38,7 @@ public OnPlayerConnect(playerid) :::tip -You can also use Gametext colours in textdraws. (e.g. `~r~` `~g~` `~b~`) +You can also use Gametext colours in textdraws. ::: diff --git a/frontend/docs/scripting/functions/RepairVehicle.md b/frontend/docs/scripting/functions/RepairVehicle.md index a38eda7d4e0a..411afe07d9e7 100644 --- a/frontend/docs/scripting/functions/RepairVehicle.md +++ b/frontend/docs/scripting/functions/RepairVehicle.md @@ -1,7 +1,7 @@ --- title: RepairVehicle sidebar_label: RepairVehicle -description: Fully repairs a vehicle, including visual damage (bumps, dents, scratches, popped tires etc. +description: Fully repairs a vehicle, including visual damage (bumps, dents, scratches, popped tires etc.). tags: ["vehicle"] --- diff --git a/frontend/docs/scripting/functions/SHA256_PassHash.md b/frontend/docs/scripting/functions/SHA256_PassHash.md index c1f6cc59253c..0e493d75d9a3 100644 --- a/frontend/docs/scripting/functions/SHA256_PassHash.md +++ b/frontend/docs/scripting/functions/SHA256_PassHash.md @@ -50,7 +50,8 @@ The returned hash has zero padding (i.e. possible prefix 00ABCD123...). :::tip -The salt is appended to the end of the password, meaning password 'foo' and salt 'bar' would form 'foobar'. The salt should be random, unique for each player and at least as long as the hashed password. It is to be stored alongside the actual hash in the player's account. +- The salt is appended to the end of the password, meaning password 'foo' and salt 'bar' would form 'foobar'. +- The salt should be random, unique for each player and at least as long as the hashed password. It is to be stored alongside the actual hash in the player's account. ::: diff --git a/frontend/docs/scripting/functions/SendDeathMessage.md b/frontend/docs/scripting/functions/SendDeathMessage.md index 947499679917..0c243c63e3ea 100644 --- a/frontend/docs/scripting/functions/SendDeathMessage.md +++ b/frontend/docs/scripting/functions/SendDeathMessage.md @@ -41,7 +41,9 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::tip -Death messages can be cleared by using a valid player ID for 'playerid' that is not connected. To show a death message for just a single player, use [SendDeathMessageToPlayer](SendDeathMessageToPlayer). You can use NPCs to create your own custom death reasons. +- Death messages can be cleared by using a valid player ID for 'playerid' that is not connected. +- To show a death message for just a single player, use [SendDeathMessageToPlayer](SendDeathMessageToPlayer). +- You can use NPCs to create your own custom death reasons. ::: diff --git a/frontend/docs/scripting/functions/SetActorInvulnerable.md b/frontend/docs/scripting/functions/SetActorInvulnerable.md index cb8945c6a589..a1d269555e65 100644 --- a/frontend/docs/scripting/functions/SetActorInvulnerable.md +++ b/frontend/docs/scripting/functions/SetActorInvulnerable.md @@ -39,7 +39,8 @@ public OnGameModeInit() :::warning -Once set invulnerable, the actor does not call [OnPlayerGiveDamageActor](../callbacks/OnPlayerGiveDamageActor). Players will have actor's invulnerability state changed only when it is restreamed to them. +- Once set invulnerable, the actor does not call [OnPlayerGiveDamageActor](../callbacks/OnPlayerGiveDamageActor). +- Players will have actor's invulnerability state changed only when it is restreamed to them. ::: diff --git a/frontend/docs/scripting/functions/SetObjectMaterial.md b/frontend/docs/scripting/functions/SetObjectMaterial.md index 760f9ffd49c8..816499c988dc 100644 --- a/frontend/docs/scripting/functions/SetObjectMaterial.md +++ b/frontend/docs/scripting/functions/SetObjectMaterial.md @@ -64,7 +64,7 @@ You MUST use ARGB color format, not RGBA like used in client messages etc. - [SetPlayerObjectMaterial](SetPlayerObjectMaterial): Replace the texture of a player object with the texture from another model in the game. - [SetObjectMaterialText](SetObjectMaterialText): Replace the texture of an object with text. -## Advanaced Map Editors +## Advanced Map Editors - [Texture Studio](https://github.com/Pottus/Texture-Studio) by Pottus - [Ultimate Creator](https://github.com/NexiusTailer/Ultimate-Creator) by Nexius diff --git a/frontend/docs/scripting/functions/SetObjectMaterialText.md b/frontend/docs/scripting/functions/SetObjectMaterialText.md index 9063fd174b62..1cb800d3f567 100644 --- a/frontend/docs/scripting/functions/SetObjectMaterialText.md +++ b/frontend/docs/scripting/functions/SetObjectMaterialText.md @@ -65,12 +65,11 @@ Text does not update after 16 calls against the same object. - [SetPlayerObjectMaterialText](SetPlayerObjectMaterialText): Replace the texture of a player object with text. - [SetObjectMaterial](SetObjectMaterial): Replace the texture of an object with the texture from another model in the game. -## Advanaced Map Editors +## Advanced Map Editors - [Texture Studio](https://github.com/Pottus/Texture-Studio) by Pottus - [Ultimate Creator](https://github.com/NexiusTailer/Ultimate-Creator) by Nexius - [Fusez's Map Editor](https://github.com/fusez/Map-Editor-V3) by RedFusion -- [SetObjectMaterialText Editor](https://sampforum.blast.hk/showthread.php?tid=614667) by RIDE2DAY ## Related Resources diff --git a/frontend/docs/scripting/functions/SetPlayerDrunkLevel.md b/frontend/docs/scripting/functions/SetPlayerDrunkLevel.md index 1a2e6fefb701..02a73c923302 100644 --- a/frontend/docs/scripting/functions/SetPlayerDrunkLevel.md +++ b/frontend/docs/scripting/functions/SetPlayerDrunkLevel.md @@ -40,10 +40,10 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - Players' drunk level will automatically decrease over time, based on their FPS (players with 50 FPS will lose 50 'levels' per second. This is useful for determining a player's FPS!). -- In 0.3a the drunk level will decrement and stop at 2000. -- In 0.3b+ the drunk level decrements to zero. +- In 0.3a the drunk level will decrement and stop at 2000. In 0.3b+ the drunk level decrements to zero. - Levels over 2000 make the player drunk (camera swaying and vehicles difficult to control). -- Max drunk level is 50000. While the drunk level is above 5000, the player's HUD (radar etc.) will be hidden. +- Max drunk level is 50000. +- While the drunk level is above 5000, the player's HUD (radar etc.) will be hidden. ::: diff --git a/frontend/docs/scripting/functions/SetPlayerHoldingObject.md b/frontend/docs/scripting/functions/SetPlayerHoldingObject.md index 5c6c97227908..ddbf6b6d3636 100644 --- a/frontend/docs/scripting/functions/SetPlayerHoldingObject.md +++ b/frontend/docs/scripting/functions/SetPlayerHoldingObject.md @@ -39,7 +39,8 @@ public OnPlayerSpawn(playerid) :::note -Only one object may be attached per player. This function is seperate from the CreateObject / CreatePlayerObject pools. +- Only one object may be attached per player. +- This function is seperate from the CreateObject / CreatePlayerObject pools. ::: diff --git a/frontend/docs/scripting/functions/SetPlayerObjectMaterial.md b/frontend/docs/scripting/functions/SetPlayerObjectMaterial.md index ed8fdf9f0c6d..76b15a8d7191 100644 --- a/frontend/docs/scripting/functions/SetPlayerObjectMaterial.md +++ b/frontend/docs/scripting/functions/SetPlayerObjectMaterial.md @@ -62,7 +62,7 @@ You MUST use ARGB color format, not RGBA like used in client messages etc. - [SetObjectMaterial](SetObjectMaterial): Replace the texture of an object with the texture from another model in the game. -## Advanaced Map Editors +## Advanced Map Editors - [Texture Studio](https://github.com/Pottus/Texture-Studio) by Pottus - [Ultimate Creator](https://github.com/NexiusTailer/Ultimate-Creator) by Nexius diff --git a/frontend/docs/scripting/functions/SetPlayerObjectMaterialText.md b/frontend/docs/scripting/functions/SetPlayerObjectMaterialText.md index 6ab5ccbc8cda..106c86739ef9 100644 --- a/frontend/docs/scripting/functions/SetPlayerObjectMaterialText.md +++ b/frontend/docs/scripting/functions/SetPlayerObjectMaterialText.md @@ -57,7 +57,7 @@ Color embedding can be used for multiple colors in the text. - [SetObjectMaterialText](SetObjectMaterialText): Replace the texture of an object with text. - [SetPlayerObjectMaterial](SetPlayerObjectMaterial): Replace the texture of a player object with the texture from another model in the game. -## Advanaced Map Editors +## Advanced Map Editors - [Texture Studio](https://github.com/Pottus/Texture-Studio) by Pottus - [Ultimate Creator](https://github.com/NexiusTailer/Ultimate-Creator) by Nexius diff --git a/frontend/docs/scripting/functions/SetPlayerSkin.md b/frontend/docs/scripting/functions/SetPlayerSkin.md index 2689938715be..2a909c408db3 100644 --- a/frontend/docs/scripting/functions/SetPlayerSkin.md +++ b/frontend/docs/scripting/functions/SetPlayerSkin.md @@ -92,8 +92,7 @@ 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, 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). - 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. - Breaks sitting on bikes. diff --git a/frontend/docs/scripting/functions/SetPlayerTeam.md b/frontend/docs/scripting/functions/SetPlayerTeam.md index 24998ff86532..9c0e62828869 100644 --- a/frontend/docs/scripting/functions/SetPlayerTeam.md +++ b/frontend/docs/scripting/functions/SetPlayerTeam.md @@ -33,10 +33,7 @@ public OnPlayerSpawn(playerid) :::note -- Players can not damage/kill players on the same team unless they use a knife to slit their throat. - -- Players are also unable to damage vehicles driven by a player from the same team. This can be enabled with [EnableVehicleFriendlyFire](EnableVehicleFriendlyFire). - +- Players can not damage/kill players on the same team unless they use a knife to slit their throat. Players are also unable to damage vehicles driven by a player from the same team. This can be enabled with [EnableVehicleFriendlyFire](EnableVehicleFriendlyFire). - 255 (or `NO_TEAM`) is the default team to be able to shoot other players, not 0. ::: diff --git a/frontend/docs/scripting/functions/SetTimer.md b/frontend/docs/scripting/functions/SetTimer.md index 8779e3e685cc..b18e94f7adf5 100644 --- a/frontend/docs/scripting/functions/SetTimer.md +++ b/frontend/docs/scripting/functions/SetTimer.md @@ -48,9 +48,8 @@ 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. +- 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. ::: diff --git a/frontend/docs/scripting/functions/SetTimerEx.md b/frontend/docs/scripting/functions/SetTimerEx.md index a89db564dcd5..40b24d802cc5 100644 --- a/frontend/docs/scripting/functions/SetTimerEx.md +++ b/frontend/docs/scripting/functions/SetTimerEx.md @@ -93,9 +93,8 @@ 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. +- 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. ::: diff --git a/frontend/docs/scripting/functions/SetVehicleVelocity.md b/frontend/docs/scripting/functions/SetVehicleVelocity.md index 2faaae892388..8a809839754c 100644 --- a/frontend/docs/scripting/functions/SetVehicleVelocity.md +++ b/frontend/docs/scripting/functions/SetVehicleVelocity.md @@ -42,7 +42,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -This function has no affect on un-occupied vehicles and does not affect trains. +This function has no affect on unoccupied vehicles and does not affect trains. ::: diff --git a/frontend/docs/scripting/functions/SetVehicleZAngle.md b/frontend/docs/scripting/functions/SetVehicleZAngle.md index f826ac30bfd7..f61f59d57a1b 100644 --- a/frontend/docs/scripting/functions/SetVehicleZAngle.md +++ b/frontend/docs/scripting/functions/SetVehicleZAngle.md @@ -46,8 +46,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- A vehicle's X and Y (pitch and roll) rotation will be reset when this function is used. -- The X and Y rotations can not be set. +- A vehicle's X and Y (pitch and roll) rotation will be reset when this function is used. The X and Y rotations can not be set. - This function does not work on unoccupied vehicles (It is believed to be a GTA limitation). ::: diff --git a/frontend/docs/scripting/functions/TextDrawBackgroundColor.md b/frontend/docs/scripting/functions/TextDrawBackgroundColor.md index 045b8f0a080b..6e77f563f510 100644 --- a/frontend/docs/scripting/functions/TextDrawBackgroundColor.md +++ b/frontend/docs/scripting/functions/TextDrawBackgroundColor.md @@ -1,7 +1,7 @@ --- title: TextDrawBackgroundColor sidebar_label: TextDrawBackgroundColor -description: Adjusts the text draw area background color (the outline/shadow - NOT the box. +description: Adjusts the text draw area background color (the outline/shadow - NOT the box). tags: ["textdraw"] --- @@ -36,8 +36,7 @@ public OnGameModeInit() :::note -- If [TextDrawSetOutline](TextDrawSetOutline) is used with size > 0, the outline color will match the color used in TextDrawBackgroundColor. -- Changing the value of color seems to alter the color used in [TextDrawColor](TextDrawColor). +If [TextDrawSetOutline](TextDrawSetOutline) is used with size > 0, the outline color will match the color used in TextDrawBackgroundColor. Changing the value of color seems to alter the color used in [TextDrawColor](TextDrawColor). ::: diff --git a/frontend/docs/scripting/functions/TextDrawBackgroundColour.md b/frontend/docs/scripting/functions/TextDrawBackgroundColour.md index f5d09db400ca..32e466fef7f4 100644 --- a/frontend/docs/scripting/functions/TextDrawBackgroundColour.md +++ b/frontend/docs/scripting/functions/TextDrawBackgroundColour.md @@ -1,7 +1,7 @@ --- title: TextDrawBackgroundColour sidebar_label: TextDrawBackgroundColour -description: Adjusts the text draw area background colour (the outline/shadow - NOT the box. +description: Adjusts the text draw area background colour (the outline/shadow - NOT the box). tags: ["textdraw"] --- diff --git a/frontend/docs/scripting/functions/TextDrawColor.md b/frontend/docs/scripting/functions/TextDrawColor.md index 1df2cc4cab7a..b255aec6530f 100644 --- a/frontend/docs/scripting/functions/TextDrawColor.md +++ b/frontend/docs/scripting/functions/TextDrawColor.md @@ -35,7 +35,7 @@ public OnGameModeInit() :::tip -You can also use [GameText colors](../resources/gametextstyles) in textdraws (e.g. `~r~` `~g~` `~b~`). +You can also use [GameText colors](../resources/gametextstyles) in textdraws. ::: diff --git a/frontend/docs/scripting/functions/TextDrawCreate.md b/frontend/docs/scripting/functions/TextDrawCreate.md index 4139461756b2..26fce52c954d 100644 --- a/frontend/docs/scripting/functions/TextDrawCreate.md +++ b/frontend/docs/scripting/functions/TextDrawCreate.md @@ -49,8 +49,7 @@ public OnPlayerConnect(playerid) :::note -- The `x, y` coordinate is the top left coordinate for the text draw area based on a 640x480 "canvas" (irrespective of screen resolution). -- If you plan on using [TextDrawAlignment](TextDrawAlignment) with alignment 3 (`TEXT_DRAW_ALIGN_RIGHT`), the `x, y` coordinate is the top right coordinate for the text draw. +- The `x, y` coordinate is the top left coordinate for the text draw area based on a 640x480 "canvas" (irrespective of screen resolution). If you plan on using [TextDrawAlignment](TextDrawAlignment) with alignment 3 (`TEXT_DRAW_ALIGN_RIGHT`), the `x, y` coordinate is the top right coordinate for the text draw. - This function merely CREATES the textdraw, you must use [TextDrawShowForPlayer](TextDrawShowForPlayer) or [TextDrawShowForAll](TextDrawShowForAll) to show it. ::: diff --git a/frontend/docs/scripting/functions/TextDrawLetterSize.md b/frontend/docs/scripting/functions/TextDrawLetterSize.md index 060a4f5a15a1..eb61ff81567b 100644 --- a/frontend/docs/scripting/functions/TextDrawLetterSize.md +++ b/frontend/docs/scripting/functions/TextDrawLetterSize.md @@ -36,8 +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-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/db_get_mem_handle.md b/frontend/docs/scripting/functions/db_get_mem_handle.md index 01a052e2ad4d..69551f0a88d4 100644 --- a/frontend/docs/scripting/functions/db_get_mem_handle.md +++ b/frontend/docs/scripting/functions/db_get_mem_handle.md @@ -15,7 +15,7 @@ This function is deprecated. Please see [DB_GetMemHandle](DB_GetMemHandle). ## Description -The function gets the memory handle for a SQLite database connection that was opened with [db_open](db_open)]. +The function gets the memory handle for a SQLite database connection that was opened with [db_open](db_open). | Name | Description | | ----- | ---------------------------------------------------------------------- | diff --git a/frontend/docs/scripting/functions/db_open.md b/frontend/docs/scripting/functions/db_open.md index 1961a2553601..d0aed318522f 100644 --- a/frontend/docs/scripting/functions/db_open.md +++ b/frontend/docs/scripting/functions/db_open.md @@ -68,7 +68,8 @@ public OnGameModeExit() :::warning -It will create a new SQLite database file, if there is no SQLite database file with the same file name available. Close your SQLite database connection with [db_close](db_close)! +- It will create a new SQLite database file, if there is no SQLite database file with the same file name available. +- Close your SQLite database connection with [db_close](db_close)! ::: diff --git a/frontend/docs/scripting/functions/sendpacket.md b/frontend/docs/scripting/functions/sendpacket.md index b96126f5f683..20b610a17f2c 100644 --- a/frontend/docs/scripting/functions/sendpacket.md +++ b/frontend/docs/scripting/functions/sendpacket.md @@ -1,7 +1,7 @@ --- title: sendpacket sidebar_label: sendpacket -description: Sends a packet. (deprecated function) +description: Sends a packet (deprecated function). tags: ["datagram"] --- diff --git a/frontend/docs/scripting/functions/sendstring.md b/frontend/docs/scripting/functions/sendstring.md index e536af38e528..49c8904baf1d 100644 --- a/frontend/docs/scripting/functions/sendstring.md +++ b/frontend/docs/scripting/functions/sendstring.md @@ -1,7 +1,7 @@ --- title: sendstring sidebar_label: sendstring -description: Sends a packet containing a string. (deprecated function) +description: Sends a packet containing a string (deprecated function). tags: ["datagram"] --- diff --git a/frontend/docs/scripting/language/Statements.md b/frontend/docs/scripting/language/Statements.md index e59f4629d670..f26a6a3dd514 100644 --- a/frontend/docs/scripting/language/Statements.md +++ b/frontend/docs/scripting/language/Statements.md @@ -181,7 +181,7 @@ while (i < 10) } ``` -} Will not give any output as the condition instantly fails. +Will not give any output as the condition instantly fails. These are also useful for avoiding double checks: diff --git a/frontend/docs/scripting/language/Variables.md b/frontend/docs/scripting/language/Variables.md index 62c74fd62294..8dd72de09524 100644 --- a/frontend/docs/scripting/language/Variables.md +++ b/frontend/docs/scripting/language/Variables.md @@ -12,7 +12,7 @@ The reason why variables are so important is because they are basically small un ### Declaring Variables -Following is the syntax for variable declaration : +Following is the syntax for variable declaration: ```c // Creating (more appropriately, 'declaring') a variable named 'myVariable @@ -24,7 +24,7 @@ new myVariable; // Semi-colon is used in the end to close the declaration statement. ``` -The declaration syntax can be better understood by looking at some examples : +The declaration syntax can be better understood by looking at some examples: ```c new var; @@ -34,13 +34,13 @@ new vehicles; new topScore; ``` -Each of the above defined variable has a value by default, which is zero. There are different ways of assigning values to a variable. One method is directly assigning a value to the variable as it’s declared : +Each of the above defined variable has a value by default, which is zero. There are different ways of assigning values to a variable. One method is directly assigning a value to the variable as it’s declared: ```c new letters = 25; ``` -In the above example, a variable named ‘letters’ is being declared, with a value of 25. You will notice an equal sign which is a simple Assignment Operator that can be used for assigning values to variables. It evaluates the expression on its right and assigns the resultant value to the variable referenced on its left side. Other than assigning values directly at the declaration, you can also do it in later parts of the code : +In the above example, a variable named ‘letters’ is being declared, with a value of 25. You will notice an equal sign which is a simple Assignment Operator that can be used for assigning values to variables. It evaluates the expression on its right and assigns the resultant value to the variable referenced on its left side. Other than assigning values directly at the declaration, you can also do it in later parts of the code: ```c new letters; @@ -75,7 +75,7 @@ public OnPlayerConnect(playerid) return 1; } -// Output : +// Output: // The value is 10 // The value is 100 @@ -122,24 +122,24 @@ public OnFilterScriptInit() ### Naming Rules -Now that you know how to declare variables, you need to know the naming rules for declaring variable which are listed below : +Now that you know how to declare variables, you need to know the naming rules for declaring variable which are listed below: - All variable names must begin with a letter or an underscore (`_`) - After the first initial letter, variable names can contain letters and numbers but no spaces or special characters. - The variable names are case sensitive i.e Uppercase letters are distinct from the lowercase letters. - Using a reserved word (keyword) as a variable name will show an error. -#### Examples : +#### Examples: ```c -new new; // Incorrect : Using a reserved word +new new; // Incorrect: Using a reserved word new _new; // Correct -new 10letters; // Incorrect : Name starting with a number +new 10letters; // Incorrect: Name starting with a number new letters10; // Correct new letters_10; // Correct -new my name; // Incorrect : Space in the name +new my name; // Incorrect: Space in the name new my_name; // Correct new !nternet; // Incorrect @@ -148,7 +148,7 @@ new Internet; // Correct ### Storing different types of Data -After that, now lets look at some examples of what types of data can be stored in variable and how : +After that, now lets look at some examples of what types of data can be stored in variable and how: ```c new letter = 'M'; @@ -171,7 +171,7 @@ new sentence = "This is a sentence"; // error 006: must be assigned to an array ``` -A variable is capable of holding a character, integer value, boolean (true or false) and a float value (decimal value). The comments in the above code show that storing a string in a variable results into an error (as strings can be stored in _Arrays_ only). Other than that, assigning a float value to a variable will result in a compiler warning, which can be avoided by adding ‘tags’. Without proper tags, the script will show warnings upon compilation but will be executable. Tags tell the compiler about the type of data that is intended to be stored in the variable, which in turn informs us in the form of errors or warning if we make a program-breaking mistake in the code. Example of tags : +A variable is capable of holding a character, integer value, boolean (true or false) and a float value (decimal value). The comments in the above code show that storing a string in a variable results into an error (as strings can be stored in _Arrays_ only). Other than that, assigning a float value to a variable will result in a compiler warning, which can be avoided by adding ‘tags’. Without proper tags, the script will show warnings upon compilation but will be executable. Tags tell the compiler about the type of data that is intended to be stored in the variable, which in turn informs us in the form of errors or warning if we make a program-breaking mistake in the code. Example of tags: ```c new decimalValue = 1.0; // Incorrect @@ -210,7 +210,7 @@ public OnFilterScriptInit() return 1; } -// Output : +// Output: a 1 1.000000 diff --git a/frontend/docs/scripting/resources/carcomponentid.md b/frontend/docs/scripting/resources/carcomponentid.md index d36dd026abfb..6bc8f596e45a 100644 --- a/frontend/docs/scripting/resources/carcomponentid.md +++ b/frontend/docs/scripting/resources/carcomponentid.md @@ -420,4 +420,4 @@ description: Information about car component IDs, model names, parts, types, sup ## All component costs separated by comma -`400, 550, 200, 250, 100, 150, 80, 500, 500, 200, 1000, 220, 250, 100, 400, 500, 200, 500, 350, 300, 250, 200, 150, 350, 50, 1000, 480, 480, 770, 680, 370, 370, 170, 120, 790, 150, 500, 690, 190, 390, 500, 390, 1000, 500, 500, 510, 710, 670, 530, 810, 620, 670, 530, 130, 210, 230, 520, 430, 620, 720, 530, 180, 550, 430, 830, 850, 750, 250, 200, 550, 450, 550, 450, 1100, 1030, 980, 1560, 1620, 1200, 1030, 900, 1230, 820, 1560, 1350, 770, 100, 1500, 150, 650, 450, 100, 750, 350, 450, 350, 1000, 620, 1140, 1000, 940, 780, 830, 3250, 1610, 1540, 780, 780, 780, 1610, 1540, 0, 0, 3340, 3250, 2130, 2050, 2040, 780, 940, 780, 940, 780, 860, 780, 1120, 3340, 3250, 3340, 1650, 3380, 3290, 1590, 830, 800, 1500, 1000, 800, 580, 470, 870, 980, 150, 150, 100, 100, 490, 600, 890, 1000, 1090, 840, 910, 1200, 1030, 1030, 920, 930, 550, 1050, 1050, 950, 650, 450, 550, 850, 950, 850, 950, 970, 880, 990, 900, 950, 1000, 900, 1000, 900, 2050, 2150, 2130, 2050, 2130, 2040, 2150, 2040, 2095, 2175, 2080, 2200, 1200, 1040, 940, 1100` +`400`, `550`, `200`, `250`, `100`, `150`, `80`, `500`, `500`, `200`, `1000`, `220`, `250`, `100`, `400`, `500`, `200`, `500`, `350`, `300`, `250`, `200`, `150`, `350`, `50`, `1000`, `480`, `480`, `770`, `680`, `370`, `370`, `170`, `120`, `790`, `150`, `500`, `690`, `190`, `390`, `500`, `390`, `1000`, `500`, `500`, `510`, `710`, `670`, `530`, `810`, `620`, `670`, `530`, `130`, `210`, `230`, `520`, `430`, `620`, `720`, `530`, `180`, `550`, `430`, `830`, `850`, `750`, `250`, `200`, `550`, `450`, `550`, `450`, `1100`, `1030`, `980`, `1560`, `1620`, `1200`, `1030`, `900`, `1230`, `820`, `1560`, `1350`, `770`, `100`, `1500`, `150`, `650`, `450`, `100`, `750`, `350`, `450`, `350`, `1000`, `620`, `1140`, `1000`, `940`, `780`, `830`, `3250`, `1610`, `1540`, `780`, `780`, `780`, `1610`, `1540`, `0`, `0`, `3340`, `3250`, `2130`, `2050`, `2040`, `780`, `940`, `780`, `940`, `780`, `860`, `780`, `1120`, `3340`, `3250`, `3340`, `1650`, `3380`, `3290`, `1590`, `830`, `800`, `1500`, `1000`, `800`, `580`, `470`, `870`, `980`, `150`, `150`, `100`, `100`, `490`, `600`, `890`, `1000`, `1090`, `840`, `910`, `1200`, `1030`, `1030`, `920`, `930`, `550`, `1050`, `1050`, `950`, `650`, `450`, `550`, `850`, `950`, `850`, `950`, `970`, `880`, `990`, `900`, `950`, `1000`, `900`, `1000`, `900`, `2050`, `2150`, `2130`, `2050`, `2130`, `2040`, `2150`, `2040`, `2095`, `2175`, `2080`, `2200`, `1200`, `1040`, `940`, `1100` diff --git a/frontend/docs/scripting/resources/clicksources.md b/frontend/docs/scripting/resources/clicksources.md index d85e7d83d57b..22988cbddc0a 100644 --- a/frontend/docs/scripting/resources/clicksources.md +++ b/frontend/docs/scripting/resources/clicksources.md @@ -1,7 +1,6 @@ --- title: Click Sources sidebar_label: Click Sources - description: Click Sources --- diff --git a/frontend/docs/scripting/resources/download-requests.md b/frontend/docs/scripting/resources/download-requests.md index 002ba092c24d..b877ab9d5c0a 100644 --- a/frontend/docs/scripting/resources/download-requests.md +++ b/frontend/docs/scripting/resources/download-requests.md @@ -1,7 +1,7 @@ --- title: Download Request Types sidebar_label: Download Request Types -description: Download request types. (used by OnPlayerRequestDownload) +description: Download request types (used by OnPlayerRequestDownload). --- :::note diff --git a/frontend/docs/scripting/resources/file-seek-whence.md b/frontend/docs/scripting/resources/file-seek-whence.md index f10be65b999a..f9e69241a5d7 100644 --- a/frontend/docs/scripting/resources/file-seek-whence.md +++ b/frontend/docs/scripting/resources/file-seek-whence.md @@ -1,7 +1,7 @@ --- title: File Seek Whence sidebar_label: File Seek Whence -description: File seek whence definitions. (fseek) +description: File seek whence definitions (fseek). --- :::note diff --git a/frontend/docs/scripting/resources/gametextstyles.md b/frontend/docs/scripting/resources/gametextstyles.md index 17f2552c4189..43be253d54cb 100644 --- a/frontend/docs/scripting/resources/gametextstyles.md +++ b/frontend/docs/scripting/resources/gametextstyles.md @@ -57,7 +57,6 @@ Unlike text colors, these slugs do not require encapsulation. They can be used a | `~d~` | Down arrow (gray) | | `~<~` | Left arrow (gray) | | `~>~` | Right arrow (gray) | -| `~t~` | Rectangle | | `~]~` | Displays a `*` symbol (Only in text styles 3, 4 and 5) | | `~k~` | Keyboard key mapping (e.g. `~k~~VEHICLE_TURRETLEFT~` and `~k~~PED_FIREWEAPON~`). Look [here](keys) for a list of keys. | diff --git a/frontend/docs/scripting/resources/glossary.md b/frontend/docs/scripting/resources/glossary.md index 7e348a9848bb..f0b0f62cd9e0 100644 --- a/frontend/docs/scripting/resources/glossary.md +++ b/frontend/docs/scripting/resources/glossary.md @@ -7,23 +7,18 @@ tags: [] ## Scripting -| Word | Meaning | -| ------------ | --------------------------------------------------------------------------------------------------------------------------------- | -| PAWN | The scripting language used to make SA:MP and open.mp scripts | -| Script | The code that tells the server what to do | -| Scripter | A person who writes scripts | -| Gamemode | The main script that runs on a server, often shortened to GM | -| Filterscript | Scripts that run alongside gamemodes, often shortened to FS | -| Plugin | Extra functions/capabilities added through a .dll (Windows) or .so (Linux) file | -| Component | The open.mp equivalent of a plugin, loaded from the `components` folder | -| Streamer | A plugin or script that allows you to go past some of the server's [limits](limits) by dynamically loading and unloading entities | -| Include | Pieces of script placed in .inc files to be included in Filterscripts/Gamemodes using `#include ` | -| Function | A named section of a script that performs a specific task | -| Native | A function provided by the server or a plugin that can be called from PAWN | -| Callback | A function automatically called by the server when a specific event occurs (e.g. OnPlayerConnect) | -| AMX | The compiled file (.amx) produced from a .pwn source file, which the server actually runs | -| Tick | One millisecond of server time, as counted by [GetTickCount](../functions/GetTickCount) | -| INI | A file format (.ini) often used by scripts to store data, most commonly user/player data | +| Word | Meaning | +| ------------ | ------------------------------------------------------------------------------------------------------- | +| PAWN | The scripting language used to make SA:MP and open.mp scripts | +| Gamemode | The main script that runs on a server, often shortened to GM | +| Filterscript | Scripts that run alongside gamemodes, often shortened to FS | +| Plugin | Extra functions/capabilities added through a .dll (Windows) or .so (Linux) file | +| Component | The open.mp equivalent of a plugin, loaded from the `components` folder | +| Include | Pieces of script placed in .inc files to be included in Filterscripts/Gamemodes using `#include ` | +| Native | A function provided by the server or a plugin that can be called from PAWN | +| Callback | A function automatically called by the server when a specific event occurs (e.g. OnPlayerConnect) | +| AMX | The compiled file (.amx) produced from a .pwn source file, which the server actually runs | +| Tick | One millisecond of server time, as counted by [GetTickCount](../functions/GetTickCount) | ## Tools @@ -32,30 +27,24 @@ tags: [] | Pawno | The original SA:MP script editor for PAWN, Windows only and unmaintained | | [Qawno](https://github.com/openmultiplayer/qawno) | The script editor that ships with open.mp, and the replacement for Pawno | | Pawncc | The compiler that compiles .pwn to .amx | -| MySQL | Database software often used together with SA:MP and open.mp servers | ## Networking -| Word | Meaning | -| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| Client | The game application used by players to connect to a multiplayer server | -| Server | The application that hosts a multiplayer game and manages connected clients | -| Masterlist | The public list of running servers, which servers announce themselves to and clients read to fill the server browser | -| Sync | The process of keeping the game state consistent between the server and connected clients | -| Desync | A situation where the game state differs between the server and one or more clients | -| Ping | The round-trip time for data to travel between a client and the server, measured in milliseconds | -| Lag | Either FPS lag, when a player's framerate drops, or network lag, when other players are seen with a delay because their sync takes time to travel over the internet | +| Word | Meaning | +| ---------- | -------------------------------------------------------------------------------------------------------------------- | +| Client | The game application used by players to connect to a multiplayer server | +| Server | The application that hosts a multiplayer game and manages connected clients | +| Masterlist | The public list of running servers, which servers announce themselves to and clients read to fill the server browser | +| Sync | The process of keeping the game state consistent between the server and connected clients | +| Desync | A situation where the game state differs between the server and one or more clients | +| Ping | The round-trip time for data to travel between a client and the server, measured in milliseconds | ## Entities -| Word | Meaning | -| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -| NPC | A non-player character that connects to the server like a player and is driven by a script, and uses a player slot. Sometimes referred to as a bot | -| Actor | A static non-player character used for decoration or interaction, such as a cashier, that uses no player slot | -| Pickup | An object that can be picked up by walking into it, see [CreatePickup](../functions/CreatePickup) | -| [Textdraw](textdraws) | Text drawn on a player's screen, often shortened to TD, see [TextDrawCreate](../functions/TextDrawCreate) | -| Dialog | A dialog box shown to a player, see [ShowPlayerDialog](../functions/ShowPlayerDialog) | -| Map | A set of objects placed together in the game world | +| Word | Meaning | +| ----- | -------------------------------------------------------------------------------------------------------------------------------------------------- | +| NPC | A non-player character that connects to the server like a player and is driven by a script, and uses a player slot. Sometimes referred to as a bot | +| Actor | A static non-player character used for decoration or interaction, such as a cashier, that uses no player slot | ## Common gamemode types diff --git a/frontend/docs/scripting/resources/samp_objects.md b/frontend/docs/scripting/resources/samp_objects.md index 7cb41d59d5cb..4ff5eeff4090 100644 --- a/frontend/docs/scripting/resources/samp_objects.md +++ b/frontend/docs/scripting/resources/samp_objects.md @@ -52,7 +52,7 @@ server package. ### **More Road Signs** The speed limit sign below has a transparent material overlay (index 3) so you -can use it with the SetObjectMaterialText() or SetPlayerObjectMaterialText() +can use it with the SetObjectMaterialText or SetPlayerObjectMaterialText functions. ``` @@ -272,7 +272,7 @@ road. ### **Laptop (Old Style)** Same laptop in open and closed positions. You can change the screen using the -SetObjectMaterial() function on index 1. There are three screen variations in +SetObjectMaterial function on index 1. There are three screen variations in the TXD file (see below for picture): - LaptopScreen1 = GTASA map screen (default) @@ -460,7 +460,7 @@ A collection of various road signs. ``` The two signs below have a transparent material overlay (index 3) so you can use -it with the SetObjectMaterialText() or SetPlayerObjectMaterialText() functions. +it with the SetObjectMaterialText or SetPlayerObjectMaterialText functions. ``` 19980 SAMPRoadSign33 @@ -583,7 +583,7 @@ can be used... it can be found in the "filterscripts" folder of the Windows ### **Caligula's Casino Vault Door Edited** -Edited to fix the pivot so it can be used with MoveObject() and also fixed the +Edited to fix the pivot so it can be used with MoveObject and also fixed the night vertex colours. Original object ID is 2634. ``` @@ -611,7 +611,7 @@ SAMP.IPL file. ### **Static Door** This door is the same as object ID 1502 except it is static. You can animate it -opening and closing with the MoveObject() function. +opening and closing with the MoveObject function. ``` 19802 GenDoorINT04Static @@ -635,7 +635,7 @@ created by Vince. Note that they will only be visible at night. ### **Extracted Items** The whiteboard object below has a transparent material overlay (index 1) so you -can use it with the SetObjectMaterialText() or SetPlayerObjectMaterialText() +can use it with the SetObjectMaterialText or SetPlayerObjectMaterialText functions. ``` @@ -777,10 +777,563 @@ This metal gate is the same as object ID 3036 except it is not dynamic ## **Objects added in 0.3.7 RC1 (265 objects)** +### **Property Icons** + ``` -19305 sec_keypad2 -19306 kmb_goflag2 -19307 kmb_goflag3 +19522 property_red +19523 property_orange +19524 property_yellow +``` + +### **Wedding Cake** + +``` +19525 WeddingCake1 +``` + +### **ATM Fixed** + +``` +19526 ATMFixed +``` + +### **Halloween Stuff** + +``` +19527 Cauldron1 +19528 WitchesHat1 +``` + +### **Modular Island (grass|sand|concrete and roads)** + +``` +19529 Plane125x125Grass1 +19530 Plane125x125Sand1 +19531 Plane125x125Conc1 +19532 15x125Road1 +19533 15x62_5Road1 +19534 15x15RoadInters1 +19535 15x15RoadInters2 +19536 Plane62_5x125Grass1 +19537 Plane62_5x125Sand1 +19538 Plane62_5x125Conc1 +19539 Edge62_5x62_5Grass1 +19540 Edge62_5x62_5Grass2 +19541 Edge62_5x15Grass1 +19542 Edge62_5x125Grass1 +19543 Plane62_5x15Grass1 +19544 Plane62_5x15Sand1 +19545 Plane62_5x15Conc1 +19546 Edge62_5x62_5Grass3 +19547 Hill125x125Grass1 +19548 Hill125x125Sand1 +19549 Edge62_5x32_5Grass1 +19550 Plane125x125Grass2 +19551 Plane125x125Sand2 +19552 Plane125x125Conc2 +``` + +### **Extracted from Skins** + +``` +19553 StrawHat1 +19554 Beanie1 +19555 BoxingGloveL +19556 BoxingGloveR +19557 SexyMask1 +19558 PizzaHat1 +19559 HikerBackpack1 +``` + +### **Extracted from Supermarket Items** + +``` +19560 MeatTray1 +19561 CerealBox1 +19562 CerealBox2 +19563 JuiceBox1 +19564 JuiceBox2 +19565 IceCreamBarsBox1 +19566 FishFingersBox1 +19567 IcecreamContainer1 +19568 IcecreamContainer2 +19569 MilkCarton1 +19570 MilkBottle1 +19571 PizzaBox1 +19572 PisshBox1 +19573 BriquettesBag1 +``` + +### **Fruit** + +``` +19574 Orange1 +19575 Apple1 +19576 Apple2 +19577 Tomato1 +19578 Banana1 +``` + +### **Loaf of Bread** + +``` +19579 BreadLoaf1 +``` + +### **Extracted Pepperoni Pizza** + +``` +19580 Pizza1 +``` + +### **Extracted from Marco's Bistro Kitchen** + +``` +19581 MarcosFryingPan1 +19582 MarcosSteak1 +19583 MarcosKnife1 +19584 MarcosSaucepan1 +19585 MarcosPan1 +19586 MarcosSpatula1 +``` + +### **Extracted from a Stack of Plastic Trays and Edited** + +``` +19587 PlasticTray1 +``` + +### **Wooden Foot Bridge** + +``` +19588 FootBridge1 +``` + +### **Extracted and Edited Rubbish Skip** + +``` +19589 RubbishSkipEmpty1 +``` + +### **Extracted from Woozie's Apartment** + +``` +19590 WooziesSword1 +19591 WooziesHandFan1 +``` + +### **Extracted from a Stack of Baskets and Edited** + +``` +19592 ShopBasket1 +``` + +### **SF ZomboTech Building and Lab** + +These objects can be used to replace the ZomboTech building in SF. The +filterscript called "sf_zombotech" can be used to remove the existing GTASA map +objects, replace the building, add the new lab building below the ground and add +an elevator... it can be found in the "filterscripts" folder of the Windows +0.3.7 server package. + +``` +19593 ZomboTechBuilding1 +19594 ZomboTechLab1 +``` + +### **LS Apartments** + +This object can be used to replace a block of apartments in LS. The filterscript +called "ls_apartments1" can be used to remove the existing GTASA map objects, +replace the building, add an underground car park and elevator... it can be +found in the "filterscripts" folder of the Windows 0.3.7 server package. + +``` +19595 LSAppartments1 +``` + +### **LS BeachSide** + +These objects are used to replace a block of apartments on the beach in LS. The +apartment building now has a multiple floor interior and an underground car +park. The filterscript called "ls_beachside" can be used to add an elevator... +it can be found in the "filterscripts" folder of the Windows 0.3.7 server +package. + +Also, object ID 19596 has been moved to model ID 6391 to replace the existing +GTASA building. The interior floors object (19597) and underground car park +object (19800) are also created by default from lines defined in the SAMP.IPL +file. This means you do not need to create these objects (building exterior, +interior floors and underground car park) as they are created by default on all +0.3.7 clients. You do however need to remove the night lights object as +demonstrated in the filterscript to remove some occlusion boxes inside the +building that cause camera problems. + +``` +19597 LSBeachSideInsides +``` + +### **SF Building 1** + +These objects can be used to replace a building near the hospital in SF. The +filterscript called "sf_building1" can be used to remove the existing GTASA map +objects and replace the building... it can be found in the "filterscripts" +folder of the Windows 0.3.7 server package. + +``` +19598 SFBuilding1Outside +19599 SFBuilding1Inside +19600 SFBuilding1Land +``` + +### **Snow Plow** + +``` +19601 SnowPlow1 +``` + +### **Landmine Edited** + +``` +19602 Landmine1 +``` + +### **Water Plane** + +``` +19603 WaterPlane1 +19604 WaterPlane2 +``` + +### **Different Coloured EnEx Markers** + +``` +19605 EnExMarker4-2 +19606 EnExMarker4-3 +19607 EnExMarker4-4 +``` + +### **Stage and Music Equipment** + +``` +19608 WoodenStage1 +19609 DrumKit1 +19610 Microphone1 +19611 MicrophoneStand1 +19612 GuitarAmp1 +19613 GuitarAmp2 +19614 GuitarAmp3 +19615 GuitarAmp4 +19616 GuitarAmp5 +19617 GoldRecord1 +``` + +### **Safe with Separate Door** + +You can use the MoveObject function to make the safe door open and close. The +"safe_animated" filterscript shows you an example of how to do it... it can be +found in the "filterscripts" folder of the Windows 0.3.7 server package. + +``` +19618 Safe1 +19619 SafeDoor1 +``` + +### **New Police Light Bar Model** + +This object uses UV animation so it is visible during the day as well as night. + +``` +19620 LightBar1 +``` + +### **Extracted from Cutscene IMG and Edited** + +``` +19621 OilCan1 +19622 Broom1 +19623 Camera1 +19624 Case1 +19625 Ciggy1 +19626 Spade1 +19627 Wrench1 +``` + +### **Modular Road Banked Corners** + +These banked road corner objects are designed to work with the modular road +objects (IDs 18788 to 18807) added in the SA-MP 0.3c version. + +``` +19628 MRoadBend90Banked1 +19629 MRoadBend90Banked2 +``` + +### **3D Fish (Bream)** + +This fish object can be used with the fishing rod object (ID 18632) and the +fishing animation pose. The "samp_anims" filterscript shows you an example of +how to use the custom animation pose... it can be found in the "filterscripts" +folder of the Windows 0.3.7 server package. + +``` +19630 Fish1 +``` + +### **Sledge Hammer** + +``` +19631 SledgeHammer1 +``` + +### **Burning Logs** + +``` +19632 FireWood1 +``` + +### **360 Degree Ramps** + +``` +19633 Ramp360Degree1 +19634 Ramp360Degree2 +19635 Ramp360Degree3 +``` + +### **Fruit Crates** + +``` +19636 RedApplesCrate1 +19637 GreenApplesCrate1 +19638 OrangesCrate1 +19639 EmptyCrate1 +``` + +### **Empty Shop Shelf** + +This empty shop shelf can be stocked with your preferred supermarket items (IDs +19560 to 19573). Three fruit crates (IDs 19636 to 19639) will fit side by side +on the bottom shelf. + +``` +19640 EmptyShopShelf1 +``` + +### **Wooden Fence Section** + +``` +19641 FenceSection1 +``` + +### **Half Tube Objects** + +The MatTubes TXD file contains different coloured textures (RedDirt1, +GreenDirt1, BlueDirt1, YellowDirt1 and PurpleDirt1) that can be used to +re-colour the tubes below by using the SetObjectMaterial or +SetPlayerObjectMaterial functions. Re-colouring the tubes this way preserves +the shading (the vertex colours and vertex illumination). + +The tubes are available in three sizes... normal (100%), medium (50%) and small +(25%). + +The filterscript called "stunt_island" shows an example setup... it can be found +in the "filterscripts" folder of the Windows 0.3.7 server package. + +The tubes in this section are normal size. + +``` +19642 TubeSeg10m1 +19643 TubeSeg10m2a +19644 TubeSeg10m2b +19645 TubeSeg25m1 +19646 TubeHalf10m1 +19647 TubeHalf10mJoin1a +19648 TubeHalf10mJoin1b +19649 TubeHalf50m1 +19650 TubeFlat25x25m1 +19651 TubeHalfSpiral1a +19652 TubeHalfSpiral1b +19653 TubeHalfSpiral2a +19654 TubeHalfSpiral2b +19655 TubeHalfSpiral3a +19656 TubeHalfSpiral3b +19657 TubeHalfSpiral4a +19658 TubeHalfSpiral4b +19659 TubeHalf180Bend1a +19660 TubeHalf180Bend1b +19661 TubeHalf90Bend1a +19662 TubeHalf90Bend1b +19663 TubeHalf50mDip1 +19664 TubeHalf50mBump1 +19665 TubeHalfLoop1a +19666 TubeHalfLoop1b +19667 TubeHalfLoop2a +19668 TubeHalfLoop2b +19669 TubeHalfBowl1 +19670 TubeSupport1 +19671 TubeSupport2 +19672 TubeHalfLight1 +19673 TubeHalf5Bend1a +19674 TubeHalf5Bend1b +19675 TubeHalf5Bend2a +19676 TubeHalf5Bend2b +19677 TubeHalfTwist1a +19678 TubeHalfTwist1b +19679 TubeHalfTwist2a +19680 TubeHalfTwist2b +19681 TubeHalf45Bend1a +19682 TubeHalf45Bend1b +19683 TubeHalf15Bend1a +19684 TubeHalf15Bend1b +19685 TubeHalf15Bend2a +19686 TubeHalf15Bend2b +19687 TubeHalf25m1 +19688 TubeHalf45Bend3 +19689 TubeHalf45Bend4 +``` + +### **Join normal and medium tubes** + +The tubes in this section join normal tubes (above) to medium tubes (below). + +``` +19690 TubeHalfNtoMJoin1a +19691 TubeHalfNtoMJoin1b +``` + +### **Tubes Medium Size** + +The tubes in this section are medium size. + +``` +19692 MTubeSeg5m1 +19693 MTubeSeg5m2a +19694 MTubeSeg5m2b +19695 MTubeSeg12_5m1 +19696 MTubeHalf10m1 +19697 MTubeHalf5mJoin1a +19698 MTubeHalf5mJoin1b +19699 MTubeHalf25m1 +19700 MTubeFlt12_5x12_5m1 +19701 MTubeHalfSpiral1a +19702 MTubeHalfSpiral1b +19703 MTubeHalfSpiral2a +19704 MTubeHalfSpiral2b +19705 MTubeHalfSpiral3a +19706 MTubeHalfSpiral3b +19707 MTubeHalfSpiral4a +19708 MTubeHalfSpiral4b +19709 MTubeHalf180Bend1a +19710 MTubeHalf180Bend1b +19711 MTubeHalf90Bend1a +19712 MTubeHalf90Bend1b +19713 MTubeHalf25mDip1 +19714 MTubeHalf25mBump1 +19715 MTubeHalfBowl1 +19716 MTubeSupport1 +19717 MTubeSupport2 +19718 MTubeHalfLight1 +19719 MTubeHalf5Bend1a +19720 MTubeHalf5Bend1b +19721 MTubeHalf5Bend2a +19722 MTubeHalf5Bend2b +19723 MTubeHalf45Bend1a +19724 MTubeHalf45Bend1b +19725 MTubeHalf15Bend1a +19726 MTubeHalf15Bend1b +19727 MTubeHalf15Bend2a +19728 MTubeHalf15Bend2b +19729 MTubeHalf45Bend3 +19730 MTubeHalf45Bend4 +``` + +### **Join medium and small tubes** + +The tubes in this section join medium tubes (above) to small tubes (below). + +``` +19731 TubeHalfMtoSJoin1a +19732 TubeHalfMtoSJoin1B +``` + +### **Tubes Small Size** + +The tubes in this section are small size. + +``` +19733 STubeSeg5m1 +19734 STubeSeg5m2a +19735 STubeSeg5m2b +19736 STubeSeg6_25m1 +19737 STubeHalf10m1 +19738 STubeHalf5mJoin1a +19739 STubeHalf5mJoin1b +19740 STubeHalf12_5m1 +19741 STubeFlat6_25m1 +19742 STubeHalfSpiral1a +19743 STubeHalfSpiral1b +19744 STubeHalfSpiral2a +19745 STubeHalfSpiral2b +19746 STubeHalfSpiral3a +19747 STubeHalfSpiral3b +19748 STubeHalfSpiral4a +19749 STubeHalfSpiral4b +19750 STubeHalf180Bend1a +19751 STubeHalf180Bend1b +19752 STubeHalf90Bend1a +19753 STubeHalf90Bend1b +19754 STubeHalf12_5mDip1 +19755 STubeHalf12_5mBump1 +19756 STubeHalfBowl1 +19757 STubeSupport1 +19758 STubeSupport2 +19759 STubeHalfLight1 +19760 STubeHalf5Bend1a +19761 STubeHalf5Bend1b +19762 STubeHalf5Bend2a +19763 STubeHalf5Bend2b +19764 STubeHalf45Bend1a +19765 STubeHalf45Bend1b +19766 STubeHalf15Bend1a +19767 STubeHalf15Bend1b +19768 STubeHalf15Bend2a +19769 STubeHalf15Bend2b +19770 STubeHalf45Bend3 +19771 STubeHalf45Bend4 +``` + +### **Crushed Car Cube** + +``` +19772 CrushedCarCube1 +``` + +### **Police and FBI Stuff** + +``` +19773 GunHolster1 +19774 PoliceBadge2 +19775 PoliceBadge3 +19776 FBIIDCard1 +19777 FBILogo1 +19778 InsigniaDetective1 +19779 InsigniaDetective2 +19780 InsigniaDetective3 +19781 InsigniaSergeant1 +19782 InsigniaSergeant2 +19783 InsigniaPOfficer2 +19784 InsigniaPOfficer3 +19785 InsigniaSeniorLdOff +``` + +### **LCD TVs** + +Material index 1 is the LCD screen... it can be used to put any picture from a +TXD file on the screen. + +``` +19786 LCDTVBig1 +19787 LCDTV1 ``` --- diff --git a/frontend/docs/scripting/resources/textdraws.md b/frontend/docs/scripting/resources/textdraws.md index 51ee9b6e45ac..61fe8de3daf2 100644 --- a/frontend/docs/scripting/resources/textdraws.md +++ b/frontend/docs/scripting/resources/textdraws.md @@ -8,7 +8,10 @@ description: As the name implies, a textdraw is text that is drawn on a player's As the name implies, a textdraw is text that is drawn on a player's screen. Unlike [client messages](../functions/SendClientMessage) or [gametext](../functions/GameTextForPlayer) however, textdraws can be shown on a player's screen for an indefinite period of time. Textdraws can be simple text on the screen such as a website address, or complex scripted dynamic textdraws such as progress bars. -This 'textdraw editor' tool can make designing textdraws much easier. +This 'textdraw editor' tool can make designing textdraws much easier: + +- [Nickk's TextDraw Editor](https://github.com/Nickk888SAMP/TextDraw-Editor) +- [Nexor's Textdraw Editor](https://github.com/nexquery/samp-textdraw-editor) --- diff --git a/frontend/docs/server/ControllingServer.md b/frontend/docs/server/ControllingServer.md index cb4ce70a46d2..5a00fc86eeb8 100644 --- a/frontend/docs/server/ControllingServer.md +++ b/frontend/docs/server/ControllingServer.md @@ -54,8 +54,6 @@ Use the `rcon.password` value from [config.json](config.json) when logging in. ### Adding Bans -A ban prevents an IP address from connecting to the server. - ##### bans.json bans.json is the file used for storing bans, including the following information about the ban: @@ -172,8 +170,6 @@ To unban them, simply use the `unbanip` command. Type cmdlist for commands (or, varlist for variables) making use of the RCON in-game (`/rcon cmdlist`). -You do not need to type the `[ ]` brackets; they are just there to highlight the parameter. - These are the functions that you as admin can use: | Command | Description | diff --git a/frontend/docs/server/Installation.md b/frontend/docs/server/Installation.md index 14f1375eb108..91b4c21fa86d 100644 --- a/frontend/docs/server/Installation.md +++ b/frontend/docs/server/Installation.md @@ -229,24 +229,6 @@ Open the `omp-server.exe` program ./omp-server ``` -:::note - -For players outside your local network to be able to join, the server's UDP port (`7777` by default, set with `network.port` in **config.json**) must be forwarded in your router/firewall. See [Port Forwarding](../tutorials/PortForwarding). - -::: - -## Keeping the server online - -If your gamemode or a plugin crashes the server, it shuts down and you have to start it again yourself. On Windows, a simple batch file can restart `omp-server.exe` automatically whenever the process exits. Save a text file with the `.bat` extension and the following content: - -``` -:start -omp-server.exe -goto start -``` - -Put the file in the directory where `omp-server.exe` is located and run it. To test that it works, type `exit` in the server console - the server should start again. - ## Compiler errors and warnings - **warning 213: tag mismatch: expected tag "?", but found none ("\_")**: diff --git a/frontend/docs/server/LinuxServerInstallation.md b/frontend/docs/server/LinuxServerInstallation.md index 5f8f686387dc..ed8209a08a5a 100644 --- a/frontend/docs/server/LinuxServerInstallation.md +++ b/frontend/docs/server/LinuxServerInstallation.md @@ -26,7 +26,6 @@ Before starting, you should have: - A machine running Ubuntu (20.04 or later recommended) or another Debian based Linux; - WinSCP or Filezilla for file transfers; - PuTTY or your hosting SSH solution; -- A forwarded (or firewall-opened) UDP port for the server, 7777 by default (see [Port Forwarding](../tutorials/PortForwarding)); :::note @@ -227,7 +226,6 @@ sudo -u svc-omp-server tar -xzf open.mp-linux-x86.tar.gz 17. Upload your custom gamemodes and scripts: - Use WinSCP or Filezilla to transfer your gamemodes and scripts to the /opt/omp-server directory. Important: Make sure to use .so files for Linux plugins, as .dll files are only supported on Windows. - - Put your compiled gamemode (.amx) in the gamemodes folder and your filterscripts in the filterscripts folder, then list them without the .amx extension in [config.json](config.json): the gamemode in `pawn.main_scripts` and each filterscript as `filterscripts/name` in `pawn.side_scripts`. This is also where you change the server name, the RCON password and the other server settings. ## Help diff --git a/frontend/docs/tutorials/MenuGuide.md b/frontend/docs/tutorials/MenuGuide.md index 3aeed24c554e..c2212a42a585 100644 --- a/frontend/docs/tutorials/MenuGuide.md +++ b/frontend/docs/tutorials/MenuGuide.md @@ -58,10 +58,11 @@ AddMenuItem(teleportmenu, 1, "Come-a-Lot"); The explanation for [AddMenuItem](../scripting/functions/AddMenuItem): -| menuid | The menuid of the menu where the item shall be displayed | -| ------ | -------------------------------------------------------- | -| column | The column in which the item shall be shown | -| text | The text of the item | +| Parameter | Specifies | +| --------- | -------------------------------------------------------- | +| menuid | The menuid of the menu where the item shall be displayed | +| column | The column in which the item shall be shown | +| text | The text of the item | ## Creating the effects for the items @@ -134,8 +135,6 @@ if(CurrentMenu == teleportmenu) } ``` -Now to explain how the `switch` works: at the top there is `switch(row)`, which defines what to check, in this case the menu row. Then, between the braces under `switch`, there are `case`s. These are the different values that the variable in the `switch` brackets can have, and you define them yourself. Under each `case` are more braces; this is where you put the code that should run if that case is the right one. See [Control Structures](../scripting/language/ControlStructures#switch) for more about `switch`. - ## Last steps Now we need a command to show the menu. This is the easiest step. Just a comparison with `strcmp` and a `ShowMenuForPlayer`. This is done in `OnPlayerCommandText`. Or, if you have a command processor already, use that instead to call `ShowMenuForPlayer`. diff --git a/frontend/docs/tutorials/PickupGuide.md b/frontend/docs/tutorials/PickupGuide.md index 9174d99f54f3..3e905dfa00fd 100644 --- a/frontend/docs/tutorials/PickupGuide.md +++ b/frontend/docs/tutorials/PickupGuide.md @@ -32,7 +32,7 @@ There are two ways to create pickups. [CreatePickup](../scripting/functions/Crea For this example we will create a cash pickup at Grove Street. -Now we need to decide on a model to appear in the world, there are lots of models to choose from, some are listed on the external site [here](https://dev.prineside.com/en/gtasa_samp_model_id), here choose model number 1274 which is dollar sign. There is also a specific list of common pickup models on the [Pickup IDs](../scripting/resources/pickupids) page. +Now we need to decide on a model to appear in the world, there are lots of models to choose from, some are listed on the external site [here](https://dev.prineside.com/en/gtasa_samp_model_id), here choose model number 1274 which is dollar sign. Finally we need a [Type](../scripting/resources/pickuptypes) for the pickup, on the same page with the pickup models is a list of pickup types describing what the various ones do. We want this pickup to disappear when you pick it up, so you can't pick it up repeatedly, but to reappear after a few minutes so you can pick it up again, type 2 does just this. diff --git a/frontend/docs/tutorials/PortForwarding.md b/frontend/docs/tutorials/PortForwarding.md index 800be7e0b2ef..d94f62133abe 100644 --- a/frontend/docs/tutorials/PortForwarding.md +++ b/frontend/docs/tutorials/PortForwarding.md @@ -10,15 +10,6 @@ So, you have arrived to the Port Forward tutorial, made by Leopard. All you need is a samp-server or omp-server and a router. If you have not a router, then you don't need to port forward! -Port forwarding is the process of unblocking ports in a firewall/router/modem, so that programs can send and receive data through these ports. If other players see your server as "(Retrieving info...)" with a ping of 9999, its port is most likely not forwarded. - -:::warning - -- Ports are usually blocked for a reason. Once a port is forwarded, anyone who knows your IP address and port number can send data to your computer through it. -- Your computer needs a static internal IP address, otherwise you may have to change your port forwarding every time you restart your router or computer. - -::: - ## The Start Ok, so here's the start, start off by finding your **gateway**. Assume that you have vista. Click start, click on the search field, and write **cmd**. Then a black box appears. Enter the following; **ipconfig**. Wait for the text to load, then look though it. Keep searching until you find _**gateway**_, and don't close the black box! @@ -80,14 +71,3 @@ Then your done! Click ok and close it. Launch the server, and see if its working Once there, get the ip that is on your screen. Go again to your SA-MP Client, add that ip to your favorites and add YOUR_PORT (standard: 7777) at the end. If its working, **CONGRATULATIONS**! _You have port-forwarded_! - -## Demilitarized Zone (DMZ) - -Some routers and broadband modems have a DMZ feature. It is **not** recommended at all: it basically opens every single port on your router and bypasses its firewall. Only use it as a last resort if you can't port forward, and if you do, use a firewall on every computer connected to your router. - -## Dynamic DNS services - -Most people have a dynamic external IP address (one which changes often). This makes hosting any sort of game server problematic, as you need to send the players your new IP address every time you restart your router or modem. There are some solutions: - -- Ask your ISP (Internet Service Provider) to provide you with a static IP address, usually at an extra cost. -- Use a Dynamic DNS service such as No-IP. These services give you a hostname of your choice that players can enter in the client instead of your IP address; the client turns it back into your current IP address. The service must be kept up to date with your IP address, for example by running a program on your computer that sends your updated IP address to the service you have chosen. diff --git a/frontend/docs/tutorials/QueryMechanism.md b/frontend/docs/tutorials/QueryMechanism.md index 6aa0ba46be32..442d0df1baf5 100644 --- a/frontend/docs/tutorials/QueryMechanism.md +++ b/frontend/docs/tutorials/QueryMechanism.md @@ -29,8 +29,6 @@ If you have doubts about why to extract and what IP octets and port bytes are, s | 1 | Port >> 8 & 0xFF | | 1 | OPCODE | -For example, an `i` query sent to the server `192.168.200.103:7777` consists of these bytes (in hexadecimal): `53 41 4D 50` ("SAMP"), `C0 A8 C8 67` (192, 168, 200 and 103), `61 1E` (7777, which is 0x1E61) and `69` ("i"). - [Example in C](https://github.com/Louzindev/sampquery-c/blob/master/src/packet.c) ## OPCODE @@ -49,27 +47,6 @@ OPCODE's are package identifiers, and each one represents a different request. - **OPCODE "p" or 0x70:** Four psuedo-random characters are sent to the server, and the same characters are returned. You can use the time between sending and receiving to work out the servers' ping/latency. -:::note - -If more than 100 players are online, the server does not respond to the `c` (client list) query. - -::: - -## RCON Packets - -The RCON packet (OPCODE "x") carries more data than the other queries: the 11 bytes described above are followed by the RCON password and the command to execute, each prefixed with its length as a 2-byte number. The server only answers RCON packets when the [Remote Console](../server/RemoteConsole) is enabled (`rcon.enable` in [config.json](../server/config.json)). - -The table below uses `changeme` as the RCON password and `varlist` as the command; the values and offsets will be different for other passwords and commands. - -| Byte | Key | Byte Width | Hexadecimal | Description | -| ----- | -------- | ---------- | ----------------------- | --------------------------- | -| 11-12 | (strlen) | 2 | 08 00 | Length of the RCON password | -| 13-20 | Password | (strlen) | 63 68 61 6E 67 65 6D 65 | The RCON password | -| 21-22 | (strlen) | 2 | 07 00 | Length of the RCON command | -| 23-29 | Command | (strlen) | 76 61 72 6C 69 73 74 | The RCON command | - -The server sends the output of the command back one line per packet: the 11-byte header, followed by the length of the line (2 bytes) and the line itself. - ## Response As stated above, each OPCODE returns information. diff --git a/frontend/docs/tutorials/servervariablesystem.md b/frontend/docs/tutorials/servervariablesystem.md index aad47244cf56..aad37d238db9 100644 --- a/frontend/docs/tutorials/servervariablesystem.md +++ b/frontend/docs/tutorials/servervariablesystem.md @@ -1,7 +1,6 @@ --- title: Server variable system sidebar_label: Server variable system - description: The server variable system (put short, SVar) is a new way of creating server variables in an efficient dynamically created method globally. --- diff --git a/frontend/docs/tutorials/stringmanipulation.md b/frontend/docs/tutorials/stringmanipulation.md index f4aa4148a93b..abbe6d1050d1 100644 --- a/frontend/docs/tutorials/stringmanipulation.md +++ b/frontend/docs/tutorials/stringmanipulation.md @@ -72,20 +72,20 @@ Theoretically, you can create somewhat ridiculously huge arrays, but SA-MP puts SA-MP limits characters that can be stored in a single string and keeps scripters from going overboard with working with text, luckily, it’s not as bad as it might seem, the list below breaks down some of these limits; -| | | | -| ------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---- | -| **Text input** | The text you input on the chat. | 128 | -| **Text output** | Text that output on the client's screen. | 144 | -| **Name** | Player nickname / Username. | 24 | -| **Textdraw string** | Pretty self-explanatory. | 1024 | -| **Dialog info** | The text displayed on all dialogs of the type `DIALOG_STYLE_MSGBOX`, `DIALOG_STYLE_INPUT` and `DIALOG_STYLE_PASSWORD`. | 4096 | -| **Dialog caption** | The caption/title on top of the dialog. | 64 | -| **Dialog input** | The input box on `DIALOG_STYLE_INPUT` and `DIALOG_STYLE_PASSWORD`. | 128 | -| **Dialog column** | The characters on each column of `DIALOG_STYLE_TABLIST_HEADER` and `DIALOG_STYLE_TABLIST`. | 128 | -| **Dialog row** | The characters on each column of `DIALOG_STYLE_TABLIST_HEADER`, `DIALOG_STYLE_TABLIST` and `DIALOG_STYLE_LIST`. | 256 | -| **Chat bubble** | The chat bubble that displays above the player's name tag. | 144 | -| **Menu title** | The GTA San Andreas native menu (_mostly used for shops_) header. | 31 | -| **Menu item** | The GTA San Andreas native menu (_mostly used for shops_) item/row. | 31 | +| Type | Description | Limit | +| ------------------- | ---------------------------------------------------------------------------------------------------------------------- | ----- | +| **Text input** | The text you input on the chat. | 128 | +| **Text output** | Text that output on the client's screen. | 144 | +| **Name** | Player nickname / Username. | 24 | +| **Textdraw string** | Pretty self-explanatory. | 1024 | +| **Dialog info** | The text displayed on all dialogs of the type `DIALOG_STYLE_MSGBOX`, `DIALOG_STYLE_INPUT` and `DIALOG_STYLE_PASSWORD`. | 4096 | +| **Dialog caption** | The caption/title on top of the dialog. | 64 | +| **Dialog input** | The input box on `DIALOG_STYLE_INPUT` and `DIALOG_STYLE_PASSWORD`. | 128 | +| **Dialog column** | The characters on each column of `DIALOG_STYLE_TABLIST_HEADER` and `DIALOG_STYLE_TABLIST`. | 128 | +| **Dialog row** | The characters on each column of `DIALOG_STYLE_TABLIST_HEADER`, `DIALOG_STYLE_TABLIST` and `DIALOG_STYLE_LIST`. | 256 | +| **Chat bubble** | The chat bubble that displays above the player's name tag. | 144 | +| **Menu title** | The GTA San Andreas native menu (_mostly used for shops_) header. | 31 | +| **Menu item** | The GTA San Andreas native menu (_mostly used for shops_) item/row. | 31 | If somehow these limits have been exceeded, few inconveniences might occur, it can even crash/freeze the server in some cases (_e.g. long textdraw strings_), in some other cases, the text would just truncate like the Menu title (_if it reaches 32 characters, it truncates back to 30_) and items. @@ -242,9 +242,8 @@ message_9[0] = EOS; As I said earlier on the tutorial, you can ignore assigning the null character, but it’s always there at empty cells, when you declare a new string, all of its cells are automatically occupied by the null terminator, so for instance, if I go ahead and declare this string `text[3]`, all of its cells are assigned the value of `0` by default, here’s a simple visual representation of the string’s content; -| | | | | -| ---------- | ---- | ---- | ---- | | Cells | 0 | 1 | 2 | +| ---------- | ---- | ---- | ---- | | ASCII code | 0 | 0 | 0 | | Characters | '\0' | '\0' | '\0' | @@ -256,9 +255,8 @@ new text_1[8] = "Hello"; Here's the string's content per cell; -| | | | | | | | | | -| ---------- | --- | --- | --- | --- | --- | ---- | ---- | ---- | | Cells | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | +| ---------- | --- | --- | --- | --- | --- | ---- | ---- | ---- | | ASCII code | 72 | 101 | 108 | 108 | 111 | 0 | 0 | 0 | | Characters | 'H' | 'e' | 'l' | 'l' | 'o' | '\0' | '\0' | '\0' | @@ -272,9 +270,8 @@ text_1[0] = '\0'; Passing the string through an X-Ray scan will print out the following; -| | | | | | | | | | -| ---------- | ---- | --- | --- | --- | --- | ---- | ---- | ---- | | Cells | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | +| ---------- | ---- | --- | --- | --- | --- | ---- | ---- | ---- | | ASCII code | 0 | 101 | 108 | 108 | 111 | 0 | 0 | 0 | | Characters | '\0' | 'e' | 'l' | 'l' | 'o' | '\0' | '\0' | '\0' | @@ -444,17 +441,15 @@ That’s simply how it works, you declare a string with the size that it would n This is an approximate visual representation of `upkString`'s content; -| | | | | | | -| ---------- | -------------------- | -------------------- | -------------------- | -------------------- | ----------------- | | Cell | 0 | 1 | 2 | 3 | 4 | +| ---------- | -------------------- | -------------------- | -------------------- | -------------------- | ----------------- | | Bytes | 0 . 1 . 2 . 3 | 0 . 1 . 2 . 3 | 0 . 1 . 2 . 3 | 0 . 1 . 2 . 3 | 0 . 1 . 2 . 3 | | Characters | \0 . \0 . \0 . **p** | \0 . \0 . \0 . **a** | \0 . \0 . \0 . **w** | \0 . \0 . \0 . **n** | \0 . \0 . \0 . \0 | And this is what `pkString_1` would be like in the second example; -| | | | -| ---------- | ----------------------------- | ----------------- | | Cell | 0 | 1 | +| ---------- | ----------------------------- | ----------------- | | Bytes | 0 . 1 . 2 . 3 | 0 . 1 . 2 . 3 | | Characters | **p** . **a** . **w** . **n** | \0 . \0 . \0 . \0 | @@ -727,7 +722,7 @@ That was the general approach on color embedding with dialog and client messages as mentioned above, **RGB** notation is not supported, but luckily, we have other ways to work around this problem, for textdraws, you can use the native [TextDrawColor](../scripting/functions/TextDrawColor) function to change the textdraw's color, but this the same to textdraw as **RGBA** color spaces are to client messages and dialogs, they can’t be embedded, for that, we use special combination of characters to refer to colors and few other symbols, you can see them [here](../scripting/resources/gametextstyles). -| | | +| Code | Color | | -------------- | ------ | | \~r\~ | Red | | \~g\~ | Green | @@ -741,7 +736,7 @@ So, embedding colors can go in like this: **\~w\~Hello this is \~b\~blue \~w\~an You can use another combination of characters to play with color mixes, **\~h\~**, it makes a certain color lighter, here are few examples: -| | | +| Code | Color | | ------------------------------ | -------------- | | \~r\~\~h\~ | Lighter red | | \~r\~\~h\~\~h\~ | Red pink | @@ -762,21 +757,21 @@ The escape character is a character in which when prefixed to some character or Escape sequences make it easier to express certain characters in the source code of your script, here is a table containing the escape sequences used in pawn: -| | | -| -------------------------------------------- | ------------ | -| Audible beep (on server machines) | `\a` or `\7` | -| Backspace | `\b` | -| Escape | `\e` | -| Form feed | `\f` | -| New line | `\n` | -| Carriage return | `\r` | -| Horizontal tab | `\t` | -| Vertical tab | `\v` | -| Backslash | `\\` | -| Single quote | `\'` | -| Double quote | `\"` | -| Character code with decimal values "ddd" | `\ddd;` | -| Character code with hexadecimal values "hhh" | `\xhhh;` | +| Description | Escape sequence | +| -------------------------------------------- | --------------- | +| Audible beep (on server machines) | `\a` or `\7` | +| Backspace | `\b` | +| Escape | `\e` | +| Form feed | `\f` | +| New line | `\n` | +| Carriage return | `\r` | +| Horizontal tab | `\t` | +| Vertical tab | `\v` | +| Backslash | `\\` | +| Single quote | `\'` | +| Double quote | `\"` | +| Character code with decimal values "ddd" | `\ddd;` | +| Character code with hexadecimal values "hhh" | `\xhhh;` | Let’s look at each one of them, after all, the best way to learn these sort of stuff rests within practicing them. @@ -1132,7 +1127,7 @@ You can’t, however, change this to (`-`), but anything else is an acceptable p This portion here has absolutely nothing to do with escape sequences, but it is used in formatting textdraws and gametext, it’s better to put it here than anywhere else; -| | | +| Code | Description | | ----- | ------------------------------------------------------------------------------------------------------------- | | `~u~` | Up arrow (gray) | | `~d~` | Down arrow (gray) | @@ -1159,9 +1154,8 @@ Placeholders are only used on functions that accept parameters, thus functions l Let us look at the different output types that can be used: -| | | -| ------------- | ----------------------------------------------- | | **Specifier** | **Meaning** | +| ------------- | ----------------------------------------------- | | `%i` | Integer (_whole number_) | | `%d` | Integer (_whole number_) | | `%s` | String | @@ -1629,9 +1623,8 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) Given the following list of connected players: -| | | -| ------ | ----------------------------------------------- | | **ID** | **Player** | +| ------ | ----------------------------------------------- | | 0 | Compton | | 1 | Dark | | 5 | Player1 | diff --git a/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md b/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md index 90224342e4b4..efcd2edd7268 100644 --- a/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md +++ b/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md @@ -5,8 +5,6 @@ description: يتم استدعاء هذا الاستدعاء أو الكال ب tags: [] --- - -
## الوصف diff --git a/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamOut.md b/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamOut.md index 5adce741bbb0..84a843d89c22 100644 --- a/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamOut.md +++ b/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamOut.md @@ -5,8 +5,6 @@ description: يتم استدعاء هذا الاستدعاء أو الكال ب tags: [] --- - -
## الوصف diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/client/ClientCommands.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/client/ClientCommands.md index e63b6e57fb21..3066358de249 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/client/ClientCommands.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/client/ClientCommands.md @@ -1,22 +1,22 @@ --- -Naslov: "Client Commands" -Deskripcija: Lista svih client komandi. +title: "Client Commands" +description: Lista svih client komandi. --- -| Command | Deskripcija | -| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| /quit (/q) | Ova komanda govori sama za sebe, prosto napušta igru. Također možete koristiti /q, to je u potpunosti ista komanda samo kraća (skraćenica). | -| /save | /save je najčešće korištena uobičajena komanda, ali i vjerovatno najkorisnija. Kada upišete /save, tvoja trenutna pozicija se čuva u savedpositions.txt u vašem "user directory" folderu, Odakle te kodove dalje možete koristiti u skriptama | -| /rs | /rs (Raw Save) je kao /save, ali ona čuva samo trenutnu poziciju i tačku gledišta (facing angle) u rawpositions.txt u vašem "user directory" folderu. Ne daje nikakvu više informaciju kao npr klasa, oružje i sl. | -| /interior | Skoro bitna kao i /save, Ova komanda prikazuje interijer u kojem se trenutno nalazite u chatu. | -| /fpslimit | Ova komanda postavlja limit FPS-a (Frames Per Second) za vašu igru. Što je limit veći to vam je igra više "glatka" (smooth). Nema efekta ako je frame limiter na OFF u opcijama grafike GTA SA. Limit može biti između 20 i 90. | -| /pagesize | /pagesize koristi se za odabir broja linija za chatbox koje će se prikazati. To može biti sve od 10 do 20 redova. Broj redova je prema zadanim postavkama 10. | -| /headmove | Ova komanda će omogućiti/onemogućiti kretanje igračeve glave, međutim samo za vaš klijent, ostali igrači će i dalje vidjeti vašu glavu kako se miče. | -| /timestamp | Ova komanda će prikazati/ugasiti vrijeme pored svake poruke koja je poslana u chat. Prikazati će vrijeme kada je prikazana u vašem kompjuteru, ne globalno vrijeme. | -| /dl | DL (debug labels). Ova komanda prikazuje/gasi debug labele na vozilima, što prikazuje ID vozila, model, health, da li je vozilo pre-loadovano, razmak od igrača, trailer, slobodnih mjesta, trenutnu poziciju i spawn poziciju. | -| /nametagstatus | Ova komanda je dodana u 0.3.x. Kada je omogućena (po zadanim postavkama jeste), igrači će vidjeti malu ikonicu sata pored nametaga igrača koji je pauzirao svoju igru. Ovo uključuje minimiziranje (alt-tab), pause meni (ESC), izgubljena konekcija (crash/timeout) i prilikom kreiranja screenshota što zaledi igru oko 3 sekunde. | -| /mem | Prikazuje trenutnu količinu korištene memorije. (Svejedno, skoro pa uvijek ispisuje 128 MB.) | -| /audiomsg | Omogućava/onemogućava poruku koja prikazuje kada je url strimovan u klijentu. | -| /fontsize | Mijenja veličinu fonta u UI-u (chat, dijalozi itd.). Validan fontsize je od -3 do 5. | -| /ctd | Ova komanda je dodana u SA-MP 0.3.7 RC2. Omogućuje klijentu ispravljanje pogrešaka cilja kamere fotoaparata. | -| /rcon | Više povezano s poslužiteljem, a ne s klijentom. Ova se naredba koristi za izvršavanje RCON naredbi. RCON je ugrađeni admin sustav. RCON stoji za [Remote Control](../server/ControllingServer#using-rcon). | +| Command | Deskripcija | +| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| /quit (/q) | Ova komanda govori sama za sebe, prosto napušta igru. Također možete koristiti /q, to je u potpunosti ista komanda samo kraća (skraćenica). | +| /save | /save je najčešće korištena uobičajena komanda, ali i vjerovatno najkorisnija. Kada upišete /save, tvoja trenutna pozicija se čuva u savedpositions.txt u vašem "user directory" folderu, Odakle te kodove dalje možete koristiti u skriptama | +| /rs | /rs (Raw Save) je kao /save, ali ona čuva samo trenutnu poziciju i tačku gledišta (facing angle) u rawpositions.txt u vašem "user directory" folderu. Ne daje nikakvu više informaciju kao npr klasa, oružje i sl. | +| /interior | Skoro bitna kao i /save, Ova komanda prikazuje interijer u kojem se trenutno nalazite u chatu. | +| /fpslimit | Ova komanda postavlja limit FPS-a (Frames Per Second) za vašu igru. Što je limit veći to vam je igra više "glatka" (smooth). Nema efekta ako je frame limiter na OFF u opcijama grafike GTA SA. Limit može biti između 20 i 90. | +| /pagesize | /pagesize koristi se za odabir broja linija za chatbox koje će se prikazati. To može biti sve od 10 do 20 redova. Broj redova je prema zadanim postavkama 10. | +| /headmove | Ova komanda će omogućiti/onemogućiti kretanje igračeve glave, međutim samo za vaš klijent, ostali igrači će i dalje vidjeti vašu glavu kako se miče. | +| /timestamp | Ova komanda će prikazati/ugasiti vrijeme pored svake poruke koja je poslana u chat. Prikazati će vrijeme kada je prikazana u vašem kompjuteru, ne globalno vrijeme. | +| /dl | DL (debug labels). Ova komanda prikazuje/gasi debug labele na vozilima, što prikazuje ID vozila, model, health, da li je vozilo pre-loadovano, razmak od igrača, trailer, slobodnih mjesta, trenutnu poziciju i spawn poziciju. | +| /nametagstatus | Ova komanda je dodana u 0.3x. Kada je omogućena (po zadanim postavkama jeste), igrači će vidjeti malu ikonicu sata pored nametaga igrača koji je pauzirao svoju igru. Ovo uključuje minimiziranje (alt-tab), pause meni (ESC), izgubljena konekcija (crash/timeout) i prilikom kreiranja screenshota što zaledi igru oko 3 sekunde. | +| /mem | Prikazuje trenutnu količinu korištene memorije. (Svejedno, skoro pa uvijek ispisuje 128 MB.) | +| /audiomsg | Omogućava/onemogućava poruku koja prikazuje kada je url strimovan u klijentu. | +| /fontsize | Mijenja veličinu fonta u UI-u (chat, dijalozi itd.). Validan fontsize je od -3 do 5. | +| /ctd | Ova komanda je dodana u SA-MP 0.3.7 RC2. Omogućuje klijentu ispravljanje pogrešaka cilja kamere fotoaparata. | +| /rcon | Više povezano s poslužiteljem, a ne s klijentom. Ova se naredba koristi za izvršavanje RCON naredbi. RCON je ugrađeni admin sustav. RCON stoji za [Remote Control](../server/ControllingServer#using-rcon). | 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 b984795bb266..97608127e50b 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 @@ -23,7 +23,9 @@ 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. Ovaj callback se NEĆE pozvati ukoliko server crashuje ili ako ubijete proces drugim sredstvima kao npr Linux kill komandom ili pritiskom na close dugme u Windows konzoli. +- 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. +- 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/OnPlayerClickPlayer.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayer.md index 2ae66451d965..4712fd6693fd 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 @@ -46,3 +46,7 @@ Trenutno je dostupan samo jedan 'source' (0 - CLICK_SOURCE_SCOREBOARD). Postojan ## Srodne Funkcije - [OnPlayerClickTextDraw](OnPlayerClickTextDraw): Pozvana kada igrač klikne na textdraw. + +## Srodne Resources + +- [Izvori Klikanja](../resources/clicksources) 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 717409b0d3d5..6fc016c95187 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 @@ -59,3 +59,12 @@ public OnPlayerGiveDamage(playerid, damagedid, Float:amount, WEAPON:weaponid, bo Ako želite spriječiti da određeni igrači povrjeđuju, koristite `SetPlayerTeam`. ::: + +## Srodne Callbacks + +- [OnPlayerTakeDamage](OnPlayerTakeDamage): Ovaj callback je pozvan kada igrač prima ozljede. +- [OnPlayerWeaponShot](OnPlayerWeaponShot): Ovaj callback je pozvan kada igrač ispali hitac iz oružja. + +## Srodne Resources + +- [Dijelovi tijela](../resources/bodyparts) 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 cd786ef22495..96c49c9b2f04 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 @@ -68,3 +68,7 @@ Ova funkcije nije pozvana ako je aktor postavljen na "neranjiv" (invulnerable) ( - [OnActorStreamOut](OnActorStreamOut): Poziva se kada se aktor pojavi u igračevom klijentu. - [OnPlayerStreamIn](OnPlayerStreamIn): Poziva se kada se aktor prestane prikazivati na igračevom klijentu. + +## Srodne Resources + +- [Dijelovi tijela](../resources/bodyparts) 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 922811f54cf3..cd1948338b76 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 @@ -80,3 +80,7 @@ GetPlayerHealth i GetPlayerArmour će return-ovati stare vrijednosti igračevog - [OnPlayerGiveDamage](OnPlayerGiveDamage): This callback is called when a player gives damage. - [OnPlayerWeaponShot](OnPlayerWeaponShot): This callback is called when a player fires a weapon. + +## Srodne Resources + +- [Dijelovi tijela](../resources/bodyparts) diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md index 0c0812f1942d..199874d666f8 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md @@ -87,7 +87,8 @@ Ovaj callback pozvat će i NPC. :::warning -Ovaj callback je pozvan, otprilike, 30 puta po sekundi, po igraču; koristite ga samo kada znate za šta znači (ili mnogo bitnije, za šta NE znači).Učestalost pozivanja ovog povratnog poziva za svakog igrača varira, ovisno o tome što igrač radi. Vožnja ili pucanje izazvat će puno više ažuriranja nego u praznom hodu. +- Ovaj callback je pozvan, otprilike, 30 puta po sekundi, po igraču; koristite ga samo kada znate za šta znači (ili mnogo bitnije, za šta NE znači). +- Učestalost pozivanja ovog povratnog poziva za svakog igrača varira, ovisno o tome što igrač radi. Vožnja ili pucanje izazvat će puno više ažuriranja nego u praznom hodu. ::: 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 a5c62dfaac1a..0a06402c454d 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 @@ -69,3 +69,7 @@ Poznati Bag(ovi): ## Srodne Funkcije - [GetPlayerLastShotVectors](../functions/GetPlayerLastShotVectors): Dohvaća vektor zadnjeg hica kojeg je igrač ispalio. + +## Srodne Resources + +- [Vrste Pogodaka Mecima](../resources/bullethittypes) 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 de71ddcca064..f3ad112d4c72 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 @@ -44,7 +44,10 @@ public OnRconCommand(cmd[]) :::note -"/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 prijavu, 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. +- "/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 prijavu, 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. ::: 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 c6e180b4b4ae..11ca23c607cc 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 @@ -46,7 +46,8 @@ 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 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. ::: 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 5a748715a6b8..14730f00dfa1 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 @@ -54,3 +54,7 @@ Najveći mogući ID klase je 319 (Počinje od 0, znači maksimalno 320 klasa). K - [AddPlayerClassEx](AddPlayerClassEx): Dodaj klasu sa zadanim timom. - [SetSpawnInfo](SetSpawnInfo): Postavi postavke za spawnovanje/stvaranje igrača. - [SetPlayerSkin](SetPlayerSkin): Postavi igračev skin/izgled. + +## Srodne Resources + +- [Skinovi](../resources/skins) 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 8f1f924fc194..0a143ccc2cd4 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 @@ -58,3 +58,7 @@ Najveći mogući ID klase je 319 (Počinje od 0, znači maksimalno 320 klasa). K - [SetSpawnInfo](SetSpawnInfo): Postavi postavke za spawnovanje/stvaranje igrača. - [SetPlayerTeam](SetPlayerTeam): Postavi igraču tim. - [SetPlayerSkin](SetPlayerSkin): Postavi igračev skin/izgled. + +## Srodne Resources + +- [Skinovi](../resources/skins) diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md index 6b98ba83eb3d..62167bdbb527 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md @@ -32,7 +32,7 @@ public OnGameModeInit ( ) { gVehicleId = CreateVehicle(510, 0.0. 0.0, 15.0, 5, 0, 120); // Creating the Vehicle. gVehicle3dText[gVehicleId] = Create3DTextLabel("Example Text", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1); - Attach3DTextLabelToVehicle(gVehicle3dText[gVehicleId], vehicle_id, 0.0, 0.0, 2.0); // Attaching Text Label To Vehicle. + Attach3DTextLabelToVehicle(gVehicle3dText[gVehicleId], gVehicleId, 0.0, 0.0, 2.0); // Attaching Text Label To Vehicle. } public OnGameModeExit ( ) 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 9a8cc62a6533..f60e28a4fb1a 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 @@ -7,7 +7,7 @@ tags: ["npc"] :::warning -Ova funkcija je dodana u SA-MP 0.3.a i ne radi u nižim verzijama! +Ova funkcija je dodana u SA-MP 0.3a i ne radi u nižim verzijama! ::: 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 5896acea9f11..e8ed43040284 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 @@ -7,7 +7,7 @@ tags: ["3dtextlabel"] :::warning -Ova funkcija je dodana u SA-MP 0.3.a i ne radi u nižim verzijama! +Ova funkcija je dodana u SA-MP 0.3a i ne radi u nižim verzijama! ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateExplosionForPlayer.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateExplosionForPlayer.md index aef5e1324233..33c34288e09a 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateExplosionForPlayer.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateExplosionForPlayer.md @@ -5,12 +5,6 @@ description: Kreira eksploziju koja je vidljiva samo jednom igraču. tags: ["player"] --- -:::warning - -Ova funkcija je dodana u SA-MP 0.3.z R2-2 i ne radi u nižim verzijama! - -::: - ## Deskripcija Kreira eksploziju koja je vidljiva samo jednom igraču. Ovo se može koristiti da izdvojite eksplozije od ostalih igrala ili da ih prikažete samo u određenim virtualnim svjetovima. diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md index 196691d69a92..c9cf5830a2c2 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md @@ -45,6 +45,12 @@ Player-textdraws se automatski unište kada se igrač diskonektuje. ::: +:::tip + +Preporučuje se upotreba CIJELIH brojeva umjesto decimalnih mjesta prilikom kreiranja crteža teksta kako bi se osigurao dizajn prilagođen rezoluciji. + +::: + :::warning Kodovi mapiranja tipkovnice (kao što je `~k~~VEHICLE_ENTER_EXIT~` Ne radi duže od 255. znaka). diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md index 56d6b4d1e45c..4ecf15475a49 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md @@ -45,8 +45,7 @@ Ruši se kada se proslijedi nevažeći ID menija. :::note -- Ova je funkcija onemogućila navedeni red menija za sve igrače. -- Ne postoji funkcija za onemogućavanje reda menija za određenog igrača. Morali biste stvoriti dva menija - jedan s onemogućenim redom i jedan bez. Ili po jedan po igraču. +Ova je funkcija onemogućila navedeni red menija za sve igrače. Ne postoji funkcija za onemogućavanje reda menija za određenog igrača. Morali biste stvoriti dva menija - jedan s onemogućenim redom i jedan bez. Ili po jedan po igraču. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md index b5c07486c856..24d247b8af16 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md @@ -38,8 +38,7 @@ Ova je funkcija uklonjena u SA-MP 0.3. :::note -- Pucanje guma je omogućeno prema zadanim postavkama. -- Ako želite onemogućiti pucanje guma, morat ćete ga ručno skriptati koristeći [OnVehicleDamageStatusUpdate](../callbacks/OnVehicleDamageStatusUpdate). +Pucanje guma je omogućeno prema zadanim postavkama. Ako želite onemogućiti pucanje guma, morat ćete ga ručno skriptati koristeći [OnVehicleDamageStatusUpdate](../callbacks/OnVehicleDamageStatusUpdate). ::: 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 9278ac22368a..de45cea41888 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,10 +27,15 @@ 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, 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. ::: ## Srodne Funkcije - [SetPlayerSkin](SetPlayerSkin): Postavi skin igraču. + +## Srodne Resources + +- [Skinovi](../resources/skins) diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md index 0fa74d062f04..c65924977c96 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md @@ -35,7 +35,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/GetVehicleComponentInSlot.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleComponentInSlot.md index 2cf10e12660a..47b88a7d16cb 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleComponentInSlot.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleComponentInSlot.md @@ -50,3 +50,7 @@ Poznati Bug(ovi): Ne radi za CARMODTYPE_STEREO. Dijelove prednjeg branika spreml - [GetVehicleComponentType](GetVehicleComponentType): Provjeri tip komponente preko ID-a. - [OnVehicleMod](../callbacks/OnVehicleMod): Pozvano kada vozilo biva nadograđeno. - [OnEnterExitModShop](../callbacks/OnEnterExitModShop): Pozvano kada vozilo uđe ili izađe iz mod shopa. + +## Srodne Resources + +- [Slotovi komponenti](../resources/componentslots) diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md index 58d44f4e0c7e..2265900944fa 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md @@ -33,7 +33,9 @@ Stanje vrata vozila je pohranjeno u navedenim varijablama. Vrijednosti vraćene u svakoj varijabli su kao: --1: Stanje vrata nije postavljeno 1: Otvorena 0: Zatvorena +- -1: Stanje vrata nije postavljeno +- 1: Otvorena +- 0: Zatvorena ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md index abc32d19b3a4..8e0c0ee4ff1b 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md @@ -33,7 +33,9 @@ Stanje prozora vozila pohranjeno je u navedenim varijablama. Vrijednosti vraćene u svakoj varijabli su kao: --1: Stanje prozora nije postavljeno (općenito zatvoreno, osim ako nije izričito postavljeno na -1) 0: Otvoren 1: Zatvoren +- -1: Stanje prozora nije postavljeno (općenito zatvoreno, osim ako nije izričito postavljeno na -1) +- 0: Otvoren +- 1: Zatvoren ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md index 0efb03a66432..3f431308b687 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md @@ -28,6 +28,9 @@ tags: [] #define HTTP_GET (1) // Šalje običan HTTP zahtjev. #define HTTP_POST (2) // Šalje HTTP zahtjev s POST podacima. #define HTTP_HEAD (3) // Šalje običan HTTP zahtjev, ali zanemaruje sve podatke o odgovoru - vraća samo kod odgovora. +``` + +```c // HTTP kodovi odgovora na greške // Ovi kodovi dopunjuju uobičajene HTTP kodove odgovora vraćene u 'response_code' // (10x) (20x OK) (30x Pomjereno) (40x Neovlašteno) (50x Server Error) 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 c20b9007fcea..5391d5df8eb2 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 @@ -56,3 +56,7 @@ Upotrijebite TogglePlayerSpectating da se objekti prikažu igraču/klijentu toko - [InterpolateCameraPos](InterpolateCameraPos): Pomjerite kameru igrača od jedne lokacije do druge. - [SetPlayerCameraLookAt](SetPlayerCameraLookAt): Postavite gdje će igračeva kamera gledati. - [SetPlayerCameraPos](SetPlayerCameraPos): Postavi poziciju kamere igrača. + +## Srodne Resources + +- [Stilovi Rezanja Kamere](../resources/cameracutstyles) 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 b5452981ea29..6535aa7dd688 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 @@ -54,3 +54,7 @@ Upotrijebite TogglePlayerSpectating da se objekti prikažu igraču/klijentu toko - [InterpolateCameraLookAt](InterpolateCameraLookAt): Premjestite prikaz kamere igrača s jedne lokacije na drugu. - [SetPlayerCameraPos](SetPlayerCameraPos): Postavi poziciju kamere igrača. - [SetPlayerCameraLookAt](SetPlayerCameraLookAt): Postavite gdje će igračeva kamera gledati. + +## Srodne Resources + +- [Stilovi Rezanja Kamere](../resources/cameracutstyles) 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 24c94f3e9ae0..c0cfa8fec5de 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 @@ -20,12 +20,6 @@ Premjestite player objekat na novi položaj zadanom brzinom. Također podržava | Float:RotX | FINALNA X rotacija (neobavezna). | | Float:RotY | FINALNA Y rotacija (neobavezna). | | Float:RotZ | FINALNA Z rotacija (neobavezna). | -| playerid | Igrač kojeg si povezao sa ovim objektom. | -| objectid | ID objekta kojeg želiš pomjeriti. | -| Float:X | Nova X kordinata. | -| Float:Y | Nova Y kordinata. | -| Float:Z | Nova Z kordinata. | -| Float:Speed | Brzina kojom se objekt premješta. | ## Returns 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 2fa792357aaa..c3f3998466cd 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 @@ -17,9 +17,7 @@ Postavlja poravnanje teksta player-textdrawa. ## Returns -Note - -Za poravnanje 2 (u sredini) vrijednosti x i y TextSize moraju se zamijeniti, pogledajte bilješke na PlayerTextDrawTextSize. +Ova funkcija ne returna (vraća) nikakve posebne vrijednosti. ## Primjeri 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 54a6fc3e5735..929942930c47 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 @@ -17,9 +17,7 @@ Podesite boju pozadine player-textdrawa. ## Returns -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 +Ova funkcija ne returna (vraća) nikakve posebne vrijednosti. ## Primjeri 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 329623071299..9416d46ec471 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 @@ -18,19 +18,7 @@ Promijeni veličinu player-textdrawa (box ako je PlayerTextDrawUseBox omogućen ## Returns -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 - -1 (left): oni su krajnji desni ugao kutije, apsolutna kordinata. - -2 (center): trebaju ih okrenuti (prebaciti dva), a X vrijednost je ukupna širina boxa. - -3 (right): x i y su kordinate krajnjeg lijevog ugla kutije - -Upotrebom fonta tipa 4 (sprite) i 5 (pregled modela) pretvara se X i Y ove funkcije iz kordinatama ugla u WIDTH i HEIGHT (offseti). - -Box TextDraw-a 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 PlayerTextDrawSetSelectable, bilo da je box prikazan ili ne. +Ova funkcija ne returna (vraća) nikakve posebne vrijednosti. ## Primjeri 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 aa85786cd19d..ca703f17e19a 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 @@ -37,7 +37,6 @@ public OnPlayerEnterVehicle(playerid, vehicleid, ispassanger) 2 - Lijevi-pozadi 3 - Desni-pozadi 4+ - Putnička sjedala (kauč i sl.) - ``` ## Zabilješke 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 96bfc6f49969..769490e06446 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 @@ -48,7 +48,8 @@ Vraćeni hash nema nula popunjavanja (npr. mogući prefiks 00ABCD123...). :::tip -Salt je dodan na kraj lozinke, što znači da lozinka 'foo' i salt 'bar' čine 'foobar'. Salt bi treba biti nasumičan, jedinstven za svakog igrača i najmanje dug kao hashirana lozinka. Treba ga pohraniti uz stvarni heš na računu igrača. +- Salt je dodan na kraj lozinke, što znači da lozinka 'foo' i salt 'bar' čine 'foobar'. +- Salt bi treba biti nasumičan, jedinstven za svakog igrača i najmanje dug kao hashirana lozinka. Treba ga pohraniti uz stvarni heš na računu igrača. ::: 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 785e6fe175b0..94126cb0a896 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 @@ -33,7 +33,9 @@ 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. NPC-ove možete koristiti za stvaranje vlastitih razloga smrti. +- 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. +- NPC-ove možete koristiti za stvaranje vlastitih razloga smrti. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessageToPlayer.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessageToPlayer.md index cbc7baa19eea..498bd0f2ab7f 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessageToPlayer.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessageToPlayer.md @@ -5,12 +5,6 @@ description: Dodaje smrt 'killfeedu' s desne strane ekrana za jednog igrača. tags: ["player"] --- -:::warning - -Ova funkcija je dodana u SA-MP 0.3.z R2-2 i ne radi u nižim verzijama! - -::: - ## Deskripcija Dodaje smrt 'killfeedu' s desne strane ekrana za jednog igrača. 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 8e36fa3ecdb1..2b751f99e694 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,8 @@ public OnGameModeInit() :::warning -Jednom postavljen za neranjivog, aktor ne poziva OnPlayerGiveDamageActor. Igračima će se stanje aktorove neranjivosti promijeniti samo kad im se to ponovno učita. +- Jednom postavljen za neranjivog, aktor ne poziva 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/SetObjectMaterial.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md index 9009616c1599..1d5d6f780334 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 @@ -66,5 +66,6 @@ MORAŠ koristiti ARGB format boje, ne RGBA kao što se koristi u klijent porukam ## Filterskripte koje podržavaju teksturisanje/text -- Ultimate Creator od Nexius -- Fusez's Map Editor od RedFusion +- [Texture Studio](https://github.com/Pottus/Texture-Studio) od Pottus +- [Ultimate Creator](https://github.com/NexiusTailer/Ultimate-Creator) od Nexius +- [Fusez's Map Editor](https://github.com/fusez/Map-Editor-V3) od RedFusion diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md index a3a6ce90507a..d2b63b48e477 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md @@ -62,6 +62,6 @@ MORAŠ koristiti ARGB format boje, ne RGBA kao što se koristi u klijent porukam ## Filterskripte koje podržavaju teksturisanje/text -- Ultimate Creator od Nexius -- Texture Studio od \[uL\]Pottus -- Fusez's Map Editor od RedFusion +- [Texture Studio](https://github.com/Pottus/Texture-Studio) od Pottus +- [Ultimate Creator](https://github.com/NexiusTailer/Ultimate-Creator) od Nexius +- [Fusez's Map Editor](https://github.com/fusez/Map-Editor-V3) od RedFusion 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 85ad05d2397b..76676cf53a33 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 @@ -64,3 +64,7 @@ U 0.3d verziji pa nadalje, 10 objekata se može prikvačiti za jednog igrača (i - [RemovePlayerAttachedObject](RemovePlayerAttachedObject): Ukloni prikvačeni objekat sa igrača - [IsPlayerAttachedObjectSlotUsed](IsPlayerAttachedObjectSlotUsed): Provjeri da li je objekat prikvačen za igrača u oređenom indexu. - [EditAttachedObject](EditAttachedObject): Uredi prikvačeni objekat. + +## Srodne Resources + +- [ID Kostiju](../resources/boneid) 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 6e1615bf0c03..d39e071a9f52 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 @@ -44,3 +44,7 @@ Korištenje funkcija kamere izravno nakon omogućavanja režima spectatora ne ra - [SetCameraBehindPlayer](SetCameraBehindPlayer): Postavi kameru igrača iza njega. - [GetPlayerCameraPos](GetPlayerCameraPos): Saznajte gdje je kamera igrača. - [GetPlayerCameraFrontVector](GetPlayerCameraFrontVector): Dobij prednji vektor kamere igrača. + +## Srodne Resources + +- [Stilovi Rezanja Kamere](../resources/cameracutstyles) diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerDrunkLevel.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerDrunkLevel.md index b78e3eae9f2f..353f7a279049 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerDrunkLevel.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerDrunkLevel.md @@ -35,7 +35,11 @@ if (strcmp(cmdtext, "/drunk", true) == 0) :::note -Pijani nivo igrača automatski će se smanjiti s vremenom, na osnovu njihovog FPS-a (igrači sa 50 FPS-a izgubit će 50 'nivoa' u sekundi. Ovo je korisno za određivanje FPS-a igrača!). U 0.3a nivo pijanca će se smanjiti i zaustaviti na 2000. U 0.3b + nivo pijanca se smanjuje na nulu.) Nivoi preko 2000 čine igrača pijanim (njihanje kamere i vozila teško kontrolirati). Maksimalni nivo pijanosti je 50000. Dok je nivo pijanosti iznad 5000, HUD igrača (radar itd.) će biti sakriven. +- Pijani nivo igrača automatski će se smanjiti s vremenom, na osnovu njihovog FPS-a (igrači sa 50 FPS-a izgubit će 50 'nivoa' u sekundi. Ovo je korisno za određivanje FPS-a igrača!). +- U 0.3a nivo pijanca će se smanjiti i zaustaviti na 2000. U 0.3b + nivo pijanca se smanjuje na nulu.) +- Nivoi preko 2000 čine igrača pijanim (njihanje kamere i vozila teško kontrolirati). +- Maksimalni nivo pijanosti je 50000. +- Dok je nivo pijanosti iznad 5000, HUD igrača (radar itd.) će biti sakriven. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md index d18b26da20ee..7005388dfed2 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md @@ -39,7 +39,8 @@ public OnPlayerSpawn(playerid) :::note -Po igraču se može prikačiti samo jedan predmet. Ova je funkcija odvojena od spremišta CreateObject / CreatePlayerObject. +- Po igraču se može prikačiti samo jedan predmet. +- Ova je funkcija odvojena od spremišta CreateObject / CreatePlayerObject. ::: 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 dce01d60eac0..1ed07150262c 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 @@ -64,7 +64,6 @@ MORAŠ koristiti ARGB format boje, ne RGBA kao u client porukama itd. ## Filterskripte koje podržavaju teksturisanje/text -- Ultimate Creator od Nexius -- Texture Studio od \[uL\]Pottus -- Fusez's Map Editor od RedFusion -- Map Editor I od adri1 +- [Texture Studio](https://github.com/Pottus/Texture-Studio) od Pottus +- [Ultimate Creator](https://github.com/NexiusTailer/Ultimate-Creator) od Nexius +- [Fusez's Map Editor](https://github.com/fusez/Map-Editor-V3) od RedFusion diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md index 807e8253fcb9..c2ab9b3bf615 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md @@ -55,7 +55,6 @@ Ugradnja boja može se koristiti za više boja u tekstu. ## Filterskripte koje podržavaju teksturisanje/text -- Ultimate Creator od Nexius -- Texture Studio od \[uL\]Pottus -- Fusez's Map Editor od RedFusion -- Map Editor I od adri1 +- [Texture Studio](https://github.com/Pottus/Texture-Studio) od Pottus +- [Ultimate Creator](https://github.com/NexiusTailer/Ultimate-Creator) od Nexius +- [Fusez's Map Editor](https://github.com/fusez/Map-Editor-V3) od RedFusion 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 dd75e67a3789..06ea37d11f61 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 @@ -90,7 +90,12 @@ SetPlayerSkinFix(playerid, skinid) :::warning -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). 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. Prekidi sjedeći na biciklima. +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). +- 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. +- Prekidi sjedeći na biciklima. ::: @@ -98,3 +103,7 @@ Poznati Bug(ovi): Ako je igračeva koža postavljena kada čuči, u vozilu ili i - [GetPlayerSkin](GetPlayerSkin): Dobij igračev trenutni skin. - [SetSpawnInfo](SetSpawnInfo): Postavi postavke spawnovanja za igrača. + +## Srodne Resources + +- [Skinovi](../resources/skins) 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 9d6a1fd53400..38f5b10db08b 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,8 @@ 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. 255 (ili NO_TEAM) je zadani tim koji može pucati na druge igrače, a ne na 0. +- 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. +- 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/SetPlayerVelocity.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerVelocity.md index 1fb562eac194..8cfee75ac3d2 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerVelocity.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerVelocity.md @@ -29,8 +29,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) { if (!strcmp("/jump", cmdtext)) { - SetPlayerVelocity(playerid, 0.0, 0.0, 0.2); // Forsira igrača da skoči (Z brzina + 0.2) - return 1; + SetPlayerVelocity(playerid, 0.0, 0.0, 0.2); // Forsira igrača da skoči (Z brzina + 0.2) + return 1; } return 0; } 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 8b35d78189d9..b7d80d6d2a44 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 @@ -46,3 +46,7 @@ public OnPlayerRequestClass(playerid, classid) - [SetPlayerSkin](SetPlayerSkin): Postavi skin igraču. - [SetPlayerTeam](SetPlayerTeam): Postavi tim igrača. - [SpawnPlayer](SpawnPlayer): Natjeraj igrača da se spawnuje. + +## Srodne Resources + +- [Skinovi](../resources/skins) diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md index a372e6105b0e..1a639e491077 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md @@ -47,10 +47,17 @@ public message() :::note -ID-ovi tajmera nikada se ne koriste dva puta. Možete koristiti KillTimer () na ID-u tajmera i neće biti važno pokreće li se ili ne. Funkcija koju treba pozvati mora biti javna, što znači da mora biti proslijeđena. +- ID-ovi tajmera nikada se ne koriste dva puta. Možete koristiti KillTimer na ID-u tajmera i neće biti važno pokreće li se ili ne. +- Funkcija koju treba pozvati mora biti javna, što znači da mora biti proslijeđena. ::: +## Definicije + +| Definicija | Vrijednost | +| ------------- | ---------- | +| INVALID_TIMER | 0 | + ## Srodne Funkcije - [SetTimerEx](SetTimerEx): Postavi tajmer sa parametrima. 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 3ca9e5185904..00a1f0b42735 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 @@ -61,12 +61,25 @@ public EndAntiSpawnKill(playerid) ## Zabilješke +:::warning + +Intervali tajmera nisu tačni (otprilike 25% popusta). Postoje ispravci dostupni [ovdje](https://sampforum.blast.hk/showthread.php?tid=289675) i [ovdje](https://sampforum.blast.hk/showthread.php?tid=650736). + +::: + :::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). Intervali tajmera nisu tačni (otprilike 25% popusta). Postoje ispravci dostupni ovdje i ovdje. Funkcija koju treba pozvati mora biti javna. To znači da se mora proslijediti. +- 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). +- Funkcija koju treba pozvati mora biti javna. To znači da se mora proslijediti. ::: +## Definicije + +| Definicija | Vrijednost | +| ------------- | ---------- | +| INVALID_TIMER | 0 | + ## Srodne Funkcije - [SetTimer](SetTimer): Postavi tajmer. 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 a53495917725..247faf9f1f54 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 @@ -73,6 +73,12 @@ public DisableVehicleAlarm(vehicleid) } ``` +## Definicije + +- `VEHICLE_PARAMS_UNSET` (-1) +- `VEHICLE_PARAMS_OFF` (0) +- `VEHICLE_PARAMS_ON` (1) + ## Zabilješke :::note diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md index e597acadaca1..e2b8078a2913 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md @@ -45,7 +45,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -Kada se koristi ova funkcija, okretanje vozila X i Y (nagib i kotrljanje) resetirat će se. Rotacije X i Y ne mogu se postaviti. Ova funkcija ne radi na neuzetim vozilima (vjeruje se da je to GTA ograničenje). +- Kada se koristi ova funkcija, okretanje vozila X i Y (nagib i kotrljanje) resetirat će se. Rotacije X i Y ne mogu se postaviti. +- Ova funkcija ne radi na neuzetim vozilima (vjeruje se da je to GTA ograničenje). ::: 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 496b773e773e..d91d46ab8da1 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 @@ -17,9 +17,9 @@ Ova funkcija ti omogućava da omogućite/onemogućite iscrtavanje nametag-ova, h ## Returns -## Važna Bilješka +1: Funkcija uspješno izvršena. -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). +0: Funkcija neuspješno izvršena. Ovo znači da igrač nije konektovan. ## Primjeri diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayerData.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayerData.md index acb6bc002728..8ee6f59a59f4 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayerData.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/StartRecordingPlayerData.md @@ -40,3 +40,7 @@ if (!strcmp("/recordme", cmdtext)) ## Srodne Funkcije - [StopRecordingPlayerData](StopRecordingPlayerData): Zaustavlja snimanje podataka sa igrača. + +## Srodne Resources + +- [Vrste Zapisa](../resources/recordtypes) 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 31f0406cda75..d6da57e43ccc 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 @@ -16,9 +16,7 @@ Postavite poravnanje teksta u textdrawu. ## Returns -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. +Ova funkcija ne returna (vraća) nikakve posebne vrijednosti. ## Primjeri @@ -37,7 +35,8 @@ public OnGameModeInit() :::note -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, 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. ::: 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 46dd8f932dad..da32428a19e9 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 @@ -45,8 +45,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. +- 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. ::: 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 ca67d9932e6e..b5f74fdd515e 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 @@ -27,7 +27,7 @@ new Text: gMyTextdraw; public OnGameModeInit() { gMyTextdraw = TextDrawCreate(100.0, 33.0,"Primjer Textdrawa"); - TextDrawLetterSize(gMyTextdraw, 3.2 ,5.1); + TextDrawLetterSize(gMyTextdraw, 3.2, 5.1); return 1; } ``` @@ -37,7 +37,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. Fontovi izgledaju najbolje sa X naprema Y rastojanju od 1 do 4 (npr. ako je x 0.5 onda bi y trebao biti 2). +- 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. +- 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/TextDrawSetPreviewModel.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewModel.md index 90ee01c5ee1f..551253293485 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewModel.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewModel.md @@ -31,8 +31,8 @@ public OnGameModeInit() TextDrawBoxColor(textdraw, 0x000000FF); TextDrawTextSize(textdraw, 40.0, 40.0); TextDrawSetPreviewModel(textdraw, 411); //Prikaži model 411 (Infernus) - //TextDrawSetPreviewModel(textdraw, 1); //Prikaži model 1 (CJ Skin) - //TextDrawSetPreviewModel(textdraw, 18646); //Prikaži model 18646 (Police light objekat) + //TextDrawSetPreviewModel(textdraw, 1); //Prikaži model 1 (CJ Skin) + //TextDrawSetPreviewModel(textdraw, 18646); //Prikaži model 18646 (Police light objekat) //Još uvijek moraš da koristiš TextDrawShowForAll/TextDrawShowForPlayer kako bi textdraw bio vidljiv. return 1; diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewRot.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewRot.md index e0b1ded0c9c5..ef4ef2315de1 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewRot.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewRot.md @@ -23,7 +23,7 @@ Ova funkcija ne returna (vraća) nikakve posebne vrijednosti. ## Primjeri ```c -new Text: gMyTextdraw +new Text: gMyTextdraw; public OnGameModeInit() { 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 ec79692d647d..97c3d1cf5467 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 @@ -5,12 +5,6 @@ description: Deblokirajte IP adresu koja je prethodno bila blokirana pomoću Blo tags: [] --- -:::warning - -Ova funkcija je dodana u SA-MP 0.3.z R2-2 i ne radi u nižim verzijama! - -::: - ## Deskripcija Deblokirajte IP adresu koja je prethodno bila blokirana pomoću BlockIpAddress. diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/acos.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/acos.md index 33cf77af5bfc..ea6e1430bd6b 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/acos.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/acos.md @@ -1,7 +1,7 @@ --- title: acos sidebar_label: acos -description: . +description: Dobijte obrnutu vrijednost kosinusa luka u radijanima. tags: [] --- diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/asin.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/asin.md index baef4e1cee04..9761fd126e79 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/asin.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/asin.md @@ -1,7 +1,7 @@ --- title: asin sidebar_label: asin -description: . +description: Dobijte obrnutu vrijednost sinusnog luka u radijanima. tags: [] --- diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/atan2.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/atan2.md index 2d8e3371c8ae..21effefc05da 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/atan2.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/atan2.md @@ -1,7 +1,7 @@ --- title: atan2 sidebar_label: atan2 -description: . +description: Dobijte obrnutu vrijednost tangente luka od y / x, izraženu u radijanima. tags: [] --- diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_get_mem_handle.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_get_mem_handle.md index c577ae0e431f..833bd093ea7d 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_get_mem_handle.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_get_mem_handle.md @@ -13,7 +13,7 @@ Ova funkcija je dodana u SA-MP 0.3.7 R1 i ne radi u nižim verzijama! ## Deskripcija -Dobiva memorijski upravitelj za vezu SQLite databaze koja je otvorena s [db_open](db_open)]. +Dobiva memorijski upravitelj za vezu SQLite databaze koja je otvorena s [db_open](db_open). | Ime | Deskripcija | | ----- | ----------------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md index 91c4e42029f9..dbaa9cd6df84 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md @@ -67,7 +67,8 @@ public OnGameModeExit() :::warning -Stvorit će novu datoteku baze podataka SQLite, ako ne postoji datoteka baze podataka SQLite s istim imenom datoteke. Zatvorite vezu SQLite baze podataka pomoću [db_close](db_close)! +- Stvorit će novu datoteku baze podataka SQLite, ako ne postoji datoteka baze podataka SQLite s istim imenom datoteke. +- Zatvorite vezu SQLite baze podataka pomoću [db_close](db_close)! ::: 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 8e2cf8cd2fde..ae60ef549b04 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 @@ -41,3 +41,7 @@ GTA / SA-MP u većini slučajeva koriste stupnjeve za uglove, na primjer GetPlay - [floatsin](floatsin): Uzmite sinus iz određenog ugla. - [floattan](floattan): Dobijte tangentu iz određenog ugla. + +## Srodne Resources + +- [Ugaoni Modovi](../resources/anglemodes): SI jedinične konstante za mjerenje uglova. 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 94bc47b1399a..0b4d86e7dfe9 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 @@ -49,3 +49,7 @@ GTA / SA-MP u većini slučajeva koristi stupnjeve za uglove, na primjer GetPlay - [floattan](floattan): Dobijte tangentu iz određenog ugla. - [floatcos](floatcos): Dobijte kosinus iz određenog ugla. + +## Srodne Resources + +- [Ugaoni Modovi](../resources/anglemodes): SI jedinične konstante za mjerenje uglova. 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 193a4212db78..e7dffd34ccae 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 @@ -41,3 +41,7 @@ GTA / SA-MP u većini slučajeva koristi stupnjeve za uglove, na primjer GetPlay - [floatsin](floatsin): Uzmite sinus iz određenog ugla. - [floatcos](floatcos): Dobijte kosinus iz određenog ugla. + +## Srodne Resources + +- [Ugaoni Modovi](../resources/anglemodes): SI jedinične konstante za mjerenje uglova. 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 ebf375e5fd28..93611a000c9d 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 @@ -2,7 +2,6 @@ title: getproperty sidebar_label: getproperty description: Uzmite određenu imovinu iz memorije, string se vraća kao spakirani string! - tags: [] --- diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/listenport.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/listenport.md deleted file mode 100644 index 3efc246258f4..000000000000 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/listenport.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: listenport -sidebar_label: listenport -description: . -tags: [] ---- diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/max.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/max.md index fc2cc5499f87..ab34fb99eddd 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/max.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/max.md @@ -1,7 +1,7 @@ --- title: max sidebar_label: max -description: . +description: Funkcija korištena za usporedbu vrijednosti. tags: [] --- diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/min.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/min.md index 6e4e7c3bad93..fa54d3aed58f 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/min.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/min.md @@ -1,13 +1,13 @@ --- title: min sidebar_label: min -description: . +description: Funkcija korištena za usporedbu vrijednosti. tags: [] --- ## Deskripcija -Function used to compare the values. +Funkcija korištena za usporedbu vrijednosti. | Ime | Deskripcija | | --- | -------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/sendpacket.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/sendpacket.md deleted file mode 100644 index bffa4603b2fb..000000000000 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/sendpacket.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: sendpacket -sidebar_label: sendpacket -description: . -tags: [] ---- diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/sendstring.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/sendstring.md deleted file mode 100644 index 11ebeb0e16cb..000000000000 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/sendstring.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: sendstring -sidebar_label: sendstring -description: . -tags: [] ---- diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/resources/clicksources.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/resources/clicksources.md index c42b1d4c823f..07579e1f021c 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/resources/clicksources.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/resources/clicksources.md @@ -1,7 +1,6 @@ --- title: Izvori Klikanja sidebar_label: Izvori Klikanja - description: Izvori Klikanja --- diff --git a/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/callbacks/OnActorStreamIn.md b/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/callbacks/OnActorStreamIn.md index 797d78abfc30..b32c7b417b02 100644 --- a/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/callbacks/OnActorStreamIn.md +++ b/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/callbacks/OnActorStreamIn.md @@ -35,3 +35,7 @@ public OnActorStreamIn(actorid, forplayerid) ## Anmerkungen + +## Ähnliche Callbacks + +- [OnActorStreamOut](OnActorStreamOut): Dieses Callback wird ausgeführt, wenn ein Actor nicht länger von einem Spieler gestreamt wird. diff --git a/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/callbacks/OnActorStreamOut.md b/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/callbacks/OnActorStreamOut.md index 46c44d2398f6..08951ff813d3 100644 --- a/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/callbacks/OnActorStreamOut.md +++ b/frontend/i18n/de/docusaurus-plugin-content-docs/current/scripting/callbacks/OnActorStreamOut.md @@ -35,3 +35,7 @@ public OnActorStreamOut(actorid, forplayerid) ## Anmerkungen + +## Ähnliche Callbacks + +- [OnActorStreamIn](OnActorStreamIn): Dieses Callback wird ausgeführt wenn ein Actor von einem Spieler gestreamt wird. 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 72262708aeba..cc65c7b99b47 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 @@ -1,7 +1,7 @@ --- title: AddPlayerClassEx sidebar_label: AddPlayerClassEx -description: Fügt eine Klasse zur Klassen-Auswahl(class-selection) hinzu. Genau wie "AddPlayerClass" nur mit einem team Parameter. +description: Fügt eine Klasse zur Klassen-Auswahl(class-selection) hinzu. tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnActorStreamIn.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnActorStreamIn.md index 5db27a431e8e..76bbb2105c0b 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnActorStreamIn.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnActorStreamIn.md @@ -1,6 +1,6 @@ --- -título: OnActorStreamIn -descripción: Este callback se llama cuando un actor es cargado (se hace visible) por el cliente de un jugador. +title: OnActorStreamIn +description: Este callback se llama cuando un actor es cargado (se hace visible) por el cliente de un jugador. tags: [] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnActorStreamOut.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnActorStreamOut.md index 06bc97e480ce..b1f56a35bae0 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnActorStreamOut.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnActorStreamOut.md @@ -1,6 +1,6 @@ --- -título: OnActorStreamOut -descripción: Este callback se llama cuando un actor se deja de cargar (se hace invisible) por el cliente de un jugador. +title: OnActorStreamOut +description: Este callback se llama cuando un actor se deja de cargar (se hace invisible) por el cliente de un jugador. tags: [] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md index c3d3b42ef5e4..eb516f2b4ac7 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md @@ -1,6 +1,6 @@ --- -título: OnClientCheckResponse -descripción: Este callback se llama cuando una función SendClientCheck es completada. +title: OnClientCheckResponse +description: Este callback se llama cuando una función SendClientCheck es completada. tags: [] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md index f30252b68a13..d4a5bb708e48 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md @@ -1,6 +1,6 @@ --- -título: OnClientMessage -descripción: Este callback se llama cuando el NPC ve un ClientMessage. +title: OnClientMessage +description: Este callback se llama cuando el NPC ve un ClientMessage. tags: [NPC, ClientMessage, SendClientMessageToAll] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md index 703240ee3f90..c928eabde09c 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnDialogResponse.md @@ -1,6 +1,6 @@ --- -título: OnDialogResponse -descripción: Este callback se llama cuando un jugador responde a un cuadro de diálogo mostrado usando ShowPlayerDialog ya sea clickeando un botón, presionando ENTER/ESC o haciendo doble click en un elemento de lista (si el diálogo utiliza el estilo DIALOG_STYLE_LIST). +title: OnDialogResponse +description: Este callback se llama cuando un jugador responde a un cuadro de diálogo mostrado usando ShowPlayerDialog. tags: [] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md index c392e2b23b4e..c8ea426f517d 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md @@ -1,6 +1,6 @@ --- -título: OnEnterExitModShop -descripción: Este callback se llama cuando un jugador entra o sale de un taller de modificación. +title: OnEnterExitModShop +description: Este callback se llama cuando un jugador entra o sale de un taller de modificación. tags: [] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptExit.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptExit.md index 4dc545ba7b24..9a16794bc70a 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptExit.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptExit.md @@ -1,7 +1,6 @@ --- -título: OnFilterScriptExit -descripción: Este callback se llama cuando termina la ejecución de un filterscript. Sólo se llama adentro del mismo filterscript. - +title: OnFilterScriptExit +description: Este callback se llama cuando termina la ejecución de un filterscript. tags: [] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md index 715b9d693d16..a41533bec36f 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnFilterScriptInit.md @@ -1,6 +1,6 @@ --- -título: OnFilterScriptInit -descripción: Este callback se llama cuando un filterscript es inicializado (cargado). +title: OnFilterScriptInit +description: Este callback se llama cuando un filterscript es inicializado (cargado). tags: [] --- 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 6616e1cb2ca8..3fe137aa6990 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 @@ -1,6 +1,6 @@ --- -título: OnGameModeExit -descripción: Este callback es llamado cuando un gamemode termina, ya sea mediante 'gmx', cuando el servidor se apaga, o cuando se usa GameModeExit. +title: OnGameModeExit +description: Este callback es llamado cuando un gamemode termina, ya sea mediante 'gmx', cuando el servidor se apaga, o cuando se usa GameModeExit. tags: [] --- @@ -26,7 +26,9 @@ 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. Este callback NO será llamado si el servidor crashea o el proceso es finalizado por otros medios, como usando el comando de Linux 'kill' o presionando el botón cerrar en la consola de Windows. +- 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. +- Este callback NO será llamado si el servidor crashea o el proceso es finalizado por otros medios, como usando el comando de Linux 'kill'. ::: diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md index 7e3e536f22f9..c763caf044d9 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md @@ -1,6 +1,6 @@ --- -título: OnGameModeInit -descripción: Este callback es desencadenado cuando el gamemode inicia. +title: OnGameModeInit +description: Este callback es desencadenado cuando el gamemode inicia. tags: [] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md index 1d3f5d8a876b..e187346ca885 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnIncomingConnection.md @@ -1,6 +1,6 @@ --- -título: OnIncomingConnection -descripción: Este callback se llama cuando una dirección IP intenta establecer una conexión con el servidor. +title: OnIncomingConnection +description: Este callback se llama cuando una dirección IP intenta establecer una conexión con el servidor. tags: [] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md index f2eea397cc44..37bd4e18061c 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnObjectMoved.md @@ -1,6 +1,6 @@ --- -título: OnObjectMoved -descripción: Este callback se llama cuando un objeto es movido después de usar MoveObject (cuando este termina de moverse). +title: OnObjectMoved +description: Este callback se llama cuando un objeto es movido después de usar MoveObject (cuando este termina de moverse). tags: [] --- 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 931a8810a182..36a09c5185bd 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 @@ -1,6 +1,6 @@ --- -título: OnPlayerClickMap -descripción: OnPlayerClickMap se llama cuando un jugador pone un objetivo/marca en el mapa del menú de pausa (usando click derecho). +title: OnPlayerClickMap +description: OnPlayerClickMap se llama cuando un jugador pone un objetivo/marca en el mapa del menú de pausa (usando click derecho). tags: ["jugador"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayer.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayer.md index 2ff624409d5a..debfe24155f7 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayer.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerClickPlayer.md @@ -1,6 +1,6 @@ --- -título: OnPlayerClickPlayer -descripción: Se llama cuando un jugador hace doble click a un jugador en el scoreboard (menú TAB). +title: OnPlayerClickPlayer +description: Se llama cuando un jugador hace doble click a un jugador en el scoreboard (menú TAB). tags: ["player"] --- 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 45a920435d9d..41d3a7747d08 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 @@ -1,6 +1,6 @@ --- -título: OnPlayerClickPlayerTextDraw -descripción: Este callback se llama cuando un jugador clickea en un player-textdraw. +title: OnPlayerClickPlayerTextDraw +description: Este callback se llama cuando un jugador clickea en un player-textdraw. tags: ["player", "textdraw", "playertextdraw"] --- 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 b0cffae8b78b..41906331efc1 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 @@ -1,6 +1,6 @@ --- -título: OnPlayerClickTextDraw -descripción: Este callback se llama cuando un jugador clickea en un textdraw o cancela el modo de selección con la tecla ESC. +title: OnPlayerClickTextDraw +description: Este callback se llama cuando un jugador clickea en un textdraw o cancela el modo de selección con la tecla ESC. tags: ["player", "textdraw"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md index da60d3ee8af7..d6d859f5d81b 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md @@ -1,6 +1,6 @@ --- -título: OnPlayerCommandText -descripción: Este callback se llama cuando un jugador ingresa un comando dentro de la ventana de chat del cliente. +title: OnPlayerCommandText +description: Este callback se llama cuando un jugador ingresa un comando dentro de la ventana de chat del cliente. tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md index 0fb1a65821b8..5487967f9e21 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md @@ -1,6 +1,6 @@ --- -título: OnPlayerConnect -descripción: Este callback se llama cuando un jugador se conecta al servidor. +title: OnPlayerConnect +description: Este callback se llama cuando un jugador se conecta al servidor. tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md index b1f0d18b5140..c4031126be80 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md @@ -1,6 +1,6 @@ --- -título: OnPlayerDeath -descripción: Este callback se llama cuando un jugador muere, ya sea suicidándose o siendo asesinado por otro jugador. +title: OnPlayerDeath +description: Este callback se llama cuando un jugador muere, ya sea suicidándose o siendo asesinado por otro jugador. tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md index ae22e823b1be..731f8106eaf7 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md @@ -1,6 +1,6 @@ --- -título: OnPlayerDisconnect -descripción: Este callback se llama cuando un jugador se desconecta del servidor. +title: OnPlayerDisconnect +description: Este callback se llama cuando un jugador se desconecta del servidor. tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditAttachedObject.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditAttachedObject.md index 4fa8c493ff72..7f725ac19d0c 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditAttachedObject.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditAttachedObject.md @@ -1,6 +1,6 @@ --- -título: OnPlayerEditAttachedObject -descripción: Este callback se llama cuando un jugador sale del modo edición de objetos adjuntos. +title: OnPlayerEditAttachedObject +description: Este callback se llama cuando un jugador sale del modo edición de objetos adjuntos. tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md index 162b54eb4e14..2f2a56d5a15a 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md @@ -1,6 +1,6 @@ --- -título: OnPlayerEditObject -descripción: Este callback se llama cuando un jugador termina de editar un objeto (EditObject/EditPlayerObject). +title: OnPlayerEditObject +description: Este callback se llama cuando un jugador termina de editar un objeto (EditObject/EditPlayerObject). tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterCheckpoint.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterCheckpoint.md index f27484b04e42..ba185be9f127 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterCheckpoint.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterCheckpoint.md @@ -1,6 +1,6 @@ --- -título: OnPlayerEnterCheckpoint -descripción: Este callback se llama cuando un jugador entra al checkpoint establecido para ese jugador. +title: OnPlayerEnterCheckpoint +description: Este callback se llama cuando un jugador entra al checkpoint establecido para ese jugador. tags: ["player", "checkpoint"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterRaceCheckpoint.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterRaceCheckpoint.md index d315c5894ca4..2ea7f556b86b 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterRaceCheckpoint.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEnterRaceCheckpoint.md @@ -1,6 +1,6 @@ --- -título: OnPlayerEnterRaceCheckpoint -descripción: Este callback se llama cuando un jugador entra en un checkpoint de carrera. +title: OnPlayerEnterRaceCheckpoint +description: Este callback se llama cuando un jugador entra en un checkpoint de carrera. tags: ["player", "checkpoint", "racecheckpoint"] --- 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 b63a8840b926..e0b405e2b3a7 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 @@ -1,6 +1,6 @@ --- -título: OnPlayerEnterVehicle -descripción: Este callback se llama cuando un jugador comienza a entrar a un vehículo, o sea que el jugador aún no estará en el vehículo cuando este callback se llame. +title: OnPlayerEnterVehicle +description: Este callback se llama cuando un jugador comienza a entrar a un vehículo, o sea que el jugador aún no estará en el vehículo cuando este callback se llame. tags: ["player", "vehicle"] --- 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 09c0f369c5ae..48e5bd6a72b1 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 @@ -1,6 +1,6 @@ --- -título: OnPlayerExitVehicle -descripción: Este callback se llama cuando un jugador comienza a salir de un vehículo. +title: OnPlayerExitVehicle +description: Este callback se llama cuando un jugador comienza a salir de un vehículo. tags: ["player", "vehicle"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitedMenu.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitedMenu.md index 60440c4882b4..1cd963e4140f 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitedMenu.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerExitedMenu.md @@ -1,6 +1,6 @@ --- -título: OnPlayerExitedMenu -descripción: Se llama cuando un jugador sale de un menú. +title: OnPlayerExitedMenu +description: Se llama cuando un jugador sale de un menú. tags: ["player", "menu"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerFinishedDownloading.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerFinishedDownloading.md index f039e643e1f4..9cba78de3851 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerFinishedDownloading.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerFinishedDownloading.md @@ -1,6 +1,6 @@ --- -título: OnPlayerFinishedDownloading -descripción: Este callback se llama cuando un jugador finaliza de descargar modelos personalizados. +title: OnPlayerFinishedDownloading +description: Este callback se llama cuando un jugador finaliza de descargar modelos personalizados. tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md index 67dcf11f5779..613017530b01 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md @@ -1,6 +1,6 @@ --- -título: OnPlayerGiveDamage -descripción: Este callback se llama cuando un jugador le hace daño a otro jugador. +title: OnPlayerGiveDamage +description: Este callback se llama cuando un jugador le hace daño a otro jugador. tags: ["player"] --- @@ -58,3 +58,10 @@ public OnPlayerGiveDamage(playerid, damagedid, Float:amount, WEAPON:weaponid, bo Si lo que buscás es prevenir a ciertos jugadores de dañarse entre sí, usá SetPlayerTeam. ::: + +## Callbacks Relacionados + +Los siguientes callbacks pueden ser útiles, ya que están relacionados de alguna forma u otra con OnPlayerGiveDamage: + +- [OnPlayerTakeDamage](OnPlayerTakeDamage): Este callback se llama cuando un jugador sufre daño. +- [OnPlayerWeaponShot](OnPlayerWeaponShot): Este callback se llama cuando un jugador efectúa un disparo de un arma. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md index ad9ab0e9ba5b..442934d040ea 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md @@ -1,6 +1,6 @@ --- -título: OnPlayerGiveDamageActor -descripción: Este callback se llama cuando un jugador le hace daño a un actor. +title: OnPlayerGiveDamageActor +description: Este callback se llama cuando un jugador le hace daño a un actor. tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerInteriorChange.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerInteriorChange.md index 2bff77b8275b..cb3b2e0356f6 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerInteriorChange.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerInteriorChange.md @@ -1,6 +1,6 @@ --- -título: OnPlayerInteriorChange -descripción: Se llama cuando un jugador cambia de interior. +title: OnPlayerInteriorChange +description: Se llama cuando un jugador cambia de interior. tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerKeyStateChange.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerKeyStateChange.md index cce39c81b790..b39b3377808f 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerKeyStateChange.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerKeyStateChange.md @@ -1,6 +1,6 @@ --- -título: OnPlayerKeyStateChange -descripción: Este callback se llama cuando el estado de alguna tecla soportada cambia (presionada/soltada). +title: OnPlayerKeyStateChange +description: Este callback se llama cuando el estado de alguna tecla soportada cambia (presionada/soltada). tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveCheckpoint.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveCheckpoint.md index 95c1f46b46c7..f142488b84ab 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveCheckpoint.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveCheckpoint.md @@ -1,6 +1,6 @@ --- -título: OnPlayerLeaveCheckpoint -descripción: Este callback se llama cuando un jugador sale del checkpoint establecido a él por SetPlayerCheckpoint. +title: OnPlayerLeaveCheckpoint +description: Este callback se llama cuando un jugador sale del checkpoint establecido a él por SetPlayerCheckpoint. tags: ["player", "checkpoint"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveRaceCheckpoint.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveRaceCheckpoint.md index bb3472b716ac..679d9cff8fdb 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveRaceCheckpoint.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveRaceCheckpoint.md @@ -1,6 +1,6 @@ --- -título: OnPlayerLeaveRaceCheckpoint -descripcion: Este callback se llama cuando un jugador sale de un checkpoint de carreras. +title: OnPlayerLeaveRaceCheckpoint +description: Este callback se llama cuando un jugador sale de un checkpoint de carreras. tags: ["player", "checkpoint", "racecheckpoint"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerObjectMoved.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerObjectMoved.md index aba3a2bfeaff..928abb8f8cd8 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerObjectMoved.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerObjectMoved.md @@ -1,6 +1,6 @@ --- -título: OnPlayerObjectMoved -descripción: Este callback se llama cuando un objeto de jugador es movido después de MovePlayerObject (cuando este termina de moverse). +title: OnPlayerObjectMoved +description: Este callback se llama cuando un objeto de jugador es movido después de MovePlayerObject (cuando este termina de moverse). tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md index 705438e12908..e0af56255615 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerPickUpPickup.md @@ -1,6 +1,6 @@ --- -título: OnPlayerPickUpPickup -descripción: Se llama cuando un jugador recoge un pickup creado con CreatePickup. +title: OnPlayerPickUpPickup +description: Se llama cuando un jugador recoge un pickup creado con CreatePickup. tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md index 79c39f65a503..feae14392b7d 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestClass.md @@ -1,6 +1,6 @@ --- -título: OnPlayerRequestClass -descripción: Se llama cuando un jugador cambia de clase en la selección de clase (y cuando la selección de clase aparece por primera vez). +title: OnPlayerRequestClass +description: Se llama cuando un jugador cambia de clase en la selección de clase (y cuando la selección de clase aparece por primera vez). tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md index 688d00ac18fd..abab4db30224 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md @@ -1,6 +1,6 @@ --- -título: OnPlayerRequestDownload -descripción: Este callback se llama cuando un jugador solicita por descargas de modelos personalizados. +title: OnPlayerRequestDownload +description: Este callback se llama cuando un jugador solicita por descargas de modelos personalizados. tags: ["player"] --- 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 77d2b6e40ef4..dbab3aea3c1c 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 @@ -1,6 +1,6 @@ --- -título: OnPlayerRequestSpawn -descripción: Se llama cuando un jugador intenta spawnear vía selección de clase ya sea presionando SHIFT o clickeando el botón 'Spawn'. +title: OnPlayerRequestSpawn +description: Se llama cuando un jugador intenta spawnear vía selección de clase ya sea presionando SHIFT o clickeando el botón 'Spawn'. tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectObject.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectObject.md index cd29ca19d633..627144030036 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectObject.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectObject.md @@ -1,6 +1,6 @@ --- -título: OnPlayerSelectObject -descripción: Este callback se llama cuando un jugador selecciona un objeto después de que SelectObject fue usado. +title: OnPlayerSelectObject +description: Este callback se llama cuando un jugador selecciona un objeto después de que SelectObject fue usado. tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectedMenuRow.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectedMenuRow.md index abaa10a66f71..b5c1df4828dd 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectedMenuRow.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSelectedMenuRow.md @@ -1,6 +1,6 @@ --- -título: OnPlayerSelectedMenuRow -descripción: Este callback se llama cuando un jugador selecciona un item de un menú (ShowMenuForPlayer). +title: OnPlayerSelectedMenuRow +description: Este callback se llama cuando un jugador selecciona un item de un menú (ShowMenuForPlayer). tags: ["player", "menu"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSpawn.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSpawn.md index c99c52f0ffdb..13b9605d7a12 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSpawn.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerSpawn.md @@ -1,6 +1,6 @@ --- -título: OnPlayerSpawn -descripción: Este callback se llama cuando un jugador spawnea. +title: OnPlayerSpawn +description: Este callback se llama cuando un jugador spawnea. tags: ["player"] --- 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 11a69a191bf3..512b0c8be544 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 @@ -1,6 +1,6 @@ --- -título: OnPlayerStateChange -descripción: Este callback se llama cuando un jugador cambia de estado. +title: OnPlayerStateChange +description: Este callback se llama cuando un jugador cambia de estado. tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamIn.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamIn.md index 78a5c7df687e..a6e6b3a42bcb 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamIn.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamIn.md @@ -1,6 +1,6 @@ --- -título: OnPlayerStreamIn -descripción: Este callback se llama cuando un jugador es cargado (se hace visible) por el cliente de otros jugadores. +title: OnPlayerStreamIn +description: Este callback se llama cuando un jugador es cargado (se hace visible) por el cliente de otros jugadores. tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamOut.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamOut.md index c86bb4a3bd1f..41db7fdc1b2d 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamOut.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerStreamOut.md @@ -1,6 +1,6 @@ --- -título: OnPlayerStreamOut -descripción: Este callback se llama cuando un jugador se deja de cargar (ya no es visible) por el cliente de algún otro jugador. +title: OnPlayerStreamOut +description: Este callback se llama cuando un jugador se deja de cargar (ya no es visible) por el cliente de algún otro jugador. tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md index 6fed473ccb93..b30d51886879 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md @@ -1,6 +1,6 @@ --- -título: OnPlayerTakeDamage -descripción: Este callback se llama cuando un jugador sufre daño. +title: OnPlayerTakeDamage +description: Este callback se llama cuando un jugador sufre daño. tags: ["player"] --- @@ -74,3 +74,9 @@ El 'weaponid' va a retornar 37 (lanzallamas) de cualquier origen de fuego (ej. m GetPlayerHealth y GetPlayerArmour retornará los valores antiguos antes de este callback. Siempre comprobar si 'issuerid' es válido antes de usarlo en un array. ::: + +## Callbacks Relacionados + +Los siguientes callbacks pueden ser útiles, ya que están relacionados de alguna forma u otra con OnPlayerTakeDamage: + +- [OnPlayerWeaponShot](OnPlayerWeaponShot): Este callback se llama cuando un jugador efectúa un disparo de un arma. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerText.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerText.md index 477a24dcd397..357e0afe881b 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerText.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerText.md @@ -1,6 +1,6 @@ --- -título: OnPlayerText -descripción: Se llama cuando un jugador envía un mensaje en el chat. +title: OnPlayerText +description: Se llama cuando un jugador envía un mensaje en el chat. tags: ["player"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md index 3aa8ef2eb88b..97aa5681ad30 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md @@ -1,6 +1,6 @@ --- -título: OnPlayerUpdate -descripción: Este callback se llama cada vez que un cliente/jugador actualiza su estado con el servidor. +title: OnPlayerUpdate +description: Este callback se llama cada vez que un cliente/jugador actualiza su estado con el servidor. tags: ["player"] --- @@ -82,7 +82,8 @@ public OnPlayerUpdate(playerid) :::warning -Este callback se llama, en promedio, 30 veces por segundo, por cada jugador; sólo usalo cuando sepas para que sirve (o más importante, para lo que no está pensado). La frecuencia con la que se llama este callback varía por cada jugador, dependiendo qué está haciendo el jugador. Conduciendo o disparando desencadenará muchas mas actualizaciones que estando quieto. +- Este callback se llama, en promedio, 30 veces por segundo, por cada jugador; sólo usalo cuando sepas para que sirve (o más importante, para lo que no está pensado). +- La frecuencia con la que se llama este callback varía por cada jugador, dependiendo qué está haciendo el jugador. Conduciendo o disparando desencadenará muchas mas actualizaciones que estando quieto. ::: 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 29f0bd40538e..9c1bdee7840f 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 @@ -1,6 +1,6 @@ --- -título: OnPlayerWeaponShot -descripción: Este callback se llama cuando un jugador efectúa un disparo de un arma. +title: OnPlayerWeaponShot +description: Este callback se llama cuando un jugador efectúa un disparo de un arma. tags: ["player"] --- 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 0c84fdd7fc08..e949738b2597 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 @@ -1,6 +1,6 @@ --- -título: OnRconCommand -descripción: Este callback se llama cuando un comando es enviado mediante la consola del servidor, RCON remoto, o vía el juego usando "/rcon command". +title: OnRconCommand +description: Este callback se llama cuando un comando es enviado mediante la consola del servidor, RCON remoto, o vía el juego usando "/rcon command". tags: [] --- @@ -49,7 +49,10 @@ public OnRconCommand(cmd[]) :::note -"/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. +- "/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. ::: 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 72804ad5680a..5b34bd8ee172 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 @@ -1,6 +1,6 @@ --- -título: OnRconLoginAttempt -descripción: Este callback se llama cuando alguien intenta identificarse como RCON adentro del juego, sin importar si tiene éxito o no. +title: OnRconLoginAttempt +description: Este callback se llama cuando alguien intenta identificarse como RCON adentro del juego, sin importar si tiene éxito o no. tags: [] --- @@ -45,7 +45,8 @@ 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 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. ::: diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRecordingPlaybackEnd.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRecordingPlaybackEnd.md index cceb40cc0a73..8a5313d3fd9e 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRecordingPlaybackEnd.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRecordingPlaybackEnd.md @@ -1,6 +1,6 @@ --- -título: OnRecordingPlaybackEnd -descripción: Este callback se llama cuando un archivo grabado siendo reproduciendo con StartRecordingPlayback llega a su fin. +title: OnRecordingPlaybackEnd +description: Este callback se llama cuando un archivo grabado siendo reproduciendo con StartRecordingPlayback llega a su fin. tags: [] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnTrailerUpdate.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnTrailerUpdate.md index bf72a541f508..b7b94679b2cd 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnTrailerUpdate.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnTrailerUpdate.md @@ -1,6 +1,6 @@ --- -título: OnTrailerUpdate -descripción: Este callback se llama cuando un jugador envía una actualización de trailer. +title: OnTrailerUpdate +description: Este callback se llama cuando un jugador envía una actualización de trailer. tags: [] --- 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 1f2f034878bb..7311b17b09f0 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 @@ -1,6 +1,6 @@ --- -título: OnUnoccupiedVehicleUpdate -descripción: Este callback se llama cuando el cliente de un jugador actualiza/sincroniza la posición de un vehículo que él no está conduciendo. +title: OnUnoccupiedVehicleUpdate +description: Este callback se llama cuando el cliente de un jugador actualiza/sincroniza la posición de un vehículo que él no está conduciendo. tags: ["vehicle"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDamageStatusUpdate.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDamageStatusUpdate.md index d56dae39a24a..68bdf4c2aebb 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDamageStatusUpdate.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDamageStatusUpdate.md @@ -1,6 +1,6 @@ --- -título: OnVehicleDamageStatusUpdate -descripción: Este callback se llama cuando un elemento de vehículo como las puertas, llantas, paneles, o luces cambiar su estado de daño. +title: OnVehicleDamageStatusUpdate +description: Este callback se llama cuando un elemento de vehículo como las puertas, llantas, paneles, o luces cambiar su estado de daño. tags: ["vehicle"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md index 867dc39ad4a0..f99443b255f9 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md @@ -1,6 +1,6 @@ --- -título: OnVehicleDeath -descripción: Este callback se llama cuando un vehículo es destruido - ya sea explotando o siendo sumergido en el agua. +title: OnVehicleDeath +description: Este callback se llama cuando un vehículo es destruido - ya sea explotando o siendo sumergido en el agua. tags: ["vehicle"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md index de00b1e4eb6a..82f7e64b5e91 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleMod.md @@ -1,6 +1,6 @@ --- -título: OnVehicleMod -descripción: Este callback se llama cuando un vehículo es tuneado. +title: OnVehicleMod +description: Este callback se llama cuando un vehículo es tuneado. tags: ["vehicle"] --- 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 689a54b9c6d1..c57e6538dbaf 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 @@ -1,6 +1,6 @@ --- -título: OnVehiclePaintjob -descripción: Se llama cuando un jugador obtiene una vista previa de una capa de pintura adentro de un taller de modificación. +title: OnVehiclePaintjob +description: Se llama cuando un jugador obtiene una vista previa de una capa de pintura adentro de un taller de modificación. tags: ["vehicle"] --- 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 98ac62aa5505..dfee579b8a5b 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 @@ -1,6 +1,6 @@ --- -título: OnVehicleRespray -descripción: Este callback se llama cuando un jugador sale de un taller de modificación, sin importar si los colores no fueron cambiados. +title: OnVehicleRespray +description: Este callback se llama cuando un jugador sale de un taller de modificación, sin importar si los colores no fueron cambiados. tags: ["vehicle"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSirenStateChange.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSirenStateChange.md index 21dc4d47f621..f101c219dc81 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSirenStateChange.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleSirenStateChange.md @@ -1,6 +1,6 @@ --- -título: OnVehicleSirenStateChange -descripción: Este callback se llama cuando la sirena de un vehículo es alternada. +title: OnVehicleSirenStateChange +description: Este callback se llama cuando la sirena de un vehículo es alternada. tags: ["vehicle"] --- 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 15114541187d..45a15847bf72 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 @@ -1,6 +1,6 @@ --- -título: OnVehicleSpawn -descripción: Este callback se llama cuando un vehículo reaparece. +title: OnVehicleSpawn +description: Este callback se llama cuando un vehículo reaparece. tags: ["vehicle"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md index 5ecd6eac37cf..398568a75b98 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md @@ -1,6 +1,6 @@ --- -título: OnVehicleStreamIn -descripción: Se llama cuando un vehículo es cargado (se hace visible) en el cliente de un jugador. +title: OnVehicleStreamIn +description: Se llama cuando un vehículo es cargado (se hace visible) en el cliente de un jugador. tags: ["vehicle"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamOut.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamOut.md index 7ca29f3a50f5..d7f0035ea4c7 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamOut.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamOut.md @@ -1,6 +1,6 @@ --- -título: OnVehicleStreamOut -descripción: Este callback se llama cuando un vehículo es dejado de cargar (deja de ser visible) por el cliente de un jugador. +title: OnVehicleStreamOut +description: Este callback se llama cuando un vehículo es dejado de cargar (deja de ser visible) por el cliente de un jugador. tags: ["vehicle"] --- diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md index 01be939003e1..008a7dff277c 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md @@ -36,13 +36,13 @@ El nuevo sistema introducido en SA-MP 0.3a R5, tiene varias ventajas importantes Las funciones para establecer y obtener las variables de jugador son: -- [SetPVarInt](../scripting/functions/SetPVarInt) Establece un valor de tipo Int para una variable de jugador. -- [GetPVarInt](../scripting/functions/GetPVarInt) Obtiene un valor de tipo Int de una variable de jugador. -- [SetPVarString](../scripting/functions/SetPVarString) Establece un valor de tipo String para una variable de jugador. -- [GetPVarString](../scripting/functions/GetPVarString) Obtiene un valor de tipo String de una variable de jugador. -- [SetPVarFloat](../scripting/functions/SetPVarFloat) Establecer un valor de tipo Float para una variable de jugador.. -- [GetPVarFloat](../scripting/functions/GetPVarFloat) Obtiene una variable de tipo float de una variable de jugador. -- [DeletePVar](../scripting/functions/DeletePVar) Elimina una variable de jugador. +- [SetPVarInt](../scripting/functions/SetPVarInt): Establece un valor de tipo Int para una variable de jugador. +- [GetPVarInt](../scripting/functions/GetPVarInt): Obtiene un valor de tipo Int de una variable de jugador. +- [SetPVarString](../scripting/functions/SetPVarString): Establece un valor de tipo String para una variable de jugador. +- [GetPVarString](../scripting/functions/GetPVarString): Obtiene un valor de tipo String de una variable de jugador. +- [SetPVarFloat](../scripting/functions/SetPVarFloat): Establecer un valor de tipo Float para una variable de jugador.. +- [GetPVarFloat](../scripting/functions/GetPVarFloat): Obtiene una variable de tipo float de una variable de jugador. +- [DeletePVar](../scripting/functions/DeletePVar): Elimina una variable de jugador. ```c #define PLAYER_VARTYPE_NONE (0) 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 a5e06534f961..f227f6310641 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 @@ -19,6 +19,10 @@ tags: [] | lisitem | شناسه موردی که بازیکن انتخاب کرده (از 0 شروع میشود) ) (فقط در صورتی که سبک دیالوگ لیست باشد، در غیر این صورت این مورد -1 خواهد بود). | | inputtext[] | متنی که بازیکن درون قسمت ورودی وارد کرده یا متن موردی که بازیکن انتخاب کرده است | +## مقادیر برگشتی + +این کالبک همیشه اول در filterscript ها فراخوانده می‌شود. + ## مثال ها
diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md index 1451931b9392..0cfcaacb6287 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md @@ -43,9 +43,7 @@ public OnEnterExitModShop(playerid, enterexit, interiorid) :::warning -باگ های شناخته شده: - -- بازیکنان هنگام ورود به همان فروشگاه تعمیرات با یکدیگر برخورد می‌کنند. +باگ های شناخته شده: بازیکنان هنگام ورود به همان فروشگاه تعمیرات با یکدیگر برخورد می‌کنند. ::: 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 97713f921b5b..c656f33250fa 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 @@ -11,6 +11,12 @@ tags: [] این کالبک با پایان یافتن gamemode یا از طریق 'gmx'، خاموش شدن سرور یا خارج شدن gamemode فرا خوانده می شود. +## مقادیر برگشتی + +این کالبک مقادیر برگشتی را پردازش نمی‌کند. + +همیشه اول در gamemode فراخوانده می‌شود. + ## مثال ها
@@ -29,13 +35,20 @@ public OnGameModeExit() :::tip -این تابع همچنین میتواند در یک فیلتر اسکریپت مورد استفاده قرار گیرد تا تشخیص دهد که حالت gamemode با دستورات -مانند changemode یا gmx تغییر می کند، زیرا تغییر gamemode باعث بارگیری مجدد فیلتر اسکریپت نمی شود. -هنگام استفاده از OnGameModeExit همراه با دستور 'rcon gmx' به خاطر داشته باشید، احتمال بروز مشکلات برای کلاینت -وجود دارد. مثالی از این موارد فراخوانی های بیش از حد RemoveBuildingForPlayer هنگام OnGameModeExit است که منجر به به crash(خرابی) بیشتر کلاینت می شود. در صورت crash سرور یا از بین رفتن روند کار با روش های دیگر مانند استفاده از دستور Linux kill یا فشار دادن دکمه بستن روی کنسول Windows، این کالبک مجدد فرا خوانده نمی شود. +- این تابع همچنین میتواند در یک فیلتر اسکریپت مورد استفاده قرار گیرد تا تشخیص دهد که حالت gamemode با دستورات مانند changemode یا gmx تغییر می کند، زیرا تغییر gamemode باعث بارگیری مجدد فیلتر اسکریپت نمی شود. +- هنگام استفاده از OnGameModeExit همراه با دستور 'rcon gmx' به خاطر داشته باشید، احتمال بروز مشکلات برای کلاینت وجود دارد. مثالی از این موارد فراخوانی های بیش از حد RemoveBuildingForPlayer هنگام OnGameModeExit است که منجر به به crash(خرابی) بیشتر کلاینت می شود. +- در صورت crash سرور یا از بین رفتن روند کار با روش های دیگر مانند استفاده از دستور Linux kill، این کالبک مجدد فرا خوانده نمی شود. ::: +## کالبک‌های مرتبط + +کالبک‌های زیر ممکن است مفید باشند، زیرا به نوعی با این کالبک مرتبط هستند. + +- [OnGameModeInit](OnGameModeInit): این کالبک زمانی فرا خوانده می‌شود که یک gamemode شروع شود. +- [OnFilterScriptInit](OnFilterScriptInit): این کالبک زمانی فرا خوانده می‌شود که یک فیلتر اسکریپت لود شود. +- [OnFilterScriptExit](OnFilterScriptExit): این کالبک زمانی فرا خوانده می‌شود که یک فیلتر اسکریپت unload شود. + ## تابع های مرتبط - [GameModeExit](../functions/GameModeExit): خارج شدن از gamemode جاری. 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 0f95366a283d..99b8acefd198 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 @@ -11,6 +11,12 @@ tags: [] این کالبک با استارت شدن gamemode فعال می شود. +## مقادیر برگشتی + +این کالبک مقادیر برگشتی را پردازش نمی‌کند. + +همیشه اول در gamemode فراخوانده می‌شود. + ## مثال ها diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md index e3139a4f997a..7788dc959ecd 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md @@ -23,3 +23,11 @@ public OnNPCSpawn() return 1; } ``` + +
+ +## کالبک‌های مرتبط + +- [OnPlayerSpawn](OnPlayerSpawn): زمانی که بازیکن spawn می‌شود فراخوانی می‌شود. + +
diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md index 77c18cf77166..195e11299414 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md @@ -51,6 +51,13 @@ public OnPlayerCommandText(playerid, cmdtext[]) ::: +## کالبک‌های مرتبط + +کالبک‌های زیر ممکن است مفید باشند، زیرا به نوعی با این کالبک مرتبط هستند. + +- [OnPlayerText](OnPlayerText): این کالبک زمانی فراخوانده می‌شود که بازیکن پیام چت ارسال می‌کند. +- [OnRconCommand](OnRconCommand): این کالبک زمانی فراخوانده می‌شود که دستوری از طریق کنسول سرور، RCON، یا از طریق دستور "/rcon command" در بازی ارسال شود. + ## تابع های مرتبط - [SendRconCommand](../functions/SendRconCommand): یک دستور RCON را از طریق اسکریپت ارسال میکند. diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md index eaf84374cec7..521a4b5a9f12 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerConnect.md @@ -2,7 +2,6 @@ title: OnPlayerConnect sidebar_label: OnPlayerConnect description: این کالبک وقتی فرا خوانده میشود که بازیکن به سرور متصل می شود. - tags: ["player"] --- 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 b0aa9ec889f1..4e63d33872ae 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,8 +34,7 @@ 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/OnPlayerUpdate.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md index 051a2a8ace7b..6b94f1a03aa0 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md @@ -91,6 +91,7 @@ public OnPlayerUpdate(playerid) :::warning -این کالبک به طور متوسط 30 بار در ثانیه برای هر بازیکن فراخوانده می‌شود؛ فقط زمانی از آن استفاده کنید که بدانید برای چه منظوری است (یا مهم‌تر اینکه برای چه نیست). فرکانس فراخوانی این کالبک برای هر بازیکن بسته به کاری که بازیکن انجام می‌دهد متفاوت است. رانندگی یا تیراندازی به‌روزرسانی‌های بیشتری نسبت به بی‌تحرکی ایجاد خواهد کرد. +- این کالبک به طور متوسط 30 بار در ثانیه برای هر بازیکن فراخوانده می‌شود؛ فقط زمانی از آن استفاده کنید که بدانید برای چه منظوری است (یا مهم‌تر اینکه برای چه نیست). +- فرکانس فراخوانی این کالبک برای هر بازیکن بسته به کاری که بازیکن انجام می‌دهد متفاوت است. رانندگی یا تیراندازی به‌روزرسانی‌های بیشتری نسبت به بی‌تحرکی ایجاد خواهد کرد. ::: 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 e95ecd2acfa6..339ef05c7fc2 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 @@ -44,8 +44,10 @@ public OnRconCommand(cmd[]) :::note -- پیشوند /rcon در پارامتر cmd هنگامی که بازیکن دستور تایپ می‌کند شامل نمی‌شود. اگر از تابع print اینجا استفاده کنید، پیامی هم به بازیکنی که دستور را در بازی تایپ کرده و هم به لاگ سرور ارسال خواهد شد. -- این کالبک اگر بازیکن به عنوان admin RCON وارد نشده باشد فراخوانده نمی‌شود. زمانی که بازیکن از /rcon login برای ورود استفاده می‌کند، این کالبک فراخوانده نخواهد شد، در عوض، OnRconLoginAttempt فراخوانده می‌شود. پس از ورود به عنوان admin RCON، هر دستور بعدی این کالبک را فعال خواهد کرد. +- پیشوند /rcon در پارامتر cmd هنگامی که بازیکن دستور تایپ می‌کند شامل نمی‌شود. +- اگر از تابع print اینجا استفاده کنید، پیامی هم به بازیکنی که دستور را در بازی تایپ کرده و هم به لاگ سرور ارسال خواهد شد. +- این کالبک اگر بازیکن به عنوان admin RCON وارد نشده باشد فراخوانده نمی‌شود. +- زمانی که بازیکن از /rcon login برای ورود استفاده می‌کند، این کالبک فراخوانده نخواهد شد، در عوض، OnRconLoginAttempt فراخوانده می‌شود. پس از ورود به عنوان admin RCON، هر دستور بعدی این کالبک را فعال خواهد کرد. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md index 89e35ae71c70..1d523fdede26 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md @@ -55,7 +55,8 @@ public OnRconLoginAttempt(ip[], password[], success) :::note -این کالبک فقط زمانی فراخوانده می‌شود که /rcon login در بازی استفاده شود. این کالبک فقط زمانی فراخوانده می‌شود که بازیکن هنوز وارد نشده باشد. وقتی بازیکن وارد شود، در عوض [OnRconCommand](OnRconCommand) فراخوانده می‌شود. +- این کالبک فقط زمانی فراخوانده می‌شود که /rcon login در بازی استفاده شود. +- این کالبک فقط زمانی فراخوانده می‌شود که بازیکن هنوز وارد نشده باشد. وقتی بازیکن وارد شود، در عوض [OnRconCommand](OnRconCommand) فراخوانده می‌شود. ::: 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 4e5cfbbb2368..526f214201f9 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 @@ -44,9 +44,7 @@ public OnVehicleRespray(playerid, vehicleid, color1, color2) :::warning -باگ‌های شناخته شده: - -- پیش‌نمایش کامپوننت داخل mod shop ممکن است این کالبک را فراخوانی کند. +باگ‌های شناخته شده: پیش‌نمایش کامپوننت داخل mod shop ممکن است این کالبک را فراخوانی کند. ::: 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 02a88a29ce96..79a205feec79 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 @@ -39,9 +39,8 @@ public OnGameModeInit() :::note -ابتدا باید **useartwork** یا **artwork.enable** در تنظیمات سرور فعال شود تا این کار کند. - -وقتی `virtualworld` تنظیم شود، مدل‌ها یک بار دانلود خواهند شد که بازیکن وارد دنیای خاص شود. +- ابتدا باید **useartwork** یا **artwork.enable** در تنظیمات سرور فعال شود تا این کار کند. +- وقتی `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 502263592cf1..75ed9d2ec858 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 @@ -41,9 +41,8 @@ public OnGameModeInit() :::note -ابتدا باید **useartwork** یا **artwork.enable** در تنظیمات سرور فعال شود تا این کار کند. - -وقتی virtualworld تنظیم شود، مدل‌ها یک بار دانلود خواهند شد که بازیکن وارد دنیای خاص شود. +- ابتدا باید **useartwork** یا **artwork.enable** در تنظیمات سرور فعال شود تا این کار کند. +- وقتی 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 68d5b61b52c8..aede85cfc588 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 @@ -52,6 +52,10 @@ public OnGameModeInit() - [CreatePickup](CreatePickup): pickup ایجاد کنید. - [DestroyPickup](DestroyPickup): pickup را نابود کنید. +## کالبک‌های مرتبط + +- [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup): زمانی فراخوانده می‌شود که بازیکن یک pickup بردارد. + ## منابع مرتبط - [Pickup IDs](../resources/pickupids) diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md index b0b37af844ea..48580657c9a0 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md @@ -49,8 +49,7 @@ ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.1, true, true, true, true, 1, SY :::note -- پارامتر اختیاری 'forceSync' که به صورت پیش‌فرض 0 (SYNC_NONE) است، در اکثر موارد لازم نیست چون بازیکنان خود انیمیشن‌ها را همگام‌سازی می‌کنند. -- پارامتر 'forcesync' می‌تواند همه بازیکنانی که می‌توانند 'playerid' را ببینند را مجبور کند که انیمیشن را پخش کنند، صرف نظر از اینکه آیا بازیکن آن انیمیشن را اجرا می‌کند یا نه. این در شرایطی مفید است که بازیکن نمی‌تواند خود انیمیشن را همگام‌سازی کند. مثلاً ممکن است متوقف شده باشد. +پارامتر اختیاری 'forceSync' که به صورت پیش‌فرض 0 (SYNC_NONE) است، در اکثر موارد لازم نیست چون بازیکنان خود انیمیشن‌ها را همگام‌سازی می‌کنند. پارامتر 'forcesync' می‌تواند همه بازیکنانی که می‌توانند 'playerid' را ببینند را مجبور کند که انیمیشن را پخش کنند، صرف نظر از اینکه آیا بازیکن آن انیمیشن را اجرا می‌کند یا نه. این در شرایطی مفید است که بازیکن نمی‌تواند خود انیمیشن را همگام‌سازی کند. مثلاً ممکن است متوقف شده باشد. ::: 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 32041cd719f4..955638c3aa17 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 @@ -20,6 +20,10 @@ tags: ["object"] | Float:rotationZ | چرخش Z شیء. | | Float:drawDistance | (اختیاری) فاصله‌ای که San Andreas اشیاء را در آن رندر می‌کند. 0.0 باعث می‌شود اشیاء در فاصله پیش‌فرض خود رندر شوند. | +## مقادیر برگشتی + +ID شیئی که ایجاد شد، یا INVALID_OBJECT_ID اگر به حداکثر اشیاء (MAX_OBJECTS) رسیده باشد. + ## مثال‌ها ```c 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 c89b7606c858..9bd5fc867dc7 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 @@ -58,9 +58,7 @@ pickup_Armour = 0; // متغیر پیکاپ باید ریست شود تا از :::warning -باگ‌های شناخته شده: - -- پیکاپ‌هایی که X یا Y آن‌ها کمتر از 4096.0- یا بیشتر از 4096.0 باشد، نمایش داده نمی‌شوند و OnPlayerPickUpPickup را هم فعال نمی‌کنند. +باگ‌های شناخته شده: پیکاپ‌هایی که X یا Y آن‌ها کمتر از 4096.0- یا بیشتر از 4096.0 باشد، نمایش داده نمی‌شوند و OnPlayerPickUpPickup را هم فعال نمی‌کنند. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md index 6298089447af..b17844ad0a9e 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md @@ -47,6 +47,12 @@ Player-textdraw ها هنگام قطع اتصال بازیکن خودکار حذ ::: +:::tip + +توصیه می‌شود هنگام ایجاد textdraw ها از اعداد کامل به جای موقعیت‌های اعشاری استفاده کنید تا طراحی سازگار با رزولوشن اطمینان حاصل شود. + +::: + :::warning کدهای نگاشت کلیدهای صفحه کلید (مثل `~k~~VEHICLE_ENTER_EXIT~`) بعد از کاراکتر 255 کار نمی‌کنند. 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 6e2016634cd2..ef89b32d70cc 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 @@ -9,6 +9,10 @@ tags: ["interior"] همه ورودی‌ها و خروجی‌های داخلی در بازی را غیرفعال می‌کند (پیکان‌های زرد کنار درها). +## مقادیر برگشتی + +این تابع همیشه **true** برمی‌گردونه. + ## مثال‌ها ```c diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md index 3b58cc17c39a..ffc8ffdff41b 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md @@ -56,8 +56,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- این تابع ردیف منوی مشخص شده را برای همه بازیکنان غیرفعال می‌کند. -- هیچ تابعی برای غیرفعال کردن ردیف منو برای بازیکن خاص وجود ندارد. باید دو منو ایجاد کنید - یکی با ردیف غیرفعال، و یکی بدون آن. یا یکی برای هر بازیکن. +این تابع ردیف منوی مشخص شده را برای همه بازیکنان غیرفعال می‌کند. هیچ تابعی برای غیرفعال کردن ردیف منو برای بازیکن خاص وجود ندارد. باید دو منو ایجاد کنید - یکی با ردیف غیرفعال، و یکی بدون آن. یا یکی برای هر بازیکن. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DisableNameTagLOS.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DisableNameTagLOS.md index c94c0348d717..c38eec1878f2 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DisableNameTagLOS.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/DisableNameTagLOS.md @@ -9,6 +9,10 @@ tags: [] بررسی خط دید برچسب نام را غیرفعال می‌کند تا بازیکنان بتوانند برچسب نام‌ها را از میان آبجکت‌ها ببینند. +## مقادیر برگشتی + +این تابع هیچ مقدار خاصی برنمی‌گردونه. + ## مثال‌ها ```c diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md index 8af43be5fefe..de964342acba 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md @@ -38,8 +38,7 @@ public OnGameModeInit() :::note -- ترکیدن لاستیک به طور پیش‌فرض فعال است. -- اگر می‌خواهید ترکیدن لاستیک را غیرفعال کنید، باید آن را به صورت دستی با استفاده از [OnVehicleDamageStatusUpdate](../callbacks/OnVehicleDamageStatusUpdate) اسکریپت کنید. +ترکیدن لاستیک به طور پیش‌فرض فعال است. اگر می‌خواهید ترکیدن لاستیک را غیرفعال کنید، باید آن را به صورت دستی با استفاده از [OnVehicleDamageStatusUpdate](../callbacks/OnVehicleDamageStatusUpdate) اسکریپت کنید. ::: 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 88ccb1fcafaf..5e6603485cb0 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 @@ -9,6 +9,10 @@ tags: ["vehicle"] آتش دوستانه را برای خودروهای تیمی فعال می‌کند. بازیکنان قادر به آسیب زدن به خودروهای هم‌تیمی‌هایشان نخواهند بود (باید از SetPlayerTeam استفاده شود!). +## مقادیر برگشتی + +این تابع هیچ مقدار خاصی برنمی‌گردونه. + ## مثال‌ها ```c diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md index 773cb25122a5..aca5c83df770 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md @@ -9,6 +9,10 @@ tags: [] gamemode فعلی رو تموم میکنه. +## مقادیر برگشتی + +این تابع هیچ مقدار خاصی برنمی‌گردونه. + ## مثال‌ها ```c @@ -21,3 +25,7 @@ if (OneTeamHasWon) ## توابع مرتبط - [SetModeRestartTime](SetModeRestartTime): تنظیم تاخیر بین لود کردن اسکریپت‌های اصلی، بر حسب ثانیه. + +## کالبک‌های مرتبط + +- [OnGameModeExit](../callbacks/OnGameModeExit): این کالبک زمانی فرا خوانده می‌شود که یک gamemode تمام شود. diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md index a905d21fdae9..02e1907aeb3c 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md @@ -27,8 +27,7 @@ SendClientMessage(playerid, 0xFFFFFFFF, string); :::warning -- این تابع نمی‌تونه به جای MAX_PLAYERS استفاده بشه. نمی‌تونه در زمان compile استفاده بشه (مثل برای اندازه آرایه‌ها). -- `MAX_PLAYERS` همیشه باید دوباره تعریف بشه روی همون مقداری که 'max_players' میشه، یا بالاتر. +این تابع نمی‌تونه به جای MAX_PLAYERS استفاده بشه. نمی‌تونه در زمان compile استفاده بشه (مثل برای اندازه آرایه‌ها). `MAX_PLAYERS` همیشه باید دوباره تعریف بشه روی همون مقداری که 'max_players' میشه، یا بالاتر. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectType.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectType.md index c7b39d0b7580..12d0f4a3da5d 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectType.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectType.md @@ -1,7 +1,7 @@ --- title: GetObjectType sidebar_label: GetObjectType -description: نوع یک آبجکت رو می‌گیره. (global یا player) +description: نوع یک آبجکت رو می‌گیره (global یا player). tags: ["object"] --- 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 32f78cbc5344..b7fb7c2e8fc8 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 @@ -56,12 +56,15 @@ public OnPlayerUpdate(playerid) :::warning -فقط FUNCTION کلیدها قابل تشخیص است؛ نه کلیدهای واقعی. برای مثال، امکان تشخیص فشردن SPACE وجود ندارد، اما می‌توانید SPRINT را تشخیص دهید (که می‌تواند به هر کلیدی mapped باشد، اما به طور پیش‌فرض space است). - -از آپدیت 0.3.7، کلیدهای "A" و "D" در وسیله نقلیه تشخیص داده نمی‌شوند. اما کلیدهای "W" و "S" با پارامتر "keys" قابل تشخیص هستند. +- فقط FUNCTION کلیدها قابل تشخیص است؛ نه کلیدهای واقعی. برای مثال، امکان تشخیص فشردن SPACE وجود ندارد، اما می‌توانید SPRINT را تشخیص دهید (که می‌تواند به هر کلیدی mapped باشد، اما به طور پیش‌فرض space است). +- از آپدیت 0.3.7، کلیدهای "A" و "D" در وسیله نقلیه تشخیص داده نمی‌شوند. اما کلیدهای "W" و "S" با پارامتر "keys" قابل تشخیص هستند. ::: +## کالبک‌های مرتبط + +- [OnPlayerKeyStateChange](../callbacks/OnPlayerKeyStateChange): این کالبک زمانی فراخوانده می‌شود که وضعیت هر کلید پشتیبانی شده تغییر کند (فشرده/رها شده). + ## منابع مرتبط - [Keys](../resources/keys) 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 ce008a572fd7..c1a1a4c35909 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 @@ -41,7 +41,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -اسکین جدید را بعد از فراخوانی [SetSpawnInfo](SetSpawnInfo) برمی‌گرداند اما قبل از اینکه بازیکن واقعاً ریسپان شود تا اسکین جدید را دریافت کند. اگر بازیکن با تابع [SpawnPlayer](SpawnPlayer) ریسپان شده باشد، اسکین قدیمی برمی‌گرداند. +- اسکین جدید را بعد از فراخوانی [SetSpawnInfo](SetSpawnInfo) برمی‌گرداند اما قبل از اینکه بازیکن واقعاً ریسپان شود تا اسکین جدید را دریافت کند. +- اگر بازیکن با تابع [SpawnPlayer](SpawnPlayer) ریسپان شده باشد، اسکین قدیمی برمی‌گرداند. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md index 02876257de72..45d95278cbd4 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md @@ -38,7 +38,8 @@ public OnPlayerUpdate(playerid) :::warning -برای joypads/controllerها و بعد از فاصله خاصی کار نمی‌کند. برای تفنگ تک‌تیرانداز کار نمی‌کند، چون به چیزی lock نمی‌شود و به همین دلیل نمی‌تواند و نخواهد بازیکنی را برگرداند. +- برای joypads/controllerها و بعد از فاصله خاصی کار نمی‌کند. +- برای تفنگ تک‌تیرانداز کار نمی‌کند، چون به چیزی lock نمی‌شود و به همین دلیل نمی‌تواند و نخواهد بازیکنی را برگرداند. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md index 427983c1125c..f436eb68e571 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md @@ -35,7 +35,8 @@ public OnPlayerUpdate(playerid) :::warning -برای joypads/controllerها و بعد از فاصله خاصی کار نمی‌کند. برای تفنگ تک‌تیرانداز کار نمی‌کند، چون به چیزی lock نمی‌شود و به همین دلیل نمی‌تواند و نخواهد بازیکنی را برگرداند. +- برای joypads/controllerها و بعد از فاصله خاصی کار نمی‌کند. +- برای تفنگ تک‌تیرانداز کار نمی‌کند، چون به چیزی lock نمی‌شود و به همین دلیل نمی‌تواند و نخواهد بازیکنی را برگرداند. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md index 929b252c6233..a70cd794ae61 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md @@ -29,11 +29,9 @@ tags: ["vehicle"] مقادیر برگردونده شده در هر متغیر به شرح زیر هستن: -**-1**: وضعیت در تنظیم نشده - -**1**: باز - -**0**: بسته +- **-1**: وضعیت در تنظیم نشده +- **1**: باز +- **0**: بسته ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md index e9443e6c097a..d048ad53d667 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md @@ -29,11 +29,9 @@ tags: ["vehicle"] مقادیر برگردونده شده در هر متغیر به شرح زیر هستن: -**-1**: وضعیت شیشه تنظیم نشده (معمولاً بسته، مگر اینکه صراحتاً روی -1 تنظیم شده باشه) - -**0**: باز - -**1**: بسته +- **-1**: وضعیت شیشه تنظیم نشده (معمولاً بسته، مگر اینکه صراحتاً روی -1 تنظیم شده باشه) +- **0**: باز +- **1**: بسته ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsSirenState.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsSirenState.md index 193ce088a449..808be0710343 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsSirenState.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsSirenState.md @@ -54,3 +54,7 @@ else ## توابع مرتبط - [SetVehicleParamsSirenState](SetVehicleParamsSirenState): روشن یا خاموش کردن آژیر یه وسیله نقلیه. + +## کالبک‌های مرتبط + +- [OnVehicleSirenStateChange](../callbacks/OnVehicleSirenStateChange): هنگامی که آژیر وسیله نقلیه روشن/خاموش می‌شود فراخوانی می‌شود. diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GivePlayerMoney.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GivePlayerMoney.md index d2491a221f0e..248ed6489375 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GivePlayerMoney.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GivePlayerMoney.md @@ -41,7 +41,7 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) ## تابع های مرتبط -- [ResetPlayerMoney](ResetPlayerMoney) تنظیم کردن پول بازیکن به $0 -- [GetPlayerMoney](GetPlayerMoney) بررسی کردن مقدار پول یک بازیکن +- [ResetPlayerMoney](ResetPlayerMoney): تنظیم کردن پول بازیکن به $0 +- [GetPlayerMoney](GetPlayerMoney): بررسی کردن مقدار پول یک بازیکن diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md index c41f3a56b96f..47b60bf5938b 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md @@ -28,7 +28,9 @@ tags: ["http"] #define HTTP_GET (HTTP_METHOD:1) // Sends a regular HTTP request. #define HTTP_POST (HTTP_METHOD:2) // Sends a HTTP request with POST data. #define HTTP_HEAD (HTTP_METHOD:3) // Sends a regular HTTP request, but ignores any response data - returning only the response code. +``` +```c // HTTP error response codes // These codes compliment ordinary HTTP response codes returned in 'response_code' #define HTTP_ERROR_BAD_HOST (HTTP_ERROR:1) diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/HasObjectCameraCollision.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/HasObjectCameraCollision.md index 4d70faf86740..d5861682a69e 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/HasObjectCameraCollision.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/HasObjectCameraCollision.md @@ -1,7 +1,7 @@ --- title: HasObjectCameraCollision sidebar_label: HasObjectCameraCollision -description: چک می‌کنه که آیا یه آبجکت برخورد دوربین فعال داره یا نه. (SetObjectNoCameraCollision) +description: چک می‌کنه که آیا یه آبجکت برخورد دوربین فعال داره یا نه (SetObjectNoCameraCollision). tags: ["object"] --- diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/HasPlayerObjectCameraCollision.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/HasPlayerObjectCameraCollision.md index 167e9413b087..4f268ce57852 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/HasPlayerObjectCameraCollision.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/HasPlayerObjectCameraCollision.md @@ -1,7 +1,7 @@ --- title: HasPlayerObjectCameraCollision sidebar_label: HasPlayerObjectCameraCollision -description: چک می‌کنه که آیا یه player-object برخورد دوربین فعال داره یا نه. (SetPlayerObjectNoCameraCollision) +description: چک می‌کنه که آیا یه player-object برخورد دوربین فعال داره یا نه (SetPlayerObjectNoCameraCollision). tags: ["player", "object", "playerobject"] --- diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md index 8fbff0d8bb42..cfb74528d638 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/Kick.md @@ -1,7 +1,7 @@ --- title: Kick sidebar_label: Kick -description: بازیکن رو از سرور kick می‌کنه. باید بازی رو ببنده و دوباره وصل بشه اگه می‌خواد به بازی ادامه بده. +description: بازیکن رو از سرور kick می‌کنه. tags: ["player", "administration"] --- 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 d6caaf934991..d11e6d5c771b 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 @@ -9,6 +9,10 @@ tags: ["vehicle"] از این تابع قبل از اتصال هر بازیکنی (OnGameModeInit) استفاده کن تا به همه کلاینت‌ها بگویی که اسکریپت موتور و چراغ‌های وسایل نقلیه را کنترل می‌کند. این امر از روشن/خاموش شدن خودکار موتور هنگام ورود/خروج بازیکنان از وسایل نقلیه و روشن شدن خودکار چراغ‌های جلو در تاریکی جلوگیری می‌کند. +## مقادیر برگشتی + +این تابع همیشه **true** برمی‌گردونه. + ## مثال‌ها ```c 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 a13414de4bd3..1287ea1dbd52 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 @@ -83,3 +83,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) - [GetPlayerObjectPos](GetPlayerObjectPos): آبجکت بازیکن را پیدا کن. - [GetPlayerObjectRot](GetPlayerObjectRot): چرخش آبجکت بازیکن را بررسی کن. - [AttachPlayerObjectToPlayer](AttachPlayerObjectToPlayer): آبجکت بازیکن را به بازیکن متصل کن. + +## کالبک‌های مرتبط + +- [OnObjectMoved](../callbacks/OnObjectMoved): زمانی فراخوانی می‌شود که یک شیء حرکت خود را متوقف کند. 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 6d360fc1a6f4..64db599058c1 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,8 +37,7 @@ public OnPlayerConnect(playerid) :::note -- اگه از [PlayerTextDrawSetOutline](PlayerTextDrawSetOutline) با اندازه > 0 استفاده کنی، رنگ outline با رنگی که در PlayerTextDrawBackgroundColour استفاده شده مطابقت می‌کنه. -- تغییر مقدار رنگ به نظر می‌رسه که رنگ استفاده شده در PlayerTextDrawColour رو تغییر می‌ده. +اگه از [PlayerTextDrawSetOutline](PlayerTextDrawSetOutline) با اندازه > 0 استفاده کنی، رنگ outline با رنگی که در PlayerTextDrawBackgroundColour استفاده شده مطابقت می‌کنه. تغییر مقدار رنگ به نظر می‌رسه که رنگ استفاده شده در PlayerTextDrawColour رو تغییر می‌ده. ::: 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 5a16e3b2ec86..fc342fa43e99 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 @@ -38,7 +38,7 @@ public OnPlayerConnect(playerid) :::tip -می‌تونی از رنگ‌های Gametext هم در textdraw ها استفاده کنی. (مثل `~r~` `~g~` `~b~`) +می‌تونی از رنگ‌های Gametext هم در textdraw ها استفاده کنی. ::: 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 160df33ab117..ccde1edfe19b 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 @@ -50,7 +50,8 @@ public OnGameModeInit() :::tip -salt به انتهای پسورد اضافه می‌شه، یعنی پسورد 'foo' و salt 'bar' باعث تشکیل 'foobar' می‌شن. salt باید تصادفی باشه، برای هر پلیر منحصر به فرد باشه و حداقل به اندازه پسورد هش شده طول داشته باشه. باید در کنار هش واقعی در اکانت پلیر ذخیره بشه. +- salt به انتهای پسورد اضافه می‌شه، یعنی پسورد 'foo' و salt 'bar' باعث تشکیل 'foobar' می‌شن. +- salt باید تصادفی باشه، برای هر پلیر منحصر به فرد باشه و حداقل به اندازه پسورد هش شده طول داشته باشه. باید در کنار هش واقعی در اکانت پلیر ذخیره بشه. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md index f9213136114f..16540b718f2b 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md @@ -39,7 +39,9 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::tip -Death message ها می‌تونن با استفاده از یه player ID معتبر برای 'playerid' که متصل نیست پاک بشن. برای نمایش death message فقط برای یک بازیکن، از [SendDeathMessageToPlayer](SendDeathMessageToPlayer) استفاده کن. می‌تونی از NPC ها برای ایجاد death reason های سفارشی خودت استفاده کنی. +- Death message ها می‌تونن با استفاده از یه player ID معتبر برای 'playerid' که متصل نیست پاک بشن. +- برای نمایش death message فقط برای یک بازیکن، از [SendDeathMessageToPlayer](SendDeathMessageToPlayer) استفاده کن. +- می‌تونی از NPC ها برای ایجاد death reason های سفارشی خودت استفاده کنی. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md index 5ec49ff554da..4e9f990db632 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md @@ -39,7 +39,8 @@ public OnGameModeInit() :::warning -وقتی آسیب نپذیر تنظیم بشه، actor دیگه [OnPlayerGiveDamageActor](../callbacks/OnPlayerGiveDamageActor) رو صدا نمی‌زنه. بازیکنا تغییر وضعیت آسیب نپذیری actor رو فقط وقتی می‌بینن که دوباره براشون restream بشه. +- وقتی آسیب نپذیر تنظیم بشه، actor دیگه [OnPlayerGiveDamageActor](../callbacks/OnPlayerGiveDamageActor) رو صدا نمی‌زنه. +- بازیکنا تغییر وضعیت آسیب نپذیری actor رو فقط وقتی می‌بینن که دوباره براشون restream بشه. ::: 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 96e561c76dbd..febbfd5f850b 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 @@ -70,7 +70,6 @@ public OnPlayerCommandText(playerid, cmdtext[]) - [Texture Studio](https://github.com/Pottus/Texture-Studio) توسط Pottus - [Ultimate Creator](https://github.com/NexiusTailer/Ultimate-Creator) توسط Nexius - [Fusez's Map Editor](https://github.com/fusez/Map-Editor-V3) توسط RedFusion -- [SetObjectMaterialText Editor](https://sampforum.blast.hk/showthread.php?tid=614667) توسط RIDE2DAY ## منابع مرتبط diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerDrunkLevel.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerDrunkLevel.md index 39b51cafe3cc..8ac21eecb902 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerDrunkLevel.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerDrunkLevel.md @@ -40,10 +40,10 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - سطح مستی پلیر ها به مرور زمان و بر اساس FPS شون به طور خودکار کم می‌شه (پلیر هایی با 50 FPS هر ثانیه 50 'level' از دست می‌دن. این برای تشخیص FPS پلیر مفیده!). -- در نسخه 0.3a سطح مستی کم می‌شه و در 2000 متوقف می‌شه. -- در نسخه 0.3b+ سطح مستی تا صفر کم می‌شه. +- در نسخه 0.3a سطح مستی کم می‌شه و در 2000 متوقف می‌شه. در نسخه 0.3b+ سطح مستی تا صفر کم می‌شه. - Level های بالای 2000 باعث می‌شه پلیر مست بشه (دوربین تکون می‌خوره و ماشین ها سخت کنترل می‌شن). -- حداکثر سطح مستی 50000 هست. وقتی سطح مستی بالای 5000 باشه، HUD پلیر (رادار و غیره) مخفی می‌شه. +- حداکثر سطح مستی 50000 هست. +- وقتی سطح مستی بالای 5000 باشه، HUD پلیر (رادار و غیره) مخفی می‌شه. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md index a0ce8af04cdf..f09ea789745e 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md @@ -39,7 +39,8 @@ public OnPlayerSpawn(playerid) :::note -فقط یک object می‌تونه به هر پلیر وصل بشه. این تابع جدا از CreateObject / CreatePlayerObject pool ها هست. +- فقط یک object می‌تونه به هر پلیر وصل بشه. +- این تابع جدا از CreateObject / CreatePlayerObject pool ها هست. ::: 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 f19e8c53317e..0e0a69701b6d 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 @@ -64,6 +64,6 @@ Vertex lightning مربوط به object ناپدید می‌شه اگه رنگ m ## ویرایش کننده‌های پیشرفته نقشه -- [Texture Studio](https://github.com/Pottus/Texture-Studio) by Pottus -- [Ultimate Creator](https://github.com/NexiusTailer/Ultimate-Creator) by Nexius -- [Fusez's Map Editor](https://github.com/fusez/Map-Editor-V3) by RedFusion +- [Texture Studio](https://github.com/Pottus/Texture-Studio) توسط Pottus +- [Ultimate Creator](https://github.com/NexiusTailer/Ultimate-Creator) توسط Nexius +- [Fusez's Map Editor](https://github.com/fusez/Map-Editor-V3) توسط RedFusion diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md index 8b6fe35cbef6..e2e7b0e455dd 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md @@ -59,6 +59,6 @@ Color embedding می‌تونه برای چندین رنگ توی متن است ## ویرایش کننده‌های پیشرفته نقشه -- [Texture Studio](https://github.com/Pottus/Texture-Studio) by Pottus -- [Ultimate Creator](https://github.com/NexiusTailer/Ultimate-Creator) by Nexius -- [Fusez's Map Editor](https://github.com/fusez/Map-Editor-V3) by RedFusion +- [Texture Studio](https://github.com/Pottus/Texture-Studio) توسط Pottus +- [Ultimate Creator](https://github.com/NexiusTailer/Ultimate-Creator) توسط Nexius +- [Fusez's Map Editor](https://github.com/fusez/Map-Editor-V3) توسط RedFusion diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md index de44964bf5f6..8b81195b4334 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md @@ -33,10 +33,7 @@ public OnPlayerSpawn(playerid) :::note -- پلیر ها نمی‌تونن به پلیر های هم تیم آسیب برسونن/کشتنشون مگه اینکه از چاقو استفاده کنن تا گلوشون رو ببرن. - -- پلیر ها همچنین نمی‌تونن به ماشین هایی که توسط پلیر هم تیم رانندگی می‌شن آسیب برسونن. این می‌تونه با [EnableVehicleFriendlyFire](EnableVehicleFriendlyFire) فعال بشه. - +- پلیر ها نمی‌تونن به پلیر های هم تیم آسیب برسونن/کشتنشون مگه اینکه از چاقو استفاده کنن تا گلوشون رو ببرن. پلیر ها همچنین نمی‌تونن به ماشین هایی که توسط پلیر هم تیم رانندگی می‌شن آسیب برسونن. این می‌تونه با [EnableVehicleFriendlyFire](EnableVehicleFriendlyFire) فعال بشه. - 255 (یا `NO_TEAM`) تیم پیش‌فرضیه که می‌تونه به پلیر های دیگه شلیک کنه، نه 0. ::: 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 acbae68dbff9..f560171be05f 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 @@ -48,11 +48,8 @@ public OneSecondTimer() :::note -شناسه‌های تایمر هرگز دوباره استفاده نمی‌شوند. - -شما می‌توانید با استفاده از [KillTimer](KillTimer) یک شناسه تایمر را متوقف کنید و مهم نیست که در حال اجرا باشد یا نه. - -تابعی که باید فراخوانی شود، باید عمومی باشد، به این معنی که باید forwarded باشد. +- شناسه‌های تایمر هرگز دوباره استفاده نمی‌شوند. شما می‌توانید با استفاده از [KillTimer](KillTimer) یک شناسه تایمر را متوقف کنید و مهم نیست که در حال اجرا باشد یا نه. +- تابعی که باید فراخوانی شود، باید عمومی باشد، به این معنی که باید forwarded باشد. ::: 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 793dd755697c..d4ae028d7da7 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 @@ -1,7 +1,7 @@ --- title: SetTimerEx sidebar_label: SetTimerEx -description: تنظیم یک تایمر برای فراخوانی تابع پس از یک بازه زمانی مشخص. با قابلیت ارسال مقادیر +description: تنظیم یک تایمر برای فراخوانی تابع پس از یک بازه زمانی مشخص. tags: ["timer"] --- @@ -74,9 +74,8 @@ public EndAntiSpawnKill(playerid) :::tip -متغیرهای شناسه تایمر باید زمانی که دیگر مورد استفاده نیستند به 0 تنظیم شوند تا احتمال از کار انداختن اشتباهی تایمرهای جدید به حداقل برسد. مقدار `-1` معمولاً به اشتباه به عنوان شناسه نامعتبر در نظر گرفته می‌شود - که نیست. - -تابعی که باید فراخوانی شود، باید عمومی باشد، به این معنی که باید forwarded باشد. +- متغیرهای شناسه تایمر باید زمانی که دیگر مورد استفاده نیستند به 0 تنظیم شوند تا احتمال از کار انداختن اشتباهی تایمرهای جدید به حداقل برسد. مقدار `-1` معمولاً به اشتباه به عنوان شناسه نامعتبر در نظر گرفته می‌شود - که نیست. +- تابعی که باید فراخوانی شود، باید عمومی باشد، به این معنی که باید forwarded باشد. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md index de3055de7c09..ad3a8614cd7b 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md @@ -46,8 +46,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- چرخش X و Y (pitch و roll) ماشین وقتی این تابع استفاده می‌شه reset می‌شن. -- چرخش X و Y قابل تنظیم نیستن. +- چرخش X و Y (pitch و roll) ماشین وقتی این تابع استفاده می‌شه reset می‌شن. چرخش X و Y قابل تنظیم نیستن. - این تابع روی ماشین‌های خالی کار نمی‌کنه (اعتقاد بر این هست که محدودیت GTA هست). ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ShowMenuForPlayer.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ShowMenuForPlayer.md index fe9aadf23659..027ae5e852c0 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ShowMenuForPlayer.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ShowMenuForPlayer.md @@ -45,6 +45,14 @@ public OnPlayerCommandText(playerid, cmdtext[]) } ``` +## نکات + +:::warning + +اگه ID منوی نامعتبر بدی، هم سرور و هم بازیکن کرش می‌کنن. (در open.mp درست شده) + +::: + ## توابع مرتبط - [CreateMenu](CreateMenu): ایجاد یک منو. diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerDialog.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerDialog.md index 1d7adc72ad59..8c62eb211700 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerDialog.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ShowPlayerDialog.md @@ -83,3 +83,11 @@ ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_TABLIST_HEADERS, "Buy We - [TextDrawShowForPlayer](TextDrawShowForPlayer) - [OnDialogResponse](../callbacks/OnDialogResponse) + +
+ +## منابع مرتبط + +- [سبک های دیالوگ](../resources/dialogstyles) + +
diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md index 5fb064c1de2c..a83d3aa15b00 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md @@ -1,7 +1,7 @@ --- title: TextDrawBackgroundColor sidebar_label: TextDrawBackgroundColor -description: رنگ پس‌زمینه textdraw رو تنظیم کن (outline/shadow - نه رنگ باکس. +description: رنگ پس‌زمینه textdraw رو تنظیم کن (outline/shadow - نه رنگ باکس). tags: ["textdraw"] --- @@ -37,8 +37,7 @@ public OnGameModeInit() :::note -- اگه از [TextDrawSetOutline](TextDrawSetOutline) با اندازه > 0 استفاده کنی، رنگ outline با رنگی که توی TextDrawBackgroundColor استفاده کردی یکی میشه. -- تغییر مقدار color به نظر میرسه رنگی که توی [TextDrawColor](TextDrawColor) استفاده میشه رو تغییر میده. +اگه از [TextDrawSetOutline](TextDrawSetOutline) با اندازه > 0 استفاده کنی، رنگ outline با رنگی که توی TextDrawBackgroundColor استفاده کردی یکی میشه. تغییر مقدار color به نظر میرسه رنگی که توی [TextDrawColor](TextDrawColor) استفاده میشه رو تغییر میده. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColour.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColour.md index 48c2bce8250c..f741d4f2c6e3 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColour.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColour.md @@ -1,7 +1,7 @@ --- title: TextDrawBackgroundColour sidebar_label: TextDrawBackgroundColour -description: رنگ پس‌زمینه textdraw رو تنظیم کن (outline/shadow - نه رنگ باکس. +description: رنگ پس‌زمینه textdraw رو تنظیم کن (outline/shadow - نه رنگ باکس). tags: ["textdraw"] --- diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md index 28ef9cc3349d..f524ce04fa14 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md @@ -35,7 +35,7 @@ public OnGameModeInit() :::tip -همچنین می‌توانید از رنگ‌های Gametext در textdraw ها استفاده کنید. (مثل `~r~` `~g~` `~b~`) +همچنین می‌توانید از رنگ‌های Gametext در textdraw ها استفاده کنید. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md index e03a61e88d82..5729dcdc2f91 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md @@ -49,8 +49,7 @@ public OnPlayerConnect(playerid) :::note -- مختصات `x, y` مختصات بالا سمت چپ برای ناحیه text draw بر اساس "بوم" 640x480 است (بدون توجه به رزولوشن صفحه). -- اگر قصد استفاده از [TextDrawAlignment](TextDrawAlignment) با چینش 3 (`TEXT_DRAW_ALIGN_RIGHT`) را دارید، مختصات `x, y` مختصات بالا سمت راست برای text draw است. +- مختصات `x, y` مختصات بالا سمت چپ برای ناحیه text draw بر اساس "بوم" 640x480 است (بدون توجه به رزولوشن صفحه). اگر قصد استفاده از [TextDrawAlignment](TextDrawAlignment) با چینش 3 (`TEXT_DRAW_ALIGN_RIGHT`) را دارید، مختصات `x, y` مختصات بالا سمت راست برای text draw است. - این تابع فقط textdraw را ایجاد می‌کند، باید از [TextDrawShowForPlayer](TextDrawShowForPlayer) یا [TextDrawShowForAll](TextDrawShowForAll) برای نمایش آن استفاده کنید. ::: 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 bbf6ac7aa70e..bcc2763bc888 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,8 +36,7 @@ public OnGameModeInit() :::tip -- وقتی از این تابع فقط برای تأثیر روی جعبه TextDraw استفاده می‌کنی، 'Y' رو در 0.135 ضرب کن تا به اندازه‌گیری‌های مشابه TextDrawTextSize تبدیل بشه. -- نکته: استفاده از sprite **LD_SPAC:white** برای textdraw های فقط جعبه آسون‌تر و دقیق‌تره، TextDrawTextSize offset های معمولی خواهد داشت. +- وقتی از این تابع فقط برای تأثیر روی جعبه TextDraw استفاده می‌کنی، 'Y' رو در 0.135 ضرب کن تا به اندازه‌گیری‌های مشابه 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/UsePlayerPedAnims.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/UsePlayerPedAnims.md index 96305e66e921..92df50b6af2e 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/UsePlayerPedAnims.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/UsePlayerPedAnims.md @@ -9,6 +9,10 @@ tags: ["player"] از انیمیشن راه رفتن استاندارد بازیکن (انیمیشن اسکین CJ) به جای انیمیشن‌های سفارشی برای هر اسکین استفاده می‌کنه (مثل اسکیت کردن برای اسکین‌های اسکیتر). +## مقادیر برگشتی + +این تابع هیچ مقدار خاصی برنمی‌گردونه. + ## مثال‌ها ```c diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md index 3399737e66f5..a26b4f590510 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md @@ -68,7 +68,8 @@ public OnGameModeExit() :::warning -در صورت عدم وجود فایل پایگاه داده SQLite با همین نام، یک فایل پایگاه داده SQLite جدید ایجاد خواهد کرد. اتصال پایگاه داده SQLite خود را با [db_close](db_close) ببندید! +- در صورت عدم وجود فایل پایگاه داده SQLite با همین نام، یک فایل پایگاه داده SQLite جدید ایجاد خواهد کرد. +- اتصال پایگاه داده SQLite خود را با [db_close](db_close) ببندید! ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/sendpacket.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/sendpacket.md index cdec1750c981..fdbc7663afc4 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/sendpacket.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/sendpacket.md @@ -1,7 +1,7 @@ --- title: sendpacket sidebar_label: sendpacket -description: یه packet ارسال می‌کنه. (تابع منسوخ) +description: یه packet ارسال می‌کنه (تابع منسوخ). tags: ["datagram"] --- diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/sendstring.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/sendstring.md index d57adc229844..911ef5e6ef74 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/sendstring.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/sendstring.md @@ -1,7 +1,7 @@ --- title: sendstring sidebar_label: sendstring -description: یه packet که شامل string هست ارسال می‌کنه. (تابع منسوخ) +description: یه packet که شامل string هست ارسال می‌کنه (تابع منسوخ). tags: ["datagram"] --- diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/Variables.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/Variables.md index d7ec41cffa83..b81ed04bdcaa 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/Variables.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/language/Variables.md @@ -75,7 +75,7 @@ public OnPlayerConnect(playerid) return 1; } -// Output : +// Output: // The value is 10 // The value is 100 @@ -210,7 +210,7 @@ public OnFilterScriptInit() return 1; } -// Output : +// Output: a 1 1.000000 diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md index 0226d5d47866..8a68b3c34300 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md @@ -58,10 +58,11 @@ AddMenuItem(teleportmenu, 1, "Come-a-Lot"); توضیح [AddMenuItem](../scripting/functions/AddMenuItem): -| menuid | شناسه منویی که آیتم در آن نمایش داده شود | -| ------ | ---------------------------------------- | -| column | ستونی که آیتم در آن نشان داده شود | -| text | متن آیتم | +| پارامتر | تعیین‌کننده | +| ------- | ---------------------------------------- | +| menuid | شناسه منویی که آیتم در آن نمایش داده شود | +| column | ستونی که آیتم در آن نشان داده شود | +| text | متن آیتم | ## ایجاد افکت برای آیتم‌ها 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 2632a9d2b77b..6e91734c1aee 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 @@ -9,6 +9,12 @@ tags: [] 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. +## Returns + +Hindi nag rereturn ang callback na ito. + +Ito ay palaging itinatawag una sa mga gamemode. + ## Examples ```c @@ -23,7 +29,9 @@ 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. Ang callback na ito ay hindi tatawagin kapag ang server ay nag crash or napatay gamit ang ibang bagay, tulad ng Linux kill command o ang pag pindot ng close-button sa console ng Windows. +- 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. +- 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/OnGameModeInit.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md index eb78b9e37192..d0247dd82f5c 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md @@ -9,6 +9,12 @@ tags: [] Ang callback na ito ay nag-ti-trigger kapag nagsisimulang mag run ang isang gamemode. +## Returns + +Hindi nag rereturn ang callback na ito. + +Ito ay palaging itinatawag una sa mga gamemode. + ## Examples ```c diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md index 669ccac904cd..bec5619ac819 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md @@ -19,3 +19,7 @@ public OnNPCSpawn() return 1; } ``` + +## Related Callbacks + +- [OnPlayerSpawn](OnPlayerSpawn): Tinatawag kapag nag-spawn ang isang manlalaro. diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md index 1f4b7c9d340c..b875c257ee09 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md @@ -62,6 +62,12 @@ Kailangan mong tignan kung ang 'killerid' ay valid (not IVALID_PLAYER_ID) bago g ::: +## Related Callbacks + +Maaaring maging kapaki-pakinabang ang mga sumusunod na callback, dahil nauugnay ang mga ito sa callback na ito sa isang paraan o iba pa. + +- [OnPlayerSpawn](OnPlayerSpawn): Tinatawag ang callback na ito kapag nag-spawn ang isang player. + ## Related Functions - [SendDeathMessage](../functions/SendDeathMessage): Dagdagan ng kill sa Death list. 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 4200232bbb66..35f16dde4f87 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,8 +36,7 @@ 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/OnPlayerUpdate.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md index 2c617c78748f..3d087ef03133 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md @@ -84,6 +84,7 @@ public OnPlayerUpdate(playerid) :::warning -- Ang callback na ito ay tinatawag, sa karaniwan, 30 beses bawat segundo, bawat manlalaro; gamitin lamang ito kapag alam mo kung para saan ito (o mas mahalaga kung ano ang HINDI para sa). Ang dalas ng pagtawag sa callback na ito para sa bawat manlalaro ay nag-iiba, depende sa kung ano ang ginagawa ng manlalaro. Ang pagmamaneho o pagbaril ay magti-trigger ng mas maraming update kaysa sa idling. +- Ang callback na ito ay tinatawag, sa karaniwan, 30 beses bawat segundo, bawat manlalaro; gamitin lamang ito kapag alam mo kung para saan ito (o mas mahalaga kung ano ang HINDI para sa). +- Ang dalas ng pagtawag sa callback na ito para sa bawat manlalaro ay nag-iiba, depende sa kung ano ang ginagawa ng manlalaro. Ang pagmamaneho o pagbaril ay magti-trigger ng mas maraming update kaysa sa idling. ::: 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 47ffd8b5c082..37d4a2ba1157 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 @@ -39,7 +39,8 @@ public OnGameModeInit() :::note -Ang `useartwork` ay dapat munang paganahin sa mga setting ng server upang ito ay gumana Kapag ang virtualworld ay nakatakda, ang mga modelo ay mada-download kapag ang manlalaro ay pumasok sa partikular na mundo +- Ang `useartwork` ay dapat munang paganahin sa mga setting ng server upang ito ay gumana +- Kapag ang virtualworld ay nakatakda, ang mga modelo ay mada-download kapag ang manlalaro ay pumasok sa partikular na mundo ::: 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 5f3667720fb7..0bcf8bfaed51 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 @@ -41,7 +41,8 @@ public OnGameModeInit() :::note -ang useartwork ay dapat munang paganahin sa mga setting ng server upang ito ay gumana Kapag ang virtualworld ay nakatakda, ang mga modelo ay mada-download kapag ang player ay pumasok sa partikular na mundo +- ang useartwork ay dapat munang paganahin sa mga setting ng server upang ito ay gumana +- Kapag ang virtualworld ay nakatakda, ang mga modelo ay mada-download kapag ang player ay pumasok sa partikular na mundo ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md index 0a694aeae5f9..6a222098fdbc 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md @@ -32,7 +32,7 @@ public OnGameModeInit ( ) { gVehicleId = CreateVehicle(510, 0.0, 0.0, 15.0, 5, 0, 120); // Paggawa ng Sasakyan. gVehicle3dText[gVehicleId] = Create3DTextLabel("Example Text", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1); - Attach3DTextLabelToVehicle(gVehicle3dText[gVehicleId], vehicle_id, 0.0, 0.0, 2.0); // Paglalagay ng Text Label sa Sasakyan. + Attach3DTextLabelToVehicle(gVehicle3dText[gVehicleId], gVehicleId, 0.0, 0.0, 2.0); // Paglalagay ng Text Label sa Sasakyan. } public OnGameModeExit ( ) 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 ac19055db6a8..688334c2e727 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 @@ -9,6 +9,10 @@ tags: ["vehicle"] 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!). +## Returns + +Ang function na ito ay hindi nagbabalik ng anumang value. + ## Examples ```c diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md index 0491e9e80609..c53eb7e97e74 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md @@ -9,6 +9,10 @@ tags: [] Tinatapos ang kasalukuyang gamemode. +## Returns + +Ang function na ito ay hindi nagbabalik ng anumang value. + ## Examples ```c 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 8376d801f802..2ce10b72e257 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,8 @@ 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 255 (o NO_TEAM) ay ang default na koponan na makakapag-shoot ng iba pang mga manlalaro, hindi 0. +- 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 255 (o NO_TEAM) ay ang default na koponan na makakapag-shoot ng iba pang mga manlalaro, hindi 0. ::: 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 51103d155f82..5cf3bdb94054 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,7 +27,9 @@ 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 callback ne sera PAS appelée si le serveur crash ou si le processus est fermé par d'autres moyens, par exemple en appuyant sur le bouton de fermeture de la console Windows. +- 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 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/OnNPCSpawn.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md index 3620112a8a29..ba181879ed4a 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md @@ -19,3 +19,7 @@ public OnNPCSpawn() return 1; } ``` + +## Callbacks connexes + +- [OnPlayerSpawn](OnPlayerSpawn): Appelée lorsqu'un joueur spawn (apparaît). diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md index e56e93230ee6..4542f82b4093 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamageActor.md @@ -5,6 +5,8 @@ description: Cette callback est appelée quand un joueur inflige des dégâts à tags: ["player"] --- + + ## Paramètres Cette callback est appelée quand un joueur inflige des dégâts à un actor. diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md index ed464080a900..772f93ed42b0 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md @@ -82,7 +82,8 @@ public OnPlayerUpdate(playerid) :::warning -Cette callback est appelée environ 30 fois par secondes, par joueur; à utiliser seulement quand vous savez exactement pourquoi. La fréquence à laquelle est appelée cette callback varie en fonction des joueurs, dépendant de ce que fait le joueur. La fréquence d'appel sera plus élevé quand le joueur conduira, tirera alors qu'elle sera plus basse quand le joueur sera statique. +- Cette callback est appelée environ 30 fois par secondes, par joueur; à utiliser seulement quand vous savez exactement pourquoi. +- La fréquence à laquelle est appelée cette callback varie en fonction des joueurs, dépendant de ce que fait le joueur. La fréquence d'appel sera plus élevé quand le joueur conduira, tirera alors qu'elle sera plus basse quand le joueur sera statique. ::: diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md index 228905964e08..301c011dabda 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md @@ -46,9 +46,8 @@ public OnRconCommand(cmd[]) :::note -/rcon n'est pas inclut dans `cmd` lorsqu'un joueur tape la commande. - -Si vous utilisez la fonction `printf` dans cette callback, un message sera envoyé au joueur qui a tapé la commande dans le jeu, et dans les logs. +- /rcon n'est pas inclut dans `cmd` lorsqu'un joueur tape la commande. +- Si vous utilisez la fonction `printf` dans cette callback, un message sera envoyé au joueur qui a tapé la commande dans le jeu, et dans les logs. ::: 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 9a3319a7b210..542a2edad2de 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 @@ -38,7 +38,8 @@ public OnGameModeInit() :::note -`useartwork` doit d'abord être activé dans les paramètres du serveur pour que cela fonctionne Lorsque virtualworld est défini, les modèles seront téléchargés une fois que le joueur entrera dans le monde spécifique +- `useartwork` doit d'abord être activé dans les paramètres du serveur pour que cela fonctionne +- Lorsque virtualworld est défini, les modèles seront téléchargés une fois que le joueur entrera dans le monde spécifique ::: diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/server/ControllingServer.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/server/ControllingServer.md index 7f2186b69e1d..d4980b1a9f88 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/server/ControllingServer.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/server/ControllingServer.md @@ -158,7 +158,7 @@ Pour les débannir, utilisez simplement la commande `unbanip`. Tapez cmdlist pour les commandes (ou varlist pour les variables) en utilisant le RCON en jeu (`/rcon cmdlist`). -Voici les fonctions que vous pouvez utiliser en tant qu'administrateur : +Voici les fonctions que vous pouvez utiliser en tant qu'administrateur: | Command | Description | | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | 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 0fbda0707dc4..03744a00a0a1 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 @@ -29,9 +29,8 @@ 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. 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 vagy a Windows konzol bezárás gombjának megnyomásával. +- 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. +- 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/hu/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md b/frontend/i18n/hu/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md index b576c62ca080..12d1d4e4c772 100644 --- a/frontend/i18n/hu/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md +++ b/frontend/i18n/hu/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md @@ -9,6 +9,10 @@ tags: [] Leállítja a jelenlegi játékmódot +## Visszatérések + +Ez a függvény nem ad vissza konkrét értékeket. + ## Példák ```c @@ -17,3 +21,7 @@ if (OneTeamHasWon) GameModeExit(); } ``` + +## Kapcsolodó visszahívások + +- [OnGameModeExit](../callbacks/OnGameModeExit): Ezt a visszahívást akkor hívja meg amikor egy játékmód leáll. diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/client/ClientCommands.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/client/ClientCommands.md index 6eded92daeb7..529ee649abed 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/client/ClientCommands.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/client/ClientCommands.md @@ -1,6 +1,6 @@ --- -Judul: "Client Commands" -Deskripsi: List semua command client. +title: "Client Commands" +description: List semua command client. --- ## Commands 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 3838e04c8d93..79ac68349103 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 @@ -9,6 +9,12 @@ tags: [] Callback ini akan terpanggil ketika gamemode berakhir, entah itu lewat 'gmx' server yang dimatikan, atau GameModeExit. +## Returns + +Callback ini tidak mengelola pengembalian nilai. + +Selalu terpanggil pertama di gamemode. + ## Contoh ```c @@ -23,10 +29,18 @@ 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. Callback ini TIDAK akan dipanggil apabila server crash atau prosesnya dimatikan dengan cara lain, seperti menggunakan perintah kill di linux atau menekan tombol close pada konsol windows. +- 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. +- Callback ini TIDAK akan dipanggil apabila server crash atau prosesnya dimatikan dengan cara lain, seperti menggunakan perintah kill di linux. ::: +## Related Callbacks + +Callback berikut mungkin berguna, karena terkait dengan callback ini dalam satu atau lain cara + +- [OnFilterScriptExit](OnFilterScriptExit): Callback ini akan terpanggil ketika filterscript dibongkar. + ## Related Functions - [GameModeExit](../functions/GameModeExit): Keluar dari gamemode saat ini. 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 3f5b08c0a665..4bad349cb4ff 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 @@ -9,6 +9,12 @@ tags: [] Callback ini akan terpanggil ketika sebuah gamemode dimuat. +## Returns + +Callback ini tidak mengelola pengembalian nilai. + +Selalu terpanggil pertama di gamemode. + ## Contoh ```c diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md index c5622ef4202b..5545650abeb8 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md @@ -45,6 +45,12 @@ Callback ini akan terpanggil juga oleh NPC. ::: +## Related Callbacks + +Callback berikut mungkin berguna, karena terkait dengan callback ini dalam satu atau lain cara + +- [OnPlayerText](OnPlayerText): Callback ini akan terpanggil ketika pemain mengirimkan pesan chat. + ## Related Functions - [SendRconCommand](../functions/SendRconCommand): Mengirimkan perintah RCON melalui skrip. 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 e3775951fd87..5b600f47e092 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 @@ -75,3 +75,9 @@ ID senjata akan mengembalikan nilai 37 (flame thrower) dari semua senjata yang m GetPlayerHealth dan GetPlayerArmour akan memberikan amount lama dari pemain sebelum memanggil callback ini. Selalu cek jika issuerid valid sebelum melakukan array index. ::: + +## Related Callbacks + +Callback berikut mungkin berguna, karena terkait dengan callback ini dalam satu atau lain cara + +- [OnPlayerWeaponShot](OnPlayerWeaponShot): Callback ini di panggil ketika seorang pemain melepaskan tembakan dari senjata. diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md index 979e3807bcfc..840da7aeb5d3 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md @@ -84,7 +84,8 @@ public OnPlayerUpdate(playerid) :::warning -Callback ini di panggil, rata-rata, 30 kali per detik, per pemain; hanya di gunakan ketika Anda tahu untuk apa itu (atau lebih penting lagi untuk TIDAK di masukkan). Frekuensi panggilan balik ini untuk setiap pemain bervariasi, tergantung pada apa yang dilakukan pemain. Mengemudi atau menembak akan memicu lebih banyak pembaruan daripada diam. +- Callback ini di panggil, rata-rata, 30 kali per detik, per pemain; hanya di gunakan ketika Anda tahu untuk apa itu (atau lebih penting lagi untuk TIDAK di masukkan). +- Frekuensi panggilan balik ini untuk setiap pemain bervariasi, tergantung pada apa yang dilakukan pemain. Mengemudi atau menembak akan memicu lebih banyak pembaruan daripada diam. ::: diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/vendingmachines.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/vendingmachines.md index e07bc368198a..afb90f405316 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/vendingmachines.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/vendingmachines.md @@ -1,7 +1,7 @@ --- id: vendingmachines title: Mesin Penjual Otomatis -description: Daftar semua lokasi mesin penjual otomatis, pemain menggunakannya dengan jarak 2 unik. Sangat berguna untuk anti-cheat. +description: Daftar semua lokasi mesin penjual otomatis, pemain menggunakannya dengan jarak 2 unik. --- Eksterior: diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md index 847ae45559ef..2b244fdcd41f 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md @@ -58,10 +58,11 @@ AddMenuItem(teleportmenu, 1, "Come-a-Lot"); Penjelasan mengenai [AddMenuItem](../scripting/functions/AddMenuItem): -| menuid | menuid dari menu yang dimana item akan ditampilkan | -| ------ | -------------------------------------------------- | -| column | Kolom tempat item akan ditampilkan | -| text | Teks dari item | +| Parameter | Menentukan | +| --------- | -------------------------------------------------- | +| menuid | menuid dari menu yang dimana item akan ditampilkan | +| column | Kolom tempat item akan ditampilkan | +| text | Teks dari item | ## Membuat efek pada item diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md index 63c1623fac71..e24ce5355705 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md @@ -36,13 +36,13 @@ Sistem baru diperkenalkan di SA-MP 0.3a R5 server di update dengan beberapa keun Berikut adalah Functions untuk mengatur dan menerima player variable: -- [SetPVarInt](../scripting/functions/SetPVarInt) Mengatur sebuah integer dari sebuah player variable. -- [GetPVarInt](../scripting/functions/GetPVarInt) Mengambil nilai integer sebelumnya dari sebuah player variable. -- [SetPVarString](../scripting/functions/SetPVarString) Mengatur sebuah string dari sebuah player variable. -- [GetPVarString](../scripting/functions/GetPVarString) Mengambil nilai string sebelumnya dari sebuah player variable. -- [SetPVarFloat](../scripting/functions/SetPVarFloat) Mengatur sebuah float dari sebuah player variable. -- [GetPVarFloat](../scripting/functions/GetPVarFloat) Mengambil nilai float sebelumnya dari sebuah player variable. -- [DeletePVar](../scripting/functions/DeletePVar) Menghapus sebuah player variable. +- [SetPVarInt](../scripting/functions/SetPVarInt): Mengatur sebuah integer dari sebuah player variable. +- [GetPVarInt](../scripting/functions/GetPVarInt): Mengambil nilai integer sebelumnya dari sebuah player variable. +- [SetPVarString](../scripting/functions/SetPVarString): Mengatur sebuah string dari sebuah player variable. +- [GetPVarString](../scripting/functions/GetPVarString): Mengambil nilai string sebelumnya dari sebuah player variable. +- [SetPVarFloat](../scripting/functions/SetPVarFloat): Mengatur sebuah float dari sebuah player variable. +- [GetPVarFloat](../scripting/functions/GetPVarFloat): Mengambil nilai float sebelumnya dari sebuah player variable. +- [DeletePVar](../scripting/functions/DeletePVar): Menghapus sebuah player variable. ```c #define PLAYER_VARTYPE_NONE (0) diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md index bdce1e2a61b3..1c8c41709aea 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md @@ -1,7 +1,6 @@ --- title: Server variable system sidebar_label: Server variable system - description: Server variable system (disingkat, SVar) adalah cara baru untung membuat server variabel dalam cara mudah membuat method yang efisien. --- diff --git a/frontend/i18n/it/docusaurus-plugin-content-docs/current/meta/Contributing.md b/frontend/i18n/it/docusaurus-plugin-content-docs/current/meta/Contributing.md index 677fc187be21..d92129e3b7e6 100644 --- a/frontend/i18n/it/docusaurus-plugin-content-docs/current/meta/Contributing.md +++ b/frontend/i18n/it/docusaurus-plugin-content-docs/current/meta/Contributing.md @@ -1,6 +1,6 @@ --- -titolo: contribuire -descrizione: Come contribuire alla documentazione della Wiki di SA-MP e open.mp +title: contribuire +description: Come contribuire alla documentazione della Wiki di SA-MP e open.mp --- Questa documentazione è open-source per chiunque voglia contribuire! Basta solamente un account [GitHub](https://github.com) e del tempo libero. Non hai nemmeno bisogno di conoscere il linguaggio Git, puoi direttamente contribuire dall'interfaccia web! 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 6e8423e4ab64..4521e501f3d0 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 @@ -185,9 +185,7 @@ Het gebruik van een switch-case in plaats van if-blokken is een geschikte manier :::warning -De dialog van een speler sluit niet automatisch wanneer de gamemode herstart. - -Als een speler reageert op een dialog nadat de server is herstart, zal de server de waarschuwing printen: "Warning: PlayerDialogResponse PlayerId: 0 dialog ID doesn't match last sent dialog ID". +De dialog van een speler sluit niet automatisch wanneer de gamemode herstart. Als een speler reageert op een dialog nadat de server is herstart, zal de server de waarschuwing printen: "Warning: PlayerDialogResponse PlayerId: 0 dialog ID doesn't match last sent dialog ID". ::: 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 83b93b4fe1c6..75a28da1f5da 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 @@ -37,9 +37,7 @@ public OnEnterExitModShop(playerid, enterexit, interiorid) :::warning -Bekende Bug(s): - -- Spelers botsen wanneer ze in dezelfde modshop komen. +Bekende Bug(s): Spelers botsen wanneer ze in dezelfde modshop komen. ::: 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 914fb5c6e492..8761f330faba 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 @@ -9,6 +9,12 @@ tags: [] Deze callback wordt aangeroepen wanneer een gamemode eindigt, via 'gmx', server shutdown, of GameModeExit. +## Returns + +Deze callback behandelt geen returns. + +Wordt altijd als eerste aangeroepen in gamemode. + ## Voorbeelden ```c @@ -29,9 +35,8 @@ Deze functie kan ook gebruikt worden in een filterscript om te detecteren of de :::warning -Bij gebruik van OnGameModeExit in combinatie met het 'rcon gmx' console command, houd er rekening mee dat er een potentieel is voor client bugs. - -Een voorbeeld hiervan is overmatige [RemoveBuildingForPlayer](../functions/RemoveBuildingForPlayer) calls tijdens [OnGameModeInit](OnGameModeInit) wat kan resulteren in een client crash. Deze callback wordt NIET aangeroepen als de server crasht of het proces wordt beëindigd door andere middelen, zoals het Linux kill command of het drukken van de sluit-knop op de Windows console. +- Bij gebruik van OnGameModeExit in combinatie met het 'rcon gmx' console command, houd er rekening mee dat er een potentieel is voor client bugs. Een voorbeeld hiervan is overmatige [RemoveBuildingForPlayer](../functions/RemoveBuildingForPlayer) calls tijdens [OnGameModeInit](OnGameModeInit) wat kan resulteren in een client crash. +- Deze callback wordt NIET aangeroepen als de server crasht of het proces wordt beëindigd door andere middelen, zoals het Linux kill command. ::: 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 3c83d62eed23..2d1f29d29c4a 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 @@ -9,6 +9,12 @@ tags: [] Deze callback wordt getriggerd wanneer de gamemode start. +## Returns + +Deze callback behandelt geen returns. + +Wordt altijd als eerste aangeroepen in gamemode. + ## Voorbeelden ```c diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md index d1c3ccf40754..a7757a6d86c3 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md @@ -19,3 +19,7 @@ public OnNPCSpawn() return 1; } ``` + +## Gerelateerde Callbacks + +- [OnPlayerSpawn](OnPlayerSpawn): Deze callback wordt aangeroepen wanneer een speler spawnt. 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 a267f208bd4a..79c238cf7427 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,8 +34,7 @@ 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/OnPlayerKeyStateChange.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerKeyStateChange.md index 1e58fdbf0cc4..1b05a19d76f2 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerKeyStateChange.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerKeyStateChange.md @@ -86,3 +86,62 @@ if ((newkeys & (KEY_FIRE | KEY_CROUCH)) == (KEY_FIRE | KEY_CROUCH) ``` Voorbeelden met deze macros staan in het origineel en werken 1:1 in het Nederlands. + +## Voorbeelden + +```c +public OnPlayerKeyStateChange(playerid, KEY:newkeys, KEY:oldkeys) +{ + if (PRESSED(KEY_FIRE)) + { + if (IsPlayerInAnyVehicle(playerid)) + { + AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); + } + } + return 1; +} +``` + +```c +public OnPlayerKeyStateChange(playerid, KEY:newkeys, KEY:oldkeys) +{ + if (PRESSED(KEY_JUMP)) + { + new + Float:x, + Float:y, + Float:z; + GetPlayerPos(playerid, x, y, z); + SetPlayerPos(playerid, x, y, z + 10.0); + } + return 1; +} +``` + +```c +new + Float:gPlayerHealth[MAX_PLAYERS]; + +#if !defined INFINITY + #define INFINITY (Float:0x7F800000) +#endif + +public OnPlayerKeyStateChange(playerid, KEY:newkeys, KEY:oldkeys) +{ + if (PRESSED(KEY_ACTION)) + { + // They just pressed the action key, save their + // old health for restoration. + GetPlayerHealth(playerid, gPlayerHealth[playerid]); + SetPlayerHealth(playerid, INFINITY); + } + else if (RELEASED(KEY_ACTION)) + { + // They just let go of action - restore + // their old health again. + SetPlayerHealth(playerid, gPlayerHealth[playerid]); + } + return 1; +} +``` diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md index e44b48bfbe1e..2cbfdeda645c 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md @@ -88,6 +88,7 @@ public OnPlayerUpdate(playerid) :::warning -Deze callback wordt gemiddeld ~30 keer per seconde per speler aangeroepen; gebruik hem alleen waarvoor hij bedoeld is. De frequentie varieert per activiteit (rijden/schieten meer dan idle). +- Deze callback wordt gemiddeld ~30 keer per seconde per speler aangeroepen; gebruik hem alleen waarvoor hij bedoeld is. +- De frequentie varieert per activiteit (rijden/schieten meer dan idle). ::: 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 b1521874d914..e67bac7ee3ba 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 @@ -44,8 +44,10 @@ public OnRconCommand(cmd[]) :::note -- 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. +- 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. ::: diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md index dcda1cc2a473..4aa4a9d161dc 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md @@ -55,7 +55,8 @@ public OnRconLoginAttempt(ip[], password[], success) :::note -Deze callback wordt alleen aangeroepen wanneer /rcon login in-game wordt gebruikt. Deze callback wordt alleen aangeroepen wanneer de speler nog niet is ingelogd. Zodra de speler is ingelogd, wordt [OnRconCommand](OnRconCommand) aangeroepen in plaats daarvan. +- Deze callback wordt alleen aangeroepen wanneer /rcon login in-game wordt gebruikt. +- Deze callback wordt alleen aangeroepen wanneer de speler nog niet is ingelogd. Zodra de speler is ingelogd, wordt [OnRconCommand](OnRconCommand) aangeroepen in plaats daarvan. ::: 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 76300d15a0d0..e26bdc66f572 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 @@ -44,9 +44,7 @@ Fix hier: http://pastebin.com/G81da7N1 :::warning -Bekende Bug(s): - -- Het bekijken van een component in een modshop kan deze callback aanroepen. +Bekende Bug(s): Het bekijken van een component in een modshop kan deze callback aanroepen. ::: diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md index 86c9116ba19b..b296058cf136 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerIp.md @@ -46,3 +46,9 @@ public OnPlayerConnect(playerid) - [GetPlayerName](GetPlayerName) - [GetPlayerPing](GetPlayerPing) - [GetPlayerVersion](GetPlayerVersion) + +## Gerelateerde Callbacks + +- [OnIncomingConnection](../callbacks/OnIncomingConnection): Deze callback wordt aangeroepen wanneer een speler probeert te verbinden met de server. +- [OnPlayerConnect](../callbacks/OnPlayerConnect): Deze callback wordt aangeroepen wanneer een speler met de server verbindt. +- [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect): Deze callback wordt aangeroepen wanneer een speler de server verlaat. 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 2cc7ce453055..2a06b8be8e4f 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 @@ -39,6 +39,10 @@ public OnPlayerUpdate(playerid) 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 + +- [OnPlayerKeyStateChange](../callbacks/OnPlayerKeyStateChange): Deze callback wordt aangeroepen wanneer de status van een ondersteunde toets verandert (ingedrukt/losgelaten). + ## Gerelateerd - [Keys](../resources/keys) diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerState.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerState.md index a9506cd284db..bbabc99768bc 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerState.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerState.md @@ -36,3 +36,7 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) - [GetPlayerSpecialAction](GetPlayerSpecialAction) - [SetPlayerSpecialAction](SetPlayerSpecialAction) - [OnPlayerStateChange](../callbacks/OnPlayerStateChange) + +## Gerelateerde Resources + +- [Player States](../resources/playerstates) diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/fopen.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/fopen.md index 179a0b350f5d..a493fc3af50b 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/fopen.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/functions/fopen.md @@ -32,3 +32,12 @@ if (handle) fclose(handle); } ``` + +## Gerelateerde Functies + +- [fwrite](fwrite): Schrijf tekst naar een bestand. +- [fread](fread): Lees één regel uit een bestand. + +## Gerelateerde Resources + +- [Bestandsmodi](../resources/file-modes) 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 7b7b3e3b1956..a4552f6826b8 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 @@ -34,3 +34,8 @@ if (handle) fclose(handle); } ``` + +## Gerelateerde Functies + +- [fopen](fopen): Een bestand openen (lezen/schrijven). +- [fwrite](fwrite): Schrijf tekst naar een bestand. 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 4c4d37eb2183..f457710ef1b0 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 @@ -28,3 +28,8 @@ if (handle) fclose(handle); } ``` + +## Gerelateerde Functies + +- [fopen](fopen): Een bestand openen (lezen/schrijven). +- [fread](fread): Lees één regel uit een bestand. 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 e9f504805ba1..c4a536a8205f 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 @@ -3,6 +3,8 @@ title: "Cameramodi" sidebar_label: "Cameramodi" --- +## Beschrijving + De volgende cameramodi worden gebruikt door [GetPlayerCameraMode](../functions/GetPlayerCameraMode). Sommige IDs zijn contextafhankelijk of dubbel gebruikt. | ID | Definitie | Naam in gamefiles | Beschrijving | diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/connectionstatus.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/connectionstatus.md index 0476d72fc6f5..910cd3ab8648 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/connectionstatus.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/connectionstatus.md @@ -4,6 +4,8 @@ sidebar_label: "Verbindingsstatus" description: Statussen gebruikt door NetStats_ConnectionStatus. --- +## Beschrijving + Deze statussen worden gebruikt door [NetStats_ConnectionStatus](../functions/NetStats_ConnectionStatus) (RakNet). | ID | Status | Betekenis (beknopt) | diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/doorstates.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/doorstates.md index 3421cce851cc..e1034107ff43 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/doorstates.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/doorstates.md @@ -15,3 +15,7 @@ Deurstatussen worden per deur in 1 byte opgeslagen: bit 0 geopend, bit 1 beschad De bytes (van rechts naar links): 1=motorkap, 2=kofferbak, 3=bestuurdersdeur, 4=passagiersdeur. Zie de Engelse pagina voor de volledige ASCII‑overzichtstabellen en code‑wrapper. + +## Zie ook + +- [Voertuig deurstatus](vehicle-door-status) diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/lightstates.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/lightstates.md index 0d0c9b875604..0449d953b01c 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/lightstates.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/lightstates.md @@ -11,3 +11,7 @@ Gebruikt door [GetVehicleDamageStatus](../functions/GetVehicleDamageStatus) en [ ::: Lichtschade wordt in 1 byte opgeslagen: bit 0 = voor‑links, bit 2 = voor‑rechts, bit 6 = achterlichten. 1 = kapot, 0 = heel. Zie [Light States](/docs/scripting/resources/lightstates) voor volledige voorbeelden en ASCII‑overzichten. + +## Zie ook + +- [Voertuig lichtstatus](vehicle-light-status) diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/panelstates.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/panelstates.md index 2e27c9b3f8c1..d450b3dd89db 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/panelstates.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/panelstates.md @@ -11,3 +11,7 @@ Gebruikt door [GetVehicleDamageStatus](../functions/GetVehicleDamageStatus) en [ ::: Elke nibble (4 bits) slaat een paneel op (auto) of onderdeel (vliegtuig). Waarden: 0 onbeschadigd, 1 gedeukt, 2 loshangend, 3 verwijderd. Niet alle voertuigen ondersteunen alle panelen. Voor details/voorbeelden, zie [Panel States](/docs/scripting/resources/panelstates). + +## Zie ook + +- [Voertuig panelstatus](vehicle-panel-status) diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/tirestates.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/tirestates.md index 294f57b29aff..ce6c2ec50db8 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/tirestates.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/tirestates.md @@ -11,3 +11,7 @@ Gebruikt door [GetVehicleDamageStatus](../functions/GetVehicleDamageStatus) en [ ::: 4‑wielers: 1 nibble (4 bits) voor BR/FR/BL/FL; 2‑wielers: 2 bits (achter/voor). Bit = 1 is lek, 0 is intact. Zie [Tire States](/docs/scripting/resources/tirestates) voor visuele tabellen/voorbeelden. + +## Zie ook + +- [Voertuig bandenstatus](vehicle-tire-status) diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md index 3c0fee39848e..242cd2114503 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md @@ -56,10 +56,11 @@ AddMenuItem(teleportmenu, 1, "Come-a-Lot"); Uitleg [AddMenuItem](../scripting/functions/AddMenuItem): -| menuid | Menu-ID waar het item getoond wordt | -| ------ | ----------------------------------- | -| column | Kolomindex | -| text | Itemtekst | +| Parameter | Betekenis | +| --------- | ----------------------------------- | +| menuid | Menu-ID waar het item getoond wordt | +| column | Kolomindex | +| text | Itemtekst | ## Actie bij selectie diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/stringmanipulation.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/stringmanipulation.md index acf7c77f56c2..e5f0d982d8e4 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/stringmanipulation.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/stringmanipulation.md @@ -62,20 +62,20 @@ new SA-MP heeft limieten per context: -| | | | -| ------------------- | ----------------------------------------------------------------------------- | ---- | -| **Text input** | Chatinvoer | 128 | -| **Text output** | Tekst op het client-scherm | 144 | -| **Name** | Spelersnaam | 24 | -| **Textdraw string** | Tekst in textdraws | 1024 | -| **Dialog info** | Tekst in `DIALOG_STYLE_MSGBOX`, `DIALOG_STYLE_INPUT`, `DIALOG_STYLE_PASSWORD` | 4096 | -| **Dialog caption** | Titel van dialog | 64 | -| **Dialog input** | Invoer bij `DIALOG_STYLE_INPUT` en `DIALOG_STYLE_PASSWORD` | 128 | -| **Dialog column** | Per kolom in `DIALOG_STYLE_TABLIST(_HEADER)` | 128 | -| **Dialog row** | Per rij in `DIALOG_STYLE_TABLIST(_HEADER)` en `DIALOG_STYLE_LIST` | 256 | -| **Chat bubble** | Chat bubble boven nametag | 144 | -| **Menu title** | GTA SA native menu header | 31 | -| **Menu item** | GTA SA native menu item | 31 | +| Type | Beschrijving | Limiet | +| ------------------- | ----------------------------------------------------------------------------- | ------ | +| **Text input** | Chatinvoer | 128 | +| **Text output** | Tekst op het client-scherm | 144 | +| **Name** | Spelersnaam | 24 | +| **Textdraw string** | Tekst in textdraws | 1024 | +| **Dialog info** | Tekst in `DIALOG_STYLE_MSGBOX`, `DIALOG_STYLE_INPUT`, `DIALOG_STYLE_PASSWORD` | 4096 | +| **Dialog caption** | Titel van dialog | 64 | +| **Dialog input** | Invoer bij `DIALOG_STYLE_INPUT` en `DIALOG_STYLE_PASSWORD` | 128 | +| **Dialog column** | Per kolom in `DIALOG_STYLE_TABLIST(_HEADER)` | 128 | +| **Dialog row** | Per rij in `DIALOG_STYLE_TABLIST(_HEADER)` en `DIALOG_STYLE_LIST` | 256 | +| **Chat bubble** | Chat bubble boven nametag | 144 | +| **Menu title** | GTA SA native menu header | 31 | +| **Menu item** | GTA SA native menu item | 31 | ## Waarden toekennen 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 da262d20e9f3..e50bc0387782 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 @@ -2,7 +2,7 @@ title: AddMenuItem sidebar_label: AddMenuItem description: Dodaje element do konkretnego menu. -Tags: ["menu"] +tags: ["menu"] --- ## 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 069be51ceba9..707ae4d253ee 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 @@ -39,7 +39,8 @@ public OnGameModeInit() :::note -`useartwork` musi być włączone w ustawieniach serwera, aby ta funkcja działała. Jeżeli ustawiony jest konkretny wirtualny świat, to gracz pobierze obiekty w momencie wejścia do niego. +- `useartwork` musi być włączone w ustawieniach serwera, aby ta funkcja działała. +- Jeżeli ustawiony jest konkretny wirtualny świat, to gracz pobierze obiekty w momencie wejścia do niego. ::: 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 8cf3087e5f07..a7dbbd746d6e 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 @@ -41,7 +41,8 @@ public OnGameModeInit() :::note -useartwork musi być włączone w ustawieniach serwera, aby ta funkcja działała. Jeżeli ustawiony jest konkretny wirtualny świat, to gracz pobierze obiekty w momencie wejścia do niego. +- useartwork musi być włączone w ustawieniach serwera, aby ta funkcja działała. +- Jeżeli ustawiony jest konkretny wirtualny świat, to gracz pobierze obiekty w momencie wejścia do niego. ::: diff --git a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md index d0287a1a84fa..c996b2f66c45 100644 --- a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md +++ b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md @@ -32,7 +32,7 @@ public OnGameModeInit ( ) { gVehicleId = CreateVehicle(510, 0.0. 0.0, 15.0, 5, 0, 120); // Tworzymy pojazd. gVehicle3dText[gVehicleId] = Create3DTextLabel("Przykładowy tekst", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1); - Attach3DTextLabelToVehicle(gVehicle3dText[gVehicleId], vehicle_id, 0.0, 0.0, 2.0); // Przyczepiamy tekst 3D do pojazdu. + Attach3DTextLabelToVehicle(gVehicle3dText[gVehicleId], gVehicleId, 0.0, 0.0, 2.0); // Przyczepiamy tekst 3D do pojazdu. } public OnGameModeExit ( ) diff --git a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/acos.md b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/acos.md index 2e97545d2763..736e1547a74c 100644 --- a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/acos.md +++ b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/acos.md @@ -1,7 +1,7 @@ --- title: acos sidebar_label: acos -description: . +description: Podaje odwróconą wartość arcus cosinusa w radianach. tags: [] --- diff --git a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/asin.md b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/asin.md index 8f0553f946a9..936889838bac 100644 --- a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/asin.md +++ b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/asin.md @@ -1,7 +1,7 @@ --- title: asin sidebar_label: asin -description: . +description: Podaje odwróconą wartość arcus sinusa w radianach. tags: [] --- diff --git a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/atan2.md b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/atan2.md index 750cc94a7208..93a155fb397e 100644 --- a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/atan2.md +++ b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/atan2.md @@ -1,7 +1,7 @@ --- title: atan2 sidebar_label: atan2 -description: . +description: Podaje odwróconą wartość arcus tangensa z y/x w radianach. tags: [] --- diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md index 3ae57d5470fa..0bd9d452fbda 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientCheckResponse.md @@ -51,3 +51,7 @@ Esse callback é usado somente em filterscripts. ## Funções Relacionadas - [SendClientCheck](../functions/SendClientCheck): Realiza uma checagem de memória no cliente. + +## Recursos relacionados + +- [opcodes](../resources/opcodes) 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 1c1f4309ce21..c9c137ea794a 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 @@ -27,7 +27,9 @@ 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 callback não será chamada se o servidor crashar ou o processor ser finalizado por outros meios, como usando o comandos do Linux ou pressionando o botão de fechar no console do Windows. +- 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 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/OnNPCSpawn.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md index ef65070aea15..8e3a649bbc30 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md @@ -19,3 +19,16 @@ public OnNPCSpawn() return 1; } ``` + +## Funções Relacionadas + +- [NPC_Respawn](../functions/NPC_Respawn): Reaparece um NPC morto +- [NPC_SetHealth](../functions/NPC_SetHealth): Define a saúde de NPC +- [NPC_SetWeapon](../functions/NPC_SetWeapon): Defina a arma de NPC + +## Callbacks Relacionadas + +- [OnNPCCreate](OnNPCCreate): Chamado quando um NPC é criado +- [OnNPCRespawn](OnNPCRespawn): Chamado quando um NPC reaparece +- [OnNPCDeath](OnNPCDeath): Chamado quando um NPC morre +- [OnPlayerSpawn](OnPlayerSpawn): Chamado quando um jogador surge 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 30c5e243603f..9287278cb835 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 @@ -46,3 +46,7 @@ Há atualmente apenas um 'source' (0 - CLICK_SOURCE_SCOREBOARD). A existência d ## Funções Relacionadas - [OnPlayerClickTextDraw](OnPlayerClickTextDraw): Chamado quando um jogador clica em uma TextDraw. + +## Recursos relacionados + +- [Click Sources](../resources/clicksources) 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 328e8be83a89..994666c7c87e 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 @@ -62,7 +62,17 @@ Você PRECISA verificar se 'killerid' é valido (não INVALID_PLAYER_ID) antes d ::: +## Callbacks Relacionadas + +Os seguintes callbacks podem ser úteis, pois estão relacionados a este callback de alguma forma. + +- [OnPlayerSpawn](OnPlayerSpawn): Este evento é chamado quando um jogador spawna. + ## Related Functions - [SendDeathMessage](../functions/SendDeathMessage): Adiciona a kill para a lista de mortes. - [SetPlayerHealth](../functions/SetPlayerHealth): Define a vida de um jogador. + +## Recursos relacionados + +- [Arma IDs](../resources/weaponids) 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 71f37c5a760e..0e08d00566c7 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 @@ -96,3 +96,7 @@ Ao usar 'EDIT_RESPONSE_UPDATE' fique ciente que esta callback não será chamada - [CreateObject](../functions/CreateObject): Cria um objeto. - [DestroyObject](../functions/DestroyObject): Destroi um objeto. - [MoveObject](../functions/MoveObject): Move um objeto. + +## Recursos relacionados + +- [Tipos de Resposta da Edição de Objeto](../resources/objecteditionresponsetypes) diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerFinishedDownloading.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerFinishedDownloading.md index f632a6a8cbc4..3d9985e98df2 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerFinishedDownloading.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerFinishedDownloading.md @@ -38,4 +38,9 @@ Esta callback é chamada toda vez que um jogador muda de munda virtual, mesmo qu ::: -## Funções Relacionadas +## Callbacks Relacionadas + +Os seguintes callbacks podem ser úteis, pois estão relacionados a este callback de alguma forma. + +- [OnPlayerConnect](OnPlayerConnect): Este callback é chamado quando um jogador se conecta ao servidor. +- [OnPlayerDisconnect](OnPlayerDisconnect): Este callback é chamado quando um jogador sai do servidor. 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 41c5cd339afc..f782ce4ca38c 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 @@ -5,8 +5,6 @@ description: Esta callback é chamada quando um jogador causa danos a algum joga tags: ["player"] --- - - ## Descrição Esta callback é chamada quando um jogador causa danos a algum jogador. @@ -60,3 +58,14 @@ public OnPlayerGiveDamage(playerid, damagedid, Float:amount, WEAPON:weaponid, bo Se deseja impedir que um determinado player cause dano a outro use SetPlayerTeam. ::: + +## Callbacks Relacionadas + +Os seguintes callbacks podem ser úteis, pois estão relacionados a este callback de alguma forma. + +- [OnPlayerTakeDamage](OnPlayerTakeDamage): Esta callback é chama quando algum jogador recebe dano. +- [OnPlayerWeaponShot](OnPlayerWeaponShot): Essa callback é executada todas as vezes que o player realiza um disparo com uma arma. + +## Recursos relacionados + +- [Partes do Corpo](../resources/bodyparts) 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 ec249ebd7f18..a1ccdb8cff0e 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 @@ -64,3 +64,7 @@ Esta função não é chamada se o ator é posto como vulnerável (QUE É O PADR - [OnActorStreamOut](OnActorStreamOut): Chamada quando um ator é removido da área visível por um jogador. - [OnPlayerStreamIn](OnPlayerStreamIn): Chamada quando um jogador aparece na área visível de outro jogador. + +## Recursos relacionados + +- [Partes do Corpo](../resources/bodyparts) diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveRaceCheckpoint.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveRaceCheckpoint.md index f7998044257c..d49294657660 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveRaceCheckpoint.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerLeaveRaceCheckpoint.md @@ -31,11 +31,19 @@ public OnPlayerLeaveRaceCheckpoint(playerid) -## Related Functions - -- [SetPlayerCheckpoint](../functions/SetPlayerCheckpoint): Create a checkpoint for a player. -- [DisablePlayerCheckpoint](../functions/DisablePlayerCheckpoint): Disable the player's current checkpoint. -- [IsPlayerInCheckpoint](../functions/IsPlayerInCheckpoint): Check if a player is in a checkpoint. -- [SetPlayerRaceCheckpoint](../functions/SetPlayerRaceCheckpoint): Create a race checkpoint for a player. -- [DisablePlayerRaceCheckpoint](../functions/DisablePlayerRaceCheckpoint): Disable the player's current race checkpoint. -- [IsPlayerInRaceCheckpoint](../functions/IsPlayerInRaceCheckpoint): Check if a player is in a race checkpoint. +## Callbacks Relacionadas + +Os seguintes callbacks podem ser úteis, pois estão relacionados a este callback de alguma forma. + +- [OnPlayerEnterCheckpoint](OnPlayerEnterCheckpoint): Chamado quando um jogador entra em um checkpoint. +- [OnPlayerLeaveCheckpoint](OnPlayerLeaveCheckpoint): Chamado quando um jogador sai de um checkpoint. +- [OnPlayerEnterRaceCheckpoint](OnPlayerEnterRaceCheckpoint): Chamado quando um jogador entra em um checkpoint de corrida. + +## Funções Relacionadas + +- [SetPlayerCheckpoint](../functions/SetPlayerCheckpoint): Cria o checkpoint para um jogador. +- [DisablePlayerCheckpoint](../functions/DisablePlayerCheckpoint): Desativa o atual checkpoint do jogador. +- [IsPlayerInCheckpoint](../functions/IsPlayerInCheckpoint): Verifica se o jogador está em checkpoint. +- [SetPlayerRaceCheckpoint](../functions/SetPlayerRaceCheckpoint): Cria um checkpoint de corrida. +- [DisablePlayerRaceCheckpoint](../functions/DisablePlayerRaceCheckpoint): Desativa o atual checkpoint de corrida do jogador. +- [IsPlayerInRaceCheckpoint](../functions/IsPlayerInRaceCheckpoint): Verifica se o jogador está em um checkpoint de corrida. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md index 52375652991f..b7f7009c5042 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerRequestDownload.md @@ -62,3 +62,7 @@ public OnPlayerRequestDownload(playerid, type, crc) - [FindModelFileNameFromCRC](../functions/FindModelFileNameFromCRC): Encontra um arquivo de modelo existente de skin customizada ou objeto simples. - [FindTextureFileNameFromCRC](../functions/FindTextureFileNameFromCRC): Encontra um arquivo de textura existente de skin customizada ou objeto simples. - [RedirectDownload](../functions/RedirectDownload): Redirecione o download AddCharModel ou AddSimpleModel personalizado do jogador para uma página da Web HTTP específica. + +## Recursos relacionados + +- [Tipos de Solicitação de Download](../resources/download-requests) 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 8192be71af01..3e7786f10159 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 @@ -49,3 +49,7 @@ public OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:f ## Funções Relacionadas - [SelectObject](../functions/SelectObject): Seleciona um objeto. + +## Recursos relacionados + +- [Tipos de Seleção de Objeto](../resources/selectobjecttypes) 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 65c7df6bded5..01c56f4626d4 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 @@ -39,6 +39,12 @@ public OnPlayerStateChange(playerid, PLAYER_STATE:newstate, PLAYER_STATE:oldstat +## Callbacks Relacionadas + +Os seguintes callbacks podem ser úteis, pois estão relacionados a este callback de alguma forma. + +- [OnPlayerInteriorChange](OnPlayerInteriorChange): Chamada quando um jogador muda de interior. + ## Funções Relacionadas As seguintes funções podem ser úteis, pois estão relacionadas a esta callback. @@ -46,3 +52,7 @@ As seguintes funções podem ser úteis, pois estão relacionadas a esta callbac - [GetPlayerState](../functions/GetPlayerState): Obtém o estado atual do jogador. - [GetPlayerSpecialAction](../functions/GetPlayerSpecialAction): Obtém a ação especial atual do jogador. - [SetPlayerSpecialAction](../functions/SetPlayerSpecialAction): Define uma ação especial a um jogador. + +## Recursos relacionados + +- [Estados do jogador](../resources/playerstates) 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 b40ce8668754..777189f149c3 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 @@ -75,3 +75,13 @@ O ID da arma retornará 37 (Lança Chamas) para qualquer fonte que utilize fogo GetPlayerHealth e 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. ::: + +## Callbacks Relacionadas + +Os seguintes callbacks podem ser úteis, pois estão relacionados a este callback de alguma forma. + +- [OnPlayerWeaponShot](OnPlayerWeaponShot): Essa callback é executada todas as vezes que o player realiza um disparo com uma arma. + +## Recursos relacionados + +- [Partes do Corpo](../resources/bodyparts) diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md index efc2b01432f6..67e6f930aac8 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md @@ -83,6 +83,7 @@ public OnPlayerUpdate(playerid) :::warning -Essa callback é executada, aproximadamente, 30 vezes por segundo, por jogador; Use a mesma somente caso saiba o que está fazendo (ou talvez seja mais importante saber para que ela NÃO DEVE SER USADA). A frequência que essa callback é executada varia dependendo da situação e do que o player está fazendo. Dirigir ou participar de um tiroteio vai fazer com que os updates aumentem drasticamente, diferente se o jogador estiver parado... +- Essa callback é executada, aproximadamente, 30 vezes por segundo, por jogador; Use a mesma somente caso saiba o que está fazendo (ou talvez seja mais importante saber para que ela NÃO DEVE SER USADA). +- A frequência que essa callback é executada varia dependendo da situação e do que o player está fazendo. Dirigir ou participar de um tiroteio vai fazer com que os updates aumentem drasticamente, diferente se o jogador estiver parado... ::: 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 fbd0a0b333c0..289f6278e27a 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 @@ -68,3 +68,7 @@ Bug(s) Conhecidos: ## Funções Relacionadas - [GetPlayerLastShotVectors](../functions/GetPlayerLastShotVectors): Retorna o vetor do último disparo realizado pelo jogador. + +## Recursos relacionados + +- [Tipos de Hit](../resources/bullethittypes) 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 030822b6d440..26119bf3fee7 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 @@ -44,7 +44,10 @@ public OnRconCommand(cmd[]) :::note -"/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. +- "/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. ::: 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 c83b6f60b98f..ab0d3b71c788 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 @@ -46,7 +46,8 @@ 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. +- 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. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md index bc2ec523f5df..16a94a71ab75 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleStreamIn.md @@ -5,8 +5,6 @@ description: Essa callback é chamada quando um veículo entra na área visível tags: ["vehicle"] --- - - ## Descrição Essa callback é chamada quando um veículo entra na área visível de um jogador. 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 907f38c3381e..66eca5504f20 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 @@ -54,3 +54,8 @@ A identificação máxima da classe é 319 (começando em 0, portanto, um total - [AddPlayerClassEx](AddPlayerClassEx): Adiciona uma classe com uma equipe padrão. - [SetSpawnInfo](SetSpawnInfo): Define a configuração de spawn para um jogador. - [SetPlayerSkin](SetPlayerSkin): Define a skin (personagem) de um jogador. + +## Recursos relacionados + +- [IDs de Skins](../resources/skins) +- [IDs de Armas](../resources/weaponids) 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 97066ef22932..f9866925a17f 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 @@ -58,3 +58,8 @@ A identificação máxima da classe é 319 (começando em 0, portanto, um total - [SetSpawnInfo](SetSpawnInfo): Define a configuração de spawn para um jogador. - [SetPlayerTeam](SetPlayerTeam): Define o time de um jogador. - [SetPlayerSkin](SetPlayerSkin): Define a skin (personagem) de um jogador. + +## Recursos relacionados + +- [IDs de Skins](../resources/skins) +- [IDs de Armas](../resources/weaponids) 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 d3ed49be43bd..ebc040b51c97 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 @@ -52,3 +52,7 @@ Esta função não retorna um pickup ID que você pode usar, por exemplo, em OnP - [CreatePickup](CreatePickup): Cria um pickup. - [DestroyPickup](DestroyPickup): Destrói um pickup. - [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup): É chamado quando um jogador pega num pickup. + +## Recursos relacionados + +- [Pickup IDs](../resources/pickupids) 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 8311239e2f49..9d6212c2c2ff 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 @@ -42,3 +42,13 @@ public OnGameModeInit() - [AddStaticVehicleEx](AddStaticVehicleEx): Adiciona um veículo fixo com tempo de respawn específico. - [CreateVehicle](CreateVehicle): Cria um veículo. - [DestroyVehicle](DestroyVehicle): Destrói um veículo. + +## Callbacks Relacionadas + +- [OnVehicleSpawn](../callbacks/OnVehicleSpawn): Chamada quando um veículo reaparece. +- [OnVehicleSirenStateChange](../callbacks/OnVehicleSirenStateChange): Chamando quando um veículo alterna a sirene ligada/desligada. + +## Recursos relacionados + +- [Vehicle Models](../resources/vehicleid): Lista abrangente de todos os modelos de veículos disponíveis no jogo. +- [Vehicle Colour IDs](../resources/vehiclecolorid): Lista de todos os IDs de cores de veículos. 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 7decfe2320e9..60b917a58024 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 @@ -43,3 +43,13 @@ public OnGameModeInit() - [AddStaticVehicle](AddStaticVehicle): Adiciona um veículo fixo. - [CreateVehicle](CreateVehicle): Cria um veículo. + +## Callbacks Relacionadas + +- [OnVehicleSpawn](../callbacks/OnVehicleSpawn): Chamada quando um veículo reaparece. +- [OnVehicleSirenStateChange](../callbacks/OnVehicleSirenStateChange): Chamando quando um veículo alterna a sirene ligada/desligada. + +## Recursos relacionados + +- [Vehicle Models](../resources/vehicleid): Lista abrangente de todos os modelos de veículos disponíveis no jogo. +- [Vehicle Colour IDs](../resources/vehiclecolorid): Lista de todos os IDs de cores de veículos. 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 b0c3c84a4c51..a9182b1ff4f1 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 @@ -60,3 +60,7 @@ Usar um ID de componente inválido causa um crash no jogador. (Corrigido em open - [GetVehicleComponentType](GetVehicleComponentType): Verifica o tipo de componente pelo ID. - [OnVehicleMod](../callbacks/OnVehicleMod): É chamado quando o veículo é modificado/tem componentes. - [OnEnterExitModShop](../callbacks/OnEnterExitModShop): É chamado quando um veículo entra ou sai de uma loja de tunning. + +## Recursos relacionados + +- [Componente do carro IDs](../resources/carcomponentid) 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 7c634ec7e920..c0b93c31c154 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 @@ -49,3 +49,7 @@ Uma biblioteca de animação inválida irá crashar o jogo do jogador. (Corrigid - [ClearAnimations](ClearAnimations): Limpe qualquer animação aplicada a um ator. - [SetPlayerSpecialAction](SetPlayerSpecialAction): Define uma ação especial a um jogador. + +## Recursos relacionados + +- [Animações](../resources/animations) diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md index 9baea29cab91..f995404f530d 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md @@ -32,7 +32,7 @@ public OnGameModeInit ( ) { gVehicleId = CreateVehicle(510, 0.0. 0.0, 15.0, 5, 0, 120); // Criando o veículo. gVehicle3dText[gVehicleId] = Create3DTextLabel("Exemplo Texto", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1); - Attach3DTextLabelToVehicle(gVehicle3dText[gVehicleId], vehicle_id, 0.0, 0.0, 2.0); // Anexando a TextLabel ao veículo. + Attach3DTextLabelToVehicle(gVehicle3dText[gVehicleId], gVehicleId, 0.0, 0.0, 2.0); // Anexando a TextLabel ao veículo. } public OnGameModeExit ( ) 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 a812bfa66bb1..439bfe822ad3 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 @@ -44,3 +44,8 @@ Alguns veículos apenas possuem uma cor primária e outros não podem ter a cor - [ChangeVehiclePaintjob](ChangeVehiclePaintjob): Mude o paintjob de um veículo. - [OnVehicleRespray](../callbacks/OnVehicleRespray): É chamado quando um veículo é pintado (Pay'n'Spray). + +## Recursos relacionados + +- [Vehicle Color IDs](../resources/vehiclecolorid) +- [Original Car Colors](../resources/original-car-colors) 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 da56338d2dce..10d5d71aa878 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 @@ -36,3 +36,7 @@ ChangeVehiclePaintjob(GetPlayerVehicleID(playerid), rand); // Altera o paintjob - [ChangeVehicleColor](ChangeVehicleColor): Define a cor de um veículo. - [OnVehiclePaintjob](../callbacks/OnVehiclePaintjob): É chamado quando o paintjob de um veículo é alterado. + +## Recursos relacionados + +- [Paintjobs](../resources/paintjobs) 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 67545a7bf83a..0e680e98c34e 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 @@ -58,9 +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 também. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md index 21fe496bb2ae..c187f5042de1 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md @@ -47,6 +47,12 @@ Textdraws de jogador são automaticamente destruídos quando um jogador se desco ::: +:::tip + +Recomenda-se usar números WHOLE em vez de posições decimais ao criar desenhos de texto para garantir um design de resolução amigável. + +::: + :::warning Códigos de mapeamento de teclas do teclado (como `~k~~VEHICLE_ENTER_EXIT~`) não funcionam além do 255º caractere. 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 e313e2d5af95..3001f3e5ec81 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 @@ -9,6 +9,10 @@ tags: ["interior"] Desativa todas as entradas e saídas de interiores no jogo (as setas amarelas nas portas). +## Retornos + +Esta função sempre retorna **true**. + ## Exemplos ```c diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md index ada0e5a31916..0b7ccc34afa2 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md @@ -56,8 +56,7 @@ Causa crash se receber um ID de menu inválido. (Corrigido em open.mp) :::note -- A linha é desativada para TODOS os jogadores -- Não existe função para desativar linha para um jogador específico. Soluções alternativas incluem criar menus diferentes ou um menu por jogador +A linha é desativada para TODOS os jogadores Não existe função para desativar linha para um jogador específico. Soluções alternativas incluem criar menus diferentes ou um menu por jogador ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DisableNameTagLOS.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DisableNameTagLOS.md index 04d6cdbb4fd9..9d03d77badfa 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DisableNameTagLOS.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/DisableNameTagLOS.md @@ -9,6 +9,10 @@ tags: [] Desativa a verificação de linha de visão para nametags, fazendo com que os nomes dos jogadores fiquem visíveis mesmo quando obstruídos por objetos. +## Retornos + +Esta função não retorna nenhum valor específico. + ## Exemplos ```c diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md index c95c85208a45..7b7c91a4e85a 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md @@ -38,8 +38,7 @@ Esta função foi removida em SA-MP 0.3. :::note -- O estouro de pneus está habilitado por padrão. -- Se quiser desativar o estouro de pneus, você terá que criar um script manualmente usando [OnVehicleDamageStatusUpdate](../callbacks/OnVehicleDamageStatusUpdate). +O estouro de pneus está habilitado por padrão. Se quiser desativar o estouro de pneus, você terá que criar um script manualmente usando [OnVehicleDamageStatusUpdate](../callbacks/OnVehicleDamageStatusUpdate). ::: 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 25bb57c6ea57..6dad4ec44f77 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 @@ -9,6 +9,10 @@ tags: ["vehicle"] 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!). +## Retornos + +Esta função não retorna nenhum valor específico. + ## Exemplos ```c diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md index 8202a9406312..60f695b7a771 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md @@ -9,6 +9,10 @@ tags: [] Encerra o atual gamemode. +## Retornos + +Esta função não retorna nenhum valor específico. + ## Exemplos ```c @@ -19,3 +23,9 @@ if (OneTeamHasWon) ``` ## Funções Relacionadas + +- [SetModeRestartTime](SetModeRestartTime): Define o atraso entre o carregamento dos scripts principais, em segundos. + +## Callbacks Relacionadas + +- [OnGameModeExit](../callbacks/OnGameModeExit): Chamado quando um gamemode é encerrado. 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 d20ccb75328c..b2d397a78372 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 @@ -65,3 +65,7 @@ Existe um limite de 1024 gangzones. Colocar parâmetros na ordem errada resulta - [GangZoneFlashForAll](GangZoneFlashForAll): Faz uma gangzone piscar para todos os jogadores. - [GangZoneStopFlashForPlayer](GangZoneStopFlashForPlayer): Pare uma Gangzone de piscar para um jogador. - [GangZoneStopFlashForAll](GangZoneStopFlashForAll): Pare uma Gangzone de piscar para todos os jogadores. + +## Editores de GangZone + +- [Prineside DevTools GangZone Editor](https://dev.prineside.com/en/gtasa_gangzone_editor/) diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectType.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectType.md index 01f9a28d97c3..175cc71c2546 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectType.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectType.md @@ -1,7 +1,7 @@ --- title: GetObjectType sidebar_label: GetObjectType -description: "Obtenha o tipo de um objeto. (global ou jogador)" +description: "Obtenha o tipo de um objeto (global ou jogador)." tags: ["object"] --- 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 3c0c40d9445b..986baa16e8b5 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 @@ -56,8 +56,17 @@ public OnPlayerUpdate(playerid) :::warning -Apenas a FUNÇÃO das teclas pode ser detectada; não as teclas reais. Por exemplo, não é possivel detectar se um jogador pressiona ESPAÇO, mas você pode detectar se ele pressiona SPRINT (que pode ser mapeado(atribuído/vinculado) a QUALQUER tecla (mas é espaço por padrão)). A partir da atualização 0.3.7, as teclas "A" e "D" não são reconhecidas quando está em um veículo. No entanto, as teclas "W" e "S" podem ser detectadas com o parâmetro "keys". +- Apenas a FUNÇÃO das teclas pode ser detectada; não as teclas reais. Por exemplo, não é possivel detectar se um jogador pressiona ESPAÇO, mas você pode detectar se ele pressiona SPRINT (que pode ser mapeado(atribuído/vinculado) a QUALQUER tecla (mas é espaço por padrão)). +- A partir da atualização 0.3.7, as teclas "A" e "D" não são reconhecidas quando está em um veículo. No entanto, as teclas "W" e "S" podem ser detectadas com o parâmetro "keys". ::: ## Funções Relacionadas + +## Callbacks Relacionadas + +- [OnPlayerKeyStateChange](../callbacks/OnPlayerKeyStateChange): Esta callback é chamada quando o estado de qualquer tecla suportada muda (pressionado/solto) + +## Recursos relacionados + +- [Teclas](../resources/keys) 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 710ae57bcaa7..7af8243a229a 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 @@ -41,7 +41,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -Retorna o novo skin depois que [SetSpawnInfo](SetSpawnInfo) é chamado, mas antes que o jogador realmente reapareça para obter o novo skin. Retorna a skin antiga se o jogador foi gerado através da função [SpawnPlayer](SpawnPlayer). +- Retorna o novo skin depois que [SetSpawnInfo](SetSpawnInfo) é chamado, mas antes que o jogador realmente reapareça para obter o novo skin. +- Retorna a skin antiga se o jogador foi gerado através da função [SpawnPlayer](SpawnPlayer). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md index 728fd5d8eb6f..86dd2235b633 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md @@ -38,7 +38,8 @@ public OnPlayerUpdate(playerid) :::warning -Não funciona para joypads/controladores e após uma certa distância. Não funciona para o rifle de precisão, pois não trava em nada e, como tal, não pode e não irá devolver um jogador. +- Não funciona para joypads/controladores e após uma certa distância. +- Não funciona para o rifle de precisão, pois não trava em nada e, como tal, não pode e não irá devolver um jogador. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md index 46e7404e28d7..abd5302ae401 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md @@ -35,7 +35,8 @@ public OnPlayerUpdate(playerid) :::warning -Não funciona para joypads/controladores e após uma certa distância. Não funciona para o rifle de precisão, pois não trava em nada e, como tal, não pode e não irá devolver um jogador. +- Não funciona para joypads/controladores e após uma certa distância. +- Não funciona para o rifle de precisão, pois não trava em nada e, como tal, não pode e não irá devolver um jogador. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeaponData.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeaponData.md index 8be608120177..fed6c541b221 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeaponData.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeaponData.md @@ -1,7 +1,7 @@ --- title: GetPlayerWeaponData sidebar_label: GetPlayerWeaponData -description: "Pegue a arma e a munição no slot de arma de um jogador específico (por exemplo," +description: "Pegue a arma e a munição no slot de arma de um jogador específico (por exemplo, a arma no slot 'SMG')." tags: ["player"] --- diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md index 3cdedec10ee1..2409727e677f 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md @@ -30,11 +30,9 @@ O estado das portas do veículo é armazenado nas variáveis especificadas. Os valores retornados em cada variável são os seguintes: -**-1**: Estado da porta não definido - -**1**: Aberto - -**0**: Fechado +- **-1**: Estado da porta não definido +- **1**: Aberto +- **0**: Fechado ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md index c29073568703..df3078a62084 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md @@ -30,11 +30,9 @@ O estado das janelas do veículo é armazenado nas variáveis especificadas. Os valores retornados em cada variável são os seguintes: -**-1**: Estado da janela não definido (geralmente fechado, a menos que definido explicitamente como -1) - -**0**: Aberto - -**1**: Fechado +- **-1**: Estado da janela não definido (geralmente fechado, a menos que definido explicitamente como -1) +- **0**: Aberto +- **1**: Fechado ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsEx.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsEx.md index f4888c5a42be..b9be0ce45cc3 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsEx.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsEx.md @@ -11,15 +11,15 @@ tags: ["vehicle"] Obtém os parâmetros de um veículo. | Nome | Descrição | -| ---------- | ------------------------------------------------------------------- | -| vehicleid | O ID do veículo do qual obter os parâmetros. | -| &engine | Obtenha o status do motor. Se for 1, o motor está funcionando.. | -| &lights | Obtenha o estado das luzes do veículo. Se 1 as luzes estão acesas. | +| ---------- | ------------------------------------------------------------------------------ | +| vehicleid | O ID do veículo do qual obter os parâmetros. | +| &engine | Obtenha o status do motor. Se for 1, o motor está funcionando. | +| &lights | Obtenha o estado das luzes do veículo. Se 1 as luzes estão acesas. | | &alarm | Obtenha o estado de alarme do veículo. Se for 1, o alarme está (ou estava) soando. | -| &doors | Obtenha o status de bloqueio das portas. Se 1 as portas estão trancadas. | -| &bonnet | Obtenha o status do capô/capô. Se 1, está aberto. | -| &boot | Obtenha o status de inicialização/tronco. 1 significa que está aberto. | -| &objective | Obtenha o status do objetivo. 1 significa que o objetivo está ativado. | +| &doors | Obtenha o status de bloqueio das portas. Se 1 as portas estão trancadas. | +| &bonnet | Obtenha o status do capô/capô. Se 1, está aberto. | +| &boot | Obtenha o status de inicialização/tronco. 1 significa que está aberto. | +| &objective | Obtenha o status do objetivo. 1 significa que o objetivo está ativado. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md index 63a50ea3d738..ce1ce24b9739 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md @@ -29,7 +29,9 @@ Envia uma solicitação HTTP encadeada. #define HTTP_GET (HTTP_METHOD:1) // Envia uma solicitação HTTP normal. #define HTTP_POST (HTTP_METHOD:2) // Envia uma solicitação HTTP com dados POST. #define HTTP_HEAD (HTTP_METHOD:3) // Envia uma solicitação HTTP normal, mas ignora quaisquer dados de resposta - retornando apenas o código de resposta. +``` +```c // Códigos de resposta de erro HTTP // Esses códigos complementam os códigos de resposta HTTP comuns retornados em 'response_code' #define HTTP_ERROR_BAD_HOST (HTTP_ERROR:1) diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/HasObjectCameraCollision.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/HasObjectCameraCollision.md index e7bb2f7d3686..3e19c225f036 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/HasObjectCameraCollision.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/HasObjectCameraCollision.md @@ -1,7 +1,7 @@ --- title: HasObjectCameraCollision sidebar_label: HasObjectCameraCollision -description: "Verifica se um objeto tem colisão de câmera habilitada. (SetObjectNoCameraCollision)" +description: "Verifica se um objeto tem colisão de câmera habilitada (SetObjectNoCameraCollision)." tags: ["object"] --- diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/HasPlayerObjectCameraCollision.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/HasPlayerObjectCameraCollision.md index 1acbedf4f7e5..dee6e24e5884 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/HasPlayerObjectCameraCollision.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/HasPlayerObjectCameraCollision.md @@ -1,7 +1,7 @@ --- title: HasPlayerObjectCameraCollision sidebar_label: HasPlayerObjectCameraCollision -description: "Verifica se um objeto do jogador tem colisão de câmera habilitada. (SetPlayerObjectNoCameraCollision)" +description: "Verifica se um objeto do jogador tem colisão de câmera habilitada (SetPlayerObjectNoCameraCollision)." tags: ["player", "object", "playerobject"] --- 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 2d06e6a0e805..8173705c8b29 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 @@ -9,6 +9,10 @@ tags: ["vehicle"] 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. +## Retornos + +Esta função sempre retorna **true**. + ## Exemplos ```c 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 cf75c233d9ec..e4fbe67c1b6e 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,8 +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. ::: 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 7904621ee0eb..3d5be94af885 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,7 +38,7 @@ 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 em textdraws. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/RepairVehicle.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/RepairVehicle.md index 835979c3b25b..b2a9ead12002 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/RepairVehicle.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/RepairVehicle.md @@ -1,7 +1,7 @@ --- title: RepairVehicle sidebar_label: RepairVehicle -description: "Repara totalmente um veículo, incluindo danos visuais (colisões, amassados, arranhões, pneus estourados, etc." +description: "Repara totalmente um veículo, incluindo danos visuais (colisões, amassados, arranhões, pneus estourados, etc.)." tags: ["vehicle"] --- 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 0f8e6497268a..923547036b61 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 @@ -50,7 +50,8 @@ O hash retornado tem preenchimento zero (ou seja, possível prefixo 00ABCD123... :::tip -O salt é anexado ao final da senha, o que significa que a senha 'foo' e o salt 'bar' formariam 'foobar'. O salt deve ser aleatório, único para cada jogador e pelo menos tão longo quanto a senha com hash. Deve ser armazenado junto com o hash real na conta do jogador. +- O salt é anexado ao final da senha, o que significa que a senha 'foo' e o salt 'bar' formariam 'foobar'. +- O salt deve ser aleatório, único para cada jogador e pelo menos tão longo quanto a senha com hash. Deve ser armazenado junto com o hash real na conta do jogador. ::: 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 7e0fb2258e67..c7a2e277a8cc 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 @@ -39,7 +39,9 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::tip -As mensagens de morte podem ser apagadas usando um jogador válido ID para 'playerid' que não esteja conectado. Para mostrar uma mensagem de morte para apenas um jogador, use [SendDeathMessageToPlayer](SendDeathMessageToPlayer). Você pode usar NPCs para criar seus próprios motivos de morte personalizados. +- As mensagens de morte podem ser apagadas usando um jogador válido ID para 'playerid' que não esteja conectado. +- Para mostrar uma mensagem de morte para apenas um jogador, use [SendDeathMessageToPlayer](SendDeathMessageToPlayer). +- Você pode usar NPCs para criar seus próprios motivos de morte personalizados. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md index 548dcd344778..4f4b8b6a0434 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md @@ -39,7 +39,8 @@ public OnGameModeInit() :::warning -Uma vez definido como invulnerável, o ator não chama [OnPlayerGiveDamageActor](../callbacks/OnPlayerGiveDamageActor). Os jogadores terão o estado de invulnerabilidade do ator alterado somente quando for transmitido novamente para eles. +- Uma vez definido como invulnerável, o ator não chama [OnPlayerGiveDamageActor](../callbacks/OnPlayerGiveDamageActor). +- Os jogadores terão o estado de invulnerabilidade do ator alterado somente quando for transmitido novamente para eles. ::: 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 6d89f99df44d..d6de33bfb975 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 @@ -66,6 +66,6 @@ Você MUST usa o formato de cores ARGB, não RGBA como usado em mensagens de cli ## Editores de mapas avançados -- [Estúdio de Textura](https://github.com/Pottus/Texture-Studio) por Pottus -- [Criador Supremo](https://github.com/NexiusTailer/Ultimate-Creator) por Nexius -- [Editor de mapas de Fusez](https://github.com/fusez/Map-Editor-V3) por RedFusion +- [Texture Studio](https://github.com/Pottus/Texture-Studio) por Pottus +- [Ultimate Creator](https://github.com/NexiusTailer/Ultimate-Creator) por Nexius +- [Fusez's Map Editor](https://github.com/fusez/Map-Editor-V3) por RedFusion 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 96806b7a9e0b..c4bd258d4e41 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 @@ -67,10 +67,9 @@ O texto não é atualizado após 16 chamadas no mesmo objeto. ## Editores de mapas avançados -- [Estúdio de Textura](https://github.com/Pottus/Texture-Studio) por Pottus -- [Criador Supremo](https://github.com/NexiusTailer/Ultimate-Creator) por Nexius -- [Editor de mapas de Fusez](https://github.com/fusez/Map-Editor-V3) por RedFusion -- [Editor SetObjectMaterialText](https://sampforum.blast.hk/showthread.php?tid=614667) por RIDE2DAY +- [Texture Studio](https://github.com/Pottus/Texture-Studio) por Pottus +- [Ultimate Creator](https://github.com/NexiusTailer/Ultimate-Creator) por Nexius +- [Fusez's Map Editor](https://github.com/fusez/Map-Editor-V3) por RedFusion ## Recursos relacionados diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerDrunkLevel.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerDrunkLevel.md index bce333e9e758..254baa4b69b2 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerDrunkLevel.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerDrunkLevel.md @@ -40,10 +40,10 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - O nível de embriaguez dos jogadores diminuirá automaticamente com o tempo, com base em seu FPS (jogadores com 50 FPS perderão 50 'níveis' por segundo. Isso é útil para determinar o FPS de um jogador!). -- Em 0.3a o nível de embriaguez diminuirá e parará em 2.000. -- Em 0.3b+ o nível de embriaguez diminui para zero. +- Em 0.3a o nível de embriaguez diminuirá e parará em 2.000. Em 0.3b+ o nível de embriaguez diminui para zero. - Níveis acima de 2.000 deixam o jogador bêbado (câmera balançando e veículos difíceis de controlar). -- O nível máximo de embriaguez é 50.000. Enquanto o nível de embriaguez estiver acima de 5.000, o HUD do jogador (radar etc.) ficará oculto. +- O nível máximo de embriaguez é 50.000. +- Enquanto o nível de embriaguez estiver acima de 5.000, o HUD do jogador (radar etc.) ficará oculto. ::: 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 20e9ed35e5c3..37687d013a7e 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 @@ -39,7 +39,8 @@ public OnPlayerSpawn(playerid) :::note -Apenas um objeto pode ser anexado por jogador. Esta função é separada dos pools CreateObject/CreatePlayerObject. +- Apenas um objeto pode ser anexado por jogador. +- Esta função é separada dos pools CreateObject/CreatePlayerObject. ::: 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 c1cc55eb11b9..b177c769b713 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 @@ -64,6 +64,6 @@ Você MUST usa o formato de cores ARGB, não RGBA como usado em mensagens de cli ## Editores de mapas avançados -- [Estúdio de Textura](https://github.com/Pottus/Texture-Studio) por Pottus -- [Criador Supremo](https://github.com/NexiusTailer/Ultimate-Creator) por Nexius -- [Editor de mapas de Fusez](https://github.com/fusez/Map-Editor-V3) por RedFusion +- [Texture Studio](https://github.com/Pottus/Texture-Studio) por Pottus +- [Ultimate Creator](https://github.com/NexiusTailer/Ultimate-Creator) por Nexius +- [Fusez's Map Editor](https://github.com/fusez/Map-Editor-V3) por RedFusion 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 4a4338475163..ef02ba4bf908 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 @@ -59,6 +59,6 @@ A incorporação de cores pode ser usada para várias cores no texto. ## Editores de mapas avançados -- [Estúdio de Textura](https://github.com/Pottus/Texture-Studio) por Pottus -- [Criador Supremo](https://github.com/NexiusTailer/Ultimate-Creator) por Nexius -- [Editor de mapas de Fusez](https://github.com/fusez/Map-Editor-V3) por RedFusion +- [Texture Studio](https://github.com/Pottus/Texture-Studio) por Pottus +- [Ultimate Creator](https://github.com/NexiusTailer/Ultimate-Creator) por Nexius +- [Fusez's Map Editor](https://github.com/fusez/Map-Editor-V3) por RedFusion 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 fd4ca4f36193..83407d37c47a 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,8 +92,7 @@ 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 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). - 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. - Pausas sentadas nas bicicletas. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md index 1afa3a7d67c5..848afcd78a97 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md @@ -33,10 +33,7 @@ public OnPlayerSpawn(playerid) :::note -- Os jogadores não podem danificar/matar jogadores do mesmo time, a menos que usem uma faca para cortar a garganta. - -- Os jogadores também não podem danificar veículos dirigidos por um jogador do mesmo time. Isso pode ser habilitado com [EnableVehicleFriendlyFire](EnableVehicleFriendlyFire). - +- Os jogadores não podem danificar/matar jogadores do mesmo time, a menos que usem uma faca para cortar a garganta. Os jogadores também não podem danificar veículos dirigidos por um jogador do mesmo time. Isso pode ser habilitado com [EnableVehicleFriendlyFire](EnableVehicleFriendlyFire). - 255 (ou `NO_TEAM`) é o time padrão para poder atirar em outros jogadores, não 0. ::: 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 07f12ff9d577..631d65b24bae 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 @@ -46,3 +46,8 @@ public OnPlayerRequestClass(playerid, classid) - [SetPlayerSkin](SetPlayerSkin): Define a skin de um jogador. - [SetPlayerTeam](SetPlayerTeam): Define o time de um jogador. - [SpawnPlayer](SpawnPlayer): Força o spawn a um jogador. + +## Recursos relacionados + +- [IDs de Skins](../resources/skins) +- [IDs de Armas](../resources/weaponids) 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 8606f472939f..ab7713e347e8 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 @@ -48,9 +48,8 @@ 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. +- 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. ::: 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 4f00dc88445c..4f02df88f2ba 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 @@ -73,9 +73,8 @@ 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. +- 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. ::: 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 bd656ef505a3..1c4e70ad630f 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 @@ -48,3 +48,7 @@ A vida máxima do veículo é 1000. Valores maiores são possíveis. Para mais i - [RepairVehicle](RepairVehicle): Repara totalmente um veículo. - [SetPlayerHealth](SetPlayerHealth): Define a vida de um jogador. - [OnVehicleDeath](../callbacks/OnVehicleDeath): É chamado quando um veículo é destruído. + +## Recursos relacionados + +- [Valores de integridade do veículo](../resources/vehiclehealth) diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md index 9c2d4c572545..c72c864899e6 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md @@ -46,8 +46,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- A rotação X e Y (inclinação e rotação) de um veículo será redefinida quando esta função for usada. -- As rotações X e Y não podem ser definidas. +- A rotação X e Y (inclinação e rotação) de um veículo será redefinida quando esta função for usada. As rotações X e Y não podem ser definidas. - Esta função não funciona em veículos desocupados (acredita-se que seja uma limitação GTA). ::: 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 bd5666bc446b..76b5c570733d 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 @@ -75,3 +75,8 @@ ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_TABLIST_HEADERS, "Buy We - [TextDrawShowForPlayer](TextDrawShowForPlayer): Apresenta um textdraw para certo jogador. - [OnDialogResponse](../callbacks/OnDialogResponse): É chamada quando um jogador responde a um dialog. + +## Recursos relacionados + +- [Dialog Styles](../resources/dialogstyles) +- [Códigos de Escape](../resources/escapecodes) diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md index a75d56e25461..02ec03d30749 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md @@ -1,7 +1,7 @@ --- title: TextDrawBackgroundColor sidebar_label: TextDrawBackgroundColor -description: "Ajusta a cor de fundo da área de desenho de texto (o contorno/sombra, não a caixa." +description: "Ajusta a cor de fundo da área de desenho de texto (o contorno/sombra, não a caixa)." tags: ["textdraw"] --- @@ -36,8 +36,7 @@ public OnGameModeInit() :::note -- Se [TextDrawSetOutline](TextDrawSetOutline) for usado com tamanho > 0, a cor do contorno corresponderá à cor usada em TextDrawBackgroundColor. -- Alterar o valor da cor parece alterar a cor usada em [TextDrawColor](TextDrawColor). +Se [TextDrawSetOutline](TextDrawSetOutline) for usado com tamanho > 0, a cor do contorno corresponderá à cor usada em TextDrawBackgroundColor. Alterar o valor da cor parece alterar a cor usada em [TextDrawColor](TextDrawColor). ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColour.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColour.md index 51ebcd45e763..7cea685ffa84 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColour.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColour.md @@ -1,7 +1,7 @@ --- title: TextDrawBackgroundColour sidebar_label: TextDrawBackgroundColour -description: "Ajusta a cor de fundo da área de desenho de texto (o contorno/sombra, não a caixa." +description: "Ajusta a cor de fundo da área de desenho de texto (o contorno/sombra, não a caixa)." tags: ["textdraw"] --- diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md index 6e7a63bdfb35..1b46c24674ae 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md @@ -35,7 +35,7 @@ public OnGameModeInit() :::tip -Você também pode usar [cores do Gametext](../resources/gametextstyles) em textdraws. (por exemplo, `~r~` `~g~` `~b~`) +Você também pode usar [cores do Gametext](../resources/gametextstyles) em textdraws. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md index 76d3cae214f7..21dbafa3c085 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md @@ -49,8 +49,7 @@ public OnPlayerConnect(playerid) :::note -- A coordenada `x, y` é a coordenada superior esquerda para a área de desenho de texto com base em uma "tela" de 640x480 (independentemente da resolução da tela). -- Se você planeja usar [TextDrawAlignment](TextDrawAlignment) com alinhamento 3 (`TEXT_DRAW_ALIGN_RIGHT`), a coordenada `x, y` é a coordenada superior direita para o desenho do texto. +- A coordenada `x, y` é a coordenada superior esquerda para a área de desenho de texto com base em uma "tela" de 640x480 (independentemente da resolução da tela). Se você planeja usar [TextDrawAlignment](TextDrawAlignment) com alinhamento 3 (`TEXT_DRAW_ALIGN_RIGHT`), a coordenada `x, y` é a coordenada superior direita para o desenho do texto. - Esta função apenas CREATES o textdraw, você deve usar [TextDrawShowForPlayer](TextDrawShowForPlayer) ou [TextDrawShowForAll](TextDrawShowForAll) para mostrá-lo. ::: 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 f885666349e7..0a897bac9939 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,8 +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. 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/UsePlayerPedAnims.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/UsePlayerPedAnims.md index 476a94a5e19e..ab32c233436f 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/UsePlayerPedAnims.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/UsePlayerPedAnims.md @@ -10,6 +10,10 @@ tags: ["player"] Usa animação de caminhada padrão do jogador (animação da skin CJ) em vez de animações personalizadas para cada skin (por exemplo, patinação para skins de skatista). +## Retornos + +Esta função não retorna nenhum valor específico. + ## Exemplos ```c diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md index 61cf0124d0c0..2fca3a83d3f5 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md @@ -61,7 +61,8 @@ public OnGameModeExit() :::warning -Ele criará um novo arquivo de banco de dados SQLite, se não houver nenhum arquivo de banco de dados SQLite com o mesmo nome de arquivo disponível. Feche sua conexão com o banco de dados SQLite com [db_close](db_close)! +- Ele criará um novo arquivo de banco de dados SQLite, se não houver nenhum arquivo de banco de dados SQLite com o mesmo nome de arquivo disponível. +- Feche sua conexão com o banco de dados SQLite com [db_close](db_close)! ::: @@ -84,3 +85,7 @@ Ele criará um novo arquivo de banco de dados SQLite, se não houver nenhum arqu - [db_get_result_mem_handle](db_get_result_mem_handle): Obtenha o identificador de memória para uma consulta SQLite que foi executada com db_query. - [db_debug_openfiles](db_debug_openfiles): A função obtém o número de conexões de banco de dados abertas para fins de depuração. - [db_debug_openresults](db_debug_openresults): A função obtém o número de resultados do banco de dados aberto. + +## Recursos relacionados + +- [SQLite Open Flags](../resources/sqlite-open-flags) diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/sendpacket.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/sendpacket.md index 18395518be3c..892fd7ffa887 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/sendpacket.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/sendpacket.md @@ -1,7 +1,7 @@ --- title: sendpacket sidebar_label: sendpacket -description: "Envia um pacote. (função obsoleta)" +description: "Envia um pacote (função obsoleta)." tags: ["datagram"] --- diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/sendstring.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/sendstring.md index c3b227e62e13..68e5fe0783ca 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/sendstring.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/sendstring.md @@ -1,7 +1,7 @@ --- title: sendstring sidebar_label: sendstring -description: "Envia um pacote contendo uma string. (função obsoleta)" +description: "Envia um pacote contendo uma string (função obsoleta)." tags: ["datagram"] --- 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 2e37b0ebe3e2..cfd4843811e9 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 @@ -63,3 +63,7 @@ Se você comparar strings de um arquivo de texto, você deve levar em considera - [strval](strval): Converter uma string em um número inteiro. - [strcat](strcat): Concatene duas strings em uma referência de destino. - https://www.facom.ufu.br/~madriana/PP/TP6.pdf + +## Tutoriais + +- [String Manipulation](../../tutorials/stringmanipulation) diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/Variables.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/Variables.md index 8fddf8a92e8a..c2079a55edae 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/Variables.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/Variables.md @@ -75,7 +75,7 @@ public OnPlayerConnect(playerid) return 1; } -// Saída : +// Saída: // The value is 10 // The value is 100 @@ -210,7 +210,7 @@ public OnFilterScriptInit() return 1; } -// Saída : +// Saída: a 1 1.000000 diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/carcomponentid.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/carcomponentid.md index 47c2e636bfd1..04ff0b47a327 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/carcomponentid.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/carcomponentid.md @@ -420,4 +420,4 @@ description: Informações sobre os IDs dos componentes do carro, nome dos model ## All component costs separated by comma -`400, 550, 200, 250, 100, 150, 80, 500, 500, 200, 1000, 220, 250, 100, 400, 500, 200, 500, 350, 300, 250, 200, 150, 350, 50, 1000, 480, 480, 770, 680, 370, 370, 170, 120, 790, 150, 500, 690, 190, 390, 500, 390, 1000, 500, 500, 510, 710, 670, 530, 810, 620, 670, 530, 130, 210, 230, 520, 430, 620, 720, 530, 180, 550, 430, 830, 850, 750, 250, 200, 550, 450, 550, 450, 1100, 1030, 980, 1560, 1620, 1200, 1030, 900, 1230, 820, 1560, 1350, 770, 100, 1500, 150, 650, 450, 100, 750, 350, 450, 350, 1000, 620, 1140, 1000, 940, 780, 830, 3250, 1610, 1540, 780, 780, 780, 1610, 1540, 0, 0, 3340, 3250, 2130, 2050, 2040, 780, 940, 780, 940, 780, 860, 780, 1120, 3340, 3250, 3340, 1650, 3380, 3290, 1590, 830, 800, 1500, 1000, 800, 580, 470, 870, 980, 150, 150, 100, 100, 490, 600, 890, 1000, 1090, 840, 910, 1200, 1030, 1030, 920, 930, 550, 1050, 1050, 950, 650, 450, 550, 850, 950, 850, 950, 970, 880, 990, 900, 950, 1000, 900, 1000, 900, 2050, 2150, 2130, 2050, 2130, 2040, 2150, 2040, 2095, 2175, 2080, 2200, 1200, 1040, 940, 1100` +`400`, `550`, `200`, `250`, `100`, `150`, `80`, `500`, `500`, `200`, `1000`, `220`, `250`, `100`, `400`, `500`, `200`, `500`, `350`, `300`, `250`, `200`, `150`, `350`, `50`, `1000`, `480`, `480`, `770`, `680`, `370`, `370`, `170`, `120`, `790`, `150`, `500`, `690`, `190`, `390`, `500`, `390`, `1000`, `500`, `500`, `510`, `710`, `670`, `530`, `810`, `620`, `670`, `530`, `130`, `210`, `230`, `520`, `430`, `620`, `720`, `530`, `180`, `550`, `430`, `830`, `850`, `750`, `250`, `200`, `550`, `450`, `550`, `450`, `1100`, `1030`, `980`, `1560`, `1620`, `1200`, `1030`, `900`, `1230`, `820`, `1560`, `1350`, `770`, `100`, `1500`, `150`, `650`, `450`, `100`, `750`, `350`, `450`, `350`, `1000`, `620`, `1140`, `1000`, `940`, `780`, `830`, `3250`, `1610`, `1540`, `780`, `780`, `780`, `1610`, `1540`, `0`, `0`, `3340`, `3250`, `2130`, `2050`, `2040`, `780`, `940`, `780`, `940`, `780`, `860`, `780`, `1120`, `3340`, `3250`, `3340`, `1650`, `3380`, `3290`, `1590`, `830`, `800`, `1500`, `1000`, `800`, `580`, `470`, `870`, `980`, `150`, `150`, `100`, `100`, `490`, `600`, `890`, `1000`, `1090`, `840`, `910`, `1200`, `1030`, `1030`, `920`, `930`, `550`, `1050`, `1050`, `950`, `650`, `450`, `550`, `850`, `950`, `850`, `950`, `970`, `880`, `990`, `900`, `950`, `1000`, `900`, `1000`, `900`, `2050`, `2150`, `2130`, `2050`, `2130`, `2040`, `2150`, `2040`, `2095`, `2175`, `2080`, `2200`, `1200`, `1040`, `940`, `1100` diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/clicksources.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/clicksources.md index 9fa939cb96d0..6d7bf62de103 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/clicksources.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/clicksources.md @@ -1,7 +1,6 @@ --- title: Click Sources sidebar_label: Click Sources - description: Click Sources --- diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/download-requests.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/download-requests.md index 3ee14e44fb95..158949bf071b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/download-requests.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/download-requests.md @@ -1,7 +1,7 @@ --- title: Tipos de Solicitação de Download sidebar_label: Tipos de Solicitação de Download -description: Tipos de solicitação de download. (usado por OnPlayerRequestDownload) +description: Tipos de solicitação de download (usado por OnPlayerRequestDownload). --- :::note diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/file-seek-whence.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/file-seek-whence.md index 6482cddcbfaf..a9a6e4e89b33 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/file-seek-whence.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/file-seek-whence.md @@ -1,7 +1,7 @@ --- title: Origem do Deslocamento de Arquivo sidebar_label: Origem do Deslocamento de Arquivo -description: Definições de origem de deslocamento de arquivo. (fseek) +description: Definições de origem de deslocamento de arquivo (fseek). --- :::note diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/samp_objects.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/samp_objects.md index 66ccc075311c..a32b26855f5d 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/samp_objects.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/samp_objects.md @@ -33,6 +33,7 @@ pacote de servidores. ``` 11692 A51LandBit1 ``` + ### **Colinas** ``` @@ -41,22 +42,25 @@ pacote de servidores. 11695 Hill250x250Rocky2 11696 Hill250x250Rocky3 ``` + ### **Ponte modular de string** ``` 11697 RopeBridgePart1 11698 RopeBridgePart2 ``` + ### **Mais sinais de trânsito** A placa de limite de velocidade abaixo possui uma sobreposição de material transparente (índice 3) para que você -pode usá-lo com SetObjectMaterialText() ou SetPlayerObjectMaterialText() +pode usá-lo com SetObjectMaterialText ou SetPlayerObjectMaterialText funções. ``` 11699 SAMPRoadSign46 11700 SAMPRoadSign47 ``` + ### **Luzes de ambulância** O primeiro objeto está com as luzes acesas e o segundo está com as luzes apagadas. @@ -65,6 +69,7 @@ O primeiro objeto está com as luzes acesas e o segundo está com as luzes apaga 11701 AmbulanceLights1 11702 AmbulanceLights2 ``` + ### **Objeto Guindaste Magnético** Este objeto é igual ao objeto ID 1382, exceto que GTASA não será automaticamente @@ -73,6 +78,7 @@ prenda o cabo do guindaste e o ímã a ele. ``` 11703 MagnoCrane_03_2 ``` + ### **Itens Extraídos 2** ``` @@ -112,6 +118,7 @@ prenda o cabo do guindaste e o ímã a ele. 11737 RockstarMat1 11738 MedicCase1 ``` + ### **Extraído do Marco's Bistrô** ``` @@ -122,6 +129,7 @@ prenda o cabo do guindaste e o ímã a ele. 11743 MCoffeeMachine1 11744 MPlate1 ``` + ### **Hold All (bolsa de transporte) editado** Este objeto é igual ao ID 2919, exceto que é menor e não dinâmico. @@ -129,6 +137,7 @@ Este objeto é igual ao ID 2919, exceto que é menor e não dinâmico. ``` 11745 HoldAllEdited1 ``` + ### **Itens Diversos 3** ``` @@ -136,17 +145,20 @@ Este objeto é igual ao ID 2919, exceto que é menor e não dinâmico. 11747 Bandage1 11748 BandagePack1 ``` + ### **Algemas da cena** ``` 11749 CSHandcuffs1 ``` + As algemas abaixo são iguais às acima, exceto que são dobradas ao meio para que possam pode ser preso a um cinto de oficial. ``` 11750 CSHandcuffs2 ``` + ### **Limites de área** ``` @@ -154,6 +166,7 @@ pode ser preso a um cinto de oficial. 11752 AreaBoundary10m 11753 AreaBoundary1m ``` + --- ## **Objetos adicionados em 0.3.7 RC3 (138 objetos)** @@ -164,12 +177,14 @@ pode ser preso a um cinto de oficial. 19873 ToiletPaperRoll1 19874 SoapBar1 ``` + Esta porta é igual ao objeto ID 2947, exceto que não é dinâmica (quebrável) e o ponto de articulação foi movido. ``` 19875 CRDoor01New ``` + ### **Posto de gasolina Dillimore** Substitui o objeto IDs 12853 e 12854 por uma versão editável do Dillimore @@ -181,6 +196,7 @@ pacote. 19876 DillimoreGasExt1 19877 DillimoreGasInt1 ``` + ### **Skate GTASA** Editado para funcionar como um objeto normal e adicionadas cores de vértice. @@ -188,6 +204,7 @@ Editado para funcionar como um objeto normal e adicionadas cores de vértice. ``` 19878 Skateboard1 ``` + ### **LS Wells Fargo** Este edifício substitui o edifício LS Wells Fargo (objeto ID 4007). @@ -199,6 +216,7 @@ Pacote de servidor Windows 0.3.7. 19879 WellsFargoBuild1 19880 WellsFargoGrgDoor1 ``` + ### **Celeiro de Kylie consertado** Este celeiro é igual ao objeto ID 14871, exceto que a colisão (COL) foi @@ -208,6 +226,7 @@ pode ser encontrado na pasta "filterscripts" do pacote do servidor Windows 0.3.7 ``` 19881 KylieBarnFixed1 ``` + ### **Bife do Marco Cozido** Este bife é igual ao objeto ID 19582, exceto que está cozido. @@ -215,11 +234,13 @@ Este bife é igual ao objeto ID 19582, exceto que está cozido. ``` 19882 MarcosSteak2 ``` + ### **Fatia de Pão** ``` 19883 BreadSlice1 ``` + ### **Mais seções de toboáguas** Esses objetos são projetados para funcionar com o antigo objeto existente IDs 19070 @@ -235,21 +256,24 @@ alguns problemas de renderização alfa. 19889 WSBend45Deg4 19890 WSStraight4 ``` + O objeto abaixo pode ser usado para unir essas seções do toboágua a um tubo. ``` 19891 WSTubeJoiner1 ``` + O objeto abaixo pode ser usado para unir essas seções de toboágua a um módulo modular estrada. ``` 19892 WSRoadJoiner1 ``` + ### **Laptop (estilo antigo)** O mesmo laptop nas posições aberta e fechada. Você pode alterar a tela usando o -Função SetObjectMaterial() no índice 1. Existem três variações de tela em +Função SetObjectMaterial no índice 1. Existem três variações de tela em o arquivo TXD (veja a imagem abaixo): - LaptopScreen1 = tela do mapa GTASA (padrão) @@ -260,6 +284,7 @@ o arquivo TXD (veja a imagem abaixo): 19893 LaptopSAMP1 19894 LaptopSAMP2 ``` + ![Imagem:SAMP-Laptop-1.png](https://assets.open.mp/assets/images/objects/SAMP-Laptop-1.png) ### **Luzes de caminhão de bombeiros de escada** @@ -270,6 +295,7 @@ só será visível à noite. ``` 19895 LadderFireTruckLts1 ``` + ### **Itens Diversos** ``` @@ -279,6 +305,7 @@ só será visível à noite. 19899 ToolCabinet1 19900 ToolCabinet2 ``` + ### **Objetos ANIM** Os objetos abaixo são objetos ANIM (animados). Eles foram adicionados no SA-MP 0.3c @@ -288,12 +315,14 @@ e versões 0.3.7. 19901 AnimTube 19902 EnExMarker4 ``` + ### **Itens Diversos Continuação** ``` 19903 MechanicComputer1 19904 ConstructionVest1 ``` + ### **Edifícios da Área 51 (69)** Esses objetos são basicamente iguais aos edifícios originais, mas agora com um @@ -309,12 +338,14 @@ Pasta "filterscripts" do pacote do servidor Windows 0.3.7. 19909 A51Building3 19910 A51Building3GrgDoor ``` + A porta abaixo foi projetada para caber no Hangar Militar A51/69 (objeto ID 3268). São necessárias duas portas para fechar a entrada. ``` 19911 A51HangarDoor1 ``` + ### **Portão de metal e cerca grande** Este portão é igual ao objeto ID 980, exceto que não tem sinais e o @@ -323,11 +354,13 @@ ponto de articulação está na borda. ``` 19912 SAMPMetalGate1 ``` + Grande cerca metálica que é útil para cercar áreas de eventos ou minijogos. ``` 19913 SAMPBigFence1 ``` + ### **Extraído da Cutscene IMG e editado 2** ``` @@ -340,6 +373,7 @@ Grande cerca metálica que é útil para cercar áreas de eventos ou minijogos. 19920 CutsceneRemote1 19921 CutsceneToolBox1 ``` + ### **Cozinha Modular** Esses objetos podem ser usados para montar uma cozinha modular de diversas maneiras. @@ -365,6 +399,7 @@ Esses objetos podem ser usados para montar uma cozinha modular de diversas manei 19939 MKShelf2 19940 MKShelf3 ``` + ### **Itens Diversos 2** ``` @@ -373,6 +408,7 @@ Esses objetos podem ser usados para montar uma cozinha modular de diversas manei 19943 StonePillar1 19944 BodyBag1 ``` + ### **Pontos de verificação** Esses objetos podem ser usados como uma alternativa aos pontos de verificação normais. @@ -382,6 +418,7 @@ Esses objetos podem ser usados como uma alternativa aos pontos de verificação 19946 CPSize16Green 19947 CPSize16Blue ``` + ![Imagem:SAMP-New-Checkpoints.png](https://assets.open.mp/assets/images/objects/SAMP-New-Checkpoints.png) ### **Sinais de trânsito** @@ -422,13 +459,15 @@ Uma coleção de vários sinais de trânsito. 19978 SAMPRoadSign31 19979 SAMPRoadSign32 ``` + Os dois sinais abaixo possuem uma sobreposição de material transparente (índice 3) para que você possa usar -com as funções SetObjectMaterialText() ou SetPlayerObjectMaterialText(). +com as funções SetObjectMaterialText ou SetPlayerObjectMaterialText. ``` 19980 SAMPRoadSign33 19981 SAMPRoadSign34 ``` + Sinais de limite de velocidade. ``` @@ -444,6 +483,7 @@ Sinais de limite de velocidade. 19991 SAMPRoadSign44 19992 SAMPRoadSign45 ``` + ![Imagem:SAMP-Road-Signs.png](https://assets.open.mp/assets/images/objects/SAMP-Road-Signs.png) ### **Extraído da Cutscene IMG e editado 3** @@ -457,6 +497,7 @@ Sinais de limite de velocidade. 19998 CutsceneLighterFl 19999 CutsceneChair2 ``` + ### **Extraído da Cutscene IMG e editado 3, continuação** ``` @@ -465,6 +506,7 @@ Sinais de limite de velocidade. 11684 CutsceneCouch3 11685 CutsceneCouch4 ``` + ### **Itens extraídos e editados do Redsands West Casino** ``` @@ -475,6 +517,7 @@ Sinais de limite de velocidade. 11690 CTable1 11691 CTable2 ``` + --- ## **Objetos adicionados em 0.3.7 RC2 (82 objetos)** @@ -484,6 +527,7 @@ Sinais de limite de velocidade. ``` 19788 15x15RoadCorner1 ``` + ### **Cubos** ``` @@ -491,16 +535,19 @@ Sinais de limite de velocidade. 19790 Cube5mx5m 19791 Cube10mx10m ``` + ### **Cartão-chave de tamanho normal** ``` 19792 SAMPKeycard1 ``` + ### **Tora de lenha** ``` 19793 FireWoodLog1 ``` + ### **LS Muros e Portões da Prisão** Esses objetos foram projetados para substituir as paredes e portões da Prisão LS para que @@ -513,6 +560,7 @@ Pasta Filterscripts do pacote do servidor Windows 0.3.7. 19795 LSPrisonGateEast 19796 LSPrisonGateSouth ``` + ### **Viseira Estroboscópica da Polícia** Este objeto foi concebido para ser utilizado no interior do seu veículo na viseira (por exemplo, em um @@ -522,6 +570,7 @@ durante o dia e a noite. ``` 19797 PoliceVisorStrobe1 ``` + ### **Estacionamento dos apartamentos LS** Este objeto de estacionamento é usado com o bloco de substituição de apartamentos LS @@ -532,14 +581,16 @@ Pacote de servidor 0.3.7. ``` 19798 LSACarPark1 ``` + ### **Porta do cofre do cassino de Calígula editada** -Editado para corrigir o pivô para que possa ser usado com MoveObject() e também corrigiu o +Editado para corrigir o pivô para que possa ser usado com MoveObject e também corrigiu o cores do vértice noturno. O objeto original ID é 2634. ``` 19799 CaligulasVaultDoor ``` + ### **LS BeachSide Estacionamento** Este objeto de estacionamento é usado com o edifício de substituição LS BeachSide (IDs @@ -551,19 +602,22 @@ SAMP.IPL arquivo. ``` 19800 LSBCarPark1 ``` + ### **Balaclava** ``` 19801 Balaclava1 ``` + ### **Porta Estática** Esta porta é igual ao objeto ID 1502, exceto que é estática. Você pode animá-lo -abrindo e fechando com a função MoveObject(). +abrindo e fechando com a função MoveObject. ``` 19802 GenDoorINT04Static ``` + ### **Luzes do caminhão de reboque** Essas luzes podem ser usadas em cima do caminhão de reboque. A configuração da luz foi @@ -572,15 +626,17 @@ criado por Vicente. Observe que eles só serão visíveis à noite. ``` 19803 TowTruckLights1 ``` + ### **Cadeado** ``` 19804 Padlock1 ``` + ### **Itens extraídos** O objeto do quadro branco abaixo possui uma sobreposição de material transparente (índice 1) para que você -pode usá-lo com SetObjectMaterialText() ou SetPlayerObjectMaterialText() +pode usá-lo com SetObjectMaterialText ou SetPlayerObjectMaterialText funções. ``` @@ -616,6 +672,7 @@ funções. 19834 PoliceLineTape1 19835 CoffeeCup1 ``` + ### **Objetos que usam Particle.TXD** Os objetos abaixo utilizam texturas do arquivo Particle.TXD GTASA. A grama @@ -627,6 +684,7 @@ aglomerados podem ser usados para criar um trabalho de corte RP. 19838 GrassClump2 19839 GrassClump3 ``` + ### **Cachoeiras Animadas** Os objetos abaixo usam a animação UV para criar água em movimento para uma cachoeira e/ou @@ -637,6 +695,7 @@ rio. 19841 WaterFall2 19842 WaterFallWater1 ``` + ### **Painéis metálicos** ``` @@ -645,11 +704,13 @@ rio. 19845 MetalPanel3 19846 MetalPanel4 ``` + ### **Perna de presunto** ``` 19847 LegHam1 ``` + ### **Plataforma CargoBob** Esta plataforma foi projetada para ser fixada na lateral do helicóptero CargoBob usando @@ -658,6 +719,7 @@ a função AttachObjectToVehicle para que você possa transportar pessoas. ``` 19848 CargoBobPlatform1 ``` + ### **Casa Ilha Modular 1** Esses objetos são projetados para funcionar com os outros objetos de ilha modular acima @@ -685,6 +747,7 @@ pacote de servidores. 19865 MIFenceWood1 19866 MIFenceBlocks1 ``` + ### **Caixa de correio inquebrável** Esta caixa de correio é igual ao objeto ID 1478, exceto que não é dinâmica (quebrável) e @@ -693,6 +756,7 @@ as cores dos vértices noturnos (NVC) foram corrigidas. ``` 19867 MailBox1 ``` + ### **Cercas e portões de malha inquebráveis** Essas seções da cerca são iguais às do objeto IDs 1411 e 1412, exceto que são @@ -702,21 +766,286 @@ não dinâmico (quebrável). 19868 MeshFence1 19869 MeshFence2 ``` + Este portão de metal é igual ao objeto ID 3036, exceto que não é dinâmico (quebrável). ``` 19870 MetalGate1 ``` + --- ## **Objetos adicionados em 0.3.7 RC1 (265 objetos)** ``` -19305 sec_keypad2 -19306 kmb_goflag2 -19307 kmb_goflag3 +19522 property_red +19523 property_orange +19524 property_yellow +19525 WeddingCake1 +19526 ATMFixed +19527 Cauldron1 +19528 WitchesHat1 +19529 Plane125x125Grass1 +19530 Plane125x125Sand1 +19531 Plane125x125Conc1 +19532 15x125Road1 +19533 15x62_5Road1 +19534 15x15RoadInters1 +19535 15x15RoadInters2 +19536 Plane62_5x125Grass1 +19537 Plane62_5x125Sand1 +19538 Plane62_5x125Conc1 +19539 Edge62_5x62_5Grass1 +19540 Edge62_5x62_5Grass2 +19541 Edge62_5x15Grass1 +19542 Edge62_5x125Grass1 +19543 Plane62_5x15Grass1 +19544 Plane62_5x15Sand1 +19545 Plane62_5x15Conc1 +19546 Edge62_5x62_5Grass3 +19547 Hill125x125Grass1 +19548 Hill125x125Sand1 +19549 Edge62_5x32_5Grass1 +19550 Plane125x125Grass2 +19551 Plane125x125Sand2 +19552 Plane125x125Conc2 +19553 StrawHat1 +19554 Beanie1 +19555 BoxingGloveL +19556 BoxingGloveR +19557 SexyMask1 +19558 PizzaHat1 +19559 HikerBackpack1 +19560 MeatTray1 +19561 CerealBox1 +19562 CerealBox2 +19563 JuiceBox1 +19564 JuiceBox2 +19565 IceCreamBarsBox1 +19566 FishFingersBox1 +19567 IcecreamContainer1 +19568 IcecreamContainer2 +19569 MilkCarton1 +19570 MilkBottle1 +19571 PizzaBox1 +19572 PisshBox1 +19573 BriquettesBag1 +19574 Orange1 +19575 Apple1 +19576 Apple2 +19577 Tomato1 +19578 Banana1 +19579 BreadLoaf1 +19580 Pizza1 +19581 MarcosFryingPan1 +19582 MarcosSteak1 +19583 MarcosKnife1 +19584 MarcosSaucepan1 +19585 MarcosPan1 +19586 MarcosSpatula1 +19587 PlasticTray1 +19588 FootBridge1 +19589 RubbishSkipEmpty1 +19590 WooziesSword1 +19591 WooziesHandFan1 +19592 ShopBasket1 +19593 ZomboTechBuilding1 +19594 ZomboTechLab1 +19595 LSAppartments1 +19597 LSBeachSideInsides +19598 SFBuilding1Outside +19599 SFBuilding1Inside +19600 SFBuilding1Land +19601 SnowPlow1 +19602 Landmine1 +19603 WaterPlane1 +19604 WaterPlane2 +19605 EnExMarker4-2 +19606 EnExMarker4-3 +19607 EnExMarker4-4 +19608 WoodenStage1 +19609 DrumKit1 +19610 Microphone1 +19611 MicrophoneStand1 +19612 GuitarAmp1 +19613 GuitarAmp2 +19614 GuitarAmp3 +19615 GuitarAmp4 +19616 GuitarAmp5 +19617 GoldRecord1 +19618 Safe1 +19619 SafeDoor1 +19620 LightBar1 +19621 OilCan1 +19622 Broom1 +19623 Camera1 +19624 Case1 +19625 Ciggy1 +19626 Spade1 +19627 Wrench1 +19628 MRoadBend90Banked1 +19629 MRoadBend90Banked2 +19630 Fish1 +19631 SledgeHammer1 +19632 FireWood1 +19633 Ramp360Degree1 +19634 Ramp360Degree2 +19635 Ramp360Degree3 +19636 RedApplesCrate1 +19637 GreenApplesCrate1 +19638 OrangesCrate1 +19639 EmptyCrate1 +19640 EmptyShopShelf1 +19641 FenceSection1 +19642 TubeSeg10m1 +19643 TubeSeg10m2a +19644 TubeSeg10m2b +19645 TubeSeg25m1 +19646 TubeHalf10m1 +19647 TubeHalf10mJoin1a +19648 TubeHalf10mJoin1b +19649 TubeHalf50m1 +19650 TubeFlat25x25m1 +19651 TubeHalfSpiral1a +19652 TubeHalfSpiral1b +19653 TubeHalfSpiral2a +19654 TubeHalfSpiral2b +19655 TubeHalfSpiral3a +19656 TubeHalfSpiral3b +19657 TubeHalfSpiral4a +19658 TubeHalfSpiral4b +19659 TubeHalf180Bend1a +19660 TubeHalf180Bend1b +19661 TubeHalf90Bend1a +19662 TubeHalf90Bend1b +19663 TubeHalf50mDip1 +19664 TubeHalf50mBump1 +19665 TubeHalfLoop1a +19666 TubeHalfLoop1b +19667 TubeHalfLoop2a +19668 TubeHalfLoop2b +19669 TubeHalfBowl1 +19670 TubeSupport1 +19671 TubeSupport2 +19672 TubeHalfLight1 +19673 TubeHalf5Bend1a +19674 TubeHalf5Bend1b +19675 TubeHalf5Bend2a +19676 TubeHalf5Bend2b +19677 TubeHalfTwist1a +19678 TubeHalfTwist1b +19679 TubeHalfTwist2a +19680 TubeHalfTwist2b +19681 TubeHalf45Bend1a +19682 TubeHalf45Bend1b +19683 TubeHalf15Bend1a +19684 TubeHalf15Bend1b +19685 TubeHalf15Bend2a +19686 TubeHalf15Bend2b +19687 TubeHalf25m1 +19688 TubeHalf45Bend3 +19689 TubeHalf45Bend4 +19690 TubeHalfNtoMJoin1a +19691 TubeHalfNtoMJoin1b +19692 MTubeSeg5m1 +19693 MTubeSeg5m2a +19694 MTubeSeg5m2b +19695 MTubeSeg12_5m1 +19696 MTubeHalf10m1 +19697 MTubeHalf5mJoin1a +19698 MTubeHalf5mJoin1b +19699 MTubeHalf25m1 +19700 MTubeFlt12_5x12_5m1 +19701 MTubeHalfSpiral1a +19702 MTubeHalfSpiral1b +19703 MTubeHalfSpiral2a +19704 MTubeHalfSpiral2b +19705 MTubeHalfSpiral3a +19706 MTubeHalfSpiral3b +19707 MTubeHalfSpiral4a +19708 MTubeHalfSpiral4b +19709 MTubeHalf180Bend1a +19710 MTubeHalf180Bend1b +19711 MTubeHalf90Bend1a +19712 MTubeHalf90Bend1b +19713 MTubeHalf25mDip1 +19714 MTubeHalf25mBump1 +19715 MTubeHalfBowl1 +19716 MTubeSupport1 +19717 MTubeSupport2 +19718 MTubeHalfLight1 +19719 MTubeHalf5Bend1a +19720 MTubeHalf5Bend1b +19721 MTubeHalf5Bend2a +19722 MTubeHalf5Bend2b +19723 MTubeHalf45Bend1a +19724 MTubeHalf45Bend1b +19725 MTubeHalf15Bend1a +19726 MTubeHalf15Bend1b +19727 MTubeHalf15Bend2a +19728 MTubeHalf15Bend2b +19729 MTubeHalf45Bend3 +19730 MTubeHalf45Bend4 +19731 TubeHalfMtoSJoin1a +19732 TubeHalfMtoSJoin1B +19733 STubeSeg5m1 +19734 STubeSeg5m2a +19735 STubeSeg5m2b +19736 STubeSeg6_25m1 +19737 STubeHalf10m1 +19738 STubeHalf5mJoin1a +19739 STubeHalf5mJoin1b +19740 STubeHalf12_5m1 +19741 STubeFlat6_25m1 +19742 STubeHalfSpiral1a +19743 STubeHalfSpiral1b +19744 STubeHalfSpiral2a +19745 STubeHalfSpiral2b +19746 STubeHalfSpiral3a +19747 STubeHalfSpiral3b +19748 STubeHalfSpiral4a +19749 STubeHalfSpiral4b +19750 STubeHalf180Bend1a +19751 STubeHalf180Bend1b +19752 STubeHalf90Bend1a +19753 STubeHalf90Bend1b +19754 STubeHalf12_5mDip1 +19755 STubeHalf12_5mBump1 +19756 STubeHalfBowl1 +19757 STubeSupport1 +19758 STubeSupport2 +19759 STubeHalfLight1 +19760 STubeHalf5Bend1a +19761 STubeHalf5Bend1b +19762 STubeHalf5Bend2a +19763 STubeHalf5Bend2b +19764 STubeHalf45Bend1a +19765 STubeHalf45Bend1b +19766 STubeHalf15Bend1a +19767 STubeHalf15Bend1b +19768 STubeHalf15Bend2a +19769 STubeHalf15Bend2b +19770 STubeHalf45Bend3 +19771 STubeHalf45Bend4 +19772 CrushedCarCube1 +19773 GunHolster1 +19774 PoliceBadge2 +19775 PoliceBadge3 +19776 FBIIDCard1 +19777 FBILogo1 +19778 InsigniaDetective1 +19779 InsigniaDetective2 +19780 InsigniaDetective3 +19781 InsigniaSergeant1 +19782 InsigniaSergeant2 +19783 InsigniaPOfficer2 +19784 InsigniaPOfficer3 +19785 InsigniaSeniorLdOff +19786 LCDTVBig1 +19787 LCDTV1 ``` + --- ## **Objetos adicionados em 0.3.7 (3 objetos)** @@ -726,6 +1055,7 @@ Este portão de metal é igual ao objeto ID 3036, exceto que não é dinâmico 19306 kmb_goflag2 19307 kmb_goflag3 ``` + --- ## **Objetos adicionados em 0.3x RC2-4 (6 objetos)** @@ -738,6 +1068,7 @@ Este portão de metal é igual ao objeto ID 3036, exceto que não é dinâmico 19520 pilotHat01 19521 policeHat01 ``` + --- ## **Objetos adicionados em 0.3e RC7 (31 objetos)** @@ -785,6 +1116,7 @@ Este portão de metal é igual ao objeto ID 3036, exceto que não é dinâmico 19514 SWATHgrey 19515 SWATAgrey ``` + --- ## **Objetos adicionados em 0.3e RC6 (5 objetos)** @@ -796,6 +1128,7 @@ Este portão de metal é igual ao objeto ID 3036, exceto que não é dinâmico 19473 grassplant01 19474 pokertable01 ``` + --- ## **Objetos adicionados em 0.3e RC4 (44 objetos)** @@ -846,6 +1179,7 @@ Este portão de metal é igual ao objeto ID 3036, exceto que não é dinâmico 19468 bucket01 19469 scarf01 ``` + --- ## **Objetos adicionados em 0.3e RC3 (54 objetos)** @@ -906,6 +1240,7 @@ Este portão de metal é igual ao objeto ID 3036, exceto que não é dinâmico 19424 headphones04 19425 speed_bump01 ``` + --- ## **Objetos adicionados em 0.3e RC1 (25 objetos)** @@ -937,6 +1272,7 @@ Este portão de metal é igual ao objeto ID 3036, exceto que não é dinâmico 19370 wall018 19371 wall019 ``` + --- ## **Objetos adicionados em 0.3d (8 objetos)** @@ -951,6 +1287,7 @@ Este portão de metal é igual ao objeto ID 3036, exceto que não é dinâmico 19345 easter_egg05 19346 hotdog01 ``` + --- ## **Objetos adicionados em 0.3d RC7 (16 objetos)** @@ -973,6 +1310,7 @@ Este portão de metal é igual ao objeto ID 3036, exceto que não é dinâmico 19337 Hot_Air_Balloon06 19338 Hot_Air_Balloon07 ``` + --- ## **Objetos adicionados em 0.3d RC3-3 (14 objetos)** @@ -993,6 +1331,7 @@ Este portão de metal é igual ao objeto ID 3036, exceto que não é dinâmico 19320 pumpkin01 19321 cuntainer ``` + --- ## **Objetos adicionados em 0.3d RC3-3 (4 objetos)** @@ -1003,6 +1342,7 @@ Este portão de metal é igual ao objeto ID 3036, exceto que não é dinâmico 19303 pd_jail_door02 19304 pd_jail_door_top01 ``` + ## **Ponte de GTALC** Os seguintes objetos (19300 a 19307) foram removidos em SA:MP 0.3d @@ -1017,6 +1357,7 @@ Os seguintes objetos (19300 a 19307) foram removidos em SA:MP 0.3d 19306 verticalift_bridg2 19307 verticalift_bridge ``` + --- ## **Objetos adicionados em 0.3c RC5 (143 objetos)** @@ -1158,6 +1499,7 @@ Os seguintes objetos (19300 a 19307) foram removidos em SA:MP 0.3d 19298 PointLight18 19299 PointLightMoon1 ``` + --- ## **Objetos adicionados em 0.3c RC4 (109 objetos)** @@ -1275,6 +1617,7 @@ Os seguintes objetos (19300 a 19307) foram removidos em SA:MP 0.3d 19163 GimpMask1 19901 animtube ``` + --- ## **Objetos adicionados em 0.3c RC2 e RC3 - 154 objetos** @@ -1484,6 +1827,7 @@ Os seguintes objetos (19300 a 19307) foram removidos em SA:MP 0.3d 19052 WatchType14 19053 WatchType15 ``` + --- ## **Objetos adicionados em 0.3c RC1** @@ -1508,6 +1852,7 @@ Os objetos abaixo foram adicionados em 0.3c RC1. 18644 Screwdriver1 18645 MotorcycleHelmet1 ``` + ### **Luzes** ``` @@ -1525,6 +1870,7 @@ Os objetos abaixo foram adicionados em 0.3c RC1. 18657 LightBeamRed 18658 LightBeamBlue ``` + ### **Etiquetas de pulverização** ``` @@ -1538,6 +1884,7 @@ Os objetos abaixo foram adicionados em 0.3c RC1. 18666 SprayTag8 18667 SprayTag9 ``` + ### **Efeitos de Partículas** ``` @@ -1623,24 +1970,28 @@ Os objetos abaixo foram adicionados em 0.3c RC1. 18747 waterfall_end 18748 WS_factorysmoke ``` + ### **SA:MP Logotipos** ``` 18749 SAMPLogoSmall 18750 SAMPLogoBig ``` + ### **Massas Terrestres** ``` 18751 IslandBase1 18752 Volcano ``` + ### **Seções básicas** ``` 18753 Base125mx125m1 18754 Base250mx250m1 ``` + ### **Elevador de VC** ``` @@ -1649,17 +2000,20 @@ Os objetos abaixo foram adicionados em 0.3c RC1. 18757 ElevatorDoor2 18758 VCElevatorFront1 ``` + ### **Gaiolas DM** ``` 18759 DMCage1 18760 DMCage2 ``` + ### **Corrida** ``` 18761 RaceFinishLine1 ``` + ### **Parkour** ``` @@ -1670,6 +2024,7 @@ Os objetos abaixo foram adicionados em 0.3c RC1. 18766 Concrete10mx1mx5m 18767 ConcreteStair1 ``` + ### **Plataformas de paraquedismo** ``` @@ -1678,6 +2033,7 @@ Os objetos abaixo foram adicionados em 0.3c RC1. 18770 SkyDivePlatform1b 18771 SpiralStair1 ``` + ### **Seções do túnel** ``` @@ -1688,6 +2044,7 @@ Os objetos abaixo foram adicionados em 0.3c RC1. 18776 TunnelJoinSection4 18777 TunnelSpiral1 ``` + ### **Rampas** ``` @@ -1702,6 +2059,7 @@ Os objetos abaixo foram adicionados em 0.3c RC1. 18786 FunBoxRamp3 18787 FunBoxRamp4 ``` + ### **Seções rodoviárias modulares** ``` @@ -1720,6 +2078,7 @@ Os objetos abaixo foram adicionados em 0.3c RC1. 18800 MRoadHelix1 18801 MRoadLoop1 ``` + ### **Seções de ponte modular** ``` @@ -1730,6 +2089,7 @@ Os objetos abaixo foram adicionados em 0.3c RC1. 18806 MBridge150m4 18807 MBridge75mHalf ``` + ### **Tubos e Funis** ``` @@ -1769,6 +2129,7 @@ Os objetos abaixo foram adicionados em 0.3c RC1. 18841 RB50mBend180Tube 18842 RB50mTube ``` + ### **Esferas** ``` @@ -1776,6 +2137,7 @@ Os objetos abaixo foram adicionados em 0.3c RC1. 18844 WaterUVAnimSphere1 18845 RTexturesphere ``` + ### **Mais coisas** ``` @@ -1784,4 +2146,4 @@ Os objetos abaixo foram adicionados em 0.3c RC1. 18848 SamSiteNonDynamic 18849 ParaDropNonDynamic 18850 HeliPad1 -``` \ No newline at end of file +``` diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/textdraws.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/textdraws.md index 36d7a013102d..75e1633434e4 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/textdraws.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/textdraws.md @@ -9,7 +9,10 @@ description: "Como o nome indica, um textdraw é um texto desenhado na tela de u Como o nome indica, um textdraw é um texto desenhado na tela de um jogador. Ao contrário das [mensagens do cliente](../functions/SendClientMessage) ou do [texto do jogo](../functions/GameTextForPlayer), no entanto, os textdraws podem ser mostrados na tela do jogador por um período de tempo indefinido. Textdraws podem ser textos simples na tela, como o endereço de um site, ou textdraws dinâmicos com scripts complexos, como barras de progresso. -Esta ferramenta de 'editor de textdraw' pode tornar o design de textdraws muito mais fácil. +Esta ferramenta de 'editor de textdraw' pode tornar o design de textdraws muito mais fácil: + +- [Nickk's TextDraw Editor](https://github.com/Nickk888SAMP/TextDraw-Editor) +- [Nexor's Textdraw Editor](https://github.com/nexquery/samp-textdraw-editor) --- diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/Installation.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/Installation.md index a3fc8c25a93b..3e7c82f3d524 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/Installation.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/server/Installation.md @@ -223,18 +223,6 @@ Abra o programa `omp-server.exe` ./omp-server ``` -## Mantendo o servidor online - -Esse programa vai reiniciar o `omp-server.exe` se o servidor open.mp travar. Tudo que você precisa fazer é salvar um arquivo de texto com a extensão `.bat` com o seguinte conteúdo: - -``` -:start -omp-server.exe -goto start -``` - -Coloque o arquivo no diretório onde o `omp-server.exe` está e inicie-o. Digite `exit` no console do servidor pra testar se o arquivo está funcionando. - ## Erros e avisos do compilador - **warning 213: tag mismatch: expected tag "?", but found none ("\_")**: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md index 1a930469e1de..1d09e07ff883 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md @@ -58,10 +58,11 @@ AddMenuItem(teleportmenu, 1, "Come-a-Lot"); A explicação para [AddMenuItem](../scripting/functions/AddMenuItem): -| menuid | O menuid do menu onde o item deve ser exibido | -| ------ | --------------------------------------------- | -| column | A coluna na qual o item deve ser mostrado | -| text | O texto do item | +| Parâmetro | Especifica | +| --------- | --------------------------------------------- | +| menuid | O menuid do menu onde o item deve ser exibido | +| column | A coluna na qual o item deve ser mostrado | +| text | O texto do item | ## Criando os efeitos para os itens diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/PluginDevelopmentGuide.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/PluginDevelopmentGuide.md index f05c6ec35b99..5257e9cdf3a0 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/PluginDevelopmentGuide.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/PluginDevelopmentGuide.md @@ -375,6 +375,24 @@ int amx_Push(AMX *amx, cell value); | --------- | ------------------- | | **amx** | A máquina abstrata. | +## amx_PushArray + +### Sintaxe + +```cpp +int amx_PushArray(AMX *amx, cell *amx_addr, cell **phys_addr, const cell array[], int numcells); +``` + +| Parâmetro | Descrição | +| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| **amx** | A máquina abstrata. | +| **amx_addr** | O endereço da célula alocada que o programa Pawn (que roda na máquina abstrata) pode acessar; necessário para liberar o bloco de memória. Esse parâmetro pode ser NULL. | +| **phys_addr** | O endereço da célula para que programas em C/C++ possam acessá-la. Esse parâmetro pode ser NULL. | + +**Notas:** Quaisquer parâmetros para uma função pública devem ser empilhados na função antes de chamar `amx_Exec`. Se uma função pública possui múltiplos argumentos, estes devem ser empilhados na ordem inversa. A função aloca memória para o array dentro do "heap" da máquina abstrata. Esta memória deve ser liberada com `amx_Release`. Veja a função `amx_Allot` para mais detalhes sobre os parâmetros `amx_addr` e `phys_addr`. + +**Veja também:** [amx_Exec](#amx_exec), [amx_Push](#amx_push), [amx_PushString](#amx_pushstring), [amx_Release](#amx_release) + ## amx_PushString \- Passa uma string. @@ -462,6 +480,30 @@ int amx_SetString(cell *dest, char *source, int pack, int use_wchar, size_t size **Veja também:** [amx_GetString](#amx_getstring) +## amx_StrLen + +### Sintaxe + +```cpp +int amx_StrLen(const cell *cstring, int *length); +``` + +**Veja também:** [amx_GetAddr](#amx_getaddr), [amx_GetString](#amx_getstring), [amx_SetString](#amx_setstring), [amx_StrParam](#amx_strparam), amx_UTF8Len+ + +## amx_StrParam + +### Sintaxe + +```cpp +amx_StrParam([AMX*] amx, int] param, [char*] result); +``` + +| Parâmetro | Descrição | +| --------- | ------------------- | +| **amx** | A máquina abstrata. | + +**Veja também:** [amx_GetAddr](#amx_getaddr), [amx_GetString](#amx_getstring), [amx_StrLen](#amx_strlen) + ## Exemplos de Funções AMX Para evitar longos blocos de texto, adicionei comentários no código para explicar o que estou fazendo em vez de escrever na seção do tópico. É provavelmente uma boa ideia manter o artigo da wiki aberto como referência enquanto lê os exemplos. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md index cc353d84f384..d1b6ba446ca5 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md @@ -1,7 +1,6 @@ --- title: Sistema de variáveis do servidor sidebar_label: Sistema de variáveis do servidor - description: O sistema de variáveis do servidor (abreviado, SVar) é uma nova forma de criar variáveis de servidor de maneira eficiente e dinâmica globalmente. --- diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/stringmanipulation.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/stringmanipulation.md index ea8b357c6bfc..fde42ad6117b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/stringmanipulation.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/stringmanipulation.md @@ -71,20 +71,20 @@ Teoricamente, você pode criar matrizes ridiculamente grandes, mas SA-MP coloca SA-MP limita os caracteres que podem ser armazenados em uma única string e evita que os criadores de scripts exagerem no trabalho com texto. Felizmente, não é tão ruim quanto pode parecer, a lista abaixo detalha alguns desses limites; -| | | | -| ------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---- | -| **Text input** | O texto que você insere no chat. | 128 | -| **Text output** | Envie essa saída na tela do cliente. | 144 | -| **Name** | Apelido/nome de usuário do jogador. | 24 | -| **Textdraw string** | Bastante autoexplicativo. | 1024 | -| **Dialog info** | O texto exibido em todas as caixas de diálogo do tipo `DIALOG_STYLE_MSGBOX`, `DIALOG_STYLE_INPUT` e `DIALOG_STYLE_PASSWORD`. | 4096 | -| **Dialog caption** | A legenda/título na parte superior da caixa de diálogo. | 64 | -| **Dialog input** | A caixa de entrada em `DIALOG_STYLE_INPUT` e `DIALOG_STYLE_PASSWORD`. | 128 | -| **Dialog column** | Os caracteres em cada coluna de `DIALOG_STYLE_TABLIST_HEADER` e `DIALOG_STYLE_TABLIST`. | 128 | -| **Dialog row** | Os caracteres em cada coluna de `DIALOG_STYLE_TABLIST_HEADER`, `DIALOG_STYLE_TABLIST` e `DIALOG_STYLE_LIST`. | 256 | -| **Chat bubble** | O balão de bate-papo exibido acima da etiqueta com o nome do jogador. | 144 | -| **Menu title** | O cabeçalho do menu nativo GTA San Andreas (_usado principalmente para lojas_). | 31 | -| **Menu item** | O item/linha do menu nativo GTA San Andreas (_usado principalmente para lojas_). | 31 | +| Tipo | Descrição | Limite | +| ------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ------ | +| **Text input** | O texto que você insere no chat. | 128 | +| **Text output** | Envie essa saída na tela do cliente. | 144 | +| **Name** | Apelido/nome de usuário do jogador. | 24 | +| **Textdraw string** | Bastante autoexplicativo. | 1024 | +| **Dialog info** | O texto exibido em todas as caixas de diálogo do tipo `DIALOG_STYLE_MSGBOX`, `DIALOG_STYLE_INPUT` e `DIALOG_STYLE_PASSWORD`. | 4096 | +| **Dialog caption** | A legenda/título na parte superior da caixa de diálogo. | 64 | +| **Dialog input** | A caixa de entrada em `DIALOG_STYLE_INPUT` e `DIALOG_STYLE_PASSWORD`. | 128 | +| **Dialog column** | Os caracteres em cada coluna de `DIALOG_STYLE_TABLIST_HEADER` e `DIALOG_STYLE_TABLIST`. | 128 | +| **Dialog row** | Os caracteres em cada coluna de `DIALOG_STYLE_TABLIST_HEADER`, `DIALOG_STYLE_TABLIST` e `DIALOG_STYLE_LIST`. | 256 | +| **Chat bubble** | O balão de bate-papo exibido acima da etiqueta com o nome do jogador. | 144 | +| **Menu title** | O cabeçalho do menu nativo GTA San Andreas (_usado principalmente para lojas_). | 31 | +| **Menu item** | O item/linha do menu nativo GTA San Andreas (_usado principalmente para lojas_). | 31 | Se de alguma forma esses limites forem excedidos, poucos inconvenientes podem ocorrer, pode até travar/congelar o servidor em alguns casos (_por exemplo, strings longas de textdraw_), em alguns outros casos, o texto seria apenas truncado como o título do menu (_se atingir 32 caracteres, ele truncará de volta para 30_) e itens. @@ -230,10 +230,9 @@ message_9[0] = EOS; ``` Como eu disse anteriormente no tutorial, você pode ignorar a atribuição do caractere nulo, mas ele está sempre presente nas células vazias, quando você declara uma nova string, todas as suas células são automaticamente ocupadas pelo terminador nulo, então, por exemplo, se eu prosseguir e declarar esta string `text[3]`, todas as suas células recebem o valor `0` por padrão, aqui está uma representação visual simples do conteúdo da string; -| | | | | +| Cells | 0 | 1 | 2 | | ---------- | ---- | ---- | ---- | -| Cells | 0 | 1 | 2 | -| ASCII code | 0 | 0 | 0 | +| ASCII code | 0 | 0 | 0 | | Characters | '\0' | '\0' | '\0' | Aqui está outro exemplo de uma string pré-preenchida. @@ -243,10 +242,9 @@ new text_1[8] = "Hello"; ``` Aqui está o conteúdo da string por célula; -| | | | | | | | | | -| ---------- | --- | --- | --- | --- | --- | ---- | ---- | ---- | -| Cells | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | -| ASCII code | 72 | 101 | 108 | 108 | 111 | 0 | 0 | 0 | +| Cells | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | +| ---------- | --- | --- | ---- | ---- | --- | ---- | ---- | ---- | +| ASCII code | 72 | 101 | 108 | 108 | 111 | 0 | 0 | 0 | | Characters | 'H' | 'e' | 'eu' | 'eu' | 'o' | '\0' | '\0' | '\0' | Se você, por exemplo, quiser excluir o conteúdo desta string, basta fazer isso usando um dos três exemplos abaixo; @@ -258,10 +256,9 @@ text_1[0] = '\0'; ``` Passar a string por uma varredura de raio-X imprimirá o seguinte; -| | | | | | | | | | -| ---------- | ---- | --- | --- | --- | --- | ---- | ---- | ---- | -| Cells | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | -| ASCII code | 0 | 101 | 108 | 108 | 111 | 0 | 0 | 0 | +| Cells | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | +| ---------- | ---- | --- | ---- | ---- | --- | ---- | ---- | ---- | +| ASCII code | 0 | 101 | 108 | 108 | 111 | 0 | 0 | 0 | | Characters | '\0' | 'e' | 'eu' | 'eu' | 'o' | '\0' | '\0' | '\0' | Se você tentar gerar esta string, tudo além do número do slot 0 será ignorado e, portanto, rotulado como uma string vazia, até mesmo a função `strlen` retornará 0, pois depende do posicionamento do caractere nulo para recuperar o comprimento da string. @@ -417,18 +414,16 @@ pkString_1 = !#pawn; Esta é uma representação visual aproximada do conteúdo de `upkString`; -| | | | | | | +| Cell | 0 | 1 | 2 | 3 | 4 | | ---------- | -------------------- | -------------------- | -------------------- | -------------------- | ----------------- | -| Cell | 0 | 1 | 2 | 3 | 4 | -| Bytes | 0. 1. 2. 3 | 0. 1. 2. 3 | 0. 1. 2. 3 | 0. 1. 2. 3 | 0. 1. 2. 3 | +| Bytes | 0. 1. 2. 3 | 0. 1. 2. 3 | 0. 1. 2. 3 | 0. 1. 2. 3 | 0. 1. 2. 3 | | Characters | \0 . \0 . \0 . **p** | \0 . \0 . \0 . **a** | \0 . \0 . \0 . **o** | \0 . \0 . \0 . **n** | \0 . \0 . \0 . \0 | E é assim que `pkString_1` seria no segundo exemplo; -| | | | +| Cell | 0 | 1 | | ---------- | ----------------------------- | ----------------- | -| Cell | 0 | 1 | -| Bytes | 0. 1. 2. 3 | 0. 1. 2. 3 | +| Bytes | 0. 1. 2. 3 | 0. 1. 2. 3 | | Characters | **p** . **a** . **c** . **n** | \0 . \0 . \0 . \0 | Você também pode acessar os indexadores de uma string compactada, como segue; @@ -679,28 +674,28 @@ Essa foi a abordagem geral na incorporação de cores com strings de diálogo e como mencionado acima, a notação **RGB** não é suportada, mas felizmente, temos outras maneiras de contornar esse problema, para textdraws, você pode usar a função nativa [TextDrawColor](../scripting/functions/TextDrawColor) para alterar a cor do textdraw, mas é o mesmo para textdraw como **RGBA** espaços de cores são para mensagens e diálogos do cliente, eles não pode ser incorporado, para isso utilizamos combinações especiais de caracteres para se referir a cores e alguns outros símbolos, você pode vê-los [aqui](../scripting/resources/gametextstyles). -| | | -| -------------- | ------ | -| \~r\~ | Vermelho | -| \~g\~ | Verde | -| \~b\~ | Azul | -| \~w\~ or \~s\~ | Branco | -| \~p\~ | Roxo | -| \~l\~ | Preto | -| \~y\~ | Amarelo | +| Código | Cor | +| -------------- | -------- | +| \~r\~ | Vermelho | +| \~g\~ | Verde | +| \~b\~ | Azul | +| \~w\~ or \~s\~ | Branco | +| \~p\~ | Roxo | +| \~l\~ | Preto | +| \~y\~ | Amarelo | Portanto, a incorporação de cores pode ser assim: **\~w\~Olá, aqui é \~b\~azul \~w\~e este é \~r\~vermelho** Você pode usar outra combinação de personagens para brincar com misturas de cores, **\~h\~**, isso deixa uma determinada cor mais clara, aqui estão alguns exemplos: -| | | -| ------------------------------ | -------------- | -| \~r\~\~h\~ | Vermelho mais claro | -| \~r\~\~h\~\~h\~ | Rosa vermelho | -| \~r\~\~h\~\~h\~\~h\~ | Vermelho escuro | -| \~r\~\~h\~\~h\~\~h\~\~h\~ | Rosa vermelho claro | -| \~r\~\~h\~\~h\~\~h\~\~h\~\~h\~ | Rosa | -| \~g\~\~h\~ | Verde claro | +| Código | Cor | +| ------------------------------ | ------------------- | +| \~r\~\~h\~ | Vermelho mais claro | +| \~r\~\~h\~\~h\~ | Rosa vermelho | +| \~r\~\~h\~\~h\~\~h\~ | Vermelho escuro | +| \~r\~\~h\~\~h\~\~h\~\~h\~ | Rosa vermelho claro | +| \~r\~\~h\~\~h\~\~h\~\~h\~\~h\~ | Rosa | +| \~g\~\~h\~ | Verde claro | Você pode encontrar mais informações sobre isso [aqui](../scripting/resources/colorslist). @@ -714,21 +709,21 @@ O caractere de escape é um caractere no qual quando prefixado a algum caractere As sequências de escape facilitam a expressão de determinados caracteres no código fonte do seu script, aqui está uma tabela contendo as sequências de escape usadas no Pawn: -| | | -| -------------------------------------------- | ------------ | -| Audible beep (on server machines) | `\a` ou `\7` | -| Backspace | `\b` | -| Escape | `\e` | -| Form feed | `\f` | -| New line | `\n` | -| Carriage return | `\r` | -| Horizontal tab | `\t` | -| Vertical tab | `\v` | -| Backslash | `\\` | -| Single quote | `\'` | -| Double quote | `\"` | -| Character code with decimal values "ddd" | `\ddd;` | -| Character code with hexadecimal values "hhh" | `\xhhh;` | +| Descrição | Sequência de escape | +| -------------------------------------------- | ------------------- | +| Audible beep (on server machines) | `\a` ou `\7` | +| Backspace | `\b` | +| Escape | `\e` | +| Form feed | `\f` | +| New line | `\n` | +| Carriage return | `\r` | +| Horizontal tab | `\t` | +| Vertical tab | `\v` | +| Backslash | `\\` | +| Single quote | `\'` | +| Double quote | `\"` | +| Character code with decimal values "ddd" | `\ddd;` | +| Character code with hexadecimal values "hhh" | `\xhhh;` | Vejamos cada um deles, afinal, a melhor maneira de aprender esse tipo de coisa é praticá-los. @@ -1038,14 +1033,14 @@ Você não pode, no entanto, mudar isso para (`-`), mas qualquer outra coisa é Esta parte aqui não tem absolutamente nada a ver com sequências de escape, mas é usada na formatação de textdraws e gametext, é melhor colocá-la aqui do que em qualquer outro lugar; -| | | -| ----- | ------------------------------------------------------------------------------------------------------------- | -| `~u~` | Seta para cima (cinza) | -| `~d~` | Seta para baixo (cinza) | -| `~<~` | Seta para esquerda (cinza) | -| `~>~` | Seta para a direita (cinza) | -| `]` | Exibe um símbolo `*` (somente nos estilos de texto 3, 4 e 5) | -| `~k~` | mapeamento de teclas do teclado (por exemplo, `~k~~VEHICLE_TURRETLEFT~` e `~k~~PED_FIREWEAPON~`). Procure aqui uma lista de chaves | +| Código | Descrição | +| ------ | ---------------------------------------------------------------------------------------------------------------------------------- | +| `~u~` | Seta para cima (cinza) | +| `~d~` | Seta para baixo (cinza) | +| `~<~` | Seta para esquerda (cinza) | +| `~>~` | Seta para a direita (cinza) | +| `]` | Exibe um símbolo `*` (somente nos estilos de texto 3, 4 e 5) | +| `~k~` | mapeamento de teclas do teclado (por exemplo, `~k~~VEHICLE_TURRETLEFT~` e `~k~~PED_FIREWEAPON~`). Procure aqui uma lista de chaves | mapeamento de teclas do teclado (por exemplo, `~k~~VEHICLE_TURRETLEFT~` e `~k~~PED_FIREWEAPON~`). Procure aqui uma lista de chaves @@ -1064,18 +1059,17 @@ Placeholders são usados ​​apenas em funções que aceitam parâmetros, port Vejamos os diferentes tipos de saída que podem ser usados: -| | | -| ------------- | ----------------------------------------------- | -| **Specifier** | **Significado** | -| `%i` | Inteiro (_número inteiro_) | -| `%d` | Inteiro (_número inteiro_) | -| `%s` | Corda | -| `%f` | Número de ponto flutuante (`Float: tag`) | -| `%c` | Caractere ASCII | -| `%x` | Número hexadecimal | -| `%b` | Número binário | -| `%%` | Literal `'%'` | -| `%q` | Escape de um texto para SQLite. (_Adicionado em 0.3.7 R2_) | +| **Specifier** | **Significado** | +| ------------- | ---------------------------------------------------------- | +| `%i` | Inteiro (_número inteiro_) | +| `%d` | Inteiro (_número inteiro_) | +| `%s` | Corda | +| `%f` | Número de ponto flutuante (`Float: tag`) | +| `%c` | Caractere ASCII | +| `%x` | Número hexadecimal | +| `%b` | Número binário | +| `%%` | Literal `'%'` | +| `%q` | Escape de um texto para SQLite. (_Adicionado em 0.3.7 R2_) | - **Os especificadores de número inteiro - `%i` e `%d`** @@ -1485,14 +1479,13 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) ``` Dada a seguinte lista de jogadores conectados: -| | | +| **ID** | **Jogador** | | ------ | ----------------------------------------------- | -| **ID** | **Jogador** | -| 0 | Compton | -| 1 | Dark | -| 5 | Player1 | -| 6 | Bartolomew | -| 11 | unban_pls | +| 0 | Compton | +| 1 | Dark | +| 5 | Player1 | +| 6 | Bartolomew | +| 11 | unban_pls | Digamos, `playerid` `0` matou `playerid` `6`, as mensagens formatadas devem soletrar “**\{FF0000\}Compton \{000000\}killed > \{0000FF\}Bartolomew**”, que enviará a seguinte mensagem do cliente para todos no servidor: diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md index aa4bf1e103ea..52f5489e7780 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md @@ -1,6 +1,6 @@ --- -titlu: OnClientMessage -descriere: Acest callback este apelat oricand NPC-ul vede un ClientMessage +title: OnClientMessage +description: Acest callback este apelat oricand NPC-ul vede un ClientMessage tags: [] --- 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 d3592f07163f..9aef92a7f619 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 @@ -9,6 +9,12 @@ tags: [] Acest callback este apelat atunci când un mod de joc se termină, fie prin „gmx”, serverul fiind oprit, fie GameModeExit. +## Returnări + +Acest callback nu se ocupă de returnări. + +Este întotdeauna numit primul în modul de joc. + ## Exemple ```c @@ -23,7 +29,9 @@ 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. Acest callback NU va fi apelat dacă serverul se blochează sau procesul este oprit prin alte mijloace, cum ar fi utilizarea comenzii Linux kill sau apăsarea butonului de închidere de pe consola Windows. +- 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. +- 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 ded287445d50..e65a9bdb0a89 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 @@ -1,6 +1,6 @@ --- -titlu: OnGameModeInit -descriere: Acest callback este apelat atunci când gamemode-ul a pornit. +title: OnGameModeInit +description: Acest callback este apelat atunci când gamemode-ul a pornit. tags: [] --- @@ -8,6 +8,12 @@ tags: [] Acest callback este apelat atunci când gamemode-ul a pornit. +## Returnări + +Acest callback nu se ocupă de returnări. + +Este întotdeauna numit primul în modul de joc. + ## Exemple ```c @@ -26,4 +32,7 @@ Această funcție poate fi utilizată și într-un filterscript pentru a detecta ::: -## Funcții relatate +## Callback-uri similare + +- [OnFilterScriptInit](OnFilterScriptInit): Apelat când este încărcat un filterscript. +- [OnFilterScriptExit](OnFilterScriptExit): Apelat când un filterscript este descărcat. diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md index 5e0c4e296e45..f9f83d7bc7c2 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDeath.md @@ -62,6 +62,10 @@ TREBUIE să verificați dacă „killerid” este valid (nu INVALID_PLAYER_ID) ::: +## Callback-uri similare + +- [OnPlayerSpawn](OnPlayerSpawn): Acest callback este apelat atunci când apare un jucător. + ## Funcții similare - [SendDeathMessage](../functions/SendDeathMessage): Adăugați o ucidere pe lista morților. diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md index 3357a53bfa68..d82e73b98910 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerEditObject.md @@ -96,3 +96,7 @@ Când utilizați „EDIT_RESPONSE_UPDATE”, rețineți că acest callback nu va - [CreateObject](../functions/CreateObject): Creați un obiect. - [DestroyObject](../functions/DestroyObject): Distruge un obiect. - [MoveObject](../functions/MoveObject): Mutați un obiect. + +## Related Resources + +- [Tipuri de răspuns editare obiect](../resources/objecteditionresponsetypes) diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md index 22d39fae6949..1b0e95c8a345 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md @@ -59,3 +59,8 @@ public OnPlayerGiveDamage(playerid, damagedid, Float:amount, WEAPON:weaponid, bo Dacă doriți să împiedicați anumiți jucători să-și deterioreze unii pe alții, utilizați SetPlayerTeam. ::: + +## Callback-uri similare + +- [OnPlayerTakeDamage](OnPlayerTakeDamage): Acest callback este apelat atunci când un jucător primește daune. +- [OnPlayerWeaponShot](OnPlayerWeaponShot): Acest callback este apelat atunci când un jucător trage o lovitură dintr-o armă. 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 46b1efb9fe7d..9d593ae7f8a6 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 @@ -39,6 +39,10 @@ public OnPlayerStateChange(playerid, PLAYER_STATE:newstate, PLAYER_STATE:oldstat +## Callback-uri similare + +- [OnPlayerInteriorChange](OnPlayerInteriorChange): Apelat când un jucător schimbă interiorul. + ## Funcții similare - [GetPlayerState](../functions/GetPlayerState): Obțineți starea actuală a unui jucător. diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md index 91375c34e30b..ea68c34a4519 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md @@ -75,3 +75,7 @@ Armă va returna 37 (aruncător de flăcări) din orice sursă de foc (de exempl GetPlayerHealth și GetPlayerArmour vor returna vechile sume ale jucătorului înainte de acest apel invers. Verificați întotdeauna dacă issuerid este valid înainte de a-l folosi ca index de matrice. ::: + +## Callback-uri similare + +- [OnPlayerWeaponShot](OnPlayerWeaponShot): Acest callback este apelat atunci când un jucător trage o lovitură dintr-o armă. diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md index 682b3fa92ca9..1a50f58b3fa9 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md @@ -84,7 +84,8 @@ public OnPlayerUpdate(playerid) :::warning -Acest callback este apelat, în medie, de 30 de ori pe secundă, per jucător; folosește-l doar atunci când știi la ce este destinat (sau mai important pentru ce NU este destinat). Frecvența cu care acest apel invers este apelat pentru fiecare jucător variază, în funcție de ceea ce face jucătorul. Conducerea sau fotografierea va declanșa mult mai multe actualizări decât la ralanti. +- Acest callback este apelat, în medie, de 30 de ori pe secundă, per jucător; folosește-l doar atunci când știi la ce este destinat (sau mai important pentru ce NU este destinat). +- Frecvența cu care acest apel invers este apelat pentru fiecare jucător variază, în funcție de ceea ce face jucătorul. Conducerea sau fotografierea va declanșa mult mai multe actualizări decât la ralanti. ::: 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 e3c8d7b596d1..2da1b6aa6ef5 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 @@ -44,7 +44,10 @@ public OnRconCommand(cmd[]) :::note -„/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. +- „/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. ::: 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 9c53e3b74e3b..af4ccbdb87a2 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 @@ -46,7 +46,8 @@ public OnRconLoginAttempt(ip[], password[], success) :::note -Acest callback este apelat numai când autentificarea /rcon 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 când autentificarea /rcon 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. ::: 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 159a5eb16db8..03bd5486e4b4 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 @@ -39,7 +39,8 @@ public OnGameModeInit() :::note -`Useartwork` trebuie să fie activat mai întâi în setările serverului pentru ca acesta să funcționeze Când virtualworld este setat, modelele vor fi descărcate odată ce jucătorul intră în lumea specifică +- `useartwork` trebuie să fie activat mai întâi în setările serverului pentru ca acesta să funcționeze +- Când virtualworld este setat, modelele vor fi descărcate odată ce jucătorul intră în lumea specifică ::: 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 937bf2afaf26..47217b73dbfe 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 @@ -41,7 +41,8 @@ public OnGameModeInit() :::note -Useartwork trebuie să fie activat mai întâi în setările serverului pentru ca acest lucru să funcționeze Când virtualworld este setat, modelele vor fi descărcate odată ce jucătorul intră în lumea specifică +- `useartwork` trebuie să fie activat mai întâi în setările serverului pentru ca acest lucru să funcționeze +- Când virtualworld este setat, modelele vor fi descărcate odată ce jucătorul intră în lumea specifică ::: diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/acos.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/acos.md index 47fd21d70be1..71f52de052e6 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/acos.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/functions/acos.md @@ -1,7 +1,7 @@ --- title: acos sidebar_label: acos -description: . +description: Obțineți valoarea inversată a unui cosinus arc în radiani. tags: [] --- diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/language/Variables.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/language/Variables.md index d8c536bde86d..9a6ac3cf3017 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/language/Variables.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/language/Variables.md @@ -75,7 +75,7 @@ public OnPlayerConnect (playerid) return 1; } -// Output : +// Output: // The value is 10 // The value is 100 @@ -132,14 +132,14 @@ Acum că știți cum să declarați variabile, trebuie să cunoașteți regulile #### Exemple: ```c -new new; // Incorrect : Using a reserved word +new new; // Incorrect: Using a reserved word new _new; // Correct -new 10letters; // Incorrect : Name starting with a number +new 10letters; // Incorrect: Name starting with a number new letters10; // Correct new letters_10; // Correct -new my name; // Incorrect : Space in the name +new my name; // Incorrect: Space in the name new my_name; // Correct new !nternet; // Incorrect @@ -210,7 +210,7 @@ public OnFilterScriptInit () return 1; } -// Output : +// Output: a 1 1.000000 diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/resources/carcomponentid.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/resources/carcomponentid.md index eb0038386614..f2311c5e6cee 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/resources/carcomponentid.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/resources/carcomponentid.md @@ -420,4 +420,4 @@ description: Informații despre ID-urile componentelor mașinii, numele modelelo ## Toate costurile componentelor separate prin virgulă -`400, 550, 200, 250, 100, 150, 80, 500, 500, 200, 1000, 220, 250, 100, 400, 500, 200, 500, 350, 300, 250, 200, 150, 350, 50, 1000, 480, 480, 770, 680, 370, 370, 170, 120, 790, 150, 500, 690, 190, 390, 500, 390, 1000, 500, 500, 510, 710, 670, 530, 810, 620, 670, 530, 130, 210, 230, 520, 430, 620, 720, 530, 180, 550, 430, 830, 850, 750, 250, 200, 550, 450, 550, 450, 1100, 1030, 980, 1560, 1620, 1200, 1030, 900, 1230, 820, 1560, 1350, 770, 100, 1500, 150, 650, 450, 100, 750, 350, 450, 350, 1000, 620, 1140, 1000, 940, 780, 830, 3250, 1610, 1540, 780, 780, 780, 1610, 1540, 0, 0, 3340, 3250, 2130, 2050, 2040, 780, 940, 780, 940, 780, 860, 780, 1120, 3340, 3250, 3340, 1650, 3380, 3290, 1590, 830, 800, 1500, 1000, 800, 580, 470, 870, 980, 150, 150, 100, 100, 490, 600, 890, 1000, 1090, 840, 910, 1200, 1030, 1030, 920, 930, 550, 1050, 1050, 950, 650, 450, 550, 850, 950, 850, 950, 970, 880, 990, 900, 950, 1000, 900, 1000, 900, 2050, 2150, 2130, 2050, 2130, 2040, 2150, 2040, 2095, 2175, 2080, 2200, 1200, 1040, 940, 1100` +`400`, `550`, `200`, `250`, `100`, `150`, `80`, `500`, `500`, `200`, `1000`, `220`, `250`, `100`, `400`, `500`, `200`, `500`, `350`, `300`, `250`, `200`, `150`, `350`, `50`, `1000`, `480`, `480`, `770`, `680`, `370`, `370`, `170`, `120`, `790`, `150`, `500`, `690`, `190`, `390`, `500`, `390`, `1000`, `500`, `500`, `510`, `710`, `670`, `530`, `810`, `620`, `670`, `530`, `130`, `210`, `230`, `520`, `430`, `620`, `720`, `530`, `180`, `550`, `430`, `830`, `850`, `750`, `250`, `200`, `550`, `450`, `550`, `450`, `1100`, `1030`, `980`, `1560`, `1620`, `1200`, `1030`, `900`, `1230`, `820`, `1560`, `1350`, `770`, `100`, `1500`, `150`, `650`, `450`, `100`, `750`, `350`, `450`, `350`, `1000`, `620`, `1140`, `1000`, `940`, `780`, `830`, `3250`, `1610`, `1540`, `780`, `780`, `780`, `1610`, `1540`, `0`, `0`, `3340`, `3250`, `2130`, `2050`, `2040`, `780`, `940`, `780`, `940`, `780`, `860`, `780`, `1120`, `3340`, `3250`, `3340`, `1650`, `3380`, `3290`, `1590`, `830`, `800`, `1500`, `1000`, `800`, `580`, `470`, `870`, `980`, `150`, `150`, `100`, `100`, `490`, `600`, `890`, `1000`, `1090`, `840`, `910`, `1200`, `1030`, `1030`, `920`, `930`, `550`, `1050`, `1050`, `950`, `650`, `450`, `550`, `850`, `950`, `850`, `950`, `970`, `880`, `990`, `900`, `950`, `1000`, `900`, `1000`, `900`, `2050`, `2150`, `2130`, `2050`, `2130`, `2040`, `2150`, `2040`, `2095`, `2175`, `2080`, `2200`, `1200`, `1040`, `940`, `1100` diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/resources/clicksources.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/resources/clicksources.md index 0588bd52e881..32046a7e0b1a 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/resources/clicksources.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/resources/clicksources.md @@ -1,7 +1,6 @@ --- title: Sursa Clickului sidebar_label: Sursa Clickului - description: Sursa Clickului --- diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/ControllingServer.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/ControllingServer.md index 81d6c6636bc6..f47f5bfb4acc 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/ControllingServer.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/server/ControllingServer.md @@ -1,6 +1,6 @@ --- -titlu: "Controlarea unui server" -descriere: Comenzi utile pentru controlarea unui server. +title: "Controlarea unui server" +description: Comenzi utile pentru controlarea unui server. --- ## Schimbarea gamemode-ului diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md index 189912eace02..bab8dd3efa1c 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md @@ -56,10 +56,11 @@ AddMenuItem(teleportmenu, 1, "Come-a-Lot"); Explicația pentru [AddMenuItem](../scripting/functions/AddMenuItem): -| menuid | Meniul din meniul în care va fi afișat elementul | -| ------ | ------------------------------------------------ | -| column | Coloana în care va fi afișat elementul | -| text | Textul articolului | +| Parameter | Specifies | +| --------- | ------------------------------------------------ | +| menuid | Meniul din meniul în care va fi afișat elementul | +| column | Coloana în care va fi afișat elementul | +| text | Textul articolului | ## Crearea efectelor pentru elemente diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/colorfix.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/colorfix.md index bd85a8a2b8c8..63f254488403 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/colorfix.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/colorfix.md @@ -1,6 +1,6 @@ --- -titlu: "Culoare Fixata" -descriere: Un simplu script pentru a adauga mai multe culori la jucatori. +title: "Culoare Fixata" +description: Un simplu script pentru a adauga mai multe culori la jucatori. --- Acest tutorial este facut sa fie folosit cu [GetPlayerColor](../scripting/functions/GetPlayerColor), Daca nu il folosesti [SetPlayerColor](../scripting/functions/SetPlayerColor) in scriptul tau cand jucatorii se conecteaza. diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md index 091e9f7aa071..7080b2757442 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/perplayervariablesystem.md @@ -36,13 +36,13 @@ Noul sistem introdus în serverul SA-MP 0.3a R5 actualizat are câteva avantaje Funcțiile pentru setarea și recuperarea variabilelor playerului sunt: -- [SetPVarInt](../scripting/functions/SetPVarInt) Setați un număr întreg pentru o variabilă de jucător. -- [GetPVarInt](../scripting/functions/GetPVarInt) Obțineți numărul întreg setat anterior de la o variabilă de jucător. -- [SetPVarString](../scripting/functions/SetPVarString) Setați un șir pentru o variabilă de jucător. -- [GetPVarString](../scripting/functions/GetPVarString) Obțineți șirul stabilit anterior de la o variabilă de jucător. -- [SetPVarFloat](../scripting/functions/SetPVarFloat) Setați un float pentru o variabilă de jucător. -- [GetPVarFloat](../scripting/functions/GetPVarFloat) Obțineți floatul setat anterior de la o variabilă de jucător. -- [DeletePVar](../scripting/functions/DeletePVar) Ștergeți o variabilă de jucător. +- [SetPVarInt](../scripting/functions/SetPVarInt): Setați un număr întreg pentru o variabilă de jucător. +- [GetPVarInt](../scripting/functions/GetPVarInt): Obțineți numărul întreg setat anterior de la o variabilă de jucător. +- [SetPVarString](../scripting/functions/SetPVarString): Setați un șir pentru o variabilă de jucător. +- [GetPVarString](../scripting/functions/GetPVarString): Obțineți șirul stabilit anterior de la o variabilă de jucător. +- [SetPVarFloat](../scripting/functions/SetPVarFloat): Setați un float pentru o variabilă de jucător. +- [GetPVarFloat](../scripting/functions/GetPVarFloat): Obțineți floatul setat anterior de la o variabilă de jucător. +- [DeletePVar](../scripting/functions/DeletePVar): Ștergeți o variabilă de jucător. ```c #define PLAYER_VARTYPE_NONE (0) diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md index 039ab5025bf1..3b6f9ef0c6dd 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md @@ -1,7 +1,6 @@ --- title: System de variabile pe server sidebar_label: System de variabile pe server - description: Sistemul de variabile de server (scurtat, SVar) este un nou mod de a crea variabile de server într-o metodă eficientă creată dinamic la nivel global. --- 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 7ea774a5ead8..93d94e17863d 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 @@ -72,20 +72,20 @@ Teoretic, puteți crea tablouri oarecum ridicol de mari, dar SA-MP pune puține SA-MP limitează caracterele care pot fi stocate într-un singur șir și împiedică scripterii să meargă peste bord cu lucrul cu textul, din fericire, nu este atât de rău pe cât ar părea, lista de mai jos descompune unele dintre aceste limite; -| | | | -| ------------------- | ------------------------------------------------------------------------------------------------------------------------- | ---- | -| **Text input** | Textul introdus în chat. | 128 | -| **Text output** | Text care se afișează pe ecranul clientului. | 144 | -| **Name** | Pseudonimul jucătorului / numele de utilizator. | 24 | -| **Textdraw string** | Destul de auto-explicativ. | 1024 | -| **Dialog info** | Textul afișat pe toate casetele de dialog de tipul `DIALOG_STYLE_MSGBOX`,`DIALOG_STYLE_INPUT` și `DIALOG_STYLE_PASSWORD`. | 4096 | -| **Dialog caption** | Legenda / titlul din partea de sus a dialogului. | 64 | -| **Dialog input** | Caseta de introducere de pe „DIALOG_STYLE_INPUT” și „DIALOG_STYLE_PASSWORD”. | 128 | -| **Dialog columnt** | Caracterele din fiecare coloană din „DIALOG_STYLE_TABLIST_HEADER” și „DIALOG_STYLE_TABLIST”. | 128 | -| **Dialog row** | Caracterele din fiecare coloană din "DIALOG_STYLE_TABLIST_HEADER", "DIALOG_STYLE_TABLIST" și "DIALOG_STYLE_LIST". | 256 | -| **Chat bubble** | Balonul de chat care se afișează deasupra etichetei de nume a jucătorului. | 144 | -| **Menu title** | Antetul meniului nativ GTA San Andreas (cel mai utilizat pentru magazine\_). | 31 | -| **Menu item** | Meniul nativ GTA San Andreas (_ cel mai utilizat pentru magazine_) element / rând. | 31 | +| Tip | Descriere | Limită | +| ------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------ | +| **Text input** | Textul introdus în chat. | 128 | +| **Text output** | Text care se afișează pe ecranul clientului. | 144 | +| **Name** | Pseudonimul jucătorului / numele de utilizator. | 24 | +| **Textdraw string** | Destul de auto-explicativ. | 1024 | +| **Dialog info** | Textul afișat pe toate casetele de dialog de tipul `DIALOG_STYLE_MSGBOX`,`DIALOG_STYLE_INPUT` și `DIALOG_STYLE_PASSWORD`. | 4096 | +| **Dialog caption** | Legenda / titlul din partea de sus a dialogului. | 64 | +| **Dialog input** | Caseta de introducere de pe „DIALOG_STYLE_INPUT” și „DIALOG_STYLE_PASSWORD”. | 128 | +| **Dialog columnt** | Caracterele din fiecare coloană din „DIALOG_STYLE_TABLIST_HEADER” și „DIALOG_STYLE_TABLIST”. | 128 | +| **Dialog row** | Caracterele din fiecare coloană din "DIALOG_STYLE_TABLIST_HEADER", "DIALOG_STYLE_TABLIST" și "DIALOG_STYLE_LIST". | 256 | +| **Chat bubble** | Balonul de chat care se afișează deasupra etichetei de nume a jucătorului. | 144 | +| **Menu title** | Antetul meniului nativ GTA San Andreas (cel mai utilizat pentru magazine\_). | 31 | +| **Menu item** | Meniul nativ GTA San Andreas (_ cel mai utilizat pentru magazine_) element / rând. | 31 | Dacă cumva aceste limite au fost depășite, s-ar putea să apară puține inconveniente, acesta poate chiar să blocheze / înghețe serverul în unele cazuri (de exemplu, șiruri lungi de desen text), în alte cazuri, textul s-ar trunchia ca titlul meniului (_daca ajunge la 32 de caractere, se trunchiază la 30_) și articole. @@ -241,9 +241,8 @@ message_9[0] = EOS; După cum am spus mai devreme în tutorial, puteți ignora atribuirea caracterului nul, dar este întotdeauna acolo la celulele goale, atunci când declarați un șir nou, toate celulele sale sunt ocupate automat de terminatorul nul, deci, de exemplu, dacă merg înainte și declarați acest șir `text[3]`, tuturor celulelor sale li se atribuie valoarea `0` în mod implicit, iată o simplă reprezentare vizuală a conținutului șirului; -| | | | | -| ---------- | ---- | ---- | ---- | | Cells | 0 | 1 | 2 | +| ---------- | ---- | ---- | ---- | | ASCII code | 0 | 0 | 0 | | Characters | '\0' | '\0' | '\0' | @@ -255,9 +254,8 @@ new text_1[8] = "Hello"; Iată conținutul șirului pe celulă; -| | | | | | | | | | -| ---------- | --- | --- | --- | --- | --- | ---- | ---- | ---- | | Cells | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | +| ---------- | --- | --- | --- | --- | --- | ---- | ---- | ---- | | ASCII code | 72 | 101 | 108 | 108 | 111 | 0 | 0 | 0 | | Characters | 'H' | 'e' | 'l' | 'l' | 'o' | '\0' | '\0' | '\0' | @@ -271,9 +269,8 @@ text_1[0] = '\0'; Trecerea șirului printr-o scanare cu raze X va imprima următoarele; -| | | | | | | | | | -| ---------- | ---- | --- | --- | --- | --- | ---- | ---- | ---- | | Cells | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | +| ---------- | ---- | --- | --- | --- | --- | ---- | ---- | ---- | | ASCII code | 0 | 101 | 108 | 108 | 111 | 0 | 0 | 0 | | Characters | '\0' | 'e' | 'l' | 'l' | 'o' | '\0' | '\0' | '\0' | @@ -443,17 +440,15 @@ Așa funcționează pur și simplu, declarați un șir cu dimensiunea pe care ar Aceasta este o reprezentare vizuală aproximativă a conținutului `upkString`; -| | | | | | | -| ---------- | -------------------- | -------------------- | -------------------- | -------------------- | ----------------- | | Cell | 0 | 1 | 2 | 3 | 4 | +| ---------- | -------------------- | -------------------- | -------------------- | -------------------- | ----------------- | | Bytes | 0 . 1 . 2 . 3 | 0 . 1 . 2 . 3 | 0 . 1 . 2 . 3 | 0 . 1 . 2 . 3 | 0 . 1 . 2 . 3 | | Characters | \0 . \0 . \0 . **p** | \0 . \0 . \0 . **a** | \0 . \0 . \0 . **w** | \0 . \0 . \0 . **n** | \0 . \0 . \0 . \0 | Și așa ar fi `pkString_1` în al doilea exemplu; -| | | | -| ---------- | ----------------------------- | ----------------- | | Cell | 0 | 1 | +| ---------- | ----------------------------- | ----------------- | | Bytes | 0 . 1 . 2 . 3 | 0 . 1 . 2 . 3 | | Characters | **p** . **a** . **w** . **n** | \0 . \0 . \0 . \0 | @@ -726,21 +721,21 @@ Aceasta a fost abordarea generală a încorporării culorilor cu șiruri de dial așa cum s-a menționat mai sus, notația **RGB** nu este acceptată, dar din fericire, avem alte modalități de a rezolva această problemă, pentru textdraws, puteți utiliza funcția nativă [TextDrawColor](../scripting/functions/TextDrawColor) pentru schimbați culoarea textului de desen, dar același lucru cu textul de desenat ca spațiile de culoare ** RGBA ** sunt pentru mesajele și dialogurile clientului, acestea nu pot fi încorporate, pentru aceasta, folosim o combinație specială de caractere pentru a ne referi la culori și alte câteva simboluri , le puteți vedea [aici](../scripting/resources/gametextstyles). -| | | -| -------------- | ------ | -| \~r\~ | Red | -| \~g\~ | Green | -| \~b\~ | Blue | -| \~w\~ or \~s\~ | White | -| \~p\~ | Purple | -| \~l\~ | Black | -| \~y\~ | Yellow | +| Cod | Culoare | +| -------------- | ------- | +| \~r\~ | Red | +| \~g\~ | Green | +| \~b\~ | Blue | +| \~w\~ or \~s\~ | White | +| \~p\~ | Purple | +| \~l\~ | Black | +| \~y\~ | Yellow | Deci, culorile de încorporare pot merge astfel: **\~w\~ Bună ziua acesta este \~b\~ albastru \~w\~ și acesta este \~ r\~ roșu** Puteți utiliza o altă combinație de caractere pentru a vă juca cu combinații de culori, **\~h\~**, face o anumită culoare mai deschisă, iată câteva exemple: -| | | +| Cod | Culoare | | ------------------------------ | ---------------- | | \~r\~\~h\~ | Roșu mai deschis | | \~r\~\~h\~\~h\~ | Roșu roz | @@ -761,21 +756,21 @@ Caracterul de evadare este un caracter în care, atunci când este prefixat la u Secvențele de evacuare facilitează exprimarea anumitor caractere în codul sursă al scriptului dvs., iată un tabel care conține secvențele de evadare utilizate în pawn: -| | | -| --------------------------------------------- | ------------ | -| Bip sonor (pe mașini server) | `\a` or `\7` | -| Backspace | `\b` | -| Evadare | `\e` | -| Formular de alimentare | `\f` | -| Linie nouă | `\n` | -| Retur transport | `\r` | -| Filă orizontală | `\t` | -| Fila verticală | `\v` | -| Backslash | `\\` | -| Citat unic | `\'` | -| Citat dublu | `\"` | -| Cod de caractere cu valori zecimale "ddd" | `\ddd;` | -| Cod de caractere cu valori hexazecimale "hhh" | `\xhhh;` | +| Descriere | Secvență de evadare | +| --------------------------------------------- | ------------------- | +| Bip sonor (pe mașini server) | `\a` or `\7` | +| Backspace | `\b` | +| Evadare | `\e` | +| Formular de alimentare | `\f` | +| Linie nouă | `\n` | +| Retur transport | `\r` | +| Filă orizontală | `\t` | +| Fila verticală | `\v` | +| Backslash | `\\` | +| Citat unic | `\'` | +| Citat dublu | `\"` | +| Cod de caractere cu valori zecimale "ddd" | `\ddd;` | +| Cod de caractere cu valori hexazecimale "hhh" | `\xhhh;` | Să ne uităm la fiecare dintre ei, la urma urmei, cel mai bun mod de a învăța acest gen de lucruri stă în practicarea lor. @@ -1131,7 +1126,7 @@ Cu toate acestea, nu poți schimba acest lucru în (`-`), dar orice altceva este Această porțiune de aici nu are absolut nimic de-a face cu secvențele de evadare, dar este utilizată la formatarea textelor și a gametextului, este mai bine să o puneți aici decât oriunde altundeva; -| | | +| Cod | Descriere | | ----- | ----------------------------------------------------------------------------------------------------------------------------- | | `~u~` | Săgeată sus (gri) | | `~d~` | Săgeată în jos (gri) | 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 a14660188742..4dad4e0a2666 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 @@ -5,6 +5,8 @@ description: Добавляет стороннюю модель объекта tags: [] --- + + ## Описание Добавляет сторонний объект для скачивания. Файл модели будет помещен в папку на компьютер игрока Documents\GTA San Andreas User Files\SAMP\cache под названием IP и Порта сервера в виде CRC формы. @@ -37,7 +39,8 @@ public OnGameModeInit() :::note -`useartwork` должна быть включена (1) в настройках сервера, чтобы данная функция работала. В случае если установлен виртуальный мир (virtualworld), модель будет скачана когда игрок попадёт в указанный виртуальный мир. +- `useartwork` должна быть включена (1) в настройках сервера, чтобы данная функция работала. +- В случае если установлен виртуальный мир (virtualworld), модель будет скачана когда игрок попадёт в указанный виртуальный мир. ::: 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 d4d7c247fddd..9c8aebb5a78c 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 @@ -42,7 +42,8 @@ public OnGameModeInit() :::note -`useartwork` должна быть включена (1) в настройках сервера, чтобы данная функция работала. В случае если установлен виртуальный мир (virtualworld), модель будет скачана когда игрок попадёт в указанный виртуальный мир. +- `useartwork` должна быть включена (1) в настройках сервера, чтобы данная функция работала. +- В случае если установлен виртуальный мир (virtualworld), модель будет скачана когда игрок попадёт в указанный виртуальный мир. ::: diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md index dadfb28d0b82..f4b9ad8fc0b0 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md @@ -27,7 +27,8 @@ playerskin = GetPlayerSkin(playerid); :::note -Возращение нового значения ID скина после использования SetSpawnInfo будет после спавна игрока с новым скином. Возвращает старое значение скина, если игрок заспавнился при использовании функции SpawnPlayer. +- Возращение нового значения ID скина после использования SetSpawnInfo будет после спавна игрока с новым скином. +- Возвращает старое значение скина, если игрок заспавнился при использовании функции SpawnPlayer. ::: diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md index 074811c1c156..5319958d100e 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md @@ -90,7 +90,12 @@ SetPlayerSkinFix(playerid, skinid) :::warning -Известные Баги: Если игроку установлен скин, когда он присел, находится в машине или выполняет определенные анимации, игрок может заморозиться или произойдёт сбой. Это может быть исправлено путём использования TogglePlayerControllable. Для определения положения сидя игрока используется GetPlayerSpecialAction (SPECIAL_ACTION_DUCK). Другие игроки могут поймать краш, если он в машине или он входит/выходит из транспорта. Установка скина игроку, когда он мёртв может спровоцировать краш игрокам, находящимся рядом с ним. Перерывается сидение на байках. +Известные Баги: + +- Если игроку установлен скин, когда он присел, находится в машине или выполняет определенные анимации, игрок может заморозиться или произойдёт сбой. Это может быть исправлено путём использования TogglePlayerControllable. Для определения положения сидя игрока используется GetPlayerSpecialAction (SPECIAL_ACTION_DUCK). +- Другие игроки могут поймать краш, если он в машине или он входит/выходит из транспорта. +- Установка скина игроку, когда он мёртв может спровоцировать краш игрокам, находящимся рядом с ним. +- Перерывается сидение на байках. ::: diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md index 386cae4d4a44..e4e23463203a 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md @@ -1,7 +1,6 @@ --- title: Система серверных переменных sidebar_label: Система серверных переменных - description: Система серверных переменных (в сокращении SVar) - это новый способ динамического создания серверных переменных в глобальном пространстве. --- 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 9b80c79ec3f9..9e690b0f3e4c 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 @@ -9,6 +9,10 @@ tags: [] Ta "callback" se pokliče, ko se "gamemode" izklopi prek 'gmx', kadar koli se strežnik izklopi, bodisi pod "GameModeExit" +## Returns + +Ta "callback" se ne obdeluje (return). + ## Primeri ```c @@ -23,7 +27,9 @@ 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. Ta "callback" ne bo poklican, če se strežnik zruši ali če postopek ubijete z drugimi sredstvi, kot je ukaz Linux "kill" ali s pritiskom na gumb za zapiranje v konzoli Windows. +- 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. +- 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/OnGameModeInit.md b/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md index 69b23e9457a6..06fdf9ac4dfe 100644 --- a/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md +++ b/frontend/i18n/sl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md @@ -9,6 +9,10 @@ tags: [] Ta callback se aktivira, ko se zažene "gamemode". +## Returns + +Ta "callback" se ne obdeluje (return). + ## Primeri ```c diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md index 6541cbd6dd98..330c7c6069bd 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md @@ -37,9 +37,7 @@ public OnEnterExitModShop(playerid, enterexit, interiorid) :::warning -Познат bug: - -- Играчима се дешава судар када уђу у исти мод шоп. +Познат bug: Играчима се дешава судар када уђу у исти мод шоп. ::: diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md index 19be69d6c3cb..2d16acec2012 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md @@ -9,6 +9,12 @@ tags: [] Ова повратна функција се позива када се гамемод заврши, било да је то преко `gmx`, затварања сервера или `GameModeExit`. +## Враћа + +Ова повратна функција не враћа ништа. + +Увек се позива прва у гамемод-у. + ## Примери ```c @@ -29,9 +35,8 @@ public OnGameModeExit() :::warning -Када користите OnGameModeExit у комбинацији са 'rcon gmx' командом у конзоли, имајте на уму да може доћи до потенцијалних грешака на клијенту. - -Пример овога је прекомерно коришћење [RemoveBuildingForPlayer](../functions/RemoveBuildingForPlayer) током [OnGameModeInit](OnGameModeInit), што може довести до пада клијента. Ова повратна функција НЕЋЕ бити позвана ако сервер падне или процес буде убијен на друге начине, као што је коришћење Linux kill команде или притискање дугмета за затварање на Windows конзоли. +- Када користите OnGameModeExit у комбинацији са 'rcon gmx' командом у конзоли, имајте на уму да може доћи до потенцијалних грешака на клијенту. Пример овога је прекомерно коришћење [RemoveBuildingForPlayer](../functions/RemoveBuildingForPlayer) током [OnGameModeInit](OnGameModeInit), што може довести до пада клијента. +- Ова повратна функција НЕЋЕ бити позвана ако сервер падне или процес буде убијен на друге начине, као што је коришћење Linux kill команде. ::: diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md index 8914026d9027..e8ed8f3eca25 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md @@ -9,6 +9,12 @@ tags: [] Ова повратна функција се активира када се гамемоде покрене. +## Враћа + +Ова повратна функција не враћа ништа. + +Увек се позива прва у гамемод-у. + ## Примери ```c diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md index 9ac9afb96838..70375952d1b4 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md @@ -19,3 +19,7 @@ public OnNPCSpawn() return 1; } ``` + +## Повезане повратне функције + +- [OnPlayerSpawn](OnPlayerSpawn): Ова повратна функција се позива када играч спавнује. 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 ec9ddceb4615..f98847adc315 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,8 +34,7 @@ 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/OnPlayerUpdate.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md index 80d02c937955..7f19ee5d2812 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md @@ -92,6 +92,7 @@ public OnPlayerUpdate(playerid) :::warning -Ова повратна функција се позива, у просеку, 30 пута у секунди по играчу; користите је само када знате чему служи (или још важније, чему НЕ служи). Учесталост са којом се ова повратна функција позива за сваког играча варира у зависности од тога шта играч ради. Вожња или пуцање ће активирати много више ажурирања него стајање на месту. +- Ова повратна функција се позива, у просеку, 30 пута у секунди по играчу; користите је само када знате чему служи (или још важније, чему НЕ служи). +- Учесталост са којом се ова повратна функција позива за сваког играча варира у зависности од тога шта играч ради. Вожња или пуцање ће активирати много више ажурирања него стајање на месту. ::: 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 d126ff46c5fc..ba38a28b6ddd 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 @@ -44,7 +44,10 @@ public OnRconCommand(cmd[]) :::note -"/rcon " није укључено у "cmd" када играч напише команду. Ако користите функцију "print" овде, послаће поруку играчу који је написао команду у игри, као и у лог. Ова функција се не позива када играч није пријављен као RCON администратор. Када играч није пријављен као RCON администратор и користи /rcon login, ова функција се не позива и уместо тога се позива OnRconLoginAttempt. Међутим, када играч буде пријављен као RCON администратор, употреба ове команде ће позвати ову функцију. +- "/rcon " није укључено у "cmd" када играч напише команду. +- Ако користите функцију "print" овде, послаће поруку играчу који је написао команду у игри, као и у лог. +- Ова функција се не позива када играч није пријављен као RCON администратор. +- Када играч није пријављен као RCON администратор и користи /rcon login, ова функција се не позива и уместо тога се позива OnRconLoginAttempt. Међутим, када играч буде пријављен као RCON администратор, употреба ове команде ће позвати ову функцију. ::: diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md index 3852185c0064..b24f8bb4334e 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md @@ -55,7 +55,8 @@ public OnRconLoginAttempt(ip[], password[], success) :::note -Ова повратна функција се позива само када се користи /rcon login у игри. Ова повратна функција се позива само када играч још није пријављен. Када је играч пријављен, уместо тога се позива [OnRconCommand](OnRconCommand). +- Ова повратна функција се позива само када се користи /rcon login у игри. +- Ова повратна функција се позива само када играч још није пријављен. Када је играч пријављен, уместо тога се позива [OnRconCommand](OnRconCommand). ::: 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 389571282b50..bcb4ca3472ae 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 @@ -44,9 +44,7 @@ public OnVehicleRespray(playerid, vehicleid, color1, color2) :::warning -Познати bug-ови: - -- Преглед компоненти унутар радње за модификацију може позвати ову повратну функцију. +Познати bug-ови: Преглед компоненти унутар радње за модификацију може позвати ову повратну функцију. ::: diff --git a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/tutorials/Binary.md b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/tutorials/Binary.md index 72aa7b2f4ef3..7fce0de31022 100644 --- a/frontend/i18n/sr/docusaurus-plugin-content-docs/current/tutorials/Binary.md +++ b/frontend/i18n/sr/docusaurus-plugin-content-docs/current/tutorials/Binary.md @@ -1,6 +1,6 @@ --- -назив: "Binary" -опис: Дубок преглед бинарних и битних оператора. +title: "Binary" +description: Дубок преглед бинарних и битних оператора. --- ## Заслуге diff --git a/frontend/i18n/ta/docusaurus-plugin-content-docs/current/server/config.json.md b/frontend/i18n/ta/docusaurus-plugin-content-docs/current/server/config.json.md index 948ce96274a2..48751531fedb 100644 --- a/frontend/i18n/ta/docusaurus-plugin-content-docs/current/server/config.json.md +++ b/frontend/i18n/ta/docusaurus-plugin-content-docs/current/server/config.json.md @@ -229,6 +229,22 @@ omp-server --default-config ![](https://i.ibb.co/86T8wYG/image.png) +## Environment Variable Expansion + +```json +{ + "password": "${SERVER_PASSWORD}", + "logging": { + "enable": "${LOG_TOGGLE}:-true", # this defaults to true + }, + "banners": { + "dark": "${BANNER_DARK}:-", # this defaults to no image on the banner + "light": "${BANNER_LIGHT}", + }, + +} +``` +
:::note diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md index f2f00c9be163..6a0ac9c8be5c 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnClientMessage.md @@ -2,7 +2,6 @@ title: OnClientMessage sidebar_label: OnClientMessage description: Callback นี้ถูกเรียกเมื่อ NPC เห็น ClientMessage - tags: [] --- 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 0c866a38039a..3d335e36a769 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,7 @@ public OnGameModeExit() :::tip -ฟังก์ชั่นนี้ยังสามารถถูกใช้ในฟิลเตอร์สคริปต์ได้เพื่อตรวจสอบว่าเกมโหมดมีการเปลี่ยนแปลงด้วยคำสั่ง RCON ไหม เช่น changemode, gmx หรือมีการเปลี่ยนเกมโหมดแล้วแต่ฟิลเตอร์สคริปต์ยังไม่ถูกรีโหลด เมื่อใช้ OnGameModeExit ร่วมกับคำสั่ง 'rcon gmx' ในคอนโซล มีความเป็นไปได้ที่จะเกิดข้อผิดพลาดขึ้นกับไคลเอนต์ยกตัวอย่างเช่น การเรียก RemoveBuildingForPlayer มากเกินไปในระหว่างที่ OnGameModeInit กำลังทำงานอยู่ซึ่งอาจส่งผลให้ไคลเอนต์หยุดทำงาน Callback นี้จะไม่ถูกเรียกถ้าหากเซิร์ฟเวอร์ขัดข้องหรือโปรเซสถูกปิดโดยวิธีอื่นอย่างเช่นการใช้คำสั่ง Linux ในการหยุดการทำงาน หรือกดปุ่มปิดบนคอนโซลใน Windows +ฟังก์ชั่นนี้ยังสามารถถูกใช้ในฟิลเตอร์สคริปต์ได้เพื่อตรวจสอบว่าเกมโหมดมีการเปลี่ยนแปลงด้วยคำสั่ง RCON ไหม เช่น changemode, gmx หรือมีการเปลี่ยนเกมโหมดแล้วแต่ฟิลเตอร์สคริปต์ยังไม่ถูกรีโหลด เมื่อใช้ OnGameModeExit ร่วมกับคำสั่ง 'rcon gmx' ในคอนโซล มีความเป็นไปได้ที่จะเกิดข้อผิดพลาดขึ้นกับไคลเอนต์ยกตัวอย่างเช่น การเรียก RemoveBuildingForPlayer มากเกินไปในระหว่างที่ OnGameModeInit กำลังทำงานอยู่ซึ่งอาจส่งผลให้ไคลเอนต์หยุดทำงาน Callback นี้จะไม่ถูกเรียกถ้าหากเซิร์ฟเวอร์ขัดข้องหรือโปรเซสถูกปิดโดยวิธีอื่นอย่างเช่นการใช้คำสั่ง Linux ในการหยุดการทำงาน ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md index f78e28a5d16b..b4b7c2fbad81 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md @@ -88,7 +88,8 @@ NPC สามารถเรียก Callback นี้ได้ :::warning -This callback is called, on average, 30 times per second, per player; only use it when you know what it's meant for (or more importantly what it's NOT meant for). The frequency with which this callback is called for each player varies, depending on what the player is doing. Driving or shooting will trigger a lot more updates than idling. +- This callback is called, on average, 30 times per second, per player; only use it when you know what it's meant for (or more importantly what it's NOT meant for). +- The frequency with which this callback is called for each player varies, depending on what the player is doing. Driving or shooting will trigger a lot more updates than idling. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md index 88bc4cb7f581..855ace32711f 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconCommand.md @@ -44,8 +44,10 @@ public OnRconCommand(cmd[]) :::note -- 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. +- 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. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md index a8a06da860a4..195898660c49 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md @@ -46,7 +46,8 @@ public OnRconLoginAttempt(ip[], password[], success) :::note -This callback is only called when /rcon login is used in-game. This callback is only called when the player is not yet logged in. When the player is logged in, OnRconCommand is called instead. +- This callback is only called when /rcon login is used in-game. +- This callback is only called when the player is not yet logged in. When the player is logged in, OnRconCommand is called instead. ::: 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 f7cb7b633c28..63c0cbb3ce51 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 @@ -43,7 +43,8 @@ public OnGameModeInit() :::note -useartwork 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 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 ::: 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 358794618741..e1c6faa753af 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 @@ -45,7 +45,8 @@ public OnGameModeInit() :::note -useartwork 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 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 ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md index 5a17a7dca57a..6349d23415c5 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md @@ -36,8 +36,7 @@ ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.1, 1, 1, 1, 1, 1, 1); :::note -- The 'forceSync' optional parameter, which defaults to 0 (SYNC_NONE), in most cases is not needed since players sync animations themselves. -- The 'forcesync' parameter can force all players who can see 'playerid' to play the animation regardless of whether the player is performing that animation. This is useful in circumstances where the player can't sync the animation themselves. For example, they may be paused. +The 'forceSync' optional parameter, which defaults to 0 (SYNC_NONE), in most cases is not needed since players sync animations themselves. The 'forcesync' parameter can force all players who can see 'playerid' to play the animation regardless of whether the player is performing that animation. This is useful in circumstances where the player can't sync the animation themselves. For example, they may be paused. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md index d9fa6d69ce33..fcb03bd38858 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md @@ -45,6 +45,12 @@ Player-textdraws are automatically destroyed when a player disconnects. ::: +:::tip + +It is recommended to use WHOLE numbers instead of decimal positions when creating player textdraws to ensure resolution friendly design. + +::: + :::warning Keyboard key mapping codes (such as `~k~~VEHICLE_ENTER_EXIT~` Doesn't work beyond 255th character. diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md index 2b26a54229ee..9129ece90ccd 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md @@ -45,8 +45,7 @@ Crashes when passed an invalid menu ID. (Fixed in open.mp) :::note -- This function disabled the specified menu row for all players. -- There is no function to disable a menu row for a specific player. You'd have to create two menus - one with a row disabled, and one without. Or one per player. +This function disabled the specified menu row for all players. There is no function to disable a menu row for a specific player. You'd have to create two menus - one with a row disabled, and one without. Or one per player. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md index 56959d4b20d7..91ad7728718b 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md @@ -38,8 +38,7 @@ This function was removed in SA-MP 0.3. :::note -- Tire popping is enabled by default. -- If you want to disable tire popping, you'll have to manually script it using [OnVehicleDamageStatusUpdate](../callbacks/OnVehicleDamageStatusUpdate). +Tire popping is enabled by default. If you want to disable tire popping, you'll have to manually script it using [OnVehicleDamageStatusUpdate](../callbacks/OnVehicleDamageStatusUpdate). ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraPos.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraPos.md index bafff5377f62..f7a0a125feb4 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraPos.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraPos.md @@ -39,7 +39,7 @@ public OnPlayerDisconnect(playerid, reason) :::warning -Player's camera positions are only updated once a second, unless aiming.It is recommended to set a 1 second timer if you wish to take action that relies on a player's camera position. +Player's camera positions are only updated once a second, unless aiming. It is recommended to set a 1 second timer if you wish to take action that relies on a player's camera position. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetPlayer.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetPlayer.md index 1de400a63cfc..c3a222a9ceda 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetPlayer.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraTargetPlayer.md @@ -38,7 +38,7 @@ if (IsPlayerAdmin(playerTarget)) :::warning -Do not confuse this function with GetPlayerTargetPlayer. GetPlayerTargetPlayer returns the ID of the player playerid is aming 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 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/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 a8acca517096..b7b5207322d2 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 @@ -58,7 +58,8 @@ public OnPlayerUpdate(playerid) :::warning -Only the FUNCTION of keys can be detected; not actual keys. For example, it is not possible to detect if a player presses SPACE, but you can detect if they press SPRINT (which can be mapped (assigned/binded) to ANY key (but is space by default)). As of update 0.3.7, the keys "A" and "D" are not recognized when in a vehicle. However, keys "W" and "S" can be detected with the "keys" parameter. +- Only the FUNCTION of keys can be detected; not actual keys. For example, it is not possible to detect if a player presses SPACE, but you can detect if they press SPRINT (which can be mapped (assigned/binded) to ANY key (but is space by default)). +- As of update 0.3.7, the keys "A" and "D" are not recognized when in a vehicle. However, keys "W" and "S" can be detected with the "keys" parameter. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md index 6072a2092289..9f0bc86e445d 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerSkin.md @@ -27,7 +27,8 @@ playerskin = GetPlayerSkin(playerid); :::note -Returns the new skin after SetSpawnInfo is called but before the player actually respawns to get the new skin. Returns the old skin if the player was spawned through SpawnPlayer function. +- Returns the new skin after SetSpawnInfo is called but before the player actually respawns to get the new skin. +- Returns the old skin if the player was spawned through SpawnPlayer function. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md index 27aae1706b9b..5e889d58be10 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md @@ -35,7 +35,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/GetPlayerWeaponData.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeaponData.md index 687b5062ca28..ee952eee8cc1 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeaponData.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerWeaponData.md @@ -1,7 +1,7 @@ --- title: GetPlayerWeaponData sidebar_label: GetPlayerWeaponData -description: Get the weapon and ammo in a specific player's weapon slot (e. +description: Get the weapon and ammo in a specific player's weapon slot (e.g. the weapon in the 'SMG' slot). tags: ["player"] --- diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md index 516702ed980f..5509ee5ac70f 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md @@ -33,7 +33,9 @@ The vehicle's doors state is stored in the specified variables. The values returned in each variable are as follows: --1: Door state not set 1: Open 0: Closed +- -1: Door state not set +- 1: Open +- 0: Closed ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md index 69bb47cc85f6..85fd2398a713 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md @@ -33,7 +33,9 @@ The vehicle's windows state is stored in the specified variables. The values returned in each variable are as follows: --1: Window state not set (generally closed, unless set explicitly to -1) 0: Open 1: Closed +- -1: Window state not set (generally closed, unless set explicitly to -1) +- 0: Open +- 1: Closed ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsEx.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsEx.md index d8b66f5d2bd3..aa450764e316 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsEx.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsEx.md @@ -12,7 +12,7 @@ Gets a vehicle's parameters. | Name | Description | | ---------- | ------------------------------------------------------------------- | | vehicleid | The ID of the vehicle to get the parameters from. | -| &engine | Get the engine status. If 1, the engine is running.. | +| &engine | Get the engine status. If 1, the engine is running. | | &lights | Get the vehicle's lights' state. If 1 the lights are on. | | &alarm | Get the vehicle's alarm state. If 1 the alarm is (or was) sounding. | | &doors | Get the lock status of the doors. If 1 the doors are locked. | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md index 81e32d7e20b2..ec94f27d4fba 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md @@ -28,7 +28,9 @@ Sends a threaded HTTP request. #define HTTP_GET (HTTP_METHOD:1) // Sends a regular HTTP request. #define HTTP_POST (HTTP_METHOD:2) // Sends a HTTP request with POST data. #define HTTP_HEAD (HTTP_METHOD:3) // Sends a regular HTTP request, but ignores any response data - returning only the response code. +``` +```c // HTTP error response codes // These codes compliment ordinary HTTP response codes returned in 'response_code' #define HTTP_ERROR_BAD_HOST (HTTP_ERROR:1) 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 65ac31c190cd..d7ffc9889c29 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 @@ -20,12 +20,6 @@ Move a player object with a set speed. Also supports rotation. Players/vehicles | Float:RotX | The final X rotation (optional). | | Float:RotY | The final Y rotation (optional). | | Float:RotZ | The final Z rotation (optional). | -| playerid | The player you associated this object to. | -| objectid | The objectid you want to move. | -| Float:X | The new X coordinate. | -| Float:Y | The new Y coordinate. | -| Float:Z | The new Z coordinate. | -| Float:Speed | The speed at which to move the object. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawAlignment.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawAlignment.md index 94444db8c7dc..fed941949982 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawAlignment.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawAlignment.md @@ -17,9 +17,7 @@ Set the text alignment of a player-textdraw. ## ส่งคืน -Note - -For alignment 2 (center) the x and y values of TextSize need to be swapped, see notes at PlayerTextDrawTextSize. +This function does not return any specific values. ## ตัวอย่าง diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md index b3d401d1cb9e..74f7bb0c826c 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PlayerTextDrawBackgroundColor.md @@ -17,9 +17,7 @@ Adjust the background color of a player-textdraw. ## ส่งคืน -Note - -If PlayerTextDrawSetOutline is used with size > 0, the outline color will match the color used in PlayerTextDrawBackgroundColor. Changing the value of color seems to alter the color used in PlayerTextDrawColor +This function does not return any specific values. ## ตัวอย่าง 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 e176d41d45f7..a3e0c4be805d 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 @@ -18,19 +18,7 @@ Change the size of a player-textdraw (box if PlayerTextDrawUseBox is enabled and ## ส่งคืน -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 - -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. +This function does not return any specific values. ## ตัวอย่าง diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md index 503eb43b6692..05562c7ba633 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md @@ -37,7 +37,6 @@ public OnPlayerEnterVehicle(playerid,vehicleid,ispassanger) 2 - Back-left passenger 3 - Back-right passenger 4+ - Passenger seats (coach etc.) - ``` ## บันทึก diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/RepairVehicle.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/RepairVehicle.md index 62e998905a9d..819cc3f0ed92 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/RepairVehicle.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/RepairVehicle.md @@ -1,7 +1,7 @@ --- title: RepairVehicle sidebar_label: RepairVehicle -description: Fully repairs a vehicle, including visual damage (bumps, dents, scratches, popped tires etc. +description: Fully repairs a vehicle, including visual damage (bumps, dents, scratches, popped tires etc.). tags: ["vehicle"] --- 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 af168e6d9416..20e4b73a75cf 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 @@ -48,7 +48,8 @@ The returned hash has zero padding (i.e. possible prefix 00ABCD123...). :::tip -The salt is appended to the end of the password, meaning password 'foo' and salt 'bar' would form 'foobar'. The salt should be random, unique for each player and at least as long as the hashed password. It is to be stored alongside the actual hash in the player's account. +- The salt is appended to the end of the password, meaning password 'foo' and salt 'bar' would form 'foobar'. +- The salt should be random, unique for each player and at least as long as the hashed password. It is to be stored alongside the actual hash in the player's account. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md index 2dd3cd4e2357..adf1660f79ab 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SendDeathMessage.md @@ -33,7 +33,9 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::tip -Death messages can be cleared by using a valid player ID for 'playerid' that is not connected. To show a death message for just a single player, use SendDeathMessageToPlayer. You can use NPCs to create your own custom death reasons. +- Death messages can be cleared by using a valid player ID for 'playerid' that is not connected. +- To show a death message for just a single player, use SendDeathMessageToPlayer. +- You can use NPCs to create your own custom death reasons. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md index e390661def6d..76ebb76aa8f7 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md @@ -43,7 +43,8 @@ public OnGameModeInit() :::warning -Once set invulnerable, the actor does not call OnPlayerGiveDamageActor. Players will have actor's invulnerability state changed only when it is restreamed to them. +- Once set invulnerable, the actor does not call OnPlayerGiveDamageActor. +- Players will have actor's invulnerability state changed only when it is restreamed to them. ::: 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 5026c413e88d..250174e3e1e3 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 @@ -61,5 +61,3 @@ You MUST use ARGB color format, not RGBA like used in client messages etc. - SetPlayerObjectMaterial: Replace the texture of a player object with the texture from another model in the game. - SetObjectMaterialText: Replace the texture of an object with text. -- Ultimate Creator by Nexius -- Fusez's Map Editor by RedFusion diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md index 9bd6051454c0..9cd9c76d48b2 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterialText.md @@ -59,6 +59,3 @@ You MUST use ARGB color format, not RGBA like used in client messages etc. - SetPlayerObjectMaterialText: Replace the texture of a player object with text. - SetObjectMaterial: Replace the texture of an object with the texture from another model in the game. -- Ultimate Creator by Nexius -- SetObjectMaterialText Editor by RIDE2DAY -- Fusez's Map Editor by RedFusion diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerDrunkLevel.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerDrunkLevel.md index 4e45ecf8241f..4bd858c28e21 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerDrunkLevel.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerDrunkLevel.md @@ -35,7 +35,11 @@ if (strcmp(cmdtext, "/drunk", true) == 0) :::note -Players' drunk level will automatically decrease over time, based on their FPS (players with 50 FPS will lose 50 'levels' per second. This is useful for determining a player's FPS!). In 0.3a the drunk level will decrement and stop at 2000. In 0.3b+ the drunk level decrements to zero.) Levels over 2000 make the player drunk (camera swaying and vehicles difficult to control). Max drunk level is 50000. While the drunk level is above 5000, the player's HUD (radar etc.) will be hidden. +- Players' drunk level will automatically decrease over time, based on their FPS (players with 50 FPS will lose 50 'levels' per second. This is useful for determining a player's FPS!). +- In 0.3a the drunk level will decrement and stop at 2000. In 0.3b+ the drunk level decrements to zero.) +- Levels over 2000 make the player drunk (camera swaying and vehicles difficult to control). +- Max drunk level is 50000. +- While the drunk level is above 5000, the player's HUD (radar etc.) will be hidden. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md index 440831cc7866..bf4a181037c7 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md @@ -39,7 +39,8 @@ public OnPlayerSpawn(playerid) :::note -Only one object may be attached per player. This function is seperate from the CreateObject / CreatePlayerObject pools. +- Only one object may be attached per player. +- This function is seperate from the CreateObject / CreatePlayerObject pools. ::: 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 f28aa983ffc5..0dcf2192545d 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 @@ -59,7 +59,3 @@ You MUST use ARGB color format, not RGBA like used in client messages etc. ## ฟังก์ชั่นที่เกี่ยวข้องกัน - SetObjectMaterial: Replace the texture of an object with the texture from another model in the game. -- Ultimate Creator by Nexius -- Texture Studio by [uL]Pottus -- Fusez's Map Editor by RedFusion -- Map Editor I by adri1 diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md index d1a3122736df..64572fa134b5 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterialText.md @@ -52,7 +52,3 @@ Color embedding can be used for multiple colors in the text. - SetObjectMaterialText: Replace the texture of an object with text. - SetPlayerObjectMaterial: Replace the texture of a player object with the texture from another model in the game. -- Ultimate Creator by Nexius -- Texture Studio by [uL]Pottus -- Fusez's Map Editor by RedFusion -- Map Editor I by adri1 diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md index 9755d5a0f4d1..c92114eba6cc 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerSkin.md @@ -77,7 +77,12 @@ stock SetPlayerSkinFix(playerid, skinid) :::warning -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. Players can be detected as being crouched through 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. Breaks sitting on bikes. +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. Players can be detected as being crouched through 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. +- Breaks sitting on bikes. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md index f329731be898..f5f1084639dc 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md @@ -33,8 +33,7 @@ public OnPlayerSpawn(playerid) :::note -- Players can not damage/kill players on the same team unless they use a knife to slit their throat. -- Players are also unable to damage vehicles driven by a player from the same team. This can be enabled with EnableVehicleFriendlyFire. +- Players can not damage/kill players on the same team unless they use a knife to slit their throat. Players are also unable to damage vehicles driven by a player from the same team. This can be enabled with EnableVehicleFriendlyFire. - 255 (or `NO_TEAM`) is the default team to be able to shoot other players, not 0. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerVelocity.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerVelocity.md index 051364fe2d05..5e7cb1c6ded9 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerVelocity.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerVelocity.md @@ -29,8 +29,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) { if (!strcmp("/jump", cmdtext)) { - SetPlayerVelocity(playerid, 0.0, 0.0, 0.2); // Forces the player to jump (Z velocity + 0.2) - return 1; + SetPlayerVelocity(playerid, 0.0, 0.0, 0.2); // Forces the player to jump (Z velocity + 0.2) + return 1; } return 0; } diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md index 0b2e4ed107a4..8c5efc77cf1e 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md @@ -47,7 +47,8 @@ public message() :::note -Timer IDs are never used twice. You can use 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. +- Timer IDs are never used twice. You can use 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. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md index 4f80d363760b..b5d75f9e680d 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetTimerEx.md @@ -87,9 +87,8 @@ 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. +- 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. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md index 2de247958116..ed81a10a8bba 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleVelocity.md @@ -13,7 +13,7 @@ Sets the X, Y and Z velocity of a vehicle. | --------- | --------------------------------------------- | | vehicleid | The ID of the vehicle to set the velocity of. | | Float:X | The velocity in the X direction. | -| Float:Y | The velocity in the Y direction . | +| Float:Y | The velocity in the Y direction. | | Float:Z | The velocity in the Z direction. | ## ส่งคืน @@ -40,7 +40,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -This function has no affect on un-occupied vehicles and does not affect trains. +This function has no affect on unoccupied vehicles and does not affect trains. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md index 9a335bf52381..fec0b43bb602 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md @@ -44,7 +44,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -A vehicle's X and Y (pitch and roll) rotation will be reset when this function is used. The X and Y rotations can not be set. This function does not work on unoccupied vehicles (It is believed to be a GTA limitation). +- A vehicle's X and Y (pitch and roll) rotation will be reset when this function is used. The X and Y rotations can not be set. +- This function does not work on unoccupied vehicles (It is believed to be a GTA limitation). ::: 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 4d3667b1295c..8083f7c1465e 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 @@ -17,9 +17,9 @@ This functions allows you to toggle the drawing of player nametags, healthbars a ## ส่งคืน -ImportantNote +1: The function executed successfully. -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). +0: The function failed to execute. This means the player is not connected. ## ตัวอย่าง diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawAlignment.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawAlignment.md index 04da089b4c24..db0db4cc9234 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawAlignment.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawAlignment.md @@ -16,9 +16,7 @@ Set the alignment of text in a text draw. ## ส่งคืน -Note - -For alignment 2 (center) the x and y values of TextSize need to be swapped, see notes at TextDrawTextSize, also position coordinate become position of center of textdraw and not left/top edges. +This function does not return any specific values. ## ตัวอย่าง @@ -37,7 +35,8 @@ public OnGameModeInit() :::note -If the textdraw is already shown, it must be re-shown (TextDrawShowForAll/TextDrawShowForPlayer) to show the changes of this function. +- For alignment 2 (center) the x and y values of TextSize need to be swapped, see notes at TextDrawTextSize, also position coordinate become position of center of textdraw and not left/top edges. +- If the textdraw is already shown, it must be re-shown (TextDrawShowForAll/TextDrawShowForPlayer) to show the changes of this function. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md index 2c0251877946..2a8ded080324 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md @@ -1,7 +1,7 @@ --- title: TextDrawBackgroundColor sidebar_label: TextDrawBackgroundColor -description: Adjusts the text draw area background color (the outline/shadow - NOT the box. +description: Adjusts the text draw area background color (the outline/shadow - NOT the box). tags: ["textdraw"] --- diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md index 76836140ca28..3c27031867af 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md @@ -35,7 +35,7 @@ public OnGameModeInit() :::tip -You can also use GameText colors in textdraws (e.g. `~r~` `~g~` `~b~`). +You can also use GameText colors in textdraws. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md index fb564045be6f..ae7c9713b2f2 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md @@ -45,8 +45,7 @@ public OnPlayerConnect(playerid) :::note -- The x,y coordinate is the top left coordinate for the text draw area based on a 640x480 "canvas" (irrespective of screen resolution). -- If you plan on using TextDrawAlignment with alignment 3 (right), the x,y coordinate is the top right coordinate for the text draw. +- The x,y coordinate is the top left coordinate for the text draw area based on a 640x480 "canvas" (irrespective of screen resolution). If you plan on using TextDrawAlignment with alignment 3 (right), the x,y coordinate is the top right coordinate for the text draw. - This function merely CREATES the textdraw, you must use TextDrawShowForPlayer or TextDrawShowForAll to show it. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md index 3b2fbb1b84fb..0c0dc0e9521a 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawLetterSize.md @@ -27,7 +27,7 @@ new Text:MyTextdraw; public OnGameModeInit() { MyTextDraw = TextDrawCreate(100.0, 33.0,"Example TextDraw"); - TextDrawLetterSize(MyTextDraw, 3.2 ,5.1); + TextDrawLetterSize(MyTextDraw, 3.2, 5.1); return 1; } ``` @@ -37,7 +37,8 @@ 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. -- 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/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). +- 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/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/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewModel.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewModel.md index 682bd2d00813..a7eda55044fb 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewModel.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewModel.md @@ -31,8 +31,8 @@ public OnGameModeInit() TextDrawBoxColor(textdraw, 0x000000FF); TextDrawTextSize(textdraw, 40.0, 40.0); TextDrawSetPreviewModel(textdraw, 411); //Display model 411 (Infernus) - //TextDrawSetPreviewModel(textdraw, 1); //Display model 1 (CJ Skin) - //TextDrawSetPreviewModel(textdraw, 18646); //Display model 18646 (Police light object) + //TextDrawSetPreviewModel(textdraw, 1); //Display model 1 (CJ Skin) + //TextDrawSetPreviewModel(textdraw, 18646); //Display model 18646 (Police light object) //You still have to use TextDrawShowForAll/TextDrawShowForPlayer to make the textdraw visible. return 1; diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewRot.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewRot.md index 24aa5bced2be..c9f9ec8556ef 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewRot.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawSetPreviewRot.md @@ -23,7 +23,7 @@ This function does not return any specific values. ## ตัวอย่าง ```c -new Text:textdraw +new Text:textdraw; public OnGameModeInit() { diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_debug_openfiles.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_debug_openfiles.md deleted file mode 100644 index f7120be78e18..000000000000 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_debug_openfiles.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: db_debug_openfiles -sidebar_label: db_debug_openfiles -description: . -tags: [] ---- - -## คำอธิบาย - -. - -| Name | Description | -| ---- | ----------- | - -## ฟังก์ชั่นที่เกี่ยวข้องกัน - -- db_open: Open a connection to an SQLite database -- db_close: Close the connection to an SQLite database -- db_query: Query an SQLite database -- db_free_result: Free result memory from a db_query -- db_num_rows: Get the number of rows in a result -- db_next_row: Move to the next row -- db_num_fields: Get the number of fields in a result -- db_field_name: Returns the name of a field at a particular index -- db_get_field: Get content of field with specified ID from current result row -- db_get_field_assoc: Get content of field with specified name from current result row -- db_get_field_int: Get content of field as an integer with specified ID from current result row -- db_get_field_assoc_int: Get content of field as an integer with specified name from current result row -- db_get_field_float: Get content of field as a float with specified ID from current result row -- db_get_field_assoc_float: Get content of field as a float with specified name from current result row -- db_get_mem_handle: Get memory handle for an SQLite database that was opened with db_open. -- db_get_result_mem_handle: Get memory handle for an SQLite query that was executed with db_query. -- db_debug_openfiles -- db_debug_openresults diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_debug_openresults.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_debug_openresults.md deleted file mode 100644 index a06dcee83745..000000000000 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_debug_openresults.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: db_debug_openresults -sidebar_label: db_debug_openresults -description: . -tags: [] ---- - -## คำอธิบาย - -. - -| Name | Description | -| ---- | ----------- | - -## ฟังก์ชั่นที่เกี่ยวข้องกัน - -- db_open: Open a connection to an SQLite database -- db_close: Close the connection to an SQLite database -- db_query: Query an SQLite database -- db_free_result: Free result memory from a db_query -- db_num_rows: Get the number of rows in a result -- db_next_row: Move to the next row -- db_num_fields: Get the number of fields in a result -- db_field_name: Returns the name of a field at a particular index -- db_get_field: Get content of field with specified ID from current result row -- db_get_field_assoc: Get content of field with specified name from current result row -- db_get_field_int: Get content of field as an integer with specified ID from current result row -- db_get_field_assoc_int: Get content of field as an integer with specified name from current result row -- db_get_field_float: Get content of field as a float with specified ID from current result row -- db_get_field_assoc_float: Get content of field as a float with specified name from current result row -- db_get_mem_handle: Get memory handle for an SQLite database that was opened with db_open. -- db_get_result_mem_handle: Get memory handle for an SQLite query that was executed with db_query. -- db_debug_openfiles -- db_debug_openresults diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_assoc_float.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_assoc_float.md index 283c01ef14a1..9bf7e9fae821 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_assoc_float.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_assoc_float.md @@ -18,6 +18,94 @@ Get the contents of field as a float with specified name. Retrieved value as floating point number. +## ตัวอย่าง + +```c +// examples.inc + +// ... + +Float:Examples_CalculateSum(DB:dbConnectionHandle) +{ + // Return value variable + new Float:ret; + + // Database result set + new DBResult:db_result_set = db_query("SELECT `value` FROM `examples`"); + + // If database result set is valid + if (db_result_set) + { + // Do operations + do + { + // Add value from "example" field to the return value variable + ret += db_get_field_assoc_float(db_result_set, "value"); + } + + // While next row could be fetched + while (db_next_row(db_result_set)); + + // Free result set + db_free_result(db_result_set); + } + + // Return calculated sum + return ret; +} +``` + +```c +// mode.pwn + +// ... + +#include + +static DB:gDBConnectionHandle; + +// ... + +public OnGameModeInit() +{ + // ... + + // Create a connection to a database + gDBConnectionHandle = db_open("example.db"); + + // If connection to the database exists + if (gDBConnectionHandle) + { + // Successfully created a connection to the database + print("Successfully created a connection to database \"example.db\"."); + printf("Calculated sum: %f", Examples_CalculateSum(gDBConnectionHandle)); + } + else + { + // Failed to create a connection to the database + print("Failed to open a connection to database \"example.db\"."); + } + + // ... + + return 1; +} + +public OnGameModeExit() +{ + // Close the connection to the database if connection is open + if (db_close(gDBConnectionHandle)) + { + // Extra cleanup + gDBConnectionHandle = DB:0; + } + + // ... + + return 1; +} +``` + ## บันทึก :::warning diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_assoc_int.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_assoc_int.md index 038f09e39897..6075ceb1c052 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_assoc_int.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_field_assoc_int.md @@ -18,6 +18,94 @@ Get the contents of field as an integer with specified name. Retrieved value as integer (number). +## ตัวอย่าง + +```c +// examples.inc + +// ... + +Examples_CalculateSum(DB:dbConnectionHandle) +{ + // Return value variable + new ret; + + // Database result set + new DBResult:db_result_set = db_query("SELECT `value` FROM `examples`"); + + // If database result set is valid + if (db_result_set) + { + // Do operations + do + { + // Add value from "example" field to the return value variable + ret += db_get_field_assoc_int(db_result_set, "value"); + } + + // While next row could be fetched + while (db_next_row(db_result_set)); + + // Free result set + db_free_result(db_result_set); + } + + // Return calculated sum + return ret; +} +``` + +```c +// mode.pwn + +// ... + +#include + +static DB:gDBConnectionHandle; + +// ... + +public OnGameModeInit() +{ + // ... + + // Create a connection to a database + gDBConnectionHandle = db_open("example.db"); + + // If connection to the database exists + if (gDBConnectionHandle) + { + // Successfully created a connection to the database + print("Successfully created a connection to database \"example.db\"."); + printf("Calculated sum: %d", Examples_CalculateSum(gDBConnectionHandle)); + } + else + { + // Failed to create a connection to the database + print("Failed to open a connection to database \"example.db\"."); + } + + // ... + + return 1; +} + +public OnGameModeExit() +{ + // Close the connection to the database if connection is open + if (db_close(gDBConnectionHandle)) + { + // Extra cleanup + gDBConnectionHandle = DB:0; + } + + // ... + + return 1; +} +``` + ## บันทึก :::warning 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 d6636672bc38..471fcc431aec 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 @@ -18,6 +18,134 @@ Get the content of a field as a float from db_query Retrieved value as floating point number. +## ตัวอย่าง + +```c +// examples.inc + +// ... + +static FindFieldIndexByName(DBResult:dbResultSet, const fieldName[]) +{ + // Return value variable with default return value + new ret = -1; + + // Field count + new field_count = db_num_fields(dbResultSet); + + // Current field name + new current_field_name[32]; + + // Iterate through all fields + for (new field_index; field_index < field_count; field_index++) + { + // Get field name + if (db_field_name(dbResultSet, field_index, current_field_name, sizeof current_field_name)) + { + // Compare searched field name to current field name + if (!strcmp(fieldName, current_field_name)) + { + // Success, store field index to return value variable + ret = field_index; + + // Break out of the loop + break; + } + } + } + + // Return found field index or "-1" + return ret; +} + +Float:Examples_CalculateSum(DB:dbConnectionHandle) +{ + // Return value variable + new Float:ret; + + // Database result set + new DBResult:db_result_set = db_query("SELECT `value` FROM `examples`"); + + // If database result set is valid + if (db_result_set) + { + // Get target field index + new target_field_index = FindFieldIndexByName(db_result_set, "value"); + + // Check if field index is valid + if (target_field_index >= 0) + { + // Do operations + do + { + // Add value from "example" field to the return value variable + ret += db_get_field_float(db_result_set, target_field_index); + } + + // While next row could be fetched + while (db_next_row(db_result_set)); + } + + // Free result set + db_free_result(db_result_set); + } + + // Return calculated sum + return ret; +} +``` + +```c +// mode.pwn + +// ... + +#include + +static DB:gDBConnectionHandle; + +// ... + +public OnGameModeInit() +{ + // ... + + // Create a connection to a database + gDBConnectionHandle = db_open("example.db"); + + // If connection to the database exists + if (gDBConnectionHandle) + { + // Successfully created a connection to the database + print("Successfully created a connection to database \"example.db\"."); + printf("Calculated sum: %f", Examples_CalculateSum(gDBConnectionHandle)); + } + else + { + // Failed to create a connection to the database + print("Failed to open a connection to database \"example.db\"."); + } + + // ... + + return 1; +} + +public OnGameModeExit() +{ + // Close the connection to the database if connection is open + if (db_close(gDBConnectionHandle)) + { + // Extra cleanup + gDBConnectionHandle = DB:0; + } + + // ... + + return 1; +} +``` + ## บันทึก :::warning 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 12cfc9d96593..fb485a4b5635 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 @@ -18,6 +18,134 @@ Get the content of a field as an integer from db_query Retrieved value as integer (number). +## ตัวอย่าง + +```c +// examples.inc + +// ... + +static FindFieldIndexByName(DBResult:dbResultSet, const fieldName[]) +{ + // Return value variable with default return value + new ret = -1; + + // Field count + new field_count = db_num_fields(dbResultSet); + + // Current field name + new current_field_name[32]; + + // Iterate through all fields + for (new field_index; field_index < field_count; field_index++) + { + // Get field name + if (db_field_name(dbResultSet, field_index, current_field_name, sizeof current_field_name)) + { + // Compare searched field name to current field name + if (!strcmp(fieldName, current_field_name)) + { + // Success, store field index to return value variable + ret = field_index; + + // Break out of the loop + break; + } + } + } + + // Return found field index or "-1" + return ret; +} + +Examples_CalculateSum(DB:dbConnectionHandle) +{ + // Return value variable + new ret; + + // Database result set + new DBResult:db_result_set = db_query("SELECT `value` FROM `examples`"); + + // If database result set is valid + if (db_result_set) + { + // Get target field index + new target_field_index = FindFieldIndexByName(db_result_set, "value"); + + // Check if field index is valid + if (target_field_index >= 0) + { + // Do operations + do + { + // Add value from "example" field to the return value variable + ret += db_get_field_int(db_result_set, target_field_index); + } + + // While next row could be fetched + while (db_next_row(db_result_set)); + } + + // Free result set + db_free_result(db_result_set); + } + + // Return calculated sum + return ret; +} +``` + +```c +// mode.pwn + +// ... + +#include + +static DB:gDBConnectionHandle; + +// ... + +public OnGameModeInit() +{ + // ... + + // Create a connection to a database + gDBConnectionHandle = db_open("example.db"); + + // If connection to the database exists + if (gDBConnectionHandle) + { + // Successfully created a connection to the database + print("Successfully created a connection to database \"example.db\"."); + printf("Calculated sum: %d", Examples_CalculateSum(gDBConnectionHandle)); + } + else + { + // Failed to create a connection to the database + print("Failed to open a connection to database \"example.db\"."); + } + + // ... + + return 1; +} + +public OnGameModeExit() +{ + // Close the connection to the database if connection is open + if (db_close(gDBConnectionHandle)) + { + // Extra cleanup + gDBConnectionHandle = DB:0; + } + + // ... + + return 1; +} +``` + ## บันทึก :::warning diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_mem_handle.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_mem_handle.md index 80a4ac8c7278..1925c7f6278e 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_mem_handle.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_mem_handle.md @@ -23,6 +23,61 @@ Get memory handle for an SQLite database that was opened with db_open. Returns the memory handle for a specified database. +## ตัวอย่าง + +```c +static DB:gDBConnectionHandle; + +// ... + +public OnGameModeInit() +{ + // ... + + // Create a connection to a database + gDBConnectionHandle = db_open("example.db"); + + // If connection to the database exists + if (gDBConnectionHandle) + { + // Successfully created a connection to the database + print("Successfully created a connection to database \"example.db\"."); + printf("Database connection memory handle: 0x%x", db_get_mem_handle(gDBConnectionHandle)); + } + else + { + // Failed to create a connection to the database + print("Failed to open a connection to database \"example.db\"."); + } + + // ... + + return 1; +} + +public OnGameModeExit() +{ + // Close the connection to the database if connection is open + if (db_close(gDBConnectionHandle)) + { + // Extra cleanup + gDBConnectionHandle = DB:0; + } + + // ... + + return 1; +} +``` + +## บันทึก + +:::warning + +Using an invalid handle other than zero will crash your server! Get a valid database connection handle by using [db_query](db_query). + +::: + ## ฟังก์ชั่นที่เกี่ยวข้องกัน - db_open: Open a connection to an SQLite database diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_result_mem_handle.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_result_mem_handle.md index d74d2536fbf7..1e17646adc1f 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_result_mem_handle.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_get_result_mem_handle.md @@ -23,6 +23,66 @@ Get memory handle for an SQLite query that was executed with db_query. Returns the memory handle for a specified query. +## ตัวอย่าง + +```c +static DB:gDBConnectionHandle; + +// ... + +public OnGameModeInit() +{ + // ... + + // Create a connection to a database + gDBConnectionHandle = db_open("example.db"); + + // If connection to the database exists + if (gDBConnectionHandle) + { + // Successfully created a connection to the database + new DBResult:result_set = db_query("SELECT * FROM `examples`"); + print("Successfully created a connection to database \"example.db\"."); + if (result_set) + { + printf("Database connection memory handle: 0x%x", db_get_result_mem_handle(result_set)); + db_free_result(result_set); + } + } + else + { + // Failed to create a connection to the database + print("Failed to open a connection to database \"example.db\"."); + } + + // ... + + return 1; +} + +public OnGameModeExit() +{ + // Close the connection to the database if connection is open + if (db_close(gDBConnectionHandle)) + { + // Extra cleanup + gDBConnectionHandle = DB:0; + } + + // ... + + return 1; +} +``` + +## บันทึก + +:::warning + +Using an invalid handle other than zero will crash your server! Get a valid database connection handle by using [db_query](db_query). + +::: + ## ฟังก์ชั่นที่เกี่ยวข้องกัน - db_open: Open a connection to an SQLite database diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md index 0ca582a89bbc..eedcb14a962a 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md @@ -53,7 +53,8 @@ public OnGameModeExit() :::warning -It will create a new SQLite database, if there is no SQLite database with the same file name available. Close your database connection with db_close! +- It will create a new SQLite database, if there is no SQLite database with the same file name available. +- Close your database connection with db_close! ::: 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 79078ffbceb6..241f96de1db0 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 @@ -9,6 +9,12 @@ tags: [] Bu geri çağırma oyun modu sonlandığında, gmx komutu kullanıldığında, sunucu ani kapatıldığında veya GameModeExit kullanıldığında tetiklenir. +## Çalışınca Vereceği Sonuçlar + +Bu geri çağırma dönüşleri ele almaz. + +Her zaman ilk olarak gamemode'da çağrılır. + ## Örnek ```c @@ -23,7 +29,9 @@ 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. 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 ve Windows görevi sonlandırma işlemlerinde olduğu gibi. +- 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. +- 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 e613bdb51300..fc0a7a9c1cb5 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 @@ -9,6 +9,12 @@ tags: [] Bu geri çağırma oyun modu başladığında tetiklenir. +## Çalışınca Vereceği Sonuçlar + +Bu geri çağırma dönüşleri ele almaz. + +Her zaman ilk olarak gamemode'da çağrılır. + ## Örnek ```c diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md index 9fccc4e8fa8f..340dbda1b2ac 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerGiveDamage.md @@ -59,3 +59,10 @@ public OnPlayerGiveDamage(playerid, damagedid, Float:amount, WEAPON:weaponid, bo Eğer bir oyuncunun başka bir oyuncudan hasar almasını engellemek istiyorsanız SetPlayerTeam kullanın. ::: + +## Bağlantılı Geri Çağırmalar + +Aşağıdaki geri çağırmalar bu geri çağırma ile bir şekilde ilişkilidir ve faydalı olabilirler. + +- [OnPlayerTakeDamage](OnPlayerTakeDamage): Bu fonksiyon, oyuncu hasar aldığında çağrılır. +- [OnPlayerWeaponShot](OnPlayerWeaponShot): Bu fonksiyon, oyuncu ateş ettiğinde çağrılır. diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md index 766d00cdd0b2..6f01bc110276 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerTakeDamage.md @@ -75,3 +75,9 @@ Eğer hasar bir ateş kaynağındansa (molotof, vb.) weaponid 37(flame thrower) GetPlayerHealth ve GetPlayerArmour, bu fonksiyon çağrılmadan önce oyuncunun eski miktarlarını döndürecektir. Bir dizi dizini kullanmadan önce daima issuerid'in geçerli olup olmadığını kontrol edin. ::: + +## Bağlantılı Geri Çağırmalar + +Aşağıdaki geri çağırmalar bu geri çağırma ile bir şekilde ilişkilidir ve faydalı olabilirler. + +- [OnPlayerWeaponShot](OnPlayerWeaponShot): Bu fonksiyon, oyuncu ateş ettiğinde çağrılır. diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md index 8739923b0e6a..da2e543b8951 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md @@ -83,7 +83,8 @@ public OnPlayerUpdate(playerid) :::warning -Bu fonksiyon, oyuncu başına ortalama olarak saniyede 30 kez çağrılır; yalnızca ne anlama geldiğini (veya daha da önemlisi ne anlama gelmediğini) bildiğiniz zaman kullanın. Her oyuncu için bu çağrılma sıklığı, oyuncunun ne yaptığına bağlı olarak değişir. Araba kullanmak veya ateş etmek, rölantiden çok daha fazla güncellemeyi tetikleyecektir. +- Bu fonksiyon, oyuncu başına ortalama olarak saniyede 30 kez çağrılır; yalnızca ne anlama geldiğini (veya daha da önemlisi ne anlama gelmediğini) bildiğiniz zaman kullanın. +- Her oyuncu için bu çağrılma sıklığı, oyuncunun ne yaptığına bağlı olarak değişir. Araba kullanmak veya ateş etmek, rölantiden çok daha fazla güncellemeyi tetikleyecektir. ::: 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 5bdba6296f2a..e654f1aed9ee 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 @@ -1,7 +1,7 @@ --- title: OnRconCommand sidebar_label: OnRconCommand -description: Bu fonksiyon, RCON oturumu açmış oyuncu RCON komutu kullandığında çağrılır. (/rcon -komut-) +description: Bu fonksiyon, RCON oturumu açmış oyuncu RCON komutu kullandığında çağrılır. tags: [] --- @@ -44,7 +44,10 @@ public OnRconCommand(cmd[]) :::note -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. +- 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. ::: 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 976f8412abe5..6729abbb5c2a 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 @@ -46,7 +46,8 @@ 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. +- 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. ::: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md index b9e9d2ab2f9c..44739025e7f1 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehicleDeath.md @@ -1,7 +1,7 @@ --- title: OnVehicleDeath sidebar_label: OnVehicleDeath -description: Bu fonksiyon, bir araç imha edildiğinde çağrılır. - patladığında veya araç suya girdiğinde. +description: Bu fonksiyon, bir araç imha edildiğinde çağrılır. tags: ["vehicle"] --- diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md index 272e807f9355..440f1dcb3f3f 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md @@ -32,7 +32,7 @@ public OnGameModeInit ( ) { gVehicleId = CreateVehicle(510, 0.0. 0.0, 15.0, 5, 0, 120); // Aracımızı yaratıyoruz gVehicle3dText[gVehicleId] = Create3DTextLabel("Example Text", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1); - Attach3DTextLabelToVehicle(gVehicle3dText[gVehicleId], vehicle_id, 0.0, 0.0, 2.0); // Labeli araca bağlıyoruz + Attach3DTextLabelToVehicle(gVehicle3dText[gVehicleId], gVehicleId, 0.0, 0.0, 2.0); // Labeli araca bağlıyoruz } public OnGameModeExit ( ) diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/BlockIpAddress.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/BlockIpAddress.md index 15e2d7b909f1..078c6a793ee7 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/BlockIpAddress.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/BlockIpAddress.md @@ -1,7 +1,7 @@ --- title: BlockIpAddress sidebar_label: BlockIpAddress -description: IP adresini sunucu üzerinden bloklama. (with wildcards allowed). +description: IP adresini sunucu üzerinden bloklama. tags: [] --- 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 a1114f966126..f21cdb4e8157 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 @@ -1,7 +1,7 @@ --- title: ChangeVehiclePaintjob sidebar_label: ChangeVehiclePaintjob -description: Aracın kaplamasını değiştirme. (düz renkler için bkz. ChangeVehicleColor). +description: Aracın kaplamasını değiştirme. tags: ["vehicle"] --- diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/acos.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/acos.md index ede253842c9f..ef354704b2b1 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/acos.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/acos.md @@ -1,7 +1,7 @@ --- title: acos sidebar_label: acos -description: . +description: Radyanlardaki bir ark kosininin ters değerini alın. tags: [] --- 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 b9ad52a8b4c1..2ac393f346d8 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,6 +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/tr/docusaurus-plugin-content-docs/current/scripting/language/Statements.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Statements.md index f15ac95cbfe6..a9ff4781a360 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Statements.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Statements.md @@ -181,7 +181,7 @@ while (i < 10) } ``` -} Koşul anında başarısız olacağından herhangi bir çıktı vermeyecek. +Koşul anında başarısız olacağından herhangi bir çıktı vermeyecek. Bu ayrıca çift kontrolleri önlemek için kullanışlıdır: diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Variables.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Variables.md index 716327118e21..1875eb51d02c 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Variables.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/language/Variables.md @@ -210,7 +210,7 @@ public OnFilterScriptInit () return 1; } -// Çıktı : +// Çıktı: a 1 1.000000 diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/server/omp-functions.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/server/omp-functions.md index 013b1590103e..9862e8e10780 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/server/omp-functions.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/server/omp-functions.md @@ -416,3 +416,29 @@ Bu sayfa open.mp'ye eklenen tüm fonksiyonları ve callbackleri içerir | --------------------------------------------------------------- | | [IsValidCustomModel](../scripting/functions/IsValidCustomModel) | | [GetCustomModelPath](../scripting/functions/GetCustomModelPath) | + +## String + +| İsim | +| -------- | +| strcopy | +| strequal | + +## Float + +| İsim | +| -------- | +| strfloat | + +## File + +| İsim | +| ---------- | +| ftell | +| fstat | +| frename | +| filecrc | +| fflush | +| fcreatedir | +| fcopy | +| fattrib | diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md index f61495da81ac..8f90fb050ccd 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnEnterExitModShop.md @@ -37,9 +37,7 @@ public OnEnterExitModShop(playerid, enterexit, interiorid) :::warning -Lỗi Đã Biết: - -- Người chơi va chạm khi họ vào cùng một cửa hàng độ xe. +Lỗi Đã Biết: Người chơi va chạm khi họ vào cùng một cửa hàng độ xe. ::: diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md index dce96b1a3840..18abd5012820 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeExit.md @@ -9,6 +9,12 @@ tags: [] Callback này được gọi khi một gamemode kết thúc, qua 'gmx', khi máy chủ bị tắt, hoặc GameModeExit. +## Trả Về + +Callback này không xử lý trả về. + +Callback này luôn được gọi đầu tiên trong gamemode. + ## Ví Dụ ```c @@ -29,9 +35,8 @@ Hàm này cũng có thể được sử dụng trong một filterscript để ph :::warning -Khi sử dụng `OnGameModeExit` cùng với lệnh console 'rcon gmx', hãy lưu ý rằng có thể xảy ra các lỗi của client. - -Một ví dụ về điều này là việc gọi [RemoveBuildingForPlayer](../functions/RemoveBuildingForPlayer) quá mức trong [OnGameModeInit](OnGameModeInit) có thể dẫn đến sự cố client. Callback này sẽ KHÔNG được gọi nếu máy chủ bị lỗi hoặc quy trình bị kết thúc bằng các phương pháp khác, chẳng hạn như sử dụng lệnh `kill` trên Linux hoặc nhấn nút đóng trên console của Windows. +- Khi sử dụng `OnGameModeExit` cùng với lệnh console 'rcon gmx', hãy lưu ý rằng có thể xảy ra các lỗi của client. Một ví dụ về điều này là việc gọi [RemoveBuildingForPlayer](../functions/RemoveBuildingForPlayer) quá mức trong [OnGameModeInit](OnGameModeInit) có thể dẫn đến sự cố client. +- Callback này sẽ KHÔNG được gọi nếu máy chủ bị lỗi hoặc quy trình bị kết thúc bằng các phương pháp khác, chẳng hạn như sử dụng lệnh `kill` trên Linux. ::: diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md index 2d16e1f85377..4963a7eeef46 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnGameModeInit.md @@ -9,6 +9,12 @@ tags: [] Callback này được gọi khi gamemode bắt đầu. +## Trả Về + +Callback này không xử lý trả về. + +Callback này luôn được gọi đầu tiên trong gamemode. + ## Ví Dụ ```c diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md index 9fae2c41be23..21d04db344e3 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md @@ -19,3 +19,7 @@ public OnNPCSpawn() return 1; } ``` + +## Các Callback Liên Quan + +- [OnPlayerSpawn](OnPlayerSpawn): Callback này được gọi khi người chơi xuất hiệ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 ea6c96ef961d..5d03a48eaa50 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,8 +34,7 @@ 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/OnPlayerUpdate.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md index 0f749751daf1..df55502b53d5 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md @@ -91,6 +91,7 @@ public OnPlayerUpdate(playerid) :::warning -Callback này được gọi, trung bình, 30 lần mỗi giây, mỗi người chơi; chỉ sử dụng nó khi bạn biết mục đích của nó (hoặc quan trọng hơn là những gì nó KHÔNG được dùng cho). Tần suất mà callback này được gọi cho mỗi người chơi thay đổi tùy thuộc vào những gì người chơi đang làm. Lái xe hoặc bắn sẽ kích hoạt nhiều cập nhật hơn so với việc đứng im. +- Callback này được gọi, trung bình, 30 lần mỗi giây, mỗi người chơi; chỉ sử dụng nó khi bạn biết mục đích của nó (hoặc quan trọng hơn là những gì nó KHÔNG được dùng cho). +- Tần suất mà callback này được gọi cho mỗi người chơi thay đổi tùy thuộc vào những gì người chơi đang làm. Lái xe hoặc bắn sẽ kích hoạt nhiều cập nhật hơn so với việc đứng im. ::: 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 56943ebfcf9c..e1fddf2f9f7a 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 @@ -44,7 +44,10 @@ public OnRconCommand(cmd[]) :::note -- "/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. +- "/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. ::: diff --git a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md index 2d92d0c28769..3f1aff88c0d7 100644 --- a/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md +++ b/frontend/i18n/vi/docusaurus-plugin-content-docs/current/scripting/callbacks/OnRconLoginAttempt.md @@ -54,7 +54,8 @@ public OnRconLoginAttempt(ip[], password[], success) :::note -- Callback này chỉ được gọi khi sử dụng lệnh /rcon login trong trò chơi. Callback này chỉ được gọi khi người chơi chưa đăng nhập. Khi người chơi đã đăng nhập, [OnRconCommand](OnRconCommand) sẽ được gọi thay vào đó. +- Callback này chỉ được gọi khi sử dụng lệnh /rcon login trong trò chơi. +- Callback này chỉ được gọi khi người chơi chưa đăng nhập. Khi người chơi đã đăng nhập, [OnRconCommand](OnRconCommand) sẽ được gọi thay vào đó. ::: 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 355b284769e7..cd17b26bc971 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 @@ -44,9 +44,7 @@ Fix ở đây: https://pastebin.com/G81da7N1 :::warning -Lỗi đã biết: - -- Xem trước một thành phần bên trong cửa hàng tùy chỉnh có thể gọi callback này. +Lỗi đã biết: Xem trước một thành phần bên trong cửa hàng tùy chỉnh có thể gọi callback này. ::: 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 3fd8f0f7beae..aa52db082788 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 @@ -37,9 +37,7 @@ public OnEnterExitModShop(playerid, enterexit, interiorid) :::warning -已知问题: - -- 多名玩家同时进入同一改装店时会发生模型碰撞 +已知问题:多名玩家同时进入同一改装店时会发生模型碰撞 ::: 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 23416e936254..a9c1a17b7f3f 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 @@ -13,6 +13,12 @@ tags: [] - 服务器关闭 - 调用GameModeExit函数 +## 返回值 + +此回调不处理返回值。 + +此回调在游戏模式中总是优先触发。 + ## 示例 ```c @@ -37,7 +43,7 @@ public OnGameModeExit() - 配合`rcon gmx`指令使用时可能导致客户端异常 - 在[OnGameModeInit](OnGameModeInit)中过度调用[RemoveBuildingForPlayer](../functions/RemoveBuildingForPlayer)可能引发客户端崩溃 -- 服务器崩溃或进程被强制终止(如Linux kill命令/Windows控制台关闭按钮)不会触发此回调 +- 服务器崩溃或进程被强制终止(如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 9fec30c320d8..70fde616882f 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 @@ -9,6 +9,12 @@ tags: [] 当游戏模式启动时触发此回调。 +## 返回值 + +此回调不处理返回值。 + +此回调在游戏模式中总是优先触发。 + ## 示例 ```c diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md index 12671d86b803..80779ce4a4c8 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerUpdate.md @@ -88,7 +88,8 @@ public OnPlayerUpdate(playerid) :::warning -此回调函数平均每秒触发30次/玩家,请谨慎使用。触发频率会根据玩家行为变化:驾驶或射击时更新频率远高于静止状态。 +- 此回调函数平均每秒触发30次/玩家,请谨慎使用。 +- 触发频率会根据玩家行为变化:驾驶或射击时更新频率远高于静止状态。 ::: 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 437031d6c236..c40866321e6e 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 @@ -39,9 +39,8 @@ public OnGameModeInit() :::note -需先在服务器配置中启用**useartwork**或**artwork.enable**选项才能使此函数生效。 - -当`virtualworld`参数设置时,模型将在玩家进入指定虚拟世界时自动下载。 +- 需先在服务器配置中启用**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 da3156eb9f26..9123176ed233 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 @@ -42,9 +42,8 @@ public OnGameModeInit() :::note -需先在服务器配置中启用**useartwork**或**artwork.enable**选项才能使此函数生效。 - -当 virtualworld 参数设置时,模型将在玩家进入指定虚拟世界时自动下载。 +- 需先在服务器配置中启用**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 f3b384732b51..129b46bb39f6 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 @@ -52,6 +52,10 @@ public OnGameModeInit() - [CreatePickup](CreatePickup): 创建可追踪的拾取物 - [DestroyPickup](DestroyPickup): 销毁拾取物 +## 相关回调 + +- [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup): 当玩家拾取拾取物时调用 + ## 相关资源 - [拾取物 ID 列表](../resources/pickupids) 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 85cb4e1acf49..3ba9c406de79 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 @@ -49,8 +49,7 @@ ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.1, true, true, true, true, 1, SY :::note -- forceSync 参数默认值为 0(SYNC_NONE),通常无需设置,玩家会自动同步动画 -- 强制同步模式适用于玩家无法自主同步的特殊场景(如暂停状态) +forceSync 参数默认值为 0(SYNC_NONE),通常无需设置,玩家会自动同步动画强制同步模式适用于玩家无法自主同步的特殊场景(如暂停状态) ::: 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 69dc67c05976..3069d22b37e2 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 @@ -20,6 +20,10 @@ tags: ["物体"] | Float:rotationZ | Z 轴旋转角度 | | Float:drawDistance | (可选参数)自定义渲染距离(0.0=使用默认值) | +## 返回值 + +返回创建物体的 ID,若达到物体数量上限(MAX_OBJECTS)则返回 INVALID_OBJECT_ID。 + ## 应用示例 ```c 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 9f12b66f5354..52cd487cebbd 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 @@ -58,9 +58,7 @@ pickup_Armour = 0; // 重置变量避免冲突 :::warning -已知问题: - -- 当 X/Y 坐标超出 ±4096 范围时,拾取物不可见且不会触发拾取回调 +已知问题:当 X/Y 坐标超出 ±4096 范围时,拾取物不可见且不会触发拾取回调 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md index df5689e9f637..216f608347f0 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md @@ -46,6 +46,12 @@ public OnPlayerConnect(playerid) ::: +:::tip + +建议使用整数值而非小数坐标,以确保不同分辨率下的显示兼容性 + +::: + :::warning 已知限制: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DB_Open_Modern.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DB_Open_Modern.md index 6390dcaca19a..836ab0ce1ff3 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DB_Open_Modern.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DB_Open_Modern.md @@ -60,7 +60,8 @@ public OnGameModeExit() :::warning -当指定数据库文件不存在时,将自动创建新数据库文件!请务必使用[DB_Close](DB_Close_Modern)关闭数据库连接! +- 当指定数据库文件不存在时,将自动创建新数据库文件! +- 请务必使用[DB_Close](DB_Close_Modern)关闭数据库连接! ::: 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 43d3f666bcd3..dd2de243e7ab 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 @@ -9,6 +9,10 @@ tags: ["室内场景"] 禁用游戏内所有室内出入口(门前的黄色箭头)。 +## 返回值 + +此函数总是返回 **true**。 + ## 示例 ```c diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md index 0666e3ccb432..67ffb69cd09f 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DisableMenuRow.md @@ -56,8 +56,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- 此函数会对所有玩家生效 -- 没有针对单个玩家的行禁用功能。可通过创建多个菜单实现差异化效果(如:包含禁用行的菜单和普通菜单) +此函数会对所有玩家生效没有针对单个玩家的行禁用功能。可通过创建多个菜单实现差异化效果(如:包含禁用行的菜单和普通菜单) ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DisableNameTagLOS.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DisableNameTagLOS.md index b20972582721..34c0637b6b06 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DisableNameTagLOS.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DisableNameTagLOS.md @@ -9,6 +9,10 @@ tags: [] 禁用名牌的视线检测机制,玩家名牌将无视物体遮挡显示。 +## 返回值 + +此函数不返回特定值。 + ## 示例 ```c diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md index bc96a6b72c45..e545245c59f5 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/EnableTirePopping.md @@ -38,8 +38,7 @@ public OnGameModeInit() :::note -- 轮胎爆胎机制默认启用 -- 若需禁用此函数,需通过 [OnVehicleDamageStatusUpdate](../callbacks/OnVehicleDamageStatusUpdate) 回调手动实现 +轮胎爆胎机制默认启用若需禁用此函数,需通过 [OnVehicleDamageStatusUpdate](../callbacks/OnVehicleDamageStatusUpdate) 回调手动实现 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md index 451b4b4c12e2..43857c1c9cd4 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GameModeExit.md @@ -9,6 +9,10 @@ tags: [] 结束当前游戏模式。 +## 返回值 + +此函数不返回特定值。 + ## 示例 ```c @@ -21,3 +25,7 @@ if (OneTeamHasWon) ## 相关函数 - [SetModeRestartTime](SetModeRestartTime): 设置加载主脚本之间的延迟时间(以秒为单位)。 + +## 相关回调 + +- [OnGameModeExit](../callbacks/OnGameModeExit): 当游戏模式结束时触发 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md index 81f5a8e43c9a..e95ae0f423a1 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetMaxPlayers.md @@ -21,8 +21,7 @@ SendClientMessage(playerid, 0xFFFFFFFF, string); // 向玩家发送服务器最 :::warning -- 此函数不能替代 MAX_PLAYERS 宏定义,不可用于编译时数组大小定义 -- 应始终将 MAX_PLAYERS 宏定义为与 max_players 配置相同或更大的值 +此函数不能替代 MAX_PLAYERS 宏定义,不可用于编译时数组大小定义应始终将 MAX_PLAYERS 宏定义为与 max_players 配置相同或更大的值 ::: 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 82b72225cb55..a557859f7c31 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 @@ -60,6 +60,10 @@ public OnPlayerUpdate(playerid) ::: +## 相关回调 + +- [OnPlayerKeyStateChange](../callbacks/OnPlayerKeyStateChange): 当玩家操作任何受支持的按键状态发生改变(按下/释放)时触发此回调。 + ## 相关资源 - [按键位掩码对照表](../resources/keys) 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 bd5b42077cbb..a6a8979a5d11 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 @@ -41,7 +41,8 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -在调用[SetSpawnInfo](SetSpawnInfo)后但玩家尚未重生时,返回的是新设置的皮肤 ID。若通过[SpawnPlayer](SpawnPlayer)重生玩家,会返回旧的皮肤 ID +- 在调用[SetSpawnInfo](SetSpawnInfo)后但玩家尚未重生时,返回的是新设置的皮肤 ID。 +- 若通过[SpawnPlayer](SpawnPlayer)重生玩家,会返回旧的皮肤 ID ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md index 3d2dc834e990..c137ab3c5df2 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetActor.md @@ -38,7 +38,8 @@ public OnPlayerUpdate(playerid) :::warning -不适用于游戏手柄/控制器,且存在有效距离限制。狙击步枪(Sniper Rifle)无法锁定目标,因此不会返回任何演员。 +- 不适用于游戏手柄/控制器,且存在有效距离限制。 +- 狙击步枪(Sniper Rifle)无法锁定目标,因此不会返回任何演员。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md index f46b906fe10f..15c476853fe4 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerTargetPlayer.md @@ -35,7 +35,8 @@ public OnPlayerUpdate(playerid) :::warning -不适用于游戏手柄/控制器,且存在有效距离限制。狙击步枪(Sniper Rifle)无法锁定目标,因此不会返回任何玩家。 +- 不适用于游戏手柄/控制器,且存在有效距离限制。 +- 狙击步枪(Sniper Rifle)无法锁定目标,因此不会返回任何玩家。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md index 5139c79ef30e..76d62925f025 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarDoors.md @@ -29,11 +29,9 @@ tags: ["车辆"] 各变量返回值对应状态: -**-1**: 未设置车门状态 - -**1**: 开启状态 - -**0**: 关闭状态 +- **-1**: 未设置车门状态 +- **1**: 开启状态 +- **0**: 关闭状态 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md index ec627a38a5af..4b057d61fffd 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsCarWindows.md @@ -29,11 +29,9 @@ tags: ["车辆"] 各变量返回值对应状态: -**-1**: 未设置车窗状态(通常为关闭状态,除非显式设置为-1) - -**0**: 开启状态 - -**1**: 关闭状态 +- **-1**: 未设置车窗状态(通常为关闭状态,除非显式设置为-1) +- **0**: 开启状态 +- **1**: 关闭状态 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsSirenState.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsSirenState.md index 5b16934c7184..9a768ae4f79c 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsSirenState.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleParamsSirenState.md @@ -54,3 +54,7 @@ else ## 相关函数 - [SetVehicleParamsSirenState](SetVehicleParamsSirenState): 控制车辆警报器的开关状态 + +## 相关回调 + +- [OnVehicleSirenStateChange](../callbacks/OnVehicleSirenStateChange): 车辆警报器状态变化时触发 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md index 3fd8e9ad6fec..fe5785878aea 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/HTTP.md @@ -28,7 +28,9 @@ tags: ["http"] #define HTTP_GET (HTTP_METHOD:1) // 发送常规HTTP请求 #define HTTP_POST (HTTP_METHOD:2) // 发送带POST数据的HTTP请求 #define HTTP_HEAD (HTTP_METHOD:3) // 发送HTTP请求但忽略响应内容,仅返回状态码 +``` +```c // HTTP错误响应码 // 这些代码是对常规HTTP状态码的补充 #define HTTP_ERROR_BAD_HOST (HTTP_ERROR:1) // 无效主机 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 b2fad42ff06c..bd0a6e2f7cc4 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 @@ -12,6 +12,10 @@ tags: ["车辆"] - 玩家进入/离开车辆时自动开关引擎 - 环境光线变暗时自动开启车灯 +## 返回值 + +此函数总是返回 **true**。 + ## 示例代码 ```c 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 ca75215df770..c9826de66bb3 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 @@ -83,3 +83,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) - [GetPlayerObjectPos](GetPlayerObjectPos): 获取玩家物体坐标 - [GetPlayerObjectRot](GetPlayerObjectRot): 获取玩家物体旋转角度 - [AttachPlayerObjectToPlayer](AttachPlayerObjectToPlayer): 将玩家物体附加到其他玩家 + +## 相关回调 + +- [OnObjectMoved](../callbacks/OnObjectMoved): 当物体停止移动时触发 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 779bc25bf4ad..6c6699240a9d 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,8 +37,7 @@ public OnPlayerConnect(playerid) :::note -- 当使用[PlayerTextDrawSetOutline](PlayerTextDrawSetOutline)且尺寸参数>0 时,轮廓颜色将与 PlayerTextDrawBackgroundColor 设置的颜色一致 -- 修改颜色值会影响 PlayerTextDrawColor 函数设置的颜色效果 +当使用[PlayerTextDrawSetOutline](PlayerTextDrawSetOutline)且尺寸参数>0 时,轮廓颜色将与 PlayerTextDrawBackgroundColor 设置的颜色一致修改颜色值会影响 PlayerTextDrawColor 函数设置的颜色效果 ::: 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 941ace1a1ffd..977136ce4e8a 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,7 +38,7 @@ public OnPlayerConnect(playerid) :::tip -可在文本内容中使用游戏文本颜色代码(例如 `~r~` 红色、`~g~` 绿色、`~b~` 蓝色) +可在文本内容中使用游戏文本颜色代码 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md index 717987f2b206..d2aeead95247 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetActorInvulnerable.md @@ -39,7 +39,8 @@ public OnGameModeInit() :::warning -设置为无敌状态后,演员不会触发[OnPlayerGiveDamageActor](../callbacks/OnPlayerGiveDamageActor)回调。玩家只有在演员被重新流加载时才能看到无敌状态的变化。 +- 设置为无敌状态后,演员不会触发[OnPlayerGiveDamageActor](../callbacks/OnPlayerGiveDamageActor)回调。 +- 玩家只有在演员被重新流加载时才能看到无敌状态的变化。 ::: 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 024ac1e2c4e5..f6b9a19dac58 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 @@ -70,7 +70,6 @@ public OnPlayerCommandText(playerid, cmdtext[]) - [Texture Studio](https://github.com/Pottus/Texture-Studio) 作者:Pottus - [Ultimate Creator](https://github.com/NexiusTailer/Ultimate-Creator) 作者:Nexius - [Fusez's Map Editor](https://github.com/fusez/Map-Editor-V3) 作者:RedFusion -- [SetObjectMaterialText 编辑器](https://sampforum.blast.hk/showthread.php?tid=614667) 作者:RIDE2DAY ## 相关资源 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 a978710925a5..c563d6d62e6a 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 @@ -39,7 +39,8 @@ public OnPlayerSpawn(playerid) :::note -每个玩家只能附加一个物体。此函数与 CreateObject/CreatePlayerObject 物体池相互独立 +- 每个玩家只能附加一个物体。 +- 此函数与 CreateObject/CreatePlayerObject 物体池相互独立 ::: 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 e2da3914a8a1..325db2a19f27 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,8 +92,7 @@ SetPlayerSkinFix(playerid, skinid) 已知问题: -- 当玩家处于下蹲、车辆内或特定动画状态时切换皮肤会导致角色冻结/异常,可通过[TogglePlayerControllable](TogglePlayerControllable)解除 -- 使用[GetPlayerSpecialAction](GetPlayerSpecialAction)检测 SPECIAL_ACTION_DUCK 状态可判断玩家是否下蹲 +- 当玩家处于下蹲、车辆内或特定动画状态时切换皮肤会导致角色冻结/异常,可通过[TogglePlayerControllable](TogglePlayerControllable)解除使用[GetPlayerSpecialAction](GetPlayerSpecialAction)检测 SPECIAL_ACTION_DUCK 状态可判断玩家是否下蹲 - 玩家在车辆内切换皮肤可能导致周围玩家客户端崩溃 - 玩家死亡时切换皮肤可能引发周围玩家崩溃 - 会中断自行车乘坐状态 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md index 5cb07f1fa87d..e1101df4faff 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerTeam.md @@ -33,8 +33,7 @@ public OnPlayerSpawn(playerid) :::note -- 同队伍玩家之间无法造成伤害(使用割喉刀除外) -- 同队伍玩家驾驶的车辆默认免疫友方伤害,可通过[EnableVehicleFriendlyFire](EnableVehicleFriendlyFire)启用 +- 同队伍玩家之间无法造成伤害(使用割喉刀除外)同队伍玩家驾驶的车辆默认免疫友方伤害,可通过[EnableVehicleFriendlyFire](EnableVehicleFriendlyFire)启用 - 默认无队伍状态使用 255(或 NO_TEAM),而非 0 号队伍 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md index 7edde0994e38..9acf00226c20 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetTimer.md @@ -46,8 +46,7 @@ public OneSecondTimer() :::note -- 定时器 ID 具有全局唯一性,不会重复使用 -- 可通过[KillTimer](KillTimer)安全终止任意定时器(无论是否运行) +- 定时器 ID 具有全局唯一性,不会重复使用。可通过[KillTimer](KillTimer)安全终止任意定时器(无论是否运行) - 目标函数必须声明为`public`且预先`forward` ::: 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 6b69072592ac..69c9553191d0 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 @@ -67,9 +67,8 @@ SA-MP 中定时器精度存在约 25%偏差,可通过[此修复](https://sampf :::tip -- 定时器 ID 变量建议用完后重置为 0,避免误操作终止新定时器 +- 定时器 ID 变量建议用完后重置为 0,避免误操作终止新定时器。`-1`并非无效 ID,实际无效 ID 为 0 - 目标函数必须声明为 public 并通过 forward 预声明 -- `-1`并非无效 ID,实际无效 ID 为 0 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md index 6df3b8a6bccf..6cff401b53ec 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehicleZAngle.md @@ -46,8 +46,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- 使用此函数将重置车辆的 X/Y 轴旋转(俯仰和横滚) -- X/Y 轴旋转角度不可通过此函数设置 +- 使用此函数将重置车辆的 X/Y 轴旋转(俯仰和横滚)X/Y 轴旋转角度不可通过此函数设置 - 此函数对无人驾驶的车辆无效(GTA 引擎原生限制) ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md index cceee55f0615..3fbc76935c2f 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawBackgroundColor.md @@ -1,7 +1,7 @@ --- title: TextDrawBackgroundColor sidebar_label: TextDrawBackgroundColor -description: 调整文本绘图区域的背景颜色(轮廓/阴影部分,非盒子背景。盒子颜色请使用[TextDrawBoxColor](TextDrawBoxColor)) +description: 调整文本绘图区域的背景颜色(轮廓/阴影部分,非盒子背景) tags: ["文本绘图"] --- @@ -36,8 +36,7 @@ public OnGameModeInit() :::note -- 当使用[TextDrawSetOutline](TextDrawSetOutline)且尺寸>0 时,轮廓颜色将与此函数设置的颜色一致 -- 修改颜色值会影响[TextDrawColor](TextDrawColor)的文本颜色表现 +当使用[TextDrawSetOutline](TextDrawSetOutline)且尺寸>0 时,轮廓颜色将与此函数设置的颜色一致修改颜色值会影响[TextDrawColor](TextDrawColor)的文本颜色表现 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md index 3af93eb89510..73c11c245b0e 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawColor.md @@ -35,7 +35,7 @@ public OnGameModeInit() :::tip -可在文本内容中使用[游戏文本颜色代码](../resources/gametextstyles)(例如 `~r~` 红色、`~g~` 绿色、`~b~` 蓝色) +可在文本内容中使用[游戏文本颜色代码](../resources/gametextstyles) ::: 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 9d37514d14ee..38986e0f4827 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 @@ -47,8 +47,7 @@ public OnPlayerConnect(playerid) :::note -- `x, y`坐标基于 640x480 虚拟画布定位(与屏幕分辨率无关),表示文本区域左上角坐标 -- 若使用[TextDrawAlignment](TextDrawAlignment)设置右对齐(`TEXT_DRAW_ALIGN_RIGHT`),`x, y`将作为文本区域的右上角坐标 +- `x, y`坐标基于 640x480 虚拟画布定位(与屏幕分辨率无关),表示文本区域左上角坐标若使用[TextDrawAlignment](TextDrawAlignment)设置右对齐(`TEXT_DRAW_ALIGN_RIGHT`),`x, y`将作为文本区域的右上角坐标 - 此函数仅创建文本绘图,需调用[TextDrawShowForPlayer](TextDrawShowForPlayer)或[TextDrawShowForAll](TextDrawShowForAll)方可显示 ::: 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 3726ef98ef65..209d23827696 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,8 +36,7 @@ public OnGameModeInit() :::tip -- 当需要仅调整文本绘图的方框尺寸时,可将 height 参数乘以 0.135 来获得类似 TextDrawTextSize 的尺寸效果。 -- 技巧:对于纯方框型文本绘图,建议使用**LD_SPAC:white**精灵配合 TextDrawTextSize 函数,可获得更精准的尺寸控制。 +- 当需要仅调整文本绘图的方框尺寸时,可将 height 参数乘以 0.135 来获得类似 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/TogglePlayerGhostMode.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerGhostMode.md index 3ee3edd7bbda..bdf99f7be407 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerGhostMode.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerGhostMode.md @@ -1,7 +1,7 @@ --- title: TogglePlayerGhostMode sidebar_label: TogglePlayerGhostMode -description: 切换玩家的幽灵模式。幽灵模式将禁用玩家模型之间的碰撞。 +description: 切换玩家的幽灵模式。 tags: ["玩家"] --- diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md index 8bf355c4207c..57b2f1cb4311 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/db_open.md @@ -60,7 +60,8 @@ public OnGameModeExit() :::warning -当指定数据库文件不存在时,将自动创建新数据库文件!请务必使用[db_close](db_close)关闭数据库连接! +- 当指定数据库文件不存在时,将自动创建新数据库文件! +- 请务必使用[db_close](db_close)关闭数据库连接! ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/carcomponentid.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/carcomponentid.md index f586fc403b56..38f8f212d82d 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/carcomponentid.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/carcomponentid.md @@ -420,4 +420,4 @@ description: 关于车辆组件ID、模型名称、部件、类型、支持车 ## 所有组件费用均以逗号分隔 -`400, 550, 200, 250, 100, 150, 80, 500, 500, 200, 1000, 220, 250, 100, 400, 500, 200, 500, 350, 300, 250, 200, 150, 350, 50, 1000, 480, 480, 770, 680, 370, 370, 170, 120, 790, 150, 500, 690, 190, 390, 500, 390, 1000, 500, 500, 510, 710, 670, 530, 810, 620, 670, 530, 130, 210, 230, 520, 430, 620, 720, 530, 180, 550, 430, 830, 850, 750, 250, 200, 550, 450, 550, 450, 1100, 1030, 980, 1560, 1620, 1200, 1030, 900, 1230, 820, 1560, 1350, 770, 100, 1500, 150, 650, 450, 100, 750, 350, 450, 350, 1000, 620, 1140, 1000, 940, 780, 830, 3250, 1610, 1540, 780, 780, 780, 1610, 1540, 0, 0, 3340, 3250, 2130, 2050, 2040, 780, 940, 780, 940, 780, 860, 780, 1120, 3340, 3250, 3340, 1650, 3380, 3290, 1590, 830, 800, 1500, 1000, 800, 580, 470, 870, 980, 150, 150, 100, 100, 490, 600, 890, 1000, 1090, 840, 910, 1200, 1030, 1030, 920, 930, 550, 1050, 1050, 950, 650, 450, 550, 850, 950, 850, 950, 970, 880, 990, 900, 950, 1000, 900, 1000, 900, 2050, 2150, 2130, 2050, 2130, 2040, 2150, 2040, 2095, 2175, 2080, 2200, 1200, 1040, 940, 1100` +`400`, `550`, `200`, `250`, `100`, `150`, `80`, `500`, `500`, `200`, `1000`, `220`, `250`, `100`, `400`, `500`, `200`, `500`, `350`, `300`, `250`, `200`, `150`, `350`, `50`, `1000`, `480`, `480`, `770`, `680`, `370`, `370`, `170`, `120`, `790`, `150`, `500`, `690`, `190`, `390`, `500`, `390`, `1000`, `500`, `500`, `510`, `710`, `670`, `530`, `810`, `620`, `670`, `530`, `130`, `210`, `230`, `520`, `430`, `620`, `720`, `530`, `180`, `550`, `430`, `830`, `850`, `750`, `250`, `200`, `550`, `450`, `550`, `450`, `1100`, `1030`, `980`, `1560`, `1620`, `1200`, `1030`, `900`, `1230`, `820`, `1560`, `1350`, `770`, `100`, `1500`, `150`, `650`, `450`, `100`, `750`, `350`, `450`, `350`, `1000`, `620`, `1140`, `1000`, `940`, `780`, `830`, `3250`, `1610`, `1540`, `780`, `780`, `780`, `1610`, `1540`, `0`, `0`, `3340`, `3250`, `2130`, `2050`, `2040`, `780`, `940`, `780`, `940`, `780`, `860`, `780`, `1120`, `3340`, `3250`, `3340`, `1650`, `3380`, `3290`, `1590`, `830`, `800`, `1500`, `1000`, `800`, `580`, `470`, `870`, `980`, `150`, `150`, `100`, `100`, `490`, `600`, `890`, `1000`, `1090`, `840`, `910`, `1200`, `1030`, `1030`, `920`, `930`, `550`, `1050`, `1050`, `950`, `650`, `450`, `550`, `850`, `950`, `850`, `950`, `970`, `880`, `990`, `900`, `950`, `1000`, `900`, `1000`, `900`, `2050`, `2150`, `2130`, `2050`, `2130`, `2040`, `2150`, `2040`, `2095`, `2175`, `2080`, `2200`, `1200`, `1040`, `940`, `1100` diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/samp_objects.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/samp_objects.md index 8e28e37dd80a..548e282e834c 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/samp_objects.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/samp_objects.md @@ -46,7 +46,7 @@ description: 本页面包含由SA-MP添加的自定义物体列表。 ### **扩展道路标识** -下方限速标识包含透明材质覆盖层(索引 3),可配合 SetObjectMaterialText()或 SetPlayerObjectMaterialText()函数使用。 +下方限速标识包含透明材质覆盖层(索引 3),可配合 SetObjectMaterialText或 SetPlayerObjectMaterialText函数使用。 ``` 11699 SAMPRoadSign46 @@ -250,7 +250,7 @@ description: 本页面包含由SA-MP添加的自定义物体列表。 ### **旧式笔记本电脑** -提供开启与闭合两种状态。可通过 SetObjectMaterial()函数修改索引 1 的屏幕材质,TXD 文件包含三种屏幕样式(参见下图): +提供开启与闭合两种状态。可通过 SetObjectMaterial函数修改索引 1 的屏幕材质,TXD 文件包含三种屏幕样式(参见下图): - LaptopScreen1 = GTASA 地图界面(默认) - LaptopScreen2 = 文本界面 @@ -429,7 +429,7 @@ description: 本页面包含由SA-MP添加的自定义物体列表。 19979 SAMPRoadSign32 ``` -以下两个标识包含透明材质覆盖层(索引 3),可配合 SetObjectMaterialText()或 SetPlayerObjectMaterialText()函数使用: +以下两个标识包含透明材质覆盖层(索引 3),可配合 SetObjectMaterialText或 SetPlayerObjectMaterialText函数使用: ``` 19980 SAMPRoadSign33 @@ -544,7 +544,7 @@ description: 本页面包含由SA-MP添加的自定义物体列表。 ### **卡里古拉赌场金库门(改良版)** -优化枢轴点以适配 MoveObject()函数,并修复夜间顶点着色问题。原物体 ID 为 2634。 +优化枢轴点以适配 MoveObject函数,并修复夜间顶点着色问题。原物体 ID 为 2634。 ``` 19799 CaligulasVaultDoor @@ -566,7 +566,7 @@ description: 本页面包含由SA-MP添加的自定义物体列表。 ### **静态门体** -与 ID 1502 物体相同但改为静态属性,可通过 MoveObject()函数实现开关动画。 +与 ID 1502 物体相同但改为静态属性,可通过 MoveObject函数实现开关动画。 ``` 19802 GenDoorINT04Static @@ -588,7 +588,7 @@ description: 本页面包含由SA-MP添加的自定义物体列表。 ### **提取物品系列** -下方白板物体包含透明材质覆盖层(索引 1),可配合 SetObjectMaterialText()或 SetPlayerObjectMaterialText()函数使用: +下方白板物体包含透明材质覆盖层(索引 1),可配合 SetObjectMaterialText或 SetPlayerObjectMaterialText函数使用: ``` 19805 Whiteboard1 @@ -721,9 +721,271 @@ description: 本页面包含由SA-MP添加的自定义物体列表。 ## ​**0.3.7 RC1 版本新增物体(265 个物体)​** ``` -19305 sec_keypad2 -19306 kmb_goflag2 -19307 kmb_goflag3 +19522 property_red +19523 property_orange +19524 property_yellow +19525 WeddingCake1 +19526 ATMFixed +19527 Cauldron1 +19528 WitchesHat1 +19529 Plane125x125Grass1 +19530 Plane125x125Sand1 +19531 Plane125x125Conc1 +19532 15x125Road1 +19533 15x62_5Road1 +19534 15x15RoadInters1 +19535 15x15RoadInters2 +19536 Plane62_5x125Grass1 +19537 Plane62_5x125Sand1 +19538 Plane62_5x125Conc1 +19539 Edge62_5x62_5Grass1 +19540 Edge62_5x62_5Grass2 +19541 Edge62_5x15Grass1 +19542 Edge62_5x125Grass1 +19543 Plane62_5x15Grass1 +19544 Plane62_5x15Sand1 +19545 Plane62_5x15Conc1 +19546 Edge62_5x62_5Grass3 +19547 Hill125x125Grass1 +19548 Hill125x125Sand1 +19549 Edge62_5x32_5Grass1 +19550 Plane125x125Grass2 +19551 Plane125x125Sand2 +19552 Plane125x125Conc2 +19553 StrawHat1 +19554 Beanie1 +19555 BoxingGloveL +19556 BoxingGloveR +19557 SexyMask1 +19558 PizzaHat1 +19559 HikerBackpack1 +19560 MeatTray1 +19561 CerealBox1 +19562 CerealBox2 +19563 JuiceBox1 +19564 JuiceBox2 +19565 IceCreamBarsBox1 +19566 FishFingersBox1 +19567 IcecreamContainer1 +19568 IcecreamContainer2 +19569 MilkCarton1 +19570 MilkBottle1 +19571 PizzaBox1 +19572 PisshBox1 +19573 BriquettesBag1 +19574 Orange1 +19575 Apple1 +19576 Apple2 +19577 Tomato1 +19578 Banana1 +19579 BreadLoaf1 +19580 Pizza1 +19581 MarcosFryingPan1 +19582 MarcosSteak1 +19583 MarcosKnife1 +19584 MarcosSaucepan1 +19585 MarcosPan1 +19586 MarcosSpatula1 +19587 PlasticTray1 +19588 FootBridge1 +19589 RubbishSkipEmpty1 +19590 WooziesSword1 +19591 WooziesHandFan1 +19592 ShopBasket1 +19593 ZomboTechBuilding1 +19594 ZomboTechLab1 +19595 LSAppartments1 +19597 LSBeachSideInsides +19598 SFBuilding1Outside +19599 SFBuilding1Inside +19600 SFBuilding1Land +19601 SnowPlow1 +19602 Landmine1 +19603 WaterPlane1 +19604 WaterPlane2 +19605 EnExMarker4-2 +19606 EnExMarker4-3 +19607 EnExMarker4-4 +19608 WoodenStage1 +19609 DrumKit1 +19610 Microphone1 +19611 MicrophoneStand1 +19612 GuitarAmp1 +19613 GuitarAmp2 +19614 GuitarAmp3 +19615 GuitarAmp4 +19616 GuitarAmp5 +19617 GoldRecord1 +19618 Safe1 +19619 SafeDoor1 +19620 LightBar1 +19621 OilCan1 +19622 Broom1 +19623 Camera1 +19624 Case1 +19625 Ciggy1 +19626 Spade1 +19627 Wrench1 +19628 MRoadBend90Banked1 +19629 MRoadBend90Banked2 +19630 Fish1 +19631 SledgeHammer1 +19632 FireWood1 +19633 Ramp360Degree1 +19634 Ramp360Degree2 +19635 Ramp360Degree3 +19636 RedApplesCrate1 +19637 GreenApplesCrate1 +19638 OrangesCrate1 +19639 EmptyCrate1 +19640 EmptyShopShelf1 +19641 FenceSection1 +19642 TubeSeg10m1 +19643 TubeSeg10m2a +19644 TubeSeg10m2b +19645 TubeSeg25m1 +19646 TubeHalf10m1 +19647 TubeHalf10mJoin1a +19648 TubeHalf10mJoin1b +19649 TubeHalf50m1 +19650 TubeFlat25x25m1 +19651 TubeHalfSpiral1a +19652 TubeHalfSpiral1b +19653 TubeHalfSpiral2a +19654 TubeHalfSpiral2b +19655 TubeHalfSpiral3a +19656 TubeHalfSpiral3b +19657 TubeHalfSpiral4a +19658 TubeHalfSpiral4b +19659 TubeHalf180Bend1a +19660 TubeHalf180Bend1b +19661 TubeHalf90Bend1a +19662 TubeHalf90Bend1b +19663 TubeHalf50mDip1 +19664 TubeHalf50mBump1 +19665 TubeHalfLoop1a +19666 TubeHalfLoop1b +19667 TubeHalfLoop2a +19668 TubeHalfLoop2b +19669 TubeHalfBowl1 +19670 TubeSupport1 +19671 TubeSupport2 +19672 TubeHalfLight1 +19673 TubeHalf5Bend1a +19674 TubeHalf5Bend1b +19675 TubeHalf5Bend2a +19676 TubeHalf5Bend2b +19677 TubeHalfTwist1a +19678 TubeHalfTwist1b +19679 TubeHalfTwist2a +19680 TubeHalfTwist2b +19681 TubeHalf45Bend1a +19682 TubeHalf45Bend1b +19683 TubeHalf15Bend1a +19684 TubeHalf15Bend1b +19685 TubeHalf15Bend2a +19686 TubeHalf15Bend2b +19687 TubeHalf25m1 +19688 TubeHalf45Bend3 +19689 TubeHalf45Bend4 +19690 TubeHalfNtoMJoin1a +19691 TubeHalfNtoMJoin1b +19692 MTubeSeg5m1 +19693 MTubeSeg5m2a +19694 MTubeSeg5m2b +19695 MTubeSeg12_5m1 +19696 MTubeHalf10m1 +19697 MTubeHalf5mJoin1a +19698 MTubeHalf5mJoin1b +19699 MTubeHalf25m1 +19700 MTubeFlt12_5x12_5m1 +19701 MTubeHalfSpiral1a +19702 MTubeHalfSpiral1b +19703 MTubeHalfSpiral2a +19704 MTubeHalfSpiral2b +19705 MTubeHalfSpiral3a +19706 MTubeHalfSpiral3b +19707 MTubeHalfSpiral4a +19708 MTubeHalfSpiral4b +19709 MTubeHalf180Bend1a +19710 MTubeHalf180Bend1b +19711 MTubeHalf90Bend1a +19712 MTubeHalf90Bend1b +19713 MTubeHalf25mDip1 +19714 MTubeHalf25mBump1 +19715 MTubeHalfBowl1 +19716 MTubeSupport1 +19717 MTubeSupport2 +19718 MTubeHalfLight1 +19719 MTubeHalf5Bend1a +19720 MTubeHalf5Bend1b +19721 MTubeHalf5Bend2a +19722 MTubeHalf5Bend2b +19723 MTubeHalf45Bend1a +19724 MTubeHalf45Bend1b +19725 MTubeHalf15Bend1a +19726 MTubeHalf15Bend1b +19727 MTubeHalf15Bend2a +19728 MTubeHalf15Bend2b +19729 MTubeHalf45Bend3 +19730 MTubeHalf45Bend4 +19731 TubeHalfMtoSJoin1a +19732 TubeHalfMtoSJoin1B +19733 STubeSeg5m1 +19734 STubeSeg5m2a +19735 STubeSeg5m2b +19736 STubeSeg6_25m1 +19737 STubeHalf10m1 +19738 STubeHalf5mJoin1a +19739 STubeHalf5mJoin1b +19740 STubeHalf12_5m1 +19741 STubeFlat6_25m1 +19742 STubeHalfSpiral1a +19743 STubeHalfSpiral1b +19744 STubeHalfSpiral2a +19745 STubeHalfSpiral2b +19746 STubeHalfSpiral3a +19747 STubeHalfSpiral3b +19748 STubeHalfSpiral4a +19749 STubeHalfSpiral4b +19750 STubeHalf180Bend1a +19751 STubeHalf180Bend1b +19752 STubeHalf90Bend1a +19753 STubeHalf90Bend1b +19754 STubeHalf12_5mDip1 +19755 STubeHalf12_5mBump1 +19756 STubeHalfBowl1 +19757 STubeSupport1 +19758 STubeSupport2 +19759 STubeHalfLight1 +19760 STubeHalf5Bend1a +19761 STubeHalf5Bend1b +19762 STubeHalf5Bend2a +19763 STubeHalf5Bend2b +19764 STubeHalf45Bend1a +19765 STubeHalf45Bend1b +19766 STubeHalf15Bend1a +19767 STubeHalf15Bend1b +19768 STubeHalf15Bend2a +19769 STubeHalf15Bend2b +19770 STubeHalf45Bend3 +19771 STubeHalf45Bend4 +19772 CrushedCarCube1 +19773 GunHolster1 +19774 PoliceBadge2 +19775 PoliceBadge3 +19776 FBIIDCard1 +19777 FBILogo1 +19778 InsigniaDetective1 +19779 InsigniaDetective2 +19780 InsigniaDetective3 +19781 InsigniaSergeant1 +19782 InsigniaSergeant2 +19783 InsigniaPOfficer2 +19784 InsigniaPOfficer3 +19785 InsigniaSeniorLdOff +19786 LCDTVBig1 +19787 LCDTV1 ``` --- diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/textdraws.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/textdraws.md index 09e3d1bff38d..073d679cc523 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/textdraws.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/textdraws.md @@ -8,7 +8,10 @@ description: 文本绘图是在玩家屏幕上绘制的文字元素,可长期 文本绘图(Textdraw)是在玩家屏幕上显示的文字元素。与[客户端消息](../functions/SendClientMessage)或[游戏文本](../functions/GameTextForPlayer)不同,文本绘图可以无限期显示。既支持简单静态文本(如网站地址),也可创建复杂的动态元素(如进度条)。 -推荐使用文本绘图编辑器工具简化设计流程。 +推荐使用文本绘图编辑器工具简化设计流程: + +- [Nickk's TextDraw Editor](https://github.com/Nickk888SAMP/TextDraw-Editor) +- [Nexor's Textdraw Editor](https://github.com/nexquery/samp-textdraw-editor) --- diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/ControllingServer.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/ControllingServer.md index d1e4bae9c6c1..cf9614b537dc 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/ControllingServer.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/ControllingServer.md @@ -54,8 +54,6 @@ RCON 密码是你在 [config.json](config.json) 中设置的 `rcon.password` 值 ### 添加封禁 -封禁是指阻止一个 IP 连接到服务器。 - ##### bans.json bans.json 是用于存储封禁信息的文件,包括以下内容: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/Installation.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/Installation.md index 115af00079fc..c187caa7e4e9 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/Installation.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/Installation.md @@ -229,18 +229,6 @@ description: 将游戏模式从 SA:MP 服务器迁移至 open.mp 服务器的指 ./omp-server ``` -## 保持服务器在线 - -这个批处理程序会在服务器崩溃时重启 `omp-server.exe`。你只需要把以下内容存到一个后缀名为 `.bat` 的文本文件里: - -``` -:start -omp-server.exe -goto start -``` - -把这个文件放到 `omp-server.exe` 所在的文件夹下并启动。在服务器控制台里输入 `exit` 来测试它是否有效。 - ## 编译错误与警告处理 - **warning 213: 标签不匹配: 预期标签 "?",但未找到 ("\_")**: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/omp-functions.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/omp-functions.md index 8ba1d560932a..57cf6ac6a139 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/omp-functions.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/omp-functions.md @@ -235,3 +235,10 @@ description: open.mp 新增函数与回调说明。 | [PlayerTextDrawIsBox](../scripting/functions/PlayerTextDrawIsBox) | | [PlayerTextDrawIsProportional](../scripting/functions/PlayerTextDrawIsProportional) | | [PlayerTextDrawIsSelectable](../scripting/functions/PlayerTextDrawIsSelectable) | + +## 自定义模型 + +| 参数 | +| --------------------------------------------------------------- | +| [IsValidCustomModel](../scripting/functions/IsValidCustomModel) | +| [GetCustomModelPath](../scripting/functions/GetCustomModelPath) | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md index 306af085f1e1..256c4d6d13e1 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md @@ -58,8 +58,9 @@ AddMenuItem(teleportmenu, 1, "Come-a-Lot"); [AddMenuItem](../scripting/functions/AddMenuItem)参数说明: -| menuid | 目标菜单的 ID | +| 参数 | 说明 | | ------ | ------------- | +| menuid | 目标菜单的 ID | | column | 显示项的列号 | | text | 项文本 | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md index 51573da7b37e..838157c9f225 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/servervariablesystem.md @@ -1,7 +1,6 @@ --- title: 服务器变量系统 sidebar_label: 服务器变量系统 - description: 服务器变量系统(简称SVar)是一种高效动态创建全局服务器变量的新方法,支持在游戏模式(GameMode)与滤镜脚本(FilterScript)中同时使用。 --- diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/stringmanipulation.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/stringmanipulation.md index 710a348e41ef..a47bccff5fa9 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/stringmanipulation.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/stringmanipulation.md @@ -72,7 +72,7 @@ new SA-MP 限制了可以存储在单个字符串中的字符数,并防止脚本编写者在处理文本时过度操作。幸运的是,这并不像看起来那么糟糕,下面的列表列出了其中的一些限制: -| | | | +| 类型 | 说明 | 限制 | | ------------------- | -------------------------------------------------------------------------------------------------- | ---- | | **文本输入** | 你在聊天中输入的文本。 | 128 | | **文本输出** | 在客户端屏幕上输出的文本。 | 144 | @@ -242,9 +242,8 @@ message_9[0] = EOS; 正如我在教程前面所说的,你可以忽略分配空字符,但它总是在空单元格中存在。当你声明一个新字符串时,所有单元格都会自动被空字符占据。因此,例如,如果我声明这个字符串 `text[3]`,它的所有单元格默认都会被分配值 `0`,这里是该字符串内容的简单可视化表示: -| | | | | -| -------- | ---- | ---- | ---- | | 单元格 | 0 | 1 | 2 | +| -------- | ---- | ---- | ---- | | ASCII 码 | 0 | 0 | 0 | | 字符 | '\0' | '\0' | '\0' | @@ -256,9 +255,8 @@ new text_1[8] = "Hello"; 以下是每个单元格的字符串内容; -| | | | | | | | | | -| -------- | --- | --- | --- | --- | --- | ---- | ---- | ---- | | 单元格 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | +| -------- | --- | --- | --- | --- | --- | ---- | ---- | ---- | | ASCII 码 | 72 | 101 | 108 | 108 | 111 | 0 | 0 | 0 | | 字符 | 'H' | 'e' | 'l' | 'l' | 'o' | '\0' | '\0' | '\0' | @@ -272,9 +270,8 @@ text_1[0] = '\0'; 将字符串通过 X-Ray 扫描会打印出以下结果; -| | | | | | | | | | -| -------- | ---- | --- | --- | --- | --- | ---- | ---- | ---- | | 单元格 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | +| -------- | ---- | --- | --- | --- | --- | ---- | ---- | ---- | | ASCII 码 | 0 | 101 | 108 | 108 | 111 | 0 | 0 | 0 | | 字符 | '\0' | 'e' | 'l' | 'l' | 'o' | '\0' | '\0' | '\0' | @@ -444,17 +441,15 @@ pkString_1 = !#pawn; 这是 `upkString` 内容的近似视觉表示; -| | | | | | | -| ------ | -------------------- | -------------------- | -------------------- | -------------------- | ----------------- | | 单元格 | 0 | 1 | 2 | 3 | 4 | +| ------ | -------------------- | -------------------- | -------------------- | -------------------- | ----------------- | | 字节 | 0 . 1 . 2 . 3 | 0 . 1 . 2 . 3 | 0 . 1 . 2 . 3 | 0 . 1 . 2 . 3 | 0 . 1 . 2 . 3 | | 字符 | \0 . \0 . \0 . **p** | \0 . \0 . \0 . **a** | \0 . \0 . \0 . **w** | \0 . \0 . \0 . **n** | \0 . \0 . \0 . \0 | And this is what `pkString_1` would be like in the second example; -| | | | -| ------ | ----------------------------- | ----------------- | | 单元格 | 0 | 1 | +| ------ | ----------------------------- | ----------------- | | 字节 | 0 . 1 . 2 . 3 | 0 . 1 . 2 . 3 | | 字符 | **p** . **a** . **w** . **n** | \0 . \0 . \0 . \0 | @@ -727,7 +722,7 @@ ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "注意", "{"COL_GREEN"}你 如上所述,**RGB** 表示法不被支持,但幸运的是,我们有其他方法来解决这个问题,对于文本绘图,你可以使用本地函数 [TextDrawColor](../scripting/functions/TextDrawColor) 来更改文本绘图的颜色,但这与文本绘图的 **RGBA** 颜色空间对于客户端消息和对话框是一样的,颜色不能被嵌入。为此,我们使用特殊的字符组合来引用颜色和其他一些符号,你可以在 [这里](../scripting/resources/gametextstyles) 查看它们。 -| | | +| 代码 | 颜色 | | -------------- | ---- | | \~r\~ | 红色 | | \~g\~ | 绿色 | @@ -741,7 +736,7 @@ ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "注意", "{"COL_GREEN"}你 你还可以使用另一种字符组合来玩混色游戏, **\~h\~**, 它会使某种颜色变浅,以下是几个例子: -| | | +| 代码 | 颜色 | | ------------------------------ | ------ | | \~r\~\~h\~ | 亮红色 | | \~r\~\~h\~\~h\~ | 粉红色 | @@ -762,7 +757,7 @@ ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "注意", "{"COL_GREEN"}你 转义序列使得在脚本的源代码中表达某些字符变得更容易,下面是 pawn 中使用的转义序列表: -| | | +| 说明 | 转义序列 | | ------------------------- | ------------ | | 响铃(在服务器机器上) | `\a` 或 `\7` | | 退格符 | `\b` | @@ -1132,7 +1127,7 @@ Hello 这一部分与转义序列完全无关,但它用于格式化文本绘图和游戏文本,放在这里比放在其他地方更合适; -| | | +| 代码 | 功能说明 | | ----- | ----------------------------------------------------------------------------------------------- | | `~u~` | 向上箭头(灰色) | | `~d~` | 向下箭头(灰色) | @@ -1157,9 +1152,8 @@ Hello 让我们来看一下可以使用的不同输出类型: -| | | -| ------------- | ----------------------------------------------- | | **Specifier** | **含义** | +| ------------- | ----------------------------------------------- | | `%i` | 整数 (_整数_) | | `%d` | 整数 (_整数_) | | `%s` | 字符串 | @@ -1633,9 +1627,8 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) 给定以下连接玩家列表: -| | | -| ------ | ----------------------------------------------- | | **ID** | **玩家** | +| ------ | ----------------------------------------------- | | 0 | Compton | | 1 | Dark | | 5 | Player1 |