[Ajuda] Como pegar playerdeath db
#1

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

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;

}
Reply
#3

era isso msm +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)