diff --git a/frontend/docs/scripting/functions/GetMyFacingAngle.md b/frontend/docs/scripting/functions/GetMyFacingAngle.md index aa18a59ac6f..12c8834126c 100644 --- a/frontend/docs/scripting/functions/GetMyFacingAngle.md +++ b/frontend/docs/scripting/functions/GetMyFacingAngle.md @@ -26,12 +26,9 @@ The facing angle is stored in the specified variable. ## Examples ```c -public OnPlayerText(playerid, text[]) -{ new Float:Angle; GetMyFacingAngle(Angle); printf("I am currently facing %f!", Angle); - ``` ## Related Functions diff --git a/frontend/docs/scripting/functions/SendCommand.md b/frontend/docs/scripting/functions/SendCommand.md index 00d4fc657d9..a0e1130ee48 100644 --- a/frontend/docs/scripting/functions/SendCommand.md +++ b/frontend/docs/scripting/functions/SendCommand.md @@ -9,7 +9,7 @@ tags: [] This function is deprecated. -See `PC_EmulateCommand` for Pawn.CMD or similar means for other command processors. +See `PC_EmulateCommand` for [Pawn.CMD](https://github.com/katursis/Pawn.CMD) or similar means for other command processors. ::: diff --git a/frontend/docs/scripting/resources/specialactions.md b/frontend/docs/scripting/resources/specialactions.md index 1efe3f69d26..e958bf4f27d 100644 --- a/frontend/docs/scripting/resources/specialactions.md +++ b/frontend/docs/scripting/resources/specialactions.md @@ -16,7 +16,10 @@ Special actions marked with \* cannot be set using [SetPlayerSpecialAction](../f | ID | Action | Description | | --- | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | | 0 | SPECIAL_ACTION_NONE | Clears player of special actions | +| 1 | SPECIAL_ACTION_DUCK \* | Detect if the player is crouching. | | 2 | SPECIAL_ACTION_USEJETPACK | Will make the player using jetpack | +| 3 | SPECIAL_ACTION_ENTER_VEHICLE \* | Detect if the player is entering a vehicle via an animation. | +| 4 | SPECIAL_ACTION_EXIT_VEHICLE \* | Detect if the player is exiting a vehicle via an animation. | | 5 | SPECIAL_ACTION_DANCE1 | Applies dancing animation for player | | 6 | SPECIAL_ACTION_DANCE2 | Applies dancing animation for player | | 7 | SPECIAL_ACTION_DANCE3 | Applies dancing animation for player | @@ -25,13 +28,10 @@ Special actions marked with \* cannot be set using [SetPlayerSpecialAction](../f | 11 | SPECIAL_ACTION_USECELLPHONE | Will make the player speaking on cellphone | | 12 | SPECIAL_ACTION_SITTING \* | Detects if the player is sitting | | 13 | SPECIAL_ACTION_STOPUSECELLPHONE | Makes players stop using cellphone | -| 1 | SPECIAL_ACTION_DUCK \* | Detect if the player is crouching. | -| 3 | SPECIAL_ACTION_ENTER_VEHICLE \* | Detect if the player is entering a vehicle via an animation. | -| 4 | SPECIAL_ACTION_EXIT_VEHICLE \* | Detect if the player is exiting a vehicle via an animation. | | 20 | SPECIAL_ACTION_DRINK_BEER | Will increase the player's drunk level when used | | 21 | SPECIAL_ACTION_SMOKE_CIGGY | Will give the player a cigar. | | 22 | SPECIAL_ACTION_DRINK_WINE | Will give the player a wine bottle to get drunk from | | 23 | SPECIAL_ACTION_DRINK_SPRUNK | Will give the player a sprunk bottle to drink from | -| 68 | SPECIAL_ACTION_PISSING | Will make the player perform the pissing animation with visible pee (**the macro is not present in the SA-MP include files**). | | 24 | SPECIAL_ACTION_CUFFED | Will force the player in to cuffs (hands are behind their back) (**does not work on CJ skin**). | | 25 | SPECIAL_ACTION_CARRY | Will apply a 'carrying' animation to the player and make them unable to sprint, jump or punch (**does not work on CJ skin**). | +| 68 | SPECIAL_ACTION_PISSING | Will make the player perform the pissing animation with visible pee (**the macro is not present in the SA-MP include files**). | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetMyFacingAngle.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetMyFacingAngle.md index 640087cb0e3..22dba2b47be 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetMyFacingAngle.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/GetMyFacingAngle.md @@ -20,12 +20,9 @@ Ugao posmatranja je pohranjen u navedenoj varijabli. ## Primjeri ```c -public OnPlayerText(playerid, text[]) -{ new Float:Angle; GetMyFacingAngle(Angle); printf("Trenutno posmatram %f!", Angle); - ``` ## Srodne Funkcije diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetMyFacingAngle.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetMyFacingAngle.md index 18159b87d2d..d54595b4127 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetMyFacingAngle.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetMyFacingAngle.md @@ -24,12 +24,9 @@ tags: [] ```c -public OnPlayerText(playerid, text[]) -{ new Float:Angle; GetMyFacingAngle(Angle); printf("الان در زاویه %f رو به رو هستم!", Angle); - ```
diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/specialactions.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/specialactions.md index 762f96faa42..8b388c42eb9 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/specialactions.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/specialactions.md @@ -8,13 +8,18 @@ tags: ["player"] Deze pagina bundelt de speciale acties voor [GetPlayerSpecialAction](../functions/GetPlayerSpecialAction) en [SetPlayerSpecialAction](../functions/SetPlayerSpecialAction). :::warning + Acties met \* kunnen niet via `SetPlayerSpecialAction` gezet worden. + ::: | ID | Actie | Beschrijving | | --- | --------------------------------| ------------------------------------------------------------------------------------------- | | 0 | SPECIAL_ACTION_NONE | Verwijdert speciale actie | +| 1 | SPECIAL_ACTION_DUCK \* | Detecteert hurken | | 2 | SPECIAL_ACTION_USEJETPACK | Speler gebruikt jetpack | +| 3 | SPECIAL_ACTION_ENTER_VEHICLE \* | Detecteert instappen via animatie | +| 4 | SPECIAL_ACTION_EXIT_VEHICLE \* | Detecteert uitstappen via animatie | | 5 | SPECIAL_ACTION_DANCE1 | Dansanimatie 1 | | 6 | SPECIAL_ACTION_DANCE2 | Dansanimatie 2 | | 7 | SPECIAL_ACTION_DANCE3 | Dansanimatie 3 | @@ -23,15 +28,10 @@ Acties met \* kunnen niet via `SetPlayerSpecialAction` gezet worden. | 11 | SPECIAL_ACTION_USECELLPHONE | Bellen met telefoon | | 12 | SPECIAL_ACTION_SITTING \* | Detecteert zitten | | 13 | SPECIAL_ACTION_STOPUSECELLPHONE | Stoppen met telefoon | -| 1 | SPECIAL_ACTION_DUCK \* | Detecteert hurken | -| 3 | SPECIAL_ACTION_ENTER_VEHICLE \* | Detecteert instappen via animatie | -| 4 | SPECIAL_ACTION_EXIT_VEHICLE \* | Detecteert uitstappen via animatie | | 20 | SPECIAL_ACTION_DRINK_BEER | Verhoogt dronkenheidsniveau | | 21 | SPECIAL_ACTION_SMOKE_CIGGY | Geeft speler een sigaar | | 22 | SPECIAL_ACTION_DRINK_WINE | Geeft speler een wijnfles | | 23 | SPECIAL_ACTION_DRINK_SPRUNK | Geeft speler een Sprunk‑fles | -| 68 | SPECIAL_ACTION_PISSING | Plast‑animatie met zichtbaar effect (macro ontbreekt in SA‑MP include) | | 24 | SPECIAL_ACTION_CUFFED | Handboeien (werkt niet op CJ‑skin) | | 25 | SPECIAL_ACTION_CARRY | Draag‑animatie; sprinten/springen/slaan uitgeschakeld (werkt niet op CJ‑skin) | - - +| 68 | SPECIAL_ACTION_PISSING | Plast‑animatie met zichtbaar effect (macro ontbreekt in SA‑MP include) | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetMyFacingAngle.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetMyFacingAngle.md index 22a71f7ef3f..5f3ad61c1dc 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetMyFacingAngle.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetMyFacingAngle.md @@ -26,12 +26,9 @@ tags: [] ## 示例代码 ```c -public OnPlayerText(playerid, text[]) -{ - new Float:Angle; - GetMyFacingAngle(Angle); - printf("我正面对着 %f!", Angle); -} +new Float:Angle; +GetMyFacingAngle(Angle); +printf("我正面对着 %f!", Angle); ``` ## 相关函数 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/specialactions.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/specialactions.md index 28561d29e5b..fd985208427 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/specialactions.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/specialactions.md @@ -16,7 +16,10 @@ tags: ["玩家"] | ID | 动作名称 | 说明 | | --- | ------------------------------- | -------------------------------------------------------------------- | | 0 | SPECIAL_ACTION_NONE | 清除玩家所有特殊动作 | +| 1 | SPECIAL_ACTION_DUCK \* | 检测玩家是否处于蹲下状态 | | 2 | SPECIAL_ACTION_USEJETPACK | 使玩家使用喷气背包 | +| 3 | SPECIAL_ACTION_ENTER_VEHICLE \* | 检测玩家是否正在通过动画进入车辆 | +| 4 | SPECIAL_ACTION_EXIT_VEHICLE \* | 检测玩家是否正在通过动画离开车辆 | | 5 | SPECIAL_ACTION_DANCE1 | 播放舞蹈动画 1 | | 6 | SPECIAL_ACTION_DANCE2 | 播放舞蹈动画 2 | | 7 | SPECIAL_ACTION_DANCE3 | 播放舞蹈动画 3 | @@ -25,13 +28,10 @@ tags: ["玩家"] | 11 | SPECIAL_ACTION_USECELLPHONE | 使玩家使用手机通话 | | 12 | SPECIAL_ACTION_SITTING \* | 检测玩家是否处于坐下状态 | | 13 | SPECIAL_ACTION_STOPUSECELLPHONE | 使玩家停止使用手机 | -| 1 | SPECIAL_ACTION_DUCK \* | 检测玩家是否处于蹲下状态 | -| 3 | SPECIAL_ACTION_ENTER_VEHICLE \* | 检测玩家是否正在通过动画进入车辆 | -| 4 | SPECIAL_ACTION_EXIT_VEHICLE \* | 检测玩家是否正在通过动画离开车辆 | | 20 | SPECIAL_ACTION_DRINK_BEER | 使用后会增加玩家醉酒值 | | 21 | SPECIAL_ACTION_SMOKE_CIGGY | 使玩家抽雪茄 | | 22 | SPECIAL_ACTION_DRINK_WINE | 使玩家饮用葡萄酒瓶并进入醉酒状态 | | 23 | SPECIAL_ACTION_DRINK_SPRUNK | 使玩家饮用 Sprunk 饮料 | -| 68 | SPECIAL_ACTION_PISSING | 播放小便动画并显示尿液效果(**该宏未包含在 SA-MP 头文件中**) | | 24 | SPECIAL_ACTION_CUFFED | 强制玩家做出被拷动作(双手背在身后)(在 CJ 皮肤上无效) | | 25 | SPECIAL_ACTION_CARRY | 使玩家呈现"搬运"动画,并使其无法冲刺、跳跃或挥拳(在 CJ 皮肤上无效) | +| 68 | SPECIAL_ACTION_PISSING | 播放小便动画并显示尿液效果(**该宏未包含在 SA-MP 头文件中**) |