SA-MP Forums Archive
[Pedido] Textdraw De "Quem Te Matou" - 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: [Pedido] Textdraw De "Quem Te Matou" (/showthread.php?tid=435207)



Textdraw De "Quem Te Matou" - shadauer - 05.05.2013

Pedido: Quando o Jogador Morre, Aparece na Tela Do Servidor, Sendo no TOPO De Preferкncia, O Nome do Morto, E O nome De Quem Matou.

Exemplo: O Jogador "Joгo" Matou A Jogadora "Maria".

Possнvel ?


Re: Textdraw De "Quem Te Matou" - LucaAllexandre - 05.05.2013

Tente isso!
pawn Код:
//Topo
new Text:matou;

//Em:

public OnGameModeInit()
{
    matou = TextDrawCreate(CORD X, CORD Y, CORD Z, "Matou O Player:");
    return 1;
}

//Em

public OnPlayerDeath(playerid)
{
    new playername[24], killername[24];
    GetPlayerName(playerid, playername, sizeof(playername));
    GetPlayerName(killerid, killername, sizeof(killername));
    new string[128];
    format(matou, sizeof(matou), %s Matou O Player: %s", killername, playername);
    TextDrawSetString(matou);  
    TextDrawShowForPlayer(playerid, matou);
    return 1;
}



Re: Textdraw De "Quem Te Matou" - shadauer - 05.05.2013

Abaixo de
pawn Код:
Onplayerdeath
?

#EDIT

й xD, eu li agora .. vo test.


Re: Textdraw De "Quem Te Matou" - LucaAllexandre - 05.05.2013

kk, de um f5... dei uma atualizada


Re: Textdraw De "Quem Te Matou" - shadauer - 05.05.2013

KKK Viajem minha mesmo, eu percebi dps rsrs , To tentando ve aonde to errando aqui ;s


Re: Textdraw De "Quem Te Matou" - LucaAllexandre - 05.05.2013

Nгo estou falando pra vocк Dar f5, pra ser que й no on player death copie a funзхes que postei abaixo do on player deatch, corrigi, da uma olhada lб.


Re: Textdraw De "Quem Te Matou" - shadauer - 05.05.2013

To tomando um quilo de erro aqui :S


Re: Textdraw De "Quem Te Matou" - LucaAllexandre - 05.05.2013

LOL e.e, posta as linhas, posso ajudar.. a e ve meu post, de como bloquear comandos em uma arena em zcmd
se puder me ajudar lб agradeзo..


Re: Textdraw De "Quem Te Matou" - shadauer - 05.05.2013

Muitas warnings #String .


Re: Textdraw De "Quem Te Matou" - LucaAllexandre - 05.05.2013

Olha naquela parte ali

Esqueci de acrescentar uma "aspas" Correto: "%s Matou O Player: %s"