Detect SeaSparrow damage amount.
#4

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


Messages In This Thread
Detect SeaSparrow damage amount. - by Adi007 - 04.07.2015, 18:40
Re: Detect SeaSparrow damage amount. - by kyriakos587 - 04.07.2015, 23:59
Re: Detect SeaSparrow damage amount. - by Abagail - 05.07.2015, 00:36
Re: Detect SeaSparrow damage amount. - by Adi007 - 06.07.2015, 10:31

Forum Jump:


Users browsing this thread: 1 Guest(s)