Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions frontend/docs/scripting/functions/GetMyFacingAngle.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion frontend/docs/scripting/functions/SendCommand.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

:::

Expand Down
8 changes: 4 additions & 4 deletions frontend/docs/scripting/resources/specialactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand All @@ -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**). |
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,9 @@ tags: []
</div>

```c
public OnPlayerText(playerid, text[])
{
new Float:Angle;
GetMyFacingAngle(Angle);
printf("الان در زاویه %f رو به رو هستم!", Angle);

```

<div dir="rtl" style={{ textAlign: "right" }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand All @@ -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) |
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

## 相关函数
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand All @@ -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 头文件中**) |