Ugrás a fő tartalomhoz

SelectTextDraw

Description

Display the cursor and allow the player to select a textdraw

NameDescription
playeridThe ID of the player that should be able to select a textdraw
hoverColourThe color of the textdraw when hovering over with mouse (RGBA)

Returns

This function does not return any specific values.

Examples

public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/tdselect", true))
{
SelectTextDraw(playerid, 0x00FF00FF); // Highlight green when hovering over
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Please select a textdraw!");
return 1;
}
return 0;
}

Notes

tanács

It is the TEXT which will be highlighted when hovered over, NOT the box (if one is shown).