SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 10/07/2017, 09:38 PM   #691
Freedom.
Big Clucker
 
Join Date: Oct 2012
Location: Turkey
Posts: 135
Reputation: 8
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by Jeroen52 View Post
What do you want to accomplish?
I want to block damage coming from drive-by(driver with mp5)
Freedom. is offline   Reply With Quote
Old 10/07/2017, 09:39 PM   #692
DTV
Huge Clucker
 
DTV's Avatar
 
Join Date: Dec 2010
Posts: 425
Reputation: 42
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by Freedom. View Post
I want to block damage coming from drive-by(driver with mp5)
You could probably add a check under OnPlayerDamage if the issuerid is driving via GetPlayerState and check if the weaponid is the same for MP5 and return 0.
DTV is offline   Reply With Quote
Old 10/07/2017, 09:41 PM   #693
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 773
Reputation: 51
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by Freedom. View Post
I want to block damage coming from drive-by(driver with mp5)
Do you want to block it or reduce it?
__________________
Jeroen52 is offline   Reply With Quote
Old 15/07/2017, 05:44 PM   #694
shaPP
Big Clucker
 
Join Date: Apr 2010
Posts: 72
Reputation: 3
Default Re: weapon-config.inc - Damage system with many features

[20:32:32] AMX (14301788 loaded
[20:32:32] Error: Function not registered: 'FreezeSyncData'
[20:32:32] Error: Function not registered: 'SetFakeFacingAngle'
[20:32:32] Error: Function not registered: 'SendLastSyncData'
[20:32:32] Error: Function not registered: 'ClearAnimationsForPlayer'
[20:32:32] Error: Function not registered: 'SetKnifeSync'
[20:32:32] Error: Function not registered: 'SetFakeHealth'
[20:32:32] Error: Function not registered: 'SetFakeArmour'
[20:32:32] Error: Function not registered: 'PlayerTextDrawSetPosition'
[20:32:32] Error: Function not registered: 'SpawnPlayerForWorld'
[20:32:32] Error: Function not registered: 'IsVehicleOccupied'
[20:32:32] Error: Function not registered: 'SetDisableSyncBugs'

Get this with all variants of SKY.so from this topic, also compiled it myself on Debian 7 and still.

Included SKY.inc correctly
shaPP is offline   Reply With Quote
Old 12/08/2017, 04:08 PM   #695
eSPeZet
Little Clucker
 
Join Date: Jul 2017
Location: Austria
Posts: 20
Reputation: 0
Default Re: weapon-config.inc - Damage system with many features

guys I just found out a very critical bug here...I found it on a server using this "include/plugin" (i didn't KNOW but I assumed it is this one) so I downloaded this here and tested it and the exact same thing happens...you can reduce about 60% of health of any player with only one shot from a very big distance (EVEN though it should REJECT any hit from too big distance)..not sure if i should post HOW this bug works since people may abuse this on every server using this include.
eSPeZet is offline   Reply With Quote
Old 12/08/2017, 08:15 PM   #696
cuber
Big Clucker
 
cuber's Avatar
 
Join Date: Oct 2016
Location: idk.
Posts: 163
Reputation: 13
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by Jeroen52 View Post
Do you want to block it or reduce it?
He want's to block the mp5 damage, when the driver presses E or Q?
__________________
Quote:
Y_less was the only one who knew how to script, but now that he is gone no one really knows what they are doing, everyone just writes some code and hopes it compiles and doesn't screw things up. - Hansrutger(16/03/2017, 04:55 AM)
cuber is offline   Reply With Quote
Old 12/08/2017, 08:25 PM   #697
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 773
Reputation: 51
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by cuber View Post
He want's to block the mp5 damage, when the driver presses E or Q?
PHP Code:
public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
{
    if(
IsPlayerConnected(issuerid) && GetPlayerState(issuerid)==PLAYER_STATE_DRIVER && ((weapon == WEAPON_MP5) || (weapon == WEAPON_UZI) || (weapon == WEAPON_TEC9)))
        return 
0;
    return 
1;

Try this.
__________________
Jeroen52 is offline   Reply With Quote
Old 13/08/2017, 09:19 AM   #698
NewFreeroamStunt
Big Clucker
 
Join Date: May 2017
Location: Indonesia
Posts: 57
Reputation: 0
Default Re: weapon-config.inc - Damage system with many features

how to use for anti healt hack?
example code?
__________________


45.32.107.45:7777

NewFreeroamStunt is offline   Reply With Quote
Old 14/08/2017, 03:37 AM   #699
eSPeZet
Little Clucker
 
Join Date: Jul 2017
Location: Austria
Posts: 20
Reputation: 0
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by eSPeZet View Post
guys I just found out a very critical bug here...I found it on a server using this "include/plugin" (i didn't KNOW but I assumed it is this one) so I downloaded this here and tested it and the exact same thing happens...you can reduce about 60% of health of any player with only one shot from a very big distance (EVEN though it should REJECT any hit from too big distance)..not sure if i should post HOW this bug works since people may abuse this on every server using this include.
I wanted to say, that I realized today that this is not a bug of this script, it is in fact a bug of SA-MP (and it is not even written anywhere in this forum Oo)
eSPeZet is offline   Reply With Quote
Old 16/08/2017, 10:37 AM   #700
Tamer
High-roller
 
Tamer's Avatar
 
Join Date: Nov 2011
Location: Turkey
Posts: 1,209
Reputation: 169
Default Re: weapon-config.inc - Damage system with many features

Quote:
Originally Posted by NewFreeroamStunt View Post
how to use for anti healt hack?
example code?
There's no need for you to code anything. The script prevents health hack by default. Re-read the main post again.
__________________
The three stages of truth:

- Ridicule.
- Violent opposition.
- Acceptance.


Quote:
The greatest hypnotist on the planet Earth is an oblong box in the corner of the room. It is constantly telling us what to believe is real. If you can persuade people that what they see with their eyes is what there is to see you've got them. you know because they'll laugh in your face of an explanation that portrays the biggest picture of what's happening... and they have.
Tamer 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 03:31 PM.


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