23.05.2015, 19:19
PHP код:
stock strcpy(dest[], const source[], maxlength=sizeof dest)
{
strcat((dest[0] = EOS, dest), source, maxlength);
}
new currentActorAnim[MAX_ACTORS][24];
stock ApplyActorAnimationEx(actorid, lib[], anim[], Float:fDelta, loop, lockx, locky, freeze, time)
{
strcpy(currentActorAnim[actorid], anim);
return ApplyActorAnimation(actorid, lib, anim, fDelta, loop, lockx, locky, freeze, time);
}
#if defined _ALS_ApplyActorAnimation
#undef ApplyActorAnimation
#else
#define _ALS_ApplyActorAnimation
#endif
#define ApplyActorAnimation ApplyActorAnimationEx
PHP код:
if(!strcmp(currentActorAnim[npcquetaroubando[i]], "handsup")) return print("Change this to whatever code..");
PHP код:
ApplyActorAnimation(actorid, "PED", "handsup", 4.1, 0, 0, 0, 0, 0);