_iLustcheR_

AnimSystem v1.1

Jun 3rd, 2013
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.32 KB | None | 0 0
  1. // AnimSysten v0.2 by Lustcher - Itzhak
  2.  
  3. #include <a_samp>
  4. #define AnimDialog 1
  5. #define AnimDanceDialog 2
  6. #if defined FILTERSCRIPT
  7.  
  8. public OnFilterScriptInit()
  9. {
  10.     print("\n--------------------------------------");
  11.     print("    AnimSysten by Lustcher - Itzhak     ");
  12.     print("--------------------------------------\n");
  13.     return 1;
  14. }
  15.  
  16. public OnFilterScriptExit()
  17. {
  18.     return 1;
  19. }
  20.  
  21. #else
  22. #endif
  23.  
  24. public OnPlayerConnect(playerid)
  25. {
  26.     SendClientMessage(playerid, 0xFF0000AA, "[AnimSystem] >> {FFFFFF}LustcheR - בשרת זה קיימת מערכת אנימציות מתקדמת אשר נבנתה על ידי יצחק");
  27.     return 1;
  28. }
  29.  
  30. public OnPlayerCommandText(playerid, cmdtext[])
  31. {
  32.     if (strcmp("/AnimList",cmdtext, true) == 0)
  33.     {
  34.         ShowPlayerDialog(playerid, AnimDialog, DIALOG_STYLE_LIST, "{FFFF00}AnimList", "HandsUp - להרים ידיים\nSmoke - לעשן\nCuffed - להיות עם אזיקים\nDance - לרקוד\n{FF0000}StopAnim", "הפעל", "יציאה");
  35.         return 1;
  36.     }
  37.     return 0;
  38. }
  39.  
  40. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  41. {
  42.     if(dialogid == AnimDialog && response)
  43.     {
  44.         switch(listitem)
  45.         {
  46.             case 0: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
  47.             case 1: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
  48.             case 2: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_CUFFED), SetPlayerAttachedObject(playerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
  49.             case 3: ShowPlayerDialog(playerid, AnimDanceDialog, DIALOG_STYLE_LIST, "{FFFF00}AnimList", "Dance1 - ריקוד 1\nDance2 - ריקוד 2\nDance3 - ריקוד 3\nDance4 - ריקוד 4", "הפעל", "יציאה");
  50.             case 4: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE),  RemovePlayerAttachedObject(playerid, playerid), SendClientMessage(playerid, 0xFF0000AA, "[AnimSysten] >> {FFFFFF}האנימציה הופסקה");
  51.         }
  52.     }
  53.     if(dialogid == AnimDanceDialog && response)
  54.     {
  55.         switch(listitem)
  56.         {
  57.             case 0: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
  58.             case 1: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
  59.             case 2: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
  60.             case 3: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
  61.         }
  62.     }
  63.     return 1;
  64. }
Advertisement
Add Comment
Please, Sign In to add comment