[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=507015)
TextDraw -
GHLEMES - 15.04.2014
'''''
Re: TextDraw -
VeNuZ_ - 15.04.2014
https://sampwiki.blast.hk/wiki/TextDrawShowForPlayer
https://sampwiki.blast.hk/wiki/TextDrawShowForAll
Re: TextDraw -
GHLEMES - 15.04.2014
Quote:
Originally Posted by VeNuZ_
|
Obrigado, Consegui.
Poderia tirar uma duvida?
Nessa TextDraw queria trocar o GHLEMES pelo nome do player que vai conectar. Como faзo isso?
Re: TextDraw -
GHLEMES - 15.04.2014
~~~UP~~~
Alguem?
Re: TextDraw -
yNexus - 15.04.2014
PHP код:
new Textdraw2[MAX_PLAYERS];
PHP код:
Em OnGameModeInit
PHP код:
for(new i=0; i<GetMaxPlayers(); i++)
{
Textdraw2[i] = TextDrawCreate(480.000000, 107.000000, "GHLEMES");
TextDrawBackgroundColor(Textdraw2[i], 255);
TextDrawFont(Textdraw2[i], 1);
TextDrawLetterSize(Textdraw2[i], 1.020000, 2.000000);
TextDrawColor(Textdraw2[i], -16776961);
TextDrawSetOutline(Textdraw2[i], 0);
TextDrawSetProportional(Textdraw2[i], 1);
TextDrawSetShadow(Textdraw2[i], 1);
}
PHP код:
new Pname[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, Pname, sizeof(Pname));
format(string, sizeof(string), "%s", Pname);
TextDrawSetString(Textdraw2[playerid], string);
TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
Re: TextDraw -
PT - 15.04.2014
Quote:
Originally Posted by yNexus
PHP код:
new Textdraw2[MAX_PLAYERS];
PHP код:
Em OnGameModeInit
PHP код:
for(new i=0; i<GetMaxPlayers(); i++)
{
Textdraw2[i] = TextDrawCreate(480.000000, 107.000000, "GHLEMES");
TextDrawBackgroundColor(Textdraw2[i], 255);
TextDrawFont(Textdraw2[i], 1);
TextDrawLetterSize(Textdraw2[i], 1.020000, 2.000000);
TextDrawColor(Textdraw2[i], -16776961);
TextDrawSetOutline(Textdraw2[i], 0);
TextDrawSetProportional(Textdraw2[i], 1);
TextDrawSetShadow(Textdraw2[i], 1);
}
PHP код:
new Pname[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, Pname, sizeof(Pname));
format(string, sizeof(string), "%s", Pname);
TextDrawSetString(Textdraw2[playerid], string);
TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
|
esse modo й incorreto.
o correto e fazer com player textdraw (
https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw ) que foi para isso que elas foram feitas
Re: TextDraw -
GHLEMES - 15.04.2014
''''''
Re: TextDraw -
yNexus - 15.04.2014
PHP код:
PlayerTextDrawHide(playerid, PlayerText:Textdraw1[playerid]);
Re: TextDraw -
GHLEMES - 16.04.2014
Quote:
Originally Posted by yNexus
PHP код:
PlayerTextDrawHide(playerid, PlayerText:Textdraw1[playerid]);
|
Atй Deu certo porem quando coloco FS no server nenhum comando funciona sу o /creditosmadd e sу aparece TextDraw1 as Outras nгo
Re: TextDraw -
GHLEMES - 16.04.2014
'''''