#1

C:\DOCUME~1\user\Desktop\MARXRE~1\GAMEMO~1\PRRP.pw n(1336) : error 010: invalid function or declaration
C:\DOCUME~1\user\Desktop\MARXRE~1\GAMEMO~1\PRRP.pw n(1336 -- 3292) : error 010: invalid function or declaration
C:\DOCUME~1\user\Desktop\MARXRE~1\GAMEMO~1\PRRP.pw n(1336 -- 3293) : error 010: invalid function or declaration
C:\DOCUME~1\user\Desktop\MARXRE~1\GAMEMO~1\PRRP.pw n(1336 -- 3293) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Код:
1336Float:GetDistanceBetweenPlayers(iPlayerOne, iPlayerTwo)
{
	new
		Float: fPlayerPos[3];

	GetPlayerPos(iPlayerOne, fPlayerPos[0], fPlayerPos[1], fPlayerPos[2]);
	return GetPlayerDistanceFromPoint(iPlayerTwo, fPlayerPos[0], fPlayerPos[1], fPlayerPos[2]);
}

RespawnNearbyVehicles(playerid, Float:radi)
{
	new Float:x, Float:y, Float:z;
	GetPlayerPos(playerid, x, y, z);
	for(new i=1; i<MAX_VEHICLES; i++)
	{
		if(GetVehicleModel(i))
		{
			new Float:posx, Float:posy, Float:posz;
			new Float:tempposx, Float:tempposy, Float:tempposz;
			GetVehiclePos(i, posx, posy, posz);
			tempposx = (posx - x);
			tempposy = (posy - y);
			tempposz = (posz - z);
			if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
			{
				SetVehicleToRespawn(i);
			}
		}
	}
}


enum VehicleRadioEnum
{
	radioname[32],
	radiourl[128],
	listeners
}

new VehicleRadioListing[220][VehicleRadioEnum] = {
// King Server (0-9)
{"Pakistan National Tone","http://www.woo55.com/adata/11069/ow59LUN3ODCf.129.mp3"},
{"Islam Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=135938"},
{"Islamic Radio 1","http://yp.shoutcast.com/sbin/tunein-station.pls?id=66403"},
{"Islamic Radio 2","http://yp.shoutcast.com/sbin/tunein-station.pls?id=218355"},
{"Party Songs 1","http://rd.dnt.net.pk:8002/listen.pls"},
{"Party Songs 2","http://yp.shoutcast.com/sbin/tunein-station.pls?id=135389"},
{"Party Songs 3","http://yp.shoutcast.com/sbin/tunein-station.pls?id=70868"},
{"KCRW Simulcas","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1269598"},
{"Metal Only","http://yp.shoutcast.com/sbin/tunein-station.pls?id=477309"},
{"1.FM Channel X","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1274225"},

// Blues 10-19)
{"1.FM - Blues","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1270282"},
{"BellyUp4Blues","http://yp.shoutcast.com/sbin/tunein-station.pls?id=11408"},
{"CALMRADIO - BLUES","http://yp.shoutcast.com/sbin/tunein-station.pls?id=205177"},
{"KOQX Blues Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1271824"},
{"GotRadio - Bit 'O Blues","http://yp.shoutcast.com/sbin/tunein-station.pls?id=533805"},
{"radioio blues","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1278494"},
{"Polskie Radio - Blues","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1044755"},
{"Big Blue Swing","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377377"},
{"City Sounds Radio Blues","http://yp.shoutcast.com/sbin/tunein-station.pls?id=20151"},
{"Calm Radio Blues","http://yp.shoutcast.com/sbin/tunein-station.pls?id=205177"},

// Classical (20-29)
{"CLASSICAL 102","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1676910"},
{"Iowa Public Radio Classical","http://yp.shoutcast.com/sbin/tunein-station.pls?id=177883"},
{"181.FM Classic Hits","http://yp.shoutcast.com/sbin/tunein-station.pls?id=213419"},
{"Cinemix","http://yp.shoutcast.com/sbin/tunein-station.pls?id=614375"},
{"Venice Classic Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1704166"},
{"Solo Piano SKY.FM.","http://yp.shoutcast.com/sbin/tunein-station.pls?id=600682"},
{"Mostly Classical - SKY.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=744232"},
{"Adagio.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=212505"},
{"Classical 96.3FM CFMZ","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2271823"},
{"Abacus.fm Mozart Piano","http://yp.shoutcast.com/sbin/tunein-station.pls?id=119965"},

// Country (30-39)
{"181.FM Kickin' Country","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687"},
{"Always Country","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1274260"},
{"COUNTRY 108","http://yp.shoutcast.com/sbin/tunein-station.pls?id=668943"},
{"181.FM Highway 181","http://yp.shoutcast.com/sbin/tunein-station.pls?id=147942"},
{"HPR1","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1270526"},
{"Radio Positiva Sertaneja","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2890335"},
{"1.FM Country","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1274603"},
{"Boot Liquor","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377561"},
{"Absolute COUNTRY Hits","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1268458"},
{"181.FM Real Country","http://yp.shoutcast.com/sbin/tunein-station.pls?id=163622"},

// Decades (40-49)
{"Big R Radio Warm 101.6","http://yp.shoutcast.com/sbin/tunein-station.pls?id=33097"},
{"Big R Radio The Hawk","http://yp.shoutcast.com/sbin/tunein-station.pls?id=211531"},
{"Big R Radio 100.7 The Mix","http://yp.shoutcast.com/sbin/tunein-station.pls?id=61826"},
{"Abacus.fm Vintage Jazz","http://yp.shoutcast.com/sbin/tunein-station.pls?id=242774"},
{"Oldies104","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1271826"},
{"1.FM 50s and 60s","http://yp.shoutcast.com/sbin/tunein-station.pls?id=37833"},
{"The Doo-Wop Express","http://yp.shoutcast.com/sbin/tunein-station.pls?id=727560"},
{"Beatles Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1273220"},
{"1.FM 80s Channel","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1274599"},
{"SKY.FM 80s","http://yp.shoutcast.com/sbin/tunein-station.pls?id=737152"},

// Easy Listening (50-59)
{"Slow Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1658657"},
{"MUSIK.LOUNGE","http://yp.shoutcast.com/sbin/tunein-station.pls?id=130940"},
{"Blue FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=48138"},
{"SKY.FM Mostly Classical","http://yp.shoutcast.com/sbin/tunein-station.pls?id=744232"},
{"Radio227 Easy Listening","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2313198"},
{"COOL93","http://yp.shoutcast.com/sbin/tunein-station.pls?id=63135"},
{"KLUX 89.5HD -","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1697"},
{"AbidingRadio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=470854"},
{"Lounge Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1288934"},
{"1.FM The Chillout Loung","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1268725"},

// Electronic (60-69)
{"TechnoBase.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377200"},
{"Vocal Trance","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1177953"},
{"MUSIK.HOUSE Funky","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2128868"},
{"Trance Channel","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1193516"},
{"HouseTime.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377360"},
{"dubstep.fm","http://yp.shoutcast.com/sbin/tunein-station.pls?id=7225"},
{"54House.FM.","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2808203"},
{"#MUSIK.DRUMSTEP","http://yp.shoutcast.com/sbin/tunein-station.pls?id=46883"},
{"HardBase.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377430"},
{"Techno4Ever Main","http://yp.shoutcast.com/sbin/tunein-station.pls?id=226769"},

// Folk (70-79)
{"Radio Free Vermont","http://yp.shoutcast.com/sbin/tunein-station.pls?id=168942"},
{"Pink Narodna Muzika","http://yp.shoutcast.com/sbin/tunein-station.pls?id=883729"},
{"Dzungla Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1279638"},
{"Folk Alley","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1273365"},
{"Radio BN","http://yp.shoutcast.com/sbin/tunein-station.pls?id=29949"},
{"Radio Glas Drine","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1841408"},
{"COOL radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=550002"},
{"AM 1710 Antioch OT","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2699"},
{"A&P Radio Network","http://yp.shoutcast.com/sbin/tunein-station.pls?id=563824"},
{"New Age SKY.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=412093"},

// Inspirational (80-89)
{"Russian Christian Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280598"},
{"AbidingRadio INSTRUMENTAL","http://yp.shoutcast.com/sbin/tunein-station.pls?id=470854"},
{"1-ONE NATION FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1988533"},
{"XL Radio Gurbani Kirtan","http://yp.shoutcast.com/sbin/tunein-station.pls?id=272693"},
{"Radio Lumiere Miami","http://yp.shoutcast.com/sbin/tunein-station.pls?id=341387"},
{"Ancient Faith Music","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2010550"},
{"Bautista Radio 89.7 FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=347942"},
{"Radio Nueva Vida","http://yp.shoutcast.com/sbin/tunein-station.pls?id=208506"},
{"ChristianRock","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1266649"},
{"FBC Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=95154"},

// International (90-99)
{"Arabic Music Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=326370"},
{"SEOULFM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=246183"},
{"Radio CARERA NUMBER ONE","http://yp.shoutcast.com/sbin/tunein-station.pls?id=289391"},
{"Schlagerhoelle","http://yp.shoutcast.com/sbin/tunein-station.pls?id=702040"},
{"Ballermann-Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=63072"},
{"RADIONL","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281197"},
{"RaDioTEENTAAL","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1268068"},
{"Tutku Fm","http://yp.shoutcast.com/sbin/tunein-station.pls?id=21994"},
{"Radio Jacaro","http://yp.shoutcast.com/sbin/tunein-station.pls?id=228698"},
{"BeirutNights","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1168254"},

// Jazz (100-109)
{"SMOOTHJAZZ","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1339789"},
{"Absolutely Smooth Jazz SKY.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=496891"},
{"SwissGroove","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1269641"},
{"Dinner Jazz Excursion","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1272149"},
{"181.fm The Breeze","http://yp.shoutcast.com/sbin/tunein-station.pls?id=133405"},
{"A1Smooth","http://yp.shoutcast.com/sbin/tunein-station.pls?id=348116"},
{"SmoothLounge","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1339960"},
{"1.FM Bay Smooth Jazz","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1271416"},
{"CROOZE","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1269135"},
{"Jazz Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1256018"},

// Latin (110-119)
{"Salsa SKY.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=835183"},
{"La X Estereo 100 Pura Salsa","http://yp.shoutcast.com/sbin/tunein-station.pls?id=96644"},
{"Reggaeton 24/7","http://yp.shoutcast.com/sbin/tunein-station.pls?id=56349"},
{"LATINO FM EN DIRECTO","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280049"},
{"Suave 107.3 FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1593716"},
{"LA PACHANGUERA FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2147665"},
{"XHBIO FIESTA MEXICANA","http://yp.shoutcast.com/sbin/tunein-station.pls?id=338824"},
{"Latin.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=381441"},
{"MKM CARAIBE","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1818724"},
{"FUSION","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2919730"},

// Metal (120-129)
{"MUSIK.ROCK","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1275071"},
{"RockRadio1","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1105299"},
{"METAL ONLY","http://yp.shoutcast.com/sbin/tunein-station.pls?id=477309"},
{"RockRadio1","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1105299"},
{"ChroniX GRIT Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2187022"},
{"MUSIK.METAL","http://yp.shoutcast.com/sbin/tunein-station.pls?id=141469"},
{"Hard Rock Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=625229"},
{"Death.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2885733"},
{"Big R Radio 80s Metal FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=278974"},
{"1.FM High Voltage","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1272098"},

// Misc (130-139)
{"TOP100","http://yp.shoutcast.com/sbin/tunein-station.pls?id=239589"},
{"TOP 100 ReaLCasT","http://yp.shoutcast.com/sbin/tunein-station.pls?id=242423"},
{"NeoFM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=548973"},
{"radioparty.pl","http://yp.shoutcast.com/sbin/tunein-station.pls?id=97678"},
{"Desetka Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377246"},
{"Adom 106.3FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=292951"},
{"Joy FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=3730"},
{"RADIO INFERNO MANELE","http://yp.shoutcast.com/sbin/tunein-station.pls?id=293251"},
{"Narodni radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=31307"},
{"RaDYO DoGu MiX","http://yp.shoutcast.com/sbin/tunein-station.pls?id=245201"},

// New Age (140-149)
{"Nirvana Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1272871"},
{"Radio Art","http://yp.shoutcast.com/sbin/tunein-station.pls?id=411208"},
{"Trancemission.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1272865"},
{"Pianorama","http://yp.shoutcast.com/sbin/tunein-station.pls?id=27717"},
{"RADIO GAIA","http://yp.shoutcast.com/sbin/tunein-station.pls?id=187880"},
{"M2 CHILLOUT","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1279147"},
{"Underground Eighties","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377340"},
{"Digital Relax","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1254140"},
{"meditation.fm","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2269332"},
{"1.FM Flashback Alternatives","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1268764"},

// Pop (150-159)
{"181.FM - POWER 181","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283896"},
{"Radio Paloma","http://yp.shoutcast.com/sbin/tunein-station.pls?id=710507"},
{"MUSIK.MAIN","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1275878"},
{".977 The Hitz Channel","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280356"},
{"Lux FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=967434"},
{"Radio VHR","http://yp.shoutcast.com/sbin/tunein-station.pls?id=117838"},
{"Radio Paloma","http://yp.shoutcast.com/sbin/tunein-station.pls?id=710507"},
{"ChartHits.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=43280"},
{"Top Hits Music SKY.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=728272"},
{"Pop Radio One","http://yp.shoutcast.com/sbin/tunein-station.pls?id=128879"},

// Public Radio (160-169)
{"WUNC FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1271964"},
{"KPBS","http://yp.shoutcast.com/sbin/tunein-station.pls?id=632915"},
{"89.7 WUWM HD","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1278952"},
{"WHRO","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1544465"},
{"KCRW ECLECTIC24","http://yp.shoutcast.com/sbin/tunein-station.pls?id=56697"},
{"SomaFM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377771"},
{"WKCR","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2100812"},
{"Rete Sport","http://yp.shoutcast.com/sbin/tunein-station.pls?id=3090344"},
{"North Country Public Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=857520"},
{"RIPR","http://yp.shoutcast.com/sbin/tunein-station.pls?id=232368"},

// R&B/Urban (170-179)
{"DEFJAY.DE","http://yp.shoutcast.com/sbin/tunein-station.pls?id=65456"},
{"Amped FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=178297"},
{"HIT104","http://yp.shoutcast.com/sbin/tunein-station.pls?id=663859"},
{"BreakZ.us","http://yp.shoutcast.com/sbin/tunein-station.pls?id=127014"},
{"181.fm True R&B","http://yp.shoutcast.com/sbin/tunein-station.pls?id=83968"},
{"1POWER","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283516"},
{"BlackBeats.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1543115"},
{"Lenz Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1273477"},
{"DEFJAY.COM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=616366"},
{"Spin 1038","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1328653"},

// Rap (180-189)
{"HOT 108 JAMZ","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016"},
{"MUSIK.JAM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1269742"},
{"181.FM The BEAT","http://yp.shoutcast.com/sbin/tunein-station.pls?id=166078"},
{"Smoothbeats","http://yp.shoutcast.com/sbin/tunein-station.pls?id=9054"},
{"108.FM THE HITLIST","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1282490"},
{"TrueHipHop","http://yp.shoutcast.com/sbin/tunein-station.pls?id=3083251"},
{"A1Jamz","http://yp.shoutcast.com/sbin/tunein-station.pls?id=49567"},
{"True Beats","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1267461"},
{"MKM URBAN","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1818926"},
{"G'D UP RADIO","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1504548"},

// Reggae (190-199)
{"Roots Reggae SKY.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=695657"},
{"La Grosse Radio Reggae","http://yp.shoutcast.com/sbin/tunein-station.pls?id=5661"},
{"BigUpRadio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1269793"},
{"Raggakings","http://yp.shoutcast.com/sbin/tunein-station.pls?id=123431"},
{"PONdENDS","http://yp.shoutcast.com/sbin/tunein-station.pls?id=221874"},
{"Reggae141","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280855"},
{"Reggae Radio Rasta","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1266989"},
{"1.FM ReggaeTrade","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1272779"},
{"Raggakings","http://yp.shoutcast.com/sbin/tunein-station.pls?id=123431"},
{"Black Roots Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=231554"},

// Rock (200-209)
{"181.FM - The Buzz","http://yp.shoutcast.com/sbin/tunein-station.pls?id=37586"},
{"NOISEfm.pl","http://yp.shoutcast.com/sbin/tunein-station.pls?id=3121111"},
{"Radio Paradise","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1354805"},
{"MUSIK.ROCK","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1275071"},
{"181.FM Good Time Oldies","http://yp.shoutcast.com/sbin/tunein-station.pls?id=25287"},
{"181.fm Rock 181","http://yp.shoutcast.com/sbin/tunein-station.pls?id=302754"},
{"ROCKY FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=684390"},
{"ChroniX Aggression","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377260"},
{"Rockenfolie","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2865"},
{"80s SKY.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=737152"},

// Talk (210-219)
{"Alex Jones","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1026951"},
{"AM 1710 Antioch","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2699"},
{"89.3 KPCC","http://yp.shoutcast.com/sbin/tunein-station.pls?id=179361"},
{"The Very Best Of Art Bell","http://yp.shoutcast.com/sbin/tunein-station.pls?id=47835"},
{"KCRW ALL NEWS","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1279013"},
{"2GB Sydney Talk","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1346749"},
{"Broadband Comedy Network","http://yp.shoutcast.com/sbin/tunein-station.pls?id=3095781"},
{"181.FM Comedy Club","http://yp.shoutcast.com/sbin/tunein-station.pls?id=52807"},
{"Social Crime Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=179709"},
{"Radio Carlin","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1495362"}
};

enum pCrime
{
	pBplayer[32],
	pAccusing[32],
	pAccusedof[32],
	pVictim[32],
};
new PlayerCrime[MAX_PLAYERS][pCrime];


enum EventKernelEnum
{
	EventAdvisor,
	EventStatus,
	EventType,
	EventInfo[128],
	Float: EventHealth,
	Float: EventArmor,
	Float: EventPositionX,
	Float: EventPositionY,
	Float: EventPositionZ,
	EventInterior,
	EventWorld,
	EventWeapons[5],
	EventTeamColor[2],
    EventTeamSkin[2],
    EventLimit,
    EventTime,
	EventFootRace,
    EventPlayers,
    EventRequest,
    EventStartRequest,
    EventCreator,
    EventStaff[5],
    EventJoinStaff,
    VipOnly,
    Float: EventTeamPosX1,
    Float: EventTeamPosY1,
    Float: EventTeamPosZ1,
    Float: EventTeamPosX2,
    Float: EventTeamPosY2,
    Float: EventTeamPosZ2
}
new EventKernel[EventKernelEnum];

enum reportinfo
{
	HasBeenUsed,
	Report[140],
	ReportFrom,
	CheckingReport,
 	TimeToExpire,
	BeingUsed,
	ReportExpireTimer,
	ReplyTimerr
}

new Reports[MAX_REPORTS][reportinfo];
new ListItemReportId[MAX_PLAYERS][40];
new CancelReport[MAX_PLAYERS];

enum Spikes
{
	Float:sX,
	Float:sY,
	Float:sZ,
	sObjectID,
	sDeployedBy[MAX_PLAYER_NAME],
	sDeployedAt[MAX_ZONE_NAME]
}
new SpikeStrips[10][Spikes];

enum fInfo
{
	FamilyBackup,
	FamilyTaken,
	FamilyName[42],
	FamilyMOTD[65],
	FamilyColor,
	FamilyTurfTokens,
	FamilyLeader[MAX_PLAYER_NAME],
	FamilyMembers,
	Float:FamilySpawn[4],
	FamilyInterior,
	FamilyCash,
	FamilyBank,
	FamilyMats,
	FamilyPot,
	FamilyCrack,
	Float:FamilySafe[3],
	FamilyUSafe,
	FamilyRank1[20],
	FamilyRank2[20],
	FamilyRank3[20],
	FamilyRank4[20],
	FamilyRank5[20],
	FamilyRank6[20],
	FamilyPickup,
	FamilyMaxSkins,
	FamilySkins[8],
	Float: FamilyEntrance[4],
	Float: FamilyExit[4],
	FamilyEntrancePickup,
	FamilyExitPickup,
	Text3D:FamilyEntranceText,
	Text3D:FamilyExitText,
	FamilyCustomMap,
	FamilyVirtualWorld,
	FamilyResetSpawns,
	FamilyGuns[10],
};
new FamilyInfo[MAX_FAMILY][fInfo];


new FactionPay[5][7];


enum cdInfo
{
	cdOwned,
	cdOwner[MAX_PLAYER_NAME],
	Float: cdEntranceX,
	Float: cdEntranceY,
	Float: cdEntranceZ,
	Float: cdExitX,
	Float: cdExitY,
	Float: cdExitZ,
	cdMessage[128],
	cdTill,
	cdInterior,
	Float: cdVehicleSpawn[4],
	Float: cdRadius,
	cdPrice,
	Float: cdVehicleSpawnX[MAX_DEALERSHIPVEHICLES],
	Float: cdVehicleSpawnY[MAX_DEALERSHIPVEHICLES],
	Float: cdVehicleSpawnZ[MAX_DEALERSHIPVEHICLES],
	Float: cdVehicleSpawnAngle[MAX_DEALERSHIPVEHICLES],
	cdVehicleModel[MAX_DEALERSHIPVEHICLES],
	cdVehicleCost[MAX_DEALERSHIPVEHICLES],
	cdVehicleId[MAX_DEALERSHIPVEHICLES], // non-saved
	cdPickupID, // non-saved
	Text3D:cdTextLabel, // non-saved
	Text3D:cdVehicleLabel[MAX_DEALERSHIPVEHICLES], // non-saved
	cdDonator,
};
new CarDealershipInfo[MAX_CARDEALERSHIPS][cdInfo];

enum fvInfo
{
    fvId,
	fvModelId,
	Float: fvSpawnx,
	Float: fvSpawny,
	Float: fvSpawnz,
	Float: fvSpawna,
	Float: fvSpawnxtmp,
	Float: fvSpawnytmp,
	Float: fvSpawnztmp,
	Float: fvSpawnatmp,
	fvLock,
	fvLocked,
	fvPaintJob,
	fvColor1,
	fvColor2,
	fvMods[MAX_MODS],
	fvPrice,
	fvImpounded,
	Float:fvFuel,
};

new FamilyVehicleInfo[MAX_FAMILY][MAX_GANG_VEHICLES][fvInfo];

enum fPoint
{
	Float:Pointx,
	Float:Pointy,
	Float:Pointz,
	Type,
	Vulnerable,
	MatPoint,
	CratePoint,
	Announced,
	ClaimerId,
	ClaimerTeam,
	TimeToClaim,
	TimeLeft,
	Owner[32],
	PlayerNameCapping[MAX_PLAYER_NAME],
	CapperName[MAX_PLAYER_NAME],
	Name[32],
	TakeOverTimerStarted,
	TakeOverTimer,
	Text3D:TextLabel,
	CaptureTimerEx2,
	Stock,
	Text3D:CaptureProccess,
	Text3D:CaptureProgress,
	CaptureProccessEx,
	Float: Capturex,
	Float: Capturey,
	Float: Capturez,
	PointPickupID,
	Bar:PointBarID,
}

new Points[MAX_POINTS][fPoint];

enum pFishing
{
	pFish1[20],
	pFish2[20],
	pFish3[20],
	pFish4[20],
	pFish5[20],
	pWeight1,
	pWeight2,
	pWeight3,
	pWeight4,
	pWeight5,
	pFid1,
	pFid2,
	pFid3,
	pFid4,
	pFid5,
	pLastFish,
	pFishID,
	pLastWeight,
};
new Fishes[MAX_PLAYERS][pFishing];

stock FishCost(playerid, fish)
{
	if(IsPlayerConnected(playerid)) {
		new cost = 0;
		switch (fish)
		{
			case 1:
			{
				cost = 1;
			}
			case 2:
			{
				cost = 1;
			}
			case 3:
			{
				cost = 1;
			}
			case 5:
			{
				cost = 5;
			}
			case 6:
			{
				cost = 2;
			}
			case 8:
			{
				cost = 8;
			}
			case 9:
			{
				cost = 12;
			}
			case 11:
			{
				cost = 9;
			}
			case 12:
			{
				cost = 7;
			}
			case 14:
			{
				cost = 12;
			}
			case 15:
			{
				cost = 9;
			}
			case 16:
			{
				cost = 7;
			}
			case 17:
			{
				cost = 7;
			}
			case 18:
			{
				cost = 10;
			}
			case 19:
			{
				cost = 4;
			}
			case 21:
			{
				cost = 3;
			}
		}
		return cost;
	}
	return 0;
}

stock ClearFishes(playerid)
{
	if(IsPlayerConnected(playerid))
	{
		Fishes[playerid][pFid1] = 0; Fishes[playerid][pFid2] = 0; Fishes[playerid][pFid3] = 0;
		Fishes[playerid][pFid4] = 0; Fishes[playerid][pFid5] = 0;
		Fishes[playerid][pWeight1] = 0; Fishes[playerid][pWeight2] = 0; Fishes[playerid][pWeight3] = 0;
		Fishes[playerid][pWeight4] = 0; Fishes[playerid][pWeight5] = 0;

		new string[MAX_PLAYER_NAME];
		format(string, sizeof(string), "None");
		strmid(Fishes[playerid][pFish1], string, 0, strlen(string), 255);
		strmid(Fishes[playerid][pFish2], string, 0, strlen(string), 255);
		strmid(Fishes[playerid][pFish3], string, 0, strlen(string), 255);
		strmid(Fishes[playerid][pFish4], string, 0, strlen(string), 255);
		strmid(Fishes[playerid][pFish5], string, 0, strlen(string), 255);
	}
	return 1;
}

stock ClearFishID(playerid, fish)
{
	if(IsPlayerConnected(playerid))
	{
		new string[MAX_PLAYER_NAME];
		format(string, sizeof(string), "None");
		switch (fish)
		{
			case 1:
			{
				strmid(Fishes[playerid][pFish1], string, 0, strlen(string), 255);
				Fishes[playerid][pWeight1] = 0;
				Fishes[playerid][pFid1] = 0;
			}
			case 2:
			{
				strmid(Fishes[playerid][pFish2], string, 0, strlen(string), 255);
				Fishes[playerid][pWeight2] = 0;
				Fishes[playerid][pFid2] = 0;
			}
			case 3:
			{
				strmid(Fishes[playerid][pFish3], string, 0, strlen(string), 255);
				Fishes[playerid][pWeight3] = 0;
				Fishes[playerid][pFid3] = 0;
			}
			case 4:
			{
				strmid(Fishes[playerid][pFish4], string, 0, strlen(string), 255);
				Fishes[playerid][pWeight4] = 0;
				Fishes[playerid][pFid4] = 0;
			}
			case 5:
			{
				strmid(Fishes[playerid][pFish5], string, 0, strlen(string), 255);
				Fishes[playerid][pWeight5] = 0;
				Fishes[playerid][pFid5] = 0;
			}
		}
	}
	return 1;
}

enum hNews
{
	hTaken1,
	hTaken2,
	hTaken3,
	hTaken4,
	hTaken5,
	hTaken6,
	hTaken7,
	hTaken8,
	hTaken9,
	hTaken10,
	hTaken11,
	hTaken12,
	hTaken13,
	hTaken14,
	hTaken15,
	hTaken16,
	hTaken17,
	hTaken18,
	hTaken19,
	hTaken20,
	hTaken21,
	hAdd1[64],
	hAdd2[64],
	hAdd3[64],
	hAdd4[64],
	hAdd5[64],
	hAdd6[64],
	hAdd7[64],
	hAdd8[64],
	hAdd9[64],
	hAdd10[64],
	hAdd11[64],
	hAdd12[64],
	hAdd13[64],
	hAdd14[64],
	hAdd15[64],
	hAdd16[64],
	hAdd17[64],
	hAdd18[64],
	hAdd19[64],
	hAdd20[64],
	hAdd21[64],
	hContact1[64],
	hContact2[64],
	hContact3[64],
	hContact4[64],
	hContact5[64],
	hContact6[64],
	hContact7[64],
	hContact8[64],
	hContact9[64],
	hContact10[64],
	hContact11[64],
	hContact12[64],
	hContact13[64],
	hContact14[64],
	hContact15[64],
	hContact16[64],
	hContact17[64],
	hContact18[64],
	hContact19[64],
	hContact20[64],
	hContact21[64],
};
new News[hNews];

enum pInfo
{
    pPillTake,
    pHelpMute,
	pMember,
    pPhousekey,
    pPhousekey2,
    pHelperModerator,
    pFactionModerator,
	pKey[129],
	pLevel,
	pAdmin,
	pAdminName[32],
	pBanAppealer,
	pGangMod,
	pDonator,
	pBanned,
	pPermaBanned,
	pDisabled,
	pIP[16],
	pReg,
 	pTut,
	pSex,
	pAge,
	pSkin,
	Float:pPos_x,
	Float:pPos_y,
	Float:pPos_z,
	Float:pPos_r,
	pConnectTime,
	pRespect,
	pNumber,
	pWarns,
	pID,
	pGang,
	pFaction,
	pLeader,
	pRank,
	pJob,
	pJob2,
	gPupgrade,
	Float:pSarmor,
	pCash,
	pBank,
	pInsurance,
	pCrimes,
	pArrested,
	pWantedLevel,
	Float:pHealth,
	Float:pArmor,
	pPot,
	pCrack,
	pPackages,
	pCrates,
	pRadio,
	pRadioFreq,
	pPhoneBook,
	pDice,
	pCDPlayer,
	pMats,
	pRope,
	pCigar,
	pSprunk,
	pSpraycan,
	pHouse,
	pHouse2,
	pRenting,
	pInt,
	pVW,
	pJailed,
	pJailTime,
	pGuns[12],
	pAGuns[12],
	pPayCheck,
	pPayReady,
	pHospital,
	pDetSkill,
	pLawSkill,
	pSexSkill,
	pDrugsSkill,
	pSmugSkill,
	pArmsSkill,
	pMechSkill,
	pFishSkill,
	pBoxSkill,
	pTruckSkill,
	pCarSkill,
	//pCraftSkill,
	pLawyerTime,
	pLawyerFreeTime,
	pDrugsTime,
	pMechTime,
	pSexTime,
	pCarTime,
	pFishes,
	pBiggestFish,
	pLockCar, // non-saved
	pWeedObject,
	Float: pWeedPos[3],
	pWeedVW,
	pWeedInt,
	pWeedGrowth,
	pWSeeds,
	pWins,
	pLoses,
	pFightStyle,
	pScrewdriver,
	pSmslog,
	pWristwatch,
	pTire,
	pFirstaid,
	pRccam,
	pReceiver,
	pGPS,
	pSweep,
	pSweepLeft,
	pBugged,
	pVehicleKeys,
	pVehicleKeysFrom,
	pDuty,
	pCarLic,
	pFlyLic,
	pBoatLic,
	pFishLic,
	pGunLic,
	pDivision,
	pLiveBanned,
	pTicketTime,
	pHeadValue,
	pContractBy[32],
	pContractDetail[64],
	pC4,
	pC4Get,
	pC4Used,
	pBombs,
	pCHits,
	pFHits,
	pPrisonedBy[MAX_PLAYER_NAME],
	pPrisonReason[128],
	pAcceptReport,
	pTrashReport,
	pAccent,
	pNMute,
	pNMuteTotal,
	pADMute,
	pADMuteTotal,
	pRMuted,
	pRMutedTotal,
	pRMutedTime,
	pSpeedo,
	pGCMuted,
	pGCMutedTime,
	pCallsAccepted,
	pHelper,
	pPatientsDelivered,
	pTriageTime,
	pMarried,
	pMarriedTo[MAX_PLAYER_NAME],
	pKillLog0[128],
	pKillLog1[128],
	pKillLog2[128],
	pKillLog3[128],
	pKillLog4[128],
	pKillLog5[128],
	pKillLog6[128],
	pKillLog7[128],
	pKillLog8[128],
	pKillLog9[128],
	pFlag[128],
	pReferredBy[MAX_PLAYER_NAME],
	pRefTokens,
	pRefTokensOffline,
	pWalkStyle
};
new PlayerInfo[MAX_PLAYERS + 1][pInfo];

enum pvInfo
{
    Float:pvPosX,
	Float:pvPosY,
	Float:pvPosZ,
 	Float:pvPosAngle,
	pvId,
	pvModelId,
	pvLock,
	pvLocked,
	pvPaintJob,
	pvColor1,
	pvColor2,
	pvMods[MAX_MODS],
	pvAllowedPlayerId,
	pvPark,
	pvNumberPlate[32],
	pvPrice,
	pvTicket,
	pvWeapons[3],
	pvWepUpgrade,
	pvImpounded,
	pvSpawned,
	pvDisabled,
	Float: pvFuel,
};
new PlayerVehicleInfo[MAX_PLAYERS+1][MAX_PLAYERVEHICLES][pvInfo];

enum ptInfo
{
    ptModelID,
	ptBone,
    Float:ptPosX,
	Float:ptPosY,
	Float:ptPosZ,
	Float:ptRotX,
	Float:ptRotY,
	Float:ptRotZ,
	Float:ptScaleX,
	Float:ptScaleY,
	Float:ptScaleZ,
};
new PlayerToyInfo[MAX_PLAYERS+1][MAX_PLAYERTOYS][ptInfo];

enum hInfo
{
	hOwned,
	hLevel,
	hHInteriorWorld,
	hCustomInterior,
	//hDescription[8],
	hOwner[ MAX_PLAYER_NAME ],
	Float: hExteriorX,
	Float: hExteriorY,
	Float: hExteriorZ,
	Float: hExteriorR,
	Float: hExteriorA,
	Float: hInteriorX,
	Float: hInteriorY,
	Float: hInteriorZ,
	Float: hInteriorR,
	Float: hInteriorA,
	hLock,
	hRentable,
	hRentFee,
	hValue,
	hSafeMoney,
	hPot,
	hCrack,
	hMaterials,
	hWeapons[5],
	hGLUpgrade,
	hPickupID,
	Text3D: hTextID,
	hCustomExterior,
};
new HouseInfo[MAX_HOUSES][hInfo];

enum dmpInfo
{
	dmpMapIconID,
	Float: dmpPosX,
	Float: dmpPosY,
	Float: dmpPosZ,
	dmpMarkerType,
	dmpColor,
	dmpVW,
	dmpInt,
}
new DMPInfo[MAX_DMAPICONS][dmpInfo];

enum gInfo
{
    gGATE,
    gHID,
	gSpeed,
	gRange,
	gModel,
	gVW,
	gInt,
	Float:gPosX,
	Float:gPosY,
	Float:gPosZ,
	Float:gRotX,
	Float:gRotY,
	Float:gRotZ,
	Float:gPosXM,
	Float:gPosYM,
	Float:gPosZM,
	Float:gRotXM,
	Float:gRotYM,
    Float:gRotZM,
    gStatus,
    gPass[24],
    gRenderHQ,
};
new GateInfo[MAX_GATES][gInfo];

enum ddInfo
{
	ddDescription[128],
	ddPickupID,
	Text3D: ddTextID,
	ddCustomInterior,
	ddExteriorVW,
	ddExteriorInt,
	ddInteriorVW,
	ddInteriorInt,
	Float: ddExteriorX,
	Float: ddExteriorY,
	Float: ddExteriorZ,
	Float: ddExteriorA,
	Float: ddInteriorX,
	Float: ddInteriorY,
	Float: ddInteriorZ,
	Float: ddInteriorA,
	ddCustomExterior,
	ddVIP,
	ddGang,
	ddFaction,
	ddAdmin,
	ddWanted,
	ddVehicleAble,
	ddColor,
	ddPickupModel,
	ddPass[24],
	ddLocked,
	ddNotEditable,
};
new DDoorsInfo[MAX_DDOORS][ddInfo];

enum bbInfo
{
    Float:bbPosX,
	Float:bbPosY,
	Float:bbPosZ,
	bbInt,
	bbVW,
	bbStation,
	bbSetBy,
	bbObject,
};
new BoomboxInfo[MAX_PLAYERS][bbInfo];

/*enum rankingEnum {
	iKills,
	iPlayerID,
}

new PlayerRatio[MAX_PLAYERS][rankingEnum];*/

stock DoubleEXPcheck(hour) {
    FixHour(hour);
    hour = shifthour;

	if(hour >= 13 && hour <= 15)
		return 1; // EU timezone
	else if(hour >= 18 && hour <= 20)
		return 1; // US timezone
    else if(hour >= 0 && hour <= 2)
		return 1; // OC timezone

	return 0;
}

stock Misc_Save() {

	new
		szFileStr[32],
		File: iFileHandle = fopen("serverConfig.ini", io_write);

	ini_SetInteger(iFileHandle, szFileStr, "Jackpot", Jackpot);
	//ini_SetInteger(iFileHandle, szFileStr, "Tax", Tax);
	//ini_SetFloat(iFileHandle, szFileStr, "Tax", Tax);
	//ini_SetInteger(iFileHandle, szFileStr, "TaxVal", TaxValue);
	ini_SetInteger(iFileHandle, szFileStr, "LoginCount", TotalLogin);
	ini_SetInteger(iFileHandle, szFileStr, "ConnCount", TotalConnect);
	ini_SetInteger(iFileHandle, szFileStr, "ABanCount", TotalAutoBan);
	ini_SetInteger(iFileHandle, szFileStr, "RegCount", TotalRegister);
	ini_SetInteger(iFileHandle, szFileStr, "MaxPCount", MaxPlayersConnected);
	ini_SetInteger(iFileHandle, szFileStr, "MaxPDay", MPDay);
	ini_SetInteger(iFileHandle, szFileStr, "MaxPMonth", MPMonth);
	ini_SetInteger(iFileHandle, szFileStr, "MaxPYear", MPYear);
	ini_SetInteger(iFileHandle, szFileStr, "Uptime", TotalUptime);
	ini_SetString(iFileHandle, "gMOTD", GlobalMOTD);
	ini_SetString(iFileHandle, "aMOTD", AdminMOTD);
	fclose(iFileHandle);
}

stock Misc_Load() {

	new
		szResult[32],
		szFileStr[160],
		File: iFileHandle = fopen("serverConfig.ini", io_read);

	while(fread(iFileHandle, szFileStr, sizeof(szFileStr))) {

		if(ini_GetValue(szFileStr, "gMOTD", GlobalMOTD, sizeof(GlobalMOTD))) 												continue;
		if(ini_GetValue(szFileStr, "aMOTD", AdminMOTD, sizeof(AdminMOTD))) 													continue;

		else if(ini_GetValue(szFileStr, "Jackpot", szResult, sizeof(szResult)))												Jackpot = strval(szResult);
		//else if(ini_GetValue(szFileStr, "Tax", szResult, sizeof(szResult)))													Tax = strval(szResult);
		//else if(ini_GetValue(szFileStr, "TaxVal", szResult, sizeof(szResult)))												TaxValue = strval(szResult);
		else if(ini_GetValue(szFileStr, "LoginCount", szResult, sizeof(szResult)))											TotalLogin = strval(szResult);
		else if(ini_GetValue(szFileStr, "ConnCount", szResult, sizeof(szResult)))											TotalConnect = strval(szResult);
		else if(ini_GetValue(szFileStr, "ABanCount", szResult, sizeof(szResult)))											TotalAutoBan = strval(szResult);
		else if(ini_GetValue(szFileStr, "RegCount", szResult, sizeof(szResult)))											TotalRegister = strval(szResult);
		else if(ini_GetValue(szFileStr, "MaxPCount", szResult, sizeof(szResult)))											MaxPlayersConnected	= strval(szResult);
		else if(ini_GetValue(szFileStr, "MaxPDay", szResult, sizeof(szResult)))												MPDay = strval(szResult);
		else if(ini_GetValue(szFileStr, "MaxPMonth", szResult, sizeof(szResult)))											MPMonth = strval(szResult);
		else if(ini_GetValue(szFileStr, "MaxPYear", szResult, sizeof(szResult)))											MPYear = strval(szResult);
		else if(ini_GetValue(szFileStr, "Uptime", szResult, sizeof(szResult)))												TotalUptime = strval(szResult);
	}
	fclose(iFileHandle);
}

stock LoadThePay()
{

	new sz_FacPayStr[128], File: i_FileHandle, arrayIndex;

	#define PAY_FILE "factionpay.cfg"

	if(!fexist(PAY_FILE)) return 1;

	i_FileHandle = fopen(PAY_FILE, io_read);
	while (arrayIndex < sizeof(FactionPay))
	{
		fread(i_FileHandle, sz_FacPayStr);
		sscanf(sz_FacPayStr, "p<|>iiiiiii",
			FactionPay[arrayIndex][0],
			FactionPay[arrayIndex][1],
			FactionPay[arrayIndex][2],
			FactionPay[arrayIndex][3],
			FactionPay[arrayIndex][4],
			FactionPay[arrayIndex][5],
			FactionPay[arrayIndex][6]
		);
		arrayIndex++;
	}
	return fclose(i_FileHandle);
}

stock SaveThePay()
{

	new	File: i_FileHandle = fopen(PAY_FILE, io_write), arrayIndex, sz_FileStr[128];

	while(arrayIndex < sizeof(FactionPay)) {
		format(sz_FileStr, sizeof(sz_FileStr), "%d|%d|%d|%d|%d|%d|%d\r\n",
			FactionPay[arrayIndex][0],
			FactionPay[arrayIndex][1],
		    FactionPay[arrayIndex][2],
			FactionPay[arrayIndex][3],
			FactionPay[arrayIndex][4],
			FactionPay[arrayIndex][5],
			FactionPay[arrayIndex][6]
		);
		fwrite(i_FileHandle, sz_FileStr);
		arrayIndex++;
	}

	#undef PAY_FILE
	return fclose(i_FileHandle);
}

ini_GetValue(szParse[], szValueName[], szDest[], iDestLen)
{

	new
		iPos = strfind(szParse, "=", false),
		iLength = strlen(szParse);

	while(iLength-- && szParse[iLength] <= ' ')
	{
		szParse[iLength] = 0;
	}

	if(strcmp(szParse, szValueName, false, iPos) == 0)
	{
		strmid(szDest, szParse, iPos + 1, iLength + 1, iDestLen);
		return 1;
	}
	return 0;
}

stock SetVehicleLights(vehicleid, playerid)
{
	new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    if(lights == VEHICLE_PARAMS_ON)
	{
		SetVehicleParamsEx(vehicleid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
		SendClientMessage(playerid, COLOR_WHITE, "Vehicle lights successfully turned off.");
	}
    else if(lights == VEHICLE_PARAMS_OFF || lights == VEHICLE_PARAMS_UNSET)
	{
		SetVehicleParamsEx(vehicleid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
		SendClientMessage(playerid, COLOR_WHITE, "Vehicle lights successfully turned on.");
	}
	return 1;
}

stock SetVehicleTrunk(vehicleid, playerid)
{
	new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    if(boot == VEHICLE_PARAMS_ON)
	{
		SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
		SendClientMessage(playerid, COLOR_WHITE, "Vehicle trunk successfully closed.");
	}
    else if(boot == VEHICLE_PARAMS_OFF || boot == VEHICLE_PARAMS_UNSET)
	{
		SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
		SendClientMessage(playerid, COLOR_WHITE, "Vehicle trunk successfully opened.");
	}
	return 1;
}

stock SetVehicleHood(vehicleid, playerid)
{
	new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    if(bonnet == VEHICLE_PARAMS_ON)
	{
		SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
		SendClientMessage(playerid, COLOR_WHITE, "Vehicle hood successfully closed.");
	}
    else if(bonnet == VEHICLE_PARAMS_OFF || bonnet == VEHICLE_PARAMS_UNSET)
	{
		SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
		SendClientMessage(playerid, COLOR_WHITE, "Vehicle hood successfully opened.");
	}
	return 1;
}

stock ShowNMuteFine(playerid)
{
	new playername[MAX_PLAYER_NAME];
	GetPlayerName(playerid, playername, sizeof(playername));

	new allmoney;
	if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID && strcmp(GetPlayerNameEx(playerid), HouseInfo[PlayerInfo[playerid][pHouse]][hOwner], true) == 0)
	{
		allmoney = HouseInfo[PlayerInfo[playerid][pHouse]][hSafeMoney]+GetPlayerCash(playerid)+PlayerInfo[playerid][pBank];
	}
	else if(PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID && strcmp(GetPlayerNameEx(playerid), HouseInfo[PlayerInfo[playerid][pHouse2]][hOwner], true) == 0)
	{
		allmoney += HouseInfo[PlayerInfo[playerid][pHouse2]][hSafeMoney];
	}
	else
	{
		allmoney = GetPlayerCash(playerid)+PlayerInfo[playerid][pBank];
	}

    new fine = 10*allmoney/100;
	if(PlayerInfo[playerid][pNMuteTotal] < 4)
	{
		new string[64];
		format(string,sizeof(string),"Prison for %d Minutes\nCash Fine ($%d)",PlayerInfo[playerid][pNMuteTotal] * 15, fine);
		ShowPlayerDialogEx(playerid,NMUTE,DIALOG_STYLE_LIST,"Newbie Chat Unmute - Select your Punishment:",string,"Select","Cancel");
	}
	else if(PlayerInfo[playerid][pNMuteTotal] == 4) ShowPlayerDialogEx(playerid,NMUTE,DIALOG_STYLE_LIST,"Newbie Chat Unmute - Select your Punishment:","Prison for 1 Hour","Select","Cancel");
	else if(PlayerInfo[playerid][pNMuteTotal] == 5) ShowPlayerDialogEx(playerid,NMUTE,DIALOG_STYLE_LIST,"Newbie Chat Unmute - Select your Punishment:","Prison for 1 Hour and 15 Minutes","Select","Cancel");
	else if(PlayerInfo[playerid][pNMuteTotal] == 6) ShowPlayerDialogEx(playerid,NMUTE,DIALOG_STYLE_LIST,"Newbie Chat Unmute - Select your Punishment:","Prison for 1 Hour and 30 Minutes","Select","Cancel");
}

forward RespawnVehicleFunction(vehicleid);
public RespawnVehicleFunction(vehicleid) {
	return SetVehicleToRespawn(vehicleid);
}

stock ShowAdMuteFine(playerid)
{
	new string[128];
	new playername[MAX_PLAYER_NAME];
	GetPlayerName(playerid, playername, sizeof(playername));

	new allmoney;
	if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID && strcmp(GetPlayerNameEx(playerid), HouseInfo[PlayerInfo[playerid][pHouse]][hOwner], true) == 0)
	{
		allmoney = HouseInfo[PlayerInfo[playerid][pHouse]][hSafeMoney]+GetPlayerCash(playerid)+PlayerInfo[playerid][pBank];
	}
	else if(PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID && strcmp(GetPlayerNameEx(playerid), HouseInfo[PlayerInfo[playerid][pHouse2]][hOwner], true) == 0)
	{
		allmoney += HouseInfo[PlayerInfo[playerid][pHouse2]][hSafeMoney];
	}
	else
	{
		allmoney = GetPlayerCash(playerid)+PlayerInfo[playerid][pBank];
	}

    new fine = 10*allmoney/100;
	if(PlayerInfo[playerid][pADMuteTotal] < 4)
	{
		format(string,sizeof(string),"Prison for %d Minutes\nCash Fine ($%d)",PlayerInfo[playerid][pADMuteTotal]*15,fine);
	}
	if(PlayerInfo[playerid][pADMuteTotal] == 4)
	{
	    format(string,sizeof(string),"Prison for 1 Hour");
	}
	if(PlayerInfo[playerid][pADMuteTotal] == 5)
	{
	    format(string,sizeof(string),"Prison for 1 Hour and 15 Minutes)");
	}
	if(PlayerInfo[playerid][pADMuteTotal] == 6)
	{
	    format(string,sizeof(string),"Prison for 1 Hour and 30 Minutes");
	}
	ShowPlayerDialogEx(playerid,ADMUTE,DIALOG_STYLE_LIST,"Advertisements Unmute - Select your Punishment:",string,"Select","Cancel");
}

stock FindFreeAttachedObjectSlot(playerid)
{
	new index;
 	while (index < MAX_PLAYER_ATTOBJECTS && IsPlayerAttachedObjectSlotUsed(playerid, index))
	{
		index++;
	}
	if(index == MAX_PLAYER_ATTOBJECTS) return -1;
	return index;
}
enum HoldingEnumAll
{
	holdingmodelid,
	holdingprice,
	holdingmodelname[24]
}

new HoldingObjectsCop[14][HoldingEnumAll] = {
{18642,100,"Taser1"},
{19141,250,"SWATHelmet1"},
{19142,250,"SWATArmour1"},
{18636,100,"PoliceCap1"},
{19099,100,"PoliceCap2"},
{19100,100,"PoliceCap3"},
{18637,100,"PoliceShield1"},
{19161,100,"PoliceHat1"},
{19162,100,"PoliceHat2"},
{19200,100,"PoliceHelmet1"},
{19138,100,"PoliceGlasses1"},
{19139,100,"PoliceGlasses2"},
{19140,100,"PoliceGlasses3"},
{19347,250,"Badge"}
};

new HoldingObjectsAll[240][HoldingEnumAll] = {
{18642,100,"Taser1"},
{18643,1000,"LaserPointer1"},
{19080,1000,"LaserPointer2"},
{19081,1000,"LaserPointer3"},
{19082,1000,"LaserPointer4"},
{19083,1000,"LaserPointer5"},
{19084,1000,"LaserPointer6"},
{19086,500,"ChainsawDildo1"},
{18675,1000,"SmokePuff"},
{19701,1000,"SmallFlame"},
{18693,1000,"LargeFlame"},
{18698,1000,"Insects"},
{18708,1000,"Bubbles"},
{19141,250,"SWATHelmet1"},
{19142,250,"SWATArmour1"},
{18636,100,"PoliceCap1"},
{19099,100,"PoliceCap2"},
{19100,100,"PoliceCap3"},
{18637,100,"PoliceShield1"},
{19161,100,"PoliceHat1"},
{19162,100,"PoliceHat2"},
{19200,100,"PoliceHelmet1"},
{19138,100,"PoliceGlasses1"},
{19139,100,"PoliceGlasses2"},
{19140,100,"PoliceGlasses3"},
{19347,250,"Badge"},
{18632,100,"FishingRod"},
{18633,150,"Wrench"},
{18634,100,"Crowbar"},
{18635,100,"Hammer"},
{18638,50,"HardHat"},
{19093,50,"HardHat2"},
{19160,50,"HardHat3"},
{18639,50,"BlackHat"},
{18640,70,"Hair"},
{18975,70,"Hair2"},
{19136,70,"Hair3"},
{19274,70,"Hair4"},
{18641,100,"Flashlight"},
{18644,500,"Screwdriver"},
{18865,50,"MobilePhone1"},
{18866,50,"MobilePhone2"},
{18867,50,"MobilePhone3"},
{18868,50,"MobilePhone4"},
{18869,50,"MobilePhone5"},
{18870,100,"MobilePhone6"},
{18871,100,"MobilePhone7"},
{18872,100,"MobilePhone8"},
{18873,100,"MobilePhone9"},
{18874,100,"MobilePhone10"},
{18875,75,"Pager"},
{18890,50,"Rake"},
{18891,50,"Bandana1"},
{18892,50,"Bandana2"},
{18893,50,"Bandana3"},
{18894,50,"Bandana4"},
{18895,50,"Bandana5"},
{18896,50,"Bandana6"},
{18897,50,"Bandana7"},
{18898,50,"Bandana8"},
{18899,50,"Bandana9"},
{18900,50,"Bandana10"},
{18901,75,"Bandana11"},
{18902,75,"Bandana12"},
{18903,75,"Bandana13"},
{18904,75,"Bandana14"},
{18905,75,"Bandana15"},
{18906,75,"Bandana16"},
{18907,75,"Bandana17"},
{18908,75,"Bandana18"},
{18909,75,"Bandana19"},
{18910,75,"Bandana20"},
{18911,100,"Mask1"},
{18912,100,"Mask2"},
{18913,100,"Mask3"},
{18914,100,"Mask4"},
{18915,100,"Mask5"},
{18916,100,"Mask6"},
{18917,100,"Mask7"},
{18918,100,"Mask8"},
{18919,100,"Mask9"},
{18920,100,"Mask10"},
{18921,50,"Beret1"},
{18922,50,"Beret2"},
{18923,75,"Beret3"},
{18924,100,"Beret4"},
{18925,100,"Beret5"},
{18926,50,"Hat1"},
{18927,50,"Hat2"},
{18928,50,"Hat3"},
{18929,50,"Hat4"},
{18930,50,"Hat5"},
{18931,100,"Hat6"},
{18932,100,"Hat7"},
{18933,100,"Hat8"},
{18934,100,"Hat9"},
{18935,100,"Hat10"},
{18936,50,"Helmet1"},
{18937,75,"Helmet2"},
{18938,100,"Helmet3"},
{18939,75,"CapBack1"},
{18940,75,"CapBack2"},
{18941,75,"CapBack3"},
{18942,100,"CapBack4"},
{18943,100,"CapBack5"},
{18944,100,"HatBoater1"},
{18945,125,"HatBoater2"},
{18946,150,"HatBoater3"},
{18947,100,"HatBowler1"},
{18948,100,"HatBowler2"},
{18949,100,"HatBowler3"},
{18950,100,"HatBowler4"},
{18951,100,"HatBowler5"},
{18952,150,"BoxingHelmet"},
{18953,50,"CapKnit1"},
{18954,75,"CapKnit2"},
{18955,75,"CapOverEye1"},
{18956,75,"CapOverEye2"},
{18957,75,"CapOverEye3"},
{18958,75,"CapOverEye4"},
{18959,75,"CapOverEye5"},
{18960,100,"CapRimUp1"},
{18961,75,"CapTrucker1"},
{18962,75,"CowboyHat2"},
{18964,100,"SkullyCap1"},
{18965,125,"SkullyCap2"},
{18966,150,"SkullyCap3"},
{18967,100,"HatMan1"},
{18968,100,"HatMan2"},
{18969,100,"HatMan3"},
{18970,200,"HatTiger"},
{18971,100,"HatCool1"},
{18972,125,"HatCool2"},
{18973,150,"HatCool3"},
{18974,1000,"MaskZorro1"},
{18645,150,"MotorcycleHelmet"},
{18976,100,"MotorcycleHelmet2"},
{18977,100,"MotorcycleHelmet3"},
{18978,125,"MotorcycleHelmet4"},
{18979,150,"MotorcycleHelmet5"},
{19006,50,"GlassesType1"},
{19007,50,"GlassesType2"},
{19008,50,"GlassesType3"},
{19009,50,"GlassesType4"},
{19010,50,"GlassesType5"},
{19011,50,"GlassesType6"},
{19012,50,"GlassesType7"},
{19013,50,"GlassesType8"},
{19014,50,"GlassesType9"},
{19015,50,"GlassesType10"},
{19016,100,"GlassesType11"},
{19017,100,"GlassesType12"},
{19018,100,"GlassesType13"},
{19019,100,"GlassesType14"},
{19020,100,"GlassesType15"},
{19021,100,"GlassesType16"},
{19022,100,"GlassesType17"},
{19023,100,"GlassesType18"},
{19024,100,"GlassesType19"},
{19025,100,"GlassesType20"},
{19026,150,"GlassesType21"},
{19027,150,"GlassesType22"},
{19028,150,"GlassesType23"},
{19029,150,"GlassesType24"},
{19030,150,"GlassesType25"},
{19031,150,"GlassesType26"},
{19032,150,"GlassesType27"},
{19033,150,"GlassesType28"},
{19034,150,"GlassesType29"},
{19035,150,"GlassesType30"},
{19036,200,"HockeyMask1"},
{19037,200,"HockeyMask2"},
{19038,200,"HockeyMask3"},
{19039,50,"WatchType1"},
{19040,50,"WatchType2"},
{19041,50,"WatchType3"},
{19042,50,"WatchType4"},
{19043,50,"WatchType5"},
{19044,50,"WatchType6"},
{19045,50,"WatchType7"},
{19046,100,"WatchType8"},
{19047,100,"WatchType9"},
{19048,100,"WatchType10"},
{19049,100,"WatchType11"},
{19050,100,"WatchType12"},
{19051,100,"WatchType13"},
{19052,100,"WatchType14"},
{19053,100,"WatchType15"},
{19421,50, "Headphones1"},
{19422,50, "Headphones2"},
{19423,50, "Headphones3"},
{19424,50, "Headphones4"},
{19350,50, "Moustache1"},
{19351,50, "Moustache2"},
{19352,50, "Tophat"},
{19349,50, "Monocle"},
{19317,50, "Bassguitar"},
{371,500, "Backpack"},
{3044,500, "Cigar"},
{3027,500, "Joint"},
{19064,1000, "SantaHat1"},
{19065,2000, "SantaHat2"},
{19066,300, "SantaHat3"},
{19067,100, "HoodyHat1"},
{19068,100, "HoodyHat2"},
{19069,100, "HoodyHat3"},
{19078,750, "TheParrot1"},
{19079,750, "TheParrot2"},
{19085,500, "EyePatch"},
{19090,150, "PomPomBlue"},
{19091,150, "PomPomRed"},
{19092,150, "PomPomGreen"},
{19094,200, "BurgerShotHat"},
{19095,50, "CowboyHat1"},
{19096,50, "CowboyHat3"},
{19097,100, "CowboyHat4"},
{19098,100, "CowboyHat5"},
{19101,200, "ArmyHelmet1"},
{19102,200, "ArmyHelmet2"},
{19103,200, "ArmyHelmet3"},
{19104,200, "ArmyHelmet4"},
{19105,200, "ArmyHelmet5"},
{19106,200, "ArmyHelmet6"},
{19107,400, "ArmyHelmet7"},
{19108,400, "ArmyHelmet8"},
{19109,400, "ArmyHelmet9"},
{19110,400, "ArmyHelmet10"},
{19111,400, "ArmyHelmet11"},
{19112,400, "ArmyHelmet12"},
{19113,100, "SillyHelmet1"},
{19114,200, "SillyHelmet2"},
{19115,300, "SillyHelmet3"},
{19116,50, "PlainHelmet1"},
{19117,50, "PlainHelmet2"},
{19118,75, "PlainHelmet3"},
{19119,100, "PlainHelmet4"},
{19120,100, "PlainHelmet5"},
{19137,500, "CluckinBellHat"},
{19163,100, "GimpMask"},
{1210,50, "Briefcase"}
};

enum HoldingEnum
{
	holdingmodelid,
	holdingprice,
	holdingmodelname[24]
}

new HoldingObjects[214][HoldingEnum] = {
{18632,100,"FishingRod"},
{18633,150,"Wrench"},
{18634,100,"Crowbar"},
{18635,100,"Hammer"},
{18638,50,"HardHat"},
{19093,50,"HardHat2"},
{19160,50,"HardHat3"},
{18639,50,"BlackHat"},
{18640,70,"Hair"},
{18975,70,"Hair2"},
{19136,70,"Hair3"},
{19274,70,"Hair4"},
{18641,100,"Flashlight"},
{18644,500,"Screwdriver"},
{18865,50,"MobilePhone1"},
{18866,50,"MobilePhone2"},
{18867,50,"MobilePhone3"},
{18868,50,"MobilePhone4"},
{18869,50,"MobilePhone5"},
{18870,100,"MobilePhone6"},
{18871,100,"MobilePhone7"},
{18872,100,"MobilePhone8"},
{18873,100,"MobilePhone9"},
{18874,100,"MobilePhone10"},
{18875,75,"Pager"},
{18890,50,"Rake"},
{18891,50,"Bandana1"},
{18892,50,"Bandana2"},
{18893,50,"Bandana3"},
{18894,50,"Bandana4"},
{18895,50,"Bandana5"},
{18896,50,"Bandana6"},
{18897,50,"Bandana7"},
{18898,50,"Bandana8"},
{18899,50,"Bandana9"},
{18900,50,"Bandana10"},
{18901,75,"Bandana11"},
{18902,75,"Bandana12"},
{18903,75,"Bandana13"},
{18904,75,"Bandana14"},
{18905,75,"Bandana15"},
{18906,75,"Bandana16"},
{18907,75,"Bandana17"},
{18908,75,"Bandana18"},
{18909,75,"Bandana19"},
{18910,75,"Bandana20"},
{18911,100,"Mask1"},
{18912,100,"Mask2"},
{18913,100,"Mask3"},
{18914,100,"Mask4"},
{18915,100,"Mask5"},
{18916,100,"Mask6"},
{18917,100,"Mask7"},
{18918,100,"Mask8"},
{18919,100,"Mask9"},
{18920,100,"Mask10"},
{18921,50,"Beret1"},
{18922,50,"Beret2"},
{18923,75,"Beret3"},
{18924,100,"Beret4"},
{18925,100,"Beret5"},
{18926,50,"Hat1"},
{18927,50,"Hat2"},
{18928,50,"Hat3"},
{18929,50,"Hat4"},
{18930,50,"Hat5"},
{18931,100,"Hat6"},
{18932,100,"Hat7"},
{18933,100,"Hat8"},
{18934,100,"Hat9"},
{18935,100,"Hat10"},
{18936,50,"Helmet1"},
{18937,75,"Helmet2"},
{18938,100,"Helmet3"},
{18939,75,"CapBack1"},
{18940,75,"CapBack2"},
{18941,75,"CapBack3"},
{18942,100,"CapBack4"},
{18943,100,"CapBack5"},
{18944,100,"HatBoater1"},
{18945,125,"HatBoater2"},
{18946,150,"HatBoater3"},
{18947,100,"HatBowler1"},
{18948,100,"HatBowler2"},
{18949,100,"HatBowler3"},
{18950,100,"HatBowler4"},
{18951,100,"HatBowler5"},
{18952,150,"BoxingHelmet"},
{18953,50,"CapKnit1"},
{18954,75,"CapKnit2"},
{18955,75,"CapOverEye1"},
{18956,75,"CapOverEye2"},
{18957,75,"CapOverEye3"},
{18958,75,"CapOverEye4"},
{18959,75,"CapOverEye5"},
{18960,100,"CapRimUp1"},
{18961,75,"CapTrucker1"},
{18962,75,"CowboyHat2"},
{18964,100,"SkullyCap1"},
{18965,125,"SkullyCap2"},
{18966,150,"SkullyCap3"},
{18967,100,"HatMan1"},
{18968,100,"HatMan2"},
{18969,100,"HatMan3"},
{18970,200,"HatTiger"},
{18971,100,"HatCool1"},
{18972,125,"HatCool2"},
{18973,150,"HatCool3"},
{18974,1000,"MaskZorro1"},
{18645,150,"MotorcycleHelmet"},
{18976,100,"MotorcycleHelmet2"},
{18977,100,"MotorcycleHelmet3"},
{18978,125,"MotorcycleHelmet4"},
{18979,150,"MotorcycleHelmet5"},
{19006,50,"GlassesType1"},
{19007,50,"GlassesType2"},
{19008,50,"GlassesType3"},
{19009,50,"GlassesType4"},
{19010,50,"GlassesType5"},
{19011,50,"GlassesType6"},
{19012,50,"GlassesType7"},
{19013,50,"GlassesType8"},
{19014,50,"GlassesType9"},
{19015,50,"GlassesType10"},
{19016,100,"GlassesType11"},
{19017,100,"GlassesType12"},
{19018,100,"GlassesType13"},
{19019,100,"GlassesType14"},
{19020,100,"GlassesType15"},
{19021,100,"GlassesType16"},
{19022,100,"GlassesType17"},
{19023,100,"GlassesType18"},
{19024,100,"GlassesType19"},
{19025,100,"GlassesType20"},
{19026,150,"GlassesType21"},
{19027,150,"GlassesType22"},
{19028,150,"GlassesType23"},
{19029,150,"GlassesType24"},
{19030,150,"GlassesType25"},
{19031,150,"GlassesType26"},
{19032,150,"GlassesType27"},
{19033,150,"GlassesType28"},
{19034,150,"GlassesType29"},
{19035,150,"GlassesType30"},
{19036,200,"HockeyMask1"},
{19037,200,"HockeyMask2"},
{19038,200,"HockeyMask3"},
{19039,50,"WatchType1"},
{19040,50,"WatchType2"},
{19041,50,"WatchType3"},
{19042,50,"WatchType4"},
{19043,50,"WatchType5"},
{19044,50,"WatchType6"},
{19045,50,"WatchType7"},
{19046,100,"WatchType8"},
{19047,100,"WatchType9"},
{19048,100,"WatchType10"},
{19049,100,"WatchType11"},
{19050,100,"WatchType12"},
{19051,100,"WatchType13"},
{19052,100,"WatchType14"},
{19053,100,"WatchType15"},
{19421,50, "Headphones1"},
{19422,50, "Headphones2"},
{19423,50, "Headphones3"},
{19424,50, "Headphones4"},
{19350,50, "Moustache1"},
{19351,50, "Moustache2"},
{19352,50, "Tophat"},
{19349,50, "Monocle"},
{19317,50, "Bassguitar"},
{371,500, "Backpack"},
{3044,500, "Cigar"},
{3027,500, "Joint"},
{19064,1000, "SantaHat1"},
{19065,2000, "SantaHat2"},
{19066,300, "SantaHat3"},
{19067,100, "HoodyHat1"},
{19068,100, "HoodyHat2"},
{19069,100, "HoodyHat3"},
{19078,750, "TheParrot1"},
{19079,750, "TheParrot2"},
{19085,500, "EyePatch"},
{19090,150, "PomPomBlue"},
{19091,150, "PomPomRed"},
{19092,150, "PomPomGreen"},
{19094,200, "BurgerShotHat"},
{19095,50, "CowboyHat1"},
{19096,50, "CowboyHat3"},
{19097,100, "CowboyHat4"},
{19098,100, "CowboyHat5"},
{19101,200, "ArmyHelmet1"},
{19102,200, "ArmyHelmet2"},
{19103,200, "ArmyHelmet3"},
{19104,200, "ArmyHelmet4"},
{19105,200, "ArmyHelmet5"},
{19106,200, "ArmyHelmet6"},
{19107,400, "ArmyHelmet7"},
{19108,400, "ArmyHelmet8"},
{19109,400, "ArmyHelmet9"},
{19110,400, "ArmyHelmet10"},
{19111,400, "ArmyHelmet11"},
{19112,400, "ArmyHelmet12"},
{19113,100, "SillyHelmet1"},
{19114,200, "SillyHelmet2"},
{19115,300, "SillyHelmet3"},
{19116,50, "PlainHelmet1"},
{19117,50, "PlainHelmet2"},
{19118,75, "PlainHelmet3"},
{19119,100, "PlainHelmet4"},
{19120,100, "PlainHelmet5"},
{19137,500, "CluckinBellHat"},
{19163,100, "GimpMask"},
{1210,50, "Briefcase"}
};

new HoldingBones[][] = {
	"None",
	"Spine",
	"Head",
	"Left upper arm",
	"Right upper arm",
	"Left hand",
	"Right hand",
	"Left thigh",
	"Right thigh",
	"Left foot",
	"Right foot",
	"Right calf",
	"Left calf",
	"Left forearm",
	"Right forearm",
	"Left clavicle",
	"Right clavicle",
	"Neck",
	"Jaw"
};

stock player_remove_vip_toys(iTargetID)
{
	if(PlayerInfo[iTargetID][pDonator] >= 3) return 1;
	else for(new iToyIter; iToyIter < MAX_PLAYER_ATTOBJECTS; ++iToyIter) {
		for(new LoopRapist; LoopRapist < sizeof(HoldingObjectsCop); ++LoopRapist) {
			if(HoldingObjectsCop[LoopRapist][holdingmodelid] == PlayerToyInfo[iTargetID][iToyIter][ptModelID]) {
				PlayerToyInfo[iTargetID][iToyIter][ptModelID] = 0;
				PlayerToyInfo[iTargetID][iToyIter][ptBone] = 0;
				PlayerToyInfo[iTargetID][iToyIter][ptPosX] = 0.0;
				PlayerToyInfo[iTargetID][iToyIter][ptPosY] = 0.0;
				PlayerToyInfo[iTargetID][iToyIter][ptPosZ] = 0.0;
				PlayerToyInfo[iTargetID][iToyIter][ptPosX] = 0.0;
				PlayerToyInfo[iTargetID][iToyIter][ptPosY] = 0.0;
				PlayerToyInfo[iTargetID][iToyIter][ptPosZ] = 0.0;
				if(IsPlayerAttachedObjectSlotUsed(iTargetID, iToyIter)) RemovePlayerAttachedObject(iTargetID, iToyIter);
			}
		}
	}
	SendClientMessage(iTargetID, COLOR_WHITE, "All accessories/toys that were property of your former employer have been removed.");
	return 1;
}

stock Float:GetDistance(Float: x1, Float: y1, Float: z1, Float: x2, Float: y2, Float: z2)
{
	new Float:d;
	d += floatpower(x1-x2, 2.0);
	d += floatpower(y1-y2, 2.0);
	d += floatpower(z1-z2, 2.0);
	d = floatsqroot(d);
	return d;
}

stock Float: GetDistanceToCar(playerid, veh) {

	new
		Float: fVehiclePos[3];

	GetVehiclePos(veh, fVehiclePos[0], fVehiclePos[1], fVehiclePos[2]);
	return GetPlayerDistanceFromPoint(playerid, fVehiclePos[0], fVehiclePos[1], fVehiclePos[2]);
}

stock GetClosestCar(iPlayer, iException = INVALID_VEHICLE_ID, Float: fRange = Float: 0x7F800000) {

	new
		iReturnID = -1,
		Float: fVehiclePos[4];

	for(new i = 1; i <= MAX_VEHICLES; ++i) if(GetVehicleModel(i) && i != iException) {
		GetVehiclePos(i, fVehiclePos[0], fVehiclePos[1], fVehiclePos[2]);
		if((fVehiclePos[3] = GetPlayerDistanceFromPoint(iPlayer, fVehiclePos[0], fVehiclePos[1], fVehiclePos[2])) < fRange) {
			fRange = fVehiclePos[3];
			iReturnID = i;
		}
	}
	return iReturnID;
}

stock GetPlayerFactionInfo(targetid, rank[64], division[64], employer[64]) {
	switch(PlayerInfo[targetid][pFaction]) { // employer/rank/division data is pulled from here
	    case 1: {
            employer = "LSPD";
			switch(PlayerInfo[targetid][pRank]) {
			    case 1: rank = "Officer";
			    case 2: rank = "Corporal";
			    case 3: rank = "Sergeant";
			    case 4: rank = "Lieutenant";
			    case 5: rank = "Captain";
			    case 6: rank = "Chief";
			    default: rank = "Cadet";
			}
			switch(PlayerInfo[targetid][pDivision]) {
			    case 1: division = "None";
			    case 3: division = "FTO";
			    case 4: division = "S.W.A.T.";
			    case 5: division = "D.E.B.";
			    case 7: division = "TE";
			    default: division = "None";
			}
		}
  		case 2: {
            employer = "FBI";
			switch(PlayerInfo[targetid][pRank]) {
3293			    case 1: rank = "Agent";
			    case 2: rank = "Senior Agent";
Reply
#2

Sorry for double posting, i forgot to say the 3293 code is at last of code
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)