[Pedido] Textdraw De "Quem Te Matou"
#1

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 ?
Reply
#2

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;
}
Reply
#3

Abaixo de
pawn Код:
Onplayerdeath
?

#EDIT

й xD, eu li agora .. vo test.
Reply
#4

kk, de um f5... dei uma atualizada
Reply
#5

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

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б.
Reply
#7

To tomando um quilo de erro aqui :S
Reply
#8

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..
Reply
#9

Muitas warnings #String .
Reply
#10

Olha naquela parte ali

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


Forum Jump:


Users browsing this thread: 1 Guest(s)