10.03.2013, 16:33
(
Последний раз редактировалось SDraw; 26.03.2013 в 18:36.
)
So, I don't see any person who tried to check this bug...
Ok, I made a video. Maybe now you will believe...
[ame]http://www.youtube.com/watch?v=cc_YLf8pFQc[/ame]
Script code:
And how you can see, client sends data about TD clicking when it's hidden...
Ok, I made a video. Maybe now you will believe...
[ame]http://www.youtube.com/watch?v=cc_YLf8pFQc[/ame]
Script code:
PHP код:
#define FILTERSCRIPT
#include <a_samp>
new Text:Textdraw0;
public OnFilterScriptInit()
{
Textdraw0 = TextDrawCreate(313.000000, 166.250015, "Clickable TD");
TextDrawLetterSize(Textdraw0, 1.031500, 3.618333);
TextDrawTextSize(Textdraw0, 30.500000, 298.083007);
TextDrawAlignment(Textdraw0, 2);
TextDrawColor(Textdraw0, -1);
TextDrawUseBox(Textdraw0, true);
TextDrawBoxColor(Textdraw0, 0);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 1);
TextDrawBackgroundColor(Textdraw0, 51);
TextDrawFont(Textdraw0, 2);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetSelectable(Textdraw0, true);
return 1;
}
public OnPlayerCommandText(playerid,cmdtext[])
{
if(!strcmp(cmdtext,"/choose",true))
{
TextDrawShowForPlayer(playerid,Textdraw0);
SelectTextDraw(playerid,0x73B1EDFF);
return 1;
}
return 0;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Textdraw0)
{
TextDrawHideForPlayer(playerid,Textdraw0);
SendClientMessage(playerid,-1,"Textdraw0 was selected and hidden.");
return 1;
}
return 1;
}