You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 19, 2020. It is now read-only.
GtakillerIV edited this page Nov 13, 2014
·
3 revisions
GetPlayerResolution
Retrieves the player's game resolution
Parameters
playerid
The player's id.
Returns
1 on all occasions
Usage
CMD:getresolution(playerid, params[])
{
//If the player has the SA-MP+ plugin installedif(IsUsingSAMPP(playerid))
{
new string[128];
new X, Y;
GetPlayerResolution(playerid, X, Y);
format(string, sizeof(string), "Your resolution is: %d x %d", X, Y);
SendClientMessage(playerid, -1, string);
}
else
{
SendClientMessage(playerid, -1, "You need the SA-MP+ plugin");
}
return1;
}