05.03.2010, 13:40
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.
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;
}