[Ajuda]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]TextDraw (
/showthread.php?tid=338617)
[Ajuda]TextDraw -
Diogo123 - 30.04.2012
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 ?
Re: [Ajuda]TextDraw -
Detonador - 30.04.2012
pawn Код:
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, patrick);
return 1;
}
Re: [Ajuda]TextDraw -
Diogo123 - 30.04.2012
Quote:
Originally Posted by Detonador
pawn Код:
public OnPlayerSpawn(playerid) { TextDrawShowForPlayer(playerid, patrick); return 1; }
|
nгo funciono =(
Re: [Ajuda]TextDraw -
Detonador - 30.04.2012
vc tem mais text draws? talvez um esteja bugando o outro.
Re: [Ajuda]TextDraw -
Fernando Vinewood - 30.04.2012
No topo do GM coloque:
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);
Re: [Ajuda]TextDraw -
.FuneraL. - 30.04.2012
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);