Advertisement
BossArturKA

Fix "ApplyActorAnimation"

Jun 14th, 2016
574
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.84 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. main(){}
  4.  
  5. new ActorCJ;
  6.  
  7. public OnGameModeInit () {
  8.     ActorCJ = CreateActor(0, 0.0, 0.0, 3.0, 0.0);//We create the actor.
  9.     ApplyActorAnimation(ActorCJ, "DEALER", "Dealer_idle", 0, 0, 0, 0, 0, 0);//Previously we load animation to the actor.
  10.     ApplyActorAnimation(ActorCJ, "DEALER", "Dealer_idle", 4.1, 1, 0, 0, 0, 0);//We apply animation to the actor.
  11. }
  12.  
  13. public OnPlayerConnect(playerid) {
  14.     ApplyAnimation(playerid, "DEALER", "Dealer_idle", 0.0, 0, 0, 0, 0, 0);//Previously we load animation to the player.
  15.     SetTimerEx("Timer", 100, false, "d", playerid);
  16. }
  17.  
  18. public OnPlayerSpawn(playerid){
  19.     SetPlayerPos(playerid, 3.0, 3.0, 3.0);
  20.     SetPlayerFacingAngle(playerid, 135);
  21.     SetCameraBehindPlayer(playerid);
  22.     return 1;
  23. }
  24.  
  25. forward Timer(playerid);
  26. public Timer(playerid){
  27.     SpawnPlayer(playerid);
  28.     return 1;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement