Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* GER: Ich habe diesen Script vor 3 Monaten gemacht wo ich mit pawno angefangen habe ich hoffe ich helfe neulingen
- 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*/
- #include <a_samp>
- forward AutoMessage(); // GER:Mit forward kann man publics erstellen und Timer ENG: With forward u can make publics and timers
- new Gang[MAX_PLAYERS];
- new gate_cs;
- new gate_t;
- new teamkills[MAX_PLAYERS];
- main()
- {
- print("\n----------------------------------");
- print(" de_dust samp ");
- print("----------------------------------\n");
- }
- public OnGameModeInit()
- {
- UsePlayerPedAnims();
- SetTimer("AutoMessage",100000,1);
- // CS skins
- AddPlayerClass(285,-552.3168,2594.0034,53.9348,269.8922,4,0,23,50,34,100);
- AddPlayerClass(287,-552.3168,2594.0034,53.9348,269.8922,16,1,29,500,31,500);
- //Terror skins
- AddPlayerClass(142,-1313.5387,2520.8503,87.3291,268.3006,18,1,29,500,30,500);
- AddPlayerClass(220,-1313.5387,2520.8503,87.3291,268.3006,4,0,24,50,33,100); //
- //CS Autos
- AddStaticVehicle(601,-539.7888,2573.9187,53.1730,272.7433,1,1);
- AddStaticVehicle(601,-540.1802,2567.9851,53.1645,270.9811,1,1);
- AddStaticVehicle(601,-540.3594,2562.0437,53.1749,271.1019,1,1);
- AddStaticVehicle(599,-528.1630,2581.5747,53.6037,268.4743,0,1);
- AddStaticVehicle(599,-527.6030,2577.0969,53.6036,268.7955,0,1);
- AddStaticVehicle(599,-528.4958,2573.0427,53.6063,267.0057,0,1);
- AddStaticVehicle(601,-540.6894,2556.5562,53.1640,270.4592,1,1);
- AddStaticVehicle(601,-540.8961,2551.6338,53.1838,269.7391,1,1);
- AddStaticVehicle(523,-527.7986,2568.8064,52.9753,274.4906,0,0);
- AddStaticVehicle(523,-527.8168,2566.6880,52.9610,270.2949,0,0);
- AddStaticVehicle(523,-528.3903,2563.3997,52.9845,270.0396,0,0);
- AddStaticVehicle(523,-528.9553,2560.7104,52.9848,272.5400,0,0);
- AddStaticVehicle(523,-527.8763,2558.9583,52.9862,271.6088,0,0);
- AddStaticVehicle(601,-540.1604,2581.3105,53.1799,271.2522,1,1);
- AddStaticVehicle(497,-530.8903,2635.2656,53.5937,270.0736,0,1);
- AddStaticVehicle(497,-530.6880,2627.0657,53.5910,270.1615,0,1);
- AddStaticVehicle(497,-530.9815,2619.6184,53.5904,271.0732,0,1);
- AddStaticVehicle(497,-531.2179,2611.1760,53.5910,263.6746,0,1);
- AddStaticVehicle(497,-532.1814,2603.5649,53.5934,269.8676,0,1);
- AddStaticVehicle(427,-510.5911,2550.1511,53.5465,88.7779,0,1);
- AddStaticVehicle(427,-510.3938,2555.3035,53.5461,88.3046,0,1);
- AddStaticVehicle(427,-510.2481,2559.9536,53.5459,88.6927,0,1);
- AddStaticVehicle(427,-510.3213,2564.5510,53.5460,90.0190,0,1);
- AddStaticVehicle(427,-510.4628,2569.4509,53.5466,90.3305,0,1);
- AddStaticVehicle(427,-510.5216,2574.0767,53.5460,90.6067,0,1);
- AddStaticVehicle(427,-510.3341,2578.8135,53.5460,89.5695,0,1);
- AddStaticVehicle(427,-510.2493,2583.7544,53.5462,91.2778,0,1);
- AddStaticVehicle(470,-520.2073,2581.5583,53.4071,89.3655,43,0);
- AddStaticVehicle(470,-520.3657,2577.9258,53.4074,87.7144,43,0);
- AddStaticVehicle(470,-520.4977,2573.8159,53.4067,89.1866,43,0);
- AddStaticVehicle(470,-520.8333,2569.9077,53.4052,87.4287,43,0);
- AddStaticVehicle(470,-521.0352,2565.9224,53.4078,88.4341,43,0);
- AddStaticVehicle(470,-521.0918,2561.3386,53.4050,90.4596,43,0);
- AddStaticVehicle(470,-520.8145,2557.5110,53.4088,89.5422,43,0);
- AddStaticVehicle(548,-588.0583,2585.9370,67.5226,269.8528,1,1); //
- AddStaticVehicle(548,-587.8993,2602.2480,67.5485,268.6802,1,1); //
- AddStaticVehicle(548,-562.7219,2602.5330,67.4334,270.9765,1,1); //
- AddStaticVehicle(548,-561.6334,2586.7732,67.5098,270.6216,1,1); //
- AddStaticVehicle(497,-513.7733,2618.0305,53.5920,267.9905,0,1); //
- AddStaticVehicle(497,-514.9075,2609.2922,53.5913,269.9443,0,1); //
- AddStaticVehicle(497,-515.8921,2629.5132,53.5579,265.5592,0,1); //
- //CS BASE
- CreateObject(987, -582.191345, 2544.511719, 52.760971, 0.0000, 0.0000, 0.0000);
- CreateObject(987, -583.080200, 2545.696777, 53.718670, 0.0000, 0.0000, 0.0000);
- CreateObject(987, -570.240662, 2544.471191, 52.922714, 0.0000, 0.0000, 0.0000);
- CreateObject(987, -558.079407, 2544.536865, 52.925617, 0.0000, 0.0000, 0.0000);
- CreateObject(987, -546.481079, 2543.751953, 52.530247, 0.0000, 0.0000, 0.0000);
- CreateObject(987, -534.497009, 2543.701904, 52.515625, 0.0000, 0.0000, 0.0000);
- CreateObject(987, -522.642334, 2543.818359, 52.515625, 0.0000, 0.0000, 0.0000);
- CreateObject(987, -510.737762, 2543.817871, 52.515625, 0.0000, 0.0000, 0.0000);
- CreateObject(987, -499.152252, 2555.322021, 52.515625, 0.0000, 0.0000, 270.0000);
- CreateObject(987, -499.181183, 2567.271729, 52.515625, 0.0000, 0.0000, 270.0000);
- CreateObject(987, -499.152527, 2579.212891, 52.582031, 0.0000, 0.0000, 270.0000);
- CreateObject(987, -499.084961, 2588.184326, 52.665668, 0.0000, 0.0000, 270.0000);
- CreateObject(987, -560.054504, 2647.199463, 53.686031, 0.0000, 0.0000, 180.0000);
- CreateObject(987, -548.117615, 2647.304932, 53.577511, 0.0000, 0.0000, 180.0000);
- CreateObject(987, -548.225037, 2647.141602, 53.729961, 0.0000, 0.0000, 0.0000);
- CreateObject(987, -500.515808, 2647.864746, 52.515625, 0.0000, 0.0000, 270.0000);
- CreateObject(987, -500.830505, 2636.083008, 52.515625, 0.0000, 0.0000, 270.0000);
- CreateObject(987, -500.814056, 2624.177246, 52.515625, 0.0000, 0.0000, 270.0000);
- CreateObject(987, -501.330811, 2612.050049, 52.628113, 0.0000, 0.0000, 270.0000);
- CreateObject(987, -500.868774, 2598.363770, 52.630653, 0.0000, 0.0000, 90.0001);
- CreateObject(3279, -503.958191, 2549.984619, 52.591240, 0.0000, 0.0000, 180.0000);
- CreateObject(987, -526.553101, 2648.290527, 52.515625, 0.0000, 0.0000, 0.0000);
- CreateObject(987, -514.798218, 2648.109863, 52.515625, 0.0000, 0.0000, 0.0000);
- CreateObject(987, -512.115540, 2647.935791, 52.515625, 0.0000, 0.0000, 0.0000);
- CreateObject(3279, -568.723022, 2643.052734, 52.970901, 0.0000, 0.0000, 0.0000);
- CreateObject(3279, -506.837219, 2641.542969, 52.592628, 0.0000, 0.0000, 180.0000);
- CreateObject(3279, -580.975464, 2550.345703, 52.657280, 0.0000, 0.0000, 89.9999);
- CreateObject(987, -539.967163, 2646.291748, 52.515625, 0.0000, 0.0000, 11.2500);
- CreateObject(987, -532.585571, 2648.100586, 52.515625, 0.0000, 0.0000, 0.0000);
- CreateObject(13749, -569.098999, 2619.196533, 57.929207, 0.0000, 0.0000, 123.7500);
- CreateObject(16644, -581.900757, 2612.496094, 64.612671, 0.0000, 0.0000, 270.0000);
- gate_cs = CreateObject(980, -498.839294, 2592.924072, 55.331924, 0.0000, 0.0000, 270.0000);
- CreateObject(16093, -494.042877, 2603.403076, 57.130356, 0.0000, 0.0000, 0.0000);
- CreateObject(13011, -499.746948, 2597.847656, 53.792671, 0.0000, 0.0000, 0.0000);
- CreateObject(13011, -488.028351, 2607.011963, 54.102051, 0.0000, 0.0000, 180.0000);
- //Terror Autos
- AddStaticVehicle(605,-1344.9087,2503.6006,86.5669,265.1460,45,45); //
- AddStaticVehicle(400,-1345.1626,2488.7959,87.3491,271.2755,45,45); //
- AddStaticVehicle(400,-1345.3409,2498.5837,87.3410,270.1978,45,45); //
- AddStaticVehicle(579,-1358.5771,2501.5288,87.8561,89.1889,45,45); //
- AddStaticVehicle(579,-1358.5846,2496.5994,87.8010,87.4461,45,45); //
- AddStaticVehicle(579,-1358.5134,2490.7129,87.6096,88.7793,45,45); //
- AddStaticVehicle(579,-1358.5571,2506.9019,87.5371,91.8327,45,45); //
- AddStaticVehicle(605,-1344.6150,2508.2776,86.5221,268.6374,45,45); //
- AddStaticVehicle(400,-1345.1179,2493.5920,87.3311,270.6229,45,45); //
- AddStaticVehicle(487,-1344.6161,2470.7158,93.2354,356.4775,45,45); //
- AddStaticVehicle(487,-1356.9269,2466.2131,92.9483,5.7034,45,45); //
- AddStaticVehicle(468,-1326.1807,2491.2292,86.5350,179.4008,45,45); //
- AddStaticVehicle(468,-1326.2338,2486.1306,86.5331,179.4005,45,45); //
- AddStaticVehicle(468,-1318.6515,2491.1018,86.5329,179.0060,45,45); //
- AddStaticVehicle(468,-1316.5540,2491.1108,86.5630,185.3091,45,45); //
- AddStaticVehicle(468,-1316.5326,2486.3354,86.5666,173.3784,45,45); //
- AddStaticVehicle(447,-1325.9895,2527.8962,89.9984,174.5177,45,45); //
- AddStaticVehicle(447,-1345.0713,2525.9121,89.9272,95.5081,45,45); //
- AddStaticVehicle(468,-1318.8875,2486.3464,86.5323,175.5559,45,45);
- //Terror Base
- CreateObject(11441, -1301.803711, 2478.232422, 86.471947, 0.0000, 0.0000, 213.7501);
- CreateObject(11444, -1300.557495, 2512.436279, 86.023140, 0.0000, 0.0000, 0.0000);
- CreateObject(1431, -1306.559570, 2489.613525, 86.708427, 0.0000, 0.0000, 180.0000);
- CreateObject(2358, -1306.611572, 2489.395508, 87.382523, 0.0000, 0.0000, 0.0000);
- CreateObject(3576, -1329.764038, 2495.151123, 87.539551, 0.0000, 0.0000, 0.0000);
- CreateObject(3577, -1347.254395, 2521.926514, 86.885490, 0.0000, 0.0000, 90.0001);
- CreateObject(3632, -1328.625610, 2531.295410, 86.847092, 0.0000, 0.0000, 0.0000);
- CreateObject(3633, -1328.748047, 2530.326172, 86.804558, 0.0000, 0.0000, 337.5000);
- CreateObject(3796, -1288.306030, 2531.110107, 86.738327, 0.0000, 0.0000, 270.0000);
- CreateObject(3798, -1329.511230, 2543.541504, 85.069977, 0.0000, 0.0000, 0.0000);
- CreateObject(3798, -1329.540894, 2543.287354, 87.069977, 0.0000, 0.0000, 0.0000);
- CreateObject(3798, -1327.521362, 2543.272217, 85.366661, 0.0000, 0.0000, 0.0000);
- CreateObject(3800, -1289.988403, 2516.720459, 86.163124, 0.0000, 0.0000, 0.0000);
- CreateObject(3798, -1331.522461, 2543.557373, 84.770119, 0.0000, 0.0000, 0.0000);
- CreateObject(3798, -1333.589966, 2543.374756, 84.833954, 0.0000, 0.0000, 0.0000);
- CreateObject(3798, -1335.373901, 2543.367432, 84.992996, 0.0000, 0.0000, 270.0000);
- CreateObject(3798, -1327.377197, 2546.114990, 85.388161, 0.0000, 0.0000, 270.0000);
- CreateObject(1362, -1328.812012, 2529.248047, 86.883522, 0.0000, 0.0000, 0.0000);
- CreateObject(1348, -1331.677246, 2543.374512, 87.476105, 0.0000, 0.0000, 0.0000);
- CreateObject(11446, -1332.512451, 2531.752930, 86.426453, 0.0000, 0.0000, 180.0000);
- CreateObject(11445, -1340.339844, 2536.274658, 86.321877, 0.0000, 0.0000, 0.0000);
- CreateObject(11442, -1288.845215, 2496.329346, 86.241241, 0.0000, 0.0000, 0.0000);
- CreateObject(11442, -1336.711426, 2504.125977, 86.196457, 0.0000, 0.0000, 270.0000);
- CreateObject(11444, -1344.725220, 2526.188965, 86.053963, 0.0000, 0.0000, 270.0000);
- CreateObject(11445, -1335.559937, 2515.552490, 86.218620, 0.0000, 0.0000, 90.0000);
- CreateObject(987, -1353.540649, 2440.147705, 87.763298, 0.0000, 0.0000, 0.0000);
- CreateObject(987, -1341.763428, 2440.524902, 87.866150, 0.0000, 0.0000, 0.0000);
- CreateObject(987, -1300.109009, 2440.506836, 87.298347, 0.0000, 0.0000, 0.0000);
- CreateObject(987, -1306.216431, 2440.589355, 87.225403, 0.0000, 0.0000, 0.0000);
- CreateObject(987, -1318.182373, 2440.977539, 87.349411, 0.0000, 0.0000, 0.0000);
- CreateObject(987, -1272.481567, 2441.382568, 85.945190, 0.0000, 0.0000, 90.0000);
- CreateObject(987, -1272.597656, 2453.386963, 86.027397, 0.0000, 0.0000, 90.0000);
- CreateObject(987, -1272.657715, 2465.405029, 86.071648, 0.0000, 0.0000, 90.0000);
- CreateObject(987, -1273.070190, 2476.890137, 86.169441, 0.0000, 0.0000, 90.0000);
- CreateObject(987, -1273.183716, 2488.801270, 86.032028, 0.0000, 0.0000, 90.0000);
- CreateObject(987, -1273.224487, 2500.814941, 86.035294, 0.0000, 0.0000, 90.0000);
- CreateObject(987, -1273.325195, 2512.809082, 86.644150, 0.0000, 0.0000, 90.0000);
- CreateObject(987, -1273.446777, 2524.750977, 87.580002, 0.0000, 0.0000, 90.0000);
- CreateObject(987, -1273.530762, 2536.732178, 87.070618, 0.0000, 0.0000, 90.0000);
- CreateObject(987, -1273.686768, 2548.303223, 86.498337, 0.0000, 0.0000, 112.4999);
- CreateObject(987, -1278.125244, 2559.075684, 85.184280, 0.0000, 0.0000, 191.2501);
- CreateObject(987, -1289.818237, 2556.214111, 84.695381, 0.0000, 0.0000, 180.0000);
- CreateObject(987, -1302.178223, 2556.189209, 85.983658, 0.0000, 0.0000, 191.2500);
- CreateObject(987, -1313.857910, 2553.677979, 86.412827, 0.0000, 0.0000, 202.5000);
- CreateObject(987, -1324.976074, 2549.017090, 84.349533, 0.0000, 0.0000, 168.7500);
- CreateObject(987, -1336.297363, 2550.595947, 84.061638, 0.0000, 0.0000, 213.7500);
- CreateObject(987, -1346.021973, 2543.571289, 85.879196, 0.0000, 0.0000, 225.0000);
- CreateObject(987, -1354.395630, 2535.094482, 86.104660, 0.0000, 0.0000, 236.2501);
- CreateObject(987, -1360.840332, 2524.962158, 85.840111, 0.0000, 0.0000, 247.5000);
- CreateObject(987, -1365.378784, 2513.942627, 86.897148, 0.0000, 0.0000, 270.0000);
- CreateObject(987, -1365.376831, 2501.971680, 86.887680, 0.0000, 0.0000, 270.0000);
- CreateObject(987, -1365.331055, 2489.949219, 86.921524, 0.0000, 0.0000, 270.0000);
- CreateObject(987, -1364.815186, 2466.612061, 87.372055, 0.0000, 0.0000, 270.0000);
- CreateObject(987, -1364.771606, 2454.625000, 87.271812, 0.0000, 0.0000, 270.0000);
- CreateObject(987, -1364.994995, 2442.096436, 87.708221, 0.0000, 0.0000, 348.7500);
- CreateObject(987, -1364.713501, 2478.187256, 86.618477, 0.0000, 0.0000, 270.0000);
- CreateObject(987, -1330.184937, 2440.956543, 87.358215, 0.0000, 0.0000, 0.0000);
- CreateObject(2048, -1309.623901, 2490.120117, 88.150391, 0.0000, 0.0000, 0.0000);
- CreateObject(3264, -1290.251709, 2438.950195, 87.654472, 0.0000, 0.0000, 0.0000);
- CreateObject(3265, -1273.364014, 2439.612549, 87.500153, 0.0000, 0.0000, 0.0000);
- CreateObject(931, -1286.511841, 2495.178223, 87.118919, 0.0000, 0.0000, 0.0000);
- CreateObject(1431, -1313.696777, 2525.989990, 87.078903, 0.0000, 0.0000, 270.0000);
- CreateObject(3576, -1299.612549, 2539.893066, 90.922363, 0.0000, 0.0000, 0.0000);
- CreateObject(1348, -1287.354370, 2530.271484, 87.551865, 0.0000, 0.0000, 180.0000);
- CreateObject(1362, -1290.695801, 2533.338623, 87.340668, 0.0000, 0.0000, 0.0000);
- CreateObject(12986, -1262.602295, 2521.912598, 89.790329, 0.0000, 0.0000, 157.5001);
- CreateObject(1654, -1313.331177, 2525.454102, 87.924385, 0.0000, 0.0000, 78.7500);
- CreateObject(1218, -1345.087036, 2523.081055, 86.570259, 0.0000, 0.0000, 0.0000);
- CreateObject(1218, -1345.172852, 2521.184814, 86.579819, 0.0000, 0.0000, 0.0000);
- CreateObject(1225, -1343.097168, 2523.078857, 86.466843, 0.0000, 0.0000, 0.0000);
- CreateObject(1225, -1342.051758, 2522.993408, 86.458046, 0.0000, 0.0000, 0.0000);
- CreateObject(3057, -1344.483643, 2522.110107, 86.463776, 0.0000, 0.0000, 78.7500);
- CreateObject(926, -1333.376343, 2491.001465, 86.296188, 0.0000, 0.0000, 0.0000);
- CreateObject(3279, -1359.762085, 2446.429688, 88.925682, 0.0000, 0.0000, 0.0000);
- CreateObject(3279, -1279.579956, 2554.669189, 86.097641, 0.0000, 0.0000, 22.5000);
- CreateObject(3279, -1277.631592, 2446.267090, 87.410408, 0.0000, 0.0000, 90.0000);
- CreateObject(11502, -1321.214966, 2488.593018, 86.041626, 0.0000, 0.0000, 180.0000);
- CreateObject(11426, -1284.381836, 2486.869141, 86.143806, 0.0000, 0.0000, 0.0001);
- CreateObject(11441, -1292.937866, 2501.437744, 86.090233, 0.0000, 0.0000, 90.0000);
- CreateObject(11426, -1316.690552, 2511.589355, 86.035606, 0.0000, 0.0000, 0.0000);
- CreateObject(12928, -1352.952881, 2466.895996, 86.044891, 0.0000, 0.0000, 180.0000);
- CreateObject(11457, -1347.470825, 2465.841797, 85.648094, 0.0000, 0.0000, 270.0000);
- CreateObject(11457, -1356.337158, 2471.049561, 85.970596, 0.0000, 0.0000, 90.0000);
- CreateObject(11447, -1355.910156, 2470.692139, 89.066315, 0.0000, 0.0000, 0.0000);
- CreateObject(11447, -1348.098633, 2466.177490, 88.743813, 0.0000, 0.0000, 0.0000);
- CreateObject(1654, -1289.723511, 2529.964355, 87.166443, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1289.735107, 2530.354736, 87.166443, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1289.371826, 2529.966797, 87.166443, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1289.031250, 2529.992676, 87.166443, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1289.511475, 2530.777100, 87.166443, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1289.364990, 2530.252930, 87.166443, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1288.759888, 2530.241455, 87.166443, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1288.994995, 2530.166016, 87.166443, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1288.608765, 2530.028809, 87.166443, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1289.508667, 2531.519531, 87.166443, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1288.790894, 2529.805908, 87.620796, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1288.642090, 2531.188477, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1288.586304, 2530.844727, 87.166443, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1289.083496, 2531.451416, 87.166443, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1289.126953, 2532.077393, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1288.227783, 2531.218994, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1288.757080, 2531.564209, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1288.575195, 2531.949707, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1289.170776, 2531.433838, 88.359154, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1288.253174, 2532.149414, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1289.057129, 2531.816895, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1287.517212, 2531.714111, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1288.227417, 2531.789795, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1289.047363, 2531.312988, 87.766701, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1289.694336, 2532.540039, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1289.774292, 2531.795166, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1289.045654, 2531.701172, 87.686539, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1287.863647, 2532.026123, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1286.802490, 2530.945801, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1289.805786, 2532.164307, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1289.227417, 2532.272705, 87.767204, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1289.389526, 2532.534424, 87.405396, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1289.075562, 2530.827637, 87.166443, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1286.905273, 2531.329590, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1287.159424, 2531.098877, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1286.981689, 2531.911377, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1287.644531, 2531.281738, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1288.854126, 2532.212891, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1288.363647, 2530.762695, 87.689705, 0.0000, 0.0000, 78.7500);
- CreateObject(1654, -1289.443237, 2531.855469, 87.156998, 0.0000, 0.0000, 78.7500);
- CreateObject(3057, -1343.318115, 2522.238281, 86.452934, 0.0000, 0.0000, 281.2500);
- CreateObject(11441, -1311.753174, 2506.276855, 86.216942, 0.0000, 0.0000, 180.0000);
- CreateObject(1357, -1312.321533, 2485.678955, 86.412987, 0.0000, 0.0000, 0.0000);
- CreateObject(16370, -1351.868286, 2494.564941, 87.023460, 0.0000, 0.0000, 180.0000);
- CreateObject(987, -1280.286377, 2440.692627, 87.254364, 0.0000, 0.0000, 0.0000);
- CreateObject(744, -1269.981567, 2441.393799, 88.649902, 0.0000, 0.0000, 236.2501);
- CreateObject(745, -1264.238037, 2440.389893, 88.110168, 0.0000, 0.0000, 0.0000);
- CreateObject(746, -1271.524170, 2438.433838, 88.460091, 0.0000, 0.0000, 348.7500);
- CreateObject(747, -1268.266602, 2439.090820, 87.169250, 0.0000, 0.0000, 292.5000);
- CreateObject(748, -1270.693848, 2441.718018, 87.976288, 0.0000, 0.0000, 45.0000);
- CreateObject(807, -1267.951660, 2437.647217, 86.843666, 0.0000, 0.0000, 348.7500);
- gate_t = CreateObject(986, -1284.299072, 2440.639160, 88.934196, 0.0000, 0.0000, 180.0000);
- //
- SetTimer("AutoNaricht",100000,1);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- if (classid == 0)
- {
- GameTextForPlayer(playerid,"~r~ USA SNIPER",2000,3);
- SetPlayerPos(playerid,-552.3168,2594.0034,53.9348);
- SetPlayerFacingAngle(playerid,270.3784);
- SetPlayerCameraPos(playerid,-546.3168,2594.0034,53.9348);
- SetPlayerCameraLookAt(playerid,-552.3168,2594.0034,53.9348);
- Gang[playerid] = 1;
- }
- if (classid == 1)
- {
- GameTextForPlayer(playerid,"~r~ USA SOLDIER",2000,3);
- SetPlayerPos(playerid,-552.3168,2594.0034,53.9348);
- SetPlayerFacingAngle(playerid,270.3784);
- SetPlayerCameraPos(playerid,-546.3168,2594.0034,53.9348);
- SetPlayerCameraLookAt(playerid,-552.3168,2594.0034,53.9348);
- Gang[playerid] = 1;
- }
- if (classid == 2)
- {
- GameTextForPlayer(playerid,"~r~ Taliban SOLDIER",2000,3);
- SetPlayerPos(playerid, -1313.5387,2520.8503,87.3291);
- SetPlayerFacingAngle(playerid,270.8370);
- SetPlayerCameraPos(playerid, -1308.5387,2520.8503,87.3291);
- SetPlayerCameraLookAt(playerid, -1313.5387,2520.8503,87.3291);
- Gang[playerid] = 2;
- }
- if (classid == 3)
- {
- GameTextForPlayer(playerid,"~r~ Taliban Sniper",2000,3);
- SetPlayerPos(playerid, -1313.5387,2520.8503,87.3291);
- SetPlayerFacingAngle(playerid,270.8370);
- SetPlayerCameraPos(playerid, -1308.5387,2520.8503,87.3291);
- SetPlayerCameraLookAt(playerid, -1313.5387,2520.8503,87.3291);
- Gang[playerid] = 2;
- }
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- //---------------------------------------------------------------------------------------------------------
- SetPlayerMapIcon( playerid, 23,-1313.5387,2520.8503,87.3291,23,0);
- SetPlayerMapIcon( playerid, 30,-552.3168,2594.0034,53.9348,30,0);
- SetWorldTime(01);
- SendClientMessage(playerid, 0x33CCFFAA, "if you need help type /help");
- new string[256];
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "%s joined the server", name);
- SendClientMessageToAll(0x00FF00FF, string);
- teamkills[playerid] = 0;
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- //In OnPlayerDisconnect ist es fast das gleiche, ausser das wir noch den Grund des Verlassens bekommen ko"nnen:
- new string[256];
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- switch(reason) {//Mit switch(blabla) switcht man eine Variable durch:
- case 0: format(string, sizeof(string), "%s Left the server: Timeout", name);//case 0 bedeuted: Wenn Variable == 0 dann XY
- case 1: format(string, sizeof(string), "%s Left the server: Leaving", name);//case 1 bedeuted: Wenn Variable == 1 dann XY
- case 2: format(string, sizeof(string), "%s Left the server: Kicked/banned", name);//case 2 bedeuted: Wenn Variable == 2 dann XY
- }//Wir schlie?en switch(reason) wieder
- SendClientMessageToAll(0x00FF00FF, string);//Wir senden die Message
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- SetWorldTime(01);
- SetWeather(1);
- SetPlayerArmour(playerid, 100.0);
- if (Gang[playerid] == 1) { SetPlayerColor(playerid,0x0000BBAA); }
- else if (Gang[playerid] == 2) { SetPlayerColor(playerid,0xAA3333AA);}
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
- 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 ...
- {
- SetPlayerScore(killerid,GetPlayerScore(killerid)+1); // GER: Gibt killid einen punkt dazu ENG: Gives the killerid on score
- GameTextForPlayer(playerid,"~r~PWN3D!",2000,3); //GER: Schreibt fur den getoten Spieler einen Text in der mitte
- }
- else if (Gang[playerid] == Gang[killerid])
- {
- teamkills[killerid] = teamkills[killerid] + 1;
- if (teamkills[killerid] > 2)
- {
- Kick(killerid);
- }
- }
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp(cmdtext, "/help"))
- {
- SendClientMessage(playerid, 0xFFFF00AA, "type /csopen /csclose - open/close the gate in cs base ");
- SendClientMessage(playerid, 0xFFFF00AA, "type /topen /tclose to - open/close the gate in terror base");
- SendClientMessage(playerid, 0xFFFF00AA, "type /info - to see what you have to do in this server ");
- SendClientMessage(playerid, 0xFFFF00AA, "type /credits - to see the our GM autors");
- SendClientMessage(playerid, 0xFFFF00AA, "type /kill - to kill yourself");
- return 1;
- }
- if(!strcmp(cmdtext, "/credits")){
- SendClientMessage(playerid, 0x33CCFFAA, "HusTleR©");
- return 1;
- }
- if (strcmp(cmdtext, "/csopen", true) == 0)
- {
- MoveObject(gate_cs,-499.00000, 2608.824072, 55.331924,3.5);
- return 1;
- }
- if (strcmp(cmdtext, "/csclose", true) == 0)
- {
- MoveObject(gate_cs,-498.839294, 2592.924072, 55.331924,3.5);
- return 1;
- }
- if(!strcmp(cmdtext, "/info"))
- {
- SendClientMessage(playerid, 0x33CCFFAA, "This is a TDM server, you must");
- SendClientMessage(playerid, 0x33CCFFAA, "kill the players of the other team");
- SendClientMessage(playerid, 0xAA3333AA, "Rules: DO NOT TEAMKILL!!Don`t use bugs ");
- SendClientMessage(playerid, 0xAA3333AA, "Don`t cheat (if you cheat you get banned)");
- return 1;
- }
- if (strcmp(cmdtext, "/topen", true) == 0)
- {
- MoveObject(gate_t,-1284.299072, 2440.639160, 78.934196,3.5);
- return 1;
- }
- if (strcmp(cmdtext, "/tclose", true) == 0)
- {
- MoveObject(gate_t,-1284.299072, 2440.639160, 88.934196,3.5);
- return 1;
- }
- if (strcmp("/kill", cmdtext, true) == 0) // /kill ist der Command den man eingeben muss
- {
- SetPlayerHealth(playerid,0.0);
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- public AutoMessage()
- {
- SendClientMessageToAll(0x0AFF0AAA, ">>>>>>>> SERVER MESSAGE <<<<<<<<");
- SendClientMessageToAll(0x0AFF0AAA, "if you need help pls type /help");
- SendClientMessageToAll(0x0AFF0AAA, ">>>>>>>> SERVER MESSAGE END <<<<<<<<");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement