SA-MP Forums

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

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

When vehicle explodes near players take no damage from explosion or when they catch on fire with this code:
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

Code:
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
Gangsta
 
Cypress's Avatar
 
Join Date: Dec 2009
Location: Germany
Posts: 938
Reputation: 127
Default Re: weapon-config.inc - Damage system with many features

Not sure who forked the latest version of weapon_config.inc

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

Welcome stranger. I like your attitude.
Cypress is offline   Reply With Quote
Reply

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 05:53 AM.


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