SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Thread Tools Display Modes
Old 08/05/2020, 10:22 AM   #851
Little Clucker
Join Date: Sep 2018
Posts: 25
Reputation: 3
Default Re: - Damage system with many features

When vehicle explodes near players take no damage from explosion or when they catch on fire with this code:
public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
    if(Killed[playerid] != 0) return 1;
    hsv[issuerid] = 0;

    if((weapon == WEAPON_CARPARK || weapon == WEAPON_HELIBLADES || weapon == WEAPON_VEHICLE_MINIGUN) && GangTeam[playerid] == 0)
        hsv[issuerid] = 1;
	return 0;
    return 1;
However when I delete all the code inside and leave just this

public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
    return 1;
Damage is being taken normally, I have absolutely not a clue what is preventing the damage.
I tried to debug it, weapon ids that're supposed to damage player on explosion or when he's on fire are ID:54 and ID:37
cipi89 is offline   Reply With Quote
Old 14/05/2020, 10:14 PM   #852
Cypress's Avatar
Join Date: Dec 2009
Location: Germany
Posts: 937
Reputation: 127
Default Re: - Damage system with many features

Not sure who forked the latest version of

\pawno\include\ : error 017: undefined symbol "FreezeSyncPacket"
\pawno\include\ : warning 215: expression has no effect
\pawno\include\ : error 001: expected token: ";", but found ")"
\pawno\include\ : error 029: invalid expression, assumed zero
\pawno\include\ : fatal error 107: too many error messages on one line

Welcome stranger. I like your attitude.
Cypress is offline   Reply With Quote
Old 18/06/2020, 01:09 PM   #853
Little Clucker
Join Date: Nov 2015
Location: Philippines
Posts: 6
Reputation: 0
Default Re: - Damage system with many features

How to use SetCustomFallDamage?
It doesn't work for me

public OnGameModeInit()
muningcat05 is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with weapon damage system thanks JessThompson Scripting Help 7 15/07/2014 01:01 PM
[FilterScript] New Weapon Damage System [0.3z] RenSoprano Filterscripts 6 17/01/2014 06:03 AM
[FilterScript] Weapon damage system [v1.0] Darnell Filterscripts 74 21/10/2013 08:53 PM
[FilterScript] Weapon Damage System Donicans Filterscripts 14 06/11/2012 01:22 PM
[FilterScript] Realistic Weapon Damage And Death System [V1.0][New Cool FS] Nirzor Filterscripts 6 08/08/2012 05:34 AM

All times are GMT. The time now is 10:48 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.