[FS] SWEMike's Knockout -
SWEMike - 05.03.2010
SWEMike's Knockout
[DESCRIPTION]
This script has got two settings defines:
pawn Код:
#define DIZZ_WAIT 5 //Seconds to wait until player gets dizzy.
#define FULL_WAIT 40 //Seconds after becoming dizzy to wait until the player regains full control.
With the default settings the player will go in to an unconscious state when health is at 20%, then after 5 seconds the player will get dizzy (animation and drunklevel) for 40 seconds. After 40 seconds the player will be fully restored but the HP will still be the same.
The knockout functions will be retriggered after dying or going over 20% health.
[COMMANDS]
RCON admin only:
/knockout (This is a test command that sets your hp to 20% to simulate the knockout without any misses.)
[DOWNLOADS]
[BUGS]
The animation doesn't clear in:
pawn Код:
public RegainCons2(playerid)
{
SendClientMessage(playerid, COLOR_NOTICE, "You have fully regained control over your body and can continue normally.");
SetPlayerDrunkLevel(playerid, 0);
PlayerInfo[playerid][pDrunk] = 0;
ClearAnimations(playerid);
return 1;
}
I need some way to disable aiming and punching/shooting to stop the animation. (High priority)
Re: [FS] SWEMike's Knockout -
Souvlaki - 05.03.2010
WOW! Nice one.I will try it one I can access an normal PC!
Great Job.I will feed back later about the coding and shit
Re: [FS] SWEMike's Knockout -
AiVAMAN - 05.03.2010
Very nice.
Re: [FS] SWEMike's Knockout -
SWEMike - 05.03.2010
Thanks both of you, I will try the best I can to get those bugs away. I'm just gonna chill and play on some other server for a while. :P
Re: [FS] SWEMike's Knockout -
CreativeRoleplay - 05.03.2010
Very nice,
Vдldigt najs
Re: [FS] SWEMike's Knockout -
bajskorv123 - 05.03.2010
Najs дr bajs, det hдr дr grymt
Re: [FS] SWEMike's Knockout -
SWEMike - 05.03.2010
:P Thanks! But speak english on international forums, please.
Re: [FS] SWEMike's Knockout -
Namaco - 05.03.2010
the download does not work it gives html file
Re: [FS] SWEMike's Knockout -
AiVAMAN - 05.03.2010
Quote:
Originally Posted by Namaco
the download does not work it gives html file
|
What browser are you using?
Re: [FS] SWEMike's Knockout -
SWEMike - 10.03.2010
I still need help with this... Read under bugs in the first post.