[Ajuda] TextDraw
#1

'''''
Reply
#2

https://sampwiki.blast.hk/wiki/TextDrawShowForPlayer
https://sampwiki.blast.hk/wiki/TextDrawShowForAll
Reply
#3

Obrigado, Consegui.

Poderia tirar uma duvida?

Nessa TextDraw queria trocar o GHLEMES pelo nome do player que vai conectar. Como faзo isso?
Reply
#4

~~~UP~~~
Alguem?
Reply
#5

PHP код:
new Textdraw2[MAX_PLAYERS]; 
PHP код:
Em OnGameModeInit 
PHP код:
for(new i=0i<GetMaxPlayers(); i++)
{
    
Textdraw2[i] = TextDrawCreate(480.000000107.000000"GHLEMES");
    
TextDrawBackgroundColor(Textdraw2[i], 255);
    
TextDrawFont(Textdraw2[i], 1);
    
TextDrawLetterSize(Textdraw2[i], 1.0200002.000000);
    
TextDrawColor(Textdraw2[i], -16776961);
    
TextDrawSetOutline(Textdraw2[i], 0);
    
TextDrawSetProportional(Textdraw2[i], 1);
    
TextDrawSetShadow(Textdraw2[i], 1);

PHP код:
OnPlayerConnect 
PHP код:
    new Pname[MAX_PLAYER_NAME];
    new 
string[128];
    
GetPlayerName(playeridPnamesizeof(Pname));
    
format(stringsizeof(string), "%s"Pname);
    
TextDrawSetString(Textdraw2[playerid], string);
    
TextDrawShowForPlayer(playeridTextdraw2[playerid]); 
Reply
#6

Quote:
Originally Posted by yNexus
Посмотреть сообщение
PHP код:
new Textdraw2[MAX_PLAYERS]; 
PHP код:
Em OnGameModeInit 
PHP код:
for(new i=0i<GetMaxPlayers(); i++)
{
    
Textdraw2[i] = TextDrawCreate(480.000000107.000000"GHLEMES");
    
TextDrawBackgroundColor(Textdraw2[i], 255);
    
TextDrawFont(Textdraw2[i], 1);
    
TextDrawLetterSize(Textdraw2[i], 1.0200002.000000);
    
TextDrawColor(Textdraw2[i], -16776961);
    
TextDrawSetOutline(Textdraw2[i], 0);
    
TextDrawSetProportional(Textdraw2[i], 1);
    
TextDrawSetShadow(Textdraw2[i], 1);

PHP код:
OnPlayerConnect 
PHP код:
    new Pname[MAX_PLAYER_NAME];
    new 
string[128];
    
GetPlayerName(playeridPnamesizeof(Pname));
    
format(stringsizeof(string), "%s"Pname);
    
TextDrawSetString(Textdraw2[playerid], string);
    
TextDrawShowForPlayer(playeridTextdraw2[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
Reply
#7

''''''
Reply
#8

PHP код:
PlayerTextDrawHide(playeridPlayerText:Textdraw1[playerid]); 
Reply
#9

Quote:
Originally Posted by yNexus
Посмотреть сообщение
PHP код:
PlayerTextDrawHide(playeridPlayerText: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
Reply
#10

'''''
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)