SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 23/06/2016, 03:49 PM   #1
Barnwell
Banned
 
Join Date: May 2014
Location: England
Posts: 549
Reputation: 40
Default Death System

Hello Guys
i just need to add a new thing to the server that when you jump no -health or armour
and when someone box you no -health or armour
Can anyone help me with that?
Barnwell is offline   Reply With Quote
Old 23/06/2016, 03:58 PM   #2
Barnwell
Banned
 
Join Date: May 2014
Location: England
Posts: 549
Reputation: 40
Default Re: Death System

can anyone help me its hard to make it
Barnwell is offline   Reply With Quote
Old 23/06/2016, 04:03 PM   #3
Stones
Huge Clucker
 
Stones's Avatar
 
Join Date: Jun 2013
Location: United Kingdom
Posts: 215
Reputation: 56
Default Re: Death System

I don't understand what your asking, please elaborate.
__________________
Stones is offline   Reply With Quote
Old 23/06/2016, 04:10 PM   #4
[KHK]Khalid
Gangsta
 
[KHK]Khalid's Avatar
 
Join Date: Jan 2012
Location: Alexandria, Egypt
Posts: 854
Reputation: 136
Default Re: Death System

OnPlayerTakeDamage and OnPlayerGiveDamage have weaponid parameter, you can check that against whatever you want, WEAPON_COLLISION id 54 is what makes a player loses HP if they jump, then calculate the lost damage with the help of GetPlayerHealth and undo it by SetPlayerHealth.
[KHK]Khalid 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
[GameMode] •[EXCLUSIVE]•Senjorita Gaming•Freeroam•Death Arena•Admin System•VIP System•V1.0• MacTavish12345 Gamemode Scripts 56 27/10/2018 03:57 PM
[Tutorial] Death System Wolfe Tutorials 15 09/05/2016 07:47 PM
RP death system mirou123 Scripting Help 2 06/02/2014 11:20 AM
Death System sgtjones12 Scripting Help 3 08/08/2012 11:02 AM
I need death system GTA-Roleplay Scripting Help 12 23/05/2012 08:28 PM


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


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