MarkWagih

TuxedoSuit ((Mark_Samp))

May 6th, 2016
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //This Filterscript is scripted by : Mark_Samp
  2. //This is Tuxedo Filterscript
  3. //Do Not Re-Release This Script Without My Permission.
  4. //DO Not Claim This Script As Your Own.
  5. //Do Not Sell This Script.
  6. //Don't Remove The Credits.
  7. //This Script Is Made From Scratch.
  8. //Version 1.0
  9. //********************************
  10. //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
  11. //*        Tuxedo Suit           *
  12. //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
  13. //********************************
  14. //Filterscript Define
  15. #define FILTERSCRIPT
  16. // Include files
  17. #include <a_samp>
  18. #include <streamer>
  19. #include <zcmd>
  20. #include <sscanf>
  21. #include <YSI\y_ini>
  22. //==============================================================================
  23. //Defines
  24. #define SUIT 1000
  25. #define TDialog 2000
  26. #define WDialog 3000
  27. #define UDialog 4000
  28. //News
  29. new Tuxedo[MAX_PLAYERS];
  30. new God[MAX_PLAYERS];
  31. new Kangaroo[MAX_PLAYERS];
  32. new Flash[MAX_PLAYERS];
  33. new Armored[MAX_PLAYERS];
  34. new Invisible[MAX_PLAYERS];
  35. //==============================================================================
  36. //Color Defines
  37. #define COLOR_RED                          0xAA3333AA
  38. #define COLOR_YELLOW                       0xFFFF00AA
  39. #define COLOR_PURPLE                       0xC2A2DAAA
  40. #define COLOR_BLUE                         0x2641FEAA
  41. #define COLOR_GREY                         0xAFAFAFAA
  42. #define COLOR_CYAN                         0x1DBCEBFF
  43. #define COLOR_GREEN                        0x008000AA
  44. #define COLOR_ORANGE                       0xFF8000FF
  45. //==============================================================================
  46. //Filterscript Start
  47. public OnFilterScriptInit()
  48. {
  49.     print("\n-----------------------------------------");
  50.     print("        Tuxedo FilterScript Loaded!        ");
  51.     print("-------------------------------------------\n");
  52.     return 1;
  53. }
  54. //Filterscript Exit
  55. public OnFilterScriptExit()
  56. {
  57.     print("\n-----------------------------------------");
  58.     print("        Tuxedo FilterScript UnLoaded!      ");
  59.     print("-------------------------------------------\n");
  60.     return 1;
  61. }
  62. //==============================================================================
  63. public OnPlayerConnect(playerid)
  64. {
  65.     Tuxedo[playerid] = 0;
  66.     God[playerid] = 0;
  67.     Kangaroo[playerid] = 0;
  68.     Flash[playerid] = 0;
  69.     Armored[playerid] = 0;
  70.     Invisible[playerid] = 0;
  71.     return 1;
  72. }
  73.  
  74. public OnPlayerDisconnect(playerid, reason)
  75. {
  76.     Tuxedo[playerid] = 0;
  77.     God[playerid] = 0;
  78.     Kangaroo[playerid] = 0;
  79.     Flash[playerid] = 0;
  80.     Armored[playerid] = 0;
  81.     Invisible[playerid] = 0;
  82.     return 1;
  83. }
  84. //==============================================================================
  85. stock PlayerName(playerid)
  86. {
  87.     new name[MAX_PLAYER_NAME];
  88.     GetPlayerName(playerid, name, sizeof(name));
  89.     return name;
  90. }
  91. //==========================RCON ADMIN COMMAND==================================
  92. CMD:maketuxedo(playerid, params[])
  93. {
  94.    if(IsPlayerAdmin(playerid))
  95.    {
  96.       new string[125],player1;
  97.       if(sscanf(params,"dd",player1)) return SendClientMessage(playerid, COLOR_GREY,"[USAGE]: /maketuxedo ( playerid )");
  98.       if(!IsPlayerConnected(playerid) && player1 != INVALID_PLAYER_ID)
  99.       {
  100.          SendClientMessage(playerid, COLOR_GREY,"{F50505}[ERROR]: {5A6A6E}Player is not connected");
  101.       }
  102.       else
  103.       {
  104.          format(string, sizeof(string),"{0D0DD6}Administrator {13D61A}'%s' {0D0DD6}has given you the {F50505}Tuxedo Suit!!", PlayerName(playerid));
  105.          SendClientMessage(player1, COLOR_PURPLE, string);
  106.          PlayerPlaySound(player1,1057,0.0,0.0,0.0);
  107.          Tuxedo[playerid] = 1;
  108.       }
  109.    }
  110.    else return SendClientMessage(playerid, COLOR_GREY,"{F50505}[ERROR]: {0D0DD6}You need to be RCON admin to use this command");
  111.    return 1;
  112. }
  113.  
  114. CMD:taketuxedo(playerid, params[])
  115. {
  116.    if(IsPlayerAdmin(playerid))
  117.    {
  118.       new string[125],player1;
  119.       if(sscanf(params,"dd",player1)) return SendClientMessage(playerid, COLOR_GREY,"[USAGE]: /taketuxedo ( playerid )");
  120.       if(!IsPlayerConnected(playerid) && player1 != INVALID_PLAYER_ID)
  121.       {
  122.          SendClientMessage(playerid, COLOR_GREY,"{F50505}[ERROR]: {5A6A6E}Player is not connected");
  123.       }
  124.       else
  125.       {
  126.          format(string, sizeof(string),"{0D0DD6}Administrator {13D61A}'%s' {0D0DD6}has taken from you the {F50505}Tuxedo Suit!!", PlayerName(playerid));
  127.          SendClientMessage(player1, COLOR_RED, string);
  128.          PlayerPlaySound(player1,1057,0.0,0.0,0.0);
  129.          Tuxedo[playerid] = 0;
  130.       }
  131.    }
  132.    else return SendClientMessage(playerid, COLOR_GREY,"{F50505}[ERROR]: {0D0DD6}You need to be RCON admin to use this command");
  133.    return 1;
  134. }
  135. //==============================================================================
  136. CMD:tuxedo(playerid, params[])
  137. {
  138.     if(Tuxedo[playerid] == 1)
  139.     {
  140.         ShowPlayerDialog(playerid, SUIT, DIALOG_STYLE_LIST, "Tuxedo Suit", "UnStoppable\nKangaroo\nFlash\nTeleporter\nArmory\nInvisibilty\nStorm\nUniform\n", "Choose", "Choose");
  141.         ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,0,0,0,0);
  142.     }
  143.     else return SendClientMessage(playerid, COLOR_GREY, "You don't own any Tuxedo Suit");
  144.     return 1;
  145. }
  146. //==========================Kangaroo============================================
  147. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  148. {
  149.     if(Kangaroo[playerid] == 1)
  150.     {
  151.         if(newkeys == KEY_JUMP)
  152.         {
  153.             new Float:MJump[3];
  154.             GetPlayerVelocity(playerid, MJump[0], MJump[1], MJump[2]);
  155.             SetPlayerVelocity(playerid, MJump[0], MJump[1], MJump[2]+5);
  156.             PlayerPlaySound(playerid, 1190, 0.0, 0.0, 0.0);
  157.         }
  158.     }
  159.     if(Flash[playerid] == 1)
  160.     {
  161.         if (newkeys == KEY_SPRINT)
  162.         {
  163.             new Float:pAng;
  164.             new Float:X, Float:Y, Float:Z;
  165.             GetPlayerFacingAngle(playerid, pAng);
  166.             GetPlayerVelocity(playerid, X, Y, Z);
  167.             SetPlayerVelocity(playerid, floatsin(-pAng, degrees) * 1.6, floatcos(pAng, degrees) * 1.6 , (Z*2)+0.03);
  168.         }
  169.     }
  170.     return 1;
  171. }
  172. //==============================================================================
  173. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  174. {
  175.     if(dialogid == SUIT)
  176.     {
  177.        switch(listitem)
  178.        {
  179.           case 0:
  180.           {
  181.                if(God[playerid] == 0)
  182.                {
  183.                    God[playerid] = 1;
  184.                    SetPlayerHealth(playerid,100000);
  185.                    SetPlayerArmour(playerid,100000);
  186.                    SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}UnStoppable Mode {0AF71E}Enabled");
  187.                    ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
  188.                    }
  189.                    else
  190.                    {
  191.                    God[playerid] = 0;
  192.                    SetPlayerHealth(playerid,100);
  193.                    SetPlayerArmour(playerid,100);
  194.                    SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}UnStoppable Mode {F00E0E}Disabled");
  195.                    ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
  196.                }
  197.           }
  198.           case 1:
  199.           {
  200.               if(Kangaroo[playerid] == 0)
  201.               {
  202.                   Kangaroo[playerid] = 1;
  203.                   SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}Kangaroo Mode {0AF71E}Enabled");
  204.                   ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
  205.                   }
  206.                   else
  207.                   {
  208.                   Kangaroo[playerid] = 0;
  209.                   SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}Kangaroo Mode {F00E0E}Disabled");
  210.                   ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
  211.               }
  212.           }
  213.           case 2:
  214.           {
  215.               if(Flash[playerid] == 0)
  216.               {
  217.                   Flash[playerid] = 1;
  218.                   SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}Flash Mode {0AF71E}Enabled");
  219.                   ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
  220.                   PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
  221.                   }
  222.                   else
  223.                   {
  224.                   Flash[playerid] = 0;
  225.                   SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}Flash Mode {F00E0E}Disabled");
  226.                   ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
  227.                   PlayerPlaySound(playerid, 1143, 0.0, 0.0, 0.0);
  228.               }
  229.           }
  230.           case 3:
  231.           {
  232.               if(Tuxedo[playerid] == 1)
  233.               {
  234.                   ShowPlayerDialog(playerid, TDialog, DIALOG_STYLE_LIST, "Tuxedo Teleport", "{3EFA0A}Los Santos\n{3EFA0A}Bank\n{3EFA0A}Airport\n{3EFA0A}Skate\n{3EFA0A}Jefferson\n{3EFA0A}Ganton\n{3EFA0A}Staduim\n", "Choose", "Cancel");
  235.               }
  236.           }
  237.           case 4:
  238.           {
  239.               if(Armored[playerid] == 0)
  240.               {
  241.                   Armored[playerid] = 1;
  242.                   SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}Armory Mode {0AF71E}Enabled");
  243.                   ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
  244.                   PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
  245.                   GivePlayerWeapon(playerid,8,60000);
  246.                   GivePlayerWeapon(playerid,24,60000);
  247.                   GivePlayerWeapon(playerid,27,60000);
  248.                   GivePlayerWeapon(playerid,31,60000);
  249.                   GivePlayerWeapon(playerid,34,60000);
  250.                   GivePlayerWeapon(playerid,39,60000);
  251.                   GivePlayerWeapon(playerid,41,60000);
  252.                   GivePlayerWeapon(playerid,44,60000);
  253.                   GivePlayerWeapon(playerid,46,60000);
  254.                   }
  255.                   else
  256.                   {
  257.                   Armored[playerid] = 0;
  258.                   ResetPlayerWeapons(playerid);
  259.                   SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}Flash Mode {F00E0E}Disabled");
  260.                   ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
  261.                   PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
  262.               }
  263.           }
  264.           case 5:
  265.           {
  266.              if(IsPlayerInAnyVehicle(playerid) || GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  267.              {
  268.                  if(Invisible[playerid] == 0)
  269.                  {
  270.                      new int1 = GetPlayerInterior(playerid);
  271.                      Invisible[playerid] = 1;
  272.                      LinkVehicleToInterior(GetPlayerVehicleID(playerid),int1+1);
  273.                      SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}Invisibilty Mode {0AF71E}Enabled");
  274.                      PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
  275.                  }
  276.                  else
  277.                  {
  278.                      new int1 = GetPlayerInterior(playerid);
  279.                      Invisible[playerid] = 0;
  280.                      LinkVehicleToInterior(GetPlayerVehicleID(playerid),int1);
  281.                      SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}Invisibilty Mode {F00E0E}Disabled");
  282.                      PlayerPlaySound(playerid, 1147, 0.0, 0.0, 0.0);
  283.                  }
  284.                }
  285.             }
  286.             case 6:
  287.             {
  288.                 if(Tuxedo[playerid] == 1)
  289.                 {
  290.                     ShowPlayerDialog(playerid, WDialog, DIALOG_STYLE_LIST, "Tuxedo Weather", "Sunny\nCloudy\nRainy\nFoggy\nSandStorm\nGreenish\n", "Choose", "Choose");
  291.                 }
  292.             }
  293.             case 7:
  294.             {
  295.                 if(Tuxedo[playerid] == 1)
  296.                 {
  297.                     ShowPlayerDialog(playerid, UDialog, DIALOG_STYLE_LIST, "Tuxedo Uniform", "Tuxedo Suit \nTuxedo Suit 2\nTuxedo Suit 3\nTuxedo Suit 4\nTuxedo Suit 5\nTuxedo Girl\n", "Choose", "Cancel");
  298.                 }
  299.             }
  300.          }
  301.       }
  302.     if(dialogid == WDialog)
  303.       {
  304.        switch(listitem)
  305.        {
  306.           case 0:
  307.           {
  308.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}Weather is now Sunny Sir.");
  309.               SetPlayerWeather(playerid, 1);
  310.           }
  311.           case 1:
  312.           {
  313.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}}Tuxedo:{3412DE}Weather is now Cloudy Sir.");
  314.               SetPlayerWeather(playerid, 4);
  315.           }
  316.           case 2:
  317.           {
  318.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}Weather is now Rainy Sir.");
  319.               SetPlayerWeather(playerid, 8);
  320.           }
  321.           case 3:
  322.           {
  323.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}Weather is now Foggy Sir.");
  324.               SetPlayerWeather(playerid, 9);
  325.           }
  326.           case 4:
  327.           {
  328.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}Weather is now SandStorm Sir.");
  329.               SetPlayerWeather(playerid, 19);
  330.           }
  331.           case 5:
  332.           {
  333.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}Weather is now Greenish Sir.");
  334.               SetPlayerWeather(playerid, 20);
  335.           }
  336.     }
  337. }
  338.     if(dialogid == TDialog)
  339.       {
  340.        switch(listitem)
  341.        {
  342.           case 0:
  343.           {
  344.               SetPlayerPos(playerid, 1607.6703,-1721.9176,13.5469);
  345.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}You have been teleported to {21F505}Los Santos Sir.");
  346.           }
  347.           case 1:
  348.           {
  349.               SetPlayerPos(playerid, 1442.8214,-1027.5615,23.8281);
  350.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}You have been teleported to {21F505}Bank Sir.");
  351.           }
  352.           case 2:
  353.           {
  354.               SetPlayerPos(playerid, 1962.0656,-2173.3665,13.4496);
  355.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}You have been teleported to {21F505}Los Santos Airport Sir.");
  356.           }
  357.           case 3:
  358.           {
  359.               SetPlayerPos(playerid, 1879.9102,-1392.4220,13.5703);
  360.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}You have been teleported to {21F505}Skate Sir.");
  361.           }
  362.           case 4:
  363.           {
  364.               SetPlayerPos(playerid, 2220.4182,-1144.1377,25.8002);
  365.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}You have been teleported to {21F505}Jefferson Sir.");
  366.           }
  367.           case 5:
  368.           {
  369.               SetPlayerPos(playerid, 2223.5178,-1725.3273,13.5625);
  370.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}You have been teleported to {21F505}Ganton Sir.");
  371.           }
  372.           case 6:
  373.           {
  374.               SetPlayerPos(playerid, 2685.4214,-1690.5787,9.4332);
  375.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}You have been teleported to {21F505}Staduim Sir.");
  376.           }
  377.        }
  378.     }
  379.     if(dialogid == UDialog)
  380.       {
  381.        switch(listitem)
  382.        {
  383.           case 0:
  384.           {
  385.               SetPlayerSkin(playerid, 163);
  386.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{F5B507}You have changed your Suit.");
  387.           }
  388.           case 1:
  389.           {
  390.               SetPlayerSkin(playerid, 164);
  391.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{F5B507}You have changed your Suit.");
  392.           }
  393.           case 2:
  394.           {
  395.               SetPlayerSkin(playerid, 165);
  396.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{F5B507}You have changed your Suit.");
  397.           }
  398.           case 3:
  399.           {
  400.               SetPlayerSkin(playerid, 166);
  401.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{F5B507}You have changed your Suit.");
  402.           }
  403.           case 4:
  404.           {
  405.               SetPlayerSkin(playerid, 171);
  406.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{F5B507}You have changed your Suit.");
  407.           }
  408.           case 5:
  409.           {
  410.               SetPlayerSkin(playerid, 172);
  411.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{F5B507}You have changed your Suit.");
  412.           }
  413.       }
  414.   }
  415.     return 0;
  416. }
  417.           //This Filterscript is scripted by : Mark_Samp
  418. //This is Tuxedo Filterscript
  419. //Do Not Re-Release This Script Without My Permission.
  420. //DO Not Claim This Script As Your Own.
  421. //Do Not Sell This Script.
  422. //Don't Remove The Credits.
  423. //This Script Is Made From Scratch.
  424. //Version 1.0
  425. //********************************
  426. //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
  427. //*        Tuxedo Suit           *
  428. //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
  429. //********************************
  430. //Filterscript Define
  431. #define FILTERSCRIPT
  432. // Include files
  433. #include <a_samp>
  434. #include <streamer>
  435. #include <zcmd>
  436. #include <sscanf>
  437. #include <YSI\y_ini>
  438. //==============================================================================
  439. //Defines
  440. #define SUIT 1000
  441. #define TDialog 2000
  442. #define WDialog 3000
  443. #define UDialog 4000
  444. //News
  445. new Tuxedo[MAX_PLAYERS];
  446. new God[MAX_PLAYERS];
  447. new Kangaroo[MAX_PLAYERS];
  448. new Flash[MAX_PLAYERS];
  449. new Armored[MAX_PLAYERS];
  450. new Invisible[MAX_PLAYERS];
  451. //==============================================================================
  452. //Color Defines
  453. #define COLOR_RED                          0xAA3333AA
  454. #define COLOR_YELLOW                       0xFFFF00AA
  455. #define COLOR_PURPLE                       0xC2A2DAAA
  456. #define COLOR_BLUE                         0x2641FEAA
  457. #define COLOR_GREY                         0xAFAFAFAA
  458. #define COLOR_CYAN                         0x1DBCEBFF
  459. #define COLOR_GREEN                        0x008000AA
  460. #define COLOR_ORANGE                       0xFF8000FF
  461. //==============================================================================
  462. //Filterscript Start
  463. public OnFilterScriptInit()
  464. {
  465.     print("\n-----------------------------------------");
  466.     print("        Tuxedo FilterScript Loaded!        ");
  467.     print("-------------------------------------------\n");
  468.     return 1;
  469. }
  470. //Filterscript Exit
  471. public OnFilterScriptExit()
  472. {
  473.     print("\n-----------------------------------------");
  474.     print("        Tuxedo FilterScript UnLoaded!      ");
  475.     print("-------------------------------------------\n");
  476.     return 1;
  477. }
  478. //==============================================================================
  479. public OnPlayerConnect(playerid)
  480. {
  481.     Tuxedo[playerid] = 0;
  482.     God[playerid] = 0;
  483.     Kangaroo[playerid] = 0;
  484.     Flash[playerid] = 0;
  485.     Armored[playerid] = 0;
  486.     Invisible[playerid] = 0;
  487.     return 1;
  488. }
  489.  
  490. public OnPlayerDisconnect(playerid, reason)
  491. {
  492.     Tuxedo[playerid] = 0;
  493.     God[playerid] = 0;
  494.     Kangaroo[playerid] = 0;
  495.     Flash[playerid] = 0;
  496.     Armored[playerid] = 0;
  497.     Invisible[playerid] = 0;
  498.     return 1;
  499. }
  500. //==============================================================================
  501. stock PlayerName(playerid)
  502. {
  503.     new name[MAX_PLAYER_NAME];
  504.     GetPlayerName(playerid, name, sizeof(name));
  505.     return name;
  506. }
  507. //==========================RCON ADMIN COMMAND==================================
  508. CMD:maketuxedo(playerid, params[])
  509. {
  510.    if(IsPlayerAdmin(playerid))
  511.    {
  512.       new string[125],player1;
  513.       if(sscanf(params,"dd",player1)) return SendClientMessage(playerid, COLOR_GREY,"[USAGE]: /maketuxedo ( playerid )");
  514.       if(!IsPlayerConnected(playerid) && player1 != INVALID_PLAYER_ID)
  515.       {
  516.          SendClientMessage(playerid, COLOR_GREY,"{F50505}[ERROR]: {5A6A6E}Player is not connected");
  517.       }
  518.       else
  519.       {
  520.          format(string, sizeof(string),"{0D0DD6}Administrator {13D61A}'%s' {0D0DD6}has given you the {F50505}Tuxedo Suit!!", PlayerName(playerid));
  521.          SendClientMessage(player1, COLOR_PURPLE, string);
  522.          PlayerPlaySound(player1,1057,0.0,0.0,0.0);
  523.          Tuxedo[playerid] = 1;
  524.       }
  525.    }
  526.    else return SendClientMessage(playerid, COLOR_GREY,"F50505}[ERROR]: {0D0DD6}You need to be RCON admin to use this command");
  527.    return 1;
  528. }
  529.  
  530. CMD:taketuxedo(playerid, params[])
  531. {
  532.    if(IsPlayerAdmin(playerid))
  533.    {
  534.       new string[125],player1;
  535.       if(sscanf(params,"dd",player1)) return SendClientMessage(playerid, COLOR_GREY,"[USAGE]: /taketuxedo ( playerid )");
  536.       if(!IsPlayerConnected(playerid) && player1 != INVALID_PLAYER_ID)
  537.       {
  538.          SendClientMessage(playerid, COLOR_GREY,"{F50505}[ERROR]: {5A6A6E}Player is not connected");
  539.       }
  540.       else
  541.       {
  542.          format(string, sizeof(string),"{0D0DD6}Administrator {13D61A}'%s' {0D0DD6}has taken from you the {F50505}Tuxedo Suit!!", PlayerName(playerid));
  543.          SendClientMessage(player1, COLOR_RED, string);
  544.          PlayerPlaySound(player1,1057,0.0,0.0,0.0);
  545.          Tuxedo[playerid] = 0;
  546.       }
  547.    }
  548.    else return SendClientMessage(playerid, COLOR_GREY,"F50505}[ERROR]: {0D0DD6}You need to be RCON admin to use this command");
  549.    return 1;
  550. }
  551. //==============================================================================
  552. CMD:tuxedo(playerid, params[])
  553. {
  554.     if(Tuxedo[playerid] == 1)
  555.     {
  556.         ShowPlayerDialog(playerid, SUIT, DIALOG_STYLE_LIST, "Tuxedo Suit", "UnStoppable\nKangaroo\nFlash\nTeleporter\nArmory\nInvisibilty\nStorm\nUniform\n", "Choose", "Choose");
  557.         ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,0,0,0,0);
  558.     }
  559.     else return SendClientMessage(playerid, COLOR_GREY, "You don't own any Tuxedo Suit");
  560.     return 1;
  561. }
  562. //==========================Kangaroo============================================
  563. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  564. {
  565.     if(Kangaroo[playerid] == 1)
  566.     {
  567.         if(newkeys == KEY_JUMP)
  568.         {
  569.             new Float:MJump[3];
  570.             GetPlayerVelocity(playerid, MJump[0], MJump[1], MJump[2]);
  571.             SetPlayerVelocity(playerid, MJump[0], MJump[1], MJump[2]+5);
  572.             PlayerPlaySound(playerid, 1190, 0.0, 0.0, 0.0);
  573.         }
  574.     }
  575.     if(Flash[playerid] == 1)
  576.     {
  577.         if (newkeys == KEY_SPRINT)
  578.         {
  579.             new Float:pAng;
  580.             new Float:X, Float:Y, Float:Z;
  581.             GetPlayerFacingAngle(playerid, pAng);
  582.             GetPlayerVelocity(playerid, X, Y, Z);
  583.             SetPlayerVelocity(playerid, floatsin(-pAng, degrees) * 1.6, floatcos(pAng, degrees) * 1.6 , (Z*2)+0.03);
  584.         }
  585.     }
  586.     return 1;
  587. }
  588. //==============================================================================
  589. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  590. {
  591.     if(dialogid == SUIT)
  592.     {
  593.        switch(listitem)
  594.        {
  595.           case 0:
  596.           {
  597.                if(God[playerid] == 0)
  598.                {
  599.                    God[playerid] = 1;
  600.                    SetPlayerHealth(playerid,100000);
  601.                    SetPlayerArmour(playerid,100000);
  602.                    SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}UnStoppable Mode {0AF71E}Enabled");
  603.                    ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
  604.                    }
  605.                    else
  606.                    {
  607.                    God[playerid] = 0;
  608.                    SetPlayerHealth(playerid,100);
  609.                    SetPlayerArmour(playerid,100);
  610.                    SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}UnStoppable Mode {F00E0E}Disabled");
  611.                    ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
  612.                }
  613.           }
  614.           case 1:
  615.           {
  616.               if(Kangaroo[playerid] == 0)
  617.               {
  618.                   Kangaroo[playerid] = 1;
  619.                   SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}Kangaroo Mode {0AF71E}Enabled");
  620.                   ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
  621.                   }
  622.                   else
  623.                   {
  624.                   Kangaroo[playerid] = 0;
  625.                   SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}Kangaroo Mode {F00E0E}Disabled");
  626.                   ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
  627.               }
  628.           }
  629.           case 2:
  630.           {
  631.               if(Flash[playerid] == 0)
  632.               {
  633.                   Flash[playerid] = 1;
  634.                   SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}Flash Mode {0AF71E}Enabled");
  635.                   ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
  636.                   PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
  637.                   }
  638.                   else
  639.                   {
  640.                   Flash[playerid] = 0;
  641.                   SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}Flash Mode {F00E0E}Disabled");
  642.                   ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
  643.                   PlayerPlaySound(playerid, 1143, 0.0, 0.0, 0.0);
  644.               }
  645.           }
  646.           case 3:
  647.           {
  648.               if(Tuxedo[playerid] == 1)
  649.               {
  650.                   ShowPlayerDialog(playerid, TDialog, DIALOG_STYLE_LIST, "Tuxedo Teleport", "{3EFA0A}Los Santos\n{3EFA0A}Bank\n{3EFA0A}Airport\n{3EFA0A}Skate\n{3EFA0A}Jefferson\n{3EFA0A}Ganton\n{3EFA0A}Staduim\n", "Choose", "Cancel");
  651.               }
  652.           }
  653.           case 4:
  654.           {
  655.               if(Armored[playerid] == 0)
  656.               {
  657.                   Armored[playerid] = 1;
  658.                   SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}Armory Mode {0AF71E}Enabled");
  659.                   ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
  660.                   PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
  661.                   GivePlayerWeapon(playerid,8,60000);
  662.                   GivePlayerWeapon(playerid,24,60000);
  663.                   GivePlayerWeapon(playerid,27,60000);
  664.                   GivePlayerWeapon(playerid,31,60000);
  665.                   GivePlayerWeapon(playerid,34,60000);
  666.                   GivePlayerWeapon(playerid,39,60000);
  667.                   GivePlayerWeapon(playerid,41,60000);
  668.                   GivePlayerWeapon(playerid,44,60000);
  669.                   GivePlayerWeapon(playerid,46,60000);
  670.                   }
  671.                   else
  672.                   {
  673.                   Armored[playerid] = 0;
  674.                   ResetPlayerWeapons(playerid);
  675.                   SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}Flash Mode {F00E0E}Disabled");
  676.                   ApplyAnimation(playerid,"SWEET","ho_ass_slapped",4.0,0,0,0,0,0);
  677.                   PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
  678.               }
  679.           }
  680.           case 5:
  681.           {
  682.              if(IsPlayerInAnyVehicle(playerid) || GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  683.              {
  684.                  if(Invisible[playerid] == 0)
  685.                  {
  686.                      new int1 = GetPlayerInterior(playerid);
  687.                      Invisible[playerid] = 1;
  688.                      LinkVehicleToInterior(GetPlayerVehicleID(playerid),int1+1);
  689.                      SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}Invisibilty Mode {0AF71E}Enabled");
  690.                      PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
  691.                  }
  692.                  else
  693.                  {
  694.                      new int1 = GetPlayerInterior(playerid);
  695.                      Invisible[playerid] = 0;
  696.                      LinkVehicleToInterior(GetPlayerVehicleID(playerid),int1);
  697.                      SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{D2F50C}Invisibilty Mode {F00E0E}Disabled");
  698.                      PlayerPlaySound(playerid, 1147, 0.0, 0.0, 0.0);
  699.                  }
  700.                }
  701.             }
  702.             case 6:
  703.             {
  704.                 if(Tuxedo[playerid] == 1)
  705.                 {
  706.                     ShowPlayerDialog(playerid, WDialog, DIALOG_STYLE_LIST, "Tuxedo Weather", "Sunny\nCloudy\nRainy\nFoggy\nSandStorm\nGreenish\n", "Choose", "Choose");
  707.                 }
  708.             }
  709.             case 7:
  710.             {
  711.                 if(Tuxedo[playerid] == 1)
  712.                 {
  713.                     ShowPlayerDialog(playerid, UDialog, DIALOG_STYLE_LIST, "Tuxedo Uniform", "Tuxedo Suit \nTuxedo Suit 2\nTuxedo Suit 3\nTuxedo Suit 4\nTuxedo Suit 5\nTuxedo Girl\n", "Choose", "Cancel");
  714.                 }
  715.             }
  716.          }
  717.       }
  718.     if(dialogid == WDialog)
  719.       {
  720.        switch(listitem)
  721.        {
  722.           case 0:
  723.           {
  724.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}Weather is now Sunny Sir.");
  725.               SetPlayerWeather(playerid, 1);
  726.           }
  727.           case 1:
  728.           {
  729.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}}Tuxedo:{3412DE}Weather is now Cloudy Sir.");
  730.               SetPlayerWeather(playerid, 4);
  731.           }
  732.           case 2:
  733.           {
  734.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}Weather is now Rainy Sir.");
  735.               SetPlayerWeather(playerid, 8);
  736.           }
  737.           case 3:
  738.           {
  739.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}Weather is now Foggy Sir.");
  740.               SetPlayerWeather(playerid, 9);
  741.           }
  742.           case 4:
  743.           {
  744.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}Weather is now SandStorm Sir.");
  745.               SetPlayerWeather(playerid, 19);
  746.           }
  747.           case 5:
  748.           {
  749.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}Weather is now Greenish Sir.");
  750.               SetPlayerWeather(playerid, 20);
  751.           }
  752.     }
  753. }
  754.     if(dialogid == TDialog)
  755.       {
  756.        switch(listitem)
  757.        {
  758.           case 0:
  759.           {
  760.               SetPlayerPos(playerid, 1607.6703,-1721.9176,13.5469);
  761.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}You have been teleported to {21F505}Los Santos Sir.");
  762.           }
  763.           case 1:
  764.           {
  765.               SetPlayerPos(playerid, 1442.8214,-1027.5615,23.8281);
  766.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}You have been teleported to {21F505}Bank Sir.");
  767.           }
  768.           case 2:
  769.           {
  770.               SetPlayerPos(playerid, 1962.0656,-2173.3665,13.4496);
  771.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}You have been teleported to {21F505}Los Santos Airport Sir.");
  772.           }
  773.           case 3:
  774.           {
  775.               SetPlayerPos(playerid, 1879.9102,-1392.4220,13.5703);
  776.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}You have been teleported to {21F505}Skate Sir.");
  777.           }
  778.           case 4:
  779.           {
  780.               SetPlayerPos(playerid, 2220.4182,-1144.1377,25.8002);
  781.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}You have been teleported to {21F505}Jefferson Sir.");
  782.           }
  783.           case 5:
  784.           {
  785.               SetPlayerPos(playerid, 2223.5178,-1725.3273,13.5625);
  786.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}You have been teleported to {21F505}Ganton Sir.");
  787.           }
  788.           case 6:
  789.           {
  790.               SetPlayerPos(playerid, 2685.4214,-1690.5787,9.4332);
  791.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{3412DE}You have been teleported to {21F505}Staduim Sir.");
  792.           }
  793.        }
  794.     }
  795.     if(dialogid == UDialog)
  796.       {
  797.        switch(listitem)
  798.        {
  799.           case 0:
  800.           {
  801.               SetPlayerSkin(playerid, 163);
  802.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{F5B507}You have changed your Suit.");
  803.           }
  804.           case 1:
  805.           {
  806.               SetPlayerSkin(playerid, 164);
  807.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{F5B507}You have changed your Suit.");
  808.           }
  809.           case 2:
  810.           {
  811.               SetPlayerSkin(playerid, 165);
  812.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{F5B507}You have changed your Suit.");
  813.           }
  814.           case 3:
  815.           {
  816.               SetPlayerSkin(playerid, 166);
  817.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{F5B507}You have changed your Suit.");
  818.           }
  819.           case 4:
  820.           {
  821.               SetPlayerSkin(playerid, 171);
  822.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{F5B507}You have changed your Suit.");
  823.           }
  824.           case 5:
  825.           {
  826.               SetPlayerSkin(playerid, 172);
  827.               SendClientMessage(playerid, COLOR_ORANGE, "{FA0A0A}Tuxedo:{F5B507}You have changed your Suit.");
  828.           }
  829.       }
  830.   }
  831.     return 0;
  832. }
Advertisement
Add Comment
Please, Sign In to add comment