daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest Nov 20th, 2011 213 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // TakeItEasy's Döner Filterscript
  2. // Made by TakeItEasy
  3. // Edit by DarkZero
  4. // Datum: 20.11.11
  5.  
  6.  
  7. #include <a_samp>
  8.  
  9. #define DIALOG_DÖNER 1
  10. #define braun 0x663300FF
  11.  
  12. new Menu:Doenerladen;
  13. new doenerpick;
  14. new Float:PlayerHealth;
  15.  
  16. #pragma tabsize 0
  17.  
  18. public OnFilterScriptInit()
  19. {
  20.         print("\n--------------------------------------");
  21.         print(" TakeItEasy's Döner Filterscript");
  22.         print("--------------------------------------\n");
  23.  
  24.         doenerpick = CreatePickup(1274,1,1516.0797,-1658.3743,13.5392,0);
  25.         doenerpick = CreatePickup(1274, 1, 2352.9548,-1722.1243,13.5528, 0);
  26.         doenerpick = CreatePickup(1274, 1, 415.8665,-1358.5857,14.9669, 0);
  27.  
  28.         CreateObject(1415, 1514.19921875, -1654.19921875, 12.5, 0, 0, 90);
  29.         CreateObject(1440, 1513.5, -1652.5, 13.10000038147, 0, 0, 0);
  30.         CreateObject(2770, 1517.3994140625, -1663.599609375, 13.199999809265, 0, 0, 0);
  31.         CreateObject(1432, 1518.19921875, -1661, 12.5, 0, 0, 0);
  32.         CreateObject(1432, 1514.6999511719, -1662.5999755859, 12.5, 0, 0, 0);
  33.         CreateObject(1571, 1514.19921875, -1658.69921875, 13.89999961853, 0, 0, 90);
  34.         CreateObject(2770, 1516.099609375, -1656.3994140625, 13.199999809265, 0, 0, 0);
  35.         CreateObject(1571, 2354.1000976563, -1720.5, 13.89999961853, 0, 0, 314);
  36.         CreateObject(1432, 2359, -1721.6999511719, 12.60000038147, 0, 0, 0);
  37.         CreateObject(1432, 2361.1000976563, -1718.5, 12.60000038147, 0, 0, 0);
  38.         CreateObject(2770, 2357, -1721, 13.199999809265, 0, 0, 0);
  39.         CreateObject(1415, 2354.1999511719, -1716.4000244141, 12.60000038147, 0, 0, 82);
  40.         CreateObject(1440, 2355.8000488281, -1715, 13.10000038147, 0, 0, 0);
  41.         CreateObject(1440, 2357.1000976563, -1716.6999511719, 13.10000038147, 0, 0, 0);
  42.         CreateObject(1571, 417.10000610352, -1360.3000488281, 15.300000190735, 0, 0, 211);
  43.         CreateObject(1432, 413, -1363.1999511719, 13.89999961853, 0, 0, 0);
  44.         CreateObject(1432, 413.29998779297, -1367.5, 13.89999961853, 0, 0, 0);
  45.         CreateObject(1432, 410.70001220703, -1365.9000244141, 13.89999961853, 0, 0, 0);
  46.         CreateObject(2770, 414.79998779297, -1360.8000488281, 14.60000038147, 0, 0, 0);
  47.         CreateObject(2770, 412.79998779297, -1370.0999755859, 14.39999961853, 0, 0, 0);
  48.         CreateObject(1415, 423.20001220703, -1358.5999755859, 13.89999961853, 0, 0, 302);
  49.         CreateObject(1415, 424.29998779297, -1360.3000488281, 13.89999961853, 0, 0, 301.99768066406);
  50.         CreateObject(1440, 424.60000610352, -1362.3000488281, 14.39999961853, 0, 0, 0);
  51.         CreateObject(1440, 422.10000610352, -1362.0999755859, 14.39999961853, 0, 0, 120);
  52.         CreateObject(1568, 418.79998779297, -1358.6999511719, 14, 0, 0, 0);
  53.         CreateObject(1568, 2357.6000976563, -1720.3000488281, 12.60000038147, 0, 0, 0);
  54.         CreateObject(1568, 1514.599609375, -1660.8994140625, 12.5, 0, 0, 0);
  55.  
  56.         Doenerladen = CreateMenu("Doenerladen", 0, 23.000000,119.000000, 150.0, 150.0);
  57.         SetMenuColumnHeader(Doenerladen, 0, "Ware:     Preis:");
  58.         AddMenuItem(Doenerladen, 0, "Kleiner Doener     50$");
  59.         AddMenuItem(Doenerladen, 0, "Großer Doener     75$");
  60.         AddMenuItem(Doenerladen, 0, "Menu verlassen");
  61.  
  62.         return 1;
  63. }
  64.  
  65. public OnFilterScriptExit()
  66. {
  67.         return 1;
  68. }
  69.  
  70.  
  71.  
  72. public OnPlayerCommandText(playerid, cmdtext[])
  73. {
  74.         if (strcmp("/credits", cmdtext, true, 10) == 0)
  75.         {
  76.                 SendClientMessage(playerid, braun, "TakeItEasy - Erstellen des Filterscripts");
  77.             SendClientMessage(playerid, braun, "DarkZero - Editieren des Filterscripts");
  78.  
  79.             return 1;
  80.         }
  81.         return 0;
  82. }
  83.  
  84. public OnPlayerPickUpPickup(playerid, pickupid)
  85. {
  86.         if(pickupid==doenerpick)
  87.         {
  88.         ShowMenuForPlayer(Doenerladen,playerid);
  89.         return 1;
  90.         }
  91.         return 1;
  92. }
  93.  
  94. public OnPlayerSelectedMenuRow(playerid, row)
  95. {
  96.         new Menu:current;
  97.         current = GetPlayerMenu(playerid);
  98.         if(current == Doenerladen)
  99.         {
  100.         switch(row)
  101.         {
  102.         case 0:
  103.         {
  104.         if(GetPlayerMoney(playerid)<50) return GameTextForPlayer(playerid, "~r~Du brauchst 50$.", 5000, 6);
  105.         GivePlayerMoney(playerid, -50);
  106.         GameTextForPlayer(playerid, "~r~-50$", 2000, 1);
  107.         SendClientMessage(playerid, braun, "Du hast einen kleinen Döner gekauft! Guten appetit.");
  108.         GetPlayerHealth(playerid,PlayerHealth);
  109.         SetPlayerHealth(playerid,PlayerHealth + 25);
  110.         TogglePlayerControllable(playerid, true);
  111.         }
  112.         case 1:
  113.         {
  114.         if(GetPlayerMoney(playerid)<75) return GameTextForPlayer(playerid, "~r~Du brauchst 75$.", 5000, 6);
  115.         GivePlayerMoney(playerid, -75);
  116.         GameTextForPlayer(playerid, "~r~-75$", 2000, 1);
  117.         SendClientMessage(playerid, braun, "Du hast einen großen Döner gekauft! Guten appetit.");
  118.         GetPlayerHealth(playerid,PlayerHealth);
  119.         SetPlayerHealth(playerid,PlayerHealth + 50);
  120.         TogglePlayerControllable(playerid, true);
  121.         }
  122.         }
  123.         }
  124.         return 1;
  125. }
  126.  
  127. stock HideAllMenusForPlayer(playerid)
  128. {
  129.         HideMenuForPlayer(Doenerladen, playerid);
  130.         return 1;
  131. }
  132.  
  133.  
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top