24.05.2015, 09:16
Da para fazer da seguinte forma...
Mas vocк vai ter que pegar as animaзхes manualmente.
-----------------
Para utilizar:
PHP код:
SetActorSpecialAnimation(actid, anim) {
switch(anim) {
case SPECIAL_ACTION_HANDSUP: ApplyActorAnimation(actid, "PED", "handsup", 4.1, 0, 0, 0, 0, 0);
case SPECIAL_ACTION_DANCE1: ApplyActorAnimation(actid, "DANCING", "dance_loop", 4.1, 0, 0, 0, 0, 0);
case SPECIAL_ACTION_USECELLPHONE: ApplyActorAnimation(actid, "PED", "phone_in", 4.1, 0, 0, 0, 0, 0);
case SPECIAL_ACTION_STOPUSECELLPHONE: ApplyActorAnimation(actid, "PED", "phone_in", 4.1, 0, 0, 0, 0, 0);
case SPECIAL_ACTION_SITTING: ApplyActorAnimation(actid, "CAR", "Sit_relaxed", 4.1, 0, 0, 0, 0, 0);
}
return 1;
}
-----------------
Para utilizar:
PHP код:
SetActorSpecialAnimation(npcquetaroubando[i], SPECIAL_ACTION_HANDSUP);