Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

OnPlayerResolutionChange

GtakillerIV edited this page Dec 15, 2014 · 3 revisions

OnPlayerResolutionChange

Gets called when a player's resolution changes

Note This callback gets called once when a player joins.

Note If you use GetPlayerResolution under this callback, it'll return the player's old resolution(it won't match the X and Y parameters in this callback).


Parameters

playerid

The player's id.

X

The amount of horizontal pixels - width.

Y

The amount of vertical pixels - height.

Usage

public OnPlayerResolutionChange(playerid, X, Y)
{
	new string[128];

	format(string, sizeof(string), "Your new resolution is %d x %d", X, Y);

	SendClientMessage(playerid, -1, string);
}

See Also

GetPlayerResolution

Clone this wiki locally