[Ajuda] TextDraw "%s te matou"
#4

Quote:
Originally Posted by MultiKill
Посмотреть сообщение
TextDrawShowForPlayer mostra o text draw para o jogador para alterar o texto vocк deve usar TextDrawSetString
vou dar uma olhada nisso, Obg!

Quote:
Originally Posted by CLANdok
Посмотреть сообщение
Colocando em prбtica o que o multi disse:
pawn Код:
new Text:tematou,

public OnGameModeInit()
{
    tematou = TextDrawCreate(00.000000, 000.000000, " ");
    TextDrawAlignment(tematou, 0);
    TextDrawBackgroundColor(tematou, 000);
    TextDrawFont(tematou, 0);
    TextDrawLetterSize(tematou, 0.000000, 0.000000);
    TextDrawColor(tematou, 0);
    TextDrawSetOutline(tematou, 0);
    TextDrawSetProportional(tematou, 0);
    TextDrawSetShadow(tematou, 0);
}

public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID)
    {
        new killernick[24];
        GetPlayerName(killerid, killernick, sizeof(killernick));
        new string[128];
        TextDrawHideForPlayer(playerid, tematou); // Evitar bug's, se der mais bug's remova.
        format(string, sizeof(string), "%s te matou", killernick);
        TextDrawSetString(tematou, string);
        TextDrawShowForPlayer(playerid, tematou);
    }
}
Jah tenho colocado TextDrawHideForPlayer na minha public AutoSpawn(playerid)
Reply


Messages In This Thread
[RESOLVIDO] TextDraw "%s te matou" - by SrDonalds - 18.12.2014, 19:15
Re: TextDraw "%s te matou" - by MultiKill - 18.12.2014, 19:20
Re: TextDraw "%s te matou" - by CLANdok - 18.12.2014, 19:25
Re: TextDraw "%s te matou" - by SrDonalds - 18.12.2014, 19:34
Re: TextDraw "%s te matou" - by CLANdok - 18.12.2014, 19:35
Re: TextDraw "%s te matou" - by SrDonalds - 18.12.2014, 19:56
Re: TextDraw "%s te matou" - by DarthVeider - 19.12.2014, 14:56
Re: TextDraw "%s te matou" - by JonathanFeitosa - 19.12.2014, 15:04

Forum Jump:


Users browsing this thread: 2 Guest(s)