01.07.2014, 19:19
pawn Код:
new Text:Textdraw0[MAX_PLAYERS];
pawn Код:
public OnPlayerConnect(playerid)
{
Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 288.800018, 178.453247, "Logar");
PlayerTextDrawShow(playerid, Textdraw0[playerid]);
}
pawn Код:
CMD:teste123(playerid)
{
PlayerTextDrawSetSelectable(Textdraw0[playerid], true);
return 1;
}
pawn Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if(playertextid == Textdraw0[playerid])
{
SendClientMessage(playerid, 0xFFFFFFAA, "Clicou no login \"Textdraw0\".");
CancelSelectTextDraw(playerid);
}
return 1;
}