SA-MP Forums Archive
Rhino kills counter? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Rhino kills counter? (/showthread.php?tid=475919)



Rhino kills counter? - nGen.SoNNy - 15.11.2013

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?


Re: Rhino kills counter? - tyler12 - 15.11.2013

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.


Re: Rhino kills counter? - Patrick - 15.11.2013

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.



Re: Rhino kills counter? - nGen.SoNNy - 15.11.2013

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