[Ajuda] ajuda com textdraw
#1

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]);
Reply
#2

tente colocar e modo Player
PHP код:
new PlayerText:Textdraw[2];//variavel
PlayerTextdraw[playerid][0] = CreatePlayerTextDraw(2.0000001.500000"usebox");// criar text
PlayerTextDrawLetterSize(Textdraw[playerid][0], 0.00000049.378147);
PlayerTextDrawTextSize(Textdraw[playerid][0], 637.1999510.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(playeridPlayerText:Textdraw[playerid][0]);//mostrar 
Não sei se vai funcionar mas tenta ae
Reply
#3

no caso seria:
new PlayerText:Textdraw[MAX_PLAYERS][2];//certo ?
Reply
#4

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.0000001.500000"usebox");
    
TextDrawLetterSize(Textdraw[0], 0.00000049.378147);
    
TextDrawTextSize(Textdraw[0], 637.1999510.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(playeridTextdraw[0]);
    return 
1;
}
public 
OnPlayerRequestClass(playeridclassid)
{    
    
TextDrawHideForPlayer(playeridTextdraw[0]);
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)