replace FCNPC by actor
#7

PHP код:
stock strcpy(dest[], const source[], maxlength=sizeof dest)
{
    
strcat((dest[0] = EOSdest), sourcemaxlength);
}
new 
currentActorAnim[MAX_ACTORS][24];
stock ApplyActorAnimationEx(actoridlib[], anim[], Float:fDeltalooplockxlockyfreezetime)
{
    
strcpy(currentActorAnim[actorid], anim);
    return 
ApplyActorAnimation(actoridlibanimfDeltalooplockxlockyfreezetime);
}
#if defined _ALS_ApplyActorAnimation
    #undef ApplyActorAnimation
#else
    #define _ALS_ApplyActorAnimation
#endif
#define ApplyActorAnimation ApplyActorAnimationEx 
Usage:

PHP код:
if(!strcmp(currentActorAnim[npcquetaroubando[i]], "handsup")) return print("Change this to whatever code.."); 
and to apply anim:
PHP код:
ApplyActorAnimation(actorid"PED""handsup"4.100000); 
Reply


Messages In This Thread
replace FCNPC by actor - by pdonald - 23.05.2015, 03:24
Re: replace FCNPC by actor - by pdonald - 23.05.2015, 16:17
Re: replace FCNPC by actor - by Richie© - 23.05.2015, 18:05
AW: Re: replace FCNPC by actor - by Kaliber - 23.05.2015, 18:09
Re: replace FCNPC by actor - by luccagomes15 - 23.05.2015, 19:07
Re: replace FCNPC by actor - by pdonald - 23.05.2015, 19:08
Re: replace FCNPC by actor - by Ahmad45123 - 23.05.2015, 19:19
Re: replace FCNPC by actor - by pdonald - 23.05.2015, 20:29
Re: replace FCNPC by actor - by Ahmad45123 - 23.05.2015, 21:06
Re: replace FCNPC by actor - by pdonald - 23.05.2015, 21:19

Forum Jump:


Users browsing this thread: 3 Guest(s)