Szerző Téma: Pls Szerver hiba :S  (Megtekintve 652 alkalommal)

Pls Szerver hiba :S
« Dátum: 2011. október 27. - 19:24:23 »
0 Show voters
Hello all !
Nem tudom mi lehet a hiba!
[pawn]C:\\Users\\Admin\\Desktop\\New Server\\gamemodes\\Driftv2.pwn(637 -- 638) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
1 Error.[/pawn]

Pls Szerver hiba :S
« Válasz #1 Dátum: 2011. október 27. - 19:27:23 »
0 Show voters
Másold be a hibás sorokat

Pls Szerver hiba :S
« Válasz #2 Dátum: 2011. október 27. - 19:35:51 »
0 Show voters
[pawn]///////////////////Magyarosítatta : Game94///////////////////
///////////////////http://www.sa-mp.hu///////////////////
#include <a_samp>
#define SPECIAL_ACTION_PISSING 68
new Count = 5;
new CountText[5][5] ={
\"~r~1\",
\"~r~2\",
\"~r~3\",
\"~b~4\",
\"~b~5\"
};
forward NitroReset();
forward CountDown();
main()
{
print(\"\\n----------------------------------\");
print(\" Drift Mod v2  \");
print(\"----------------------------------\\n\");
}
public OnGameModeInit()
{
SetGameModeText(\"OFFICIAL Drift\");
UsePlayerPedAnims();
SetTimer(\"NitroReset\", 1500, 1);
// /spawn objects
CreateObject(978, -2624.338135, -511.516113, 71.084991, 0.0000, 356.5623, 340.2330);
CreateObject(978, -2631.660156, -506.691833, 70.569450, 0.0000, 356.5623, 312.7310);
CreateObject(978, -2636.554199, -499.355560, 70.092461, 0.0000, 356.5623, 294.6829);
CreateObject(978, -2638.313721, -491.450226, 69.652885, 0.0000, 357.4217, 269.7592);
CreateObject(978, -2636.594482, -483.244507, 69.300064, 0.0000, 357.4217, 247.4139);
CreateObject(978, -2632.248779, -475.968201, 68.927811, 0.0000, 357.4217, 231.0845);
CreateObject(978, -2625.877930, -469.863556, 68.583733, 0.0000, 357.4217, 216.4740);
CreateObject(979, -2465.929199, -481.752502, 101.897621, 0.0000, 11.1727, 148.6828);
CreateObject(979, -2473.151123, -477.466064, 100.151520, 0.0000, 11.1727, 150.4017);
CreateObject(979, -2481.361816, -473.737915, 98.377419, 0.0000, 11.1727, 160.7149);
CreateObject(979, -2489.979004, -470.997162, 96.693848, 0.0000, 11.1727, 162.4338);
CreateObject(979, -2498.539551, -470.178589, 94.905067, 0.0000, 11.1727, 186.4982);
CreateObject(979, -2506.923096, -472.154053, 92.946205, 3.4377, 14.6104, 199.3899);
CreateObject(979, -2514.556152, -475.154907, 90.752083, 3.4377, 15.4699, 201.9682);
CreateObject(979, -2521.949219, -478.204590, 87.665649, 3.4377, 26.6425, 200.2493);
CreateObject(979, -2330.550049, -470.462189, 79.728493, 0.0000, 0.0000, 29.3250);
CreateObject(979, -2323.130371, -465.513580, 79.773842, 0.0000, 0.0000, 37.9193);
CreateObject(979, -2316.891113, -458.915802, 79.762894, 0.0000, 0.0000, 55.1081);
CreateObject(979, -2313.607910, -450.901245, 79.785980, 0.0000, 0.0000, 80.0317);
CreateObject(979, -2313.156982, -441.980225, 79.634766, 0.0000, 0.8594, 94.6421);
CreateObject(979, -2314.904053, -433.628387, 79.464996, 0.0000, 0.8594, 108.3931);
CreateObject(979, -2319.110352, -425.838104, 79.349098, 0.0000, 0.8594, 129.0196);
CreateObject(979, -2325.498779, -419.877441, 79.266541, 0.0000, 0.8594, 144.4896);
CreateObject(979, -2336.497559, -473.808929, 79.739365, 0.0000, 0.0000, 29.3250);
CreateObject(979, -2664.465088, -392.375885, 31.175024, 0.0000, 5.1566, 217.5417);
CreateObject(979, -2670.197998, -398.160004, 30.904448, 3.4377, 359.1406, 232.1522);
CreateObject(979, -2675.139893, -405.417847, 31.026110, 3.4377, 359.1406, 239.0276);
CreateObject(979, -2679.128906, -412.791656, 31.203415, 3.4377, 359.1406, 244.1842);
CreateObject(979, -2681.704590, -419.724579, 31.382483, 3.4377, 359.1406, 253.6379);
CreateObject(979, -2683.205078, -427.795837, 31.309017, 3.4377, 1.7189, 264.8105);
CreateObject(979, -2683.987793, -436.645905, 30.635593, 3.4377, 6.8755, 264.8105);
CreateObject(979, -2684.154297, -445.465729, 29.581474, 3.4377, 6.8755, 272.5454);
CreateObject(979, -2683.041504, -453.955780, 28.553427, 3.4377, 6.8755, 281.1396);
CreateObject(979, -2681.471680, -462.399902, 27.411390, 3.4377, 6.8755, 278.5614);
CreateObject(979, -2679.982422, -471.095154, 25.878973, 3.4377, 12.0321, 278.5614);
CreateObject(979, -2678.268311, -479.335327, 24.121510, 3.4377, 12.0321, 283.7179);
CreateObject(979, -2676.173096, -487.480072, 22.154007, 3.4377, 14.6104, 283.7179);
CreateObject(979, -2675.179443, -496.338104, 20.397610, 3.4377, 6.8755, 268.2482);
CreateObject(979, -2676.402344, -504.946472, 19.361185, 3.4377, 6.8755, 255.3567);
CreateObject(979, -2679.823242, -512.883606, 18.255365, 3.4377, 6.8755, 238.1682);
CreateObject(981, -2404.848877, -628.737976, 132.222321, 0.0000, 0.0000, 221.7348);
CreateObject(981, -2403.986816, -629.670593, 131.672150, 0.0000, 0.0000, 46.5135);
CreateObject(1655, -2389.113770, -585.571533, 131.942413, 0.0000, 0.0000, 304.9961);
CreateObject(11492, -2530.615479, -619.460388, 131.558182, 0.0000, 0.0000, 180.4817);
CreateObject(11492, -2530.790527, -607.038513, 131.558182, 0.0000, 0.0000, 180.4817);
CreateObject(11492, -2506.778564, -637.372009, 134.041183, 0.0000, 347.1084, 269.0036);
CreateObject(11492, -2494.493896, -637.584656, 134.195129, 0.0000, 347.1084, 269.0036);
CreateObject(3361, -2512.908936, -613.120544, 133.086502, 0.0000, 0.0000, 0.0000);
CreateObject(3361, -2516.457031, -613.114136, 135.463486, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2346.811523, -669.824036, 116.967888, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2356.594727, -730.293396, 102.611710, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2352.710938, -735.254028, 101.320892, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2355.760986, -772.863525, 95.004997, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2335.926270, -789.889465, 92.487320, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2321.383301, -791.801208, 91.623909, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2321.306885, -779.476013, 91.008995, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2290.593750, -774.175659, 86.148491, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2232.549805, -742.136536, 65.139000, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2222.037842, -735.790344, 63.533886, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2211.433105, -755.236145, 62.576210, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2194.405273, -786.468384, 60.561111, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2432.543945, -573.415100, 128.649734, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2436.627686, -562.354858, 126.765900, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2435.107666, -563.167725, 126.724449, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2434.061279, -566.399353, 127.496361, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2433.168457, -569.445679, 128.011353, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2439.081055, -554.979492, 124.576668, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2440.281006, -541.304321, 120.242805, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2443.743896, -526.236755, 114.718788, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2446.544434, -504.126648, 108.886124, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2461.782959, -548.678650, 120.557861, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2463.970215, -541.625366, 118.102066, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2460.751465, -552.407532, 122.213783, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2458.837158, -557.203674, 123.883751, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2456.731934, -561.042053, 124.998390, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2454.139160, -565.102173, 126.391838, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2453.266846, -567.670898, 127.205391, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2452.860352, -569.965454, 127.530212, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2452.283936, -571.757446, 127.645149, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2450.127686, -575.692993, 128.351105, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2448.653076, -579.336670, 129.047714, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2443.720215, -589.550354, 130.365433, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2447.055664, -582.961426, 129.211273, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2445.383789, -585.975281, 129.774673, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2430.869629, -576.790588, 129.286194, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2429.068115, -579.688232, 129.892532, 0.0000, 0.0000, 0.0000);
CreateObject(648, -2425.464355, -585.273376, 124.852509, 6.0161, 337.6546, 114.3050);
CreateObject(648, -2400.017578, -619.689026, 126.501328, 6.0161, 337.6546, 276.7383);
CreateObject(648, -2418.878418, -582.856873, 127.602440, 6.0161, 337.6546, 102.3766);
CreateObject(648, -2413.400879, -579.205017, 128.757996, 6.0161, 337.6546, 102.3766);
CreateObject(648, -2397.188232, -616.684448, 129.332458, 6.0161, 337.6546, 267.3882);
CreateObject(648, -2393.327637, -614.367554, 131.008392, 6.0161, 337.6546, 267.3882);
CreateObject(7073, -2628.379639, -513.730164, 87.594391, 0.0000, 0.0000, 32.6586);
CreateObject(7392, -2317.645996, -462.017670, 87.535011, 0.0000, 0.0000, 329.0603);
CreateObject(7392, -2787.494873, -500.062103, 14.417306, 0.0000, 0.0000, 327.3414);
CreateObject(7392, -2771.606445, -481.490570, 14.431409, 0.0000, 0.0000, 146.1043);
CreateObject(6112, -2719.251709, -474.652252, 2.932843, 0.0000, 0.0000, 0.0000);
CreateObject(6112, -2699.921875, -472.701599, 2.806348, 0.0000, 0.0000, 0.0000);
CreateObject(6112, -2737.353516, -470.740509, 2.877075, 0.0000, 0.0000, 0.0000);
CreateObject(6112, -2752.378174, -480.113647, 2.893299, 0.0000, 0.0000, 0.0000);
AddPlayerClass(1,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(7,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(12,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(13,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(19,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(21,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(23,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(28,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(29,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(34,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(41,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(44,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(46,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(47,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(49,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(55,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(59,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(60,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(56,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(67,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(73,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(78,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(87,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(85,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(93,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(100,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(102,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(104,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(106,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(107,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(108,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(113,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(114,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(115,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(116,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(122,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(123,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(126,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(133,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(134,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(152,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(174,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(175,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(176,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(177,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(180,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(181,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(184,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(185,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(188,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(191,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(192,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(193,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(194,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(195,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(206,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(209,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(217,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(237,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(241,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(250,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(255,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(265,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(271,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(270,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(285,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(291,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(292,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(293,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(294,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(296,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(297,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(298,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(299,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(264,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
    AddStaticVehicle(562,-2393.5720,-569.6004,131.7755,260.8946,12,15);
    AddStaticVehicle(562,-2375.3428,-584.9229,131.7719,197.1899,12,15);
    AddStaticVehicle(562,-2373.3203,-597.9933,131.7737,157.0784,12,15);
    AddStaticVehicle(562,-2379.4275,-605.4179,131.7747,122.0522,12,15);
    AddStaticVehicle(562,-2421.3772,-633.0546,132.4667,308.6672,12,15);
    AddStaticVehicle(562,-2423.7639,-629.4011,132.4830,310.9774,12,15);
    AddStaticVehicle(562,-2427.5767,-626.2247,132.4773,305.7086,12,15);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerUpdate(playerid)
{
    SetPlayerScore(playerid, GetPlayerMoney(playerid));
    return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
    ApplyAnimation(playerid, \"ON_LOOKERS\", \"wave_loop\", 4.0, 1, 0, 0, 0, 0); // Wave
SetPlayerPos(playerid, -2378.4517,-577.8433,132.1117);
SetPlayerCameraPos(playerid, -2383.9990,-581.5485,132.1172);
SetPlayerCameraLookAt(playerid, -2381.6833,-579.9197,132.1172);
return 1;
}
public NitroReset()
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
    if(!IsPlayerInInvalidNosVehicle(i,GetPlayerVehicleID(i)))
   {
              new vehicle = GetPlayerVehicleID(i);
                AddVehicleComponent(vehicle, 1010);
   }
}
}
IsPlayerInInvalidNosVehicle(playerid,vehicleid)
{
    #define MAX_INVALID_NOS_VEHICLES 29
    new InvalidNosVehicles[MAX_INVALID_NOS_VEHICLES] =
    {
581,523,462,521,463,522,461,448,468,586,
509,481,510,472,473,493,595,484,430,453,
452,446,454,590,569,537,538,570,449
    };
    vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInVehicle(playerid,vehicleid))
    {
   for(new i = 0; i < MAX_INVALID_NOS_VEHICLES; i++)
   {
       if(GetVehicleModel(vehicleid) == InvalidNosVehicles)

       {


           return true;


       }


   }


    }


    return false;


}


public OnPlayerConnect(playerid)


{


    GivePlayerMoney(playerid, 0);


    new pName[30], string[128];


    GetPlayerName(playerid, pName, 30);


    format(string, 256, \"{ff0000}OFFICIAL SERVER:%s has connected to the server.\", pName);


    SendClientMessageToAll(0x33AA33AA,string);


    SendClientMessage(playerid, 0x33CCFFAA, \"Use /help to view all commands\");


return 1;


}


public OnPlayerDisconnect(playerid, reason)


{


    new pName[30], string[128];


    GetPlayerName(playerid, pName, 30);


    format(string, 256, \"{ff0000}OFFICIAL SERVER:%s has left the server.\", pName);


    SendClientMessageToAll(0xA52A2AAA,string);


      return 1;


}


public CountDown(){


    if (Count > 0){


    GameTextForAll( CountText[Count-1], 2500, 3);


    Count--;


    SetTimer(\"Visszaszámlálás\", 1000, 0);


    }


    else{


    GameTextForAll(\"~g~Go Go Go!!!\", 2500, 3);


    Count = 5;


    }


    return 1;


}


public OnPlayerSpawn(playerid)


{


    SetPlayerHealth(playerid,9000.0);


    SendClientMessage(playerid, 0x33AA33AA, \"You are spawned!\");


return 1;


}


public OnPlayerDeath(playerid, killerid, reason)


{


    GameTextForPlayer(playerid,\"~w~HA HA! You DEAD\",1000,1);


    return 1;


}


public OnPlayerCommandText(playerid, cmdtext[])


{


    if (strcmp(\"/help\", cmdtext, true, 10) == 0){


        SendClientMessage(playerid, 0x33AA33AA, \"===========Command /cmd=====================\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/kill /beer /ciggy /lock /unlock /sprunk\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/wine /anims /fr /teles /parachute\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/credits /flip /count\");


        SendClientMessage(playerid, 0x33AA33AA, \"============================================\");


   return 1;


}


if (strcmp(cmdtext, \"/count\", true)==0)


{


if(Count >= 5)


    {


    SendClientMessageToAll(0x33AA33AA, \"Countdown has begun!\");


    CountDown();


       return 1;


       }


       else


    {


    SendClientMessage(playerid, 0xAA3333AA, \"The countdown has been going!\");


    return 1;


       }


}


if (strcmp(\"/flip\", cmdtext, true, 10) == 0) {


   if (IsPlayerInAnyVehicle(playerid)) {


   new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle;   GetPlayerPos(playerid, X, Y, Z);    VehicleID = GetPlayerVehicleID(playerid);


   GetVehicleZAngle(VehicleID, Angle);


   SetVehiclePos(VehicleID, X, Y, Z);


   SetVehicleZAngle(VehicleID, Angle);


   SendClientMessage(playerid, 0x33AA33AA,\"Vehicle Flipped!\");


   } else {


   SendClientMessage(playerid,0xAA3333AA,\"Vehicle?!\");


    return 1;


}}


if (strcmp(\"/anims\", cmdtext, true, 10) == 0){


        SendClientMessage(playerid, 0x33AA33AA, \"===========Command /anims===========================\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/lay /robman /masturb /handsup /wave /waterjump /eat\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/taichi /cower /sitdown /finger /boxing /talk\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/slapass /roll /pee /phone /dances /stopanim\");


        SendClientMessage(playerid, 0x33AA33AA, \"====================================================\");


   return 1;


}


if (strcmp(\"/credits\", cmdtext, true, 10) == 0){


        SendClientMessage(playerid, 0x33AA33AA, \"===========Command /credits==========================\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Animations - BlockDoriftar\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Teleports - BlockDoriftar\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Gamemode - BlockDoriftar\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Stuff - BlockDoriftar\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Drift Points Counter - BlockDoriftar\");


        SendClientMessage(playerid, 0x33AA33AA, \"=====================================================\");


   return 1;


}


if (strcmp(\"/teles\", cmdtext, true, 10) == 0){


        SendClientMessage(playerid, 0x33AA33AA, \"===========Command /teles============================\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/spawn /drift1 /drift2 /drift3 /drift4 /drift5 /drift6\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/drift7 /drift8 /drift9 /tune /tune2\");


        SendClientMessage(playerid, 0x33AA33AA, \"=====================================================\");


   return 1;


}


    if(strcmp(cmdtext, \"/spawn\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-2423.2783,-609.5183,132.5589);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 310.2000);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-2423.2783,-609.5183,132.5589);


        SetPlayerFacingAngle(playerid, 310.2000);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-2423.2783,-609.5183,132.5589);


        SetPlayerFacingAngle(playerid, 310.2000);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift1\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-57.5438,-1414.3257,11.4271);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 291.0222);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-57.5438,-1414.3257,11.4271);


        SetPlayerFacingAngle(playerid, 291.0222);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-57.5438,-1414.3257,11.4271);


        SetPlayerFacingAngle(playerid, 291.0222);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift2\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),1257.6019,-2027.8704,59.1490);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,1257.6019,-2027.8704,59.1490);


        SetPlayerFacingAngle(playerid, 270.4951);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,1257.6019,-2027.8704,59.1490);


        SetPlayerFacingAngle(playerid, 270.4951);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift3\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2717.1382,-1508.3368,29.9331);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 85.9511);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2717.1382,-1508.3368,29.9331);


        SetPlayerFacingAngle(playerid, 85.9511);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2717.1382,-1508.3368,29.9331);


        SetPlayerFacingAngle(playerid, 85.9511);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift4\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2806.3691,-1438.4415,39.7021);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 175.6523);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2806.3691,-1438.4415,39.7021);


        SetPlayerFacingAngle(playerid, 175.6523);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2806.3691,-1438.4415,39.7021);


        SetPlayerFacingAngle(playerid, 175.6523);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift5\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2499.1069,1272.4935,10.4722);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 2.2395);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2499.1069,1272.4935,10.4722);


        SetPlayerFacingAngle(playerid, 2.2395);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2499.1069,1272.4935,10.4722);


        SetPlayerFacingAngle(playerid, 2.2395);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift6\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2328.7517,1399.8760,42.4814);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 359.4778);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2328.7517,1399.8760,42.4814);


        SetPlayerFacingAngle(playerid, 359.4778);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2328.7517,1399.8760,42.4814);


        SetPlayerFacingAngle(playerid, 359.4778);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift7\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2259.6487,1963.1309,31.4394);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 274.0729);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2259.6487,1963.1309,31.4394);


        SetPlayerFacingAngle(playerid, 274.0729);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2259.6487,1963.1309,31.4394);


        SetPlayerFacingAngle(playerid, 274.0729);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift8\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-312.2921,1540.4182,75.2216);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 207.1619);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-312.2921,1540.4182,75.2216);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-312.2921,1540.4182,75.2216);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift9\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-493.1131,1989.2092,59.8513);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 319.3545);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-493.1131,1989.2092,59.8513);


        SetPlayerFacingAngle(playerid, 319.3545);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-493.1131,1989.2092,59.8513);


        SetPlayerFacingAngle(playerid, 319.3545);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/tune\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-2721.7175,217.3232,4.1266);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 90.0000);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-2721.7175,217.3232,4.1266);


        SetPlayerFacingAngle(playerid, 90.0000);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-2721.7175,217.3232,4.1266);


        SetPlayerFacingAngle(playerid, 90.0000);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/tune2\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-1935.7684,236.3854,33.9708);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 1.3517);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-1935.7684,236.3854,33.9708);


        SetPlayerFacingAngle(playerid, 1.3517);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-1935.7684,236.3854,33.9708);


        SetPlayerFacingAngle(playerid, 1.3517);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


if (strcmp(\"/kill\", cmdtext, true, 10) == 0){


   SendClientMessage(playerid, \"You can not kill yourself\"


   return 1;


}


if (strcmp(\"/camera\", cmdtext, true, 10) == 0){


        GivePlayerWeapon(playerid, 43, 70);


   return 1;


}


if (!strcmp(\"/fr\", cmdtext))


    {


        if(IsPlayerInAnyVehicle(playerid))


        {


        RepairVehicle(GetPlayerVehicleID(playerid));


        SendClientMessage(playerid, 0x33AA33AA, \"Az autód sikeresen megjavítva!\");


        }


        else SendClientMessage(playerid, 0xAA3333AA, \"Nem vagy autóban!\");


        return 1;


    }


    if (strcmp(cmdtext, \"/beer\", true)==0){


        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);


        return 1;


}


if (strcmp(cmdtext, \"/wine\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DRINK_WINE );


       return 1;


}


if (strcmp(cmdtext, \"/sprunk\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DRINK_SPRUNK );


       return 1;


}


    if (strcmp(cmdtext, \"/ciggy\", true)==0){


        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);


        return 1;


}


{


    if (strcmp(cmdtext, \"/lay\", true)==0){


        ApplyAnimation(playerid,\"BEACH\", \"bather\", 4.0, 1, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/robman\", true)==0){


        ApplyAnimation(playerid, \"SHOP\", \"ROB_Loop_Threat\", 4.0, 1, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/masturb\", true)==0){


        ApplyAnimation(playerid,\"PAULNMAC\", \"wank_loop\", 1.800001, 1, 0, 0, 1, 600);


        return 1;


}


if (strcmp(cmdtext, \"/handsup\", true)==0){


        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);


        return 1;


}


if (strcmp(cmdtext, \"/wave\", true)==0){


        ApplyAnimation(playerid, \"ON_LOOKERS\", \"wave_loop\", 4.0, 1, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/waterjump\", true)==0){


    ApplyAnimation(playerid,\"DAM_JUMP\",\"DAM_LAUNCH\",2,0,1,1,0,0);


        return 1;


}


if (strcmp(cmdtext, \"/taichi\", true)==0){


    ApplyAnimation(playerid,\"PARK\",\"Tai_Chi_Loop\",4.0,1,0,0,0,0);


        return 1;


}


if (strcmp(cmdtext, \"/cower\", true)==0){


    ApplyAnimation(playerid, \"ped\", \"cower\", 3.0, 1, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/sitdown\", true)==0){


    ApplyAnimation(playerid,\"INT_OFFICE\", \"OFF_Sit_Bored_Loop\", 1.800001, 1, 0, 0, 1, 600);


        return 1;


}


if (strcmp(cmdtext, \"/finger\", true)==0){


    ApplyAnimation(playerid,\"ped\", \"fucku\", 4.1, 0, 1, 1, 1, 1 );


        return 1;


}


if (strcmp(cmdtext, \"/boxing\", true)==0){


    ApplyAnimation(playerid,\"GYMNASIUM\", \"GYMshadowbox\", 1.800001, 1, 0, 0, 1, 600);


        return 1;


}


if (strcmp(cmdtext, \"/talk\", true)==0){


    ApplyAnimation(playerid,\"PED\",\"IDLE_CHAT\",4.1,0,1,1,1,1);


        return 1;


}


if (strcmp(cmdtext, \"/slapass\", true)==0){


    ApplyAnimation(playerid, \"SWEET\", \"sweet_ass_slap\", 4.0, 0, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/roll\", true)==0){


    ApplyAnimation(playerid,\"PED\",\"Crouch_Roll_L\",4.1,0,1,1,1,1);


        return 1;


}


if (strcmp(cmdtext, \"/pee\", true)==0){


    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);


        return 1;


}


if (strcmp(cmdtext, \"/phone\", true)==0){


    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);


        return 1;


}


if (strcmp(cmdtext, \"/eat\", true)==0){


    ApplyAnimation(playerid, \"FOOD\", \"EAT_Burger\", 3.0, 0, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/dance1\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE1);


       return 1;


}


if (strcmp(cmdtext, \"/dance2\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE2);


       return 1;


}


if (strcmp(cmdtext, \"/dance3\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE3);


       return 1;


}


if (strcmp(cmdtext, \"/dance4\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE4);


       return 1;


}


if (strcmp(cmdtext, \"/dances\", true) == 0)


{


        SendClientMessage(playerid, 0x33AA33AA, \"========Command /dances========\");


       SendClientMessage(playerid, 0xFFFFFFAA, \"/dance1 /dance2 /dance3 /dance4\");


       SendClientMessage(playerid, 0x33AA33AA, \"===============================\");


       return 1;


}


if (strcmp(cmdtext, \"/stopanim\", true) == 0){


       ClearAnimations(playerid);


       return 1;


}


new vehicleid = GetPlayerVehicleID(playerid);


if (strcmp(cmdtext, \"/lock\", true) == 0)


    {


   if(IsPlayerInAnyVehicle(playerid))


   {


   new Stat5 ;


   Stat5=GetPlayerState(playerid);


   if(Stat5!=PLAYER_STATE_DRIVER)


   {


   SendClientMessage(playerid,0xAA3333AA,\"Only the driver can lock the car!\");


   return 1;


   }


   new i;


   for(i=0;i<MAX_PLAYERS;i++)


   {


   if(i != playerid)


   {


   SetVehicleParamsForPlayer(vehicleid,i, 0, 1);


   }


   }


   SendClientMessage(playerid, 0x33AA33AA, \"Vehicle Locked!\");


   }


   else


   {


   SendClientMessage(playerid, 0xAA3333AA, \"You do not have vehicles!\");


   }


    return 1;


}


    if (strcmp(cmdtext, \"/unlock\", true)==0)


{


   if(IsPlayerInAnyVehicle(playerid))


   {


      new Stat6 ;


      Stat6 = GetPlayerState(playerid);


      if(Stat6!=PLAYER_STATE_DRIVER)


      {


            SendClientMessage(playerid,0xAA3333AA,\"Only the driver can open the vehicle!\");


      return 1;


      }


      new i;


      for(i=0;i<MAX_PLAYERS;i++)


      {


         SetVehicleParamsForPlayer(vehicleid,i, 0, 0);


      }


      SendClientMessage(playerid, 0x33AA33AA, \"Vehicles Unlocked\");


   }


   else


   {


      SendClientMessage(playerid, 0xAA3333AA, \"You do not have vehicles!\");


   }


       return 1;


}


return 0;


}


}[/pawn]


Keresd meg lécci


Amennyire én értek a pawno-hoz :D

Pls Szerver hiba :S
« Válasz #3 Dátum: 2011. október 27. - 19:38:09 »
+1 Show voters
[pawn]///////////////////Magyarosítatta : Game94///////////////////
///////////////////http://www.sa-mp.hu///////////////////
#include <a_samp>
#define SPECIAL_ACTION_PISSING 68
new Count = 5;
new CountText[5][5] ={
\"~r~1\",
\"~r~2\",
\"~r~3\",
\"~b~4\",
\"~b~5\"
};
forward NitroReset();
forward CountDown();
main()
{
print(\"\\n----------------------------------\");
print(\" Drift Mod v2  \");
print(\"----------------------------------\\n\");
}
public OnGameModeInit()
{
SetGameModeText(\"OFFICIAL Drift\");
UsePlayerPedAnims();
SetTimer(\"NitroReset\", 1500, 1);
// /spawn objects
CreateObject(978, -2624.338135, -511.516113, 71.084991, 0.0000, 356.5623, 340.2330);
CreateObject(978, -2631.660156, -506.691833, 70.569450, 0.0000, 356.5623, 312.7310);
CreateObject(978, -2636.554199, -499.355560, 70.092461, 0.0000, 356.5623, 294.6829);
CreateObject(978, -2638.313721, -491.450226, 69.652885, 0.0000, 357.4217, 269.7592);
CreateObject(978, -2636.594482, -483.244507, 69.300064, 0.0000, 357.4217, 247.4139);
CreateObject(978, -2632.248779, -475.968201, 68.927811, 0.0000, 357.4217, 231.0845);
CreateObject(978, -2625.877930, -469.863556, 68.583733, 0.0000, 357.4217, 216.4740);
CreateObject(979, -2465.929199, -481.752502, 101.897621, 0.0000, 11.1727, 148.6828);
CreateObject(979, -2473.151123, -477.466064, 100.151520, 0.0000, 11.1727, 150.4017);
CreateObject(979, -2481.361816, -473.737915, 98.377419, 0.0000, 11.1727, 160.7149);
CreateObject(979, -2489.979004, -470.997162, 96.693848, 0.0000, 11.1727, 162.4338);
CreateObject(979, -2498.539551, -470.178589, 94.905067, 0.0000, 11.1727, 186.4982);
CreateObject(979, -2506.923096, -472.154053, 92.946205, 3.4377, 14.6104, 199.3899);
CreateObject(979, -2514.556152, -475.154907, 90.752083, 3.4377, 15.4699, 201.9682);
CreateObject(979, -2521.949219, -478.204590, 87.665649, 3.4377, 26.6425, 200.2493);
CreateObject(979, -2330.550049, -470.462189, 79.728493, 0.0000, 0.0000, 29.3250);
CreateObject(979, -2323.130371, -465.513580, 79.773842, 0.0000, 0.0000, 37.9193);
CreateObject(979, -2316.891113, -458.915802, 79.762894, 0.0000, 0.0000, 55.1081);
CreateObject(979, -2313.607910, -450.901245, 79.785980, 0.0000, 0.0000, 80.0317);
CreateObject(979, -2313.156982, -441.980225, 79.634766, 0.0000, 0.8594, 94.6421);
CreateObject(979, -2314.904053, -433.628387, 79.464996, 0.0000, 0.8594, 108.3931);
CreateObject(979, -2319.110352, -425.838104, 79.349098, 0.0000, 0.8594, 129.0196);
CreateObject(979, -2325.498779, -419.877441, 79.266541, 0.0000, 0.8594, 144.4896);
CreateObject(979, -2336.497559, -473.808929, 79.739365, 0.0000, 0.0000, 29.3250);
CreateObject(979, -2664.465088, -392.375885, 31.175024, 0.0000, 5.1566, 217.5417);
CreateObject(979, -2670.197998, -398.160004, 30.904448, 3.4377, 359.1406, 232.1522);
CreateObject(979, -2675.139893, -405.417847, 31.026110, 3.4377, 359.1406, 239.0276);
CreateObject(979, -2679.128906, -412.791656, 31.203415, 3.4377, 359.1406, 244.1842);
CreateObject(979, -2681.704590, -419.724579, 31.382483, 3.4377, 359.1406, 253.6379);
CreateObject(979, -2683.205078, -427.795837, 31.309017, 3.4377, 1.7189, 264.8105);
CreateObject(979, -2683.987793, -436.645905, 30.635593, 3.4377, 6.8755, 264.8105);
CreateObject(979, -2684.154297, -445.465729, 29.581474, 3.4377, 6.8755, 272.5454);
CreateObject(979, -2683.041504, -453.955780, 28.553427, 3.4377, 6.8755, 281.1396);
CreateObject(979, -2681.471680, -462.399902, 27.411390, 3.4377, 6.8755, 278.5614);
CreateObject(979, -2679.982422, -471.095154, 25.878973, 3.4377, 12.0321, 278.5614);
CreateObject(979, -2678.268311, -479.335327, 24.121510, 3.4377, 12.0321, 283.7179);
CreateObject(979, -2676.173096, -487.480072, 22.154007, 3.4377, 14.6104, 283.7179);
CreateObject(979, -2675.179443, -496.338104, 20.397610, 3.4377, 6.8755, 268.2482);
CreateObject(979, -2676.402344, -504.946472, 19.361185, 3.4377, 6.8755, 255.3567);
CreateObject(979, -2679.823242, -512.883606, 18.255365, 3.4377, 6.8755, 238.1682);
CreateObject(981, -2404.848877, -628.737976, 132.222321, 0.0000, 0.0000, 221.7348);
CreateObject(981, -2403.986816, -629.670593, 131.672150, 0.0000, 0.0000, 46.5135);
CreateObject(1655, -2389.113770, -585.571533, 131.942413, 0.0000, 0.0000, 304.9961);
CreateObject(11492, -2530.615479, -619.460388, 131.558182, 0.0000, 0.0000, 180.4817);
CreateObject(11492, -2530.790527, -607.038513, 131.558182, 0.0000, 0.0000, 180.4817);
CreateObject(11492, -2506.778564, -637.372009, 134.041183, 0.0000, 347.1084, 269.0036);
CreateObject(11492, -2494.493896, -637.584656, 134.195129, 0.0000, 347.1084, 269.0036);
CreateObject(3361, -2512.908936, -613.120544, 133.086502, 0.0000, 0.0000, 0.0000);
CreateObject(3361, -2516.457031, -613.114136, 135.463486, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2346.811523, -669.824036, 116.967888, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2356.594727, -730.293396, 102.611710, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2352.710938, -735.254028, 101.320892, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2355.760986, -772.863525, 95.004997, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2335.926270, -789.889465, 92.487320, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2321.383301, -791.801208, 91.623909, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2321.306885, -779.476013, 91.008995, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2290.593750, -774.175659, 86.148491, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2232.549805, -742.136536, 65.139000, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2222.037842, -735.790344, 63.533886, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2211.433105, -755.236145, 62.576210, 0.0000, 0.0000, 0.0000);
CreateObject(1225, -2194.405273, -786.468384, 60.561111, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2432.543945, -573.415100, 128.649734, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2436.627686, -562.354858, 126.765900, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2435.107666, -563.167725, 126.724449, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2434.061279, -566.399353, 127.496361, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2433.168457, -569.445679, 128.011353, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2439.081055, -554.979492, 124.576668, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2440.281006, -541.304321, 120.242805, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2443.743896, -526.236755, 114.718788, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2446.544434, -504.126648, 108.886124, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2461.782959, -548.678650, 120.557861, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2463.970215, -541.625366, 118.102066, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2460.751465, -552.407532, 122.213783, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2458.837158, -557.203674, 123.883751, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2456.731934, -561.042053, 124.998390, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2454.139160, -565.102173, 126.391838, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2453.266846, -567.670898, 127.205391, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2452.860352, -569.965454, 127.530212, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2452.283936, -571.757446, 127.645149, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2450.127686, -575.692993, 128.351105, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2448.653076, -579.336670, 129.047714, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2443.720215, -589.550354, 130.365433, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2447.055664, -582.961426, 129.211273, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2445.383789, -585.975281, 129.774673, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2430.869629, -576.790588, 129.286194, 0.0000, 0.0000, 0.0000);
CreateObject(618, -2429.068115, -579.688232, 129.892532, 0.0000, 0.0000, 0.0000);
CreateObject(648, -2425.464355, -585.273376, 124.852509, 6.0161, 337.6546, 114.3050);
CreateObject(648, -2400.017578, -619.689026, 126.501328, 6.0161, 337.6546, 276.7383);
CreateObject(648, -2418.878418, -582.856873, 127.602440, 6.0161, 337.6546, 102.3766);
CreateObject(648, -2413.400879, -579.205017, 128.757996, 6.0161, 337.6546, 102.3766);
CreateObject(648, -2397.188232, -616.684448, 129.332458, 6.0161, 337.6546, 267.3882);
CreateObject(648, -2393.327637, -614.367554, 131.008392, 6.0161, 337.6546, 267.3882);
CreateObject(7073, -2628.379639, -513.730164, 87.594391, 0.0000, 0.0000, 32.6586);
CreateObject(7392, -2317.645996, -462.017670, 87.535011, 0.0000, 0.0000, 329.0603);
CreateObject(7392, -2787.494873, -500.062103, 14.417306, 0.0000, 0.0000, 327.3414);
CreateObject(7392, -2771.606445, -481.490570, 14.431409, 0.0000, 0.0000, 146.1043);
CreateObject(6112, -2719.251709, -474.652252, 2.932843, 0.0000, 0.0000, 0.0000);
CreateObject(6112, -2699.921875, -472.701599, 2.806348, 0.0000, 0.0000, 0.0000);
CreateObject(6112, -2737.353516, -470.740509, 2.877075, 0.0000, 0.0000, 0.0000);
CreateObject(6112, -2752.378174, -480.113647, 2.893299, 0.0000, 0.0000, 0.0000);
AddPlayerClass(1,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(7,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(12,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(13,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(19,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(21,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(23,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(28,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(29,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(34,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(41,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(44,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(46,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(47,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(49,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(55,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(59,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(60,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(56,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(67,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(73,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(78,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(87,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(85,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(93,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(100,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(102,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(104,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(106,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(107,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(108,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(113,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(114,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(115,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(116,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(122,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(123,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(126,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(133,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(134,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(152,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(174,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(175,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(176,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(177,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(180,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(181,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(184,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(185,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(188,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(191,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(192,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(193,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(194,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(195,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(206,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(209,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(217,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(237,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(241,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(250,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(255,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(265,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(271,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(270,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(285,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(291,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(292,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(293,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(294,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(296,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(297,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(298,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(299,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(264,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
    AddStaticVehicle(562,-2393.5720,-569.6004,131.7755,260.8946,12,15);
    AddStaticVehicle(562,-2375.3428,-584.9229,131.7719,197.1899,12,15);
    AddStaticVehicle(562,-2373.3203,-597.9933,131.7737,157.0784,12,15);
    AddStaticVehicle(562,-2379.4275,-605.4179,131.7747,122.0522,12,15);
    AddStaticVehicle(562,-2421.3772,-633.0546,132.4667,308.6672,12,15);
    AddStaticVehicle(562,-2423.7639,-629.4011,132.4830,310.9774,12,15);
    AddStaticVehicle(562,-2427.5767,-626.2247,132.4773,305.7086,12,15);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerUpdate(playerid)
{
    SetPlayerScore(playerid, GetPlayerMoney(playerid));
    return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
    ApplyAnimation(playerid, \"ON_LOOKERS\", \"wave_loop\", 4.0, 1, 0, 0, 0, 0); // Wave
SetPlayerPos(playerid, -2378.4517,-577.8433,132.1117);
SetPlayerCameraPos(playerid, -2383.9990,-581.5485,132.1172);
SetPlayerCameraLookAt(playerid, -2381.6833,-579.9197,132.1172);
return 1;
}
public NitroReset()
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
    if(!IsPlayerInInvalidNosVehicle(i,GetPlayerVehicleID(i)))
   {
              new vehicle = GetPlayerVehicleID(i);
                AddVehicleComponent(vehicle, 1010);
   }
}
}
IsPlayerInInvalidNosVehicle(playerid,vehicleid)
{
    #define MAX_INVALID_NOS_VEHICLES 29
    new InvalidNosVehicles[MAX_INVALID_NOS_VEHICLES] =
    {
581,523,462,521,463,522,461,448,468,586,
509,481,510,472,473,493,595,484,430,453,
452,446,454,590,569,537,538,570,449
    };
    vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInVehicle(playerid,vehicleid))
    {
   for(new i = 0; i < MAX_INVALID_NOS_VEHICLES; i++)
   {
       if(GetVehicleModel(vehicleid) == InvalidNosVehicles)

       {


           return true;


       }


   }


    }


    return false;


}


public OnPlayerConnect(playerid)


{


    GivePlayerMoney(playerid, 0);


    new pName[30], string[128];


    GetPlayerName(playerid, pName, 30);


    format(string, 256, \"{ff0000}OFFICIAL SERVER:%s has connected to the server.\", pName);


    SendClientMessageToAll(0x33AA33AA,string);


    SendClientMessage(playerid, 0x33CCFFAA, \"Use /help to view all commands\");


return 1;


}


public OnPlayerDisconnect(playerid, reason)


{


    new pName[30], string[128];


    GetPlayerName(playerid, pName, 30);


    format(string, 256, \"{ff0000}OFFICIAL SERVER:%s has left the server.\", pName);


    SendClientMessageToAll(0xA52A2AAA,string);


      return 1;


}


public CountDown(){


    if (Count > 0){


    GameTextForAll( CountText[Count-1], 2500, 3);


    Count--;


    SetTimer(\"Visszaszámlálás\", 1000, 0);


    }


    else{


    GameTextForAll(\"~g~Go Go Go!!!\", 2500, 3);


    Count = 5;


    }


    return 1;


}


public OnPlayerSpawn(playerid)


{


    SetPlayerHealth(playerid,9000.0);


    SendClientMessage(playerid, 0x33AA33AA, \"You are spawned!\");


return 1;


}


public OnPlayerDeath(playerid, killerid, reason)


{


    GameTextForPlayer(playerid,\"~w~HA HA! You DEAD\",1000,1);


    return 1;


}


public OnPlayerCommandText(playerid, cmdtext[])


{


    if (strcmp(\"/help\", cmdtext, true, 10) == 0){


        SendClientMessage(playerid, 0x33AA33AA, \"===========Command /cmd=====================\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/kill /beer /ciggy /lock /unlock /sprunk\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/wine /anims /fr /teles /parachute\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/credits /flip /count\");


        SendClientMessage(playerid, 0x33AA33AA, \"============================================\");


   return 1;


}


if (strcmp(cmdtext, \"/count\", true)==0)


{


if(Count >= 5)


    {


    SendClientMessageToAll(0x33AA33AA, \"Countdown has begun!\");


    CountDown();


       return 1;


       }


       else


    {


    SendClientMessage(playerid, 0xAA3333AA, \"The countdown has been going!\");


    return 1;


       }


}


if (strcmp(\"/flip\", cmdtext, true, 10) == 0) {


   if (IsPlayerInAnyVehicle(playerid)) {


   new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle;   GetPlayerPos(playerid, X, Y, Z);    VehicleID = GetPlayerVehicleID(playerid);


   GetVehicleZAngle(VehicleID, Angle);


   SetVehiclePos(VehicleID, X, Y, Z);


   SetVehicleZAngle(VehicleID, Angle);


   SendClientMessage(playerid, 0x33AA33AA,\"Vehicle Flipped!\");


   } else {


   SendClientMessage(playerid,0xAA3333AA,\"Vehicle?!\");


    return 1;


}}


if (strcmp(\"/anims\", cmdtext, true, 10) == 0){


        SendClientMessage(playerid, 0x33AA33AA, \"===========Command /anims===========================\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/lay /robman /masturb /handsup /wave /waterjump /eat\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/taichi /cower /sitdown /finger /boxing /talk\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/slapass /roll /pee /phone /dances /stopanim\");


        SendClientMessage(playerid, 0x33AA33AA, \"====================================================\");


   return 1;


}


if (strcmp(\"/credits\", cmdtext, true, 10) == 0){


        SendClientMessage(playerid, 0x33AA33AA, \"===========Command /credits==========================\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Animations - BlockDoriftar\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Teleports - BlockDoriftar\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Gamemode - BlockDoriftar\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Stuff - BlockDoriftar\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Drift Points Counter - BlockDoriftar\");


        SendClientMessage(playerid, 0x33AA33AA, \"=====================================================\");


   return 1;


}


if (strcmp(\"/teles\", cmdtext, true, 10) == 0){


        SendClientMessage(playerid, 0x33AA33AA, \"===========Command /teles============================\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/spawn /drift1 /drift2 /drift3 /drift4 /drift5 /drift6\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/drift7 /drift8 /drift9 /tune /tune2\");


        SendClientMessage(playerid, 0x33AA33AA, \"=====================================================\");


   return 1;


}


    if(strcmp(cmdtext, \"/spawn\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-2423.2783,-609.5183,132.5589);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 310.2000);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-2423.2783,-609.5183,132.5589);


        SetPlayerFacingAngle(playerid, 310.2000);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-2423.2783,-609.5183,132.5589);


        SetPlayerFacingAngle(playerid, 310.2000);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift1\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-57.5438,-1414.3257,11.4271);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 291.0222);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-57.5438,-1414.3257,11.4271);


        SetPlayerFacingAngle(playerid, 291.0222);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-57.5438,-1414.3257,11.4271);


        SetPlayerFacingAngle(playerid, 291.0222);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift2\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),1257.6019,-2027.8704,59.1490);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,1257.6019,-2027.8704,59.1490);


        SetPlayerFacingAngle(playerid, 270.4951);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,1257.6019,-2027.8704,59.1490);


        SetPlayerFacingAngle(playerid, 270.4951);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift3\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2717.1382,-1508.3368,29.9331);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 85.9511);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2717.1382,-1508.3368,29.9331);


        SetPlayerFacingAngle(playerid, 85.9511);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2717.1382,-1508.3368,29.9331);


        SetPlayerFacingAngle(playerid, 85.9511);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift4\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2806.3691,-1438.4415,39.7021);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 175.6523);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2806.3691,-1438.4415,39.7021);


        SetPlayerFacingAngle(playerid, 175.6523);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2806.3691,-1438.4415,39.7021);


        SetPlayerFacingAngle(playerid, 175.6523);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift5\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2499.1069,1272.4935,10.4722);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 2.2395);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2499.1069,1272.4935,10.4722);


        SetPlayerFacingAngle(playerid, 2.2395);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2499.1069,1272.4935,10.4722);


        SetPlayerFacingAngle(playerid, 2.2395);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift6\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2328.7517,1399.8760,42.4814);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 359.4778);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2328.7517,1399.8760,42.4814);


        SetPlayerFacingAngle(playerid, 359.4778);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2328.7517,1399.8760,42.4814);


        SetPlayerFacingAngle(playerid, 359.4778);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift7\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2259.6487,1963.1309,31.4394);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 274.0729);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2259.6487,1963.1309,31.4394);


        SetPlayerFacingAngle(playerid, 274.0729);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2259.6487,1963.1309,31.4394);


        SetPlayerFacingAngle(playerid, 274.0729);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift8\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-312.2921,1540.4182,75.2216);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 207.1619);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-312.2921,1540.4182,75.2216);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-312.2921,1540.4182,75.2216);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift9\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-493.1131,1989.2092,59.8513);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 319.3545);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-493.1131,1989.2092,59.8513);


        SetPlayerFacingAngle(playerid, 319.3545);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-493.1131,1989.2092,59.8513);


        SetPlayerFacingAngle(playerid, 319.3545);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/tune\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-2721.7175,217.3232,4.1266);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 90.0000);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-2721.7175,217.3232,4.1266);


        SetPlayerFacingAngle(playerid, 90.0000);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-2721.7175,217.3232,4.1266);


        SetPlayerFacingAngle(playerid, 90.0000);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/tune2\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-1935.7684,236.3854,33.9708);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 1.3517);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-1935.7684,236.3854,33.9708);


        SetPlayerFacingAngle(playerid, 1.3517);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-1935.7684,236.3854,33.9708);


        SetPlayerFacingAngle(playerid, 1.3517);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


if (strcmp(\"/kill\", cmdtext, true, 10) == 0){


   SendClientMessage(playerid, 0xFFFF00FF, \"You can not kill yourself\");


   return 1;


}


if (strcmp(\"/camera\", cmdtext, true, 10) == 0){


        GivePlayerWeapon(playerid, 43, 70);


   return 1;


}


if (!strcmp(\"/fr\", cmdtext))


    {


        if(IsPlayerInAnyVehicle(playerid))


        {


        RepairVehicle(GetPlayerVehicleID(playerid));


        SendClientMessage(playerid, 0x33AA33AA, \"Az autód sikeresen megjavítva!\");


        }


        else SendClientMessage(playerid, 0xAA3333AA, \"Nem vagy autóban!\");


        return 1;


    }


    if (strcmp(cmdtext, \"/beer\", true)==0){


        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);


        return 1;


}


if (strcmp(cmdtext, \"/wine\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DRINK_WINE );


       return 1;


}


if (strcmp(cmdtext, \"/sprunk\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DRINK_SPRUNK );


       return 1;


}


    if (strcmp(cmdtext, \"/ciggy\", true)==0){


        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);


        return 1;


}


{


    if (strcmp(cmdtext, \"/lay\", true)==0){


        ApplyAnimation(playerid,\"BEACH\", \"bather\", 4.0, 1, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/robman\", true)==0){


        ApplyAnimation(playerid, \"SHOP\", \"ROB_Loop_Threat\", 4.0, 1, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/masturb\", true)==0){


        ApplyAnimation(playerid,\"PAULNMAC\", \"wank_loop\", 1.800001, 1, 0, 0, 1, 600);


        return 1;


}


if (strcmp(cmdtext, \"/handsup\", true)==0){


        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);


        return 1;


}


if (strcmp(cmdtext, \"/wave\", true)==0){


        ApplyAnimation(playerid, \"ON_LOOKERS\", \"wave_loop\", 4.0, 1, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/waterjump\", true)==0){


    ApplyAnimation(playerid,\"DAM_JUMP\",\"DAM_LAUNCH\",2,0,1,1,0,0);


        return 1;


}


if (strcmp(cmdtext, \"/taichi\", true)==0){


    ApplyAnimation(playerid,\"PARK\",\"Tai_Chi_Loop\",4.0,1,0,0,0,0);


        return 1;


}


if (strcmp(cmdtext, \"/cower\", true)==0){


    ApplyAnimation(playerid, \"ped\", \"cower\", 3.0, 1, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/sitdown\", true)==0){


    ApplyAnimation(playerid,\"INT_OFFICE\", \"OFF_Sit_Bored_Loop\", 1.800001, 1, 0, 0, 1, 600);


        return 1;


}


if (strcmp(cmdtext, \"/finger\", true)==0){


    ApplyAnimation(playerid,\"ped\", \"fucku\", 4.1, 0, 1, 1, 1, 1 );


        return 1;


}


if (strcmp(cmdtext, \"/boxing\", true)==0){


    ApplyAnimation(playerid,\"GYMNASIUM\", \"GYMshadowbox\", 1.800001, 1, 0, 0, 1, 600);


        return 1;


}


if (strcmp(cmdtext, \"/talk\", true)==0){


    ApplyAnimation(playerid,\"PED\",\"IDLE_CHAT\",4.1,0,1,1,1,1);


        return 1;


}


if (strcmp(cmdtext, \"/slapass\", true)==0){


    ApplyAnimation(playerid, \"SWEET\", \"sweet_ass_slap\", 4.0, 0, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/roll\", true)==0){


    ApplyAnimation(playerid,\"PED\",\"Crouch_Roll_L\",4.1,0,1,1,1,1);


        return 1;


}


if (strcmp(cmdtext, \"/pee\", true)==0){


    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);


        return 1;


}


if (strcmp(cmdtext, \"/phone\", true)==0){


    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);


        return 1;


}


if (strcmp(cmdtext, \"/eat\", true)==0){


    ApplyAnimation(playerid, \"FOOD\", \"EAT_Burger\", 3.0, 0, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/dance1\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE1);


       return 1;


}


if (strcmp(cmdtext, \"/dance2\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE2);


       return 1;


}


if (strcmp(cmdtext, \"/dance3\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE3);


       return 1;


}


if (strcmp(cmdtext, \"/dance4\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE4);


       return 1;


}


if (strcmp(cmdtext, \"/dances\", true) == 0)


{


        SendClientMessage(playerid, 0x33AA33AA, \"========Command /dances========\");


       SendClientMessage(playerid, 0xFFFFFFAA, \"/dance1 /dance2 /dance3 /dance4\");


       SendClientMessage(playerid, 0x33AA33AA, \"===============================\");


       return 1;


}


if (strcmp(cmdtext, \"/stopanim\", true) == 0){


       ClearAnimations(playerid);


       return 1;


}


new vehicleid = GetPlayerVehicleID(playerid);


if (strcmp(cmdtext, \"/lock\", true) == 0)


    {


   if(IsPlayerInAnyVehicle(playerid))


   {


   new Stat5 ;


   Stat5=GetPlayerState(playerid);


   if(Stat5!=PLAYER_STATE_DRIVER)


   {


   SendClientMessage(playerid,0xAA3333AA,\"Only the driver can lock the car!\");


   return 1;


   }


   new i;


   for(i=0;i<MAX_PLAYERS;i++)


   {


   if(i != playerid)


   {


   SetVehicleParamsForPlayer(vehicleid,i, 0, 1);


   }


   }


   SendClientMessage(playerid, 0x33AA33AA, \"Vehicle Locked!\");


   }


   else


   {


   SendClientMessage(playerid, 0xAA3333AA, \"You do not have vehicles!\");


   }


    return 1;


}


    if (strcmp(cmdtext, \"/unlock\", true)==0)


{


   if(IsPlayerInAnyVehicle(playerid))


   {


      new Stat6 ;


      Stat6 = GetPlayerState(playerid);


      if(Stat6!=PLAYER_STATE_DRIVER)


      {


            SendClientMessage(playerid,0xAA3333AA,\"Only the driver can open the vehicle!\");


      return 1;


      }


      new i;


      for(i=0;i<MAX_PLAYERS;i++)


      {


         SetVehicleParamsForPlayer(vehicleid,i, 0, 0);


      }


      SendClientMessage(playerid, 0x33AA33AA, \"Vehicles Unlocked\");


   }


   else


   {


      SendClientMessage(playerid, 0xAA3333AA, \"You do not have vehicles!\");


   }


       return 1;


}


return 0;


}


}[/pawn]

Pls Szerver hiba :S
« Válasz #4 Dátum: 2011. október 27. - 19:53:12 »
0 Show voters
Köszi!
Ment a +!
ÉS ZÁROK

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal