[Ajuda]TextDraw
#1

Ai gente estou com um problema,eu criei um TextDraw que aparece : Viu Hack? /report [id] motivo sу que quando eu entro no server o TextDraw nгo aparece o cуdigo

Topo do gm
pawn Код:
new Text:patrick;

public OnGameModeInit()  {
        patrick = TextDrawCreate(167, 456, "/report [id] motivo");
    TextDrawFont(patrick , 0);
    TextDrawLetterSize(patrick , 1, 7);
    TextDrawColor(patrick , 0x780729FF);
    TextDrawSetOutline(patrick , 0);
    TextDrawSetProportional(patrick , 1);
    TextDrawSetShadow(patrick , 1);
    return 1;
    }
oque tem de errado ?
Reply
#2

pawn Код:
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, patrick);
return 1;
}
Reply
#3

Quote:
Originally Posted by Detonador
Посмотреть сообщение
pawn Код:
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, patrick);
return 1;
}
nгo funciono =(
Reply
#4

vc tem mais text draws? talvez um esteja bugando o outro.
Reply
#5

No topo do GM coloque:

pawn Код:
new Text:report;
No OnGameModeInit coloque:
pawn Код:
report= TextDrawCreate(167, 456, "/report [id] motivo");
TextDrawFont(report, 1);
TextDrawLetterSize(report, 1, 7);
TextDrawColor(report, 0x780729FF);
TextDrawSetOutline(report, 0);
TextDrawSetProportional(report, 1);
TextDrawSetShadow(report, 1);
Agora vocк escolhe, se vocк quizer que ela apreзa quando ele conectar coloque no OnPlayerConnect, se vocк quizer que apareзa quando ele der spawn coloque no OnPlayerSpawn

pawn Код:
TextDrawShowForPlayer(playerid, report);
Reply
#6

pawn Код:
new Text:patrick;

public OnGameModeInit()  
{
    patrick = TextDrawCreate(167, 456, "/report [id] motivo");
    TextDrawFont(patrick , 0);
    TextDrawLetterSize(patrick , 1, 7);
    TextDrawColor(patrick , 0x780729FF);
    TextDrawSetOutline(patrick , 0);
    TextDrawSetProportional(patrick , 1);
    TextDrawSetShadow(patrick , 1);
    for(new i; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i))
        {
            TextDrawShowForPlayer(i, patrick);
        }
    }
    return 1;
    }
OnPlayerConnect :

pawn Код:
TextDrawShowForPlayer(playerid, patrick);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)