SA-MP Forums Archive
Stealth takedown - 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: Stealth takedown (/showthread.php?tid=466447)



Stealth takedown - ZeroTheScyther - 27.09.2013

Ok guys. I was thinking about this small feature for my server. (You can take the ideea if you want) ... I'm trying to do a RP server. I know some players could RP this but there are some "powergamers" that just ignore this RP, a sealth takedown RP. So I was thinking of making a script like ... if player X is behind player Y and (he is crouched) he presses the H key then the knife and kinfed animations are played ant the Y player dies. But that's a bit overpower so I need a way to resist it. Anyone could give me a small ideea? A way to make it not so "abusable" or "overpowered", Thank you. (I think I posted this in the wrongs section. Sorry)


Re: Stealth takedown - Pottus - 27.09.2013

Why not make a progress bar so you have to hold it for 3 seconds to be successful.


Re: Stealth takedown - ZeroTheScyther - 27.09.2013

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
Why not make a progress bar so you have to hold it for 3 seconds to be successful.
That's a good ideea ... X is behind Y ... X presses H to perform the takedown... the progress bar is loading ...but not sure how to make the Y player resist.

I've got this small ideea with a Takedowntimer[MAX_PLAYERS] and the script will work like this ... X is behind Y ... X presses H and then both players get TogglePlayerControllable 0 ... then the X player must press H 5 times to kill the Y player. The Takedowntimer will increase with 1 point everytime the X player preses the H key. The Y player can press the H key to make the Takedowntimer descrease. So the fastest player wins?


Re: Stealth takedown - Pottus - 27.09.2013

Well you resist by moving away of course


Re: Stealth takedown - ZeroTheScyther - 27.09.2013

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
Well you resist by moving away of course
Simple and usefull ... Thank you.