diff --git a/frontend/docs/scripting/callbacks/OnPlayerUpdate.md b/frontend/docs/scripting/callbacks/OnPlayerUpdate.md index 96d3c872c0b..77760dbbdef 100644 --- a/frontend/docs/scripting/callbacks/OnPlayerUpdate.md +++ b/frontend/docs/scripting/callbacks/OnPlayerUpdate.md @@ -37,7 +37,7 @@ public OnPlayerUpdate(playerid) CallLocalFunction("OnPlayerWeaponChange", "iii", playerid, gPlayerCurrentWeapon[playerid], weapon); gPlayerCurrentWeapon[playerid] = weapon; // Update the weapon variable } - return 1; // Send this update to other players. + return 1; // Send this update to other players } forward OnPlayerWeaponChange(playerid, WEAPON:oldWeapon, WEAPON:newWeapon); @@ -69,8 +69,8 @@ public OnPlayerUpdate(playerid) if (fHealth != GetPVarFloat(playerid, "faPlayerHealth")) { - // Player health has changed since the last update -> server, so obviously thats the thing updated. - // Lets do further checks see if he's lost or gained health, anti-health cheat? ;) + // Player health has changed since the last update -> server, so obviously thats the thing updated + // Lets do further checks see if he's lost or gained health if (fHealth > GetPVarFloat(playerid, "faPlayerHealth")) { diff --git a/frontend/docs/scripting/functions/ApplyActorAnimation.md b/frontend/docs/scripting/functions/ApplyActorAnimation.md index e1c3bbec516..d8c79630d63 100644 --- a/frontend/docs/scripting/functions/ApplyActorAnimation.md +++ b/frontend/docs/scripting/functions/ApplyActorAnimation.md @@ -16,7 +16,7 @@ Apply an animation to an actor. | actorid | The ID of the actor to apply the animation to. | | const animationLibrary[] | The [animation library](../resources/animations) from which to apply an animation. | | const animationName[] | The name of the [animation](../resources/animations) to apply, within the specified library. | -| float:delta | The speed to play the animation (use 4.1). | +| Float:delta | The speed to play the animation (use 4.1). | | bool:loop | If set to **true**, the animation will loop. If set to **false**, the animation will play once. | | bool:lockX | If set to **false**, the actor is returned to their old X coordinate once the animation is complete (for animations that move the actor such as walking). **true** will not return them to their old position. | | bool:lockY | Same as above but for the Y axis. Should be kept the same as the previous parameter. | diff --git a/frontend/docs/scripting/functions/CreatePlayerPickup.md b/frontend/docs/scripting/functions/CreatePlayerPickup.md index 8b72c9c7cc9..77eec6a04ef 100644 --- a/frontend/docs/scripting/functions/CreatePlayerPickup.md +++ b/frontend/docs/scripting/functions/CreatePlayerPickup.md @@ -57,9 +57,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 [OnPlayerPickUpPlayerPickup](../callbacks/OnPlayerPickUpPlayerPickup) 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 [OnPlayerPickUpPlayerPickup](../callbacks/OnPlayerPickUpPlayerPickup) either. ::: diff --git a/frontend/docs/scripting/functions/GetObjectMaterial.md b/frontend/docs/scripting/functions/GetObjectMaterial.md index ef355902524..c79ed736aa1 100644 --- a/frontend/docs/scripting/functions/GetObjectMaterial.md +++ b/frontend/docs/scripting/functions/GetObjectMaterial.md @@ -11,16 +11,16 @@ tags: ["object"] Get the material data from an index of the object. -| Name | Description | -| ------------------ | ----------------------------------------------------------------------------------------------------------- | -| objectid | The ID of the object. | -| materialIndex | The material index on the object. (0 to 15) | -| &modelid | A variable in which to store the model ID, passed by reference. | -| textureLibrary[] | An array into which to store the texture library name, passed by reference. | -| textureLibrarySize | The size of the array for the texture library name. | -| textureName[] | An array into which to store the [texture](https://models.open.mp/?cat=textures) name, passed by reference. | -| textureNameSize | The size of the array for the texture name. | -| &materialColour | A variable in which to store the materialColour, passed by reference. | +| Name | Description | +| ------------------ | ------------------------------------------------------------------------------------------------------------------- | +| objectid | The ID of the object. | +| materialIndex | The material index on the object. (0 to 15) | +| &modelid | A variable in which to store the model ID, passed by reference. | +| textureLibrary[] | An array into which to store the [texture library](https://models.open.mp/?cat=textures) name, passed by reference. | +| textureLibrarySize | The size of the array for the texture library name. | +| textureName[] | An array into which to store the [texture](https://models.open.mp/?cat=textures) name, passed by reference. | +| textureNameSize | The size of the array for the texture name. | +| &materialColour | A variable in which to store the materialColour, passed by reference. | ## Returns diff --git a/frontend/docs/scripting/functions/GetPlayerObjectMaterial.md b/frontend/docs/scripting/functions/GetPlayerObjectMaterial.md index b004732c311..f034bca2961 100644 --- a/frontend/docs/scripting/functions/GetPlayerObjectMaterial.md +++ b/frontend/docs/scripting/functions/GetPlayerObjectMaterial.md @@ -11,17 +11,17 @@ tags: ["player", "object", "playerobject"] Get the material data from an index of the player-object. -| Name | Description | -| ------------------ | ----------------------------------------------------------------------------------------------------------- | -| playerid | The ID of the player. | -| objectid | The ID of the player-object. | -| materialIndex | The material index on the object. (0 to 15) | -| &modelid | A variable in which to store the model ID, passed by reference. | -| textureLibrary[] | An array into which to store the texture library name, passed by reference. | -| textureLibrarySize | The size of the array for the texture library name. | -| textureName[] | An array into which to store the [texture](https://models.open.mp/?cat=textures) name, passed by reference. | -| textureNameSize | The size of the array for the texture name. | -| &materialColour | A variable in which to store the materialColour, passed by reference. | +| Name | Description | +| ------------------ | ------------------------------------------------------------------------------------------------------------------- | +| playerid | The ID of the player. | +| objectid | The ID of the player-object. | +| materialIndex | The material index on the object. (0 to 15) | +| &modelid | A variable in which to store the model ID, passed by reference. | +| textureLibrary[] | An array into which to store the [texture library](https://models.open.mp/?cat=textures) name, passed by reference. | +| textureLibrarySize | The size of the array for the texture library name. | +| textureName[] | An array into which to store the [texture](https://models.open.mp/?cat=textures) name, passed by reference. | +| textureNameSize | The size of the array for the texture name. | +| &materialColour | A variable in which to store the materialColour, passed by reference. | ## Returns diff --git a/frontend/docs/scripting/functions/NPC_AddPointToPath.md b/frontend/docs/scripting/functions/NPC_AddPointToPath.md index 6965793bdd5..c1c641e74a9 100644 --- a/frontend/docs/scripting/functions/NPC_AddPointToPath.md +++ b/frontend/docs/scripting/functions/NPC_AddPointToPath.md @@ -11,13 +11,13 @@ tags: ["npc", "path"] Adds a waypoint to an NPC path. -| Name | Description | -| --------- | ------------------------------------------------------- | -| pathid | The ID of the path to add the point to | -| x | The X coordinate of the waypoint | -| y | The Y coordinate of the waypoint | -| z | The Z coordinate of the waypoint | -| stopRange | The distance from point at which to consider it reached | +| Name | Description | +| --------------- | ------------------------------------------------------- | +| pathid | The ID of the path to add the point to | +| Float:x | The X coordinate of the waypoint | +| Float:y | The Y coordinate of the waypoint | +| Float:z | The Z coordinate of the waypoint | +| Float:stopRange | The distance from point at which to consider it reached | ## Returns diff --git a/frontend/docs/scripting/functions/NPC_AimAtPlayer.md b/frontend/docs/scripting/functions/NPC_AimAtPlayer.md index 6b3882c4911..2f6bfbe20ca 100644 --- a/frontend/docs/scripting/functions/NPC_AimAtPlayer.md +++ b/frontend/docs/scripting/functions/NPC_AimAtPlayer.md @@ -15,15 +15,15 @@ Makes an NPC aim at a player. | ------------------- | --------------------------------------------- | | npcid | The ID of the NPC | | playerid | The ID of the player to aim at | -| shoot | Whether to shoot while aiming | +| bool:shoot | Whether to shoot while aiming | | shootDelay | Delay between shots in milliseconds | -| updateAngle | Whether to update the NPC's facing angle | -| offsetX | The X offset from the target's position | -| offsetY | The Y offset from the target's position | -| offsetZ | The Z offset from the target's position | -| offsetFromX | The X offset from the NPC's shooting position | -| offsetFromY | The Y offset from the NPC's shooting position | -| offsetFromZ | The Z offset from the NPC's shooting position | +| bool:updateAngle | Whether to update the NPC's facing angle | +| Float:offsetX | The X offset from the target's position | +| Float:offsetY | The Y offset from the target's position | +| Float:offsetZ | The Z offset from the target's position | +| Float:offsetFromX | The X offset from the NPC's shooting position | +| Float:offsetFromY | The Y offset from the NPC's shooting position | +| Float:offsetFromZ | The Z offset from the NPC's shooting position | | checkInBetweenFlags | Entity check flags for collision detection | ## Returns diff --git a/frontend/docs/scripting/functions/NPC_ApplyAnimation.md b/frontend/docs/scripting/functions/NPC_ApplyAnimation.md index a9e02202ab7..57aeaebf12c 100644 --- a/frontend/docs/scripting/functions/NPC_ApplyAnimation.md +++ b/frontend/docs/scripting/functions/NPC_ApplyAnimation.md @@ -11,17 +11,17 @@ tags: ["npc", "animation"] Applies a specific animation to an NPC using animation library and name. -| Name | Description | -| ---------- | ------------------------------------------ | -| npcid | The ID of the NPC | -| animlib[] | The animation library name | -| animname[] | The animation name within the library | -| delta | The speed of the animation (typically 4.1) | -| loop | Whether the animation should loop | -| lockX | Lock movement on the X axis | -| lockY | Lock movement on the Y axis | -| freeze | Freeze the NPC at the end of animation | -| time | Time in milliseconds to play the animation | +| Name | Description | +| ----------- | ------------------------------------------ | +| npcid | The ID of the NPC | +| animlib[] | The animation library name | +| animname[] | The animation name within the library | +| Float:delta | The speed of the animation (typically 4.1) | +| bool:loop | Whether the animation should loop | +| bool:lockX | Lock movement on the X axis | +| bool:lockY | Lock movement on the Y axis | +| bool:freeze | Freeze the NPC at the end of animation | +| time | Time in milliseconds to play the animation | ## Returns diff --git a/frontend/docs/scripting/functions/NPC_Destroy.md b/frontend/docs/scripting/functions/NPC_Destroy.md index 7913687fbcc..3c535279544 100644 --- a/frontend/docs/scripting/functions/NPC_Destroy.md +++ b/frontend/docs/scripting/functions/NPC_Destroy.md @@ -54,7 +54,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- This will remove the NPC from the server completely and the ID becomes invalid after destruction. +This will remove the NPC from the server completely and the ID becomes invalid after destruction. ::: diff --git a/frontend/docs/scripting/functions/NPC_GetAnimation.md b/frontend/docs/scripting/functions/NPC_GetAnimation.md index 6591ab60d54..7eaece50ea1 100644 --- a/frontend/docs/scripting/functions/NPC_GetAnimation.md +++ b/frontend/docs/scripting/functions/NPC_GetAnimation.md @@ -15,11 +15,11 @@ Gets the current animation data of an NPC. | ------------ | ----------------------------------------- | | npcid | The ID of the NPC | | &animationId | Variable to store the animation ID | -| &delta | Variable to store the animation speed | -| &loop | Variable to store whether animation loops | -| &lockX | Variable to store X-axis lock state | -| &lockY | Variable to store Y-axis lock state | -| &freeze | Variable to store freeze state at end | +| &Float:delta | Variable to store the animation speed | +| &bool:loop | Variable to store whether animation loops | +| &bool:lockX | Variable to store X-axis lock state | +| &bool:lockY | Variable to store Y-axis lock state | +| &bool:freeze | Variable to store freeze state at end | | &time | Variable to store animation time | ## Returns diff --git a/frontend/docs/scripting/functions/NPC_GetNodePointPosition.md b/frontend/docs/scripting/functions/NPC_GetNodePointPosition.md index 6bcc85433bc..42b0c3f2545 100644 --- a/frontend/docs/scripting/functions/NPC_GetNodePointPosition.md +++ b/frontend/docs/scripting/functions/NPC_GetNodePointPosition.md @@ -11,12 +11,12 @@ tags: ["npc", "node", "navigation", "position"] Gets the position of the current point in an NPC node. -| Name | Description | -| ------ | ---------------------------------- | -| nodeid | The ID of the node | -| &x | Variable to store the X coordinate | -| &y | Variable to store the Y coordinate | -| &z | Variable to store the Z coordinate | +| Name | Description | +| -------- | ---------------------------------- | +| nodeid | The ID of the node | +| &Float:x | Variable to store the X coordinate | +| &Float:y | Variable to store the Y coordinate | +| &Float:z | Variable to store the Z coordinate | ## Returns diff --git a/frontend/docs/scripting/functions/NPC_GetPathPoint.md b/frontend/docs/scripting/functions/NPC_GetPathPoint.md index bee729b7a17..fcd611af23d 100644 --- a/frontend/docs/scripting/functions/NPC_GetPathPoint.md +++ b/frontend/docs/scripting/functions/NPC_GetPathPoint.md @@ -11,14 +11,14 @@ tags: ["npc", "path"] Gets the coordinates and stop range of a specific point in an NPC path. -| Name | Description | -| ----------- | ---------------------------------------- | -| pathid | The ID of the path | -| point_index | The index of the point (starting from 0) | -| &x | Variable to store the X coordinate | -| &y | Variable to store the Y coordinate | -| &z | Variable to store the Z coordinate | -| &stopRange | Variable to store the stop range | +| Name | Description | +| ---------------- | ---------------------------------------- | +| pathid | The ID of the path | +| point_index | The index of the point (starting from 0) | +| &Float:x | Variable to store the X coordinate | +| &Float:y | Variable to store the Y coordinate | +| &Float:z | Variable to store the Z coordinate | +| &Float:stopRange | Variable to store the stop range | ## Returns diff --git a/frontend/docs/scripting/functions/NPC_GetPos.md b/frontend/docs/scripting/functions/NPC_GetPos.md index d433f956e23..af2453f1120 100644 --- a/frontend/docs/scripting/functions/NPC_GetPos.md +++ b/frontend/docs/scripting/functions/NPC_GetPos.md @@ -50,7 +50,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- All coordinate parameters are passed by reference and will be modified. +All coordinate parameters are passed by reference and will be modified. ::: diff --git a/frontend/docs/scripting/functions/NPC_GetSurfingOffsets.md b/frontend/docs/scripting/functions/NPC_GetSurfingOffsets.md index 8f507e75388..9fc8654d106 100644 --- a/frontend/docs/scripting/functions/NPC_GetSurfingOffsets.md +++ b/frontend/docs/scripting/functions/NPC_GetSurfingOffsets.md @@ -11,12 +11,12 @@ tags: ["npc", "surfing"] Gets the surfing offset for an NPC. -| Name | Description | -| ----- | ----------------------------------------------------- | -| npcid | The ID of the NPC | -| &x | A variable to store the X offset, passed by reference | -| &y | A variable to store the Y offset, passed by reference | -| &z | A variable to store the Z offset, passed by reference | +| Name | Description | +| -------- | ----------------------------------------------------- | +| npcid | The ID of the NPC | +| &Float:x | A variable to store the X offset, passed by reference | +| &Float:y | A variable to store the Y offset, passed by reference | +| &Float:z | A variable to store the Z offset, passed by reference | ## Returns diff --git a/frontend/docs/scripting/functions/NPC_GetVelocity.md b/frontend/docs/scripting/functions/NPC_GetVelocity.md index 67fc3626c29..6b1a18a5066 100644 --- a/frontend/docs/scripting/functions/NPC_GetVelocity.md +++ b/frontend/docs/scripting/functions/NPC_GetVelocity.md @@ -50,7 +50,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- All velocity parameters are passed by reference and will be modified +All velocity parameters are passed by reference and will be modified ::: diff --git a/frontend/docs/scripting/functions/NPC_HasPathPointInRange.md b/frontend/docs/scripting/functions/NPC_HasPathPointInRange.md index 652b845e14b..1b9df3378aa 100644 --- a/frontend/docs/scripting/functions/NPC_HasPathPointInRange.md +++ b/frontend/docs/scripting/functions/NPC_HasPathPointInRange.md @@ -11,13 +11,13 @@ tags: ["npc", "path"] Checks if a path has any point within the specified range from given coordinates. -| Name | Description | -| ------ | ------------------------------------------ | -| pathId | The ID of the path to check | -| x | The X coordinate of the center position | -| y | The Y coordinate of the center position | -| z | The Z coordinate of the center position | -| radius | The radius to check for path points within | +| Name | Description | +| ------------ | ------------------------------------------ | +| pathId | The ID of the path to check | +| Float:x | The X coordinate of the center position | +| Float:y | The Y coordinate of the center position | +| Float:z | The Z coordinate of the center position | +| Float:radius | The radius to check for path points within | ## Returns diff --git a/frontend/docs/scripting/functions/NPC_MoveByPath.md b/frontend/docs/scripting/functions/NPC_MoveByPath.md index 8c7e986f3b8..9636658b055 100644 --- a/frontend/docs/scripting/functions/NPC_MoveByPath.md +++ b/frontend/docs/scripting/functions/NPC_MoveByPath.md @@ -11,13 +11,13 @@ tags: ["npc", "movement", "path"] Makes an NPC follow a predefined path with various movement options. -| Name | Description | -| --------- | -------------------------------------------------- | -| npcid | The ID of the NPC | -| pathid | The ID of the path to follow | -| moveType | The movement type (default: NPC_MOVE_TYPE_JOG) | -| moveSpeed | Movement speed (default: NPC_MOVE_SPEED_AUTO) | -| reversed | Whether to follow path in reverse (default: false) | +| Name | Description | +| --------------- | -------------------------------------------------- | +| npcid | The ID of the NPC | +| pathid | The ID of the path to follow | +| moveType | The movement type (default: NPC_MOVE_TYPE_JOG) | +| Float:moveSpeed | Movement speed (default: NPC_MOVE_SPEED_AUTO) | +| bool:reversed | Whether to follow path in reverse (default: false) | ## Returns diff --git a/frontend/docs/scripting/functions/NPC_SetAnimation.md b/frontend/docs/scripting/functions/NPC_SetAnimation.md index 4245bd1c965..cfd48ccb1dd 100644 --- a/frontend/docs/scripting/functions/NPC_SetAnimation.md +++ b/frontend/docs/scripting/functions/NPC_SetAnimation.md @@ -15,11 +15,11 @@ Sets an animation for an NPC using animation ID. | ----------- | ------------------------------------------------- | | npcid | The ID of the NPC | | animationid | The animation ID to set | -| delta | Animation speed (typically 4.1) | -| loop | Whether the animation should loop | -| lockX | Lock movement on X axis during animation | -| lockY | Lock movement on Y axis during animation | -| freeze | Freeze the NPC after animation | +| Float:delta | Animation speed (typically 4.1) | +| bool:loop | Whether the animation should loop | +| bool:lockX | Lock movement on X axis during animation | +| bool:lockY | Lock movement on Y axis during animation | +| bool:freeze | Freeze the NPC after animation | | time | Animation duration in milliseconds (0 = infinite) | ## Returns diff --git a/frontend/docs/scripting/functions/NPC_SetArmour.md b/frontend/docs/scripting/functions/NPC_SetArmour.md index d4b27325cff..f12c25547ac 100644 --- a/frontend/docs/scripting/functions/NPC_SetArmour.md +++ b/frontend/docs/scripting/functions/NPC_SetArmour.md @@ -11,10 +11,10 @@ tags: ["npc", "armour", "health"] Sets an NPC's armour level. -| Name | Description | -| ------ | ----------------------------- | -| npcid | The ID of the NPC | -| armour | The armour amount (0.0-100.0) | +| Name | Description | +| ------------ | ----------------------------- | +| npcid | The ID of the NPC | +| Float:armour | The armour amount (0.0-100.0) | ## Returns diff --git a/frontend/docs/scripting/functions/NPC_SetHealth.md b/frontend/docs/scripting/functions/NPC_SetHealth.md index 0cf3cd04d42..cf5803ee813 100644 --- a/frontend/docs/scripting/functions/NPC_SetHealth.md +++ b/frontend/docs/scripting/functions/NPC_SetHealth.md @@ -11,10 +11,10 @@ tags: ["npc", "health"] Sets the health value of an NPC. -| Name | Description | -| ------ | ----------------------- | -| npcid | The ID of the NPC | -| health | The health value to set | +| Name | Description | +| ------------ | ----------------------- | +| npcid | The ID of the NPC | +| Float:health | The health value to set | ## Returns diff --git a/frontend/docs/scripting/functions/NPC_SetSurfingOffsets.md b/frontend/docs/scripting/functions/NPC_SetSurfingOffsets.md index e23caf98649..2a56e9095e4 100644 --- a/frontend/docs/scripting/functions/NPC_SetSurfingOffsets.md +++ b/frontend/docs/scripting/functions/NPC_SetSurfingOffsets.md @@ -11,12 +11,12 @@ tags: ["npc", "surfing"] Sets the surfing offset for an NPC. -| Name | Description | -| ----- | ----------------- | -| npcid | The ID of the NPC | -| x | The X offset | -| y | The Y offset | -| z | The Z offset | +| Name | Description | +| ------- | ----------------- | +| npcid | The ID of the NPC | +| Float:x | The X offset | +| Float:y | The Y offset | +| Float:z | The Z offset | ## Returns diff --git a/frontend/docs/scripting/functions/NPC_SetVehicleHealth.md b/frontend/docs/scripting/functions/NPC_SetVehicleHealth.md index 3a6fd17cbbc..dd3b90e0a44 100644 --- a/frontend/docs/scripting/functions/NPC_SetVehicleHealth.md +++ b/frontend/docs/scripting/functions/NPC_SetVehicleHealth.md @@ -11,10 +11,10 @@ tags: ["npc", "vehicle", "health"] Sets the health of an NPC's vehicle. -| Name | Description | -| ------ | ----------------------------- | -| npcid | The ID of the NPC | -| health | The health value (0.0-1000.0) | +| Name | Description | +| ------------ | ----------------------------- | +| npcid | The ID of the NPC | +| Float:health | The health value (0.0-1000.0) | ## Returns diff --git a/frontend/docs/scripting/functions/NPC_SetVehicleTrainSpeed.md b/frontend/docs/scripting/functions/NPC_SetVehicleTrainSpeed.md index d829de97aae..4d4d97dd29f 100644 --- a/frontend/docs/scripting/functions/NPC_SetVehicleTrainSpeed.md +++ b/frontend/docs/scripting/functions/NPC_SetVehicleTrainSpeed.md @@ -11,10 +11,10 @@ tags: ["npc", "vehicle", "train", "speed"] Sets the speed of an NPC's train vehicle. -| Name | Description | -| ----- | ---------------------- | -| npcid | The ID of the NPC | -| speed | The train speed to set | +| Name | Description | +| ----------- | ---------------------- | +| npcid | The ID of the NPC | +| Float:speed | The train speed to set | ## Returns diff --git a/frontend/docs/scripting/functions/NPC_SetWeaponAccuracy.md b/frontend/docs/scripting/functions/NPC_SetWeaponAccuracy.md index 9410ea6698b..24571fb46df 100644 --- a/frontend/docs/scripting/functions/NPC_SetWeaponAccuracy.md +++ b/frontend/docs/scripting/functions/NPC_SetWeaponAccuracy.md @@ -11,11 +11,11 @@ tags: ["npc", "weapon", "accuracy"] Sets the accuracy of a specific weapon for an NPC. -| Name | Description | -| -------- | --------------------------------- | -| npcid | The ID of the NPC | -| weaponid | The weapon ID to set accuracy for | -| accuracy | The accuracy value (0.0 to 1.0) | +| Name | Description | +| -------------- | --------------------------------- | +| npcid | The ID of the NPC | +| weaponid | The weapon ID to set accuracy for | +| Float:accuracy | The accuracy value (0.0 to 1.0) | ## Returns diff --git a/frontend/docs/scripting/functions/NPC_Shoot.md b/frontend/docs/scripting/functions/NPC_Shoot.md index 1aacf413605..ee90edb980a 100644 --- a/frontend/docs/scripting/functions/NPC_Shoot.md +++ b/frontend/docs/scripting/functions/NPC_Shoot.md @@ -17,13 +17,13 @@ Makes an NPC fire a weapon shot. | weapon | The weapon ID to use for shooting | | hitId | The ID of the target entity being shot | | hitType | The type of entity being hit (player, NPC, vehicle, etc.) | -| endPointX | X coordinate of the bullet end point | -| endPointY | Y coordinate of the bullet end point | -| endPointZ | Z coordinate of the bullet end point | -| offsetX | X offset from the hit point | -| offsetY | Y offset from the hit point | -| offsetZ | Z offset from the hit point | -| isHit | Whether the shot actually hits the target | +| Float:endPointX | X coordinate of the bullet end point | +| Float:endPointY | Y coordinate of the bullet end point | +| Float:endPointZ | Z coordinate of the bullet end point | +| Float:offsetX | X offset from the hit point | +| Float:offsetY | Y offset from the hit point | +| Float:offsetZ | Z offset from the hit point | +| bool:isHit | Whether the shot actually hits the target | | checkInBetweenFlags | Entity check flags (default: NPC_ENTITY_CHECK_ALL) | ## Returns diff --git a/frontend/docs/scripting/functions/NPC_Spawn.md b/frontend/docs/scripting/functions/NPC_Spawn.md index 9fdf4a4c0bf..bafa694bc7b 100644 --- a/frontend/docs/scripting/functions/NPC_Spawn.md +++ b/frontend/docs/scripting/functions/NPC_Spawn.md @@ -57,7 +57,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- The NPC must be created with [NPC_Create](NPC_Create) before spawning. +The NPC must be created with [NPC_Create](NPC_Create) before spawning. ::: diff --git a/frontend/docs/scripting/functions/NPC_StartPlayback.md b/frontend/docs/scripting/functions/NPC_StartPlayback.md index 51fe0cd5e8f..db016531cc8 100644 --- a/frontend/docs/scripting/functions/NPC_StartPlayback.md +++ b/frontend/docs/scripting/functions/NPC_StartPlayback.md @@ -11,17 +11,17 @@ tags: ["npc", "recording", "playback"] Starts playing a recording file for an NPC by filename. -| Name | Description | -| ------------ | --------------------------------------------- | -| npcid | The ID of the NPC | -| recordName[] | The filename of the recording to play | -| autoUnload | Whether to unload the recording when finished | -| startX | Starting X coordinate | -| startY | Starting Y coordinate | -| startZ | Starting Z coordinate | -| rotX | Starting X rotation | -| rotY | Starting Y rotation | -| rotZ | Starting Z rotation | +| Name | Description | +| --------------- | --------------------------------------------- | +| npcid | The ID of the NPC | +| recordName[] | The filename of the recording to play | +| bool:autoUnload | Whether to unload the recording when finished | +| Float:startX | Starting X coordinate | +| Float:startY | Starting Y coordinate | +| Float:startZ | Starting Z coordinate | +| Float:rotX | Starting X rotation | +| Float:rotY | Starting Y rotation | +| Float:rotZ | Starting Z rotation | ## Returns diff --git a/frontend/docs/scripting/functions/NPC_StartPlaybackEx.md b/frontend/docs/scripting/functions/NPC_StartPlaybackEx.md index bd2560b8512..86a1c209107 100644 --- a/frontend/docs/scripting/functions/NPC_StartPlaybackEx.md +++ b/frontend/docs/scripting/functions/NPC_StartPlaybackEx.md @@ -11,17 +11,17 @@ tags: ["npc", "playback", "recording"] Starts playback for an NPC using a pre-loaded recording ID with extended options. -| Name | Description | -| ---------- | ---------------------------------------------- | -| npcid | The ID of the NPC | -| recordId | The pre-loaded recording ID | -| autoUnload | Whether to automatically unload after playback | -| startX | X offset from recording position | -| startY | Y offset from recording position | -| startZ | Z offset from recording position | -| rotX | X rotation offset | -| rotY | Y rotation offset | -| rotZ | Z rotation offset | +| Name | Description | +| --------------- | ---------------------------------------------- | +| npcid | The ID of the NPC | +| recordId | The pre-loaded recording ID | +| bool:autoUnload | Whether to automatically unload after playback | +| Float:startX | X offset from recording position | +| Float:startY | Y offset from recording position | +| Float:startZ | Z offset from recording position | +| Float:rotX | X rotation offset | +| Float:rotY | Y rotation offset | +| Float:rotZ | Z rotation offset | ## Returns diff --git a/frontend/docs/scripting/functions/SetObjectMaterial.md b/frontend/docs/scripting/functions/SetObjectMaterial.md index 013c8f11c60..411f6ec429f 100644 --- a/frontend/docs/scripting/functions/SetObjectMaterial.md +++ b/frontend/docs/scripting/functions/SetObjectMaterial.md @@ -14,7 +14,7 @@ Replace the texture of an object with the texture from another model in the game | objectid | The ID of the object to change the texture of | | materialIndex | The material index on the object to change (0 to 15) | | modelid | The modelid on which the replacement texture is located. Use 0 for alpha. Use -1 to change the material color without altering the texture. | -| const textureLibrary[] | The name of the txd file which contains the replacement texture (use "none" if not required) | +| const textureLibrary[] | The name of the [txd file](https://models.open.mp/?cat=textures) which contains the replacement texture (use "none" if not required) | | const textureName[] | The name of the [texture](https://models.open.mp/?cat=textures) to use as the replacement (use "none" if not required) | | materialColour | The object color to set, as an integer or hex in **ARGB** color format. Using **0** keeps the existing material color. | diff --git a/frontend/docs/scripting/functions/SetObjectsDefaultCameraCol.md b/frontend/docs/scripting/functions/SetObjectsDefaultCameraCol.md index 8cd02ec6e20..0dfcc290c50 100644 --- a/frontend/docs/scripting/functions/SetObjectsDefaultCameraCol.md +++ b/frontend/docs/scripting/functions/SetObjectsDefaultCameraCol.md @@ -17,9 +17,9 @@ Allows camera collisions with newly created objects to be disabled by default. ## Returns -Note +**true** - The function was executed successfully. -This function only affects the camera collision of objects created AFTER its use - it does not toggle existing objects' camera collisions. +**false** - The function failed to execute. ## Examples diff --git a/frontend/docs/scripting/functions/SetObjectsDefaultCameraCollision.md b/frontend/docs/scripting/functions/SetObjectsDefaultCameraCollision.md index df8d34566a9..7f4322fadad 100644 --- a/frontend/docs/scripting/functions/SetObjectsDefaultCameraCollision.md +++ b/frontend/docs/scripting/functions/SetObjectsDefaultCameraCollision.md @@ -17,9 +17,9 @@ Allows camera collisions with newly created objects to be disabled by default. ## Returns -Note +**true** - The function was executed successfully. -This function only affects the camera collision of objects created AFTER its use - it does not toggle existing objects' camera collisions. +**false** - The function failed to execute. ## Examples diff --git a/frontend/docs/scripting/functions/SetPlayerHealth.md b/frontend/docs/scripting/functions/SetPlayerHealth.md index 96955180748..fd270046521 100644 --- a/frontend/docs/scripting/functions/SetPlayerHealth.md +++ b/frontend/docs/scripting/functions/SetPlayerHealth.md @@ -46,7 +46,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - If a player's health is set to 0.0 or a minus value, they will die instantly. -- If a player's health is below 10.0 or above 98303.0, their health bar will flash. +- If a player's health is below 10.0 or above 32768.0, their health bar will flash. ::: diff --git a/frontend/docs/scripting/functions/SetPlayerObjectMaterial.md b/frontend/docs/scripting/functions/SetPlayerObjectMaterial.md index 10aaedaec66..8d01d8ff071 100644 --- a/frontend/docs/scripting/functions/SetPlayerObjectMaterial.md +++ b/frontend/docs/scripting/functions/SetPlayerObjectMaterial.md @@ -15,7 +15,7 @@ Replace the texture of a player-object with the texture from another model in th | objectid | The ID of the object to replace the texture of | | materialIndex | The material index on the object to change (0 to 15) | | modelid | The modelid on which replacement texture is located. Use 0 for alpha. Use -1 to change the material color without altering the existing texture. | -| const textureLibrary[] | The name of the txd file which contains the replacement texture (use "none" if not required) | +| const textureLibrary[] | The name of the [txd file](https://models.open.mp/?cat=textures) which contains the replacement texture (use "none" if not required) | | const textureName[] | The name of the [texture](https://models.open.mp/?cat=textures) to use as the replacement (use "none" if not required) | | materialColour | The object color to set, as an integer or hex in **ARGB format**. Using **0** keeps the existing material color. | diff --git a/frontend/docs/scripting/functions/SetPlayerWeather.md b/frontend/docs/scripting/functions/SetPlayerWeather.md index eb9b8a09380..5796b6d2756 100644 --- a/frontend/docs/scripting/functions/SetPlayerWeather.md +++ b/frontend/docs/scripting/functions/SetPlayerWeather.md @@ -37,7 +37,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - If [TogglePlayerClock](TogglePlayerClock) is enabled, weather will slowly change over time, instead of changing instantly. -- There are only valid 21 weather IDs in the game (0 - 20), however the game does not have any form of range check. +- There are only valid 23 weather IDs in the game (0 - 22), however the game does not have any form of range check. ::: diff --git a/frontend/docs/scripting/functions/SetVehiclePos.md b/frontend/docs/scripting/functions/SetVehiclePos.md index 8a11d04c4b5..a61c258b279 100644 --- a/frontend/docs/scripting/functions/SetVehiclePos.md +++ b/frontend/docs/scripting/functions/SetVehiclePos.md @@ -34,9 +34,7 @@ SetVehiclePos(vehicleid, 0.0, 0.0, 3.0); :::warning -**Known Bug(s):** - -- An empty vehicle will not fall after being teleported into the air! +**Known Bug(s):** An empty vehicle will not fall after being teleported into the air! ::: diff --git a/frontend/docs/scripting/functions/SetWeather.md b/frontend/docs/scripting/functions/SetWeather.md index 6cd6f04ebb7..18549d8a17b 100644 --- a/frontend/docs/scripting/functions/SetWeather.md +++ b/frontend/docs/scripting/functions/SetWeather.md @@ -36,7 +36,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - If [TogglePlayerClock](TogglePlayerClock) is enabled, weather will slowly change over time, instead of changing instantly. -- There are only valid 21 weather IDs in the game (0 - 20), however the game does not have any form of range check. +- There are only valid 23 weather IDs in the game (0 - 22), however the game does not have any form of range check. ::: diff --git a/frontend/docs/scripting/functions/SpawnPlayer.md b/frontend/docs/scripting/functions/SpawnPlayer.md index 440143d25bf..79db13b14d2 100644 --- a/frontend/docs/scripting/functions/SpawnPlayer.md +++ b/frontend/docs/scripting/functions/SpawnPlayer.md @@ -37,9 +37,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -**Known Bug(s):** - -- Kills the player if they are in a vehicle and then they spawn with a bottle in their hand. (Fixed in open.mp) +**Known Bug(s):** Kills the player if they are in a vehicle and then they spawn with a bottle in their hand. (Fixed in open.mp) ::: diff --git a/frontend/docs/scripting/functions/deleteproperty.md b/frontend/docs/scripting/functions/deleteproperty.md index 756b93d8ad7..58262bddb7e 100644 --- a/frontend/docs/scripting/functions/deleteproperty.md +++ b/frontend/docs/scripting/functions/deleteproperty.md @@ -29,7 +29,7 @@ deleteproperty(0, "", 123984334); :::tip -It is recommended to use the PVars/SVars or GVar plugin instead of these natives for being very slow. +It is recommended to use the [PVars](../../tutorials/perplayervariablesystem)/[SVars](../../tutorials/servervariablesystem) or [GVar plugin](https://github.com/samp-incognito/samp-gvar-plugin) instead of these natives for being very slow. ::: diff --git a/frontend/docs/scripting/functions/existproperty.md b/frontend/docs/scripting/functions/existproperty.md index bcbd7f702df..f6a639b9cf1 100644 --- a/frontend/docs/scripting/functions/existproperty.md +++ b/frontend/docs/scripting/functions/existproperty.md @@ -32,7 +32,7 @@ if (existproperty(0, "", 123984334)) :::tip -It is recommended to use the PVars/SVars or GVar plugin instead of these natives for being very slow. +It is recommended to use the [PVars](../../tutorials/perplayervariablesystem)/[SVars](../../tutorials/servervariablesystem) or [GVar plugin](https://github.com/samp-incognito/samp-gvar-plugin) instead of these natives for being very slow. ::: diff --git a/frontend/docs/scripting/functions/getproperty.md b/frontend/docs/scripting/functions/getproperty.md index 7faf23f26e9..0b613b1ab3e 100644 --- a/frontend/docs/scripting/functions/getproperty.md +++ b/frontend/docs/scripting/functions/getproperty.md @@ -36,7 +36,7 @@ print(value); :::tip -It is recommended to use the PVars/SVars or GVar plugin instead of these natives for being very slow. +It is recommended to use the [PVars](../../tutorials/perplayervariablesystem)/[SVars](../../tutorials/servervariablesystem) or [GVar plugin](https://github.com/samp-incognito/samp-gvar-plugin) instead of these natives for being very slow. ::: diff --git a/frontend/docs/scripting/functions/setproperty.md b/frontend/docs/scripting/functions/setproperty.md index 08800072a9f..dbbe4f39d7b 100644 --- a/frontend/docs/scripting/functions/setproperty.md +++ b/frontend/docs/scripting/functions/setproperty.md @@ -56,7 +56,7 @@ setproperty(.value = 123984334, .string = ":)"); :::tip -It is recommended to use the PVars/SVars or GVar plugin instead of these natives for being very slow. +It is recommended to use the [PVars](../../tutorials/perplayervariablesystem)/[SVars](../../tutorials/servervariablesystem) or [GVar plugin](https://github.com/samp-incognito/samp-gvar-plugin) instead of these natives for being very slow. ::: diff --git a/frontend/docs/scripting/resources/dialogstyles.md b/frontend/docs/scripting/resources/dialogstyles.md index e1e9789b1b4..f2d39d0f008 100644 --- a/frontend/docs/scripting/resources/dialogstyles.md +++ b/frontend/docs/scripting/resources/dialogstyles.md @@ -141,7 +141,7 @@ playerid = 0, dialogid = YOUR_DIALOGID, response = 0, listitem = 1, inputtext = :::note -- Similar to **DIALOG_STYLE_INPUT**. +Similar to **DIALOG_STYLE_INPUT**. ::: @@ -183,7 +183,7 @@ playerid = 0, dialogid = YOUR_DIALOGID, response = 0, listitem = -1, inputtext = :::note -- Similar to **DIALOG_STYLE_LIST**. +Similar to **DIALOG_STYLE_LIST**. ::: @@ -228,7 +228,7 @@ playerid = 0, dialogid = YOUR_DIALOGID, response = 0, listitem = 1, inputtext = :::note -- Similar to **DIALOG_STYLE_LIST**. +Similar to **DIALOG_STYLE_LIST**. ::: diff --git a/frontend/docs/scripting/resources/glossary.md b/frontend/docs/scripting/resources/glossary.md index 0ee6cfd762d..9641257ef2c 100644 --- a/frontend/docs/scripting/resources/glossary.md +++ b/frontend/docs/scripting/resources/glossary.md @@ -7,18 +7,18 @@ tags: ["glossary"] ## Scripting -| Word | Meaning | -| ------------ | ------------------------------------------------------------------------------------------------------- | -| PAWN | The scripting language used to make SA:MP and open.mp scripts | -| Gamemode | The main script that runs on a server, 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) | +| 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](../callbacks/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 diff --git a/frontend/docs/tutorials/PluginDevelopmentGuide.md b/frontend/docs/tutorials/PluginDevelopmentGuide.md index 3da50d822b6..56c4c3ab978 100644 --- a/frontend/docs/tutorials/PluginDevelopmentGuide.md +++ b/frontend/docs/tutorials/PluginDevelopmentGuide.md @@ -17,17 +17,17 @@ With that being said there are excellent sites and forums dedicated to teaching These sites have excellent tutorials to learn from: -cprogramming.com +[cprogramming.com](https://www.cprogramming.com/) -cplusplus.com +[cplusplus.com](https://cplusplus.com/) -learncpp.com +[learncpp.com](https://www.learncpp.com/) If you get stuck on a C/++ issue you can use one of these forums to ask for assistance: -dreamincode.net +[dreamincode.net](https://web.archive.org/web/20220105235917/https://www.dreamincode.net/) (archived) -stackoverflow.com +[stackoverflow.com](https://stackoverflow.com/) ## FAQ diff --git a/frontend/docs/tutorials/stringmanipulation.md b/frontend/docs/tutorials/stringmanipulation.md index 6228630c963..abeb48ee47d 100644 --- a/frontend/docs/tutorials/stringmanipulation.md +++ b/frontend/docs/tutorials/stringmanipulation.md @@ -1128,16 +1128,14 @@ 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) | -| `~<~` | Left arrow (gray) | -| `~>~` | Right arrow (gray) | -| `]` | Displays a `*` symbol (only in text style 3, 4, and 5) | -| `~k~` | keyboard key mapping (e.g. `~k~~VEHICLE_TURRETLEFT~` and `~k~~PED_FIREWEAPON~`). Look here for a list of keys | - -keyboard key mapping (e.g. `~k~~VEHICLE_TURRETLEFT~` and `~k~~PED_FIREWEAPON~`). Look here for a list of keys +| Code | Description | +| ----- | -------------------------------------------------------------------------------------------------------------------------------------------- | +| `~u~` | Up arrow (gray) | +| `~d~` | Down arrow (gray) | +| `~<~` | Left arrow (gray) | +| `~>~` | Right arrow (gray) | +| `]` | Displays a `*` symbol (only in text style 3, 4, and 5) | +| `~k~` | keyboard key mapping (e.g. `~k~~VEHICLE_TURRETLEFT~` and `~k~~PED_FIREWEAPON~`). [Look here](../scripting/resources/keys) for a list of keys | ### Format specifier diff --git a/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md b/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md index 3bad848ad1d..19e655d8a26 100644 --- a/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md +++ b/frontend/i18n/ar/docusaurus-plugin-content-docs/current/scripting/callbacks/OnVehiclePaintjob.md @@ -50,7 +50,7 @@ public OnVehiclePaintjob(playerid, vehicleid, paintjobid) :::warning -الأخطاء المعروفة : معاينة أحد المكونات في مرآب التعديل قد يستدعي هذا الكال باك +**الأخطاء المعروفة :** معاينة أحد المكونات في مرآب التعديل قد يستدعي هذا الكال باك ::: 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 19c1f74829f..c19bc3cef1b 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 @@ -60,8 +60,8 @@ public OnPlayerUpdate(playerid) if (fHealth != GetPVarFloat(playerid, "faPlayerHealth")) { - // Zdravlje igrača se promijenilo od zadnjeg ažuriranja -> servera, pa je očito da je to stvar ažurirano. - // Dalje provjeravamo je li izgubio ili stekao zdravlje, anti-health cheat? ;) + // Zdravlje igrača se promijenilo od zadnjeg ažuriranja -> servera, pa je očito da je to stvar ažurirano + // Dalje provjeravamo je li izgubio ili stekao zdravlje if (fHealth > GetPVarFloat(playerid, "faPlayerHealth")) { diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md index c98277d66d2..0ed4b2fb119 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md @@ -14,12 +14,12 @@ Ovaj callback je pozvan kada igračev klijent ažurira/sinhronizuje poziciju voz | vehicleid | ID vozila čija je pozicija ažurirana. | | playerid | ID igrača koji je poslao sinhronizaciju ažuriranja pozicije vozila. | | passenger_seat | ID sjedišta na kojem se igrač nalazi kao putnik. 0=nije u vozilu, 1=suvozač, 2=leđa s lijeva 3=leđa s desna 4+ je za kombije i autobuse sa mnogo sjedišta. | -| new_x | Nova X kordinata vozila. | -| new_y | Nova Y kordinata vozila. | -| new_z | Nova Z kordinata vozila. | -| vel_x | Nova X brzina vozila. | -| vel_y | Nova X brzina vozila. | -| vel_z | Nova X brzina vozila. | +| Float:new_x | Nova X kordinata vozila. | +| Float:new_y | Nova Y kordinata vozila. | +| Float:new_z | Nova Z kordinata vozila. | +| Float:vel_x | Nova X brzina vozila. | +| Float:vel_y | Nova X brzina vozila. | +| Float:vel_z | Nova X brzina vozila. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md index 1a3a34f73fc..4bce11ad51c 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md @@ -15,17 +15,17 @@ Ova funkcija je dodana u SA-MP 0.3.7 i ne radi u nižim verzijama! Primijeni animaciju na aktora. -| Ime | Deskripcija | -| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| actorid | ID aktora kojem se primjenjuje animacija. | -| animlib[] | Biblioteka (library) animacije iz koje se primjenjuje animacija. | -| animname[] | Ime animacije koju hoćete primijeniti, unutar oodređene biblioteke (library-a). | -| fDelta | Brzina reprodukcije animacija (koristi 4.1). | -| loop | Ako je postavljen **1**, animacija će se ponavljati. Ako je postavljen na **0**, animacija će se reproducirati jednom. | -| lockx | Ako je postavljen **0**, aktor će se vratiti na svoeu staru x kordinatu nakon što se animacija završi (za animacije koje aktora pokreću kao npr 'walking' / 'hodanje'). **1** ga neće vratiti na staru poziciju. | -| locky | Isto kao i parametar iznad samo za Y osu. Trebalo bi se ostaviti kao i gornji. | -| freeze | Postavljanjem ovo na **1** će zalediti aktora nakon što se animacija zavšri. **0** neće. | -| time | Tajmer u milisekundama. Za animaciju koja se neprestano ponavlja je **0**. | +| Ime | Deskripcija | +| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| actorid | ID aktora kojem se primjenjuje animacija. | +| animlib[] | Biblioteka (library) animacije iz koje se primjenjuje animacija. | +| animname[] | Ime animacije koju hoćete primijeniti, unutar oodređene biblioteke (library-a). | +| Float:fDelta | Brzina reprodukcije animacija (koristi 4.1). | +| bool:loop | Ako je postavljen **1**, animacija će se ponavljati. Ako je postavljen na **0**, animacija će se reproducirati jednom. | +| bool:lockx | Ako je postavljen **0**, aktor će se vratiti na svoeu staru x kordinatu nakon što se animacija završi (za animacije koje aktora pokreću kao npr 'walking' / 'hodanje'). **1** ga neće vratiti na staru poziciju. | +| bool:locky | Isto kao i parametar iznad samo za Y osu. Trebalo bi se ostaviti kao i gornji. | +| bool:freeze | Postavljanjem ovo na **1** će zalediti aktora nakon što se animacija zavšri. **0** neće. | +| time | Tajmer u milisekundama. Za animaciju koja se neprestano ponavlja je **0**. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md index 81b1ffde000..9ba482fd17e 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md @@ -9,18 +9,18 @@ tags: ["player", "animation"] Primijeni animaciju igraču. -| Ime | Deskripcija | -| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| playerid | ID igrača kojem primijenjujete animaciju. | -| animlib[] | Biblioteka (library) animacija iz koje želite primijeniti animaciju. | -| animname[] | Ime animacije koju hoćete primijeniti, unutar oodređene biblioteke (library-a). | -| fDelta | Brzina reprodukcije animacija (koristi 4.1). | -| loop | Ako je postavljen **1**, animacija će se ponavljati. Ako je postavljen na **0**, animacija će se reproducirati jednom. | -| lockx | Ako je postavljen **0**, aktor će se vratiti na svoeu staru x kordinatu nakon što se animacija završi (za animacije koje aktora pokreću kao npr 'walking' / 'hodanje'). **1** ga neće vratiti na staru poziciju. | -| locky | Isto kao i parametar iznad samo za Y osu. Trebalo bi se ostaviti kao i gornji. | -| freeze | Postavljanjem ovo na **1** će zalediti aktora nakon što se animacija zavšri. **0** neće. | -| time | Tajmer u milisekundama. Za animaciju koja se neprestano ponavlja je **0**. | -| forcesync | Postavite na 1 da server sinkronizira animaciju sa svim ostalim igračima u streaming radijusu (opcionalno). 2 radi isto kao i 1, ali SAMO će primijeniti animaciju na reproducirane igrače, ali NE i na stvarnog igrača kojem je animacija primijenjena (korisno za npc animacije i trajne animacije kada se igrači učitavaju) | +| Ime | Deskripcija | +| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| playerid | ID igrača kojem primijenjujete animaciju. | +| animlib[] | Biblioteka (library) animacija iz koje želite primijeniti animaciju. | +| animname[] | Ime animacije koju hoćete primijeniti, unutar oodređene biblioteke (library-a). | +| Float:fDelta | Brzina reprodukcije animacija (koristi 4.1). | +| bool:loop | Ako je postavljen **1**, animacija će se ponavljati. Ako je postavljen na **0**, animacija će se reproducirati jednom. | +| bool:lockx | Ako je postavljen **0**, aktor će se vratiti na svoeu staru x kordinatu nakon što se animacija završi (za animacije koje aktora pokreću kao npr 'walking' / 'hodanje'). **1** ga neće vratiti na staru poziciju. | +| bool:locky | Isto kao i parametar iznad samo za Y osu. Trebalo bi se ostaviti kao i gornji. | +| bool:freeze | Postavljanjem ovo na **1** će zalediti aktora nakon što se animacija zavšri. **0** neće. | +| time | Tajmer u milisekundama. Za animaciju koja se neprestano ponavlja je **0**. | +| forcesync | Postavite na 1 da server sinkronizira animaciju sa svim ostalim igračima u streaming radijusu (opcionalno). 2 radi isto kao i 1, ali SAMO će primijeniti animaciju na reproducirane igrače, ali NE i na stvarnog igrača kojem je animacija primijenjena (korisno za npc animacije i trajne animacije kada se igrači učitavaju) | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md index 85ff1249ae4..55138e8e307 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md @@ -13,9 +13,9 @@ Prikvači 3D tekst label za igrača. | ------------- | ----------------------------------------------------------------------------------------------------------- | | Text3D:textid | ID 3D tekst labela kojeg želite prikvačiti. Returnovan(uzvraćen) od [Create3DTextLabel](Create3DTextLabel). | | playerid | ID igrača za kojeg želite prikvačiti label. | -| OffsetX | X kordinata igrača. | -| OffsetY | Y kordinata igrača. | -| OffsetZ | Z kordinata igrača. | +| Float:OffsetX | X kordinata igrača. | +| Float:OffsetY | Y kordinata igrača. | +| Float:OffsetZ | Z kordinata igrača. | ## Returns 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 1155860f832..14e17449ee7 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 @@ -13,9 +13,9 @@ Prikvači 3D text label za vozilo. | ------------- | ---------------------------------------------------------------- | | Text3D:textid | 3D Text Label kojeg želite prikvačiti. | | vehicleid | Vozilo na koje želite prikvačiti 3D text label. | -| OffsetX | Koordinata Offset-X vozila igrača (the vehicle is 0.0,0.0,0.0).. | -| OffsetY | Koordinata Offset-Y vozila igrača (the vehicle is 0.0,0.0,0.0).. | -| OffsetZ | Koordinata Offset-Z vozila igrača (the vehicle is 0.0,0.0,0.0).. | +| Float:OffsetX | Koordinata Offset-X vozila igrača (the vehicle is 0.0,0.0,0.0).. | +| Float:OffsetY | Koordinata Offset-Y vozila igrača (the vehicle is 0.0,0.0,0.0).. | +| Float:OffsetZ | Koordinata Offset-Z vozila igrača (the vehicle is 0.0,0.0,0.0).. | ## Returns 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 3ddf4df57d8..88a2ce0f7f1 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 @@ -15,16 +15,16 @@ Ova funkcija je dodana u SA-MP 0.3a i ne radi u nižim verzijama! Kreira 3D Text Label na određenoj lokaciji u svijetu. -| Ime | Deskripcija | -| ------------ | -------------------------------------------------------------------------- | -| text[] | Početni tekstualni niz. | -| color | Boja texta, kao cjelobrojni ili hexadcimalni u **RGBA** formatu | -| x | X-Kordinata | -| y | Y-Kordinata | -| z | Z-Kordinata | -| DrawDistance | Udaljenost od mjesta na kojem možete vidjeti 3D text Label | -| VirtualWorld | Virtualni svijet u kojem je moguće vidjeti 3d Text | -| testLOS | 0/1 Testirajte vidokrug tako da se ovaj tekst ne može vidjeti kroz objekte | +| Ime | Deskripcija | +| ------------------ | -------------------------------------------------------------------------- | +| text[] | Početni tekstualni niz. | +| color | Boja texta, kao cjelobrojni ili hexadcimalni u **RGBA** formatu | +| Float:x | X-Kordinata | +| Float:y | Y-Kordinata | +| Float:z | Z-Kordinata | +| Float:DrawDistance | Udaljenost od mjesta na kojem možete vidjeti 3D text Label | +| VirtualWorld | Virtualni svijet u kojem je moguće vidjeti 3d Text | +| bool:testLOS | 0/1 Testirajte vidokrug tako da se ovaj tekst ne može vidjeti kroz objekte | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md index 9834ffccd29..2e00f2744b2 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md @@ -15,13 +15,13 @@ Ova funkcija je dodana u SA-MP 0.3.7 i ne radi u nižim verzijama! Kreiraj statičnog aktora u svijetu. Ovi aktori su kao NPC-ovi, kakogod imaju ograničene mogućnosti. Ne zauzimaju server slotove. -| Ime | Deskripcija | -| -------- | --------------------------------------------------------------- | -| modelid | ID modela ([skin ID](../resources/skins)) kojeg će aktor imati. | -| x | X kordinata na kojoj će se kreirati aktor. | -| y | Y kordinata na kojoj će se kreirati aktor. | -| z | Z kordinata na kojoj će se kreirati aktor. | -| Rotation | Smjer gledanja (rotacija) kojeg će imati aktor. | +| Ime | Deskripcija | +| -------------- | --------------------------------------------------------------- | +| modelid | ID modela ([skin ID](../resources/skins)) kojeg će aktor imati. | +| Float:x | X kordinata na kojoj će se kreirati aktor. | +| Float:y | Y kordinata na kojoj će se kreirati aktor. | +| Float:z | Z kordinata na kojoj će se kreirati aktor. | +| Float:Rotation | Smjer gledanja (rotacija) kojeg će imati aktor. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayer3DTextLabel.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayer3DTextLabel.md index da5628ddc24..839d72f37f1 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayer3DTextLabel.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayer3DTextLabel.md @@ -9,18 +9,18 @@ tags: ["player", "3dtextlabel"] Kreira 3D Text Label samo za jednog određenog igrača. -| Ime | Deskripcija | -| --------------- | ----------------------------------------------------------------------------- | -| playerid | Igrač koji bi trebao vidjeti novokreirani 3D Text Label. | -| text[] | Tekst za prikazati. | -| color | Boja teksta. | -| x | X kordinata (ili pomak ako je priložen) | -| y | Y kordinata (ili pomak ako je priložen) | -| z | Z kordinata (ili pomak ako je priložen) | -| DrawDistance | Udaljenost od mjesta na kojem možete vidjeti 3D text label | -| attachedplayer | Igrač za kojeg žeite prikvačiti 3D text label. (Ako nema: INVALID_PLAYER_ID) | -| attachedvehicle | Vozilo za koje žeite prikvačiti 3D text label. (Ako nema: INVALID_VEHICLE_ID) | -| testLOS | 0/1 Testirajte vidokrug tako da se ovaj tekst ne može vidjeti kroz objekte | +| Ime | Deskripcija | +| ------------------ | ----------------------------------------------------------------------------- | +| playerid | Igrač koji bi trebao vidjeti novokreirani 3D Text Label. | +| text[] | Tekst za prikazati. | +| color | Boja teksta. | +| Float:x | X kordinata (ili pomak ako je priložen) | +| Float:y | Y kordinata (ili pomak ako je priložen) | +| Float:z | Z kordinata (ili pomak ako je priložen) | +| Float:DrawDistance | Udaljenost od mjesta na kojem možete vidjeti 3D text label | +| attachedplayer | Igrač za kojeg žeite prikvačiti 3D text label. (Ako nema: INVALID_PLAYER_ID) | +| attachedvehicle | Vozilo za koje žeite prikvačiti 3D text label. (Ako nema: INVALID_VEHICLE_ID) | +| bool:testLOS | 0/1 Testirajte vidokrug tako da se ovaj tekst ne može vidjeti kroz objekte | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md index 413c51a8bcd..e30588d1a70 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md @@ -9,12 +9,12 @@ tags: ["gangzone"] Kreiraj gangzonu (radarsko područje u boji). -| Ime | Deskripcija | -| ---- | ---------------------------------------- | -| minx | X kordinata za zapadnu stranu gangzone. | -| miny | Y kordinata za južnu stranu gangzone. | -| maxx | X kordinata za istočnu stranu gangzone. | -| maxy | Y kordinata za sjevernu stranu gangzone. | +| Ime | Deskripcija | +| ---------- | ---------------------------------------- | +| Float:minx | X kordinata za zapadnu stranu gangzone. | +| Float:miny | Y kordinata za južnu stranu gangzone. | +| Float:maxx | X kordinata za istočnu stranu gangzone. | +| Float:maxy | Y kordinata za sjevernu stranu gangzone. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md index e7ba9baca0f..0bf6c511c51 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md @@ -11,12 +11,12 @@ tags: ["actor"] Dobij poziciju actora. -| Ime | Deskripcija | -| ------- | ----------------------------------------------------------------------------------- | -| actorid | ID actora koji će dobiti poziciju. Returnan od funkcije [CreateActor](CreateActor). | -| X | Float varijabla proslijeđena referencom u kojoj se pohranjuje X koordinata actora. | -| Y | Float varijabla proslijeđena referencom u kojoj se pohranjuje Y koordinata actora. | -| Z | Float varijabla proslijeđena referencom u kojoj se pohranjuje Z koordinata actora. | +| Ime | Deskripcija | +| -------- | ----------------------------------------------------------------------------------- | +| actorid | ID actora koji će dobiti poziciju. Returnan od funkcije [CreateActor](CreateActor). | +| &Float:X | Float varijabla proslijeđena referencom u kojoj se pohranjuje X koordinata actora. | +| &Float:Y | Float varijabla proslijeđena referencom u kojoj se pohranjuje Y koordinata actora. | +| &Float:Z | Float varijabla proslijeđena referencom u kojoj se pohranjuje Z koordinata actora. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md index 28b28265a93..e51f46e26b3 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md @@ -15,10 +15,10 @@ Ova funkcija je dodana u SA-MP 0.3.7 i ne radi u nižim verzijama! Postavi smjer gledanja aktora. -| Ime | Deskripcija | -| ------- | --------------------------------------------------------------------------------------- | -| actorid | ID aktora za postaviti smjer gledanja. Returnovan/vraćen od [CreateActor](CreateActor). | -| ang | Smjer gledanja za postaviti. | +| Ime | Deskripcija | +| --------- | --------------------------------------------------------------------------------------- | +| actorid | ID aktora za postaviti smjer gledanja. Returnovan/vraćen od [CreateActor](CreateActor). | +| Float:ang | Smjer gledanja za postaviti. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md index 954378e4ce9..22cae67415e 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md @@ -18,9 +18,9 @@ Postavi poziciju aktora. | Ime | Deskripcija | | ------- | --------------------------------------------------------------------------------- | | actorid | ID aktora za postaviti poziciju. Returnovan/vraćen od [CreateActor](CreateActor). | -| X | X kordinata za pozicionirati aktora. | -| Y | Y kordinata za pozicionirati aktora. | -| Z | Z kordinata za pozicionirati aktora. | +| Float:X | X kordinata za pozicionirati aktora. | +| Float:Y | Y kordinata za pozicionirati aktora. | +| Float:Z | Z kordinata za pozicionirati aktora. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md index 9496c6d3751..f3f7c1b1db5 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 @@ -14,7 +14,7 @@ Zamijeni teksturu objekta sa teksturom drugog modela iz igre. | objectid | ID objekta za zamijeniti teksturu. | | materialindex | Index materijala na objektu za zamijeniti (od 0 do 15) | | modelid | ID modela na kome se nalazi zamjenska tekstura. Koristite 0 za alfa. Koristite -1 za promjenu boje materijala bez mijenjanja postojeće teksture. | -| txdname | Ime txd fatoteke koja sadrži zamjensku teksturu (koristi "none" ako nije potrebno) | +| txdname | Ime [txd fatoteke](https://models.open.mp/?cat=textures) koja sadrži zamjensku teksturu (koristi "none" ako nije potrebno) | | texturename | Ime [teksture](https://models.open.mp/?cat=textures) za koristiti kao zamjensku (koristi "none" ako nije potrebno) | | materialcolor | Boja objekta za postaviti, kao cijeli broj ili hex u **ARGB** formatu. Korištenjem **0** čuva trenutnu boju materijala. | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md index 34bfd90b10c..b3700a0d99f 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md @@ -21,9 +21,9 @@ Omogućuje da se sudaranje kamere s novostvorenim objektima onemogući prema zad ## Returns -Note +**1**: Funkcija uspješno izvršena. -Ova funkcija utječe samo na sudare kamera objekata stvorenih NAKON njegove upotrebe - ne uključuje sudare kamera postojećih objekata. +**0**: Funkcija neuspješno izvršena. ## Primjeri diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCollision.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCollision.md index 367c7fabf0c..5cdca1177a5 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCollision.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCollision.md @@ -17,9 +17,9 @@ Omogućuje da se sudari kamere s novostvorenim objektima onemoguće prema zadani ## Returnovi -Zabilješka +**1**: Funkcija uspješno izvršena. -Ova funkcija utječe samo na kolizije kamere objekata stvorenih NAKON njezine upotrebe - ne mijenja kolizije kamera postojećih objekata. +**0**: Funkcija neuspješno izvršena. ## Primjeri diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarFloat.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarFloat.md index dbcbaa2dba0..945a597a9db 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarFloat.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarFloat.md @@ -9,11 +9,11 @@ tags: ["player variable", "pvar"] Postavi float vrijednost player (igračeve) varijable. -| Ime | Deskripcija | -| ----------- | ---------------------------------------------------- | -| playerid | ID igrača čija će player varijabla biti postavljena. | -| varname | Ime player varijable. | -| float_value | Float za pohraniti u player varijablu. | +| Ime | Deskripcija | +| ----------------- | ---------------------------------------------------- | +| playerid | ID igrača čija će player varijabla biti postavljena. | +| varname | Ime player varijable. | +| Float:float_value | Float za pohraniti u player varijablu. | ## Returns 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 05f721f630e..46f550a6ec9 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 @@ -15,15 +15,15 @@ Prikvači objekat na određenu kost igrača. | index | Index (slot) za dodijeliti objekat (0-9 od 0.3d, 0-4 u ranijim verzijama). | | modelid | Model kojeg želite koristiti. | | bone | [Kost](../resources/boneid) za koju želite prikvačiti objekat. | -| fOffsetX | (neobavezno) Pomak osi X za položaj objekta. | -| fOffsetY | (neobavezno) Pomak osi Y za položaj objekta. | -| fOffsetZ | (neobavezno) Pomak osi Z za položaj objekta. | -| fRotX | (neobavezno) Pomak osi X za rotaciju objekta. | -| fRotY | (neobavezno) Pomak osi Y za rotaciju objekta. | -| fRotZ | (neobavezno) Pomak osi Z za rotaciju objekta. | -| fScaleX | (optional) Pomak osi X za veličinu objekta. | -| fScaleY | (optional) Pomak osi Y za veličinu objekta. | -| fScaleZ | (optional) Pomak osi Z za veličinu objekta. | +| Float:fOffsetX | (neobavezno) Pomak osi X za položaj objekta. | +| Float:fOffsetY | (neobavezno) Pomak osi Y za položaj objekta. | +| Float:fOffsetZ | (neobavezno) Pomak osi Z za položaj objekta. | +| Float:fRotX | (neobavezno) Pomak osi X za rotaciju objekta. | +| Float:fRotY | (neobavezno) Pomak osi Y za rotaciju objekta. | +| Float:fRotZ | (neobavezno) Pomak osi Z za rotaciju objekta. | +| Float:fScaleX | (optional) Pomak osi X za veličinu objekta. | +| Float:fScaleY | (optional) Pomak osi Y za veličinu objekta. | +| Float:fScaleZ | (optional) Pomak osi Z za veličinu objekta. | | materialcolor1 | (optional) Primarna boja za postaviti objektu, kao cijeli broj ili hex u **ARGB** formatu. | | materialcolor2 | (optional) Sekundarna boja za postaviti objektu, kao cijeli broj ili hex u **ARGB** formatu. | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md index 0b4de9b806a..ea339c2dbbc 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md @@ -9,13 +9,13 @@ tags: ["player"] Kreira chat balončić iznad igračevog nametag-a. -| Ime | Deskripcija | -| ------------ | ---------------------------------------------------------- | -| playerid | Igrač koji će imati chat balončić. | -| text[] | Tekst za prikazati. | -| color | Boja teksta. | -| drawdistance | Distanca sa koje će igrači moći vidjeti chat balončić. | -| expiretime | Vrijeme u milisekundama za koje će balončić biti prikazan. | +| Ime | Deskripcija | +| ------------------ | ---------------------------------------------------------- | +| playerid | Igrač koji će imati chat balončić. | +| text[] | Tekst za prikazati. | +| color | Boja teksta. | +| Float:drawdistance | Distanca sa koje će igrači moći vidjeti chat balončić. | +| expiretime | Vrijeme u milisekundama za koje će balončić biti prikazan. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md index 7ed3f5a25e4..e561b0eb522 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md @@ -45,7 +45,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - Ako je health/zdravlje igrača postavljeno na 0 ili minus vrijednost, oni će odmah umrijeti. -- Ako je zdravstveno stanje igrača ispod 10 ili više od 98303, traka zdravlja će treptati. +- Ako je zdravstveno stanje igrača ispod 10 ili više od 32768, traka zdravlja će treptati. ::: 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 535ffaf6747..307deb9e031 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 @@ -15,7 +15,7 @@ Zamijeni teksturu player-objekta sa teksturom drugog modela u igri. | objectid | ID objekta za zamijeniti teksturu. | | materialindex | Index materijala na objektu za zamijeniti (od 0 do 15) | | modelid | ID modela na kome se nalazi zamjenska tekstura. Koristite 0 za alfa. Koristite -1 za promjenu boje materijala bez mijenjanja postojeće teksture. | -| txdname | Ime txd fatoteke koja sadrži zamjensku teksturu (koristi "none" ako nije potrebno) | +| txdname | Ime [txd fatoteke](https://models.open.mp/?cat=textures) koja sadrži zamjensku teksturu (koristi "none" ako nije potrebno) | | texturename | Ime [teksture](https://models.open.mp/?cat=textures) za koristiti kao zamjensku (koristi "none" ako nije potrebno) | | materialcolor | Boja objekta za postaviti, kao cijeli broj ili hex u **ARGB formatu**. Korištenjem **0** čuva trenutnu boju materijala. | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md index 014cc4e54e6..78dc6b9d6b4 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md @@ -37,7 +37,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - Ako je omogućen [TogglePlayerClock](TogglePlayerClock), vrijeme će se polako mijenjati s vremenom, umjesto da se promijeni trenutno. -- U igri postoje samo važeći 21 vremenski ID (0 - 20), ali igra nema bilo kakav oblik provjere dometa. +- U igri postoje samo važeći 23 vremenski ID (0 - 22), ali igra nema bilo kakav oblik provjere dometa. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetSVarFloat.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetSVarFloat.md index 33ddf26fb7c..ea40e9d4bf8 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetSVarFloat.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetSVarFloat.md @@ -15,10 +15,10 @@ Ova funkcija je dodana u SA-MP 0.3.7 R2 i ne radi u nižim verzijama! Postavi float server varijablu. -| Ime | Deskripcija | -| ----------- | --------------------- | -| varname[] | Ime server varijable. | -| float_value | Float za postaviti. | +| Ime | Deskripcija | +| ----------------- | --------------------- | +| varname[] | Ime server varijable. | +| Float:float_value | Float za postaviti. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md index b694c2182c8..e08556f1245 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md @@ -32,7 +32,7 @@ if (!strcmp(cmdtext, "/sandstorm", true)) :::note - Ako je omogućen [TogglePlayerClock](TogglePlayerClock), vrijeme će se polahko mijenjati s vremenom, umjesto da se promijeni trenutno. -- U igri postoje samo važeći 21 vremenski ID (0 - 20), ali igra nema bilo kakav oblik provjere dometa. +- U igri postoje samo važeći 23 vremenski ID (0 - 22), ali igra nema bilo kakav oblik provjere dometa. ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md index 1c127f21a8b..0a1e2ef52fc 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md @@ -29,7 +29,7 @@ deleteproperty(0, "", 123984334); :::tip -Preporučljivo je da koristite PVars/SVars ili GVar plugin umjesto ovih native-a zbog njihove brzine (spori su). +Preporučljivo je da koristite PVars/SVars ili [GVar plugin](https://github.com/samp-incognito/samp-gvar-plugin) umjesto ovih native-a zbog njihove brzine (spori su). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md index 918241c8dd2..e763ee9c9f5 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md @@ -32,7 +32,7 @@ if (existproperty(0, "", 123984334)) :::tip -Preporučljivo je da koristite PVars/SVars ili GVar plugin umjesto ovih native-a zbog njihove brzine (spori su). +Preporučljivo je da koristite PVars/SVars ili [GVar plugin](https://github.com/samp-incognito/samp-gvar-plugin) umjesto ovih native-a zbog njihove brzine (spori su). ::: diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatcmp.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatcmp.md index cc8e2c1926e..d2670253130 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatcmp.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatcmp.md @@ -9,10 +9,10 @@ tags: ["math", "floating-point"] floatcmp se može koristiti za međusobno uspoređivanje vrijednosti plutajućeg stanja, kako bi se potvrdila usporedba. -| Ime | Deskripcija | -| ----- | ------------------------------------ | -| oper1 | Prva float vrijednost za usporedbu. | -| oper2 | Druga float vrijednost za usporedbu. | +| Ime | Deskripcija | +| ----------- | ------------------------------------ | +| Float:oper1 | Prva float vrijednost za usporedbu. | +| Float:oper2 | Druga float vrijednost za usporedbu. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatfract.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatfract.md index 95568dcf32f..70db8dab42d 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatfract.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatfract.md @@ -9,9 +9,9 @@ tags: ["math", "floating-point"] Nabavite razlomljeni dio floata. To znači vrijednost brojeva nakon decimalne točke. -| Ime | Deskripcija | -| ----- | -------------------------------------- | -| value | Float za dobivanje frakcijskog dijela. | +| Ime | Deskripcija | +| ----------- | -------------------------------------- | +| Float:value | Float za dobivanje frakcijskog dijela. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatmul.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatmul.md index c9029cbeca7..c251554da46 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatmul.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatmul.md @@ -9,10 +9,10 @@ tags: ["math", "floating-point"] Množi dva floata jedni s drugima. -| Ime | Deskripcija | -| ----- | ----------------------------------- | -| oper1 | Prvi Float. | -| oper2 | Drugi Float, s kojim se prvi množi. | +| Ime | Deskripcija | +| ----------- | ----------------------------------- | +| Float:oper1 | Prvi Float. | +| Float:oper2 | Drugi Float, s kojim se prvi množi. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatpower.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatpower.md index 06da208c14d..587def3e23c 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatpower.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatpower.md @@ -9,10 +9,10 @@ tags: ["math", "floating-point"] Daje zadanu vrijednost u potenciju eksponenta. -| Ime | Deskripcija | -| -------- | --------------------------------------------------------------------------- | -| value | Vrijednost koju treba povisiti u stepen kao broj s pomičnom zarezom. | -| exponent | Eksponent je također broj s pomičnom zarezom. Može biti nula ili negativna. | +| Ime | Deskripcija | +| -------------- | --------------------------------------------------------------------------- | +| Float:value | Vrijednost koju treba povisiti u stepen kao broj s pomičnom zarezom. | +| Float:exponent | Eksponent je također broj s pomičnom zarezom. Može biti nula ili negativna. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatround.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatround.md index 48373b034de..555e7d04010 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatround.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatround.md @@ -11,7 +11,7 @@ Zaokružite broj s pomičnom zarezom na cijelu vrijednost. | Ime | Deskripcija | | ------------------------------------ | --------------------------------- | -| value | Vrijednost koju treba zaokružiti. | +| Float:value | Vrijednost koju treba zaokružiti. | | [mode](../resources/floatroundmodes) | Režim plutanja koji se koristi. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md index 479f77127f1..b03fbd56f72 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md @@ -9,9 +9,9 @@ tags: ["math", "floating-point"] Izračunava [kvadratni korijen](https://en.wikipedia.org/wiki/Square_root) zadate vrijednosti. -| Ime | Deskripcija | -| ----- | ------------------------------------------------ | -| value | Vrijednost za izračunavanje kvadratnog korijena. | +| Ime | Deskripcija | +| ----------- | ------------------------------------------------ | +| Float:value | Vrijednost za izračunavanje kvadratnog korijena. | ## Returns diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatsub.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatsub.md index c4b6345b967..70158d7aa88 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatsub.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/floatsub.md @@ -9,10 +9,10 @@ tags: ["math", "floating-point"] Oduzima jedan float od drugog. Imajte na umu da ova funkcija nema stvarnu upotrebu, jer se umesto nje može jednostavno koristiti standardni operator (-). -| Ime | Deskripcija | -| ----- | ----------------------------------------- | -| oper1 | Prvi Float. | -| oper2 | Drugi Float (oduzima se od prvog floata.) | +| Ime | Deskripcija | +| ----------- | ----------------------------------------- | +| Float:oper1 | Prvi Float. | +| Float:oper2 | Drugi Float (oduzima se od prvog floata.) | ## Returns 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 70a7fee7e47..8a13fb8e9d8 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 @@ -36,7 +36,7 @@ print(value); :::tip -Preporučljivo je da koristite PVars/SVars ili GVar plugin umjesto ovih native-a zbog njihove brzine (spori su). +Preporučljivo je da koristite PVars/SVars ili [GVar plugin](https://github.com/samp-incognito/samp-gvar-plugin) umjesto ovih native-a zbog njihove brzine (spori su). ::: 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 8b1b763a9e4..0adbacf7719 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 @@ -21,7 +21,7 @@ Returna/vraća najmanji od a i b. Ako su oba ekvivalentna, vraća se a. ## Primjeri ```pawn -//S obzirom da je b veće rezultat će biti 5. +//S obzirom da je b veće rezultat će biti 10. public OnGameModeInit() { diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md index 65814d6e6fd..a6f7d3e45cc 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md @@ -50,7 +50,7 @@ setproperty(.value = 123984334, .string = ":)"); :::tip -Preporučljivo je da koristite PVars/SVars ili GVar plugin umjesto ovih native-a zbog njihove brzine (spori su). +Preporučljivo je da koristite PVars/SVars ili [GVar plugin](https://github.com/samp-incognito/samp-gvar-plugin) umjesto ovih native-a zbog njihove brzine (spori su). ::: 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 27a47b69f0e..316781ace15 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 @@ -59,8 +59,8 @@ public OnPlayerUpdate(playerid) if (fHealth != GetPVarFloat(playerid, "faPlayerHealth")) { - // La salud del jugador cambió desde la última actualización con el servidor, así que obviamente eso es lo actualizado. - // Hagamos mas comprobaciones para ver si aumentó o disminuyó de salud, anti-health cheat? ;) + // La salud del jugador cambió desde la última actualización con el servidor, así que obviamente eso es lo actualizado + // Hagamos mas comprobaciones para ver si aumentó o disminuyó de salud if (fHealth > GetPVarFloat(playerid, "faPlayerHealth")) { 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 aaa88c313af..25e8053791f 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 @@ -13,12 +13,12 @@ Este callback se llama cuando el cliente de un jugador actualiza/sincroniza la p | vehicleid | El ID del vehículo al que se le actualizó la posición. | | playerid | El ID que envió la actualización de sincronización de la posición del vehículo. | | passenger_seat | La ID del asiento si el jugador es un pasajero. 0 = no está en el vehículo, 1 = pasajero delantero, 2 = trasero izquierdo 3 = trasero derecho 4+ es para coach / bus, etc. con muchos asientos para pasajeros. | -| new_x | La nueva coordenada X del vehículo. anterior. | -| new_y | La nueva coordenada Y del vehículo. anterior. | -| new_z | La nueva coordenada Z del vehículo. anterior. | -| vel_x | La nueva velocidad X del vehículo. anterior. | -| vel_y | La nueva velocidad Y del vehículo. anterior. | -| vel_z | La nueva velocidad Z del vehículo. anterior. | +| Float:new_x | La nueva coordenada X del vehículo. anterior. | +| Float:new_y | La nueva coordenada Y del vehículo. anterior. | +| Float:new_z | La nueva coordenada Z del vehículo. anterior. | +| Float:vel_x | La nueva velocidad X del vehículo. anterior. | +| Float:vel_y | La nueva velocidad Y del vehículo. anterior. | +| Float:vel_z | La nueva velocidad Z del vehículo. anterior. | ## Devoluciones 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 d5816c6b5eb..9a0ffc20531 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 @@ -37,7 +37,7 @@ public OnPlayerUpdate(playerid) CallLocalFunction("OnPlayerWeaponChange", "iii", playerid, gPlayerCurrentWeapon[playerid], weapon); gPlayerCurrentWeapon[playerid] = weapon; // Update the weapon variable } - return 1; // Send this update to other players. + return 1; // Send this update to other players } forward OnPlayerWeaponChange(playerid, WEAPON:oldWeapon, WEAPON:newWeapon); @@ -67,8 +67,8 @@ public OnPlayerUpdate(playerid) if (fHealth != GetPVarFloat(playerid, "faPlayerHealth")) { - // Player health has changed since the last update -> server, so obviously thats the thing updated. - // Lets do further checks see if he's lost or gained health, anti-health cheat? ;) + // Player health has changed since the last update -> server, so obviously thats the thing updated + // Lets do further checks see if he's lost or gained health if (fHealth > GetPVarFloat(playerid, "faPlayerHealth")) { diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md index a41d5336e1a..343c91ec1a2 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md @@ -16,7 +16,7 @@ tags: ["actor", "animation"] | actorid | شناسه بازیگر برای اعمال انیمیشن. | | const animationLibrary[] | کتابخانه انیمیشن که از آن انیمیشن اعمال می‌شود. | | const animationName[] | نام انیمیشن برای اعمال در کتابخانه مشخص شده. | -| float:delta | سرعت پخش انیمیشن (از 4.1 استفاده کنید). | +| Float:delta | سرعت پخش انیمیشن (از 4.1 استفاده کنید). | | bool:loop | اگر **true** باشد، انیمیشن تکرار می‌شود. اگر **false** باشد، انیمیشن یکبار پخش می‌شود. | | bool:lockX | اگر **false** باشد، بازیگر پس از تکمیل انیمیشن به مختصات X قبلی خود برمی‌گردد (برای انیمیشن‌هایی که بازیگر را حرکت می‌دهند مثل راه رفتن). **true** آنها را به موقعیت قبلی برنمی‌گرداند. | | bool:lockY | مثل بالا اما برای محور Y. باید مثل پارامتر قبلی نگه داشته شود. | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md index 7b5be370606..c324f5f3c18 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md @@ -57,9 +57,7 @@ public OnPlayerConnect(playerid) :::warning -**باگ‌های شناخته شده:** - -- پیکاپ‌هایی که X یا Y آن‌ها کمتر از 4096.0- یا بیشتر از 4096.0 باشد، نمایش داده نمی‌شوند و [OnPlayerPickUpPlayerPickup](../callbacks/OnPlayerPickUpPlayerPickup) را هم فعال نمی‌کنند. +**باگ‌های شناخته شده:** پیکاپ‌هایی که X یا Y آن‌ها کمتر از 4096.0- یا بیشتر از 4096.0 باشد، نمایش داده نمی‌شوند و [OnPlayerPickUpPlayerPickup](../callbacks/OnPlayerPickUpPlayerPickup) را هم فعال نمی‌کنند. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md index d1f85fc1eb6..fff5c3d130d 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md @@ -13,16 +13,16 @@ tags: ["object"] دریافت داده‌های متریال از یک شاخص از آبجکت. -| نام | توضیحات | -| ------------------ | ---------------------------------------------------------------------------------------------- | -| objectid | شناسه آبجکت. | -| materialIndex | شاخص متریال روی آبجکت. (0 تا 15) | -| &modelid | متغیری برای ذخیره شناسه مدل، به صورت مرجع ارسال می‌شود. | -| textureLibrary[] | آرایه‌ای برای ذخیره نام کتابخانهٔ بافت، به صورت مرجع ارسال می‌شود. | -| textureLibrarySize | اندازهٔ آرایه‌ای که نام کتابخانهٔ بافت را ذخیره می‌کند. | -| textureName[] | آرایه‌ای برای ذخیره نام [بافت](https://models.open.mp/?cat=textures)، به صورت مرجع ارسال می‌شود. | -| textureNameSize | اندازهٔ آرایه‌ای که نام بافت را ذخیره می‌کند. | -| &materialColour | متغیری برای ذخیره materialColour، به صورت مرجع ارسال می‌شود. | +| نام | توضیحات | +| ------------------ | ------------------------------------------------------------------------------------------------------- | +| objectid | شناسه آبجکت. | +| materialIndex | شاخص متریال روی آبجکت. (0 تا 15) | +| &modelid | متغیری برای ذخیره شناسه مدل، به صورت مرجع ارسال می‌شود. | +| textureLibrary[] | آرایه‌ای برای ذخیره نام [کتابخانهٔ بافت](https://models.open.mp/?cat=textures)، به صورت مرجع ارسال می‌شود. | +| textureLibrarySize | اندازهٔ آرایه‌ای که نام کتابخانهٔ بافت را ذخیره می‌کند. | +| textureName[] | آرایه‌ای برای ذخیره نام [بافت](https://models.open.mp/?cat=textures)، به صورت مرجع ارسال می‌شود. | +| textureNameSize | اندازهٔ آرایه‌ای که نام بافت را ذخیره می‌کند. | +| &materialColour | متغیری برای ذخیره materialColour، به صورت مرجع ارسال می‌شود. | ## مقادیر بازگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md index 2fdc1f05df5..e5fb585a4ef 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md @@ -11,17 +11,17 @@ tags: ["player", "object", "playerobject"] دریافت داده‌های متریال از یک index از player-object. -| نام | توضیحات | -| ------------------ | ------------------------------------------------------------------------------------------------------ | -| playerid | ID بازیکن. | -| objectid | ID player-object. | -| materialIndex | index متریال در object. (0 تا 15) | -| &modelid | متغیری برای ذخیره ID مدل، به صورت reference پاس داده می‌شود. | -| textureLibrary[] | آرایه‌ای برای ذخیره نام کتابخانهٔ بافت، به صورت reference پاس داده می‌شود. | -| textureLibrarySize | اندازهٔ آرایه‌ای که نام کتابخانهٔ بافت را ذخیره می‌کند. | -| textureName[] | آرایه‌ای برای ذخیره نام [بافت](https://models.open.mp/?cat=textures)، به صورت reference پاس داده می‌شود. | -| textureNameSize | اندازهٔ آرایه‌ای که نام بافت را ذخیره می‌کند. | -| &materialColour | متغیری برای ذخیره materialColour، به صورت reference پاس داده می‌شود. | +| نام | توضیحات | +| ------------------ | --------------------------------------------------------------------------------------------------------------- | +| playerid | ID بازیکن. | +| objectid | ID player-object. | +| materialIndex | index متریال در object. (0 تا 15) | +| &modelid | متغیری برای ذخیره ID مدل، به صورت reference پاس داده می‌شود. | +| textureLibrary[] | آرایه‌ای برای ذخیره نام [کتابخانهٔ بافت](https://models.open.mp/?cat=textures)، به صورت reference پاس داده می‌شود. | +| textureLibrarySize | اندازهٔ آرایه‌ای که نام کتابخانهٔ بافت را ذخیره می‌کند. | +| textureName[] | آرایه‌ای برای ذخیره نام [بافت](https://models.open.mp/?cat=textures)، به صورت reference پاس داده می‌شود. | +| textureNameSize | اندازهٔ آرایه‌ای که نام بافت را ذخیره می‌کند. | +| &materialColour | متغیری برای ذخیره materialColour، به صورت reference پاس داده می‌شود. | ## مقادیر برگشتی diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md index 93d59e17d9d..479f0282155 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md @@ -14,7 +14,7 @@ tags: ["object"] | objectid | شناسه آبجکتی که قرار است بافت آن تغییر کند | | materialIndex | شاخص متریال روی آبجکت برای تغییر (۰ تا ۱۵) | | modelid | شناسه مدلی که بافت جایگزین روی آن قرار دارد. از ۰ برای شفافیت استفاده کنید. از -۱ برای تغییر رنگ متریال بدون تغییر بافت استفاده کنید. | -| const textureLibrary[] | نام فایل txd که شامل بافت جایگزین است (در صورت عدم نیاز از "none" استفاده کنید) | +| const textureLibrary[] | نام [فایل txd](https://models.open.mp/?cat=textures) که شامل بافت جایگزین است (در صورت عدم نیاز از "none" استفاده کنید) | | const textureName[] | نام [بافتی](https://models.open.mp/?cat=textures) که به عنوان جایگزین استفاده می‌شود (در صورت عدم نیاز از "none" استفاده کنید) | | materialColour | رنگ آبجکت که تنظیم می‌شود، به صورت عدد صحیح یا هگزادسیمال در فرمت رنگ **ARGB**. استفاده از **۰** رنگ موجود متریال را حفظ می‌کند. | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md index bb22611b45a..a626592793e 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md @@ -17,9 +17,9 @@ tags: ["object", "camera"] ## مقدار برگشتی -توجه +**true** - تابع با موفقیت اجرا شد. -این تابع فقط روی برخورد دوربین object‌هایی که بعد از استفاده‌ازش ساخته می‌شن تأثیر می‌ذاره - برخورد دوربین object‌های موجود رو فعال/غیرفعال نمی‌کنه. +**false** - تابع در اجرا شکست خورد. ## مثال‌ها diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCollision.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCollision.md index 4b5ca22f31f..047650f2eff 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCollision.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCollision.md @@ -17,9 +17,9 @@ tags: ["object", "camera"] ## مقدار برگشتی -توجه +**true** - تابع با موفقیت اجرا شد. -این تابع فقط روی برخورد دوربین object‌هایی که بعد از استفاده‌ازش ساخته می‌شن تأثیر می‌ذاره - برخورد دوربین object‌های موجود رو فعال/غیرفعال نمی‌کنه. +**false** - تابع در اجرا شکست خورد. ## مثال‌ها diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md index 9e8ec953e32..70971a5e4a3 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md @@ -52,7 +52,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - اگه سلامتی بازیکن رو به 0.0 یا مقدار منفی تنظیم کنی، بلافاصله می‌میره. -- اگه سلامتی بازیکن کمتر از 10.0 یا بیشتر از 98303.0 باشه، نوار سلامتیش چشمک میزنه. +- اگه سلامتی بازیکن کمتر از 10.0 یا بیشتر از 32768.0 باشه، نوار سلامتیش چشمک میزنه. ::: 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 eb97f161daa..e5b6ed62b41 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 @@ -15,7 +15,7 @@ texture یک player-object رو با texture از مدل دیگه‌ای توی | objectid | آیدی object ای که قراره texture اش جایگزین بشه | | materialIndex | اندکس material روی object که قراره تغییر کنه (0 تا 15) | | modelid | آیدی مدلی که texture جایگزین روش قرار داره. از 0 برای alpha استفاده کن. از -1 برای تغییر رنگ material بدون تغییر texture موجود استفاده کن | -| const textureLibrary[] | اسم فایل txd که شامل texture جایگزین هست (از "none" استفاده کن اگه نیاز نیست) | +| const textureLibrary[] | اسم [فایل txd](https://models.open.mp/?cat=textures) که شامل texture جایگزین هست (از "none" استفاده کن اگه نیاز نیست) | | const textureName[] | اسم [بافتی](https://models.open.mp/?cat=textures) که قراره به عنوان جایگزین استفاده بشه (از "none" استفاده کن اگه نیاز نیست) | | materialColour | رنگ object که قراره تنظیم بشه، به عنوان عدد صحیح یا hex با **فرمت ARGB**. استفاده از **0** رنگ material موجود رو نگه می‌داره | diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPos.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPos.md index 253f842a8fb..e353f2ffc24 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPos.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerPos.md @@ -41,7 +41,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::tip -- اگر بازیکن در خودرو باشد، از [RemovePlayerFromVehicle](RemovePlayerFromVehicle) قبل از SetPlayerPos استفاده کنید. +اگر بازیکن در خودرو باشد، از [RemovePlayerFromVehicle](RemovePlayerFromVehicle) قبل از SetPlayerPos استفاده کنید. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md index ba98e4cd97d..8ded1cd2652 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md @@ -37,7 +37,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - اگر [TogglePlayerClock](TogglePlayerClock) فعال باشه، آب و هوا آروم آروم طی زمان تغییر می‌کنه، نه اینکه فوری تغییر کنه. -- فقط 21 ID آب و هوای معتبر در بازی وجود داره (0 - 20)، اما بازی هیچ نوع بررسی محدوده نداره. +- فقط 23 ID آب و هوای معتبر در بازی وجود داره (0 - 22)، اما بازی هیچ نوع بررسی محدوده نداره. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehiclePos.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehiclePos.md index d63d78c270a..3f43e8f3d0e 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehiclePos.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetVehiclePos.md @@ -34,9 +34,7 @@ SetVehiclePos(vehicleid, 0.0, 0.0, 3.0); :::warning -**باگ شناخته شده:** - -- یه ماشین خالی بعد از teleport شدن به هوا سقوط نمی‌کنه! +**باگ شناخته شده:** یه ماشین خالی بعد از teleport شدن به هوا سقوط نمی‌کنه! ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md index ea93b0d7eb4..62229164101 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md @@ -36,7 +36,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - اگر [TogglePlayerClock](TogglePlayerClock) فعال باشد، آب و هوا به آرامی در طول زمان تغییر خواهد کرد، به جای تغییر فوری. -- تنها 21 شناسه آب و هوای معتبر در بازی وجود دارد (0 - 20)، با این حال بازی هیچ بررسی محدوده‌ای ندارد. +- تنها 23 شناسه آب و هوای معتبر در بازی وجود دارد (0 - 22)، با این حال بازی هیچ بررسی محدوده‌ای ندارد. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SpawnPlayer.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SpawnPlayer.md index 7aeffd35a5b..1884fd81499 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SpawnPlayer.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/SpawnPlayer.md @@ -37,9 +37,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -**باگ‌های شناخته شده:** - -- اگر آنها در خودرو باشند بازیکن را می‌کشد و سپس با یک بطری در دست spawn می‌شوند. (در open.mp اصلاح شده) +**باگ‌های شناخته شده:** اگر آنها در خودرو باشند بازیکن را می‌کشد و سپس با یک بطری در دست spawn می‌شوند. (در open.mp اصلاح شده) ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md index f15c0bb03c9..2832f77d90e 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md @@ -29,7 +29,7 @@ deleteproperty(0, "", 123984334); :::tip -توصیه می‌شود به جای این native ها از PVars/SVars یا پلاگین GVar استفاده کنید زیرا بسیار کند هستند. +توصیه می‌شود به جای این native ها از PVars/SVars یا [پلاگین GVar](https://github.com/samp-incognito/samp-gvar-plugin) استفاده کنید زیرا بسیار کند هستند. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md index 9d8676eb42e..7528639ae8f 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md @@ -32,7 +32,7 @@ if (existproperty(0, "", 123984334)) :::tip -توصیه می‌شود به جای این native ها از PVars/SVars یا پلاگین GVar استفاده کنید زیرا بسیار کند هستند. +توصیه می‌شود به جای این native ها از PVars/SVars یا [پلاگین GVar](https://github.com/samp-incognito/samp-gvar-plugin) استفاده کنید زیرا بسیار کند هستند. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md index 029f47ddbbd..5acc4724287 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md @@ -36,7 +36,7 @@ print(value); :::tip -پیشنهاد می‌شه از PVars/SVars یا پلاگین GVar به جای این native ها استفاده کنی چون خیلی کندن. +پیشنهاد می‌شه از PVars/SVars یا [پلاگین GVar](https://github.com/samp-incognito/samp-gvar-plugin) به جای این native ها استفاده کنی چون خیلی کندن. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md index 9dc456810ba..db0b2a1c598 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md @@ -50,7 +50,7 @@ setproperty(.value = 123984334, .string = ":)"); :::tip -توصیه می‌شه به جای این native ها از PVars/SVars یا پلاگین GVar استفاده کنی چون خیلی کند هستن. +توصیه می‌شه به جای این native ها از PVars/SVars یا [پلاگین GVar](https://github.com/samp-incognito/samp-gvar-plugin) استفاده کنی چون خیلی کند هستن. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md index 3237d841eca..44a6b77426a 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md @@ -163,7 +163,7 @@ playerid = 0, dialogid = YOUR_DIALOGID, response = 0, listitem = 1, inputtext = :::note نکته -- شبیه **DIALOG_STYLE_INPUT**. +شبیه **DIALOG_STYLE_INPUT**. ::: @@ -217,7 +217,7 @@ playerid = 0, dialogid = YOUR_DIALOGID, response = 0, listitem = -1, inputtext = :::note نکته -- شبیه **DIALOG_STYLE_LIST**. +شبیه **DIALOG_STYLE_LIST**. ::: @@ -247,7 +247,7 @@ Pistol\t$1000\t50", :::note نکته -- **inputtext** متن _اولین ستون_ از **listitem** انتخاب شده، بدون رنگ ها. +**inputtext** متن _اولین ستون_ از **listitem** انتخاب شده، بدون رنگ ها. ::: @@ -273,7 +273,7 @@ playerid = 0, dialogid = YOUR_DIALOGID, response = 0, listitem = 1, inputtext = :::note نکته -- شبیه **DIALOG_STYLE_LIST**. +شبیه **DIALOG_STYLE_LIST**. ::: @@ -304,7 +304,7 @@ Item 1 Column 1\tItem 1 Column 2\tItem 1 Column 3\n\ :::note نکته -- **inputtext** متن _اولین ستون_ از **listitem** انتخاب شده، بدون رنگ ها. +**inputtext** متن _اولین ستون_ از **listitem** انتخاب شده، بدون رنگ ها. ::: 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 02c062a2e6e..80dc9595db6 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 @@ -33,7 +33,7 @@ public OnPlayerUpdate(playerid) OnPlayerChangeWeapon(playerid, GetPVarInt(playerid, "iCurrentWeapon"), iCurWeap); SetPVarInt(playerid, "iCurrentWeapon", iCurWeap);// I-update ang variable ng armas } - return 1; // Ipadala ang update na ito sa ibang mga manlalaro. + return 1; // Ipadala ang update na ito sa ibang mga manlalaro } stock OnPlayerChangeWeapon(playerid, oldweapon, newweapon) @@ -60,8 +60,8 @@ public OnPlayerUpdate(playerid) if (fHealth != GetPVarFloat(playerid, "faPlayerHealth")) { - // Ang kalusugan ng manlalaro ay nagbago mula noong huling pag-update -> server, kaya malinaw na na-update ang bagay. - // Suriin natin kung mawawalan o makakakuha ng buhay ang manlalaro, anti-health cheat? ;) + // Ang kalusugan ng manlalaro ay nagbago mula noong huling pag-update -> server, kaya malinaw na na-update ang bagay + // Suriin natin kung mawawalan o makakakuha ng buhay ang manlalaro if (fHealth > GetPVarFloat(playerid, "faPlayerHealth")) { diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md index 53b5ec7032c..70e7466c627 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md @@ -11,17 +11,17 @@ tags: ["actor", "animation"] Mag-apply ng animation sa isang artista. -| Name | Description | -| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| actorid | Ang ID ng aktor kung saan ilalapat ang animation. | -| animlib[] | Ang library ng animation kung saan maglalapat ng animation. | -| animname[] | Ang pangalan ng animation na ilalapat, sa loob ng tinukoy na library. | -| fDelta | Ang bilis ng paglalaro ng animation (gamitin ang 4.1). | -| loop | Kung itatakda sa **1**, mag-loop ang animation. Kung nakatakda sa **0**, magpe-play ang animation nang isang beses. | -| lockx | Kung itatakda sa **0**, ibabalik ang aktor sa kanilang lumang X coordinate kapag kumpleto na ang animation (para sa mga animation na gumagalaw sa aktor gaya ng paglalakad). **1** hindi na sila ibabalik sa dati nilang posisyon. | -| locky | Pareho sa itaas ngunit para sa Y axis. Dapat panatilihing pareho sa nakaraang parameter. | -| freeze | Ang pagtatakda nito sa **1** ay mag-freeze ng isang aktor sa dulo ng animation. **0** ay hindi. | -| time | Timer sa millisecond. Para sa isang walang katapusang loop dapat itong **0**. | +| Name | Description | +| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| actorid | Ang ID ng aktor kung saan ilalapat ang animation. | +| animlib[] | Ang library ng animation kung saan maglalapat ng animation. | +| animname[] | Ang pangalan ng animation na ilalapat, sa loob ng tinukoy na library. | +| Float:fDelta | Ang bilis ng paglalaro ng animation (gamitin ang 4.1). | +| bool:loop | Kung itatakda sa **1**, mag-loop ang animation. Kung nakatakda sa **0**, magpe-play ang animation nang isang beses. | +| bool:lockx | Kung itatakda sa **0**, ibabalik ang aktor sa kanilang lumang X coordinate kapag kumpleto na ang animation (para sa mga animation na gumagalaw sa aktor gaya ng paglalakad). **1** hindi na sila ibabalik sa dati nilang posisyon. | +| bool:locky | Pareho sa itaas ngunit para sa Y axis. Dapat panatilihing pareho sa nakaraang parameter. | +| bool:freeze | Ang pagtatakda nito sa **1** ay mag-freeze ng isang aktor sa dulo ng animation. **0** ay hindi. | +| time | Timer sa millisecond. Para sa isang walang katapusang loop dapat itong **0**. | ## Returns diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md index 5e594ab1e38..71aabbc04b5 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md @@ -9,18 +9,18 @@ tags: ["player", "animation"] Mag-apply ng animation sa isang player. -| Name | Description | -| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| playerid | Ang ID ng player kung saan ilalapat ang animation. | -| animlib[] | Ang library ng animation kung saan maglalapat ng animation. | -| animname[] | Ang pangalan ng animation na ilalapat, sa loob ng tinukoy na library. | -| fDelta | Ang bilis ng paglalaro ng animation (gamitin ang 4.1). | -| loop | Kung itatakda sa **1**, mag-loop ang animation. Kung nakatakda sa **0**, magpe-play ang animation nang isang beses. | -| lockx | Kung nakatakda sa **0**, ibabalik ang player sa kanilang lumang X coordinate kapag kumpleto na ang animation (para sa mga animation na gumagalaw sa player tulad ng paglalakad). **1** hindi na sila ibabalik sa dati nilang posisyon. | -| locky | Pareho sa itaas ngunit para sa Y axis. Dapat panatilihing pareho sa nakaraang parameter. | -| freeze | Ang pagtatakda nito sa **1** ay mag-freeze sa player sa dulo ng animation. **0** ay hindi. | -| time | Timer sa millisecond. Para sa isang walang katapusang loop dapat itong **0**. | -| forcesync | Itakda sa 1 upang gawing i-sync ng server ang animation sa lahat ng iba pang manlalaro sa streaming radius (opsyonal). Gumagana ang 2 tulad ng 1, ngunit ilalapat LAMANG ang animation sa mga naka-stream na manlalaro, ngunit HINDI ang aktwal na player na ini-animate (kapaki-pakinabang para sa mga npc animation at paulit-ulit na animation kapag ang mga manlalaro ay ini-stream) | +| Name | Description | +| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| playerid | Ang ID ng player kung saan ilalapat ang animation. | +| animlib[] | Ang library ng animation kung saan maglalapat ng animation. | +| animname[] | Ang pangalan ng animation na ilalapat, sa loob ng tinukoy na library. | +| Float:fDelta | Ang bilis ng paglalaro ng animation (gamitin ang 4.1). | +| bool:loop | Kung itatakda sa **1**, mag-loop ang animation. Kung nakatakda sa **0**, magpe-play ang animation nang isang beses. | +| bool:lockx | Kung nakatakda sa **0**, ibabalik ang player sa kanilang lumang X coordinate kapag kumpleto na ang animation (para sa mga animation na gumagalaw sa player tulad ng paglalakad). **1** hindi na sila ibabalik sa dati nilang posisyon. | +| bool:locky | Pareho sa itaas ngunit para sa Y axis. Dapat panatilihing pareho sa nakaraang parameter. | +| bool:freeze | Ang pagtatakda nito sa **1** ay mag-freeze sa player sa dulo ng animation. **0** ay hindi. | +| time | Timer sa millisecond. Para sa isang walang katapusang loop dapat itong **0**. | +| forcesync | Itakda sa 1 upang gawing i-sync ng server ang animation sa lahat ng iba pang manlalaro sa streaming radius (opsyonal). Gumagana ang 2 tulad ng 1, ngunit ilalapat LAMANG ang animation sa mga naka-stream na manlalaro, ngunit HINDI ang aktwal na player na ini-animate (kapaki-pakinabang para sa mga npc animation at paulit-ulit na animation kapag ang mga manlalaro ay ini-stream) | ## Returns diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md index e27fcc16d5b..3a8b5067e43 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md @@ -13,9 +13,9 @@ Mag-attach ng 3D text label sa isang player. | ------------- | ------------------------------------------------------------------ | | Text3D:textid | Ang ID ng 3D text label na isasama. Ibinalik ng Create3DTextLabel. | | playerid | Ang ID ng player kung saan kalakip ang label. | -| OffsetX | Ang X offset mula sa player. | -| OffsetY | Ang Y offset mula sa player. | -| OffsetZ | Ang Z offset mula sa player. | +| Float:OffsetX | Ang X offset mula sa player. | +| Float:OffsetY | Ang Y offset mula sa player. | +| Float:OffsetZ | Ang Z offset mula sa player. | ## Returns 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 bc6c6546d53..c94724c594c 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 @@ -13,9 +13,9 @@ Naglalagay ng 3D Text Label sa isang partikular na sasakyan. | ------------- | ----------------------------------------------------------------------------- | | Text3D:textid | Ang 3D Text Label na gusto mong ilagay. | | vehicleid | Ang sasakyan kung saan mo gustong ilagay ang 3D Text Label. | -| OffsetX | Ang Offset-X coordinate ng player na sasakyan (ang sasakyan ay 0.0,0.0,0.0).. | -| OffsetY | Ang Offset-Y coordinate ng player na sasakyan (ang sasakyan ay 0.0,0.0,0.0).. | -| OffsetZ | Ang Offset-Z coordinate ng player na sasakyan (ang sasakyan ay 0.0,0.0,0.0).. | +| Float:OffsetX | Ang Offset-X coordinate ng player na sasakyan (ang sasakyan ay 0.0,0.0,0.0).. | +| Float:OffsetY | Ang Offset-Y coordinate ng player na sasakyan (ang sasakyan ay 0.0,0.0,0.0).. | +| Float:OffsetZ | Ang Offset-Z coordinate ng player na sasakyan (ang sasakyan ay 0.0,0.0,0.0).. | ## Returns diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md index fb33b04f11e..1b838492641 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md @@ -43,13 +43,13 @@ public OnPlayerEnterVehicle(playerid, vehicleid, ispassanger) :::tip -- Maaari mong gamitin ang [GetPlayerVehicleSeat](GetPlayerVehicleSeat) sa isang loop upang tingnan kung ang isang upuan ay inookupahan ng sinumang manlalaro. +Maaari mong gamitin ang [GetPlayerVehicleSeat](GetPlayerVehicleSeat) sa isang loop upang tingnan kung ang isang upuan ay inookupahan ng sinumang manlalaro. ::: :::warning -- Kung ang upuan ay hindi wasto o kinuha, ay magdudulot ng pag-crash kapag LUMABAS sila sa sasakyan. +Kung ang upuan ay hindi wasto o kinuha, ay magdudulot ng pag-crash kapag LUMABAS sila sa sasakyan. ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md index a536cbc48c9..61e6cfd4934 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md @@ -37,7 +37,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - Kung pinagana ang TogglePlayerClock, dahan-dahang magbabago ang panahon sa paglipas ng panahon, sa halip na agad na magbago. -- Mayroon lamang valid na 21 weather ID sa laro (0 - 20), gayunpaman ang laro ay walang anumang anyo ng range check. +- Mayroon lamang valid na 23 weather ID sa laro (0 - 22), gayunpaman ang laro ay walang anumang anyo ng range check. ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetSVarFloat.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetSVarFloat.md index c9705cabe48..0c6f5b25a56 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetSVarFloat.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetSVarFloat.md @@ -11,10 +11,10 @@ tags: ["server variable", "svar"] Magtakda ng server variable na float. -| Name | Description | -| ----------- | -------------------------------- | -| varname[] | Ang pangalan ng server variable. | -| float_value | Ang float na itatakda. | +| Name | Description | +| ----------------- | -------------------------------- | +| varname[] | Ang pangalan ng server variable. | +| Float:float_value | Ang float na itatakda. | ## Returns diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md index 414d18e1dd6..bf81dc208c9 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md @@ -32,7 +32,7 @@ if (!strcmp(cmdtext, "/sandstorm", true)) :::note - Kung pinagana ang TogglePlayerClock, dahan-dahang magbabago ang panahon sa paglipas ng panahon, sa halip na agad na magbago. -- Mayroon lamang valid na 21 weather ID sa laro (0 - 20), gayunpaman ang laro ay walang anumang anyo ng range check. +- Mayroon lamang valid na 23 weather ID sa laro (0 - 22), gayunpaman ang laro ay walang anumang anyo ng range check. ::: diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatcmp.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatcmp.md index 5768d42b2fd..8dde79a2f82 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatcmp.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatcmp.md @@ -9,10 +9,10 @@ tags: ["math", "floating-point"] Ang floatcmp ay maaaring gamitin upang ihambing ang mga halaga ng float sa bawat isa, upang mapatunayan ang paghahambing. -| Name | Description | -| ----- | ------------------------------------------ | -| oper1 | Ang unang float value na ikukumpara | -| oper2 | Ang pangalawang float value na ikukumpara. | +| Name | Description | +| ----------- | ------------------------------------------ | +| Float:oper1 | Ang unang float value na ikukumpara | +| Float:oper2 | Ang pangalawang float value na ikukumpara. | ## Returns diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatfract.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatfract.md index 3ac4399c026..db030e5d730 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatfract.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatfract.md @@ -9,9 +9,9 @@ tags: ["math", "floating-point"] Kunin ang fractional na bahagi ng float. Nangangahulugan ito ng halaga ng mga numero pagkatapos ng decimal point. -| Name | Description | -| ----- | -------------------------------------------------- | -| value | Ang float para makuha ang fractional na bahagi ng. | +| Name | Description | +| ----------- | -------------------------------------------------- | +| Float:value | Ang float para makuha ang fractional na bahagi ng. | ## Returns diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatpower.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatpower.md index 3ae696c16c4..829a86bbf94 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatpower.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatpower.md @@ -9,10 +9,10 @@ tags: ["math", "floating-point"] Itinataas ang ibinigay na halaga sa kapangyarihan ng exponent. -| Name | Description | -| -------- | ----------------------------------------------------------------------------------- | -| value | Ang halaga na itataas sa isang power, bilang isang floating-point na numero. | -| exponent | Ang exponent ay isa ring floating-point na numero. Maaaring ito ay zero o negatibo. | +| Name | Description | +| -------------- | ----------------------------------------------------------------------------------- | +| Float:value | Ang halaga na itataas sa isang power, bilang isang floating-point na numero. | +| Float:exponent | Ang exponent ay isa ring floating-point na numero. Maaaring ito ay zero o negatibo. | ## Returns diff --git a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatround.md b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatround.md index 65a53d459a9..33501c3a16b 100644 --- a/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatround.md +++ b/frontend/i18n/fil/docusaurus-plugin-content-docs/current/scripting/functions/floatround.md @@ -11,7 +11,7 @@ I-round ang isang floating point number sa isang integer value. | Name | Description | | ------------------------------------ | ------------------------------------- | -| value | Ang value na i-round | +| Float:value | Ang value na i-round | | [mode](../resources/floatroundmodes) | Ang mga floatround mode na gagamitin. | ## Returns 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 49472518cf3..ce290313670 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 @@ -31,7 +31,7 @@ public OnPlayerUpdate(playerid) OnPlayerChangeWeapon(playerid, GetPVarInt(playerid, "iCurrentWeapon"), iCurWeap); SetPVarInt(playerid, "iCurrentWeapon", iCurWeap);//Met à jour la variable arme du joueur } - return 1; // Envoi de la mise à jour à tous les joueurs. + return 1; // Envoi de la mise à jour à tous les joueurs } stock OnPlayerChangeWeapon(playerid, oldweapon, newweapon) @@ -58,8 +58,8 @@ public OnPlayerUpdate(playerid) if (fHealth != GetPVarFloat(playerid, "faPlayerHealth")) { - // La vie du joueur a changé depuis la dernière mise à jour, c'est donc bien la mise à jour qui a été envoyée. - // Vérifions s'il a perdu ou gagné de la vie (anti-cheat vie ? ;)) + // La vie du joueur a changé depuis la dernière mise à jour, c'est donc bien la mise à jour qui a été envoyée + // Vérifions s'il a perdu ou gagné de la vie if (fHealth > GetPVarFloat(playerid, "faPlayerHealth")) { diff --git a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md index ab0ea362437..9156b0e8a65 100644 --- a/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md +++ b/frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md @@ -16,12 +16,12 @@ Cela arrive en dehors du véhicule ou quand le joueur est en passager et qu'il n | `int` vehicleid | ID du véhicule dont la position est mise à jour | | `int` playerid | ID du joueur | | `int` passenger_seat | ID du siège si le joueur est passager. 0=pas dans le véhicule, 1=passager avant, 2=arrière-gauche 3=arrière-droit, 4+= pour les bus, etc. | -| `int` new_x | Nouvelle coordonnée X du véhicule | -| `int` new_y | Nouvelle coordonnée Y du véhicule | -| `int` new_z | Nouvelle coordonnée Z du véhicule | -| `int` vel_x | Nouvelle vélocité X du véhicule | -| `int` vel_y | Nouvelle vélocité Y du véhicule | -| `int` vel_z | Nouvelle vélocité Z du véhicule | +| `float` Float:new_x | Nouvelle coordonnée X du véhicule | +| `float` Float:new_y | Nouvelle coordonnée Y du véhicule | +| `float` Float:new_z | Nouvelle coordonnée Z du véhicule | +| `float` Float:vel_x | Nouvelle vélocité X du véhicule | +| `float` Float:vel_y | Nouvelle vélocité Y du véhicule | +| `float` Float:vel_z | Nouvelle vélocité Z du véhicule | ## Valeur de retour 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 43a370b9862..30871e42432 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 @@ -33,7 +33,7 @@ public OnPlayerUpdate(playerid) OnPlayerChangeWeapon(playerid, GetPVarInt(playerid, "iCurrentWeapon"), iCurWeap); SetPVarInt(playerid, "iCurrentWeapon", iCurWeap);//Memperbarui variabel senjata } - return 1; // Kirim pembaruan ini ke pemain lain. + return 1; // Kirim pembaruan ini ke pemain lain } stock OnPlayerChangeWeapon(playerid, oldweapon, newweapon) @@ -60,8 +60,8 @@ public OnPlayerUpdate(playerid) if (fHealth != GetPVarFloat(playerid, "faPlayerHealth")) { - // Darah pemain telah berubah sejak pembaruan terakhir -> server, jadi jelas itu yang diperbarui. - // Mari kita lakukan pemeriksaan lanjutan untuk melihat apakah dia kehilangan atau memperoleh Darah, cheat anti-health? ;) + // Darah pemain telah berubah sejak pembaruan terakhir -> server, jadi jelas itu yang diperbarui + // Mari kita lakukan pemeriksaan lanjutan untuk melihat apakah dia kehilangan atau memperoleh Darah if (fHealth > GetPVarFloat(playerid, "faPlayerHealth")) { diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md index feed8d35024..eb3a0e50cb6 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md @@ -9,18 +9,18 @@ tags: ["player", "animation"] Mengaplikasikan animasi ke pemain. -| Nama | Deskripsi | -| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| playerid | ID dari pemain yang akan di aplikasikan animasi. | -| animlib[] | library animasi yang akan digunakan untuk mengaplikasikan animasi. | -| animname[] | Nama animasi yang akan diterapkan, dengan library yang sudah ditentukan. | -| fDelta | Kecepatan untuk memainkan animasi (gunakan 4.1). | -| loop | Jika di atur menjadi **1**, animasi akan melakukan perulangan. Jika di atur menjadi **0**, animasi akan mengulang hanya sekali. | -| lockx | Jika di atur menjadi **0**, pemain dikembalikan ke kordinat x lama mereka setelah animasi selesai (untuk animasi yang menggerakkan pemain seperti berjalan). **1** tidak akan mengembalikan ke yang lama. position. | -| locky | Sama seperti di atas tetapi untuk sumbu Y. Harus tetap sama dengan parameter sebelumnya. | -| freeze | Mengatur ke **1** akan membuat pemain membeku di akhir animasi. **0** tidak akan membeku. | -| time | Waktu dalam millidetik. Untuk pengulangan yang tidak pernah berakhir harus menggunakan **0**. | -| forcesync | Mengaturnya menjadi 1 membuat server menyinkronkan animasi kepada semua pemain lain dalam radius streaming (opsional). 2 berfungsi sama dengan 1, tetapi hanya akan menerapkan animasi ke pemain yang di-streaming, tetapi bukan pemain yang sebenarnya sedang dianimasikan (berguna untuk animasi NPC dan animasi yang terus-menerus saat pemain sedang streaming) | +| Nama | Deskripsi | +| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| playerid | ID dari pemain yang akan di aplikasikan animasi. | +| animlib[] | library animasi yang akan digunakan untuk mengaplikasikan animasi. | +| animname[] | Nama animasi yang akan diterapkan, dengan library yang sudah ditentukan. | +| Float:fDelta | Kecepatan untuk memainkan animasi (gunakan 4.1). | +| bool:loop | Jika di atur menjadi **1**, animasi akan melakukan perulangan. Jika di atur menjadi **0**, animasi akan mengulang hanya sekali. | +| bool:lockx | Jika di atur menjadi **0**, pemain dikembalikan ke kordinat x lama mereka setelah animasi selesai (untuk animasi yang menggerakkan pemain seperti berjalan). **1** tidak akan mengembalikan ke yang lama. position. | +| bool:locky | Sama seperti di atas tetapi untuk sumbu Y. Harus tetap sama dengan parameter sebelumnya. | +| bool:freeze | Mengatur ke **1** akan membuat pemain membeku di akhir animasi. **0** tidak akan membeku. | +| time | Waktu dalam millidetik. Untuk pengulangan yang tidak pernah berakhir harus menggunakan **0**. | +| forcesync | Mengaturnya menjadi 1 membuat server menyinkronkan animasi kepada semua pemain lain dalam radius streaming (opsional). 2 berfungsi sama dengan 1, tetapi hanya akan menerapkan animasi ke pemain yang di-streaming, tetapi bukan pemain yang sebenarnya sedang dianimasikan (berguna untuk animasi NPC dan animasi yang terus-menerus saat pemain sedang streaming) | ## Returns diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md index b162019c801..048398766fb 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md @@ -32,7 +32,7 @@ if (!strcmp(cmdtext, "/sandstorm", true)) :::note - Jika TogglePlayerClock menyala, Cuaca perlahan-lahan akan berubah dari waktu ke waktu, alih alih berubah secara instant. -- Hanya ada 21 ID cuaca yang valid dalam game (0 - 20), Namun game tidak memiliki bentuk cek jangkauan. +- Hanya ada 23 ID cuaca yang valid dalam game (0 - 22), Namun game tidak memiliki bentuk cek jangkauan. ::: diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md index c44cb21e4de..381b77b79b9 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md @@ -134,7 +134,7 @@ playerid = 0, dialogid = ID_DIALOG_KAMU, response = 0, listitem = 1, inputtext = :::note -- Serupa dengan **DIALOG_STYLE_INPUT**. +Serupa dengan **DIALOG_STYLE_INPUT**. ::: @@ -180,7 +180,7 @@ Gaya ini telah ditambahkan di **SA-MP 0.3.7** dan tidak akan bekerja di versi se :::note -- Serupa dengan **DIALOG_STYLE_LIST**. +Serupa dengan **DIALOG_STYLE_LIST**. ::: @@ -206,7 +206,7 @@ Pistol\t$1000\t50", :::note -- **inputtext** teks yang berisi nilai dari **listitem** yang dipilih pada _kolom pertama_, tanpa warna-warnanya. +**inputtext** teks yang berisi nilai dari **listitem** yang dipilih pada _kolom pertama_, tanpa warna-warnanya. ::: @@ -228,7 +228,7 @@ Gaya ini telah ditambahkan di **SA-MP 0.3.7** dan tidak akan bekerja di versi se :::note -- Serupa dengan **DIALOG_STYLE_LIST**. +Serupa dengan **DIALOG_STYLE_LIST**. ::: @@ -255,7 +255,7 @@ Item 1 Column 1\tItem 1 Column 2\tItem 1 Column 3\n\ :::note -- **inputtext** berisi teks dari **listitem** yang dipilih pada _kolom pertama_, tanpa warna-warnanya. +**inputtext** berisi teks dari **listitem** yang dipilih pada _kolom pertama_, tanpa warna-warnanya. ::: diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md index aa5808bcfb5..cb988c72770 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md @@ -52,10 +52,10 @@ Informasi ini untuk digunakan dengan [OnPlayerDeath](../callbacks/OnPlayerDeath) | ![](https://assets.open.mp/assets/images/weaponIcons/flame-Thrower.png)
Flamethrower | ![](https://assets.open.mp/assets/images/deathIcons/death-flameThrower.gif) | WEAPON_FLAMETHROWER | 37 | 7 | 361 | - | | ![](https://assets.open.mp/assets/images/weaponIcons/minigun.png)
Minigun | ![](https://assets.open.mp/assets/images/deathIcons/death-minigun.gif) | WEAPON_MINIGUN | 38 | 7 | 362 | - | | ![](https://assets.open.mp/assets/images/weaponIcons/satchelCharge.png)
Satchel Explosives | ![](https://assets.open.mp/assets/images/deathIcons/death-satchelCharge.gif) | WEAPON_SATCHEL | 39 | 8 | 363 | Hanya singkron untuk player yang sudah di-_stream_ ketika satchel dilempar | -| ![](https://assets.open.mp/assets/images/weaponIcons/detonator.png)
Bomb | ![](https://assets.open.mp/assets/images/deathIcons/death-detonator.gif) | WEAPON_BOMB | 40 | 12 | 364 | Diberikan secara otomatis ketika pemain melempar sebuah satchel charge (abaikan dari pemeriksaan anti-cheat) | +| ![](https://assets.open.mp/assets/images/weaponIcons/detonator.png)
Bomb | ![](https://assets.open.mp/assets/images/deathIcons/death-detonator.gif) | WEAPON_BOMB | 40 | 12 | 364 | Diberikan secara otomatis ketika pemain melempar sebuah satchel charge | | ![](https://assets.open.mp/assets/images/weaponIcons/spraycan.png)
Spray Can | ![](https://assets.open.mp/assets/images/deathIcons/death-sprayCan.gif) | WEAPON_SPRAYCAN | 41 | 9 | 365 | Pemain akan tersedak karena disemprot | | ![](https://assets.open.mp/assets/images/weaponIcons/fireExtinguisher.png)
Fire Extinguisher | ![](https://assets.open.mp/assets/images/deathIcons/death-fireExtinguisher.gif) | WEAPON_FIREEXTINGUISHER | 42 | 9 | 366 | Pemain akan tersedak karena disemprot | -| ![](https://assets.open.mp/assets/images/weaponIcons/camera.png)
Camera | ![](https://assets.open.mp/assets/images/deathIcons/death-camera.gif) | WEAPON_CAMERA | 43 | 9 | 367 | Menyimpan foto ke galeri player jika sudah aktif melalui menu pause (My Documents\GTA San Andreas User Files\Gallery) | +| ![](https://assets.open.mp/assets/images/weaponIcons/camera.png)
Camera | ![](https://assets.open.mp/assets/images/deathIcons/death-camera.gif) | WEAPON_CAMERA | 43 | 9 | 367 | Menyimpan foto ke galeri player jika sudah aktif melalui menu pause (`My Documents\GTA San Andreas User Files\Gallery`) | | ![](https://assets.open.mp/assets/images/weaponIcons/nightVisGoggles.png)
Night Vision | ![](https://assets.open.mp/assets/images/deathIcons/death-nightVisGoggles.gif) | WEAPON_NIGHT_VISION_GOGGLES | 44 | 11 | 368 | Efek visual muncul ke semua player (sudah diperbaiki di open.mp) | | ![](https://assets.open.mp/assets/images/weaponIcons/thermalGoggles.png)
Thermal Goggles | ![](https://assets.open.mp/assets/images/deathIcons/death-thermalGoggles.gif) | WEAPON_THERMAL_GOGGLES | 45 | 11 | 369 | Efek visual muncul ke semua player (sudah diperbaiki di open.mp) | | ![](https://assets.open.mp/assets/images/weaponIcons/parachute.png)
Parachute | ![](https://assets.open.mp/assets/images/deathIcons/death-parachute.gif) | WEAPON_PARACHUTE | 46 | 11 | 371 | Pemain akan mati jika dipindah ketika dengan terjun dengan parasut; Parasut diberikan ketika lompat keluar dari pesawat. | diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/PluginDevelopmentGuide.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/PluginDevelopmentGuide.md index ace0da00c04..0ef1c201432 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/PluginDevelopmentGuide.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/tutorials/PluginDevelopmentGuide.md @@ -62,7 +62,7 @@ Voorbeeld-exports skeleton zie originele guide; hieronder beknopte highlights. ## Invoke (natives uit plugin aanroepen) -Het “Invoke”-mechanisme kan SA-MP-natives aanroepen vanuit je plugin. Je houdt een lijst AMX-instances bij, vraagt adressen op en roept `callNative` met juiste specifiers (`i`, `f`, `s`, `v`, `p`). Zie bron van Invoke voor complete setup. +Het “Invoke”-mechanisme kan SA-MP-natives aanroepen vanuit je plugin. Je houdt een lijst AMX-instances bij, vraagt adressen op en roept `callNative` met juiste specifiers (`i`, `f`, `s`, `v`, `p`). Zie [bron van Invoke](https://github.com/Dystans/SA-MP_Invoke_2.0) voor complete setup. ## Notities diff --git a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md index f9c435b91f9..0579b1a7e23 100644 --- a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md +++ b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md @@ -11,17 +11,17 @@ tags: ["actor", "animation"] Włącza animację aktorowi. -| Nazwa | Opis | -| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| actorid | ID aktora, któremu chcesz włączyć animację. | -| animlib[] | Biblioteka, z której ma być zastosowana animacja. | -| animname[] | Nazwa animacji, która ma zostać zastosowana (z powyższej biblioteki). | -| fDelta | Prędkość odtwarzania animacji (używaj 4.1). | -| loop | Jeżeli jest ustawione na **1**, animacja będzie zapętlona. Jeżeli jest ustawione na **0**, animacja zostanie odtworzona tylko raz. | -| lockx | Jeżeli jest ustawione na **0**, aktor wróci do swojego starego koordynatu X po skończeniu animacji (w przypadku animacji, które poruszają aktorem, np. chodzenie). **1** nie przywróci go do starej pozycji. | -| locky | Tak samo jak powyżej, tyle że dla osi Y. Wartość powinna być taka sama, jak przy poprzednim parametrze. | -| freeze | Ustawienie tego na **1** zamrozi aktora po ukończeniu animacji. **0** tego nie zrobi. | -| time | Timer w milisekundach. Dla nieskończonej pętli powinien być ustawiony na **0**. | +| Nazwa | Opis | +| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| actorid | ID aktora, któremu chcesz włączyć animację. | +| animlib[] | Biblioteka, z której ma być zastosowana animacja. | +| animname[] | Nazwa animacji, która ma zostać zastosowana (z powyższej biblioteki). | +| Float:fDelta | Prędkość odtwarzania animacji (używaj 4.1). | +| bool:loop | Jeżeli jest ustawione na **1**, animacja będzie zapętlona. Jeżeli jest ustawione na **0**, animacja zostanie odtworzona tylko raz. | +| bool:lockx | Jeżeli jest ustawione na **0**, aktor wróci do swojego starego koordynatu X po skończeniu animacji (w przypadku animacji, które poruszają aktorem, np. chodzenie). **1** nie przywróci go do starej pozycji. | +| bool:locky | Tak samo jak powyżej, tyle że dla osi Y. Wartość powinna być taka sama, jak przy poprzednim parametrze. | +| bool:freeze | Ustawienie tego na **1** zamrozi aktora po ukończeniu animacji. **0** tego nie zrobi. | +| time | Timer w milisekundach. Dla nieskończonej pętli powinien być ustawiony na **0**. | ## Zwracane wartości diff --git a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md index 4dfbed6d8fd..1f51ed982c3 100644 --- a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md +++ b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md @@ -9,18 +9,18 @@ tags: ["player", "animation"] Włącza animację graczowi. -| Nazwa | Opis | -| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| playerid | ID gracza, któremu chcesz włączyć animację. | -| animlib[] | Biblioteka, z której ma być zastosowana animacja. | -| animname[] | Nazwa animacji, która ma zostać zastosowana (z powyższej biblioteki). | -| fDelta | Prędkość odtwarzania animacji (używaj 4.1). | -| loop | Jeżeli jest ustawione na **1**, animacja będzie zapętlona. Jeżeli jest ustawione na **0**, animacja zostanie odtworzona tylko raz. | -| lockx | Jeżeli jest ustawione na **0**, gracz wróci do swojego starego koordynatu X po skończeniu animacji (w przypadku animacji, które poruszają graczem, np. chodzenie). **1** nie przywróci go do starej pozycji. | -| locky | Tak samo jak powyżej, tyle że dla osi Y. Wartość powinna być taka sama, jak przy poprzednim parametrze. | -| freeze | Ustawienie tego na **1** zamrozi gracza po ukończeniu animacji. **0** tego nie zrobi. | -| time | Timer w milisekundach. Dla nieskończonej pętli powinien być ustawiony na **0**. | -| forcesync | Ustawienie tego na 1 powoduje synchronizację animacji ze wszystkimi graczami w zasięgu widzenia (opcjonalne). 2 działa tak samo jak 1, tyle że animację będą widzieć TYLKO gracze w zasięgu widzenia, a gracz, któremu została włączona, NIE BĘDZIE jej widział (przydatne m.in. przy animacjach NPC). | +| Nazwa | Opis | +| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| playerid | ID gracza, któremu chcesz włączyć animację. | +| animlib[] | Biblioteka, z której ma być zastosowana animacja. | +| animname[] | Nazwa animacji, która ma zostać zastosowana (z powyższej biblioteki). | +| Float:fDelta | Prędkość odtwarzania animacji (używaj 4.1). | +| bool:loop | Jeżeli jest ustawione na **1**, animacja będzie zapętlona. Jeżeli jest ustawione na **0**, animacja zostanie odtworzona tylko raz. | +| bool:lockx | Jeżeli jest ustawione na **0**, gracz wróci do swojego starego koordynatu X po skończeniu animacji (w przypadku animacji, które poruszają graczem, np. chodzenie). **1** nie przywróci go do starej pozycji. | +| bool:locky | Tak samo jak powyżej, tyle że dla osi Y. Wartość powinna być taka sama, jak przy poprzednim parametrze. | +| bool:freeze | Ustawienie tego na **1** zamrozi gracza po ukończeniu animacji. **0** tego nie zrobi. | +| time | Timer w milisekundach. Dla nieskończonej pętli powinien być ustawiony na **0**. | +| forcesync | Ustawienie tego na 1 powoduje synchronizację animacji ze wszystkimi graczami w zasięgu widzenia (opcjonalne). 2 działa tak samo jak 1, tyle że animację będą widzieć TYLKO gracze w zasięgu widzenia, a gracz, któremu została włączona, NIE BĘDZIE jej widział (przydatne m.in. przy animacjach NPC). | ## Zwracane wartości diff --git a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md index ffa5dd7d563..27daa786259 100644 --- a/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md +++ b/frontend/i18n/pl/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md @@ -13,9 +13,9 @@ Przyczepia tekst 3D do gracza. | ------------- | ---------------------------------------------------------------- | | Text3D:textid | ID tekstu 3D do przyczepienia. Zwracane przez Create3DTextLabel. | | playerid | ID gracza, do którego tekst 3D ma zostać przyczepiony. | -| OffsetX | Offset X gracza. | -| OffsetY | Offset Y gracza. | -| OffsetZ | Offset Z gracza. | +| Float:OffsetX | Offset X gracza. | +| Float:OffsetY | Offset Y gracza. | +| Float:OffsetZ | Offset Z gracza. | ## Zwracane wartości 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 59a98e582c5..8ce628f321f 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 @@ -13,9 +13,9 @@ Przyczepia tekst 3D do konkretnego pojazdu. | ------------- | ----------------------------------------------------------------- | | Text3D:textid | Tekst 3D, który chcesz przyczepić. | | vehicleid | Pojazd, do którego chcesz przyczepić tekst 3D. | -| OffsetX | Offset X od koordynatów pojazdu gracza (pojazd to 0.0, 0.0, 0.0). | -| OffsetY | Offset Y od koordynatów pojazdu gracza (pojazd to 0.0, 0.0, 0.0). | -| OffsetZ | Offset Z od koordynatów pojazdu gracza (pojazd to 0.0, 0.0, 0.0). | +| Float:OffsetX | Offset X od koordynatów pojazdu gracza (pojazd to 0.0, 0.0, 0.0). | +| Float:OffsetY | Offset Y od koordynatów pojazdu gracza (pojazd to 0.0, 0.0, 0.0). | +| Float:OffsetZ | Offset Z od koordynatów pojazdu gracza (pojazd to 0.0, 0.0, 0.0). | ## Zwracane wartości 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 669d865aa9a..f5d30368148 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 @@ -33,7 +33,7 @@ public OnPlayerUpdate(playerid) OnPlayerChangeWeapon(playerid, GetPVarInt(playerid, "iCurrentWeapon"), iCurWeap); SetPVarInt(playerid, "iCurrentWeapon", iCurWeap);//Atualiza a váriavel da arma } - return 1; // Envia o update para os outros jogadores. + return 1; // Envia o update para os outros jogadores } stock OnPlayerChangeWeapon(playerid, oldweapon, newweapon) @@ -60,8 +60,8 @@ public OnPlayerUpdate(playerid) if (fHealth != GetPVarFloat(playerid, "faPlayerHealth")) { - // A vida do jogador mudou desde o último update -> server, então obviamente foi atualizada. - // Vamos fazer uma checagem mais profunda para ver se o mesmo esta ganhando ou perdendo vida, anti-health cheat? ;) + // A vida do jogador mudou desde o último update -> server, então obviamente foi atualizada + // Vamos fazer uma checagem mais profunda para ver se o mesmo esta ganhando ou perdendo vida if (fHealth > GetPVarFloat(playerid, "faPlayerHealth")) { diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md index 523ace6e7c5..26e5453ef1f 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md @@ -14,12 +14,12 @@ Essa callback é executada quando o cliente do jogador faz o update/sincroniza a | vehicleid | ID do veículo que teve sua posição atualizada/sincronizada. | | playerid | ID do jogador que fez o pedido para atualizar/sincronizar o veículo. | | passenger_seat | ID dos assentos, caso o jogador seja um passageiro. 0=não está no veículo, 1=passageiro frontal, 2=traseiro esquerda, 3=traseiro direita, 4+ caso o veículo seja um ônibus etc. com a quantidade de assentos. | -| new_x | Nova coordenada X do veículo. | -| new_y | Nova coordenada Y do veículo. | -| new_z | Nova coordenada Z do veículo. | -| vel_x | Nova velocidade X do veículo. | -| vel_y | Nova velocidade Y do veículo. | -| vel_z | Nova velocidade Z do veículo. | +| Float:new_x | Nova coordenada X do veículo. | +| Float:new_y | Nova coordenada Y do veículo. | +| Float:new_z | Nova coordenada Z do veículo. | +| Float:vel_x | Nova velocidade X do veículo. | +| Float:vel_y | Nova velocidade Y do veículo. | +| Float:vel_z | Nova velocidade Z do veículo. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md index 26efb7cbeea..07e71e19503 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md @@ -11,17 +11,17 @@ tags: ["actor", "animation"] Aplica uma animação a um ator. -| Nome | Descrição | -| ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| actorid | O ID do ator a aplicar a animação. | -| animlib[] | A [biblioteca de animação](../resources/animations) da qual aplicar a animação. | -| animname[] | O nome da [animação](../resources/animations) a aplicar, dentro da biblioteca especificada. | -| fDelta | A velocidade para reproduzir a animação (use 4.1). | -| loop | Se definido **1**, a animação irá repetir. Se definido **0**, a animação vai reproduzir uma vez. | -| lockx | Se definido **0**, o ator vai retornar à sua coordenada X antiga, assim que a animação concluir (para animações que o ator move, como caminhar). **1** não irá retornar à posição antiga. | -| locky | O mesmo que acima, mas para o eixo Y. Same as above but for the Y axis. Deve ser mantido igual ao parâmetro anterior. | -| freeze | Definir para **1** vai congelar o ator no fim da animação. **0** não irá congelar. | -| time | Tempo em milisegundos. Para um ciclo infinito o valor deve ser **0**. | +| Nome | Descrição | +| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| actorid | O ID do ator a aplicar a animação. | +| animlib[] | A [biblioteca de animação](../resources/animations) da qual aplicar a animação. | +| animname[] | O nome da [animação](../resources/animations) a aplicar, dentro da biblioteca especificada. | +| Float:fDelta | A velocidade para reproduzir a animação (use 4.1). | +| bool:loop | Se definido **1**, a animação irá repetir. Se definido **0**, a animação vai reproduzir uma vez. | +| bool:lockx | Se definido **0**, o ator vai retornar à sua coordenada X antiga, assim que a animação concluir (para animações que o ator move, como caminhar). **1** não irá retornar à posição antiga. | +| bool:locky | O mesmo que acima, mas para o eixo Y. Same as above but for the Y axis. Deve ser mantido igual ao parâmetro anterior. | +| bool:freeze | Definir para **1** vai congelar o ator no fim da animação. **0** não irá congelar. | +| time | Tempo em milisegundos. Para um ciclo infinito o valor deve ser **0**. | ## Retorno 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 1f066a3dee5..b8369ecb429 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 @@ -9,18 +9,18 @@ tags: ["player", "animation"] Aplica uma animação a um jogador. -| Nome | Descrição | -| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| playerid | O ID do jogador a aplicar a animação. | -| animlib[] | A [biblioteca de animação](../resources/animations) da qual aplicar a animação. | -| animname[] | O nome da [animação](../resources/animations) a aplicar, dentro da biblioteca especificada. | -| fDelta | A velocidade para reproduzir a animação (use 4.1). | -| loop | Se **1**, a animação irá repetir. Se definido **0**, a animação vai reproduzir uma vez. | -| lockx | Se **0**, o ator irá retornar à sua coordenada X antiga assim que a animação concluir(para animações que o ator se mova, como caminhar). **1** não irá retornar à posição antiga. | -| locky | O mesmo que acima, mas para o eixo Y. Same as above but for the Y axis. Deve ser mantido igual ao parâmetro anterior. | -| freeze | Definir para **1** vai congelar o ator no fim da animação. **0** não irá congelar. | -| time | Tempo em milisegundos. Para um ciclo infinito o valor deve ser **0**. | -| forcesync | Defina como 1 para fazer o servidor sincronizar a animação com todos os outros jogadores num raio de streaming (opcional). 2 funciona da mesma forma que 1, mas APENAS aplicará a animação a jogadores em stream, mas NÃO o jogador a ser animado (útil para animações com NPC e animações persistentes quando os jogadores estão a ser streamados). | +| Nome | Descrição | +| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| playerid | O ID do jogador a aplicar a animação. | +| animlib[] | A [biblioteca de animação](../resources/animations) da qual aplicar a animação. | +| animname[] | O nome da [animação](../resources/animations) a aplicar, dentro da biblioteca especificada. | +| Float:fDelta | A velocidade para reproduzir a animação (use 4.1). | +| bool:loop | Se **1**, a animação irá repetir. Se definido **0**, a animação vai reproduzir uma vez. | +| bool:lockx | Se **0**, o ator irá retornar à sua coordenada X antiga assim que a animação concluir(para animações que o ator se mova, como caminhar). **1** não irá retornar à posição antiga. | +| bool:locky | O mesmo que acima, mas para o eixo Y. Same as above but for the Y axis. Deve ser mantido igual ao parâmetro anterior. | +| bool:freeze | Definir para **1** vai congelar o ator no fim da animação. **0** não irá congelar. | +| time | Tempo em milisegundos. Para um ciclo infinito o valor deve ser **0**. | +| forcesync | Defina como 1 para fazer o servidor sincronizar a animação com todos os outros jogadores num raio de streaming (opcional). 2 funciona da mesma forma que 1, mas APENAS aplicará a animação a jogadores em stream, mas NÃO o jogador a ser animado (útil para animações com NPC e animações persistentes quando os jogadores estão a ser streamados). | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md index 78af6f2f1ef..e5b740e3dfd 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md @@ -13,9 +13,9 @@ Anexa uma text label 3D a um jogador. | ------------- | ------------------------------------------------------------------------------------------ | | Text3D:textid | O ID da text label 3D a ser anexada. Retornado por [Create3DTextLabel](Create3DTextLabel). | | playerid | O ID do jogador ao qual deseja anexar a text label 3D. | -| OffsetX | O deslocamento (offset) X da text label 3D até ao jogador. | -| OffsetY | O deslocamento (offset) Y da text label 3D até ao jogador. | -| OffsetZ | O deslocamento (offset) Z da text label 3D até ao jogador. | +| Float:OffsetX | O deslocamento (offset) X da text label 3D até ao jogador. | +| Float:OffsetY | O deslocamento (offset) Y da text label 3D até ao jogador. | +| Float:OffsetZ | O deslocamento (offset) Z da text label 3D até ao jogador. | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md index 6422c033751..9d43b5929e4 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 @@ -13,9 +13,9 @@ Anexa uma Text Label 3D a um veículo específico. | ------------- | ---------------------------------------------------------------------------- | | Text3D:textid | O ID da 3D text label a ser anexada. | | vehicleid | O ID do veículo ao qual deseja anexar a 3D text label. | -| OffsetX | O deslocamento (offset) da coordenada X do veículo (O veículo é 0.0,0.0,0.0) | -| OffsetY | O deslocamento (offset) da coordenada Y do veículo (O veículo é 0.0,0.0,0.0) | -| OffsetZ | O deslocamento (offset) da coordenada Z do veículo (O veículo é 0.0,0.0,0.0) | +| Float:OffsetX | O deslocamento (offset) da coordenada X do veículo (O veículo é 0.0,0.0,0.0) | +| Float:OffsetY | O deslocamento (offset) da coordenada Y do veículo (O veículo é 0.0,0.0,0.0) | +| Float:OffsetZ | O deslocamento (offset) da coordenada Z do veículo (O veículo é 0.0,0.0,0.0) | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md index 7beaf16f228..9a23f9e8278 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md @@ -57,9 +57,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 [OnPlayerPickUpPlayerPickup](../callbacks/OnPlayerPickUpPlayerPickup) 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 [OnPlayerPickUpPlayerPickup](../callbacks/OnPlayerPickUpPlayerPickup) também. ::: 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 499a93e2b7f..c4856023cc1 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 @@ -9,12 +9,12 @@ tags: ["gangzone"] Cria uma gangzone (zona colorida no radar). -| Nome | Descrição | -| ---- | --------------------------------------------- | -| minx | A coordenada X para o lado oeste da gangzone. | -| miny | A coordenada Y para o lado sul da gangzone. | -| maxx | A coordenada X para o lado este da gangzone. | -| maxy | A coordenada Y para o lado norte da gangzone. | +| Nome | Descrição | +| ---------- | --------------------------------------------- | +| Float:minx | A coordenada X para o lado oeste da gangzone. | +| Float:miny | A coordenada Y para o lado sul da gangzone. | +| Float:maxx | A coordenada X para o lado este da gangzone. | +| Float:maxy | A coordenada Y para o lado norte da gangzone. | ## Retorno diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md index 41fbf831159..15d2067f325 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md @@ -12,16 +12,16 @@ tags: ["object"] Obtenha os dados do material de um índice do objeto. -| Nome | Descrição | -| ------------------ | --------------------------------------------------------------------------------------------------------------- | -| objectid | O ID do objeto. | -| materialIndex | O índice de material no objeto. (0 a 15) | -| &modelid | Uma variável na qual armazenar o modelo ID, passado por referência. | -| textureLibrary[] | Uma matriz na qual armazenar o nome da biblioteca de texturas, passado por referência. | -| textureLibrarySize | O tamanho da matriz que armazena o nome da biblioteca de texturas. | -| textureName[] | Uma matriz na qual armazenar o nome da [textura](https://models.open.mp/?cat=textures), passado por referência. | -| textureNameSize | O tamanho da matriz que armazena o nome da textura. | -| &materialColour | Uma variável na qual armazenar o materialColour, passada por referência. | +| Nome | Descrição | +| ------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| objectid | O ID do objeto. | +| materialIndex | O índice de material no objeto. (0 a 15) | +| &modelid | Uma variável na qual armazenar o modelo ID, passado por referência. | +| textureLibrary[] | Uma matriz na qual armazenar o nome da [biblioteca de texturas](https://models.open.mp/?cat=textures), passado por referência. | +| textureLibrarySize | O tamanho da matriz que armazena o nome da biblioteca de texturas. | +| textureName[] | Uma matriz na qual armazenar o nome da [textura](https://models.open.mp/?cat=textures), passado por referência. | +| textureNameSize | O tamanho da matriz que armazena o nome da textura. | +| &materialColour | Uma variável na qual armazenar o materialColour, passada por referência. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md index 4a0e1d5e5a2..e887c0b1335 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md @@ -12,17 +12,17 @@ tags: ["player", "object", "playerobject"] Obtenha os dados do material de um índice do objeto do jogador. -| Nome | Descrição | -| ------------------ | --------------------------------------------------------------------------------------------------------------- | -| playerid | O ID do jogador. | -| objectid | O ID do objeto do jogador. | -| materialIndex | O índice de material no objeto. (0 a 15) | -| &modelid | Uma variável na qual armazenar o modelo ID, passado por referência. | -| textureLibrary[] | Uma matriz na qual armazenar o nome da biblioteca de texturas, passado por referência. | -| textureLibrarySize | O tamanho da matriz que armazena o nome da biblioteca de texturas. | -| textureName[] | Uma matriz na qual armazenar o nome da [textura](https://models.open.mp/?cat=textures), passado por referência. | -| textureNameSize | O tamanho da matriz que armazena o nome da textura. | -| &materialColour | Uma variável na qual armazenar o materialColour, passada por referência. | +| Nome | Descrição | +| ------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| playerid | O ID do jogador. | +| objectid | O ID do objeto do jogador. | +| materialIndex | O índice de material no objeto. (0 a 15) | +| &modelid | Uma variável na qual armazenar o modelo ID, passado por referência. | +| textureLibrary[] | Uma matriz na qual armazenar o nome da [biblioteca de texturas](https://models.open.mp/?cat=textures), passado por referência. | +| textureLibrarySize | O tamanho da matriz que armazena o nome da biblioteca de texturas. | +| textureName[] | Uma matriz na qual armazenar o nome da [textura](https://models.open.mp/?cat=textures), passado por referência. | +| textureNameSize | O tamanho da matriz que armazena o nome da textura. | +| &materialColour | Uma variável na qual armazenar o materialColour, passada por referência. | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_AddPointToPath.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_AddPointToPath.md index bac810b50a7..22799eb2952 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_AddPointToPath.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_AddPointToPath.md @@ -12,13 +12,13 @@ tags: ["npc", "path"] Adiciona um waypoint a um caminho NPC. -| Nome | Descrição | -| --------- | ---------------------------------------------------- | -| pathid | O ID do caminho ao qual adicionar o ponto | -| x | A coordenada X do waypoint | -| y | A coordenada Y do waypoint | -| z | A coordenada Z do waypoint | -| stopRange | A distância do ponto em que se considera que atingiu | +| Nome | Descrição | +| --------------- | ---------------------------------------------------- | +| pathid | O ID do caminho ao qual adicionar o ponto | +| Float:x | A coordenada X do waypoint | +| Float:y | A coordenada Y do waypoint | +| Float:z | A coordenada Z do waypoint | +| Float:stopRange | A distância do ponto em que se considera que atingiu | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_AimAtPlayer.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_AimAtPlayer.md index 852170cdc90..14ffcce74ba 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_AimAtPlayer.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_AimAtPlayer.md @@ -16,15 +16,15 @@ Faz um NPC mirar em um jogador. | ------------------- | --------------------------------------------- | | npcid | O ID do NPC | | playerid | O ID do jogador a ser mirado | -| shoot | Seja para atirar enquanto mira | +| bool:shoot | Seja para atirar enquanto mira | | shootDelay | Atraso entre disparos em milissegundos | -| updateAngle | Se deve atualizar o ângulo de visão do NPC | -| offsetX | O deslocamento X da posição do alvo | -| offsetY | O deslocamento Y da posição do alvo | -| offsetZ | O deslocamento Z da posição do alvo | -| offsetFromX | O deslocamento X da posição de disparo do NPC | -| offsetFromY | O deslocamento Y da posição de disparo do NPC | -| offsetFromZ | O deslocamento Z da posição de disparo do NPC | +| bool:updateAngle | Se deve atualizar o ângulo de visão do NPC | +| Float:offsetX | O deslocamento X da posição do alvo | +| Float:offsetY | O deslocamento Y da posição do alvo | +| Float:offsetZ | O deslocamento Z da posição do alvo | +| Float:offsetFromX | O deslocamento X da posição de disparo do NPC | +| Float:offsetFromY | O deslocamento Y da posição de disparo do NPC | +| Float:offsetFromZ | O deslocamento Z da posição de disparo do NPC | | checkInBetweenFlags | Sinalizadores de verificação de entidade para detecção de colisão | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_ApplyAnimation.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_ApplyAnimation.md index 9550b745679..007a6476103 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_ApplyAnimation.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_ApplyAnimation.md @@ -17,11 +17,11 @@ Aplica uma animação específica a um NPC usando biblioteca e nome de animaçã | npcid | O ID do NPC | | animlib[] | O nome da biblioteca de animação | | animname[] | O nome da animação na biblioteca | -| delta | A velocidade da animação (normalmente 4.1) | -| loop | Se a animação deve repetir | -| lockX | Bloquear movimento no eixo X | -| lockY | Bloquear movimento no eixo Y | -| freeze | Congelar NPC no final da animação | +| Float:delta | A velocidade da animação (normalmente 4.1) | +| bool:loop | Se a animação deve repetir | +| bool:lockX | Bloquear movimento no eixo X | +| bool:lockY | Bloquear movimento no eixo Y | +| bool:freeze | Congelar NPC no final da animação | | time | Tempo em milissegundos para reproduzir a animação | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Destroy.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Destroy.md index a3efcd27552..7f7049f7132 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Destroy.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Destroy.md @@ -54,7 +54,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- Isso removerá completamente o NPC do servidor e o ID se tornará inválido após a destruição. +Isso removerá completamente o NPC do servidor e o ID se tornará inválido após a destruição. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetAnimation.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetAnimation.md index 805fc59b841..5555780b74e 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetAnimation.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetAnimation.md @@ -16,11 +16,11 @@ Obtém os dados de animação atuais de um NPC. | ------------ | ----------------------------------------- | | npcid | O ID do NPC | | &animationId | Variável para armazenar a animação ID | -| &delta | Variável para armazenar a velocidade da animação | -| &loop | Variável para armazenar se a animação faz loop | -| &lockX | Variável para armazenar o estado de bloqueio do eixo X | -| &lockY | Variável para armazenar o estado de bloqueio do eixo Y | -| &freeze | Variável para armazenar o estado de congelamento no final | +| &Float:delta | Variável para armazenar a velocidade da animação | +| &bool:loop | Variável para armazenar se a animação faz loop | +| &bool:lockX | Variável para armazenar o estado de bloqueio do eixo X | +| &bool:lockY | Variável para armazenar o estado de bloqueio do eixo Y | +| &bool:freeze | Variável para armazenar o estado de congelamento no final | | &time | Variável para armazenar o tempo de animação | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetNodePointPosition.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetNodePointPosition.md index abc7f5c52d9..cb1fffa44f5 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetNodePointPosition.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetNodePointPosition.md @@ -15,9 +15,9 @@ Obtém a posição do ponto atual em um nó NPC. | Nome | Descrição | | ------ | ---------------------------------- | | nodeid | O ID do nó | -| &x | Variável para armazenar a coordenada X | -| &y | Variável para armazenar a coordenada Y | -| &z | Variável para armazenar a coordenada Z | +| &Float:x | Variável para armazenar a coordenada X | +| &Float:y | Variável para armazenar a coordenada Y | +| &Float:z | Variável para armazenar a coordenada Z | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetPathPoint.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetPathPoint.md index 415063602dc..51ba48abddd 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetPathPoint.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetPathPoint.md @@ -16,10 +16,10 @@ Obtém as coordenadas e o intervalo de parada de um ponto específico em um cami | ----------- | ---------------------------------------- | | pathid | O ID do caminho | | point_index | O índice do ponto (começando em 0) | -| &x | Variável para armazenar a coordenada X | -| &y | Variável para armazenar a coordenada Y | -| &z | Variável para armazenar a coordenada Z | -| &stopRange | Variável para armazenar o intervalo de parada | +| &Float:x | Variável para armazenar a coordenada X | +| &Float:y | Variável para armazenar a coordenada Y | +| &Float:z | Variável para armazenar a coordenada Z | +| &Float:stopRange | Variável para armazenar o intervalo de parada | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetPos.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetPos.md index b19a77b260f..f95228e3ba1 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetPos.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetPos.md @@ -50,7 +50,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- Todos os parâmetros de coordenadas são passados por referência e serão modificados. +Todos os parâmetros de coordenadas são passados por referência e serão modificados. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetSurfingOffsets.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetSurfingOffsets.md index 39daede1b8b..14330fec752 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetSurfingOffsets.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetSurfingOffsets.md @@ -15,9 +15,9 @@ Obtém o deslocamento de navegação para um NPC. | Nome | Descrição | | ----- | ----------------------------------------------------- | | npcid | O ID do NPC | -| &x | Uma variável para armazenar o deslocamento X, passada por referência | -| &y | Uma variável para armazenar o deslocamento Y, passada por referência | -| &z | Uma variável para armazenar o deslocamento Z, passada por referência | +| &Float:x | Uma variável para armazenar o deslocamento X, passada por referência | +| &Float:y | Uma variável para armazenar o deslocamento Y, passada por referência | +| &Float:z | Uma variável para armazenar o deslocamento Z, passada por referência | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetVelocity.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetVelocity.md index 15a50e11807..0a08057bb5a 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetVelocity.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetVelocity.md @@ -50,7 +50,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- Todos os parâmetros de velocidade são passados por referência e serão modificados +Todos os parâmetros de velocidade são passados por referência e serão modificados ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_HasPathPointInRange.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_HasPathPointInRange.md index 88820791e26..d67af9d9505 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_HasPathPointInRange.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_HasPathPointInRange.md @@ -15,10 +15,10 @@ Verifica se um caminho tem algum ponto dentro do intervalo especificado a partir | Nome | Descrição | | ------ | ------------------------------------------ | | pathId | O ID do caminho a ser verificado | -| x | A coordenada X da posição central | -| y | A coordenada Y da posição central | -| z | A coordenada Z da posição central | -| radius | O raio para verificar pontos de caminho dentro de | +| Float:x | A coordenada X da posição central | +| Float:y | A coordenada Y da posição central | +| Float:z | A coordenada Z da posição central | +| Float:radius | O raio para verificar pontos de caminho dentro de | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_MoveByPath.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_MoveByPath.md index 177bb7b5383..bd886516402 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_MoveByPath.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_MoveByPath.md @@ -17,8 +17,8 @@ Faz com que um NPC siga um caminho predefinido com várias opções de movimento | npcid | O ID do NPC | | pathid | O ID do caminho a seguir | | moveType | O tipo de movimento (padrão: NPC_MOVE_TYPE_JOG) | -| moveSpeed | Velocidade de movimento (padrão: NPC_MOVE_SPEED_AUTO) | -| reversed | Se deve seguir o caminho inverso (padrão: false) | +| Float:moveSpeed | Velocidade de movimento (padrão: NPC_MOVE_SPEED_AUTO) | +| bool:reversed | Se deve seguir o caminho inverso (padrão: false) | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetAnimation.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetAnimation.md index a8108405482..3fa3b9755a4 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetAnimation.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetAnimation.md @@ -16,11 +16,11 @@ Define uma animação para um NPC usando a animação ID. | ----------- | ------------------------------------------------- | | npcid | O ID do NPC | | animationid | A animação ID a ser definida | -| delta | Velocidade de animação (normalmente 4.1) | -| loop | Se a animação deve repetir | -| lockX | Bloquear movimento no eixo X durante a animação | -| lockY | Bloquear movimento no eixo Y durante a animação | -| freeze | Congelar o NPC após a animação | +| Float:delta | Velocidade de animação (normalmente 4.1) | +| bool:loop | Se a animação deve repetir | +| bool:lockX | Bloquear movimento no eixo X durante a animação | +| bool:lockY | Bloquear movimento no eixo Y durante a animação | +| bool:freeze | Congelar o NPC após a animação | | time | Duração da animação em milissegundos (0 = infinito) | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetArmour.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetArmour.md index fee7967cf23..0423837f7ae 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetArmour.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetArmour.md @@ -15,7 +15,7 @@ Define o nível de armadura de um NPC. | Nome | Descrição | | ------ | ----------------------------- | | npcid | O ID do NPC | -| armour | A quantidade de armadura (0.0-100.0) | +| Float:armour | A quantidade de armadura (0.0-100.0) | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetHealth.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetHealth.md index 170d9004b17..daf688c45ac 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetHealth.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetHealth.md @@ -15,7 +15,7 @@ Define o valor de integridade de um NPC. | Nome | Descrição | | ------ | ----------------------- | | npcid | O ID do NPC | -| health | O valor de integridade a ser definido | +| Float:health | O valor de integridade a ser definido | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetSurfingOffsets.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetSurfingOffsets.md index 322337e9129..b41aab247e9 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetSurfingOffsets.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetSurfingOffsets.md @@ -12,12 +12,12 @@ tags: ["npc", "surfing"] Define o deslocamento de navegação para um NPC. -| Nome | Descrição | -| ----- | ---------------- | -| npcid | O ID do NPC | -| x | O deslocamento X | -| y | O deslocamento Y | -| z | O deslocamento Z | +| Nome | Descrição | +| ------- | ---------------- | +| npcid | O ID do NPC | +| Float:x | O deslocamento X | +| Float:y | O deslocamento Y | +| Float:z | O deslocamento Z | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleHealth.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleHealth.md index 270c61e8310..ea7b688c477 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleHealth.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleHealth.md @@ -15,7 +15,7 @@ Define a integridade do veículo de um NPC. | Nome | Descrição | | ------ | ----------------------------- | | npcid | O ID do NPC | -| health | O valor de saúde (0.0-1000.0) | +| Float:health | O valor de saúde (0.0-1000.0) | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleTrainSpeed.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleTrainSpeed.md index 84bc540921b..6cded1d08d3 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleTrainSpeed.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleTrainSpeed.md @@ -15,7 +15,7 @@ Define a velocidade do veículo ferroviário de um NPC. | Nome | Descrição | | ----- | ---------------------- | | npcid | O ID do NPC | -| speed | A velocidade do trem a ser definida | +| Float:speed | A velocidade do trem a ser definida | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetWeaponAccuracy.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetWeaponAccuracy.md index c45a25fbb4c..b1257dfb89c 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetWeaponAccuracy.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetWeaponAccuracy.md @@ -16,7 +16,7 @@ Define a precisão de uma arma específica para um NPC. | -------- | --------------------------------- | | npcid | O ID do NPC | | weaponid | A arma ID para definir a precisão | -| accuracy | O valor de precisão (0.0 a 1.0) | +| Float:accuracy | O valor de precisão (0.0 a 1.0) | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Shoot.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Shoot.md index 0318193cd5a..faee5dcaa16 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Shoot.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Shoot.md @@ -18,13 +18,13 @@ Faz um NPC disparar um tiro de arma. | weapon | A arma ID para usar para atirar | | hitId | O ID da entidade alvo sendo baleada | | hitType | O tipo de entidade atingida (jogador, NPC, veículo, etc.) | -| endPointX | Coordenada X do ponto final do marcador | -| endPointY | Coordenada Y do ponto final do marcador | -| endPointZ | Coordenada Z do ponto final do marcador | -| offsetX | Deslocamento X do ponto de acerto | -| offsetY | Deslocamento Y do ponto de acerto | -| offsetZ | Deslocamento Z do ponto de acerto | -| isHit | Se o tiro realmente atinge o alvo | +| Float:endPointX | Coordenada X do ponto final do marcador | +| Float:endPointY | Coordenada Y do ponto final do marcador | +| Float:endPointZ | Coordenada Z do ponto final do marcador | +| Float:offsetX | Deslocamento X do ponto de acerto | +| Float:offsetY | Deslocamento Y do ponto de acerto | +| Float:offsetZ | Deslocamento Z do ponto de acerto | +| bool:isHit | Se o tiro realmente atinge o alvo | | checkInBetweenFlags | Sinalizadores de verificação de entidade (padrão: NPC_ENTITY_CHECK_ALL) | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Spawn.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Spawn.md index b65685b1c7c..fdabd4fcccc 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Spawn.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Spawn.md @@ -57,7 +57,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- O NPC deve ser criado com [NPC_Create](NPC_Create) antes do spawn. +O NPC deve ser criado com [NPC_Create](NPC_Create) antes do spawn. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_StartPlayback.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_StartPlayback.md index 5d1b767c7e8..2a5309086a0 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_StartPlayback.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_StartPlayback.md @@ -16,13 +16,13 @@ Inicia a reprodução de um arquivo de gravação para um NPC por nome de arquiv | ------------ | --------------------------------------------- | | npcid | O ID do NPC | | recordName[] | O nome do arquivo da gravação a ser reproduzida | -| autoUnload | Se deve descarregar a gravação quando terminar | -| startX | Iniciando coordenada X | -| startY | Coordenada Y inicial | -| startZ | Coordenada Z inicial | -| rotX | Iniciando rotação X | -| rotY | Iniciando rotação Y | -| rotZ | Iniciando rotação Z | +| bool:autoUnload | Se deve descarregar a gravação quando terminar | +| Float:startX | Iniciando coordenada X | +| Float:startY | Coordenada Y inicial | +| Float:startZ | Coordenada Z inicial | +| Float:rotX | Iniciando rotação X | +| Float:rotY | Iniciando rotação Y | +| Float:rotZ | Iniciando rotação Z | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_StartPlaybackEx.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_StartPlaybackEx.md index 117f2b43576..af4159adcfc 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_StartPlaybackEx.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_StartPlaybackEx.md @@ -16,13 +16,13 @@ Inicia a reprodução de um NPC usando uma gravação pré-carregada ID com opç | ---------- | ---------------------------------------------- | | npcid | O ID do NPC | | recordId | A gravação pré-carregada ID | -| autoUnload | Se deseja descarregar automaticamente após a reprodução | -| startX | Deslocamento X da posição de gravação | -| startY | Deslocamento Y da posição de gravação | -| startZ | Deslocamento Z da posição de gravação | -| rotX | Deslocamento da rotação X | -| rotY | Deslocamento de rotação Y | -| rotZ | Deslocamento da rotação Z | +| bool:autoUnload | Se deseja descarregar automaticamente após a reprodução | +| Float:startX | Deslocamento X da posição de gravação | +| Float:startY | Deslocamento Y da posição de gravação | +| Float:startZ | Deslocamento Z da posição de gravação | +| Float:rotX | Deslocamento da rotação X | +| Float:rotY | Deslocamento de rotação Y | +| Float:rotZ | Deslocamento da rotação Z | ## Retornos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md index 11a175e254f..f6c3fcf7baf 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md @@ -14,9 +14,9 @@ Define a posição de um ator. | Nome | Descrição | | ------- | ---------------------------------------------------------------------------- | | actorid | O ID do ator a definir a posição. Retornado pelo [CreateActor](CreateActor). | -| X | A coordenada X na qual posicionar o ator. | -| Y | A coordenada Y na qual posicionar o ator. | -| Z | A coordenada Z na qual posicionar o ator. | +| Float:X | A coordenada X na qual posicionar o ator. | +| Float:Y | A coordenada Y na qual posicionar o ator. | +| Float:Z | A coordenada Z na qual posicionar o ator. | ## Retorno 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 642e03f31f9..aff65307ce6 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 @@ -15,7 +15,7 @@ Substitua a textura de um objeto pela textura de outro modelo do jogo. | objectid | O ID do objeto cuja textura será alterada | | materialIndex | O índice de material no objeto a ser alterado (0 a 15) | | modelid | O modelid no qual a textura de substituição está localizada. Use 0 para alfa. Use -1 para alterar a cor do material sem alterar a textura. | -| const textureLibrary[] | O nome do arquivo txd que contém a textura de substituição (use "none" se não for necessário) | +| const textureLibrary[] | O nome do [arquivo txd](https://models.open.mp/?cat=textures) que contém a textura de substituição (use "none" se não for necessário) | | const textureName[] | O nome da [textura](https://models.open.mp/?cat=textures) a ser usada como substituição (use "none" se não for necessário) | | materialColour | A cor do objeto a ser definida, como um número inteiro ou hexadecimal no formato de cor **ARGB**. Usar **0** mantém a cor do material existente. | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md index c6893739049..3ee197142b6 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md @@ -18,9 +18,9 @@ Permite que as colisões de câmeras com objetos recém-criados sejam desabilita ## Retornos -Nota +**true** – A função foi executada com sucesso. -Esta função afeta apenas a colisão de câmeras de objetos criados AFTER seu uso - ela não alterna as colisões de câmeras de objetos existentes. +**false** - Falha na execução da função. ## Exemplos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCollision.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCollision.md index cd32a47d262..3e24f9be6f9 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCollision.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCollision.md @@ -18,9 +18,9 @@ Permite que as colisões de câmeras com objetos recém-criados sejam desabilita ## Retornos -Nota +**true** – A função foi executada com sucesso. -Esta função afeta apenas a colisão de câmeras de objetos criados AFTER seu uso - ela não alterna as colisões de câmeras de objetos existentes. +**false** - Falha na execução da função. ## Exemplos diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md index ae85c4d7221..5e2e527812d 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md @@ -46,7 +46,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - Se a saúde de um jogador estiver definida como 0.0 ou um valor negativo, ele morrerá instantaneamente. -- Se a saúde de um jogador estiver abaixo de 10.0 ou acima de 98303.0, sua barra de saúde piscará. +- Se a saúde de um jogador estiver abaixo de 10.0 ou acima de 32768.0, sua barra de saúde piscará. ::: 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 a408dad48c2..44db7ec1102 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 @@ -16,7 +16,7 @@ Substitua a textura de um objeto do jogador pela textura de outro modelo do jogo | objectid | O ID do objeto para substituir a textura de | | materialIndex | O índice de material no objeto a ser alterado (0 a 15) | | modelid | O modelid no qual a textura de substituição está localizada. Use 0 para alfa. Use -1 para alterar a cor do material sem alterar a textura existente. | -| const textureLibrary[] | O nome do arquivo txd que contém a textura de substituição (use "none" se não for necessário) | +| const textureLibrary[] | O nome do [arquivo txd](https://models.open.mp/?cat=textures) que contém a textura de substituição (use "none" se não for necessário) | | const textureName[] | O nome da [textura](https://models.open.mp/?cat=textures) a ser usada como substituição (use "none" se não for necessário) | | materialColour | A cor do objeto a ser definida, como um número inteiro ou hexadecimal no **formato ARGB**. Usar **0** mantém a cor do material existente. | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md index 35174ee2ff9..9abe40c03d3 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md @@ -37,7 +37,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - Se [TogglePlayerClock](TogglePlayerClock) estiver ativado, o clima mudará lentamente com o tempo, em vez de mudar instantaneamente. -- Existem apenas 21 climas IDs válidos no jogo (0 - 20), porém o jogo não possui nenhuma forma de verificação de alcance. +- Existem apenas 23 climas IDs válidos no jogo (0 - 22), porém o jogo não possui nenhuma forma de verificação de alcance. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehiclePos.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehiclePos.md index b0f4d561081..fe31df4abb6 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehiclePos.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetVehiclePos.md @@ -34,9 +34,7 @@ SetVehiclePos(vehicleid, 0.0, 0.0, 3.0); :::warning -**Erros conhecidos:** - -- Um veículo vazio não cairá após ser teletransportado para o ar! +**Erros conhecidos:** Um veículo vazio não cairá após ser teletransportado para o ar! ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md index c9f7f2e86de..c6ae687e2ec 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md @@ -36,7 +36,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - Se [TogglePlayerClock](TogglePlayerClock) estiver ativado, o clima mudará lentamente com o tempo, em vez de mudar instantaneamente. -- Existem apenas 21 climas IDs válidos no jogo (0 - 20), porém o jogo não possui nenhuma forma de verificação de alcance. +- Existem apenas 23 climas IDs válidos no jogo (0 - 22), porém o jogo não possui nenhuma forma de verificação de alcance. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md index f8355feb052..9f60e25cf1a 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md @@ -32,7 +32,7 @@ if (existproperty(0, "", 123984334)) :::tip -Recomenda-se utilizar o plugin PVars/SVars ou GVar no lugar desses nativos por serem muito lentos. +Recomenda-se utilizar PVars/SVars ou o [plugin GVar](https://github.com/samp-incognito/samp-gvar-plugin) no lugar desses nativos por serem muito lentos. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md index 583c273fdab..d91a79095d3 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md @@ -36,7 +36,7 @@ print(value); :::tip -Recomenda-se utilizar o plugin PVars/SVars ou GVar no lugar desses nativos por serem muito lentos. +Recomenda-se utilizar PVars/SVars ou o [plugin GVar](https://github.com/samp-incognito/samp-gvar-plugin) no lugar desses nativos por serem muito lentos. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md index 495eebbac5c..4c91991eadd 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md @@ -50,7 +50,7 @@ setproperty(.value = 123984334, .string = ":)"); :::tip -Recomenda-se utilizar o plugin PVars/SVars ou GVar no lugar desses nativos por serem muito lentos. +Recomenda-se utilizar PVars/SVars ou o [plugin GVar](https://github.com/samp-incognito/samp-gvar-plugin) no lugar desses nativos por serem muito lentos. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md index 6b3e902d121..a1de59120fd 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md @@ -133,7 +133,7 @@ playerid = 0, dialogid = YOUR_DIALOGID, response = 0, listitem = 1, inputtext = :::note -- Similar ao **DIALOG_STYLE_INPUT**. +Similar ao **DIALOG_STYLE_INPUT**. ::: @@ -179,7 +179,7 @@ Este estilo foi adicionado na versão **SA-MP 0.3.7** e não funcionará em vers :::note -- Similar ao **DIALOG_STYLE_LIST**. +Similar ao **DIALOG_STYLE_LIST**. ::: @@ -205,7 +205,7 @@ Pistol\t$1000\t50", :::note -- **inputtext** é o texto existente na _primeira coluna_ do item **listitem** selecionado, sem as cores. +**inputtext** é o texto existente na _primeira coluna_ do item **listitem** selecionado, sem as cores. ::: @@ -227,7 +227,7 @@ Este estilo foi adicionado na versão **SA-MP 0.3.7** e não funcionará em vers :::note -- Similar ao **DIALOG_STYLE_LIST**. +Similar ao **DIALOG_STYLE_LIST**. ::: @@ -254,7 +254,7 @@ Item 1 Column 1\tItem 1 Column 2\tItem 1 Column 3\n\ :::note -- **inputtext** é o texto contido na _primeira coluna_ do item **listitem** selecionado, sem as possíveis cores. +**inputtext** é o texto contido na _primeira coluna_ do item **listitem** selecionado, sem as possíveis cores. ::: diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md index 020760f8e99..47e07b0e727 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md @@ -52,10 +52,10 @@ Esta página contém todas as armas do jogo usadas por [OnPlayerDeath](../callba | ![](https://assets.open.mp/assets/images/weaponIcons/flame-Thrower.png)
Flamethrower | ![](https://assets.open.mp/assets/images/deathIcons/death-flameThrower.gif) | WEAPON_FLAMETHROWER | 37 | 7 | 361 | 500 (mostra no jogo como 50) | Não | Isso é usado para causar danos por fogo, mesmo quando o fogo é criado pela explosão de um foguete ou molotov. O fogo produzido não sincroniza entre os jogadores | | ![](https://assets.open.mp/assets/images/weaponIcons/minigun.png)
Minigun | ![](https://assets.open.mp/assets/images/deathIcons/death-minigun.gif) | WEAPON_MINIGUN | 38 | 7 | 362 | 500 | Não | - | | ![](https://assets.open.mp/assets/images/weaponIcons/satchelCharge.png)
Satchel Explosives | ![](https://assets.open.mp/assets/images/deathIcons/death-satchelCharge.gif) | WEAPON_SATCHEL | 39 | 8 | 363 | 1 | Não | Sincronizado apenas para jogadores que foram transmitidos quando as mochilas foram lançadas | -| ![](https://assets.open.mp/assets/images/weaponIcons/detonator.png)
Bomb | ![](https://assets.open.mp/assets/images/deathIcons/death-detonator.gif) | WEAPON_BOMB | 40 | 12 | 364 | - | - | Dado automaticamente quando os jogadores lançam uma carga satchel (consulte ID 39) (omitir das verificações anti-cheat). Também detona bombas lançadas por outros jogadores | +| ![](https://assets.open.mp/assets/images/weaponIcons/detonator.png)
Bomb | ![](https://assets.open.mp/assets/images/deathIcons/death-detonator.gif) | WEAPON_BOMB | 40 | 12 | 364 | - | - | Dado automaticamente quando os jogadores lançam uma carga satchel (consulte ID 39). Também detona bombas lançadas por outros jogadores | | ![](https://assets.open.mp/assets/images/weaponIcons/spraycan.png)
Spray Can | ![](https://assets.open.mp/assets/images/deathIcons/death-sprayCan.gif) | WEAPON_SPRAYCAN | 41 | 9 | 365 | 500 | Não | Jogadores que são pulverizados estrangulam | | ![](https://assets.open.mp/assets/images/weaponIcons/fireExtinguisher.png)
Fire Extinguisher | ![](https://assets.open.mp/assets/images/deathIcons/death-fireExtinguisher.gif) | WEAPON_FIREEXTINGUISHER | 42 | 9 | 366 | 500 | Não | Jogadores que são pulverizados estrangulam | -| ![](https://assets.open.mp/assets/images/weaponIcons/camera.png)
Camera | ![](https://assets.open.mp/assets/images/deathIcons/death-camera.gif) | WEAPON_CAMERA | 43 | 9 | 367 | 36 | Não | Salva fotos na galeria do jogador se habilitado através do menu de pausa (Meus Documentos\GTA San Andreas User Files\Gallery) | +| ![](https://assets.open.mp/assets/images/weaponIcons/camera.png)
Camera | ![](https://assets.open.mp/assets/images/deathIcons/death-camera.gif) | WEAPON_CAMERA | 43 | 9 | 367 | 36 | Não | Salva fotos na galeria do jogador se habilitado através do menu de pausa (`Meus Documentos\GTA San Andreas User Files\Gallery`) | | ![](https://assets.open.mp/assets/images/weaponIcons/nightVisGoggles.png)
Night Vision | ![](https://assets.open.mp/assets/images/deathIcons/death-nightVisGoggles.gif) | WEAPON_NIGHT_VISION_GOGGLES | 44 | 11 | 368 | - | - | Efeitos visuais são exibidos para todos os jogadores (corrigido no open.mp) | | ![](https://assets.open.mp/assets/images/weaponIcons/thermalGoggles.png)
Thermal Goggles | ![](https://assets.open.mp/assets/images/deathIcons/death-thermalGoggles.gif) | WEAPON_THERMAL_GOGGLES | 45 | 11 | 369 | - | - | Efeitos visuais são exibidos para todos os jogadores (corrigido no open.mp) | | ![](https://assets.open.mp/assets/images/weaponIcons/parachute.png)
Parachute | ![](https://assets.open.mp/assets/images/deathIcons/death-parachute.gif) | WEAPON_PARACHUTE | 46 | 11 | 371 | - | - | Os jogadores morrerão se forem teletransportados enquanto mergulham de pára-quedas (pode ser corrigido usando [ResetPlayerWeapons](../functions/ResetPlayerWeapons)). Pára-quedas são dados ao saltar da aeronave (omitir das verificações anti-cheat) | 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 608b1be1eed..4557cea8c8a 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 @@ -22,17 +22,17 @@ Eu vejo muitas pessoas perguntarem questões completamente validas e terminarem Dito isso, separei alguns sites ótimos para perguntas frequentes e tutorias além da documentação oficial do C/++. -cprogramming.com +[cprogramming.com](https://www.cprogramming.com/) -cplusplus.com +[cplusplus.com](https://cplusplus.com/) -learncpp.com +[learncpp.com](https://www.learncpp.com/) Se você precisar de assistencia com C/++, você pode perguntar nesses foruns: -dreamincode.net +[dreamincode.net](https://web.archive.org/web/20220105235917/https://www.dreamincode.net/) (arquivado) -stackoverflow.com +[stackoverflow.com](https://stackoverflow.com/) ## FAQ 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 96e90041aa7..d2ee2f65646 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 @@ -1034,16 +1034,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; -| 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 +| 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~`). Consulte a [lista de teclas](../scripting/resources/keys). | ### Especificador de formato 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 602cf9625d9..f1b3c37cda0 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 @@ -33,7 +33,7 @@ public OnPlayerUpdate(playerid) OnPlayerChangeWeapon(playerid, GetPVarInt(playerid, "iCurrentWeapon"), iCurWeap); SetPVarInt(playerid, "iCurrentWeapon", iCurWeap);//Actualizează variabila armă } - return 1; // Trimite această actualizare altor jucători. + return 1; // Trimite această actualizare altor jucători } stock OnPlayerChangeWeapon(playerid, oldweapon, newweapon) @@ -60,8 +60,8 @@ public OnPlayerUpdate(playerid) if (fHealth != GetPVarFloat(playerid, "faPlayerHealth")) { - // Sănătatea jucătorului s-a schimbat de la ultima actualizare -> server, așa că, evident, acesta este lucrul actualizat. - // Să facem verificări suplimentare să vedem dacă și-a pierdut sau a câștigat sănătatea, trișare anti-sănătate? ;) + // Sănătatea jucătorului s-a schimbat de la ultima actualizare -> server, așa că, evident, acesta este lucrul actualizat + // Să facem verificări suplimentare să vedem dacă și-a pierdut sau a câștigat sănătatea if (fHealth > GetPVarFloat(playerid, "faPlayerHealth")) { diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md index be456932cf0..8885b5f17b4 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md @@ -14,12 +14,12 @@ Acest callback este apelat atunci când clientul unui jucător actualizează/sin | vehicleid | ID-ul jucătorului care a trimis o actualizare de sincronizare a poziției vehiculului. | | playerid | ID-ul jucătorului care a trimis o sincronizare a poziției vehiculului | | passenger_seat | ID-ul scaunului dacă jucătorul este pasager. 0=nu în vehicul, 1=pasager din față, 2=spate stânga 3=spate dreapta 4+ este pentru autocar/autobuz etc. cu multe locuri pentru pasageri. | -| new_x | Noua coordonată X a vehiculului. Acest parametru a fost adăugat în 0.3z. Lasă-l afară dacă folosești o versiune anterioară. | -| new_y | Noua coordonată Y a vehiculului. Acest parametru a fost adăugat în 0.3z. Lasă-l afară dacă folosești o versiune anterioară. | -| new_z | Noua coordonată Z a vehiculului. Acest parametru a fost adăugat în 0.3z. Lasă-l afară dacă folosești o versiune anterioară. | -| vel_x | Noua viteză X a vehiculului. Acest parametru a fost adăugat în 0.3z R4. Lasă-l afară dacă folosești o versiune anterioară. | -| vel_y | Noua viteză X a vehiculului. Acest parametru a fost adăugat în 0.3z R4. Lasă-l afară dacă folosești o versiune anterioară. | -| vel_z | Noua viteză X a vehiculului. Acest parametru a fost adăugat în 0.3z R4. Lasă-l afară dacă folosești o versiune anterioară. | +| Float:new_x | Noua coordonată X a vehiculului. Acest parametru a fost adăugat în 0.3z. Lasă-l afară dacă folosești o versiune anterioară. | +| Float:new_y | Noua coordonată Y a vehiculului. Acest parametru a fost adăugat în 0.3z. Lasă-l afară dacă folosești o versiune anterioară. | +| Float:new_z | Noua coordonată Z a vehiculului. Acest parametru a fost adăugat în 0.3z. Lasă-l afară dacă folosești o versiune anterioară. | +| Float:vel_x | Noua viteză X a vehiculului. Acest parametru a fost adăugat în 0.3z R4. Lasă-l afară dacă folosești o versiune anterioară. | +| Float:vel_y | Noua viteză X a vehiculului. Acest parametru a fost adăugat în 0.3z R4. Lasă-l afară dacă folosești o versiune anterioară. | +| Float:vel_z | Noua viteză X a vehiculului. Acest parametru a fost adăugat în 0.3z R4. Lasă-l afară dacă folosești o versiune anterioară. | ## Returnări 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 719f7f430fa..bb1b47a9543 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 @@ -1127,16 +1127,14 @@ 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) | -| `~<~` | Săgeată la stânga (gri) | -| `~>~` | Săgeată dreapta (gri) | -| `]` | Afișează simbolul `*` (numai în stilul text 3, 4 și 5) | -| `~k~` | maparea tastelor tastaturii (de ex. `~ k ~~ VEHICLE_TURRETLEFT ~` și `~ k ~~ PED_FIREWEAPON ~`). Căutați aici o listă de chei | - -maparea tastelor tastaturii (de ex. `~ k ~~ VEHICLE_TURRETLEFT ~` și `~ k ~~ PED_FIREWEAPON ~`). Căutați aici o listă de chei +| Cod | Descriere | +| ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `~u~` | Săgeată sus (gri) | +| `~d~` | Săgeată în jos (gri) | +| `~<~` | Săgeată la stânga (gri) | +| `~>~` | Săgeată dreapta (gri) | +| `]` | Afișează simbolul `*` (numai în stilul text 3, 4 și 5) | +| `~k~` | maparea tastelor tastaturii (de ex. `~ k ~~ VEHICLE_TURRETLEFT ~` și `~ k ~~ PED_FIREWEAPON ~`). Consultați [lista tastelor](../scripting/resources/keys). | ### Specificator format diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/client/ClientCommands.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/client/ClientCommands.md index cf9036fec0a..70b33dc448f 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/client/ClientCommands.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/client/ClientCommands.md @@ -1,6 +1,6 @@ --- -title: "Клиентские комманды" -sidebar_label: "Клиентские комманды" +title: "Клиентские команды" +sidebar_label: "Клиентские команды" description: Список всех клиентских команд. tags: ["client", "commands"] --- 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 d5694a9666d..feda5557804 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 @@ -37,7 +37,7 @@ public OnPlayerUpdate(playerid) CallLocalFunction("OnPlayerWeaponChange", "iii", playerid, gPlayerCurrentWeapon[playerid], weapon); gPlayerCurrentWeapon[playerid] = weapon; // Ажурирај променљиву за оружје } - return 1; // Пошаљите ово ажурирање другим играчима. + return 1; // Пошаљите ово ажурирање другим играчима } forward OnPlayerWeaponChange(playerid, WEAPON:oldWeapon, WEAPON:newWeapon); @@ -67,8 +67,8 @@ public OnPlayerUpdate(playerid) if (fHealth != GetPVarFloat(playerid, "faPlayerHealth")) { - // Здравље играча је промењено од последњег ажурирања -> серверу, тако да је очигледно то оно што је ажурирано. - // Направимо даље провере да видимо да ли је изгубио или добио здравље, анти-чеат на здравље? ; + // Здравље играча је промењено од последњег ажурирања -> серверу, тако да је очигледно то оно што је ажурирано + // Направимо даље провере да видимо да ли је изгубио или добио здравље if (fHealth > GetPVarFloat(playerid, "faPlayerHealth")) 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 e337da9e3ab..fcb8f76f5a4 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 @@ -33,7 +33,7 @@ public OnPlayerUpdate(playerid) OnPlayerChangeWeapon(playerid, GetPVarInt(playerid, "iCurrentWeapon"), iCurWeap); SetPVarInt(playerid, "iCurrentWeapon", iCurWeap);//Update the weapon variable } - return 1; // Send this update to other players. + return 1; // Send this update to other players } stock OnPlayerChangeWeapon(playerid, oldweapon, newweapon) @@ -60,8 +60,8 @@ public OnPlayerUpdate(playerid) if (fHealth != GetPVarFloat(playerid, "faPlayerHealth")) { - // Player health has changed since the last update -> server, so obviously thats the thing updated. - // Lets do further checks see if he's lost or gained health, anti-health cheat? ;) + // Player health has changed since the last update -> server, so obviously thats the thing updated + // Lets do further checks see if he's lost or gained health if (fHealth > GetPVarFloat(playerid, "faPlayerHealth")) { diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md index da1b56683cc..f86fb60e2ab 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md @@ -14,12 +14,12 @@ This callback is called when a player's client updates/syncs the position of a v | vehicleid | The ID of the vehicle that's position was updated. | | playerid | The ID of the player that sent a vehicle position sync update. | | passenger_seat | The ID of the seat if the player is a passenger. 0=not in vehicle, 1=front passenger, 2=backleft 3=backright 4+ is for coach/bus etc. with many passenger seats. | -| new_x | The new X coordinate of the vehicle. | -| new_y | The new Y coordinate of the vehicle. | -| new_z | The new Z coordinate of the vehicle. | -| vel_x | The new X velocity of the vehicle. | -| vel_y | The new Y velocity of the vehicle. | -| vel_z | The new Z velocity of the vehicle. | +| Float:new_x | The new X coordinate of the vehicle. | +| Float:new_y | The new Y coordinate of the vehicle. | +| Float:new_z | The new Z coordinate of the vehicle. | +| Float:vel_x | The new X velocity of the vehicle. | +| Float:vel_y | The new Y velocity of the vehicle. | +| Float:vel_z | The new Z velocity of the vehicle. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md index 80cb2b9b14f..a8b940f393c 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md @@ -15,17 +15,17 @@ tags: ["actor", "animation"] Apply an animation to an actor. -| Name | Description | -| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| actorid | The ID of the actor to apply the animation to. | -| animlib[] | The animation library from which to apply an animation. | -| animname[] | The name of the animation to apply, within the specified library. | -| fDelta | The speed to play the animation (use 4.1). | -| loop | If set to **1**, the animation will loop. If set to **0**, the animation will play once. | -| lockx | If set to **0**, the actor is returned to their old X coordinate once the animation is complete (for animations that move the actor such as walking). **1** will not return them to their old position. | -| locky | Same as above but for the Y axis. Should be kept the same as the previous parameter. | -| freeze | Setting this to **1** will freeze an actor at the end of the animation. **0** will not. | -| time | Timer in milliseconds. For a never-ending loop it should be **0**. | +| Name | Description | +| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| actorid | The ID of the actor to apply the animation to. | +| animlib[] | The animation library from which to apply an animation. | +| animname[] | The name of the animation to apply, within the specified library. | +| Float:fDelta | The speed to play the animation (use 4.1). | +| bool:loop | If set to **1**, the animation will loop. If set to **0**, the animation will play once. | +| bool:lockx | If set to **0**, the actor is returned to their old X coordinate once the animation is complete (for animations that move the actor such as walking). **1** will not return them to their old position. | +| bool:locky | Same as above but for the Y axis. Should be kept the same as the previous parameter. | +| bool:freeze | Setting this to **1** will freeze an actor at the end of the animation. **0** will not. | +| time | Timer in milliseconds. For a never-ending loop it should be **0**. | ## ส่งคืน 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 cbb7da81855..73bad8ca911 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 @@ -9,18 +9,18 @@ tags: ["player", "animation"] Apply an animation to a player. -| Name | Description | -| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| playerid | The ID of the player to apply the animation to. | -| animlib[] | The animation library from which to apply an animation. | -| animname[] | The name of the animation to apply, within the specified library. | -| fDelta | The speed to play the animation (use 4.1). | -| loop | If set to **1**, the animation will loop. If set to **0**, the animation will play once. | -| lockx | If set to **0**, the player is returned to their old X coordinate once the animation is complete (for animations that move the player such as walking). **1** will not return them to their old position. | -| locky | Same as above but for the Y axis. Should be kept the same as the previous parameter. | -| freeze | Setting this to **1** will freeze the player at the end of the animation. **0** will not. | -| time | Timer in milliseconds. For a never-ending loop it should be **0**. | -| forcesync | Set to 1 to make server sync the animation with all other players in streaming radius (optional). 2 works same as 1, but will ONLY apply the animation to streamed-in players, but NOT the actual player being animated (useful for npc animations and persistent animations when players are being streamed) | +| Name | Description | +| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| playerid | The ID of the player to apply the animation to. | +| animlib[] | The animation library from which to apply an animation. | +| animname[] | The name of the animation to apply, within the specified library. | +| Float:fDelta | The speed to play the animation (use 4.1). | +| bool:loop | If set to **1**, the animation will loop. If set to **0**, the animation will play once. | +| bool:lockx | If set to **0**, the player is returned to their old X coordinate once the animation is complete (for animations that move the player such as walking). **1** will not return them to their old position. | +| bool:locky | Same as above but for the Y axis. Should be kept the same as the previous parameter. | +| bool:freeze | Setting this to **1** will freeze the player at the end of the animation. **0** will not. | +| time | Timer in milliseconds. For a never-ending loop it should be **0**. | +| forcesync | Set to 1 to make server sync the animation with all other players in streaming radius (optional). 2 works same as 1, but will ONLY apply the animation to streamed-in players, but NOT the actual player being animated (useful for npc animations and persistent animations when players are being streamed) | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md index 07e0d324571..7962c94f569 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md @@ -13,9 +13,9 @@ Attach a 3D text label to a player. | ------------- | --------------------------------------------------------------------- | | Text3D:textid | The ID of the 3D text label to attach. Returned by Create3DTextLabel. | | playerid | The ID of the player to attach the label to. | -| OffsetX | The X offset from the player. | -| OffsetY | The Y offset from the player. | -| OffsetZ | The Z offset from the player. | +| Float:OffsetX | The X offset from the player. | +| Float:OffsetY | The Y offset from the player. | +| Float:OffsetZ | The Z offset from the player. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md index 43ce644998d..0841da0d3dc 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToVehicle.md @@ -13,9 +13,9 @@ Attaches a 3D Text Label to a specific vehicle. | ------------- | ---------------------------------------------------------------------------- | | Text3D:textid | The 3D Text Label you want to attach. | | vehicleid | The vehicle you want to attach the 3D Text Label to. | -| OffsetX | The Offset-X coordinate of the player vehicle (the vehicle is 0.0,0.0,0.0).. | -| OffsetY | The Offset-Y coordinate of the player vehicle (the vehicle is 0.0,0.0,0.0).. | -| OffsetZ | The Offset-Z coordinate of the player vehicle (the vehicle is 0.0,0.0,0.0).. | +| Float:OffsetX | The Offset-X coordinate of the player vehicle (the vehicle is 0.0,0.0,0.0).. | +| Float:OffsetY | The Offset-Y coordinate of the player vehicle (the vehicle is 0.0,0.0,0.0).. | +| Float:OffsetZ | The Offset-Z coordinate of the player vehicle (the vehicle is 0.0,0.0,0.0).. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md index 41475afbd83..0641df2de6f 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md @@ -9,16 +9,16 @@ tags: ["3dtextlabel"] Creates a 3D Text Label at a specific location in the world -| Name | Description | -| ------------ | --------------------------------------------------------------------- | -| text[] | The initial text string. | -| color | The text Color, as an integer or hex in **RGBA** color format | -| x | X-Coordinate | -| y | Y-Coordinate | -| z | Z-Coordinate | -| drawDistance | The distance from where you are able to see the 3D Text Label | -| virtualWorld | The virtual world in which you are able to see the 3D Text | -| testLOS | 0/1 Test the line-of-sight so this text can't be seen through objects | +| Name | Description | +| ------------------ | --------------------------------------------------------------------- | +| text[] | The initial text string. | +| color | The text Color, as an integer or hex in **RGBA** color format | +| Float:x | X-Coordinate | +| Float:y | Y-Coordinate | +| Float:z | Z-Coordinate | +| Float:drawDistance | The distance from where you are able to see the 3D Text Label | +| virtualWorld | The virtual world in which you are able to see the 3D Text | +| bool:testLOS | 0/1 Test the line-of-sight so this text can't be seen through objects | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md index 302f48ba971..305f5139e8e 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md @@ -15,13 +15,13 @@ tags: ["actor"] Create a static 'actor' in the world. These 'actors' are like NPCs, however they have limited functionality. They do not take up server player slots. -| Name | Description | -| -------- | -------------------------------------------------- | -| modelid | The model ID (skin ID) the actor should have. | -| x | The X coordinate to create the actor at. | -| y | The Y coordinate to create the actor at. | -| z | The Z coordinate to create the actor at. | -| Rotation | The facing angle (rotation) for the actor to have. | +| Name | Description | +| -------------- | -------------------------------------------------- | +| modelid | The model ID (skin ID) the actor should have. | +| Float:x | The X coordinate to create the actor at. | +| Float:y | The Y coordinate to create the actor at. | +| Float:z | The Z coordinate to create the actor at. | +| Float:Rotation | The facing angle (rotation) for the actor to have. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayer3DTextLabel.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayer3DTextLabel.md index 5662317629e..64c84c23a02 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayer3DTextLabel.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayer3DTextLabel.md @@ -9,18 +9,18 @@ tags: ["player", "3dtextlabel"] Creates a 3D Text Label only for a specific player -| Name | Description | -| --------------- | ------------------------------------------------------------------------------- | -| playerid | The player which should see the newly created 3DText Label. | -| text[] | The text to display. | -| color | The text color | -| x | X Coordinate (or offset if attached) | -| y | Y Coordinate (or offset if attached) | -| z | Z Coordinate (or offset if attached) | -| drawDistance | The distance where you are able to see the 3D Text Label | -| attachedplayer | The player you want to attach the 3D Text Label to. (None: INVALID_PLAYER_ID) | -| attachedvehicle | The vehicle you want to attach the 3D Text Label to. (None: INVALID_VEHICLE_ID) | -| testLOS | 0/1 Test the line-of-sight so this text can't be seen through walls | +| Name | Description | +| ------------------ | ------------------------------------------------------------------------------- | +| playerid | The player which should see the newly created 3DText Label. | +| text[] | The text to display. | +| color | The text color | +| Float:x | X Coordinate (or offset if attached) | +| Float:y | Y Coordinate (or offset if attached) | +| Float:z | Z Coordinate (or offset if attached) | +| Float:drawDistance | The distance where you are able to see the 3D Text Label | +| attachedplayer | The player you want to attach the 3D Text Label to. (None: INVALID_PLAYER_ID) | +| attachedvehicle | The vehicle you want to attach the 3D Text Label to. (None: INVALID_VEHICLE_ID) | +| bool:testLOS | 0/1 Test the line-of-sight so this text can't be seen through walls | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md index 95d61481594..51d5e81c904 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GangZoneCreate.md @@ -9,12 +9,12 @@ tags: ["gangzone"] Create a gangzone (colored radar area). -| Name | Description | -| ---- | ---------------------------------------------------- | -| minx | The X coordinate for the west side of the gangzone. | -| miny | The Y coordinate for the south side of the gangzone. | -| maxx | The X coordinate for the east side of the gangzone. | -| maxy | The Y coordinate for the north side of the gangzone. | +| Name | Description | +| ---------- | ---------------------------------------------------- | +| Float:minx | The X coordinate for the west side of the gangzone. | +| Float:miny | The Y coordinate for the south side of the gangzone. | +| Float:maxx | The X coordinate for the east side of the gangzone. | +| Float:maxy | The Y coordinate for the north side of the gangzone. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md index b5f96b2f170..3b794eec08f 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md @@ -15,12 +15,12 @@ tags: ["actor"] Get the position of an actor. -| Name | Description | -| ------- | --------------------------------------------------------------------------------------- | -| actorid | The ID of the actor to get the position of. Returned by CreateActor. | -| X | A float variable, passed by reference, in which to store the X coordinate of the actor. | -| Y | A float variable, passed by reference, in which to store the Y coordinate of the actor. | -| Z | A float variable, passed by reference, in which to store the Z coordinate of the actor. | +| Name | Description | +| -------- | --------------------------------------------------------------------------------------- | +| actorid | The ID of the actor to get the position of. Returned by CreateActor. | +| &Float:X | A float variable, passed by reference, in which to store the X coordinate of the actor. | +| &Float:Y | A float variable, passed by reference, in which to store the Y coordinate of the actor. | +| &Float:Z | A float variable, passed by reference, in which to store the Z coordinate of the actor. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraFrontVector.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraFrontVector.md index 6b097423e55..b470b5e10d9 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraFrontVector.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerCameraFrontVector.md @@ -12,9 +12,9 @@ This function will return the current direction of player's aiming in 3-D space, | Name | Description | | -------- | ------------------------------------------------------------------ | | playerid | The ID of the player you want to obtain the camera front vector of | -| Float:x | A float to store the X coordinate, passed by reference. | -| Float:y | A float to store the Y coordinate, passed by reference. | -| Float:z | A float to store the Z coordinate, passed by reference. | +| &Float:x | A float to store the X coordinate, passed by reference. | +| &Float:y | A float to store the Y coordinate, passed by reference. | +| &Float:z | A float to store the Z coordinate, passed by reference. | ## ส่งคืน 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 4916403b3ab..8693fd8a398 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 @@ -12,9 +12,9 @@ Get the position of the player's camera. | Name | Description | | -------- | ------------------------------------------------------------------- | | playerid | The ID of the player to get the camera position of. | -| Float:x | A float variable to store the X coordinate in, passed by reference. | -| Float:y | A float variable to store the Y coordinate in, passed by reference. | -| Float:z | A float variable to store the Z coordinate in, passed by reference. | +| &Float:x | A float variable to store the X coordinate in, passed by reference. | +| &Float:y | A float variable to store the Y coordinate in, passed by reference. | +| &Float:z | A float variable to store the Z coordinate in, passed by reference. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md index e2cfefa12d1..2505e07b41a 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetActorFacingAngle.md @@ -15,10 +15,10 @@ tags: ["actor"] Set the facing angle of an actor. -| Name | Description | -| ------- | ------------------------------------------------------------------------ | -| actorid | The ID of the actor to set the facing angle of. Returned by CreateActor. | -| ang | The facing angle to set for the actor. | +| Name | Description | +| --------- | ------------------------------------------------------------------------ | +| actorid | The ID of the actor to set the facing angle of. Returned by CreateActor. | +| Float:ang | The facing angle to set for the actor. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md index 003e66d9067..7256f40e320 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetActorPos.md @@ -18,9 +18,9 @@ Set the position of an actor. | Name | Description | | ------- | -------------------------------------------------------------------- | | actorid | The ID of the actor to set the position of. Returned by CreateActor. | -| X | The X coordinate to position the actor at. | -| Y | The Y coordinate to position the actor at. | -| Z | The Z coordinate to position the actor at. | +| Float:X | The X coordinate to position the actor at. | +| Float:Y | The Y coordinate to position the actor at. | +| Float:Z | The Z coordinate to position the actor at. | ## ส่งคืน 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 bfe13eebacd..4a7211d685d 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 @@ -14,7 +14,7 @@ Replace the texture of an object with the texture from another model in the game | objectid | The ID of the object to change the texture of | | materialindex | The material index on the object to change (0 to 15) | | modelid | The modelid on which the replacement texture is located. Use 0 for alpha. Use -1 to change the material color without altering the texture. | -| txdname | The name of the txd file which contains the replacement texture (use "none" if not required) | +| txdname | The name of the [txd file](https://models.open.mp/?cat=textures) which contains the replacement texture (use "none" if not required) | | texturename | The name of the [texture](https://models.open.mp/?cat=textures) to use as the replacement (use "none" if not required) | | materialcolor | The object color to set, as an integer or hex in **ARGB** color format. Using **0** keeps the existing material color. | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md index a0bcc52b842..61dd0a2c65e 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md @@ -21,9 +21,9 @@ Allows camera collisions with newly created objects to be disabled by default. ## ส่งคืน -Note +**1**: The function was executed successfully. -This function only affects the camera collision of objects created AFTER its use - it does not toggle existing objects' camera collisions. +**0**: The function failed to execute. ## ตัวอย่าง diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarFloat.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarFloat.md index 1e1cca1e1ff..a3b8371a431 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarFloat.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPVarFloat.md @@ -9,11 +9,11 @@ tags: ["player variable", "pvar"] Set a float player variable's value. -| Name | Description | -| ----------- | ------------------------------------------------------- | -| playerid | The ID of the player whose player variable will be set. | -| varname | The name of the player variable. | -| float_value | The float you want to save in the player variable. | +| Name | Description | +| ----------------- | ------------------------------------------------------- | +| playerid | The ID of the player whose player variable will be set. | +| varname | The name of the player variable. | +| Float:float_value | The float you want to save in the player variable. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md index bf4436f1e84..7467b904fa3 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerAttachedObject.md @@ -15,15 +15,15 @@ Attach an object to a specific bone on a player. | index | The index (slot) to assign the object to (0-9 since 0.3d, 0-4 in previous versions). | | modelid | The model to attach. | | bone | The bone to attach the object to. | -| fOffsetX | (optional) X axis offset for the object position. | -| fOffsetY | (optional) Y axis offset for the object position. | -| fOffsetZ | (optional) Z axis offset for the object position. | -| fRotX | (optional) X axis rotation of the object. | -| fRotY | (optional) Y axis rotation of the object. | -| fRotZ | (optional) Z axis rotation of the object. | -| fScaleX | (optional) X axis scale of the object. | -| fScaleY | (optional) Y axis scale of the object. | -| fScaleZ | (optional) Z axis scale of the object. | +| Float:fOffsetX | (optional) X axis offset for the object position. | +| Float:fOffsetY | (optional) Y axis offset for the object position. | +| Float:fOffsetZ | (optional) Z axis offset for the object position. | +| Float:fRotX | (optional) X axis rotation of the object. | +| Float:fRotY | (optional) Y axis rotation of the object. | +| Float:fRotZ | (optional) Z axis rotation of the object. | +| Float:fScaleX | (optional) X axis scale of the object. | +| Float:fScaleY | (optional) Y axis scale of the object. | +| Float:fScaleZ | (optional) Z axis scale of the object. | | materialcolor1 | (optional) The first object color to set, as an integer or hex in **ARGB** color format. | | materialcolor2 | (optional) The second object color to set, as an integer or hex in **ARGB** color format | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md index f430111daed..d533a8ae213 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerChatBubble.md @@ -9,13 +9,13 @@ tags: ["player"] Creates a chat bubble above a player's name tag. -| Name | Description | -| ------------ | ---------------------------------------------------------------- | -| playerid | The player which should have the chat bubble. | -| text[] | The text to display. | -| color | The text color | -| drawdistance | The distance from where players are able to see the chat bubble. | -| expiretime | The time in miliseconds the bubble should be displayed for. | +| Name | Description | +| ------------------ | ---------------------------------------------------------------- | +| playerid | The player which should have the chat bubble. | +| text[] | The text to display. | +| color | The text color | +| Float:drawdistance | The distance from where players are able to see the chat bubble. | +| expiretime | The time in miliseconds the bubble should be displayed for. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md index d276158a54c..fdd3598c020 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md @@ -45,7 +45,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - If a player's health is set to 0 or a minus value, they will die instantly. -- If a player's health is below 10 or above 98303, their health bar will flash. +- If a player's health is below 10 or above 32768, their health bar will flash. ::: 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 3dbb33baecf..5cbd12448bd 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 @@ -15,7 +15,7 @@ Replace the texture of a player-object with the texture from another model in th | objectid | The ID of the object to replace the texture of | | materialindex | The material index on the object to change (0 to 15) | | modelid | The modelid on which replacement texture is located. Use 0 for alpha. Use -1 to change the material color without altering the existing texture. | -| txdname | The name of the txd file which contains the replacement texture (use "none" if not required) | +| txdname | The name of the [txd file](https://models.open.mp/?cat=textures) which contains the replacement texture (use "none" if not required) | | texturename | The name of the [texture](https://models.open.mp/?cat=textures) to use as the replacement (use "none" if not required) | | materialcolor | The object color to set, as an integer or hex in **ARGB format**. Using **0** keeps the existing material color. | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md index 2daaa6c5eee..a10113c32af 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md @@ -37,7 +37,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - If TogglePlayerClock is enabled, weather will slowly change over time, instead of changing instantly. -- There are only valid 21 weather IDs in the game (0 - 20), however the game does not have any form of range check. +- There are only valid 23 weather IDs in the game (0 - 22), however the game does not have any form of range check. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetSVarFloat.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetSVarFloat.md index 17a5a708f4d..19ac245d4c1 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetSVarFloat.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetSVarFloat.md @@ -15,10 +15,10 @@ This function was added in SA-MP 0.3.7 R2 and will not work in earlier versions! Set a float server variable. -| Name | Description | -| ----------- | -------------------------------- | -| varname[] | The name of the server variable. | -| float_value | The float to be set. | +| Name | Description | +| ----------------- | -------------------------------- | +| varname[] | The name of the server variable. | +| Float:float_value | The float to be set. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md index eeb58f70f86..a9bb3d2c651 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md @@ -32,7 +32,7 @@ if (!strcmp(cmdtext, "/sandstorm", true)) :::note - If TogglePlayerClock is enabled, weather will slowly change over time, instead of changing instantly. -- There are only valid 21 weather IDs in the game (0 - 20), however the game does not have any form of range check. +- There are only valid 23 weather IDs in the game (0 - 22), however the game does not have any form of range check. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatcmp.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatcmp.md index f58e2d805a2..a46190a755e 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatcmp.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatcmp.md @@ -9,10 +9,10 @@ tags: ["math", "floating-point"] floatcmp can be used to compare float values to each other, to validate the comparison. -| Name | Description | -| ----- | ---------------------------------- | -| oper1 | The first float value to compare. | -| oper2 | The second float value to compare. | +| Name | Description | +| ----------- | ---------------------------------- | +| Float:oper1 | The first float value to compare. | +| Float:oper2 | The second float value to compare. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatfract.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatfract.md index 2b1079474de..5c6ade20126 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatfract.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatfract.md @@ -9,9 +9,9 @@ tags: ["math", "floating-point"] Get the fractional part of a float. This means the value of the numbers after the decimal point. -| Name | Description | -| ----- | ---------------------------------------- | -| value | The float to get the fractional part of. | +| Name | Description | +| ----------- | ---------------------------------------- | +| Float:value | The float to get the fractional part of. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatmul.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatmul.md index 5bb6687b302..4a3911bfb41 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatmul.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatmul.md @@ -9,10 +9,10 @@ tags: ["math", "floating-point"] Multiplies two floats with each other. -| Name | Description | -| ----- | ------------------------------------------------- | -| oper1 | First Float. | -| oper2 | Second Float, the first one gets multiplied with. | +| Name | Description | +| ----------- | ------------------------------------------------- | +| Float:oper1 | First Float. | +| Float:oper2 | Second Float, the first one gets multiplied with. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatpower.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatpower.md index 8f5b0d6c9f5..741d8369713 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatpower.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatpower.md @@ -9,10 +9,10 @@ tags: ["math", "floating-point"] Raises the given value to the power of the exponent. -| Name | Description | -| -------- | ------------------------------------------------------------------------- | -| value | The value to raise to a power, as a floating-point number. | -| exponent | The exponent is also a floating-point number. It may be zero or negative. | +| Name | Description | +| -------------- | ------------------------------------------------------------------------- | +| Float:value | The value to raise to a power, as a floating-point number. | +| Float:exponent | The exponent is also a floating-point number. It may be zero or negative. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatround.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatround.md index 05ff632d07e..74d9e785c09 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatround.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatround.md @@ -9,10 +9,10 @@ tags: ["math", "floating-point"] Round a floating point number to an integer value. -| Name | Description | -| ------ | ----------------------------- | -| value | The value to round. | -| method | The floatround method to use. | +| Name | Description | +| ----------- | ----------------------------- | +| Float:value | The value to round. | +| method | The floatround method to use. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md index 393ae8940dd..6fa23595a5f 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatsqroot.md @@ -9,9 +9,9 @@ tags: ["math", "floating-point"] Calculates the [square root](https://en.wikipedia.org/wiki/Square_root) of given value. -| Name | Description | -| ----- | ------------------------------------------ | -| value | The value to calculate the square root of. | +| Name | Description | +| ----------- | ------------------------------------------ | +| Float:value | The value to calculate the square root of. | ## ส่งคืน diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatsub.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatsub.md index d34d03e660f..792e17ade51 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatsub.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/floatsub.md @@ -9,10 +9,10 @@ tags: ["math", "floating-point"] Subtracts one float from another one. Note that this function has no real use, as one can simply use the standard operator (-) instead. -| Name | Description | -| ----- | ---------------------------------------------------- | -| oper1 | First Float. | -| oper2 | Second Float (gets subtracted from the first float.) | +| Name | Description | +| ----------- | ---------------------------------------------------- | +| Float:oper1 | First Float. | +| Float:oper2 | Second Float (gets subtracted from the first float.) | ## ส่งคืน 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 1ce66a81bc1..8203f644e61 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 @@ -26,14 +26,14 @@ Filterscript komutlarında her zaman ilk olarak çağrılır. ```pawn public OnPlayerUpdate(playerid) { - new iCurWeap = GetPlayerWeapon(playerid); // Oyuncunun eline aldığı silahı kontrol etmek için değişken oluşturuyoruz. + new iCurWeap = GetPlayerWeapon(playerid); // Oyuncunun eline aldığı silahı kontrol etmek için değişken oluşturuyoruz if (iCurWeap != GetPVarInt(playerid, "iCurrentWeapon")) // Son güncellemeden bu yana silah değiştirdiyse... { - // OnPlayerChangeWeapon adlı fonksiyonu çağıralım. + // OnPlayerChangeWeapon adlı fonksiyonu çağıralım OnPlayerChangeWeapon(playerid, GetPVarInt(playerid, "iCurrentWeapon"), iCurWeap); - SetPVarInt(playerid, "iCurrentWeapon", iCurWeap);// Silah değişkenini güncelleyelim. + SetPVarInt(playerid, "iCurrentWeapon", iCurWeap);// Silah değişkenini güncelleyelim } - return 1; // Bu güncellemeyi diğer oyunculara gönderin. + return 1; // Bu güncellemeyi diğer oyunculara gönderin } stock OnPlayerChangeWeapon(playerid, oldweapon, newweapon) @@ -60,16 +60,16 @@ public OnPlayerUpdate(playerid) if (fHealth != GetPVarFloat(playerid, "faPlayerHealth")) { - // Can kazanıp kazanmadığını kontrol edelim, anti-sağlık hilesi? ;) + // Can kazanıp kazanmadığını kontrol edelim if (fHealth > GetPVarFloat(playerid, "faPlayerHealth")) { // Oyuncu can kazanmış! D-d-dostum bu adam bir Hile mi? - // Bu manyak herife kendi senaryolarını yazıp, istediğin şeyleri yapabilirsin. + // Bu manyak herife kendi senaryolarını yazıp, istediğin şeyleri yapabilirsin } else { - // Oyuncu can kazanmamış. + // Oyuncu can kazanmamış } SetPVarFloat(playerid, "faPlayerHealth", fHealth); diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md index 9fc50bb8023..1180decb545 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerWeaponShot.md @@ -15,9 +15,9 @@ Bu fonksiyon, oyuncu ateş ettiğinde çağrılır. Bu fonksiyon ateşli silahla | weaponid | Ateşlenen silahın [silah ID'leri](../resources/weaponids) ID'si. | | hittype | Oyuncunun vuruş türü. [türler](../resources/bullethittypes). (oyuncu, obje veya araç gibi). | | hitid | Vurulan oyuncunun, objenin veya aracın ID'si. | -| fX | Ateşlenen merminin gittiği X koordinatı. | -| fY | Ateşlenen merminin gittiği Y koordinatı. | -| fZ | Ateşlenen merminin gittiği Z koordinatı. | +| Float:fX | Ateşlenen merminin gittiği X koordinatı. | +| Float:fY | Ateşlenen merminin gittiği Y koordinatı. | +| Float:fZ | Ateşlenen merminin gittiği Z koordinatı. | ## Çalışınca Vereceği Sonuçlar diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md index a8da990afb2..ffb7d69cd60 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/callbacks/OnUnoccupiedVehicleUpdate.md @@ -14,12 +14,12 @@ Bu fonksiyon, oyuncunun istemcisi sürmediği bir aracın konumunu güncellediğ | vehicleid | Konumu güncellenen aracın ID'si. | | playerid | Araç konumunu güncellemesini gönderen oyuncunun ID'si. | | passenger_seat | Oyuncu bir yolcu ise koltuğun ID'si. 0=araçta değil, 1=ön koltuk, 2=arka sol, 3=arka sağ, 4+ otobüs vb araçlar için. | -| new_x | Aracın yeni X koordinatı. | -| new_y | Aracın yeni Y koordinatı. | -| new_z | Aracın yeni Z koordinatı. | -| vel_x | Aracın yeni vektörel X koordinatı. | -| vel_y | Aracın yeni vektörel Y koordinatı. | -| vel_z | Aracın yeni vektörel Z koordinatı. | +| Float:new_x | Aracın yeni X koordinatı. | +| Float:new_y | Aracın yeni Y koordinatı. | +| Float:new_z | Aracın yeni Z koordinatı. | +| Float:vel_x | Aracın yeni vektörel X koordinatı. | +| Float:vel_y | Aracın yeni vektörel Y koordinatı. | +| Float:vel_z | Aracın yeni vektörel Z koordinatı. | ## Çalışınca Vereceği Sonuçlar diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md index bd06606dc6b..146ce46d4c0 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md @@ -11,17 +11,17 @@ tags: ["actor", "animation"] Bu fonksiyon aktörlere animasyon uygulatmak için kullanılır. -| Parametre | Açıklama | -| ---------- | ------------------------------------------------------------------------------------------------------------ | -| actorid | Animasyonun uygulanacağı aktörün ID'si | -| animlib[] | Uygulanacak animasyonun kütüphanesi | -| animname[] | Uygulanacak animasyonun ismi | -| fDelta | Animasyon oynatma hızı (4.1 tavsiye edilir) | -| loop | Döngü (Eğer **1** seçilirse animasyon sürekli oynatılır. Eğer **0** seçilirse animasyon bir defa oynatılır.) | -| lockx | Eğer **0** seçilirse aktör animasyon bittikten sonra başlamadan önceki koordinatlarına döner | -| locky | Üsttekinin aynısı ancak Y ekseni için geçerlidir | -| freeze | Eğer **1** seçilirse animasyon sonunda aktör dondurulur, hareket edemez. **0** ise tam tersidir | -| time | Milisaniye cinsinden animasyon süresi. Eğer **0** seçilirse sonsuz kez animasyon oynatılır | +| Parametre | Açıklama | +| ------------ | ------------------------------------------------------------------------------------------------------------ | +| actorid | Animasyonun uygulanacağı aktörün ID'si | +| animlib[] | Uygulanacak animasyonun kütüphanesi | +| animname[] | Uygulanacak animasyonun ismi | +| Float:fDelta | Animasyon oynatma hızı (4.1 tavsiye edilir) | +| bool:loop | Döngü (Eğer **1** seçilirse animasyon sürekli oynatılır. Eğer **0** seçilirse animasyon bir defa oynatılır.) | +| bool:lockx | Eğer **0** seçilirse aktör animasyon bittikten sonra başlamadan önceki koordinatlarına döner | +| bool:locky | Üsttekinin aynısı ancak Y ekseni için geçerlidir | +| bool:freeze | Eğer **1** seçilirse animasyon sonunda aktör dondurulur, hareket edemez. **0** ise tam tersidir | +| time | Milisaniye cinsinden animasyon süresi. Eğer **0** seçilirse sonsuz kez animasyon oynatılır | ## Çalışınca Vereceği Sonuçlar diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md index f476bd2f843..f4dede5f2ae 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/ApplyAnimation.md @@ -9,18 +9,18 @@ tags: ["player", "animation"] Bu fonksiyon oyuncuya bir animasyon uygulatmak için kullanılır. -| Parametre | Açıklama | -| ---------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| playerid | Animasyonun uygulanacağı oyuncunun ID'si | -| animlib[] | Seçilen animasyonun kütüphanesi | -| animname[] | Oynatılacak animasyonun ismi | -| fDelta | Animasyon hızı (4.1 tavsiye edilir) | -| loop | Döngü (Eğer **0** seçilirse animasyon 1 defa oynatılır, **1** seçilirse animasyon kaldırılana kadar oynatılır) | -| lockx | Eğer **0** seçilirse oyuncuyu animasyondan sonra önceki X koordinatına döndürür. **1** ise döndürmez. (Yürüme animasyonları vb. için) | -| locky | Üstteki ile aynı ancak Y ekseni için geçerli | -| freeze | Eğer **1** seçilirse oyuncu animasyon sonrasında dondurulur. Eğer **0** seçilirse oyuncu dondurulmaz | -| time | Milisaniye cinsinden animasyon süresi (Eğer **0** seçilirse animasyon kaldırılana kadar oynatılır) | -| forcesync | Görüş alanındaki oyunculara senkron etmek için 1'i seçin. 2 ise 1'le aynıdır ancak animasyon oynatılan kişiye senkron etmez. | +| Parametre | Açıklama | +| ------------ | ------------------------------------------------------------------------------------------------------------------------------------- | +| playerid | Animasyonun uygulanacağı oyuncunun ID'si | +| animlib[] | Seçilen animasyonun kütüphanesi | +| animname[] | Oynatılacak animasyonun ismi | +| Float:fDelta | Animasyon hızı (4.1 tavsiye edilir) | +| bool:loop | Döngü (Eğer **0** seçilirse animasyon 1 defa oynatılır, **1** seçilirse animasyon kaldırılana kadar oynatılır) | +| bool:lockx | Eğer **0** seçilirse oyuncuyu animasyondan sonra önceki X koordinatına döndürür. **1** ise döndürmez. (Yürüme animasyonları vb. için) | +| bool:locky | Üstteki ile aynı ancak Y ekseni için geçerli | +| bool:freeze | Eğer **1** seçilirse oyuncu animasyon sonrasında dondurulur. Eğer **0** seçilirse oyuncu dondurulmaz | +| time | Milisaniye cinsinden animasyon süresi (Eğer **0** seçilirse animasyon kaldırılana kadar oynatılır) | +| forcesync | Görüş alanındaki oyunculara senkron etmek için 1'i seçin. 2 ise 1'le aynıdır ancak animasyon oynatılan kişiye senkron etmez. | ## Çalışınca Vereceği Sonuçlar diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md index 26caea5c72e..fca349bd1c6 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Attach3DTextLabelToPlayer.md @@ -13,9 +13,9 @@ Oyuncuya [3D Text Label](Create3DTextLabel) bağlama fonksiyonu. | ------------- | ------------------------------------------------------------------------------- | | Text3D:textid | [Create3DTextLabel](Create3DTextLabel) ile oluşturulmuş label ID'si. | | playerid | Label'ın bağlanacağı oyuncunun ID'si. | -| OffsetX | Oyuncunun X-ofset koordinatı. (oyuncunun ortasından başlar, '0.0, 0.0, 0.0'dır) | -| OffsetY | Oyuncunun Y-ofset koordinatı. (oyuncunun ortasından başlar, '0.0, 0.0, 0.0'dır) | -| OffsetZ | Oyuncunun Z-ofset koordinatı. (oyuncunun ortasından başlar, '0.0, 0.0, 0.0'dır) | +| Float:OffsetX | Oyuncunun X-ofset koordinatı. (oyuncunun ortasından başlar, '0.0, 0.0, 0.0'dır) | +| Float:OffsetY | Oyuncunun Y-ofset koordinatı. (oyuncunun ortasından başlar, '0.0, 0.0, 0.0'dır) | +| Float:OffsetZ | Oyuncunun Z-ofset koordinatı. (oyuncunun ortasından başlar, '0.0, 0.0, 0.0'dır) | ## Çalışınca Vereceği Sonuçlar 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 46da84ed879..a7ccbb0fd9a 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 @@ -13,9 +13,9 @@ Bu fonksiyon bir araca 3D text label bağlamanızı sağlar. | ------------- | ------------------------------------------------------------------------- | | Text3D:textid | Bağlamak istediğiniz 3D text labelin ID'si. | | vehicleid | Bağlamak istediğiniz aracın ID'si. | -| OffsetX | Aracın X-ofset koordinatı (aracın ortası, yani '0.0, 0.0, 0.0'dan başlar) | -| OffsetY | Aracın Y-ofset koordinatı (aracın ortası, yani '0.0, 0.0, 0.0'dan başlar) | -| OffsetZ | Aracın Z-ofset koordinatı (aracın ortası, yani '0.0, 0.0, 0.0'dan başlar) | +| Float:OffsetX | Aracın X-ofset koordinatı (aracın ortası, yani '0.0, 0.0, 0.0'dan başlar) | +| Float:OffsetY | Aracın Y-ofset koordinatı (aracın ortası, yani '0.0, 0.0, 0.0'dan başlar) | +| Float:OffsetZ | Aracın Z-ofset koordinatı (aracın ortası, yani '0.0, 0.0, 0.0'dan başlar) | ## Çalışınca Vereceği Sonuçlar diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md index ac3a7584de5..918ac7ca970 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md @@ -9,16 +9,16 @@ tags: ["3dtextlabel"] 3D Metin Etiketi oluşturma. -| Parametre | Açıklama | -| ------------ | -------------------------------------------------------------- | -| text[] | Metin dizesi. | -| color | **RGBA** renk biçiminde renk kodu. | -| x | X Koordinatı | -| y | Y Koordinatı | -| z | Z oordinatı | -| DrawDistance | 3D Metin Etiketinin maksimum görülebileceği uzaklık. | -| VirtualWorld | 3D Metin Etiketinin sanal dünya değeri. | -| testLOS | 3D Metin Etiketinin nesneler arasından görülüp/görülemeyeceği. | +| Parametre | Açıklama | +| ------------------ | -------------------------------------------------------------- | +| text[] | Metin dizesi. | +| color | **RGBA** renk biçiminde renk kodu. | +| Float:x | X Koordinatı | +| Float:y | Y Koordinatı | +| Float:z | Z oordinatı | +| Float:DrawDistance | 3D Metin Etiketinin maksimum görülebileceği uzaklık. | +| VirtualWorld | 3D Metin Etiketinin sanal dünya değeri. | +| bool:testLOS | 3D Metin Etiketinin nesneler arasından görülüp/görülemeyeceği. | ## Çalışınca Vereceği Sonuçlar diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md index 687e37c9f75..ccba50e7c1c 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/CreateActor.md @@ -11,13 +11,13 @@ tags: ["actor"] Statik 'aktör' oluşturun. Aktörler NPC'lere benzer, ancak işlevleri sınırlıdır. Aktörler oyuncu slotlarını doldurmazlar. -| Parametre | Açıklama | -| --------- | ------------------------------------- | -| modelid | Aktöre ait olacak model (Skin) ID'si. | -| x | Aktörün oluşturulacağı X koordinatı. | -| y | Aktörün oluşturulacağı Y koordinatı. | -| z | Aktörün oluşturulacağı Z koordinatı. | -| Rotation | Aktöre ait olan açı. | +| Parametre | Açıklama | +| -------------- | ------------------------------------- | +| modelid | Aktöre ait olacak model (Skin) ID'si. | +| Float:x | Aktörün oluşturulacağı X koordinatı. | +| Float:y | Aktörün oluşturulacağı Y koordinatı. | +| Float:z | Aktörün oluşturulacağı Z koordinatı. | +| Float:Rotation | Aktöre ait olan açı. | ## Çalışınca Vereceği Sonuçlar diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md index da0225fd481..a90cffd3aad 100644 --- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md +++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current/scripting/functions/GetActorPos.md @@ -14,9 +14,9 @@ Aktörün koordinat değerlerini kontrol etme. | Parametre | Description | | --------- | ------------------------------------------------------------------ | | actorid | Koordinat değerleri kontrol edilecek aktörün ID'si. | -| X | Aktör'e ait olan X koordinatının saklanması için gerekli değişken. | -| Y | Aktör'e ait olan Y koordinatının saklanması için gerekli değişken. | -| Z | Aktör'e ait olan Z koordinatının saklanması için gerekli değişken. | +| &Float:X | Aktör'e ait olan X koordinatının saklanması için gerekli değişken. | +| &Float:Y | Aktör'e ait olan Y koordinatının saklanması için gerekli değişken. | +| &Float:Z | Aktör'e ait olan Z koordinatının saklanması için gerekli değişken. | ## Çalışınca Vereceği Sonuçlar 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 e69ca43307d..8fc3006e23b 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 @@ -37,7 +37,7 @@ public OnPlayerUpdate(playerid) CallLocalFunction("OnPlayerWeaponChange", "iii", playerid, gPlayerCurrentWeapon[playerid], weapon); gPlayerCurrentWeapon[playerid] = weapon; // Cập nhật biến vũ khí } - return 1; // Gửi cập nhật này cho các người chơi khác. + return 1; // Gửi cập nhật này cho các người chơi khác } forward OnPlayerWeaponChange(playerid, WEAPON:oldWeapon, WEAPON:newWeapon); @@ -67,8 +67,8 @@ public OnPlayerUpdate(playerid) if (fHealth != GetPVarFloat(playerid, "faPlayerHealth")) { - // Sức khỏe của người chơi đã thay đổi kể từ lần cập nhật trước -> server, vì vậy rõ ràng đây là điều đã được cập nhật. - // Thực hiện các kiểm tra thêm để xem anh ta đã mất hoặc tăng sức khỏe, chống gian lận sức khỏe? ;) + // Sức khỏe của người chơi đã thay đổi kể từ lần cập nhật trước -> server, vì vậy rõ ràng đây là điều đã được cập nhật + // Thực hiện các kiểm tra thêm để xem anh ta đã mất hoặc tăng sức khỏe if (fHealth > GetPVarFloat(playerid, "faPlayerHealth")) { 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 cc631f98c41..b3d91548d4b 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 @@ -67,7 +67,7 @@ public OnPlayerUpdate(playerid) if (fHealth != GetPVarFloat(playerid, "faPlayerHealth")) { - // 检测生命值变化,可用于反作弊检测 + // 检测生命值变化 if (fHealth > GetPVarFloat(playerid, "faPlayerHealth")) { /* 生命值异常增加,可能作弊 */ diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md index 348360d4d05..5576578aa9b 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ApplyActorAnimation.md @@ -16,7 +16,7 @@ tags: ["演员", "动画"] | actorid | 要应用动画的演员 ID | | const animationLibrary[] | [动画资源库](../resources/animations)名称 | | const animationName[] | [动画](../resources/animations)名称(需在指定资源库中存在) | -| float:delta | 动画播放速度(建议使用 4.1) | +| Float:delta | 动画播放速度(建议使用 4.1) | | bool:loop | 是否循环播放:**true** 循环播放,**false** 单次播放 | | bool:lockX | X 轴位置锁定:**false** 在动画结束后恢复原始 X 坐标(适用于移动类动画),**true** 保持动画结束时的位置 | | bool:lockY | Y 轴位置锁定(参数设置应与 lockX 保持一致) | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md index 2320a2255c2..a0961133923 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerPickup.md @@ -57,9 +57,7 @@ public OnPlayerConnect(playerid) :::warning -**已知缺陷**: - -- 当 X 或 Y 坐标小于-4096.0 或大于 4096.0 时,拾取物将不可见且不会触发 [OnPlayerPickUpPlayerPickup](../callbacks/OnPlayerPickUpPlayerPickup) 回调 +**已知缺陷**:当 X 或 Y 坐标小于-4096.0 或大于 4096.0 时,拾取物将不可见且不会触发 [OnPlayerPickUpPlayerPickup](../callbacks/OnPlayerPickUpPlayerPickup) 回调 ::: 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 288ade91836..8a76e902248 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 @@ -42,7 +42,7 @@ public OnPlayerConnect(playerid) :::note -- 玩家文本绘图会在玩家断开连接时自动销毁 +玩家文本绘图会在玩家断开连接时自动销毁 ::: @@ -54,9 +54,7 @@ public OnPlayerConnect(playerid) :::warning -已知限制: - -- 键盘按键映射代码(如 `~k~~VEHICLE_ENTER_EXIT~`)在超过 255 个字符后将失效 +**已知限制**:键盘按键映射代码(如 `~k~~VEHICLE_ENTER_EXIT~`)在超过 255 个字符后将失效 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md index 83f3b75aefe..cbbd73c246b 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetObjectMaterial.md @@ -11,16 +11,16 @@ tags: ["物体"] 从物体的材质索引获取材质数据。 -| 参数 | 说明 | -| ------------------ | ------------------------------------------------------------------------ | -| objectid | 物体 ID | -| materialIndex | 物体的材质索引 (0 至 15) | -| &modelid | 存储模型 ID 的变量,通过引用传递 | -| textureLibrary[] | 存储纹理库名称的数组,通过引用传递 | -| textureLibrarySize | 纹理库数组的尺寸 | -| textureName[] | 存储[纹理](https://models.open.mp/?cat=textures)名称的数组,通过引用传递 | -| textureNameSize | 纹理名称数组的尺寸 | -| &materialColour | 存储材质颜色的变量,通过引用传递 | +| 参数 | 说明 | +| ------------------ | -------------------------------------------------------------------------- | +| objectid | 物体 ID | +| materialIndex | 物体的材质索引 (0 至 15) | +| &modelid | 存储模型 ID 的变量,通过引用传递 | +| textureLibrary[] | 存储[纹理库](https://models.open.mp/?cat=textures)名称的数组,通过引用传递 | +| textureLibrarySize | 纹理库数组的尺寸 | +| textureName[] | 存储[纹理](https://models.open.mp/?cat=textures)名称的数组,通过引用传递 | +| textureNameSize | 纹理名称数组的尺寸 | +| &materialColour | 存储材质颜色的变量,通过引用传递 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md index e30c90c76f1..5ce57026a79 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerObjectMaterial.md @@ -11,17 +11,17 @@ tags: ["玩家", "物体", "玩家物体"] 获取玩家物体指定索引的材质数据 -| 参数 | 说明 | -| ------------------ | -------------------------------------------------------------------------- | -| playerid | 玩家 ID | -| objectid | 玩家物体 ID | -| materialIndex | 材质索引号(0-15) | -| &modelid | 存储模型 ID 的变量(通过引用传递) | -| textureLibrary[] | 存储纹理库名称的数组(通过引用传递) | -| textureLibrarySize | 纹理库数组的缓冲区大小 | -| textureName[] | 存储[纹理](https://models.open.mp/?cat=textures)名称的数组(通过引用传递) | -| textureNameSize | 纹理名称数组的缓冲区大小 | -| &materialColour | 存储材质颜色的变量(通过引用传递) | +| 参数 | 说明 | +| ------------------ | ---------------------------------------------------------------------------- | +| playerid | 玩家 ID | +| objectid | 玩家物体 ID | +| materialIndex | 材质索引号(0-15) | +| &modelid | 存储模型 ID 的变量(通过引用传递) | +| textureLibrary[] | 存储[纹理库](https://models.open.mp/?cat=textures)名称的数组(通过引用传递) | +| textureLibrarySize | 纹理库数组的缓冲区大小 | +| textureName[] | 存储[纹理](https://models.open.mp/?cat=textures)名称的数组(通过引用传递) | +| textureNameSize | 纹理名称数组的缓冲区大小 | +| &materialColour | 存储材质颜色的变量(通过引用传递) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_AddPointToPath.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_AddPointToPath.md index fb6e32bf5ae..bc42c7b3d27 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_AddPointToPath.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_AddPointToPath.md @@ -11,13 +11,13 @@ tags: ["npc", "路径"] 向 NPC 路径添加一个路径点。 -| 参数 | 说明 | -| --------- | ------------------------ | -| pathid | 要添加路径点的路径 ID | -| x | 路径点的 X 坐标 | -| y | 路径点的 Y 坐标 | -| z | 路径点的 Z 坐标 | -| stopRange | 认为到达该点时的距离阈值 | +| 参数 | 说明 | +| --------------- | ------------------------ | +| pathid | 要添加路径点的路径 ID | +| Float:x | 路径点的 X 坐标 | +| Float:y | 路径点的 Y 坐标 | +| Float:z | 路径点的 Z 坐标 | +| Float:stopRange | 认为到达该点时的距离阈值 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_AimAtPlayer.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_AimAtPlayer.md index b266bc741a4..5257bf34e4a 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_AimAtPlayer.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_AimAtPlayer.md @@ -15,15 +15,15 @@ tags: ["npc", "武器", "瞄准"] | ------------------- | ---------------------------- | | npcid | NPC 的 ID | | playerid | 要瞄准的玩家 ID | -| shoot | 瞄准时是否开火 | +| bool:shoot | 瞄准时是否开火 | | shootDelay | 射击间隔(毫秒) | -| updateAngle | 是否更新 NPC 的朝向角度 | -| offsetX | 相对目标位置的 X 偏移量 | -| offsetY | 相对目标位置的 Y 偏移量 | -| offsetZ | 相对目标位置的 Z 偏移量 | -| offsetFromX | 相对 NPC 射击位置的 X 偏移量 | -| offsetFromY | 相对 NPC 射击位置的 Y 偏移量 | -| offsetFromZ | 相对 NPC 射击位置的 Z 偏移量 | +| bool:updateAngle | 是否更新 NPC 的朝向角度 | +| Float:offsetX | 相对目标位置的 X 偏移量 | +| Float:offsetY | 相对目标位置的 Y 偏移量 | +| Float:offsetZ | 相对目标位置的 Z 偏移量 | +| Float:offsetFromX | 相对 NPC 射击位置的 X 偏移量 | +| Float:offsetFromY | 相对 NPC 射击位置的 Y 偏移量 | +| Float:offsetFromZ | 相对 NPC 射击位置的 Z 偏移量 | | checkInBetweenFlags | 用于碰撞检测的实体检查标志 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_ApplyAnimation.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_ApplyAnimation.md index 542d9e3ee19..91491896462 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_ApplyAnimation.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_ApplyAnimation.md @@ -11,17 +11,17 @@ tags: ["npc", "动画"] 使用动画库名称和动画名称为 NPC 应用特定动画。 -| 参数 | 说明 | -| ---------- | -------------------------- | -| npcid | NPC 的 ID | -| animlib[] | 动画库名称 | -| animname[] | 动画库中的动画名称 | -| delta | 动画播放速度(通常为 4.1) | -| loop | 动画是否循环播放 | -| lockX | 锁定 X 轴移动 | -| lockY | 锁定 Y 轴移动 | -| freeze | 在动画结束时冻结 NPC | -| time | 动画播放时间(毫秒) | +| 参数 | 说明 | +| ----------- | -------------------------- | +| npcid | NPC 的 ID | +| animlib[] | 动画库名称 | +| animname[] | 动画库中的动画名称 | +| Float:delta | 动画播放速度(通常为 4.1) | +| bool:loop | 动画是否循环播放 | +| bool:lockX | 锁定 X 轴移动 | +| bool:lockY | 锁定 Y 轴移动 | +| bool:freeze | 在动画结束时冻结 NPC | +| time | 动画播放时间(毫秒) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Destroy.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Destroy.md index d6db6be45ed..a007b2283f6 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Destroy.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Destroy.md @@ -54,7 +54,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- 这将从服务器中完全移除 NPC,ID 在销毁后变为无效。 +这将从服务器中完全移除 NPC,ID 在销毁后变为无效。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetAnimation.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetAnimation.md index 85d86ceb901..8fbb62623ca 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetAnimation.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetAnimation.md @@ -15,11 +15,11 @@ tags: ["npc", "动画"] | ------------ | ------------------------ | | npcid | NPC 的 ID | | &animationId | 存储动画 ID 的变量 | -| &delta | 存储动画速度的变量 | -| &loop | 存储动画是否循环的变量 | -| &lockX | 存储 X 轴锁定状态的变量 | -| &lockY | 存储 Y 轴锁定状态的变量 | -| &freeze | 存储结束时冻结状态的变量 | +| &Float:delta | 存储动画速度的变量 | +| &bool:loop | 存储动画是否循环的变量 | +| &bool:lockX | 存储 X 轴锁定状态的变量 | +| &bool:lockY | 存储 Y 轴锁定状态的变量 | +| &bool:freeze | 存储结束时冻结状态的变量 | | &time | 存储动画时间的变量 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetNodePointPosition.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetNodePointPosition.md index 34aeccc50b5..535361193e7 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetNodePointPosition.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetNodePointPosition.md @@ -11,12 +11,12 @@ tags: ["npc", "节点", "导航", "位置"] 获取 NPC 节点中当前点的位置。 -| 参数 | 说明 | -| ------ | --------------------- | -| nodeid | 节点的 ID | -| &x | 用于存储 X 坐标的变量 | -| &y | 用于存储 Y 坐标的变量 | -| &z | 用于存储 Z 坐标的变量 | +| 参数 | 说明 | +| -------- | --------------------- | +| nodeid | 节点的 ID | +| &Float:x | 用于存储 X 坐标的变量 | +| &Float:y | 用于存储 Y 坐标的变量 | +| &Float:z | 用于存储 Z 坐标的变量 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetPathPoint.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetPathPoint.md index 5e4571b7c41..4996c9a8586 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetPathPoint.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetPathPoint.md @@ -11,14 +11,14 @@ tags: ["npc", "路径"] 获取 NPC 路径中特定点的坐标和停止范围。 -| 参数 | 说明 | -| ----------- | ---------------------- | -| pathid | 路径的 ID | -| point_index | 点的索引(从 0 开始) | -| &x | 用于存储 X 坐标的变量 | -| &y | 用于存储 Y 坐标的变量 | -| &z | 用于存储 Z 坐标的变量 | -| &stopRange | 用于存储停止范围的变量 | +| 参数 | 说明 | +| ---------------- | ---------------------- | +| pathid | 路径的 ID | +| point_index | 点的索引(从 0 开始) | +| &Float:x | 用于存储 X 坐标的变量 | +| &Float:y | 用于存储 Y 坐标的变量 | +| &Float:z | 用于存储 Z 坐标的变量 | +| &Float:stopRange | 用于存储停止范围的变量 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetPos.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetPos.md index 265464c3176..1949c009dea 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetPos.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetPos.md @@ -50,7 +50,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- 所有坐标参数都通过引用传递且会被修改。 +所有坐标参数都通过引用传递且会被修改。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetSurfingOffsets.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetSurfingOffsets.md index eb95d0bff4e..1323f81ae0a 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetSurfingOffsets.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetSurfingOffsets.md @@ -11,12 +11,12 @@ tags: ["npc", "冲浪"] 获取 NPC 的冲浪偏移。 -| 参数 | 说明 | -| ----- | ----------------------------------- | -| npcid | NPC 的 ID | -| &x | 用于存储 X 偏移的变量,通过引用传递 | -| &y | 用于存储 Y 偏移的变量,通过引用传递 | -| &z | 用于存储 Z 偏移的变量,通过引用传递 | +| 参数 | 说明 | +| -------- | ----------------------------------- | +| npcid | NPC 的 ID | +| &Float:x | 用于存储 X 偏移的变量,通过引用传递 | +| &Float:y | 用于存储 Y 偏移的变量,通过引用传递 | +| &Float:z | 用于存储 Z 偏移的变量,通过引用传递 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetVelocity.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetVelocity.md index d9ea97d3f6f..b08b0dcf533 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetVelocity.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetVelocity.md @@ -50,7 +50,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- 所有速度参数都通过引用传递,将被修改 +所有速度参数都通过引用传递,将被修改 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_HasPathPointInRange.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_HasPathPointInRange.md index 4cb09703b7e..6f55fb6e48d 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_HasPathPointInRange.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_HasPathPointInRange.md @@ -11,13 +11,13 @@ tags: ["npc", "路径"] 检查路径中是否有任何点在给定坐标的指定范围内。 -| 参数 | 说明 | -| ------ | -------------------- | -| pathId | 要检查的路径 ID | -| x | 中心位置的 X 坐标 | -| y | 中心位置的 Y 坐标 | -| z | 中心位置的 Z 坐标 | -| radius | 检查路径点的半径范围 | +| 参数 | 说明 | +| ------------ | -------------------- | +| pathId | 要检查的路径 ID | +| Float:x | 中心位置的 X 坐标 | +| Float:y | 中心位置的 Y 坐标 | +| Float:z | 中心位置的 Z 坐标 | +| Float:radius | 检查路径点的半径范围 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_MoveByPath.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_MoveByPath.md index 4f7019e6f06..9dded3ffee1 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_MoveByPath.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_MoveByPath.md @@ -11,13 +11,13 @@ tags: ["npc", "移动", "路径"] 使 NPC 沿预定义路径移动,支持多种移动选项。 -| 参数 | 说明 | -| --------- | ------------------------------------- | -| npcid | NPC 的 ID | -| pathid | 要跟随的路径 ID | -| moveType | 移动类型(默认:NPC_MOVE_TYPE_JOG) | -| moveSpeed | 移动速度(默认:NPC_MOVE_SPEED_AUTO) | -| reversed | 是否反向跟随路径(默认:false) | +| 参数 | 说明 | +| --------------- | ------------------------------------- | +| npcid | NPC 的 ID | +| pathid | 要跟随的路径 ID | +| moveType | 移动类型(默认:NPC_MOVE_TYPE_JOG) | +| Float:moveSpeed | 移动速度(默认:NPC_MOVE_SPEED_AUTO) | +| bool:reversed | 是否反向跟随路径(默认:false) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetAnimation.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetAnimation.md index bd94cdf9304..79025287abf 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetAnimation.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetAnimation.md @@ -15,11 +15,11 @@ tags: ["npc", "动画"] | ----------- | -------------------------------------- | | npcid | NPC 的 ID | | animationid | 要设置的动画 ID | -| delta | 动画速度(通常为 4.1) | -| loop | 动画是否循环 | -| lockX | 动画期间锁定 X 轴移动 | -| lockY | 动画期间锁定 Y 轴移动 | -| freeze | 动画后冻结 NPC | +| Float:delta | 动画速度(通常为 4.1) | +| bool:loop | 动画是否循环 | +| bool:lockX | 动画期间锁定 X 轴移动 | +| bool:lockY | 动画期间锁定 Y 轴移动 | +| bool:freeze | 动画后冻结 NPC | | time | 动画持续时间,以毫秒为单位(0 = 无限) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetArmour.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetArmour.md index f43a33f881d..08add24e3fd 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetArmour.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetArmour.md @@ -11,10 +11,10 @@ tags: ["npc", "护甲值", "生命值"] 设置 NPC 的护甲等级。 -| 参数 | 说明 | -| ------ | --------------------- | -| npcid | NPC 的 ID | -| armour | 护甲数量(0.0-100.0) | +| 参数 | 说明 | +| ------------ | --------------------- | +| npcid | NPC 的 ID | +| Float:armour | 护甲数量(0.0-100.0) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetHealth.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetHealth.md index 27e8e82a8ad..79a6561c30c 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetHealth.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetHealth.md @@ -11,10 +11,10 @@ tags: ["npc", "生命值"] 设置 NPC 的生命值。 -| 参数 | 说明 | -| ------ | -------------- | -| npcid | NPC 的 ID | -| health | 要设置的生命值 | +| 参数 | 说明 | +| ------------ | -------------- | +| npcid | NPC 的 ID | +| Float:health | 要设置的生命值 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetSurfingOffsets.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetSurfingOffsets.md index 45ec8804259..e4872afffe2 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetSurfingOffsets.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetSurfingOffsets.md @@ -11,12 +11,12 @@ tags: ["npc", "冲浪"] 设置 NPC 的冲浪偏移。 -| 参数 | 说明 | -| ----- | --------- | -| npcid | NPC 的 ID | -| x | X 偏移 | -| y | Y 偏移 | -| z | Z 偏移 | +| 参数 | 说明 | +| ------- | --------- | +| npcid | NPC 的 ID | +| Float:x | X 偏移 | +| Float:y | Y 偏移 | +| Float:z | Z 偏移 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleHealth.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleHealth.md index 519eb76b994..879d12d51a2 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleHealth.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleHealth.md @@ -11,10 +11,10 @@ tags: ["npc", "车辆", "生命值"] 设置 NPC 车辆的生命值。 -| 参数 | 说明 | -| ------ | -------------------- | -| npcid | NPC 的 ID | -| health | 生命值(0.0-1000.0) | +| 参数 | 说明 | +| ------------ | -------------------- | +| npcid | NPC 的 ID | +| Float:health | 生命值(0.0-1000.0) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleTrainSpeed.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleTrainSpeed.md index 7ac5fab9319..66f5e7577d2 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleTrainSpeed.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleTrainSpeed.md @@ -11,10 +11,10 @@ tags: ["npc", "车辆", "火车", "速度"] 设置 NPC 火车的速度。 -| 参数 | 说明 | -| ----- | ---------------- | -| npcid | NPC 的 ID | -| speed | 要设置的火车速度 | +| 参数 | 说明 | +| ----------- | ---------------- | +| npcid | NPC 的 ID | +| Float:speed | 要设置的火车速度 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetWeaponAccuracy.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetWeaponAccuracy.md index 3eb6644c3f5..d75e3f0bdea 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetWeaponAccuracy.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetWeaponAccuracy.md @@ -11,11 +11,11 @@ tags: ["npc", "武器", "精准度"] 设置 NPC 特定武器的精准度。 -| 参数 | 说明 | -| -------- | ---------------------- | -| npcid | NPC 的 ID | -| weaponid | 要设置精准度的武器 ID | -| accuracy | 精准度值(0.0 到 1.0) | +| 参数 | 说明 | +| -------------- | ---------------------- | +| npcid | NPC 的 ID | +| weaponid | 要设置精准度的武器 ID | +| Float:accuracy | 精准度值(0.0 到 1.0) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Shoot.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Shoot.md index 27f71ef11ff..cb7703b3817 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Shoot.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Shoot.md @@ -17,13 +17,13 @@ tags: ["npc", "武器", "射击", "战斗"] | weapon | 用于射击的武器 ID | | hitId | 被射击目标实体的 ID | | hitType | 被击中的实体类型(玩家、NPC、车辆等) | -| endPointX | 子弹终点的 X 坐标 | -| endPointY | 子弹终点的 Y 坐标 | -| endPointZ | 子弹终点的 Z 坐标 | -| offsetX | 距离击中点的 X 偏移 | -| offsetY | 距离击中点的 Y 偏移 | -| offsetZ | 距离击中点的 Z 偏移 | -| isHit | 射击是否实际击中目标 | +| Float:endPointX | 子弹终点的 X 坐标 | +| Float:endPointY | 子弹终点的 Y 坐标 | +| Float:endPointZ | 子弹终点的 Z 坐标 | +| Float:offsetX | 距离击中点的 X 偏移 | +| Float:offsetY | 距离击中点的 Y 偏移 | +| Float:offsetZ | 距离击中点的 Z 偏移 | +| bool:isHit | 射击是否实际击中目标 | | checkInBetweenFlags | 实体检查标志(默认:NPC_ENTITY_CHECK_ALL) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Spawn.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Spawn.md index 84106e4e545..ca2684c57a3 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Spawn.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_Spawn.md @@ -57,7 +57,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note -- NPC 在生成前必须通过 [NPC_Create](NPC_Create) 创建。 +NPC 在生成前必须通过 [NPC_Create](NPC_Create) 创建。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_StartPlayback.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_StartPlayback.md index 132536a3ad7..b9ba5ca974c 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_StartPlayback.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_StartPlayback.md @@ -11,17 +11,17 @@ tags: ["npc", "录制", "回放"] 通过文件名为 NPC 开始回放录制文件。 -| 参数 | 说明 | -| ------------ | -------------------------- | -| npcid | NPC 的 ID | -| recordName[] | 要回放的录制文件名 | -| autoUnload | 回放完成后是否卸载录制文件 | -| startX | 起始 X 坐标 | -| startY | 起始 Y 坐标 | -| startZ | 起始 Z 坐标 | -| rotX | 起始 X 旋转 | -| rotY | 起始 Y 旋转 | -| rotZ | 起始 Z 旋转 | +| 参数 | 说明 | +| --------------- | -------------------------- | +| npcid | NPC 的 ID | +| recordName[] | 要回放的录制文件名 | +| bool:autoUnload | 回放完成后是否卸载录制文件 | +| Float:startX | 起始 X 坐标 | +| Float:startY | 起始 Y 坐标 | +| Float:startZ | 起始 Z 坐标 | +| Float:rotX | 起始 X 旋转 | +| Float:rotY | 起始 Y 旋转 | +| Float:rotZ | 起始 Z 旋转 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_StartPlaybackEx.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_StartPlaybackEx.md index 68ac7ccb4bf..39d3bc1994d 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_StartPlaybackEx.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_StartPlaybackEx.md @@ -11,17 +11,17 @@ tags: ["npc", "回放", "录制"] 使用预加载的录制 ID 为 NPC 开始回放,支持扩展选项。 -| 参数 | 说明 | -| ---------- | ----------------------- | -| npcid | NPC 的 ID | -| recordId | 预加载的录制 ID | -| autoUnload | 回放完成后是否自动卸载 | -| startX | 相对于录制位置的 X 偏移 | -| startY | 相对于录制位置的 Y 偏移 | -| startZ | 相对于录制位置的 Z 偏移 | -| rotX | X 旋转偏移 | -| rotY | Y 旋转偏移 | -| rotZ | Z 旋转偏移 | +| 参数 | 说明 | +| --------------- | ----------------------- | +| npcid | NPC 的 ID | +| recordId | 预加载的录制 ID | +| bool:autoUnload | 回放完成后是否自动卸载 | +| Float:startX | 相对于录制位置的 X 偏移 | +| Float:startY | 相对于录制位置的 Y 偏移 | +| Float:startZ | 相对于录制位置的 Z 偏移 | +| Float:rotX | X 旋转偏移 | +| Float:rotY | Y 旋转偏移 | +| Float:rotZ | Z 旋转偏移 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md index 0b71e0561e9..993ac833068 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectMaterial.md @@ -9,14 +9,14 @@ tags: ["物体"] 使用游戏中其他模型的纹理替换指定物体的材质。 -| 参数 | 说明 | -| ---------------------- | ---------------------------------------------------------------------------------- | -| objectid | 要修改的物体 ID | -| materialIndex | 要修改的材质索引(0-15) | -| modelid | 包含替换纹理的模型 ID(0 表示透明通道,-1 表示仅修改材质颜色不改变纹理) | -| const textureLibrary[] | 包含替换纹理的 txd 文件名称(不需要时使用"none") | -| const textureName[] | 要使用的替换[纹理](https://models.open.mp/?cat=textures)名称(不需要时使用"none") | -| materialColour | 要设置的材质颜色(**ARGB** 格式的整型或十六进制值,**0** 表示保留原色) | +| 参数 | 说明 | +| ---------------------- | ----------------------------------------------------------------------------------------- | +| objectid | 要修改的物体 ID | +| materialIndex | 要修改的材质索引(0-15) | +| modelid | 包含替换纹理的模型 ID(0 表示透明通道,-1 表示仅修改材质颜色不改变纹理) | +| const textureLibrary[] | 包含替换纹理的 [txd 文件](https://models.open.mp/?cat=textures)名称(不需要时使用"none") | +| const textureName[] | 要使用的替换[纹理](https://models.open.mp/?cat=textures)名称(不需要时使用"none") | +| materialColour | 要设置的材质颜色(**ARGB** 格式的整型或十六进制值,**0** 表示保留原色) | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md index 5ab3221e9aa..faf131ef42e 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCol.md @@ -17,13 +17,9 @@ tags: ["物体", "视角"] ## 返回值 -此函数没有传统意义上的返回值,但会影响后续创建的物体 +**true** - 函数执行成功 -:::note - -此设置仅影响调用函数之后新创建的物体,不会修改已存在物体的视角碰撞状态 - -::: +**false** - 函数执行失败 ## 示例代码 @@ -60,6 +56,12 @@ public OnGameModeInit() ## 须知 +:::note + +此设置仅影响调用函数之后新创建的物体,不会修改已存在物体的视角碰撞状态 + +::: + :::warning 此函数仅在地图边界外生效(X/Y 轴超过 ±3000 单位时) diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCollision.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCollision.md index f0fd2631912..1893c8610bc 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCollision.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetObjectsDefaultCameraCollision.md @@ -17,13 +17,9 @@ tags: ["物体", "视角"] ## 返回值 -此函数没有传统意义上的返回值,但会影响后续创建的物体 +**true** - 函数执行成功 -:::note - -此设置仅影响调用函数之后新创建的物体,不会修改已存在物体的视角碰撞状态 - -::: +**false** - 函数执行失败 ## 示例代码 @@ -60,6 +56,12 @@ public OnGameModeInit() ## 须知 +:::note + +此设置仅影响调用函数之后新创建的物体,不会修改已存在物体的视角碰撞状态 + +::: + :::warning 此函数仅在地图边界外生效(X/Y 轴超过 ±3000 单位时) diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md index a38a68096c1..ea53e02f1bf 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHealth.md @@ -46,7 +46,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - 当生命值设为 0.0 或负数时,玩家会立即死亡 -- 当生命值低于 10.0 或超过 98303.0 时,生命值条会闪烁 +- 当生命值低于 10.0 或超过 32768.0 时,生命值条会闪烁 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md index 70102cccf04..6ef1a3b4747 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerObjectMaterial.md @@ -9,15 +9,15 @@ tags: ["玩家", "物体", "玩家物体"] 将玩家专属物体的纹理替换为游戏内其他模型的纹理 -| 参数 | 说明 | -| ---------------------- | ---------------------------------------------------------------------------------- | -| playerid | 所属玩家 ID | -| objectid | 要替换纹理的物体 ID | -| materialIndex | 要修改的材质索引(0-15) | -| modelid | 目标纹理所在的模型 ID。0 表示透明通道,-1 表示仅修改材质颜色不改变纹理 | -| const textureLibrary[] | 包含替换纹理的 txd 文件名称(若无需求使用"none") | -| const textureName[] | 要使用的替换[纹理](https://models.open.mp/?cat=textures)名称(若无需求使用"none") | -| materialColour | 材质颜色(**ARGB 格式**整型或十六进制)。**0** 表示保留原色 | +| 参数 | 说明 | +| ---------------------- | ----------------------------------------------------------------------------------------- | +| playerid | 所属玩家 ID | +| objectid | 要替换纹理的物体 ID | +| materialIndex | 要修改的材质索引(0-15) | +| modelid | 目标纹理所在的模型 ID。0 表示透明通道,-1 表示仅修改材质颜色不改变纹理 | +| const textureLibrary[] | 包含替换纹理的 [txd 文件](https://models.open.mp/?cat=textures)名称(若无需求使用"none") | +| const textureName[] | 要使用的替换[纹理](https://models.open.mp/?cat=textures)名称(若无需求使用"none") | +| materialColour | 材质颜色(**ARGB 格式**整型或十六进制)。**0** 表示保留原色 | ## 返回值 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md index 9719ccf6c62..7a725016d98 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerWeather.md @@ -37,7 +37,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - 若已启用[TogglePlayerClock](TogglePlayerClock),天气会逐渐变化而非立即切换 -- 游戏实际仅有 21 个有效天气 ID(0-20),但系统不会进行范围校验 +- 游戏实际仅有 23 个有效天气 ID(0-22),但系统不会进行范围校验 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehiclePos.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehiclePos.md index 14195ddd9db..766c6ca4323 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehiclePos.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetVehiclePos.md @@ -34,9 +34,7 @@ SetVehiclePos(vehicleid, 0.0, 0.0, 3.0); :::warning -**已知问题:** - -- 空车辆被传送至高空时不会自然下坠! +**已知问题**:空车辆被传送至高空时不会自然下坠! ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md index 0bd840223dc..c76e1cf7e81 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SetWeather.md @@ -36,7 +36,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::note - 启用[TogglePlayerClock](TogglePlayerClock)后天气会渐变切换,而非立即生效 -- 游戏仅支持 0-20 共 21 种天气 ID,但未做范围校验 +- 游戏仅支持 0-22 共 23 种天气 ID,但未做范围校验 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SpawnPlayer.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SpawnPlayer.md index 5596451f207..ce7d2d9fd88 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SpawnPlayer.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/SpawnPlayer.md @@ -37,9 +37,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::warning -**已知问题:** - -- 若玩家处于车辆中执行生成,会导致玩家手持瓶子异常(该问题已在 open.mp 修复) +**已知问题**:若玩家处于车辆中执行生成,会导致玩家手持瓶子异常(该问题已在 open.mp 修复) ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md index 7fd7abfd3eb..f8674b07e82 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/deleteproperty.md @@ -29,7 +29,7 @@ deleteproperty(0, "", 123984334); :::tip -建议使用 PVars/SVars 或 GVar 插件替代此原生函数,因其执行效率较低。 +建议使用 [PVars](../../tutorials/perplayervariablesystem)/[SVars](../../tutorials/servervariablesystem) 或 [GVar 插件](https://github.com/samp-incognito/samp-gvar-plugin)替代此原生函数,因其执行效率较低。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md index 2b623775edf..8e8839db6f4 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/existproperty.md @@ -32,7 +32,7 @@ if (existproperty(0, "", 123984334)) :::tip -由于性能较低,建议使用 PVars/SVars 或 GVar 插件替代此原生函数 +由于性能较低,建议使用 [PVars](../../tutorials/perplayervariablesystem)/[SVars](../../tutorials/servervariablesystem) 或 [GVar 插件](https://github.com/samp-incognito/samp-gvar-plugin)替代此原生函数 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/format.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/format.md index 8661862cc68..0c2f6aa037f 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/format.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/format.md @@ -83,7 +83,7 @@ SendClientMessage(playerid, 0xFF8000FF, string); // 显示"43%的衬衫是黑色 :::warning -- 此函数不支持压缩字符串([packed](strpack) strings) +此函数不支持压缩字符串([packed](strpack) strings) ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md index e47e6240e5d..e12d8feeead 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/getproperty.md @@ -39,7 +39,7 @@ print(value); :::tip -建议使用 PVars/SVars 或 GVar 插件替代此原生函数,因其执行效率较低 +建议使用 [PVars](../../tutorials/perplayervariablesystem)/[SVars](../../tutorials/servervariablesystem) 或 [GVar 插件](https://github.com/samp-incognito/samp-gvar-plugin)替代此原生函数,因其执行效率较低 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md index af7cd838921..6e2ea3f4afa 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/setproperty.md @@ -50,7 +50,7 @@ setproperty(.value = 123984334, .string = ":)"); :::tip -建议使用 PVars/SVars 或 GVar 插件替代此原生函数,因其执行效率较低。 +建议使用 [PVars](../../tutorials/perplayervariablesystem)/[SVars](../../tutorials/servervariablesystem) 或 [GVar 插件](https://github.com/samp-incognito/samp-gvar-plugin)替代此原生函数,因其执行效率较低。 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md index 06ee61bda6e..2fa55cabbb5 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/dialogstyles.md @@ -142,7 +142,7 @@ playerid = 0, dialogid = YOUR_DIALOGID, response = 0, listitem = 1, inputtext = :::note -- 功能类似 **DIALOG_STYLE_INPUT** +功能类似 **DIALOG_STYLE_INPUT** ::: @@ -184,7 +184,7 @@ playerid = 0, dialogid = YOUR_DIALOGID, response = 0, listitem = -1, inputtext = :::note -- 功能类似 **DIALOG_STYLE_LIST** +功能类似 **DIALOG_STYLE_LIST** ::: @@ -229,7 +229,7 @@ playerid = 0, dialogid = YOUR_DIALOGID, response = 0, listitem = 1, inputtext = :::note -- 功能类似 **DIALOG_STYLE_LIST** +功能类似 **DIALOG_STYLE_LIST** ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/glossary.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/glossary.md index 2b427c50734..46ad155a796 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/glossary.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/glossary.md @@ -7,18 +7,18 @@ tags: [] ## 脚本编写 -| 术语 | 解释 | -| ---------------------- | ---------------------------------------------------------------------------- | -| PAWN | SA-MP 和 open.mp 脚本所使用的编程语言 | -| 游戏模式(Gamemode) | 服务器运行的主脚本 | -| 滤镜脚本(Filterscript) | 与游戏模式协同运行的附加脚本 | -| 插件(Plugin) | 通过 .dll(Windows)或 .so(Linux)文件添加的额外功能/能力 | -| 组件(Component) | open.mp 中对应插件的概念,从 `components` 文件夹加载 | -| 包含文件(Include) | 放置在 .inc 文件中,通过 `#include <名称>` 引入到滤镜脚本/游戏模式的脚本片段 | -| 原生函数(Native) | 由服务器或插件提供的函数,可从 PAWN 中调用 | -| 回调函数(Callback) | 当特定事件发生时(如 OnPlayerConnect),由服务器自动调用的函数 | -| AMX | 从 .pwn 源文件编译生成的 .amx 文件,是服务器实际运行的文件 | -| Tick | 服务器时间的一毫秒,由 [GetTickCount](../functions/GetTickCount) 计数 | +| 术语 | 解释 | +| ---------------------- | ---------------------------------------------------------------------------------------------- | +| PAWN | SA-MP 和 open.mp 脚本所使用的编程语言 | +| 游戏模式(Gamemode) | 服务器运行的主脚本 | +| 滤镜脚本(Filterscript) | 与游戏模式协同运行的附加脚本 | +| 插件(Plugin) | 通过 .dll(Windows)或 .so(Linux)文件添加的额外功能/能力 | +| 组件(Component) | open.mp 中对应插件的概念,从 `components` 文件夹加载 | +| 包含文件(Include) | 放置在 .inc 文件中,通过 `#include <名称>` 引入到滤镜脚本/游戏模式的脚本片段 | +| 原生函数(Native) | 由服务器或插件提供的函数,可从 PAWN 中调用 | +| 回调函数(Callback) | 当特定事件发生时(如 [OnPlayerConnect](../callbacks/OnPlayerConnect)),由服务器自动调用的函数 | +| AMX | 从 .pwn 源文件编译生成的 .amx 文件,是服务器实际运行的文件 | +| Tick | 服务器时间的一毫秒,由 [GetTickCount](../functions/GetTickCount) 计数 | ## 工具 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md index 4c0e271b333..fbf5476dc4c 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/weaponids.md @@ -50,10 +50,10 @@ sidebar_label: 武器ID | ![](https://assets.open.mp/assets/images/weaponIcons/flame-Thrower.png)
火焰喷射器 | ![](https://assets.open.mp/assets/images/deathIcons/death-flameThrower.gif) | WEAPON_FLAMETHROWER(火焰喷射器) | 37 | 7 | 361 | 500 (显示为 50) | 否 | 火箭爆炸或燃烧瓶引发的火焰伤害也使用此 ID。产生的火焰效果不同步 | | ![](https://assets.open.mp/assets/images/weaponIcons/minigun.png)
火神机枪 | ![](https://assets.open.mp/assets/images/deathIcons/death-minigun.gif) | WEAPON_MINIGUN(火神) | 38 | 7 | 362 | 500 | 否 | - | | ![](https://assets.open.mp/assets/images/weaponIcons/satchelCharge.png)
遥控炸弹 | ![](https://assets.open.mp/assets/images/deathIcons/death-satchelCharge.gif) | WEAPON_SATCHEL(遥控炸弹) | 39 | 8 | 363 | 1 | 否 | 仅对投掷时已加载的玩家同步 | -| ![](https://assets.open.mp/assets/images/weaponIcons/detonator.png)
起爆器 | ![](https://assets.open.mp/assets/images/deathIcons/death-detonator.gif) | WEAPON_BOMB(起爆器) | 40 | 12 | 364 | - | - | 玩家投掷遥控炸弹时自动获得(反作弊检查应忽略)。也可引爆其他玩家投掷的炸弹 | +| ![](https://assets.open.mp/assets/images/weaponIcons/detonator.png)
起爆器 | ![](https://assets.open.mp/assets/images/deathIcons/death-detonator.gif) | WEAPON_BOMB(起爆器) | 40 | 12 | 364 | - | - | 玩家投掷遥控炸弹时自动获得。也可引爆其他玩家投掷的炸弹 | | ![](https://assets.open.mp/assets/images/weaponIcons/spraycan.png)
喷漆罐 | ![](https://assets.open.mp/assets/images/deathIcons/death-sprayCan.gif) | WEAPON_SPRAYCAN(喷漆) | 41 | 9 | 365 | 500 | 否 | 被喷漆的玩家会触发窒息动画 | | ![](https://assets.open.mp/assets/images/weaponIcons/fireExtinguisher.png)
灭火器 | ![](https://assets.open.mp/assets/images/deathIcons/death-fireExtinguisher.gif) | WEAPON_FIREEXTINGUISHER | 42 | 9 | 366 | 500 | 否 | 被喷射的玩家会窒息 | -| ![](https://assets.open.mp/assets/images/weaponIcons/camera.png)
相机 | ![](https://assets.open.mp/assets/images/deathIcons/death-camera.gif) | WEAPON_CAMERA | 43 | 9 | 367 | 36 | 否 | 通过暂停菜单启用后,拍摄的照片将保存至玩家图库(路径:我的文档\GTA San Andreas User Files\Gallery) | +| ![](https://assets.open.mp/assets/images/weaponIcons/camera.png)
相机 | ![](https://assets.open.mp/assets/images/deathIcons/death-camera.gif) | WEAPON_CAMERA | 43 | 9 | 367 | 36 | 否 | 通过暂停菜单启用后,拍摄的照片将保存至玩家图库(路径:`我的文档\GTA San Andreas User Files\Gallery`) | | ![](https://assets.open.mp/assets/images/weaponIcons/nightVisGoggles.png)
夜视镜 | ![](https://assets.open.mp/assets/images/deathIcons/death-nightVisGoggles.gif) | WEAPON_NIGHT_VISION_GOGGLES | 44 | 11 | 368 | - | - | 所有玩家都会看到视觉效果(已在 open.mp 中修复) | | ![](https://assets.open.mp/assets/images/weaponIcons/thermalGoggles.png)
热成像镜 | ![](https://assets.open.mp/assets/images/deathIcons/death-thermalGoggles.gif) | WEAPON_THERMAL_GOGGLES | 45 | 11 | 369 | - | - | 所有玩家都会看到视觉效果(已在 open.mp 中修复) | | ![](https://assets.open.mp/assets/images/weaponIcons/parachute.png)
降落伞 | ![](https://assets.open.mp/assets/images/deathIcons/death-parachute.gif) | WEAPON_PARACHUTE | 46 | 11 | 371 | - | - | 使用降落伞俯冲时传送会导致死亡(可通过[ResetPlayerWeapons](../functions/ResetPlayerWeapons)修复)。弃机时自动获得(需在反作弊检测中豁免) | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/PluginDevelopmentGuide.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/PluginDevelopmentGuide.md index eedc2b033d1..a16b0dabc3f 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/PluginDevelopmentGuide.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorials/PluginDevelopmentGuide.md @@ -16,17 +16,17 @@ description: 关于插件开发的指南 这些网站有很棒的教程供学习: -cprogramming.com +[cprogramming.com](https://www.cprogramming.com/) -cplusplus.com +[cplusplus.com](https://cplusplus.com/) -learncpp.com +[learncpp.com](https://www.learncpp.com/) 如果你在 C/++问题上遇到困难, 你可以在以下论坛寻求帮助: -dreamincode.net +[dreamincode.net](https://web.archive.org/web/20220105235917/https://www.dreamincode.net/)(存档) -stackoverflow.com +[stackoverflow.com](https://stackoverflow.com/) ## 常见问题 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 6aafb84968c..447bb4c932c 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 @@ -1127,14 +1127,14 @@ Hello 这一部分与转义序列完全无关,但它用于格式化文本绘图和游戏文本,放在这里比放在其他地方更合适; -| 代码 | 功能说明 | -| ----- | ----------------------------------------------------------------------------------------------- | -| `~u~` | 向上箭头(灰色) | -| `~d~` | 向下箭头(灰色) | -| `~<~` | 向左箭头(灰色) | -| `~>~` | 向右箭头(灰色) | -| `]` | 显示一个 `*` 符号(仅在文本样式 3、4 和 5 中) | -| `~k~` | 键盘键映射(例如 `~k~~VEHICLE_TURRETLEFT~` 和 `~k~~PED_FIREWEAPON~`)。查找按键列表请点击此处。 | +| 代码 | 功能说明 | +| ----- | ---------------------------------------------------------------------------------------------------------------------- | +| `~u~` | 向上箭头(灰色) | +| `~d~` | 向下箭头(灰色) | +| `~<~` | 向左箭头(灰色) | +| `~>~` | 向右箭头(灰色) | +| `]` | 显示一个 `*` 符号(仅在文本样式 3、4 和 5 中) | +| `~k~` | 键盘键映射(例如 `~k~~VEHICLE_TURRETLEFT~` 和 `~k~~PED_FIREWEAPON~`)。请参阅[按键列表](../scripting/resources/keys)。 | ### 格式说明符 diff --git a/frontend/src/data/weapons.ts b/frontend/src/data/weapons.ts index 40fd578a09b..ecd5370fb19 100644 --- a/frontend/src/data/weapons.ts +++ b/frontend/src/data/weapons.ts @@ -457,7 +457,7 @@ export const WEAPONS: Weapon[] = [ slot: 12, model: 364, notes: - "Given automatically when players throw a satchel charge (see ID 39) (omit from anti-cheat checks). It also detonates bombs thrown by other players", + "Given automatically when players throw a satchel charge (see ID 39). It also detonates bombs thrown by other players", }, { id: 41, @@ -495,7 +495,7 @@ export const WEAPONS: Weapon[] = [ clip: "36", interchangeable: "No", notes: - "Saves photos to player's gallery if enabled via pause menu (My Documents\\GTA San Andreas User Files\\Gallery)", + "Saves photos to player's gallery if enabled via pause menu (`My Documents\GTA San Andreas User Files\Gallery`)", }, { id: 44,