[FilterScript] Stuck in Death Bug Fix
#1

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;
}
Reply


Messages In This Thread
Stuck in Death Bug Fix - by Scott - 23.01.2012, 07:14
Respuesta: Stuck in Death Bug Fix - by [Nikk] - 23.01.2012, 07:26
Re: Stuck in Death Bug Fix - by geerdinho8 - 23.01.2012, 08:23
Re: Stuck in Death Bug Fix - by Geryy - 23.01.2012, 10:11
Re: Stuck in Death Bug Fix - by Kar - 23.01.2012, 10:14
Re: Stuck in Death Bug Fix - by Lorenc_ - 23.01.2012, 10:42
Re: Stuck in Death Bug Fix - by T0pAz - 23.01.2012, 11:06
Re: Stuck in Death Bug Fix - by Niko_boy - 23.01.2012, 11:26
Re: Stuck in Death Bug Fix - by Scott - 23.01.2012, 18:24
Re: Stuck in Death Bug Fix - by Kar - 23.01.2012, 20:18

Forum Jump:


Users browsing this thread: 2 Guest(s)