Ad Code

Responsive Advertisement

TUTORIAL CRIAR UMA ANIMAÇÃO NPC SAMP SIMPLES

 new ActorCJ; 

Código PHP:
public OnGameModeInit () {
    
ActorCJ = CreateActor(0, 0.0, 0.0, 3.0, 0.0);//We create the actor.
    
ApplyActorAnimation(ActorCJ, "DEALER", "Dealer_idle", 0, 0, 0, 0, 0, 0);//Previously we load animation to the actor.
    
ApplyActorAnimation(ActorCJ, "DEALER", "Dealer_idle", 4.1, 1, 0, 0, 0, 0);//We apply animation to the actor.
} 
Código PHP:
public OnPlayerConnect(playerid) {
    
ApplyAnimation(playerid, "DEALER", "Dealer_idle", 0.0, 0, 0, 0, 0, 0);//Previously we load animation to the player.
} 

Postar um comentário

0 Comentários

© 2022 PawnScript All Rights Reversed