[Ajuda] Como pegar playerdeath db - 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: [Ajuda] Como pegar playerdeath db (
/showthread.php?tid=508411)
Como pegar playerdeath db -
luccagomes15 - 22.04.2014
como pega lб if killerid matou de carro o cara a pй tipo atropelado e tals pra eu fazer uma puniзгo pra qm fizer db?
Re: Como pegar playerdeath db -
Fel486 - 22.04.2014
Utilizando a Public OnPlayerDeath:
https://sampwiki.blast.hk/wiki/OnPlayerDeath
Exemplo:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID && reason == 49) // Se houver matador e se for o ID 49, e o tipo de morte for 49 (por veiculo), entгo...
{
// ... Puniзгo ....
}
return 1;
}
Re: Como pegar playerdeath db -
luccagomes15 - 22.04.2014
era isso msm +rep