23.01.2012, 07:14
This filterscript fixes an issue in 0.3d where clients become stuck in death when they die with an animation applied to them.
Code:
#include <a_samp> new pLastAnimIndex[MAX_PLAYERS]; public OnPlayerDeath(playerid, killerid, reason) { new animlib[32], animname[32]; GetAnimationName(pLastAnimIndex[playerid],animlib,32,animname,32); if(strcmp(animlib, "PED", true) != 0) ClearAnimations(playerid); return 1; } public OnPlayerUpdate(playerid) { pLastAnimIndex[playerid] = GetPlayerAnimationIndex(playerid); return 1; }