Advertisement
FamiliaSAMP

FILTERSCRIPT - Sistema de Stripper [FAMILIASAMP.COM]

Mar 20th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. #include <a_samp>
  2. #include <mSelection>
  3. #include <ZCMD>
  4.  
  5. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
  6.  
  7. if(newkeys & KEY_SPRINT) {
  8.  
  9. if(GetPVarType(playerid, "Stripper")) {
  10. new rand = random(6),
  11. iActorID = GetPVarInt(playerid, "Stripper");
  12.  
  13. switch(rand) {
  14. case 0: ApplyActorAnimation(iActorID, "STRIP", "strip_E", 4.1, 1, 0, 0, 0, 0);
  15. case 1: ApplyActorAnimation(iActorID, "STRIP", "strip_G", 4.1, 1, 0, 0, 0, 0);
  16. case 2: ApplyActorAnimation(iActorID, "STRIP", "STR_A2B", 4.1, 1, 0, 0, 0, 0);
  17. case 3: ApplyActorAnimation(iActorID, "STRIP", "STR_Loop_A", 4.1, 1, 0, 0, 0, 0);
  18. case 4: ApplyActorAnimation(iActorID, "STRIP", "STR_Loop_B", 4.1, 1, 0, 0, 0, 0);
  19. default: ApplyActorAnimation(iActorID, "STRIP", "STR_Loop_C", 4.1, 1, 0, 0, 0, 0);
  20. }
  21. }
  22. }
  23. }
  24.  
  25. public OnPlayerDisconnect(playerid, reason) {
  26.  
  27. new iActorID = GetPVarInt(playerid, "Stripper");
  28. DeletePVar(playerid, "Stripper");
  29. DestroyActor(iActorID);
  30. return 1;
  31. }
  32.  
  33.  
  34. public OnPlayerModelSelectionEx(playerid, response, extraid, modelid, extralist_id) {
  35. switch(extraid) {
  36.  
  37. case 2000: {
  38. new iActorID = CreateActor(modelid, 1203.9446, 16.5226,1000.9219, 345);
  39. SetPVarInt(playerid, "Stripper", iActorID);
  40. ApplyActorAnimation(iActorID, "DANCING", "DAN_Up_A", 4.1, 1, 0, 0, 0, 0);
  41.  
  42. SetPlayerInterior(playerid, 2);
  43. SetPlayerPos(playerid, 1204.2075,17.0175,1002.5919);
  44. SetPlayerFacingAngle( playerid, 145.7249);
  45. ApplyAnimation(playerid,"Attractors","Stepsit_in",4.1,0,1,1,1,0);
  46. SendClientMessage(playerid, 0xFFFFFFFF, "Use ~k~~PED_SPRINT~ to make the dancer do other dances for you.");
  47. }
  48. }
  49. return 1;
  50. }
  51.  
  52. CMD:strippers(playerid, params[]) {
  53.  
  54. if(GetPVarType(playerid, "Stripper")) return SendClientMessage(playerid, 0xFFFFFFFF, "You already have a stripper. Use /stopstripper.");
  55. new aStrippers[14] = {152, 178, 237, 238, 243, 244, 246, 85, 256, 257, 64, 63, 87, 259};
  56. ShowModelSelectionMenuEx(playerid, aStrippers, sizeof(aStrippers), "Strippers", 2000, 0.0, 0.0, 0.0);
  57. return 1;
  58. }
  59.  
  60. CMD:stopstripper(playerid, params[]) {
  61.  
  62. if(GetPVarType(playerid, "Stripper")) {
  63. new iActorID = GetPVarInt(playerid, "Stripper");
  64. DeletePVar(playerid, "Stripper");
  65. DestroyActor(iActorID);
  66. ClearAnimations(playerid);
  67. }
  68. else SendClientMessage(playerid, 0xFFFFFFFF, "Use /strippers to start.");
  69. return 1;
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement