SA-MP Forums Archive
[Pedido] Matar e morreu aparecer no chat - 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] Matar e morreu aparecer no chat (/showthread.php?tid=460526)



Matar e morreu aparecer no chat - luccagomes15 - 28.08.2013

Queria um script que toda vez q vc morre-se pra alguem manda-se uma msg no chat lб onde escreve
(( Vocк morreu pra tal cara, com tal arma ))
E qnd mata-se aparece-se
(( Vocк matou tal cara, com tal arma ))

Jб procurei mas nunca acho sempre acho daquele chat do f9 lб do chat kill e n sei fazer pq sou nb =\


Re: Matar e morreu aparecer no chat - Lуs - 28.08.2013

SendDeathMessage

--

Entendi errado.

Use:

pawn Код:
new
     killerName[MAX_PLAYER_NAME],
     playeridName[MAX_PLAYER_NAME],
     formattedMessage[128];

GetPlayerName(killerid, killerName, sizeof killerName);
GetPlayerName(playerid, playeridName, sizeof playeridName);

format(formattedMessage, sizeof formattedMessage, "O jogador: %s (%d) matou o jogador %s (%d)", killerName, killerid, playeridName, playerid);
SendClientMessageToAll(-1, formattedMessage);
Coloque este cуdigo na OnPlayerDeath.


Re: Matar e morreu aparecer no chat - Zomber - 29.08.2013

nessa pagina do Codigos Uteis tem 1 olhe
https://sampforum.blast.hk/showthread.php?tid=144744&page=264


Re: Matar e morreu aparecer no chat - luccagomes15 - 29.08.2013

Quote:
Originally Posted by Lуs
Посмотреть сообщение
SendDeathMessage

--

Entendi errado.

Use:

pawn Код:
new
     killerName[MAX_PLAYER_NAME],
     playeridName[MAX_PLAYER_NAME],
     formattedMessage[128];

GetPlayerName(killerid, killerName, sizeof killerName);
GetPlayerName(playerid, playeridName, sizeof playeridName);

format(formattedMessage, sizeof formattedMessage, "O jogador: %s (%d) matou o jogador %s (%d)", killerName, killerid, playeridName, playerid);
SendClientMessageToAll(-1, formattedMessage);
Coloque este cуdigo na OnPlayerDeath.
Й quase isso, mas a msg sу era pra aparecer pro cara que matou e pro que morreu
tipo: vc matou fulano com desert eagle
vc morreu para fulano com desert eagle

Saca?


Re: Matar e morreu aparecer no chat - PT - 29.08.2013

isso e simples

aqui tem

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new
        matador[MAX_PLAYER_NAME],
        morto[MAX_PLAYER_NAME],
        nomearma[32],
        pt[128]
    ;

    GetPlayerName(killerid, matador, MAX_PLAYER_NAME);
    GetPlayerName(playerid, morto, MAX_PLAYER_NAME);
    GetWeaponName(reason,nomearma,sizeof(nomearma));

    format(pt, sizeof pt, "Voce morreu para %s com uma %s", matador, nomearma);
    SendClientMessage(playerid, -1, pt);

    format(pt, sizeof pt, "Voce matou %s com uma %s ", morto, nomearma);
    SendClientMessage(killerid, -1, pt);
    return 1;
}
acho que ta certo


Re: Matar e morreu aparecer no chat - luccagomes15 - 30.08.2013

PT nem funcionou qnd vc mata n aparece nada e qnd vc morre sу aparece assim: Voce morreu para com uma


Re: Matar e morreu aparecer no chat - bruxo00 - 30.08.2013

Й porque vocк fez errado. Tem de funcionar.


Re: Matar e morreu aparecer no chat - PT - 30.08.2013

esse code e obrigado a funcionar...