All pastes #769070 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-11-11 02:42 UTC
rendered paste body
//---INCLUDES---//
#include <a_samp>
#include <dutils>
//---TABSIZE---//
#pragma tabsize 0
//---UNUSED---//
#pragma unused ret_memcpy
#pragma unused bombicon
#pragma unused Bomb
#pragma unused CP
#pragma unused CP2
#pragma unused CP3
#pragma unused CPR1
#pragma unused CPR2
#pragma unused CountD
#pragma unused CountText
#pragma unused cpc
#pragma unused cpc2
#pragma unused cpc3
#pragma unused cpcr1
#pragma unused cpcr2
//---/VIEW--//
#define SPEC_TYPE_NONE 0
#define SPEC_TYPE_PLAYER 1
#define PLAYER_VIEW 0xC0C0C0FF
//---COLORS--//
#define GREEN 0x21DD00FF
#define RED 0xE60000FF
#define ADMIN_RED 0xFB0000FF
#define YELLOW 0xFFFF00FF
#define ORANGE 0xF97804FF
#define LIGHTRED 0xFF8080FF
#define LIGHTBLUE 0x00C2ECFF
#define PURPLE 0xB360FDFF
#define PLAYER_COLOR 0xFFFFFFFF
#define BLUE 0x1229FAFF
#define LIGHTGREEN 0x38FF06FF
#define DARKPINK 0xE100E1FF
#define DARKGREEN 0x008040FF
#define ANNOUNCEMENT 0x00CACAFB
#define AFK 0x6AF7E1FF
//---MISC--//
#define SLOTS MAX_PLAYERS
#define COLOR_SYSTEM 0xEFEFF7AA
#define SPEC_TYPE_NONE 0
#define SPEC_TYPE_PLAYER 1
#define SPEC_TYPE_VEHICLE 2

enum pInfo
{
	pAdminLevel,
	pKey[128],
	pCash,
	pWarns,
};

new PlayerInfo[MAX_PLAYERS][pInfo];
new playername[MAX_PLAYER_NAME];
new Peds[217][1] = {
{264},
{288},
{286},{287},{228},{113},{120},{147},{294},{227},{61},{171},
{247},
{248},{100},{256},{263},{262},{261},{260},{259},{258},{257},{256},{255},
{253},{252},{251},{249},{246},{245},{244},{243},{242},{241},{240},{239},
{238},{237},{236},{235},{234},{233},{232},{231},{230},{229},
{226},{225},{173},{174},{175},{224},{223},{222},{221},{220},{219},{218},
{217},{216},{215},{214},{213},{212},{211},{210},{209},
{207},{206},{205},{204},{203},{202},{201},{200},{199},{198},{197},{196},
{195},{194},{193},{192},{191},{190},{189},{185},{184},{183},
{182},{181},{180},{179},{178},{176},{172},{170},{168},{167},{162},
{161},{160},{159},{158},{157},{156},{155},{154},{153},{152},{151},
{146},{145},{144},{143},{142},{141},{140},{139},{138},{137},{136},{135},
{134},{133},{132},{131},{130},{129},{128},{254},{99},{97},{96},{95},{94},
{92},{90},{89},{88},{87},{85},{84},{83},{82},{81},{80},{79},{78},{77},{76},
{75},{73},{72},{69},{68},{67},{66},{64},{63},{62},{58},{57},{56},{55},
{54},{53},{52},{51},{50},{49},{45},{44},{43},{41},{39},{38},{37},{36},{35},
{34},{33},{32},{31},{30},{29},{28},{27},{26},{25},{24},{23},{22},{21},{20},
{19},{18},{17},{16},{15},{14},{13},{12},{11},{10},{1},{2},
{290},
{291},
{292},
{293},
{187},
{296},
{297},
{298},
{299}
};
new player[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new CountDelay[MAX_PLAYERS];
new Drift1Race[MAX_PLAYERS];
new Drift2Race[MAX_PLAYERS];
new Drift3Race[MAX_PLAYERS];
new Race1Arena[MAX_PLAYERS];
new Race2Arena[MAX_PLAYERS];
new DMArena[MAX_PLAYERS];
new deagle;
new shotgun;
new sawnoff;
new spaz;
new uzi;
new mp5;
new ak;
new m4;
new tec9;
new pistol;
new sniper1;
new sniper2;
new rocketlaunch;
new armor;
new DMexitICON;
new knife;
new barrelplayer;
//--Drift1--//
const cpa=28; ///total number of CheckPoints Allocated
new cpc=0; // sets the CheckPointCounter to zero
new Float:CP[cpa][28] =
{
{-302.255035, 1505.969238, 74.411736}, // x,y,z coordinates of the 1st CheckPoint
{-441.163452, 1448.191895, 32.653084},
{-394.743042, 1758.622070, 42.693645},
{-400.210571, 1914.289307, 57.094341},
{-438.057556, 1761.635742, 71.032410},
{-435.510254, 2001.613647, 73.374550},
{-385.328156, 2076.848877, 59.959751},
{-552.458923, 2007.411377, 59.382813},
{-883.589722, 1974.647339, 59.181732},
{-933.603333, 1798.130859, 59.263165},
{-1193.072998, 1798.982544, 40.252300},
{-1506.610229, 1843.736206, 29.534857},
{-1734.920532, 1822.965698, 22.676218},
{-1812.130127, 2109.986084, 7.296963},
{-1990.656372, 2263.711182, 16.179716},
{-1915.336304, 2507.300537, 42.769444},
{-1739.025757, 2728.958008, 59.358620},
{-1317.115723, 2651.428711, 48.921650},
{-1172.758423, 2691.815186, 44.867188},
{-795.664185, 2729.944092, 44.339096},
{-769.773560, 2693.295654, 46.184345},
{-702.479370, 2679.611572, 56.226120},
{-659.634583, 2492.241943, 74.390343},
{-469.553284, 2442.402100, 48.676949},
{-360.234619, 2497.114746, 36.368027},
{-353.467896, 2529.799805, 35.023438},
{-408.920227, 2591.400391, 42.016609},
{-504.122131, 2592.951172, 52.459160}  // NOTICE THERE IS NO COMMA AFTER THE FINAL CHECKPOINT!
};
//--Drift2--//
const cpa2=7;
new cpc2=0;
new Float:CP2[cpa2][3] =
{
{2310.124756, 1508.776001, 41.820313},
{2293.793457, 1394.738037, 35.421875},
{2319.171875, 1509.581909, 29.023438},
{2295.045898, 1395.905884, 22.625000},
{2320.484863, 1510.013794, 16.218750},
{2293.777344, 1397.717651, 9.820313},
{2297.440674, 1508.764771, 9.820313}
};
//--Drift3--//
const cpa3=8;
new cpc3=0;
new Float:CP3[cpa3][3] =
{
{-2487.255127, -480.539825, 96.198448},
{-2626.784912, -499.828400, 69.545448},
{-2508.800781, -453.006287, 72.860794},
{-2331.215820, -461.678925, 79.022957},
{-2433.086426, -368.178772, 70.533913},
{-2673.066162, -417.812042, 31.164684},
{-2683.080322, -525.564026, 15.495153},
{-2783.909912, -489.760376, 6.187500}
};
//--RaceArena1--//
const cpar1=15;
new cpcr1=0;
new Float:CPR1[cpar1][3] =
{
{-2681.047363, 1353.523315, 54.812500},
{-2682.027832, 2156.840332, 54.812500},
{-2743.640625, 2405.250732, 72.704224},
{-2284.801514, 2639.530762, 54.429688},
{-1937.340942, 2460.344727, 53.284943},
{-1773.345825, 2183.294922, 15.133579},
{-1640.453979, 1859.591187, 14.034841},
{-1253.381348, 1674.314575, 8.364441},
{-1053.491089, 1309.548828, 31.337543},
{-889.524048, 852.368530, 18.453125},
{-360.655212, 552.266296, 15.405418},
{98.642044, 669.318481, 4.592655},
{532.032776, 725.988892, 9.983565},
{585.552063, 796.823792, -31.270123},
{721.813416, 911.793579, -20.443537}
};
//--RaceArena2--//
const cpar2=15;
new cpcr2=0;
new Float:CPR2[cpar2][3] =
{
{-726.713074, 2306.874756, 127.169479},
{-860.788208, 2308.576172, 157.561020},
{-1066.842529, 2297.384277, 87.257813},
{-1097.099365, 2336.041504, 85.150032},
{-1119.647461, 2365.057861, 83.932152},
{-1149.389648, 2266.738525, 95.739021},
{-1296.808228, 2222.078369, 98.278290},
{-1347.353760, 2322.457275, 94.001648},
{-1369.077393, 2349.464355, 91.868408},
{-1448.492188, 2367.059814, 52.018394},
{-1511.233643, 2368.057373, 47.838337},
{-1526.258667, 2342.234131, 45.524185},
{-1529.338257, 2191.704102, 49.082947},
{-1479.970093, 2075.074951, 45.225498},
{-1507.862427, 1973.954468, 47.417137}
};
new DM;
new Text:dms;
new Text:dmk;
new Text:dmh;
new Text:dmr;
new Text:dmrh;
new Stats[MAX_PLAYERS];
new DMs;
new Ramp[MAX_PLAYERS];
new ramp;
new ramp2;
new nb1,nb2,nb3,nb4,nb5,nb6,nb7,nb8,nb9,nb10,nb11,nb12,nb13,nb14,nb15,nb16;
new Mute[MAX_PLAYERS];
new level;
new IsLogged[MAX_PLAYERS];
new BoughtVeh[MAX_PLAYERS];
new CCIsLogged[MAX_PLAYERS];
new CCm4;
new CCak47;
new CCsniper;
new CCAC;
new SpectateID[MAX_PLAYERS];
new SpectateType[MAX_PLAYERS];
new View[MAX_PLAYERS];
new CC;
new AttachP;
new Connected[MAX_PLAYERS];
new CarLock;
new KillScore[MAX_PLAYERS];
new DeathScore[MAX_PLAYERS];
new WebAn,An1,An2,An3,An4,An5,An6;
new BombInstalled[MAX_VEHICLES];
new bombicon;
new SuperPunch[MAX_PLAYERS];
new Count[MAX_PLAYERS];
new Bomb;
new ViewCmds[MAX_PLAYERS];
new afk[MAX_PLAYERS];
new CountText[5][30] ={
"~p~~h~countdown~n~~r~~h~1",
"~p~~h~countdown~n~~r~2",
"~p~~h~countdown~n~~y~3",
"~p~~h~countdown~n~~b~4",
"~p~~h~countdown~n~~b~~h~5"
};
new CountD = 5;
new WeapKillString[256];
new VehSuperPunch[MAX_PLAYERS];
new BCountText[5][30] ={
"~r~~h~1",
"~r~2",
"~y~3",
"~b~4",
"~b~~h~~h~5"
};

forward CountDown();
forward CountDown2();
forward CountDown3();
forward IsPlayerInArea(playerid,Float:max_x,Float:min_x,Float:max_y,Float:min_y);
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
forward ScoreCheck(killerid);
forward DMStatsCheck(playerid);
forward ObjectAttachedToPlayer();
forward WeaponsNames(playerid, killerid);
forward NuclearBombs();
forward NuclearBombsSuccess();
forward VehRepair();
forward OnPlayerLogin(playerid,password[]);
forward OnPlayerRegister(playerid, password[]);
forward OnPlayerUpdate(playerid);
forward SendClientMessageToAdmins(color,const string[],alevel);
forward PingCheck(playerid);
forward VehicleSpawn(playerid, vehicleid);
forward BanLog(string[]);
forward KickLog(string[]);
forward VehicleLog(string[]);
forward SendClientMessageToCC(color,const string[]);
forward CCAreaCheck();
forward AttachPlayer( Float:X, Float:Y, Float:Z);
forward VehLock();
forward WebSite();
forward VehFullRepair();
forward Announcement1();
forward Announcement2();
forward Announcement3();
forward Announcement4();
forward Announcement5();
forward Announcement6();
forward ReplaceVehicle(vehicleid, Float:X, Float:Y, Float:Z, Float:Ang);
forward BombCar(vehicleid);
forward BombCountDown(playerid);
forward BombPickup(playerid);

main()
{
print("|--------------------------------|");
print("  Stunts'n'Drifts'n'Racez'n'PWN");
print("|--------------------------------|");
}

stock IsNumeric(const string[])
{
	for (new i = 0, j = strlen(string); i < j; i++)
	if (string[i] > '9' || string[i] < '0')
    return 0;
	return 1;
}

ReturnUser(text[], playerid = INVALID_PLAYER_ID)
{
	new pos = 0;
	while (text[pos] < 0x21)
	{
	if (text[pos] == 0) return INVALID_PLAYER_ID;
	pos++;
	}
	new userid = INVALID_PLAYER_ID;
	if (IsNumeric(text[pos]))
	{
	userid = strval(text[pos]);
	if (userid >=0 && userid < MAX_PLAYERS)
	{
	if(!IsPlayerConnected(userid))
	{
	userid = INVALID_PLAYER_ID;
	}
	else
	{
	return userid;
	}
	}
	}
	new len = strlen(text[pos]);
	new count = 0;
	new pname[MAX_PLAYER_NAME];
	for (new i = 0; i < MAX_PLAYERS; i++)
	{
	if (IsPlayerConnected(i))
	{
	GetPlayerName(i, pname, sizeof (pname));
	if (strcmp(pname, text[pos], true, len) == 0)
	{
	if (len == strlen(pname))
	{
	return i;
	}
	else
	{
	count++;
	userid = i;
	}
	}
	}
	}
	if (count != 1)
	{
	if (playerid != INVALID_PLAYER_ID)
	{
	if (count)
	{
	SendClientMessage(playerid, COLOR_SYSTEM, "There are multiple users, enter full playername.");
	}
	else
	{
	SendClientMessage(playerid, COLOR_SYSTEM, "Playername not found.");
	}
	}
	userid = INVALID_PLAYER_ID;
	}
	return userid;
}

SendToDriver(vehicleid, const str[])
{
	for(new i=0; i<MAX_PLAYERS; i++)
	{
	    if(IsPlayerConnected(i))
	    {
	        if(IsPlayerInVehicle(i, vehicleid))
	        {
	            if(GetPlayerState(i) == 2)
	            {
	                SendClientMessage(i, GREEN, str);
	                return i;
				}
			}
		}
	}
	return 1;
}

stock ini_GetKey( line[] )
{
	new keyRes[256];
	keyRes[0] = 0;
    if ( strfind( line , "=" , true ) == -1 ) return keyRes;
    strmid( keyRes , line , 0 , strfind( line , "=" , true ) , sizeof( keyRes) );
    return keyRes;
}

stock ini_GetValue( line[] )
{
	new valRes[256];
	valRes[0]=0;
	if ( strfind( line , "=" , true ) == -1 ) return valRes;
	strmid( valRes , line , strfind( line , "=" , true )+1 , strlen( line ) , sizeof( valRes ) );
	return valRes;
}

public VehicleLog(string[])
{
	new entry[256];
	format(entry, sizeof(entry), "%s\n",string);
	new File:hFile;
	hFile = fopen("vehiclespawn.log", io_append);
	fwrite(hFile, entry);
	fclose(hFile);
}

public KickLog(string[])
{
	new entry[256];
	format(entry, sizeof(entry), "%s\n",string);
	new File:hFile;
	hFile = fopen("kick.log", io_append);
	fwrite(hFile, entry);
	fclose(hFile);
}

public BanLog(string[])
{
	new entry[256];
	format(entry, sizeof(entry), "%s\n",string);
	new File:hFile;
	hFile = fopen("ban.log", io_append);
	fwrite(hFile, entry);
	fclose(hFile);
}

public SendClientMessageToAdmins(color,const string[],alevel)
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			if (PlayerInfo[i][pAdminLevel] >= alevel)
			{
				SendClientMessage(i, color, string);
				printf("%s", string);
			}
		}
	}
	return 1;
}

public SendClientMessageToCC(color,const string[])
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			if (CCIsLogged[i] == 1)
			{
				SendClientMessage(i, color, string);
				printf("%s", string);
			}
		}
	}
	return 1;
}

public OnPlayerRegister(playerid, password[])
{
	if(IsPlayerConnected(playerid))
	{
			new string3[32];
			new playername3[MAX_PLAYER_NAME];
			GetPlayerName(playerid, playername3, sizeof(playername3));
			format(string3, sizeof(string3), "%s.ini", playername3);
			new File: hFile = fopen(string3, io_write);
			if (hFile)
			{
			    strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
			    new var[32];
			    PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
				format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
				format(var, 32, "Cash=%s\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
				format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdminLevel]);fwrite(hFile, var);
				format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
				format(var, 32, "Kills=%d\n",KillScore[playerid]);fwrite(hFile, var);
				format(var, 32, "Death=%d\n",DeathScore[playerid]);fwrite(hFile, var);
				fclose(hFile);
				SendClientMessage(playerid, GREEN, "Account successfully registered. You can now login(/login [password]).");
				}
	}
	return 1;
}

public OnPlayerUpdate(playerid)
{
	if(IsPlayerConnected(playerid))
	{
		if(IsLogged[playerid] == 1)
		{
			new string3[32];
			new playername3[MAX_PLAYER_NAME];
			GetPlayerName(playerid, playername3, sizeof(playername3));
			format(string3, sizeof(string3), "%s.ini", playername3);
			new File: hFile = fopen(string3, io_write);
			if (hFile)
			{
			    PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
				new var[32];
				format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
				format(var, 32, "Cash=%d\n", PlayerInfo[playerid][pCash]);fwrite(hFile, var);
				format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdminLevel]);fwrite(hFile, var);
				format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
				format(var, 32, "Kills=%d\n",KillScore[playerid]);fwrite(hFile, var);
				format(var, 32, "Death=%d\n",DeathScore[playerid]);fwrite(hFile, var);
				fclose(hFile);
			}
		}
	}
	return 1;
}

public OnPlayerLogin(playerid,password[])
{
//	new tmp2[256];
    new string2[64];
	new playername2[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername2, sizeof(playername2));
	format(string2, sizeof(string2), "%s.ini", playername2);
	new File: UserFile = fopen(string2, io_read);
	if ( UserFile )
	{
	    new PassData[256];
	    new keytmp[256], valtmp[256];
	    fread( UserFile , PassData , sizeof( PassData ) );
	    keytmp = ini_GetKey( PassData );
	    if( strcmp( keytmp , "Key" , true ) == 0 )
		{
			valtmp = ini_GetValue( PassData );
			strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
		}
		if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )
		{
			    new key[ 256 ] , val[ 256 ];
			    new Data[ 256 ];
			    while ( fread( UserFile , Data , sizeof( Data ) ) )
				{
					key = ini_GetKey( Data );
					if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdminLevel] = strval( val ); }
					if( strcmp( key , "Cash" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
					if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }
					if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); KillScore[playerid] = strval( val ); }
					if( strcmp( key , "Death" , true ) == 0 ) { val = ini_GetValue( Data ); DeathScore[playerid] = strval( val ); }
                }//end while
                fclose(UserFile);//close the file after everything has been read in the while
                IsLogged[playerid] = 1;
		}
		else
		{
			SendClientMessage(playerid, RED, "Incorrect Password.");
	        fclose(UserFile);
	        return 1;
		}
		format(string2, sizeof(string2), "You have successfully logged in as %s.",playername2);
		SendClientMessage(playerid, GREEN,string2);
		printf("%s has logged in.",playername2);
		if (PlayerInfo[playerid][pAdminLevel] >= 1)
		{
        format(string2, sizeof(string2), "You are now logged in as a Level %d Admin.",PlayerInfo[playerid][pAdminLevel]);
		SendClientMessage(playerid, GREEN,string2);
		}
		GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
	}
	return 1;
}

public OnGameModeInit()
{
WebAn = SetTimer("WebSite", 450000, 1);
EnableStuntBonusForAll(0);
SetTimer("CMCheck",500,1);
UsePlayerPedAnims();
SetDisabledWeapons(43,44,45);
SetGameModeText("Stunts'n'Drifts'n'Racez'n'Pwn");
/*--------------------------Objects [ 145 ] --------------------------*/
//DeathMatch Arena//
CreateObject(1225, 1394.421143, 2801.646973, 10.226068, 0, 0, 0);
CreateObject(1225, 1394.421143, 2801.646973, 10.226068, 0, 0, 0);
CreateObject(1225, 1382.974365, 2779.775146, 10.374505, 0, 0, 0);
CreateObject(1225, 1379.300537, 2820.208008, 10.226068, 0, 0, 0);
CreateObject(1225, 1359.069336, 2835.471436, 10.226068, 0, 0, 0);
CreateObject(1225, 1341.266602, 2807.391602, 10.226068, 0, 0, 0);
CreateObject(1225, 1333.386597, 2838.064697, 10.226068, 0, 0, 0);
CreateObject(1225, 1316.230713, 2819.156250, 10.226068, 0, 0, 0);
CreateObject(1225, 1306.382324, 2841.635498, 10.226068, 0, 0, 0);
CreateObject(1225, 1274.138794, 2817.096680, 10.226068, 0, 0, 0);
CreateObject(1225, 1309.834595, 2770.504150, 10.226068, 0, 0, 0);
CreateObject(1225, 1259.328857, 2786.661133, 10.226068, 0, 0, 0);
CreateObject(1225, 1261.476440, 2757.732666, 10.226068, 0, 0, 0);
CreateObject(1225, 1236.798218, 2820.575439, 10.226068, 0, 0, 0);
CreateObject(1225, 1212.357300, 2810.865479, 10.226068, 0, 0, 0);
CreateObject(1225, 1232.160889, 2773.733887, 10.226068, 0, 0, 0);
CreateObject(1225, 1204.170654, 2741.543701, 10.233880, 0, 0, 0);
CreateObject(1225, 1188.199097, 2764.743652, 10.226068, 0, 0, 0);
CreateObject(1225, 1173.148926, 2792.352539, 10.226068, 0, 0, 0);
CreateObject(1225, 1152.216187, 2775.703613, 10.226068, 0, 0, 0);
CreateObject(1225, 1163.331299, 2836.286377, 10.226068, 0, 0, 0);
CreateObject(1225, 1201.100220, 2852.451904, 10.226068, 0, 0, 0);
CreateObject(1225, 1137.832275, 2804.354004, 10.374505, 0, 0, 0);
CreateObject(1225, 1125.284546, 2763.734619, 9.697108, 0, 0, 0);
CreateObject(1225, 1126.142700, 2763.629395, 9.669478, 0, 0, 0);
CreateObject(1225, 1126.700562, 2762.705566, 9.565567, 0, 0, 0);
CreateObject(1225, 1126.184814, 2761.928711, 9.534018, 0, 0, 0);
CreateObject(1225, 1125.394775, 2761.738281, 9.610239, 0, 0, 0);
CreateObject(1225, 1124.428345, 2762.278564, 9.656989, 0, 0, 0);
CreateObject(1225, 1374.238281, 2738.846436, 10.226068, 0, 0, 0);
CreateObject(1225, 1410.170044, 2745.029053, 10.226068, 0, 0, 0);
CreateObject(1225, 1409.693604, 2745.737061, 10.226068, 0, 0, 0);
CreateObject(1225, 1410.321655, 2746.420410, 10.226068, 0, 0, 0);
CreateObject(1225, 1411.273315, 2744.817139, 10.226068, 0, 0, 0);
CreateObject(1225, 1411.375488, 2746.298828, 10.226068, 0, 0, 0);
CreateObject(3279, 1367.569092, 2854.406006, 9.895929, 0, 0, 258.75);
CreateObject(3279, 1170.504150, 2770.411865, 10.426961, 0, 0, 11.25);
CreateObject(16641, 1171.471680, 2750.984863, 11.582980, 0, 0, 0);
CreateObject(16641, 1159.371704, 2800.570068, 11.575168, 0, 0, 270);
CreateObject(16641, 1218.682007, 2837.512695, 11.340486, 0, 0, 0);
CreateObject(16641, 1294.750488, 2833.845703, 11.575168, 0, 0, 0);
CreateObject(16641, 1303.165161, 2756.475586, 11.575168, 0, 0, 0);
CreateObject(16641, 1356.359741, 2799.102539, 11.122785, 0, 0, 0);
CreateObject(16641, 1361.933350, 2760.661377, 11.057704, 0, 0, 0);
CreateObject(3374, 1323.385498, 2753.027588, 11.314289, 0, 0, 0);
CreateObject(3374, 1352.437988, 2736.644287, 11.314289, 0, 0, 0);
CreateObject(3374, 1361.510498, 2783.245605, 11.306578, 0, 0, 0);
CreateObject(3374, 1329.457275, 2808.185791, 11.314289, 0, 0, 0);
CreateObject(3374, 1350.745850, 2819.493164, 11.314289, 0, 0, 0);
CreateObject(3374, 1381.715576, 2815.797607, 11.314289, 0, 0, 0);
CreateObject(3374, 1404.882813, 2788.174561, 11.314289, 0, 0, 0);
CreateObject(3374, 1395.840332, 2761.134033, 11.314289, 0, 0, 0);
CreateObject(3374, 1255.182861, 2840.455566, 11.314289, 0, 0, 0);
CreateObject(3374, 1180.170654, 2784.366455, 11.314289, 0, 0, 0);
CreateObject(3374, 1202.893799, 2776.871826, 11.783143, 0, 0, 0);
CreateObject(3374, 1197.304565, 2816.789307, 11.314289, 0, 0, 0);
CreateObject(3374, 1139.212769, 2759.207275, 11.314289, 0, 0, 0);
CreateObject(3267, 1170.062134, 2770.009277, 26.065529, 0, 0, 0);
CreateObject(3267, 1367.281250, 2854.297852, 25.534498, 0, 0, 0);
CreateObject(1676, 1362.489136, 2825.782227, 11.401179, 0, 0, 0);
CreateObject(1676, 1297.444336, 2810.228516, 11.549617, 0, 0, 0);
CreateObject(4811, 1364.545654, 2868.894531, 21.551491, 0, 0, 66.4859);
CreateObject(4811, 1265.006226, 2865.138428, 20.723425, 0, 0, 65.6265);
CreateObject(4812, 1181.717773, 2876.913574, 20.780191, 0, 0, 98.6717);
CreateObject(4812, 1099.657104, 2807.638428, 21.188910, 0, 0, 185.0794);
CreateObject(4811, 1156.019531, 2725.143066, 20.634317, 0, 0, 243.2028);
CreateObject(4811, 1221.966431, 2718.852539, 20.751495, 0, 0, 251.0151);
CreateObject(4811, 1315.453735, 2723.069824, 20.712118, 0, 0, 245.7811);
CreateObject(4811, 1376.420532, 2723.234375, 20.803871, 0, 0, 247.5);
CreateObject(987, 1427.196533, 2728.195801, 9.820313, 0, 0, 91.6415);
CreateObject(987, 1418.045410, 2811.082520, 9.824651, 0, 0, 90);
CreateObject(986, 1420.075684, 2807.672852, 11.535318, 0, 0, 123.7499);
CreateObject(987, 1417.714233, 2858.898438, 9.770313, 0, 0, 94.3745);
CreateObject(987, 1417.201904, 2858.638672, 9.824650, 0, 0, 270);
CreateObject(987, 1416.880615, 2846.676758, 9.820313, 0, 0, 270);
CreateObject(987, 1416.816895, 2834.728516, 9.820313, 0, 0, 270);
CreateObject(987, 1118.174194, 2731.062500, 9.732239, 0, 0, 105.5471);
CreateObject(967, 1247.997925, 2778.881836, 9.820313, 0, 0, 0);
CreateObject(967, 1270.463745, 2812.674316, 10.310163, 0, 0, 0);
CreateObject(967, 1287.631104, 2776.083252, 9.820313, 0, 0, 0);
CreateObject(967, 1230.198242, 2810.858887, 9.820309, 0, 0, 0);
CreateObject(967, 1325.816772, 2851.327881, 10.202387, 0, 0, 258.75);
CreateObject(967, 1335.731689, 2792.430176, 9.820313, 0, 0, 348.75);
CreateObject(967, 1339.117676, 2757.069092, 8.825546, 0, 0, 0);
CreateObject(5837, 1158.857300, 2836.626953, 11.537807, 0, 0, 258.75);
CreateObject(5837, 1410.495972, 2822.632568, 11.537807, 0, 0, 90);
CreateObject(971, 1427.333008, 2741.441895, 15.565273, 0, 0, 0);
CreateObject(971, 1426.133057, 2802.419189, 16.065266, 0, 0, 333.3575);
CreateObject(972, 1413.454956, 2825.735352, 2.710287, 87.6625, 0, 34.4548);
CreateObject(986, 1433.862549, 2810.784180, 17.611643, 0, 0, 0);
CreateObject(986, 1437.726685, 2813.354004, 15.941191, 0, 38.6747, 89.0632);
CreateObject(986, 1441.507935, 2815.814453, 14.248710, 0, 0, 0);
CreateObject(985, 1449.451538, 2815.796631, 14.260550, 0, 0, 0);
CreateObject(980, 1457.772339, 2809.617188, 15.414513, 0, 0, 90);
CreateObject(971, 1453.763550, 2815.362793, 16.101299, 0, 0, 0);
CreateObject(980, 1457.717407, 2798.072510, 15.443264, 0, 0, 90);
CreateObject(980, 1457.756714, 2786.542236, 15.422686, 0, 0, 90);
CreateObject(980, 1457.691040, 2775.065186, 15.457050, 0, 0, 90);
CreateObject(980, 1457.737427, 2763.560547, 15.432798, 0, 0, 90);
CreateObject(980, 1457.681030, 2752.095947, 15.462240, 0, 0, 90);
CreateObject(980, 1457.718750, 2740.607910, 15.442511, 0, 0, 90);
CreateObject(980, 1451.967285, 2731.772705, 15.315205, 0, 0, 0);
CreateObject(980, 1443.126465, 2731.962891, 15.442654, 0, 0, 0);
CreateObject(971, 1437.652344, 2733.520752, 17.747494, 0, 32.6586, 269.0632);
CreateObject(971, 1433.451172, 2737.007813, 19.269344, 0, 0, 0);
CreateObject(1225, 1260.257324, 2804.757813, 14.378963, 0, 0, 0);
CreateObject(1225, 1255.277710, 2804.867676, 14.359201, 0, 0, 0);
CreateObject(1225, 1262.293579, 2793.773438, 14.530579, 0, 0, 0);
CreateObject(1225, 1254.716553, 2793.174316, 14.422736, 0, 0, 0);
CreateObject(11446, 1230.040771, 2746.384521, 10.003029, 0, 0, 191.25);
CreateObject(11446, 1275.472168, 2752.257813, 9.995216, 0, 0, 258.75);
CreateObject(11446, 1193.948486, 2792.116455, 9.987423, 0, 0, 101.25);
CreateObject(11446, 1267.886841, 2842.820557, 9.987425, 0, 0, 11.25);
CreateObject(11446, 1177.591553, 2841.525879, 9.995216, 0, 0, 90);
CreateObject(11442, 1408.403320, 2860.745850, 9.994064, 0, 0, 270);
CreateObject(1428, 1406.435547, 2861.713135, 13.180086, 336.7952, 3.4377, 94.2972);
CreateObject(1428, 1408.133301, 2861.673096, 11.035156, 336.7952, 3.4377, 94.2972);
CreateObject(1209, 1404.833984, 2860.707764, 14.651329, 91.9597, 0, 180.8594);
CreateObject(14409, 1124.451538, 2821.911377, 12.987204, 0, 0, 0);
CreateObject(14409, 1133.530029, 2819.432861, 19.191597, 0, 0, 89.0632);
CreateObject(14409, 1136.479614, 2810.435547, 25.445990, 0, 0, 3.515);
CreateObject(14409, 1144.968628, 2807.541504, 31.800381, 0, 0, 90.7821);
CreateObject(1437, 1147.651123, 2804.999512, 35.900089, 332.498, 1.7189, 183.4378);
CreateObject(3277, 1147.690186, 2798.914307, 40.439747, 0, 0, 345.3896);
CreateObject(969, 1457.347900, 2734.993652, 9.390577, 1.7189, 270.6186, 92.5783);
CreateObject(3359, 1262.328247, 2735.483643, 9.281633, 0, 0, 168.75);
CreateObject(11292, 1237.817627, 2853.018555, 11.284345, 0, 0, 0);
barrelplayer = CreateObject(1225,0,0,0,0,0,0);
CreateObject(1225,1260.3066,2735.6462,10.3923,0,0,0); // explosive barrel
//> Nuclear Bombs <//
nb1 = CreateObject(3786, 1411.922119, 2805.617920, 82.026489, 0, 318.747, 0);
nb2 = CreateObject(3786, 1410.384888, 2816.555176, 82.051491, 0, 318.747, 0);
nb3 = CreateObject(3786, 1387.416748, 2801.345703, 85.159370, 0, 318.747, 0);
nb4 = CreateObject(3786, 1417.482666, 2767.255615, 87.051491, 0, 318.747, 0);
nb5 = CreateObject(3786, 1416.013794, 2785.427734, 90.301491, 0, 318.747, 0);
nb6 = CreateObject(3786, 1397.005127, 2775.036865, 91.949928, 0, 318.747, 348.75);
nb7 = CreateObject(3786, 1374.013306, 2799.821045, 93.629433, 0, 318.747, 0);
nb8 = CreateObject(3786, 1374.415039, 2781.507568, 93.958092, 0, 318.747, 0);
nb9 = CreateObject(3786, 1374.492432, 2823.022461, 91.076492, 0, 318.747, 0);
nb10 = CreateObject(3786, 1361.251709, 2808.976318, 101.551491, 0, 318.747, 0);
nb11 = CreateObject(3786, 1338.346802, 2786.706299, 90.801491, 0, 318.747, 0);
nb12 = CreateObject(3790, 1214.732300, 2824.856689, 57.448601, 357.6293, 272.3375, 6.8755);
nb13 = CreateObject(3790, 1174.542603, 2775.916504, 52.075165, 357.6293, 272.3375, 6.8755);
nb14 = CreateObject(3790, 1140.503540, 2795.846436, 59.025101, 357.6293, 272.3375, 6.8755);
nb15 = CreateObject(3790, 1191.946533, 2838.445801, 58.025162, 357.6293, 272.3375, 6.8755);
nb16 = CreateObject(3790, 1170.051514, 2746.266357, 52.782974, 357.6293, 272.3375, 6.8755);
/*----------------------Vehicles [ 116 ] |-| Models [ 47 ]-------------------------*/
//Cars in Drifting Zones//
AddStaticVehicle(480,2301.5095,1405.1792,42.5501,270.0606,-1,-1); // lv driftlot
AddStaticVehicle(560,2301.6406,1408.4753,42.5501,269.9618,-1,-1); //lv driftlot
AddStaticVehicle(558,2302.4795,1412.1815,42.5501,270.7119,-1,-1); //lv driftlot
AddStaticVehicle(603,2302.1626,1415.8214,42.5500,269.6354,-1,-1); //lv driftlot
AddStaticVehicle(451,2301.9263,1419.2104,42.5501,271.0471,-1,-1); //lv driftlot
AddStaticVehicle(506,2300.7449,1422.8412,42.5498,269.0851,-1,-1); //lv driftlot
AddStaticVehicle(550,2301.1982,1426.4480,42.5500,268.7574,-1,-1); //lv driftlot
AddStaticVehicle(477,2301.6213,1430.1429,42.5500,270.4868,-1,-1); //lv driftlot
AddStaticVehicle(411,2302.1357,1433.7285,42.5500,268.8563,-1,-1); //lv driftlot
AddStaticVehicle(559,2301.8879,1437.3514,42.5499,269.7635,-1,-1); //lv driftlot
AddStaticVehicle(562,2301.8054,1440.4999,42.5499,269.7474,-1,-1); //lv driftlot
AddStaticVehicle(429,2301.6523,1444.4962,42.5499,267.5894,-1,-1); //lv driftlot
AddStaticVehicle(568,2302.5938,1447.8400,42.5500,269.9099,-1,-1); //lv driftlot
AddStaticVehicle(587,2301.4534,1451.7228,42.5499,267.3141,-1,-1); //lv driftlot
AddStaticVehicle(522,2352.9937,1444.3778,42.5454,90.7260,-1,-1); //lv driftlot
AddStaticVehicle(522,2353.2419,1447.9402,42.5454,90.2651,-1,-1); //lv driftlot
AddStaticVehicle(522,2353.2422,1451.7985,42.5454,90.8421,-1,-1); ///lv driftlot
AddStaticVehicle(602,-2502.0293,-600.3530,132.1321,178.3081,-1,-1); // driftzones
AddStaticVehicle(560,-2505.5940,-600.6416,132.1321,180.2393,-1,-1); // driftzones
AddStaticVehicle(558,-2509.4561,-602.0853,132.1328,180.1262,-1,-1); // driftzones
AddStaticVehicle(562,-2513.2363,-602.8759,132.1327,179.8866,-1,-1); // driftzones
AddStaticVehicle(541,-2516.9885,-601.9250,132.1326,180.3385,-1,-1); // driftzones
AddStaticVehicle(451,-2520.4460,-603.0859,132.1293,180.6989,-1,-1); // driftzones
AddStaticVehicle(560,-317.9033,1514.2576,74.9291,358.5075,-1,-1); // driftzones
AddStaticVehicle(550,-324.1991,1515.8608,74.9325,357.5335,-1,-1); // driftzones
AddStaticVehicle(558,-330.5212,1515.3676,74.9301,359.9252,-1,-1); // driftzones
AddStaticVehicle(559,-336.6664,1515.0902,74.9301,359.1841,-1,-1); // driftzones
AddStaticVehicle(411,-342.7112,1515.8678,74.9275,357.8769,-1,-1); //driftzones
AddStaticVehicle(522,-346.1451,1516.0438,74.9314,359.2783,-1,-1); // driftzones
AddStaticVehicle(522,-314.8004,1514.8811,74.9278,359.7531,-1,-1); // driftzones
//Cars in Car Gallery//
AddStaticVehicle(536,-2092.4338,-220.0101,35.0500,269.3897,-1,-1); // CarGallery
AddStaticVehicle(536,-2092.4338,-215.0101,35.0114,269.3897,-1,-1); // CarGallery
AddStaticVehicle(402,-2092.4338,-210.0101,35.0324,269.3897,-1,-1); // CarGallery
AddStaticVehicle(402,-2092.4338,-205.0101,35.0546,269.3897,-1,-1); // CarGallery
AddStaticVehicle(415,-2092.4338,-200.0101,35.0430,269.3897,-1,-1); // CarGallery
AddStaticVehicle(415,-2092.4338,-195.0101,35.0313,269.3897,-1,-1); // CarGallery
AddStaticVehicle(558,-2092.4338,-190.0101,35.0178,269.3897,-1,-1); // CarGallery
AddStaticVehicle(558,-2092.4338,-185.0101,35.0359,269.3897,-1,-1); // CarGallery
AddStaticVehicle(480,-2092.4338,-180.0101,35.0182,269.3897,-1,-1); // CarGallery
AddStaticVehicle(480,-2092.4338,-175.0101,35.0598,269.3897,-1,-1); // CarGallery
AddStaticVehicle(562,-2092.4338,-170.0101,35.0234,269.3897,-1,-1); // CarGallery
AddStaticVehicle(562,-2092.4338,-165.0101,35.0481,269.3897,-1,-1); // CarGallery
AddStaticVehicle(587,-2092.4338,-160.0101,35.0467,269.3897,-1,-1); // CarGallery
AddStaticVehicle(587,-2092.4338,-155.0101,35.0332,269.3897,-1,-1); // CarGallery
AddStaticVehicle(565,-2092.4338,-150.0101,35.0488,269.3897,-1,-1); // CarGallery
AddStaticVehicle(407,-2092.4338,-145.0101,35.0348,269.3897,-1,-1); // CarGallery
AddStaticVehicle(457,-2015.0078,-209.8852,35.0519,90.0784,-1,-1); // CarGallery
AddStaticVehicle(431,-2018.0494,-204.3858,35.4219,93.1552,-1,-1); // CarGallery
AddStaticVehicle(437,-2017.8690,-199.9139,35.4230,89.7317,-1,-1); // CarGallery
AddStaticVehicle(541,-2015.0083,-194.8847,35.0166,90.0792,-1,-1); // CarGallery
AddStaticVehicle(434,-2015.0072,-189.8838,35.0374,90.0803,-1,-1); // CarGallery
AddStaticVehicle(502,-2015.0076,-184.8849,35.0231,90.0791,-1,-1); // CarGallery
AddStaticVehicle(503,-2015.0076,-179.8847,35.0508,90.0793,-1,-1); // CarGallery
AddStaticVehicle(494,-2015.0076,-174.8847,35.0358,90.0793,-1,-1); // CarGallery
AddStaticVehicle(571,-2015.0076,-169.8847,35.0478,90.0793,-1,-1); // CarGallery
AddStaticVehicle(411,-2015.0076,-164.8847,35.0317,90.0793,-1,-1); // CarGallery
AddStaticVehicle(411,-2015.0076,-159.8847,35.0160,90.0793,-1,-1); // CarGallery
AddStaticVehicle(603,-2015.0076,-154.8847,35.0310,90.0793,-1,-1); // CarGallery
AddStaticVehicle(560,-2015.0076,-149.8847,35.0141,90.0793,-1,-1); // CarGallery
AddStaticVehicle(559,-2015.0076,-144.8847,35.0205,90.0793,-1,-1); // CarGallery
AddStaticVehicle(559,-2015.0076,-139.8829,35.0168,90.0816,-1,-1); // CarGallery
AddStaticVehicle(451,-2015.0118,-134.8868,35.0339,90.0789,-1,-1); // CarGallery
AddStaticVehicle(423,2460.2656,1351.0656,10.8466,89.5078,1,17); // mr whoop
// Caddies at DM //
AddStaticVehicle(457,1417.1730,2782.5876,10.4471,90.8030,-1,-1); // Caddy(DM)
AddStaticVehicle(457,1417.1730,2787.5876,10.4426,90.8030,-1,-1); // Caddy(DM)
AddStaticVehicle(457,1417.1730,2792.5876,10.4222,90.8030,-1,-1); // Caddy(DM)
AddStaticVehicle(457,1417.1730,2797.5876,10.4189,90.8030,-1,-1); // Caddy(DM)
AddStaticVehicle(457,1417.1675,2802.5876,10.4178,90.8030,-1,-1); // Caddy(DM)
AddStaticVehicle(457,1417.1675,2807.5876,10.4142,90.8030,-1,-1); // Caddy(DM)
// Bus/Limo/Boats/Skimmer at CC HQ //
AddStaticVehicle(431,-705.2119,889.9861,13.0689,357.6492,-1,-1); // bus
AddStaticVehicle(409,-687.2167,885.0521,12.1287,357.0225,-1,-1); // limo
AddStaticVehicle(454,-649.0146,864.2814,-0.5210,226.6510,-1,-1); // boat1
AddStaticVehicle(472,-641.2980,874.8063,-0.5257,232.6277,-1,-1); // boat2
AddStaticVehicle(460,-636.2281,895.8533,-0.5530,230.4343,-1,-1); // skimmer(plane)
// NRGs at bowl //
AddStaticVehicle(522,-1713.4126,22.8707,3.5591,223.3551,-1,-1);
AddStaticVehicle(522,-1711.1594,20.4313,3.5597,222.7285,-1,-1); 
AddStaticVehicle(522,-1708.6716,17.7381,3.5604,222.7285,-1,-1);
AddStaticVehicle(522,-1706.1910,15.0526,3.5547,222.7285,-1,-1); 
AddStaticVehicle(522,-1704.3542,13.0644,3.5547,222.7285,-1,-1); 
AddStaticVehicle(522,-1702.0424,10.5617,3.5547,222.7285,-1,-1);
AddStaticVehicle(522,-1699.7125,8.0401,3.5547,222.7285,-1,-1); 
AddStaticVehicle(522,-1696.9886,5.0914,3.5547,222.7285,-1,-1); 
AddStaticVehicle(522,-1701.9304,0.7756,3.5547,36.6067,-1,-1); 
AddStaticVehicle(522,-1704.3665,3.5476,3.5489,41.3068,-1,-1);
AddStaticVehicle(522,-1706.3422,5.7958,3.5489,41.3068,-1,-1); 
AddStaticVehicle(522,-1708.7332,8.5170,3.5547,41.3068,-1,-1); 
AddStaticVehicle(522,-1710.9520,11.0424,3.6179,41.3068,-1,-1); 
AddStaticVehicle(522,-1713.1969,13.5972,3.6165,41.3068,-1,-1);
AddStaticVehicle(522,-1715.2222,15.9021,3.6152,41.3068,-1,-1); 
AddStaticVehicle(522,-1717.7064,18.7292,3.5711,41.3068,-1,-1);
// MISC //
AddStaticVehicle(489,-312.1029,1538.8868,75.7059,207.2247,14,123); // rancher
AddStaticVehicle(592,1579.9185,1189.4121,12.0067,359.5938,1,1); // Andro Spawn
AddStaticVehicle(519,405.4481,2454.6226,16.2054,359.5859,1,1); // Shamal
AddStaticVehicle(487,365.3615,2536.8416,16.3908,180.1030,1,1); // Maverick Spawn
// Cars at Spawn //
AddStaticVehicle(560,-2252.0000,2285.0776,4.5179,90.6312,-1,-1); // car1
AddStaticVehicle(602,-2252.0000,2290.0776,4.5062,90.6312,-1,-1); // car1
AddStaticVehicle(560,-2252.0002,2295.0776,4.5050,90.6312,-1,-1); // car1
AddStaticVehicle(424,-2252.0002,2300.0776,4.4971,90.6312,-1,-1); // car1
AddStaticVehicle(496,-2252.0002,2305.0776,4.4680,90.6312,-1,-1); // car1
AddStaticVehicle(402,-2252.0002,2310.0776,4.4790,90.6312,-1,-1); // car1
AddStaticVehicle(415,-2252.0002,2315.0776,4.5046,90.6312,-1,-1); // car1
AddStaticVehicle(562,-2272.0857,2285.4219,4.5254,269.3978,-1,-1); // car2
AddStaticVehicle(496,-2272.0862,2290.4221,4.5326,269.4012,-1,-1); // car2
AddStaticVehicle(587,-2272.0862,2295.4221,4.4823,269.4012,-1,-1); // car2
AddStaticVehicle(411,-2272.0862,2300.4221,4.4762,269.4012,-1,-1); // car2
AddStaticVehicle(603,-2272.0862,2305.4221,4.4888,269.4012,-1,-1); // car2
AddStaticVehicle(534,-2272.0862,2310.4221,4.4623,269.4012,-1,-1); // car2
AddStaticVehicle(496,-2272.0862,2315.4221,4.4818,269.4012,-1,-1); // car2
AddStaticVehicle(558,-2272.0862,2320.4221,4.5184,269.4012,-1,-1); // car2
// Monsters/Dozers/Dumpers at Monster Mash //
AddStaticVehicle(444,-274.7941,2138.9438,113.0641,25.5044,-1,-1); // monster1
AddStaticVehicle(444,-298.4164,2148.1555,113.1263,282.4304,-1,-1); // monster3
AddStaticVehicle(444,-291.7956,2174.6814,113.2243,201.4752,-1,-1); // monster2
AddStaticVehicle(486,-287.3319,2140.6433,112.8599,334.6284,1,-1); // dozer1
AddStaticVehicle(486,-263.8086,2160.3496,112.1897,52.4927,-1,-1); // dozer2
AddStaticVehicle(486,-283.6064,2181.1519,112.8996,208.6125,-1,-1); // dozer3
AddStaticVehicle(406,-240.0325,2396.1719,110.4247,161.0496,-1,-1); // Dumper1
AddStaticVehicle(406,-229.5655,2368.1807,111.5793,84.3164,-1,-1); // dumper2
AddStaticVehicle(406,-285.5070,2317.1252,111.6743,305.4738,-1,-1); // dumper3
// Chilliad Bike Track Sanchez' //
AddStaticVehicle(468,-2429.7744,-1925.0419,304.6708,181.5643,-1,-1); // Sanchez1
AddStaticVehicle(468,-2433.0747,-1925.4066,304.5310,176.3943,-1,-1); // Sanchez1
AddStaticVehicle(468,-2437.5393,-1925.5098,304.3488,173.9683,-1,-1); // Sanchez1
AddStaticVehicle(468,-2424.2400,-1945.4500,303.3397,356.4753,-1,-1); // Sanchez2
AddStaticVehicle(468,-2428.9177,-1944.0791,303.2513,352.2600,-1,-1); // Sanchez2
AddStaticVehicle(468,-2417.9175,-1945.2158,303.3479,359.8495,-1,-1); // Sanchez2

//---------DeathMatch Pickups---------//
deagle = CreatePickup(348,23,1233.9321,2853.1243,11.0783);
shotgun = CreatePickup(349,23,1236.2939,2853.3032,11.0783);
sawnoff = CreatePickup(350,23,1237.7905,2853.3423,11.0783);
spaz = CreatePickup(351,23,1239.1871,2853.3784,11.0783);
uzi = CreatePickup(352,23,1240.5386,2853.4141,11.0783);
mp5 = CreatePickup(353,23,1241.7808,2853.4778,11.0783);
ak = CreatePickup(355,23,1267.0879,2737.4995,10.1228);
m4 = CreatePickup(356,23,1266.0609,2732.8618,10.8203);
tec9 = CreatePickup(372,23,1262.1416,2731.9580,10.8203);
knife = CreatePickup(335,23,1257.7263,2733.2354,10.7284); // knife
pistol = CreatePickup(346,23,1257.8317,2739.6201,10.9355);
sniper1 = CreatePickup(358,19,1369.3722,2855.2625,26.9741);
sniper2 = CreatePickup(358,19,1169.0966,2771.9470,27.5051);
rocketlaunch = CreatePickup(359,19,1149.6584,2798.1980,41.9397);
armor = CreatePickup(373,2,1145.1918,2799.5039,41.9321);
CreatePickup(1240,2,1410.9412,2745.6846,10.8203);// health
CreatePickup(1240,2,1125.4552,2762.5769,10.1958);// health
DMexitICON = CreatePickup(1254,23,1422.3750,2773.7910,10.8203);
CCm4 = CreatePickup(356,2,-682.8098,942.6342,16.8281);
CCak47 = CreatePickup(355,2,-693.6034,942.9219,16.8281);
CCsniper = CreatePickup(358,2,-688.0168,931.2958,23.5059);
//---------MISC Pickups---------//
bombicon = CreatePickup(1210,23,2505.5649,-1693.8972,13.5582); // bomb icon

//---------* MISC *---------//
SetTimer("NuclearBombs",1800000,1);
CC = GangZoneCreate(-724.0283, 887.5186, -630.6053, 992.6194);
//---------Player Skins---------//
	for(new i = 0; i <= sizeof(Peds); i++)
	{
		AddPlayerClass(Peds[i][0],-2261.0283,2278.6033,4.9886,0.0,0,0,0,0,0,0);
	}
//=-GameModeInit~END-=//
return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
		    SetPlayerInterior(playerid,10);
			SetPlayerPos(playerid,375.6171,-65.8491,1001.5078);
			SetPlayerFacingAngle(playerid,180);
 		   SetPlayerCameraPos(playerid, 377.4231,-68.8445,1001.7078);
 		   SetPlayerCameraLookAt(playerid,376.5215,-67.4382,1001.5078);
 		   PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);
		    return 1;
}

public OnPlayerRequestSpawn(playerid)
{
    SetPlayerInterior(playerid,17);
	return 1;
}

public OnPlayerConnect(playerid)
{
    CCIsLogged[playerid] = 0;
    SetPlayerColor(playerid,PLAYER_VIEW);
    PlayerInfo[playerid][pWarns] = 0;
    new plname[MAX_PLAYER_NAME];
    new string[256];
	SetPlayerMapIcon(playerid,1,-2068.5393,-150.7940,35.3203,55,0xF5F5F5F5); // CARGAL
	SetPlayerMapIcon(playerid,2,1260.7228,2737.6238,10.6730,18,0xF5F5F5F5); // DM ZONE WEP1
	SetPlayerMapIcon(playerid,3,1235.7006,2851.3086,10.8203,18,0xF5F5F5F5); // DM ZONE WEP2
    SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
    GameTextForPlayer(playerid,"~r~Stunt~w~'n'~y~Drift~w~'n'~b~Race~w~'n'~p~Pwn",5000,6);
    CountDelay[playerid] = 0;
    Drift1Race[playerid] = 0;
	Drift2Race[playerid] = 0;
	Drift3Race[playerid] = 0;
	Race1Arena[playerid] = 0;
	Race2Arena[playerid] = 0;
    DMArena[playerid] = 0;
    //=-DM Stats TextDraw-=//
    dms = TextDrawCreate(252.000000,390.000000,"Stats");
	TextDrawUseBox(dms,1);
	TextDrawBoxColor(dms,0xffffff33);
	TextDrawTextSize(dms,355.000000,78.000000);
	TextDrawAlignment(dms,0);
	TextDrawBackgroundColor(dms,0x0000ff99);
	TextDrawFont(dms,3);
	TextDrawLetterSize(dms,1.000000,2.000000);
	TextDrawColor(dms,0x00ffffcc);
	TextDrawSetOutline(dms,1);
	TextDrawSetProportional(dms,1);
	TextDrawSetShadow(dms,1);

	dmk = TextDrawCreate(196.000000,411.000000,"Kills:");
	TextDrawTextSize(dmk,408.000000,78.000000);
	TextDrawAlignment(dmk,0);
	TextDrawBackgroundColor(dmk,0x00000099);
	TextDrawFont(dmk,1);
	TextDrawLetterSize(dmk,1.000000,2.000000);
	TextDrawColor(dmk,0xff0000cc);
	TextDrawSetOutline(dmk,1);
	TextDrawSetProportional(dmk,1);
	TextDrawSetShadow(dmk,1);

	dmh = TextDrawCreate(196.000000,426.000000,"Death:");
	TextDrawBoxColor(dmh,0x00ffff00);
	TextDrawTextSize(dmh,310.000000,2.000000);
	TextDrawAlignment(dmh,0);
	TextDrawBackgroundColor(dmh,0x000000ff);
	TextDrawFont(dmh,1);
	TextDrawLetterSize(dmh,1.000000,2.000000);
	TextDrawColor(dmh,0xff00ff99);
	TextDrawSetOutline(dmh,1);
	TextDrawSetProportional(dmh,1);
	TextDrawSetShadow(dmh,1);

 	dmr = TextDrawCreate(331.000000,411.000000,"0");
    dmrh = TextDrawCreate(331.000000,426.000000,"0");
	TextDrawBackgroundColor(dmr,0xffff00ff);
	TextDrawFont(dmr,2);
	TextDrawLetterSize(dmr,1.000000,2.000000);
	TextDrawColor(dmr,0x00ff0099);
	TextDrawSetOutline(dmr,1);
	TextDrawSetProportional(dmr,1);
	TextDrawSetShadow(dmr,1);
	TextDrawBackgroundColor(dmrh,0xffff00ff);
	TextDrawFont(dmrh,2);
	TextDrawLetterSize(dmrh,1.000000,2.000000);
	TextDrawColor(dmrh,0x00ff0099);
	TextDrawSetOutline(dmrh,1);
	TextDrawSetProportional(dmrh,1);
	TextDrawSetShadow(dmrh,1);

	Stats[playerid] = 0;
	Ramp[playerid] = 0;
	Mute[playerid] = 0;
	IsLogged[playerid] = 0;
	PlayerInfo[playerid][pAdminLevel] = 0;
	GetPlayerName(playerid, plname, sizeof(plname));
	format(string, sizeof(string), "%s.ini", plname);
	if(fexist(string))
	{
		SendClientMessage(playerid, PURPLE, ">That account is registered.");
		SendClientMessage(playerid, PURPLE, ">You can now login( /login [password] )");
	}
	else
	{
        SendClientMessage(playerid,PURPLE,"Your account isn't registered. If you wish to register, type '/register [password]'");
	}
	BoughtVeh[playerid] = 0;
	Connected[playerid] = 1;
	Bomb = SetTimerEx("BombPickup",500,1,"d",playerid);
	SuperPunch[playerid] = 0;
	ViewCmds[playerid] = 0;
	Stats[playerid] = 0;
	DMArena[playerid] = 0;
	KillScore[playerid] = 0;
	DeathScore[playerid] = 0;
	VehSuperPunch[playerid] = 0;
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
    DMArena[playerid] = 0;
	Ramp[playerid] = 0;
	Drift1Race[playerid] = 0;
	Drift2Race[playerid] = 0;
	Drift3Race[playerid] = 0;
	Race1Arena[playerid] = 0;
	Race2Arena[playerid] = 0;
  	Mute[playerid] = 0;
  	OnPlayerUpdate(playerid);
	return 1;
}

public OnPlayerSpawn(playerid)
{
	PlayerPlaySound(playerid, 1185+1, 0.0, 0.0, 0.0);
	SetPlayerColor(playerid,PLAYER_COLOR);
	GangZoneShowForPlayer(playerid, CC, 0x00FF005F);
	ShowNameTags(1);
	ShowPlayerMarkers(1);
	if (CCIsLogged[playerid] == 1)
	{
	    SetPlayerPos(playerid,-688.0696,942.0925,16.8293);
        SetPlayerInterior(playerid,0);
        SetCameraBehindPlayer(playerid);
        SetPlayerFacingAngle(playerid,178);
        SetPlayerColor(playerid,LIGHTGREEN);
	}
	else if (Connected[playerid] == 1)
	{
	    Connected[playerid] = 0;
	    SetPlayerInterior(playerid,0);
	    SendClientMessage(playerid,GREEN,"Welcome to 'Stunts'n'Drifts'n'Racez'n'Pwn' server!");
	    SendClientMessage(playerid,GREEN,"If you are a Crucio member, type '/cclogin [password]'. Else, just /register if you're not.");
	    SendClientMessage(playerid,GREEN,"Would be much appreciated if you read the rules ( /rules ) and view all our commands for you ( /commands )!");
	    SendClientMessage(playerid,GREEN,"If you need any help, ask an admin. Report a cheater/rule breaker if due to an admin. And have fun!");
	    GameTextForPlayer(playerid,"~r~~h~/commands~n~~g~/rules",5000,6);
	}
	else
	{
		SetPlayerInterior(playerid,0);
	}
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    new string[256];
    new killer[MAX_PLAYER_NAME];
	GetPlayerName(killerid, killer, sizeof(killer));
	GetPlayerName(playerid, player, sizeof(player));
    SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies Off
    DMArena[playerid] = 0;
	KillTimer(DMs);
	TextDrawHideForPlayer(playerid,dms);
	TextDrawHideForPlayer(playerid,dmh);
	TextDrawHideForPlayer(playerid,dmk);
	TextDrawHideForPlayer(playerid,dmr);
	TextDrawHideForPlayer(playerid,dmrh);
	Stats[playerid] = 0;
    if (DMArena[killerid] == 1)
    {
		if (GetPlayerWeapon(killerid) == 0){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Fist )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 1){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Brass Knucles )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 2){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Gold Club )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 3){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Night Stick )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 4){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Knife )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 5){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Baseball Bat )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 6){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Shovel )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 7){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Pool Clue )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 8){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Katana )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 9){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Chainsaw )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 10){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Purple Dildo )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 11){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( White Vibrator )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 12){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Medium White Vibrator )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 13){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Small White Vibrator )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 14){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Flowers )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 15){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Cane )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 16){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Grenade )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 17){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Teargas )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 18){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Motolov )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 19){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Unknown )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 20){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Unknown )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 21){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Unknown )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 22){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Colt 45 )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 23){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Silenced 9mm )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 24){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Desert Eagle )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 25){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Shotgun )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 26){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Sawnoff Shotgun )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 27){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Combat Shotgun )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 28){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Macro Uzi )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 29){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( MP5 )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 30){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( AK47 )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 31){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( M4 )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 32){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Tec9 )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 33){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Country Rifle )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 34){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Sniper Rifle )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 35){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Rocket Launcher )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 36){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Heat-Seaking Rocket Launcher )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 37){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Flamethrower )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 38){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Volcano Minigun )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 39){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Satchel Charge )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 40){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Detonator )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 41){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Spray Can )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 42){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Fire Extinguisher )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 43){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Digital Camera )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 44){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Night Vision Goggles )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 45){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Infrared Vision Goggles )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 46){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Parachute )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		if (GetPlayerWeapon(killerid) == 47){format(WeapKillString, sizeof(WeapKillString), "[DM NEWS]: %s killed %s ! ( Fake Pistol )", killer,player);SendClientMessageToAll(YELLOW,WeapKillString);}
		SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
		GivePlayerMoney(killerid,2000);
		KillScore[killerid] +=1;
		DeathScore[playerid] +=1;
	}
	else if (DMArena[playerid] == 1)
	{format(string, sizeof(string), "[DM NEWS]: %s died.", player);SendClientMessageToAll(YELLOW,string);}
	else if (Drift1Race[playerid] == 1 || Drift2Race[playerid] || Drift3Race[playerid] || Race1Arena[playerid] == 1 || Race2Arena[playerid] == 1)
	{
	format(string, sizeof(string), "[RACE NEWS]: %s died during a race!", player);
    SendClientMessageToAll(YELLOW,string);
	}
	else if (DMArena[playerid] != 1)
	{
	    format(string, sizeof(string), "[DEATH]: %s died.", player);
	    SendClientMessageToAll(YELLOW,string);
	}
	new sstring[128];
	format(string, sizeof(string), "%d",KillScore[killerid]);
	TextDrawSetString(dmr, string);
	format(sstring, sizeof(sstring), "%d",DeathScore[playerid]);
	TextDrawSetString(dmrh, sstring);
	DisablePlayerCheckpoint(playerid);
	Drift1Race[playerid] = 0;
	Drift2Race[playerid] = 0;
	Drift3Race[playerid] = 0;
	Race1Arena[playerid] = 0;
	Race2Arena[playerid] = 0;
/*	cpc = 0;
    cpc2 = 0;
    cpc3 = 0;
    cpcr1 = 0;
    cpcr2 = 0;*/
	return 1;
}

public OnVehicleSpawn(vehicleid)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
	{
		SetVehicleParamsForPlayer(vehicleid, i, 0, 0);
	}
	return 1;
}

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

public OnPlayerText(playerid, text[])
{
	if (Mute[playerid] == 1)
	{
	    SendClientMessage(playerid, RED, "You are muted! You cannot talk.");
	}
	else
	{
		new string[256];
		GetPlayerName(playerid, playername, sizeof(playername));
		format(string, sizeof(string), "[%i] %s: %s", playerid, playername, text);
		SendClientMessageToAll(GetPlayerColor(playerid),string);
	}
	return 0;
}

public OnPlayerPrivmsg(playerid, recieverid, text[])
{
	new receiver[MAX_PLAYER_NAME];
	new string[256];
	GetPlayerName(playerid, player, sizeof(player));
	GetPlayerName(recieverid, receiver, sizeof(receiver));
	format(string, sizeof(string), "PM from [%i]%s to [%i]%s: %s",playerid,player,recieverid,receiver,text);
	SendClientMessageToAdmins(LIGHTBLUE,string,1);
	PlayerPlaySound(playerid, 1083, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, GREEN, "Private Message Sent!");
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
new giveplayerid, idx;
new sendername[MAX_PLAYER_NAME];
new tmp[256];
new cmd[256];
cmd = strtok(cmdtext, idx);

if (strcmp("/commands", cmdtext, true, 10) == 0)
{
    SendClientMessage(playerid, PURPLE, "         |-Stunts'n'Drifts'n'Racez'n'Pwn Server Commands -|");
    SendClientMessage(playerid, RED, "IMPORTANT: /rules /help /credits /ah (admins only) /admins");
    SendClientMessage(playerid, ORANGE, "TELEPORTS: /tele");
    SendClientMessage(playerid, ORANGE, "RACES: /count");
    SendClientMessage(playerid, ORANGE, "DM: /dm /exitdm /dmstats /dmstatsoff /bomb");
    SendClientMessage(playerid, ORANGE, "VEHICLE: /fullrepair /repair /flip");
    SendClientMessage(playerid, ORANGE, "STUNTS: /ramp /rampoff /ramp2 /ramp2off");
    SendClientMessage(playerid, ORANGE, "MISC: /heal /int /view /viewoff /cash /lock /unlock /kill /report /me /unattach");
    SendClientMessage(playerid, ORANGE, "ACCOUNT: /register /login /stats /id /afk /back");
    SendClientMessage(playerid, ORANGE, "CRUCIOS: /attach /cclogin /cclogout /cc /// <text>");
    return 1;
}
if (strcmp("/tele", cmdtext, true, 10) == 0)
{
    SendClientMessage(playerid, PURPLE, "         |-Stunts'n'Drifts'n'Racez'n'Pwn Server Teleportation Commands -|");
    SendClientMessage(playerid, ORANGE, "RACE: /drift1 /drift2 /drift3 /goldbridge /bigjump /drag /mountrace");
    SendClientMessage(playerid, ORANGE, "GARAGE: /trans /arch /loco /garage");
    SendClientMessage(playerid, ORANGE, "AIRPORTS: /ap1 /ap2 /ap3 /verdant");
    SendClientMessage(playerid, ORANGE, "STUNTS: /stunt1-11  >Example: /stunt5");
    SendClientMessage(playerid, ORANGE, "OTHERS: /chilliad /cargal /room /underwater /bowl /derby /pk /skatepark");
    SendClientMessage(playerid, ORANGE, "OTHERS: /army /area69 /grove /dive /dam /monster /spawn");
    SendClientMessage(playerid, ORANGE, "DEBUG: /carint /camback");
    SendClientMessage(playerid, ORANGE, "More teleports are to be added!");
    return 1;
}
if (strcmp("/rules", cmdtext, true, 10) == 0)
{
    SendClientMessage(playerid, PURPLE, "         |- Stunts'n'Drifts'n'Racez'n'Pwn Server Rules -|");
	SendClientMessage(playerid, YELLOW, "Warn-able: -Player/Admin disrespect -DeathMatching outside /dm -Several Carjacking(Do NOT carjack except in /dm!)");
	SendClientMessage(playerid, YELLOW, "Warn-able: -BEGGING to be an admin(Do NOT beg to be an admin!) -Using Map Mods(DON'T!) -Spawnkilling(anyhow)");
	SendClientMessage(playerid, ORANGE, "Mute-able: -Excessive swearing -Talking in another language than english(DON'T).");
	SendClientMessage(playerid, LIGHTRED, "Kick-able: -Ignoring the rules -Admin Disrespect -Begging to be an admin -Ignoring an admin's order -Being a complete retard");
	SendClientMessage(playerid, RED, "BAN-ABLE: -Any sort of cheats/hackers -Kicked 3 times for almost the same reason -Trying to access/crack RCON");
	SendClientMessage(playerid, RED, "BAN-ABLE: -Advertising another server -Bug Exploiting(Several times) -Racism(Race/Religion)");
	SendClientMessage(playerid, GREEN, "Follow these rules and you shall be safe.");
    return 1;
}
if (strcmp("/help", cmdtext, true, 10) == 0)
{
    SendClientMessage(playerid, PURPLE, "         |- Stunts'n'Drifts'n'Racez'n'Pwn Server Help Guide -|");
	SendClientMessage(playerid, ORANGE, "This server is about Stunts, drifts, races and DeathMatching but only in its arena( /dm ).");
	SendClientMessage(playerid, ORANGE, "If you need to earn money, type /cash to receive $10 000.");
	SendClientMessage(playerid, ORANGE, "If you need any help with the commands, type /commands for a full available list of commands.");
	SendClientMessage(playerid, ORANGE, "If you trespass the Crucio Clan turf(house), they will have the right to kill you.");
	SendClientMessage(playerid, ORANGE, "They're disallowing you from entering their house unless you're a VIP, titled by a high member of CC.");
	SendClientMessage(playerid, ORANGE, "Make sure to read the /rules and have fun !");
    return 1;
}
if (strcmp("/credits", cmdtext, true, 10) == 0)
{
    SendClientMessage(playerid, ORANGE, "         |- Stunts'n'Drifts'n'Racez'n'Pwn Server Credits -|");
	SendClientMessage(playerid, ORANGE, "Server Scripter: Seif[CC]");
	SendClientMessage(playerid, ORANGE, "Special Thanks to: [SAP]Francis(Website+few help)");
	SendClientMessage(playerid, ORANGE, "Helper(s): Mike_Jones(Most teleports)");
	SendClientMessage(playerid, ORANGE, "Thanks to: -Fear/Astro (the big skin selection & Registration system)  -kyeman (the /view /viewoff commands)");
    return 1;
}

/*------------------------------------------------/Teleports\------------------------------------------------*/
new string[256];
GetPlayerName(playerid, player, sizeof(player));
			// Cash
	if (strcmp("/cash", cmdtext, true, 10) == 0)
	{
	    GivePlayerMoney(playerid, 10000);
	    for(new a = 0; a < MAX_PLAYERS; a++)
		{
			if(IsPlayerConnected(a))
			{
				if (PlayerInfo[a][pAdminLevel] >= 1)
				{
					if (ViewCmds[a] == 1)
					{
						GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
						format(string, sizeof(string), "[%i]%s: /cash",playerid,player);
						SendClientMessageToAdmins(LIGHTBLUE,string,1);
					}
				}
			}
		}
		return 1;
	}
			//Big ear drifting zone
	if (strcmp("/drift1", cmdtext, true, 10) == 0)
	{
	    if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
    	new car = GetPlayerVehicleID(playerid);
        new State = GetPlayerState(playerid);
        SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to Big Ear's Drifting Zone ! ( /drift1 )", player);
		SendClientMessageToAll(YELLOW, string);
        GameTextForPlayer(playerid, "~y~Welcome to Big Ear !", 3000,6);
        //SendClientMessage(playerid, GREEN, "[RACE]: You can now type '/drift1race [playerid]' to race a player!");
        if(State!=PLAYER_STATE_DRIVER)
        {
        SetPlayerPos(playerid,-308.1003,1538.7532,75.5625);
        SetPlayerInterior(playerid,0);
        SetCameraBehindPlayer(playerid);
        SetPlayerFacingAngle(playerid,127);
        }
        else if(State==PLAYER_STATE_DRIVER)
        {
        LinkVehicleToInterior(car,0);
        SetVehiclePos(car,-369.9355,1578.9448,75.7916);
        SetVehicleZAngle(car,138);
        }
        else
        {
        SetPlayerPos(playerid,-308.1003,1538.7532,75.5625);
        SetPlayerInterior(playerid,0);
        SetCameraBehindPlayer(playerid);
        SetPlayerFacingAngle(playerid,127);
        }
        return 1;
	}

		//Teleport Spawn point
		if (strcmp(cmdtext, "/spawn", true)==0)
    	{
    	if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to the spawn point ! ( /spawn )", player);
		SendClientMessageToAll(YELLOW, string);
		if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,-2261.0283,2278.6033,4.9886);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{
		SetVehiclePos(cartype,-2261.0283,2278.6033,4.9886);
		}
		else
		{SetPlayerPos(playerid,-2261.0283,2278.6033,4.9886);}
		return 1;}

		//Teleport Transfender
		if (strcmp(cmdtext, "/trans", true)==0)
    	{
        if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		if(State!=PLAYER_STATE_DRIVER)
 		{SendClientMessage(playerid, RED, "You are not in a vehicle");}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,1041.6660,-1021.4000,32.1075);
		SetVehicleZAngle(cartype,186);}
		else
		{SendClientMessage(playerid, RED, "You are not in a vehicle");}
		return 1;}

		//Teleport ArchAngels
		if (strcmp(cmdtext, "/arch", true)==0)
    	{
        if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		if(State!=PLAYER_STATE_DRIVER)
 		{SendClientMessage(playerid, RED, "You are not in a vehicle");}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-2721.6619,217.9559,4.2147);
		SetVehicleZAngle(cartype,90);}
		else
		{SendClientMessage(playerid, RED, "You are not in a vehicle");}
		return 1;}

		//Teleport LocoLow
		if (strcmp(cmdtext, "/loco", true)==0)
    	{
        if(DMArena[playerid] == 1) return SendClientMessage(playerid, 0xE60000FF, "You are not allowed to teleport while DeathMatching!");
		new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		if(State!=PLAYER_STATE_DRIVER)
 		{SendClientMessage(playerid, 0xE60000FF, "You are not in a vehicle");}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,2644.9258,-2042.1495,13.6004);
		SetVehicleZAngle(cartype,180);}
		else
		{SendClientMessage(playerid, 0xE60000FF, "You are not in a vehicle");}
		return 1;}

        //Teleport Chilliad
		if (strcmp(cmdtext, "/chilliad", true)==0)
    	{
        if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to San Andreas' biggest mountain; Chilliad ! ( /chilliad )", player);
		SendClientMessageToAll(YELLOW, string);
        GameTextForPlayer(playerid, "~y~Welcome to Chilliad !", 3000,6);
		if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,-2319.6096,-1644.9589,483.3630);SetPlayerFacingAngle(playerid,221);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-2319.6096,-1644.9589,483.3630);
		SetVehicleZAngle(cartype,78.1831);}
		else
		{SetPlayerPos(playerid,-2319.6096,-1644.9589,483.3630);SetPlayerFacingAngle(playerid,221);}
		return 1;}

		//Teleport AirPort3
		if (strcmp(cmdtext, "/ap3", true)==0)
    	{
        if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to San Fierro's Airport ! ( /ap3 )", player);
		SendClientMessageToAll(YELLOW, string);
        GameTextForPlayer(playerid, "~y~Welcome to the 3rd Airport !", 3000,6);
		if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,-1526.2240,-226.3657,13.3631);SetPlayerFacingAngle(playerid,69);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-1526.2240,-226.3657,13.3631);
		SetVehicleZAngle(cartype,78.1831);}
		else
		{SetPlayerPos(playerid,-1526.2240,-226.3657,13.3631);SetPlayerFacingAngle(playerid,69);}
		return 1;}

		//Teleport AirPort2
		if (strcmp(cmdtext, "/ap2", true)==0)
    	{
        if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to Los Santos' Airport ! ( /ap2 )", player);
		SendClientMessageToAll(YELLOW, string);
        GameTextForPlayer(playerid, "~y~Welcome to the 2nd Airport !", 3000,6);
		if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,1398.4218,-2420.0742,13.2148);SetPlayerFacingAngle(playerid,263);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,1398.4218,-2420.0742,13.2148);
		SetVehicleZAngle(cartype,78.1831);}
		else
		{SetPlayerPos(playerid,1398.4218,-2420.0742,13.2148);SetPlayerFacingAngle(playerid,263);}
		return 1;}

		//Teleport AirPort1
		if (strcmp(cmdtext, "/ap1", true)==0)
    	{
        if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to Las Venturas' Airport ! ( /ap1 )", player);
		SendClientMessageToAll(YELLOW, string);
        GameTextForPlayer(playerid, "~y~Welcome to 1st Airport !", 3000,6);
		if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,1326.3910,1300.7324,10.4790);SetPlayerFacingAngle(playerid,355);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,1326.3910,1300.7324,10.4790);
		SetVehicleZAngle(cartype,78.1831);}
		else
		{SetPlayerPos(playerid,1326.3910,1300.7324,10.4790);SetPlayerFacingAngle(playerid,355);}
		return 1;}
		
		//Teleport Abandoned AirPort
		if (strcmp(cmdtext, "/verdant", true)==0)
    	{
        if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to Verdant Meadows, the abandoned airport ! ( /verdant )", player);
		SendClientMessageToAll(YELLOW, string);
        GameTextForPlayer(playerid, "~y~Welcome to verdant meadows !", 3000,6);
		if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,411.2608,2533.2820,19.1484);SetPlayerFacingAngle(playerid,358);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,390.4062,2536.6438,16.2679);
		SetVehicleZAngle(cartype,180);}
		else
		{SetPlayerPos(playerid,411.2608,2533.2820,19.1484);SetPlayerFacingAngle(playerid,358);}
		return 1;}

				//Teleport Drift2
		if (strcmp(cmdtext, "/drift2", true)==0)
    	{
        if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to Las Venturas' Drifting Lot ! ( /drift2 )", player);
		SendClientMessageToAll(YELLOW, string);
        GameTextForPlayer(playerid, "~y~Welcome to the Drifting Lot!", 3000,6);
        //SendClientMessage(playerid, GREEN, "[RACE]: You can now type '/drift2race [playerid]' to race a player!");
		if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,2269.0488,1398.2474,42.4808);SetPlayerFacingAngle(playerid,268);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,2269.0488,1398.2474,42.8203);
		SetVehicleZAngle(cartype,269);}
		else
		{SetPlayerPos(playerid,2269.0488,1398.2474,42.4808);SetPlayerFacingAngle(playerid,268);}
		return 1;}

				//Teleport Drift3
		if (strcmp(cmdtext, "/drift3", true)==0)
    	{
        if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to the Missionary Hill ! ( /drift3 )", player);
		SendClientMessageToAll(YELLOW, string);
        GameTextForPlayer(playerid, "~y~Welcome to Missionary Hill !", 3000,6);
        //SendClientMessage(playerid, GREEN, "[RACE]: You can now type '/drift3race [playerid]' to race a player!");
		if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,-2521.2998,-624.5188,132.7820);SetPlayerFacingAngle(playerid,0);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-2491.6145,-617.9402,132.5648);
		SetVehicleZAngle(cartype,269);}
		else
		{SetPlayerPos(playerid,-2521.2998,-624.5188,132.7820);SetPlayerFacingAngle(playerid,0);}
		return 1;}
		
						//Teleport Sanchez track
		if (strcmp(cmdtext, "/mountrace", true)==0)
    	{
        if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to the chilliad's Bike Racing track ! ( /mountrace )", player);
		SendClientMessageToAll(YELLOW, string);
        GameTextForPlayer(playerid, "~y~Welcome to the bike track !", 3000,6);
		if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,-2432.6587,-1938.1885,302.6290);SetPlayerFacingAngle(playerid,271);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-2432.6587,-1938.1885,302.6290);
		SetVehicleZAngle(cartype,271);}
		else
		{SetPlayerPos(playerid,-2432.6587,-1938.1885,302.6290);SetPlayerFacingAngle(playerid,271);}
		return 1;}

				//Teleport CarGallery
		if (strcmp(cmdtext, "/cargal", true)==0)
    	{
        if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to the Car Gallery arena ! ( /cargal )", player);
		SendClientMessageToAll(YELLOW, string);
        GameTextForPlayer(playerid, "~y~Welcome to the Car Gallery !", 3000,6);
		if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,-2057.0549,-183.4372,35.3203);SetPlayerFacingAngle(playerid,0);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-2057.0549,-183.4372,35.3203);
		SetVehicleZAngle(cartype,45);}
		else
		{SetPlayerPos(playerid,-2057.0549,-183.4372,35.3203);SetPlayerFacingAngle(playerid,0);}
		return 1;}

			// Race1 Arena //
		if (strcmp(cmdtext, "/goldbridge", true)==0)
    	{
        if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to San Fierro's Golden Bridge ! ( /goldbridge )", player);
		SendClientMessageToAll(YELLOW, string);
        GameTextForPlayer(playerid, "~y~Welcome to the Golden Bridge !", 3000,6);
        //SendClientMessage(playerid, GREEN, "[RACE]: You can now type '/race1 [playerid]' to race a player!");
		if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,-2676.7385,1271.4111,55.4297);SetPlayerFacingAngle(playerid,357);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-2676.7385,1271.4111,55.4297);
		SetVehicleZAngle(cartype,357);}
		else
		{SetPlayerPos(playerid,-2676.7385,1271.4111,55.4297);SetPlayerFacingAngle(playerid,357);}
		return 1;}
		
		    // Race2 Arena //
		if (strcmp(cmdtext, "/bigjump", true)==0)
    	{
        if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to the huge jumpy hill ! ( /bigjump )", player);
		SendClientMessageToAll(YELLOW, string);
        GameTextForPlayer(playerid, "~y~Welcome to the huge jump hill", 3000,6);
        //SendClientMessage(playerid, GREEN, "[RACE]: You can now type '/race2 [playerid]' to race a player!");
		if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,-658.9869,2325.0029,138.6067);SetPlayerFacingAngle(playerid,78);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-658.9869,2325.0029,138.6067);
		SetVehicleZAngle(cartype,78);}
		else
		{SetPlayerPos(playerid,-658.9869,2325.0029,138.6067);SetPlayerFacingAngle(playerid,78);}
		return 1;}
		
		if(strcmp(cmdtext, "/underwater", true) == 0)
     	{if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		 new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped underwater! ! ( /underwater )", player);
		SendClientMessageToAll(YELLOW, string);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,-653.8839,2192.7200,-33.6347);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-653.8839,2192.7200,-33.6347);
		SetVehicleZAngle(cartype,261.9530);}
		else
		{SetPlayerPos(playerid,-653.8839,2192.7200,-33.6347);}
 		GameTextForPlayer(playerid,"WELCOME UNDERWATER",2500,3);}
        return 1;}
        
        if(strcmp(cmdtext, "/room", true) == 0)
    	{if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,6);
		format(string, sizeof(string), "%s warped inside a mysterious house... ( /room )", player);
		SendClientMessageToAll(YELLOW, string);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,349.899993,303.361275,1000.130493);}
		else if(GetPlayerState(playerid) == 2)
		{SendClientMessage(playerid, RED, "Nuh uh, no cars allowed inside that house, buddy.");}
		else
		{SetPlayerPos(playerid,349.899993,303.361275,1000.130493);}
 		GameTextForPlayer(playerid,"Welcome home...",2500,3);}
    	return 1;}
    	
    	if(strcmp(cmdtext, "/pk", true) == 0)
		{if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to a parkour area ! ( /pk )", player);
		SendClientMessageToAll(YELLOW, string);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,1920.4679,-1558.4470,28.2217);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,1920.4679,-1558.4470,28.2217);
		SetVehicleZAngle(cartype,287.015);}
		else
		{SetPlayerPos(playerid,1920.4679,-1558.4470,28.2217);}
 		GameTextForPlayer(playerid,"~g~Welcome To Pakour Place",2500,3);}
		return 1;}
		
		if(strcmp(cmdtext, "/bowl", true) == 0)
     	{if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		 new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to the bowl-iest bowl... ( /bowl )", player);
		SendClientMessageToAll(YELLOW, string);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,-1697.5399,21.7378,3.5547);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-1611.2828,164.6952,3.5547);
		SetVehicleZAngle(cartype,152.0583);}
		else
		{SetPlayerPos(playerid,-1697.5399,21.7378,3.5547);}
 		GameTextForPlayer(playerid,"big bowl!!",2500,3);}
        return 1;}
        
         		// SKATE PARK
    	if(strcmp(cmdtext, "/skatepark", true) == 0)
     	{if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		 new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to the skatepark! ( /skatepark )", player);
		SendClientMessageToAll(YELLOW, string);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,1880.9452,-1394.7611,13.1246);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,1880.9452,-1394.7611,13.1246);
		SetVehicleZAngle(cartype,304.2583);}
		else

		{SetPlayerPos(playerid,1880.9452,-1394.7611,13.1246);}
 		GameTextForPlayer(playerid,"Skatepark!",2500,3);}
        return 1;}
        
        // DERBY
    	if(strcmp(cmdtext, "/derby", true) == 0)
     	{if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		 new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to the car smashing derby! ! ( /derby )", player);
		SendClientMessageToAll(YELLOW, string);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,1383.4088,2184.9304,11.0234);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,1383.4088,2184.9304,11.0234);
		SetVehicleZAngle(cartype,132.3792);}
		else
		{SetPlayerPos(playerid,1383.4088,2184.9304,11.0234);}
 		GameTextForPlayer(playerid,"demolition derby!",2500,3);}
        return 1;}
        
         		//-----------------military
    	if(strcmp(cmdtext, "/army", true) == 0)
     	{if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		 new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to the military base ! ( /army )", player);
		SendClientMessageToAll(YELLOW, string);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,2743.7339,-2405.9058,13.4507);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,2743.7339,-2405.9058,13.4507);
		SetVehicleZAngle(cartype,87.4943);}
		else
		{SetPlayerPos(playerid,2743.7339,-2405.9058,13.4507);}
 		GameTextForPlayer(playerid,"welcome home soldier",2500,3);}
        return 1;}
        
       	if(strcmp(cmdtext, "/area69", true) == 0)
     	{if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		 new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to the most dangerous area in the desert... ( /area69 )", player);
		SendClientMessageToAll(YELLOW, string);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,216.0368,1911.4246,17.6406);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,216.0368,1911.4246,17.6406);
		SetVehicleZAngle(cartype,90);}
		else
		{SetPlayerPos(playerid,216.0368,1911.4246,17.6406);}
 		GameTextForPlayer(playerid,"Welcome to Area69",2500,3);}
        return 1;}
        
        if (strcmp(cmdtext, "/grove", true)==0)
    	{if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to CJ's hood ! ( /grove )", player);
		SendClientMessageToAll(YELLOW, string);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,2500.9519,-1668.9618,13.3554);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,2500.9519,-1668.9618,13.3554);
		SetVehicleZAngle(cartype,78.1831);}
		else
		{SetPlayerPos(playerid,2500.9519,-1668.9618,13.3554);}
 		GameTextForPlayer(playerid,"Welcome Grove St",2500,4);}
		return 1;}
    	
		if(strcmp(cmdtext, "/dive", true) == 0){
		if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to Sky Dive while DeathMatching!");
		new Float:x;
		new Float:y;
		new Float:z;
		GivePlayerWeapon(playerid,46,1);
		GetPlayerPos(playerid,x,y,z);
		SetPlayerPos(playerid,x,y,z+1000);
		GameTextForPlayer(playerid,"~n~~g~YEAH BABY!! SKY DIVE!!",5000,5);
		return 1;}
		
					// Dam
		if(strcmp(cmdtext, "/dam", true) == 0)
     	{if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		 new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped San Andreas' Dam ! ( /dam )", player);
		SendClientMessageToAll(YELLOW, string);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,-585.8121,2029.9879,60.3828);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-585.8121,2029.9879,60.3828);
		SetVehicleZAngle(cartype,59);}
		else
		{SetPlayerPos(playerid,-585.8121,2029.9879,60.3828);}
 		GameTextForPlayer(playerid,"welcome to dam",5000,3);}
        return 1;}
        
                // Monster mash
        if(strcmp(cmdtext, "/monster", true) == 0)
     	{if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to the Monster Smashing arena ! ( /monster )", player);
		SendClientMessageToAll(YELLOW, string);
		SetPlayerPos(playerid,-284.2166,2164.1335,112.8475);
 		GameTextForPlayer(playerid,"welcome to monster mash",5000,3);
        return 1;}
        
        //////// Stuntz /////////
         if(strcmp(cmdtext, "/stunt1", true) == 0)
         {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		 new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,2038.8019,906.6232,7.7135);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,2038.8019,906.6232,7.7135);
		SetVehicleZAngle(cartype,261.9530);}
		else
		{SetPlayerPos(playerid,2038.8019,906.6232,7.7135);}
 		GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt1",5000,6);}
                        return 1;}


		if(strcmp(cmdtext, "/stunt2", true) == 0)
		{if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,1343.3560,-2554.3459,12.9459);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,1343.3560,-2554.3459,12.9459);
		SetVehicleZAngle(cartype,261.9530);}
		else
		{SetPlayerPos(playerid,1343.3560,-2554.3459,12.9459);}
 		GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt2",5000,6);}
                        return 1;}



	            if(strcmp(cmdtext, "/stunt3", true) == 0)
     	            {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
					 new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,2452.1460,1369.4950,10.2366);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,2452.1460,1369.4950,10.2366);
		SetVehicleZAngle(cartype,261.9530);}
		else
		{SetPlayerPos(playerid,2452.1460,1369.4950,10.2366);}
 		GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt3",5000,6);}
                        return 1;}


	            if(strcmp(cmdtext, "/stunt4", true) == 0)
     	            {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
					 new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,2013.7771,892.5258,10.3846);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,2013.7771,892.5258,10.3846);
		SetVehicleZAngle(cartype,261.9530);}
		else
		{SetPlayerPos(playerid,2013.7771,892.5258,10.3846);}
 		GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt4",5000,6);}
                        return 1;}


	            if(strcmp(cmdtext, "/stunt5", true) == 0)
     	            {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
					 new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,2040.8900,2449.8357,10.2425);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,2040.8900,2449.8357,10.2425);
		SetVehicleZAngle(cartype,261.9530);}
		else
		{SetPlayerPos(playerid,2040.8900,2449.8357,10.2425);}
 		GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt5",5000,6);}
                        return 1;}


	            if(strcmp(cmdtext, "/stunt6", true) == 0)
     	            {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
					 new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,2277.3958,2240.0574,10.3906);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,2277.3958,2240.0574,10.3906);
		SetVehicleZAngle(cartype,261.9530);}
		else
		{SetPlayerPos(playerid,2277.3958,2240.0574,10.3906);}
 		GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt6",5000,6);}
                        return 1;}


	            if(strcmp(cmdtext, "/stunt7", true) == 0)
     	            {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
					 new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,1722.9973,1452.0178,10.3385);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,1722.9973,1452.0178,10.3385);
		SetVehicleZAngle(cartype,261.9530);}
		else
		{SetPlayerPos(playerid,1722.9973,1452.0178,10.3385);}
 		GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt7",5000,6);}
                        return 1;}


	            if(strcmp(cmdtext, "/stunt8", true) == 0)
     	            {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
					 new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,2438.7036,840.1744,6.2989);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,2438.7036,840.1744,6.2989);
		SetVehicleZAngle(cartype,261.9530);}
		else
		{SetPlayerPos(playerid,2438.7036,840.1744,6.2989);}
 		GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt8",5000,6);}
                        return 1;}


	            if(strcmp(cmdtext, "/stunt9", true) == 0)
     	            {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
					 new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,2598.8696,1006.5419,10.3915);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,2598.8696,1006.5419,10.3915);
		SetVehicleZAngle(cartype,261.9530);}
		else
		{SetPlayerPos(playerid,2598.8696,1006.5419,10.3915);}
 		GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt9",5000,6);}
                        return 1;}


	            if(strcmp(cmdtext, "/stunt10", true) == 0)
     	            {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
					 new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,-803.7369,1808.4460,6.5739);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,-803.7369,1808.4460,6.5739);
		SetVehicleZAngle(cartype,261.9530);}
		else
		{SetPlayerPos(playerid,-803.7369,1808.4460,6.5739);}
 		GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt10",5000,6);}
                        return 1;}
                        
   		if(strcmp(cmdtext, "/stunt11", true) == 0)
   		{if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		   new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,2298.9021,1526.3867,10.3642);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,2298.9021,1526.3867,10.3642);
		SetVehicleZAngle(cartype,261.9530);}
		else
		{SetPlayerPos(playerid,2298.9021,1526.3867,10.3642);}
 		GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ stunt11",5000,6);}
                        return 1;}
                        
                        // drag
        if(strcmp(cmdtext, "/drag", true) == 0)
        {if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
		new cartype = GetPlayerVehicleID(playerid);
		new State=GetPlayerState(playerid);
		SetPlayerInterior(playerid,0);
		{if(State!=PLAYER_STATE_DRIVER)
 		{SetPlayerPos(playerid,528.4996,-138.4489,37.6058);}
		else if(IsPlayerInVehicle(playerid, cartype) == 1)
		{SetVehiclePos(cartype,528.4996,-138.4489,37.6058);
		SetVehicleZAngle(cartype,261.9530);}
		else
		{SetPlayerPos(playerid,528.4996,-138.4489,37.6058);}
 		GameTextForPlayer(playerid,"~w~ Welcome ~G~ To ~r~ Drag",5000,6);
	 	format(string, sizeof(string), "%s warped to a drag area ! ( /drag )", player);
		SendClientMessageToAll(YELLOW, string);}
                        return 1;}
		
					// CC HQ
	if (strcmp("/cc", cmdtext, true, 10) == 0)
	{
	    if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
	    if(CCIsLogged[playerid] == 0) return SendClientMessage(playerid, RED, "You are not logged in as a Crucio member! ( /cclogin )");
    	new car = GetPlayerVehicleID(playerid);
        new State = GetPlayerState(playerid);
        SetPlayerInterior(playerid,0);
		format(string, sizeof(string), "%s warped to Crucio Clan's HeadQuarter!", player);
		SendClientMessageToAll(YELLOW, string);
        GameTextForPlayer(playerid, "~g~Welcome home", 3000,6);
        if(State!=PLAYER_STATE_DRIVER)
        {
        SetPlayerPos(playerid,-688.0696,942.0925,16.8293);
        SetPlayerInterior(playerid,0);
        SetCameraBehindPlayer(playerid);
        SetPlayerFacingAngle(playerid,178);
        }
        else if(State==PLAYER_STATE_DRIVER)
        {
        LinkVehicleToInterior(car,0);
        SetVehiclePos(car,-682.4996,966.2908,12.1328);
        SetVehicleZAngle(car,91);
        }
        else
        {
        SetPlayerPos(playerid,-688.0696,942.0925,16.8293);
        SetPlayerInterior(playerid,0);
        SetCameraBehindPlayer(playerid);
        SetPlayerFacingAngle(playerid,178);
        }
        return 1;
	}

		if (strcmp(cmdtext, "/int",true)==0)
		{
			SetPlayerInterior(playerid,GetPlayerInterior(playerid));
			SendClientMessage(playerid, GREEN, "Your interior is now clear.");
			return 1;
		}
		if (strcmp("/dm", cmdtext, true, 10) == 0)
	{
 	if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to teleport while DeathMatching!");
 	if(DMArena[playerid] == 3) return SendClientMessage(playerid, RED, "The DeathMatching arena is currently closed.");
 	SetPlayerInterior(playerid,0);
	DMArena[playerid] = 1;
	SetPlayerPos(playerid,1422.3750,2773.7910,10.8203);
	SetPlayerFacingAngle(playerid,90);
	ResetPlayerWeapons(playerid);
	format(string, sizeof(string), "%s warped to the deadly DeathMatching arena ! ( /dm )", player);
	SendClientMessageToAll(YELLOW, string);
	SendClientMessage(playerid, RED, "Vehicles/Weapons Disabled.");
	SendClientMessage(playerid, GREEN, "You have teleported to the Deadly Arena!");
	SendClientMessage(playerid, GREEN, "Pick up some weapons and kill your enemies before they kill you!");
	SendClientMessage(playerid, ORANGE, "To exit the arena, go to the icon at the arena spawn and type /exitdm.");
	SendClientMessage(playerid, GREEN, "!! You can now view your DeathMatching's stats ( /dmstats ) !!");
	SetPlayerWorldBounds(playerid, 1439.348, 1091.817, 2861.89, 2711.035);
	DM = SetTimerEx("ScoreCheck",1000,1,"d",playerid);
	return 1;
	}
if (strcmp("/exitdm", cmdtext, true, 10) == 0)
{
new Float:X,Float:Y,Float:Z;

	    GetPlayerPos(playerid, X, Y, Z);
	    if (PlayerToPoint(3.0, playerid, 1422.3750,2773.7910,10.8203))
	    {
			DMArena[playerid] = 0;
			SetPlayerPos(playerid,1456.4766,2773.2573,10.8203);
			SetPlayerFacingAngle(playerid,280);
			ResetPlayerWeapons(playerid);
			SendClientMessage(playerid, GREEN, "You have left the Deadly Arena.");
			SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies Off
   			KillTimer(DMs);
			TextDrawHideForPlayer(playerid,dms);
			TextDrawHideForPlayer(playerid,dmh);
			TextDrawHideForPlayer(playerid,dmk);
			TextDrawHideForPlayer(playerid,dmr);
			TextDrawHideForPlayer(playerid,dmrh);
			Stats[playerid] = 0;
			SetPlayerArmour(playerid,0.0);
		}
		else
	    {
			SendClientMessage(playerid, RED, "You're not at the exit icon or not DeathMatching !");
		}
return 1;
}

	/*------------------------------------------------/Races\------------------------------------------------*/
if(strcmp(cmd, "/count", true) == 0)
{
    /*for(new i = 0; i < MAX_PLAYERS; i++)
	{
    	if(CountDelay[i] == 1) return SendClientMessage(playerid, RED, "Countdown is already in progress.");
	}*/
	if(CountD >= 5)
	{
		SendClientMessageToAll(LIGHTGREEN, "..::~A CountDown has started~::..");
		CountDown();
	}
	else
	{
		SendClientMessage(playerid, RED, "Countdown is already in progress.");
	}
	for(new a = 0; a < MAX_PLAYERS; a++)
	{
		if(IsPlayerConnected(a))
		{
			if (PlayerInfo[a][pAdminLevel] >= 1)
			{
				if (ViewCmds[a] == 1)
				{
					GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
					format(string, sizeof(string), "[%i]%s: /count",playerid,player);
					SendClientMessageToAdmins(LIGHTBLUE,string,1);
				}
			}
		}
	}
	return 1;
}
/*------------------------------------------------/Other Player Commands\------------------------------------------------*/
if(strcmp(cmd, "/view", true) == 0)
{
        if(DMArena[playerid] == 1) return SendClientMessage(playerid, 0xE60000FF, "You are not allowed to spectate someone in the DeathMatch arena.");
		tmp = strtok(cmdtext, idx);

		if(!strlen(tmp))
		{
		    SendClientMessage(playerid, ORANGE, "|__________________________________|");
			SendClientMessage(playerid, ORANGE, "USAGE: /view [playerid]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will spectate a player.");
			SendClientMessage(playerid, ORANGE, "HELP: /viewoff to stop spectating");
			SendClientMessage(playerid, ORANGE, "|__________________________________|");
			return 1;
		}
  		giveplayerid = ReturnUser(tmp);
  		if (giveplayerid != INVALID_PLAYER_ID)
  		{
  		    View[playerid] = 1;
	 	 	TogglePlayerSpectating(playerid, 1);
			PlayerSpectatePlayer(playerid, giveplayerid);
			SetPlayerInterior(playerid,GetPlayerInterior(giveplayerid));
			SetPlayerColor(playerid,PLAYER_VIEW);
			SendClientMessage(playerid, ORANGE, "HELP: /viewoff to stop spectating");
  		}
  		else
  		{
        format(string, sizeof(string), "%d is not an active player.", giveplayerid);
		SendClientMessage(playerid, RED, string);
		}
return 1;
}
//-----|Spec-Off|-----//
if(strcmp(cmd, "/viewoff", true) == 0)
{
TogglePlayerSpectating(playerid, 0);
SetPlayerColor(playerid,PLAYER_COLOR);
SpectateID[playerid] = INVALID_PLAYER_ID;
SpectateType[playerid] = SPEC_TYPE_NONE;
return 1;
}
if (strcmp("/heal", cmdtext, true, 10) == 0)
	{
	if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You can't heal yourself in DeathMatch! Find the health icon.");
	SetPlayerHealth(playerid,100);
	return 1;
	}
	if (strcmp("/repair", cmdtext, true, 10) == 0)
	{
	if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You can't repair your vehicle in the DeathMatching arena!");
	else if (GetPlayerState(playerid) == 2)
	{
	    TogglePlayerControllable(playerid,0);
		SetTimerEx("VehRepair",5000,0,"d",playerid);
 		GameTextForPlayer(playerid, "~g~Repairing...",5000,6);
	}
	else if (IsPlayerInArea(playerid, 1376.871, 1232.391, 2200.451, 2057.332))
 	{
		SendClientMessage(playerid, RED, "You can't repair your vehicle in the derby field!");
	}
	else return SendClientMessage(playerid, RED, "You're not driving a vehicle.");
	return 1;
	}
	if(strcmp(cmdtext, "/fullrepair", true) == 0)
	{
	    if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You can't repair your vehicle in the DeathMatching arena!");
	    if(GetPlayerState(playerid) == 2)
	    {
			new vehicleid = GetPlayerVehicleID(playerid);
			new Float:X, Float:Y, Float:Z, Float:Angle;
			GetVehiclePos(vehicleid, X, Y, Z);
			GetVehicleZAngle(vehicleid, Angle);
			SetVehiclePos(vehicleid, 2067.7327,-1831.5408,13.2523);
			SetCameraBehindPlayer(playerid);
			SetVehicleZAngle(vehicleid, 185.7243);
			GameTextForPlayer(playerid, "~g~~h~~h~Repairing...", 3500, 5);
			SetTimerEx("ReplaceVehicle", 3000, 0, "iffff", vehicleid, X, Y, Z, Angle);
		}
		else return SendClientMessage(playerid, RED, "You're not in a vehicle.");
		return 1;
	}
	if (strcmp("/flip", cmdtext, true, 10) == 0)
	{
	    if (GetPlayerState(playerid) == 2)
		{
		    SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0);
		}
		return 1;
	}
	if(strcmp(cmd, "/id", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, ORANGE, "USAGE: /id [playerid/name]");
				return 1;
			}
			giveplayerid = ReturnUser(tmp);
			if(IsPlayerConnected(giveplayerid))
			{
			    if(giveplayerid != INVALID_PLAYER_ID)
			    {
					GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
					SendClientMessage(playerid, ADMIN_RED, "______________________________________");
					format(string, sizeof(string), "Player Info: [%d]%s", giveplayerid,giveplayer);
					SendClientMessage(playerid, LIGHTGREEN, string);
					format(string, sizeof(string), "    -DeathMatching Kills: %d", KillScore[giveplayerid]);
					SendClientMessage(playerid, LIGHTGREEN, string);
					format(string, sizeof(string), "    -DeathMatching Deaths: %d", DeathScore[giveplayerid]);
					SendClientMessage(playerid, LIGHTGREEN, string);
					format(string, sizeof(string), "    -Warnings: %d", PlayerInfo[giveplayerid][pWarns]);
					SendClientMessage(playerid, LIGHTGREEN, string);
					SendClientMessage(playerid, ADMIN_RED, "______________________________________");
				}
			}
		}
		return 1;
	}
if (strcmp("/dmstats", cmdtext, true, 10) == 0)
{
	if(DMArena[playerid] == 1)
	{
		if (Stats[playerid] == 1)
		{
	 	   SendClientMessage(playerid, RED, "Your stats are already shown!");
		}
  		else
		{
		TextDrawShowForPlayer(playerid,dms);
		TextDrawShowForPlayer(playerid,dmk);
		TextDrawShowForPlayer(playerid,dmh);
		TextDrawShowForPlayer(playerid,dmr);
		TextDrawShowForPlayer(playerid,dmrh);
		//DMs = SetTimerEx("DMStatsCheck",500,1,"d",playerid);
		Stats[playerid] = 1;
		}
	}
	else
	{
		SendClientMessage(playerid, RED, "You are not DeathMatching !");
	}
return 1;
}
if (strcmp("/dmstatsoff", cmdtext, true, 10) == 0)
{
	if(DMArena[playerid] == 1 && Stats[playerid] == 1)
	{
	    KillTimer(DMs);
	    Stats[playerid] = 0;
		SendClientMessage(playerid, GREEN, "Your DM stats are now Invisible.");
		TextDrawHideForPlayer(playerid,dms);
		TextDrawHideForPlayer(playerid,dmk);
		TextDrawHideForPlayer(playerid,dmh);
		TextDrawHideForPlayer(playerid,dmr);
		TextDrawHideForPlayer(playerid,dmrh);
	}
	else if (DMArena[playerid] == 0)
	{
	SendClientMessage(playerid, RED, "You are not DeathMatching !");
	}
	else if (Stats[playerid] == 0)
	{
	SendClientMessage(playerid, RED, "Your stats aren't even shown up.");
	}
return 1;
}
if (strcmp("/stats", cmdtext, true, 10) == 0)
{
	if (IsLogged[playerid] == 1)
	{
    SendClientMessage(playerid, PURPLE, "|___________Account-Stats___________|");
    format(string, sizeof(string), "[KILLS]:    %d", KillScore[playerid]);
    SendClientMessage(playerid, LIGHTGREEN, string);
    format(string, sizeof(string), "[DEATHS]:    %d", DeathScore[playerid]);
    SendClientMessage(playerid, RED, string);
    format(string, sizeof(string), "[WARNINGS]:    %d", PlayerInfo[playerid][pWarns]);
    SendClientMessage(playerid, ADMIN_RED, string);
    if (CCIsLogged[playerid] == 1) { format(string, sizeof(string), "[CC]:    Yes"); } else { format(string, sizeof(string), "[CC]:    No"); }
    SendClientMessage(playerid, GREEN, string);
    if (PlayerInfo[playerid][pAdminLevel] >= 1) {format(string, sizeof(string), "[Admin]:    Level %d",PlayerInfo[playerid][pAdminLevel]);} else {format(string, sizeof(string), "[Admin]:    No");}
	SendClientMessage(playerid, LIGHTBLUE, string);
	SendClientMessage(playerid, PURPLE, "|___________________________________|");
	}
	else return SendClientMessage(playerid, RED, "You must be logged in to view your stats.");
	return 1;
}
if (strcmp("/ramp", cmdtext, true, 10) == 0)
{
if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to create a ramp while DeathMatching !");
	if (Ramp[playerid] == 1)
	{
	    SendClientMessage(playerid, RED, "You already spawned a ramp! Type /rampoff to remove your previous ramp.");
	}
	else
	{
  		new Float:X,Float:Y,Float:Z;
  		new Float:angle;
		GetPlayerPos(playerid,X,Y,Z);
		GetPlayerFacingAngle(playerid,angle);
		ramp = CreatePlayerObject(playerid,13593,X,Y+10,Z,0,0,0);
		SendClientMessage(playerid, GREEN, "Ramp created. Type /rampoff to remove it.");
		Ramp[playerid] = 1;
	}
return 1;
}
if (strcmp("/rampoff", cmdtext, true, 10) == 0)
{
	if (Ramp[playerid] == 0)
 	{
 	    SendClientMessage(playerid, RED, "You don't have a ramp.");
 	}
 	else
 	{
		DestroyPlayerObject(playerid,ramp);
		SendClientMessage(playerid, GREEN, "Ramp deleted.");
		Ramp[playerid] = 0;
	}
return 1;
}

if (strcmp("/lock", cmdtext, true, 10) == 0)
{
	if (GetPlayerState(playerid) == 2)
	{
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
	    	SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 1);
		}
		SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), playerid, 0, 0);
		PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
//		CarLock = SetTimerEx("VehLock",500,1,"d",playerid);
		SendClientMessage(playerid, GREEN, "Vehicle Locked.");
	}
	else
	{
	SendClientMessage(playerid, RED, "You are not driving a vehicle.");
	}
	return 1;
}
if (strcmp("/unlock", cmdtext, true, 10) == 0)
{
	if (GetPlayerState(playerid) == 2)
	{
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
      		SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 0);
		}
//		KillTimer(CarLock);
		PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
		SendClientMessage(playerid, GREEN, "Vehicle Unlocked.");
	}
	else
	{
	SendClientMessage(playerid, RED, "You are not driving a vehicle.");
	}
	return 1;
}
if (strcmp("/ramp2", cmdtext, true, 10) == 0)
{
if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to create a ramp while DeathMatching !");
	if (Ramp[playerid] == 1)
	{
	    SendClientMessage(playerid, RED, "You already spawned a ramp! Type /ramp2off to remove your previous ramp.");
	}
	else
	{
  		new Float:X,Float:Y,Float:Z;
  		new Float:ang;
		GetPlayerPos(playerid,X,Y,Z);
		GetPlayerFacingAngle(playerid,ang);
		ramp2 = CreatePlayerObject(playerid,1697,X,Y+10,Z,0,0,0);
		SendClientMessage(playerid, GREEN, "Ramp created. Type /ramp2off to remove it.");
		Ramp[playerid] = 1;
	}
return 1;
}
if (strcmp("/ramp2off", cmdtext, true, 10) == 0)
{
	if (Ramp[playerid] == 0)
 	{
 	    SendClientMessage(playerid, RED, "You don't have a ramp.");
 	}
 	else
 	{
		DestroyPlayerObject(playerid,ramp2);
		SendClientMessage(playerid, GREEN, "Ramp deleted.");
		Ramp[playerid] = 0;
	}
return 1;
}
if(strcmp(cmd, "/report", true) == 0)
{
new reason[64];
	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /report [playerid] [reason]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will report the specified player to the administrators. **PLEASE ENTER THE ID ONLY!**");
			return 1;
		}

		giveplayerid = ReturnUser(tmp);

		if(giveplayerid != INVALID_PLAYER_ID)
		{
		    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			while ((idx < length) && ((idx - offset) < (sizeof(reason) - 1)))
			{
				reason[idx - offset] = cmdtext[idx];
				idx++;
			}
			reason[idx - offset] = EOS;
			if(!strlen(reason))
				{
					SendClientMessage(playerid, ORANGE, "USAGE: /report [playerid] [reason]");
					return 1;
				}
			format(string, sizeof(string), "[REPORT]: %s reported %s for: %s", sendername,giveplayer,reason);
			SendClientMessageToAdmins(ADMIN_RED, string,1);
			format(string, sizeof(string), "Your report on '%s' has been sent to the current online admins.", giveplayer);
			SendClientMessage(playerid, GREEN, string);
		}

		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid, RED, string);
		}
	return 1;
}
	if(strcmp(cmd, "/me", true) == 0)
	{
	        if(IsLogged[playerid] == 0)
	        {
	            SendClientMessage(playerid, RED, "You must be logged in to use /me.");
	            return 1;
	        }
			GetPlayerName(playerid, player, sizeof(player));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[64];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, ORANGE, "USAGE: /me [action]");
				return 1;
			}
			format(string, sizeof(string), "* %s %s *", player, result);
			SendClientMessageToAll(BLUE, string);
			printf("%s", string);
		return 1;
	}
	if (strcmp(cmd, "/admins", true) == 0)
	{
		SendClientMessage(playerid, GREEN, "|---------------Online Admins---------------|");
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
		    if (IsPlayerConnected(i))
	  		{
  				if(PlayerInfo[i][pAdminLevel] >= 1 && PlayerInfo[i][pAdminLevel] <= 5)
	    			{
						GetPlayerName(i, player, sizeof(player));
						format(string, 256, "Level %d [%i]%s", PlayerInfo[i][pAdminLevel],i,player);
						SendClientMessage(playerid, LIGHTGREEN, string);
					}
			}
		}
		SendClientMessage(playerid, GREEN, "|--------------------------------------------------|");
		return 1;
	}
if (strcmp(cmd, "/bomb", true) == 0)
{
	new vehicleid = GetPlayerVehicleID(playerid);
	if (PlayerToPoint(4.0, playerid, 2505.5649,-1693.8972,13.5582))
 	{
 	    if (GetPlayerState(playerid) == 2)
 	    {
 	        if (GetPlayerMoney(playerid) >=50000)
		  	{
				BombInstalled[vehicleid] = 1;
				GivePlayerMoney(playerid,-50000);
				SendClientMessage(playerid, GREEN, "Bomb Installed for $50 000. You may press the FIRE button to proceed.");
			}
			else
			{
			    SendClientMessage(playerid, RED, "You don't have enough cash($50 000).");
			}
		}
		else return SendClientMessage(playerid, RED, "You're not in a vehicle.");
	}
	else return SendClientMessage(playerid, RED, "You're not at CJ's Grove house's garage.");
return 1;
}
	if (strcmp(cmd, "/afk", true) == 0)
	{
	    if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You can't activate this command in the DeathMatching arena.");
	   	else if(afk[playerid] == 1) return SendClientMessage(playerid, RED, "You are already 'AFK' ");
	    else
	    {
	        afk[playerid] = 1;
	        SetPlayerColor(playerid,AFK);
		 	TogglePlayerControllable(playerid,0);
			GetPlayerName(playerid, playername, sizeof(playername));
			format(string, sizeof(string), "[NEWS]: %s is now Away From Keyboard[AFK]. ( /afk )", player);
			SendClientMessageToAll(YELLOW, string);
			SendClientMessage(playerid, GREEN, "Your status is now 'AFK'");
		}
		return 1;
	}
	if (strcmp(cmd, "/back", true) == 0)
	{
 		if(afk[playerid] ==0) return SendClientMessage(playerid, RED, "You're not 'AFK'");
	    else
	    {
	        afk[playerid] = 0;
	        if(CCIsLogged[playerid]==1) { SetPlayerColor(playerid,LIGHTGREEN);} else { SetPlayerColor(playerid,PLAYER_COLOR);}
	        TogglePlayerControllable(playerid,1);
			GetPlayerName(playerid, playername, sizeof(playername));
			format(string, sizeof(string), "[NEWS]: %s is back from being A.F.K. ( /back )", player);
			SendClientMessageToAll(YELLOW, string);
			SendClientMessage(playerid, GREEN, "You are back.");
		}
		return 1;
	}
/*------------------------------------------------/CC Commands\------------------------------------------------*/
if(strcmp(cmd, "/attach", true) == 0)
{
if(CCIsLogged[playerid] == 1)
	{
	    tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /attach [playerid]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will attach the player to your boat.");
			return 1;
		}
		giveplayerid = ReturnUser(tmp);
		if (giveplayerid != INVALID_PLAYER_ID)
		{
			new Float:X,Float:Y,Float:Z;
			GetPlayerPos(playerid,X,Y,Z);
			if (IsPlayerInVehicle(playerid,72))
			{
			    if (PlayerToPoint(5.0,giveplayerid,X,Y,Z))
			    {
			        SetPlayerPos(giveplayerid,X,Y,Z+2);
			        AttachP = SetTimerEx("AttachPlayer", 500, 1, "ifff", giveplayerid, X, Y, Z+2);
			        SendClientMessage(playerid, GREEN, "Success");
			    }
			    else
			    {
			        SendClientMessage(playerid, RED, "The player isn't near you.");
			    }
			}
			else
			{
			    SendClientMessage(playerid, RED, "You're not in a boat");
			}
		}
		else
		{
		    SendClientMessage(playerid, RED, "Player is not active.");
  		}
	}
	else
	{
		SendClientMessage(playerid, RED, "You are not logged in as a Crucio Clan member.");
	}
  	return 1;
}
if(strcmp(cmd, "/unattach", true) == 0)
{
	KillTimer(AttachP);
	SendClientMessage(playerid, GREEN, "You have been unattached.");
  	return 1;
}
if(strcmp(cmd, "///", true) == 0)
{
if(CCIsLogged[playerid] == 1)
	{
    	GetPlayerName(playerid, playername, sizeof(playername));
		new length = strlen(cmdtext);
		while ((idx < length) && (cmdtext[idx] <= ' '))
		{
			idx++;
		}
		new offset = idx;
		new result[256];
		while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
		{
			result[idx - offset] = cmdtext[idx];
			idx++;
		}
		result[idx - offset] = EOS;
		if(!strlen(result))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /// <text>");
		}
		else
		{
			format(string, sizeof(string), "CC [%i]%s: %s", playerid,playername, result);
			SendClientMessageToCC(DARKGREEN,string);
		}
   	}
	else
	{
		SendClientMessage(playerid, RED, "You must be logged in as a Crucio Clan member to chat with the other CC members!");
	}
  	return 1;
}
/*------------------------------------------------/Admin Commands\------------------------------------------------*/
if(strcmp(cmd, "/ah", true) == 0)
{
if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
	{
	    SendClientMessage(playerid, PURPLE, "         |- Stunts'n'Drifts'n'Racez'n'Pwn Server Admin Commands -|");
	    SendClientMessage(playerid, ORANGE, "LEAD(5): /gmx /makeadmin /kickall /an");
	    SendClientMessage(playerid, ORANGE, "LEVEL 1+: /freeze /unfreeze // /score /angle /kick /setname /kill /goto /arules /ip");
	    SendClientMessage(playerid, ORANGE, "LEVEL 2+: /mute /unmute  /nuclearbomb /givecash /get /pstats /warn /viewcmds");
	    SendClientMessage(playerid, ORANGE, "LEVEL 3+: /nuke /ban /disarm /say /veh /giveweapon /dmon /dmoff");
	    SendClientMessage(playerid, ORANGE, "LEVEL 4+: /slap /bslap /fuck /bc /setwarn");
	    SendClientMessage(playerid, ORANGE, "HELP: // is admin chat. Example: // Hi");
	    SendClientMessage(playerid, PURPLE, "Level 1: Newbie. Level 2: New Admin. Level 3: Admin. Level 4: Advanced Admin. Level 5: Lead Admin.");
	}
	else
	{
	SendClientMessage(playerid, RED, "You are not an admin!");
	}
return 1;
}
if(strcmp(cmd, "/arules", true) == 0)
{
if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
	{
	    SendClientMessage(playerid, PURPLE, "         |- Stunts'n'Drifts'n'Racez'n'Pwn Server Admin Rules -|");
	    SendClientMessage(playerid, LIGHTRED, "The following rules are the ones you shouldn't execute following by it's consequence.");
	    SendClientMessage(playerid, RED, "Abusing = -2 levels.");
	    SendClientMessage(playerid, RED, "Not doing the admin work = Instant demote - You are simply too retarded to obtain your position.");
	    SendClientMessage(playerid, RED, "Spawning too many vehicles = Instant level 2.");
	    SendClientMessage(playerid, RED, "Disrespecting a public rule = Instant demote or -1/2 level(s).");
	}
	else
	{
	SendClientMessage(playerid, RED, "You are not an admin!");
	}
return 1;
}
if(strcmp(cmd, "/makeadmin", true) == 0)
{
if (PlayerInfo[playerid][pAdminLevel] == 5 || IsPlayerAdmin(playerid))
	{
	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /makeadmin [playerid] [level 1-5]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Player will be an admin. **PLEASE ENTER THE ID ONLY!**");
			return 1;
		}
		giveplayerid = ReturnUser(tmp);
		tmp = strtok(cmdtext, idx);
		level = strval(tmp);
		if(giveplayerid != INVALID_PLAYER_ID)
		{
				GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
				GetPlayerName(playerid, sendername, sizeof(sendername));
				PlayerInfo[giveplayerid][pAdminLevel] = level;
				printf("[ADMIN NEWS]: %s made %s a level %d admin.", sendername, giveplayer, level);
				format(string, sizeof(string), "You are now an administrator level %d thanks to %s.", level, sendername);
				SendClientMessage(giveplayerid, LIGHTBLUE, string);
				format(string, sizeof(string), "You have given %s level %d admin.", giveplayer,PlayerInfo[giveplayerid][pAdminLevel]);
				SendClientMessage(playerid, LIGHTBLUE, string);
		}
		else if(giveplayerid != INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid, RED, string);
		}
	}
	else
	{
	SendClientMessage(playerid, RED, "You are not a lead admin!");
	}
return 1;
}
if(strcmp(cmd, "/gmx", true) == 0)
{
if (PlayerInfo[playerid][pAdminLevel] >= 5 || IsPlayerAdmin(playerid))
	{
	    GameModeExit();
	}
	else
	{
	SendClientMessage(playerid, RED, "You are not a lead admin!");
	}
return 1;
}
if(strcmp(cmd, "/kickall", true) == 0)
{
new reason[64];
if (PlayerInfo[playerid][pAdminLevel] == 5 || IsPlayerAdmin(playerid))
	{
		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /kickall [reason]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will kick all the players.");
			return 1;
		}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			while ((idx < length) && ((idx - offset) < (sizeof(reason) - 1)))
			{
				reason[idx - offset] = cmdtext[idx];
				idx++;
			}
			reason[idx - offset] = EOS;
		printf("[ADMIN NEWS]: Admin %s kicked everyone. Reason: %s", sendername, reason);
		format(string, sizeof(string), "-| Administrator %s kicked everyone. [Reason: %s ]|-", sendername,reason);
		SendClientMessageToAll(ADMIN_RED, string);
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			Kick(i);
			KickLog(string);
		}
	}
	else
 	{
 	SendClientMessage(playerid, RED, "You are not a lead admin!");
  	}
	return 1;
}
if(strcmp(cmd, "/nuke", true) == 0)
{
 if (PlayerInfo[playerid][pAdminLevel] >= 3)
	{
		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
			{
				SendClientMessage(playerid, ORANGE, "USAGE: /nuke [playerid]");
				SendClientMessage(playerid, ORANGE, "FUNCTION: Player will explode.");
				return 1;
			}
			new Float:X,Float:Y,Float:Z;
			giveplayerid = ReturnUser(tmp);
			    if(IsPlayerConnected(giveplayerid))
			    {
			    		GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			    		GetPlayerName(playerid, player, sizeof(player));
						GetPlayerPos(giveplayerid, X,Y,Z);
			            CreateExplosion(X,Y,Z,2,7.0);
						SetPlayerHealth(giveplayerid, 0.0);
						format(string, sizeof(string), "-| Administrator %s nuked %s |-",player,giveplayer);
						SendClientMessageToAdmins(ADMIN_RED, string,1);
				}
				else if (!IsPlayerConnected(giveplayerid))
				{
					format(string, sizeof(string), "%d is not an active player.", giveplayerid);
					SendClientMessage(playerid, RED, string);
				}
   }
	else
	{
	SendClientMessage(playerid, RED, "You're not an admin with the required level.");
	}
return 1;
}
if(strcmp(cmd, "/score", true) == 0)
{
new score;
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
	if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] >= 1)
	{
		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
			{
				SendClientMessage(playerid, ORANGE, "USAGE: /score [playerid] [score]");
				SendClientMessage(playerid, ORANGE, "FUNCTION: Will set a specified player's score");
				return 1;
			}
			giveplayerid = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, ORANGE, "USAGE: /score [playerid] [score]");
				SendClientMessage(playerid, ORANGE, "FUNCTION: Will set a specified player's score");
				return 1;
			}
			score = strval(tmp);
			    if(IsPlayerConnected(giveplayerid))
			    {
						GetPlayerScore(giveplayerid);
						SetPlayerScore(giveplayerid, score);
						format(string, sizeof(string), "You have changed %s's score number.",giveplayer);
						SendClientMessage(playerid, GREEN, string);
				}
				else if (!IsPlayerConnected(giveplayerid))
				{
					format(string, sizeof(string), "%d is not an active player.", giveplayerid);
					SendClientMessage(playerid, RED, string);
				}
   }
	else
	{
	SendClientMessage(playerid, RED, "You're not an admin with the required level.");
	}
return 1;
}
if(strcmp(cmd, "/angle", true) == 0)
{
	if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] >= 1)
	{
	new Float:angle;
		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /angle [angle degree]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will change your current angle.");
			GetPlayerFacingAngle(playerid,angle);
			format(string, sizeof(string), "HELP: Your current angle is %f **NOTE**: Bugged a little.",angle);
			SendClientMessage(playerid, ORANGE, string);
			return 1;
		}
		angle = strval(tmp);
			if (GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
			{
				SetVehicleZAngle(GetPlayerVehicleID(playerid),angle);
				format(string, sizeof(string), "You have changed your angle degree to %f",angle);
				SendClientMessage(playerid, GREEN, string);
			}
			else
			{
				SetPlayerFacingAngle(playerid,angle);
				format(string, sizeof(string), "You have changed your angle degree to %f",angle);
				SendClientMessage(playerid, GREEN, string);
			}
		}
		else
		{SendClientMessage(playerid, RED, "You're not an admin with the required level.");}
	return 1;
 }
if(strcmp(cmd, "/ban", true) == 0)
{
new reason[256];
if (PlayerInfo[playerid][pAdminLevel] >= 3 || IsPlayerAdmin(playerid))
	{
	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /ban [playerid] [reason]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will BAN the specified player. **PLEASE ENTER THE ID ONLY!**");
			return 1;
  }

		giveplayerid = ReturnUser(tmp);
		if(giveplayerid != INVALID_PLAYER_ID)
		{
		    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			while ((idx < length) && ((idx - offset) < (sizeof(reason) - 1)))
			{
				reason[idx - offset] = cmdtext[idx];
				idx++;
			}
			reason[idx - offset] = EOS;
			if(!strlen(reason))
				{
					SendClientMessage(playerid, ORANGE, "USAGE: /ban [playerid] [reason]");
					return 1;
				}
			else
			{
			new sstring[256];
			new ip[128];
			printf("[ADMIN NEWS]: Admin %s banned %s. Reason: %s", sendername, giveplayer, reason);
			format(string, sizeof(string), "-| Administrator %s banned %s. [Reason: %s ]|-", sendername,giveplayer,reason);
			SendClientMessageToAll(ADMIN_RED, string);
			GetPlayerIp(giveplayerid,ip,128);
			format(sstring, sizeof(sstring), "-| Banned Player's IP: %s |-", ip);
			SendClientMessageToAdmins(ADMIN_RED, sstring,1);
			Ban(giveplayerid);
			BanLog(string);
			}
		}
		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid, RED, string);
		}
		else if (PlayerInfo[giveplayerid][pAdminLevel] == 5)
		{
		    format(string, sizeof(string), "-| [%i]%s tried to ban you! |-",playerid,player);
			SendClientMessageToAdmins(ADMIN_RED,string,5);
		}
	}
	else
 	{
 	SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  	}
return 1;
}
if(strcmp(cmd, "/ip", true) == 0)
{
if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
	{
	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /ip [playerid]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will view a player's IP.");
			return 1;
		}

		giveplayerid = ReturnUser(tmp);
		if(IsPlayerConnected(giveplayerid))
		{
			new sstring[256];
			new ip[128];
			GetPlayerIp(giveplayerid,ip,128);
			GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			format(sstring, sizeof(sstring), "-| %s's IP: %s |-", giveplayer,ip);
			SendClientMessage(playerid,LIGHTBLUE, sstring);
		}
		else
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid, RED, string);
		}
	}
	else
 	{
 	SendClientMessage(playerid, RED, "You are not an admin.");
  	}
return 1;
}
if(strcmp(cmd, "/kick", true) == 0)
{
new reason[256];
if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
	{
	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /kick [playerid] [reason]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will kick the specified player. **PLEASE ENTER THE ID ONLY!**");
			return 1;
		}

		giveplayerid = ReturnUser(tmp);
		if(giveplayerid != INVALID_PLAYER_ID)
		{
		    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			while ((idx < length) && ((idx - offset) < (sizeof(reason) - 1)))
			{
				reason[idx - offset] = cmdtext[idx];
				idx++;
			}
			reason[idx - offset] = EOS;
			if(!strlen(reason))
				{
					SendClientMessage(playerid, ORANGE, "USAGE: /kick [playerid] [reason]");
					return 1;
				}
			else
			{
			printf("[ADMIN NEWS]: Admin %s kicked %s. Reason: %s", sendername, giveplayer, reason);
			format(string, sizeof(string), "-| Administrator %s kicked %s. [Reason: %s ]|-", sendername,giveplayer,reason);
			SendClientMessageToAll(ADMIN_RED, string);
			Kick(giveplayerid);
			KickLog(string);
			}
		}
		
		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid, RED, string);
		}
	}
	else
 	{
 	SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  	}
	return 1;
}
if(strcmp(cmd, "/mute", true) == 0)
{
new reason[164];
if (PlayerInfo[playerid][pAdminLevel] >= 2 || IsPlayerAdmin(playerid))
	{
	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /mute [playerid] [reason]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will mute the specified player. **PLEASE ENTER THE ID ONLY!**");
			return 1;
		}

		giveplayerid = ReturnUser(tmp);
		
		if(giveplayerid != INVALID_PLAYER_ID)
		{
		if (Mute[giveplayerid] == 0)
			{
		    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			while ((idx < length) && ((idx - offset) < (sizeof(reason) - 1)))
			{
				reason[idx - offset] = cmdtext[idx];
				idx++;
			}
			reason[idx - offset] = EOS;
			if(!strlen(reason))
				{
					SendClientMessage(playerid, ORANGE, "USAGE: /mute [playerid] [reason]");
					return 1;
				}
			else
			{
			printf("[ADMIN NEWS]: Admin %s muted %s. Reason: %s", sendername, giveplayer, reason);
			format(string, sizeof(string), "-| Administrator %s muted %s. [Reason: %s ]|-", sendername,giveplayer,reason);
			SendClientMessageToAll(ADMIN_RED, string);
			Mute[giveplayerid] = 1;
			}
			}
		else if (Mute[giveplayerid] == 1)
			{
		        SendClientMessage(playerid, RED, "Player is already muted!");
			}
		}

		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid, RED, string);
		}
	}
	else
 	{
 	SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  	}
	return 1;
}
if(strcmp(cmd, "/unmute", true) == 0)
{
if (PlayerInfo[playerid][pAdminLevel] >= 2 || IsPlayerAdmin(playerid))
	{
	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /unmute [playerid]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will unmute the specified player. **PLEASE ENTER THE ID ONLY!**");
			return 1;
		}

		giveplayerid = ReturnUser(tmp);

		if(giveplayerid != INVALID_PLAYER_ID)
		{
		if (Mute[giveplayerid] == 1)
			{
		    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
			printf("[ADMIN NEWS]: Admin %s unmuted %s.", sendername, giveplayer);
			format(string, sizeof(string), "-| Administrator %s unmuted %s |-", sendername,giveplayer);
			SendClientMessageToAll(ADMIN_RED, string);
			Mute[giveplayerid] = 0;
			}
		else if (Mute[giveplayerid] == 0)
			{
		        SendClientMessage(playerid, RED, "Player isn't muted.");
			}
		}

		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid, RED, string);
		}
	}
	else
 	{
 	SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  	}
	return 1;
}
if(strcmp(cmd, "/nuclearbomb", true) == 0)
{
	if (PlayerInfo[playerid][pAdminLevel] >= 2 || IsPlayerAdmin(playerid))
	{
		NuclearBombs();
		SendClientMessage(playerid, GREEN, "Nuclear Bombs are now launched!");
	}
	else
	{
	SendClientMessage(playerid, RED, "You are not an admin.");
	}
return 1;
}
if(strcmp(cmd, "/drugs", true) == 0)
{
 if (PlayerInfo[playerid][pAdminLevel] > 1 || IsPlayerAdmin(playerid))
 {
    SetPlayerHealth(playerid,9999);
    SendClientMessage(playerid, GREEN, "You are now high on drugs...");
 }
 else
 {
    SendClientMessage(playerid, RED, "Hey, um... Nothing to see here...");
 }
	return 1;
}
if(strcmp(cmd, "/freeze", true) == 0)
{
new reason[64];
if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
	{
	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /freeze [playerid] [reason]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will freeze the specified player. **PLEASE ENTER THE ID ONLY!**");
			return 1;
		}

		giveplayerid = ReturnUser(tmp);
		if(giveplayerid != INVALID_PLAYER_ID)
		{
		    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			while ((idx < length) && ((idx - offset) < (sizeof(reason) - 1)))
			{
				reason[idx - offset] = cmdtext[idx];
				idx++;
			}
			reason[idx - offset] = EOS;
			if(!strlen(reason))
				{
					SendClientMessage(playerid, ORANGE, "USAGE: /freeze [playerid] [reason]");
					return 1;
				}
			else
			{
			printf("[ADMIN NEWS]: Admin %s froze %s. Reason: %s", sendername, giveplayer, reason);
			format(string, sizeof(string), "-| Administrator %s froze %s. [Reason: %s ]|-", sendername,giveplayer,reason);
   			SendClientMessageToAdmins(ADMIN_RED, string,1);
			TogglePlayerControllable(giveplayerid,0);
			}
		}

		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid, RED, string);
		}
	}
	else
 	{
 	SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  	}
	return 1;
}
if(strcmp(cmd, "/unfreeze", true) == 0)
{
if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
	{
	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /unfreeze [playerid]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will unfreeze the specified player. **PLEASE ENTER THE ID ONLY!**");
			return 1;
		}

		giveplayerid = ReturnUser(tmp);
		if(giveplayerid != INVALID_PLAYER_ID)
		{
		    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
			printf("[ADMIN NEWS]: Admin %s unfroze %s.", sendername, giveplayer);
			format(string, sizeof(string), "-| Administrator %s unfroze %s |-", sendername,giveplayer);
			SendClientMessageToAdmins(ADMIN_RED, string,1);
			TogglePlayerControllable(giveplayerid,1);
		}

		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid, RED, string);
		}
	}
	else
 	{
 	SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  	}
	return 1;
}
if(strcmp(cmd, "/setname", true) == 0)
{
new newname[128];
if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
	{
	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /setname [playerid] [newname]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will change the player's current name. **PLEASE ENTER THE ID ONLY!**");
			return 1;
		}

		giveplayerid = ReturnUser(tmp);
		if(giveplayerid != INVALID_PLAYER_ID)
		{
		    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			while ((idx < length) && ((idx - offset) < (sizeof(newname) - 1)))
			{
				newname[idx - offset] = cmdtext[idx];
				idx++;
			}
			newname[idx - offset] = EOS;
			if(!strlen(newname))
				{
					SendClientMessage(playerid, ORANGE, "USAGE: /setname [playerid] [newname]");
					return 1;
				}
			else
			{
			printf("[ADMIN NEWS]: Admin %s renamed %s.", sendername, giveplayer);
			format(string, sizeof(string), "-| Administrator %s renamed %s. [New Name: %s ]|-", sendername,giveplayer,newname);
			SendClientMessageToAdmins(ADMIN_RED, string,1);
			SetPlayerName(giveplayerid, newname);
			}
		}

		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid, RED, string);
		}
	}
	else
 	{
 	SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  	}
	return 1;
}
if(strcmp(cmd, "/givecash", true) == 0)
{
new cash;
if (PlayerInfo[playerid][pAdminLevel] >= 2 || IsPlayerAdmin(playerid))
	{
	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /givecash [playerid] [cash]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will give the player some cash. **PLEASE ENTER THE ID ONLY!**");
			return 1;
		}

		giveplayerid = ReturnUser(tmp);
		if(giveplayerid != INVALID_PLAYER_ID)
		{
		    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
			tmp = strtok(cmdtext, idx);
			cash = strval(tmp);
			if(!strlen(tmp))
				{
					SendClientMessage(playerid, ORANGE, "USAGE: /givecash [playerid] [cash]");
					return 1;
				}
			else
			{
			printf("[ADMIN NEWS]: Admin %s gave %s $%d..", sendername, giveplayer, cash);
			format(string, sizeof(string), "-| Administrator %s gave %s $%d |-", sendername,giveplayer,cash);
			SendClientMessageToAdmins(ADMIN_RED, string,1);
			GivePlayerMoney(giveplayerid, cash);
			}
		}

		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid, RED, string);
		}
	}
	else
 	{
 	SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  	}
	return 1;
}
if(strcmp(cmd, "/kill", true) == 0)
{
	if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
	{
	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /kill [playerid]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will kill the specified player. **PLEASE ENTER THE ID ONLY!**");
			return 1;
		}

		giveplayerid = ReturnUser(tmp);
		if(giveplayerid != INVALID_PLAYER_ID)
		{
		    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
			printf("[ADMIN NEWS]: Admin %s killed %s", sendername, giveplayer);
			format(string, sizeof(string), "-| Administrator %s killed %s |-", sendername,giveplayer);
			SendClientMessageToAdmins(ADMIN_RED, string,1);
			SetPlayerHealth(giveplayerid, 0.0);
		}

		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid, RED, string);
		}
	}
	else
 	{
 	if(DMArena[playerid] == 1) return SendClientMessage(playerid, RED, "You are not allowed to suicide while DeathMatching!");
 	SendClientMessage(playerid, RED, "You have committed suicide.");
 	SetPlayerHealth(playerid,0.0);
  	}
	return 1;
}
if(strcmp(cmd, "/goto", true) == 0)
{
new Float:pX,Float:pY,Float:pZ;
if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
	{
	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /goto [playerid]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will teleport to the specified player.");
			return 1;
		}

		giveplayerid = ReturnUser(tmp);
		if(giveplayerid != INVALID_PLAYER_ID)
		{
		    if (GetPlayerState(playerid) == 2)
		    {
		    GetPlayerPos(giveplayerid,pX,pY,pZ);
		    SetVehiclePos(GetPlayerVehicleID(playerid),pX,pY,pZ+2);
	  		}
	  		else
	  		{
		    GetPlayerPos(giveplayerid,pX,pY,pZ);
		    SetPlayerPos(playerid,pX,pY,pZ+2);
		    }
			printf("[ADMIN NEWS]: Admin %s teleported to %s.", sendername, giveplayer);
		}
		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid, RED, string);
		}
	}
	else
 	{
 	SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  	}
	return 1;
}
if(strcmp(cmd, "/get", true) == 0)
{
new Float:pX,Float:pY,Float:pZ;
if (PlayerInfo[playerid][pAdminLevel] >= 2 || IsPlayerAdmin(playerid))
	{
	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /get [playerid]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will teleport the specified player to you.");
			return 1;
		}
		giveplayerid = ReturnUser(tmp);
		if(giveplayerid != INVALID_PLAYER_ID)
		{
		    if (GetPlayerState(giveplayerid) == PLAYER_STATE_DRIVER)
		    {
		    GetPlayerPos(playerid,pX,pY,pZ);
		    SetVehiclePos(GetPlayerVehicleID(giveplayerid),pX,pY,pZ+2);
	  		}
	  		else
	  		{
		    GetPlayerPos(playerid,pX,pY,pZ);
		    SetPlayerPos(giveplayerid,pX,pY,pZ+2);
		    }
			printf("[ADMIN NEWS]: Admin %s teleported to %s.", sendername, giveplayer);
		}
		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid, RED, string);
		}
	}
	else
 	{
 	SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  	}
	return 1;
}
if(strcmp(cmd, "//", true) == 0)
{
if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
	{
    	GetPlayerName(playerid, playername, sizeof(playername));
		new length = strlen(cmdtext);
		while ((idx < length) && (cmdtext[idx] <= ' '))
		{
			idx++;
		}
		new offset = idx;
		new result[256];
		while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
		{
			result[idx - offset] = cmdtext[idx];
			idx++;
		}
		result[idx - offset] = EOS;
		if(!strlen(result))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: // <text>");
		}
			format(string, sizeof(string), "Admin [%i]%s: %s" ,playerid,playername, result);
			SendClientMessageToAdmins(DARKPINK,string,1);
   	}
	else
	{
		SendClientMessage(playerid, RED, "You are not an admin.");
	}
  	return 1;
}
	if(strcmp(cmd, "/warn", true) == 0)
	{
			if (PlayerInfo[playerid][pAdminLevel] >= 2)
			{
				tmp = strtok(cmdtext, idx);
				if(!strlen(tmp))
				{
					SendClientMessage(playerid, ORANGE, "USAGE: /warn [playerid] [reason]");
					return 1;
				}
				giveplayerid = ReturnUser(tmp);
			    if(IsPlayerConnected(giveplayerid))
			    {
			        if(giveplayerid != INVALID_PLAYER_ID)
			        {
					    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, player, sizeof(player));
						new length = strlen(cmdtext);
						while ((idx < length) && (cmdtext[idx] <= ' '))
						{
							idx++;
						}
						new offset = idx;
						new reason[256];
						while ((idx < length) && ((idx - offset) < (sizeof(reason) - 1)))
						{
							reason[idx - offset] = cmdtext[idx];
							idx++;
						}
						reason[idx - offset] = EOS;
						if(!strlen(reason))
						{
							SendClientMessage(playerid, ORANGE, "USAGE: /warn [playerid] [reason]");
							return 1;
						}
						new sstring[256];
						PlayerInfo[giveplayerid][pWarns] += 1;
						format(string, sizeof(string), "You got warned by Admin %s. Reason: %s", player, reason);
						SendClientMessage(giveplayerid, ADMIN_RED, string);
						SendClientMessage(giveplayerid, RED, "3 Warnings = Auto-Ban!");
						format(string, sizeof(string), "-| Administrator %s warned %s. [Reason: %s ] |-",player ,giveplayer, reason);
						SendClientMessageToAdmins(ADMIN_RED,string,1);
						format(string, sizeof(string), "-| %s's warnings: %d |-",giveplayer, PlayerInfo[giveplayerid][pWarns]);
						SendClientMessageToAdmins(ADMIN_RED,string,1);
						if(PlayerInfo[giveplayerid][pWarns] >= 3)
						{
						    new ip[128];
							format(string, sizeof(string), "-| Administrator %s banned %s. [Reason: 3 Warnings.] |-", player,giveplayer);
							BanLog(string);
							format(string, sizeof(string), "-| Administrator %s banned %s. [Reason: 3 Warnings.] |-", player,giveplayer);
							SendClientMessageToAll(ADMIN_RED, string);
							GetPlayerIp(giveplayerid,ip,128);
							format(sstring, sizeof(sstring), "-| Banned Player's IP: %s |-", ip);
							SendClientMessageToAdmins(ADMIN_RED, sstring,1);
							PlayerInfo[giveplayerid][pAdminLevel]= 0;
							Ban(giveplayerid);
							return 1;
						}
						return 1;
					}
					else
					{
						format(string, sizeof(string), "%d is not an active player.", giveplayerid);
						SendClientMessage(playerid, RED, string);
					}
				}
				else
				{
					format(string, sizeof(string), "%d is not an active player.", giveplayerid);
					SendClientMessage(playerid, RED, string);
				}
			}
			else
			{
				format(string, sizeof(string), "You are not an admin with the required level.");
				SendClientMessage(playerid, RED, string);
			}
		return 1;
	}
if(strcmp(cmd, "/pstats", true) == 0)
{
if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] >= 1)
	{
	    tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /pstats [playerid]");
			return 1;
		}
		giveplayerid = ReturnUser(tmp);
		if (giveplayerid != INVALID_PLAYER_ID)
		{
			new Float:health;
			new ammo = GetPlayerAmmo(giveplayerid);
			GetPlayerHealth(giveplayerid,health);
    		GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    		if (GetPlayerWeapon(giveplayerid) == 0)
    		{
				format(string, sizeof(string), "Stats of %s:- Weapon ID: %d - Ammos: 0 - Health: %.0f - Cash: %d - Warnings: %d",giveplayer, GetPlayerWeapon(giveplayerid), health,GetPlayerMoney(giveplayerid),PlayerInfo[giveplayerid][pWarns]);
				SendClientMessage(playerid,PURPLE,string);
			}
			else
			{
				format(string, sizeof(string), "Stats of %s:- Weapon ID: %d - Ammos: %d - Health: %.0f - Cash: %d - Warnings: %d",giveplayer, GetPlayerWeapon(giveplayerid), ammo, health,GetPlayerMoney(giveplayerid),PlayerInfo[giveplayerid][pWarns]);
				SendClientMessage(playerid,PURPLE,string);
			}
			if(DMArena[giveplayerid] == 1) { SendClientMessage(playerid, PURPLE, "Player in DeathMatch arena: Yes");}
			else if(DMArena[giveplayerid] == 0) { SendClientMessage(playerid, PURPLE, "Player in DeathMatch arena: No");}
			if(IsLogged[giveplayerid] == 1) { SendClientMessage(playerid, PURPLE, "Logged In: Yes");}
			else if(IsLogged[giveplayerid] == 0) { SendClientMessage(playerid, PURPLE, "Logged In: No"); }
		}
		else
		{
		    SendClientMessage(playerid, RED, "Player is not active.");
  		}
	}
	else
	{
		SendClientMessage(playerid, RED, "You're not an admin with the required level.");
	}
  	return 1;
}
if(strcmp(cmd, "/slap", true) == 0)
{
new Float:pX,Float:pY,Float:pZ;
if (PlayerInfo[playerid][pAdminLevel] >= 4 || IsPlayerAdmin(playerid))
	{
	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /slap [playerid]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will slap the specified player(He will teleport 5 meters higher)");
			return 1;
		}

		giveplayerid = ReturnUser(tmp);
		if(giveplayerid != INVALID_PLAYER_ID)
		{
		    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
		    GetPlayerPos(giveplayerid,pX,pY,pZ);
		    SetPlayerPos(giveplayerid,pX,pY,pZ+5);
			printf("[ADMIN NEWS]: Admin %s slapped %s.", sendername, giveplayer);
			format(string, sizeof(string), "-| Administrator %s slapped %s |-",sendername, giveplayer);
			SendClientMessageToAdmins(ADMIN_RED,string,1);
		}
		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid, RED, string);
		}
	}
	else
 	{
 	SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  	}
	return 1;
}
if(strcmp(cmd, "/bslap", true) == 0)
{
new Float:pX,Float:pY,Float:pZ;
if (PlayerInfo[playerid][pAdminLevel] >= 4 || IsPlayerAdmin(playerid))
	{
	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /dslap [playerid]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will double slap the specified player(He will teleport 10 meters higher)");
			return 1;
		}

		giveplayerid = ReturnUser(tmp);
		if(giveplayerid != INVALID_PLAYER_ID)
		{
		    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
		    GetPlayerPos(giveplayerid,pX,pY,pZ);
		    SetPlayerPos(giveplayerid,pX,pY,pZ+10);
			printf("[ADMIN NEWS]: Admin %s bitch slapped %s.", sendername, giveplayer);
			format(string, sizeof(string), "-| Administrator %s bitch slapped %s |-",sendername, giveplayer);
			SendClientMessageToAdmins(ADMIN_RED,string,1);
		}
		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid, RED, string);
		}
	}
	else
 	{
 	SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  	}
	return 1;
}
if(strcmp(cmd, "/fuck", true) == 0)
{
new Float:pX,Float:pY,Float:pZ;
new Float:X,Float:Y,Float:Z;
if (PlayerInfo[playerid][pAdminLevel] >= 3 || IsPlayerAdmin(playerid))
	{
	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /fuck [playerid]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will fuck up a player.");
			return 1;
		}

		giveplayerid = ReturnUser(tmp);
		if(giveplayerid != INVALID_PLAYER_ID)
		{
		    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
		    GetPlayerPos(giveplayerid,pX,pY,pZ);
		    SetPlayerPos(giveplayerid,pX,pY,pZ+50);
		    GetPlayerPos(giveplayerid,X,Y,Z);
		    CreateExplosion(X,Y,Z,2,5.0);
			printf("[ADMIN NEWS]: Admin %s fucked up %s.", sendername, giveplayer);
			format(string, sizeof(string), "-| Administrator %s fucked up %s |-",sendername, giveplayer);
			SendClientMessageToAdmins(ADMIN_RED,string,1);
			SendClientMessage(giveplayerid, RED, "You are being fucked up by an admin.");
		}
		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid, RED, string);
		}
	}
	else
 	{
 	SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  	}
	return 1;
}
if(strcmp(cmd, "/disarm", true) == 0)
{
if (PlayerInfo[playerid][pAdminLevel] >= 3 || IsPlayerAdmin(playerid))
	{
	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /disarm [playerid]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will disarm the player.");
			return 1;
		}

		giveplayerid = ReturnUser(tmp);
		if(giveplayerid != INVALID_PLAYER_ID)
		{
		    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
		    ResetPlayerWeapons(giveplayerid);
			printf("[ADMIN NEWS]: Admin %s disarmed %s.", sendername, giveplayer);
			format(string, sizeof(string), "-| Administrator %s disarmed %s |-",sendername, giveplayer);
			SendClientMessageToAdmins(ADMIN_RED,string,1);
		}
		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid, RED, string);
		}
	}
	else
 	{
 	SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  	}
	return 1;
}
	if(strcmp(cmd, "/giveweapon", true) == 0)
	{
	    if (PlayerInfo[playerid][pAdminLevel] >= 3 || IsPlayerAdmin(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, ORANGE, "USAGE: /giveweapon [playerid] [weaponid] [ammo]");
				return 1;
			}
			new gun;
			new ammo;
			giveplayerid = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			gun = strval(tmp);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, ORANGE, "USAGE: /giveweapon [playerid] [weaponid] [ammo]");
				return 1;
			}
			tmp = strtok(cmdtext, idx);
			ammo = strval(tmp);
			if(ammo <1||ammo > 10000)
			{ SendClientMessage(playerid, RED, "You can only give a maximum capacity of 10 000 bullets and not less than 1."); return 1; }
			    if(giveplayerid != INVALID_PLAYER_ID)
			    {
			    	GetPlayerName(playerid, sendername, sizeof(sendername));
					GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
					GivePlayerWeapon(giveplayerid, gun, ammo);
					format(string, sizeof(string), "-| Administrator %s gave a weapon to %s |-",sendername, giveplayer);
					SendClientMessageToAdmins(ADMIN_RED,string,1);
				}
				else if(giveplayerid == INVALID_PLAYER_ID)
			    {
					format(string, sizeof(string), "%d is not an active player.", giveplayerid);
					SendClientMessage(playerid, RED, string);
				}
		}
		else
		{
			SendClientMessage(playerid, RED, "You are not an admin with the required level!");
		}
		return 1;
	}
if(strcmp(cmd, "/dmon", true) == 0)
{
    if (PlayerInfo[playerid][pAdminLevel] >= 3 || IsPlayerAdmin(playerid))
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
		{
			DMArena[i] = 2;
		}
		SendClientMessageToAll(GREEN,"[DM NEWS]: The DeathMatching arena is now opened.");
	}
	else
	{
	    SendClientMessage(playerid, RED, "You are not an admin with the required level.");
	}
	return 1;
}
if(strcmp(cmd, "/dmoff", true) == 0)
{
    if (PlayerInfo[playerid][pAdminLevel] >= 3 || IsPlayerAdmin(playerid))
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
		{
			DMArena[i] = 3;
		}
		SendClientMessageToAll(RED,"[DM NEWS]: The DeathMatching arena is now closed.");
	}
	else
	{
	    SendClientMessage(playerid, RED, "You are not an admin with the required level.");
	}
	return 1;
}
	if(strcmp(cmd, "/say", true) == 0)
	{
	    if (PlayerInfo[playerid][pAdminLevel] >= 4 || IsPlayerAdmin(playerid))
    	{
			GetPlayerName(playerid, player, sizeof(player));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[256];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, ORANGE, "USAGE: /say [message]");
				SendClientMessage(playerid, ORANGE, "FUNCTION: Will broadcast an admin message.");
				return 1;
			}
			format(string, sizeof(string), "* Admin: %s", result);
			SendClientMessageToAll(LIGHTRED, string);
			printf("%s", string);
		}
		else
		{
	    	SendClientMessage(playerid, RED, "You are not an admin with the required level.");
		}
		return 1;
	}
		if(strcmp(cmd, "/bc", true) == 0 || strcmp(cmd, "/announce", true) == 0)
	{
	    if (PlayerInfo[playerid][pAdminLevel] >= 4 || IsPlayerAdmin(playerid))
    	{
			GetPlayerName(playerid, player, sizeof(player));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[256];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, ORANGE, "USAGE: /bc [message]");
				SendClientMessage(playerid, ORANGE, "FUNCTION: Will broadcast a screen message");
				return 1;
			}
			format(string, sizeof(string), "~w~%s", result);
			GameTextForAll(string,5000,4);
			printf("%s", string);
		}
		else
		{
	    	SendClientMessage(playerid, RED, "You are not an admin with the required level.");
		}
		return 1;
	}
	if(strcmp(cmd, "/veh", true) == 0)
	{
 		if (PlayerInfo[playerid][pAdminLevel] >= 4 || IsPlayerAdmin(playerid))
 		{
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, ORANGE, "USAGE: /veh [carid] [color1] [color2]");
				return 1;
			}
			new car;
			car = strval(tmp);
			if(car < 400 || car > 611) { SendClientMessage(playerid, RED, "Vehicle ID can't be below 400 nor above 611 !"); return 1; }
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, ORANGE, "USAGE: /veh [carid] [color1] [color2]");
				return 1;
			}
			new color1;
			color1 = strval(tmp);
			if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, RED, "Color ID can't be below 0 nor above 126 !"); return 1; }
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, ORANGE, "USAGE: /veh [carid] [color1] [color2]");
				return 1;
			}
			new color2;
			color2 = strval(tmp);
			if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, RED, "Color ID can't be below 0 nor above 126 !"); return 1; }
			new Float:X,Float:Y,Float:Z;
			GetPlayerPos(playerid, X,Y,Z);
			new carid = CreateVehicle(car, X,Y,Z, 0.0, color1, color2, 600000);
			format(string, sizeof(string), "Vehicle ID %d spawned.", carid);
			SendClientMessage(playerid, GREEN, string);
			GetPlayerName(playerid,player,sizeof(player));
			format(string, sizeof(string), "-| Administrator %s spawned a vehicle |-",player);
			SendClientMessageToAdmins(ADMIN_RED,string,1);
			VehicleLog(string);
		}
		else
		{
		    SendClientMessage(playerid, RED, "You're not an admin with the required level.");
		}
		return 1;
	}
	if(strcmp(cmd, "/crash", true) == 0)
{
 if (PlayerInfo[playerid][pAdminLevel] == 5)
	{
		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
			{
				SendClientMessage(playerid, ORANGE, "USAGE: /crash [playerid]");
				SendClientMessage(playerid, ORANGE, "FUNCTION: Crashes a player.");
				return 1;
			}
			new Float:X,Float:Y,Float:Z;
			giveplayerid = ReturnUser(tmp);
			    if(IsPlayerConnected(giveplayerid))
			    {
			            GetPlayerPos(giveplayerid,X,Y,Z);
			    		CreatePlayerObject(giveplayerid,11111111,X,Y,Z,0,0,0);
						SendClientMessage(playerid,GREEN, "Player successfuly crashed.");
				}
				else if (!IsPlayerConnected(giveplayerid))
				{
					format(string, sizeof(string), "%d is not an active player.", giveplayerid);
					SendClientMessage(playerid, RED, string);
				}
   }
	else
	{
	SendClientMessage(playerid, RED, "You're not a lead admin.");
	}
return 1;
}
if(strcmp(cmd, "/setwarn", true) == 0)
{
new warnings;
if (PlayerInfo[playerid][pAdminLevel] >= 4 || IsPlayerAdmin(playerid))
	{
	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /setwarn [playerid] [warning]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will set a certain player's warning.");
			return 1;
		}

  giveplayerid = ReturnUser(tmp);
		if(giveplayerid != INVALID_PLAYER_ID)
		{
		    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
			tmp = strtok(cmdtext, idx);
			warnings = strval(tmp);
			if(!strlen(tmp))
				{
					SendClientMessage(playerid, ORANGE, "USAGE: /setwarn [playerid] [warning]");
					return 1;
				}
			else
			{
			PlayerInfo[giveplayerid][pWarns] = warnings;
			printf("[ADMIN NEWS]: Admin %s has set %s's warnings to ", sendername, giveplayer, warnings);
			format(string, sizeof(string), "Admin %s changed your warnings to %d", player, warnings);
			SendClientMessage(giveplayerid, GREEN, string);
			SendClientMessage(giveplayerid, RED, "3 Warnings = Auto-Ban!");
			format(string, sizeof(string), "-| Administrator %s changed %s's warnings. [Warnings: %d ] |-",player ,giveplayer, PlayerInfo[giveplayerid][pWarns]);
			SendClientMessageToAdmins(ADMIN_RED,string,1);
			}
		}

		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid, RED, string);
		}
	}
	else
 	{
 	SendClientMessage(playerid, RED, "You are not an admin with the required level.");
  	}
	return 1;
}
		if(strcmp(cmd, "/an", true) == 0)
	{
	    if (PlayerInfo[playerid][pAdminLevel] >= 5 || IsPlayerAdmin(playerid))
    	{
			GetPlayerName(playerid, player, sizeof(player));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[256];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, ORANGE, "USAGE: /an [message]");
				SendClientMessage(playerid, ORANGE, "FUNCTION: Will broadcast an announcement.");
				return 1;
			}
			format(string, sizeof(string), "%s", result);
			SendClientMessageToAll(ANNOUNCEMENT, string);
			printf("%s", string);
		}
		else
		{
	    	SendClientMessage(playerid, RED, "You are not a lead admin.");
		}
		return 1;
	}
if(strcmp(cmd, "/superpunch", true) == 0)
{
    if (PlayerInfo[playerid][pAdminLevel] >= 4 || IsPlayerAdmin(playerid))
    {
        tmp = strtok(cmdtext,idx);
        if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /superpunch [on/off]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will give you the power of Super Punch. When pressing 'PUNCH' button, you will explode but will live.");
		}
        else if(strcmp(tmp,"on",true) == 0)
        {
		SuperPunch[playerid] = 1;
		SendClientMessage(playerid,GREEN,"You are now blessed with SUPER PUNCH! Go knock someone out, now.");
		}
		else if(strcmp(tmp,"off",true) == 0)
		{
		SuperPunch[playerid] = 0;
		SendClientMessage(playerid,GREEN,"Your super punch is now disabled.");
		}
	}
	else
	{
	    SendClientMessage(playerid, RED, "You are not an admin with the required level.");
	}
	return 1;
}
if(strcmp(cmd, "/vsuperpunch", true) == 0)
{
    if (PlayerInfo[playerid][pAdminLevel] >= 4 || IsPlayerAdmin(playerid))
    {
        tmp = strtok(cmdtext,idx);
        if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /vsuperpunch [on/off]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will give you the power of Super Punch in a Vehicle. When pressing 'PUNCH' button, you will explode but will live.");
		}
        else if(strcmp(tmp,"on",true) == 0)
        {
		SuperPunch[playerid] = 1;
		SendClientMessage(playerid,GREEN,"You are now blessed with SUPER PUNCH! Go knock someone out, now.");
		}
		else if(strcmp(tmp,"off",true) == 0)
		{
		SuperPunch[playerid] = 0;
		SendClientMessage(playerid,GREEN,"Your super punch is now disabled.");
		}
	}
	else
	{
	    SendClientMessage(playerid, RED, "You are not an admin with the required level.");
	}
	return 1;
}
if (strcmp(cmd, "/superpunchp", true) ==0 )
{
	new tmp2[256];
    if (PlayerInfo[playerid][pAdminLevel] > 4 || IsPlayerAdmin(playerid))
	{
		tmp = strtok(cmdtext,idx);
	    if(!strlen(tmp))
		{
			SendClientMessage(playerid,ORANGE,"USAGE: /superpunchp [playerid] [on/off]");
			SendClientMessage(playerid,ORANGE,"FUNCTION: Will give the player the power of SuperPunch.");
		}
		giveplayerid = ReturnUser(tmp);
		if(giveplayerid != INVALID_PLAYER_ID)
		{
		    tmp2 = strtok(cmdtext,idx);
		    if(strcmp(tmp2,"on",true) == 0)
		    {
		   	 	GetPlayerName(playerid, player, sizeof(player));
				GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
				SuperPunch[giveplayerid] = 1;
				format(string, sizeof(string), "Admin %s blessed you with the power of Super Punch !", player);
				SendClientMessage(giveplayerid,GREEN,string);
				format(string, sizeof(string), "-| Administrator %s blessed %s with the power of Super Punch |-", player,giveplayer);
				SendClientMessageToAdmins(ADMIN_RED,string,1);
			}
			else if(strcmp(tmp2,"off",true) == 0)
			{
			    format(string, sizeof(string), "Admin %s removed your Super Punch power.", player);
				SendClientMessage(giveplayerid,RED,string);
				SuperPunch[giveplayerid] = 0;
			}
		}
		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid,RED,string);
		}
	}
	else
	{
		SendClientMessage(playerid,RED,"You are not an admin with the required level.");
	}
	return 1;
}
if(strcmp(cmd, "/viewcmds", true) == 0)
{
    if (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid))
    {
        tmp = strtok(cmdtext,idx);
        if(!strlen(tmp))
		{
			SendClientMessage(playerid, ORANGE, "USAGE: /viewcmds [on/off]");
			SendClientMessage(playerid, ORANGE, "FUNCTION: Will see the players typing '/cash' and '/count' incase of money hacks or count spam.");
		}
        else if(strcmp(tmp,"on",true) == 0)
        {
		ViewCmds[playerid] = 1;
		SendClientMessage(playerid,GREEN,"You can know view players typing '/count' and '/cash'.");
		}
		else if(strcmp(tmp,"off",true) == 0)
		{
		ViewCmds[playerid] = 0;
		SendClientMessage(playerid,GREEN,"You can no longer view players typing '/count' and '/cash'.");
		}
	}
	else
	{
	    SendClientMessage(playerid, RED, "You are not an admin with the required level.");
	}
	return 1;
}
/*-------------------------------Login/Registration System----------------------------------*/
	if (strcmp(cmd, "/login", true) ==0 )
	{
	        new tmppass[128];
			if(IsLogged[playerid] == 1)
			{
				SendClientMessage(playerid, RED, "You are already logged in.");
				return 1;
			}
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, ORANGE, "USAGE: /login [password]");
				return 1;
			}
			new plname[MAX_PLAYER_NAME];
   			GetPlayerName(playerid, plname, sizeof(plname));
			format(string, sizeof(string), "%s.ini", plname);
			if(!fexist(string))
			{
				SendClientMessage(playerid, RED, "That account isn't registered.");
			}
			strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
//			Encrypt(tmppass);
			OnPlayerLogin(playerid,tmppass);
		return 1;
	}
	if (strcmp(cmd, "/register", true) ==0 )
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(IsLogged[playerid] == 1)
			{
				SendClientMessage(playerid, RED, "You are already logged in.");
				return 1;
			}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), "%s.ini", sendername);
			new File: hFile = fopen(string, io_read);
			if (hFile)
			{
				SendClientMessage(playerid, RED, "That name is already taken. Please reconnect using a different username.");
				fclose(hFile);
				return 1;
			}
	        new tmppass[128];
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, ORANGE, "USAGE: /register [password]");
				return 1;
			}
			strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
//			Encrypt(tmppass);
			OnPlayerRegister(playerid,tmppass);
		}
		return 1;
	}
if (strcmp(cmd, "/cclogin", true) ==0 )
{
	tmp = strtok(cmdtext,idx);
    if(IsLogged[playerid] == 0) return SendClientMessage(playerid,RED,"You must be logged in to login as a CC member. ( /login )");
	if(CCIsLogged[playerid] == 1) return SendClientMessage(playerid,RED,"You are already logged in as a Crucio member.");
	if(!strlen(tmp))
	{
		SendClientMessage(playerid,ORANGE,"USAGE: /cclogin [password]");
		SendClientMessage(playerid,ORANGE,"FUNCTION: Will login as a Crucio Clan member if password is valid.");
	}
	else if(strcmp(tmp,"ccpwnz411",true) == 0)
	{
	    GetPlayerName(playerid, player, sizeof(player));
		CCIsLogged[playerid] = 1;
		SendClientMessage(playerid,GREEN,"You are now logged in as a Crucio member.");
		SetPlayerColor(playerid,LIGHTGREEN);
		format(string, sizeof(string), "%s logged in as a Crucio member.", player);
		SendClientMessageToCC(GREEN,string);
	}
	else
	{
		SendClientMessage(playerid,RED,"Password Incorrect");
	}
	return 1;
}
if (strcmp(cmd, "/cclogout", true) ==0 )
{
	SendClientMessage(playerid,GREEN,"You have logged out from CC login.");
	CCIsLogged[playerid] = 0;
	SetPlayerColor(playerid,PLAYER_COLOR);
	return 1;
}
if (strcmp(cmd, "/ccvip", true) ==0 )
{
    if (PlayerInfo[playerid][pAdminLevel] > 4 || IsPlayerAdmin(playerid))
	{
	    if(CCIsLogged[playerid] == 0) return SendClientMessage(playerid,RED,"You must be a Crucio Clan member to activate this command.");
		tmp = strtok(cmdtext,idx);
	    if(!strlen(tmp))
		{
			SendClientMessage(playerid,ORANGE,"USAGE: /ccvip [playerid]");
			SendClientMessage(playerid,ORANGE,"FUNCTION: Will login a specified player to CC as a V.I.P.");
		}
		giveplayerid = ReturnUser(tmp);
		if(giveplayerid != INVALID_PLAYER_ID)
		{
		    GetPlayerName(playerid, player, sizeof(player));
			GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			CCIsLogged[giveplayerid] = 1;
			format(string, sizeof(string), "Admin %s logged you in as Crucio V.I.P.", player);
			SendClientMessage(giveplayerid,GREEN,string);
			format(string, sizeof(string), "Player %s is now logged in as a Crucio V.I.P.", giveplayer);
			SendClientMessage(playerid,GREEN,string);
			SetPlayerColor(giveplayerid,LIGHTGREEN);
		}
		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid,RED,string);
		}
	}
	else
	{
		SendClientMessage(playerid,RED,"You are not an admin with the required level.");
	}
	return 1;
}
if (strcmp(cmd, "/cclogoutp", true) ==0 )
{
    if (PlayerInfo[playerid][pAdminLevel] > 4 || IsPlayerAdmin(playerid))
	{
	    if(CCIsLogged[playerid] == 0) return SendClientMessage(playerid,RED,"You must be a Crucio Clan member to activate this command.");
		tmp = strtok(cmdtext,idx);
	    if(!strlen(tmp))
		{
			SendClientMessage(playerid,ORANGE,"USAGE: /cclogoutp [playerid]");
			SendClientMessage(playerid,ORANGE,"FUNCTION: Will logout the specified player from CC access.");
		}
		giveplayerid = ReturnUser(tmp);
		if(giveplayerid != INVALID_PLAYER_ID)
		{
		    GetPlayerName(playerid, player, sizeof(player));
			GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			CCIsLogged[giveplayerid] = 0;
			format(string, sizeof(string), "Admin %s logged you out of CC.", player);
			SendClientMessage(giveplayerid,GREEN,string);
			format(string, sizeof(string), "Player %s logged out from CC.", giveplayer);
			SendClientMessage(playerid,GREEN,string);
			SetPlayerColor(giveplayerid,PLAYER_COLOR);
		}
		else if(giveplayerid == INVALID_PLAYER_ID)
		{
			format(string, sizeof(string), "%d is not an active player.", giveplayerid);
			SendClientMessage(playerid,RED,string);
		}
	}
	else
	{
		SendClientMessage(playerid,RED,"You are not an admin with the required level.");
	}
	return 1;
}
/*------------------------------------------------/Invalid Command\------------------------------------------------*/
else
	{
		format(string, sizeof(string), "%s is an Unknown Command. Type /commands for all the commands you can use.", cmdtext);
		SendClientMessage(playerid, RED, string);
	}
return 1;
}

public OnPlayerInfoChange(playerid)
{
	return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
	if (oldstate == PLAYER_STATE_SPECTATING && newstate == 2)
	{
		new giveplayerid;
    	PlayerSpectateVehicle(playerid, GetPlayerVehicleID(giveplayerid));
	}
	return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
	return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
	return 1;
}

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

public OnObjectMoved(objectid)
{
	return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == DMexitICON)
{GameTextForPlayer(playerid,"Type ~r~/exitdm~n~~w~to exit the arena.",5000,5);}
if (pickupid == deagle)
{GivePlayerWeapon(playerid,24,9999999);}
if (pickupid == shotgun)
{GivePlayerWeapon(playerid,25,9999999);}
if (pickupid == sawnoff)
{GivePlayerWeapon(playerid,26,9999999);}
if (pickupid == spaz)
{GivePlayerWeapon(playerid,27,9999999);}
if (pickupid == uzi)
{GivePlayerWeapon(playerid,28,9999999);}
if (pickupid == mp5)
{GivePlayerWeapon(playerid,29,9999999);}
if (pickupid == ak)
{GivePlayerWeapon(playerid,30,9999999);}
if (pickupid == m4)
{GivePlayerWeapon(playerid,31,9999999);}
if (pickupid == pistol)
{GivePlayerWeapon(playerid,22,9999999);}
if (pickupid == tec9)
{GivePlayerWeapon(playerid,32,9999999);}
if (pickupid == sniper1)
{GivePlayerWeapon(playerid,34,50);}
if (pickupid == sniper2)
{GivePlayerWeapon(playerid,34,50);}
if (pickupid == rocketlaunch)
{GivePlayerWeapon(playerid,35,5);}
if (pickupid == armor)
{SetPlayerArmour(playerid,100);}
if (pickupid == knife)
{GivePlayerWeapon(playerid,4,1);}
if (pickupid == CCm4)
{GivePlayerWeapon(playerid,31,300);}
if (pickupid == CCak47)
{GivePlayerWeapon(playerid,30,300);}
if (pickupid == CCsniper)
{GivePlayerWeapon(playerid,34,50);}
	return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
	return 1;
}

public OnPlayerExitedMenu(playerid)
{
	return 1;
}

stock IsPlayerInArea(playerid,Float:max_x,Float:min_x,Float:max_y,Float:min_y)
{
	new Float:X;
	new Float:Y;
	new Float:Z;
	GetPlayerPos(playerid, X, Y, Z);
	if(X <= max_x && X >= min_x && Y <= max_y && Y >= min_y) {
	return 1;
	}
	return 0;
}

public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    if(IsPlayerConnected(playerid))
	{
		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);
		//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
		if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
		{
			return 1;
		}
	}
	return 0;
}
public ScoreCheck(killerid)
{
for (new playerid; playerid < MAX_PLAYERS; playerid++)
{
	new Float:X,Float:Y,Float:Z;
	GetPlayerPos(playerid,X,Y,Z);
    if (GetPlayerScore(playerid) == 10)
    {
    KillTimer(DM);
    SetPlayerScore(playerid, 11);
    GetPlayerName(playerid, player, sizeof(player));
    new string[256];
    format(string, sizeof(string), "%s is on fire !",player);
	SendClientMessageToAll(LIGHTRED,string);
	DM = SetTimerEx("ScoreCheck",1000,1,"d",playerid);
	}
 	if (GetPlayerScore(playerid) == 20)
    {
    KillTimer(DM);
    SetPlayerScore(playerid, 21);
    GetPlayerName(playerid, player, sizeof(player));
    new string[256];
    format(string, sizeof(string), "%s is on rampage !",player);
	SendClientMessageToAll(LIGHTRED,string);
	GivePlayerWeapon(playerid,35,3);
	DM = SetTimerEx("ScoreCheck",1000,1,"d",playerid);
	}
	if (GetPlayerScore(playerid) == 50)
    {
    KillTimer(DM);
    SetPlayerScore(playerid, 51);
    GetPlayerName(playerid, player, sizeof(player));
    new string[256];
    format(string, sizeof(string), "%s is on killing spree!!",player);
	SendClientMessageToAll(LIGHTRED,string);
	GivePlayerWeapon(playerid,38,30);
	SendClientMessage(playerid,GREEN,"Shhh, use this carefuly. Pwn those noobs !");
	DM = SetTimerEx("ScoreCheck",1000,1,"d",playerid);
	}
}
}

public ObjectAttachedToPlayer()
{
    for (new playerid; playerid < MAX_PLAYERS; playerid++)
	{
	new Float:X,Float:Y,Float:Z;
	GetPlayerPos(playerid,X,Y,Z);
	SetObjectPos(barrelplayer,X,Y,Z);
	}
return 1;
}

public DMStatsCheck(playerid)
{
	new string[128];
	new sstring[128];
	format(string, sizeof(string), "%d",KillScore[playerid]);
	TextDrawSetString(dmr, string);
	format(sstring, sizeof(sstring), "%d",DeathScore[playerid]);
	TextDrawSetString(dmrh, sstring);
	return 1;
}

public NuclearBombs()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
MoveObject(nb1,1338.494751, 2806.414795, 10.976404,15);
MoveObject(nb2,1339.085083, 2816.555176, 10.826490,15);
MoveObject(nb3,1312.968262, 2801.345703, 10.709347,15);
MoveObject(nb4,1340.083740, 2767.255615, 9.951471,15);
MoveObject(nb5,1335.993652, 2785.427734, 10.551495,15);
MoveObject(nb6,1314.530396, 2775.036865, 10.849953,15);
MoveObject(nb7,1293.614380, 2800.921631, 10.179447,15);
MoveObject(nb8,1291.764893, 2780.408936, 10.733095,15);
MoveObject(nb9,1294.043701, 2823.022461, 10.576481,15);
MoveObject(nb10,1269.976685, 2808.976318, 10.301491,15);
MoveObject(nb11,1257.521729, 2786.706299, 10.026489,15);
MoveObject(nb12,1214.732300, 2824.856689, 10.473565,10);
MoveObject(nb13,1174.542603, 2775.916504, 10.575199,10);
MoveObject(nb14,1140.503540, 2795.846436, 10.250143,10);
MoveObject(nb15,1191.946533, 2838.445801, 10.425194,10);
MoveObject(nb16,1170.051514, 2746.266357, 10.557978,10);
SetTimer("NuclearBombsSuccess",9000,0);
}
SendClientMessageToAll(RED,"[DM NEWS]: NUCLEAR BOMBS ARE LAUNCHING! WATCH OUT!!");
return 1;
}
public NuclearBombsSuccess()
{
CreateExplosion(1338.494751, 2806.414795, 10.976404,6,5.0);
CreateExplosion(1339.085083, 2816.555176, 10.826490,6,5.0);
CreateExplosion(1312.968262, 2801.345703, 10.709347,6,5.0);
CreateExplosion(1340.083740, 2767.255615, 9.951471,6,5.0);
CreateExplosion(1335.993652, 2785.427734, 10.551495,6,5.0);
CreateExplosion(1314.530396, 2775.036865, 10.849953,6,5.0);
CreateExplosion(1293.614380, 2800.921631, 10.179447,6,5.0);
CreateExplosion(1291.764893, 2780.408936, 10.733095,6,5.0);
CreateExplosion(1294.043701, 2823.022461, 10.576481,6,5.0);
CreateExplosion(1269.976685, 2808.976318, 10.301491,6,5.0);
CreateExplosion(1257.521729, 2786.706299, 10.026489,6,5.0);
CreateExplosion(1214.732300, 2824.856689, 10.473565,6,5.0);
CreateExplosion(1174.542603, 2775.916504, 10.575199,6,5.0);
CreateExplosion(1140.503540, 2795.846436, 10.250143,6,5.0);
CreateExplosion(1191.946533, 2838.445801, 10.425194,6,5.0);
CreateExplosion(1170.051514, 2746.266357, 10.557978,6,5.0);
DestroyObject(nb1);
DestroyObject(nb2);
DestroyObject(nb3);
DestroyObject(nb4);
DestroyObject(nb5);
DestroyObject(nb6);
DestroyObject(nb7);
DestroyObject(nb8);
DestroyObject(nb9);
DestroyObject(nb10);
DestroyObject(nb11);
DestroyObject(nb12);
DestroyObject(nb13);
DestroyObject(nb14);
DestroyObject(nb15);
DestroyObject(nb16);
nb1 = CreateObject(3786, 1411.922119, 2805.617920, 82.026489, 0, 318.747, 0);
nb2 = CreateObject(3786, 1410.384888, 2816.555176, 82.051491, 0, 318.747, 0);
nb3 = CreateObject(3786, 1387.416748, 2801.345703, 85.159370, 0, 318.747, 0);
nb4 = CreateObject(3786, 1417.482666, 2767.255615, 87.051491, 0, 318.747, 0);
nb5 = CreateObject(3786, 1416.013794, 2785.427734, 90.301491, 0, 318.747, 0);
nb6 = CreateObject(3786, 1397.005127, 2775.036865, 91.949928, 0, 318.747, 348.75);
nb7 = CreateObject(3786, 1374.013306, 2799.821045, 93.629433, 0, 318.747, 0);
nb8 = CreateObject(3786, 1374.415039, 2781.507568, 93.958092, 0, 318.747, 0);
nb9 = CreateObject(3786, 1374.492432, 2823.022461, 91.076492, 0, 318.747, 0);
nb10 = CreateObject(3786, 1361.251709, 2808.976318, 101.551491, 0, 318.747, 0);
nb11 = CreateObject(3786, 1338.346802, 2786.706299, 90.801491, 0, 318.747, 0);
nb12 = CreateObject(3790, 1214.732300, 2824.856689, 57.448601, 357.6293, 272.3375, 6.8755);
nb13 = CreateObject(3790, 1174.542603, 2775.916504, 52.075165, 357.6293, 272.3375, 6.8755);
nb14 = CreateObject(3790, 1140.503540, 2795.846436, 59.025101, 357.6293, 272.3375, 6.8755);
nb15 = CreateObject(3790, 1191.946533, 2838.445801, 58.025162, 357.6293, 272.3375, 6.8755);
nb16 = CreateObject(3790, 1170.051514, 2746.266357, 52.782974, 357.6293, 272.3375, 6.8755);
return 1;
}

public VehRepair()
{
    for (new playerid; playerid < MAX_PLAYERS; playerid++)
	{
		SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
		TogglePlayerControllable(playerid,1);
	}
	return 1;
}
public PingCheck(playerid)
{
	if (GetPlayerPing(playerid) >=800)
	{
	    GetPlayerName(playerid, player, sizeof(player));
	    new string[128];
	    format(string, sizeof(string), "-| Auto-System kicked %s. [Reason: High Ping( %d ) ]|-", player,GetPlayerPing(playerid));
		SendClientMessageToAll(ADMIN_RED, string);
	    Kick(playerid);
	}
return 1;
}

public CCAreaCheck()
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
    	if (IsPlayerInArea(i,-724.0283, 887.5186, -630.6053, 992.6194) || CCIsLogged[i] == 0)
    	{
    	    if (!IsPlayerInArea(i,724.0283, 887.5186, -630.6053, 992.6194))
    	    {
    	    	CCAC = SetTimerEx("CCAreaCheck",1000,1,"d",i);
    	    }
    	    else
    	    {
    	    	SendClientMessageToCC(RED, "[ALARM]: Intruder alert! An intruder has trespassed the CC HQ! Go kill him now !!");
    	    	KillTimer(CCAC);
    	    }
		}
	}
	return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
	new x = 0;
	while(x!=MAX_PLAYERS) {
	    if( IsPlayerConnected(x) &&	GetPlayerState(x) == PLAYER_STATE_SPECTATING &&
			SpectateID[x] == playerid && SpectateType[x] == SPEC_TYPE_PLAYER )
   		{
   		    SetPlayerInterior(x,newinteriorid);
		}
		x++;
	}
}

public AttachPlayer( Float:X, Float:Y, Float:Z)
{
    for (new playerid; playerid < MAX_PLAYERS; playerid++)
	{
	new Float:health;
	GetPlayerHealth(playerid,health);
	SetPlayerPos(playerid,X,Y,Z+2);
	SetPlayerHealth(playerid,health);
	}
	return 1;
}

public VehLock()
{
    for (new playerid; playerid < MAX_PLAYERS; playerid++)
	{
    	if (GetPlayerState(playerid) == 2)
		{
   for(new i = 0; i < MAX_PLAYERS; i++)
			{
	    		SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 1);
			}
			SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), playerid, 0, 0);
		}
		else
		{
	    	KillTimer(CarLock);
		}
	}
return 1;
}

public WebSite()
{
    SendClientMessageToAll(LIGHTGREEN, "_______________________________");
	SendClientMessageToAll(YELLOW, "     Please visit our site: ");
	SendClientMessageToAll(YELLOW, "       www.seifweb.co.nr ");
	SendClientMessageToAll(YELLOW, "    Use the register button. ");
	SendClientMessageToAll(LIGHTGREEN, "_______________________________");
	KillTimer(WebAn);
	An1 = SetTimer("Announcement1", 450000, 1);
	return 1;
}
public Announcement1()
{
    SendClientMessageToAll(ANNOUNCEMENT, "Found a cheater or a rule breaker? Report him to the admins! ( /report [id] [reason] )");
    An2 = SetTimer("Announcement2", 450000, 1);
    KillTimer(An1);
	return 1;
}
public Announcement2()
{
    SendClientMessageToAll(ANNOUNCEMENT, "Need some killing action? Go to the DeathMatching arena! ( /dm )");
    An3 = SetTimer("Announcement3", 450000, 1);
    KillTimer(An2);
	return 1;
}
public Announcement3()
{
    SendClientMessageToAll(ANNOUNCEMENT, "Want to tune your ride? Go to the tunning garage! ( /trans - /arch - /loco )");
    An4 = SetTimer("Announcement4", 450000, 1);
    KillTimer(An3);
	return 1;
}
public Announcement4()
{
    SendClientMessageToAll(ANNOUNCEMENT, "New here? Start with some information and make sure to read the rules and check our commands! ( /help - /rules - /commands )");
   	An5 = SetTimer("Announcement5", 450000, 1);
    KillTimer(An4);
	return 1;
}
public Announcement5()
{
    SendClientMessageToAll(ANNOUNCEMENT, "Want to join the Crucio Clan(CC)? Just add Justin to your msn! ( crucio@hotmail.co.uk )");
   	An6 = SetTimer("Announcement6", 450000, 1);
    KillTimer(An5);
	return 1;
}
public Announcement6()
{
    SendClientMessageToAll(ANNOUNCEMENT, "Want to save your DeathMatching kills/deaths and your cash? Register! ( /register - /stats )");
   	WebAn = SetTimer("WebSite", 450000, 1);
    KillTimer(An6);
	return 1;
}
public OnVehicleMod(vehicleid, componentid)
{
	return 1;
}
public OnVehiclePaintjob(vehicleid, paintjobid)
{
	return 1;
}
public OnVehicleRespray(vehicleid, color1, color2)
{
	return 1;
}
/*public VehFullRepair()
{
    for (new playerid; playerid < MAX_PLAYERS; playerid++)
	{
		SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z);
	}
	return 1;
}*/

public ReplaceVehicle(vehicleid, Float:X, Float:Y, Float:Z, Float:Ang)
{
	SetVehiclePos(vehicleid, X, Y, Z);
	SetVehicleZAngle(vehicleid, Ang);
	SendToDriver(vehicleid, "You car has been repaired.");
	SetVehicleHealth(vehicleid,1000.0);
	SetCameraBehindPlayer(vehicleid);
	return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if (SuperPunch[playerid] == 1)
	{
	    if (GetPlayerState(playerid) != 2)
	    {
	    	if (newkeys == KEY_FIRE)
	    	{
	    	    if (GetPlayerWeapon(playerid) == 0)
	    	    {
	    	        new Float:X,Float:Y,Float:Z;
	    	        SetPlayerHealth(playerid,100.0);
	    	        GetPlayerPos(playerid,X,Y,Z);
	    	        CreateExplosion(X,Y,Z,7,7.0);
	    	        SetPlayerHealth(playerid,100.0);
	     	   }
	  	  	}
	    }
	}
	if (VehSuperPunch[playerid] == 1)
	{
	    if (GetPlayerState(playerid) == 2)
	    {
	    	if (newkeys == KEY_FIRE)
	    	{
      			new Float:X,Float:Y,Float:Z;
      		 	SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
 	        	GetPlayerPos(playerid,X,Y,Z);
 	        	CreateExplosion(X,Y,Z,7,7.0);
 	        	SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
	  	  	}
	    }
	}
	else if(GetPlayerState(playerid) == 2 && BombInstalled[GetPlayerVehicleID(playerid)] == 1)
	{
	    if(newkeys == KEY_FIRE)
	    {
	        //SetTimerEx("BombCar", 5000, 0, "i", GetPlayerVehicleID(playerid));
	        GameTextForPlayer(playerid, "~w~~r~~h~Bomb armed!", 299, 5);
	        Count[playerid] = 5;
	        SetTimerEx("BombCountDown", 1000, 0, "i", playerid);
	        BombInstalled[GetPlayerVehicleID(playerid)] = 0;
	        return 1;
		}
	}
	return 1;
}
public BombCountDown(playerid)
{
	if (Count[playerid] > 0)
	{
		GameTextForPlayer(playerid, BCountText[Count[playerid]-1], 1000, 5);
		Count[playerid]--;
		SetTimer("BombCountDown", 1000, 0);
	}
	else
	{
		GameTextForPlayer(playerid, "~r~Boom!!", 1500, 5);
		Count[playerid] = 5;
		BombCar(GetPlayerVehicleID(playerid));
	}
}

public BombCar(vehicleid)
{
	new Float:X, Float:Y, Float:Z;
	SetVehicleHealth(vehicleid, 0.0);
	GetVehiclePos(vehicleid, X, Y, Z);
	CreateExplosion(X+2, Y+2, Z+2, 7, 20.0);
	CreateExplosion(X, Y, Z, 7, 20.0);
	return 1;
}
public BombPickup(playerid)
{
    if (PlayerToPoint(4.0, playerid, 2505.5649,-1693.8972,13.5582))
 	{
    	GameTextForPlayer(playerid,"Type ~r~~h~/bomb~n~~w~to install a bomb to~n~your vehicle for ~n~~g~~h~$50 000",10000,5);
    }
	return 1;
}
public CountDown()
{
	if (CountD > 0)
	{
		GameTextForAll(CountText[CountD-1], 1500, 5);
		CountD--;
		SetTimer("CountDown", 1000, 0);
	}
	else
	{
		GameTextForAll("~g~~h~!!! GO GO GO !!!", 1500, 5);
		CountD = 5;
	}
	return 1;
}