Advertisement
Guest User

Untitled

a guest
Mar 30th, 2015
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.93 KB | None | 0 0
  1. opd_s REQUEST_ANIM_DICT_t = { 0x432A2C, TOC };
  2. int(*REQUEST_ANIM_DICT)(const char*hasanim2) = (int(*)(const char *))&REQUEST_ANIM_DICT_t;
  3.  
  4. opd_s TASK_PLAY_ANIM_t = {0x43A3A4, TOC };
  5.     int(*TASK_PLAY_ANIM)(int ee,const char* b,const char* f,float x,float y,int cv,int ew,int qa,int zx,int fg,int gh) = (int(*)(int,const char* ,const char*,float,float,int,int,int,int,int,int))&TASK_PLAY_ANIM_t;
  6.  
  7.     opd_s HAS_ANIM_DICT_LOADED_t = {0x432AC4, TOC };
  8.     int(*HAS_ANIM_DICT_LOADED)(const char*hasanim2) = (int(*)(const char *))&HAS_ANIM_DICT_LOADED_t;
  9.  
  10.  
  11. void setanim(const char* anim,const char* animid)
  12. {
  13.     int pPlayer = Func::PLAYER_PED_ID();
  14.              Func::NETWORK_REQUEST_CONTROL_OF_ENTITY(pPlayer);
  15. REQUEST_ANIM_DICT(anim);
  16. if(HAS_ANIM_DICT_LOADED((anim)))
  17. {
  18.     TASK_PLAY_ANIM(pPlayer, anim, animid, 8.0f, 0.0f, -1, 9, 0, 0, 0, 0);
  19. PRINT("Animation Work",1000);
  20. }
  21. }  
  22.  
  23. setanim("amb@world_human_push_ups@male@base","base");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement