22.04.2014, 00:53
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?
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;
}