#1

Pawno Error :
c-lsgw.pwn(400) : error 029: invalid expression, assumed zero
c-lsgw.pwn(713) : error 035: argument type mismatch (argument 3)
c-lsgw.pwn(71 : error 035: argument type mismatch (argument 3)
c-lsgw.pwn(737) : error 030: compound statement not closed at the end of file (started at line 689)
My Pawno :
pawn Код:
// Crazy Los Santos Gang Wars by Oldphynix

//Includes
#include <a_samp>
#include <zcmd>
#include <sscanf>
#include <ladmin>

//Teams Define
#define TEAM_GROVE 1
#define TEAM_BALLAS 2
#define TEAM_VAGOS 3
#define TEAM_POLICE 4
#define TEAM_USA 5
#define TEAM_Aztecas 6
#define TEAM_GROVE_COLOR 0x33AA33AA
#define TEAM_BALLAS_COLOR 0x800080FF
#define TEAM_VAGOS_COLOR 0xFF9900AA
#define TEAM_POLICE_COLOR 0x0000BBAA
#define TEAM_USA_COLOR 0xB8860BAA
#define TEAM_Aztecas_COLOR 0xFFFFFFAA
//Colours Define
#define COLOR_DODGERBLUE 0x1E90FFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_GOLD 0xB8860BAA
#define COLOR_ERROR 0xD2691EAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GROVE "{961CA6}"
#define COLOR_RED 0xFF0000FF
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_SPAWN 0xFF8C55FF
#define COLOR_LIGHTBLUE 0x6DC5F3FF
#define COLOR_ADMIN 0xFF0000FF
#define COLOR_SAY 0x2986CEFF
#define COLOR_SYSGREY 0xC6BEBDFF
#define COLOR_BLACK 0x000000FF
#define COLOR_JOIN 0x74E80099
#define COLOR_WARN 0xBE615099
#define COLOR_RACE 0x00BBBB99
#define COLOR_KRED 0xFF0000FF
//Dialog Define
#define DIALOG_TEAMS 1
#define DIALOG_HELP 2
#define DIALOG_WEAPONS 3
#define DIALOG_RULES 4
#define DIALOG_COMMANDS 5
#define DIALOG_CMDS 6
//Other Define
#define xpos 1
#define ypos 2
#define zpos 3
#define SCM SendClientMessage
#define GODLIKE 10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40
///////////////////////////////////////////////////////

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Los Santos Gang Wars by Oldphynix");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Los Santos Gang Wars by Oldphynix");
    print("----------------------------------\n");
}

//News
new bool:IsAFK[MAX_PLAYERS];
new grove[] = {105,106,107};
new ballas[] = {102,103,104};
new vagos[] = {108,109,110};
new aztecas[] = {114,115,116};
new usa[] = {286,287,285};
new police[] = {280,281,282};
new vip[] = {23,189,230};
new Streak[MAX_PLAYERS];
new inf[MAX_PLAYERS];
new nrg[MAX_PLAYERS];
new Float:Pos[MAX_PLAYERS][4];
//Enums


#endif

public OnGameModeInit()
{
    SetGameModeText("Crazy-LSGW");
    //=================================Ballas=================================================
    CreateVehicle(542,2008.4169922,-1275.1461182,23.6637115,0.0000000,85,85,30); //Clover
    CreateVehicle(412,2051.8417969,-1119.2258301,24.7052460,179.4595947,85,85,30); //Voodoo
    CreateVehicle(536,1990.9644775,-1121.0219727,26.6271992,270.2702637,85,85,30); //Blade
    CreateVehicle(566,1934.8454590,-1118.6450195,26.3531246,179.4595947,85,85,30); //Tahoma
    CreateVehicle(566,2091.4179688,-1140.7348633,25.4860401,91.7144775,85,85,30); //Tahoma
    CreateVehicle(536,2088.0883789,-1170.2249756,25.3986969,89.7298584,85,85,30); //Blade
    CreateVehicle(534,2052.7294922,-1105.3375244,24.2679729,270.3153076,85,85,30); //Remington
    CreateVehicle(566,2012.6968994,-1130.2408447,25.0444031,89.7288818,85,85,30); //Tahoma
    //========================================Grove============================================
    CreateVehicle(419,2505.6533203,-1693.7580566,13.4768753,1.9849854,86,86,30); //Esperanto
    CreateVehicle(567,2503.6965332,-1753.5777588,13.3785515,0.0000000,86,86,30); //Savanna
    CreateVehicle(426,2484.8698730,-1653.6285400,13.2911129,89.7298584,86,86,30); //Premier
    CreateVehicle(466,2442.9365234,-1645.0452881,13.3931656,179.4595947,86,86,30); //Glendale
    CreateVehicle(492,2511.9753418,-1673.9255371,13.3846169,352.0600586,86,86,30); //Greenwood
    CreateVehicle(550,2473.2202148,-1691.6149902,13.4371700,0.0000000,86,86,30); //Sunrise
    CreateVehicle(567,2393.3571777,-1680.5959473,14.5618858,0.0000000,86,86,30); //Savanna
    CreateVehicle(487,2376.1389160,-1645.3465576,13.7928982,179.4595947,86,86,30); //Maverick
    CreateVehicle(580,2330.9182129,-1677.1616211,14.3302841,270.2702637,86,86,30); //Stafford
    CreateVehicle(575,2299.3044434,-1645.1818848,14.4555454,0.0000000,86,86,30); //Broadway
    CreateVehicle(576,2293.3762207,-1671.3414307,14.4875612,0.0000000,86,86,30); //Tornado
    //=====================================VEGOS========================================
    CreateVehicle(555,2366.1611328,-1173.5888672,27.2100620,180.5405273,6,6,30); //Windsor
    CreateVehicle(474,2357.1274414,-1159.2579346,27.4368076,91.7148438,6,6,30); //Hermes
    CreateVehicle(474,2323.2773438,-1159.7651367,26.8782959,271.1738281,6,6,30); //Hermes
    CreateVehicle(474,2347.1220703,-1148.7227783,27.1903858,271.1700439,6,6,30); //Hermes
    CreateVehicle(533,2377.7148438,-1163.5565186,27.4057198,177.4746094,6,6,30); //Feltzer
    CreateVehicle(412,2331.8803711,-1136.3469238,27.4968567,162.5855103,6,6,30); //Voodoo
    CreateVehicle(412,2322.2697754,-1133.4924316,27.2874832,162.5400391,6,6,30); //Voodoo
    CreateVehicle(576,2308.6816406,-1170.3704834,26.2132397,179.4595947,6,6,30); //Tornado
    //====================================EX-CARS=======================================
    CreateVehicle(426,1803.1175537,-2118.2399902,13.3743496,270.3153076,93,-1,15); //Premier
    CreateVehicle(426,1803.4224854,-2107.8039551,13.2028122,270.3131104,93,-1,15); //Premier
    CreateVehicle(535,1704.7600098,-2126.5607910,13.3868752,0.0000000,93,-1,15); //Slamvan
    CreateVehicle(535,1704.7034912,-2133.0837402,13.3868752,0.0000000,93,-1,15); //Slamvan
    CreateVehicle(535,1698.5452881,-2100.1071777,13.3868752,180.5405273,93,-1,15); //Slamvan
    CreateVehicle(535,1698.3479004,-2093.1916504,13.3868752,180.5383301,93,-1,15); //Slamvan
    CreateVehicle(536,1725.0079346,-2125.7419434,13.4043503,0.0000000,93,-1,15); //Blade
    CreateVehicle(536,1725.1547852,-2133.4353027,13.4043503,0.0000000,93,-1,15); //Blade
    CreateVehicle(536,1724.7774658,-2100.0224609,13.3968754,179.4595947,93,-1,15); //Blade
    CreateVehicle(536,1724.6628418,-2091.4208984,13.3968754,179.4595947,93,-1,15); //Blade
    CreateVehicle(575,1745.0350342,-2125.5502930,13.2868748,0.0000000,93,-1,15); //Broadway
    CreateVehicle(575,1745.0584717,-2133.6308594,13.2868748,0.0000000,93,-1,15); //Broadway
    CreateVehicle(575,1747.4675293,-2099.6645508,13.2868748,180.5405273,93,-1,15); //Broadway
    CreateVehicle(575,1747.3474121,-2091.7814941,13.2930174,180.5383301,93,-1,15); //Broadway
    CreateVehicle(534,1772.2501221,-2126.0678711,13.3697519,0.0000000,93,-1,15); //Remington
    CreateVehicle(534,1772.1694336,-2134.6743164,13.3697519,0.0000000,93,-1,15); //Remington
    CreateVehicle(534,1772.9656982,-2099.0849609,13.3697519,181.4445801,93,-1,15); //Remington
    CreateVehicle(534,1772.8027344,-2089.1162109,13.3721037,181.4392090,93,-1,15); //Remington
    CreateVehicle(518,1793.5296631,-2126.0478516,13.3416824,0.0000000,93,-1,15); //Buccaneer
    CreateVehicle(419,1733.2365723,-2107.2148438,13.4768753,270.2702637,93,-1,15); //Esperanto
    CreateVehicle(419,1761.8300781,-2117.7817383,13.3128128,270.2691650,93,-1,15); //Esperanto
    CreateVehicle(419,1673.4986572,-2111.0378418,13.4768753,270.2691650,93,-1,15); //Esperanto
    CreateVehicle(419,1673.4140625,-2115.4396973,13.4768753,270.2691650,93,-1,15); //Esperanto
    CreateVehicle(419,1666.1898193,-2111.2380371,13.4768753,270.2691650,93,-1,15); //Esperanto
    CreateVehicle(419,1666.3782959,-2115.5864258,13.4768753,270.2691650,93,-1,15); //Esperanto
    CreateVehicle(535,1704.7324219,-2139.8369141,13.3868752,0.0000000,93,-1,15); //Slamvan
    CreateVehicle(535,1704.8106689,-2146.3190918,13.3868752,0.0000000,93,-1,15); //Slamvan
    CreateVehicle(535,1861.1081543,-2021.4449463,13.3868752,89.7298584,93,-1,15); //Slamvan
    CreateVehicle(535,1811.0476074,-1989.7138672,13.3943958,89.7253418,93,-1,15); //Slamvan
    CreateVehicle(535,1916.8457031,-2007.2927246,13.3868752,89.7253418,93,-1,15); //Slamvan
    CreateVehicle(535,1886.7907715,-1986.6236572,13.3868752,181.4401855,93,-1,15); //Slamvan
    CreateVehicle(535,1853.0694580,-1979.1217041,13.3868752,357.9639893,93,-1,15); //Slamvan
    CreateVehicle(439,2105.7492676,-1239.7102051,24.7612381,0.0000000,-1,-1,15); //Stallion
    CreateVehicle(439,2102.5671387,-1272.8940430,25.4898376,179.4595947,-1,-1,15); //Stallion
    CreateVehicle(549,2135.8015137,-1327.7863770,25.4041367,0.0000000,-1,-1,15); //Tampa
    CreateVehicle(533,2196.0114746,-1277.0618896,24.3321590,179.4595947,-1,-1,15); //Feltzer
    CreateVehicle(526,2245.3662109,-1244.0839844,25.2787685,0.0000000,-1,-1,15); //Fortune
    CreateVehicle(527,2229.9572754,-1357.8532715,23.7707081,89.7298584,-1,-1,15); //Cadrona
    CreateVehicle(545,2187.6206055,-1435.0086670,25.4890633,270.2702637,-1,-1,15); //Hustler
    CreateVehicle(491,2192.8657227,-1466.1931152,25.4390621,270.2702637,-1,-1,15); //Virgo
    CreateVehicle(555,2198.0859375,-1504.9213867,23.7379093,0.0000000,-1,-1,15); //Windsor
    CreateVehicle(555,2190.7687988,-1503.9162598,23.7255230,0.0000000,-1,-1,15); //Windsor
    CreateVehicle(555,2183.4846191,-1502.5552979,23.7384129,0.0000000,-1,-1,15); //Windsor
    CreateVehicle(555,2176.1499023,-1501.0584717,23.7449932,0.0000000,-1,-1,15); //Windsor
    CreateVehicle(480,2391.0239258,-1503.5548096,23.6848660,270.2702637,-1,-1,15); //Comet
    CreateVehicle(410,2391.2412109,-1491.0426025,23.5781174,270.2702637,-1,-1,15); //Manana
    CreateVehicle(474,2404.1391602,-1390.5333252,24.0291042,97.7148438,-1,-1,15); //Hermes
    CreateVehicle(481,2289.4953613,-1509.5136719,26.4702015,0.0000000,-1,-1,15); //BMX
    CreateVehicle(481,2499.6250000,-1773.8959961,13.1556511,81.7448730,-1,-1,15); //BMX
    CreateVehicle(521,2182.5859375,-1804.5662842,13.0305405,0.0000000,-1,-1,15); //FCR-900
    CreateVehicle(434,2159.0766602,-1803.1386719,13.5261850,270.2702637,-1,-1,15); //Hotknife
    CreateVehicle(424,2249.4201660,-1906.4842529,13.3941011,0.0000000,-1,-1,15); //BF Injection
    CreateVehicle(424,2273.0725098,-1906.8720703,13.3941011,0.0000000,-1,-1,15); //BF Injection
    CreateVehicle(424,2296.7111816,-1906.3524170,13.4326077,0.0000000,-1,-1,15); //BF Injection
    CreateVehicle(424,2083.5314941,-2042.2606201,13.3941011,0.0000000,-1,-1,15); //BF Injection
    CreateVehicle(561,2065.6494141,-1919.5579834,13.4708748,0.0000000,-1,-1,15); //Stratum
    CreateVehicle(500,2055.9873047,-1904.0855713,13.7668753,177.4746094,-1,-1,15); //Mesa
    CreateVehicle(500,1777.1715088,-1932.1259766,13.6066456,269.1882324,-1,-1,15); //Mesa
    CreateVehicle(400,1804.8428955,-1932.3750000,13.5226336,0.0000000,-1,-1,15); //Landstalker
    CreateVehicle(580,1804.8051758,-1690.7974854,13.4409466,181.4445801,-1,-1,15); //Stafford
    CreateVehicle(550,1672.3281250,-1719.4384766,20.4071560,0.0000000,-1,-1,15); //Sunrise
    CreateVehicle(550,1663.5389404,-1714.8247070,15.5321569,0.0000000,-1,-1,15); //Sunrise
    CreateVehicle(550,1648.4765625,-1718.0042725,20.4071560,0.0000000,-1,-1,15); //Sunrise
    CreateVehicle(546,1836.4309082,-1853.5579834,13.2315960,179.4595947,-1,-1,15); //Intruder
    CreateVehicle(540,2194.0451660,-1361.9377441,25.6269073,181.4445801,-1,-1,15); //Vincent
    CreateVehicle(516,2478.7856445,-1526.9693604,23.9024277,0.0000000,-1,-1,15); //Nebula
    CreateVehicle(421,2417.6958008,-1537.8472900,24.0000000,179.4595947,-1,-1,15); //Washington
    CreateVehicle(405,2400.9104004,-1543.8258057,23.9924984,0.0000000,-1,-1,15); //Sentinel
    CreateVehicle(466,2053.4560547,-1694.8283691,13.4746838,270.2702637,-1,-1,15); //Glendale
    CreateVehicle(507,2117.1508789,-1781.5656738,13.3386984,0.0000000,-1,-1,15); //Elegant
    CreateVehicle(578,1922.6846924,-1792.7514648,14.1328125,270.2702637,-1,-1,15); //DFT-30
    CreateVehicle(487,2018.4631348,-2414.4885254,13.8118753,89.7298584,-1,-1,15); //Maverick
    CreateVehicle(513,1897.7922363,-2283.1889648,14.3316317,270.2702637,-1,-1,15); //Stunt
    CreateVehicle(513,1896.8525391,-2307.6562500,14.3316317,270.2691650,-1,-1,15); //Stunt
    CreateVehicle(519,1834.2904053,-2419.2644043,14.5547600,185.4595947,-1,-1,15); //Shamal
    CreateVehicle(593,1889.4641113,-2625.8610840,14.0970573,0.0000000,-1,-1,15); //Dodo
    CreateVehicle(593,1823.1008301,-2630.4035645,14.0970573,0.0000000,-1,-1,15); //Dodo
    CreateVehicle(476,1754.1528320,-2631.5759277,14.7170277,0.0000000,-1,-1,15); //Rustler
    CreateVehicle(476,1684.3085938,-2629.1066895,14.7170277,0.0000000,-1,-1,15); //Rustler
    CreateVehicle(476,1621.3708496,-2631.0673828,14.7170277,0.0000000,-1,-1,15); //Rustler
    CreateVehicle(519,1565.6520996,-2458.0432129,14.5547600,185.4547119,-1,-1,15); //Shamal
    CreateVehicle(553,2029.6096191,-2593.1721191,15.7818747,87.6998291,-1,-1,15); //Nevada
    CreateVehicle(553,2035.7067871,-2494.2014160,15.7818747,87.6998291,-1,-1,15); //Nevada
    CreateVehicle(422,1947.7591553,-2130.2314453,13.6259069,270.2702637,-1,-1,15); //Bobcat
    CreateVehicle(478,1939.0050049,-2086.7492676,13.6408720,270.3153076,-1,-1,15); //Walton
    CreateVehicle(415,1359.1955566,-1752.1113281,13.2183523,0.0000000,-1,-1,15); //Cheetah
    CreateVehicle(429,1809.8504639,-1431.6130371,13.1796875,0.0000000,-1,-1,15); //Banshee
    CreateVehicle(451,1700.7192383,-1085.2103271,23.6706219,0.0000000,-1,-1,15); //Turismo
    CreateVehicle(451,1756.5913086,-1037.9859619,23.7253094,0.0000000,-1,-1,15); //Turismo
    CreateVehicle(477,1784.1574707,-1085.0566406,23.8186207,0.0000000,-1,-1,15); //ZR-350
    CreateVehicle(477,1703.1610107,-1036.3895264,23.7562504,0.0000000,-1,-1,15); //ZR-350
    CreateVehicle(480,1707.6250000,-1043.4321289,23.7562504,179.4595947,-1,-1,15); //Comet
    CreateVehicle(480,1752.5108643,-1046.3477783,23.8109379,179.4561157,-1,-1,15); //Comet
    CreateVehicle(506,1775.2810059,-1070.2589111,23.7530518,1.9849854,-1,-1,15); //Super GT
    CreateVehicle(506,1685.7500000,-1045.0350342,23.6983643,178.6491089,-1,-1,15); //Super GT
    CreateVehicle(506,1636.2630615,-1047.0765381,23.6905518,178.6486816,-1,-1,15); //Super GT
    CreateVehicle(451,1718.0129395,-1069.3131104,23.6706219,0.0000000,-1,-1,15); //Turismo
    CreateVehicle(541,2161.4829102,-1157.3620605,23.5444164,87.7448730,-1,-1,15); //Bullet
    CreateVehicle(555,2148.3627930,-1175.6520996,23.6006870,270.2702637,-1,-1,15); //Windsor
    CreateVehicle(558,2160.8876953,-1191.6635742,23.5239391,89.7298584,-1,-1,15); //Uranus
    CreateVehicle(560,2348.3186035,-1218.2395020,22.3049755,0.0000000,-1,-1,15); //Sultan
    CreateVehicle(562,2420.1069336,-1103.4743652,40.5960312,0.0000000,-1,-1,15); //Elegy
    CreateVehicle(565,2535.3278809,-1027.8776855,69.2718887,179.4595947,-1,-1,15); //Flash
    CreateVehicle(603,2661.5222168,-1436.9523926,30.4966660,0.0000000,-1,-1,15); //Phoenix
    CreateVehicle(496,2658.2741699,-1696.2573242,9.1078424,270.2702637,-1,-1,15); //Blista Compact
    CreateVehicle(526,2680.6035156,-1673.8489990,9.2692957,179.4595947,-1,-1,15); //Fortune
    CreateVehicle(527,2486.0471191,-1952.8712158,13.2134686,0.0000000,-1,-1,15); //Cadrona
    CreateVehicle(527,2498.7905273,-1953.0479736,13.2119150,0.0000000,-1,-1,15); //Cadrona
    CreateVehicle(527,2377.4465332,-1927.7027588,13.1659613,0.0000000,-1,-1,15); //Cadrona
    CreateVehicle(533,2356.9252930,-2023.8217773,13.3717451,0.0000000,-1,-1,15); //Feltzer
    CreateVehicle(549,2452.2985840,-2023.2841797,13.4083519,0.0000000,-1,-1,15); //Tampa
    CreateVehicle(475,2474.0449219,-1993.9720459,13.4468746,179.4595947,-1,-1,15); //Sabre
    CreateVehicle(419,2181.3483887,-1910.3403320,13.4476757,0.0000000,-1,-1,15); //Esperanto
    CreateVehicle(515,2429.9897461,-2106.2580566,14.7005959,0.0000000,-1,-1,15); //Roadtrain
    CreateVehicle(439,2010.9241943,-2203.4509277,13.5468750,0.0000000,-1,-1,15); //Stallion
    CreateVehicle(419,1669.8154297,-1885.7745361,13.4768753,87.7448730,-1,-1,15); //Esperanto
    CreateVehicle(518,1373.6936035,-1889.1854248,13.2898045,0.0000000,-1,-1,15); //Buccaneer
    CreateVehicle(545,1280.2962646,-1544.8939209,13.4928999,270.2702637,-1,-1,15); //Hustler
    CreateVehicle(475,888.6965942,-1668.8299561,13.4468746,0.0000000,-1,-1,15); //Sabre
    CreateVehicle(534,879.7586670,-1669.0106201,13.3697519,0.0000000,-1,-1,15); //Remington
    CreateVehicle(567,884.1151123,-1679.4265137,13.5252171,179.4595947,-1,-1,15); //Savanna
    CreateVehicle(575,519.0882568,-1561.2849121,15.9598932,209.3695679,-1,-1,15); //Broadway
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    ShowPlayerDialog(playerid, DIALOG_TEAMS, DIALOG_STYLE_LIST, "Choose your Team", "Groove Street Gang\nBallas Gang\nAztecas Gang\nVagos Gang\nUSA Team\nPolice Team\nVIP Team", "Spawn", "Quit");
    return 1;
}

public OnPlayerConnect(playerid)
{
    new pname[MAX_PLAYER_NAME], string[23 + MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "[Info]Player %s Has Joined C-LSGW Server.", pname);
    SendClientMessage(playerid, COLOR_GOLD, string);
    SendClientMessage(playerid, COLOR_YELLOW, "[Info]Hello %s,Welcome to Crazy Los Santos Gang Wars Server!");
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    new string[64],
    name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    switch(reason)
    {
       case 0: format(string,sizeof string,"[Info]Player %s Has Leaved The Servers. (Crashed/Timeout)",name);
       case 1: format(string,sizeof string,"[Info]Player %s Has Leaved The Servers. (Quit/Leave)",name);
       case 2: format(string,sizeof string,"[Info]Player %s Has Leaved The Servers. (Kicked/Banned)",name);
    }
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    GivePlayerWeapon(playerid, 24, 750);
    GivePlayerWeapon(playerid, 27, 731);
    GivePlayerWeapon(playerid, 29, 616);
    GivePlayerWeapon(playerid, 31, 817);
    GivePlayerWeapon(playerid, 43, 1);
    SendClientMessage(playerid, COLOR_GREEN, "[Info]You have been spawned!");
    SendClientMessage(playerid, COLOR_GREEN, "[Info]You get some weapons when you spawned!");
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, reason);
    GivePlayerMoney(killerid, 2500);
    GivePlayerMoney(playerid, -1000);
    new score;
    score = GetPlayerScore(killerid);
    SetPlayerScore(killerid, score+2);
    new Float:killerarmour;
    GetPlayerArmour(killerid, killerarmour);
    SetPlayerArmour(killerid, killerarmour+15);

    Streak[playerid] = 0;
    Streak[killerid]++;
    switch(Streak[killerid])
    {
        case 2:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 3 killstreak,you got 2 score +5000 Cash");
        GivePlayerMoney(playerid,5000);
        SetPlayerScore(killerid, score+2);
        }
        case 3:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 5 killstreak,you got 3 score +7500 Cash");
        GivePlayerMoney(playerid,7500);
        SetPlayerScore(killerid, score+3);
        }
        case 4:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 7 killstreak,you got 4 score +10000 Cash");
        GivePlayerMoney(playerid,10000);
        SetPlayerScore(killerid, score+4);
        }
        case 5:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 10 killstreak,you got 5 score +12500 Cash");
        GivePlayerMoney(playerid,12500);
        SetPlayerScore(killerid, score+5);
        }
        case 6:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 13 killstreak,you got 6 score +15000 Cash");
        GivePlayerMoney(playerid,15000);
        SetPlayerScore(killerid, score+6);
        }
        case 7:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 15 killstreak,you got 7 score +17500 Cash");
        GivePlayerMoney(playerid,17500);
        SetPlayerScore(killerid, score+7);
        }
        case 8:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 17 killstreak,you got 8 score +20000 Cash");
        GivePlayerMoney(playerid,20000);
        SetPlayerScore(killerid, score+8);
        }
        case 9:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 20 killstreak,you got 10 score +25000 Cash");
        GivePlayerMoney(playerid,25000);
        SetPlayerScore(killerid, score+10);
        }
        case GODLIKE:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 25 killstreak,you got 15 score +30000 Cash");
        GivePlayerMoney(playerid,30000);
        SetPlayerScore(killerid, score+15);
        }
    }
    return 1;
}

public OnVehicleSpawn(vehicleid)
{
    return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
    return 1;
}

public OnPlayerText(playerid, text[])
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
CMD:vweapons(playerid,params[])
{

    if(IsPlayerVipMember(playerid))
    {
    GivePlayerWeapon(playerid,31,9999),GivePlayerWeapon(playerid,24,9999),GivePlayerWeapon(playerid,27,9999);
    }
    else SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Info]{005EFF} You must be VIP To use this!");
    return 1;
}

CMD:vhelp(playerid,params[])
{

    if(IsPlayerVipMember(playerid))
    {
    ShowPlayerDialog(playerid, DIALOG_CMDS, 0, "VIP Commands", "VIP Commands\n /healme | /vcar | /vbike | /vweapons", "Close", "");
    }
    else SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Info]{005EFF} You must be VIP To use this!");
    return 1;
}

CMD:vcar(playerid,params[])
{
    if(IsPlayerVipMember(playerid))
    {
        if(gettime() > GetPVarInt(playerid, "vcar"))
        {
        DestroyVehicle(inf[playerid]);
        GetPlayerPos(playerid,Pos[playerid][1],Pos[playerid][2],Pos[playerid][3]);
        inf[playerid]=CreateVehicle(411,Pos[playerid][1],Pos[playerid][2],Pos[playerid][3],0,-1,-1,10);
        PutPlayerInVehicle(playerid,inf[playerid], 0);
        SendClientMessage(playerid,0xFF641AFF,"[Info]: You have Spawned An Infernus.");
        SetPVarInt(playerid, "vcar", gettime() + 60);
        }
        else if(gettime() < GetPVarInt(playerid, "vcar")) return SendClientMessage(playerid, -1, "{FF0000}[ERROR]{005EFF} You need to wait 60 seconds to use this command again!");
    }
    else SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Info]{005EFF} You must be VIP To use this!");
    return 1;
}

CMD:vbike(playerid,params[])
{
    if(IsPlayerVipMember(playerid))
    {
        if(gettime() > GetPVarInt(playerid, "vcar"))
        {
        DestroyVehicle(nrg[playerid]);
        GetPlayerPos(playerid,Pos[playerid][1],Pos[playerid][2],Pos[playerid][3]);
        nrg[playerid]=CreateVehicle(522,Pos[playerid][1],Pos[playerid][2],Pos[playerid][3],0,-1,-1,10);
        PutPlayerInVehicle(playerid,nrg[playerid], 0);
        SendClientMessage(playerid,0xFF641AFF,"[Info]: You have Spawned An NRG-500.");
        SetPVarInt(playerid, "Time", gettime() + 60);
        }
        else if(gettime() < GetPVarInt(playerid, "vcar")) return SendClientMessage(playerid, -1, "{FF0000}[ERROR]{005EFF} You need to wait 60 seconds to use this command again!");
    }
    else SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Info]{005EFF} You must be VIP To use this!");
    return 1;
}
CMD:sync(playerid, params[])
{
    if(gettime() > GetPVarInt(playerid, "Time"))
    {
        TogglePlayerControllable(playerid,false);
        TogglePlayerControllable(playerid,true);
        SendClientMessage(playerid, -1,"[Info]{00AAFF}You just got Sync'd");
        SetPVarInt(playerid, "Time", gettime() + 30);
    }
    else if(gettime() < GetPVarInt(playerid, "Time")) return SendClientMessage(playerid, -1, "{FF0000}[ERROR]{005EFF} You need to wait 60 seconds to use this command again!");
    return 1;
}

CMD:healme(playerid,params[])
{
    if(IsPlayerVipMember(playerid))
    {
        if(gettime() > GetPVarInt(playerid, "healme"))
        {
        SetPlayerHealth(playerid, 100);
        SetPVarInt(playerid, "healme", gettime() + 60);
        }
        else if(gettime() < GetPVarInt(playerid, "healme")) return SendClientMessage(playerid, -1, "{FF0000}[ERROR]{005EFF} You need to wait 60 seconds to use this command again!");
    }
    else SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Info]{005EFF} You must be VIP To use this!");
    return 1;
}

CMD:afk(playerid,params[])
    {
    new string[128];
    if(IsAFK[playerid] == true)
    {
    SendClientMessage(playerid,COLOR_ERROR,"{FF0000}[Info]{005EFF} You are already AFK use /back to be back");
    return 1;
                }
    IsAFK[playerid] = true;
    TogglePlayerControllable(playerid,0);
    SetPlayerInterior(playerid,3);
    SetPlayerPos(playerid,-2673.3909,1409.6527,907.5703);
    SetPlayerFacingAngle(playerid,359.8516);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
    format(string,sizeof(string),"[Info]{3700FF}%s(%d) {FFB300}has gone to AFK mode.",PlayerName(playerid),playerid);
    SendClientMessageToAll(COLOR_DODGERBLUE,string);
    SendClientMessage(playerid, 0x800080FF, "[Info]{FFFFFF}You Are AFK . Use /Back To get back to action :D");
    return 1;
    }
CMD:back(playerid,params[])
    {
    new string[128];
    if(IsAFK[playerid] == false)
    {
    SendClientMessage(playerid,COLOR_ERROR,"{FF0000}[Info]{005EFF} You aren't in AFK mode.");
    return 1;
    }
    IsAFK[playerid] = false;
    TogglePlayerControllable(playerid,1);
    SetPlayerPos(playerid,xpos,ypos,zpos);
    SetPlayerInterior(playerid,0);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
    format(string,sizeof(string),"[Info]{3700FF}%s(%d) {FFB300}is no longer AFK.",PlayerName(playerid),playerid);
    SendClientMessageToAll(COLOR_DODGERBLUE,string);
    return 1;
    }

stock PlayerName(playerid) {
  new name[255];
  GetPlayerName(playerid, name, 255);
  return name;
}

CMD:changeteam(playerid,params[])
{
    ShowPlayerDialog(playerid, DIALOG_TEAMS, DIALOG_STYLE_LIST, "Choose your Team", "Groove Street Gang\nBallas Gang\nAztecas Gang\nVagos Gang\nUSA Team\nPolice Team\nVIP Team", "Spawn", "Quit");
    return 1;
}

CMD:rules(playerid,params[])
{
    ShowPlayerDialog(playerid, DIALOG_RULES, 0, "Server Community Rules", "1-Don't Spawn Kill\n2-Don't Team Attack\n3-Don't Bug Abuse/Cheat/Use hacks/mods\n4-C/slide/no reload bugs allowed\n- Don't ask for Administration Rank\n-Don't ask for Score / Money.", "Close", "");
    return 1;
}

CMD:help(playerid,params[])
{
    ShowPlayerDialog(playerid, DIALOG_HELP, 0, "Server Help", "Killers Zone Beta\n Please Read /rules to read our rules \n /cmds for our other commands ..", "Close", "");
    return 1;
}

CMD:cmds(playerid,params[])
{
    ShowPlayerDialog(playerid, DIALOG_CMDS, 0, "Server Commands", "Server Commands\nAccount Commands:/login | /register | /changename | /stats |\nGeneral Commands:/kill | /help | /commands | /cmds | /rules | /changeteam\n/afk | /back | /healme | /armourme | /sync | /admins\n/vips | /credits | /news | /nextupdate", "Close", "Ok");
    return 1;
}

CMD:killme(playerid,params[])
{
    SetPlayerHealth(playerid, 0);
    SCM(playerid, COLOR_GREEN, "You have been suicide!");
    return 1;
}
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 OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
    if(response)
    {
    if(listitem == 0)
    {
    SetSpawnInfo(playerid, 0, grove[random(3)], 2486.5652,-1645.6804,14.0703,176.4199, 0, 0, 0, 0, 0, 0 );
    SetPlayerColor(playerid, 0x004000FF);
    }
    if(listitem == 1)
    {
    SetSpawnInfo(playerid, 1, ballas[random(3)], 2046.1179,-1115.6752,26.3617,266.6295, 0, 0, 0, 0, 0, 0 );
    SetPlayerColor(playerid, 0xB704B3FF);
    }
    if(listitem == 2)
    {
    SetSpawnInfo(playerid, 2, aztecas[random(3)], 1678.0437,-2112.8284,13.5469,269.9214, 0, 0, 0, 0, 0, 0 );
    SetPlayerColor(playerid, 0x00B7B7FF);
    }
    if(listitem == 3)
    {
    SetSpawnInfo(playerid, 3, vagos[random(3)], 2351.8303,-1166.2504,27.4523,352.9199, 0, 0, 0, 0, 0, 0 );
    SetPlayerColor(playerid, 0xFDFD00FF);
    }
    if(listitem == 4)
    {
    SetSpawnInfo(playerid, 4, usa, 2735.00,-2451.02,17.59, 0, 0, 0, 0, 0, 0 );
    SetPlayerColor(playerid, 0xB8860BAA);
    }
    if(listitem == 5)
    {
    SetSpawnInfo(playerid, 5, police, 1580.05,-1635.72,13.56, 0, 0, 0, 0, 0, 0 );
    SetPlayerColor(playerid, 0x0000BBAA);
    }
    if(listitem == 6)
    {
        if(IsPlayerVipMember(playerid))
        {
        SetSpawnInfo(playerid, 6, vip[random(3)], 2153.22, -1800.44, 12.53,0.0, 0, 0, 0, 0, 0, 0 );
        SetPlayerColor(playerid, 0x045BECFF);
        }
        else
        {
        SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[ERROR]{005EFF} You must be VIP To use this!");
        ShowPlayerDialog(playerid, DIALOG_TEAMS, DIALOG_STYLE_LIST, "Choose your Team", "Groove Street Gang\nBallas Gang\nAztecas Gang\nVagos Gang\nUSA Team\nPolice Team\nVIP Team", "Spawn", "Quit");
        }
    }
    return 1;
}
Reply
#2

There were alot of errors, but here you go, I fixed em for you.
pawn Код:
// Crazy Los Santos Gang Wars by Oldphynix

//Includes
#include <a_samp>
#include <zcmd>
#include <sscanf>
#include <ladmin>

//Teams Define
#define TEAM_GROVE 1
#define TEAM_BALLAS 2
#define TEAM_VAGOS 3
#define TEAM_POLICE 4
#define TEAM_USA 5
#define TEAM_Aztecas 6
#define TEAM_GROVE_COLOR 0x33AA33AA
#define TEAM_BALLAS_COLOR 0x800080FF
#define TEAM_VAGOS_COLOR 0xFF9900AA
#define TEAM_POLICE_COLOR 0x0000BBAA
#define TEAM_USA_COLOR 0xB8860BAA
#define TEAM_Aztecas_COLOR 0xFFFFFFAA
//Colours Define
#define COLOR_DODGERBLUE 0x1E90FFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_GOLD 0xB8860BAA
#define COLOR_ERROR 0xD2691EAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GROVE "{961CA6}"
#define COLOR_RED 0xFF0000FF
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_SPAWN 0xFF8C55FF
#define COLOR_LIGHTBLUE 0x6DC5F3FF
#define COLOR_ADMIN 0xFF0000FF
#define COLOR_SAY 0x2986CEFF
#define COLOR_SYSGREY 0xC6BEBDFF
#define COLOR_BLACK 0x000000FF
#define COLOR_JOIN 0x74E80099
#define COLOR_WARN 0xBE615099
#define COLOR_RACE 0x00BBBB99
#define COLOR_KRED 0xFF0000FF
//Dialog Define
#define DIALOG_TEAMS 1
#define DIALOG_HELP 2
#define DIALOG_WEAPONS 3
#define DIALOG_RULES 4
#define DIALOG_COMMANDS 5
#define DIALOG_CMDS 6
//Other Define
#define xpos 1
#define ypos 2
#define zpos 3
#define SCM SendClientMessage
#define GODLIKE 10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40
///////////////////////////////////////////////////////

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Los Santos Gang Wars by Oldphynix");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Los Santos Gang Wars by Oldphynix");
    print("----------------------------------\n");
}

//News
new bool:IsAFK[MAX_PLAYERS];
new grove[] = {105,106,107};
new ballas[] = {102,103,104};
new vagos[] = {108,109,110};
new aztecas[] = {114,115,116};
new usa[] = {286,287,285};
new police[] = {280,281,282};
new vip[] = {23,189,230};
new Streak[MAX_PLAYERS];
new inf[MAX_PLAYERS];
new nrg[MAX_PLAYERS];
new Float:Pos[MAX_PLAYERS][4];
//Enums


#endif

public OnGameModeInit()
{
    SetGameModeText("Crazy-LSGW");
    //=================================Ballas=================================================
    CreateVehicle(542,2008.4169922,-1275.1461182,23.6637115,0.0000000,85,85,30); //Clover
    CreateVehicle(412,2051.8417969,-1119.2258301,24.7052460,179.4595947,85,85,30); //Voodoo
    CreateVehicle(536,1990.9644775,-1121.0219727,26.6271992,270.2702637,85,85,30); //Blade
    CreateVehicle(566,1934.8454590,-1118.6450195,26.3531246,179.4595947,85,85,30); //Tahoma
    CreateVehicle(566,2091.4179688,-1140.7348633,25.4860401,91.7144775,85,85,30); //Tahoma
    CreateVehicle(536,2088.0883789,-1170.2249756,25.3986969,89.7298584,85,85,30); //Blade
    CreateVehicle(534,2052.7294922,-1105.3375244,24.2679729,270.3153076,85,85,30); //Remington
    CreateVehicle(566,2012.6968994,-1130.2408447,25.0444031,89.7288818,85,85,30); //Tahoma
    //========================================Grove============================================
    CreateVehicle(419,2505.6533203,-1693.7580566,13.4768753,1.9849854,86,86,30); //Esperanto
    CreateVehicle(567,2503.6965332,-1753.5777588,13.3785515,0.0000000,86,86,30); //Savanna
    CreateVehicle(426,2484.8698730,-1653.6285400,13.2911129,89.7298584,86,86,30); //Premier
    CreateVehicle(466,2442.9365234,-1645.0452881,13.3931656,179.4595947,86,86,30); //Glendale
    CreateVehicle(492,2511.9753418,-1673.9255371,13.3846169,352.0600586,86,86,30); //Greenwood
    CreateVehicle(550,2473.2202148,-1691.6149902,13.4371700,0.0000000,86,86,30); //Sunrise
    CreateVehicle(567,2393.3571777,-1680.5959473,14.5618858,0.0000000,86,86,30); //Savanna
    CreateVehicle(487,2376.1389160,-1645.3465576,13.7928982,179.4595947,86,86,30); //Maverick
    CreateVehicle(580,2330.9182129,-1677.1616211,14.3302841,270.2702637,86,86,30); //Stafford
    CreateVehicle(575,2299.3044434,-1645.1818848,14.4555454,0.0000000,86,86,30); //Broadway
    CreateVehicle(576,2293.3762207,-1671.3414307,14.4875612,0.0000000,86,86,30); //Tornado
    //=====================================VEGOS========================================
    CreateVehicle(555,2366.1611328,-1173.5888672,27.2100620,180.5405273,6,6,30); //Windsor
    CreateVehicle(474,2357.1274414,-1159.2579346,27.4368076,91.7148438,6,6,30); //Hermes
    CreateVehicle(474,2323.2773438,-1159.7651367,26.8782959,271.1738281,6,6,30); //Hermes
    CreateVehicle(474,2347.1220703,-1148.7227783,27.1903858,271.1700439,6,6,30); //Hermes
    CreateVehicle(533,2377.7148438,-1163.5565186,27.4057198,177.4746094,6,6,30); //Feltzer
    CreateVehicle(412,2331.8803711,-1136.3469238,27.4968567,162.5855103,6,6,30); //Voodoo
    CreateVehicle(412,2322.2697754,-1133.4924316,27.2874832,162.5400391,6,6,30); //Voodoo
    CreateVehicle(576,2308.6816406,-1170.3704834,26.2132397,179.4595947,6,6,30); //Tornado
    //====================================EX-CARS=======================================
    CreateVehicle(426,1803.1175537,-2118.2399902,13.3743496,270.3153076,93,-1,15); //Premier
    CreateVehicle(426,1803.4224854,-2107.8039551,13.2028122,270.3131104,93,-1,15); //Premier
    CreateVehicle(535,1704.7600098,-2126.5607910,13.3868752,0.0000000,93,-1,15); //Slamvan
    CreateVehicle(535,1704.7034912,-2133.0837402,13.3868752,0.0000000,93,-1,15); //Slamvan
    CreateVehicle(535,1698.5452881,-2100.1071777,13.3868752,180.5405273,93,-1,15); //Slamvan
    CreateVehicle(535,1698.3479004,-2093.1916504,13.3868752,180.5383301,93,-1,15); //Slamvan
    CreateVehicle(536,1725.0079346,-2125.7419434,13.4043503,0.0000000,93,-1,15); //Blade
    CreateVehicle(536,1725.1547852,-2133.4353027,13.4043503,0.0000000,93,-1,15); //Blade
    CreateVehicle(536,1724.7774658,-2100.0224609,13.3968754,179.4595947,93,-1,15); //Blade
    CreateVehicle(536,1724.6628418,-2091.4208984,13.3968754,179.4595947,93,-1,15); //Blade
    CreateVehicle(575,1745.0350342,-2125.5502930,13.2868748,0.0000000,93,-1,15); //Broadway
    CreateVehicle(575,1745.0584717,-2133.6308594,13.2868748,0.0000000,93,-1,15); //Broadway
    CreateVehicle(575,1747.4675293,-2099.6645508,13.2868748,180.5405273,93,-1,15); //Broadway
    CreateVehicle(575,1747.3474121,-2091.7814941,13.2930174,180.5383301,93,-1,15); //Broadway
    CreateVehicle(534,1772.2501221,-2126.0678711,13.3697519,0.0000000,93,-1,15); //Remington
    CreateVehicle(534,1772.1694336,-2134.6743164,13.3697519,0.0000000,93,-1,15); //Remington
    CreateVehicle(534,1772.9656982,-2099.0849609,13.3697519,181.4445801,93,-1,15); //Remington
    CreateVehicle(534,1772.8027344,-2089.1162109,13.3721037,181.4392090,93,-1,15); //Remington
    CreateVehicle(518,1793.5296631,-2126.0478516,13.3416824,0.0000000,93,-1,15); //Buccaneer
    CreateVehicle(419,1733.2365723,-2107.2148438,13.4768753,270.2702637,93,-1,15); //Esperanto
    CreateVehicle(419,1761.8300781,-2117.7817383,13.3128128,270.2691650,93,-1,15); //Esperanto
    CreateVehicle(419,1673.4986572,-2111.0378418,13.4768753,270.2691650,93,-1,15); //Esperanto
    CreateVehicle(419,1673.4140625,-2115.4396973,13.4768753,270.2691650,93,-1,15); //Esperanto
    CreateVehicle(419,1666.1898193,-2111.2380371,13.4768753,270.2691650,93,-1,15); //Esperanto
    CreateVehicle(419,1666.3782959,-2115.5864258,13.4768753,270.2691650,93,-1,15); //Esperanto
    CreateVehicle(535,1704.7324219,-2139.8369141,13.3868752,0.0000000,93,-1,15); //Slamvan
    CreateVehicle(535,1704.8106689,-2146.3190918,13.3868752,0.0000000,93,-1,15); //Slamvan
    CreateVehicle(535,1861.1081543,-2021.4449463,13.3868752,89.7298584,93,-1,15); //Slamvan
    CreateVehicle(535,1811.0476074,-1989.7138672,13.3943958,89.7253418,93,-1,15); //Slamvan
    CreateVehicle(535,1916.8457031,-2007.2927246,13.3868752,89.7253418,93,-1,15); //Slamvan
    CreateVehicle(535,1886.7907715,-1986.6236572,13.3868752,181.4401855,93,-1,15); //Slamvan
    CreateVehicle(535,1853.0694580,-1979.1217041,13.3868752,357.9639893,93,-1,15); //Slamvan
    CreateVehicle(439,2105.7492676,-1239.7102051,24.7612381,0.0000000,-1,-1,15); //Stallion
    CreateVehicle(439,2102.5671387,-1272.8940430,25.4898376,179.4595947,-1,-1,15); //Stallion
    CreateVehicle(549,2135.8015137,-1327.7863770,25.4041367,0.0000000,-1,-1,15); //Tampa
    CreateVehicle(533,2196.0114746,-1277.0618896,24.3321590,179.4595947,-1,-1,15); //Feltzer
    CreateVehicle(526,2245.3662109,-1244.0839844,25.2787685,0.0000000,-1,-1,15); //Fortune
    CreateVehicle(527,2229.9572754,-1357.8532715,23.7707081,89.7298584,-1,-1,15); //Cadrona
    CreateVehicle(545,2187.6206055,-1435.0086670,25.4890633,270.2702637,-1,-1,15); //Hustler
    CreateVehicle(491,2192.8657227,-1466.1931152,25.4390621,270.2702637,-1,-1,15); //Virgo
    CreateVehicle(555,2198.0859375,-1504.9213867,23.7379093,0.0000000,-1,-1,15); //Windsor
    CreateVehicle(555,2190.7687988,-1503.9162598,23.7255230,0.0000000,-1,-1,15); //Windsor
    CreateVehicle(555,2183.4846191,-1502.5552979,23.7384129,0.0000000,-1,-1,15); //Windsor
    CreateVehicle(555,2176.1499023,-1501.0584717,23.7449932,0.0000000,-1,-1,15); //Windsor
    CreateVehicle(480,2391.0239258,-1503.5548096,23.6848660,270.2702637,-1,-1,15); //Comet
    CreateVehicle(410,2391.2412109,-1491.0426025,23.5781174,270.2702637,-1,-1,15); //Manana
    CreateVehicle(474,2404.1391602,-1390.5333252,24.0291042,97.7148438,-1,-1,15); //Hermes
    CreateVehicle(481,2289.4953613,-1509.5136719,26.4702015,0.0000000,-1,-1,15); //BMX
    CreateVehicle(481,2499.6250000,-1773.8959961,13.1556511,81.7448730,-1,-1,15); //BMX
    CreateVehicle(521,2182.5859375,-1804.5662842,13.0305405,0.0000000,-1,-1,15); //FCR-900
    CreateVehicle(434,2159.0766602,-1803.1386719,13.5261850,270.2702637,-1,-1,15); //Hotknife
    CreateVehicle(424,2249.4201660,-1906.4842529,13.3941011,0.0000000,-1,-1,15); //BF Injection
    CreateVehicle(424,2273.0725098,-1906.8720703,13.3941011,0.0000000,-1,-1,15); //BF Injection
    CreateVehicle(424,2296.7111816,-1906.3524170,13.4326077,0.0000000,-1,-1,15); //BF Injection
    CreateVehicle(424,2083.5314941,-2042.2606201,13.3941011,0.0000000,-1,-1,15); //BF Injection
    CreateVehicle(561,2065.6494141,-1919.5579834,13.4708748,0.0000000,-1,-1,15); //Stratum
    CreateVehicle(500,2055.9873047,-1904.0855713,13.7668753,177.4746094,-1,-1,15); //Mesa
    CreateVehicle(500,1777.1715088,-1932.1259766,13.6066456,269.1882324,-1,-1,15); //Mesa
    CreateVehicle(400,1804.8428955,-1932.3750000,13.5226336,0.0000000,-1,-1,15); //Landstalker
    CreateVehicle(580,1804.8051758,-1690.7974854,13.4409466,181.4445801,-1,-1,15); //Stafford
    CreateVehicle(550,1672.3281250,-1719.4384766,20.4071560,0.0000000,-1,-1,15); //Sunrise
    CreateVehicle(550,1663.5389404,-1714.8247070,15.5321569,0.0000000,-1,-1,15); //Sunrise
    CreateVehicle(550,1648.4765625,-1718.0042725,20.4071560,0.0000000,-1,-1,15); //Sunrise
    CreateVehicle(546,1836.4309082,-1853.5579834,13.2315960,179.4595947,-1,-1,15); //Intruder
    CreateVehicle(540,2194.0451660,-1361.9377441,25.6269073,181.4445801,-1,-1,15); //Vincent
    CreateVehicle(516,2478.7856445,-1526.9693604,23.9024277,0.0000000,-1,-1,15); //Nebula
    CreateVehicle(421,2417.6958008,-1537.8472900,24.0000000,179.4595947,-1,-1,15); //Washington
    CreateVehicle(405,2400.9104004,-1543.8258057,23.9924984,0.0000000,-1,-1,15); //Sentinel
    CreateVehicle(466,2053.4560547,-1694.8283691,13.4746838,270.2702637,-1,-1,15); //Glendale
    CreateVehicle(507,2117.1508789,-1781.5656738,13.3386984,0.0000000,-1,-1,15); //Elegant
    CreateVehicle(578,1922.6846924,-1792.7514648,14.1328125,270.2702637,-1,-1,15); //DFT-30
    CreateVehicle(487,2018.4631348,-2414.4885254,13.8118753,89.7298584,-1,-1,15); //Maverick
    CreateVehicle(513,1897.7922363,-2283.1889648,14.3316317,270.2702637,-1,-1,15); //Stunt
    CreateVehicle(513,1896.8525391,-2307.6562500,14.3316317,270.2691650,-1,-1,15); //Stunt
    CreateVehicle(519,1834.2904053,-2419.2644043,14.5547600,185.4595947,-1,-1,15); //Shamal
    CreateVehicle(593,1889.4641113,-2625.8610840,14.0970573,0.0000000,-1,-1,15); //Dodo
    CreateVehicle(593,1823.1008301,-2630.4035645,14.0970573,0.0000000,-1,-1,15); //Dodo
    CreateVehicle(476,1754.1528320,-2631.5759277,14.7170277,0.0000000,-1,-1,15); //Rustler
    CreateVehicle(476,1684.3085938,-2629.1066895,14.7170277,0.0000000,-1,-1,15); //Rustler
    CreateVehicle(476,1621.3708496,-2631.0673828,14.7170277,0.0000000,-1,-1,15); //Rustler
    CreateVehicle(519,1565.6520996,-2458.0432129,14.5547600,185.4547119,-1,-1,15); //Shamal
    CreateVehicle(553,2029.6096191,-2593.1721191,15.7818747,87.6998291,-1,-1,15); //Nevada
    CreateVehicle(553,2035.7067871,-2494.2014160,15.7818747,87.6998291,-1,-1,15); //Nevada
    CreateVehicle(422,1947.7591553,-2130.2314453,13.6259069,270.2702637,-1,-1,15); //Bobcat
    CreateVehicle(478,1939.0050049,-2086.7492676,13.6408720,270.3153076,-1,-1,15); //Walton
    CreateVehicle(415,1359.1955566,-1752.1113281,13.2183523,0.0000000,-1,-1,15); //Cheetah
    CreateVehicle(429,1809.8504639,-1431.6130371,13.1796875,0.0000000,-1,-1,15); //Banshee
    CreateVehicle(451,1700.7192383,-1085.2103271,23.6706219,0.0000000,-1,-1,15); //Turismo
    CreateVehicle(451,1756.5913086,-1037.9859619,23.7253094,0.0000000,-1,-1,15); //Turismo
    CreateVehicle(477,1784.1574707,-1085.0566406,23.8186207,0.0000000,-1,-1,15); //ZR-350
    CreateVehicle(477,1703.1610107,-1036.3895264,23.7562504,0.0000000,-1,-1,15); //ZR-350
    CreateVehicle(480,1707.6250000,-1043.4321289,23.7562504,179.4595947,-1,-1,15); //Comet
    CreateVehicle(480,1752.5108643,-1046.3477783,23.8109379,179.4561157,-1,-1,15); //Comet
    CreateVehicle(506,1775.2810059,-1070.2589111,23.7530518,1.9849854,-1,-1,15); //Super GT
    CreateVehicle(506,1685.7500000,-1045.0350342,23.6983643,178.6491089,-1,-1,15); //Super GT
    CreateVehicle(506,1636.2630615,-1047.0765381,23.6905518,178.6486816,-1,-1,15); //Super GT
    CreateVehicle(451,1718.0129395,-1069.3131104,23.6706219,0.0000000,-1,-1,15); //Turismo
    CreateVehicle(541,2161.4829102,-1157.3620605,23.5444164,87.7448730,-1,-1,15); //Bullet
    CreateVehicle(555,2148.3627930,-1175.6520996,23.6006870,270.2702637,-1,-1,15); //Windsor
    CreateVehicle(558,2160.8876953,-1191.6635742,23.5239391,89.7298584,-1,-1,15); //Uranus
    CreateVehicle(560,2348.3186035,-1218.2395020,22.3049755,0.0000000,-1,-1,15); //Sultan
    CreateVehicle(562,2420.1069336,-1103.4743652,40.5960312,0.0000000,-1,-1,15); //Elegy
    CreateVehicle(565,2535.3278809,-1027.8776855,69.2718887,179.4595947,-1,-1,15); //Flash
    CreateVehicle(603,2661.5222168,-1436.9523926,30.4966660,0.0000000,-1,-1,15); //Phoenix
    CreateVehicle(496,2658.2741699,-1696.2573242,9.1078424,270.2702637,-1,-1,15); //Blista Compact
    CreateVehicle(526,2680.6035156,-1673.8489990,9.2692957,179.4595947,-1,-1,15); //Fortune
    CreateVehicle(527,2486.0471191,-1952.8712158,13.2134686,0.0000000,-1,-1,15); //Cadrona
    CreateVehicle(527,2498.7905273,-1953.0479736,13.2119150,0.0000000,-1,-1,15); //Cadrona
    CreateVehicle(527,2377.4465332,-1927.7027588,13.1659613,0.0000000,-1,-1,15); //Cadrona
    CreateVehicle(533,2356.9252930,-2023.8217773,13.3717451,0.0000000,-1,-1,15); //Feltzer
    CreateVehicle(549,2452.2985840,-2023.2841797,13.4083519,0.0000000,-1,-1,15); //Tampa
    CreateVehicle(475,2474.0449219,-1993.9720459,13.4468746,179.4595947,-1,-1,15); //Sabre
    CreateVehicle(419,2181.3483887,-1910.3403320,13.4476757,0.0000000,-1,-1,15); //Esperanto
    CreateVehicle(515,2429.9897461,-2106.2580566,14.7005959,0.0000000,-1,-1,15); //Roadtrain
    CreateVehicle(439,2010.9241943,-2203.4509277,13.5468750,0.0000000,-1,-1,15); //Stallion
    CreateVehicle(419,1669.8154297,-1885.7745361,13.4768753,87.7448730,-1,-1,15); //Esperanto
    CreateVehicle(518,1373.6936035,-1889.1854248,13.2898045,0.0000000,-1,-1,15); //Buccaneer
    CreateVehicle(545,1280.2962646,-1544.8939209,13.4928999,270.2702637,-1,-1,15); //Hustler
    CreateVehicle(475,888.6965942,-1668.8299561,13.4468746,0.0000000,-1,-1,15); //Sabre
    CreateVehicle(534,879.7586670,-1669.0106201,13.3697519,0.0000000,-1,-1,15); //Remington
    CreateVehicle(567,884.1151123,-1679.4265137,13.5252171,179.4595947,-1,-1,15); //Savanna
    CreateVehicle(575,519.0882568,-1561.2849121,15.9598932,209.3695679,-1,-1,15); //Broadway
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    ShowPlayerDialog(playerid, DIALOG_TEAMS, DIALOG_STYLE_LIST, "Choose your Team", "Groove Street Gang\nBallas Gang\nAztecas Gang\nVagos Gang\nUSA Team\nPolice Team\nVIP Team", "Spawn", "Quit");
    return 1;
}

public OnPlayerConnect(playerid)
{
    new pname[MAX_PLAYER_NAME], string[23 + MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "[Info]Player %s Has Joined C-LSGW Server.", pname);
    SendClientMessage(playerid, COLOR_GOLD, string);
    SendClientMessage(playerid, COLOR_YELLOW, "[Info]Hello %s,Welcome to Crazy Los Santos Gang Wars Server!");
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    new string[64],
    name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    switch(reason)
    {
       case 0: format(string,sizeof string,"[Info]Player %s Has Leaved The Servers. (Crashed/Timeout)",name);
       case 1: format(string,sizeof string,"[Info]Player %s Has Leaved The Servers. (Quit/Leave)",name);
       case 2: format(string,sizeof string,"[Info]Player %s Has Leaved The Servers. (Kicked/Banned)",name);
    }
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    GivePlayerWeapon(playerid, 24, 750);
    GivePlayerWeapon(playerid, 27, 731);
    GivePlayerWeapon(playerid, 29, 616);
    GivePlayerWeapon(playerid, 31, 817);
    GivePlayerWeapon(playerid, 43, 1);
    SendClientMessage(playerid, COLOR_GREEN, "[Info]You have been spawned!");
    SendClientMessage(playerid, COLOR_GREEN, "[Info]You get some weapons when you spawned!");
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, reason);
    GivePlayerMoney(killerid, 2500);
    GivePlayerMoney(playerid, -1000);
    new score;
    score = GetPlayerScore(killerid);
    SetPlayerScore(killerid, score+2);
    new Float:killerarmour;
    GetPlayerArmour(killerid, killerarmour);
    SetPlayerArmour(killerid, killerarmour+15);

    Streak[playerid] = 0;
    Streak[killerid]++;
    switch(Streak[killerid])
    {
        case 2:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 3 killstreak,you got 2 score +5000 Cash");
        GivePlayerMoney(playerid,5000);
        SetPlayerScore(killerid, score+2);
        }
        case 3:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 5 killstreak,you got 3 score +7500 Cash");
        GivePlayerMoney(playerid,7500);
        SetPlayerScore(killerid, score+3);
        }
        case 4:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 7 killstreak,you got 4 score +10000 Cash");
        GivePlayerMoney(playerid,10000);
        SetPlayerScore(killerid, score+4);
        }
        case 5:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 10 killstreak,you got 5 score +12500 Cash");
        GivePlayerMoney(playerid,12500);
        SetPlayerScore(killerid, score+5);
        }
        case 6:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 13 killstreak,you got 6 score +15000 Cash");
        GivePlayerMoney(playerid,15000);
        SetPlayerScore(killerid, score+6);
        }
        case 7:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 15 killstreak,you got 7 score +17500 Cash");
        GivePlayerMoney(playerid,17500);
        SetPlayerScore(killerid, score+7);
        }
        case 8:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 17 killstreak,you got 8 score +20000 Cash");
        GivePlayerMoney(playerid,20000);
        SetPlayerScore(killerid, score+8);
        }
        case 9:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 20 killstreak,you got 10 score +25000 Cash");
        GivePlayerMoney(playerid,25000);
        SetPlayerScore(killerid, score+10);
        }
        case GODLIKE:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 25 killstreak,you got 15 score +30000 Cash");
        GivePlayerMoney(playerid,30000);
        SetPlayerScore(killerid, score+15);
        }
    }
    return 1;
}

public OnVehicleSpawn(vehicleid)
{
    return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
    return 1;
}

public OnPlayerText(playerid, text[])
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    return 1;
    }

stock PlayerName(playerid) {
  new name[255];
  GetPlayerName(playerid, name, 255);
  return name;
}
CMD:vweapons(playerid,params[])
{

    if(IsPlayerVipMember(playerid))
    {
    GivePlayerWeapon(playerid,31,9999),GivePlayerWeapon(playerid,24,9999),GivePlayerWeapon(playerid,27,9999);
    }
    else SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Info]{005EFF} You must be VIP To use this!");
    return 1;
}

CMD:vhelp(playerid,params[])
{

    if(IsPlayerVipMember(playerid))
    {
    ShowPlayerDialog(playerid, DIALOG_CMDS, 0, "VIP Commands", "VIP Commands\n /healme | /vcar | /vbike | /vweapons", "Close", "");
    }
    else SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Info]{005EFF} You must be VIP To use this!");
    return 1;
}

CMD:vcar(playerid,params[])
{
    if(IsPlayerVipMember(playerid))
    {
        if(gettime() > GetPVarInt(playerid, "vcar"))
        {
        DestroyVehicle(inf[playerid]);
        GetPlayerPos(playerid,Pos[playerid][1],Pos[playerid][2],Pos[playerid][3]);
        inf[playerid]=CreateVehicle(411,Pos[playerid][1],Pos[playerid][2],Pos[playerid][3],0,-1,-1,10);
        PutPlayerInVehicle(playerid,inf[playerid], 0);
        SendClientMessage(playerid,0xFF641AFF,"[Info]: You have Spawned An Infernus.");
        SetPVarInt(playerid, "vcar", gettime() + 60);
        }
        else if(gettime() < GetPVarInt(playerid, "vcar")) return SendClientMessage(playerid, -1, "{FF0000}[ERROR]{005EFF} You need to wait 60 seconds to use this command again!");
    }
    else SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Info]{005EFF} You must be VIP To use this!");
    return 1;
}

CMD:vbike(playerid,params[])
{
    if(IsPlayerVipMember(playerid))
    {
        if(gettime() > GetPVarInt(playerid, "vcar"))
        {
        DestroyVehicle(nrg[playerid]);
        GetPlayerPos(playerid,Pos[playerid][1],Pos[playerid][2],Pos[playerid][3]);
        nrg[playerid]=CreateVehicle(522,Pos[playerid][1],Pos[playerid][2],Pos[playerid][3],0,-1,-1,10);
        PutPlayerInVehicle(playerid,nrg[playerid], 0);
        SendClientMessage(playerid,0xFF641AFF,"[Info]: You have Spawned An NRG-500.");
        SetPVarInt(playerid, "Time", gettime() + 60);
        }
        else if(gettime() < GetPVarInt(playerid, "vcar")) return SendClientMessage(playerid, -1, "{FF0000}[ERROR]{005EFF} You need to wait 60 seconds to use this command again!");
    }
    else SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Info]{005EFF} You must be VIP To use this!");
    return 1;
}
CMD:sync(playerid, params[])
{
    if(gettime() > GetPVarInt(playerid, "Time"))
    {
        TogglePlayerControllable(playerid,false);
        TogglePlayerControllable(playerid,true);
        SendClientMessage(playerid, -1,"[Info]{00AAFF}You just got Sync'd");
        SetPVarInt(playerid, "Time", gettime() + 30);
    }
    else if(gettime() < GetPVarInt(playerid, "Time")) return SendClientMessage(playerid, -1, "{FF0000}[ERROR]{005EFF} You need to wait 60 seconds to use this command again!");
    return 1;
}

CMD:healme(playerid,params[])
{
    if(IsPlayerVipMember(playerid))
    {
        if(gettime() > GetPVarInt(playerid, "healme"))
        {
        SetPlayerHealth(playerid, 100);
        SetPVarInt(playerid, "healme", gettime() + 60);
        }
        else if(gettime() < GetPVarInt(playerid, "healme")) return SendClientMessage(playerid, -1, "{FF0000}[ERROR]{005EFF} You need to wait 60 seconds to use this command again!");
    }
    else SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Info]{005EFF} You must be VIP To use this!");
    return 1;
}

CMD:afk(playerid,params[])
    {
    new string[128];
    if(IsAFK[playerid] == true)
    {
    SendClientMessage(playerid,COLOR_ERROR,"{FF0000}[Info]{005EFF} You are already AFK use /back to be back");
    return 1;
                }
    IsAFK[playerid] = true;
    TogglePlayerControllable(playerid,0);
    SetPlayerInterior(playerid,3);
    SetPlayerPos(playerid,-2673.3909,1409.6527,907.5703);
    SetPlayerFacingAngle(playerid,359.8516);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
    format(string,sizeof(string),"[Info]{3700FF}%s(%d) {FFB300}has gone to AFK mode.",PlayerName(playerid),playerid);
    SendClientMessageToAll(COLOR_DODGERBLUE,string);
    SendClientMessage(playerid, 0x800080FF, "[Info]{FFFFFF}You Are AFK . Use /Back To get back to action :D");
    return 1;
    }
CMD:back(playerid,params[])
    {
    new string[128];
    if(IsAFK[playerid] == false)
    {
    SendClientMessage(playerid,COLOR_ERROR,"{FF0000}[Info]{005EFF} You aren't in AFK mode.");
    return 1;
    }
    IsAFK[playerid] = false;
    TogglePlayerControllable(playerid,1);
    SetPlayerPos(playerid,xpos,ypos,zpos);
    SetPlayerInterior(playerid,0);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
    format(string,sizeof(string),"[Info]{3700FF}%s(%d) {FFB300}is no longer AFK.",PlayerName(playerid),playerid);
    SendClientMessageToAll(COLOR_DODGERBLUE,string);
    return 1;
    }
CMD:changeteam(playerid,params[])
    {
        ShowPlayerDialog(playerid, DIALOG_TEAMS, DIALOG_STYLE_LIST, "Choose your Team", "Groove Street Gang\nBallas Gang\nAztecas Gang\nVagos Gang\nUSA Team\nPolice Team\nVIP Team", "Spawn", "Quit");
        return 1;
    }

CMD:rules(playerid,params[])
{
    ShowPlayerDialog(playerid, DIALOG_RULES, 0, "Server Community Rules", "1-Don't Spawn Kill\n2-Don't Team Attack\n3-Don't Bug Abuse/Cheat/Use hacks/mods\n4-C/slide/no reload bugs allowed\n- Don't ask for Administration Rank\n-Don't ask for Score / Money.", "Close", "");
    return 1;
}

CMD:help(playerid,params[])
{
    ShowPlayerDialog(playerid, DIALOG_HELP, 0, "Server Help", "Killers Zone Beta\n Please Read /rules to read our rules \n /cmds for our other commands ..", "Close", "");
    return 1;
}

CMD:cmds(playerid,params[])
{
    ShowPlayerDialog(playerid, DIALOG_CMDS, 0, "Server Commands", "Server Commands\nAccount Commands:/login | /register | /changename | /stats |\nGeneral Commands:/kill | /help | /commands | /cmds | /rules | /changeteam\n/afk | /back | /healme | /armourme | /sync | /admins\n/vips | /credits | /news | /nextupdate", "Close", "Ok");
    return 1;
}

CMD:killme(playerid,params[])
{
    SetPlayerHealth(playerid, 0);
    SCM(playerid, COLOR_GREEN, "You have been suicide!");
    return 1;
}
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 OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
    if(response)
    {
    if(listitem == 0)
    {
    SetSpawnInfo(playerid, 0, grove[random(3)], 2486.5652,-1645.6804,14.0703,176.4199, 0, 0, 0, 0, 0, 0 );
    SetPlayerColor(playerid, 0x004000FF);
    }
    if(listitem == 1)
    {
    SetSpawnInfo(playerid, 1, ballas[random(3)], 2046.1179,-1115.6752,26.3617,266.6295, 0, 0, 0, 0, 0, 0 );
    SetPlayerColor(playerid, 0xB704B3FF);
    }
    if(listitem == 2)
    {
    SetSpawnInfo(playerid, 2, aztecas[random(3)], 1678.0437,-2112.8284,13.5469,269.9214, 0, 0, 0, 0, 0, 0 );
    SetPlayerColor(playerid, 0x00B7B7FF);
    }
    if(listitem == 3)
    {
    SetSpawnInfo(playerid, 3, vagos[random(3)], 2351.8303,-1166.2504,27.4523,352.9199, 0, 0, 0, 0, 0, 0 );
    SetPlayerColor(playerid, 0xFDFD00FF);
    }
    if(listitem == 4)
    {
    SetSpawnInfo(playerid, 4, 0, 2735.00,-2451.02,17.59, 0, 0, 0, 0, 0, 0, 0 );
    SetPlayerColor(playerid, 0xB8860BAA);
    }
    if(listitem == 5)
    {
    SetSpawnInfo(playerid, 5, 0, 1580.05,-1635.72,13.56, 0, 0, 0, 0, 0, 0, 0 );
    SetPlayerColor(playerid, 0x0000BBAA);
    }
    if(listitem == 6)
    {
        if(IsPlayerVipMember(playerid))
        {
        SetSpawnInfo(playerid, 6, vip[random(3)], 2153.22, -1800.44, 12.53,0.0, 0, 0, 0, 0, 0, 0 );
        SetPlayerColor(playerid, 0x045BECFF);
        }
        else
        {
        SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[ERROR]{005EFF} You must be VIP To use this!");
        ShowPlayerDialog(playerid, DIALOG_TEAMS, DIALOG_STYLE_LIST, "Choose your Team", "Groove Street Gang\nBallas Gang\nAztecas Gang\nVagos Gang\nUSA Team\nPolice Team\nVIP Team", "Spawn", "Quit");
        }
    }
    return 1;
}
}
}
Reply
#3

Quote:
Originally Posted by XtremeR
Посмотреть сообщение
There were alot of errors, but here you go, I fixed em for you.
pawn Код:
// Crazy Los Santos Gang Wars by Oldphynix

//Includes
#include <a_samp>
#include <zcmd>
#include <sscanf>
#include <ladmin>

//Teams Define
#define TEAM_GROVE 1
#define TEAM_BALLAS 2
#define TEAM_VAGOS 3
#define TEAM_POLICE 4
#define TEAM_USA 5
#define TEAM_Aztecas 6
#define TEAM_GROVE_COLOR 0x33AA33AA
#define TEAM_BALLAS_COLOR 0x800080FF
#define TEAM_VAGOS_COLOR 0xFF9900AA
#define TEAM_POLICE_COLOR 0x0000BBAA
#define TEAM_USA_COLOR 0xB8860BAA
#define TEAM_Aztecas_COLOR 0xFFFFFFAA
//Colours Define
#define COLOR_DODGERBLUE 0x1E90FFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_GOLD 0xB8860BAA
#define COLOR_ERROR 0xD2691EAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GROVE "{961CA6}"
#define COLOR_RED 0xFF0000FF
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_SPAWN 0xFF8C55FF
#define COLOR_LIGHTBLUE 0x6DC5F3FF
#define COLOR_ADMIN 0xFF0000FF
#define COLOR_SAY 0x2986CEFF
#define COLOR_SYSGREY 0xC6BEBDFF
#define COLOR_BLACK 0x000000FF
#define COLOR_JOIN 0x74E80099
#define COLOR_WARN 0xBE615099
#define COLOR_RACE 0x00BBBB99
#define COLOR_KRED 0xFF0000FF
//Dialog Define
#define DIALOG_TEAMS 1
#define DIALOG_HELP 2
#define DIALOG_WEAPONS 3
#define DIALOG_RULES 4
#define DIALOG_COMMANDS 5
#define DIALOG_CMDS 6
//Other Define
#define xpos 1
#define ypos 2
#define zpos 3
#define SCM SendClientMessage
#define GODLIKE 10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40
///////////////////////////////////////////////////////

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Los Santos Gang Wars by Oldphynix");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Los Santos Gang Wars by Oldphynix");
    print("----------------------------------\n");
}

//News
new bool:IsAFK[MAX_PLAYERS];
new grove[] = {105,106,107};
new ballas[] = {102,103,104};
new vagos[] = {108,109,110};
new aztecas[] = {114,115,116};
new usa[] = {286,287,285};
new police[] = {280,281,282};
new vip[] = {23,189,230};
new Streak[MAX_PLAYERS];
new inf[MAX_PLAYERS];
new nrg[MAX_PLAYERS];
new Float:Pos[MAX_PLAYERS][4];
//Enums


#endif

public OnGameModeInit()
{
    SetGameModeText("Crazy-LSGW");
    //=================================Ballas=================================================
    CreateVehicle(542,2008.4169922,-1275.1461182,23.6637115,0.0000000,85,85,30); //Clover
    CreateVehicle(412,2051.8417969,-1119.2258301,24.7052460,179.4595947,85,85,30); //Voodoo
    CreateVehicle(536,1990.9644775,-1121.0219727,26.6271992,270.2702637,85,85,30); //Blade
    CreateVehicle(566,1934.8454590,-1118.6450195,26.3531246,179.4595947,85,85,30); //Tahoma
    CreateVehicle(566,2091.4179688,-1140.7348633,25.4860401,91.7144775,85,85,30); //Tahoma
    CreateVehicle(536,2088.0883789,-1170.2249756,25.3986969,89.7298584,85,85,30); //Blade
    CreateVehicle(534,2052.7294922,-1105.3375244,24.2679729,270.3153076,85,85,30); //Remington
    CreateVehicle(566,2012.6968994,-1130.2408447,25.0444031,89.7288818,85,85,30); //Tahoma
    //========================================Grove============================================
    CreateVehicle(419,2505.6533203,-1693.7580566,13.4768753,1.9849854,86,86,30); //Esperanto
    CreateVehicle(567,2503.6965332,-1753.5777588,13.3785515,0.0000000,86,86,30); //Savanna
    CreateVehicle(426,2484.8698730,-1653.6285400,13.2911129,89.7298584,86,86,30); //Premier
    CreateVehicle(466,2442.9365234,-1645.0452881,13.3931656,179.4595947,86,86,30); //Glendale
    CreateVehicle(492,2511.9753418,-1673.9255371,13.3846169,352.0600586,86,86,30); //Greenwood
    CreateVehicle(550,2473.2202148,-1691.6149902,13.4371700,0.0000000,86,86,30); //Sunrise
    CreateVehicle(567,2393.3571777,-1680.5959473,14.5618858,0.0000000,86,86,30); //Savanna
    CreateVehicle(487,2376.1389160,-1645.3465576,13.7928982,179.4595947,86,86,30); //Maverick
    CreateVehicle(580,2330.9182129,-1677.1616211,14.3302841,270.2702637,86,86,30); //Stafford
    CreateVehicle(575,2299.3044434,-1645.1818848,14.4555454,0.0000000,86,86,30); //Broadway
    CreateVehicle(576,2293.3762207,-1671.3414307,14.4875612,0.0000000,86,86,30); //Tornado
    //=====================================VEGOS========================================
    CreateVehicle(555,2366.1611328,-1173.5888672,27.2100620,180.5405273,6,6,30); //Windsor
    CreateVehicle(474,2357.1274414,-1159.2579346,27.4368076,91.7148438,6,6,30); //Hermes
    CreateVehicle(474,2323.2773438,-1159.7651367,26.8782959,271.1738281,6,6,30); //Hermes
    CreateVehicle(474,2347.1220703,-1148.7227783,27.1903858,271.1700439,6,6,30); //Hermes
    CreateVehicle(533,2377.7148438,-1163.5565186,27.4057198,177.4746094,6,6,30); //Feltzer
    CreateVehicle(412,2331.8803711,-1136.3469238,27.4968567,162.5855103,6,6,30); //Voodoo
    CreateVehicle(412,2322.2697754,-1133.4924316,27.2874832,162.5400391,6,6,30); //Voodoo
    CreateVehicle(576,2308.6816406,-1170.3704834,26.2132397,179.4595947,6,6,30); //Tornado
    //====================================EX-CARS=======================================
    CreateVehicle(426,1803.1175537,-2118.2399902,13.3743496,270.3153076,93,-1,15); //Premier
    CreateVehicle(426,1803.4224854,-2107.8039551,13.2028122,270.3131104,93,-1,15); //Premier
    CreateVehicle(535,1704.7600098,-2126.5607910,13.3868752,0.0000000,93,-1,15); //Slamvan
    CreateVehicle(535,1704.7034912,-2133.0837402,13.3868752,0.0000000,93,-1,15); //Slamvan
    CreateVehicle(535,1698.5452881,-2100.1071777,13.3868752,180.5405273,93,-1,15); //Slamvan
    CreateVehicle(535,1698.3479004,-2093.1916504,13.3868752,180.5383301,93,-1,15); //Slamvan
    CreateVehicle(536,1725.0079346,-2125.7419434,13.4043503,0.0000000,93,-1,15); //Blade
    CreateVehicle(536,1725.1547852,-2133.4353027,13.4043503,0.0000000,93,-1,15); //Blade
    CreateVehicle(536,1724.7774658,-2100.0224609,13.3968754,179.4595947,93,-1,15); //Blade
    CreateVehicle(536,1724.6628418,-2091.4208984,13.3968754,179.4595947,93,-1,15); //Blade
    CreateVehicle(575,1745.0350342,-2125.5502930,13.2868748,0.0000000,93,-1,15); //Broadway
    CreateVehicle(575,1745.0584717,-2133.6308594,13.2868748,0.0000000,93,-1,15); //Broadway
    CreateVehicle(575,1747.4675293,-2099.6645508,13.2868748,180.5405273,93,-1,15); //Broadway
    CreateVehicle(575,1747.3474121,-2091.7814941,13.2930174,180.5383301,93,-1,15); //Broadway
    CreateVehicle(534,1772.2501221,-2126.0678711,13.3697519,0.0000000,93,-1,15); //Remington
    CreateVehicle(534,1772.1694336,-2134.6743164,13.3697519,0.0000000,93,-1,15); //Remington
    CreateVehicle(534,1772.9656982,-2099.0849609,13.3697519,181.4445801,93,-1,15); //Remington
    CreateVehicle(534,1772.8027344,-2089.1162109,13.3721037,181.4392090,93,-1,15); //Remington
    CreateVehicle(518,1793.5296631,-2126.0478516,13.3416824,0.0000000,93,-1,15); //Buccaneer
    CreateVehicle(419,1733.2365723,-2107.2148438,13.4768753,270.2702637,93,-1,15); //Esperanto
    CreateVehicle(419,1761.8300781,-2117.7817383,13.3128128,270.2691650,93,-1,15); //Esperanto
    CreateVehicle(419,1673.4986572,-2111.0378418,13.4768753,270.2691650,93,-1,15); //Esperanto
    CreateVehicle(419,1673.4140625,-2115.4396973,13.4768753,270.2691650,93,-1,15); //Esperanto
    CreateVehicle(419,1666.1898193,-2111.2380371,13.4768753,270.2691650,93,-1,15); //Esperanto
    CreateVehicle(419,1666.3782959,-2115.5864258,13.4768753,270.2691650,93,-1,15); //Esperanto
    CreateVehicle(535,1704.7324219,-2139.8369141,13.3868752,0.0000000,93,-1,15); //Slamvan
    CreateVehicle(535,1704.8106689,-2146.3190918,13.3868752,0.0000000,93,-1,15); //Slamvan
    CreateVehicle(535,1861.1081543,-2021.4449463,13.3868752,89.7298584,93,-1,15); //Slamvan
    CreateVehicle(535,1811.0476074,-1989.7138672,13.3943958,89.7253418,93,-1,15); //Slamvan
    CreateVehicle(535,1916.8457031,-2007.2927246,13.3868752,89.7253418,93,-1,15); //Slamvan
    CreateVehicle(535,1886.7907715,-1986.6236572,13.3868752,181.4401855,93,-1,15); //Slamvan
    CreateVehicle(535,1853.0694580,-1979.1217041,13.3868752,357.9639893,93,-1,15); //Slamvan
    CreateVehicle(439,2105.7492676,-1239.7102051,24.7612381,0.0000000,-1,-1,15); //Stallion
    CreateVehicle(439,2102.5671387,-1272.8940430,25.4898376,179.4595947,-1,-1,15); //Stallion
    CreateVehicle(549,2135.8015137,-1327.7863770,25.4041367,0.0000000,-1,-1,15); //Tampa
    CreateVehicle(533,2196.0114746,-1277.0618896,24.3321590,179.4595947,-1,-1,15); //Feltzer
    CreateVehicle(526,2245.3662109,-1244.0839844,25.2787685,0.0000000,-1,-1,15); //Fortune
    CreateVehicle(527,2229.9572754,-1357.8532715,23.7707081,89.7298584,-1,-1,15); //Cadrona
    CreateVehicle(545,2187.6206055,-1435.0086670,25.4890633,270.2702637,-1,-1,15); //Hustler
    CreateVehicle(491,2192.8657227,-1466.1931152,25.4390621,270.2702637,-1,-1,15); //Virgo
    CreateVehicle(555,2198.0859375,-1504.9213867,23.7379093,0.0000000,-1,-1,15); //Windsor
    CreateVehicle(555,2190.7687988,-1503.9162598,23.7255230,0.0000000,-1,-1,15); //Windsor
    CreateVehicle(555,2183.4846191,-1502.5552979,23.7384129,0.0000000,-1,-1,15); //Windsor
    CreateVehicle(555,2176.1499023,-1501.0584717,23.7449932,0.0000000,-1,-1,15); //Windsor
    CreateVehicle(480,2391.0239258,-1503.5548096,23.6848660,270.2702637,-1,-1,15); //Comet
    CreateVehicle(410,2391.2412109,-1491.0426025,23.5781174,270.2702637,-1,-1,15); //Manana
    CreateVehicle(474,2404.1391602,-1390.5333252,24.0291042,97.7148438,-1,-1,15); //Hermes
    CreateVehicle(481,2289.4953613,-1509.5136719,26.4702015,0.0000000,-1,-1,15); //BMX
    CreateVehicle(481,2499.6250000,-1773.8959961,13.1556511,81.7448730,-1,-1,15); //BMX
    CreateVehicle(521,2182.5859375,-1804.5662842,13.0305405,0.0000000,-1,-1,15); //FCR-900
    CreateVehicle(434,2159.0766602,-1803.1386719,13.5261850,270.2702637,-1,-1,15); //Hotknife
    CreateVehicle(424,2249.4201660,-1906.4842529,13.3941011,0.0000000,-1,-1,15); //BF Injection
    CreateVehicle(424,2273.0725098,-1906.8720703,13.3941011,0.0000000,-1,-1,15); //BF Injection
    CreateVehicle(424,2296.7111816,-1906.3524170,13.4326077,0.0000000,-1,-1,15); //BF Injection
    CreateVehicle(424,2083.5314941,-2042.2606201,13.3941011,0.0000000,-1,-1,15); //BF Injection
    CreateVehicle(561,2065.6494141,-1919.5579834,13.4708748,0.0000000,-1,-1,15); //Stratum
    CreateVehicle(500,2055.9873047,-1904.0855713,13.7668753,177.4746094,-1,-1,15); //Mesa
    CreateVehicle(500,1777.1715088,-1932.1259766,13.6066456,269.1882324,-1,-1,15); //Mesa
    CreateVehicle(400,1804.8428955,-1932.3750000,13.5226336,0.0000000,-1,-1,15); //Landstalker
    CreateVehicle(580,1804.8051758,-1690.7974854,13.4409466,181.4445801,-1,-1,15); //Stafford
    CreateVehicle(550,1672.3281250,-1719.4384766,20.4071560,0.0000000,-1,-1,15); //Sunrise
    CreateVehicle(550,1663.5389404,-1714.8247070,15.5321569,0.0000000,-1,-1,15); //Sunrise
    CreateVehicle(550,1648.4765625,-1718.0042725,20.4071560,0.0000000,-1,-1,15); //Sunrise
    CreateVehicle(546,1836.4309082,-1853.5579834,13.2315960,179.4595947,-1,-1,15); //Intruder
    CreateVehicle(540,2194.0451660,-1361.9377441,25.6269073,181.4445801,-1,-1,15); //Vincent
    CreateVehicle(516,2478.7856445,-1526.9693604,23.9024277,0.0000000,-1,-1,15); //Nebula
    CreateVehicle(421,2417.6958008,-1537.8472900,24.0000000,179.4595947,-1,-1,15); //Washington
    CreateVehicle(405,2400.9104004,-1543.8258057,23.9924984,0.0000000,-1,-1,15); //Sentinel
    CreateVehicle(466,2053.4560547,-1694.8283691,13.4746838,270.2702637,-1,-1,15); //Glendale
    CreateVehicle(507,2117.1508789,-1781.5656738,13.3386984,0.0000000,-1,-1,15); //Elegant
    CreateVehicle(578,1922.6846924,-1792.7514648,14.1328125,270.2702637,-1,-1,15); //DFT-30
    CreateVehicle(487,2018.4631348,-2414.4885254,13.8118753,89.7298584,-1,-1,15); //Maverick
    CreateVehicle(513,1897.7922363,-2283.1889648,14.3316317,270.2702637,-1,-1,15); //Stunt
    CreateVehicle(513,1896.8525391,-2307.6562500,14.3316317,270.2691650,-1,-1,15); //Stunt
    CreateVehicle(519,1834.2904053,-2419.2644043,14.5547600,185.4595947,-1,-1,15); //Shamal
    CreateVehicle(593,1889.4641113,-2625.8610840,14.0970573,0.0000000,-1,-1,15); //Dodo
    CreateVehicle(593,1823.1008301,-2630.4035645,14.0970573,0.0000000,-1,-1,15); //Dodo
    CreateVehicle(476,1754.1528320,-2631.5759277,14.7170277,0.0000000,-1,-1,15); //Rustler
    CreateVehicle(476,1684.3085938,-2629.1066895,14.7170277,0.0000000,-1,-1,15); //Rustler
    CreateVehicle(476,1621.3708496,-2631.0673828,14.7170277,0.0000000,-1,-1,15); //Rustler
    CreateVehicle(519,1565.6520996,-2458.0432129,14.5547600,185.4547119,-1,-1,15); //Shamal
    CreateVehicle(553,2029.6096191,-2593.1721191,15.7818747,87.6998291,-1,-1,15); //Nevada
    CreateVehicle(553,2035.7067871,-2494.2014160,15.7818747,87.6998291,-1,-1,15); //Nevada
    CreateVehicle(422,1947.7591553,-2130.2314453,13.6259069,270.2702637,-1,-1,15); //Bobcat
    CreateVehicle(478,1939.0050049,-2086.7492676,13.6408720,270.3153076,-1,-1,15); //Walton
    CreateVehicle(415,1359.1955566,-1752.1113281,13.2183523,0.0000000,-1,-1,15); //Cheetah
    CreateVehicle(429,1809.8504639,-1431.6130371,13.1796875,0.0000000,-1,-1,15); //Banshee
    CreateVehicle(451,1700.7192383,-1085.2103271,23.6706219,0.0000000,-1,-1,15); //Turismo
    CreateVehicle(451,1756.5913086,-1037.9859619,23.7253094,0.0000000,-1,-1,15); //Turismo
    CreateVehicle(477,1784.1574707,-1085.0566406,23.8186207,0.0000000,-1,-1,15); //ZR-350
    CreateVehicle(477,1703.1610107,-1036.3895264,23.7562504,0.0000000,-1,-1,15); //ZR-350
    CreateVehicle(480,1707.6250000,-1043.4321289,23.7562504,179.4595947,-1,-1,15); //Comet
    CreateVehicle(480,1752.5108643,-1046.3477783,23.8109379,179.4561157,-1,-1,15); //Comet
    CreateVehicle(506,1775.2810059,-1070.2589111,23.7530518,1.9849854,-1,-1,15); //Super GT
    CreateVehicle(506,1685.7500000,-1045.0350342,23.6983643,178.6491089,-1,-1,15); //Super GT
    CreateVehicle(506,1636.2630615,-1047.0765381,23.6905518,178.6486816,-1,-1,15); //Super GT
    CreateVehicle(451,1718.0129395,-1069.3131104,23.6706219,0.0000000,-1,-1,15); //Turismo
    CreateVehicle(541,2161.4829102,-1157.3620605,23.5444164,87.7448730,-1,-1,15); //Bullet
    CreateVehicle(555,2148.3627930,-1175.6520996,23.6006870,270.2702637,-1,-1,15); //Windsor
    CreateVehicle(558,2160.8876953,-1191.6635742,23.5239391,89.7298584,-1,-1,15); //Uranus
    CreateVehicle(560,2348.3186035,-1218.2395020,22.3049755,0.0000000,-1,-1,15); //Sultan
    CreateVehicle(562,2420.1069336,-1103.4743652,40.5960312,0.0000000,-1,-1,15); //Elegy
    CreateVehicle(565,2535.3278809,-1027.8776855,69.2718887,179.4595947,-1,-1,15); //Flash
    CreateVehicle(603,2661.5222168,-1436.9523926,30.4966660,0.0000000,-1,-1,15); //Phoenix
    CreateVehicle(496,2658.2741699,-1696.2573242,9.1078424,270.2702637,-1,-1,15); //Blista Compact
    CreateVehicle(526,2680.6035156,-1673.8489990,9.2692957,179.4595947,-1,-1,15); //Fortune
    CreateVehicle(527,2486.0471191,-1952.8712158,13.2134686,0.0000000,-1,-1,15); //Cadrona
    CreateVehicle(527,2498.7905273,-1953.0479736,13.2119150,0.0000000,-1,-1,15); //Cadrona
    CreateVehicle(527,2377.4465332,-1927.7027588,13.1659613,0.0000000,-1,-1,15); //Cadrona
    CreateVehicle(533,2356.9252930,-2023.8217773,13.3717451,0.0000000,-1,-1,15); //Feltzer
    CreateVehicle(549,2452.2985840,-2023.2841797,13.4083519,0.0000000,-1,-1,15); //Tampa
    CreateVehicle(475,2474.0449219,-1993.9720459,13.4468746,179.4595947,-1,-1,15); //Sabre
    CreateVehicle(419,2181.3483887,-1910.3403320,13.4476757,0.0000000,-1,-1,15); //Esperanto
    CreateVehicle(515,2429.9897461,-2106.2580566,14.7005959,0.0000000,-1,-1,15); //Roadtrain
    CreateVehicle(439,2010.9241943,-2203.4509277,13.5468750,0.0000000,-1,-1,15); //Stallion
    CreateVehicle(419,1669.8154297,-1885.7745361,13.4768753,87.7448730,-1,-1,15); //Esperanto
    CreateVehicle(518,1373.6936035,-1889.1854248,13.2898045,0.0000000,-1,-1,15); //Buccaneer
    CreateVehicle(545,1280.2962646,-1544.8939209,13.4928999,270.2702637,-1,-1,15); //Hustler
    CreateVehicle(475,888.6965942,-1668.8299561,13.4468746,0.0000000,-1,-1,15); //Sabre
    CreateVehicle(534,879.7586670,-1669.0106201,13.3697519,0.0000000,-1,-1,15); //Remington
    CreateVehicle(567,884.1151123,-1679.4265137,13.5252171,179.4595947,-1,-1,15); //Savanna
    CreateVehicle(575,519.0882568,-1561.2849121,15.9598932,209.3695679,-1,-1,15); //Broadway
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    ShowPlayerDialog(playerid, DIALOG_TEAMS, DIALOG_STYLE_LIST, "Choose your Team", "Groove Street Gang\nBallas Gang\nAztecas Gang\nVagos Gang\nUSA Team\nPolice Team\nVIP Team", "Spawn", "Quit");
    return 1;
}

public OnPlayerConnect(playerid)
{
    new pname[MAX_PLAYER_NAME], string[23 + MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "[Info]Player %s Has Joined C-LSGW Server.", pname);
    SendClientMessage(playerid, COLOR_GOLD, string);
    SendClientMessage(playerid, COLOR_YELLOW, "[Info]Hello %s,Welcome to Crazy Los Santos Gang Wars Server!");
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    new string[64],
    name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    switch(reason)
    {
       case 0: format(string,sizeof string,"[Info]Player %s Has Leaved The Servers. (Crashed/Timeout)",name);
       case 1: format(string,sizeof string,"[Info]Player %s Has Leaved The Servers. (Quit/Leave)",name);
       case 2: format(string,sizeof string,"[Info]Player %s Has Leaved The Servers. (Kicked/Banned)",name);
    }
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    GivePlayerWeapon(playerid, 24, 750);
    GivePlayerWeapon(playerid, 27, 731);
    GivePlayerWeapon(playerid, 29, 616);
    GivePlayerWeapon(playerid, 31, 817);
    GivePlayerWeapon(playerid, 43, 1);
    SendClientMessage(playerid, COLOR_GREEN, "[Info]You have been spawned!");
    SendClientMessage(playerid, COLOR_GREEN, "[Info]You get some weapons when you spawned!");
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, reason);
    GivePlayerMoney(killerid, 2500);
    GivePlayerMoney(playerid, -1000);
    new score;
    score = GetPlayerScore(killerid);
    SetPlayerScore(killerid, score+2);
    new Float:killerarmour;
    GetPlayerArmour(killerid, killerarmour);
    SetPlayerArmour(killerid, killerarmour+15);

    Streak[playerid] = 0;
    Streak[killerid]++;
    switch(Streak[killerid])
    {
        case 2:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 3 killstreak,you got 2 score +5000 Cash");
        GivePlayerMoney(playerid,5000);
        SetPlayerScore(killerid, score+2);
        }
        case 3:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 5 killstreak,you got 3 score +7500 Cash");
        GivePlayerMoney(playerid,7500);
        SetPlayerScore(killerid, score+3);
        }
        case 4:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 7 killstreak,you got 4 score +10000 Cash");
        GivePlayerMoney(playerid,10000);
        SetPlayerScore(killerid, score+4);
        }
        case 5:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 10 killstreak,you got 5 score +12500 Cash");
        GivePlayerMoney(playerid,12500);
        SetPlayerScore(killerid, score+5);
        }
        case 6:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 13 killstreak,you got 6 score +15000 Cash");
        GivePlayerMoney(playerid,15000);
        SetPlayerScore(killerid, score+6);
        }
        case 7:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 15 killstreak,you got 7 score +17500 Cash");
        GivePlayerMoney(playerid,17500);
        SetPlayerScore(killerid, score+7);
        }
        case 8:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 17 killstreak,you got 8 score +20000 Cash");
        GivePlayerMoney(playerid,20000);
        SetPlayerScore(killerid, score+8);
        }
        case 9:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 20 killstreak,you got 10 score +25000 Cash");
        GivePlayerMoney(playerid,25000);
        SetPlayerScore(killerid, score+10);
        }
        case GODLIKE:
        {
        SendClientMessage(killerid, -1, "[Info]{0044FF}You are on a 25 killstreak,you got 15 score +30000 Cash");
        GivePlayerMoney(playerid,30000);
        SetPlayerScore(killerid, score+15);
        }
    }
    return 1;
}

public OnVehicleSpawn(vehicleid)
{
    return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
    return 1;
}

public OnPlayerText(playerid, text[])
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    return 1;
    }

stock PlayerName(playerid) {
  new name[255];
  GetPlayerName(playerid, name, 255);
  return name;
}
CMD:vweapons(playerid,params[])
{

    if(IsPlayerVipMember(playerid))
    {
    GivePlayerWeapon(playerid,31,9999),GivePlayerWeapon(playerid,24,9999),GivePlayerWeapon(playerid,27,9999);
    }
    else SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Info]{005EFF} You must be VIP To use this!");
    return 1;
}

CMD:vhelp(playerid,params[])
{

    if(IsPlayerVipMember(playerid))
    {
    ShowPlayerDialog(playerid, DIALOG_CMDS, 0, "VIP Commands", "VIP Commands\n /healme | /vcar | /vbike | /vweapons", "Close", "");
    }
    else SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Info]{005EFF} You must be VIP To use this!");
    return 1;
}

CMD:vcar(playerid,params[])
{
    if(IsPlayerVipMember(playerid))
    {
        if(gettime() > GetPVarInt(playerid, "vcar"))
        {
        DestroyVehicle(inf[playerid]);
        GetPlayerPos(playerid,Pos[playerid][1],Pos[playerid][2],Pos[playerid][3]);
        inf[playerid]=CreateVehicle(411,Pos[playerid][1],Pos[playerid][2],Pos[playerid][3],0,-1,-1,10);
        PutPlayerInVehicle(playerid,inf[playerid], 0);
        SendClientMessage(playerid,0xFF641AFF,"[Info]: You have Spawned An Infernus.");
        SetPVarInt(playerid, "vcar", gettime() + 60);
        }
        else if(gettime() < GetPVarInt(playerid, "vcar")) return SendClientMessage(playerid, -1, "{FF0000}[ERROR]{005EFF} You need to wait 60 seconds to use this command again!");
    }
    else SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Info]{005EFF} You must be VIP To use this!");
    return 1;
}

CMD:vbike(playerid,params[])
{
    if(IsPlayerVipMember(playerid))
    {
        if(gettime() > GetPVarInt(playerid, "vcar"))
        {
        DestroyVehicle(nrg[playerid]);
        GetPlayerPos(playerid,Pos[playerid][1],Pos[playerid][2],Pos[playerid][3]);
        nrg[playerid]=CreateVehicle(522,Pos[playerid][1],Pos[playerid][2],Pos[playerid][3],0,-1,-1,10);
        PutPlayerInVehicle(playerid,nrg[playerid], 0);
        SendClientMessage(playerid,0xFF641AFF,"[Info]: You have Spawned An NRG-500.");
        SetPVarInt(playerid, "Time", gettime() + 60);
        }
        else if(gettime() < GetPVarInt(playerid, "vcar")) return SendClientMessage(playerid, -1, "{FF0000}[ERROR]{005EFF} You need to wait 60 seconds to use this command again!");
    }
    else SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Info]{005EFF} You must be VIP To use this!");
    return 1;
}
CMD:sync(playerid, params[])
{
    if(gettime() > GetPVarInt(playerid, "Time"))
    {
        TogglePlayerControllable(playerid,false);
        TogglePlayerControllable(playerid,true);
        SendClientMessage(playerid, -1,"[Info]{00AAFF}You just got Sync'd");
        SetPVarInt(playerid, "Time", gettime() + 30);
    }
    else if(gettime() < GetPVarInt(playerid, "Time")) return SendClientMessage(playerid, -1, "{FF0000}[ERROR]{005EFF} You need to wait 60 seconds to use this command again!");
    return 1;
}

CMD:healme(playerid,params[])
{
    if(IsPlayerVipMember(playerid))
    {
        if(gettime() > GetPVarInt(playerid, "healme"))
        {
        SetPlayerHealth(playerid, 100);
        SetPVarInt(playerid, "healme", gettime() + 60);
        }
        else if(gettime() < GetPVarInt(playerid, "healme")) return SendClientMessage(playerid, -1, "{FF0000}[ERROR]{005EFF} You need to wait 60 seconds to use this command again!");
    }
    else SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Info]{005EFF} You must be VIP To use this!");
    return 1;
}

CMD:afk(playerid,params[])
    {
    new string[128];
    if(IsAFK[playerid] == true)
    {
    SendClientMessage(playerid,COLOR_ERROR,"{FF0000}[Info]{005EFF} You are already AFK use /back to be back");
    return 1;
                }
    IsAFK[playerid] = true;
    TogglePlayerControllable(playerid,0);
    SetPlayerInterior(playerid,3);
    SetPlayerPos(playerid,-2673.3909,1409.6527,907.5703);
    SetPlayerFacingAngle(playerid,359.8516);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
    format(string,sizeof(string),"[Info]{3700FF}%s(%d) {FFB300}has gone to AFK mode.",PlayerName(playerid),playerid);
    SendClientMessageToAll(COLOR_DODGERBLUE,string);
    SendClientMessage(playerid, 0x800080FF, "[Info]{FFFFFF}You Are AFK . Use /Back To get back to action :D");
    return 1;
    }
CMD:back(playerid,params[])
    {
    new string[128];
    if(IsAFK[playerid] == false)
    {
    SendClientMessage(playerid,COLOR_ERROR,"{FF0000}[Info]{005EFF} You aren't in AFK mode.");
    return 1;
    }
    IsAFK[playerid] = false;
    TogglePlayerControllable(playerid,1);
    SetPlayerPos(playerid,xpos,ypos,zpos);
    SetPlayerInterior(playerid,0);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
    format(string,sizeof(string),"[Info]{3700FF}%s(%d) {FFB300}is no longer AFK.",PlayerName(playerid),playerid);
    SendClientMessageToAll(COLOR_DODGERBLUE,string);
    return 1;
    }
CMD:changeteam(playerid,params[])
    {
        ShowPlayerDialog(playerid, DIALOG_TEAMS, DIALOG_STYLE_LIST, "Choose your Team", "Groove Street Gang\nBallas Gang\nAztecas Gang\nVagos Gang\nUSA Team\nPolice Team\nVIP Team", "Spawn", "Quit");
        return 1;
    }

CMD:rules(playerid,params[])
{
    ShowPlayerDialog(playerid, DIALOG_RULES, 0, "Server Community Rules", "1-Don't Spawn Kill\n2-Don't Team Attack\n3-Don't Bug Abuse/Cheat/Use hacks/mods\n4-C/slide/no reload bugs allowed\n- Don't ask for Administration Rank\n-Don't ask for Score / Money.", "Close", "");
    return 1;
}

CMD:help(playerid,params[])
{
    ShowPlayerDialog(playerid, DIALOG_HELP, 0, "Server Help", "Killers Zone Beta\n Please Read /rules to read our rules \n /cmds for our other commands ..", "Close", "");
    return 1;
}

CMD:cmds(playerid,params[])
{
    ShowPlayerDialog(playerid, DIALOG_CMDS, 0, "Server Commands", "Server Commands\nAccount Commands:/login | /register | /changename | /stats |\nGeneral Commands:/kill | /help | /commands | /cmds | /rules | /changeteam\n/afk | /back | /healme | /armourme | /sync | /admins\n/vips | /credits | /news | /nextupdate", "Close", "Ok");
    return 1;
}

CMD:killme(playerid,params[])
{
    SetPlayerHealth(playerid, 0);
    SCM(playerid, COLOR_GREEN, "You have been suicide!");
    return 1;
}
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 OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
    if(response)
    {
    if(listitem == 0)
    {
    SetSpawnInfo(playerid, 0, grove[random(3)], 2486.5652,-1645.6804,14.0703,176.4199, 0, 0, 0, 0, 0, 0 );
    SetPlayerColor(playerid, 0x004000FF);
    }
    if(listitem == 1)
    {
    SetSpawnInfo(playerid, 1, ballas[random(3)], 2046.1179,-1115.6752,26.3617,266.6295, 0, 0, 0, 0, 0, 0 );
    SetPlayerColor(playerid, 0xB704B3FF);
    }
    if(listitem == 2)
    {
    SetSpawnInfo(playerid, 2, aztecas[random(3)], 1678.0437,-2112.8284,13.5469,269.9214, 0, 0, 0, 0, 0, 0 );
    SetPlayerColor(playerid, 0x00B7B7FF);
    }
    if(listitem == 3)
    {
    SetSpawnInfo(playerid, 3, vagos[random(3)], 2351.8303,-1166.2504,27.4523,352.9199, 0, 0, 0, 0, 0, 0 );
    SetPlayerColor(playerid, 0xFDFD00FF);
    }
    if(listitem == 4)
    {
    SetSpawnInfo(playerid, 4, 0, 2735.00,-2451.02,17.59, 0, 0, 0, 0, 0, 0, 0 );
    SetPlayerColor(playerid, 0xB8860BAA);
    }
    if(listitem == 5)
    {
    SetSpawnInfo(playerid, 5, 0, 1580.05,-1635.72,13.56, 0, 0, 0, 0, 0, 0, 0 );
    SetPlayerColor(playerid, 0x0000BBAA);
    }
    if(listitem == 6)
    {
        if(IsPlayerVipMember(playerid))
        {
        SetSpawnInfo(playerid, 6, vip[random(3)], 2153.22, -1800.44, 12.53,0.0, 0, 0, 0, 0, 0, 0 );
        SetPlayerColor(playerid, 0x045BECFF);
        }
        else
        {
        SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[ERROR]{005EFF} You must be VIP To use this!");
        ShowPlayerDialog(playerid, DIALOG_TEAMS, DIALOG_STYLE_LIST, "Choose your Team", "Groove Street Gang\nBallas Gang\nAztecas Gang\nVagos Gang\nUSA Team\nPolice Team\nVIP Team", "Spawn", "Quit");
        }
    }
    return 1;
}
}
}
thanks a lot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)