Aller au contenu principal

PlayerTextDrawIsProportional

attention

La fonctionnalité de type fonction a été ajoutée dans la version omp v1.1.0.2612 et ne fonctionne pas avec les versions antérieures !

Description​

Checks if a player-textdraw is proportional.

Parameters​

NameDescription
playeridThe ID of the player.
PlayerText:textidThe ID of the player-textdraw to check.

Return Values​

Returns true if the player-textdraw is proportional, otherwise false.

Example Usage​

new PlayerText:welcomeText[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
welcomeText[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "Welcome to my OPEN.MP server");
PlayerTextDrawSetProportional(playerid, welcomeText[playerid], true);
PlayerTextDrawShow(playerid, welcomeText[playerid]);

if (PlayerTextDrawIsProportional(playerid, welcomeText[playerid]))
{
// Player-Textdraw is proportional
}
else
{
// Player-Textdraw is not proportional
}
return 1;
}