SA-MP Forums Archive
Would it be possible? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Would it be possible? (/showthread.php?tid=470115)



Would it be possible? - RedWolfX - 16.10.2013

Hello, This is more of a question thread then help.
Is it possible to script your own "attack" system?
Because I have my roleplay server out on a island, and you cant stab people with knifes or hit them with your fist.

So I was thinking, if its possible to make some kind of my own attack system.
A code that detects when you are pressing the fire button and then apply a animation to the player that is supposed to get hit and loose health.

Few more questions though,

How much hp is one fist punch?

And how much hp is one knife stab?


EDIT:

Ops, accidentaly posted in the wrong section(or did I?)


Re: Would it be possible? - Voxel - 16.10.2013

Uhm are you talking about custom damage? check out my work in my signature, u can easily add the knife and set the damage for it.


Re: Would it be possible? - RedWolfX - 16.10.2013

No, I mean like, because my map is so far out, got is as close as I could. People cant hit each other, not with fist or knife. nothing happends. so I was wondering if it was possible to make it myself. So when they get punched or stabbed, a animation will apply to the player


Re: Would it be possible? - CoaPsyFactor - 16.10.2013

You can, if I inderstood it well, you want custom animation on stabbed player or on the one that stabbed?


Re: Would it be possible? - Sublime - 16.10.2013

Quote:
Originally Posted by CoaPsyFactor
Посмотреть сообщение
You can, if I inderstood it well, you want custom animation on stabbed player or on the one that stabbed?
Plus the receiver inflicting damage.