if(strcmp(cmd, "/1", true) == 0)
{
print("sdadd");
SelectTextDraw(playerid, -1);
TextDrawShowForPlayer(playerid, Textdraw5);
return 1;
}
Textdraw5 = TextDrawCreate(227.000000, 93.593315, "usebox");
TextDrawLetterSize(Textdraw5, 0.000000, 12.625554);
TextDrawTextSize(Textdraw5, 54.888889, 0.000000);
TextDrawAlignment(Textdraw5, 1);
TextDrawSetSelectable(Textdraw5, true);//clik
TextDrawColor(Textdraw5, 0);
TextDrawUseBox(Textdraw5, true);
TextDrawBoxColor(Textdraw5, 102);
TextDrawSetShadow(Textdraw5, -26);
TextDrawSetOutline(Textdraw5, 0);
TextDrawFont(Textdraw5, 0);
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(_:clickedid != INVALID_TEXT_DRAW) {
if(clickedid == Textdraw5)
{
SendClientMessage(playerid, -1, "5");
}
else if(clickedid == Textdraw44)
{
SendClientMessage(playerid, -1, "44");
}
}
return 1; }
TextDrawTextSize(Textdraw5, /*Ширина бокса и его клик по ширине*/50.0, /*Клик по вертикали*/50.0);
TextDrawAlignment(Textdraw5, /*Выровняем по центру*/2);
я да ни**я!
до if(strcmp(cmd, "/1", true) == 0) { print("sdadd"); SelectTextDraw(playerid, -1); TextDrawShowForPlayer(playerid, Textdraw5); return 1; } полсе if(strcmp(cmd, "/1", true) == 0) { print("sdadd"); SelectTextDraw(playerid, Textdraw5); TextDrawShowForPlayer(playerid, Textdraw5); return 1; } |
playerid The ID of the player that should be able to select a textdraw
hovercolor The color of the textdraw when hovering over with mouse
Textdraw0 = TextDrawCreate(50.000000, 200.000000, "_"); TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 1); TextDrawLetterSize(Textdraw0, 0.500000, 1.000000); TextDrawColor(Textdraw0, -1); TextDrawSetOutline(Textdraw0, 0); TextDrawSetProportional(Textdraw0, 1); TextDrawSetShadow(Textdraw0, 1); TextDrawUseBox(Textdraw0, 1); TextDrawBoxColor(Textdraw0, 572661589); TextDrawTextSize(Textdraw0, 169.000000, 10.000000); TextDrawSetSelectable(Textdraw0, 1);
не позорься
PHP код:
|
не позорься
PHP код:
|