Download Mod skin,filterscripts,gamemode,Inc file, plugin for windows or linux and more...
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:
#includenew 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; }
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment