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: 30
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: 937
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
Old 18/06/2020, 01:09 PM   #853
muningcat05
Little Clucker
 
Join Date: Nov 2015
Location: Philippines
Posts: 6
Reputation: 0
Default Re: weapon-config.inc - Damage system with many features

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

public OnGameModeInit()
{
SetVehiclePassengerDamage(true);
SetVehicleUnoccupiedDamage(true);
SetDisableSyncBugs(true);
SetCustomFallDamage(true);
}
muningcat05 is offline   Reply With Quote
Old 14/08/2020, 07:43 AM   #854
Penguin1997
Big Clucker
 
Join Date: Dec 2014
Location: BTTDM Zombie Survival
Posts: 70
Reputation: 4
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by Cypress View Post
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
Same issue! contributors fix this please..
__________________

Penguin1997 is offline   Reply With Quote
Old 19/08/2020, 12:36 AM   #855
keJo
Little Clucker
 
Join Date: Mar 2019
Posts: 31
Reputation: 2
Default Re: weapon-config.inc - Damage system with many features

how to use this any can tell me please?
keJo is offline   Reply With Quote
Old 19/08/2020, 02:41 PM   #856
rt-2
Huge Clucker
 
rt-2's Avatar
 
Join Date: Jun 2011
Location: Montréal, Québec, Canada
Posts: 342
Reputation: 43
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by keJo View Post
how to use this any can tell me please?
There is literally a huge 'How to Use' section in the main GitHub page.
__________________
rt-2
-------------------------------------------------
rt-2 is offline   Reply With Quote
Old 21/08/2020, 06:40 PM   #857
MustangV10
Big Clucker
 
Join Date: Dec 2011
Posts: 68
Reputation: 26
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by Cypress View Post
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
Quote:
Originally Posted by Penguin1997 View Post
Same issue! contributors fix this please..
Please update your version of SKY
https://github.com/oscar-broman/SKY/releases/tag/2.3.0

and make sure to download a new version of the include:
https://github.com/oscar-broman/SKY/blob/master/SKY.inc
__________________
MustangV10 is offline   Reply With Quote
Old 22/08/2020, 11:48 AM   #858
xbp13x
Little Clucker
 
xbp13x's Avatar
 
Join Date: Apr 2020
Location: Canada
Posts: 26
Reputation: 8
Default Re: weapon-config.inc - Damage system with many features

Any one have an issue of where the death messages do not send for drown/suicide/fall ?
__________________
xbp13x is offline   Reply With Quote
Old 22/08/2020, 06:19 PM   #859
Greaper
Big Clucker
 
Greaper's Avatar
 
Join Date: Dec 2013
Location: Philippines
Posts: 126
Reputation: 8
Default Re: weapon-config.inc - Damage system with many features

Code:
C:\Users\Ayang\Desktop\SA SERVER\pawno\include\weapon-config.inc(1589) : error 035: argument type mismatch (argument 2)
C:\Users\Ayang\Desktop\SA SERVER\gamemodes\VRPwTune.pwn(1603) : error 021: symbol already defined: "IsPlayerSpawned"
Greaper is offline   Reply With Quote
Old 08/09/2020, 03:46 PM   #860
cipi89
Little Clucker
 
Join Date: Sep 2018
Posts: 30
Reputation: 3
Default Re: weapon-config.inc - Damage system with many features

Same issue as guy above
cipi89 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 06:34 AM.


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