Help clickable Textdraws
#2

Use this

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SUBMISSION)
{
TextDrawShowForPlayer(playerid, gTextDraw);
SelectTextDraw(playerid, 0xFF4040AA);
}
return 1;
}

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == gTextDraw)
{
SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw.");
CancelSelectTextDraw(playerid);
}
return 1;
}
Reply


Messages In This Thread
Help clickable Textdraws - by capottematias - 29.07.2014, 20:29
Re: Help clickable Textdraws - by osman2571 - 29.07.2014, 22:41
Respuesta: Help clickable Textdraws - by capottematias - 29.07.2014, 23:05

Forum Jump:


Users browsing this thread: 1 Guest(s)