Ayuda Texdraw
#1

LISTO!
Reply
#2

Seguro que esas coordenadas estбn bien escritas?
Reply
#3

Quote:
Originally Posted by EnzoMetlc
Посмотреть сообщение
Seguro que esas coordenadas estбn bien escritas?
La verdad no te se decir, ese Box lo saque de acб

https://sampforum.blast.hk/showthread.php?tid=108715

Ya que trato de hacer el Box con el Zamaroth pero no me sale...
Reply
#4

Debes ponerlos en OnPlayerConnnect si quieres que aparezcan cuando entre el jugador, y despuйs ocultarlos en OnPlayerSpawn.
Reply
#5

Quote:
Originally Posted by LuiisRubio
Посмотреть сообщение
Debes ponerlos en OnPlayerConnnect si quieres que aparezcan cuando entre el jugador, y despuйs ocultarlos en OnPlayerSpawn.
Disculpa, que tengo que poner en OnPlayerConnect?
Reply
#6

Quote:
Originally Posted by Fagrinht
Посмотреть сообщение
Disculpa, que tengo que poner en OnPlayerConnect?
Osea muestralas al iniciar y ocultalas al spawnear

Ejemplo en FS

Код:
#include <a_samp>
new Text:lbt,Text:lbb;

public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, lbt);//Muestras las 2 usando Show
TextDrawShowForPlayer(playerid, lbb);
return 1;
}

public OnFilterScriptInit()
{
lbt = TextDrawCreate(-1.000000,2.000000,"---");
TextDrawUseBox(lbt,1);
TextDrawBoxColor(lbt,0x000000ff);
TextDrawTextSize(lbt,640.000000,-69.000000);
TextDrawAlignment(lbt,0);
TextDrawBackgroundColor(lbt,0x000000ff);
TextDrawColor(lbt,0x000000ff);
TextDrawFont(lbt,3);
TextDrawLetterSize(lbt,1.000000,12.199999);
TextDrawSetOutline(lbt,1);
TextDrawSetProportional(lbt,1);
TextDrawSetShadow(lbt,1);

lbb = TextDrawCreate(0.000000,337.000000,"---");
TextDrawUseBox(lbb,1);
TextDrawBoxColor(lbb,0x000000ff);
TextDrawTextSize(lbb,638.000000,-60.000000);
TextDrawAlignment(lbb,0);
TextDrawBackgroundColor(lbb,0x000000ff);
TextDrawFont(lbb,3);
TextDrawLetterSize(lbb,0.899999,15.000000);
TextDrawColor(lbb,0x000000ff);
TextDrawSetOutline(lbb,1);
TextDrawSetProportional(lbb,1);
TextDrawSetShadow(lbb,1);
return 1;
}

public OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid, lbt);
TextDrawHideForPlayer(playerid, lbb);//Las ocultas usando Hide
return 1;
}
Si quieres trabajar de forma mas optimizada, no uses TextDrawCreate usa CreatePlayerTextDraw

Link: https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw
Reply
#7

No borres el tema cuando se soluciona, a otros usuarios tambien podria servirles y si tu lo eliminas fomentas que existan temas duplicados.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)