note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
TogglePlayerWidescreen
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Toggle player's widescreen.
Name | Description |
---|---|
playerid | The ID of the player to toggle the widescreen. |
bool:wide | true for turn on and false for turn off. |
Returns
true - The function was executed successfully.
false - The function failed to execute. This means the player specified does not exist.
Examples
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/widescreen", true))
{
TogglePlayerWidescreen(playerid, true);
SendClientMessage(playerid, -1, "SERVER: You turned on the widescreen!");
return 1;
}
return 0;
}
Widescreen on:
Widescreen off:
Related Functions
- IsPlayerWidescreenToggled: Checks if a player widescreen is on or off.