[PEDIDO]Sistema de mensagens quando player morre
#2

Utilize OnPlayerDeath.

Exemplo:

pawn Код:
new stringformat[ 200 ], nomeplayer1[MAX_PLAYER_NAME], nomeplayer2[MAX_PLAYER_NAME];
GetPlayerName(playerid, nomeplayer1, sizeof(nomeplayerid1));
GetPlayerName(killerid, nomeplayer2, sizeof(nomeplayerid2));
new ArmaMorte = GetPlayerWeapon(killerid);
format(stringformat, sizeof(stringformat), "[AVISO DE MORTE] %s foi morto por %s. Arma: %s", nomeplayer1, nomeplayer2, ArmaMorte);
SendClientMessageToAll(-1, stringformat);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)