[AJUDA] textdraw de imagem para login samp
#1

Jб vi em muitos server e jб a bem falado esses textdrow , queria fazer um FS com uma so imagens me manden o link da onde eu vejo as imagens ... por enquanto e isso !
Reply
#2

Topo:
Код:
new Text:Textdraw0;
OnGameModeInit():
Код:
Textdraw0 = TextDrawCreate(0.000000, 1.000000, "loadsc3:loadsc3");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 4);
TextDrawLetterSize(Textdraw0, 0.759999, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 639.000000, 448.000000);
Em OnPlayerConnect(playerid)
Код:
TextDrawShowForPlayer(playerid,Textdraw0);
Em OnPlayerRequestClass(playerid,classid)
Код:
TextDrawHideForPlayer(playerid, Textdraw0);
Espero ter ajudado!
Reply
#3

Quote:
Originally Posted by jefe10
Посмотреть сообщение
Topo:
Код:
new Text:Textdraw0;
OnGameModeInit():
Код:
Textdraw0 = TextDrawCreate(0.000000, 1.000000, "loadsc3:loadsc3");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 4);
TextDrawLetterSize(Textdraw0, 0.759999, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 639.000000, 448.000000);
Espero ter ajudado!
como faz para selecionar a imagem desejada ?
Reply
#4

Sao Arquivos TXD Que ficam na Pasta do seu Gta Models > TXD
Reply
#5

nao funciona em filter scripter ?
pawn Код:
#include <a_samp>

#if defined FILTERSCRIPT
#endif
new Text:Textdraw0;


public OnGameModeInit()
{
Textdraw0 = TextDrawCreate(0.000000, 1.000000, "loadsc3:loadsc3");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 4);
TextDrawLetterSize(Textdraw0, 0.759999, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 639.000000, 448.000000);
}
/////////////////////////////////////////////////////
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,Textdraw0);
}
////////////////////////////////////////////////////
public OnPlayerRequestClass(playerid, classid)
{
TextDrawHideForPlayer(playerid, Textdraw0);
return 1;
}
Reply
#6

Quote:
Originally Posted by RNT
Посмотреть сообщение
nao funciona em filter scripter ?
pawn Код:
#include <a_samp>

#if defined FILTERSCRIPT
#endif
new Text:Textdraw0;


public OnGameModeInit()
{
Textdraw0 = TextDrawCreate(0.000000, 1.000000, "loadsc3:loadsc3");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 4);
TextDrawLetterSize(Textdraw0, 0.759999, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 639.000000, 448.000000);
}
/////////////////////////////////////////////////////
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,Textdraw0);
}
////////////////////////////////////////////////////
public OnPlayerRequestClass(playerid, classid)
{
TextDrawHideForPlayer(playerid, Textdraw0);
return 1;
}
Faltou isto :
pawn Код:
#define FILTERSCRIPT
Reply
#7

pawn Код:
#include <a_samp>

new Text:Textdraw0;

public OnGameModeInit()
{
    Textdraw0 = TextDrawCreate(0.000000, 1.000000, "loadsc3:loadsc3");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 4);
    TextDrawLetterSize(Textdraw0, 0.759999, 1.000000);
    TextDrawColor(Textdraw0, -1);
    TextDrawSetOutline(Textdraw0, 0);
    TextDrawSetProportional(Textdraw0, 1);
    TextDrawSetShadow(Textdraw0, 1);
    TextDrawUseBox(Textdraw0, 1);
    TextDrawBoxColor(Textdraw0, 255);
    TextDrawTextSize(Textdraw0, 639.000000, 448.000000);
}


/////////////////////////////////////////////////////
public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid,Textdraw0);
}


////////////////////////////////////////////////////
public OnPlayerRequestClass(playerid, classid)
{
    TextDrawHideForPlayer(playerid, Textdraw0);
    return 1;
}
Reply
#8

pawn Код:
new Text:Textdraw0;

public OnGameModeInit()
{
    Textdraw0 = TextDrawCreate(0.0, 0.0, "loadsc10:loadsc10");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 4);
    TextDrawLetterSize(Textdraw0,0.290000, 1.300000);
    TextDrawColor(Textdraw0, -1);
    TextDrawSetOutline(Textdraw0, 0);
    TextDrawSetProportional(Textdraw0, 1);
    TextDrawSetShadow(Textdraw0, 1);
    TextDrawUseBox(Textdraw0, 1);
    TextDrawBoxColor(Textdraw0, 255);
    TextDrawTextSize(Textdraw0, 639.000000, 448.000000);
    for(new i; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i))
        {
            TextDrawShowForPlayer(i, Textdraw0);
        }
    }

public OnPlayerConnect(playerid)
{
  TextDrawShowForPlayer(playerid, Textdraw0);
   return 0;
}

public OnPlayerSpawn(playerid)
{
  TextDrawHideForPlayer(playerid, Textdraw0);
    return 0;
}
PARA PEGAR A FOTO > https://sampforum.blast.hk/showthread.php?tid=291722

Reply
#9

Й necessбrio 0.3e RC 4 para usar esse filterscript.

pawn Код:
#include    <a_samp>

new PlayerText:Load;

public OnPlayerConnect(playerid)
{
    Load = CreatePlayerTextDraw(playerid, 0.000000, 1.000000, "loadsc3:loadsc3");
    PlayerTextDrawBackgroundColor(playerid, Load, 255);
    PlayerTextDrawFont(playerid, Load, 4);
    PlayerTextDrawLetterSize(playerid, Load, 0.759999, 1.000000);
    PlayerTextDrawColor(playerid, Load, -1);
    PlayerTextDrawSetOutline(playerid, Load, 0);
    PlayerTextDrawSetProportional(playerid, Load, 1);
    PlayerTextDrawSetShadow(playerid, Load, 1);
    PlayerTextDrawUseBox(playerid, Load, 1);
    PlayerTextDrawBoxColor(playerid, Load, 255);
    PlayerTextDrawTextSize(playerid, Load, 639.000000, 448.000000);
    PlayerTextDrawShow(playerid, PlayerText:Load);
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    PlayerTextDrawHide(playerid, PlayerText:Load);
    return 1;
}
Reply
#10

Algum problema ao incluir ao GM?
Reply
#11

s[o funciona ser dor no GM , nгo pode fazer em FS ?
Reply
#12

@duple post
Alguen ajuda aew ?
Reply
#13

Quote:
Originally Posted by Los
Посмотреть сообщение
Й necessбrio 0.3e RC 4 para usar esse filterscript.

pawn Код:
#include    <a_samp>

new PlayerText:Load;

public OnPlayerConnect(playerid)
{
    Load = CreatePlayerTextDraw(playerid, 0.000000, 1.000000, "loadsc3:loadsc3");
    PlayerTextDrawBackgroundColor(playerid, Load, 255);
    PlayerTextDrawFont(playerid, Load, 4);
    PlayerTextDrawLetterSize(playerid, Load, 0.759999, 1.000000);
    PlayerTextDrawColor(playerid, Load, -1);
    PlayerTextDrawSetOutline(playerid, Load, 0);
    PlayerTextDrawSetProportional(playerid, Load, 1);
    PlayerTextDrawSetShadow(playerid, Load, 1);
    PlayerTextDrawUseBox(playerid, Load, 1);
    PlayerTextDrawBoxColor(playerid, Load, 255);
    PlayerTextDrawTextSize(playerid, Load, 639.000000, 448.000000);
    PlayerTextDrawShow(playerid, PlayerText:Load);
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    PlayerTextDrawHide(playerid, PlayerText:Load);
    return 1;
}
....
Reply
#14

Los como assim 0.3e RC 4 ?
tem que converte de 0.3d para 0.3e ?? sу assim vai pegar nгo entendi bem isso !
explica melhor por favor
Reply
#15

Quote:
Originally Posted by RNT
Посмотреть сообщение
Los como assim 0.3e RC 4 ?
tem que converte de 0.3d para 0.3e ?? sу assim vai pegar nгo entendi bem isso !
explica melhor por favor
https://sampforum.blast.hk/showthread.php?tid=323271
Reply
#16

Ela Em FS
pawn Код:
#include <a_samp>
new Text:Textdraw0;
public OnFilterScriptInit()
{
    Textdraw0 = TextDrawCreate(0.0, 0.0, "loadsc10:loadsc10");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 4);
    TextDrawLetterSize(Textdraw0,0.290000, 1.300000);
    TextDrawColor(Textdraw0, -1);
    TextDrawSetOutline(Textdraw0, 0);
    TextDrawSetProportional(Textdraw0, 1);
    TextDrawSetShadow(Textdraw0, 1);
    TextDrawUseBox(Textdraw0, 1);
    TextDrawBoxColor(Textdraw0, 255);
    TextDrawTextSize(Textdraw0, 639.000000, 448.000000);
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}
main()
{
    print("\n");
    print("");
    print("\n");
}
public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, TextDraw0);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}

public OnPlayerSpawn(playerid)
{
    TextDrawHideForPlayer(playerid, Textdraw0);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)