[Ajuda] TextDraw
#7

PlayerTextDraw foi feito exatamente para isto. Vamos simplificar.

PHP код:
#include <a_samp>
#include <zcmd>
#define PLAYERS 200
new PlayerText:Name[MAX_PLAYERS];
new 
bool:loggedFirstTime[MAX_PLAYERS];
public 
OnPlayerConnect(playerid)
{
    
loggedFirstTime[playerid] = true;
    
    
Name[playerid] = CreatePlayerTextDraw(playerid1.000000328.000000," ");
    
PlayerTextDrawBackgroundColor(playeridName[playerid], 255);
    
PlayerTextDrawFont(playeridName[playerid], 2);
    
PlayerTextDrawLetterSize(playeridName[playerid], 0.5000001.000000);
    
PlayerTextDrawColor(playeridName[playerid], 16711935);
    
PlayerTextDrawSetOutline(playeridName[playerid], 1);
    
PlayerTextDrawSetProportional(playeridName[playerid], 1);
    
    new 
playerName[MAX_PLAYER_NAME], str[MAX_PLAYER_NAME 10];
    
GetPlayerName(playeridplayerNamesizeof(playerName));
    
format(strsizeof(str), "Nick: ~b~%s"playerName);
    
PlayerTextDrawSetString(playeridName[playerid], str);
    
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    if(
loggedFirstTime[playerid]) {
        
loggedFirstTime[playerid] = false;
        
PlayerTextDrawShow(playeridName[playerid]);
    }
    
    return 
1;
}
COMMAND:pnhaoff(playerid,params[])
{
    
PlayerTextDrawHide(playeridName[playerid]);
    return 
1;

Reply


Messages In This Thread
TextDraw - by maxblaya01 - 18.07.2015, 04:32
Re: TextDraw - by Welconha - 18.07.2015, 04:33
Re : TextDraw - by maxblaya01 - 18.07.2015, 04:47
Re: TextDraw - by Welconha - 18.07.2015, 05:15
Re : TextDraw - by maxblaya01 - 18.07.2015, 05:25
Re: TextDraw - by Welconha - 18.07.2015, 05:27
Re: TextDraw - by Lуs - 18.07.2015, 06:39
Re: TextDraw - by IgorLuiz - 18.07.2015, 07:36
Re: TextDraw - by Lуs - 18.07.2015, 08:43
Re: TextDraw - by IgorLuiz - 18.07.2015, 14:51

Forum Jump:


Users browsing this thread: 2 Guest(s)