Rhino kills counter?
#1

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

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.
Reply
#3

You could try using OnPlayerDisconnect and reason == 51 but this would be so inaccurate

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new
        RhinoCount;

    if(reason == 51)
        return RhinoCount ++;
       
    return true;
}
or

Quote:
Originally Posted by tyler12
Посмотреть сообщение
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.
Reply
#4

I tried with the OnVehicleDeath before you answers but it doesn't work so well..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)