swag123

Basic RP

Feb 27th, 2015
2,463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 49.05 KB | None | 0 0
  1. // === Includes === //
  2. #include <a_samp>
  3. #include <zcmd>
  4. #include <YSI\y_ini>
  5. #include <sscanf2>
  6. #include <foreach>
  7.  
  8. // === Login/Register === //
  9. #define PATH "Users/%s.ini"
  10.  
  11. // === Colors === //
  12. #define WHITE "{FFFFFF}"
  13. #define RED "{FF0000}"
  14. #define HRED "{7F0000)"
  15. #define GREEN "{00FF22}"
  16. #define LIGHTBLUE "{00CED1}"
  17. #define PURPLE 0xC2A2DAAA
  18.  
  19. // === Stocks === //
  20. stock UserPath(playerid)
  21. {
  22.     new string[128],playername[MAX_PLAYER_NAME];
  23.     GetPlayerName(playerid,playername,sizeof(playername));
  24.     format(string,sizeof(string),PATH,playername);
  25.     return string;
  26. }
  27.  
  28. stock ClearChat(playerid)
  29. {
  30.     SendClientMessage(playerid, -1, " ");
  31.     SendClientMessage(playerid, -1, " ");
  32.     SendClientMessage(playerid, -1, " ");
  33.     SendClientMessage(playerid, -1, " ");
  34.     SendClientMessage(playerid, -1, " ");
  35.     SendClientMessage(playerid, -1, " ");
  36.     SendClientMessage(playerid, -1, " ");
  37.     SendClientMessage(playerid, -1, " ");
  38.     SendClientMessage(playerid, -1, " ");
  39.     SendClientMessage(playerid, -1, " ");
  40.     SendClientMessage(playerid, -1, " ");
  41.     SendClientMessage(playerid, -1, " ");
  42.     SendClientMessage(playerid, -1, " ");
  43.     SendClientMessage(playerid, -1, " ");
  44.     SendClientMessage(playerid, -1, " ");
  45.     SendClientMessage(playerid, -1, " ");
  46.     SendClientMessage(playerid, -1, " ");
  47.     SendClientMessage(playerid, -1, " ");
  48.     SendClientMessage(playerid, -1, " ");
  49.     SendClientMessage(playerid, -1, " ");
  50.     SendClientMessage(playerid, -1, " ");
  51.     return 1;
  52. }
  53.  
  54. stock GetName(playerid)
  55. {
  56.     new
  57.         name[24];
  58.     GetPlayerName(playerid, name, sizeof(name));
  59.     strreplace(name, '_', ' ');
  60.     return name;
  61. }
  62.  
  63. stock strreplace(string[], find, replace)
  64. {
  65.     for(new i=0; string[i]; i++)
  66.     {
  67.         if(string[i] == find)
  68.         {
  69.             string[i] = replace;
  70.         }
  71.     }
  72. }
  73.  
  74. stock ProxDetector(Float:radi, playerid, string[],color)
  75. {
  76.     new Float:x,Float:y,Float:z;
  77.     GetPlayerPos(playerid,x,y,z);
  78.     foreach(Player,i)
  79.     {
  80.         if(IsPlayerInRangeOfPoint(i,radi,x,y,z))
  81.         {
  82.             SendClientMessage(i,color,string);
  83.         }
  84.     }
  85. }
  86.  
  87. stock udb_hash(buf[]) {
  88.     new length=strlen(buf);
  89.     new s1 = 1;
  90.     new s2 = 0;
  91.     new n;
  92.     for (n=0; n<length; n++)
  93.     {
  94.        s1 = (s1 + buf[n]) % 65521;
  95.        s2 = (s2 + s1)     % 65521;
  96.     }
  97.     return (s2 << 16) + s1;
  98. }
  99. // === Dialog Defines === //
  100. #define DIALOG_REGISTER 1
  101. #define DIALOG_LOGIN 2
  102. #define DIALOG_SUCCESS_1 3
  103. #define DIALOG_SUCCESS_2 4
  104.  
  105. // === Forwards === //
  106. forward LoadUser_data(playerid,name[],value[]);
  107. forward payday(playerid);
  108.  
  109. // === Enums == //
  110. enum pInfo
  111. {
  112.     pPass,
  113.     pCash,
  114.     pDev,
  115.     pHelper,
  116.     pHDuty,
  117.     pAdmin,
  118.     pKills,
  119.     pDeaths
  120. }
  121. new PlayerInfo[MAX_PLAYERS][pInfo];
  122.  
  123. // === News === //
  124. new Text:Textdraw0;
  125.  
  126.  
  127. main()
  128. {
  129.     print("\n----------------------------------");
  130.     print(" Roleplay");
  131.     print("----------------------------------\n");
  132. }
  133.  
  134. public OnGameModeInit()
  135. {
  136.     // Standard stuff //
  137.     SetTimer("payday", 360000, true);
  138.     SetGameModeText(" Roleplay");
  139.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  140.     DisableInteriorEnterExits();
  141.     // Textdraws //
  142.     Textdraw0 = TextDrawCreate(437.000000, 430.000000, "Sparke Roleplay");
  143.     TextDrawBackgroundColor(Textdraw0, 255);
  144.     TextDrawFont(Textdraw0, 2);
  145.     TextDrawLetterSize(Textdraw0, 0.499996, 1.200001);
  146.     TextDrawColor(Textdraw0, -1);
  147.     TextDrawSetOutline(Textdraw0, 1);
  148.     TextDrawSetProportional(Textdraw0, 1);
  149.     // Mappings //
  150.     CreateObject(19456, 2442.48706, -946.98187, 34.07200,   0.00000, 0.00000, 0.00000);
  151.     CreateObject(19456, -2473.19385, -947.03558, 31.07200,   0.00000, 0.00000, 0.00000);
  152.     CreateObject(19456, 2465.51074, -951.86072, 30.57200,   0.00000, 0.00000, 90.00000);
  153.     CreateObject(19456, 2454.48926, -951.86969, 30.57200,   0.00000, 0.00000, 90.00000);
  154.     CreateObject(19456, 2464.45923, -942.14594, 34.07200,   0.00000, 0.00000, 90.00000);
  155.     CreateObject(19456, 695.12341, -11207.43457, -3460.63086,   0.00000, 0.00000, 0.00000);
  156.     CreateObject(19456, 2459.22729, -942.28833, 30.57200,   0.00000, 0.00000, 90.00000);
  157.     CreateObject(19455, 2467.77930, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  158.     CreateObject(19455, 2464.29248, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  159.     CreateObject(19455, 2460.79370, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  160.     CreateObject(19455, 8926.37500, -6501.69287, -7986.34375,   0.00000, 0.00000, 0.00000);
  161.     CreateObject(19455, 2259.51343, 8334.60938, -4365.91211,   0.00000, 0.00000, 0.00000);
  162.     CreateObject(19455, 2457.29370, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  163.     CreateObject(19456, 9314.98730, 7398.31543, -1365.54895,   0.00000, 0.00000, 0.00000);
  164.     CreateObject(19456, 2464.94458, -951.83643, 34.07200,   0.00000, 0.00000, 90.00000);
  165.     CreateObject(19456, 2452.91553, -938.59210, 31.07200,   0.00000, 0.00000, 90.00000);
  166.     CreateObject(19455, -6559.60254, -3010.57666, -4910.30273,   0.00000, 0.00000, 0.00000);
  167.     CreateObject(19455, 2454.05835, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  168.     CreateObject(19455, -1779.04272, 3819.04883, -8897.56836,   0.00000, 0.00000, 0.00000);
  169.     CreateObject(19455, 2450.58228, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  170.     CreateObject(19456, 2469.62109, -946.90051, 31.07200,   0.00000, 0.00000, 0.00000);
  171.     CreateObject(19455, 2447.08521, -947.20929, 29.38610,   0.00000, -90.00000, 0.00000);
  172.     CreateObject(19455, 2443.58521, -947.20929, 29.38610,   0.00000, -90.00000, 0.00000);
  173.     CreateObject(19456, 2443.52734, -942.28058, 31.07200,   0.00000, 0.00000, 90.00000);
  174.     CreateObject(19456, 2445.81055, -951.85028, 30.57200,   0.00000, 0.00000, 90.00000);
  175.     CreateObject(8572, 3450.40942, 8122.78711, -4693.34326,   0.00000, 0.00000, 0.00000);
  176.     CreateObject(8572, 2468.62354, -948.08887, 31.58510,   0.00000, 0.00000, -90.00000);
  177.     CreateObject(18028, 542.83014, -80.41399, 999.93750,   356.85840, 0.00000, 3.14159);
  178.     CreateObject(18028, 499.85156, -77.96094, 999.93750,   356.85840, 0.00000, 3.14159);
  179.     CreateObject(18028, 499.76349, -70.69993, 999.93750,   356.85840, 0.00000, 3.14159);
  180.     CreateObject(15034, 10111.89648, 4816.30127, -7432.86035,   0.00000, 0.00000, 0.00000);
  181.     CreateObject(19452, 2477.90918, -951.84698, 34.35120,   0.00000, 0.00000, -90.00000);
  182.     CreateObject(19452, 2474.68555, -942.39313, 34.35120,   0.00000, 0.00000, -90.00000);
  183.     CreateObject(19452, 9980.64746, 3604.13110, -5454.52246,   0.00000, 0.00000, 0.00000);
  184.     CreateObject(19542, 2477.91699, -942.42902, 35.53144,   0.00000, 0.00000, 0.00000);
  185.     CreateObject(19452, 2484.02344, -942.33301, 34.35120,   0.00000, 0.00000, -90.00000);
  186.     CreateObject(19452, 2803.80664, 8126.12305, -7939.70313,   0.00000, 0.00000, 0.00000);
  187.     CreateObject(19452, 2479.45020, -941.12152, 34.35120,   0.00000, 0.00000, 0.00000);
  188.     CreateObject(19452, 8762.40332, -3891.15747, -7513.29150,   0.00000, 0.00000, 0.00000);
  189.     CreateObject(19452, 2479.44238, -952.21118, 34.35120,   0.00000, 0.00000, 0.00000);
  190.     CreateObject(1556, 2479.39380, -945.89941, 32.91260,   0.00000, 0.00000, -90.00000);
  191.     CreateObject(19452, 2479.45532, -948.06787, 37.15950,   0.00000, 0.00000, -180.00000);
  192.     CreateObject(19452, 2477.83643, -946.76080, 35.67430,   0.00000, 90.00000, 0.00000);
  193.     CreateObject(19452, 2474.74121, -946.74976, 35.67430,   0.00000, 90.00000, 0.00000);
  194.     CreateObject(19524, 2472.47729, -948.13556, 34.47657,   0.00000, 0.00000, 0.00000);
  195.     CreateObject(19452, 2469.71655, -955.60138, 34.54380,   0.00000, 0.00000, 0.00000);
  196.     CreateObject(1498, -7577.62207, 200.20715, 589.06403,   0.00000, 0.00000, 0.00000);
  197.     CreateObject(19452, 2474.57959, -951.86700, 34.35120,   0.00000, 0.00000, 90.00000);
  198.     CreateObject(19456, 2461.16772, -946.99823, 35.74110,   0.00000, 90.00000, 0.00000);
  199.     CreateObject(19456, 2468.07178, -946.97339, 35.75000,   0.00000, 90.00000, 0.00000);
  200.     CreateObject(19456, 2447.37402, -951.88599, 34.07200,   0.00000, 0.00000, 90.00000);
  201.     CreateObject(19456, 2464.65186, -946.97162, 35.74110,   0.00000, 90.00000, 0.00000);
  202.     CreateObject(19456, 2464.92017, -951.82239, 34.07200,   0.00000, 0.00000, 90.00000);
  203.     CreateObject(19537, 2446.96826, -942.24927, 32.81786,   0.00000, 0.00000, 0.00000);
  204.     CreateObject(19537, 2441.46118, -942.19916, 29.48672,   0.00000, 0.00000, 0.00000);
  205.     CreateObject(19544, 2466.46509, -942.16443, 30.60710,   0.00000, 0.00000, 0.00000);
  206.     CreateObject(19544, 2155.91284, -740.63019, 110.75777,   0.00000, 0.00000, 0.00000);
  207.     CreateObject(19552, 2146.28809, -708.74860, 76.78431,   0.00000, 0.00000, 0.00000);
  208.     CreateObject(19456, 2457.68335, -946.97827, 35.74110,   0.00000, 90.00000, 0.00000);
  209.     CreateObject(0, 2454.23657, -947.00848, 35.74110,   0.00000, 90.00000, 0.00000);
  210.     CreateObject(19456, 2450.69971, -946.94989, 35.73320,   0.00000, 90.00000, 0.00000);
  211.     CreateObject(19456, 2447.23730, -946.94220, 35.73320,   0.00000, 90.00000, 0.00000);
  212.     CreateObject(19456, 2443.77686, -946.94531, 35.72810,   0.00000, 90.00000, 0.00000);
  213.     CreateObject(19456, 2457.02197, -951.85480, 34.07200,   0.00000, 0.00000, 90.00000);
  214.     CreateObject(19456, 2458.03296, -951.84967, 30.57200,   0.00000, 0.00000, 90.00000);
  215.     CreateObject(19456, 2442.47241, -947.13458, 30.57200,   0.00000, 0.00000, 0.00000);
  216.     CreateObject(19456, -2473.19385, -947.03558, 31.07200,   0.00000, 0.00000, 0.00000);
  217.     CreateObject(19456, 2465.51074, -951.86072, 30.57200,   0.00000, 0.00000, 90.00000);
  218.     CreateObject(19456, 2454.48926, -951.86969, 30.57200,   0.00000, 0.00000, 90.00000);
  219.     CreateObject(19456, 2465.03979, -942.27380, 30.57200,   0.00000, 0.00000, 90.00000);
  220.     CreateObject(19456, 695.12341, -11207.43457, -3460.63086,   0.00000, 0.00000, 0.00000);
  221.     CreateObject(19455, 2467.77930, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  222.     CreateObject(19455, 2464.29248, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  223.     CreateObject(19455, 2460.79370, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  224.     CreateObject(19455, 8926.37500, -6501.69287, -7986.34375,   0.00000, 0.00000, 0.00000);
  225.     CreateObject(19455, 2259.51343, 8334.60938, -4365.91211,   0.00000, 0.00000, 0.00000);
  226.     CreateObject(19455, 2457.30029, -946.92096, 29.38610,   0.00000, -90.00000, 0.00000);
  227.     CreateObject(19456, 9314.98730, 7398.31543, -1365.54895,   0.00000, 0.00000, 0.00000);
  228.     CreateObject(19456, 2464.94458, -951.83643, 34.07200,   0.00000, 0.00000, 90.00000);
  229.     CreateObject(19456, 2453.18774, -942.30591, 30.57200,   0.00000, 0.00000, 90.00000);
  230.     CreateObject(19455, -6559.60254, -3010.57666, -4910.30273,   0.00000, 0.00000, 0.00000);
  231.     CreateObject(19455, 2454.05835, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  232.     CreateObject(19455, -1779.04272, 3819.04883, -8897.56836,   0.00000, 0.00000, 0.00000);
  233.     CreateObject(19455, 2450.58228, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  234.     CreateObject(19456, 2469.59741, -947.15942, 30.57200,   0.00000, 0.00000, 0.00000);
  235.     CreateObject(19455, 2447.08521, -947.20929, 29.38610,   0.00000, -90.00000, 0.00000);
  236.     CreateObject(19455, 2443.58521, -947.20929, 29.38610,   0.00000, -90.00000, 0.00000);
  237.     CreateObject(19456, 2443.54639, -942.29657, 30.57200,   0.00000, 0.00000, 90.00000);
  238.     CreateObject(19456, 2445.79297, -951.85986, 30.57200,   0.00000, 0.00000, 90.00000);
  239.     CreateObject(8572, 3450.40942, 8122.78711, -4693.34326,   0.00000, 0.00000, 0.00000);
  240.     CreateObject(18028, 542.83014, -80.41399, 999.93750,   356.85840, 0.00000, 3.14159);
  241.     CreateObject(18028, 499.85156, -77.96094, 999.93750,   356.85840, 0.00000, 3.14159);
  242.     CreateObject(18028, 499.76349, -70.69993, 999.93750,   356.85840, 0.00000, 3.14159);
  243.     CreateObject(15034, 10111.89648, 4816.30127, -7432.86035,   0.00000, 0.00000, 0.00000);
  244.     CreateObject(19448, 2471.46240, -947.33368, 32.75190,   0.00000, -90.00000, 0.00000);
  245.     CreateObject(19452, 2477.20752, -951.86310, 34.35120,   0.00000, 0.00000, -90.00000);
  246.     CreateObject(19452, 9980.64746, 3604.13110, -5454.52246,   0.00000, 0.00000, 0.00000);
  247.     CreateObject(19542, 2477.91699, -942.42902, 35.53144,   0.00000, 0.00000, 0.00000);
  248.     CreateObject(19452, 2484.02344, -942.33301, 34.35120,   0.00000, 0.00000, -90.00000);
  249.     CreateObject(19452, 2803.80664, 8126.12305, -7939.70313,   0.00000, 0.00000, 0.00000);
  250.     CreateObject(19452, 8762.40332, -3891.15747, -7513.29150,   0.00000, 0.00000, 0.00000);
  251.     CreateObject(1556, 2479.39380, -945.89941, 32.91260,   0.00000, 0.00000, -90.00000);
  252.     CreateObject(19452, 2479.45532, -948.06787, 37.15950,   0.00000, 0.00000, -180.00000);
  253.     CreateObject(19452, 2477.83643, -946.76080, 35.67430,   0.00000, 90.00000, 0.00000);
  254.     CreateObject(19452, 2471.25781, -946.74432, 35.67430,   0.00000, 90.00000, 0.00000);
  255.     CreateObject(19452, 2469.65356, -944.53577, 34.54380,   0.00000, 0.00000, 0.00000);
  256.     CreateObject(19524, 2472.47729, -948.13556, 34.47657,   0.00000, 0.00000, 0.00000);
  257.     CreateObject(1498, -7577.62207, 200.20715, 589.06403,   0.00000, 0.00000, 0.00000);
  258.     CreateObject(19452, 2474.57959, -951.86700, 34.35120,   0.00000, 0.00000, 90.00000);
  259.     CreateObject(19456, 2461.16772, -946.99823, 35.74110,   0.00000, 90.00000, 0.00000);
  260.     CreateObject(19456, 2447.37402, -951.88599, 34.07200,   0.00000, 0.00000, 90.00000);
  261.     CreateObject(19456, 2464.65186, -946.97162, 35.74110,   0.00000, 90.00000, 0.00000);
  262.     CreateObject(19456, 2464.90137, -951.81586, 34.07200,   0.00000, 0.00000, 90.00000);
  263.     CreateObject(19537, 2446.96826, -942.24927, 32.81786,   0.00000, 0.00000, 0.00000);
  264.     CreateObject(19537, 2441.46118, -942.19916, 29.48672,   0.00000, 0.00000, 0.00000);
  265.     CreateObject(19544, 2466.46509, -942.16443, 30.60710,   0.00000, 0.00000, 0.00000);
  266.     CreateObject(19544, 2155.91284, -740.63019, 110.75777,   0.00000, 0.00000, 0.00000);
  267.     CreateObject(19552, 2146.28809, -708.74860, 76.78431,   0.00000, 0.00000, 0.00000);
  268.     CreateObject(19456, 2457.68335, -946.97827, 35.74110,   0.00000, 90.00000, 0.00000);
  269.     CreateObject(0, 2454.23657, -947.00848, 35.74110,   0.00000, 90.00000, 0.00000);
  270.     CreateObject(19456, 2450.69971, -946.94989, 35.73320,   0.00000, 90.00000, 0.00000);
  271.     CreateObject(19456, 2447.23730, -946.94220, 35.73320,   0.00000, 90.00000, 0.00000);
  272.     CreateObject(19456, 2443.77686, -946.94531, 35.72810,   0.00000, 90.00000, 0.00000);
  273.     CreateObject(19456, 2457.00610, -951.84265, 34.07200,   0.00000, 0.00000, 90.00000);
  274.     CreateObject(19456, 2458.03296, -951.84967, 30.57200,   0.00000, 0.00000, 90.00000);
  275.     CreateObject(19456, 2445.13916, -942.31049, 34.07200,   0.00000, 0.00000, 90.00000);
  276.     CreateObject(19456, 2454.77319, -942.26129, 34.07200,   0.00000, 0.00000, 90.00000);
  277.     CreateObject(19456, 2441.22998, -947.30011, 32.72950,   0.00000, 0.00000, 0.00000);
  278.     CreateObject(19456, 2454.15576, -946.93103, 35.73980,   0.00000, 90.00000, 0.00000);
  279.     CreateObject(19456, 2467.02026, -942.23877, 34.07200,   0.00000, 0.00000, 90.00000);
  280.     CreateObject(19448, 2474.82910, -947.23187, 32.75190,   0.00000, -90.00000, 0.00000);
  281.     CreateObject(19448, 2478.33398, -946.92828, 32.75190,   0.00000, -90.00000, 0.00000);
  282.     CreateObject(19456, 2442.48706, -946.98187, 34.07200,   0.00000, 0.00000, 0.00000);
  283.     CreateObject(19456, -2473.19385, -947.03558, 31.07200,   0.00000, 0.00000, 0.00000);
  284.     CreateObject(19456, 2465.51074, -951.86072, 30.57200,   0.00000, 0.00000, 90.00000);
  285.     CreateObject(19456, 2454.48926, -951.86969, 30.57200,   0.00000, 0.00000, 90.00000);
  286.     CreateObject(19456, 695.12341, -11207.43457, -3460.63086,   0.00000, 0.00000, 0.00000);
  287.     CreateObject(19456, 2459.22729, -942.28833, 30.57200,   0.00000, 0.00000, 90.00000);
  288.     CreateObject(19455, 2467.77930, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  289.     CreateObject(19455, 2464.29248, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  290.     CreateObject(19455, 2460.79370, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  291.     CreateObject(19455, 8926.37500, -6501.69287, -7986.34375,   0.00000, 0.00000, 0.00000);
  292.     CreateObject(19455, 2259.51343, 8334.60938, -4365.91211,   0.00000, 0.00000, 0.00000);
  293.     CreateObject(19455, 2457.29370, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  294.     CreateObject(19456, 9314.98730, 7398.31543, -1365.54895,   0.00000, 0.00000, 0.00000);
  295.     CreateObject(19456, 2464.94458, -951.83643, 34.07200,   0.00000, 0.00000, 90.00000);
  296.     CreateObject(19456, 2452.91553, -938.59210, 31.07200,   0.00000, 0.00000, 90.00000);
  297.     CreateObject(19455, -6559.60254, -3010.57666, -4910.30273,   0.00000, 0.00000, 0.00000);
  298.     CreateObject(19455, 2454.05835, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  299.     CreateObject(19455, -1779.04272, 3819.04883, -8897.56836,   0.00000, 0.00000, 0.00000);
  300.     CreateObject(19455, 2450.58228, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  301.     CreateObject(19456, 2469.62109, -946.90051, 31.07200,   0.00000, 0.00000, 0.00000);
  302.     CreateObject(19455, 2447.08521, -947.20929, 29.38610,   0.00000, -90.00000, 0.00000);
  303.     CreateObject(19455, 2443.58521, -947.20929, 29.38610,   0.00000, -90.00000, 0.00000);
  304.     CreateObject(19456, 2443.52734, -942.28058, 31.07200,   0.00000, 0.00000, 90.00000);
  305.     CreateObject(19456, 2445.81055, -951.85028, 30.57200,   0.00000, 0.00000, 90.00000);
  306.     CreateObject(8572, 3450.40942, 8122.78711, -4693.34326,   0.00000, 0.00000, 0.00000);
  307.     CreateObject(18028, 542.83014, -80.41399, 999.93750,   356.85840, 0.00000, 3.14159);
  308.     CreateObject(18028, 499.85156, -77.96094, 999.93750,   356.85840, 0.00000, 3.14159);
  309.     CreateObject(18028, 499.76349, -70.69993, 999.93750,   356.85840, 0.00000, 3.14159);
  310.     CreateObject(15034, 10111.89648, 4816.30127, -7432.86035,   0.00000, 0.00000, 0.00000);
  311.     CreateObject(19452, 2477.90918, -951.84698, 34.35120,   0.00000, 0.00000, -90.00000);
  312.     CreateObject(19452, 9980.64746, 3604.13110, -5454.52246,   0.00000, 0.00000, 0.00000);
  313.     CreateObject(19542, 2477.91699, -942.42902, 35.53144,   0.00000, 0.00000, 0.00000);
  314.     CreateObject(19452, 2484.02344, -942.33301, 34.35120,   0.00000, 0.00000, -90.00000);
  315.     CreateObject(19452, 2803.80664, 8126.12305, -7939.70313,   0.00000, 0.00000, 0.00000);
  316.     CreateObject(19452, 8762.40332, -3891.15747, -7513.29150,   0.00000, 0.00000, 0.00000);
  317.     CreateObject(1556, 2479.39380, -945.89941, 32.91260,   0.00000, 0.00000, -90.00000);
  318.     CreateObject(19452, 2479.45532, -948.06787, 37.15950,   0.00000, 0.00000, -180.00000);
  319.     CreateObject(19452, 2477.83643, -946.76080, 35.67430,   0.00000, 90.00000, 0.00000);
  320.     CreateObject(19452, 2474.74121, -946.74976, 35.67430,   0.00000, 90.00000, 0.00000);
  321.     CreateObject(1498, -7577.62207, 200.20715, 589.06403,   0.00000, 0.00000, 0.00000);
  322.     CreateObject(19452, 2474.57959, -951.86700, 34.35120,   0.00000, 0.00000, 90.00000);
  323.     CreateObject(19456, 2461.16772, -946.99823, 35.74110,   0.00000, 90.00000, 0.00000);
  324.     CreateObject(19456, 2447.37402, -951.88599, 34.07200,   0.00000, 0.00000, 90.00000);
  325.     CreateObject(19456, 2464.92017, -951.82239, 34.07200,   0.00000, 0.00000, 90.00000);
  326.     CreateObject(19537, 2446.96826, -942.24927, 32.81786,   0.00000, 0.00000, 0.00000);
  327.     CreateObject(19537, 2441.46118, -942.19916, 29.48672,   0.00000, 0.00000, 0.00000);
  328.     CreateObject(19544, 2466.46509, -942.16443, 30.60710,   0.00000, 0.00000, 0.00000);
  329.     CreateObject(19544, 2155.91284, -740.63019, 110.75777,   0.00000, 0.00000, 0.00000);
  330.     CreateObject(19552, 2146.28809, -708.74860, 76.78431,   0.00000, 0.00000, 0.00000);
  331.     CreateObject(19456, 2457.68335, -946.97827, 35.74110,   0.00000, 90.00000, 0.00000);
  332.     CreateObject(0, 2454.23657, -947.00848, 35.74110,   0.00000, 90.00000, 0.00000);
  333.     CreateObject(19456, 2450.69971, -946.94989, 35.73320,   0.00000, 90.00000, 0.00000);
  334.     CreateObject(19456, 2447.23730, -946.94220, 35.73320,   0.00000, 90.00000, 0.00000);
  335.     CreateObject(19456, 2443.77686, -946.94531, 35.72810,   0.00000, 90.00000, 0.00000);
  336.     CreateObject(19456, 2457.02197, -951.85480, 34.07200,   0.00000, 0.00000, 90.00000);
  337.     CreateObject(19456, 2458.03296, -951.84967, 30.57200,   0.00000, 0.00000, 90.00000);
  338.     CreateObject(19456, 2442.47241, -947.13458, 30.57200,   0.00000, 0.00000, 0.00000);
  339.     CreateObject(19456, -2473.19385, -947.03558, 31.07200,   0.00000, 0.00000, 0.00000);
  340.     CreateObject(19456, 2465.51074, -951.86072, 30.57200,   0.00000, 0.00000, 90.00000);
  341.     CreateObject(19456, 2454.48926, -951.86969, 30.57200,   0.00000, 0.00000, 90.00000);
  342.     CreateObject(19456, 2465.03979, -942.27380, 30.57200,   0.00000, 0.00000, 90.00000);
  343.     CreateObject(19456, 695.12341, -11207.43457, -3460.63086,   0.00000, 0.00000, 0.00000);
  344.     CreateObject(19455, 2467.77930, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  345.     CreateObject(19455, 2464.29248, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  346.     CreateObject(19455, 2460.79370, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  347.     CreateObject(19455, 8926.37500, -6501.69287, -7986.34375,   0.00000, 0.00000, 0.00000);
  348.     CreateObject(19455, 2259.51343, 8334.60938, -4365.91211,   0.00000, 0.00000, 0.00000);
  349.     CreateObject(19455, 2457.30029, -946.92096, 29.38610,   0.00000, -90.00000, 0.00000);
  350.     CreateObject(19456, 9314.98730, 7398.31543, -1365.54895,   0.00000, 0.00000, 0.00000);
  351.     CreateObject(19456, 2464.94458, -951.83643, 34.07200,   0.00000, 0.00000, 90.00000);
  352.     CreateObject(19456, 2453.18774, -942.30591, 30.57200,   0.00000, 0.00000, 90.00000);
  353.     CreateObject(19455, -6559.60254, -3010.57666, -4910.30273,   0.00000, 0.00000, 0.00000);
  354.     CreateObject(19455, 2454.05835, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  355.     CreateObject(19455, -1779.04272, 3819.04883, -8897.56836,   0.00000, 0.00000, 0.00000);
  356.     CreateObject(19455, 2450.58228, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  357.     CreateObject(19456, 2469.59741, -947.15942, 30.57200,   0.00000, 0.00000, 0.00000);
  358.     CreateObject(19455, 2447.08521, -947.20929, 29.38610,   0.00000, -90.00000, 0.00000);
  359.     CreateObject(19455, 2443.58521, -947.20929, 29.38610,   0.00000, -90.00000, 0.00000);
  360.     CreateObject(19456, 2443.54639, -942.29657, 30.57200,   0.00000, 0.00000, 90.00000);
  361.     CreateObject(19456, 2445.79297, -951.85986, 30.57200,   0.00000, 0.00000, 90.00000);
  362.     CreateObject(8572, 3450.40942, 8122.78711, -4693.34326,   0.00000, 0.00000, 0.00000);
  363.     CreateObject(18028, 542.83014, -80.41399, 999.93750,   356.85840, 0.00000, 3.14159);
  364.     CreateObject(18028, 499.85156, -77.96094, 999.93750,   356.85840, 0.00000, 3.14159);
  365.     CreateObject(18028, 499.76349, -70.69993, 999.93750,   356.85840, 0.00000, 3.14159);
  366.     CreateObject(15034, 10111.89648, 4816.30127, -7432.86035,   0.00000, 0.00000, 0.00000);
  367.     CreateObject(19452, 2477.20752, -951.86310, 34.35120,   0.00000, 0.00000, -90.00000);
  368.     CreateObject(19452, 9980.64746, 3604.13110, -5454.52246,   0.00000, 0.00000, 0.00000);
  369.     CreateObject(19542, 2477.91699, -942.42902, 35.53144,   0.00000, 0.00000, 0.00000);
  370.     CreateObject(19452, 2484.02344, -942.33301, 34.35120,   0.00000, 0.00000, -90.00000);
  371.     CreateObject(19452, 2803.80664, 8126.12305, -7939.70313,   0.00000, 0.00000, 0.00000);
  372.     CreateObject(19452, 8762.40332, -3891.15747, -7513.29150,   0.00000, 0.00000, 0.00000);
  373.     CreateObject(1556, 2479.39380, -945.89941, 32.91260,   0.00000, 0.00000, -90.00000);
  374.     CreateObject(19452, 2479.45532, -948.06787, 37.15950,   0.00000, 0.00000, -180.00000);
  375.     CreateObject(19452, 2477.83643, -946.76080, 35.67430,   0.00000, 90.00000, 0.00000);
  376.     CreateObject(1498, -7577.62207, 200.20715, 589.06403,   0.00000, 0.00000, 0.00000);
  377.     CreateObject(19452, 2474.57959, -951.86700, 34.35120,   0.00000, 0.00000, 90.00000);
  378.     CreateObject(19456, 2461.16772, -946.99823, 35.74110,   0.00000, 90.00000, 0.00000);
  379.     CreateObject(19456, 2447.37402, -951.88599, 34.07200,   0.00000, 0.00000, 90.00000);
  380.     CreateObject(19537, 2446.96826, -942.24927, 32.81786,   0.00000, 0.00000, 0.00000);
  381.     CreateObject(19537, 2441.46118, -942.19916, 29.48672,   0.00000, 0.00000, 0.00000);
  382.     CreateObject(19544, 2466.46509, -942.16443, 30.60710,   0.00000, 0.00000, 0.00000);
  383.     CreateObject(19544, 2155.91284, -740.63019, 110.75777,   0.00000, 0.00000, 0.00000);
  384.     CreateObject(19552, 2146.28809, -708.74860, 76.78431,   0.00000, 0.00000, 0.00000);
  385.     CreateObject(19456, 2457.68335, -946.97827, 35.74110,   0.00000, 90.00000, 0.00000);
  386.     CreateObject(0, 2454.23657, -947.00848, 35.74110,   0.00000, 90.00000, 0.00000);
  387.     CreateObject(19456, 2450.69971, -946.94989, 35.73320,   0.00000, 90.00000, 0.00000);
  388.     CreateObject(19456, 2447.23730, -946.94220, 35.73320,   0.00000, 90.00000, 0.00000);
  389.     CreateObject(19456, 2443.77686, -946.94531, 35.72810,   0.00000, 90.00000, 0.00000);
  390.     CreateObject(19456, 2457.00610, -951.84265, 34.07200,   0.00000, 0.00000, 90.00000);
  391.     CreateObject(19456, 2458.03296, -951.84967, 30.57200,   0.00000, 0.00000, 90.00000);
  392.     CreateObject(19456, 2445.13916, -942.31049, 34.07200,   0.00000, 0.00000, 90.00000);
  393.     CreateObject(19456, 2454.77319, -942.26129, 34.07200,   0.00000, 0.00000, 90.00000);
  394.     CreateObject(19456, 2441.22998, -947.30011, 32.72950,   0.00000, 0.00000, 0.00000);
  395.     CreateObject(19456, 2454.15576, -946.93103, 35.73980,   0.00000, 90.00000, 0.00000);
  396.     CreateObject(19456, 2467.02026, -942.23877, 34.07200,   0.00000, 0.00000, 90.00000);
  397.     CreateObject(19456, 2442.48706, -946.98187, 34.07200,   0.00000, 0.00000, 0.00000);
  398.     CreateObject(19456, -2473.19385, -947.03558, 31.07200,   0.00000, 0.00000, 0.00000);
  399.     CreateObject(19456, 2465.51074, -951.86072, 30.57200,   0.00000, 0.00000, 90.00000);
  400.     CreateObject(19456, 2454.48926, -951.86969, 30.57200,   0.00000, 0.00000, 90.00000);
  401.     CreateObject(19456, 695.12341, -11207.43457, -3460.63086,   0.00000, 0.00000, 0.00000);
  402.     CreateObject(19456, 2459.22729, -942.28833, 30.57200,   0.00000, 0.00000, 90.00000);
  403.     CreateObject(19455, 2467.77930, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  404.     CreateObject(19455, 2464.29248, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  405.     CreateObject(19455, 2460.79370, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  406.     CreateObject(19455, 8926.37500, -6501.69287, -7986.34375,   0.00000, 0.00000, 0.00000);
  407.     CreateObject(19455, 2259.51343, 8334.60938, -4365.91211,   0.00000, 0.00000, 0.00000);
  408.     CreateObject(19455, 2457.29370, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  409.     CreateObject(19456, 9314.98730, 7398.31543, -1365.54895,   0.00000, 0.00000, 0.00000);
  410.     CreateObject(19456, 2464.94458, -951.83643, 34.07200,   0.00000, 0.00000, 90.00000);
  411.     CreateObject(19456, 2452.91553, -938.59210, 31.07200,   0.00000, 0.00000, 90.00000);
  412.     CreateObject(19455, -6559.60254, -3010.57666, -4910.30273,   0.00000, 0.00000, 0.00000);
  413.     CreateObject(19455, 2454.05835, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  414.     CreateObject(19455, -1779.04272, 3819.04883, -8897.56836,   0.00000, 0.00000, 0.00000);
  415.     CreateObject(19455, 2450.58228, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  416.     CreateObject(19456, 2469.62109, -946.90051, 31.07200,   0.00000, 0.00000, 0.00000);
  417.     CreateObject(19455, 2447.08521, -947.20929, 29.38610,   0.00000, -90.00000, 0.00000);
  418.     CreateObject(19455, 2443.58521, -947.20929, 29.38610,   0.00000, -90.00000, 0.00000);
  419.     CreateObject(19456, 2443.52734, -942.28058, 31.07200,   0.00000, 0.00000, 90.00000);
  420.     CreateObject(19456, 2445.81055, -951.85028, 30.57200,   0.00000, 0.00000, 90.00000);
  421.     CreateObject(8572, 3450.40942, 8122.78711, -4693.34326,   0.00000, 0.00000, 0.00000);
  422.     CreateObject(18028, 542.83014, -80.41399, 999.93750,   356.85840, 0.00000, 3.14159);
  423.     CreateObject(18028, 499.85156, -77.96094, 999.93750,   356.85840, 0.00000, 3.14159);
  424.     CreateObject(18028, 499.76349, -70.69993, 999.93750,   356.85840, 0.00000, 3.14159);
  425.     CreateObject(15034, 10111.89648, 4816.30127, -7432.86035,   0.00000, 0.00000, 0.00000);
  426.     CreateObject(19452, 2477.90918, -951.84698, 34.35120,   0.00000, 0.00000, -90.00000);
  427.     CreateObject(19452, 2474.46533, -942.39294, 34.35120,   0.00000, 0.00000, -90.00000);
  428.     CreateObject(19452, 9980.64746, 3604.13110, -5454.52246,   0.00000, 0.00000, 0.00000);
  429.     CreateObject(19542, 2477.91699, -942.42902, 35.53144,   0.00000, 0.00000, 0.00000);
  430.     CreateObject(19452, 2484.02344, -942.33301, 34.35120,   0.00000, 0.00000, -90.00000);
  431.     CreateObject(19452, 2803.80664, 8126.12305, -7939.70313,   0.00000, 0.00000, 0.00000);
  432.     CreateObject(19452, 8762.40332, -3891.15747, -7513.29150,   0.00000, 0.00000, 0.00000);
  433.     CreateObject(1556, 2479.39380, -945.89941, 32.91260,   0.00000, 0.00000, -90.00000);
  434.     CreateObject(19452, 2479.45532, -948.06787, 37.15950,   0.00000, 0.00000, -180.00000);
  435.     CreateObject(19452, 2477.83643, -946.76080, 35.67430,   0.00000, 90.00000, 0.00000);
  436.     CreateObject(19452, 2474.74121, -946.74976, 35.67430,   0.00000, 90.00000, 0.00000);
  437.     CreateObject(1498, -7577.62207, 200.20715, 589.06403,   0.00000, 0.00000, 0.00000);
  438.     CreateObject(19452, 2474.57959, -951.86700, 34.35120,   0.00000, 0.00000, 90.00000);
  439.     CreateObject(19456, 2461.16772, -946.99823, 35.74110,   0.00000, 90.00000, 0.00000);
  440.     CreateObject(19456, 2447.37402, -951.88599, 34.07200,   0.00000, 0.00000, 90.00000);
  441.     CreateObject(19456, 2464.92017, -951.82239, 34.07200,   0.00000, 0.00000, 90.00000);
  442.     CreateObject(19537, 2446.96826, -942.24927, 32.81786,   0.00000, 0.00000, 0.00000);
  443.     CreateObject(19537, 2441.46118, -942.19916, 29.48672,   0.00000, 0.00000, 0.00000);
  444.     CreateObject(19544, 2466.46509, -942.16443, 30.60710,   0.00000, 0.00000, 0.00000);
  445.     CreateObject(19544, 2155.91284, -740.63019, 110.75777,   0.00000, 0.00000, 0.00000);
  446.     CreateObject(19552, 2146.28809, -708.74860, 76.78431,   0.00000, 0.00000, 0.00000);
  447.     CreateObject(19456, 2457.68335, -946.97827, 35.74110,   0.00000, 90.00000, 0.00000);
  448.     CreateObject(0, 2454.23657, -947.00848, 35.74110,   0.00000, 90.00000, 0.00000);
  449.     CreateObject(19456, 2450.69971, -946.94989, 35.73320,   0.00000, 90.00000, 0.00000);
  450.     CreateObject(19456, 2447.23730, -946.94220, 35.73320,   0.00000, 90.00000, 0.00000);
  451.     CreateObject(19456, 2443.77686, -946.94531, 35.72810,   0.00000, 90.00000, 0.00000);
  452.     CreateObject(19456, 2457.02197, -951.85480, 34.07200,   0.00000, 0.00000, 90.00000);
  453.     CreateObject(19456, 2458.03296, -951.84967, 30.57200,   0.00000, 0.00000, 90.00000);
  454.     CreateObject(19456, 2442.47241, -947.13458, 30.57200,   0.00000, 0.00000, 0.00000);
  455.     CreateObject(19456, -2473.19385, -947.03558, 31.07200,   0.00000, 0.00000, 0.00000);
  456.     CreateObject(19456, 2465.51074, -951.86072, 30.57200,   0.00000, 0.00000, 90.00000);
  457.     CreateObject(19456, 2454.48926, -951.86969, 30.57200,   0.00000, 0.00000, 90.00000);
  458.     CreateObject(19456, 2465.03979, -942.27380, 30.57200,   0.00000, 0.00000, 90.00000);
  459.     CreateObject(19456, 695.12341, -11207.43457, -3460.63086,   0.00000, 0.00000, 0.00000);
  460.     CreateObject(19455, 2467.77930, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  461.     CreateObject(19455, 2464.29248, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  462.     CreateObject(19455, 2460.79370, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  463.     CreateObject(19455, 8926.37500, -6501.69287, -7986.34375,   0.00000, 0.00000, 0.00000);
  464.     CreateObject(19455, 2259.51343, 8334.60938, -4365.91211,   0.00000, 0.00000, 0.00000);
  465.     CreateObject(19455, 2457.30029, -946.92096, 29.38610,   0.00000, -90.00000, 0.00000);
  466.     CreateObject(19456, 9314.98730, 7398.31543, -1365.54895,   0.00000, 0.00000, 0.00000);
  467.     CreateObject(19456, 2464.94458, -951.83643, 34.07200,   0.00000, 0.00000, 90.00000);
  468.     CreateObject(19456, 2453.18774, -942.30591, 30.57200,   0.00000, 0.00000, 90.00000);
  469.     CreateObject(19455, -6559.60254, -3010.57666, -4910.30273,   0.00000, 0.00000, 0.00000);
  470.     CreateObject(19455, 2454.05835, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  471.     CreateObject(19455, -1779.04272, 3819.04883, -8897.56836,   0.00000, 0.00000, 0.00000);
  472.     CreateObject(19455, 2450.58228, -946.93988, 29.38610,   0.00000, -90.00000, 0.00000);
  473.     CreateObject(19456, 2469.59741, -947.15942, 30.57200,   0.00000, 0.00000, 0.00000);
  474.     CreateObject(19455, 2447.08521, -947.20929, 29.38610,   0.00000, -90.00000, 0.00000);
  475.     CreateObject(19455, 2443.58521, -947.20929, 29.38610,   0.00000, -90.00000, 0.00000);
  476.     CreateObject(19456, 2443.54639, -942.29657, 30.57200,   0.00000, 0.00000, 90.00000);
  477.     CreateObject(19456, 2445.79297, -951.85986, 30.57200,   0.00000, 0.00000, 90.00000);
  478.     CreateObject(8572, 3450.40942, 8122.78711, -4693.34326,   0.00000, 0.00000, 0.00000);
  479.     CreateObject(18028, 542.83014, -80.41399, 999.93750,   356.85840, 0.00000, 3.14159);
  480.     CreateObject(18028, 499.85156, -77.96094, 999.93750,   356.85840, 0.00000, 3.14159);
  481.     CreateObject(18028, 499.76349, -70.69993, 999.93750,   356.85840, 0.00000, 3.14159);
  482.     CreateObject(15034, 10111.89648, 4816.30127, -7432.86035,   0.00000, 0.00000, 0.00000);
  483.     CreateObject(19452, 2477.20752, -951.86310, 34.35120,   0.00000, 0.00000, -90.00000);
  484.     CreateObject(19452, 9980.64746, 3604.13110, -5454.52246,   0.00000, 0.00000, 0.00000);
  485.     CreateObject(19542, 2477.91699, -942.42902, 35.53144,   0.00000, 0.00000, 0.00000);
  486.     CreateObject(19452, 2484.02344, -942.33301, 34.35120,   0.00000, 0.00000, -90.00000);
  487.     CreateObject(19452, 2803.80664, 8126.12305, -7939.70313,   0.00000, 0.00000, 0.00000);
  488.     CreateObject(19452, 8762.40332, -3891.15747, -7513.29150,   0.00000, 0.00000, 0.00000);
  489.     CreateObject(1556, 2479.39380, -945.89941, 32.91260,   0.00000, 0.00000, -90.00000);
  490.     CreateObject(19452, 2479.45532, -948.06787, 37.15950,   0.00000, 0.00000, -180.00000);
  491.     CreateObject(19452, 2477.83643, -946.76080, 35.67430,   0.00000, 90.00000, 0.00000);
  492.     CreateObject(19452, 2472.57056, -944.57330, 34.54380,   0.00000, 0.00000, 0.00000);
  493.     CreateObject(1498, -7577.62207, 200.20715, 589.06403,   0.00000, 0.00000, 0.00000);
  494.     CreateObject(19452, 2474.57959, -951.86700, 34.35120,   0.00000, 0.00000, 90.00000);
  495.     CreateObject(19456, 2461.16772, -946.99823, 35.74110,   0.00000, 90.00000, 0.00000);
  496.     CreateObject(19456, 2447.37402, -951.88599, 34.07200,   0.00000, 0.00000, 90.00000);
  497.     CreateObject(19537, 2446.96826, -942.24927, 32.81786,   0.00000, 0.00000, 0.00000);
  498.     CreateObject(19537, 2441.46118, -942.19916, 29.48672,   0.00000, 0.00000, 0.00000);
  499.     CreateObject(19544, 2466.46509, -942.16443, 30.60710,   0.00000, 0.00000, 0.00000);
  500.     CreateObject(19544, 2155.91284, -740.63019, 110.75777,   0.00000, 0.00000, 0.00000);
  501.     CreateObject(19552, 2146.28809, -708.74860, 76.78431,   0.00000, 0.00000, 0.00000);
  502.     CreateObject(19456, 2457.68335, -946.97827, 35.74110,   0.00000, 90.00000, 0.00000);
  503.     CreateObject(0, 2454.23657, -947.00848, 35.74110,   0.00000, 90.00000, 0.00000);
  504.     CreateObject(19456, 2450.69971, -946.94989, 35.73320,   0.00000, 90.00000, 0.00000);
  505.     CreateObject(19456, 2447.23730, -946.94220, 35.73320,   0.00000, 90.00000, 0.00000);
  506.     CreateObject(19456, 2443.77686, -946.94531, 35.72810,   0.00000, 90.00000, 0.00000);
  507.     CreateObject(19456, 2457.00610, -951.84265, 34.07200,   0.00000, 0.00000, 90.00000);
  508.     CreateObject(19456, 2458.03296, -951.84967, 30.57200,   0.00000, 0.00000, 90.00000);
  509.     CreateObject(19456, 2445.13916, -942.31049, 34.07200,   0.00000, 0.00000, 90.00000);
  510.     CreateObject(19456, 2454.77319, -942.26129, 34.07200,   0.00000, 0.00000, 90.00000);
  511.     CreateObject(19456, 2441.22998, -947.30011, 32.72950,   0.00000, 0.00000, 0.00000);
  512.     CreateObject(19456, 2454.15576, -946.93103, 35.73980,   0.00000, 90.00000, 0.00000);
  513.     CreateObject(19456, 2467.02026, -942.23877, 34.07200,   0.00000, 0.00000, 90.00000);
  514.     CreateObject(19452, 2472.77319, -944.52881, 34.54380,   0.00000, 0.00000, 0.00000);
  515.     CreateObject(3761, 2463.10132, -943.22351, 31.41080,   0.00000, 0.00000, -90.00000);
  516.     CreateObject(3761, 2457.88770, -943.08667, 31.41080,   0.00000, 0.00000, -90.00000);
  517.     CreateObject(3761, 2463.38159, -950.89001, 31.41080,   0.00000, 0.00000, 90.00000);
  518.     CreateObject(3761, 2457.95264, -950.87079, 31.41080,   0.00000, 0.00000, 90.00000);
  519.     CreateObject(934, 2551.22339, -1290.00598, 1044.43750,   356.85840, 0.00000, -1.57080);
  520.     CreateObject(934, 2458.62598, -947.12781, 30.69420,   0.00000, 0.00000, 90.00000);
  521.     CreateObject(934, 2453.41187, -947.20502, 30.69420,   0.00000, 0.00000, -90.00000);
  522.     CreateObject(3273, 2467.84863, -941.80725, 31.36600,   0.00000, 0.00000, 90.00000);
  523.     CreateObject(941, 2462.07837, -947.41888, 29.93320,   0.00000, 0.00000, 90.00000);
  524.     CreateObject(941, 2450.06592, -947.41888, 29.93320,   0.00000, 0.00000, 90.00000);
  525.     CreateObject(3287, 2449.30640, -942.40833, 32.90000,   0.00000, 0.00000, 90.00000);
  526.     CreateObject(3287, 2452.48486, -951.86597, 32.90000,   0.00000, 0.00000, -90.00000);
  527.     CreateObject(1279, 2450.08301, -947.94696, 30.33000,   0.00000, 0.00000, 0.00000);
  528.     CreateObject(1279, 2450.08423, -947.35254, 30.33000,   0.00000, 0.00000, 0.00000);
  529.     CreateObject(1279, 2450.05249, -946.78882, 30.33000,   0.00000, 0.00000, 0.00000);
  530.     CreateObject(1279, 2450.09082, -946.20764, 30.33000,   0.00000, 0.00000, 0.00000);
  531.     CreateObject(1279, 2450.01782, -946.16980, 30.59000,   0.00000, 0.00000, 0.00000);
  532.     CreateObject(1279, 2450.09082, -946.20764, 30.33000,   0.00000, 0.00000, 0.00000);
  533.     CreateObject(1279, 2450.07910, -946.67596, 30.59000,   0.00000, 0.00000, 0.00000);
  534.     CreateObject(1279, 2450.04150, -947.15442, 30.59000,   0.00000, 0.00000, 0.00000);
  535.     CreateObject(1279, 2450.04419, -946.35199, 30.81000,   0.00000, 0.00000, 0.00000);
  536.     CreateObject(1279, 2450.06836, -948.09924, 30.59000,   0.00000, 0.00000, 0.00000);
  537.     CreateObject(1279, 2450.10718, -947.60077, 30.59000,   0.00000, 0.00000, 0.00000);
  538.     CreateObject(1279, 2450.04565, -946.85358, 30.87000,   0.00000, 0.00000, 0.00000);
  539.     CreateObject(1279, 2449.98853, -947.33057, 30.87000,   0.00000, 0.00000, 0.00000);
  540.     CreateObject(1279, 2450.07886, -947.71875, 30.87000,   0.00000, 0.00000, 0.00000);
  541.     CreateObject(1279, 2462.07593, -948.17242, 30.33000,   0.00000, 0.00000, 0.00000);
  542.     CreateObject(1279, 2462.08618, -947.78802, 30.33000,   0.00000, 0.00000, 0.00000);
  543.     CreateObject(1279, 2462.14111, -947.40582, 30.33000,   0.00000, 0.00000, 0.00000);
  544.     CreateObject(1279, 2462.10913, -946.44562, 30.33000,   0.00000, 0.00000, 0.00000);
  545.     CreateObject(1279, 2462.11401, -946.88477, 30.33000,   0.00000, 0.00000, 0.00000);
  546.     CreateObject(1279, 2462.05347, -946.61688, 30.57000,   0.00000, 0.00000, 0.00000);
  547.     CreateObject(1279, 2462.05688, -946.99634, 30.57000,   0.00000, 0.00000, 0.00000);
  548.     CreateObject(1279, 2462.13745, -947.88507, 30.61000,   0.00000, 0.00000, 0.00000);
  549.     CreateObject(1279, 2462.03711, -947.38062, 30.59000,   0.00000, 0.00000, 0.00000);
  550.     CreateObject(1279, 2462.15405, -947.64563, 30.81000,   0.00000, 0.00000, 0.00000);
  551.     CreateObject(1279, 2462.10938, -946.86060, 30.85000,   0.00000, 0.00000, 0.00000);
  552.     CreateObject(1279, 2462.08081, -947.25958, 30.81000,   0.00000, 0.00000, 0.00000);
  553.     CreateObject(1279, 2462.10938, -946.86060, 30.85000,   0.00000, 0.00000, 0.00000);
  554.     CreateObject(14600, 2443.77612, -947.37970, 30.90000,   0.00000, 0.00000, 190.00000);
  555.     CreateObject(14600, 2442.94531, -942.96576, 30.90000,   0.00000, 0.00000, 190.00000);
  556.     CreateObject(14600, 2443.23145, -944.29700, 32.90000,   0.00000, 0.00000, 190.00000);
  557.     CreateObject(19452, 2472.54932, -944.59100, 34.54380,   0.00000, 0.00000, 0.00000);
  558.     CreateObject(5171, 2477.65527, -945.09088, 33.37040,   0.00000, 0.00000, -309.00000);
  559.     CreateObject(1829, 2476.64038, -943.51764, 33.46664,   0.00000, 0.00000, 0.00000);
  560.     CreateObject(1829, 2477.48120, -943.46948, 33.46660,   0.00000, 0.00000, 0.00000);
  561.     CreateObject(1829, 2478.32104, -943.50146, 33.46664,   0.00000, 0.00000, 0.00000);
  562.     CreateObject(1745, 2470.59985, -946.10461, 32.83983,   0.00000, 0.00000, 0.00000);
  563.     CreateObject(1775, 2478.81470, -950.00415, 33.92240,   0.00000, 0.00000, -90.00000);
  564.     CreateObject(1776, 2478.83472, -948.39099, 33.92240,   0.00000, 0.00000, -90.00000);
  565.     CreateObject(1622, 2473.14185, -942.61310, 35.50000,   0.00000, 0.00000, 120.00000);
  566.     CreateObject(1622, 2470.25879, -949.05322, 35.22000,   1.00000, 0.00000, 127.00000);
  567.     CreateObject(1622, 2469.02124, -951.52917, 35.64000,   0.00000, -25.00000, -69.00000);
  568.     CreateObject(1518, 2472.78760, -944.67133, 34.63660,   0.00000, 0.00000, 76.00000);
  569.     CreateObject(1518, 2472.98755, -943.81128, 34.63660,   0.00000, 0.00000, 62.00000);
  570.     CreateObject(19452, 2472.42896, -944.60980, 34.54380,   0.00000, 0.00000, 0.00000);
  571.     CreateObject(19452, 2471.19775, -947.02429, 35.39430,   0.00000, 90.00000, 0.00000);
  572.     CreateObject(19452, 2471.21777, -947.02429, 35.53430,   0.00000, 90.00000, 0.00000);
  573.     return 1;
  574. }
  575.  
  576. public payday(playerid)
  577. {
  578.     print("RCON Warn: Theirs been a payday");
  579.     GivePlayerMoney(playerid, 1000);
  580.     SendClientMessage(playerid, -1, "=== Payday ===");
  581.     SendClientMessage(playerid, -1, "===  $500 ===");
  582. }
  583.  
  584. public OnGameModeExit()
  585. {
  586.     return 1;
  587. }
  588.  
  589. public OnPlayerRequestClass(playerid, classid)
  590. {
  591.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  592.     return 1;
  593. }
  594.  
  595. public OnPlayerConnect(playerid)
  596. {
  597.     // Standard Stuff //
  598.     SetPlayerColor(playerid, -1);
  599.     // Server Info Messages //
  600.     SendClientMessage(playerid, -1, "{FF0000}INFO:{FFFFFF} This script is in BETA stage.");
  601.     SendClientMessage(playerid, -1, "{FF0000}INFO:{FFFFFF} Press [Spawn] to spawn your character in.");
  602.     // Login/Register //
  603.     if(fexist(UserPath(playerid)))
  604.     {
  605.         INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  606.         ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""WHITE"Login",""WHITE"Type your password below to login.","Login","Quit");
  607.     }
  608.     else
  609.     {
  610.         ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""WHITE"Registering...",""WHITE"Type your password below to register a new account.","Register","Quit");
  611.     }
  612.     return 1;
  613. }
  614.  
  615. public OnPlayerDisconnect(playerid, reason)
  616. {
  617.     new INI:File = INI_Open(UserPath(playerid));
  618.     INI_SetTag(File,"data");
  619.     INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  620.     INI_WriteInt(File,"Helper",GetPlayerMoney(playerid));
  621.     INI_WriteInt(File,"Dev",GetPlayerMoney(playerid));
  622.     INI_WriteInt(File,"HDuty",PlayerInfo[playerid][pHDuty]);
  623.     INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
  624.     INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
  625.     INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
  626.     INI_Close(File);
  627.     return 1;
  628. }
  629. public OnPlayerSpawn(playerid)
  630. {
  631.     // Textdraws //
  632.     TextDrawShowForPlayer(playerid,Textdraw0);
  633.     return 1;
  634. }
  635.  
  636. public OnPlayerDeath(playerid, killerid, reason)
  637. {
  638.     PlayerInfo[killerid][pKills]++;
  639.     PlayerInfo[playerid][pDeaths]++;
  640.     return 1;
  641. }
  642.  
  643. public OnVehicleSpawn(vehicleid)
  644. {
  645.     return 1;
  646. }
  647.  
  648. public OnVehicleDeath(vehicleid, killerid)
  649. {
  650.     return 1;
  651. }
  652.  
  653. public OnPlayerText(playerid, text[])
  654. {
  655.     new
  656.         textmessage[128];
  657.     format(textmessage, sizeof(textmessage), "%s says: %s", GetName(playerid), text);
  658.     ProxDetector(30.0, playerid, textmessage, -1);
  659.     return 0;
  660. }
  661.  
  662. public OnPlayerCommandText(playerid, cmdtext[])
  663. {
  664.     return 0;
  665. }
  666.  
  667. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  668. {
  669.     return 1;
  670. }
  671.  
  672. public OnPlayerExitVehicle(playerid, vehicleid)
  673. {
  674.     return 1;
  675. }
  676.  
  677. public OnPlayerStateChange(playerid, newstate, oldstate)
  678. {
  679.     return 1;
  680. }
  681.  
  682. public OnPlayerEnterCheckpoint(playerid)
  683. {
  684.     return 1;
  685. }
  686.  
  687. public OnPlayerLeaveCheckpoint(playerid)
  688. {
  689.     return 1;
  690. }
  691.  
  692. public OnPlayerEnterRaceCheckpoint(playerid)
  693. {
  694.     return 1;
  695. }
  696.  
  697. public OnPlayerLeaveRaceCheckpoint(playerid)
  698. {
  699.     return 1;
  700. }
  701.  
  702. public OnRconCommand(cmd[])
  703. {
  704.     return 1;
  705. }
  706.  
  707. public OnPlayerRequestSpawn(playerid)
  708. {
  709.     return 1;
  710. }
  711.  
  712. public OnObjectMoved(objectid)
  713. {
  714.     return 1;
  715. }
  716.  
  717. public OnPlayerObjectMoved(playerid, objectid)
  718. {
  719.     return 1;
  720. }
  721.  
  722. public OnPlayerPickUpPickup(playerid, pickupid)
  723. {
  724.     return 1;
  725. }
  726.  
  727. public OnVehicleMod(playerid, vehicleid, componentid)
  728. {
  729.     return 1;
  730. }
  731.  
  732. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  733. {
  734.     return 1;
  735. }
  736.  
  737. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  738. {
  739.     return 1;
  740. }
  741.  
  742. public OnPlayerSelectedMenuRow(playerid, row)
  743. {
  744.     return 1;
  745. }
  746.  
  747. public OnPlayerExitedMenu(playerid)
  748. {
  749.     return 1;
  750. }
  751.  
  752. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  753. {
  754.     return 1;
  755. }
  756.  
  757. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  758. {
  759.     return 1;
  760. }
  761.  
  762. public OnRconLoginAttempt(ip[], password[], success)
  763. {
  764.     return 1;
  765. }
  766.  
  767. public OnPlayerUpdate(playerid)
  768. {
  769.     return 1;
  770. }
  771.  
  772. public OnPlayerStreamIn(playerid, forplayerid)
  773. {
  774.     return 1;
  775. }
  776.  
  777. public OnPlayerStreamOut(playerid, forplayerid)
  778. {
  779.     return 1;
  780. }
  781.  
  782. public OnVehicleStreamIn(vehicleid, forplayerid)
  783. {
  784.     return 1;
  785. }
  786.  
  787. public OnVehicleStreamOut(vehicleid, forplayerid)
  788. {
  789.     return 1;
  790. }
  791.  
  792. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  793. {
  794.     switch( dialogid )
  795.     {
  796.         case DIALOG_REGISTER:
  797.         {
  798.             if (!response) return Kick(playerid);
  799.             if(response)
  800.             {
  801.                 if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, ""WHITE"Registering...",""RED"You have entered an invalid password.\n"WHITE"Type your password below to register a new account.","Register","Quit");
  802.                 new INI:File = INI_Open(UserPath(playerid));
  803.                 INI_SetTag(File,"data");
  804.                 INI_WriteInt(File,"Password",udb_hash(inputtext));
  805.                 INI_WriteInt(File,"Cash",0);
  806.                 INI_WriteInt(File,"Admin",0);
  807.                 INI_WriteInt(File,"Kills",0);
  808.                 INI_WriteInt(File,"Deaths",0);
  809.                 INI_WriteInt(File,"HDDuty",0);
  810.                 INI_Close(File);
  811.  
  812.                 SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
  813.                 SpawnPlayer(playerid);
  814.             }
  815.         }
  816.  
  817.         case DIALOG_LOGIN:
  818.         {
  819.             if ( !response ) return Kick ( playerid );
  820.             if( response )
  821.             {
  822.                 if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
  823.                 {
  824.                     INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  825.                     GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
  826.                 }
  827.                 else
  828.                 {
  829.                     ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""WHITE"Login",""RED"You have entered an incorrect password.\n"WHITE"Type your password below to login.","Login","Quit");
  830.                 }
  831.                 return 1;
  832.             }
  833.         }
  834.     }
  835.     return 1;
  836. }
  837.  
  838. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  839. {
  840.     return 1;
  841. }
  842.  
  843. // === Custom Callbacks === //
  844. public LoadUser_data(playerid,name[],value[])
  845. {
  846.     INI_Int("Password",PlayerInfo[playerid][pPass]);
  847.     INI_Int("Cash",PlayerInfo[playerid][pCash]);
  848.     INI_Int("Dev",PlayerInfo[playerid][pDev]);
  849.     INI_Int("Helper",PlayerInfo[playerid][pHelper]);
  850.     INI_Int("HDuty",PlayerInfo[playerid][pHDuty]);
  851.     INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
  852.     INI_Int("Kills",PlayerInfo[playerid][pKills]);
  853.     INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
  854.     return 1;
  855. }
  856.  
  857. // ================== Roleplay Commands ================== //
  858.  
  859. CMD:me(playerid, params[])
  860. {
  861.     new
  862.         string[128],
  863.         action[100];
  864.     if(sscanf(params, "s[100]", action))
  865.     {
  866.         SendClientMessage(playerid, -1, "USAGE: /me [action]");
  867.         return 1;
  868.     }
  869.     else
  870.     {
  871.         format(string, sizeof(string), "* %s %s", GetName(playerid), action);
  872.         ProxDetector(30, playerid, string, PURPLE);
  873.     }
  874.     return 1;
  875. }
  876.  
  877. CMD:do(playerid, params[])
  878. {
  879.     new
  880.         string[128],
  881.         action[100];
  882.     if(sscanf(params, "s[100]", action))
  883.     {
  884.         SendClientMessage(playerid, -1, "USAGE: /do [action]");
  885.         return 1;
  886.     }
  887.     else
  888.     {
  889.         format(string, sizeof(string), "* %s (( %s ))", action, GetName(playerid));
  890.         ProxDetector(30, playerid, string, PURPLE);
  891.     }
  892.     return 1;
  893. }
  894.  
  895. CMD:s(playerid, params[]) return cmd_shout(playerid, params);
  896. CMD:shout(playerid, params[])
  897. {
  898.     new
  899.         string[128],
  900.         shout[100];
  901.     if(sscanf(params, "s[100]", shout))
  902.     {
  903.         SendClientMessage(playerid, -1, "USAGE: /(s)hout [message]");
  904.         return 1;
  905.     }
  906.     else
  907.     {
  908.         format(string, sizeof(string), "%s shouts: %s!",GetName(playerid),shout);
  909.         ProxDetector(50.0, playerid, string, -1);
  910.     }
  911.     return 1;
  912. }
  913.  
  914. // ================== Helper Commands ================== //
  915.  
  916.  
  917. CMD:hdutyon(playerid, params)
  918. {
  919.     if(PlayerInfo[playerid][pHelper] > 1) return SendClientMessage(playerid, -1, ""RED"You're not a helper!");
  920.     if(PlayerInfo[playerid][pHDuty] > 1) return SendClientMessage(playerid, -1, ""RED"You're already on duty!");
  921.     SendClientMessage(playerid, -1, ""RED"You're now on test duty. (Your name has been set to Red you can still roleplay.");
  922.     SetPlayerColor(playerid, 127);
  923.     PlayerInfo[playerid][pHDuty] = 1;
  924.     return 1;
  925. }
  926.  
  927. CMD:hdutyoff(playerid, params)
  928. {
  929.     if(PlayerInfo[playerid][pHelper] < 1) return SendClientMessage(playerid, -1, ""RED"You're not a helper!");
  930.     if(PlayerInfo[playerid][pHDuty] < 0) return SendClientMessage(playerid, -1, ""RED"You're already off duty!");
  931.     SetPlayerColor(playerid, -1);
  932.     PlayerInfo[playerid][pHDuty] = 0;
  933.     return 1;
  934. }
  935.  
  936. // ================== Test Commands ================== //
  937.  
  938. CMD:clearchat(playerid, params)
  939. {
  940.     ClearChat(playerid);
  941.     return 1;
  942. }
  943.  
  944. CMD:testadmin(playerid, params)
  945. {
  946.     if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, -1, ""RED"You're not a administrator!");
  947.     SendClientMessage(playerid, -1, "You're a administrator.");
  948.     return 1;
  949. }
  950.  
  951. CMD:testhelper(playerid, params)
  952. {
  953.     if(PlayerInfo[playerid][pHelper] < 1) return SendClientMessage(playerid, -1, ""RED"You're not a helper!");
  954.     SendClientMessage(playerid, -1, "You're a helper.");
  955.     return 1;
  956. }
  957.  
  958. // ================== Backup Commands ================== //
  959.  
  960. CMD:gotomapping(playerid, params)
  961. {
  962.     SetPlayerPos(playerid, 19456, 2442.48706, -946.98187);
  963.     return 1;
  964. }
  965.  
  966. CMD:givemestats(playerid, params)
  967. {
  968.     if(IsPlayerAdmin(playerid))
  969.     PlayerInfo[playerid][pAdmin] = 5;
  970.     PlayerInfo[playerid][pHelper] = 3;
  971.     PlayerInfo[playerid][pDev] = 3;
  972.     SendClientMessage(playerid, -1, ""RED"RCON Confirmed - Stats Recieved");
  973.     return 1;
  974. }
Advertisement
Add Comment
Please, Sign In to add comment