Advertisement
Guest User

rap

a guest
Jan 22nd, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. CMD:rap(playerid, params[])
  2. {
  3. new type;
  4.  
  5. if (!AnimationCheck(playerid))
  6. return SendErrorMessage(playerid, "Você não pode executar animações no momento.");
  7.  
  8. if (sscanf(params, "d", type))
  9. return SendSyntaxMessage(playerid, "/rap [1-3]");
  10.  
  11. if (type < 1 || type > 3)
  12. return SendErrorMessage(playerid, "Dança inválida.");
  13.  
  14. switch (type) {
  15. case 1: ApplyAnimation(playerid,"RAPPING","RAP_A_Loop",4.0,1,1,1,1,0, 1);
  16. case 2: ApplyAnimation(playerid,"RAPPING","RAP_B_Loop",4.0,1,1,1,1,0, 1);
  17. case 3: ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,1,1,1,0, 1);
  18. }
  19. return 1;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement