How to check
#1

How can I check if a player used a tank (rhino) and killed another player?


If they did, it gives them +1 Score.

I can't think of how to do that?
Reply
#2

In OnPlayerDeath:

check if 'killerid' is in a tank
GetVehicleModel(GetPlayerVehicle(killerid)) == 432

if he is, add 1 to his score
Reply
#3

go to the callback, OnPlayerDeath..

and check if the killerid is in a vehicle...and if the killer is in a rhino...
Reply
#4

Will this work if I'm in a hunter and i shoot player who is in car will it still work


And what if i use rhino to shoot a player in car will it work
Reply
#5

Quote:
Originally Posted by ruckfules99
Посмотреть сообщение
Will this work if I'm in a hunter and i shoot player who is in car will it still work


And what if i use rhino to shoot a player in car will it work
Won't since Sa-Mp doesn't detects the killer as killing a player, it detects the player dying from the car's explosion (which is kinda logical but not practical).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)