إنتقل إلى المحتوى الرئيسي

TogglePlayerWidescreen

warning

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

Description​

Toggle player's widescreen.

NameDescription
playeridThe ID of the player to toggle the widescreen.
bool:widetrue 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: