Quote:
Originally Posted by Abagail
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) { if(weaponid == 38 && IsPlayerInAnyVehicle(issuerid) && GetVehicleModel(GetPlayerVehicleID(issuerid)) == VEHICLE_SEASPARROW) { // player has taken damage from seasparrow }
return 1; }
I believe this should work, it's based off Slice's damage include.
|
I tried it, doesn't work.
weaponid 38 = Minigun...
Quote:
Originally Posted by kyriakos587
i think you have to make it on OnPlayerTakeDamage
IM NOT SURE IF WORK
|
First of all, you are using this wrong:
https://sampwiki.blast.hk/wiki/IsPlayerInAnyVehicle
And...weapn id 31 is M4. This doesn't help me.