Advertisement
TayFunCZE

SA-MP Scripting - /setanimation [SIMPLE SCRIPT]

Jun 11th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. //Needed includes:
  2. #include <a_samp>
  3. #include <zcmd>
  4. #include <sscanf2>
  5.  
  6. CMD:setanimation(playerid, params[])
  7. {
  8. new targetid, animlib[64], animname[64];
  9. if(!sscanf(params, "is[64]s[64]", targetid, animlib, animname))
  10. {
  11. if(targetid != INVALID_PLAYER_ID)
  12. {
  13. ApplyAnimation(playerid,animlib,animname,2.0,1,0,0,0,10000,1);
  14. }
  15. else SendClientMessage(playerid,-1,"Bad ID");
  16. }
  17. else SendClientMessage(playerid,-1,"SERVER: /setanimation <playerid> <animlib> <animname>");
  18. return 1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement