[Ajuda] Textdraw clicavel
#4

pawn Код:
new Text:Textdraw0[MAX_PLAYERS];
pawn Код:
public OnPlayerConnect(playerid)
{
    Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 288.800018, 178.453247, "Logar");
    PlayerTextDrawShow(playerid, Textdraw0[playerid]);
}
Comando:
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;
}
Reply


Messages In This Thread
Textdraw clicavel - by SkullFire - 01.07.2014, 19:00
Re: Textdraw clicavel - by SpeakDS - 01.07.2014, 19:05
Respuesta: Textdraw clicavel - by SkullFire - 01.07.2014, 19:08
Re: Textdraw clicavel - by SpeakDS - 01.07.2014, 19:19
Respuesta: Textdraw clicavel - by SkullFire - 01.07.2014, 20:36
Re: Textdraw clicavel - by DoN_ReNaTo - 01.07.2014, 20:43
Respuesta: Textdraw clicavel - by SkullFire - 01.07.2014, 20:51
Re: Textdraw clicavel - by Faix - 01.07.2014, 21:29
Respuesta: Re: Textdraw clicavel - by SkullFire - 01.07.2014, 23:05
Re: Textdraw clicavel - by focaximubh - 02.07.2014, 00:55

Forum Jump:


Users browsing this thread: 1 Guest(s)