Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // AnimSysten v0.2 by Lustcher - Itzhak
- #include <a_samp>
- #define AnimDialog 1
- #define AnimDanceDialog 2
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" AnimSysten by Lustcher - Itzhak ");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- #endif
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, 0xFF0000AA, "[AnimSystem] >> {FFFFFF}LustcheR - בשרת זה קיימת מערכת אנימציות מתקדמת אשר נבנתה על ידי יצחק");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/AnimList",cmdtext, true) == 0)
- {
- ShowPlayerDialog(playerid, AnimDialog, DIALOG_STYLE_LIST, "{FFFF00}AnimList", "HandsUp - להרים ידיים\nSmoke - לעשן\nCuffed - להיות עם אזיקים\nDance - לרקוד\n{FF0000}StopAnim", "הפעל", "יציאה");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == AnimDialog && response)
- {
- switch(listitem)
- {
- case 0: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
- case 1: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
- 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);
- case 3: ShowPlayerDialog(playerid, AnimDanceDialog, DIALOG_STYLE_LIST, "{FFFF00}AnimList", "Dance1 - ריקוד 1\nDance2 - ריקוד 2\nDance3 - ריקוד 3\nDance4 - ריקוד 4", "הפעל", "יציאה");
- case 4: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE), RemovePlayerAttachedObject(playerid, playerid), SendClientMessage(playerid, 0xFF0000AA, "[AnimSysten] >> {FFFFFF}האנימציה הופסקה");
- }
- }
- if(dialogid == AnimDanceDialog && response)
- {
- switch(listitem)
- {
- case 0: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
- case 1: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
- case 2: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
- case 3: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment