05.05.2013, 04:44
Try This :-
pawn Код:
new Text:Textdraw10;
//OnGameModeInit
Textdraw10 = TextDrawCreate(280.000000, 166.340713, "Test");
TextDrawLetterSize(Textdraw10, 0.341333, 1.765926);
TextDrawTextSize(Textdraw10, 81.000007, 33.599998);
TextDrawAlignment(Textdraw10, 1);
TextDrawColor(Textdraw10, -1);
TextDrawSetShadow(Textdraw10, 0);
TextDrawSetOutline(Textdraw10, 1);
TextDrawBackgroundColor(Textdraw10, 51);
TextDrawFont(Textdraw10, 2);
TextDrawSetProportional(Textdraw10, 1);
TextDrawSetSelectable(Textdraw10, 1);
// On player connect
TextDrawShowForPlayer(playerid, Text:Textdraw10);
SelectTextDraw(playerid, 0x00FF00FF);
//OnPlayerClickTextdraw
if(clickedid == Text:Textdraw10)
{
SendClientMessage(playerid, 0xFFFFFFAA, "You clicked Test.");
}