Onplayerdeath,check players vehicle and reason. - 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: Onplayerdeath,check players vehicle and reason. (
/showthread.php?tid=411755)
Onplayerdeath,check players vehicle and reason. -
Tamer - 30.01.2013
I want it to ban the player if they are using the minigun in a hunter. But it always bans the player using a minigun,doesn't matter in a hunter or not
Re: Onplayerdeath,check players vehicle and reason. -
Threshold - 30.01.2013
Change this line:
pawn Код:
if(GetVehicleModel(!GetPlayerVehicleID( killerid )) == 425) return 0;
To:
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(killerid)) != 425) return 0;