Detect SeaSparrow damage amount.
#3

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