[Ajuda] Textdraws setstring
#5

Testa ae

PHP код:
public OnGameModeInit()
{
    
SetTimer("info"10001);
    return 
1;

PHP код:
public OnPlayerConnect(playerid)
{
    
INFO[2][playerid] = CreatePlayerTextDraw(playerid,145.000000,347.000000,"_");
    
PlayerTextDrawUseBox(playeridINFO[2][playerid],1);
    
PlayerTextDrawBoxColor(playeridINFO[2][playerid],0x00000066);
    
PlayerTextDrawTextSize(playeridINFO[2][playerid],196.000000,14.000000);
    
PlayerTextDrawAlignment(playeridINFO[2][playerid],0);
    
PlayerTextDrawBackgroundColor(playeridINFO[2][playerid],0xffffffff);
    
PlayerTextDrawFont(playeridINFO[2][playerid],2);
    
PlayerTextDrawLetterSize(playeridINFO[2][playerid],0.199999,1.400000);
    
PlayerTextDrawColor(playeridINFO[2][playerid],0xffffffff);
    
PlayerTextDrawSetProportional(playeridINFO[2][playerid],1);
    
PlayerTextDrawSetShadow(playeridINFO[2][playerid],0);
    return 
1;

PHP код:
public OnPlayerSpawn(playerid)
{
    
PlayerTextDrawShow(playeridPlayerText:INFO[2][playerid]);
    return 
1;

PHP код:
forward info(playerid);
public 
info(playerid)
{
    new 
STR[128];
    
format(STRsizeof(STR), "~b~Matou: ~w~%d",DOF2::GetInt(String"Matou"));
    
PlayerTextDrawSetString(playeridINFO[2][playerid], STR);
    return 
1;

Reply


Messages In This Thread
Textdraws setstring - by JuniorTheDM - 21.07.2015, 20:47
Re: Textdraws setstring - by JPedro - 21.07.2015, 20:59
Re: Textdraws setstring - by IgorLuiz - 21.07.2015, 21:00
Re: Textdraws setstring - by JuniorTheDM - 21.07.2015, 21:08
Re: Textdraws setstring - by IgorLuiz - 21.07.2015, 21:42
Re: Textdraws setstring - by JuniorTheDM - 21.07.2015, 21:51
Re: Textdraws setstring - by humildadeforever - 21.07.2015, 21:58
Re: Textdraws setstring - by JuniorTheDM - 21.07.2015, 22:08
Re: Textdraws setstring - by humildadeforever - 21.07.2015, 22:22
Re: Textdraws setstring - by JuniorTheDM - 21.07.2015, 22:27

Forum Jump:


Users browsing this thread: 3 Guest(s)