Help I Need Scripter!!
#1

Help I Need Scripter To Fix My Command And Edit My Gamemodes
Reply
#2

Are you offering any payement?
Reply
#3

do u have skype? talk to me at skype

ADD ME ON SKYPE:dj.cabo
Reply
#4

Quote:
Originally Posted by djcabo
Посмотреть сообщение
Help I Need Scripter To Fix My Command And Edit My Gamemodes
THIS ISSSSS only if you have problem wich your code and POST IT HERE
Reply
#5

djcabo, add me on skype, i will help you. Read your Private messages on SA-MP now for my skype ID.
Reply
#6

Код:
#include <a_samp>
#include <dini>
#include <dudb>
#include <dutils>
#include <pvehicle>

#include <a_samp>
#include <a_players>
#include <a_sampdb>
#include <a_vehicles>


forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
// Colors
#define COLOR_BRIGHTRED 0xFF000AAA
#define COLOR_AQUA 0x00FFFFAA
#define COLOR_GREYs 0xAFAFAFAA
#define COLOR_BEIGE 0xFFF8DCAA
#define COLOR_BLACK 0x000000AA
#define COLOR_BLUE 0x0000FFAA
#define COLOR_BLUELIGHTER 0x00BFFFAA
#define COLOR_BLUELIGHT 0x1E90FFAA
#define COLOR_BLUEMEDIUM 0x0000CDAA
#define COLOR_BLUEDARK 0x00008BAA
#define COLOR_PINK 0xFF1493AA
#define COLOR_PINKDARK 0xFF00FFAA
#define COLOR_FADE 0xE6E6E6E6
#define COLOR_GREEN 0x008000AA
#define COLOR_GREENLIGHT 0x00FF00AA
#define COLOR_GREENDARK 0x006400AA
#define COLOR_MAROON 0x800000AA
#define COLOR_OKER 0x808000AA
#define COLOR_ORANGE 0xFF4500AA
#define COLOR_ORANGELIGHT 0xFF8C00AA
#define COLOR_PURPLE 0x800080AA
#define COLOR_VIOLETDARK 0x9400D3AA
#define COLOR_INDIGO 0xAB0082AA
#define COLOR_RED 0xFF0000AA
#define COLOR_SAND 0xFFDEADAA
#define COLOR_SILVER 0xC0C0C0AA
#define COLOR_TEAL 0x008080AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_GOLD 0xFFD700AA
#define COLOR_BROWN 0x8B4513AA
#define COLOR_BROWNLIGHT 0xA0522DAA
#define COLOR_GRAY 0xA9A9A9AA
#define COLOR_GRAYDARK 0x696969AA
#define COLOR_INVISIBLE 0xFFFFFF00
#define COLOR_GREY 0xBEBEBEAA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_GREENs 0x33AA33AA
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_RED1 0xFF0000AA


new pTyped[MAX_PLAYERS];

new logged[MAX_PLAYERS];
new Float:ex, Float:ey, Float:ez;
new pPlayerAccount[MAX_PLAYER_NAME];
new pMoney[MAX_PLAYERS];
new pAdmin[MAX_PLAYERS];
new pKills[MAX_PLAYERS];
new pLevel[MAX_PLAYERS];
new pDeaths[MAX_PLAYERS];
new pTeam[MAX_PLAYERS];
new playername[MAX_PLAYER_NAME];
new BushEnabled[MAX_PLAYERS];
new BushObject [MAX_PLAYERS];
new FunEventOn = 0;

// Turfs
new gPlayerClass[MAX_PLAYERS];
new gTeam[MAX_PLAYERS];
//Gang Zones
new astecs;
new grove1;
new grove2;
new ballas;
new vagos;
new polis;
new ortak;
//TextDrawlar
new Text:Textdraw0;

//====================
forward SetPlayerToTeamColor(playerid);
forward CrimProxDetector(Float:radi, playerid,col1,col2,col3,col4,col5,col6,col7,col8,col9,col10);
forward IsStringAName (string[]);
forward GetPlayerID (string[]);
forward drawkapat();
forward SendTeamMessage(team, color, string[]);
forward Float:GetDistanceBetweenPlayers(p1,p2);
forward SendBeachBoysMessage(color, string[]);

// Teams
#define TEAM_GANGSTAS 0
#define TEAM_BALLAS 1
#define TEAM_VAGOS 2
#define TEAM_AZTECAS 3
#define TEAM_LSPD 4
#define TEAM_CIV 5
#define TEAM_GUNDEALER 6

#if defined FILTERSCRIPT

public OnGameModeInit()
{
    print("\n~=~=~=~=~=~=~=~=~=~=~=~=~=~=~~=~=~=");
    print("  .:	Dj Cabo's Freeroam :.\n");
    print("  .: 	  By djcabo		:.");
    print("~=~=~=~=~=~=~=~=~=~=~=~=~=~=~~=~=~=\n");
    return 1;
}


public OnGameModeExit()
{
    return 1;
}


#else

main()
{
    print("\n~=~=~=~=~=~=~=~=~=~=~=~=~=~=~~=~=~=");
    print("  .:	[Dj Cabo's Freeroam] :.\n");
    print("  .:       By djcabo			:.");
    print("~=~=~=~=~=~=~=~=~=~=~=~=~=~=~~=~=~=\n");
}
#endif

public OnGameModeInit()
{
    Textdraw0 = TextDrawCreate(25.000000,128.000000,"Capture Red Marker on Map. Kill Other Gang Members.");
    TextDrawUseBox(Textdraw0,1);
    TextDrawBoxColor(Textdraw0,0x00000066);
    TextDrawTextSize(Textdraw0,208.000000,-19.000000);
    TextDrawAlignment(Textdraw0,0);
    TextDrawBackgroundColor(Textdraw0,0x000000ff);
    TextDrawFont(Textdraw0,1);
    TextDrawLetterSize(Textdraw0,0.400000,1.600000);
    TextDrawColor(Textdraw0,0xffffffff);
    TextDrawSetOutline(Textdraw0,1);
    TextDrawSetProportional(Textdraw0,1);
    TextDrawSetShadow(Textdraw0,1);
//GANG ZONES
    astecs = GangZoneCreate(1489.865, -2179.277, 1969.022, -1752.921);
    grove1 = GangZoneCreate(2083.108, -2052.949, 2691.561, -1930.57);
    grove2 = GangZoneCreate(2204.798, -1942.413, 2600.293, -1492.37);
    ballas = GangZoneCreate(1858.74, -1373.938, 2425.363, -1042.328);
    vagos = GangZoneCreate(2600.293, -2056.897, 2915.929, -1069.962);
    polis = GangZoneCreate(1524.091, -1745.026, 1619.162, -1591.064);
    ortak = GangZoneCreate(668.4526, -1737.13, 1429.02, -896.5614);
//pick ups
                                                  // LSPD DUTY
    AddStaticPickup(1239,23,1538.7574,-1685.1531,13.5469);
                                                  // cluckinbell1 health pickup
    AddStaticPickup(1240,1,364.7778,-11.0999,1001.8516);
                                                  // cluckinbell2 health pickup
    AddStaticPickup(1240,1,927.0858,-1352.7571,13.3766);
                                                  //cluckinbell3 health pickup
    AddStaticPickup(1240,1,2397.7871,-1897.9752,13.5469);
                                                  // cluckinbell4 health pickup
    AddStaticPickup(1240,1,2420.6458,-1509.7050,24.0000);
                                                  // cluckinbell5 health pickup
    AddStaticPickup(1240,1,1199.2339,-919.6538,43.1120);
                                                  // cluckinbell6 health pickup
    AddStaticPickup(1240,1,813.1199,-1616.3560,13.5547);
                                                  // BEACH BOYS CLAIM
    AddStaticPickup(1239,23,322.9717,-1773.7930,4.8277);
                                                  // BALLAS CLAIM
    AddStaticPickup(1239,23,2219.5300,-1154.2638,26.2266);
                                                  // BALLAS CLAIM
    AddStaticPickup(1239,23,2716.8638,-1150.8356,69.5781);
                                                  // BALLAS CLAIM
    AddStaticPickup(1239,23,1698.4174,-2098.8901,13.5469);
                                                  // DOWNTOWN CLAIM
    AddStaticPickup(1254,23, 1121.8634,-1203.0513,27.4792);
                                                  // BUYING GUNS
    AddStaticPickup(1254,23, 1366.4325,-1275.2096,13.5469);
                                                  // CRACK DEN enter
    AddStaticPickup(1254,23,2352.0007,-1168.8942,27.9879);
                                                  // CRACK DEN exit
    AddStaticPickup(1254,23,1527.229980,-11.574499,1002.097106);
                                                  // BALLAS HQ enter
    AddStaticPickup(1272,23,2231.7825,-1159.7080,25.8906);
                                                  // BALLAS HQ exit
    AddStaticPickup(1272,23,318.564971,1118.209960,1083.882812);
                                                  // VAGOS HQ enter
    AddStaticPickup(1272,23,2756.3579,-1182.8083,69.4035);
                                                  // RYDERS DRUG HOUSE
    AddStaticPickup(1254,23,2459.4539,-1690.9188,13.5453);
                                                  // RYDERS DRUG HOUSE exit
    AddStaticPickup(1254,23, 2454.717041,-1700.871582,1013.515197);
                                                  //SWEETS HOUSE
    AddStaticPickup(1272,23, 2523.0286,-1679.2728,15.4970);
                                                  //SWEETS HOUSE exit
    AddStaticPickup(1272,23, 2527.654052,-1679.388305,1015.498596);
    AddStaticPickup(1239,23,1778.2642,-2432.2908,13.5547);
    AddStaticPickup(1239,23,2177.1697,-1666.6635,15.0859);

    

    SetGameModeText("Freeroam/Roleplay");
// Beach Boys
    AddPlayerClass(45,317.9346,-1809.2288,4.4797,356.6825,0,0,0,0,0,0); //
    AddPlayerClass(18,317.9346,-1809.2288,4.4797,356.6825,0,0,0,0,0,0); //
    AddPlayerClass(138,317.9346,-1809.2288,4.4797,356.6825,0,0,0,0,0,0); //
// Front Yard Ballas
    AddPlayerClass(102, 2209.9856,-1177.3947,25.7266, 0, 31, 50000, 27, 50000, 23, 50000);
    AddPlayerClass(103, 2209.9856,-1177.3947,25.7266, 0, 31, 50000, 27, 50000, 23, 50000);
    AddPlayerClass(104, 2209.9856,-1177.3947,25.7266, 0, 31, 50000, 27, 50000, 23, 50000);
// Vagos
    AddPlayerClass(108, 2717.1780,-1124.1628,69.5781, 0, 30, 50000, 31, 50000, 32, 50000);
    AddPlayerClass(109, 2717.1780,-1124.1628,69.5781, 0, 30, 50000, 31, 50000, 32, 50000);
    AddPlayerClass(110, 2717.1780,-1124.1628,69.5781, 0, 30, 50000, 31, 50000, 32, 50000);
// Aztecas
    AddPlayerClass(114, 1725.641, -2120.061, 15, 0, 32, 50000, 34, 50000, 23, 50000);
    AddPlayerClass(115, 1725.641, -2120.061, 15, 0, 32, 50000, 34, 50000, 23, 50000);
    AddPlayerClass(116, 1725.641, -2120.061, 15, 0, 32, 50000, 34, 50000, 23, 50000);
// Police
    AddPlayerClass(265, 1554.513, -1677.914, 15, 0, 25, 50000, 24, 50000, 31, 50000);
    AddPlayerClass(266, 1554.513, -1677.914, 15, 0, 25, 50000, 24, 50000, 31, 50000);
    AddPlayerClass(267, 1554.513, -1677.914, 15, 0, 25, 50000, 24, 50000, 31, 50000);
//Civilians
                                                  //
    AddPlayerClass(52,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(53,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(54,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(55,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(56,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(57,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(58,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(59,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(60,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(61,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(62,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(63,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(64,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(65,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(66,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(67,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(68,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(69,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(70,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(72,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(73,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(293,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(93,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(95,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(97,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(142,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(154,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(156,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(176,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(261,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);
                                                  //
    AddPlayerClass(291,1698.1757,-1039.7537,23.9063,0.6558,0,0,0,0,0,0);

// Cars
                                                  //
    AddStaticVehicle(598,1536.0474,-1666.3302,13.1275,359.2788,0,1);
                                                  //
    AddStaticVehicle(598,1535.9395,-1674.8959,13.1366,359.2789,0,1);
                                                  //
    AddStaticVehicle(598,1535.8698,-1680.4412,13.2078,359.2790,0,1);
                                                  //
    AddStaticVehicle(598,1534.4950,-1661.4175,13.2069,0.5602,0,1);
                                                  //
    AddStaticVehicle(598,1534.3932,-1652.4973,13.2082,0.5632,0,1);
                                                  //
    AddStaticVehicle(598,1534.2819,-1641.7218,13.2089,359.8664,0,1);
                                                  //
    AddStaticVehicle(598,1534.4392,-1685.4253,13.2042,177.2082,0,1);
                                                  //
    AddStaticVehicle(598,1534.3845,-1698.5042,13.2083,180.6520,0,1);
                                                  //
    AddStaticVehicle(598,1534.5375,-1711.5868,13.2083,180.7989,0,1);
                                                  //
    AddStaticVehicle(603,2505.7097,-1679.8519,13.3003,136.4762,86,86);
                                                  //
    AddStaticVehicle(603,2507.5288,-1666.2064,13.2324,207.2644,86,96);
                                                  //
    AddStaticVehicle(603,2503.1296,-1679.7917,13.2144,125.0997,86,86);
                                                  //
    AddStaticVehicle(402,2460.2903,-1665.2214,13.2673,70.3100,86,86);
                                                  //
    AddStaticVehicle(567,2496.8782,-1676.2019,13.2157,88.2251,86,86);
                                                  //
    AddStaticVehicle(567,1701.8403,-2116.3042,13.2525,86.9232,90,96);
                                                  //
    AddStaticVehicle(567,1688.2214,-2116.2803,13.3440,91.2763,90,96);
                                                  //
    AddStaticVehicle(567,1688.0098,-2108.2297,13.3303,270.1812,90,96);
                                                  //
    AddStaticVehicle(567,1700.2010,-2108.5042,13.3303,269.1586,90,96);
                                                  //
    AddStaticVehicle(567,1719.5519,-2109.5029,13.2461,266.1180,90,96);
                                                  //
    AddStaticVehicle(411,2228.2144,-1173.4064,25.4578,269.9183,5,5);
                                                  //
    AddStaticVehicle(411,2228.1963,-1169.9908,25.4669,265.9034,5,5);
                                                  //
    AddStaticVehicle(567,2207.2842,-1161.3855,25.5977,83.6689,5,5);
                                                  //
    AddStaticVehicle(567,2216.5435,-1162.3883,25.5937,86.5640,5,5);
                                                  //
    AddStaticVehicle(567,2206.2834,-1173.3495,25.5977,95.7875,5,5);
//Benim Eklediklerim..
                                                  //
    AddStaticVehicle(567,2206.6958,-1157.0629,25.6051,89.5819,5,5);
                                                  //
    AddStaticVehicle(567,2228.0962,-1159.4683,25.6229,89.5786,5,5);
                                                  //
    AddStaticVehicle(534,2217.1726,-1170.5182,25.4515,90.5925,5,5);
                                                  //
    AddStaticVehicle(534,2730.4438,-1121.8247,69.3042,360.0000,6,6);
                                                  //
    AddStaticVehicle(567,2730.2876,-1114.9607,69.4463,0.7033,6,6);
                                                  //
    AddStaticVehicle(576,2730.3923,-1128.7599,69.2339,358.6019,6,6);
                                                  //
    AddStaticVehicle(521,2715.1494,-1128.5923,69.1493,229.0757,6,6);
                                                  //
    AddStaticVehicle(521,2715.1567,-1125.8241,69.1641,224.2037,6,6);
                                                  //
    AddStaticVehicle(542,2714.6118,-1257.6892,59.2874,218.8345,50,53);
                                                  //
    AddStaticVehicle(567,2497.5366,-1656.1544,13.1342,88.1715,86,86);
                                                  //
    AddStaticVehicle(567,2489.3857,-1655.8944,13.1927,88.1715,86,86);
                                                  //
    AddStaticVehicle(567,2480.6248,-1655.6147,13.2555,88.1715,86,86);
                                                  //
    AddStaticVehicle(603,2473.3977,-1693.5007,13.3531,359.7794,86,86);
                                                  //
    AddStaticVehicle(603,2470.8208,-1672.6895,13.1669,9.2736,86,86);
                                                  //
    AddStaticVehicle(567,1709.5802,-2107.8848,13.3257,269.1130,7,7);
                                                  //
    AddStaticVehicle(567,1719.6472,-2117.6226,13.3325,269.5542,7,7);
//LOS SANTOS VEHICLES
    AddStaticVehicle(567,2508.2312,-1666.4536,13.1796,11.6929,-1,-1);
    AddStaticVehicle(534,2473.1646,-1697.4138,13.2988,1.1746,-1,-1);
    AddStaticVehicle(482,2297.2532,-1633.3859,14.4298,269.4626,-1,-1);
    AddStaticVehicle(474,2158.4851,-1808.1165,13.4877,359.4795,-1,-1);
    AddStaticVehicle(562,2119.6868,-1782.6039,13.2567,179.7940,-1,-1);
    AddStaticVehicle(411,2069.0737,-1881.9088,13.1172,269.2706,-1,-1);
    AddStaticVehicle(603,2529.3069,-2003.3335,13.0598,133.2911,-1,-1);
    AddStaticVehicle(507,2498.8933,-1953.5988,13.3193,359.7628,-1,-1);
    AddStaticVehicle(439,2728.9031,-1935.3430,13.2556,90.0094,-1,-1);
    AddStaticVehicle(560,2854.1719,-1909.5021,10.5896,179.5905,-1,-1);
    AddStaticVehicle(477,2822.0244,-1553.3268,10.6042,89.4986,-1,-1);
    AddStaticVehicle(549,2742.9841,-1463.0424,30.2372,359.1269,-1,-1);
    AddStaticVehicle(475,2791.5891,-1284.7643,42.8108,178.8319,-1,-1);
    AddStaticVehicle(522,2806.3848,-1186.9303,25.0279,307.7415,-1,-1);
    AddStaticVehicle(451,2752.6775,-1177.2931,69.2420,89.6505,-1,-1);
    AddStaticVehicle(534,2322.5037,-1159.1552,26.7191,266.7604,-1,-1);
    AddStaticVehicle(567,2506.4182,-1287.6383,34.5474,178.1351,-1,-1);
    AddStaticVehicle(558,2432.1082,-1224.7516,24.8794,356.5074,-1,-1);
    AddStaticVehicle(480,2391.1511,-1497.3237,23.6727,89.4172,-1,-1);
    AddStaticVehicle(533,2489.6265,-1558.6204,23.5562,359.5309,-1,-1);
    AddStaticVehicle(470,2473.1877,-1545.3008,23.4819,181.2033,-1,-1);
    AddStaticVehicle(404,2106.5850,-1364.1143,23.8393,0.3906,-1,-1);
    AddStaticVehicle(580,2229.1389,-1363.6033,23.8190,89.8660,-1,-1);
    AddStaticVehicle(415,2235.8062,-1262.7324,23.4519,285.3175,-1,-1);
    AddStaticVehicle(542,2148.6777,-1138.4310,25.2664,270.0773,-1,-1);
                                                  //
    AddStaticVehicle(487,2148.7661,-1199.0145,23.4831,89.3399,-1,-1);
    AddStaticVehicle(496,2031.4387,-1141.1813,24.3093,269.8185,-1,-1);
    AddStaticVehicle(445,1803.7166,-1931.8333,13.1109,359.8419,-1,-1);
    AddStaticVehicle(555,1779.4896,-1887.1788,13.2558,268.6338,-1,-1);
    AddStaticVehicle(535,1904.1558,-2047.0872,13.2997,90.4966,-1,-1);
    AddStaticVehicle(559,2757.5005,-2388.5466,13.6266,179.3206,-1,-1);
    AddStaticVehicle(579,2763.6816,-2510.6714,13.6339,0.0716,-1,-1);
    AddStaticVehicle(587,2488.0601,-2242.5610,13.4219,358.8076,-1,-1);
    AddStaticVehicle(491,2192.6189,-2247.0283,13.2067,222.6344,-1,-1);
    AddStaticVehicle(534,1981.1094,-1985.5371,13.2902,359.5516,-1,-1);
    AddStaticVehicle(405,1924.2258,-2122.6487,13.3471,359.0740,-1,-1);
                                                  //
    AddStaticVehicle(487,1972.9603,-2345.6387,13.7229,49.2012,-1,-1);
                                                  //
    AddStaticVehicle(487,1974.8606,-2312.5300,13.7203,47.3370,-1,-1);
                                                  //d
    AddStaticVehicle(593,1960.2064,-2647.5012,14.0086,0.6559,-1,-1);
                                                  //
    AddStaticVehicle(519,1468.4178,-2436.6125,13.1128,244.4017,-1,-1);
    AddStaticVehicle(489,2657.2908,-1691.8491,9.0838,269.6595,-1,-1);
    AddStaticVehicle(585,1731.0698,-1008.6317,23.6590,347.0643,-1,-1);
    AddStaticVehicle(565,1713.7269,-1069.0457,23.5859,179.0714,-1,-1);
    AddStaticVehicle(602,1947.5813,-1376.5216,18.0939,57.1534,-1,-1);
    AddStaticVehicle(541,1974.1716,-1448.2616,13.0208,54.7374,-1,-1);
    AddStaticVehicle(402,1623.8126,-1858.7850,13.3271,180.6303,-1,-1);
    AddStaticVehicle(482,1646.7180,-1597.9443,13.1843,269.8346,-1,-1);
                                                  //
    AddStaticVehicle(596,1535.9027,-1673.6801,13.1024,0.9604,-1,-1);
                                                  //
    AddStaticVehicle(596,1585.8513,-1667.6764,5.6129,270.8032,-1,-1);
    AddStaticVehicle(507,1460.4645,-1506.9532,13.4812,87.2633,-1,-1);
    AddStaticVehicle(562,1333.5404,-1081.1383,24.8731,269.0622,-1,-1);
    AddStaticVehicle(411,1065.3420,-1221.7240,16.5594,0.1669,-1,-1);
    AddStaticVehicle(555,1146.9253,-1313.1802,14.0365,0.3839,-1,-1);
    AddStaticVehicle(400,867.5660,-1282.5898,14.8665,0.5736,-1,-1);
    AddStaticVehicle(603,840.1666,-1391.3821,13.2792,92.0202,-1,-1);
    AddStaticVehicle(507,1450.4374,-930.1359,36.6003,173.5922,-1,-1);
                                                  //
    AddStaticVehicle(487,1291.1396,-787.5708,96.6350,179.5610,-1,-1);
    AddStaticVehicle(439,1351.2683,-621.1136,108.9058,19.9575,-1,-1);
    AddStaticVehicle(560,1363.1368,-1354.7874,13.2996,357.4546,-1,-1);
    AddStaticVehicle(477,685.3112,-1072.3215,49.2644,60.1660,-1,-1);
    AddStaticVehicle(549,283.8333,-1161.1090,80.7880,223.3897,-1,-1);
    AddStaticVehicle(475,405.2888,-1262.5371,50.5532,22.5417,-1,-1);
    AddStaticVehicle(506,782.5436,-1633.8582,13.1803,269.1530,-1,-1);
    AddStaticVehicle(451,1357.6841,-1748.9628,13.0077,89.7186,-1,-1);
    AddStaticVehicle(480,660.3052,-1678.1238,14.1770,266.8718,-1,-1);
    AddStaticVehicle(533,1034.0940,-2042.7858,12.8263,167.7733,-1,-1);
    AddStaticVehicle(470,331.0582,-1883.9817,1.5477,134.3129,-1,-1);
    AddStaticVehicle(580,441.8103,-1303.0439,14.7358,245.0446,-1,-1);
    AddStaticVehicle(415,1246.0278,-2011.6395,59.6959,0.9539,-1,-1);
    AddStaticVehicle(542,1276.6846,-2010.6200,58.6758,178.7380,-1,-1);
    AddStaticVehicle(496,1271.2167,-2042.6799,59.0398,1.4495,-1,-1);
    AddStaticVehicle(522,545.3229,-1477.2467,14.4734,1.8863,-1,-1);
    AddStaticVehicle(555,1240.9360,-1566.8942,13.3638,87.8000,-1,-1);
    AddStaticVehicle(535,582.2130,-1885.4453,3.8559,220.5502,-1,-1);
    AddStaticVehicle(559,362.5190,-1641.1151,32.5754,83.0536,-1,-1);
    AddStaticVehicle(579,2088.4944,-2089.7324,14.1534,180.1658,-1,-1);
    AddStaticVehicle(587,166.3514,-1341.6031,69.3802,178.2354,-1,-1);
    AddStaticVehicle(491,797.0284,-843.6050,60.4141,191.0260,-1,-1);
    AddStaticVehicle(550,133.5142,-1489.0701,18.4300,58.3215,-1,-1);
    AddStaticVehicle(417,1719.2981,-2408.0383,13.6720,13.6730,0,0); //
	AddStaticVehicle(417,1654.2985,-2432.8557,13.6490,360.0000,0,0); //
	AddStaticVehicle(417,1565.5519,-2422.6855,13.5793,359.9998,0,0); //
	AddStaticVehicle(469,1477.4043,-2434.4021,13.5329,359.9180,1,3); //
	AddStaticVehicle(520,1445.3467,-2485.4976,14.4844,262.9860,0,0); //
	AddStaticVehicle(592,1426.4596,-2578.0520,14.7421,269.5776,1,1); //
	AddStaticVehicle(592,1483.1713,-2603.4646,14.7427,1.4339,1,1); //
	AddStaticVehicle(592,1540.2854,-2606.7158,14.7431,0.0000,1,1); //
	AddStaticVehicle(592,1577.7483,-2610.8635,14.7637,360.0000,1,1); //
	AddStaticVehicle(447,1614.1732,-2611.9641,13.5582,0.0421,75,2); //
	AddStaticVehicle(447,1651.2225,-2618.9429,13.5463,0.0012,75,2); //
	AddStaticVehicle(460,1686.3110,-2631.4033,14.9738,143.6737,1,30); //
	AddStaticVehicle(444,1514.0668,-1461.1807,9.8713,359.9807,32,36); //
	AddStaticVehicle(444,1519.6246,-1461.2838,9.8717,359.6034,32,14); //
	AddStaticVehicle(444,1525.1388,-1461.4944,9.8713,358.5019,6,53); //
	AddStaticVehicle(465,1511.4780,-1466.7399,8.9542,2.4566,6,75); //
	AddStaticVehicle(438,1514.8700,-1478.7069,9.5043,180.3411,6,76); //
	AddStaticVehicle(438,1511.3428,-1478.5558,9.5035,1.1254,6,76); //
	AddStaticVehicle(441,1522.1079,-1479.1801,8.6187,174.9017,6,96); //
	AddStaticVehicle(481,1520.9559,-1479.3083,9.0119,179.3499,6,46); //
	AddStaticVehicle(424,1527.2806,-1479.4166,9.2794,173.7561,6,0); //
	AddStaticVehicle(457,1524.8021,-1479.5133,9.1268,356.6869,6,1); //
                                                  //
    AddStaticVehicle(523,1560.7695,-1694.4358,5.6122,32.7235,-1,-1);
                                                  //
    AddStaticVehicle(523,1563.5020,-1694.8240,5.4627,21.6809,-1,-1);
    AddStaticVehicle(565,2489.3066,-2605.5688,13.3711,0.4802,-1,-1);
                                                  //
    AddStaticVehicle(596,1570.5022,-1710.5771,5.6091,179.8262,-1,-1);
                                                  //
    AddStaticVehicle(401,-2118.9319,194.8274,35.7567,2.7513,-1,-1);
    
    AddStaticVehicle(411,321.1812,-1809.0176,4.2128,0.4127,123,1); //
	AddStaticVehicle(411,314.6180,-1809.3052,4.2038,359.3134,123,1); //
	AddStaticVehicle(411,311.2895,-1809.1632,4.1921,358.4442,123,1); //
	AddStaticVehicle(411,324.3271,-1809.2920,4.2088,359.7754,123,1); //

//
    DisableInteriorEnterExits();
    EnableTirePopping(0);
    UsePlayerPedAnims();
    return 1;
}


public OnGameModeExit()
{
    return 1;
}


public OnPlayerRequestClass(playerid, classid)
{
    gPlayerClass[playerid] = classid;
    gTeam[playerid] = classid;

    switch (classid) {

        case 0,1,2:

            {
                gTeam[playerid] = TEAM_GANGSTAS;
                GameTextForPlayer(playerid, "~r~Beach Boys", 1000, 6);
                ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);

            }

        case 3,4,5:

            {
                gTeam[playerid] = TEAM_BALLAS;
                GameTextForPlayer(playerid, "~p~Ballas", 1000, 6);
                ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
            }

        case 6,7,8:

            {
                gTeam[playerid] = TEAM_VAGOS;
                GameTextForPlayer(playerid, "~y~VAGOS", 1000, 6);
                ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
            }

        case 9,10,11:

            {
                gTeam[playerid] = TEAM_AZTECAS;
                GameTextForPlayer(playerid, "~b~~h~~h~AZTECAS", 1000, 6);

            }
        case 12,13,14:

            {
                gTeam[playerid] = TEAM_LSPD;
                GameTextForPlayer(playerid, "~b~POLICE", 1000, 6);

            }

        case 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,41,42,43,44,45:

            {
                gTeam[playerid] = TEAM_CIV;
                GameTextForPlayer(playerid, "~w~CIVILIANS", 1000, 6);

            }

    }
   	SetPlayerInterior(playerid,0);
	SetPlayerPos(playerid,1831.4916,-1682.3748,13.5469);
	SetPlayerFacingAngle(playerid,89.1585);
 	SetPlayerCameraPos(playerid, 1829.7233,-1685.9733,13.5469);
  	SetPlayerCameraLookAt(playerid,1831.4916,-1682.3748,13.5469);
	PlayerPlaySound(playerid, 1097, 0.0, 0.0, 0.0);
    return 1;
}


public SetPlayerToTeamColor(playerid)
{
    if(gTeam[playerid] == TEAM_GANGSTAS) {
        SetPlayerColor(playerid,COLOR_RED);
    }
    else if(gTeam[playerid] == TEAM_BALLAS) {
        SetPlayerColor(playerid,COLOR_PURPLE);
    }
    else if(gTeam[playerid] == TEAM_CIV) {
        SetPlayerColor(playerid,COLOR_WHITE);
    }
    else if(gTeam[playerid] == TEAM_VAGOS) {
        SetPlayerColor(playerid,COLOR_YELLOW);
    }
    else if(gTeam[playerid] == TEAM_AZTECAS) {
        SetPlayerColor(playerid,COLOR_BLUELIGHT);
    }
    else if(gTeam[playerid] == TEAM_LSPD) {
        SetPlayerColor(playerid,COLOR_GOLD);
    }
}


public OnPlayerRequestSpawn(playerid)
{
    return 1;
}


public OnPlayerConnect(playerid)
{
    new PName[MAX_PLAYER_NAME];
    new String[128];
    GetPlayerName(playerid, PName, sizeof(PName));

    format(String, sizeof(String), "%s has joined the server", PName);
    format(String, sizeof(String), "%s has joined the server", PName);
    format(String, sizeof(String), "%s has joined the server)", PName);

    GameTextForPlayer(playerid, "~w~Fun~r~ Land~w~", 700, 5);
    SendClientMessage(playerid, COLOR_GREEN, "* * Successfully connected to Cold FusionZ Gang Wars/Freeroam * *");
    SendClientMessage(playerid, COLOR_BROWN, "* ***Welcome to [0.3e] Cold FusionZ GangWars/Freeroam*** *");
    SendClientMessage(playerid, COLOR_WHITE, "* * Use /help for some commands and help with the server * *");
    SendClientMessage(playerid, COLOR_RED, "* * Welcome to ColdFuzionZ GangWars/Freeroam !");
    SendClientMessage(playerid, COLOR_YELLOW, "* To register use /register <password> if you're not registered");
    SendClientMessage(playerid, COLOR_OKER, "* To login use /login <password>");
    return 1;
}


public OnPlayerDisconnect(playerid, reason)
{

    dini_IntSet(udb_encode(playername), "pMoney", pMoney[playerid]);
    dini_IntSet(udb_encode(playername), "pAdmin", pAdmin[playerid]);
    dini_IntSet(udb_encode(playername), "pKills", pKills[playerid]);
    dini_IntSet(udb_encode(playername), "pLevel", pLevel[playerid]);
    dini_IntSet(udb_encode(playername), "pPlayerAccount", pPlayerAccount[playerid]);
    dini_IntSet(udb_encode(playername), "pDeaths", pDeaths[playerid]);
    dini_IntSet(udb_encode(playername), "pTeam", pTeam[playerid]);
    pMoney[playerid] = GetPlayerMoney(playerid);
	logged[playerid] = 0;

    return 1;
}


public OnVehicleDeath(vehicleid, killerid)
{

    return 1;
}


public OnPlayerSpawn(playerid)
{
    SetTimer("^", 10000, 0);
    
	GivePlayerMoney(playerid, 3000);
	SendClientMessage(playerid, COLOR_WHITE, "* * NOTICE: You will not spawn with a gun you will need to use /kill or go to ammunation !");
	SendClientMessage(playerid, COLOR_WHITE, "* * MOTD: /commands for more inforamtion");
	PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);

    if(gTeam[playerid] == TEAM_GANGSTAS) {
        SetPlayerColor(playerid, COLOR_RED);
        SendClientMessage(playerid, COLOR_RED, "** You are in the Beach Boys, use /g to talk to your members **");
        GivePlayerWeapon(playerid,27, 250);
    	GivePlayerWeapon(playerid,29, 250);
    	GivePlayerWeapon(playerid,30, 250);
    	PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
        return 1;
    }
    if(gTeam[playerid] == TEAM_BALLAS) {
        SetPlayerColor(playerid, COLOR_PURPLE);
        SendClientMessage(playerid, COLOR_PURPLE, "BALLAS MOTD:** You are in the Front Yard Ballas, use /b to talk to your members **");
        GivePlayerWeapon(playerid,27, 250);
    	GivePlayerWeapon(playerid,29, 250);
    	GivePlayerWeapon(playerid,30, 250);
    	PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
        return 1;
    }
    if(gTeam[playerid] == TEAM_VAGOS) {
        SetPlayerColor(playerid, COLOR_GOLD);
        SendClientMessage(playerid, COLOR_GOLD, "VAGOS MOTD:** You are in the Vagos, use /v to talk to your members **");
        GivePlayerWeapon(playerid,27, 250);
    	GivePlayerWeapon(playerid,29, 250);
    	GivePlayerWeapon(playerid,30, 250);
    	PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
        return 1;
    }
    if(gTeam[playerid] == TEAM_AZTECAS) {
        SetPlayerColor(playerid, COLOR_BLUELIGHT);
        SendClientMessage(playerid, COLOR_GOLD, "AZTECAS MOTD:** You are in the Aztecas, use /z to talk to your members **");
        GivePlayerWeapon(playerid,27, 250);
    	GivePlayerWeapon(playerid,29, 250);
    	GivePlayerWeapon(playerid,30, 250);
    	PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
        return 1;
    }
    if(gTeam[playerid] == TEAM_LSPD) {
        SetPlayerColor(playerid, COLOR_BLUE);
        SendClientMessage(playerid, COLOR_WHITE, " ____* * * Welcome to the LSPD* * *____");
        SendClientMessage(playerid, COLOR_BLUE, "*You are part of the LSPD Organization your duty is to");
        SendClientMessage(playerid, COLOR_BLUE, "stop the gang wars in los santos/protect the innocent civilians that are in danger.");
        SendClientMessage(playerid, COLOR_BLUE, "The crime/death rate is very high because of gang violence in this city.");
        SendClientMessage(playerid, COLOR_BLUE, "There is an issue in the city of gangs killing each other over taking over turfs/hoods.");
        SendClientMessage(playerid, COLOR_BLUE, "you may go on cop duty by using (/copduty) you will recieve a vest and a deagle");
        SendClientMessage(playerid, COLOR_BLUE, "kill any gang member that is seen with a gun, civilians can be in serious danger.");
        SendClientMessage(playerid, COLOR_BLUE, "use (/d) to speak to the LSPD department *");
        PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
        return 1;
    }

    if(gTeam[playerid] == TEAM_CIV) {
        SetPlayerColor(playerid, COLOR_FADE);
        SendClientMessage(playerid, COLOR_WHITE, " * * You are a civilian, you can buy some guns for protection by ammunation * *");
        SendClientMessage(playerid, COLOR_WHITE, " * * You can roam around Los Santos and have fun * *");
        SendClientMessage(playerid, COLOR_WHITE, "* * Use /weaponplace to show you where to get guns");
        PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
        return 1;
    }
//Text Draws

    TextDrawShowForPlayer(playerid, Textdraw0);

//Gang Zones
    GangZoneShowForAll (astecs, 0x12B0FC8B);
    GangZoneShowForAll (grove1, 0x008C0085);
    GangZoneShowForAll (grove2, 0x00950096);
    GangZoneShowForAll (ballas, 0xF053FD81);
    GangZoneShowForAll (vagos, 0xECEC0089);
    GangZoneShowForAll (polis, 0xE800007C);
    return 1;
}


public OnPlayerDeath(playerid, killerid, reason)
{
    new PName[MAX_PLAYER_NAME];
    new string[128];

    if(gTeam[playerid] == TEAM_CIV) {
        format(string, sizeof(string), "NEWS: an civilian by the name of %s has just been murdered.", PName);
        SendClientMessageToAll(COLOR_RED, string);
        return 1;
    }
    return 1;
}


public OnPlayerText(playerid, text[])
{

    return 1;
}


public OnRconCommand(cmd[])
{
    return 1;
}


public OnPlayerCommandText(playerid, cmdtext[])
{
    new cmd[256],tmp[256], tmp2[256];
	new idx;
	new string[256];
    cmd = strtok(cmdtext, idx);
    GetPlayerName(playerid, playername, sizeof(playername));
	if(strcmp(cmd, "/register", true) == 0)
{
	tmp = strtok(cmdtext, idx);
	if(!strlen(tmp))
{
	SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /register (password)");
}
	else
{
	if (!dini_Exists(udb_encode(playername)))
{
	dini_Create(udb_encode(playername));
	dini_IntSet(udb_encode(playername), "password", udb_hash(tmp));
	dini_IntSet(udb_encode(playername), "pMoney", 5000);
	dini_IntSet(udb_encode(playername), "pAdmin", 0);
	dini_IntSet(udb_encode(playername), "pKills", 0);
	dini_IntSet(udb_encode(playername), "pLevel", 1);
	dini_IntSet(udb_encode(playername), "pPlayerAccount", 1);
	dini_IntSet(udb_encode(playername), "pDeaths", 0);
 	dini_IntSet(udb_encode(playername), "pTeam", 0);
    format(string, sizeof(string), "Account %s created! You can now login with /login %s", playername, tmp);
    SendClientMessage(playerid, COLOR_YELLOW, string);
}
	else
{
	format(string, sizeof(string), "%s is already registered.", playername,tmp);
	SendClientMessage(playerid, COLOR_RED, string);
}
}
	return 1;
}

	new result[256];
	new giveplayer[MAX_PLAYER_NAME];
	new sendername[MAX_PLAYER_NAME];

//-------------------------------[ ADMIN COMMANDS ]-----------------------------
//--------------------------------------[ BAN ]---------------------------------
	if(strcmp(cmd, "/ban", true, 10) == 0)
{
	tmp = strtok(cmdtext, idx);
	if(!strlen(tmp))
{
	SendClientMessage(playerid, COLOR_GREY, "USAGE: /ban [playerid] [reason]");
	return 1;
}
	new length = strlen(cmdtext);
	while ((idx < length) && (cmdtext[idx] <= ' '))
{
	idx++;
}
	new offset = idx;
	new resulty[84];
	while ((idx < length) && ((idx - offset) < (sizeof(resulty) - 1)))
{
	resulty[idx - offset] = cmdtext[idx];
	idx++;
}
	resulty[idx - offset] = EOS;
	if(!strlen(resulty))
{
	SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /ban [playerid] [reason]");
	return 1;
}
	new playa = strval(tmp);
	GetPlayerName(playa, giveplayer, sizeof(giveplayer));
	GetPlayerName(playerid, sendername, sizeof(sendername));
	if(pAdmin[playerid] >= 2)
{
	if(logged[playerid] == 1)
{
	SendClientMessage(playa, COLOR_RED, "You were banned from the server!");
	format(string, sizeof(string), "AdmCmd: %s was banned by %s, Reason: %s",sendername, giveplayer, resulty);
	SendClientMessageToAll(COLOR_PURPLE, string);
	Ban(playa);
	return 1;
}
}
	else
{
	SendClientMessage(playerid, COLOR_GREY, "You can't use this command !");
}
	return 1;
}
    //--------------------[bush]-----------------------------

    if ( !strcmp( "/bush", cmdtext, true ) )
{
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
        if ( BushEnabled[playerid] )
	{
	    DestroyObject( BushObject[playerid] );
 	    SendClientMessage(playerid, 0xDEEE20FF, "bush disabled");
	    BushEnabled[playerid] = false;
	    return 1;
  	}

  		if(pAdmin[playerid] >= 2)
        {
	    BushObject [playerid] = CreateObject( 800, 0, 0, 0, 0, 0, 0 );
	    BushEnabled[playerid] = true;
    	    SendClientMessage(playerid, 0xDEEE20FF, "bush enabled.");
            AttachObjectToPlayer( BushObject[playerid], playerid, 0, 0, 0, 0, 0, 0 );
	    return 1;
	}
    }
}
//----------------------------- [ KICK ]----------------------------------------
	if(strcmp(cmd, "/kick", true, 10) == 0)
{
	tmp = strtok(cmdtext, idx);
	if(!strlen(tmp))
{
	SendClientMessage(playerid, COLOR_GREY, "USAGE: /kick [playerid] (auto assigned reason)");
	return 1;
}
	new playa = strval(tmp);
	GetPlayerName(playa, giveplayer, sizeof(giveplayer));
	GetPlayerName(playerid, sendername, sizeof(sendername));
	if(pAdmin[playerid] >= 1)
{
	if(logged[playerid] == 1)
{
	SendClientMessage(playa, COLOR_RED, "You were kicked from the server!");
	format(string, sizeof(string), "AdmCmd: %s was kicked by %s, Reason: get out",sendername, giveplayer);
	SendClientMessageToAll(COLOR_PURPLE, string);
	Kick(playa);
	return 1;
}
}
	else
{
	SendClientMessage(playerid, COLOR_GREY, "You can't use this command !");
}
	return 1;
}
//------------------------------[ MUTE ]----------------------------------------
	if(strcmp(cmd, "/mute", true, 10) == 0)
{
	tmp = strtok(cmdtext, idx);
	if(!strlen(tmp))
{
	SendClientMessage(playerid, COLOR_GREY, "SAGE: /mute [playerid]");
	return 1;
}
	new playa = strval(tmp);
	GetPlayerName(playa, giveplayer, sizeof(giveplayer));
	GetPlayerName(playerid, sendername, sizeof(sendername));
	if(pAdmin[playerid] >= 1)
{
	format(string, sizeof(string), "AdmCmd: %s was silenced by %s",giveplayer, sendername);
	SendClientMessageToAll(COLOR_PURPLE, string);
	
	return 1;
}
	if(pAdmin[playerid] >= 1)
{
	format(string, sizeof(string), "AdmCmd: %s was unsilenced by %s",giveplayer, sendername);
	SendClientMessageToAll(COLOR_PURPLE, string);

}
	return 1;
}
//====================================FUN EVENT START=============================//
    if(strcmp(cmd, "/startfunevent", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(pAdmin[playerid] >= 2)
			{
				FunEventOn = 1;
				GetPlayerPos(playerid,ex,ey,ez);
				SendClientMessageToAll(COLOR_YELLOW, "NEWS: An Fun Event has started, use /joinfunevent to join !");
			}
			else if (pAdmin[playerid] >= 3)
			{
				FunEventOn = 0;
			}
			else
			{
				SendClientMessage(playerid, COLOR_GREY, "   you are not authorized to use that command!");
			}
		}
		return 1;
	}
//=================================ADMIN HELP=======================
	if(strcmp(cmd, "/ahelp", true) == 0)
	{
		if(pAdmin[playerid] >= 1)
	{
		SendClientMessage(playerid, COLOR_YELLOW, "[ALEVEL1] /kick, /slap, /x(admin announcement), /freezeplayer");
		SendClientMessage(playerid, COLOR_YELLOW, "[ALEVEL2] /ban, /startfunevent, /adminduty, /bush, /nochat, /endfunevent");
		SendClientMessage(playerid, COLOR_YELLOW, "[ALEVEL3] /blowmeup(explodes the player)");
		return 1;
	}
}
//===============================Bastard = explode ==================
    if(strcmp(cmd, "/bastard", true) == 0)
	{
            if(pAdmin[playerid] >= 3)
	{
			new Float:px, Float:py, Float:pz;
			GetPlayerPos(playerid, px, py, pz);
			CreateExplosion(px+10, py, pz, 7, 100.0);
			CreateExplosion(px, py+10, pz, 7, 100.0);
			CreateExplosion(px-10, py, pz, 7, 100.0);
			CreateExplosion(px, py-10, pz, 7, 100.0);
			CreateExplosion(px, py, pz, 7, 100.0);
			return 1;
	    }
}
//===================================Stop fun event=================
	if(strcmp(cmd, "/stopfunevent", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(pAdmin[playerid] >= 2)
			{
			 	FunEventOn = 0;
			 	SendClientMessage(playerid, COLOR_RED, "Event Stopped");
	 		}
			else
			{
				SendClientMessage(playerid, COLOR_GREY, "   You can't use this command");
			}
 		}
 		return 1;
	}
//===============================JOINING FUN EVENT=================================///
	if(strcmp(cmd, "/joinfunevent", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	    					if(FunEventOn == 0)
			   				 {
			      				  SendClientMessage(playerid, COLOR_YELLOW, "An Event has not Started.");
			      				  return 1;
			   				 }
							SetPlayerPos(playerid, ex, ey, ez); // 
						    SendClientMessage(playerid, COLOR_OKER, "* * Don't be an idiot, and and follow what the admins say.");
		}//not connected
		return 1;
	}
//------------------------------[ SLAP ]----------------------------------------
	if(strcmp(cmd, "/slap", true, 10) == 0)
{
	tmp = strtok(cmdtext, idx);
	if(!strlen(tmp))
{
	SendClientMessage(playerid, COLOR_GREY, "USAGE: /slap [playerid]");
	return 1;
}
	new playa = strval(tmp);
	GetPlayerName(playa, giveplayer, sizeof(giveplayer));
	GetPlayerName(playerid, sendername, sizeof(sendername));
	if(pAdmin[playerid] >= 1)
{
	if(logged[playerid] == 1)
{
	format(string, sizeof(string), "AdmCmd: %s was slapped by %s",giveplayer, sendername);
	SendClientMessageToAll(COLOR_YELLOW, string);
	new Float:health;
	new Float:x, Float:y, Float:z;
	GetPlayerHealth(playa, health);
	SetPlayerHealth(playa, health-10);
	GetPlayerPos(playa, x, y, z);
	SetPlayerPos(playa, x, y, z+10);
	return 1;
}
}
	else
{
	SendClientMessage(playerid, COLOR_GREY, "You can't use this command !");
}
	return 1;
}

	if(strcmp(cmd, "/login", true) == 0)
{
	if(logged[playerid] == 1)
{
    SendClientMessage(playerid, COLOR_RED, "You are already logged in!");
   	return 1;
}
    tmp = strtok(cmdtext, idx);
	if(!strlen(tmp))
{
	SendClientMessage(playerid, COLOR_GREY, "USAGE: /login [password]");
}
    else
{
	if (dini_Exists(udb_encode(playername)))
{
    tmp2 = dini_Get(udb_encode(playername), "password");
	if (udb_hash(tmp) != strval(tmp2))
{
	SendClientMessage(playerid, COLOR_GREY, "rong/Invalid Password!");
}
	else
{
    logged[playerid] = 1;
    SendClientMessage(playerid, COLOR_GREEN,"Successfully logged in!");
    pMoney[playerid] = dini_Int(udb_encode(playername), "pMoney");
    pAdmin[playerid] = dini_Int(udb_encode(playername), "pAdmin");
	pKills[playerid] = dini_Int(udb_encode(playername), "pKills");
	pLevel[playerid] = dini_Int(udb_encode(playername), "pLevel");
	pPlayerAccount[playerid] = dini_Int(udb_encode(playername), "pPlayerAccount");
	pDeaths[playerid] = dini_Int(udb_encode(playername), "pDeaths");
 	pTeam[playerid] = dini_Int(udb_encode(playername), "pTeam");
	SetPlayerScore(playerid, pLevel[playerid]);
	GivePlayerMoney(playerid, pMoney[playerid]);
	if(pTeam[playerid] == 0)
{
	SetPlayerColor(playerid, COLOR_GRAD1);
}
}
}
	else
{
    format(string, sizeof(string), " You are not registered! Type /register [password] to create an account!", playername);
	SendClientMessage(playerid, COLOR_OKER, string);
}
}
	return 1;
}
    	
	new giveplayerid;
    if(strcmp(cmd, "/jobgun", true) == 0) {
	gTeam[playerid] = TEAM_GUNDEALER;
	if(PlayerToPoint(15.0, playerid, 2177.1697,-1666.6635,15.0859)) {
   	SendClientMessage(playerid, COLOR_BLUELIGHTER, "* * You are successfully are a Gun Dealer, next time you login you'll");
	SendClientMessage(playerid, COLOR_BLUELIGHTER, "* * Get the job again. you can sell other players guns example /sellmp5 <playerid> * *");
	return 1;
	}
}
				if(strcmp(cmd, "/sellspas12", true) == 0) {

                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) {
                        		SendClientMessage(playerid, COLOR_GREY, "Usage: /sellspas12 [Player ID]");
								return 1;
                }
				giveplayerid = strval(tmp);

    			if (IsPlayerConnected(giveplayerid)) {
        if (gTeam[playerid] == TEAM_GUNDEALER) {
   GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
   GetPlayerName(playerid, sendername, sizeof(sendername));
   GivePlayerWeapon(giveplayerid, 27, 65000);
   GivePlayerMoney(playerid, 2000);
   GivePlayerMoney(giveplayerid, -2000);
   format(string, sizeof(string), "You have sold a spas12 to %s", sendername, playerid);
   SendClientMessage(giveplayerid, COLOR_YELLOW, string);
   format(string, sizeof(string), "%s gave you a spas12", giveplayer, giveplayerid, sendername, playerid);
   return 1;
           }else{
                				SendClientMessage(playerid, COLOR_GREY, "You are not a Gun Dealer !");
}
                        }else{
        format(string, sizeof(string), "id %d is not an active player.", giveplayerid);
		SendClientMessage(playerid, COLOR_GREY, string);
}
				return 1;
}


				if(strcmp(cmd, "/sellak47", true) == 0) {

                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) {
                        		SendClientMessage(playerid, COLOR_GREY, "Usage: /sellak47 [Player ID]");
								return 1;
                }
				giveplayerid = strval(tmp);

    			if (IsPlayerConnected(giveplayerid)) {
        if (gTeam[playerid] == TEAM_GUNDEALER) {
   GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
   GetPlayerName(playerid, sendername, sizeof(sendername));
   GivePlayerWeapon(giveplayerid, 30, 65000);
   GivePlayerMoney(playerid, 3000);
   GivePlayerMoney(giveplayerid, -3000);
   format(string, sizeof(string), "You have sold Ak47 to %s", sendername, playerid);
   SendClientMessage(giveplayerid, COLOR_YELLOW, string);
   format(string, sizeof(string), "%s gave you Ak47", giveplayer, giveplayerid, sendername, playerid);
   return 1;
           }else{
                				SendClientMessage(playerid, COLOR_RED1, "You Are not official Gundealer.");
}
                        }else{
        format(string, sizeof(string), "id %d is not an active player.", giveplayerid);
		SendClientMessage(playerid, COLOR_YELLOW, string);
}
				return 1;
}


				if(strcmp(cmd, "/sellmp5", true) == 0) {

                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) {
                        		SendClientMessage(playerid, COLOR_GREY, "Usage: /sellmp5 [Player ID]");
								return 1;
                }
				giveplayerid = strval(tmp);

    			if (IsPlayerConnected(giveplayerid)) {
        if (gTeam[playerid] == TEAM_GUNDEALER) {
   GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
   GetPlayerName(playerid, sendername, sizeof(sendername));
   GivePlayerWeapon(giveplayerid, 29, 65000);
   GivePlayerMoney(playerid, 1000);
   GivePlayerMoney(giveplayerid, -1000);
   format(string, sizeof(string), "You have sold a Mp5 to %s", sendername, playerid);
   SendClientMessage(giveplayerid, COLOR_YELLOW, string);
   format(string, sizeof(string), "%s gave you a Mp5", giveplayer, giveplayerid, sendername, playerid);
   return 1;
           }else{
                				SendClientMessage(playerid, COLOR_GREY, "You are not a gun dealer !");
}
                        }else{
        format(string, sizeof(string), "id %d is not connected.", giveplayerid);
		SendClientMessage(playerid, COLOR_GREY, string);
}
				return 1;
}

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

		SetPlayerCheckpoint(playerid, 2177.1697,-1666.6635,15.0859, 3.0);
		SendClientMessage(playerid, COLOR_BLUELIGHT, "* * Gun Job place was placed on your map, look on your map and follow it * *");
		return 1;
	}

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

		SetPlayerCheckpoint(playerid, 1778.2642,-2432.2908,13.5547, 3.0);
		SendClientMessage(playerid, COLOR_BLUELIGHT, "* * Pilot Job place was placed on your map, look on your map and follow it * *");
		return 1;
	}
	
    if (strcmp("/jobpilot", cmdtext, true, 10) == 0) {

		if(PlayerToPoint(15.0, playerid, 1778.2642,-2432.2908,13.5547)) {

		SetPlayerSkin(playerid,255);
		SendClientMessage(playerid, COLOR_BLUELIGHTER, "* * You are successfully are a pilot, next time you login you'll");
		SendClientMessage(playerid, COLOR_BLUELIGHTER, "* * Get the job again. you can roam around Los Santos in planes and take people to their destination.");
		SetPlayerColor(playerid, COLOR_BROWN);
		return 1;
	}
	    SendClientMessage(playerid, COLOR_GREY, "You are not at the pilotjob place ! use /pilotjobplace to find it.");
}
	if (strcmp("/adminduty", cmdtext, true, 10) == 0) {

        if(pAdmin[playerid] >= 1)
	{
		SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Your now logged in as admin");
		SetPlayerSkin(playerid,205);
		SetPlayerColor(playerid, COLOR_YELLOW);
		SetPlayerPos(playerid, 1534.9592,-1480.8281,10.6047);
		return 1;
    }
        SendClientMessage(playerid, COLOR_GREY, "You can't use this command !");
}

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

	    SetPlayerCheckpoint(playerid, 2459.4539,-1690.9188,13.5453, 3.0);
        SendClientMessage(playerid, COLOR_BLUELIGHT, " * * Drug house checkpoint was placed on your map, look on your map for a red blip then follow it * *");
		return 1;
    }
    if (strcmp("/weaponplace", cmdtext, true, 10) == 0) {
        
        SetPlayerCheckpoint(playerid, 1366.4325,-1275.2096,13.5469, 3.0);
        SendClientMessage(playerid, COLOR_BLUELIGHT, " * * Ammunation checkpoint was placed on your map, look on your map for a red blip then follow it * *");
        return 1;
    }
    
    if (strcmp("/snowarena", cmdtext, true, 10) == 0) {

        SetPlayerCheckpoint(playerid, 2695.1841,-1704.2936,11.8438, 3.0);
        SendClientMessage(playerid, COLOR_BLUELIGHT, " * * Snow Arena checkpoint was placed on your map, look on your map for a red blip then follow it * *");
        return 1;
    }

    if (strcmp("/commands", cmdtext, true, 10) == 0) {
        SendClientMessage(playerid, COLOR_AQUA, "* * Server Commands* *");
        SendClientMessage(playerid, COLOR_OKER, "[TURF COMMANDS] /claimvagos, /claimgangstas, /claimaztecs, /claimdowntown, /watchdowntown(civilian command) /exitwatchdowntown(to exit");
        SendClientMessage(playerid, COLOR_OKER, "[GANG/LAW CHAT COMMANDS] /g(gangsta chat, /b(ballas chat, /v(vagos chat /t(aztecas chat), /d (police chat), /m(e)[action]");
        SendClientMessage(playerid, COLOR_OKER, "[WEAPONS](must be at the 'skull' by ammunation,/rentgunhelp) /rentmp5, /rentspas12, /rentak47, /rentm4, /rentshotgun");
        SendClientMessage(playerid, COLOR_OKER, "[GENERAL COMMANDS] /freezeme, /unfreezeme, /kill(sets your hp to 0), /copduty(for cops, must be at lspd) /call, /sms");
        SendClientMessage(playerid, COLOR_OKER, "[DRUGS] /takeweed(must be at ryder's drug house) /takecrack(must be at ryder's drug house)");
        SendClientMessage(playerid, COLOR_OKER, "[FIND PLACES] /weaponplace(buy guns) /housedrugs(buy drugs) /snowarena(event) ");
        SendClientMessage(playerid, COLOR_OKER, "[FIND JOBS] /pilotjobplace(pilot job), /jobgunplace(gun dealer)");
        SendClientMessage(playerid, COLOR_OKER, "[JOBS] /jobpilot(LS Airport), /jobgun(By Drug house)");
        return 1;
    }
    if (strcmp("/help", cmdtext, true, 10) == 0) {
        SendClientMessage(playerid, COLOR_WHITE, "* * Welcome to '/help' for information on the server go to maniagangwars.com * *");
        SendClientMessage(playerid, COLOR_OKER, "[TURF COMMANDS] /claimvagos, /claimgangstas, /claimaztecs, /claimdowntown");
        SendClientMessage(playerid, COLOR_OKER, "[GANG/LAW CHAT COMMANDS] /g(gangsta chat, /b(ballas chat, /v(vagos chat /a(aztecas chat), /d (police chat)");
        SendClientMessage(playerid, COLOR_OKER, "[WEAPONS](must be at the 'skull' by ammunation,/rentgunhelp) /rentmp5, /rentspas12, /rentak47, /rentm4, /rentshotgun");
        SendClientMessage(playerid, COLOR_OKER, "[GENERAL COMMANDS] /freezeme, /unfreezeme, /kill(sets your hp to 0), /copduty(for cops, must be at lspd)");
        SendClientMessage(playerid, COLOR_OKER, "[DRUGS] /takeweed(must be at ryder's drug house) /takecrack(must be at ryder's drug house)");
        SendClientMessage(playerid, COLOR_OKER, "[FUN EVENTS] /snowarena, /fightarena, /roamarena");
        SendClientMessage(playerid, COLOR_OKER, "[FIND PLACES] /weaponplace(buy guns) /drugplace(buy drugs) /snowarena(event) ");
        SendClientMessage(playerid, COLOR_OKER, "[FIND JOBS] /pilotjobplace(pilot job), /gunjobplace(gun job)");
        SendClientMessage(playerid, COLOR_OKER, "[JOBS] /jobpilot(LS Airport), /jobgun(By Ganton)");
        return 1;
    }

    if (strcmp("/freezeplayer", cmdtext, true, 10) == 0) {
    
        if(pAdmin[playerid] >= 1)
	{
        SendClientMessage(playerid, COLOR_GREY, "You have frozen a player, use /unfreezeplayer to unfreeze the player");
        TogglePlayerControllable(playerid,0);
        return 1;
    }
}
    if (strcmp("/unfreezeplayer", cmdtext, true, 10) == 0) {
    
        if(pAdmin[playerid] >= 1)
	{
        SendClientMessage(playerid, COLOR_GREY, "You are no longer frozen !");
        TogglePlayerControllable(playerid,1);
        return 1;
    }
}
    if (strcmp("/claimdowntown", cmdtext, true, 10) == 0) {
        if(pTyped[playerid] == 1) {
            SendClientMessageToAll(COLOR_GREY, "You already claimed, you can't claim again !");
            return 1;
        }
        if(PlayerToPoint(15.0, playerid, 1121.8634,-1203.0513,27.4792)) {
            if(gTeam[playerid] == TEAM_GANGSTAS) {
                GangZoneShowForAll (ortak, 0x008C0085);
                SendClientMessageToAll(COLOR_GREEN, "TURF: Grove Street has successfully claimed downtown los santos.");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 2000, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_BALLAS) {
                GangZoneShowForAll (ortak, 0xF053FD81);
                SendClientMessageToAll(COLOR_PURPLE, "TURF: Ballas has successfully claimed downtown los santos.");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 2000, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_VAGOS) {
                GangZoneShowForAll (ortak, 0xECEC0089);
                SendClientMessageToAll(COLOR_YELLOW, "TURF: Vagos has successfully claimed downtown los santos.");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 2000, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_AZTECAS) {
                GangZoneShowForAll (ortak, 0x12B0FC8B);
                SendClientMessageToAll(COLOR_BLUELIGHT, "TURF: Aztecas has successfully claimed downtown los santos.");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 2000, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_LSPD) {
                SendClientMessage(playerid, COLOR_GREY, "You are in the LSPD you can't claim a gang zone !");
            }
            else if(gTeam[playerid] == TEAM_CIV) {
                SendClientMessage(playerid, COLOR_GREY, "You are an civilian be careful you are in a gang zone, you are in danger ! ");

                return 1;
            }
            return 1;
        }
        return 1;
    }

    if (strcmp("/claimbeachboys", cmdtext, true, 10) == 0) {
        if(pTyped[playerid] == 1) {
            SendClientMessageToAll(COLOR_GREY, "You already claimed, you can't claim again !");
            return 1;
        }
        if(PlayerToPoint(15.0, playerid, 322.9717,-1773.7930,4.8277)) {

            SendClientMessageToAll(COLOR_RED, "TURF: Beach Boys Turf has just been claimed !");
            GameTextForPlayer(playerid, "~w~you have claimed ~g~grove street", 1000, 6);
            pTyped[playerid] = 1;
            SetTimerEx("Spam", 1, false, "i", playerid);
            if(gTeam[playerid] == TEAM_GANGSTAS) {
                GangZoneShowForAll (ortak, 0x008C0085);
                SendClientMessageToAll(COLOR_RED, "TURF: Beach Boys has claimed their turf back !");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 1, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_BALLAS) {
                GangZoneShowForAll (ortak, 0xF053FD81);
                SendClientMessageToAll(COLOR_PURPLE,"TURF: Ballas has claimed Beach Boys Turf !");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 1, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_VAGOS) {
                GangZoneShowForAll (ortak, 0xECEC0089);
                SendClientMessageToAll(COLOR_YELLOW, "TURF: Vagos has just claimed Beach Boys Turf !");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 1, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_AZTECAS) {
                GangZoneShowForAll (ortak, 0x12B0FC8B);
                SendClientMessageToAll(COLOR_BLUELIGHT, "TURF: Aztecas has just claimed Grove Street Families Turf !");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 1, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_LSPD) {
                SendClientMessage(playerid, COLOR_GREY, "You are in the LSPD you can't claim a gang zone !");
            }
            else if(gTeam[playerid] == TEAM_CIV) {
                SendClientMessage(playerid, COLOR_GREY, "You are an civilian be careful you are in a gang zone, you are in danger ! ");
                return 1;
            }
            return 1;
        }
        return 1;
    }

    if (strcmp("/claimballas", cmdtext, true, 10) == 0) {
        if(pTyped[playerid] == 1) {
            SendClientMessageToAll(COLOR_GREY, "You already claimed, you can't claim again !");
            return 1;
        }
        if(PlayerToPoint(3.0, playerid, 2219.5300,-1154.2638,26.2266)) {
            SendClientMessageToAll(COLOR_PURPLE, "TURF: Ballas turf has just been claimed");
            GameTextForPlayer(playerid, "~w~you have claimed ~p~ballas turf", 1000, 6);
            if(gTeam[playerid] == TEAM_GANGSTAS) {
                GangZoneShowForAll (ortak, 0x008C0085);
                SendClientMessageToAll(COLOR_RED, "TURF: Beach Boys has claimed ballas turf !");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 1000, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_BALLAS) {
                GangZoneShowForAll (ortak, 0xF053FD81);
                SendClientMessageToAll(COLOR_PURPLE,"TURF: Ballas has claimed their turf back !");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 1000, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_VAGOS) {
                GangZoneShowForAll (ortak, 0xECEC0089);
                SendClientMessageToAll(COLOR_YELLOW, "TURF: Vagos has claimed Ballas Turf !");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 1000, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_AZTECAS) {
                GangZoneShowForAll (ortak, 0x12B0FC8B);
                SendClientMessageToAll(COLOR_BLUELIGHT, "TURF: Aztecas has just claimed Ballas Turf !");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 1000, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_LSPD) {
                SendClientMessage(playerid, COLOR_GREY, "You are in the LSPD you can't claim a gang zone !");
            }
            else if(gTeam[playerid] == TEAM_CIV) {
                SendClientMessage(playerid, COLOR_GREY, "You are an civilian be careful you are in a gang zone, you are in danger ! ");

                return 1;
            }
            return 1;
        }
        return 1;
    }
    if (strcmp("/claimvagos", cmdtext, true, 10) == 0) {
        if(pTyped[playerid] == 1) {
            SendClientMessageToAll(COLOR_GREY, "You already claimed, you can't claim again !");
            return 1;
        }
        if(PlayerToPoint(15.0, playerid, 2716.8638,-1150.8356,69.5781)) {
            SendClientMessageToAll(COLOR_YELLOW, "TURF: Vagos turf has just been claimed");
            GameTextForPlayer(playerid, "~w~you have claimed ~y~vagos turf", 1000, 6);
            if(gTeam[playerid] == TEAM_VAGOS) {
                GangZoneShowForAll (ortak, 0x008C0085);
                SendClientMessageToAll(COLOR_YELLOW, "TURF: Vagos has claimed their turf back");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 2000, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_BALLAS) {
                GangZoneShowForAll (ortak, 0xF053FD81);
                SendClientMessageToAll(COLOR_PURPLE,"TURF: Ballas has claimed Vagos Turf !");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 2000, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_GANGSTAS) {
                GangZoneShowForAll (ortak, 0xECEC0089);
                SendClientMessageToAll(COLOR_RED, "TURF: Beach Boys has claimed Vagos turf !");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 2000, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_AZTECAS) {
                GangZoneShowForAll (ortak, 0x12B0FC8B);
                SendClientMessageToAll(COLOR_BLUELIGHT, "TURF: Aztecas has just claimed Vagos Turf !");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 2000, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_LSPD) {
                SendClientMessage(playerid, COLOR_GREY, "You are in the LSPD you can't claim a gang zone !");
            }
            else if(gTeam[playerid] == TEAM_CIV) {
                SendClientMessage(playerid, COLOR_GREY, "You are an civilian be careful you are in a gang zone, you are in danger ! ");

                return 1;
            }
            return 1;
        }
        return 1;
    }
    if (strcmp("/claimaztecas", cmdtext, true, 10) == 0) {
        if(pTyped[playerid] == 1) {
            SendClientMessageToAll(COLOR_GREY, "You already claimed, you can't claim again !");
            return 1;
        }
        if(PlayerToPoint(15.0, playerid, 1698.4174,-2098.8901,13.5469)) {
            SendClientMessageToAll(COLOR_BLUELIGHT, "TURF: Aztecas turf has been claimed");
            GameTextForPlayer(playerid, "~w~you have claimed ~b~aztecas", 1000, 6);
            if(gTeam[playerid] == TEAM_AZTECAS) {
                GangZoneShowForAll (ortak, 0x008C0085);
                SendClientMessageToAll(COLOR_BLUELIGHT, "TURF Aztecas has claimed their turf back");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 2000, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_BALLAS) {
                GangZoneShowForAll (ortak, 0xF053FD81);
                SendClientMessageToAll(COLOR_PURPLE,"TURF: Ballas has claimed Aztecas Turf !");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 2000, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_VAGOS) {
                GangZoneShowForAll (ortak, 0xECEC0089);
                SendClientMessageToAll(COLOR_YELLOW, "TURF: Vagos has claimed Aztecas Turf !");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 2000, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_GANGSTAS) {
                GangZoneShowForAll (ortak, 0x12B0FC8B);
                SendClientMessageToAll(COLOR_RED, "TURF: Beach Boys has claimed Aztecas Turf !");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 2000, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_LSPD) {
                SendClientMessage(playerid, COLOR_GREY, "You are in the LSPD you can't claim a gang zone !");
                pTyped[playerid] = 1;
                SetTimerEx("Spam", 2000, false, "i", playerid);
            }
            else if(gTeam[playerid] == TEAM_CIV) {
                SendClientMessage(playerid, COLOR_RED, "You are an civilian be careful you are in a gang zone, you are in danger ! ");

                return 1;
            }
            return 1;
        }
        return 1;
    }
    if (strcmp("/watchdowntown", cmdtext, true, 10) == 0) {
        if(gTeam[playerid] == TEAM_GANGSTAS) {
            SendClientMessage(playerid, COLOR_GREY, "You are in a Gang/Organization");
            return 0;
        }
        if(gTeam[playerid] == TEAM_VAGOS) {
            SendClientMessage(playerid, COLOR_GREY, "You are in a Gang/Organization");
            return 0;
        }
        if(gTeam[playerid] == TEAM_BALLAS) {
            SendClientMessage(playerid, COLOR_GREY, "You are om a Gang/Organization");
            return 0;
        }
        if(gTeam[playerid] == TEAM_AZTECAS) {
            SendClientMessage(playerid, COLOR_GREY, "You are in a Gang/Organization");
            return 0;
        }
        if(gTeam[playerid] == TEAM_CIV) {
            SendClientMessage(playerid, COLOR_RED, "* * Welcome to downtown, you are viewing downtown turf war zone, be careful there is a chance you can get shot ! * *");
            SendClientMessage(playerid, COLOR_WHITE, "* * EXIT: you can exit turf view by using /exitdowntown* *");
            SetPlayerPos(playerid,1125.4023,-1212.7699,25.3020);
            SetPlayerFacingAngle(playerid,22.5654);
            TogglePlayerControllable(playerid,0);

            return 1;
        }
        return 1;
    }

    if (strcmp("/exitturfwatch", cmdtext, true, 10) == 0) {
        if(gTeam[playerid] == TEAM_GANGSTAS) {
            SendClientMessage(playerid, COLOR_GREY, "You are in a Gang/Organization");
            return 0;
        }
        if(gTeam[playerid] == TEAM_VAGOS) {
            SendClientMessage(playerid, COLOR_GREY, "You are in a Gang/Organization");
            return 0;
        }
        if(gTeam[playerid] == TEAM_BALLAS) {
            SendClientMessage(playerid, COLOR_GREY, "You are om a Gang/Organization");
            return 0;
        }
        if(gTeam[playerid] == TEAM_AZTECAS) {
            SendClientMessage(playerid, COLOR_GREY, "You are in a Gang/Organization");
            return 0;
        }
        if(gTeam[playerid] == TEAM_CIV) {
            SendClientMessage(playerid, COLOR_RED, "* * You have exited Turf view, you have been taken to a safe part of LS * *");
            SetPlayerPos(playerid,1480.8966,-1763.6648,18.7958);
            SetPlayerFacingAngle(playerid,358.3040);
            TogglePlayerControllable(playerid,1);

            return 1;
        }
        return 1;
    }

    if(!strcmp(cmdtext,"/d", true,2)) {
        if(!strlen(cmdtext[2])) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /d [text] (lspd chat)");
        if(gTeam[playerid] != TEAM_LSPD) return SendClientMessage(playerid, 0xAFAFAFAA, "You must be a cop to use this command!");
        new playername[MAX_PLAYER_NAME], string[128];
        GetPlayerName(playerid, playername, sizeof(playername));
        format(string, sizeof(string), "* *Officer [%s]: %s, over", playername, cmdtext[2]);
        for(new i = 0; i < MAX_PLAYERS; i++) {
// LSPD TEAM CHAT
            if(gTeam[i] == TEAM_LSPD) {
                SendClientMessage(i, COLOR_GOLD, string);
            }
            return 1;
        }
        return 0;
    }
     if(!strcmp(cmdtext,"/g", true,2)) {
        if(!strlen(cmdtext[2])) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /g [text] (lspd chat)");
        if(gTeam[playerid] != TEAM_GANGSTAS) return SendClientMessage(playerid, 0xAFAFAFAA, "You can't use this command !");
        new playername[MAX_PLAYER_NAME], string[128];
        GetPlayerName(playerid, playername, sizeof(playername));
        format(string, sizeof(string), "* *Beach Boy [%s]: %s,", playername, cmdtext[2]);
        for(new i = 0; i < MAX_PLAYERS; i++) {
// BEACH BOYS CHAT
            if(gTeam[i] == TEAM_GANGSTAS) {
                SendClientMessage(i, COLOR_GOLD, string);
            }
            return 1;
        }
        return 0;
    }
    
 	if(!strcmp(cmdtext,"/b", true,2)) {
        if(!strlen(cmdtext[2])) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /d [text] (lspd chat)");
        if(gTeam[playerid] != TEAM_BALLAS) return SendClientMessage(playerid, 0xAFAFAFAA, "You can't use this command !");
        new playername[MAX_PLAYER_NAME], string[128];
        GetPlayerName(playerid, playername, sizeof(playername));
        format(string, sizeof(string), "* *Balla [%s]: %s,", playername, cmdtext[2]);
        for(new i = 0; i < MAX_PLAYERS; i++) {
// LSPD TEAM CHAT
            if(gTeam[i] == TEAM_BALLAS) {
                SendClientMessage(i, COLOR_GOLD, string);
            }
            return 1;
        }
        return 0;
    }
     if(!strcmp(cmdtext,"/v", true,2)) {
        if(!strlen(cmdtext[2])) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /v [text] (lspd chat)");
        if(gTeam[playerid] != TEAM_VAGOS) return SendClientMessage(playerid, 0xAFAFAFAA, "You can't use this command !");
        new playername[MAX_PLAYER_NAME], string[128];
        GetPlayerName(playerid, playername, sizeof(playername));
        format(string, sizeof(string), "* *Vago [%s]: %s,", playername, cmdtext[2]);
        for(new i = 0; i < MAX_PLAYERS; i++) {
// LSPD TEAM CHAT
            if(gTeam[i] == TEAM_VAGOS) {
                SendClientMessage(i, COLOR_GOLD, string);
            }
            return 1;
        }
        return 0;
    }
    if(!strcmp(cmdtext,"/m", true, 2)) {
        if(!strlen(cmdtext[2])) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /m [action] ");
        new playername[MAX_PLAYER_NAME], string[128];
        GetPlayerName(playerid, playername, sizeof(playername));
        format(string, sizeof(string), "* %s  %s,", playername, cmdtext[2]);
        for(new i = 0; i < MAX_PLAYERS; i++) {
            SendClientMessageToAll(COLOR_RED, string);

            return 1;
        }

        return 0;
    }
    
    if(!strcmp(cmdtext,"/x", true, 2)) {
        if(!strlen(cmdtext[2])) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /announce [text] ");
        new playername[MAX_PLAYER_NAME], string[128];
        GetPlayerName(playerid, playername, sizeof(playername));
        format(string, sizeof(string), "ADMIN: %s.",cmdtext[2]);
        if(pAdmin[playerid] >= 2) {
        for(new i = 0; i < MAX_PLAYERS; i++) {
            SendClientMessageToAll(COLOR_OKER, string);

            return 1;
        }
      
        return 1;
    }
}
     if(!strcmp(cmdtext,"/z", true,2)) {
        if(!strlen(cmdtext[2])) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /z [text] (aztecas chat)");
        if(gTeam[playerid] != TEAM_AZTECAS) return SendClientMessage(playerid, 0xAFAFAFAA, "You can't use this command !");
        new playername[MAX_PLAYER_NAME], string[128];
        GetPlayerName(playerid, playername, sizeof(playername));
        format(string, sizeof(string), "* *Azteca [%s]: %s,", playername, cmdtext[2]);
        for(new i = 0; i < MAX_PLAYERS; i++) {
// LSPD TEAM CHAT
            if(gTeam[i] == TEAM_AZTECAS) {
                SendClientMessage(i, COLOR_GOLD, string);
            }
            return 1;
        }
        return 0;
    }
    if (strcmp("/rentgunhelp", cmdtext, true, 10) == 0) {
//Buygun
        if(PlayerToPoint(15.0, playerid, 1366.4325,-1275.2096,13.5469)) {
            SendClientMessage(playerid, COLOR_WHITE, "______* * Weapons available to rent * *______");
            SendClientMessage(playerid, COLOR_GREY, "[GUNS] /rentshotgun(shotgun), /rentspas12(combat shotgun), /rentak47(ak47");
            SendClientMessage(playerid, COLOR_GREY, "[GUNS] /rentm4(m4), /rentmp5(SMG/Mp5), /rentknife(knife), /rentbat(Bat)");
            SendClientMessage(playerid, COLOR_GREY, "[GUNS] /rentflower(flower), /rentarmor(revieves 50.0 armor)");
            return 1;
        }
        return 1;
    }
    if (strcmp("/rentmp5", cmdtext, true, 10) == 0) {
//Buygun
        if(PlayerToPoint(15.0, playerid, 1366.4325,-1275.2096,13.5469)) {

            SendClientMessage(playerid, COLOR_WHITE, "RanSEE: There you go sir, here's your weapon !");
            GivePlayerWeapon(playerid,29, 65000);
            SendClientMessage(playerid, COLOR_BLUELIGHTER, "* * You have handed the Gun Seller $500, you have recieved a MP5 * *");
            GivePlayerMoney(playerid, -400);
            return 1;
        }
        return 1;
    }
    if (strcmp("/rentshotgun", cmdtext, true, 10) == 0) {
//Buygun
        if(PlayerToPoint(15.0, playerid, 1366.4325,-1275.2096,13.5469)) {
            SendClientMessage(playerid, COLOR_WHITE, "RanSEE: There you go sir, here's your weapon !");
            GivePlayerWeapon(playerid,25, 65000);
            SendClientMessage(playerid, COLOR_BLUELIGHTER, "* * You have handed the Gun Seller $500, you have recieved a SHOTGUN * *");
            GivePlayerMoney(playerid, -500);
            return 1;
        }
        return 1;
    }
    if (strcmp("/rentspas12", cmdtext, true, 10) == 0) {
//Buygun
        if(PlayerToPoint(15.0, playerid, 1366.4325,-1275.2096,13.5469)) {
            SendClientMessage(playerid, COLOR_WHITE, "RanSEE: There you go sir, here's your weapon !");
            GivePlayerWeapon(playerid,27, 65000);
            SendClientMessage(playerid, COLOR_BLUELIGHTER, "* * You have handed the Gun Seller $500, you have recieved a COMBAT SHOTGUN * *");
            GivePlayerMoney(playerid, -500);
            return 1;
        }
        return 1;
    }
    if (strcmp("/rentm4", cmdtext, true, 10) == 0) {
//Buygun
        if(PlayerToPoint(15.0, playerid, 1366.4325,-1275.2096,13.5469)) {
            SendClientMessage(playerid, COLOR_WHITE, "RanSEE: There you go sir, here's your weapon !");
            GivePlayerWeapon(playerid,31, 65000);
            SendClientMessage(playerid, COLOR_BLUELIGHTER, "* * You have handed the Gun Seller $500, you have recieved a M4 * *");
            GivePlayerMoney(playerid, -500);
            return 1;
        }
        return 1;
    }
    if (strcmp("/rentarmor", cmdtext, true, 10) == 0) {
//Buygun
        if(PlayerToPoint(15.0, playerid, 1366.4325,-1275.2096,13.5469)) {
            SendClientMessage(playerid, COLOR_WHITE, "RanSEE: There you go sir, here's your vest !");
            SendClientMessage(playerid, COLOR_BLUELIGHTER, "* * You have handed the Gun Seller $500, you have recieved a VEST * *");
            GivePlayerMoney(playerid, -300);
            SetPlayerArmour(playerid,50);
            return 1;
        }
        return 1;
    }
    if (strcmp("/rentak47", cmdtext, true, 10) == 0) {
//Buygun
        if(PlayerToPoint(15.0, playerid, 1366.4325,-1275.2096,13.5469)) {
            SendClientMessage(playerid, COLOR_WHITE, "RanSEE: There you go sir, here's your weapon !");
            GivePlayerWeapon(playerid,30, 65000);
            SendClientMessage(playerid, COLOR_BLUELIGHTER, "* * You have handed the Gun Seller $500, you have recieved a AK47 * *");
            GivePlayerMoney(playerid, -500);

            return 1;
        }
        return 1;
    }
    if (strcmp("/rentbat", cmdtext, true, 10) == 0) {
//Buygun
        if(PlayerToPoint(15.0, playerid, 1366.4325,-1275.2096,13.5469)) {
            SendClientMessage(playerid, COLOR_WHITE, "RanSEE: There you go sir, here's your weapon !");
            GivePlayerWeapon(playerid,5, 1);
            SendClientMessage(playerid, COLOR_BLUELIGHTER, "* * You have handed the Gun Seller $200, you have recieved a BAT * *");
            GivePlayerMoney(playerid, -200);
            return 1;
        }

    }
    if (strcmp("/rentknife", cmdtext, true, 10) == 0) {
//Buygun
        if(PlayerToPoint(15.0, playerid, 1366.4325,-1275.2096,13.5469)) {
            SendClientMessage(playerid, COLOR_WHITE, "RanSEE: There you go sir, here's your weapon !");
            GivePlayerWeapon(playerid,4, 65000);
            SendClientMessage(playerid, COLOR_BLUELIGHTER, "* * You have handed the Gun Seller $200, you have recieved a KNIFE * *");
            GivePlayerMoney(playerid, -200);
            return 1;
        }

    }
    if (strcmp("/rentflower", cmdtext, true, 10) == 0) {
//Buygun
        if(PlayerToPoint(15.0, playerid, 1366.4325,-1275.2096,13.5469)) {
            SendClientMessage(playerid, COLOR_WHITE, "RanSEE: There you go sir, here's your weapon !");
            GivePlayerWeapon(playerid,14, 1);
            SendClientMessage(playerid, COLOR_BLUELIGHTER, "* * You have handed the Gun Seller $200, you have recieved a FLOWER * *");
            GivePlayerMoney(playerid, -200);
            return 1;
        }

    }
    if (strcmp("/rentknife", cmdtext, true, 10) == 0) {
//Buygun
        if(PlayerToPoint(15.0, playerid, 1366.4325,-1275.2096,13.5469)) {
            SendClientMessage(playerid, COLOR_WHITE, "RanSEE: There you go sir, here's your weapon !");
            GivePlayerWeapon(playerid,4, 65000);
            SendClientMessage(playerid, COLOR_BLUELIGHTER, "* * You have handed the Gun Seller $200, you have recieved a KNIFE * *");
            GivePlayerMoney(playerid, -200);
            return 1;
        }

    }
    if (strcmp("/rentflower", cmdtext, true, 10) == 0) {
//Buygun
        if(PlayerToPoint(15.0, playerid, 1366.4325,-1275.2096,13.5469)) {
            SendClientMessage(playerid, COLOR_WHITE, "RanSEE: There you go sir, here's your weapon !");
            GivePlayerWeapon(playerid,14, 1);
            SendClientMessage(playerid, COLOR_BLUELIGHTER, "* * You have handed the Gun Seller $200, you have recieved a FLOWER * *");
            GivePlayerMoney(playerid, -200);
            return 1;
        }

    }

    if (strcmp("/copduty", cmdtext, true, 10) == 0) {
        if(gTeam[playerid] == TEAM_GANGSTAS) {
            SendClientMessage(playerid, COLOR_GREY, "You are not in the LSPD");
            return 0;
        }
        if(gTeam[playerid] == TEAM_VAGOS) {
            SendClientMessage(playerid, COLOR_GREY, "You are not in the LSPD");
            return 0;
        }
        if(gTeam[playerid] == TEAM_BALLAS) {
            SendClientMessage(playerid, COLOR_GREY, "You are not in the LSPD");
            return 0;
        }
        if(gTeam[playerid] == TEAM_AZTECAS) {
            SendClientMessage(playerid, COLOR_GREY, "You are not in the LSPD");
            return 0;
        }
        if(gTeam[playerid] == TEAM_CIV) {
            SendClientMessage(playerid, COLOR_GREY, "You are not in the LSPD, you are an civilian");
            return 0;
        }

        if(PlayerToPoint(15.0, playerid, 1538.7574,-1685.1531,13.5469)) {
            SendClientMessage(playerid, COLOR_BLUE, "* * You are now on police duty * *");
            SendClientMessage(playerid, COLOR_WHITE, "** use /policehelp for some police commands **");
            SetPlayerArmour(playerid, 100);
            return 1;
        }
        return 1;
    }
    if (strcmp("/policehelp", cmdtext, true, 10) == 0) {
        if(gTeam[playerid] == TEAM_GANGSTAS) {
            SendClientMessage(playerid, COLOR_GREY, "You are not in the LSPD");
            return 0;
        }
        if(gTeam[playerid] == TEAM_VAGOS) {
            SendClientMessage(playerid, COLOR_GREY, "You are not in the LSPD");
            return 0;
        }
        if(gTeam[playerid] == TEAM_BALLAS) {
            SendClientMessage(playerid, COLOR_GREY, "You are not in the LSPD");
            return 0;
        }
        if(gTeam[playerid] == TEAM_AZTECAS) {
            SendClientMessage(playerid, COLOR_GREY, "You are not in the LSPD");
            return 0;
        }
        if(gTeam[playerid] == TEAM_CIV) {
            SendClientMessage(playerid, COLOR_GREY, "You are not in the LSPD, you are an civilian");
            return 0;
        }

        SendClientMessage(playerid, COLOR_WHITE, " ____* * * Police Help * * *____");
        SendClientMessage(playerid, COLOR_BLUE, "*You are part of the LSPD Organization your duty is to");
        SendClientMessage(playerid, COLOR_BLUE, "stop the gang wars in los santos/protect the innocent civilians that are in danger.");
        SendClientMessage(playerid, COLOR_BLUE, "The crime/death rate is very high because of gang violence in this city.");
        SendClientMessage(playerid, COLOR_BLUE, "There is an issue in the city of gangs killing each other over taking over turfs/hoods.");
        SendClientMessage(playerid, COLOR_BLUE, "you may go on cop duty by using (/copduty) you will recieve a vest and a deagle");
        SendClientMessage(playerid, COLOR_BLUE, "kill any gang member that is seen with a gun, civilians can be in serious danger.");
        SendClientMessage(playerid, COLOR_BLUE, "use (/d) to speak to the LSPD department *");
        return 1;
    }
    if (strcmp("/takecrack", cmdtext, true, 10) == 0) {
        new Float:PlayersArmour;
        GetPlayerArmour(playerid, PlayersArmour);

//Ryder's Drug house
        if(PlayerToPoint(30.0, playerid, 2454.717041,-1700.871582,1013.515197)) {
            SetPlayerArmour(playerid, PlayersArmour + 20.0);
            SendClientMessage(playerid, COLOR_FADE, "Ryder: Ey here's yo crack homie");
            ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,0,0,0,0);
            SendClientMessage(playerid, COLOR_BLUELIGHTER, "* You have gave $35 to Ryder, and used the crack.");
            GivePlayerMoney(playerid, -35);
            return 1;
        }
        SendClientMessage(playerid, COLOR_GREY, "You are not at the drug house ! use /housedrugplace to find it.");
        return 1;
    }
    if (strcmp("/takeweed", cmdtext, true, 10) == 0) {
        new Float:PlayersHealth;
        GetPlayerHealth(playerid, PlayersHealth);
//Ryder's Drug house
        if(PlayerToPoint(30.0, playerid, 2454.717041,-1700.871582,1013.515197)) {
            SetPlayerHealth(playerid, PlayersHealth + 20.0);
            SendClientMessage(playerid, COLOR_FADE, "Ryder: Ey here's yo weed homie");
            ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,0,0,0,0);
            SendClientMessage(playerid, COLOR_BLUELIGHTER, "* You have gave $35 to Ryder, and used the weed.");
            GivePlayerMoney(playerid, -35);
            return 1;
        }
        SendClientMessage(playerid, COLOR_GREY, "You are not at the drug house ! use /housedrugplace to find it.");
        return 1;
    }
    if (strcmp("/enter", cmdtext, true, 10) == 0) {
//crack den
        if(PlayerToPoint(15.0, playerid, 2352.0007,-1168.8942,27.9879)) {

//B'Dup interior
            SetPlayerPos(playerid,1527.229980,-11.574499,1002.097106);
            SetPlayerInterior(playerid, 3);
            return 1;
        }
//Sweets house
        else if(PlayerToPoint(3.0, playerid, 2523.0286,-1679.2728,15.4970)) {

//sweet interior
            SetPlayerPos(playerid,2527.654052,-1679.388305,1015.498596);
            SetPlayerInterior(playerid, 1);
            return 1;
        }
//Ryder's Drug house
        else if(PlayerToPoint(10.0, playerid, 2459.4539,-1690.9188,13.5453)) {

            SendClientMessage(playerid, COLOR_FADE, "Ryder: Who da' fuck in my house !?");
            SendClientMessage(playerid, COLOR_RED, "* Ryder grabs his bat");
            SendClientMessage(playerid, COLOR_WHITE, "___* * Welcome to Ryder's Drug house you can use crack/pot you'll have to buy it * *___");
            SendClientMessage(playerid, COLOR_GREY, "/takecrack(to use ryder's crack) /takeweed(to use ryder's weed)");
            SendClientMessage(playerid, COLOR_GREY, "[PRICE] Crack($40) Weed($35))");
// Ryder's interior
            SetPlayerPos(playerid,2454.717041,-1700.871582,1013.515197);
            SetPlayerInterior(playerid, 2);
            return 1;
        }
        //Snow Ball Fight enter
        else if(PlayerToPoint(5.0, playerid,2695.1841,-1704.2936,11.8438)) {

//Snow Ball fight 
			SetPlayerPos(playerid,-729.276000,503.086944,1371.971801);//Liberty City Exterior
		 	SendClientMessage(playerid, COLOR_RED, "* * You have have been taken to the SNOW AREA, make sure to stay where the snow is or you could get sick * *");
			SetPlayerInterior(playerid, 1);
            return 1;
        }
//ballas hq
        else if(PlayerToPoint(3.0, playerid, 2231.7825,-1159.7080,25.8906)) {

//Ballas interior
            SetPlayerPos(playerid,318.564971,1118.209960,1083.882812);
            SetPlayerInterior(playerid, 5);
            return 1;
        }

        return 1;
    }

    if (strcmp("/exit", cmdtext, true, 10) == 0) {
//crack den
        if(PlayerToPoint(15.0, playerid, 1527.229980,-11.574499,1002.097106)) {

//B'Dup interior
            SetPlayerPos(playerid,2352.0007,-1168.8942,27.9879);
            SetPlayerInterior(playerid, 0);
            return 1;
        }
//SWEETS HOUSE EXIT
        else if(PlayerToPoint(15.0, playerid, 2527.654052,-1679.388305,1015.498596)) {

//sweets exit
            SetPlayerPos(playerid,2523.0286,-1679.2728,15.4970);
            SetPlayerInterior(playerid, 0);
            return 1;
        }
        //SNOW BALL FIGHT EXIT
        else if(PlayerToPoint(15.0, playerid,-729.276000,503.086944,1371.971801)) {

//SNOW BALL FIGHT
            SetPlayerPos(playerid,2695.1841,-1704.2936,11.8438);
            SendClientMessage(playerid, COLOR_RED, "* * You have exited the snow ball fight area, you have been moved back to LS * *");
            SetPlayerInterior(playerid, 0);
            return 1;
        }
//ryder's drug house exit
        else if(PlayerToPoint(15.0, playerid, 2454.717041,-1700.871582,1013.515197)) {

//Ryder's drug house exit
            SetPlayerPos(playerid,2459.4539,-1690.9188,13.5453);
            SetPlayerInterior(playerid, 0);
            return 1;
        }
//ballas hq exit
        else if(PlayerToPoint(15.0, playerid, 318.564971,1118.209960,1083.882812)) {

//Ballas interior
            SetPlayerPos(playerid,2231.7825,-1159.7080,25.8906);
            SetPlayerInterior(playerid, 0);
            return 1;
        }

        return 1;
    }
	
    return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{

    return 1;
}


public OnPlayerExitVehicle(playerid, vehicleid)
{

    return 1;
}


public OnPlayerEnterCheckpoint(playerid)
{
    SendClientMessage(playerid, COLOR_BLUELIGHT, "* * You have successfully reached your destination * *");
    DisablePlayerCheckpoint(playerid);
    return 1;
}


public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(PlayerToPoint(3.0, playerid, 322.9717,-1773.7930,4.8277)) {
        GameTextForPlayer(playerid, "~r~/claimbeachboys ~w~ to claim beach boys turf", 5000, 3);
        return 1;
    }
    if(PlayerToPoint(3.0, playerid, 2219.5300,-1154.2638,26.2266)) {
        GameTextForPlayer(playerid, "~p~/claimballas ~w~ to claim ballas turf", 5000, 3);
        return 1;
    }
    if(PlayerToPoint(15.0, playerid, 2716.8638,-1150.8356,69.5781)) {
        GameTextForPlayer(playerid, "~y~/claimvagos ~w~ to claim vagos turf", 5000, 3);
        return 1;
    }
    if(PlayerToPoint(15.0, playerid, 1698.4174,-2098.8901,13.5469)) {
        GameTextForPlayer(playerid, "~b~/claimaztecas ~w~ to claim aztecas turf", 5000, 3);
        return 1;
    }
    if(PlayerToPoint(15.0, playerid, 1121.8634,-1203.0513,27.4792)) {
        GameTextForPlayer(playerid, "~g~/claimdowntown ~w~ to claim downtown", 5000, 3);
        return 1;
    }

    if(PlayerToPoint(15.0, playerid, 1538.7574,-1685.1531,13.5469)) {
        GameTextForPlayer(playerid, "~b~/copduty ~w~ to go on police duty", 5000, 3);
        return 1;
    }
    if(PlayerToPoint(15.0, playerid, 2352.0007,-1168.8942,27.9879)) {
        GameTextForPlayer(playerid, "~r~/enter~w~ to enter the crack house", 5000, 3);
        return 1;
    }
    if(PlayerToPoint(15.0, playerid, 1527.229980,-11.574499,1002.097106)) {
        GameTextForPlayer(playerid, "~r~/exit~w~ to exit the crack house", 5000, 3);
        return 1;
    }
    if(PlayerToPoint(3.0, playerid, 2231.7825,-1159.7080,25.8906)) {
        GameTextForPlayer(playerid, "~r~/enter~w~ to enter ballas hq", 5000, 3);
        return 1;
    }
    if(PlayerToPoint(15.0, playerid, 318.564971,1118.209960,1083.882812)) {
        GameTextForPlayer(playerid, "~r~/exit~w~ to exit ballas hq", 5000, 3);
        return 1;
    }
    if(PlayerToPoint(15.0, playerid, 927.0858,-1352.7571,13.3766)) {
        GameTextForPlayer(playerid, "~r~/enter~w~ to enter the food place", 5000, 3);
        return 1;
    }
    if(PlayerToPoint(15.0, playerid, -25.132598,-139.066986,1003.546875)) {
        GameTextForPlayer(playerid, "~r~/exit~w~ to exit the food place", 5000, 3);
        return 1;
    }
    
    if(PlayerToPoint(30.0, playerid, -729.276000,503.086944,1371.971801)) {
        GameTextForPlayer(playerid, "~r~/exit~w~ to exit snow arena", 5000, 3);
        return 1;
    }
    
    if(PlayerToPoint(15.0, playerid,2177.1697,-1666.6635,15.0859)) {
        GameTextForPlayer(playerid, "~r~/jobgun~g~ to take the job", 5000, 3);
        return 1;
    }
    
    if(PlayerToPoint(15.0, playerid,1778.2642,-2432.2908,13.5547)) {
        GameTextForPlayer(playerid, "~r~/jobpilot~g~ to take the job", 5000, 3);
        return 1;
    }

    if(PlayerToPoint(15.0, playerid, 1366.4325,-1275.2096,13.5469)) {
        GameTextForPlayer(playerid, "~r~/rentgunhelp~w~ for a list of information", 5000, 3);
        return 1;
    }

    if(PlayerToPoint(3.0, playerid, 2523.0286,-1679.2728,15.4970)) {
        GameTextForPlayer(playerid, "~r~/enter~w~ to enter sweets house", 5000, 3);
        return 1;
    }

    if(PlayerToPoint(3.0, playerid, 2527.654052,-1679.388305,1015.498596)) {
        GameTextForPlayer(playerid, "~r~/exit~w~ to exit sweets house", 5000, 3);
        return 1;
    }

    if(PlayerToPoint(15.0, playerid, 2454.717041,-1700.871582,1013.515197)) {
        GameTextForPlayer(playerid, "~b~/takecrack~w~ or ~b~/takeweed~w~ for drugs", 5000, 3);
        return 1;
    }

    if(PlayerToPoint(15.0, playerid, 2459.4539,-1690.9188,13.5453)) {
        GameTextForPlayer(playerid, "~b~Ryder's crack house~w~ use /enter to enter", 5000, 3);
        return 1;
    }
    return 1;
}


public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -x);
    tempposy = (oldposy -y);
    tempposz = (oldposz -z);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) {
        return 1;
    }
    return 0;
}
public Float:GetDistanceBetweenPlayers(p1,p2){
new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
if (!IsPlayerConnected(p1) || !IsPlayerConnected(p2)){
return -1.00;
}
GetPlayerPos(p1,x1,y1,z1);
GetPlayerPos(p2,x2,y2,z2);
return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));

}
idk how to insert sum Factions and please help me with the admin command added to here please!
Reply
#7

LOL BRO DELETE IT OR SOMEONE WILL USE IT
Reply
#8

wrong section .
if you search for a scripter to help u post it here.
https://sampforum.blast.hk/showthread.php?tid=345747
Reply
#9

Uh.. That guy has been banned..
Reply
#10

Quote:
Originally Posted by Raiden Dragneel
Посмотреть сообщение
Uh.. That guy has been banned..
L0O0O0O0O0O0OL
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)