[Ajuda] ajuda com textdraw - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] ajuda com textdraw (
/showthread.php?tid=650241)
ajuda com textdraw -
Santso - 24.02.2018
Entгo galera eu fiz esse textdraw no ipleomax e ele sу ta funcionando no GameModeInit a intenзгo e fazer uma tela de login com o fundo todo preto ai quando tб no gamemodeinit funciona mas se coloco em uma stock ou em uma public que faзo nгo funciona, codigo:
no topo new Text:Textdraw[2];
em gamemodeinit Textdraw[0] = TextDrawCreate(2.000000, 1.500000, "usebox");
TextDrawLetterSize(Textdraw[0], 0.000000, 49.378147);
TextDrawTextSize(Textdraw[0], 637.199951, 0.000000);
TextDrawAlignment(Textdraw[0], 1);
TextDrawColor(Textdraw[0], 0);
TextDrawUseBox(Textdraw[0], true);
TextDrawBoxColor(Textdraw[0], 0x000000FF);
TextDrawSetShadow(Textdraw[0], 0);
TextDrawSetOutline(Textdraw[0], 0);
TextDrawFont(Textdraw[0], 0);
em OnPlayerConnect TextDrawShowForPlayer(playerid, Textdraw[0]);
Re: ajuda com textdraw -
SamuelMatheus05 - 24.02.2018
tente colocar e modo Player
PHP код:
new PlayerText:Textdraw[2];//variavel
PlayerTextdraw[playerid][0] = CreatePlayerTextDraw(2.000000, 1.500000, "usebox");// criar text
PlayerTextDrawLetterSize(Textdraw[playerid][0], 0.000000, 49.378147);
PlayerTextDrawTextSize(Textdraw[playerid][0], 637.199951, 0.000000);
PlayerTextDrawAlignment(Textdraw[playerid][0], 1);
PlayerTextDrawColor(Textdraw[playerid][0], 0);
PlayerTextDrawUseBox(Textdraw[playerid][0], true);
PlayerTextDrawBoxColor(Textdraw[playerid][0], 0x000000FF);
PlayerTextDrawSetShadow(Textdraw[playerid][0], 0);
PlayerTextDrawSetOutline(Textdraw[playerid][0], 0);
PlayerTextDrawFont(Textdraw[playerid][0], 0);
// e para mostrar
OnPlayerConnect PlayerTextDrawShow(playerid, PlayerText:Textdraw[playerid][0]);//mostrar
Não sei se vai funcionar mas tenta ae
Re: ajuda com textdraw -
Santso - 25.02.2018
no caso seria:
new PlayerText:Textdraw[MAX_PLAYERS][2];//certo ?
Re: ajuda com textdraw -
Gguiz - 25.02.2018
Se vocк quer que a TextDraw apareзa apenas na tela de login entгo siga minhas instruзхes.
PHP код:
new Text:Textdraw[0]; //Topo do GM
public OnGameModeInit()
{
Textdraw[0] = TextDrawCreate(2.000000, 1.500000, "usebox");
TextDrawLetterSize(Textdraw[0], 0.000000, 49.378147);
TextDrawTextSize(Textdraw[0], 637.199951, 0.000000);
TextDrawAlignment(Textdraw[0], 1);
TextDrawColor(Textdraw[0], 0);
TextDrawUseBox(Textdraw[0], true);
TextDrawBoxColor(Textdraw[0], 0x000000FF);
TextDrawSetShadow(Textdraw[0], 0);
TextDrawSetOutline(Textdraw[0], 0);
TextDrawFont(Textdraw[0], 0);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw[0]);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
TextDrawHideForPlayer(playerid, Textdraw[0]);
return 1;
}