Advertisement
Guest User

Untitled

a guest
Mar 29th, 2010
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 27.17 KB | None | 0 0
  1. /* GER: Ich habe diesen Script vor 3 Monaten gemacht wo ich mit pawno angefangen habe ich hoffe ich helfe neulingen
  2.    ENG: I`ve made this script 3 months ago but I didnt need this now I hope I can help somebody who is new in pawn*/
  3. #include <a_samp>
  4.  
  5. forward AutoMessage(); // GER:Mit forward kann man publics erstellen und Timer ENG: With forward u can make publics and timers
  6.  
  7. new Gang[MAX_PLAYERS];
  8. new gate_cs;
  9. new gate_t;
  10. new teamkills[MAX_PLAYERS];
  11.  
  12.  
  13. main()
  14. {
  15.     print("\n----------------------------------");
  16.     print(" de_dust samp ");
  17.     print("----------------------------------\n");
  18. }
  19.  
  20.  
  21. public OnGameModeInit()
  22. {
  23.     UsePlayerPedAnims();
  24.     SetTimer("AutoMessage",100000,1);
  25.  
  26. // CS skins
  27.     AddPlayerClass(285,-552.3168,2594.0034,53.9348,269.8922,4,0,23,50,34,100);
  28.     AddPlayerClass(287,-552.3168,2594.0034,53.9348,269.8922,16,1,29,500,31,500);
  29. //Terror skins
  30.     AddPlayerClass(142,-1313.5387,2520.8503,87.3291,268.3006,18,1,29,500,30,500);
  31.     AddPlayerClass(220,-1313.5387,2520.8503,87.3291,268.3006,4,0,24,50,33,100); //
  32. //CS Autos
  33.     AddStaticVehicle(601,-539.7888,2573.9187,53.1730,272.7433,1,1);
  34.     AddStaticVehicle(601,-540.1802,2567.9851,53.1645,270.9811,1,1);
  35.     AddStaticVehicle(601,-540.3594,2562.0437,53.1749,271.1019,1,1);
  36.     AddStaticVehicle(599,-528.1630,2581.5747,53.6037,268.4743,0,1);
  37.     AddStaticVehicle(599,-527.6030,2577.0969,53.6036,268.7955,0,1);
  38.     AddStaticVehicle(599,-528.4958,2573.0427,53.6063,267.0057,0,1);
  39.     AddStaticVehicle(601,-540.6894,2556.5562,53.1640,270.4592,1,1);
  40.     AddStaticVehicle(601,-540.8961,2551.6338,53.1838,269.7391,1,1);
  41.     AddStaticVehicle(523,-527.7986,2568.8064,52.9753,274.4906,0,0);
  42.     AddStaticVehicle(523,-527.8168,2566.6880,52.9610,270.2949,0,0);
  43.     AddStaticVehicle(523,-528.3903,2563.3997,52.9845,270.0396,0,0);
  44.     AddStaticVehicle(523,-528.9553,2560.7104,52.9848,272.5400,0,0);
  45.     AddStaticVehicle(523,-527.8763,2558.9583,52.9862,271.6088,0,0);
  46.     AddStaticVehicle(601,-540.1604,2581.3105,53.1799,271.2522,1,1);
  47.     AddStaticVehicle(497,-530.8903,2635.2656,53.5937,270.0736,0,1);
  48.     AddStaticVehicle(497,-530.6880,2627.0657,53.5910,270.1615,0,1);
  49.     AddStaticVehicle(497,-530.9815,2619.6184,53.5904,271.0732,0,1);
  50.     AddStaticVehicle(497,-531.2179,2611.1760,53.5910,263.6746,0,1);
  51.     AddStaticVehicle(497,-532.1814,2603.5649,53.5934,269.8676,0,1);
  52.     AddStaticVehicle(427,-510.5911,2550.1511,53.5465,88.7779,0,1);
  53.     AddStaticVehicle(427,-510.3938,2555.3035,53.5461,88.3046,0,1);
  54.     AddStaticVehicle(427,-510.2481,2559.9536,53.5459,88.6927,0,1);
  55.     AddStaticVehicle(427,-510.3213,2564.5510,53.5460,90.0190,0,1);
  56.     AddStaticVehicle(427,-510.4628,2569.4509,53.5466,90.3305,0,1);
  57.     AddStaticVehicle(427,-510.5216,2574.0767,53.5460,90.6067,0,1);
  58.     AddStaticVehicle(427,-510.3341,2578.8135,53.5460,89.5695,0,1);
  59.     AddStaticVehicle(427,-510.2493,2583.7544,53.5462,91.2778,0,1);
  60.     AddStaticVehicle(470,-520.2073,2581.5583,53.4071,89.3655,43,0);
  61.     AddStaticVehicle(470,-520.3657,2577.9258,53.4074,87.7144,43,0);
  62.     AddStaticVehicle(470,-520.4977,2573.8159,53.4067,89.1866,43,0);
  63.     AddStaticVehicle(470,-520.8333,2569.9077,53.4052,87.4287,43,0);
  64.     AddStaticVehicle(470,-521.0352,2565.9224,53.4078,88.4341,43,0);
  65.     AddStaticVehicle(470,-521.0918,2561.3386,53.4050,90.4596,43,0);
  66.     AddStaticVehicle(470,-520.8145,2557.5110,53.4088,89.5422,43,0);
  67.     AddStaticVehicle(548,-588.0583,2585.9370,67.5226,269.8528,1,1); //
  68.     AddStaticVehicle(548,-587.8993,2602.2480,67.5485,268.6802,1,1); //
  69.     AddStaticVehicle(548,-562.7219,2602.5330,67.4334,270.9765,1,1); //
  70.     AddStaticVehicle(548,-561.6334,2586.7732,67.5098,270.6216,1,1); //
  71.     AddStaticVehicle(497,-513.7733,2618.0305,53.5920,267.9905,0,1); //
  72.     AddStaticVehicle(497,-514.9075,2609.2922,53.5913,269.9443,0,1); //
  73.     AddStaticVehicle(497,-515.8921,2629.5132,53.5579,265.5592,0,1); //
  74. //CS BASE
  75.     CreateObject(987, -582.191345, 2544.511719, 52.760971, 0.0000, 0.0000, 0.0000);
  76.     CreateObject(987, -583.080200, 2545.696777, 53.718670, 0.0000, 0.0000, 0.0000);
  77.     CreateObject(987, -570.240662, 2544.471191, 52.922714, 0.0000, 0.0000, 0.0000);
  78.     CreateObject(987, -558.079407, 2544.536865, 52.925617, 0.0000, 0.0000, 0.0000);
  79.     CreateObject(987, -546.481079, 2543.751953, 52.530247, 0.0000, 0.0000, 0.0000);
  80.     CreateObject(987, -534.497009, 2543.701904, 52.515625, 0.0000, 0.0000, 0.0000);
  81.     CreateObject(987, -522.642334, 2543.818359, 52.515625, 0.0000, 0.0000, 0.0000);
  82.     CreateObject(987, -510.737762, 2543.817871, 52.515625, 0.0000, 0.0000, 0.0000);
  83.     CreateObject(987, -499.152252, 2555.322021, 52.515625, 0.0000, 0.0000, 270.0000);
  84.     CreateObject(987, -499.181183, 2567.271729, 52.515625, 0.0000, 0.0000, 270.0000);
  85.     CreateObject(987, -499.152527, 2579.212891, 52.582031, 0.0000, 0.0000, 270.0000);
  86.     CreateObject(987, -499.084961, 2588.184326, 52.665668, 0.0000, 0.0000, 270.0000);
  87.     CreateObject(987, -560.054504, 2647.199463, 53.686031, 0.0000, 0.0000, 180.0000);
  88.     CreateObject(987, -548.117615, 2647.304932, 53.577511, 0.0000, 0.0000, 180.0000);
  89.     CreateObject(987, -548.225037, 2647.141602, 53.729961, 0.0000, 0.0000, 0.0000);
  90.     CreateObject(987, -500.515808, 2647.864746, 52.515625, 0.0000, 0.0000, 270.0000);
  91.     CreateObject(987, -500.830505, 2636.083008, 52.515625, 0.0000, 0.0000, 270.0000);
  92.     CreateObject(987, -500.814056, 2624.177246, 52.515625, 0.0000, 0.0000, 270.0000);
  93.     CreateObject(987, -501.330811, 2612.050049, 52.628113, 0.0000, 0.0000, 270.0000);
  94.     CreateObject(987, -500.868774, 2598.363770, 52.630653, 0.0000, 0.0000, 90.0001);
  95.     CreateObject(3279, -503.958191, 2549.984619, 52.591240, 0.0000, 0.0000, 180.0000);
  96.     CreateObject(987, -526.553101, 2648.290527, 52.515625, 0.0000, 0.0000, 0.0000);
  97.     CreateObject(987, -514.798218, 2648.109863, 52.515625, 0.0000, 0.0000, 0.0000);
  98.     CreateObject(987, -512.115540, 2647.935791, 52.515625, 0.0000, 0.0000, 0.0000);
  99.     CreateObject(3279, -568.723022, 2643.052734, 52.970901, 0.0000, 0.0000, 0.0000);
  100.     CreateObject(3279, -506.837219, 2641.542969, 52.592628, 0.0000, 0.0000, 180.0000);
  101.     CreateObject(3279, -580.975464, 2550.345703, 52.657280, 0.0000, 0.0000, 89.9999);
  102.     CreateObject(987, -539.967163, 2646.291748, 52.515625, 0.0000, 0.0000, 11.2500);
  103.     CreateObject(987, -532.585571, 2648.100586, 52.515625, 0.0000, 0.0000, 0.0000);
  104.     CreateObject(13749, -569.098999, 2619.196533, 57.929207, 0.0000, 0.0000, 123.7500);
  105.     CreateObject(16644, -581.900757, 2612.496094, 64.612671, 0.0000, 0.0000, 270.0000);
  106.     gate_cs = CreateObject(980, -498.839294, 2592.924072, 55.331924, 0.0000, 0.0000, 270.0000);
  107.     CreateObject(16093, -494.042877, 2603.403076, 57.130356, 0.0000, 0.0000, 0.0000);
  108.     CreateObject(13011, -499.746948, 2597.847656, 53.792671, 0.0000, 0.0000, 0.0000);
  109.     CreateObject(13011, -488.028351, 2607.011963, 54.102051, 0.0000, 0.0000, 180.0000);
  110. //Terror Autos
  111.  
  112.     AddStaticVehicle(605,-1344.9087,2503.6006,86.5669,265.1460,45,45); //
  113.     AddStaticVehicle(400,-1345.1626,2488.7959,87.3491,271.2755,45,45); //
  114.     AddStaticVehicle(400,-1345.3409,2498.5837,87.3410,270.1978,45,45); //
  115.     AddStaticVehicle(579,-1358.5771,2501.5288,87.8561,89.1889,45,45); //
  116.     AddStaticVehicle(579,-1358.5846,2496.5994,87.8010,87.4461,45,45); //
  117.     AddStaticVehicle(579,-1358.5134,2490.7129,87.6096,88.7793,45,45); //
  118.     AddStaticVehicle(579,-1358.5571,2506.9019,87.5371,91.8327,45,45); //
  119.     AddStaticVehicle(605,-1344.6150,2508.2776,86.5221,268.6374,45,45); //
  120.     AddStaticVehicle(400,-1345.1179,2493.5920,87.3311,270.6229,45,45); //
  121.     AddStaticVehicle(487,-1344.6161,2470.7158,93.2354,356.4775,45,45); //
  122.     AddStaticVehicle(487,-1356.9269,2466.2131,92.9483,5.7034,45,45); //
  123.     AddStaticVehicle(468,-1326.1807,2491.2292,86.5350,179.4008,45,45); //
  124.     AddStaticVehicle(468,-1326.2338,2486.1306,86.5331,179.4005,45,45); //
  125.     AddStaticVehicle(468,-1318.6515,2491.1018,86.5329,179.0060,45,45); //
  126.     AddStaticVehicle(468,-1316.5540,2491.1108,86.5630,185.3091,45,45); //
  127.     AddStaticVehicle(468,-1316.5326,2486.3354,86.5666,173.3784,45,45); //
  128.     AddStaticVehicle(447,-1325.9895,2527.8962,89.9984,174.5177,45,45); //
  129.     AddStaticVehicle(447,-1345.0713,2525.9121,89.9272,95.5081,45,45); //
  130.     AddStaticVehicle(468,-1318.8875,2486.3464,86.5323,175.5559,45,45);
  131.  
  132.  
  133. //Terror Base
  134.     CreateObject(11441, -1301.803711, 2478.232422, 86.471947, 0.0000, 0.0000, 213.7501);
  135.     CreateObject(11444, -1300.557495, 2512.436279, 86.023140, 0.0000, 0.0000, 0.0000);
  136.     CreateObject(1431, -1306.559570, 2489.613525, 86.708427, 0.0000, 0.0000, 180.0000);
  137.     CreateObject(2358, -1306.611572, 2489.395508, 87.382523, 0.0000, 0.0000, 0.0000);
  138.     CreateObject(3576, -1329.764038, 2495.151123, 87.539551, 0.0000, 0.0000, 0.0000);
  139.     CreateObject(3577, -1347.254395, 2521.926514, 86.885490, 0.0000, 0.0000, 90.0001);
  140.     CreateObject(3632, -1328.625610, 2531.295410, 86.847092, 0.0000, 0.0000, 0.0000);
  141.     CreateObject(3633, -1328.748047, 2530.326172, 86.804558, 0.0000, 0.0000, 337.5000);
  142.     CreateObject(3796, -1288.306030, 2531.110107, 86.738327, 0.0000, 0.0000, 270.0000);
  143.     CreateObject(3798, -1329.511230, 2543.541504, 85.069977, 0.0000, 0.0000, 0.0000);
  144.     CreateObject(3798, -1329.540894, 2543.287354, 87.069977, 0.0000, 0.0000, 0.0000);
  145.     CreateObject(3798, -1327.521362, 2543.272217, 85.366661, 0.0000, 0.0000, 0.0000);
  146.     CreateObject(3800, -1289.988403, 2516.720459, 86.163124, 0.0000, 0.0000, 0.0000);
  147.     CreateObject(3798, -1331.522461, 2543.557373, 84.770119, 0.0000, 0.0000, 0.0000);
  148.     CreateObject(3798, -1333.589966, 2543.374756, 84.833954, 0.0000, 0.0000, 0.0000);
  149.     CreateObject(3798, -1335.373901, 2543.367432, 84.992996, 0.0000, 0.0000, 270.0000);
  150.     CreateObject(3798, -1327.377197, 2546.114990, 85.388161, 0.0000, 0.0000, 270.0000);
  151.     CreateObject(1362, -1328.812012, 2529.248047, 86.883522, 0.0000, 0.0000, 0.0000);
  152.     CreateObject(1348, -1331.677246, 2543.374512, 87.476105, 0.0000, 0.0000, 0.0000);
  153.     CreateObject(11446, -1332.512451, 2531.752930, 86.426453, 0.0000, 0.0000, 180.0000);
  154.     CreateObject(11445, -1340.339844, 2536.274658, 86.321877, 0.0000, 0.0000, 0.0000);
  155.     CreateObject(11442, -1288.845215, 2496.329346, 86.241241, 0.0000, 0.0000, 0.0000);
  156.     CreateObject(11442, -1336.711426, 2504.125977, 86.196457, 0.0000, 0.0000, 270.0000);
  157.     CreateObject(11444, -1344.725220, 2526.188965, 86.053963, 0.0000, 0.0000, 270.0000);
  158.     CreateObject(11445, -1335.559937, 2515.552490, 86.218620, 0.0000, 0.0000, 90.0000);
  159.     CreateObject(987, -1353.540649, 2440.147705, 87.763298, 0.0000, 0.0000, 0.0000);
  160.     CreateObject(987, -1341.763428, 2440.524902, 87.866150, 0.0000, 0.0000, 0.0000);
  161.     CreateObject(987, -1300.109009, 2440.506836, 87.298347, 0.0000, 0.0000, 0.0000);
  162.     CreateObject(987, -1306.216431, 2440.589355, 87.225403, 0.0000, 0.0000, 0.0000);
  163.     CreateObject(987, -1318.182373, 2440.977539, 87.349411, 0.0000, 0.0000, 0.0000);
  164.     CreateObject(987, -1272.481567, 2441.382568, 85.945190, 0.0000, 0.0000, 90.0000);
  165.     CreateObject(987, -1272.597656, 2453.386963, 86.027397, 0.0000, 0.0000, 90.0000);
  166.     CreateObject(987, -1272.657715, 2465.405029, 86.071648, 0.0000, 0.0000, 90.0000);
  167.     CreateObject(987, -1273.070190, 2476.890137, 86.169441, 0.0000, 0.0000, 90.0000);
  168.     CreateObject(987, -1273.183716, 2488.801270, 86.032028, 0.0000, 0.0000, 90.0000);
  169.     CreateObject(987, -1273.224487, 2500.814941, 86.035294, 0.0000, 0.0000, 90.0000);
  170.     CreateObject(987, -1273.325195, 2512.809082, 86.644150, 0.0000, 0.0000, 90.0000);
  171.     CreateObject(987, -1273.446777, 2524.750977, 87.580002, 0.0000, 0.0000, 90.0000);
  172.     CreateObject(987, -1273.530762, 2536.732178, 87.070618, 0.0000, 0.0000, 90.0000);
  173.     CreateObject(987, -1273.686768, 2548.303223, 86.498337, 0.0000, 0.0000, 112.4999);
  174.     CreateObject(987, -1278.125244, 2559.075684, 85.184280, 0.0000, 0.0000, 191.2501);
  175.     CreateObject(987, -1289.818237, 2556.214111, 84.695381, 0.0000, 0.0000, 180.0000);
  176.     CreateObject(987, -1302.178223, 2556.189209, 85.983658, 0.0000, 0.0000, 191.2500);
  177.     CreateObject(987, -1313.857910, 2553.677979, 86.412827, 0.0000, 0.0000, 202.5000);
  178.     CreateObject(987, -1324.976074, 2549.017090, 84.349533, 0.0000, 0.0000, 168.7500);
  179.     CreateObject(987, -1336.297363, 2550.595947, 84.061638, 0.0000, 0.0000, 213.7500);
  180.     CreateObject(987, -1346.021973, 2543.571289, 85.879196, 0.0000, 0.0000, 225.0000);
  181.     CreateObject(987, -1354.395630, 2535.094482, 86.104660, 0.0000, 0.0000, 236.2501);
  182.     CreateObject(987, -1360.840332, 2524.962158, 85.840111, 0.0000, 0.0000, 247.5000);
  183.     CreateObject(987, -1365.378784, 2513.942627, 86.897148, 0.0000, 0.0000, 270.0000);
  184.     CreateObject(987, -1365.376831, 2501.971680, 86.887680, 0.0000, 0.0000, 270.0000);
  185.     CreateObject(987, -1365.331055, 2489.949219, 86.921524, 0.0000, 0.0000, 270.0000);
  186.     CreateObject(987, -1364.815186, 2466.612061, 87.372055, 0.0000, 0.0000, 270.0000);
  187.     CreateObject(987, -1364.771606, 2454.625000, 87.271812, 0.0000, 0.0000, 270.0000);
  188.     CreateObject(987, -1364.994995, 2442.096436, 87.708221, 0.0000, 0.0000, 348.7500);
  189.     CreateObject(987, -1364.713501, 2478.187256, 86.618477, 0.0000, 0.0000, 270.0000);
  190.     CreateObject(987, -1330.184937, 2440.956543, 87.358215, 0.0000, 0.0000, 0.0000);
  191.     CreateObject(2048, -1309.623901, 2490.120117, 88.150391, 0.0000, 0.0000, 0.0000);
  192.     CreateObject(3264, -1290.251709, 2438.950195, 87.654472, 0.0000, 0.0000, 0.0000);
  193.     CreateObject(3265, -1273.364014, 2439.612549, 87.500153, 0.0000, 0.0000, 0.0000);
  194.     CreateObject(931, -1286.511841, 2495.178223, 87.118919, 0.0000, 0.0000, 0.0000);
  195.     CreateObject(1431, -1313.696777, 2525.989990, 87.078903, 0.0000, 0.0000, 270.0000);
  196.     CreateObject(3576, -1299.612549, 2539.893066, 90.922363, 0.0000, 0.0000, 0.0000);
  197.     CreateObject(1348, -1287.354370, 2530.271484, 87.551865, 0.0000, 0.0000, 180.0000);
  198.     CreateObject(1362, -1290.695801, 2533.338623, 87.340668, 0.0000, 0.0000, 0.0000);
  199.     CreateObject(12986, -1262.602295, 2521.912598, 89.790329, 0.0000, 0.0000, 157.5001);
  200.     CreateObject(1654, -1313.331177, 2525.454102, 87.924385, 0.0000, 0.0000, 78.7500);
  201.     CreateObject(1218, -1345.087036, 2523.081055, 86.570259, 0.0000, 0.0000, 0.0000);
  202.     CreateObject(1218, -1345.172852, 2521.184814, 86.579819, 0.0000, 0.0000, 0.0000);
  203.     CreateObject(1225, -1343.097168, 2523.078857, 86.466843, 0.0000, 0.0000, 0.0000);
  204.     CreateObject(1225, -1342.051758, 2522.993408, 86.458046, 0.0000, 0.0000, 0.0000);
  205.     CreateObject(3057, -1344.483643, 2522.110107, 86.463776, 0.0000, 0.0000, 78.7500);
  206.     CreateObject(926, -1333.376343, 2491.001465, 86.296188, 0.0000, 0.0000, 0.0000);
  207.     CreateObject(3279, -1359.762085, 2446.429688, 88.925682, 0.0000, 0.0000, 0.0000);
  208.     CreateObject(3279, -1279.579956, 2554.669189, 86.097641, 0.0000, 0.0000, 22.5000);
  209.     CreateObject(3279, -1277.631592, 2446.267090, 87.410408, 0.0000, 0.0000, 90.0000);
  210.     CreateObject(11502, -1321.214966, 2488.593018, 86.041626, 0.0000, 0.0000, 180.0000);
  211.     CreateObject(11426, -1284.381836, 2486.869141, 86.143806, 0.0000, 0.0000, 0.0001);
  212.     CreateObject(11441, -1292.937866, 2501.437744, 86.090233, 0.0000, 0.0000, 90.0000);
  213.     CreateObject(11426, -1316.690552, 2511.589355, 86.035606, 0.0000, 0.0000, 0.0000);
  214.     CreateObject(12928, -1352.952881, 2466.895996, 86.044891, 0.0000, 0.0000, 180.0000);
  215.     CreateObject(11457, -1347.470825, 2465.841797, 85.648094, 0.0000, 0.0000, 270.0000);
  216.     CreateObject(11457, -1356.337158, 2471.049561, 85.970596, 0.0000, 0.0000, 90.0000);
  217.     CreateObject(11447, -1355.910156, 2470.692139, 89.066315, 0.0000, 0.0000, 0.0000);
  218.     CreateObject(11447, -1348.098633, 2466.177490, 88.743813, 0.0000, 0.0000, 0.0000);
  219.     CreateObject(1654, -1289.723511, 2529.964355, 87.166443, 0.0000, 0.0000, 78.7500);
  220.     CreateObject(1654, -1289.735107, 2530.354736, 87.166443, 0.0000, 0.0000, 78.7500);
  221.     CreateObject(1654, -1289.371826, 2529.966797, 87.166443, 0.0000, 0.0000, 78.7500);
  222.     CreateObject(1654, -1289.031250, 2529.992676, 87.166443, 0.0000, 0.0000, 78.7500);
  223.     CreateObject(1654, -1289.511475, 2530.777100, 87.166443, 0.0000, 0.0000, 78.7500);
  224.     CreateObject(1654, -1289.364990, 2530.252930, 87.166443, 0.0000, 0.0000, 78.7500);
  225.     CreateObject(1654, -1288.759888, 2530.241455, 87.166443, 0.0000, 0.0000, 78.7500);
  226.     CreateObject(1654, -1288.994995, 2530.166016, 87.166443, 0.0000, 0.0000, 78.7500);
  227.     CreateObject(1654, -1288.608765, 2530.028809, 87.166443, 0.0000, 0.0000, 78.7500);
  228.     CreateObject(1654, -1289.508667, 2531.519531, 87.166443, 0.0000, 0.0000, 78.7500);
  229.     CreateObject(1654, -1288.790894, 2529.805908, 87.620796, 0.0000, 0.0000, 78.7500);
  230.     CreateObject(1654, -1288.642090, 2531.188477, 87.156998, 0.0000, 0.0000, 78.7500);
  231.     CreateObject(1654, -1288.586304, 2530.844727, 87.166443, 0.0000, 0.0000, 78.7500);
  232.     CreateObject(1654, -1289.083496, 2531.451416, 87.166443, 0.0000, 0.0000, 78.7500);
  233.     CreateObject(1654, -1289.126953, 2532.077393, 87.156998, 0.0000, 0.0000, 78.7500);
  234.     CreateObject(1654, -1288.227783, 2531.218994, 87.156998, 0.0000, 0.0000, 78.7500);
  235.     CreateObject(1654, -1288.757080, 2531.564209, 87.156998, 0.0000, 0.0000, 78.7500);
  236.     CreateObject(1654, -1288.575195, 2531.949707, 87.156998, 0.0000, 0.0000, 78.7500);
  237.     CreateObject(1654, -1289.170776, 2531.433838, 88.359154, 0.0000, 0.0000, 78.7500);
  238.     CreateObject(1654, -1288.253174, 2532.149414, 87.156998, 0.0000, 0.0000, 78.7500);
  239.     CreateObject(1654, -1289.057129, 2531.816895, 87.156998, 0.0000, 0.0000, 78.7500);
  240.     CreateObject(1654, -1287.517212, 2531.714111, 87.156998, 0.0000, 0.0000, 78.7500);
  241.     CreateObject(1654, -1288.227417, 2531.789795, 87.156998, 0.0000, 0.0000, 78.7500);
  242.     CreateObject(1654, -1289.047363, 2531.312988, 87.766701, 0.0000, 0.0000, 78.7500);
  243.     CreateObject(1654, -1289.694336, 2532.540039, 87.156998, 0.0000, 0.0000, 78.7500);
  244.     CreateObject(1654, -1289.774292, 2531.795166, 87.156998, 0.0000, 0.0000, 78.7500);
  245.     CreateObject(1654, -1289.045654, 2531.701172, 87.686539, 0.0000, 0.0000, 78.7500);
  246.     CreateObject(1654, -1287.863647, 2532.026123, 87.156998, 0.0000, 0.0000, 78.7500);
  247.     CreateObject(1654, -1286.802490, 2530.945801, 87.156998, 0.0000, 0.0000, 78.7500);
  248.     CreateObject(1654, -1289.805786, 2532.164307, 87.156998, 0.0000, 0.0000, 78.7500);
  249.     CreateObject(1654, -1289.227417, 2532.272705, 87.767204, 0.0000, 0.0000, 78.7500);
  250.     CreateObject(1654, -1289.389526, 2532.534424, 87.405396, 0.0000, 0.0000, 78.7500);
  251.     CreateObject(1654, -1289.075562, 2530.827637, 87.166443, 0.0000, 0.0000, 78.7500);
  252.     CreateObject(1654, -1286.905273, 2531.329590, 87.156998, 0.0000, 0.0000, 78.7500);
  253.     CreateObject(1654, -1287.159424, 2531.098877, 87.156998, 0.0000, 0.0000, 78.7500);
  254.     CreateObject(1654, -1286.981689, 2531.911377, 87.156998, 0.0000, 0.0000, 78.7500);
  255.     CreateObject(1654, -1287.644531, 2531.281738, 87.156998, 0.0000, 0.0000, 78.7500);
  256.     CreateObject(1654, -1288.854126, 2532.212891, 87.156998, 0.0000, 0.0000, 78.7500);
  257.     CreateObject(1654, -1288.363647, 2530.762695, 87.689705, 0.0000, 0.0000, 78.7500);
  258.     CreateObject(1654, -1289.443237, 2531.855469, 87.156998, 0.0000, 0.0000, 78.7500);
  259.     CreateObject(3057, -1343.318115, 2522.238281, 86.452934, 0.0000, 0.0000, 281.2500);
  260.     CreateObject(11441, -1311.753174, 2506.276855, 86.216942, 0.0000, 0.0000, 180.0000);
  261.     CreateObject(1357, -1312.321533, 2485.678955, 86.412987, 0.0000, 0.0000, 0.0000);
  262.     CreateObject(16370, -1351.868286, 2494.564941, 87.023460, 0.0000, 0.0000, 180.0000);
  263.     CreateObject(987, -1280.286377, 2440.692627, 87.254364, 0.0000, 0.0000, 0.0000);
  264.     CreateObject(744, -1269.981567, 2441.393799, 88.649902, 0.0000, 0.0000, 236.2501);
  265.     CreateObject(745, -1264.238037, 2440.389893, 88.110168, 0.0000, 0.0000, 0.0000);
  266.     CreateObject(746, -1271.524170, 2438.433838, 88.460091, 0.0000, 0.0000, 348.7500);
  267.     CreateObject(747, -1268.266602, 2439.090820, 87.169250, 0.0000, 0.0000, 292.5000);
  268.     CreateObject(748, -1270.693848, 2441.718018, 87.976288, 0.0000, 0.0000, 45.0000);
  269.     CreateObject(807, -1267.951660, 2437.647217, 86.843666, 0.0000, 0.0000, 348.7500);
  270.     gate_t = CreateObject(986, -1284.299072, 2440.639160, 88.934196, 0.0000, 0.0000, 180.0000);
  271. //
  272.     SetTimer("AutoNaricht",100000,1);
  273.     return 1;
  274. }
  275. public OnGameModeExit()
  276. {
  277.     return 1;
  278. }
  279.  
  280.  
  281. public OnPlayerRequestClass(playerid, classid)
  282. {
  283.     if (classid == 0)
  284.     {
  285.     GameTextForPlayer(playerid,"~r~ USA SNIPER",2000,3);
  286.     SetPlayerPos(playerid,-552.3168,2594.0034,53.9348);
  287.     SetPlayerFacingAngle(playerid,270.3784);
  288.     SetPlayerCameraPos(playerid,-546.3168,2594.0034,53.9348);
  289.     SetPlayerCameraLookAt(playerid,-552.3168,2594.0034,53.9348);
  290.     Gang[playerid] = 1;
  291.  
  292.     }
  293.     if (classid == 1)
  294.     {
  295.     GameTextForPlayer(playerid,"~r~ USA SOLDIER",2000,3);
  296.     SetPlayerPos(playerid,-552.3168,2594.0034,53.9348);
  297.     SetPlayerFacingAngle(playerid,270.3784);
  298.     SetPlayerCameraPos(playerid,-546.3168,2594.0034,53.9348);
  299.     SetPlayerCameraLookAt(playerid,-552.3168,2594.0034,53.9348);
  300.     Gang[playerid] = 1;
  301.  
  302.     }
  303.     if (classid == 2)
  304.     {
  305.     GameTextForPlayer(playerid,"~r~ Taliban SOLDIER",2000,3);
  306.     SetPlayerPos(playerid, -1313.5387,2520.8503,87.3291);
  307.     SetPlayerFacingAngle(playerid,270.8370);
  308.     SetPlayerCameraPos(playerid, -1308.5387,2520.8503,87.3291);
  309.     SetPlayerCameraLookAt(playerid, -1313.5387,2520.8503,87.3291);
  310.     Gang[playerid] = 2;
  311.  
  312.     }
  313.     if (classid == 3)
  314.     {
  315.     GameTextForPlayer(playerid,"~r~ Taliban Sniper",2000,3);
  316.     SetPlayerPos(playerid, -1313.5387,2520.8503,87.3291);
  317.     SetPlayerFacingAngle(playerid,270.8370);
  318.     SetPlayerCameraPos(playerid, -1308.5387,2520.8503,87.3291);
  319.     SetPlayerCameraLookAt(playerid, -1313.5387,2520.8503,87.3291);
  320.     Gang[playerid] = 2;
  321.  
  322.     }
  323.  
  324.     return 1;
  325. }
  326.  
  327. public OnPlayerConnect(playerid)
  328. {
  329. //---------------------------------------------------------------------------------------------------------
  330.         SetPlayerMapIcon( playerid, 23,-1313.5387,2520.8503,87.3291,23,0);
  331.         SetPlayerMapIcon( playerid, 30,-552.3168,2594.0034,53.9348,30,0);
  332.         SetWorldTime(01);
  333.         SendClientMessage(playerid, 0x33CCFFAA, "if you need help type /help");
  334.    
  335.         new string[256];
  336.         new name[MAX_PLAYER_NAME];
  337.         GetPlayerName(playerid, name, sizeof(name));
  338.         format(string, sizeof(string), "%s joined the server", name);
  339.         SendClientMessageToAll(0x00FF00FF, string);
  340.  
  341.         teamkills[playerid] = 0;
  342.  
  343.         return 1;
  344. }
  345.  
  346. public OnPlayerDisconnect(playerid, reason)
  347. {
  348.         //In OnPlayerDisconnect ist es fast das gleiche, ausser das wir noch den Grund des Verlassens bekommen ko"nnen:
  349.         new string[256];
  350.         new name[MAX_PLAYER_NAME];
  351.         GetPlayerName(playerid, name, sizeof(name));
  352.         switch(reason) {//Mit switch(blabla) switcht man eine Variable durch:
  353.         case 0: format(string, sizeof(string), "%s Left the server: Timeout", name);//case 0 bedeuted:  Wenn Variable == 0 dann XY
  354.         case 1: format(string, sizeof(string), "%s Left the server: Leaving", name);//case 1 bedeuted:  Wenn Variable == 1 dann XY
  355.         case 2: format(string, sizeof(string), "%s Left the server: Kicked/banned", name);//case 2 bedeuted:  Wenn Variable == 2 dann XY
  356.         }//Wir schlie?en switch(reason) wieder
  357.         SendClientMessageToAll(0x00FF00FF, string);//Wir senden die Message
  358.         return 1;
  359. }
  360.  
  361. public OnPlayerSpawn(playerid)
  362. {
  363.     SetWorldTime(01);
  364.     SetWeather(1);
  365.     SetPlayerArmour(playerid, 100.0);
  366.  
  367.     if (Gang[playerid] == 1) { SetPlayerColor(playerid,0x0000BBAA); }
  368.  
  369.     else if (Gang[playerid] == 2) { SetPlayerColor(playerid,0xAA3333AA);}
  370.  
  371.     return 1;
  372.  
  373. }
  374.  
  375. public OnPlayerDeath(playerid, killerid, reason)
  376. {
  377.         SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
  378.         if(killerid !=255) // GER: Wenn die id von dem killer halt connectet ist dann passiert folgendes ENG: If the id of the killer is on the server ...
  379.         {
  380.         SetPlayerScore(killerid,GetPlayerScore(killerid)+1); // GER: Gibt killid einen punkt dazu ENG: Gives the killerid on score
  381.         GameTextForPlayer(playerid,"~r~PWN3D!",2000,3); //GER: Schreibt fur den getoten Spieler einen Text in der mitte
  382.         }
  383.         else if (Gang[playerid] == Gang[killerid])
  384.         {
  385.         teamkills[killerid] = teamkills[killerid] + 1;
  386.         if (teamkills[killerid] > 2)
  387.         {
  388.         Kick(killerid);
  389.         }
  390.         }
  391.         return 1;
  392. }
  393.  
  394.  
  395.  
  396. public OnVehicleSpawn(vehicleid)
  397. {
  398.     return 1;
  399. }
  400.  
  401. public OnVehicleDeath(vehicleid, killerid)
  402. {
  403.     return 1;
  404. }
  405.  
  406. public OnPlayerText(playerid, text[])
  407. {
  408.     return 1;
  409. }
  410.  
  411. public OnPlayerCommandText(playerid, cmdtext[])
  412. {
  413.     if(!strcmp(cmdtext, "/help"))
  414.     {
  415.     SendClientMessage(playerid, 0xFFFF00AA, "type /csopen /csclose - open/close the gate in cs base ");
  416.     SendClientMessage(playerid, 0xFFFF00AA, "type /topen /tclose to - open/close the gate in terror base");
  417.     SendClientMessage(playerid, 0xFFFF00AA, "type /info - to see what you have to do in this server ");
  418.     SendClientMessage(playerid, 0xFFFF00AA, "type /credits - to see the our GM autors");
  419.     SendClientMessage(playerid, 0xFFFF00AA, "type /kill - to kill yourself");
  420.     return 1;
  421.     }
  422.     if(!strcmp(cmdtext, "/credits")){
  423.     SendClientMessage(playerid, 0x33CCFFAA, "HusTleR©");
  424.     return 1;
  425.     }
  426.     if (strcmp(cmdtext, "/csopen", true) == 0)
  427.     {
  428.     MoveObject(gate_cs,-499.00000, 2608.824072, 55.331924,3.5);
  429.     return 1;
  430.     }
  431.     if (strcmp(cmdtext, "/csclose", true) == 0)
  432.     {
  433.     MoveObject(gate_cs,-498.839294, 2592.924072, 55.331924,3.5);
  434.     return 1;
  435.     }
  436.     if(!strcmp(cmdtext, "/info"))
  437.     {
  438.     SendClientMessage(playerid, 0x33CCFFAA, "This is a TDM server, you must");
  439.     SendClientMessage(playerid, 0x33CCFFAA, "kill the players of the other team");
  440.     SendClientMessage(playerid, 0xAA3333AA, "Rules: DO NOT TEAMKILL!!Don`t use bugs ");
  441.     SendClientMessage(playerid, 0xAA3333AA, "Don`t cheat (if you cheat you get banned)");
  442.     return 1;
  443.     }
  444.     if (strcmp(cmdtext, "/topen", true) == 0)
  445.     {
  446.  
  447.  
  448.  
  449.     MoveObject(gate_t,-1284.299072, 2440.639160, 78.934196,3.5);
  450.     return 1;
  451.     }
  452.     if (strcmp(cmdtext, "/tclose", true) == 0)
  453.     {
  454.     MoveObject(gate_t,-1284.299072, 2440.639160, 88.934196,3.5);
  455.     return 1;
  456.     }
  457.  
  458.     if (strcmp("/kill", cmdtext, true) == 0) // /kill ist der Command den man eingeben muss
  459.     {
  460.        SetPlayerHealth(playerid,0.0);
  461.        return 1;
  462.     }
  463.     return 0;
  464. }
  465. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  466. {
  467.     return 1;
  468. }
  469.  
  470. public OnPlayerExitVehicle(playerid, vehicleid)
  471. {
  472.     return 1;
  473. }
  474.  
  475. public OnPlayerStateChange(playerid, newstate, oldstate)
  476. {
  477.     return 1;
  478. }
  479.  
  480. public OnPlayerEnterCheckpoint(playerid)
  481. {
  482.     return 1;
  483. }
  484.  
  485. public OnPlayerLeaveCheckpoint(playerid)
  486. {
  487.     return 1;
  488. }
  489.  
  490. public OnPlayerEnterRaceCheckpoint(playerid)
  491. {
  492.     return 1;
  493. }
  494.  
  495. public OnPlayerLeaveRaceCheckpoint(playerid)
  496. {
  497.     return 1;
  498. }
  499.  
  500. public OnRconCommand(cmd[])
  501. {
  502.     return 1;
  503. }
  504.  
  505. public OnPlayerRequestSpawn(playerid)
  506. {
  507.     return 1;
  508. }
  509.  
  510. public OnObjectMoved(objectid)
  511. {
  512.     return 1;
  513. }
  514.  
  515. public OnPlayerObjectMoved(playerid, objectid)
  516. {
  517.     return 1;
  518. }
  519.  
  520. public OnPlayerPickUpPickup(playerid, pickupid)
  521. {
  522.     return 1;
  523. }
  524.  
  525. public OnVehicleMod(playerid, vehicleid, componentid)
  526. {
  527.     return 1;
  528. }
  529.  
  530. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  531. {
  532.     return 1;
  533. }
  534.  
  535. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  536. {
  537.     return 1;
  538. }
  539.  
  540. public OnPlayerSelectedMenuRow(playerid, row)
  541. {
  542.     return 1;
  543. }
  544.  
  545. public OnPlayerExitedMenu(playerid)
  546. {
  547.     return 1;
  548. }
  549.  
  550. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  551. {
  552.     return 1;
  553. }
  554.  
  555. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  556. {
  557.     return 1;
  558. }
  559.  
  560. public OnRconLoginAttempt(ip[], password[], success)
  561. {
  562.     return 1;
  563. }
  564.  
  565. public OnPlayerUpdate(playerid)
  566. {
  567.     return 1;
  568. }
  569.  
  570. public OnPlayerStreamIn(playerid, forplayerid)
  571. {
  572.     return 1;
  573. }
  574.  
  575. public OnPlayerStreamOut(playerid, forplayerid)
  576. {
  577.     return 1;
  578. }
  579.  
  580. public OnVehicleStreamIn(vehicleid, forplayerid)
  581. {
  582.     return 1;
  583. }
  584.  
  585. public OnVehicleStreamOut(vehicleid, forplayerid)
  586. {
  587.     return 1;
  588. }
  589.  
  590.  
  591. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  592. {
  593.     return 1;
  594. }
  595. public AutoMessage()
  596. {
  597.         SendClientMessageToAll(0x0AFF0AAA, ">>>>>>>> SERVER MESSAGE <<<<<<<<");
  598.         SendClientMessageToAll(0x0AFF0AAA, "if you need help pls type /help");
  599.         SendClientMessageToAll(0x0AFF0AAA, ">>>>>>>> SERVER MESSAGE END <<<<<<<<");
  600. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement