15.11.2013, 18:14
Hello guys. I'm gonna finish a new minigame and i need to count the rhino kills between players but... there's the problem xD. It's there a way to do this?
public OnPlayerDeath(playerid, killerid, reason)
{
new
RhinoCount;
if(reason == 51)
return RhinoCount ++;
return true;
}
Either use OnVehicleDeath (https://sampwiki.blast.hk/wiki/OnVehicleDeath) or loop and get the nearest player in a rhino. Personally I'd go for the second option as you have more control over it.
|