Tuesday, January 24, 2012

Stuck in Death Bug Fix

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

No comments:

Post a Comment