SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 13/08/2018, 09:54 PM   #811
severance
Big Clucker
 
Join Date: Apr 2015
Posts: 126
Reputation: 8
Default Re: weapon-config.inc - Damage system with many features

Just asking how can i change the damage value for a weapon? for example deagle does 46 damage how can you make it to 25?
severance is offline   Reply With Quote
Old 14/08/2018, 12:23 AM   #812
Verc
Banned
 
Join Date: Apr 2018
Location: 🇯🇵
Posts: 172
Reputation: 42
Default Re: weapon-config.inc - Damage system with many features

SetWeaponDamage(weaponid, damage_type, Float:amount, Float:...);
Verc is offline   Reply With Quote
Old 05/09/2018, 05:30 AM   #813
sonn51280
Big Clucker
 
sonn51280's Avatar
 
Join Date: Jun 2017
Location: Vietnamese
Posts: 72
Reputation: 0
Default Re: weapon-config.inc - Damage system with many features

how to compiler .inc file ?
sonn51280 is offline   Reply With Quote
Old 20/10/2018, 03:39 AM   #814
DeLTi
Little Clucker
 
Join Date: Nov 2016
Posts: 18
Reputation: 0
Default Re: weapon-config.inc - Damage system with many features

When the player uses other styles of HUD (GTAV HUD), the health bar will be an obstacle. How to solve it?
DeLTi is offline   Reply With Quote
Old 20/10/2018, 06:32 AM   #815
Crayder
Banned
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,331
Reputation: 652
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by DeLTi View Post
When the player uses other styles of HUD (GTAV HUD), the health bar will be an obstacle. How to solve it?
Don't use said custom HUD, or create an entirely new HUD in this include for said custom HUD. There's no other way because we can't determine what custom HUD's look like.
Crayder is offline   Reply With Quote
Old 24/10/2018, 02:08 AM   #816
AmirSavand
Big Clucker
 
AmirSavand's Avatar
 
Join Date: Sep 2018
Location: Behind Schedule
Posts: 79
Reputation: 8
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by DeLTi View Post
When the player uses other styles of HUD (GTAV HUD), the health bar will be an obstacle. How to solve it?
You can update the code and remove the health bar textdraw.
__________________

GitHub - Website - Contact

C# - Python - PHP - Angular
Unity 3D - Django - Electron

AmirSavand is offline   Reply With Quote
Old 24/10/2018, 11:13 PM   #817
Crayder
Banned
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,331
Reputation: 652
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by AmirSavand View Post
You can update the code and remove the health bar textdraw.
No sir, removing the textdraw isn't going to resolve anything, it's going to cause confusion.
Crayder is offline   Reply With Quote
Old 06/12/2018, 10:33 PM   #818
BrainDamaged
Big Clucker
 
BrainDamaged's Avatar
 
Join Date: Jun 2016
Posts: 140
Reputation: 1
Default Re: weapon-config.inc - Damage system with many features

Quote:
weapon-config.inc(3119) : warning 219: local variable "err" shadows a variable at a preceding level
weapon-config.inc(3366) : warning 219: local variable "err" shadows a variable at a preceding level

Code:
#include <a_samp>
#include <a_mysql>
#include <callbacks>
#include <cuffs>
#include <zcmd>
#include <sscanf2>
#include <streamer>
#include <kickban>
#include <foreach>
#include <YSI\y_iterate>
#include <mSelection>
#include <mapfix>
#include <OPSP>
#include <AutoMove>
#include <WeaponData>
#include <SKY>
#include <weapon-config>
#include <progress2>
#include <ipcheck>
I don't understand why you're giving such a warning
BrainDamaged is offline   Reply With Quote
Old 06/12/2018, 10:44 PM   #819
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 880
Reputation: 74
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by BrainDamaged View Post
Code:
#include <a_samp>
#include <a_mysql>
#include <callbacks>
#include <cuffs>
#include <zcmd>
#include <sscanf2>
#include <streamer>
#include <kickban>
#include <foreach>
#include <YSI\y_iterate>
#include <mSelection>
#include <mapfix>
#include <OPSP>
#include <AutoMove>
#include <WeaponData>
#include <SKY>
#include <weapon-config>
#include <progress2>
#include <ipcheck>
I don't understand why you're giving such a warning
Because you already have "err" defined somewhere else in the code.
__________________
Jeroen52 is offline   Reply With Quote
Old 12/12/2018, 02:40 AM   #820
BrainDamaged
Big Clucker
 
BrainDamaged's Avatar
 
Join Date: Jun 2016
Posts: 140
Reputation: 1
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by [HLF]Southclaw View Post
Package Southclaws/progress2 depends on package Southclaws/samp-logger which declares an error function named `err`. If you run `sampctl package ensure --verbose` it will print out the dependency tree so you can see all leaf dependencies.
When using the plug-in, it encounters a number of problems;
1. If the player remains under the vehicle,
2. if it is breathless under water,
3. If the player starts to burn,
does not lose health
BrainDamaged 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 02:01 PM
[FilterScript] New Weapon Damage System [0.3z] RenSoprano Filterscripts 6 17/01/2014 07:03 AM
[FilterScript] Weapon damage system [v1.0] Darnell Filterscripts 74 21/10/2013 09:53 PM
[FilterScript] Weapon Damage System Donicans Filterscripts 14 06/11/2012 02:22 PM
[FilterScript] Realistic Weapon Damage And Death System [V1.0][New Cool FS] Nirzor Filterscripts 6 08/08/2012 06:34 AM


All times are GMT. The time now is 10:30 AM.


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