4 horas atrás
(Esta mensagem foi modificada pela última vez a: 4 horas atrás por Mateus Lima.)
inline-textdraw-click
Essa include serve para minimizar o trabalho infernal de ficar usando hook ou ALS para dar uso aos cliques em uma textdraw. Vale ressaltar que funciona para ambos os tipos, seja textdraw global ou player.
USO:
PLAYER TEXTDRAW
Essa include serve para minimizar o trabalho infernal de ficar usando hook ou ALS para dar uso aos cliques em uma textdraw. Vale ressaltar que funciona para ambos os tipos, seja textdraw global ou player.
USO:
PLAYER TEXTDRAW
Código PHP:
Text_playerClicks[playerid][0] = CreatePlayerTextDraw(playerid, 431.000, 169.000, "PLAYER CLICK 1");
PlayerTextDrawLetterSize(playerid, Text_playerClicks[playerid][0], 0.250, 1.500);
PlayerTextDrawTextSize(playerid, Text_playerClicks[playerid][0], 9.000, 67.000);
PlayerTextDrawAlignment(playerid, Text_playerClicks[playerid][0], 2);
PlayerTextDrawColor(playerid, Text_playerClicks[playerid][0], -1);
PlayerTextDrawUseBox(playerid, Text_playerClicks[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, Text_playerClicks[playerid][0], -12254977);
PlayerTextDrawSetShadow(playerid, Text_playerClicks[playerid][0], 1);
PlayerTextDrawSetOutline(playerid, Text_playerClicks[playerid][0], 1);
PlayerTextDrawBackgroundColor(playerid, Text_playerClicks[playerid][0], 150);
PlayerTextDrawFont(playerid, Text_playerClicks[playerid][0], 1);
PlayerTextDrawSetProportional(playerid, Text_playerClicks[playerid][0], 1);
PlayerTextDrawSetSelectable(playerid, Text_playerClicks[playerid][0], 1);
inline PClick1(pid)
{
SendClientMessage(pid, -1, "player click 1");
}
PlayerTextDrawClick(Text_playerClicks[playerid][0], using inline PClick1);
TEXTDRAW GLOBAL
Código PHP:
Text_GClicks[1] = TextDrawCreate(210.000, 200.000, "CLICK2");
TextDrawLetterSize(Text_GClicks[1], 0.300, 1.500);
TextDrawTextSize(Text_GClicks[1], 9.000, 67.000);
TextDrawAlignment(Text_GClicks[1], 2);
TextDrawColor(Text_GClicks[1], -1);
TextDrawUseBox(Text_GClicks[1], 1);
TextDrawBoxColor(Text_GClicks[1], 150);
TextDrawSetShadow(Text_GClicks[1], 1);
TextDrawSetOutline(Text_GClicks[1], 1);
TextDrawBackgroundColor(Text_GClicks[1], 150);
TextDrawFont(Text_GClicks[1], 1);
TextDrawSetProportional(Text_GClicks[1], 1);
TextDrawSetSelectable(Text_GClicks[1], 1);
inline Click2(pid)
{
SendClientMessage(pid, -1, "click 2");
}
TextDrawClick(Text_GClicks[1], using inline Click2);
Espero ter ajudado
https://github.com/mateus-bsod/inline-textdraw-click
