| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975 |
- /* Project Reality: Reloaded Script
- * Script Founded by Alexander: Friday 10th of May, 15:53.
- * Contributors: Sloth, Sparkie, Dakyskye.
- * FACTIONS MAX RANK = JOIN RANK;
- */
- #include <a_samp>
- #include <crashdetect>
- #include <a_mysql>
- #include <sscanf2>
- #include <streamer>
- #include <foreach>
- #include <compat>
- #include <evi>
- #include <strlib>
- #include <Pawn.Regex>
- #include <izcmd>
- #include <OnPlayerTeleport>
- #include <OnPlayerFly>
- #define AC_USE_CONFIG_FILES false
- #include <nex-ac>
- //#include <samp-node>
- #define Server:%0(%1) forward %0(%1); public %0(%1)
- #undef MAX_PLAYERS
- #define MAX_PLAYERS (256)
- #if !defined IsValidVehicle
- native IsValidVehicle(vehicleid);
- #endif
- #if !defined gpci
- native gpci(playerid, serial[], len);
- #endif
- #pragma compress 0
- #pragma dynamic 500000
- static bool:DoubleEXP = false;
- new dealershipCategories_Models[] = {
- 511, 487, 509, 480, 422, 567, 500, 420, 445, 451, 479, 454, 483
- };
- new call_count = 0, warrant_count = 0;
- new dealershipCategories_Names[][] = {
- "airplanes", "helicopters", "bikes", "convertibles", "industrial", "low riders", "off road", "public service", "saloons", "sports vehicles", "station wagons", "boats", "unique"
- };
- new dealershipCategories_MinPrices[6+6+3] = {
- 4000000, 1000000, 700, 65000, 25000, 60000, 110000, 45000, 35000, 150000, 80000, 20000, 35000
- };
- new PlayerText:MDC_UI[MAX_PLAYERS][70];
- new PlayerText:SetUp[MAX_PLAYERS][16];
- new PlayerText:MDC_Layout[MAX_PLAYERS][19];
- new dealershipVehiclesNames[][] = {
- // airplanes
- "beagle", "dodo",
- // helicopters
- "leviathan", "maverick", "news chopper",
-
- // bikes
- "faggio", "freeway", "sanchez", "quad", "BMX", "bicycle", "fcr-900", "wayfarer",
- // convertibles
- "comet", "feltzer", "windsor",
- // industrial
- "linerunner", "trashmaster", "pony", "mule", "bobcat", "rumpo", "packer", "flatbed", "yankee", "RC Van", "Walton", "Burrito", "Boxville", "Benson", "Tanker", "Roadtrain", "Sadler", "Yosemite", "DFT-30", "Newsvan", "Picador",
- // low riders
- "Voodoo", "Stallion", "Remington", "Slamvan", "Blade", "Tahoma", "Savanna", "Broadway", "Tornado",
- // off road
- "Landstalker", "Rancher", "Mesa", "Huntley",
- // public service
- "Taxi", "Bus", "Coach", "Cabbie",
- // saloons
- "Bravura", "Sentinel", "Manana", "Esperanto", "Washington", "Premier", "Previon", "Admiral", "Glendale", "Oceanic", "Hermes", "Virgo", "Greenwood", "Elegant", "Nebula", "Majestic", "Buccaneer", "Fortune", "Cadrona", "Willard", "Vincent", "Clover", "Intruder", "Primo", "Tampa", "Sunrise", "Merit", "Sultan", "Elegy", "Stafford", "Emperor",
- // sports
- "Buffalo", "Cheetah", "Banshee", "Sabre", "ZR-350", "Blista Compact", "Bullet", "Uranus", "Jester", "Flash", "Euros", "Club", "Alpha", "Phoenix",
- //station wagons
- "Perennial", "Moonbeam", "Solair", "Regina", "Stratum",
- //boats
- "Squalo", "Reefer", "Tropic", "Coastguard", "Dingy", "Marquis",
- //unique
- "Stretch", "Icecream Truck", "Camper", "Journey", "Tow Truck", "Hustler", "Hotdog"
- };
- new dealershipVehicles[][] = {
- // airplanes
- { 0, 511, 5000000 },
- { 0, 593, 4000000 },
-
- // helicopters
- { 1, 417, 1000000 },
- { 1, 487, 3500000 },
- { 1, 488, 1000000 },
- // bikes
- { 2, 462, 10000 },
- { 2, 463, 50000 },
- { 2, 468, 40000 },
- { 2, 471, 100000 },
- { 2, 481, 700 },
- { 2, 509, 1000 },
- { 2, 521, 200000 },
- { 2, 586, 50000 },
-
- // convertibles
- { 3, 480, 625000 },
- { 3, 533, 65000 },
- { 3, 555, 450000 },
- // industrial
- { 4, 403, 750000 },
- { 4, 408, 150000 },
- { 4, 413, 110000 },
- { 4, 414, 175000 },
- { 4, 422, 60000 },
- { 4, 440, 100000 },
- { 4, 443, 400000 },
- { 4, 455, 500000 },
- { 4, 456, 250000 },
- { 4, 459, 60000 },
- { 4, 478, 40000 },
- { 4, 482, 120000 },
- { 4, 498, 110000 },
- { 4, 499, 160000 },
- { 4, 514, 800000 },
- { 4, 515, 900000 },
- { 4, 543, 25000 },
- { 4, 554, 110000 },
- { 4, 578, 500000 },
- { 4, 582, 80000 },
- { 4, 600, 38000 },
- // low riders
- { 5, 412, 65000 },
- { 5, 439, 80000 },
- { 5, 534, 75000 },
- { 5, 535, 110000 },
- { 5, 536, 65000 },
- { 5, 566, 65000 },
- { 5, 567, 85000 },
- { 5, 575, 80000 },
- { 5, 576, 60000 },
- // off road
- { 6, 400, 180000 },
- { 6, 489, 110000 },
- { 6, 500, 140000 },
- { 6, 579, 300000 },
-
- // public service
- { 7, 420, 45000 },
- { 7, 431, 70000 },
- { 7, 437, 75000 },
- { 7, 438, 50000 },
-
- // saloons
- { 8, 401, 40000 },
- { 8, 405, 135000 },
- { 8, 410, 35000 },
- { 8, 419, 50000 },
- { 8, 421, 100000 },
- { 8, 426, 135000 },
- { 8, 436, 40000 },
- { 8, 445, 45000 },
- { 8, 466, 50000 },
- { 8, 467, 35000 },
- { 8, 474, 60000 },
- { 8, 491, 40000 },
- { 8, 492, 30000 },
- { 8, 507, 150000 },
- { 8, 516, 40000 },
- { 8, 517, 65000 },
- { 8, 518, 45000 },
- { 8, 526, 55000 },
- { 8, 527, 45000 },
- { 8, 529, 45000 },
- { 8, 540, 50000 },
- { 8, 542, 60000 },
- { 8, 546, 45000 },
- { 8, 547, 40000 },
- { 8, 549, 40000 },
- { 8, 550, 55000 },
- { 8, 551, 150000 },
- { 8, 560, 750000 },
- { 8, 562, 150000 },
- { 8, 580, 200000 },
- { 8, 585, 60000 },
-
- // sport vehicles
- { 9, 402, 400000 },
- { 9, 415, 850000 },
- { 9, 429, 850000 },
- { 9, 475, 150000 },
- { 9, 477, 700000 },
- { 9, 496, 150000 },
- { 9, 541, 1200000 },
- { 9, 558, 330000 },
- { 9, 559, 200000 },
- { 9, 565, 200000 },
- { 9, 587, 250000 },
- { 9, 589, 150000 },
- { 9, 602, 350000 },
- { 9, 603, 650000 },
-
- // station wagons
- { 10, 404, 80000 },
- { 10, 418, 80000 },
- { 10, 458, 90000 },
- { 10, 479, 85000 },
- { 10, 561, 110000 },
-
- // boats
- { 11, 446, 1000000 },
- { 11, 453, 180000 },
- { 11, 454, 300000 },
- { 11, 472, 150000 },
- { 11, 473, 20000 },
- { 11, 484, 350000 },
-
- // unique
- { 12, 409, 280000 },
- { 12, 423, 80000 },
- { 12, 483, 85000 },
- { 12, 508, 180000 },
- { 12, 525, 35000 },
- { 12, 545, 85000 },
- { 12, 588, 80000 }
- };
- new PlayerText:ds_PlayerTextDrawVehicles[MAX_PLAYERS+1][6] = { PlayerText:-1, ... };
- new PlayerText:ds_PlayerTextDrawVehiclesNames[MAX_PLAYERS+1][6] = { PlayerText:-1, ... };
- new PlayerText:ds_PlayerTextDrawVehiclesPrices[MAX_PLAYERS+1][6] = { PlayerText:-1, ... };
- new PlayerText:ds_PlayerTextDrawArrows[MAX_PLAYERS+1][2] = { PlayerText:-1, ... };
- new PlayerText:ds_PlayerTextDrawCategory[MAX_PLAYERS+1] = { PlayerText:-1, ... };
- new ds_PlayerMenuModels[MAX_PLAYERS+1][64];
- new ds_PlayerMenuNames[MAX_PLAYERS+1][64][32];
- new ds_PlayerMenuAmount[MAX_PLAYERS+1];
- new ds_PlayerMenuCallback[MAX_PLAYERS+1][31];
- new ds_PlayerMenuPrices[MAX_PLAYERS][64];
- new ds_PlayerMenuPage[MAX_PLAYERS+1];
- new ds_PlayerMenuCategory[MAX_PLAYERS+1];
- new ds_PlayerMenuCategoryName[MAX_PLAYERS+1][32];
- //Database establisher:
- new MySQL:m_Handle;
- #define MAIN_SERVER
- #if defined MAIN_SERVER
- #define SQL_HOSTNAME "localhost"
- #define SQL_USERNAME "airxdaffy"
- #define SQL_DATABASE "zairxdaffy0"
- #define SQL_PASSWORD "301135"
- #else
- #define SQL_HOSTNAME "localhost"
- #define SQL_USERNAME "airxdaffy"
- #define SQL_DATABASE "zairxdaffy0"
- #define SQL_PASSWORD "301135"
- #endif
- //Database establisher end of.
- main () { }
-
- /*
- x - major
- y - minor
- z - patch
- */
- #define REVISION "SA92 1.0"
- //Keys:
- #define PRESSED(%0) \
- (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
-
- #define RELEASED(%0) \
- (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
- #define HOLDING(%0) \
- ((newkeys & (%0)) == (%0))
-
- //Max defines:
- #define MAX_ZONE_NAME (28)
- #define MAX_FACTIONS (30)
- #define MAX_FACTION_RANKS (21)
- #define MAX_PROPERTY (2000)
- #define MAX_BUSINESS (300)
- #define MAX_PAYNSPRAY (9)
- #define MAX_OWNED_CARS (10)
- #define MAX_TOLLS (9)
- #define MAX_DAMAGES (200)
- #define MAX_DROP_ITEMS (200)
- #define MAX_FACTION_CARS (1000)
- #define MAX_FURNITURE (2000)
- #define MAX_SERVER_OBJECTS (200)
- #define MAX_HOUSE_FURNITURE (200)
- #define MAX_RENTALS (500)
- #define MAX_DOORS (200)
- #define MAX_PLAYER_NOTES (6)
- #define MAX_APBS (20)
- #define MAX_REPORTS (100)
- #define MAX_PLAYER_CONTACTS (15)
- #define MAX_PROPERTY_GARAGES (1500)
- #define MAX_XMR_CATEGORIES (40)
- #define MAX_XMR_SUBCATEGORY (400)
- #define MAX_GRANT_BUILD (8)
- #define MAX_SHOWING_FURNITURE (50)
- #define MAX_ADMIN_NOTES (6)
- #define MAX_CLOTHING_ITEMS (6)
- #define MAX_WEAPON_PACKAGES (21)
- #define MAX_CLOTHING_SHOW (25)
- #define MAX_COMMAND_LOG (21)
- #define MAX_CHAT_LOG (21)
- #define MAX_BOOMBOXS (30)
- #define MAX_GRAFFITI_SPOTS (80)
- #define MAX_POSSIBLE_WEAPONS (4)
- #define MAX_WEAPON_CRATES (7)
- //Colors:
- #define COLOR_WHITE (0xFFFFFFFF)
- #define COLOR_ADM (0xFF6347FF)
- #define COLOR_GREY (0xAFAFAFFF)
- #define COLOR_DARKGREEN (0x33AA33FF)
- #define COLOR_YELLOW (0xFFFF00FF)
- #define COLOR_EMOTE (0xC2A2DAFF)
- #define COLOR_PMREC (0xFFDC18FF)
- #define COLOR_PMSEN (0xEEE854FF)
- #define COLOR_ORANGE (0xFF9900AA)
- #define COLOR_ADMIN (0x587B95FF)
- #define COLOR_FADE1 (0xE6E6E6E6)
- #define COLOR_FADE2 (0xC8C8C8C8)
- #define COLOR_FADE3 (0xAAAAAAAA)
- #define COLOR_FADE4 (0x8C8C8C8C)
- #define COLOR_FADE5 (0x6E6E6E6E)
- #define COLOR_SAMP (0xADC3E7FF)
- #define COLOR_RED (0xF81414FF)
- #define COLOR_RADIO (0xFFEC8BFF)
- #define COLOR_RADIOEX (0xB5AF8FFF)
- #define COLOR_GRAD1 (0xCCE6E6FF)
- #define COLOR_GRAD2 (0xE2FFFFFF)
- #define COLOR_BLUE (0x33CCFFFF)
- #define COLOR_HELPER (0xA52A2AFF)
- #define COLOR_COP (0x8D8DFFFF)
- #define COLOR_PINK (0xFF00FFFF)
- #define COLOR_DEPT (0xF07A7AFF)
- #define COLOR_TEXTDRAW (0xAC7A32FF)
- #define COLOR_EMT (0xFF8282FF)
- #define COLOR_STATS (0x85A82BFF)
- #define COLOR_ACTION (0xF8E687FF)
- #define COLOR_CYAN (0x33CCFFFF)
- #define COLOR_NINER (0x00FFFFFF)
- #define COLOR_GOLD (0xFFD700FF)
- #define COLOR_REPORT (0xFFFF91FF)
- #define COLOR_SAN (0x99D9CBFF)
- //Body parts:
- #define BODY_PART_CHEST (3)
- #define BODY_PART_GROIN (4)
- #define BODY_PART_LEFT_ARM (5)
- #define BODY_PART_RIGHT_ARM (6)
- #define BODY_PART_LEFT_LEG (7)
- #define BODY_PART_RIGHT_LEG (8)
- #define BODY_PART_HEAD (9)
- //Business types:
- #define BIZ_PAWNSHOP (1)
- #define BIZ_RESTAURANT (2)
- #define BIZ_AMMUNATION (3)
- #define BIZ_CLUB (4)
- #define BIZ_STORE (5)
- #define BIZ_GENERAL (6)
- #define BIZ_BANK (7)
- #define BIZ_STANDALONE (8)
- #define BIZ_DMV (9)
- #define BIZ_CLOTHING (10)
- #define BIZ_BLACKMARKET (11)
- //Object bones:
- #define OBJECT_BONE_SPINE (1)
- #define OBJECT_BONE_HEAD (2)
- #define OBJECT_BONE_LUPPER_A (3)
- #define OBJECT_BONE_RUPPER_A (4)
- #define OBJECT_BONE_LHAND (5)
- #define OBJECT_BONE_RHAND (6)
- #define OBJECT_BONE_LTHIGH (7)
- #define OBJECT_BONE_RTHIGH (8)
- #define OBJECT_BONE_LFOOT (9)
- #define OBJECT_BONE_RFOOT (10)
- //Tolls:
- #define TOLL_LSLV (1)
- #define TOLL_FLINT (2)
- #define TOLL_RODEO (3)
- //Player states:
- #define STATE_ALIVE (1)
- #define STATE_WOUNDED (2)
- #define STATE_DEAD (3)
- //Jobs:
- #define MECHANIC_JOB (1)
- #define FISHERMAN_JOB (2)
- #define TAXI_JOB (3)
- #define TRUCKER_JOB (4)
- //Drug types:
- #define DRUG_TYPE_MARIJUANA (0)
- #define DRUG_TYPE_CRACK (1)
- #define DRUG_TYPE_COCAINE (2)
- #define DRUG_TYPE_ECSTASY (3)
- #define DRUG_TYPE_LSD (4)
- #define DRUG_TYPE_METH (5)
- #define DRUG_TYPE_PCP (6)
- #define DRUG_TYPE_HEROIN (7)
- #define DRUG_TYPE_ASPIRIN (8)
- #define DRUG_TYPE_HALOP (9)
- #define DRUG_TYPE_MORPHINE (10)
- #define DRUG_TYPE_XANAX (11)
- #define DRUG_TYPE_MDMA (12)
- #define DRUG_TYPE_PHENETOLE (13)
- #define DRUG_TYPE_STEROIDS (14)
- //Property types:
- #define PROPERTY_COMPLEX (1)
- #define PROPERTY_APARTMENT (2)
- #define PROPERTY_HOUSE (3)
- //
- #define DEFAULT_SKIN (264)
- #define MDC_ERROR (21001)
- #define MDC_SELECT (21000)
- #define MDC_OPEN (45400)
- #define WEAPON_SERVER_GIVEN (7777)
- #define WEAPON_AMMUNATION_GIVEN (8888)
- #define WEAPON_UNKNOWN_GIVEN (9999)
- #define GUN_SHOP_NUMBER (000011)
- #define WEAPON_ORDER_NUMBER (434112)
- #define MECHANIC_NUMBER (611)
- #define TAXI_NUMBER (411)
- //Warehouse Order Sys:
- #define BLACK_MARKET_SELECTED (1)
- #define WAREHOUSE_SELECTED (2)
- //
- #define WEAPON_ORDER_DEAGLE (600)
- #define WEAPON_ORDER_SHOTGUN (800)
- #define WEAPON_ORDER_TEC9 (900)
- //Mapping Types
- #define DEFAULT_MAP_TYPE (0)
- #define GATE_MAP_TYPE (1)
- //Fuel
- #define FUEL_TYPE_PETROL (1)
- #define FUEL_TYPE_DIESEL (2)
- #define FUEL_TYPE_ELECTRIC (3)
- //
- #define MAX_VLOG_PER_PAGE (20)
- #define MAX_PLOG_PER_PAGE (21)
- #define MAX_PLAYER_PER_PAGE (10)
- //Dynamic areas:
- new ImpoundLotArea;
- new JailCenterArea;
- new HospitalArea;
- //
- #define BLACK_MARKET_X (2766.6838)
- #define BLACK_MARKET_Y (-1610.9614)
- #define BLACK_MARKET_Z (10.9219)
- #define AD_CENTER_X (1129.3635)
- #define AD_CENTER_Y (-1488.6417)
- #define AD_CENTER_Z (22.7690)
- //1129.3635,-1488.6417,22.7690,
- //Dialogs:
- enum
- {
- DIALOG_DEFAULT,
- DIALOG_CONFIRM_SYS,
- DIALOG_USE,
-
- DIALOG_REGISTER,
- DIALOG_LOGIN,
-
- DIALOG_ADMINPM,
- DIALOG_INTERIORS,
-
- DIALOG_PDSKINS,
- DIALOG_SDSKINS,
- DIALOG_FDSKINS,
-
- DIALOG_TOLLS,
- DIALOG_TOLLM,
-
- DIALOG_FURNITURE,
- DIALOG_BUYFURNITURE,
- DIALOG_BUYFURNITURE_SUB,
- DIALOG_CURFURNITURE,
- DIALOG_FURNITUREINFO,
- DIALOG_EDIT_FURNITURE,
- DIALOG_FURNITURE_EDIT_MENU,
-
- DIALOG_DEALERSHIP,
- DIALOG_DEALERSHIP_SUB,
- DIALOG_DEALERSHIP_APPEND,
-
- DIALOG_APPEND_ALARM,
- DIALOG_APPEND_LOCK,
- DIALOG_APPEND_IMMOB,
- DIALOG_APPEND_COLOR,
- DIALOG_APPEND_COLOR2,
-
- DIALOG_XMR,
- DIALOG_XMR_SELECT,
-
- DIALOG_BUY_CLOTHING,
- DIALOG_CLOTHING_MENU,
- DIALOG_CLOTHING_EDIT,
- DIALOG_CLOTHES_BONE,
- DIALOG_FACTION_CLOTHING,
-
- DIALOG_ADMIN_MSG,
- DIALOG_SECRET_WORD_CREATE,
- DIALOG_SECRET_WORD_ENTER,
-
- DIALOG_GRAFFITI_MENU,
- DIALOG_GRAFFITI_TEXT,
- DIALOG_GRAFFITI_FONT,
-
- DIALOG_MDC,
- DIALOG_MDC_FINISH_QUEUE,
-
- DIALOG_MDC_NAME,
- DIALOG_MDC_PLATE_FULL,
- DIALOG_MDC_PLATE_PARTIAL,
- DIALOG_MDC_PLATE_LIST,
- DIALOG_MDC_PLATE,
- DIALOG_MDC_NAME_QUEUE,
- DIALOG_MDC_PLATE_QUEUE,
-
- DIALOG_MDC_NUMBER_SEARCH,
- /*
- DIALOG_MDC,
- DIALOG_MDC_NAME,
- DIALOG_MDC_NAME_QUEUE,
- DIALOG_MDC_PLATE,
- DIALOG_MDC_PLATE_QUEUE,
- DIALOG_MDC_PLATE_LIST,
- DIALOG_MDC_FINISH_QUEUE
- ,
- */
-
- DIALOG_FINES,
- DIALOG_FINES_DELETE,
- DIALOG_VEHICLE_FINES,
-
- DIALOG_ROADBLOCKS,
- DIALOG_ROADBLOCK_LIST,
- DIALOG_ACTIVE_ROADBLOCKS,
-
- DIALOG_FORUM_NAME,
-
- DIALOG_VLOG_LIST,
- DIALOG_PLOG_LIST,
-
- DIALOG_REPORTS,
-
- DIALOG_ADMINSYS,
-
- DIALOG_ASYS_OFFLINEBAN,
- DIALOG_ASYS_BANREASON,
-
- DIALOG_ASYS_OFFLINEAJAIL,
- DIALOG_ASYS_OJAILTIME,
- DIALOG_ASYS_OJAILREASON,
-
- DIALOG_APANEL,
- DIALOG_ASYS_UNBAN,
-
- DIALOG_LOOKUP_JAILS,
- DIALOG_LOOKUP_KICKS,
- DIALOG_LOOKUP_BANS,
-
- DIALOG_DECRYPTMASK,
-
- DIALOG_FINDMASK,
- DIALOG_SKINSEARCH,
-
- DIALOG_ANOTE_LOOKUP,
- DIALOG_ANOTE_SELECT,
-
- DIALOG_ANOTE_EDIT,
- DIALOG_ANOTE_EDIT_YES,
- DIALOG_ANOTE_EDIT_YES2,
- DIALOG_ANOTE_EDIT_YES3,
-
- DIALOG_ANOTE_ADD,
- DIALOG_ANOTE_ADD_REASON,
-
- DIALOG_ANOTE_DELETE,
- DIALOG_ANOTE_DELETE_SELECT,
- DIALOG_ANOTE_DELETE_CONFIRM,
-
- DIALOG_PASSWORD_CHANGE,
- DIALOG_PASSWORD_SECURITY_WORD,
-
- DIALOG_FACTIONMENU,
- DIALOG_FACTIONMENU_NAME,
- DIALOG_FACTIONMENU_ABBREV,
- DIALOG_FACTIONMENU_ALTER,
- DIALOG_FACTIONMENU_TOW,
- DIALOG_FACTIONMENU_CHAT,
- DIALOG_FACTIONMENU_JOIN,
- DIALOG_FACTIONMENU_EDIT,
- DIALOG_FACTIONMENU_EDITALT,
-
- DIALOG_FACTIONMEMBERS,
- //REGISTER_SKIN,
- REGISTER_GENDER,
-
- DIALOG_TRANSFER_DRUG,
- DIALOG_NEW_PACKAGE,
- DIALOG_NEW_PACKAGE_TYPE,
- DIALOG_EXISTING_PACKAGE,
- DIALOG_EXISTING_CHOOSE
- /*DIALOG_REG1,
- DIALOG_REG2,
- DIALOG_REG3,
- DIALOG_REG4,
- DIALOG_REG5*/
- }
- new PlayerMDCTimer[MAX_PLAYERS], PlayerMDCCount[MAX_PLAYERS];
- new PlayerMDCName[MAX_PLAYERS][32], PlayerPlateSaver[MAX_PLAYERS][5][20];
- //Enumerators:
- enum E_PLAYER_DATA
- {
- pSQLID,
- pAdmin,
- bool:pAdminDuty,
- pMoney,
- pBank,
- pSavings,
- pLevel,
- pExp,
- Float:pPos[5],
- pInterior,
- pWorld,
- pSkin,
- pIP[20],
- pMask,
- pMasked,
- pMaskID,
- pMaskIDEx,
- pAjailed,
- pAjailTime,
- pSpectator,
- pSpecVehicle,
- pMaxHealth,
- Float:pLastHealth,
- Float:pLastArmor,
- pMuted,
- pLogintime,
- pRegtime,
- pPassAttempts,
- pBrutallyWounded,
- pPMText[128],
- pPMing,
- pOwnedCar[10],
- pJetpack,
- pCheckpoint,
- pInsideBusiness,
- pInsideHouse,
- pInsideApartment,
- pInsideComplex,
- pInsidePNS,
- pInsideGarage,
- pInsideDoor,
- pRenting,
- pFaction,
- pFactionRank,
- pFactionChat,
- pLAWduty,
- pMEDduty,
- pHasRadio,
- pRadio[6],
- pRadioSlot[6],
- pMainSlot,
- pLegShot,
- pExecuteTime,
- pFactionOffer,
- Float:pMark[3],
- pPhone,
- pDonator,
- pHelper,
- pHelperDuty,
- pOffAjail,
- pOffAjailReason,
- pSetTime,
- pSetReason[128],
- pCallsign[60],
- pHandcuff,
- pTaser,
- pRubberbullet,
- bool:pTackle,
- pFriskRequest,
- pFrisking,
- pAllowedFrisk,
- pWeaponsGiven,
- pPlayTime,
- pHoursPlayed,
- pPaycheck,
- pChatstyle,
- pWalkstyle,
- pCalling,
- pPhoneline,
- pPhoneOff,
- pLoudspeaker,
- pWorkOn,
- pBlindfolded,
- plastCommand[128],
- pDriversLicense,
- pWeaponsLicense,
- pGender,
- pAutoLow,
- pSpawnSelect,
- pSpawnHouse,
- pCrashed,
- pFurnitureObject,
- pFurnitureName[32],
- pFurnitureModel,
- pSWATduty,
- pEnterVehicle,
- pTraceNum,
- pIsTracing,
- pAtDealership,
- p911CallTimer[2],
- p911Steps,
- p911Text[128],
- p911Location[128],
- pTogDeath,
- pTogColor,
- pEditingFurniture,
- pFurnitureDuplicate,
- pEditingDuplicate,
- pAddingXMR,
- pXMRObject,
- pAddingFurniture,
- pBuyingClothing,
- pEditingClothing,
- pClothingName[90],
- pEditingXMR,
- pPlayingAnimation,
- pAdminMsg[128],
- pAdminMsgBy[60],
- pAdmMsgConfirm,
- pUpgradePoints,
- pSecretWord[128],
- pJob,
- pSidejob,
- pJobLevel,
- pSidejobLevel,
- pLastConnect[60],
- pLastConnectTime,
- pHWID[60],
- pHasBoombox,
- bool:pCarryingMeal,
- bool:pPlacingMeal,
- pSkinMenu,
- bool:pSkinMenuOn,
- pActiveListing,
- pJailTimes,
- pPrisonTimes,
- bool:pUnscrambling,
- pUnscramblerTime,
- pUnscrambleTimer,
- pUnscrambleID,
- pScrambleSuccess,
- pScrambleFailed,
- pPauseWepAC,
- pPauseCheck,
- pPauseTime,
- pHasBurnerPhone,
- pBurnerPhoneNumber,
- bool:pUsingBurner,
- bool:pBurnerPhoneOff,
- pWepOrderRestricted,
- pICJailed,
- pICJailTime,
- pICJailNotify,
- Text3D:pICJail3D,
- pAddingRoadblock,
- pRoadblockObject,
- pRoadblockModel,
- pInsideAmbulance,
- pCigarettes,
- pDrinks,
- pForumName[60],
- pSpawnPrecinct,
- pToggleConnects,
- pLastChat,
- pLastCMDTime,
- pLastEmoteTime,
- pNicksToggled,
- pDCToggled,
- pHUD,
- pHUDToggled,
- pFightstyle,
- pTransferDrug,
- Float:pTransferQuantity,
- pTransferList[10],
- pDrugEffect,
- pDrugTime,
- pDrugStrength,
- pAdjustPackage
- }
- enum E_DRUG_DATA
- {
- drugPackage,
- drugType,
- Float:drugQuantity,
- drugStrength,
- }
- enum E_PROPERTY_DATA
- {
- propertyid,
- propertyOwnerSQL,
- propertyType, // 1- Complex, 2- Apartment, 3- House
- propertyComplexLink,
- propertyFaction,
- Float:propertyExterior[3],
- Float:propertyInterior[4],
- Float:propertyCheckPos[3],
- propertyExteriorID,
- propertyExteriorWorld,
- propertyInteriorID,
- propertyInteriorWorld,
- propertyMarketPrice,
- propertyRentable,
- propertyRentPrice,
- propertyAmmo[21],
- propertyWeapons[21],
- propertyLocked,
- propertyMoney,
- propertyLevel,
- Text3D:ForSaleSign,
- Text3D:OwnedSign,
- propertyPickup,
- propertyHasXMR,
- propertyXMRObject,
- Float:propertyXMRPos[3],
- Float:propertyXMRRot[3],
- propertyXMROn,
- propertyXMRUrl[128],
- }
- enum E_PLAYER_VEHICLES
- {
- carID,
- carIGid,
- carExists,
- carOwnerID,
- carModel,
- Float:carPos[4],
- carInterior,
- carWorld,
- Float:carFuel,
- carWindows[4],
- carLocked,
- carColor1,
- carColor2,
- carPaintjob,
- carMods[14],
- carXMR,
- carImpounded,
- carPlates[32],
- Float:carImpoundPos[4],
- Float:carEngine,
- Float:carBattery,
- carLock,
- carAlarm,
- carImmob,
- carInsurance,
- carTimeDestroyed,
- carWeapons[5],
- carWeaponsAmmo[5],
- carPackages[21],
- carPackagesAmmo[21],
- carPlaceObject[5],
- carlastDriver,
- carlastPassenger,
- carXMROn,
- carXMRUrl[128],
-
- carWeaponObject[5],
-
- Float:carWeapon1Pos[3],
- Float:carWeapon1Rot[3],
-
- Float:carWeapon2Pos[3],
- Float:carWeapon2Rot[3],
-
- Float:carWeapon3Pos[3],
- Float:carWeapon3Rot[3],
-
- Float:carWeapon4Pos[3],
- Float:carWeapon4Rot[3],
-
- Float:carLastHealth,
- carPanelStatus,
- carDoorsStatus,
- carLightsStatus,
- carTiresStatus
- }
- enum E_VEHICLE_DRUGS
- {
- drugPackage,
- drugType,
- Float:drugQuantity,
- drugStrength
- }
- enum E_HOUSE_PACKAGES
- {
- packageType,
- packageObject,
- Float:packagePos[6]
- }
- enum E_HOUSE_PACKAGES_DRUGS
- {
- drugPackage,
- drugType,
- Float:drugQuantity,
- drugStrength
- }
- enum E_FACTION_VEHICLES
- {
- carID,
- carFaction,
- carModel,
- Float:carPos[4],
- carInterior,
- carWorld,
- carColor1,
- carColor2,
- carSirens,
- carSirenObject,
- carSirenOn,
- carGunRack,
- carlastDriver,
- carlastPassenger,
- carsXMROn,
- carsXMRURL[128],
- Text3D:carsCallsign,
- carHasCallsign,
- carsCallsignText[90],
- carLicensePlate[32]
- }
- enum E_FACTION_DATA
- {
- factionID,
- factionExists,
- factionName[128],
- factionAbbrev[128],
-
- factionMaxRanks,
-
- factionEditrank,
- factionChatrank,
- factionTowrank,
-
- factionChatColor,
- factionChatStatus,
-
- factionCopPerms,
- factionMedPerms,
- factionWarehousePerms,
- factionNewsPerms,
-
- factionBank,
- factionProducts,
-
- Float:factionSpawn[4],
- Float:factionSpawnEx1[3],
- Float:factionSpawnEx2[3],
- Float:factionSpawnEx3[3],
-
- bool:factionHasWeaponOrder,
- factionOrderBy,
- factionOrderTime,
- factionOrderItems[MAX_WEAPON_PACKAGES],
- factionOrder_Timer,
- factionOrder_Delivery
- }
- enum E_BUSINESS_DATA
- {
- businessID,
- businessOwnerSQL,
- Float:businessInt[4],
- businessWorld,
- businessIntID,
- Float:businessExt[3],
- businessName[128],
- businessType,
- businessPickup,
- Float:businessBankPickupLoc[3],
- businessBankPickupWorld,
- businessBankPickupIntID,
- businessBankPickup,
- businessMarketPrice,
- businessLocked,
- businessFee,
- businessCashbox,
- businessLevel,
- businessProduct,
- businessWeapons[21],
- businessWeaponsAmmo[21],
- businessPackages[21],
- businessPackagesAmmo[21]
- }
- enum E_PAYNSPRAY_DATA
- {
- pnsID,
- pnsPickup,
- pnsName[128],
- Float:pnsEntrance[3],
- Float:pnsRepairSpot[3],
- pnsOwnerSQL,
- pnsPrice,
- pnsOccupied,
- pnsEarnings
- }
- enum E_TOLLS_DATA
- {
- tollID,
- tollLocked,
- tollPrice,
- tollStatus,
- Float:tollPointA[3],
- Float:tollPointB[3],
- tollTimer,
- tollVehicle
- }
- enum E_DAMAGE_DATA
- {
- damageTaken,
- damageWeapon,
- damageBodypart,
- damageArmor,
- damageTime,
- damageBy[90]
- }
- enum E_DROP_DATA
- {
- bool:eWeaponDropped,
- eDropWeaponID,
- eDropWeaponAmmo,
-
- Float:eWeaponPos[3],
- eWeaponInterior,
- eWeaponWorld,
-
- eWeaponDroppedBy,
-
- eWeaponObject,
- eWeaponTimer
- }
- enum E_RESOURCES_USE
- {
- Float:Exterior[4],
- Float:Interior[4],
- extInteriorID,
- extWorld,
- intInteriorID,
- intWorld,
- Type,
- Cost,
- Level,
- ComplexLink,
- Float:CmdSpot[3],
- v_Model,
- v_Faction,
- v_Color1,
- v_Color2,
- Float:v_Pos[4],
- InteriorID,
- InteriorWorld,
- PropertyLink
- }
- enum
- {
- FURNITURE_CATEGORY_FRAMES,
- FURNITURE_CATEGORY_BEDS,
- FURNITURE_CATEGORY_WALLS,
- FURNITURE_CATEGORY_FLOORS,
- FURNITURE_CATEGORY_DOORS,
- FURNITURE_CATEGORY_MISC,
- FURNITURE_CATEGORY_GRAF,
- FURNITURE_CATEGORY_STAIRS,
- FURNITURE_CATEGORY_ELEC,
- FURNITURE_CATEGORY_SEATS,
- FURNITURE_CATEGORY_TABLES
- }
- enum
- {
- DEALERSHIP_CATEGORY_AIRCRAFTS,
- DEALERSHIP_CATEGORY_BOATS,
- DEALERSHIP_CATEGORY_BIKES,
- DEALERSHIP_CATEGORY_TWODOOR,
- DEALERSHIP_CATEGORY_FOURDOOR,
- DEALERSHIP_CATEGORY_CIVIL,
- DEALERSHIP_CATEGORY_HEAVY,
- DEALERSHIP_CATEGORY_VANS,
- DEALERSHIP_CATEGORY_SUV,
- DEALERSHIP_CATEGORY_MUSCLE,
- DEALERSHIP_CATEGORY_RACERS
- }
- enum E_CLOTHING_INFO
- {
- clothingModel,
- clothingName[32],
- clothingPrice
- }
- enum E_FURNITURE_INFO
- {
- furnitureType,
- furnitureName[32],
- furnitureModel,
- furnitureCategory
- }
- enum E_FURNITURE_DATA
- {
- furnitureSQLID,
- furniturePropertyID,
- furnitureExists,
- furnituresModel,
- furnituresName[32],
- Float: furniturePos[3],
- Float: furnitureRot[3],
- furnitureObject,
- furnitureDoorLock,
- furnitureDoorOpen
- }
- enum E_OBJECT_DATA
- {
- ObjectDBID,
- Object_Model,
- Object,
-
- Float:Object_PosX,
- Float:Object_PosY,
- Float:Object_PosZ,
-
- Float:Object_RotX,
- Float:Object_RotY,
- Float:Object_RotZ,
-
- Float:Object_OpenX,
- Float:Object_OpenY,
- Float:Object_OpenZ,
-
- Float:Object_OpenRotX,
- Float:Object_OpenRotY,
- Float:Object_OpenRotZ,
-
- bool:Object_GateOpen,
-
- Object_Interior,
- Object_World,
-
- Object_Type,
- Object_Faction
- }
- enum E_RENTAL_DATA
- {
- rentalcarSQLID,
- rentalcarModel,
- rentalcarColor1,
- rentalcarColor2,
- Float: rentalcarPos[4],
- rentalcarRented,
- rentalcarRentedBy,
- rentalcarLocked
- }
- enum E_DOOR_DATA
- {
- doorID,
- Float: doorPos[3],
- Float: doorInt[4],
- doorPosIntID,
- doorPosWorld,
- doorIntID,
- doorIntWorld,
- doorFaction,
- doorName[128],
- doorLocked
- }
- enum E_PLAYER_NOTE_DATA
- {
- NoteSQLID,
- NotePlayerSQLID,
- NoteID,
- NoteDetail[128]
- }
- enum SAZONE_MAIN
- {
- SAZONE_NAME[28],
- Float:SAZONE_AREA[6]
- }
- enum E_APB_DATA
- {
- bulletinID,
- bulletinExists,
- bulletinDetails[128],
- bulletinBy[128]
- }
- enum E_DEALERSHIP_INFO
- {
- dealershipType,
- dealershipCategory,
- dealershipModelName[128],
- dealershipModelID,
- dealershipPrice
- }
- enum E_REPORT_DATA
- {
- bool:reportExists,
- reportBy,
- reportReason[128],
- reportTime
- }
- enum E_SUPPORT_DATA
- {
- bool:SupportExists,
- SupportRequester,
- SupportReason[128],
- SupportTime
- }
- enum E_CONTACTS_DATA
- {
- contactSQLID,
- contactPlayerSQLID,
- contactID,
- contactName[128],
- contactNumber
- }
- enum E_PROPERTY_GARAGE_DATA
- {
- garageSQLID,
- Float: garagePos[4],
- Float: garageInt[4],
- garageInteriorID,
- garageWorld,
- garageType,
- garagePropertyID,
- garageLocked,
- garageFaction
- }
- enum E_XMR_CATEGORY_DATA
- {
- XMRID,
- XMRCategoryName[90],
- XMRCategory
- }
- enum E_XMR_SUB_CATEGORY_DATA
- {
- xmrID,
- xmrCategory,
- xmrName[90],
- xmrStationURL[128],
- }
- enum E_GRANT_BUILD_DATA
- {
- GrantedSQLID
- }
- enum E_ADMIN_NOTES_DATA
- {
- anote_SQLID,
- anote_playerDBID,
- anote_reason[128],
- anote_issuer[60],
- anote_date[90],
- anote_active
- }
- enum E_CLOTHING_DATA
- {
- attachment_SQLID,
- attachment_playerDBID,
- attachment_modelid,
- attachment_bone,
- Float:attachment_Pos[3],
- Float:attachment_Rot[3],
- Float:attachment_Scale[3],
- attachment_name[90]
- }
- enum E_PACKAGES_DATA
- {
- packageWeapon[MAX_WEAPON_PACKAGES],
- packageAmmo[MAX_WEAPON_PACKAGES]
- }
- enum E_WEAPON_ATTACHMENTS
- {
- Float: weaponPos[3],
- Float: weaponRot[3],
- weaponBone,
- weaponHidden
- }
- enum E_BOOMBOX_DATA
- {
- boomboxExists,
- boomboxObject,
- boomboxArea,
- boomboxPlayerID,
- Float:boomboxPos[3],
- Float:boomboxRot[3],
- boomboxOn,
- boomboxURL[256],
- boomboxInBusiness
- }
- enum E_GRAFFITI_INFO
- {
- Float:graffitiPosX,
- Float:graffitiPosY,
- Float:graffitiPosZ,
- Float:graffitiRotX,
- Float:graffitiRotY,
- Float:graffitiRotZ,
- }
- enum E_GRAFFITI_DATA
- {
- graffitiObject,
- graffitiEdited,
- graffitiBy
- }
- enum E_MEAL_DATA
- {
- bool:mealExists,
- bool:mealPlaced,
- mealModel,
- mealObject,
- Float:mealPos[3],
- Float:mealRot[3]
- }
- enum E_UNSCRAMBLER_DATA
- {
- scrambledWord[60],
- unscrambledWord[60]
- }
- enum E_WEAPONS_DATA
- {
- eWeaponID,
- eWeaponAmmo,
-
- bool:eWeaponSaveable,
- eWeaponGivenBy,
- bool:eWeaponCCW,
- eWeaponSerial
- }
- enum E_ORDER_DATA
- {
- WeaponName[32],
- WeaponID
- }
- enum E_ORDERLOCATION_DATA
- {
- Float:LocationX,
- Float:LocationY,
- Float:LocationZ
- }
- enum E_FINE_DATA
- {
- Fine_ID,
- Fine_Issuer[34],
- Fine_Reason[128],
- Fine_Amount,
- Fine_Date[90]
- }
- enum E_ROADBLOCK_INFO
- {
- RoadblockName[60],
- RoadblockModel,
- }
- enum E_ROADBLOCK_DATA
- {
- RoadblockObject,
- RoadblocksModelID,
- bool:RoadblockExists,
- RoadblockPlacedBy[34],
- RoadblockLocation[40],
- Float:RoadblockPos[3],
- RoadblockWorld,
- RoadblockInterior,
- bool:RoadblockSpikes
- }
- enum E_WEAPONCRATES_DATA
- {
- bool:CrateExists,
- CrateObject,
-
- CrateFaction,
- CrateBy,
-
- CrateItems[MAX_WEAPON_PACKAGES],
- Text3D:CrateLabel,
-
- CrateAttachedTo,
- CrateVehicle,
-
- CrateBeingOpened
- }
- new WeaponCrates[MAX_WEAPON_CRATES][E_WEAPONCRATES_DATA];
- enum E_ENTERS_DATA
- {
- InteriorDBID,
-
- Float: Entrance[3],
- EntranceInteriorID,
- EntranceWorld,
-
- Float: Exit[3],
- ExitInteriorID,
- ExitWorld,
-
- bool:Locked,
-
- FactionOwner,
- IsBlackMarket,
- IsWarehouse
- }
- new Entrances[30][E_ENTERS_DATA];
- // [ ROADBLOCK DATA ]
- new Roadblocks[40][E_ROADBLOCK_DATA];
- // [ FINE DATA ]
- new Fines[MAX_PLAYERS][30][E_FINE_DATA];
- new VehicleFines[MAX_VEHICLES][30][E_FINE_DATA];
- new CheckingPlayerFine[MAX_PLAYERS];
- // [ WEAPON DATA ]
- new Weapon[MAX_PLAYERS][MAX_POSSIBLE_WEAPONS][E_WEAPONS_DATA];
- // [ GRAFFITI VARIABLES ]
- new GraffitiData[MAX_GRAFFITI_SPOTS][E_GRAFFITI_DATA];
- new bool:sprayPermission[MAX_PLAYERS];
- new bool:sprayingGraffiti[MAX_PLAYERS], sprayingGraffitiTime[MAX_PLAYERS];
- new saveSprayingTime[MAX_PLAYERS];
- new graffitiText[MAX_PLAYERS][65], graffitiTimer[MAX_PLAYERS], graffitiTimerEx[MAX_PLAYERS];
- new bool:graffitiTimerEx_Confirm[MAX_PLAYERS];
- new graffitiID[MAX_PLAYERS], graffitiFont[MAX_PLAYERS][60];
- new GraffitiActual[MAX_PLAYERS][65]; // REAL GRAFFITI TEXT
- new GraffitiTD[MAX_PLAYERS][65]; // TEXT WE'RE GOING TO SHOW
- new DotsSetForGraffiti[MAX_PLAYERS]; // IF DOTS WERE SET
- new CharactersSetGraffiti[MAX_PLAYERS][65]; // CHECKING WHICH DOTS ARE SET
- new IsGraffitiDone[MAX_PLAYERS];
- new GraffitiExitTimer[MAX_PLAYERS];
- //GraffitiActual is the blank text for Graffiti
- //GraffitiTD is the L.... text that'll show
- //new PDToll[2];
- new PDDoor[16];
- // [ BOOMBOX VARIABLES ]
- new BoomboxData[MAX_BOOMBOXS][E_BOOMBOX_DATA];
- new EditingBoombox[MAX_PLAYERS];
- // [ WEP ATTACHMENT VARIABELS ]
- new WeaponDisplay[MAX_PLAYERS][35][E_WEAPON_ATTACHMENTS];
- new DisplayTimer[MAX_PLAYERS];
- new EditingDisplay[MAX_PLAYERS];
- // [ LOG VARIABLES ]
- new PlayerChatLogs[MAX_PLAYERS][30][128];
- new PlayerCommandLogs[MAX_PLAYERS][30][128];
- // [ DRUG VARIABLES ]
- new DrugData[MAX_PLAYERS][10][E_DRUG_DATA];
- // [ WEAPON PACKAGE VARIABLES ]
- new PackageData[MAX_PLAYERS][E_PACKAGES_DATA];
- // [ CLOTHING VARIABLES ]
- new ClothingData[MAX_PLAYERS][MAX_CLOTHING_ITEMS][E_CLOTHING_DATA];
- new PlayerClothingPage[MAX_PLAYERS], ClothingItemSelector[MAX_PLAYERS][MAX_CLOTHING_SHOW+3];
- new ClothingCost[MAX_PLAYERS];
- new clothing_index[MAX_PLAYERS], ClothingHolder[MAX_PLAYERS];
- new ClothingMenuSelect[MAX_PLAYERS][MAX_CLOTHING_ITEMS];
- // [ ADMIN NOTE VARIABLES ]
- new aNotesData[MAX_PLAYERS][MAX_ADMIN_NOTES][E_ADMIN_NOTES_DATA];
- new anote_idsave[MAX_PLAYERS];
- // [ FURNITURE GRANTBUILD VARIABLES ]
- new BuildData[MAX_PLAYERS][MAX_GRANT_BUILD][E_GRANT_BUILD_DATA];
- // [ XMR VARIABLES ]
- new XMRCategoryData[MAX_XMR_CATEGORIES][E_XMR_CATEGORY_DATA];
- new XMRData[MAX_XMR_SUBCATEGORY][E_XMR_SUB_CATEGORY_DATA];
- new CatXMRHolder[MAX_PLAYERS], SubXMRHolder[MAX_PLAYERS];
- new SubXMRHolderArr[MAX_PLAYERS][MAX_XMR_CATEGORIES];
- // [ GLOBAL VARIABLES ]
- new OOC, GlobalWeather = 2;
- new TotalJailees;
- new WEAPON_ANTI_CHEAT = 1;
- new AMMO_ANTI_CHEAT = 1;
- new bool:WEAPON_ORDER_DISABLED = true;
- new dmvCar1, dmvCar2, dmvCar3, dmvCar4;
- new TruckerVehicles[13];
- new MicPerms[MAX_PLAYERS];
- //Mapping
- new MechLift, bool:MechUp;
- // [ PLAYER VARIABLES ]
- new gPlayerInsideEntrance[MAX_PLAYERS];
- new gShowingTextDrawInfo[MAX_PLAYERS];
- new gShowingTextDrawTimer[MAX_PLAYERS];
- new gHidingFactionTimer[MAX_PLAYERS];
- //AntiCheat
- new ACPausedForPlayer[MAX_PLAYERS];
- new PauseMessage[MAX_PLAYERS];
- new bool:pLoggedIn[MAX_PLAYERS], PlayerData[MAX_PLAYERS][E_PLAYER_DATA];
- new Float:oldHealth[MAX_PLAYERS];
- new _pay_security_timer[MAX_PLAYERS], _taking_license_test[MAX_PLAYERS], _taking_license_point[MAX_PLAYERS];
- new _taking_license_vehicle[MAX_PLAYERS], _taking_license_time[MAX_PLAYERS], _respawn_timer[MAX_PLAYERS];
- new _has_vehicle_spawned[MAX_PLAYERS], _has_spawned_vehicleid[MAX_PLAYERS];
- new note_save_id[MAX_PLAYERS], contact_save_id[MAX_PLAYERS];
- new playerTowingVehicle[MAX_PLAYERS], playerTowTimer[MAX_PLAYERS];
- new Text3D:vehicleTowSign[MAX_VEHICLES], playerVehicleTowCount[MAX_PLAYERS];
- new PlayerMDCText[MAX_PLAYERS][32], PlayerMDCPlateHolder[MAX_PLAYERS][5][32];
- new PlayerStolenCarTimer[MAX_PLAYERS], PlayerStolenCarPrompt[MAX_PLAYERS];
- new PlayerStolenCarPlate[MAX_PLAYERS][32];
- new SavePlayerTaser[MAX_PLAYERS];
- new PlaceCadWait[MAX_PLAYERS];
- new PlaceAdWait[MAX_PLAYERS];
- new PlayerConnectionTick[MAX_PLAYERS];
- new PlayerLoginTick[MAX_PLAYERS];
- //Desync
- new PlayerIsDesynced[MAX_PLAYERS];
- new PlayerDesyncNotify[MAX_PLAYERS];
- new PlayerJustDied[MAX_PLAYERS];
- //Legshot
- new LegShotTimer[MAX_PLAYERS];
- //Lock Breaking
- new PlayerBreakingIn[MAX_PLAYERS];
- new PlayerBreakInVehicle[MAX_PLAYERS];
- new Text3D:BreakInTextDraw[MAX_PLAYERS];
- new BreakInTDTimer[MAX_PLAYERS];
- new ActiveLockTD[MAX_PLAYERS];
- new BreakInError[MAX_PLAYERS];
- new BreakInLevel[MAX_PLAYERS];
- //SMS
- new PlayerSMS[MAX_PLAYERS][128];
- //
- new CanPMAdmin[MAX_PLAYERS][MAX_PLAYERS];
- new WatchingDamages[MAX_PLAYERS][MAX_PLAYERS];
- //
- new PlayerReport[MAX_PLAYERS][128];
- //Armor
- new ArmorGiven[MAX_PLAYERS];
- //Tutorial
- new PlayerTutorial[MAX_PLAYERS];
- new PlayerTutorialStep[MAX_PLAYERS];
- new PlayerTutorialTimer[MAX_PLAYERS];
- new PlayerPassword[MAX_PLAYERS][90];
- //Death
- new DeathTimeNotice[MAX_PLAYERS];
- //New HUD
- new PlayerText:Player_Hud[ MAX_PLAYERS ][ 9 ];
- //Spectating
- new SpectatorWait[MAX_PLAYERS];
- //Vehicle Logs
- new PlayerVlogPage[MAX_PLAYERS];
- new PlayerVlogVehicle[MAX_PLAYERS];
- //Player Logs
- new PlayerLogPage[MAX_PLAYERS];
- new PlayerLogPlayer[MAX_PLAYERS];
- //Calling Mechanic
- new MechanicText[MAX_PLAYERS][128];
- new MechanicCallTimer[MAX_PLAYERS];
- //Calling Taxi
- new TaxiText[MAX_PLAYERS][2][128];
- new TaxiStage[MAX_PLAYERS];
- new TaxiCallTimer[MAX_PLAYERS];
- //Weapon Order
- new bool:OrderedWeapon[MAX_PLAYERS];
- new OrderWeaponTime[MAX_PLAYERS];
- new WeaponOrdered[2][MAX_PLAYERS];
- new WeaponOrderedName[2][MAX_PLAYERS][32];
- new WeaponOrderTimer[MAX_PLAYERS];
- new WeaponOrderPrompt[MAX_PLAYERS];
- new WeaponOrderStop[MAX_PLAYERS];
- new WeaponOrderArea[MAX_PLAYERS];
- new WeaponOrderDoneTime[MAX_PLAYERS];
- new WeaponOrderPrice[MAX_PLAYERS];
- new WeaponOrderSpot[MAX_PLAYERS];
- new WeaponOrderObject[MAX_PLAYERS];
- //Trucker Job
- new TruckerVehicleRentedBy[MAX_VEHICLES];
- new bool:StartedTruckerMission[MAX_PLAYERS];
- new TruckerMissionVehicle[MAX_PLAYERS];
- new bool:SpawnedTrailer[MAX_PLAYERS];
- new TrailerAttachTime[MAX_PLAYERS];
- new TrailerID[MAX_VEHICLES];
- new TrailerTimer[MAX_PLAYERS];
- new TruckerMissionPoint[MAX_PLAYERS];
- new TruckerMissionStep[MAX_PLAYERS];
- new TruckerJobTimer[MAX_PLAYERS];
- new TruckerJobDeliverTimer[MAX_PLAYERS];
- new TruckerJobDeliveryCount[MAX_PLAYERS];
- new TruckerJobEarnings[MAX_PLAYERS];
- new TruckerJobExitTimer[MAX_PLAYERS];
- new TruckerJobExitCount[MAX_PLAYERS];
- //Taxi Job
- new bool:StartedTaxiJob[MAX_PLAYERS];
- new TaxiDriver[MAX_PLAYERS]; //Taxi driver's ID when player enters;
- new TaxiDurationTimer[MAX_PLAYERS];
- new TaxiFairTimer[MAX_PLAYERS];
- new TaxiDuration[MAX_PLAYERS];
- new TaxiPrice[MAX_PLAYERS];
- new InTaxiRide[MAX_PLAYERS];
- new TaxiDriverTimer[MAX_PLAYERS];
- new TaxiFair[MAX_PLAYERS];
- new TaxiTotalFair[MAX_PLAYERS];
- new TaxiFairStarted[MAX_PLAYERS];
- //
- new PlayerIsTased[MAX_PLAYERS];
- //Vehicle Sell
- new VehicleOfferedTo[MAX_PLAYERS]; //Player who uses /v sell;
- new VehicleOfferBy[MAX_PLAYERS]; //Target of /vsell;
- new VehicleDBIDOffered[MAX_PLAYERS]; //Vehicle of /vsell;
- new VehiclePrice[MAX_PLAYERS]; //Price of /vsell;
- //Fuel Station Refill
- new PlayerRefilling[MAX_PLAYERS]; //When uses /v refill, starts.
- new RefillPoint[MAX_PLAYERS]; // The refill point counter;
- new Text3D:RefillTextdraw[MAX_PLAYERS]; // TD refill;
- new RefillTimer[MAX_PLAYERS];
- new RefillPrice[MAX_PLAYERS];
- new Float:RefillAmount[MAX_PLAYERS];
- new RefillVehicle[MAX_PLAYERS];
- //Hire Business
- new OfferedHireTo[MAX_PLAYERS];
- new OfferedHireBusinessID[MAX_PLAYERS];
- new OfferedHireBy[MAX_PLAYERS];
- //Admin System
- new OfflineBanName[MAX_PLAYERS][60];
- new OfflineJailName[MAX_PLAYERS][60], OfflineJailTime[MAX_PLAYERS];
- new AdminPanelName[MAX_PLAYERS][60];
- new AdminNoteSelect[MAX_PLAYERS][MAX_ADMIN_NOTES];
- new AdminNoteSelected[MAX_PLAYERS], AdminNoteIssuer[MAX_PLAYERS][90];
- //Password Change
- new CanChangePassword[MAX_PLAYERS];
- //Warehouse Variable
- new WarehouseWeapons[MAX_PLAYERS][MAX_WEAPON_PACKAGES];
- new WarehouseCallTimer[MAX_PLAYERS];
- new WarehouseCallStep[MAX_PLAYERS];
- new gOpeningCrateTimer[MAX_PLAYERS];
- new gOpeningCrate[MAX_PLAYERS]; new gCrateOpenIntervals[MAX_PLAYERS];
- new Float:gOpeningCratePos[MAX_PLAYERS][3];
- // [ TEXTDRAW VARIABLES ]
- new Text:Buymenu_TD[37], Text:furnitureadd_TD[9];
- new Text:blindfoldTextdraw, Text:TD_mealMenu[17];
- new PlayerText:DefaultTextdraw[MAX_PLAYERS];
- new PlayerText:SpectatorTD[MAX_PLAYERS][6];
- new PlayerText:Trace_PTD[MAX_PLAYERS][1], PlayerText:CarBought_PTD[MAX_PLAYERS][2];
- new PlayerText:Getjob_PTD[MAX_PLAYERS][4], PlayerText:Skinmenu_PTD[MAX_PLAYERS][3];
- new PlayerText:Unscrambler_PTD[MAX_PLAYERS][7];
- new PlayerText:TruckerJob_PTD[MAX_PLAYERS][2];
- new PlayerText:TruckerEarning_PTD[MAX_PLAYERS][2];
- new PlayerText:TruckerWarning_PTD[MAX_PLAYERS][2];
- new PlayerText:TaxiFair_PTD[MAX_PLAYERS][5];
- new PlayerText:OrderCount[MAX_PLAYERS][2];
- new PlayerText:GraffitiDisplay[MAX_PLAYERS];
- //Vehicle HUD
- new PlayerText:VehicleHUD[MAX_PLAYERS][6];
- //
- //Vehicle List HUD
- new PlayerText:Player_Vehicles[MAX_PLAYERS][6];
- new PlayerText:Player_Vehicles_Name[MAX_PLAYERS][6];
- new PlayerText:Player_Vehicles_Arrow[MAX_PLAYERS][3];
- new PlayerText:Player_Static_Arrow[MAX_PLAYERS];
- new PlayerListShow[MAX_PLAYERS];
- //Warehouse Menu
- new Text:WarehouseMenu[46];
- new PlayerText:WarehouseMenu_P[MAX_PLAYERS][3];
- new Text:CrateInventory[2];
- new PlayerText:CrateInventory_P[MAX_PLAYERS][1];
- // [ RESOURCES VARIABLES ]
- new Resources[MAX_PLAYERS][E_RESOURCES_USE];
- // [ PROPERTY VARIABLES ]
- new PropertyData[MAX_PROPERTY][E_PROPERTY_DATA], TotalPropertyMade = 0;
- new HousePackages[MAX_PROPERTY][10][E_HOUSE_PACKAGES];
- new PackageDrugs[MAX_PROPERTY][10][20][E_HOUSE_PACKAGES_DRUGS];
- // [ VEHICLE VARIABLES ]
- new CarData[MAX_VEHICLES][E_PLAYER_VEHICLES];
- new CarDrugData[MAX_VEHICLES][10][E_VEHICLE_DRUGS];
- new AdminCar[MAX_VEHICLES], AdminCarColor1[MAX_VEHICLES], AdminCarColor2[MAX_VEHICLES];
- new CarEngine[MAX_VEHICLES], CarLights[MAX_VEHICLES];
- new CarlastDriver[MAX_VEHICLES], CarlastPassenger[MAX_VEHICLES];
- //Weapon Positions
- new SlotBeingUsed[MAX_VEHICLES][5];
- new PlayerPlacingInVehicle[MAX_PLAYERS];
- new PlayerPlacingWeapon[MAX_PLAYERS];
- new PlayerEditingWeapon[MAX_PLAYERS];
- new PlayerPlacingWeaponSlot[MAX_PLAYERS];
- new PlayerPlacingWeaponID[MAX_PLAYERS];
- new PlayerPlacingWeaponAmmo[MAX_PLAYERS];
- // [ FACTION VEHICLE VARIABLES ]
- new FactionCar[MAX_FACTION_CARS][E_FACTION_VEHICLES];
- new Text3D:vehicleTextdraw[MAX_PLAYERS], playerTextdraw[MAX_PLAYERS];
- // [ FACTION VARIABLES ]
- new FactionData[MAX_FACTIONS][E_FACTION_DATA], TotalFactionsLoaded = 0;
- static FactionName[128], FactionAbbrev[128];
- static Float:FactionSpawn[4];
- new FactionRanks[MAX_FACTIONS][MAX_FACTION_RANKS][60];
- // [ BUSINESS VARIABLES ]
- new BusinessData[MAX_BUSINESS][E_BUSINESS_DATA], TotalBusinessesLoaded = 0;
- // [ PAY N' SPRAY VARIABLES ]
- new PNSData[MAX_PAYNSPRAY][E_PAYNSPRAY_DATA], TotalPaynSpraysLoaded = 0;
- // [ TOLL VARIABLES ]
- new TollsData[MAX_TOLLS][E_TOLLS_DATA], TotalTollsLoaded = 0;
- new totalTollPayment = 0, tollTimesLocked = 0;
- new tollObject1, tollObject2; // LSLV
- new tollObject3, tollObject4; // Richman
- new tollObject5, tollObject6; // Flint
- // [ DAMAGE VARIABLES ]
- new DamageData[MAX_PLAYERS][MAX_DAMAGES][E_DAMAGE_DATA];
- new totalDamages[MAX_PLAYERS];
- // [ DROPGUN VARIABLES ]
- new DropData[MAX_DROP_ITEMS][E_DROP_DATA];
- // [ RENTAL VARIABLES ]
- new RentalData[MAX_RENTALS][E_RENTAL_DATA];
- // [ DOOR VARIABLES ]
- new DoorData[MAX_DOORS][E_DOOR_DATA], TotalDoorsLoaded = 0;
- // [ NOTE VARIABLES ]
- new NoteData[MAX_PLAYERS][MAX_PLAYER_NOTES][E_PLAYER_NOTE_DATA];
- // [ FURNITURE VARIABLES ]
- new FurnitureData[MAX_FURNITURE][E_FURNITURE_DATA];
- new CatFurnitureHolder[MAX_PLAYERS], SubFurnitureHolder[MAX_PLAYERS];
- new SubFurnitureHolderArr[MAX_PLAYERS][MAX_FURNITURE];
- new FurnitureSelectHolder[MAX_PLAYERS][MAX_SHOWING_FURNITURE+3];
- new FurnitureSelectHolderArr[MAX_PLAYERS];
- new PlayerFurniturePage[MAX_PLAYERS], PlayerListitemSelected[MAX_PLAYERS];
- // [ OBJECT VARIABLES ]
- new ObjectData[MAX_SERVER_OBJECTS][E_OBJECT_DATA];
- new PlayerAddingObject[MAX_PLAYERS], PlayerAddingModel[MAX_PLAYERS], PlayerEditingObject[MAX_PLAYERS];
- new PlayerSpawnObject[MAX_PLAYERS], PlayerEditingID[MAX_PLAYERS];
- new PlayerEditingOpen[MAX_PLAYERS];
- // [ APB VARIABLES ]
- new APBData[MAX_APBS][E_APB_DATA];
- // [ REPORT VARIABLES ]
- new ReportData[MAX_REPORTS][E_REPORT_DATA];
- // [ SUPPORT VARIABLES ]
- new SupportData[100][E_SUPPORT_DATA];
- // [ CONTACT VARIABLES ]
- new ContactsData[MAX_PLAYERS][MAX_PLAYER_CONTACTS][E_CONTACTS_DATA];
- // [ PROPERTY GARAGE VARIABLES ]
- new GarageData[MAX_PROPERTY_GARAGES][E_PROPERTY_GARAGE_DATA], TotalPropertyGaragesMade = 0;
- // [ DEALERSHIP VARIABLES ]
- new CatDealershipHolder[MAX_PLAYERS], SubDealershipHolder[MAX_PLAYERS];
- new SubDealershipHolderArr[MAX_PLAYERS][200];
- new g_aVehicleSpawned[MAX_PLAYERS], g_aVehicleColor[MAX_PLAYERS][2];
- new g_aLockLevel[MAX_PLAYERS], g_aAlarmLevel[MAX_PLAYERS], g_aImmobLevel[MAX_PLAYERS], g_aXMR[MAX_PLAYERS];
- new g_aTotalAmount[MAX_PLAYERS], g_aSlotSave[MAX_PLAYERS], g_aPlates[MAX_PLAYERS][32];
- // [ MECHANIC JOB VARIABLES ]
- new paintjobOffered[MAX_PLAYERS][2], paintjobColors[MAX_PLAYERS][2];
- new bool:startingPaintjob[MAX_PLAYERS], paintjobVehicle[MAX_PLAYERS], paintjobTimer[MAX_PLAYERS], paintjobCounter[MAX_PLAYERS];
- new paintjobTime[MAX_PLAYERS];
- // [ MEAL MENU VARIABLES ]
- new MealMenu[MAX_PLAYERS][E_MEAL_DATA];
- // [ UNSCRAMBLER VARIABLES ]
- static const g_aUnscrambleInfo[][E_UNSCRAMBLER_DATA] = {
- {"Pssawodr", "Password"},
- {"Inof", "Info"},
- {"Hldoer", "Holder"},
- {"Tmei", "Time"},
- {"Pntia", "Paint"},
- {"Sroloc", "Colors"},
- {"Gaager", "Garage"},
- {"Proprety", "Property"},
- {"Conctsa", "Contacts"},
- {"Laern", "Learn"},
- {"Sedo", "Does"},
- {"Yot", "Toy"},
- {"Atbo", "Boat"},
- {"Crambles", "Scramble"},
- {"Cmaer", "Cream"},
- {"Leras", "Laser"},
- {"Scrmea", "Scream"},
- {"Braec", "Brace"}
- };
- //
- static const g_aDealershipCategory[][] = {
- {"Aircrafts"},
- {"Boats"},
- {"Bikes"},
- {"2-Door & Compact cars"},
- {"4-Door & Luxury cars"},
- {"Civil Service"},
- {"Heavy & Utility Trucks"},
- {"Light trucks & Vans"},
- {"SUVs & Wagons"},
- {"Muscle Cars"},
- {"Street Racers"}
- };
- /*new g_aGraffitiData[][E_GRAFFITI_INFO] = {
- {1832.995727, -2113.689208, 14.072821, 0.000000, 0.000000, 0.000000},
- {1868.269287, -2095.433105, 14.367721, 0.000000, 0.000000, 90.000015}, //south facing
- {2163.614013, -1762.289794, 14.627322, 0.000000, 0.000000, -90.000030}, //north facing
- {2275.686279, -1679.490966, 15.960313, 0.000000, 0.000000, 179.999969} //east facing
- };*/
- new g_aGraffitiData[][E_GRAFFITI_INFO] = {
- {2081.867675, -1255.466430, 24.712007, -12.800003, 0.000000, 0.000000},
- {2268.340332, -1031.824707, 53.437198, 0.000000, 0.000000, 135.800155},
- {2652.655517, -1123.089355, 66.999664, 0.000000, 0.000000, 0.399999},
- {2652.727294, -1268.601074, 50.095500, 0.000000, 0.000000, 0.000000},
- {2441.024169, -1215.926757, 32.154163, 0.000000, 0.000000, -179.199768},
- {2352.000488, -1262.450927, 22.958444, 0.000000, 0.000000, 0.000000},
- {2195.268554, -1745.694580, 13.739686, 0.000000, 0.000000, -177.399734},
- {1868.005493, -2038.964843, 15.976880, 0.000000, 0.000000, 179.700088},
- {1832.987426, -2111.634033, 13.946876, 0.000000, 0.000000, 0.000000},
- {1862.723510, -2095.458007, 13.890580, 0.000000, 0.000000, 89.700012},
- {2097.205566, -1258.445434, 24.748823, -16.799999, 0.000000, 87.999984},
- {2135.333984, -1820.317871, 13.748497, 0.000000, 0.000000, 0.000000},
- {2171.669921, -1709.278564, 15.921793, -8.500000, 0.000000, 179.999969},
- {2112.414794, -1500.848632, 11.099428, 0.000000, 0.000000, -109.899978},
- {2129.287841, -1374.363769, 25.878126, 0.000000, 0.000000, 90.400009},
- {2110.260253, -1352.890625, 25.076538, 9.399998, -0.699999, -179.799743},
- {2052.904296, -1322.635498, 24.954380, 0.000000, 0.000000, 179.800018},
- {2159.781494, -1693.122314, 16.025939, 0.000000, 0.000000, -179.099990},
- {2146.816650, -1698.676025, 15.438446, 0.000000, 0.000000, 91.499877},
- {2175.154052, -1732.381713, 14.535001, 0.000000, 0.000000, -178.500061},
- {2231.739501, -1683.644775, 15.479531, 0.000000, 0.000000, -16.500001},
- {2121.155029, -1594.672729, 15.621557, 0.000000, 0.000000, 86.900100},
- {2123.272705, -1593.691284, 15.241566, 0.000000, 0.000000, -179.499893},
- {2112.329345, -1632.425170, 13.739908, 0.000000, -3.200001, -89.700065},
- {2081.344970, -1592.929809, 14.757192, 0.000000, 0.000000, 179.300003},
- {2073.782470, -1597.242553, 14.414111, 0.000000, 0.000000, 90.300033},
- {2031.132568, -1599.088867, 13.910934, 0.000000, 0.000000, -168.799987},
- {1986.863281, -1598.860839, 13.900341, 0.000000, 0.000000, -135.000076},
- {2478.406982, -1705.506347, 13.490673, 0.000000, 0.000000, 176.799804},
- {2478.767578, -1688.184936, 13.487812, 0.000000, 0.000000, -98.600006},
- {2520.675781, -1673.658447, 15.454930, 0.000000, 0.000000, 0.000000},
- {2534.723388, -1665.125732, 15.735736, 0.000000, 0.000000, -178.699966},
- {2431.231689, -1680.935424, 14.411346, 0.000000, 0.000000, -90.199958},
- {2398.518066, -1693.246948, 13.891834, 0.000000, 0.000000, 87.599990},
- {2377.614990, -1707.240112, 14.127936, 0.000000, 0.000000, 0.000000},
- {2440.530517, -1997.948486, 14.406878, 0.000000, 0.000000, 89.199966}, // Willowfield red wall
- {2459.481933, -1975.134521, 14.166885, 0.000000, 0.000000, 0.000000}, // Willowfield alley
- {2459.608642, -2043.951049, 11.091508, 0.000000, 0.000000, 88.000068}, // Willowfield sewer
- {1958.593139, -1742.345336, 13.856878, 0.000000, 0.000000, 90.700050}, // Idlegas [Artsy]
- {1951.642700, -1682.986083, 13.822822, 0.000000, 0.000000, 0.000000}, // North of Idlegas [Artsy],
- {1991.694580, -1683.518676, 13.636877, 0.000000, 0.000000, 178.599838}, // West 4-1-5 [Artsy],
- {2135.621582, -1258.083496, 24.192192, 0.000000, 0.000000, 90.099929} // Jefferson Alley [Fireworks]
- };
- new g_aFactionClothing[][E_CLOTHING_INFO] = {
- {19774, "Police Badge 1", 50},
- {19775, "Police Badge 2", 50},
- {19347, "Sheriff Badge", 50},
- {19776, "ID Card", 50},
- {19792, "Keycard", 50},
- {19904, "Construction Vest", 50},
- {19942, "Police Radio", 50},
- {19418, "Handcuffs", 50},
- {11749, "Open Cuffs", 50},
- {11750, "Closed Cuffs", 50},
- {18636, "Police Cap", 50},
- {18637, "Police Shield", 100},
- {18641, "Flashlight", 50},
- {18642, "Taser", 50},
- {18875, "Pager", 50},
- {19141, "SWAT Helmet (LSPD)", 50},
- {19142, "SWAT Armor (LSPD)", 100},
- {19161, "Black Police Cap", 50},
- {19162, "Blue Police Cap", 50},
- {19200, "Police Helmet", 50},
- {19330, "Yellow Fire Hat (LSFD)", 50},
- {19331, "Black Fire Hat (LSFD)", 50},
- {19472, "Gas Mask", 50},
- {19514, "White SWAT Helmet (LSSD)", 50},
- {19515, "White SWAT Armor (LSSD)", 100},
- {19520, "Pilot Hat", 50},
- {19521, "Police Hat (High Command)", 50}
- };
- new g_aClothingData[][E_CLOTHING_INFO] = {
- {18638, "Hard Hat", 50},
- {18640, "Afro Hair", 50},
- {18645, "Red and White Motorcycle Helmet", 50},
- {19801, "Balaclava", 2500},
- {18891, "Gray Bandana", 50},
- {18892, "Red Bandana", 50},
- {18893, "White and Red Bandana", 50},
- {18894, "Orange Bandana", 50},
- {18895, "Black Bandana (Skulls)", 50},
- {18896, "Black Bandana", 50},
- {18897, "Blue Bandana", 50},
- {18898, "Green Bandana", 50},
- {18899, "Pink Bandana", 50},
- {18900, "Brown Bandana", 50},
- {18901, "Yellow Bandana", 50},
- {18902, "Purpleish Bandana", 50},
- {18903, "Electric Blue Bandana", 50},
- {18904, "Brown Camo Bandana", 50},
- {18905, "Orange and Yellow Bandana", 50},
- {18906, "Funky Bandana 1", 50},
- {18907, "Funky Bandana 2", 50},
- {18908, "Blue and Dark Blue Bandana", 50},
- {18909, "Blue and Purple Bandana", 50},
- {18910, "Red and Dark Red Bandana", 50},
- {18911, "Black Skulls Bandana (Mask)", 50},
- {18912, "Black Bandana (Mask)", 50},
- {18913, "Green Bandana (Mask)", 50},
- {18914, "Camo Bandana (Mask)", 50},
- {18915, "Funky Bandana (Mask)", 50},
- {18916, "Yellow Bandana (Mask)", 50},
- {18917, "Electric Blue Bandana (Mask)", 50},
- {18918, "Light Green Bandana (Mask)", 50},
- {18919, "White and Black Bandana (Mask)", 50},
- {18920, "Orangeish Bandana (Mask)", 50},
- {18921, "Black Beret", 50},
- {18922, "Blue Beret", 50},
- {18923, "Camo Beret", 50},
- {18924, "Red Beret 1", 50},
- {18925, "Red Beret 2", 50},
- {18926, "Camo Cap", 50},
- {18927, "Blue Cap", 50},
- {18928, "Funky Cap", 50},
- {18929, "Funky Green Cap", 50},
- {18930, "Red and Black Cap", 50},
- {18931, "Electric Blue Cap", 50},
- {18932, "Orange Cap", 50},
- {18933, "White and Black Cap", 50},
- {18934, "Red Cap", 50},
- {18935, "Yellow Cap", 50},
- {18936, "Gray Helmet", 50},
- {18937, "Red Helmet", 50},
- {18938, "Purple Helmet", 50},
- {18939, "Electric Blue Snapback", 50},
- {18940, "Blue Snapback", 50},
- {18941, "Black Snapback", 50},
- {18942, "Gray Snapback", 50},
- {18943, "Green Snapback", 50},
- {18944, "Red Boater Hat", 50},
- {18945, "Green Boater Hat", 50},
- {18946, "Tan Boater Hat", 50},
- {18947, "Black Bowler Hat", 50},
- {18948, "Blue Bowler Hat", 50},
- {18949, "Green Bowler Hat", 50},
- {18950, "Red Bowler Hat", 50},
- {18951, "Yellow Bowler Hat", 50},
- {18952, "Boxing Helmet", 50},
- {18953, "Black Knit Cap", 50},
- {18954, "Olive Knit Cap", 50},
- {18955, "Orange Low Cap", 50},
- {18956, "Electric Blue Low Cap", 50},
- {18957, "Blue Low Cap", 50},
- {18958, "Black and Yellow Low Cap", 50},
- {18959, "Camo Low Cap", 50},
- {18960, "Funky Cap Rim Up", 50},
- {18961, "Trucker Hat", 50},
- {18962, "Black Cowboy Hat", 50},
- {18964, "Skully Cap 1", 50},
- {18965, "Skully Cap 2", 50},
- {18966, "Funky Skully Cap", 50},
- {18967, "Black Bucket Hat", 50},
- {18968, "White and Blue Bucket Hat", 50},
- {18969, "Orange Bucket Hat", 50},
- {18970, "Tiger Hat", 50},
- {18971, "Black and White Hat", 50},
- {18972, "Orange and Black Hat", 50},
- {18973, "Leopard Hat", 50},
- {18975, "Hair", 50},
- {18976, "Blue Motorcycle Helmet", 50},
- {18977, "Red Motorcycle Helmet", 50},
- {18978, "White Motorcycle Helmet", 50},
- {18979, "Purple Motorcycle Helmet", 50},
- {19006, "Red Lenses Glasses", 50},
- {19007, "Orange Lenses Glasses", 50},
- {19008, "Green Lenses Glasses", 50},
- {19009, "Blue Lenses Glasses", 50},
- {19010, "Pink Lenses Glasses", 50},
- {19015, "Clear Lenses Glasses", 50},
- {19016, "Brown Lenses Glasses", 50},
- {19025, "Red Lenses Glasses", 50},
- {19027, "Orange Lenses Glasses", 50},
- {19028, "Yellow Lenses Glasses", 50},
- {19029, "Green Lenses Glasses", 50},
- {19031, "Transparent Glasses", 50},
- {19036, "White Hockey Mask", 50},
- {19037, "Red Hockey Mask", 50},
- {19038, "Green Hockey Mask", 50},
- {19039, "Gold White Face Watch", 50},
- {19040, "Gold Black Face Watch", 50},
- {19041, "Silver Black Face Watch", 50},
- {19042, "Silver White Face Watch", 50},
- {19043, "Brown Watch", 50},
- {19044, "Pink Watch", 50},
- {19045, "Red Watch", 50},
- {19046, "Green Watch", 50},
- {19047, "Purple Watch", 50},
- {19048, "Electric Blue Watch", 50},
- {19049, "Funky Watch", 50},
- {19050, "Blue Watch", 50},
- {19051, "Orange Watch", 50},
- {19052, "Funky Pink Watch", 50},
- {19053, "Camo Watch", 50},
- {19095, "Cowboy Hat 1", 50},
- {19096, "Cowboy Hat 2", 50},
- {19097, "Cowboy Hat 3", 50},
- {19098, "Cowboy Hat 4", 50},
- {19099, "Cowboy Hat 5", 50}, // Police
- {19100, "Cowboy Hat 6", 50}, // Police
- {19136, "Hat and Hair", 50},
- {19138, "Stylish Black Sunglasses", 50},
- {19139, "Stylish Red Sunglasses", 50},
- {19140, "Stylish Blue Sunglasses", 50},
- {19160, "Dude Hat", 50},
- {19274, "Red Clown Wig", 50},
- {19352, "Tophat", 50},
- {19487, "White Tophat", 50},
- {19421, "White Headphones", 50},
- {19422, "Black Headphones", 50},
- {19423, "Red Headphones", 50},
- {19424, "Blue Headphones", 50},
- {19520, "Pilot Hat", 50},
- {19528, "Witch Hat", 50},
- {19553, "Straw Hat", 50},
- {19554, "Beanie", 50},
- {19558, "Pizza Hat", 50},
- {19773, "Gun Holster", 60},
- {2919, "Duffle bag", 70},
- {19559, "Hikers bag", 200},
- {3026, "Backpack", 30}
- };
- new g_aDealershipData[][E_DEALERSHIP_INFO] = {
- {0, DEALERSHIP_CATEGORY_AIRCRAFTS, "Maverick", 487, 1000000},
- {1, DEALERSHIP_CATEGORY_BOATS, "Squallo", 446, 400000},
- {2, DEALERSHIP_CATEGORY_BIKES, "Bike", 509, 1000},
- {2, DEALERSHIP_CATEGORY_BIKES, "BMX", 481, 700},
- {2, DEALERSHIP_CATEGORY_BIKES, "Mountain Bike", 510, 1000},
- {2, DEALERSHIP_CATEGORY_BIKES, "Faggio", 462, 10000},
- {2, DEALERSHIP_CATEGORY_BIKES, "FCR-900", 521, 200000},
- {2, DEALERSHIP_CATEGORY_BIKES, "Freeway", 463, 50000},
- {2, DEALERSHIP_CATEGORY_BIKES, "Sanchez", 468, 40000},
- {2, DEALERSHIP_CATEGORY_BIKES, "Wayfarer", 586, 50000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Alpha", 602, 330000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Blista Compact", 496, 140000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Bravura", 401, 40000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Buccaneer", 518, 45000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Cadrona", 527, 45000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Club", 589, 160000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Esperanto", 419, 50000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Euros", 587, 250000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Feltzer", 533, 65000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Fortune", 526, 55000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Hermes", 474, 60000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Hustler", 545, 85000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Majestic", 517, 65000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Manana", 410, 35000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Picador", 600, 45000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Previon", 436, 40000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Stallion", 439, 80000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Tampa", 549, 38000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Virgo", 491, 41000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Blade", 536, 65000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Broadway", 575, 80000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Remington", 534, 75000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Slamvan", 535, 110000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Tornado", 576, 58000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Voodoo", 412, 65000},
- {3, DEALERSHIP_CATEGORY_TWODOOR, "Windsor", 555, 425000},
- {4, DEALERSHIP_CATEGORY_FOURDOOR, "Admiral", 445, 45000},
- {4, DEALERSHIP_CATEGORY_FOURDOOR, "Glendale", 604, 50000},
- {4, DEALERSHIP_CATEGORY_FOURDOOR, "Elegant", 507, 155000},
- {4, DEALERSHIP_CATEGORY_FOURDOOR, "Greenwood", 492, 30000},
- {4, DEALERSHIP_CATEGORY_FOURDOOR, "Intruder", 546, 46000},
- {4, DEALERSHIP_CATEGORY_FOURDOOR, "Merit", 551, 150000},
- {4, DEALERSHIP_CATEGORY_FOURDOOR, "Nebula", 516, 40000},
- {4, DEALERSHIP_CATEGORY_FOURDOOR, "Oceanic", 467, 35000},
- {4, DEALERSHIP_CATEGORY_FOURDOOR, "Premier", 426, 135000},
- {4, DEALERSHIP_CATEGORY_FOURDOOR, "Primo", 547, 38000},
- {4, DEALERSHIP_CATEGORY_FOURDOOR, "Sentinel", 405, 135000},
- {4, DEALERSHIP_CATEGORY_FOURDOOR, "Stafford", 580, 200000},
- {4, DEALERSHIP_CATEGORY_FOURDOOR, "Stretch", 409, 280000},
- {4, DEALERSHIP_CATEGORY_FOURDOOR, "Sunrise", 550, 55000},
- {4, DEALERSHIP_CATEGORY_FOURDOOR, "Tahoma", 566, 65000},
- {4, DEALERSHIP_CATEGORY_FOURDOOR, "Vincent", 540, 51000},
- {4, DEALERSHIP_CATEGORY_FOURDOOR, "Washington", 421, 100000},
- {4, DEALERSHIP_CATEGORY_FOURDOOR, "Willard", 529, 45000},
- {4, DEALERSHIP_CATEGORY_FOURDOOR, "Savanna", 567, 85000},
- {5, DEALERSHIP_CATEGORY_CIVIL, "Bus", 431, 70000},
- {5, DEALERSHIP_CATEGORY_CIVIL, "Cabbie", 438, 50000},
- {5, DEALERSHIP_CATEGORY_CIVIL, "Taxi", 420, 45000},
- {5, DEALERSHIP_CATEGORY_CIVIL, "Towtruck", 525, 55000},
- {5, DEALERSHIP_CATEGORY_CIVIL, "Trashmaster", 408, 140000},
- {6, DEALERSHIP_CATEGORY_HEAVY, "Benson", 499, 100000},
- {6, DEALERSHIP_CATEGORY_HEAVY, "Boxville", 609, 80000},
- {6, DEALERSHIP_CATEGORY_HEAVY, "Combine Harvester", 532, 125000},
- {6, DEALERSHIP_CATEGORY_HEAVY, "DFT-30", 578, 90000},
- {6, DEALERSHIP_CATEGORY_HEAVY, "Hotdog Truck", 588, 85000},
- {6, DEALERSHIP_CATEGORY_HEAVY, "Linerunner", 403, 255000},
- {6, DEALERSHIP_CATEGORY_HEAVY, "Mr. Whoopee", 423, 80000},
- {6, DEALERSHIP_CATEGORY_HEAVY, "Mule", 414, 175000},
- {6, DEALERSHIP_CATEGORY_HEAVY, "Packer", 443, 375000},
- {6, DEALERSHIP_CATEGORY_HEAVY, "Roadtrain", 515, 90000},
- {6, DEALERSHIP_CATEGORY_HEAVY, "Tanker", 514, 78000},
- {6, DEALERSHIP_CATEGORY_HEAVY, "Yankee", 456, 189000},
- {7, DEALERSHIP_CATEGORY_VANS, "Berkley's RC Van", 459, 60000},
- {7, DEALERSHIP_CATEGORY_VANS, "Bobcat", 422, 60000},
- {7, DEALERSHIP_CATEGORY_VANS, "Burrito", 482, 120000},
- {7, DEALERSHIP_CATEGORY_VANS, "Sadler(Damaged)", 605, 25000},
- {7, DEALERSHIP_CATEGORY_VANS, "Moonbeam", 418, 80000},
- {7, DEALERSHIP_CATEGORY_VANS, "Pony", 413, 110000},
- {7, DEALERSHIP_CATEGORY_VANS, "Rumpo", 440, 100000},
- {7, DEALERSHIP_CATEGORY_VANS, "Sadler", 543, 50000},
- {7, DEALERSHIP_CATEGORY_VANS, "Walton", 478, 45000},
- {7, DEALERSHIP_CATEGORY_VANS, "Yosemite", 554, 75000},
- {8, DEALERSHIP_CATEGORY_SUV, "Huntley", 579, 200000},
- {8, DEALERSHIP_CATEGORY_SUV, "Landstalker", 400, 162500},
- {8, DEALERSHIP_CATEGORY_SUV, "Perennial", 404, 80000},
- {8, DEALERSHIP_CATEGORY_SUV, "Rancher", 489, 110000},
- {8, DEALERSHIP_CATEGORY_SUV, "Regina", 479, 85000},
- {8, DEALERSHIP_CATEGORY_SUV, "Romero", 442, 75000},
- {8, DEALERSHIP_CATEGORY_SUV, "Solair", 458, 90000},
- {9, DEALERSHIP_CATEGORY_MUSCLE, "Buffalo", 402, 420000},
- {9, DEALERSHIP_CATEGORY_MUSCLE, "Clover", 542, 135000},
- {9, DEALERSHIP_CATEGORY_MUSCLE, "Phoenix", 603, 650000},
- {9, DEALERSHIP_CATEGORY_MUSCLE, "Sabre", 475, 160000},
- {10, DEALERSHIP_CATEGORY_RACERS, "Banshee", 429, 825000},
- {10, DEALERSHIP_CATEGORY_RACERS, "Bullet", 541, 1000000},
- {10, DEALERSHIP_CATEGORY_RACERS, "Cheetah", 415, 850000},
- {10, DEALERSHIP_CATEGORY_RACERS, "Comet", 480, 550000},
- {10, DEALERSHIP_CATEGORY_RACERS, "Elegy", 562, 220000},
- {10, DEALERSHIP_CATEGORY_RACERS, "Flash", 565, 180000},
- {10, DEALERSHIP_CATEGORY_RACERS, "Jester", 559, 200000},
- {10, DEALERSHIP_CATEGORY_RACERS, "Stratum", 561, 110000},
- {10, DEALERSHIP_CATEGORY_RACERS, "Sultan", 560, 785000},
- {10, DEALERSHIP_CATEGORY_RACERS, "Super GT", 506, 620000},
- {10, DEALERSHIP_CATEGORY_RACERS, "Uranus", 558, 330000},
- {10, DEALERSHIP_CATEGORY_RACERS, "Windsor", 555, 300000},
- {10, DEALERSHIP_CATEGORY_RACERS, "ZR-350", 477, 700000}
- };
- static const g_aFurnitureTypes[][] = {
- {"Frames"},
- {"Beds"},
- {"Walls"},
- {"Floorboards"},
- {"Doors"},
- {"Miscellaneous"},
- {"Stairs"},
- {"Graffiti & Others"},
- {"Electronics"},
- {"Chairs / Seats"},
- {"Tables"}
- };
- new g_aFurnitureData[][E_FURNITURE_INFO] = {
- {0, "Frame 1", 2289, FURNITURE_CATEGORY_FRAMES},
- {0, "Frame 2", 2288, FURNITURE_CATEGORY_FRAMES},
- {0, "Frame 3", 2287, FURNITURE_CATEGORY_FRAMES},
- {0, "Frame 4", 2286, FURNITURE_CATEGORY_FRAMES},
- {0, "Frame 5", 2285, FURNITURE_CATEGORY_FRAMES},
- {0, "Frame 6", 2284, FURNITURE_CATEGORY_FRAMES},
- {0, "Frame 7", 2283, FURNITURE_CATEGORY_FRAMES},
- {1, "Bed 1", 1700, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 2", 1701, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 3", 1745, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 4", 1771, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 5", 1793, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 6", 1794, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 7", 1795, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 8", 1796, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 9", 1797, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 10", 1798, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 11", 1799, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 12", 1780, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 13", 1801, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 14", 1802, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 15", 1803, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 16", 1804, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 17", 1812, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 18", 2090, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 19", 2298, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 20", 2299, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 21", 2300, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 22", 2301, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 23", 2302, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 24", 2565, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 25", 2566, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 26", 2575, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 27", 2603, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 28", 14446, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 29", 14861, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 30", 14866, FURNITURE_CATEGORY_BEDS},
- {1, "Bed 31", 14880, FURNITURE_CATEGORY_BEDS},
- {2, "Wall 1", 19355, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 2", 2395, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 3", 19353, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 4", 19354, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 5", 19356, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 6", 19357, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 7", 19358, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 8", 19359, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 9", 19360, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 10", 19361, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 11", 19362, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 12", 19363, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 13", 19364, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 14", 19365, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 15", 19366, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 16", 19367, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 17", 19368, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 18", 19369, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 19", 19370, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 20", 19383, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 21", 19384, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 22", 19385, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 23", 19386, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 24", 19387, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 25", 19388, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 26", 19389, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 27", 19390, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 28", 19391, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 29", 19392, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 30", 19393, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 31", 19394, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 32", 19395, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 33", 19399, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 34", 19400, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 35", 19401, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 36", 19402, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 37", 19403, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 38", 19404, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 39", 19405, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 40", 19406, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 41", 19407, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 42", 19408, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 43", 19409, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 44", 19410, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 45", 19447, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 46", 19445, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 47", 19446, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 48", 19447, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 49", 19448, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 50", 19449, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 51", 19450, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 52", 19451, FURNITURE_CATEGORY_WALLS},
- {3, "Wall 53", 19452, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 54", 19453, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 55", 19454, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 56", 19455, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 57", 19456, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 58", 19457, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 59", 19458, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 60", 19459, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 61", 19460, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 62", 19461, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 63", 19462, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 64", 19463, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 65 (Thin)", 19426, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 66 (Thin)", 19427, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 67 (Thin)", 19428, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 68 (Thin)", 19429, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 69 (Thin)", 19430, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 70 (Thin)", 19431, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 71 (Thin)", 19432, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 72 (Thin)", 19433, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 73 (Thin)", 19434, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 74 (Thin)", 19435, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 75 (Thin)", 19436, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 76 (Thin)", 19437, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 77 (Thin)", 19438, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 78 (Thin)", 19439, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 79 (Thin)", 19440, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 80 (Thin)", 19441, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 81 (Thin)", 19442, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 82 (Thin)", 19443, FURNITURE_CATEGORY_WALLS},
- {2, "Wall 83 (Thin)", 19444, FURNITURE_CATEGORY_WALLS},
- {3, "Floor 1 (Big)", 19462, FURNITURE_CATEGORY_FLOORS},
- {3, "Floor 2 (Big)", 19458, FURNITURE_CATEGORY_FLOORS},
- {3, "Floor 3 (Big)", 19452, FURNITURE_CATEGORY_FLOORS},
- {3, "Floor 4 (Big)", 19448, FURNITURE_CATEGORY_FLOORS},
- {3, "Floor 5 (Single)", 19439, FURNITURE_CATEGORY_FLOORS},
- {3, "Floor 6 (Single)", 19433, FURNITURE_CATEGORY_FLOORS},
- {3, "Floor 7 (Single)", 19429, FURNITURE_CATEGORY_FLOORS},
- {3, "Floor 8 (Window)", 19412, FURNITURE_CATEGORY_FLOORS},
- {3, "Floor 9 (Window)", 19406, FURNITURE_CATEGORY_FLOORS},
- {3, "Floor 10 (Window)", 19402, FURNITURE_CATEGORY_FLOORS},
- {3, "Floor 11 (Doorway)", 19386, FURNITURE_CATEGORY_FLOORS},
- {3, "Floor 12 (Small)", 19379, FURNITURE_CATEGORY_FLOORS},
- {3, "Floor 13 (Small)", 19378, FURNITURE_CATEGORY_FLOORS},
- {3, "Floor 14 (Small)", 19376, FURNITURE_CATEGORY_FLOORS},
- {3, "Floor 15 (Small)", 19375, FURNITURE_CATEGORY_FLOORS},
- {3, "Floor 16 (Small)", 19366, FURNITURE_CATEGORY_FLOORS},
- {3, "Floor 17 (Small)", 19360, FURNITURE_CATEGORY_FLOORS},
- {3, "Floor 18 (Small)", 19356, FURNITURE_CATEGORY_FLOORS},
- {4, "Large Wood Door", 977, FURNITURE_CATEGORY_DOORS},
- {4, "Wood Door", 1491, FURNITURE_CATEGORY_DOORS},
- {4, "Green Wood Door", 1492, FURNITURE_CATEGORY_DOORS},
- {4, "Red Screen Door", 1493, FURNITURE_CATEGORY_DOORS},
- {4, "Shitty Door", 1494, FURNITURE_CATEGORY_DOORS},
- {4, "2 Screen Door", 1495, FURNITURE_CATEGORY_DOORS},
- {4, "Barred Store Door", 1496, FURNITURE_CATEGORY_DOORS},
- {4, "X Wood Door", 1497, FURNITURE_CATEGORY_DOORS},
- {4, "White Door", 1498, FURNITURE_CATEGORY_DOORS},
- {4, "Steel Door", 1499, FURNITURE_CATEGORY_DOORS},
- {4, "Store Push Door", 1500, FURNITURE_CATEGORY_DOORS},
- {4, "Door 12", 1501, FURNITURE_CATEGORY_DOORS},
- {4, "Door 13", 1502, FURNITURE_CATEGORY_DOORS},
- {4, "Door 14", 1504, FURNITURE_CATEGORY_DOORS},
- {4, "Door 15", 1505, FURNITURE_CATEGORY_DOORS},
- {4, "Door 16", 1506, FURNITURE_CATEGORY_DOORS},
- {4, "Door 17", 1507, FURNITURE_CATEGORY_DOORS},
- {4, "Door 18 (Double)", 1508, FURNITURE_CATEGORY_DOORS},
- {4, "Door 19", 1522, FURNITURE_CATEGORY_DOORS},
- {4, "Door 20", 1523, FURNITURE_CATEGORY_DOORS},
- {4, "Door 21", 1532, FURNITURE_CATEGORY_DOORS},
- {4, "Door 22", 1533, FURNITURE_CATEGORY_DOORS},
- {4, "Door 23", 1535, FURNITURE_CATEGORY_DOORS},
- {4, "Door 24", 1536, FURNITURE_CATEGORY_DOORS},
- {4, "Door 25", 1537, FURNITURE_CATEGORY_DOORS},
- {4, "Door 26", 1538, FURNITURE_CATEGORY_DOORS},
- {4, "Door 27", 1555, FURNITURE_CATEGORY_DOORS},
- {4, "Door 28", 1556, FURNITURE_CATEGORY_DOORS},
- {4, "Door 29", 1557, FURNITURE_CATEGORY_DOORS},
- {4, "Door 30", 1560, FURNITURE_CATEGORY_DOORS},
- {4, "Door 31", 1561, FURNITURE_CATEGORY_DOORS},
- {4, "Door 32", 1566, FURNITURE_CATEGORY_DOORS},
- {4, "Door 33", 1567, FURNITURE_CATEGORY_DOORS},
- {4, "Door 34", 1569, FURNITURE_CATEGORY_DOORS},
- {4, "Door 35 (Vault)", 2634, FURNITURE_CATEGORY_DOORS},
- {4, "Door 36", 2664, FURNITURE_CATEGORY_DOORS},
- {4, "Door 37", 2873, FURNITURE_CATEGORY_DOORS},
- {4, "Door 38", 2875, FURNITURE_CATEGORY_DOORS},
- {4, "Door 39", 2876, FURNITURE_CATEGORY_DOORS},
- {4, "Door 40", 2877, FURNITURE_CATEGORY_DOORS},
- {4, "Door 41", 2878, FURNITURE_CATEGORY_DOORS},
- {4, "Door 42", 2879, FURNITURE_CATEGORY_DOORS},
- {4, "Door 43", 2924, FURNITURE_CATEGORY_DOORS},
- {4, "Door 44 (Ship Door)", 2944, FURNITURE_CATEGORY_DOORS},
- {4, "Door 45", 2946, FURNITURE_CATEGORY_DOORS},
- {4, "Door 46", 2947, FURNITURE_CATEGORY_DOORS},
- {4, "Door 47", 2948, FURNITURE_CATEGORY_DOORS},
- {4, "Door 48", 2955, FURNITURE_CATEGORY_DOORS},
- {4, "Door 49", 2959, FURNITURE_CATEGORY_DOORS},
- {4, "Door 50", 2970, FURNITURE_CATEGORY_DOORS},
- {4, "Door 51", 2987, FURNITURE_CATEGORY_DOORS},
- {4, "Door 52", 3029, FURNITURE_CATEGORY_DOORS},
- {4, "Door 53", 3061, FURNITURE_CATEGORY_DOORS},
- {4, "Door 54", 3089, FURNITURE_CATEGORY_DOORS},
- {4, "Door 55", 3093, FURNITURE_CATEGORY_DOORS},
- {4, "Door 56", 3109, FURNITURE_CATEGORY_DOORS},
- {4, "Door 57 (Double Green)", 11714, FURNITURE_CATEGORY_DOORS},
- {4, "Door 58", 14819, FURNITURE_CATEGORY_DOORS},
- {4, "Door 59 (Cell 1)", 19302, FURNITURE_CATEGORY_DOORS},
- {4, "Door 60 (Cell 2)", 19303, FURNITURE_CATEGORY_DOORS},
- {4, "Door 61", 19796, FURNITURE_CATEGORY_DOORS},
- {4, "Door 62", 19802, FURNITURE_CATEGORY_DOORS},
- {4, "Door 63", 19857, FURNITURE_CATEGORY_DOORS},
- {4, "Door 64", 19858, FURNITURE_CATEGORY_DOORS},
- {4, "Door 65", 19859, FURNITURE_CATEGORY_DOORS},
- {4, "Door 66", 19860, FURNITURE_CATEGORY_DOORS},
- {4, "Door 67", 19875, FURNITURE_CATEGORY_DOORS},
- {5, "Rug 1 (Round)", 2835, FURNITURE_CATEGORY_MISC},
- {5, "Rug 2 (Round)", 2841, FURNITURE_CATEGORY_MISC},
- {5, "Rug 3", 2847, FURNITURE_CATEGORY_MISC},
- {5, "Rug 4", 2842, FURNITURE_CATEGORY_MISC},
- {5, "Rug 5", 2836, FURNITURE_CATEGORY_MISC},
- {5, "Rug 6", 2833, FURNITURE_CATEGORY_MISC},
- {5, "Rug 7", 2834, FURNITURE_CATEGORY_MISC},
- {5, "Rug 8", 2818, FURNITURE_CATEGORY_MISC},
- {5, "Rug 9", 2817, FURNITURE_CATEGORY_MISC},
- {5, "Rug 10", 2815, FURNITURE_CATEGORY_MISC},
- {5, "Picture 1", 2255, FURNITURE_CATEGORY_MISC},
- {5, "Picture 2", 2258, FURNITURE_CATEGORY_MISC},
- {5, "Picture 3", 2259, FURNITURE_CATEGORY_MISC},
- {5, "Picture 4", 2260, FURNITURE_CATEGORY_MISC},
- {5, "Picture 5", 2261, FURNITURE_CATEGORY_MISC},
- {5, "Picture 6", 2262, FURNITURE_CATEGORY_MISC},
- {5, "Picture 7", 2263, FURNITURE_CATEGORY_MISC},
- {5, "Picture 8", 2264, FURNITURE_CATEGORY_MISC},
- {5, "Picture 9", 2265, FURNITURE_CATEGORY_MISC},
- {5, "Picture 10", 2266, FURNITURE_CATEGORY_MISC},
- {5, "Picture 11", 2267, FURNITURE_CATEGORY_MISC},
- {5, "Picture 12", 2268, FURNITURE_CATEGORY_MISC},
- {5, "Picture 13", 2269, FURNITURE_CATEGORY_MISC},
- {5, "Picture 14", 2270, FURNITURE_CATEGORY_MISC},
- {5, "Picture 15", 2271, FURNITURE_CATEGORY_MISC},
- {5, "Picture 16", 2272, FURNITURE_CATEGORY_MISC},
- {5, "Picture 17", 2273, FURNITURE_CATEGORY_MISC},
- {5, "Picture 18", 2274, FURNITURE_CATEGORY_MISC},
- {5, "Picture 19", 2275, FURNITURE_CATEGORY_MISC},
- {5, "Picture 20", 2276, FURNITURE_CATEGORY_MISC},
- {5, "Picture 21", 2277, FURNITURE_CATEGORY_MISC},
- {5, "Picture 22", 2278, FURNITURE_CATEGORY_MISC},
- {5, "Picture 23", 2279, FURNITURE_CATEGORY_MISC},
- {5, "Picture 24", 2280, FURNITURE_CATEGORY_MISC},
- {5, "Picture 25", 2281, FURNITURE_CATEGORY_MISC},
- {5, "Picture 26", 2282, FURNITURE_CATEGORY_MISC},
- {5, "Picture 27", 2283, FURNITURE_CATEGORY_MISC},
- {5, "Picture 28", 2284, FURNITURE_CATEGORY_MISC},
- {5, "Picture 29", 2285, FURNITURE_CATEGORY_MISC},
- {5, "Picture 30", 2286, FURNITURE_CATEGORY_MISC},
- {5, "Picture 31", 2287, FURNITURE_CATEGORY_MISC},
- {5, "Picture 32", 2288, FURNITURE_CATEGORY_MISC},
- {5, "Picture 33", 2289, FURNITURE_CATEGORY_MISC},
- {5, "Deer Head", 1736, FURNITURE_CATEGORY_MISC},
- {5, "Water Dispenser 1", 1808, FURNITURE_CATEGORY_MISC},
- {5, "Water Dispenser 2", 2002, FURNITURE_CATEGORY_MISC},
- {5, "Safe", 2332, FURNITURE_CATEGORY_MISC},
- {5, "Trashcan", 11706, FURNITURE_CATEGORY_MISC},
- {5, "Cigarette Pack 1", 19896, FURNITURE_CATEGORY_MISC},
- {5, "Cigarette Pack 2", 19897, FURNITURE_CATEGORY_MISC},
- {5, "Skateboard", 19878, FURNITURE_CATEGORY_MISC},
- {5, "Ashtray", 1510, FURNITURE_CATEGORY_MISC},
- {5, "Ashtray w/ cigar", 1665, FURNITURE_CATEGORY_MISC},
- {5, "Target 1", 2049, FURNITURE_CATEGORY_MISC},
- {5, "Target 2", 2050, FURNITURE_CATEGORY_MISC},
- {5, "Target 3", 2051, FURNITURE_CATEGORY_MISC},
- {5, "Handgun Poster", 2055, FURNITURE_CATEGORY_MISC},
- {5, "Used Bullseye Target", 2056, FURNITURE_CATEGORY_MISC},
- {5, "Toy Airplanes", 2486, FURNITURE_CATEGORY_MISC},
- {5, "Toy Trains", 2474, FURNITURE_CATEGORY_MISC},
- {5, "Toy Trains (Box)", 2471, FURNITURE_CATEGORY_MISC},
- {5, "Lock with chain", 2680, FURNITURE_CATEGORY_MISC},
- {5, "Cluckin Bell Trashcan", 2770, FURNITURE_CATEGORY_MISC},
- {6, "Grove St Graffiti", 18659, FURNITURE_CATEGORY_GRAF},
- {6, "Seville BLVD Graffiti", 18660, FURNITURE_CATEGORY_GRAF},
- {6, "Varrio Los Aztecas Graffiti", 18661, FURNITURE_CATEGORY_GRAF},
- {6, "Kilo Tray Graffiti", 18662, FURNITURE_CATEGORY_GRAF},
- {6, "San Fiero Rifa Graffiti", 18663, FURNITURE_CATEGORY_GRAF},
- {6, "Temple Drive Graffiti", 18664, FURNITURE_CATEGORY_GRAF},
- {6, "Los Santos Vagos Graffiti", 18665, FURNITURE_CATEGORY_GRAF},
- {6, "Front Yard Graffiti", 18666, FURNITURE_CATEGORY_GRAF},
- {6, "Rollin Heights Graffiti", 18667, FURNITURE_CATEGORY_GRAF},
- {6, "USA Flag (Double)", 2614, FURNITURE_CATEGORY_GRAF},
- {6, "Blue Flag", 19307, FURNITURE_CATEGORY_GRAF},
- {6, "Red Flag", 19306, FURNITURE_CATEGORY_GRAF},
- {6, "Confederate Flag", 2048, FURNITURE_CATEGORY_GRAF},
- {6, "LS Defense Flag", 2047, FURNITURE_CATEGORY_GRAF},
- {7, "Green Long Stairs", 3399, FURNITURE_CATEGORY_STAIRS},
- {7, "Carter Stairs 4", 14411, FURNITURE_CATEGORY_STAIRS},
- {7, "Carter Stairs 3", 14410, FURNITURE_CATEGORY_STAIRS},
- {7, "Small Wooden Ladder", 1472, FURNITURE_CATEGORY_STAIRS},
- {7, "Large Staircase", 13749, FURNITURE_CATEGORY_STAIRS},
- {8, "Security Camera", 1886, FURNITURE_CATEGORY_ELEC},
- {8, "Small Blue Cellphone", 2966, FURNITURE_CATEGORY_ELEC},
- {8, "Black Cellphone", 2967, FURNITURE_CATEGORY_ELEC},
- {8, "SNES", 1718, FURNITURE_CATEGORY_ELEC},
- {8, "Game Console", 1719, FURNITURE_CATEGORY_ELEC},
- {8, "Wooden TV 1", 1747, FURNITURE_CATEGORY_ELEC},
- {8, "Wooden TV 2", 1748, FURNITURE_CATEGORY_ELEC},
- {8, "Wooden TV 3", 2317, FURNITURE_CATEGORY_ELEC},
- {8, "Wooden TV 4", 2320, FURNITURE_CATEGORY_ELEC},
- {8, "Wooden TV 5", 1429, FURNITURE_CATEGORY_ELEC},
- {8, "Small Black TV", 1749, FURNITURE_CATEGORY_ELEC},
- {8, "Thin Wooden TV", 1750, FURNITURE_CATEGORY_ELEC},
- {8, "Dark Gray TV", 1751, FURNITURE_CATEGORY_ELEC},
- {8, "Black Television 1", 1518, FURNITURE_CATEGORY_ELEC},
- {8, "Black Television 2", 1752, FURNITURE_CATEGORY_ELEC},
- {8, "Black Television 3 (Wide)", 1786, FURNITURE_CATEGORY_ELEC},
- {8, "Black Television 4", 1791, FURNITURE_CATEGORY_ELEC},
- {8, "Black Television 5 (Thin)", 1792, FURNITURE_CATEGORY_ELEC},
- {8, "Black Television 6 (Wide)", 2312, FURNITURE_CATEGORY_ELEC},
- {8, "Black Television 7", 2316, FURNITURE_CATEGORY_ELEC},
- {8, "Black Television 8", 2318, FURNITURE_CATEGORY_ELEC},
- {8, "Black Television 9", 2596, FURNITURE_CATEGORY_ELEC},
- {8, "Black Television 10", 2595, FURNITURE_CATEGORY_ELEC},
- {8, "Black Television 11", 2648, FURNITURE_CATEGORY_ELEC},
- {8, "Black Television 12", 2700, FURNITURE_CATEGORY_ELEC},
- {8, "Black Television 13", 14772, FURNITURE_CATEGORY_ELEC},
- {8, "Gray TV 1", 1781, FURNITURE_CATEGORY_ELEC},
- {8, "Gray TV 2", 2322, FURNITURE_CATEGORY_ELEC},
- {8, "Orange Sphere TV", 2224, FURNITURE_CATEGORY_ELEC},
- {8, "TV and Entertainment Center", 2296, FURNITURE_CATEGORY_ELEC},
- {8, "LCD TV 1", 19786, FURNITURE_CATEGORY_ELEC},
- {8, "LCD TV 2", 19786, FURNITURE_CATEGORY_ELEC},
- {8, "VCR 1", 1782, FURNITURE_CATEGORY_ELEC},
- {8, "VCR 2", 1783, FURNITURE_CATEGORY_ELEC},
- {8, "VCR 3", 1785, FURNITURE_CATEGORY_ELEC},
- {8, "VCR 4", 1787, FURNITURE_CATEGORY_ELEC},
- {8, "VCR 5", 1788, FURNITURE_CATEGORY_ELEC},
- {8, "VCR 6", 1790, FURNITURE_CATEGORY_ELEC},
- {8, "Hi-Fi System (Black)", 1809, FURNITURE_CATEGORY_ELEC},
- {8, "Hi-Fi System (Gray)", 1839, FURNITURE_CATEGORY_ELEC},
- {8, "Hi-Fi System On Wheels", 2225, FURNITURE_CATEGORY_ELEC},
- {8, "Hi-Fi System On Stand", 2227, FURNITURE_CATEGORY_ELEC},
- {8, "Black Game Console", 2028, FURNITURE_CATEGORY_ELEC},
- {8, "Turntable", 2099, FURNITURE_CATEGORY_ELEC},
- {8, "Big Wooden Hi-Fi System", 2100, FURNITURE_CATEGORY_ELEC},
- {8, "Big Hi-Fi System", 2101, FURNITURE_CATEGORY_ELEC},
- {8, "Boombox 1", 2102, FURNITURE_CATEGORY_ELEC},
- {8, "Boombox 2", 2103, FURNITURE_CATEGORY_ELEC},
- {8, "Boombox 3", 2226, FURNITURE_CATEGORY_ELEC},
- {8, "Tall Hi-Fi System", 2104, FURNITURE_CATEGORY_ELEC},
- {8, "White PC and Monitor", 2190, FURNITURE_CATEGORY_ELEC},
- {8, "Desk and Computer", 11631, FURNITURE_CATEGORY_ELEC},
- {8, "Arcade Machine 1", 2681, FURNITURE_CATEGORY_ELEC},
- {8, "Arcade Machine 2", 2778, FURNITURE_CATEGORY_ELEC},
- {8, "Arcade Machine 3", 2779, FURNITURE_CATEGORY_ELEC},
- {8, "Arcade Machine 4", 2872, FURNITURE_CATEGORY_ELEC},
- {8, "White Fan", 2192, FURNITURE_CATEGORY_ELEC},
- {8, "Office Printer 1", 2201, FURNITURE_CATEGORY_ELEC},
- {8, "Office Printer 2", 2202, FURNITURE_CATEGORY_ELEC},
- {8, "Photocopier", 2186, FURNITURE_CATEGORY_ELEC},
- {8, "Tall Speaker", 2229, FURNITURE_CATEGORY_ELEC},
- {8, "Tall Wooden Speaker", 2230, FURNITURE_CATEGORY_ELEC},
- {8, "Small Wooden Speaker", 2231, FURNITURE_CATEGORY_ELEC},
- {8, "Black Speaker", 2232, FURNITURE_CATEGORY_ELEC},
- {8, "Speaker", 1840, FURNITURE_CATEGORY_ELEC},
- {8, "Tall Gray Speaker", 2233, FURNITURE_CATEGORY_ELEC},
- {8, "Chair and Speakers", 11665, FURNITURE_CATEGORY_ELEC},
- {8, "TV Remote", 2344, FURNITURE_CATEGORY_ELEC},
- {8, "TV Remote 2", 19920, FURNITURE_CATEGORY_ELEC},
- {8, "Sprunk Fridge", 2452, FURNITURE_CATEGORY_ELEC},
- {8, "Black Telephone", 11705, FURNITURE_CATEGORY_ELEC},
- {8, "Fancy House Phone", 11728, FURNITURE_CATEGORY_ELEC},
- {8, "White House Phone", 19807, FURNITURE_CATEGORY_ELEC},
- {8, "TV and VCR on Stand", 14532, FURNITURE_CATEGORY_ELEC},
- {8, "Black TV and VCR on Stand", 16377, FURNITURE_CATEGORY_ELEC},
- {8, "Guitar Amp 1", 19612, FURNITURE_CATEGORY_ELEC},
- {8, "Guitar Amp 2", 19613, FURNITURE_CATEGORY_ELEC},
- {8, "Guitar Amp 3", 19614, FURNITURE_CATEGORY_ELEC},
- {8, "Guitar Amp 4", 19615, FURNITURE_CATEGORY_ELEC},
- {8, "Guitar Amp 5", 19616, FURNITURE_CATEGORY_ELEC},
- {8, "Camera", 19623, FURNITURE_CATEGORY_ELEC},
- {8, "Keyboard", 19808, FURNITURE_CATEGORY_ELEC},
- {8, "Mixer", 1958, FURNITURE_CATEGORY_ELEC},
- {9, "Dark Sofa", 1702, FURNITURE_CATEGORY_SEATS},
- {9, "Black Sofa", 1703, FURNITURE_CATEGORY_SEATS},
- {9, "Purple Sofa", 1706, FURNITURE_CATEGORY_SEATS},
- {9, "Red Sofa", 1707, FURNITURE_CATEGORY_SEATS},
- {9, "Long Couch", 1709, FURNITURE_CATEGORY_SEATS},
- {9, "Couch", 1710, FURNITURE_CATEGORY_SEATS},
- {9, "Small Couch", 1712, FURNITURE_CATEGORY_SEATS},
- {9, "Black Couch", 1713, FURNITURE_CATEGORY_SEATS},
- {9, "Couch 1", 1753, FURNITURE_CATEGORY_SEATS},
- {9, "Couch 2", 1756, FURNITURE_CATEGORY_SEATS},
- {9, "Couch 3", 1757, FURNITURE_CATEGORY_SEATS},
- {9, "Couch 4", 1760, FURNITURE_CATEGORY_SEATS},
- {9, "Couch 5", 1761, FURNITURE_CATEGORY_SEATS},
- {9, "Couch 6", 1763, FURNITURE_CATEGORY_SEATS},
- {9, "Couch 7", 1764, FURNITURE_CATEGORY_SEATS},
- {9, "Couch 8", 1766, FURNITURE_CATEGORY_SEATS},
- {9, "Couch 9", 1768, FURNITURE_CATEGORY_SEATS},
- {9, "Couch 10", 2290, FURNITURE_CATEGORY_SEATS},
- {9, "Chair 1", 1754, FURNITURE_CATEGORY_SEATS},
- {9, "Chair 2", 1755, FURNITURE_CATEGORY_SEATS},
- {9, "Chair 3", 1758, FURNITURE_CATEGORY_SEATS},
- {9, "Chair 4", 1759, FURNITURE_CATEGORY_SEATS},
- {9, "Chair 5", 1762, FURNITURE_CATEGORY_SEATS},
- {9, "Chair 6", 1765, FURNITURE_CATEGORY_SEATS},
- {9, "Chair 7", 1767, FURNITURE_CATEGORY_SEATS},
- {9, "Chair 8", 1769, FURNITURE_CATEGORY_SEATS},
- {9, "Chair 9", 2291, FURNITURE_CATEGORY_SEATS},
- {9, "Chair 10", 2292, FURNITURE_CATEGORY_SEATS},
- {9, "Beanbag", 2295, FURNITURE_CATEGORY_SEATS},
- {9, "2 Chairs and Table", 2571, FURNITURE_CATEGORY_SEATS},
- {9, "2 White Chairs and Table", 2572, FURNITURE_CATEGORY_SEATS},
- {9, "2 Small Chairs and Table", 2617, FURNITURE_CATEGORY_SEATS},
- {9, "Long Black Couch", 3921, FURNITURE_CATEGORY_SEATS},
- {9, "Orange Couch", 11717, FURNITURE_CATEGORY_SEATS},
- {9, "Desk Chair 1", 1663, FURNITURE_CATEGORY_SEATS},
- {9, "Desk Chair 2", 1671, FURNITURE_CATEGORY_SEATS},
- {9, "Desk Chair 3", 1714, FURNITURE_CATEGORY_SEATS},
- {9, "Desk Chair 4", 1715, FURNITURE_CATEGORY_SEATS},
- {9, "Desk Chair 5", 1806, FURNITURE_CATEGORY_SEATS},
- {9, "Desk Chair 6", 2356, FURNITURE_CATEGORY_SEATS},
- {9, "Desk Chair 7", 19999, FURNITURE_CATEGORY_SEATS},
- {9, "Chair 11", 1704, FURNITURE_CATEGORY_SEATS},
- {9, "Chair 12", 1705, FURNITURE_CATEGORY_SEATS},
- {9, "Chair 13", 1708, FURNITURE_CATEGORY_SEATS},
- {9, "Chair 14", 1711, FURNITURE_CATEGORY_SEATS},
- {9, "Chair 15", 1721, FURNITURE_CATEGORY_SEATS},
- {9, "Chair 16", 1722, FURNITURE_CATEGORY_SEATS},
- {9, "Kitchen Chair", 1720, FURNITURE_CATEGORY_SEATS},
- {9, "Kitchen Chair 2", 1739, FURNITURE_CATEGORY_SEATS},
- {9, "Kitchen Chair 3", 1811, FURNITURE_CATEGORY_SEATS},
- {9, "Kitchen Chair 4", 2079, FURNITURE_CATEGORY_SEATS},
- {9, "Kitchen Chair 5", 2120, FURNITURE_CATEGORY_SEATS},
- {9, "Kitchen Chair 6", 2123, FURNITURE_CATEGORY_SEATS},
- {9, "Kitchen Chair 7", 2124, FURNITURE_CATEGORY_SEATS},
- {9, "Kitchen Chair 8", 2309, FURNITURE_CATEGORY_SEATS},
- {9, "Kitchen Chair 9", 2310, FURNITURE_CATEGORY_SEATS},
- {9, "Kitchen Chair 10", 2636, FURNITURE_CATEGORY_SEATS},
- {9, "Folding Chair", 1810, FURNITURE_CATEGORY_SEATS},
- {9, "Folding Chair 2", 2121, FURNITURE_CATEGORY_SEATS},
- {9, "Folding Chair 3", 19996, FURNITURE_CATEGORY_SEATS},
- {9, "Stool", 1716, FURNITURE_CATEGORY_SEATS},
- {9, "Stool 2", 1805, FURNITURE_CATEGORY_SEATS},
- {9, "Stool 3", 2125, FURNITURE_CATEGORY_SEATS},
- {9, "Stool 4", 2723, FURNITURE_CATEGORY_SEATS},
- {9, "Stool 5", 2725, FURNITURE_CATEGORY_SEATS},
- {9, "Stool 6", 11687, FURNITURE_CATEGORY_SEATS},
- {9, "Couch Piece 1", 11682, FURNITURE_CATEGORY_SEATS},
- {9, "Couch Piece 2", 11683, FURNITURE_CATEGORY_SEATS},
- {9, "Couch Piece 3", 11684, FURNITURE_CATEGORY_SEATS},
- {9, "Couch Piece 4", 11685, FURNITURE_CATEGORY_SEATS},
- {10, "GLASS TABLE", 2024, FURNITURE_CATEGORY_TABLES},
- {10, "TABLE W/UMBRELLA", 1281, FURNITURE_CATEGORY_TABLES},
- {10, "TABLE W/CHAIRS", 1432, FURNITURE_CATEGORY_TABLES},
- {10, "CHESS TABLE", 1594, FURNITURE_CATEGORY_TABLES},
- {10, "ELEGANT TABLE", 1827, FURNITURE_CATEGORY_TABLES},
- {10, "ROOM TABLE", 1433, FURNITURE_CATEGORY_TABLES},
- {10, "ROOM TABLE 2", 1516, FURNITURE_CATEGORY_TABLES},
- {10, "LIVING ROOM TABLE", 2126, FURNITURE_CATEGORY_TABLES},
- {10, "KITCHEN TABLE 1", 2334, FURNITURE_CATEGORY_TABLES},
- {10, "KITCHEN TABLE 2", 2335, FURNITURE_CATEGORY_TABLES},
- {10, "KITCHEN TABLE 3", 2336, FURNITURE_CATEGORY_TABLES},
- {10, "KITCHEN TABLE 4", 2338, FURNITURE_CATEGORY_TABLES},
- {10, "TV STAND", 2311, FURNITURE_CATEGORY_TABLES},
- {10, "TV STAND 2", 2314, FURNITURE_CATEGORY_TABLES},
- {10, "TV STAND 3", 2313, FURNITURE_CATEGORY_TABLES},
- {10, "TV STAND 4", 2315, FURNITURE_CATEGORY_TABLES},
- {10, "TABLE", 2319, FURNITURE_CATEGORY_TABLES},
- {10, "TABLE 2", 2321, FURNITURE_CATEGORY_TABLES},
- {10, "DRESSER", 2323, FURNITURE_CATEGORY_TABLES},
- {10, "SMALL CABINET", 2328, FURNITURE_CATEGORY_TABLES},
- {10, "KITCHEN CABINET 2", 2424, FURNITURE_CATEGORY_TABLES},
- {10, "CORNER KITCHEN CABINET 2", 2423, FURNITURE_CATEGORY_TABLES},
- {10, "KITCHEN BENCH 3", 2441, FURNITURE_CATEGORY_TABLES},
- {10, "KITCHEN BENCH CORNER 3", 2442, FURNITURE_CATEGORY_TABLES},
- {10, "KITCHEN 4", 2455, FURNITURE_CATEGORY_TABLES},
- {10, "KITCHEN CORNER 4", 2454, FURNITURE_CATEGORY_TABLES},
- {10, "RED KITCHEN", 2128, FURNITURE_CATEGORY_TABLES},
- {10, "RED KITCHEN 2", 2128, FURNITURE_CATEGORY_TABLES},
- {10, "WOODEN KITCHEN", 2136, FURNITURE_CATEGORY_TABLES},
- {10, "WOODEN KITCHEN 2", 2139, FURNITURE_CATEGORY_TABLES},
- {10, "WOOD KITCHEN 3", 2140, FURNITURE_CATEGORY_TABLES},
- {10, "HI FI TABLE", 2346, FURNITURE_CATEGORY_TABLES},
- {10, "LONG TABLE", 2357, FURNITURE_CATEGORY_TABLES},
- {10, "TV COUNTER", 2368, FURNITURE_CATEGORY_TABLES},
- {10, "SIMPLE TABLE", 2370, FURNITURE_CATEGORY_TABLES},
- {10, "SMALL PIZZA TABLE", 2635, FURNITURE_CATEGORY_TABLES},
- {10, "BIG PIZZA TABLE", 2637, FURNITURE_CATEGORY_TABLES},
- {10, "RED TABLE", 2762, FURNITURE_CATEGORY_TABLES},
- {10, "BLACK TABLE WITH CHAIRS", 2799, FURNITURE_CATEGORY_TABLES},
- {10, "WHITE TABLES WITH RED CHAIRS", 1968, FURNITURE_CATEGORY_TABLES},
- {10, "WHITE TABLE WITH RED CHAIR", 1969, FURNITURE_CATEGORY_TABLES},
- {10, "SILVER SURFACE, WOOD EDGES", 936, FURNITURE_CATEGORY_TABLES},
- {10, "THREE SHELVES.", 937, FURNITURE_CATEGORY_TABLES},
- {10, "CRACK FACTORY TABLE", 941, FURNITURE_CATEGORY_TABLES},
- {10, "GRAY DESK", 19929, FURNITURE_CATEGORY_TABLES},
- {10, "LAB DESK", 3393, FURNITURE_CATEGORY_TABLES},
- {10, "LAB DESK 2", 3391, FURNITURE_CATEGORY_TABLES},
- {10, "WHITE DESK (NO COLLISION)", 1963, FURNITURE_CATEGORY_TABLES},
- {10, "SQUARE TABLE", 2112, FURNITURE_CATEGORY_TABLES},
- {10, "MIDDLE WOOD TABLE", 2117, FURNITURE_CATEGORY_TABLES}
- };
- /*enum E_CALLSIGN_INFO
- {
- Callsign[90]
- }
- static const g_CallsignData[][E_CALLSIGN_INFO] = {
- {"STAFF 1"},
- {"STAFF 2"},
- {"STAFF 3"},
- {"8-ADAM-10"},
- {"8-ADAM-20"},
- {"8-ADAM-11"},
- {"8-ADAM-12"},
- {"8-ADAM-13"},
- {"8-ADAM-14"},
- {"8-ADAM-15"},
- {"8-ADAM-16"},
- {"8-LINCOLN-10"},
- {"8-LINCOLN-20"},
- {"8-LINCOLN-11"},
- {"8-LINCOLN-12"},
- {"8-LINCOLN-13"},
- {"8-LINCOLN-14"},
- {"8-LINCOLN-15"},
- {"8-LINCOLN-16"},
- {"12-ADAM-10"},
- {"12-ADAM-20"},
- {"12-ADAM-11"},
- {"12-ADAM-12"},
- {"12-ADAM-13"},
- {"12-ADAM-14"},
- {"12-ADAM-15"},
- {"12-ADAM-16"},
- {"12-LINCOLN-10"},
- {"12-LINCOLN-20"},
- {"12-LINCOLN-11"},
- {"12-LINCOLN-12"},
- {"12-LINCOLN-13"},
- {"12-LINCOLN-14"},
- {"12-LINCOLN-15"},
- {"12-LINCOLN-16"},
- {"25-TOM-10"},
- {"25-TOM-11"},
- {"25-TOM-12"},
- {"25-TOM-13"},
- {"25-TOM-14"},
- {"25-MARY-11"},
- {"25-MARY-12"},
- {"25-MARY-13"},
- {"25-MARY-14"},
- {"34-TOM-10"},
- {"34-TOM-11"},
- {"34-TOM-12"},
- {"34-TOM-13"},
- {"34-TOM-14"},
- {"34-MARY-11"},
- {"34-MARY-12"},
- {"34-MARY-13"},
- {"34-MARY-14"},
- {"10-DAVID"},
- {"20-DAVID"},
- {"30-DAVID"},
- {"40-DAVID"},
- {"AIR 1"},
- {"AIR 2"},
- {"4-KING-10"},
- {"4-KING-11"},
- {"4-KING-12"},
- {"5-KING-10"},
- {"5-KING-11"},
- {"5-KING-12"},
- {"5-GEORGE-10"},
- {"5-GEORGE-11"},
- {"5-GEORGE-12"},
- {"ROBERT 1C"},
- {"ROBERT 1K"},
- {"ROBERT 2C"},
- {"ROBERT 2K"},
- {"ROBERT 3C"},
- {"ROBERT 3K"},
- {"ROBERT 4C"},
- {"ROBERT 4K"},
- {"ROBERT 5C"},
- {"ROBERT 5K"}
- };*/
- enum E_SIRENS_INFO
- {
- SirenForModel,
-
- Float:PosX,
- Float:PosY,
- Float:PosZ
- }
- new g_SirenPresets[][E_SIRENS_INFO] =
- {
- {596, 0.0, -1.75, 0.35}, //LSPD
- {598, 0.0, -1.5, 0.35}, //LVPD
- {490, -0.5, 0.5, 1.15}, //FBI RANCHER
- {560, -0.45, 0.25, 0.85}, //SULTAN
- {426, -0.45, 0.0, 0.875}, //PREMIER
- {541, 0.0, 0.6, 0.35}, //BULLET
- {402, 0.0, 0.55, 0.3}, //BUFFALO
- {579, 0.0, 0.6, 0.6}, // HUNTLEY
- {413, 0.0, 0.65, 1.2}, //PONY
- {597, 0.0, -1.75, 0.35}, //SFPD
- {415, 0.0, 0.65, 0.2}, //CHEETAH
- {445, 0.004999, 0.739999, 0.309999}, //ADMIRAL
- {421, 0.000000, 0.799999, 0.239999}, //WASHINGTON
- {599, 0.0, 0.65, 0.5}, //POLICE RANGER
- {427, 0.0, 1.655, 0.7}, //ENFORCER
- {405, 0.0, 0.7, 0.25}, //SENTINEL
- {482, -0.5, 0.6, 0.95}, //BURRITO
- {457, -0.3, 0.3, 1.35}, //CADDY
- {525, 0.0, -0.449999, 1.425000}, //TOWTRUCK
- {407, -0.0, -3.01, 1.350000}, //FIRETRUCK
- {544, 0.0, 2.850001, 1.500000}, //FIRETRUCK LADDER
- {416, 0.0, -3.525001, 1.350000}, //AMBULANCE
- {552, 0.0, 0.65, 1.375}, //UTILITY
- {554, 0.0, 0.0, 1.049999} //YOSEMITE
- };
- enum E_FUELSTATIONS_INFO
- {
- Float:PosX,
- Float:PosY,
- Float:PosZ
- }
- new g_FuelStations[][E_FUELSTATIONS_INFO] =
- {
- {1938.4384, -1772.9103, 13.3828},
- {1004.2288, -939.6199, 42.1797},
- {652.9380, -570.4348, 16.3359},
- {653.1918, -559.8961, 16.3359},
- {1381.2953, 457.8216, 19.9517},
- {605.2136, 1704.8694, 6.9922},
- {608.6473, 1700.0106, 6.9922},
- {612.3318, 1694.4545, 6.9922},
- {615.6635, 1689.9880, 6.9922},
- {618.5643, 1684.9275, 6.9922},
- {622.1896, 1679.8921, 6.9922},
- {1541.4110, -2173.9783, 13.5532}
- };
- enum E_INTERIOR_DATA
- {
- IntName[60],
- IntID,
- Float:IntPosX,
- Float:IntPosY,
- Float:IntPosZ
- }
- new Interiors[][E_INTERIOR_DATA] =
- {
- {"24/7 #1", 17, -25.884498, -185.868988, 1003.546875},
- {"24/7 #2", 10, 6.091179, -29.271898, 1003.549438},
- {"24/7 #3", 18, -30.946699, -89.609596, 1003.546875},
- {"24/7 #4", 16, -25.132598, -139.066986, 1003.546875},
- {"24/7 #5", 4, -27.312299, -29.277599, 1003.557250},
- {"24/7 #6", 5, -26.691598, -55.714897, 1003.546875},
- {"Airport ticket desk", 14, -1827.147338, 7.207417, 1061.143554},
- {"Airport baggage reclaim", 14, -1861.936889, 54.908092, 1061.143554},
- {"Shamal", 1, 1.808619, 32.384357, 1199.593750},
- {"Andromada", 9, 315.745086, 984.969299, 1958.919067},
- {"Ammunation 1", 1, 286.148986, -40.644397, 1001.515625},
- {"Ammunation 2", 4, 286.800994,-82.547599,1001.515625},
- {"Ammunation 3", 6, 296.919982,-108.071998,1001.515625},
- {"Ammunation 4", 7, 314.820983,-141.431991,999.601562},
- {"Ammunation 5", 6, 316.524993,-167.706985,999.593750},
- {"Ammunation booths", 7, 302.292877,-143.139099,1004.062500},
- {"Ammunation range", 7, 298.507934,-141.647048,1004.054748},
- {"Blastin fools hallway", 3, 1038.531372,0.111030,1001.284484},
- {"Budget inn motel room", 12, 444.646911,508.239044,1001.419494},
- {"Jefferson motel", 15, 2215.454833,-1147.475585,1025.796875},
- {"Off track betting shop", 3, 833.269775,10.588416,1004.179687},
- {"Sex shop", 3, -103.559165,-24.225606,1000.718750},
- {"Meat factory", 1, 963.418762,2108.292480,1011.030273},
- {"Zero's RC shop", 6, -2240.468505,137.060440,1035.414062},
- {"Dillimore gas station", 0, 663.836242,-575.605407,16.343263},
- {"Catigula's basement", 1, 2169.461181,1618.798339,999.976562},
- {"FDC Janitors room", 10, 1889.953369,1017.438293,31.882812},
- {"Woozie's office", 1, -2159.122802, 641.517517, 1052.381713},
- {"Binco", 15, 207.737991, -109.019996, 1005.132812},
- {"Didier sachs", 14, 204.332992, -166.694992, 1000.523437},
- {"Prolaps", 3, 207.054992, -138.804992, 1003.507812},
- {"Suburban", 1, 203.777999, -48.492397, 1001.804687},
- {"Victim", 5, 226.293991, -7.431529, 1002.210937},
- {"Zip", 18, 161.391006, -93.159156, 1001.804687},
- {"Club", 17, 493.390991, -22.722799, 1000.679687},
- {"Bar", 1, 501.980987, -69.150199, 998.757812},
- {"Lil' probe inn", 18, -227.027999, 1401.229980, 27.765625},
- {"Jay's diner", 4, 457.304748, -88.428497, 999.554687},
- {"Gant bridge diner", 5, 454.973937, -110.104995, 1000.077209},
- {"Secret valley diner", 6, 435.271331, -80.958938, 999.554687},
- {"World of coq", 1, 452.489990, -18.179698, 1001.132812},
- {"Welcome pump", 1, 681.557861, -455.680053, -25.609874},
- {"Burger shot", 10, 375.962463, -65.816848, 1001.507812},
- {"Cluckin' bell", 9, 369.579528, -4.487294, 1001.858886},
- {"Well stacked pizza", 5, 373.825653, -117.270904, 1001.499511},
- {"Rusty browns donuts", 17, 381.169189, -188.803024, 1000.632812},
- {"Denise room", 1, 244.411987, 305.032989, 999.148437},
- {"Katie room", 2, 271.884979, 306.631988, 999.148437},
- {"Helena room", 3, 291.282989, 310.031982, 999.148437},
- {"Michelle room", 4, 302.180999, 300.722991, 999.148437},
- {"Barbara room", 5, 322.197998, 302.497985, 999.148437},
- {"Millie room", 6, 346.870025, 309.259033, 999.155700},
- {"Sherman dam", 17, -959.564392, 1848.576782, 9.000000},
- {"Planning dept.", 3, 384.808624,173.804992,1008.382812},
- {"Area 51", 0, 223.431976, 1872.400268, 13.734375},
- {"LS gym", 5, 772.111999, -3.898649, 1000.728820},
- {"SF gym", 6, 774.213989, -48.924297, 1000.585937},
- {"LV gym", 7, 773.579956, -77.096694, 1000.655029},
- {"B Dup's house", 3, 1527.229980, -11.574499, 1002.097106},
- {"B Dup's crack pad", 2, 1523.509887, -47.821197, 1002.130981},
- {"Cj's house", 3, 2496.049804, -1695.238159, 1014.742187},
- {"Madd Doggs mansion", 5, 1267.663208, -781.323242, 1091.906250},
- {"Og Loc's house", 3, 513.882507, -11.269994, 1001.565307},
- {"Ryders house", 2, 2454.717041, -1700.871582, 1013.515197},
- {"Sweet's house", 1, 2527.654052, -1679.388305, 1015.498596},
- {"Crack factory", 2, 2543.462646, -1308.379882, 1026.728393},
- {"Big spread ranch", 3, 1212.019897, -28.663099, 1000.953125},
- {"Fanny batters", 6, 761.412963, 1440.191650, 1102.703125},
- {"Strip club", 2, 1204.809936, -11.586799, 1000.921875},
- {"Strip club private room", 2, 1204.809936, 13.897239, 1000.921875},
- {"Unnamed brothel", 3, 942.171997, -16.542755, 1000.929687},
- {"Tiger skin brothel", 3, 964.106994, -53.205497, 1001.124572},
- {"Pleasure domes", 3, -2640.762939, 1406.682006, 906.460937},
- {"Liberty city outside", 1, -729.276000, 503.086944, 1371.971801},
- {"Liberty city inside", 1, -794.806396, 497.738037, 1376.195312},
- {"Gang house", 5, 2350.339843, -1181.649902, 1027.976562},
- {"Colonel Furhberger's", 8, 2807.619873, -1171.899902, 1025.570312},
- {"Crack den", 5, 318.564971, 1118.209960, 1083.882812},
- {"Warehouse 1", 1, 1412.639892, -1.787510, 1000.924377},
- {"Warehouse 2", 18, 1302.519897,-1.787510,1001.028259},
- {"Sweets garage", 0, 2522.000000,-1673.383911,14.866223},
- {"Lil' probe inn toilet", 18, -221.059051,1408.984008,27.773437},
- {"Unused safe house", 12, 2324.419921, -1145.568359, 1050.710083},
- {"RC Battlefield ", 10, -975.975708, 1060.983032, 1345.671875},
- {"Barber 1", 2, 411.625976, -21.433298, 1001.804687},
- {"Barber 2", 3, 418.652984, -82.639793, 1001.804687},
- {"Barber 3", 12, 412.021972, -52.649898, 1001.898437},
- {"Tattoo parlor 1", 16, -204.439987, -26.453998, 1002.273437},
- {"Tattoo parlor 2", 17, -204.439987, -8.469599, 1002.273437},
- {"Tattoo parlor 3", 3, -204.439987, -43.652496, 1002.273437},
- {"LS police HQ", 6, 246.783996, 63.900199, 1003.640625},
- {"SF police HQ", 10, 246.375991, 109.245994, 1003.218750},
- {"LV police HQ", 3, 288.745971, 169.350997, 1007.171875},
- {"Car school", 3, -2029.798339, -106.675910, 1035.171875},
- {"8-Track", 7, -1398.065307, -217.028900, 1051.115844},
- {"Bloodbowl", 15, -1398.103515, 937.631164, 1036.479125},
- {"Dirt track", 4, -1444.645507, -664.526000, 1053.572998},
- {"Kickstart", 14, -1465.268676, 1557.868286, 1052.531250},
- {"Vice stadium", 1, -1401.829956, 107.051300, 1032.273437},
- {"SF Garage", 0, -1790.378295, 1436.949829, 7.187500},
- {"LS Garage", 0, 1643.839843, -1514.819580, 13.566620},
- {"SF Bomb shop", 0, -1685.636474, 1035.476196, 45.210937},
- {"Blueberry warehouse", 0, 76.632553, -301.156829, 1.578125},
- {"LV Warehouse 1", 0, 1059.895996, 2081.685791, 10.820312},
- {"LV Warehouse 2 (hidden part)", 0, 1059.180175, 2148.938720, 10.820312},
- {"Catigula's hidden room", 1, 2131.507812, 1600.818481, 1008.359375},
- {"Bank", 0, 2315.952880, -1.618174, 26.742187},
- {"Bank (behind desk)", 0, 2319.714843, -14.838361, 26.749565},
- {"LS Atruim", 18, 1710.433715, -1669.379272, 20.225049},
- {"Bike School", 3, 1494.325195, 1304.942871, 1093.289062},
- {"Custom police HQ", 0, -236.1195, 144.9929, -53.8010},
- {"Custom bank 1", 6, 1456.6346, -988.0356, 996.1050},
- {"Custom bank 2", 0, -554.9476, 1782.2751, 1392.4731},
- {"Complex 1", 0, 1990.2488, 1116.5715, 22.5186},
- {"Complex 2", 0, 397.9061, 517.4778, 990.7277},
- {"Complex 3", 0, 160.5634, 2485.5669,- 88.9141},
- {"Studio Apartments", 0, 232.4190, 241.8836, 999.2313},
- {"Mafia Bar", 0, 1930.5273, -2081.4336, 788.1960},
- {"Custom House 1", 0, 2434.8584, -1622.6749, 1568.9280},
- {"Custom House 2", 0, 1378.2780, -820.4017, 1092.3500},
- {"Custom Restaurant", 0, -1794.6632, 1230.5464, 20.6711},
- {"Custom Apartment", 0, 1697.4037,-1417.4551,37.3089},
- {"Ghetto Bar", 0, 2588.5774, -1643.9049, 1358.4089},
- {"Custom Bar", 0, 1299.3857, -880.3571, 2003.4534},
- {"Small Apartment", 0, 1780.7344, -1443.6942, 1359.5919},
- {"Prison", 0, 2574.9233, -1474.8563, -48.8995},
- {"Hospital", 0, -204.5169, -1735.5739, 675.7687},
- {"Modern House 1", 0, 243.4072, -1851.5687, 3333.9329},
- {"Modern House 2", 0, 1245.2904, -1118.4497, 3458.9070},
- {"Government Interior", 0, 1481.2892, -1779.5699, 1815.9910},
- {"Police Department 1", 0, 2593.2646, -1201.2382, 1516.2271},
- {"Police Department 2", 0, 230.9149, 79.2698, 1043.4009},
- {"Police Department 3", 0, 1554.4457, -1671.8848, -40.5941},
- {"Small House", 0, 669.4931, -1691.1508, -25.7441}
- };
- static const PossibleWeapons[][E_ORDER_DATA] =
- {
- {"Colt", 22},
- {"Taurus", 22},
- {"Browning", 22},
- {"Deagle", 24},
- {"Desert Eagle", 24},
- {"Glock", 24},
- {"Smith & Wesson", 24},
- {"Smith and Wesson", 24},
- {"Ruger", 24},
- {"Beretta", 24},
- {"CZ", 24},
- {"FN", 24},
- {"HK", 24},
- {"Heckler & Koch", 24},
- {"Heckler and Koch", 24},
- {"Ithaca", 24},
- {"Kel-Tec", 24},
- {"Kriss", 24},
- {"Sig Sauer", 24},
- {"Springfield", 24},
- {"Shotgun", 25},
- {"Mossberg", 25},
- {"Remington", 25},
- {"Tec-9", 32},
- {"Intratec", 32},
- {"AB-10", 32}
- };
- static const g_aRoadblocks[][E_ROADBLOCK_INFO] = {
- {"Short Barrier", 1949},
- {"Shorter Barrier", 1459},
- {"Traffic Barrier", 1282},
- {"Detour Sign", 1425},
- {"Track Barrier", 3091},
- {"Large Barrier", 981},
- {"Road Barrier", 1237},
- {"Shorter Barrier", 1459},
- {"Road Barrier 2", 1424},
- {"Traffic Cone", 1238},
- {"Police Tape", 19834},
- {"Large Spikes", 2892},
- {"Short Spikes", 2899}
- };
- static const PossibleDropSpots[][E_ORDERLOCATION_DATA] = {
- {814.1916, -564.4401, 16.3359},
- {1059.9880, -289.0486, 73.9922},
- {2153.2617, -101.1982, 2.6570},
- {2327.9292, 574.3517, 7.7813},
- {-1481.0472, 2630.8008, 58.7813},
- {-2827.8799, -1522.5027, 139.1632},
- {1063.8962, 2271.0144, 10.8126},
- {-539.9781, 2592.9333, 53.4154},
- {-788.0873, 2420.7778, 157.1281},
- {-376.3968, 1520.2499, 75.5625},
- {-1366.9153, 2058.7578, 52.6534},
- {-2287.1592, 2283.9688, 4.9724},
- {-2988.5286, 472.0439, 4.9141},
- {-1630.1023, -2242.4648, 31.4766},
- {-416.8673, -1761.4701, 5.6762},
- {258.8456, 2889.9907, 11.1991},
- {2454.3835, 2806.2183, 10.8203},
- {-1913.6975, -1675.6669, 23.0156},
- {-1432.3746, -964.3013, 200.9599},
- {-545.1014, -74.3072, 62.8594},
- {191.2636, 1403.4678, 10.5859},
- {1248.1340, 207.7558, 23.0555},
- {2268.3137, -2570.4019, 8.3603},
- {-1977.8420, 455.9144, 28.3573},
- {-1805.8313, 1304.8137, 50.4453}
- };
- new GunObjectIDs[200] =
- {
- 1575, 331, 333, 334, 335, 336, 337, 338, 339, 341, 321, 322, 323, 324, 325, 326, 342, 343, 344, -1, -1, -1,
- 346, 347, 348, 349, 350, 351, 352, 353, 355, 356, 372, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367,
- 368, 369, 1575
- };
- static const VehicleColoursTableRGBA[256] =
- {
- 0x000000FF, 0xF5F5F5FF, 0x2A77A1FF, 0x840410FF, 0x263739FF, 0x86446EFF, 0xD78E10FF, 0x4C75B7FF, 0xBDBEC6FF, 0x5E7072FF,
- 0x46597AFF, 0x656A79FF, 0x5D7E8DFF, 0x58595AFF, 0xD6DAD6FF, 0x9CA1A3FF, 0x335F3FFF, 0x730E1AFF, 0x7B0A2AFF, 0x9F9D94FF,
- 0x3B4E78FF, 0x732E3EFF, 0x691E3BFF, 0x96918CFF, 0x515459FF, 0x3F3E45FF, 0xA5A9A7FF, 0x635C5AFF, 0x3D4A68FF, 0x979592FF,
- 0x421F21FF, 0x5F272BFF, 0x8494ABFF, 0x767B7CFF, 0x646464FF, 0x5A5752FF, 0x252527FF, 0x2D3A35FF, 0x93A396FF, 0x6D7A88FF,
- 0x221918FF, 0x6F675FFF, 0x7C1C2AFF, 0x5F0A15FF, 0x193826FF, 0x5D1B20FF, 0x9D9872FF, 0x7A7560FF, 0x989586FF, 0xADB0B0FF,
- 0x848988FF, 0x304F45FF, 0x4D6268FF, 0x162248FF, 0x272F4BFF, 0x7D6256FF, 0x9EA4ABFF, 0x9C8D71FF, 0x6D1822FF, 0x4E6881FF,
- 0x9C9C98FF, 0x917347FF, 0x661C26FF, 0x949D9FFF, 0xA4A7A5FF, 0x8E8C46FF, 0x341A1EFF, 0x6A7A8CFF, 0xAAAD8EFF, 0xAB988FFF,
- 0x851F2EFF, 0x6F8297FF, 0x585853FF, 0x9AA790FF, 0x601A23FF, 0x20202CFF, 0xA4A096FF, 0xAA9D84FF, 0x78222BFF, 0x0E316DFF,
- 0x722A3FFF, 0x7B715EFF, 0x741D28FF, 0x1E2E32FF, 0x4D322FFF, 0x7C1B44FF, 0x2E5B20FF, 0x395A83FF, 0x6D2837FF, 0xA7A28FFF,
- 0xAFB1B1FF, 0x364155FF, 0x6D6C6EFF, 0x0F6A89FF, 0x204B6BFF, 0x2B3E57FF, 0x9B9F9DFF, 0x6C8495FF, 0x4D8495FF, 0xAE9B7FFF,
- 0x406C8FFF, 0x1F253BFF, 0xAB9276FF, 0x134573FF, 0x96816CFF, 0x64686AFF, 0x105082FF, 0xA19983FF, 0x385694FF, 0x525661FF,
- 0x7F6956FF, 0x8C929AFF, 0x596E87FF, 0x473532FF, 0x44624FFF, 0x730A27FF, 0x223457FF, 0x640D1BFF, 0xA3ADC6FF, 0x695853FF,
- 0x9B8B80FF, 0x620B1CFF, 0x5B5D5EFF, 0x624428FF, 0x731827FF, 0x1B376DFF, 0xEC6AAEFF, 0x000000FF,
- 0x177517FF, 0x210606FF, 0x125478FF, 0x452A0DFF, 0x571E1EFF, 0x010701FF, 0x25225AFF, 0x2C89AAFF, 0x8A4DBDFF, 0x35963AFF,
- 0xB7B7B7FF, 0x464C8DFF, 0x84888CFF, 0x817867FF, 0x817A26FF, 0x6A506FFF, 0x583E6FFF, 0x8CB972FF, 0x824F78FF, 0x6D276AFF,
- 0x1E1D13FF, 0x1E1306FF, 0x1F2518FF, 0x2C4531FF, 0x1E4C99FF, 0x2E5F43FF, 0x1E9948FF, 0x1E9999FF, 0x999976FF, 0x7C8499FF,
- 0x992E1EFF, 0x2C1E08FF, 0x142407FF, 0x993E4DFF, 0x1E4C99FF, 0x198181FF, 0x1A292AFF, 0x16616FFF, 0x1B6687FF, 0x6C3F99FF,
- 0x481A0EFF, 0x7A7399FF, 0x746D99FF, 0x53387EFF, 0x222407FF, 0x3E190CFF, 0x46210EFF, 0x991E1EFF, 0x8D4C8DFF, 0x805B80FF,
- 0x7B3E7EFF, 0x3C1737FF, 0x733517FF, 0x781818FF, 0x83341AFF, 0x8E2F1CFF, 0x7E3E53FF, 0x7C6D7CFF, 0x020C02FF, 0x072407FF,
- 0x163012FF, 0x16301BFF, 0x642B4FFF, 0x368452FF, 0x999590FF, 0x818D96FF, 0x99991EFF, 0x7F994CFF, 0x839292FF, 0x788222FF,
- 0x2B3C99FF, 0x3A3A0BFF, 0x8A794EFF, 0x0E1F49FF, 0x15371CFF, 0x15273AFF, 0x375775FF, 0x060820FF, 0x071326FF, 0x20394BFF,
- 0x2C5089FF, 0x15426CFF, 0x103250FF, 0x241663FF, 0x692015FF, 0x8C8D94FF, 0x516013FF, 0x090F02FF, 0x8C573AFF, 0x52888EFF,
- 0x995C52FF, 0x99581EFF, 0x993A63FF, 0x998F4EFF, 0x99311EFF, 0x0D1842FF, 0x521E1EFF, 0x42420DFF, 0x4C991EFF, 0x082A1DFF,
- 0x96821DFF, 0x197F19FF, 0x3B141FFF, 0x745217FF, 0x893F8DFF, 0x7E1A6CFF, 0x0B370BFF, 0x27450DFF, 0x071F24FF, 0x784573FF,
- 0x8A653AFF, 0x732617FF, 0x319490FF, 0x56941DFF, 0x59163DFF, 0x1B8A2FFF, 0x38160BFF, 0x041804FF, 0x355D8EFF, 0x2E3F5BFF,
- 0x561A28FF, 0x4E0E27FF, 0x706C67FF, 0x3B3E42FF, 0x2E2D33FF, 0x7B7E7DFF, 0x4A4442FF, 0x28344EFF
- };
- new PlatePossible[][] = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"};
- static const g_aPreloadLibs[][] =
- {
- "AIRPORT", "ATTRACTORS", "BAR", "BASEBALL", "BD_FIRE",
- "BEACH", "BENCHPRESS", "BF_INJECTION", "BIKE_DBZ", "BIKED",
- "BIKEH", "BIKELEAP", "BIKES", "BIKEV", "BLOWJOBZ",
- "BMX", "BOMBER", "BOX", "BSKTBALL", "BUDDY",
- "BUS", "CAMERA", "CAR", "CAR_CHAT", "CARRY",
- "CASINO", "CHAINSAW", "CHOPPA", "CLOTHES", "COACH",
- "COLT45", "COP_AMBIENT", "COP_DVBYZ", "CRACK", "CRIB",
- "DAM_JUMP", "DANCING", "DEALER", "DILDO", "DODGE",
- "DOZER", "DRIVEBYS", "FAT", "FIGHT_B", "FIGHT_C",
- "FIGHT_D", "FIGHT_E", "FINALE", "FINALE2", "FLAME",
- "FLOWERS", "FOOD", "FREEWEIGHTS", "GANGS", "GFUNK",
- "GHANDS", "GHETTO_DB", "GOGGLES", "GRAFFITI", "GRAVEYARD",
- "GRENADE", "GYMNASIUM", "HAIRCUTS", "HEIST9", "INT_HOUSE",
- "INT_OFFICE", "INT_SHOP", "JST_BUISNESS", "KART", "KISSING",
- "KNIFE", "LAPDAN1", "LAPDAN2", "LAPDAN3", "LOWRIDER",
- "MD_CHASE", "MD_END", "MEDIC", "MISC", "MTB",
- "MUSCULAR", "NEVADA", "ON_LOOKERS", "OTB", "PARACHUTE",
- "PARK", "PAULNMAC", "PED", "PLAYER_DVBYS", "PLAYIDLES",
- "POLICE", "POOL", "POOR", "PYTHON", "QUAD",
- "QUAD_DBZ", "RAPPING", "RIFLE", "RIOT", "ROB_BANK",
- "ROCKET", "RUNNINGMAN", "RUSTLER", "RYDER", "SCRATCHING",
- "SEX", "SHAMAL", "SHOP", "SHOTGUN", "SILENCED",
- "SKATE", "SMOKING", "SNIPER", "SNM", "SPRAYCAN",
- "STRIP", "SUNBATHE", "SWAT", "SWEET", "SWIM",
- "SWORD", "TANK", "TATTOOS", "TEC", "TRAIN",
- "TRUCK", "UZI", "VAN", "VENDING", "VORTEX",
- "WAYFARER", "WEAPONS", "WOP", "WUZI"
- };
- static const gSAZones[][SAZONE_MAIN] = { // Majority of names and area coordinates adopted from Mabako's 'Zones Script' v0.2
- // NAME AREA (Xmin,Ymin,Zmin,Xmax,Ymax,Zmax)
- {"The Big Ear", {-410.00,1403.30,-3.00,-137.90,1681.20,200.00}},
- {"Aldea Malvada", {-1372.10,2498.50,0.00,-1277.50,2615.30,200.00}},
- {"Angel Pine", {-2324.90,-2584.20,-6.10,-1964.20,-2212.10,200.00}},
- {"Arco del Oeste", {-901.10,2221.80,0.00,-592.00,2571.90,200.00}},
- {"Avispa Country Club", {-2646.40,-355.40,0.00,-2270.00,-222.50,200.00}},
- {"Avispa Country Club", {-2831.80,-430.20,-6.10,-2646.40,-222.50,200.00}},
- {"Avispa Country Club", {-2361.50,-417.10,0.00,-2270.00,-355.40,200.00}},
- {"Avispa Country Club", {-2667.80,-302.10,-28.80,-2646.40,-262.30,71.10}},
- {"Avispa Country Club", {-2470.00,-355.40,0.00,-2270.00,-318.40,46.10}},
- {"Avispa Country Club", {-2550.00,-355.40,0.00,-2470.00,-318.40,39.70}},
- {"Back o Beyond", {-1166.90,-2641.10,0.00,-321.70,-1856.00,200.00}},
- {"Battery Point", {-2741.00,1268.40,-4.50,-2533.00,1490.40,200.00}},
- {"Bayside", {-2741.00,2175.10,0.00,-2353.10,2722.70,200.00}},
- {"Bayside Marina", {-2353.10,2275.70,0.00,-2153.10,2475.70,200.00}},
- {"Beacon Hill", {-399.60,-1075.50,-1.40,-319.00,-977.50,198.50}},
- {"Blackfield", {964.30,1203.20,-89.00,1197.30,1403.20,110.90}},
- {"Blackfield", {964.30,1403.20,-89.00,1197.30,1726.20,110.90}},
- {"Blackfield Chapel", {1375.60,596.30,-89.00,1558.00,823.20,110.90}},
- {"Blackfield Chapel", {1325.60,596.30,-89.00,1375.60,795.00,110.90}},
- {"Blackfield Intersection", {1197.30,1044.60,-89.00,1277.00,1163.30,110.90}},
- {"Blackfield Intersection", {1166.50,795.00,-89.00,1375.60,1044.60,110.90}},
- {"Blackfield Intersection", {1277.00,1044.60,-89.00,1315.30,1087.60,110.90}},
- {"Blackfield Intersection", {1375.60,823.20,-89.00,1457.30,919.40,110.90}},
- {"Blueberry", {104.50,-220.10,2.30,349.60,152.20,200.00}},
- {"Blueberry", {19.60,-404.10,3.80,349.60,-220.10,200.00}},
- {"Blueberry Acres", {-319.60,-220.10,0.00,104.50,293.30,200.00}},
- {"Caligula's Palace", {2087.30,1543.20,-89.00,2437.30,1703.20,110.90}},
- {"Caligula's Palace", {2137.40,1703.20,-89.00,2437.30,1783.20,110.90}},
- {"Calton Heights", {-2274.10,744.10,-6.10,-1982.30,1358.90,200.00}},
- {"Chinatown", {-2274.10,578.30,-7.60,-2078.60,744.10,200.00}},
- {"City Hall", {-2867.80,277.40,-9.10,-2593.40,458.40,200.00}},
- {"Come-A-Lot", {2087.30,943.20,-89.00,2623.10,1203.20,110.90}},
- {"Commerce", {1323.90,-1842.20,-89.00,1701.90,-1722.20,110.90}},
- {"Commerce", {1323.90,-1722.20,-89.00,1440.90,-1577.50,110.90}},
- {"Commerce", {1370.80,-1577.50,-89.00,1463.90,-1384.90,110.90}},
- {"Commerce", {1463.90,-1577.50,-89.00,1667.90,-1430.80,110.90}},
- {"Commerce", {1583.50,-1722.20,-89.00,1758.90,-1577.50,110.90}},
- {"Commerce", {1667.90,-1577.50,-89.00,1812.60,-1430.80,110.90}},
- {"Conference Center", {1046.10,-1804.20,-89.00,1323.90,-1722.20,110.90}},
- {"Conference Center", {1073.20,-1842.20,-89.00,1323.90,-1804.20,110.90}},
- {"Cranberry Station", {-2007.80,56.30,0.00,-1922.00,224.70,100.00}},
- {"Creek", {2749.90,1937.20,-89.00,2921.60,2669.70,110.90}},
- {"Dillimore", {580.70,-674.80,-9.50,861.00,-404.70,200.00}},
- {"Doherty", {-2270.00,-324.10,-0.00,-1794.90,-222.50,200.00}},
- {"Doherty", {-2173.00,-222.50,-0.00,-1794.90,265.20,200.00}},
- {"Downtown", {-1982.30,744.10,-6.10,-1871.70,1274.20,200.00}},
- {"Downtown", {-1871.70,1176.40,-4.50,-1620.30,1274.20,200.00}},
- {"Downtown", {-1700.00,744.20,-6.10,-1580.00,1176.50,200.00}},
- {"Downtown", {-1580.00,744.20,-6.10,-1499.80,1025.90,200.00}},
- {"Downtown", {-2078.60,578.30,-7.60,-1499.80,744.20,200.00}},
- {"Downtown", {-1993.20,265.20,-9.10,-1794.90,578.30,200.00}},
- {"Downtown Los Santos", {1463.90,-1430.80,-89.00,1724.70,-1290.80,110.90}},
- {"Downtown Los Santos", {1724.70,-1430.80,-89.00,1812.60,-1250.90,110.90}},
- {"Downtown Los Santos", {1463.90,-1290.80,-89.00,1724.70,-1150.80,110.90}},
- {"Downtown Los Santos", {1370.80,-1384.90,-89.00,1463.90,-1170.80,110.90}},
- {"Downtown Los Santos", {1724.70,-1250.90,-89.00,1812.60,-1150.80,110.90}},
- {"Downtown Los Santos", {1370.80,-1170.80,-89.00,1463.90,-1130.80,110.90}},
- {"Downtown Los Santos", {1378.30,-1130.80,-89.00,1463.90,-1026.30,110.90}},
- {"Downtown Los Santos", {1391.00,-1026.30,-89.00,1463.90,-926.90,110.90}},
- {"Downtown Los Santos", {1507.50,-1385.20,110.90,1582.50,-1325.30,335.90}},
- {"East Beach", {2632.80,-1852.80,-89.00,2959.30,-1668.10,110.90}},
- {"East Beach", {2632.80,-1668.10,-89.00,2747.70,-1393.40,110.90}},
- {"East Beach", {2747.70,-1668.10,-89.00,2959.30,-1498.60,110.90}},
- {"East Beach", {2747.70,-1498.60,-89.00,2959.30,-1120.00,110.90}},
- {"East Los Santos", {2421.00,-1628.50,-89.00,2632.80,-1454.30,110.90}},
- {"East Los Santos", {2222.50,-1628.50,-89.00,2421.00,-1494.00,110.90}},
- {"East Los Santos", {2266.20,-1494.00,-89.00,2381.60,-1372.00,110.90}},
- {"East Los Santos", {2381.60,-1494.00,-89.00,2421.00,-1454.30,110.90}},
- {"East Los Santos", {2281.40,-1372.00,-89.00,2381.60,-1135.00,110.90}},
- {"East Los Santos", {2381.60,-1454.30,-89.00,2462.10,-1135.00,110.90}},
- {"East Los Santos", {2462.10,-1454.30,-89.00,2581.70,-1135.00,110.90}},
- {"Easter Basin", {-1794.90,249.90,-9.10,-1242.90,578.30,200.00}},
- {"Easter Basin", {-1794.90,-50.00,-0.00,-1499.80,249.90,200.00}},
- {"Easter Bay Airport", {-1499.80,-50.00,-0.00,-1242.90,249.90,200.00}},
- {"Easter Bay Airport", {-1794.90,-730.10,-3.00,-1213.90,-50.00,200.00}},
- {"Easter Bay Airport", {-1213.90,-730.10,0.00,-1132.80,-50.00,200.00}},
- {"Easter Bay Airport", {-1242.90,-50.00,0.00,-1213.90,578.30,200.00}},
- {"Easter Bay Airport", {-1213.90,-50.00,-4.50,-947.90,578.30,200.00}},
- {"Easter Bay Airport", {-1315.40,-405.30,15.40,-1264.40,-209.50,25.40}},
- {"Easter Bay Airport", {-1354.30,-287.30,15.40,-1315.40,-209.50,25.40}},
- {"Easter Bay Airport", {-1490.30,-209.50,15.40,-1264.40,-148.30,25.40}},
- {"Easter Bay Chemicals", {-1132.80,-768.00,0.00,-956.40,-578.10,200.00}},
- {"Easter Bay Chemicals", {-1132.80,-787.30,0.00,-956.40,-768.00,200.00}},
- {"El Castillo del Diablo", {-464.50,2217.60,0.00,-208.50,2580.30,200.00}},
- {"El Castillo del Diablo", {-208.50,2123.00,-7.60,114.00,2337.10,200.00}},
- {"El Castillo del Diablo", {-208.50,2337.10,0.00,8.40,2487.10,200.00}},
- {"El Corona", {1812.60,-2179.20,-89.00,1970.60,-1852.80,110.90}},
- {"El Corona", {1692.60,-2179.20,-89.00,1812.60,-1842.20,110.90}},
- {"El Quebrados", {-1645.20,2498.50,0.00,-1372.10,2777.80,200.00}},
- {"Esplanade East", {-1620.30,1176.50,-4.50,-1580.00,1274.20,200.00}},
- {"Esplanade East", {-1580.00,1025.90,-6.10,-1499.80,1274.20,200.00}},
- {"Esplanade East", {-1499.80,578.30,-79.60,-1339.80,1274.20,20.30}},
- {"Esplanade North", {-2533.00,1358.90,-4.50,-1996.60,1501.20,200.00}},
- {"Esplanade North", {-1996.60,1358.90,-4.50,-1524.20,1592.50,200.00}},
- {"Esplanade North", {-1982.30,1274.20,-4.50,-1524.20,1358.90,200.00}},
- {"Fallen Tree", {-792.20,-698.50,-5.30,-452.40,-380.00,200.00}},
- {"Fallow Bridge", {434.30,366.50,0.00,603.00,555.60,200.00}},
- {"Fern Ridge", {508.10,-139.20,0.00,1306.60,119.50,200.00}},
- {"Financial", {-1871.70,744.10,-6.10,-1701.30,1176.40,300.00}},
- {"Fisher's Lagoon", {1916.90,-233.30,-100.00,2131.70,13.80,200.00}},
- {"Flint Intersection", {-187.70,-1596.70,-89.00,17.00,-1276.60,110.90}},
- {"Flint Range", {-594.10,-1648.50,0.00,-187.70,-1276.60,200.00}},
- {"Fort Carson", {-376.20,826.30,-3.00,123.70,1220.40,200.00}},
- {"Foster Valley", {-2270.00,-430.20,-0.00,-2178.60,-324.10,200.00}},
- {"Foster Valley", {-2178.60,-599.80,-0.00,-1794.90,-324.10,200.00}},
- {"Foster Valley", {-2178.60,-1115.50,0.00,-1794.90,-599.80,200.00}},
- {"Foster Valley", {-2178.60,-1250.90,0.00,-1794.90,-1115.50,200.00}},
- {"Frederick Bridge", {2759.20,296.50,0.00,2774.20,594.70,200.00}},
- {"Gant Bridge", {-2741.40,1659.60,-6.10,-2616.40,2175.10,200.00}},
- {"Gant Bridge", {-2741.00,1490.40,-6.10,-2616.40,1659.60,200.00}},
- {"Ganton", {2222.50,-1852.80,-89.00,2632.80,-1722.30,110.90}},
- {"Ganton", {2222.50,-1722.30,-89.00,2632.80,-1628.50,110.90}},
- {"Garcia", {-2411.20,-222.50,-0.00,-2173.00,265.20,200.00}},
- {"Garcia", {-2395.10,-222.50,-5.30,-2354.00,-204.70,200.00}},
- {"Garver Bridge", {-1339.80,828.10,-89.00,-1213.90,1057.00,110.90}},
- {"Garver Bridge", {-1213.90,950.00,-89.00,-1087.90,1178.90,110.90}},
- {"Garver Bridge", {-1499.80,696.40,-179.60,-1339.80,925.30,20.30}},
- {"Glen Park", {1812.60,-1449.60,-89.00,1996.90,-1350.70,110.90}},
- {"Glen Park", {1812.60,-1100.80,-89.00,1994.30,-973.30,110.90}},
- {"Glen Park", {1812.60,-1350.70,-89.00,2056.80,-1100.80,110.90}},
- {"Green Palms", {176.50,1305.40,-3.00,338.60,1520.70,200.00}},
- {"Greenglass College", {964.30,1044.60,-89.00,1197.30,1203.20,110.90}},
- {"Greenglass College", {964.30,930.80,-89.00,1166.50,1044.60,110.90}},
- {"Hampton Barns", {603.00,264.30,0.00,761.90,366.50,200.00}},
- {"Hankypanky Point", {2576.90,62.10,0.00,2759.20,385.50,200.00}},
- {"Harry Gold Parkway", {1777.30,863.20,-89.00,1817.30,2342.80,110.90}},
- {"Hashbury", {-2593.40,-222.50,-0.00,-2411.20,54.70,200.00}},
- {"Hilltop Farm", {967.30,-450.30,-3.00,1176.70,-217.90,200.00}},
- {"Hunter Quarry", {337.20,710.80,-115.20,860.50,1031.70,203.70}},
- {"Idlewood", {1812.60,-1852.80,-89.00,1971.60,-1742.30,110.90}},
- {"Idlewood", {1812.60,-1742.30,-89.00,1951.60,-1602.30,110.90}},
- {"Idlewood", {1951.60,-1742.30,-89.00,2124.60,-1602.30,110.90}},
- {"Idlewood", {1812.60,-1602.30,-89.00,2124.60,-1449.60,110.90}},
- {"Idlewood", {2124.60,-1742.30,-89.00,2222.50,-1494.00,110.90}},
- {"Idlewood", {1971.60,-1852.80,-89.00,2222.50,-1742.30,110.90}},
- {"Jefferson", {1996.90,-1449.60,-89.00,2056.80,-1350.70,110.90}},
- {"Jefferson", {2124.60,-1494.00,-89.00,2266.20,-1449.60,110.90}},
- {"Jefferson", {2056.80,-1372.00,-89.00,2281.40,-1210.70,110.90}},
- {"Jefferson", {2056.80,-1210.70,-89.00,2185.30,-1126.30,110.90}},
- {"Jefferson", {2185.30,-1210.70,-89.00,2281.40,-1154.50,110.90}},
- {"Jefferson", {2056.80,-1449.60,-89.00,2266.20,-1372.00,110.90}},
- {"Julius Thruway East", {2623.10,943.20,-89.00,2749.90,1055.90,110.90}},
- {"Julius Thruway East", {2685.10,1055.90,-89.00,2749.90,2626.50,110.90}},
- {"Julius Thruway East", {2536.40,2442.50,-89.00,2685.10,2542.50,110.90}},
- {"Julius Thruway East", {2625.10,2202.70,-89.00,2685.10,2442.50,110.90}},
- {"Julius Thruway North", {2498.20,2542.50,-89.00,2685.10,2626.50,110.90}},
- {"Julius Thruway North", {2237.40,2542.50,-89.00,2498.20,2663.10,110.90}},
- {"Julius Thruway North", {2121.40,2508.20,-89.00,2237.40,2663.10,110.90}},
- {"Julius Thruway North", {1938.80,2508.20,-89.00,2121.40,2624.20,110.90}},
- {"Julius Thruway North", {1534.50,2433.20,-89.00,1848.40,2583.20,110.90}},
- {"Julius Thruway North", {1848.40,2478.40,-89.00,1938.80,2553.40,110.90}},
- {"Julius Thruway North", {1704.50,2342.80,-89.00,1848.40,2433.20,110.90}},
- {"Julius Thruway North", {1377.30,2433.20,-89.00,1534.50,2507.20,110.90}},
- {"Julius Thruway South", {1457.30,823.20,-89.00,2377.30,863.20,110.90}},
- {"Julius Thruway South", {2377.30,788.80,-89.00,2537.30,897.90,110.90}},
- {"Julius Thruway West", {1197.30,1163.30,-89.00,1236.60,2243.20,110.90}},
- {"Julius Thruway West", {1236.60,2142.80,-89.00,1297.40,2243.20,110.90}},
- {"Juniper Hill", {-2533.00,578.30,-7.60,-2274.10,968.30,200.00}},
- {"Juniper Hollow", {-2533.00,968.30,-6.10,-2274.10,1358.90,200.00}},
- {"K.A.C.C. Military Fuels", {2498.20,2626.50,-89.00,2749.90,2861.50,110.90}},
- {"Kincaid Bridge", {-1339.80,599.20,-89.00,-1213.90,828.10,110.90}},
- {"Kincaid Bridge", {-1213.90,721.10,-89.00,-1087.90,950.00,110.90}},
- {"Kincaid Bridge", {-1087.90,855.30,-89.00,-961.90,986.20,110.90}},
- {"King's", {-2329.30,458.40,-7.60,-1993.20,578.30,200.00}},
- {"King's", {-2411.20,265.20,-9.10,-1993.20,373.50,200.00}},
- {"King's", {-2253.50,373.50,-9.10,-1993.20,458.40,200.00}},
- {"LVA Freight Depot", {1457.30,863.20,-89.00,1777.40,1143.20,110.90}},
- {"LVA Freight Depot", {1375.60,919.40,-89.00,1457.30,1203.20,110.90}},
- {"LVA Freight Depot", {1277.00,1087.60,-89.00,1375.60,1203.20,110.90}},
- {"LVA Freight Depot", {1315.30,1044.60,-89.00,1375.60,1087.60,110.90}},
- {"LVA Freight Depot", {1236.60,1163.40,-89.00,1277.00,1203.20,110.90}},
- {"Las Barrancas", {-926.10,1398.70,-3.00,-719.20,1634.60,200.00}},
- {"Las Brujas", {-365.10,2123.00,-3.00,-208.50,2217.60,200.00}},
- {"Las Colinas", {1994.30,-1100.80,-89.00,2056.80,-920.80,110.90}},
- {"Las Colinas", {2056.80,-1126.30,-89.00,2126.80,-920.80,110.90}},
- {"Las Colinas", {2185.30,-1154.50,-89.00,2281.40,-934.40,110.90}},
- {"Las Colinas", {2126.80,-1126.30,-89.00,2185.30,-934.40,110.90}},
- {"Las Colinas", {2747.70,-1120.00,-89.00,2959.30,-945.00,110.90}},
- {"Las Colinas", {2632.70,-1135.00,-89.00,2747.70,-945.00,110.90}},
- {"Las Colinas", {2281.40,-1135.00,-89.00,2632.70,-945.00,110.90}},
- {"Las Payasadas", {-354.30,2580.30,2.00,-133.60,2816.80,200.00}},
- {"Las Venturas Airport", {1236.60,1203.20,-89.00,1457.30,1883.10,110.90}},
- {"Las Venturas Airport", {1457.30,1203.20,-89.00,1777.30,1883.10,110.90}},
- {"Las Venturas Airport", {1457.30,1143.20,-89.00,1777.40,1203.20,110.90}},
- {"Las Venturas Airport", {1515.80,1586.40,-12.50,1729.90,1714.50,87.50}},
- {"Last Dime Motel", {1823.00,596.30,-89.00,1997.20,823.20,110.90}},
- {"Leafy Hollow", {-1166.90,-1856.00,0.00,-815.60,-1602.00,200.00}},
- {"Liberty City", {-1000.00,400.00,1300.00,-700.00,600.00,1400.00}},
- {"Lil' Probe Inn", {-90.20,1286.80,-3.00,153.80,1554.10,200.00}},
- {"Linden Side", {2749.90,943.20,-89.00,2923.30,1198.90,110.90}},
- {"Linden Station", {2749.90,1198.90,-89.00,2923.30,1548.90,110.90}},
- {"Linden Station", {2811.20,1229.50,-39.50,2861.20,1407.50,60.40}},
- {"Little Mexico", {1701.90,-1842.20,-89.00,1812.60,-1722.20,110.90}},
- {"Little Mexico", {1758.90,-1722.20,-89.00,1812.60,-1577.50,110.90}},
- {"Los Flores", {2581.70,-1454.30,-89.00,2632.80,-1393.40,110.90}},
- {"Los Flores", {2581.70,-1393.40,-89.00,2747.70,-1135.00,110.90}},
- {"Los Santos International", {1249.60,-2394.30,-89.00,1852.00,-2179.20,110.90}},
- {"Los Santos International", {1852.00,-2394.30,-89.00,2089.00,-2179.20,110.90}},
- {"Los Santos International", {1382.70,-2730.80,-89.00,2201.80,-2394.30,110.90}},
- {"Los Santos International", {1974.60,-2394.30,-39.00,2089.00,-2256.50,60.90}},
- {"Los Santos International", {1400.90,-2669.20,-39.00,2189.80,-2597.20,60.90}},
- {"Los Santos International", {2051.60,-2597.20,-39.00,2152.40,-2394.30,60.90}},
- {"Marina", {647.70,-1804.20,-89.00,851.40,-1577.50,110.90}},
- {"Marina", {647.70,-1577.50,-89.00,807.90,-1416.20,110.90}},
- {"Marina", {807.90,-1577.50,-89.00,926.90,-1416.20,110.90}},
- {"Market", {787.40,-1416.20,-89.00,1072.60,-1310.20,110.90}},
- {"Market", {952.60,-1310.20,-89.00,1072.60,-1130.80,110.90}},
- {"Market", {1072.60,-1416.20,-89.00,1370.80,-1130.80,110.90}},
- {"Market", {926.90,-1577.50,-89.00,1370.80,-1416.20,110.90}},
- {"Market Station", {787.40,-1410.90,-34.10,866.00,-1310.20,65.80}},
- {"Martin Bridge", {-222.10,293.30,0.00,-122.10,476.40,200.00}},
- {"Missionary Hill", {-2994.40,-811.20,0.00,-2178.60,-430.20,200.00}},
- {"Montgomery", {1119.50,119.50,-3.00,1451.40,493.30,200.00}},
- {"Montgomery", {1451.40,347.40,-6.10,1582.40,420.80,200.00}},
- {"Montgomery Intersection", {1546.60,208.10,0.00,1745.80,347.40,200.00}},
- {"Montgomery Intersection", {1582.40,347.40,0.00,1664.60,401.70,200.00}},
- {"Mulholland", {1414.00,-768.00,-89.00,1667.60,-452.40,110.90}},
- {"Mulholland", {1281.10,-452.40,-89.00,1641.10,-290.90,110.90}},
- {"Mulholland", {1269.10,-768.00,-89.00,1414.00,-452.40,110.90}},
- {"Mulholland", {1357.00,-926.90,-89.00,1463.90,-768.00,110.90}},
- {"Mulholland", {1318.10,-910.10,-89.00,1357.00,-768.00,110.90}},
- {"Mulholland", {1169.10,-910.10,-89.00,1318.10,-768.00,110.90}},
- {"Mulholland", {768.60,-954.60,-89.00,952.60,-860.60,110.90}},
- {"Mulholland", {687.80,-860.60,-89.00,911.80,-768.00,110.90}},
- {"Mulholland", {737.50,-768.00,-89.00,1142.20,-674.80,110.90}},
- {"Mulholland", {1096.40,-910.10,-89.00,1169.10,-768.00,110.90}},
- {"Mulholland", {952.60,-937.10,-89.00,1096.40,-860.60,110.90}},
- {"Mulholland", {911.80,-860.60,-89.00,1096.40,-768.00,110.90}},
- {"Mulholland", {861.00,-674.80,-89.00,1156.50,-600.80,110.90}},
- {"Mulholland Intersection", {1463.90,-1150.80,-89.00,1812.60,-768.00,110.90}},
- {"North Rock", {2285.30,-768.00,0.00,2770.50,-269.70,200.00}},
- {"Ocean Docks", {2373.70,-2697.00,-89.00,2809.20,-2330.40,110.90}},
- {"Ocean Docks", {2201.80,-2418.30,-89.00,2324.00,-2095.00,110.90}},
- {"Ocean Docks", {2324.00,-2302.30,-89.00,2703.50,-2145.10,110.90}},
- {"Ocean Docks", {2089.00,-2394.30,-89.00,2201.80,-2235.80,110.90}},
- {"Ocean Docks", {2201.80,-2730.80,-89.00,2324.00,-2418.30,110.90}},
- {"Ocean Docks", {2703.50,-2302.30,-89.00,2959.30,-2126.90,110.90}},
- {"Ocean Docks", {2324.00,-2145.10,-89.00,2703.50,-2059.20,110.90}},
- {"Ocean Flats", {-2994.40,277.40,-9.10,-2867.80,458.40,200.00}},
- {"Ocean Flats", {-2994.40,-222.50,-0.00,-2593.40,277.40,200.00}},
- {"Ocean Flats", {-2994.40,-430.20,-0.00,-2831.80,-222.50,200.00}},
- {"Octane Springs", {338.60,1228.50,0.00,664.30,1655.00,200.00}},
- {"Old Venturas Strip", {2162.30,2012.10,-89.00,2685.10,2202.70,110.90}},
- {"Palisades", {-2994.40,458.40,-6.10,-2741.00,1339.60,200.00}},
- {"Palomino Creek", {2160.20,-149.00,0.00,2576.90,228.30,200.00}},
- {"Paradiso", {-2741.00,793.40,-6.10,-2533.00,1268.40,200.00}},
- {"Pershing Square", {1440.90,-1722.20,-89.00,1583.50,-1577.50,110.90}},
- {"Pilgrim", {2437.30,1383.20,-89.00,2624.40,1783.20,110.90}},
- {"Pilgrim", {2624.40,1383.20,-89.00,2685.10,1783.20,110.90}},
- {"Pilson Intersection", {1098.30,2243.20,-89.00,1377.30,2507.20,110.90}},
- {"Pirates in Men's Pants", {1817.30,1469.20,-89.00,2027.40,1703.20,110.90}},
- {"Playa del Seville", {2703.50,-2126.90,-89.00,2959.30,-1852.80,110.90}},
- {"Prickle Pine", {1534.50,2583.20,-89.00,1848.40,2863.20,110.90}},
- {"Prickle Pine", {1117.40,2507.20,-89.00,1534.50,2723.20,110.90}},
- {"Prickle Pine", {1848.40,2553.40,-89.00,1938.80,2863.20,110.90}},
- {"Prickle Pine", {1938.80,2624.20,-89.00,2121.40,2861.50,110.90}},
- {"Queens", {-2533.00,458.40,0.00,-2329.30,578.30,200.00}},
- {"Queens", {-2593.40,54.70,0.00,-2411.20,458.40,200.00}},
- {"Queens", {-2411.20,373.50,0.00,-2253.50,458.40,200.00}},
- {"Randolph Industrial Estate", {1558.00,596.30,-89.00,1823.00,823.20,110.90}},
- {"Redsands East", {1817.30,2011.80,-89.00,2106.70,2202.70,110.90}},
- {"Redsands East", {1817.30,2202.70,-89.00,2011.90,2342.80,110.90}},
- {"Redsands East", {1848.40,2342.80,-89.00,2011.90,2478.40,110.90}},
- {"Redsands West", {1236.60,1883.10,-89.00,1777.30,2142.80,110.90}},
- {"Redsands West", {1297.40,2142.80,-89.00,1777.30,2243.20,110.90}},
- {"Redsands West", {1377.30,2243.20,-89.00,1704.50,2433.20,110.90}},
- {"Redsands West", {1704.50,2243.20,-89.00,1777.30,2342.80,110.90}},
- {"Regular Tom", {-405.70,1712.80,-3.00,-276.70,1892.70,200.00}},
- {"Richman", {647.50,-1118.20,-89.00,787.40,-954.60,110.90}},
- {"Richman", {647.50,-954.60,-89.00,768.60,-860.60,110.90}},
- {"Richman", {225.10,-1369.60,-89.00,334.50,-1292.00,110.90}},
- {"Richman", {225.10,-1292.00,-89.00,466.20,-1235.00,110.90}},
- {"Richman", {72.60,-1404.90,-89.00,225.10,-1235.00,110.90}},
- {"Richman", {72.60,-1235.00,-89.00,321.30,-1008.10,110.90}},
- {"Richman", {321.30,-1235.00,-89.00,647.50,-1044.00,110.90}},
- {"Richman", {321.30,-1044.00,-89.00,647.50,-860.60,110.90}},
- {"Richman", {321.30,-860.60,-89.00,687.80,-768.00,110.90}},
- {"Richman", {321.30,-768.00,-89.00,700.70,-674.80,110.90}},
- {"Robada Intersection", {-1119.00,1178.90,-89.00,-862.00,1351.40,110.90}},
- {"Roca Escalante", {2237.40,2202.70,-89.00,2536.40,2542.50,110.90}},
- {"Roca Escalante", {2536.40,2202.70,-89.00,2625.10,2442.50,110.90}},
- {"Rockshore East", {2537.30,676.50,-89.00,2902.30,943.20,110.90}},
- {"Rockshore West", {1997.20,596.30,-89.00,2377.30,823.20,110.90}},
- {"Rockshore West", {2377.30,596.30,-89.00,2537.30,788.80,110.90}},
- {"Rodeo", {72.60,-1684.60,-89.00,225.10,-1544.10,110.90}},
- {"Rodeo", {72.60,-1544.10,-89.00,225.10,-1404.90,110.90}},
- {"Rodeo", {225.10,-1684.60,-89.00,312.80,-1501.90,110.90}},
- {"Rodeo", {225.10,-1501.90,-89.00,334.50,-1369.60,110.90}},
- {"Rodeo", {334.50,-1501.90,-89.00,422.60,-1406.00,110.90}},
- {"Rodeo", {312.80,-1684.60,-89.00,422.60,-1501.90,110.90}},
- {"Rodeo", {422.60,-1684.60,-89.00,558.00,-1570.20,110.90}},
- {"Rodeo", {558.00,-1684.60,-89.00,647.50,-1384.90,110.90}},
- {"Rodeo", {466.20,-1570.20,-89.00,558.00,-1385.00,110.90}},
- {"Rodeo", {422.60,-1570.20,-89.00,466.20,-1406.00,110.90}},
- {"Rodeo", {466.20,-1385.00,-89.00,647.50,-1235.00,110.90}},
- {"Rodeo", {334.50,-1406.00,-89.00,466.20,-1292.00,110.90}},
- {"Royal Casino", {2087.30,1383.20,-89.00,2437.30,1543.20,110.90}},
- {"San Andreas Sound", {2450.30,385.50,-100.00,2759.20,562.30,200.00}},
- {"Santa Flora", {-2741.00,458.40,-7.60,-2533.00,793.40,200.00}},
- {"Santa Maria Beach", {342.60,-2173.20,-89.00,647.70,-1684.60,110.90}},
- {"Santa Maria Beach", {72.60,-2173.20,-89.00,342.60,-1684.60,110.90}},
- {"Shady Cabin", {-1632.80,-2263.40,-3.00,-1601.30,-2231.70,200.00}},
- {"Shady Creeks", {-1820.60,-2643.60,-8.00,-1226.70,-1771.60,200.00}},
- {"Shady Creeks", {-2030.10,-2174.80,-6.10,-1820.60,-1771.60,200.00}},
- {"Sobell Rail Yards", {2749.90,1548.90,-89.00,2923.30,1937.20,110.90}},
- {"Spinybed", {2121.40,2663.10,-89.00,2498.20,2861.50,110.90}},
- {"Starfish Casino", {2437.30,1783.20,-89.00,2685.10,2012.10,110.90}},
- {"Starfish Casino", {2437.30,1858.10,-39.00,2495.00,1970.80,60.90}},
- {"Starfish Casino", {2162.30,1883.20,-89.00,2437.30,2012.10,110.90}},
- {"Temple", {1252.30,-1130.80,-89.00,1378.30,-1026.30,110.90}},
- {"Temple", {1252.30,-1026.30,-89.00,1391.00,-926.90,110.90}},
- {"Temple", {1252.30,-926.90,-89.00,1357.00,-910.10,110.90}},
- {"Temple", {952.60,-1130.80,-89.00,1096.40,-937.10,110.90}},
- {"Temple", {1096.40,-1130.80,-89.00,1252.30,-1026.30,110.90}},
- {"Temple", {1096.40,-1026.30,-89.00,1252.30,-910.10,110.90}},
- {"The Camel's Toe", {2087.30,1203.20,-89.00,2640.40,1383.20,110.90}},
- {"The Clown's Pocket", {2162.30,1783.20,-89.00,2437.30,1883.20,110.90}},
- {"The Emerald Isle", {2011.90,2202.70,-89.00,2237.40,2508.20,110.90}},
- {"The Farm", {-1209.60,-1317.10,114.90,-908.10,-787.30,251.90}},
- {"The Four Dragons Casino", {1817.30,863.20,-89.00,2027.30,1083.20,110.90}},
- {"The High Roller", {1817.30,1283.20,-89.00,2027.30,1469.20,110.90}},
- {"The Mako Span", {1664.60,401.70,0.00,1785.10,567.20,200.00}},
- {"The Panopticon", {-947.90,-304.30,-1.10,-319.60,327.00,200.00}},
- {"The Pink Swan", {1817.30,1083.20,-89.00,2027.30,1283.20,110.90}},
- {"The Sherman Dam", {-968.70,1929.40,-3.00,-481.10,2155.20,200.00}},
- {"The Strip", {2027.40,863.20,-89.00,2087.30,1703.20,110.90}},
- {"The Strip", {2106.70,1863.20,-89.00,2162.30,2202.70,110.90}},
- {"The Strip", {2027.40,1783.20,-89.00,2162.30,1863.20,110.90}},
- {"The Strip", {2027.40,1703.20,-89.00,2137.40,1783.20,110.90}},
- {"The Visage", {1817.30,1863.20,-89.00,2106.70,2011.80,110.90}},
- {"The Visage", {1817.30,1703.20,-89.00,2027.40,1863.20,110.90}},
- {"Unity Station", {1692.60,-1971.80,-20.40,1812.60,-1932.80,79.50}},
- {"Valle Ocultado", {-936.60,2611.40,2.00,-715.90,2847.90,200.00}},
- {"Verdant Bluffs", {930.20,-2488.40,-89.00,1249.60,-2006.70,110.90}},
- {"Verdant Bluffs", {1073.20,-2006.70,-89.00,1249.60,-1842.20,110.90}},
- {"Verdant Bluffs", {1249.60,-2179.20,-89.00,1692.60,-1842.20,110.90}},
- {"Verdant Meadows", {37.00,2337.10,-3.00,435.90,2677.90,200.00}},
- {"Verona Beach", {647.70,-2173.20,-89.00,930.20,-1804.20,110.90}},
- {"Verona Beach", {930.20,-2006.70,-89.00,1073.20,-1804.20,110.90}},
- {"Verona Beach", {851.40,-1804.20,-89.00,1046.10,-1577.50,110.90}},
- {"Verona Beach", {1161.50,-1722.20,-89.00,1323.90,-1577.50,110.90}},
- {"Verona Beach", {1046.10,-1722.20,-89.00,1161.50,-1577.50,110.90}},
- {"Vinewood", {787.40,-1310.20,-89.00,952.60,-1130.80,110.90}},
- {"Vinewood", {787.40,-1130.80,-89.00,952.60,-954.60,110.90}},
- {"Vinewood", {647.50,-1227.20,-89.00,787.40,-1118.20,110.90}},
- {"Vinewood", {647.70,-1416.20,-89.00,787.40,-1227.20,110.90}},
- {"Whitewood Estates", {883.30,1726.20,-89.00,1098.30,2507.20,110.90}},
- {"Whitewood Estates", {1098.30,1726.20,-89.00,1197.30,2243.20,110.90}},
- {"Willowfield", {1970.60,-2179.20,-89.00,2089.00,-1852.80,110.90}},
- {"Willowfield", {2089.00,-2235.80,-89.00,2201.80,-1989.90,110.90}},
- {"Willowfield", {2089.00,-1989.90,-89.00,2324.00,-1852.80,110.90}},
- {"Willowfield", {2201.80,-2095.00,-89.00,2324.00,-1989.90,110.90}},
- {"Willowfield", {2541.70,-1941.40,-89.00,2703.50,-1852.80,110.90}},
- {"Willowfield", {2324.00,-2059.20,-89.00,2541.70,-1852.80,110.90}},
- {"Willowfield", {2541.70,-2059.20,-89.00,2703.50,-1941.40,110.90}},
- {"Yellow Bell Station", {1377.40,2600.40,-21.90,1492.40,2687.30,78.00}},
- // Main Zones
- {"Los Santos", {44.60,-2892.90,-242.90,2997.00,-768.00,900.00}},
- {"Las Venturas", {869.40,596.30,-242.90,2997.00,2993.80,900.00}},
- {"Bone County", {-480.50,596.30,-242.90,869.40,2993.80,900.00}},
- {"Tierra Robada", {-2997.40,1659.60,-242.90,-480.50,2993.80,900.00}},
- {"Tierra Robada", {-1213.90,596.30,-242.90,-480.50,1659.60,900.00}},
- {"San Fierro", {-2997.40,-1115.50,-242.90,-1213.90,1659.60,900.00}},
- {"Red County", {-1213.90,-768.00,-242.90,2997.00,596.30,900.00}},
- {"Flint County", {-1213.90,-2892.90,-242.90,44.60,-768.00,900.00}},
- {"Whetstone", {-2997.40,-2892.90,-242.90,-1213.90,-1115.50,900.00}}
- };
- new AdmWarmToggle[MAX_PLAYERS];
- new TogglePMs[MAX_PLAYERS];
- new gsf;
- new sbf;
- new fyb;
- new vla;
- new vla2;
- new JB;
- new jb2;
- new jb3;
- new vagos;
- new vagos2;
- new tdb;
- new tdf;
- public OnGameModeInit()
- {
- // Turfs
- gsf = GangZoneCreate(2223.813, -1835.824, 2531.842, -1634.489);
- sbf = GangZoneCreate(2410.151, -2064.793, 2798.041, -1887.144);
- fyb = GangZoneCreate(1923.388, -1768.712, 2185.784, -1547.639);
- vla = GangZoneCreate(1809.303, -2175.33, 1961.417, -1973.995);
- vla2 = GangZoneCreate(1676.204, -2147.695, 1820.712, -2104.27);
- JB = GangZoneCreate(2064.094, -1401.572, 2162.967, -1125.23);
- jb2 = GangZoneCreate(2162.967, -1298.931, 2258.038, -1227.872);
- jb3 = GangZoneCreate(2136.347, -1496.318, 2200.996, -1405.52);
- vagos = GangZoneCreate(2368.32, -1448.945, 2497.617, -1267.349);
- vagos2 = GangZoneCreate(2436.771, -1255.506, 2702.97, -1192.342);
- tdb = GangZoneCreate(976.4823, -1287.088, 1238.878, -1160.76);
- TDF = GangZoneCreate(1117.187, -1144.969, 1352.963, -1046.276);
- //Profiler_Start();
- SetGameModeText(REVISION);
- SendRconCommand("mapname San Andreas");
- SendRconCommand("hostname [0.3.DL] San Andreas '92 Singleplayer Roleplay");
- if (!MySQLConnection()) return SendRconCommand("exit");
- //SAMPNode_CallEvent("Discord_SendMessage", "709702074509688922", "Hello. I am now online!");
- mysql_log(ALL);
- //g_SQL:CreateTables();
- phone_OnGameModeInit();
-
- //Disabling single player entities:
- ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
- SetNameTagDrawDistance(20.0);
- EnableStuntBonusForAll(0);
- DisableInteriorEnterExits();
- ManualVehicleEngineAndLights();
-
- //Configure world:
- SetWeather(2);
-
- new hour, seconds, minute;
-
- gettime(hour, seconds, minute);
- SetWorldTime(hour);
- //Set all package types to -1
- for (new i = 0; i < MAX_PROPERTY; i++) {
- for (new j = 0; j < 10; j++) {
- HousePackages[i][j][packageType] = -1;
- }
- }
-
- //Loading systems:
- mysql_tquery(m_Handle, "SELECT * FROM properties ORDER BY id ASC", "SQL_LoadProperties");
- mysql_tquery(m_Handle, "SELECT * FROM factions ORDER BY id ASC", "SQL_LoadFactions");
- mysql_tquery(m_Handle, "SELECT * FROM businesses ORDER BY id ASC", "SQL_LoadBusinesses");
- mysql_tquery(m_Handle, "SELECT * FROM paynspray ORDER BY id ASC", "SQL_LoadPaynSpray");
- mysql_tquery(m_Handle, "SELECT * FROM tolls ORDER BY id ASC", "SQL_LoadTolls");
- mysql_tquery(m_Handle, "SELECT * FROM rentals ORDER BY id ASC", "SQL_LoadRentals");
- mysql_tquery(m_Handle, "SELECT * FROM factioncars ORDER BY id ASC", "SQL_LoadFactionCars");
- mysql_tquery(m_Handle, "SELECT * FROM doors ORDER BY id ASC", "SQL_LoadDoors");
- mysql_tquery(m_Handle, "SELECT * FROM property_garages ORDER BY id ASC", "SQL_LoadPropertyGarages");
- mysql_tquery(m_Handle, "SELECT * FROM xmr_data ORDER BY id ASC", "SQL_LoadXMRData");
- mysql_tquery(m_Handle, "SELECT * FROM xmr_sub ORDER BY id ASC", "SQL_LoadXMRCategories");
- mysql_tquery(m_Handle, "SELECT * FROM objects ORDER BY id ASC", "SQL_LoadObjects");
- mysql_tquery(m_Handle, "SELECT * FROM entrances ORDER BY InteriorDBID ASC", "SQL_LoadEntrances");
-
- //Mapping:
- LoadPrisonMapping();
- LoadPrisonInterior();
- LoadHospital();
- LoadApartmentInterior();
- LoadPNSGates();
- LoadModGates();
- LoadMallBridge();
- //LoadTollBooths();
- LoadMechanicDevin();
- LoadPD();
- LoadBank1();
- LoadBank2();
- LoadComplex1();
- LoadComplex2();
- LoadComplex3();
- LoadStudioApartments();
- LoadMafiaBar();
- LoadCustomHouse1();
- LoadCustomHouse2();
- LoadRestaurant();
- LoadCustomApartment();
- LoadGhettoBar();
- LoadCustomClub();
- LoadSmallApartment();
- LoadModernHouse1();
- LoadModernHouse2();
- LoadGovernmentInterior();
- LoadPoliceDepartment1();
- LoadPoliceDepartment2();
- LoadSmallHouse();
- LoadPoliceStations();
-
- //Delfino Willowfield Request
- CreateDynamicObject(3407, 2461.56226, -1999.53760, 12.52557, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(947, 2470.62500, -1990.00000, 14.44000, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1368, 2467.87305, -1995.82227, 13.37500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2676, 2475.48145, -1984.19019, 12.66050, 0.00000, 0.00000, -45.00000);
- CreateDynamicObject(1265, 2475.82275, -1984.68298, 12.95000, 0.00000, 0.00000, -20.00000);
-
- //PDToll[0] = CreateDynamicObject(968, 1544.692016, -1630.910156, 13.144363, 0.0, 90.0, 90.0);
-
- WEAPON_ANTI_CHEAT = 1;
- AMMO_ANTI_CHEAT = 1;
- //Timers:
- SetTimer("FunctionPlayers", 1000, true);
- SetTimer("FunctionPaychecks", 1000, true);
- SetTimer("OnPlayerNearPickup", 2000, true);
- SetTimer("OnPlayerNearBusiness", 1000, true);
- SetTimer("OnPlayerNearPNS", 1000, true);
- SetTimer("OnPlayerNearTolls", 2500, true);
- SetTimer("OnVehicleUpdate", 1000, true);
- SetTimer("RefreshPlayer", 3000, true);
- SetTimer("LoadFurnitures", 10000, false);
- SetTimer("Fuel", 1000, true);
- SetTimer("WeaponCheats", 1000, true);
- SetTimer("AmmoCheats", 1000, true);
- SetTimer("SpeedCheats", 1000, true);
-
- //
- ClearWeaponCrateVars();
-
- //Areas:
- ImpoundLotArea = CreateDynamicCircle(-1098.6909, -973.7175, 140.0, 0, 0);
- JailCenterArea = CreateDynamicCircle(2583.2087, -1510.8986, 500.0);
- HospitalArea = CreateDynamicCircle(334.7980, 174.9129, 150.0, 59386, 3);
- //DMV:
- dmvCar1 = AddStaticVehicle(585, 1271.5765,-1549.2815,13.5656,272.7345, 1, 1);
- dmvCar2 = AddStaticVehicle(585, 1271.5765,-1544.2815,13.5644,272.7345, 1, 1);
- dmvCar3 = AddStaticVehicle(585, 1271.5765,-1539.2815,13.5637,272.7345, 1, 1);
- dmvCar4 = AddStaticVehicle(585, 1271.5765,-1534.2815,13.5637,272.7345, 1, 1);
- SetVehicleNumberPlate(dmvCar1, "DMV");
- SetVehicleNumberPlate(dmvCar2, "DMV");
- SetVehicleNumberPlate(dmvCar3, "DMV");
- SetVehicleNumberPlate(dmvCar4, "DMV");
-
- TruckerVehicles[0] = AddStaticVehicle(543,1521.6704,-2360.8064,13.3706,179.5936,0,0); // Sadler 1
- TruckerVehicles[1] = AddStaticVehicle(543,1512.1055,-2360.9468,13.3917,179.2175,0,0); // Sadler 2
- TruckerVehicles[2] = AddStaticVehicle(543,1508.8353,-2360.8936,13.2775,179.2003,0,0); // Sadler 3
- TruckerVehicles[3] = AddStaticVehicle(543,1505.3467,-2361.0579,13.2668,180.9635,0,0); // Sadler 4
- TruckerVehicles[4] = AddStaticVehicle(515,-569.8888,-487.3821,26.5410,179.8459,0,0); // Roadtrain 1
- TruckerVehicles[5] = AddStaticVehicle(515,-564.8949,-487.1429,26.5371,180.0024,0,0); // Roadtrain 2
- TruckerVehicles[6] = AddStaticVehicle(515,-559.9413,-487.2663,26.5414,180.0854,0,0); // Roadtrain 3
- TruckerVehicles[7] = AddStaticVehicle(543,1385.0176,-2314.2576,13.3684,359.1054,0,0); //Sadler 5
- TruckerVehicles[8] = AddStaticVehicle(543,1388.4532,-2314.4414,13.3633,359.3958,0,0); //Sadler 6
- TruckerVehicles[9] = AddStaticVehicle(543,1391.6304,-2314.4216,13.3685,359.4192,0,0); //Sadler 7
- TruckerVehicles[10] = AddStaticVehicle(515,-540.0516,-487.0027,26.5441,180.1929,0,0); //Roadtrain 4
- TruckerVehicles[11] = AddStaticVehicle(515,-535.0956,-487.5607,26.5388,179.9805,0,0); //Roadtrain 5
- TruckerVehicles[12] = AddStaticVehicle(515,-530.1603,-487.2915,26.5435,180.1380,0,0); //Roadtrain 6
- for(new i = 0; i < sizeof TruckerVehicles; i++)
- SetVehicleNumberPlate(TruckerVehicles[i], "TRUCKER");
-
- // Graffiti Creates
- for (new i = 0; i < sizeof(g_aGraffitiData); i++)
- { //18666
- GraffitiData[i][graffitiObject] = CreateDynamicObject(18666, g_aGraffitiData[i][graffitiPosX], g_aGraffitiData[i][graffitiPosY], g_aGraffitiData[i][graffitiPosZ], g_aGraffitiData[i][graffitiRotX], g_aGraffitiData[i][graffitiRotY], g_aGraffitiData[i][graffitiRotZ], -1, 0, -1, 5000.0);
- }
-
- //Textlabel
- CreateDynamic3DTextLabel("{FFFF00}/buy\n{FFFFFF}to purchase clothing!", COLOR_WHITE, -2471.7783, 756.2209, 35.1719, 15.0);
- //CreateDynamic3DTextLabel("{FFFF00}/changephone\n{FFFFFF}to purchase a new phone color!", COLOR_WHITE, 1154.4170, -1440.2319, 15.7969, 15.0);
- CreateDynamic3DTextLabel("{F81414}Trucker job!\n{FFFFFF}/truckerjob", COLOR_WHITE, -516.1585, -539.9711, 25.5234, 25.0);
- CreateDynamic3DTextLabel("{F81414}Trucker trailers!\n{FFFFFF}/usetrailer", COLOR_WHITE, 96.6237, -290.1677, 1.5781, 25.0);
- CreateDynamic3DTextLabel("/lift", COLOR_YELLOW, 1566.1305, -2155.4905, 13.5532, 5.0);
- CreateDynamic3DTextLabel("{F81414}Mechanic Job!\n{FFFFFF}/mechanicjob", COLOR_WHITE, 83.5813, -149.3909, 2.5845, 25.0);
- //Pickups
- CreateDynamicPickup(1581, 1, BLACK_MARKET_X, BLACK_MARKET_Y, BLACK_MARKET_Z, 0, 0, -1, 20.0);
- CreateDynamicPickup(1239, 1, -516.1585, -539.9711, 25.5234, 0, 0, -1, 20.0);
- CreateDynamicPickup(1239, 1, 83.5813, -149.3909, 2.5845, 0, 0, -1, 20.0);
- //Garage Small Interior
- CreateDynamicObject(1980, 608.75781, -78.85594, 999.19531, 0.00000, 0.00000, 0.00000, -1, 2);
- CreateDynamicObject(1980, 608.73578, -78.83830, 996.07233, 0.00000, 0.00000, 0.00000, -1, 2);
- CreateDynamicObject(1980, 608.75940, -71.52995, 999.19531, 0.00000, 0.00000, 0.00000, -1, 2);
- CreateDynamicObject(1980, 608.75513, -71.49020, 996.07233, 0.00000, 0.00000, 0.00000, -1, 2);
- //Textdraws below
- LoadWarehouseMenu_1();
-
- CrateInventory[0] = TextDrawCreate(552.333190, 109.940765, "box");
- TextDrawLetterSize(CrateInventory[0], 0.000000, 24.266662);
- TextDrawTextSize(CrateInventory[0], 640.000000, 0.000000);
- TextDrawAlignment(CrateInventory[0], 1);
- TextDrawColor(CrateInventory[0], -1);
- TextDrawUseBox(CrateInventory[0], 1);
- TextDrawBoxColor(CrateInventory[0], 122);
- TextDrawSetShadow(CrateInventory[0], 0);
- TextDrawSetOutline(CrateInventory[0], 0);
- TextDrawBackgroundColor(CrateInventory[0], 255);
- TextDrawFont(CrateInventory[0], 1);
- TextDrawSetProportional(CrateInventory[0], 1);
- TextDrawSetShadow(CrateInventory[0], 0);
- CrateInventory[1] = TextDrawCreate(549.999877, 104.548187, "Crate");
- TextDrawLetterSize(CrateInventory[1], 0.400000, 1.600000);
- TextDrawAlignment(CrateInventory[1], 1);
- TextDrawColor(CrateInventory[1], -1);
- TextDrawSetShadow(CrateInventory[1], 0);
- TextDrawSetOutline(CrateInventory[1], 1);
- TextDrawBackgroundColor(CrateInventory[1], 255);
- TextDrawFont(CrateInventory[1], 0);
- TextDrawSetProportional(CrateInventory[1], 1);
- TextDrawSetShadow(CrateInventory[1], 0);
-
- //Meal Menu
- TD_mealMenu[0] = TextDrawCreate(163.666702, 99.985115, "box");
- TextDrawLetterSize(TD_mealMenu[0], 0.000000, 20.833322);
- TextDrawTextSize(TD_mealMenu[0], 487.000000, 0.000000);
- TextDrawAlignment(TD_mealMenu[0], 1);
- TextDrawColor(TD_mealMenu[0], -1);
- TextDrawUseBox(TD_mealMenu[0], 1);
- TextDrawBoxColor(TD_mealMenu[0], 255);
- TextDrawSetShadow(TD_mealMenu[0], 0);
- TextDrawSetOutline(TD_mealMenu[0], 0);
- TextDrawBackgroundColor(TD_mealMenu[0], 255);
- TextDrawFont(TD_mealMenu[0], 1);
- TextDrawSetProportional(TD_mealMenu[0], 1);
- TextDrawSetShadow(TD_mealMenu[0], 0);
- TD_mealMenu[1] = TextDrawCreate(171.366378, 103.629737, "Restaurant_Name");
- TextDrawLetterSize(TD_mealMenu[1], 0.414666, 1.761777);
- TextDrawAlignment(TD_mealMenu[1], 1);
- TextDrawColor(TD_mealMenu[1], -1);
- TextDrawSetShadow(TD_mealMenu[1], 0);
- TextDrawSetOutline(TD_mealMenu[1], 0);
- TextDrawBackgroundColor(TD_mealMenu[1], 255);
- TextDrawFont(TD_mealMenu[1], 0);
- TextDrawSetProportional(TD_mealMenu[1], 1);
- TextDrawSetShadow(TD_mealMenu[1], 0);
- TD_mealMenu[2] = TextDrawCreate(171.899795, 119.429496, "This_restaurant_offers_multiple_meals.");
- TextDrawLetterSize(TD_mealMenu[2], 0.209666, 1.218368);
- TextDrawAlignment(TD_mealMenu[2], 1);
- TextDrawColor(TD_mealMenu[2], -1);
- TextDrawSetShadow(TD_mealMenu[2], 0);
- TextDrawSetOutline(TD_mealMenu[2], 0);
- TextDrawBackgroundColor(TD_mealMenu[2], 255);
- TextDrawFont(TD_mealMenu[2], 1);
- TextDrawSetProportional(TD_mealMenu[2], 1);
- TextDrawSetShadow(TD_mealMenu[2], 0);
- TD_mealMenu[3] = TextDrawCreate(171.966491, 128.829421, "Choose_one_by_clicking_on_it.");
- TextDrawLetterSize(TD_mealMenu[3], 0.209666, 1.218368);
- TextDrawAlignment(TD_mealMenu[3], 1);
- TextDrawColor(TD_mealMenu[3], -1);
- TextDrawSetShadow(TD_mealMenu[3], 0);
- TextDrawSetOutline(TD_mealMenu[3], 0);
- TextDrawBackgroundColor(TD_mealMenu[3], 255);
- TextDrawFont(TD_mealMenu[3], 1);
- TextDrawSetProportional(TD_mealMenu[3], 1);
- TextDrawSetShadow(TD_mealMenu[3], 0);
- TD_mealMenu[4] = TextDrawCreate(168.466598, 122.718551, "");
- TextDrawLetterSize(TD_mealMenu[4], 0.000000, 0.000000);
- TextDrawTextSize(TD_mealMenu[4], 90.000000, 90.000000);
- TextDrawAlignment(TD_mealMenu[4], 1);
- TextDrawColor(TD_mealMenu[4], -1);
- TextDrawSetShadow(TD_mealMenu[4], 0);
- TextDrawSetOutline(TD_mealMenu[4], 0);
- TextDrawBackgroundColor(TD_mealMenu[4], 255);
- TextDrawFont(TD_mealMenu[4], 5);
- TextDrawSetProportional(TD_mealMenu[4], 0);
- TextDrawSetShadow(TD_mealMenu[4], 0);
- TextDrawSetSelectable(TD_mealMenu[4], true);
- TextDrawSetPreviewModel(TD_mealMenu[4], 2220);
- TextDrawSetPreviewRot(TD_mealMenu[4], -22.000000, -1.000000, 0.000000, 1.000000);
- TD_mealMenu[5] = TextDrawCreate(172.466522, 217.434829, "Large_Pizza_Meal");
- TextDrawLetterSize(TD_mealMenu[5], 0.211000, 1.243257);
- TextDrawAlignment(TD_mealMenu[5], 1);
- TextDrawColor(TD_mealMenu[5], -1);
- TextDrawSetShadow(TD_mealMenu[5], 0);
- TextDrawSetOutline(TD_mealMenu[5], 0);
- TextDrawBackgroundColor(TD_mealMenu[5], 255);
- TextDrawFont(TD_mealMenu[5], 1);
- TextDrawSetProportional(TD_mealMenu[5], 1);
- TextDrawSetShadow(TD_mealMenu[5], 0);
- TD_mealMenu[6] = TextDrawCreate(171.766479, 228.165054, "Full_Health");
- TextDrawLetterSize(TD_mealMenu[6], 0.211000, 1.243257);
- TextDrawAlignment(TD_mealMenu[6], 1);
- TextDrawColor(TD_mealMenu[6], -2147483393);
- TextDrawSetShadow(TD_mealMenu[6], 0);
- TextDrawSetOutline(TD_mealMenu[6], 0);
- TextDrawBackgroundColor(TD_mealMenu[6], 255);
- TextDrawFont(TD_mealMenu[6], 1);
- TextDrawSetProportional(TD_mealMenu[6], 1);
- TextDrawSetShadow(TD_mealMenu[6], 0);
- TD_mealMenu[7] = TextDrawCreate(172.533142, 237.721282, "Price:_$300");
- TextDrawLetterSize(TD_mealMenu[7], 0.211000, 1.243257);
- TextDrawAlignment(TD_mealMenu[7], 1);
- TextDrawColor(TD_mealMenu[7], -1920073729);
- TextDrawSetShadow(TD_mealMenu[7], 0);
- TextDrawSetOutline(TD_mealMenu[7], 0);
- TextDrawBackgroundColor(TD_mealMenu[7], 255);
- TextDrawFont(TD_mealMenu[7], 1);
- TextDrawSetProportional(TD_mealMenu[7], 1);
- TextDrawSetShadow(TD_mealMenu[7], 0);
- TD_mealMenu[8] = TextDrawCreate(258.072052, 124.548164, "");
- TextDrawLetterSize(TD_mealMenu[8], 0.000000, 0.000000);
- TextDrawTextSize(TD_mealMenu[8], 90.000000, 90.000000);
- TextDrawAlignment(TD_mealMenu[8], 1);
- TextDrawColor(TD_mealMenu[8], -1);
- TextDrawSetShadow(TD_mealMenu[8], 0);
- TextDrawSetOutline(TD_mealMenu[8], 0);
- TextDrawBackgroundColor(TD_mealMenu[8], 255);
- TextDrawFont(TD_mealMenu[8], 5);
- TextDrawSetProportional(TD_mealMenu[8], 0);
- TextDrawSetShadow(TD_mealMenu[8], 0);
- TextDrawSetSelectable(TD_mealMenu[8], true);
- TextDrawSetPreviewModel(TD_mealMenu[8], 2218);
- TextDrawSetPreviewRot(TD_mealMenu[8], -29.000000, 14.000000, -2.000000, 1.000000);
- TD_mealMenu[9] = TextDrawCreate(260.871917, 217.434829, "Small_Pizza_Meal");
- TextDrawLetterSize(TD_mealMenu[9], 0.211000, 1.243257);
- TextDrawAlignment(TD_mealMenu[9], 1);
- TextDrawColor(TD_mealMenu[9], -1);
- TextDrawSetShadow(TD_mealMenu[9], 0);
- TextDrawSetOutline(TD_mealMenu[9], 0);
- TextDrawBackgroundColor(TD_mealMenu[9], 255);
- TextDrawFont(TD_mealMenu[9], 1);
- TextDrawSetProportional(TD_mealMenu[9], 1);
- TextDrawSetShadow(TD_mealMenu[9], 0);
- TD_mealMenu[10] = TextDrawCreate(260.571899, 228.165054, "Full_Health");
- TextDrawLetterSize(TD_mealMenu[10], 0.211000, 1.243257);
- TextDrawAlignment(TD_mealMenu[10], 1);
- TextDrawColor(TD_mealMenu[10], -2147483393);
- TextDrawSetShadow(TD_mealMenu[10], 0);
- TextDrawSetOutline(TD_mealMenu[10], 0);
- TextDrawBackgroundColor(TD_mealMenu[10], 255);
- TextDrawFont(TD_mealMenu[10], 1);
- TextDrawSetProportional(TD_mealMenu[10], 1);
- TextDrawSetShadow(TD_mealMenu[10], 0);
- TD_mealMenu[11] = TextDrawCreate(261.238555, 237.721282, "Price:_$150");
- TextDrawLetterSize(TD_mealMenu[11], 0.211000, 1.243257);
- TextDrawAlignment(TD_mealMenu[11], 1);
- TextDrawColor(TD_mealMenu[11], -1920073729);
- TextDrawSetShadow(TD_mealMenu[11], 0);
- TextDrawSetOutline(TD_mealMenu[11], 0);
- TextDrawBackgroundColor(TD_mealMenu[11], 255);
- TextDrawFont(TD_mealMenu[11], 1);
- TextDrawSetProportional(TD_mealMenu[11], 1);
- TextDrawSetShadow(TD_mealMenu[11], 0);
- TD_mealMenu[12] = TextDrawCreate(336.176818, 138.933990, "");
- TextDrawLetterSize(TD_mealMenu[12], 0.000000, 0.000000);
- TextDrawTextSize(TD_mealMenu[12], 90.000000, 90.000000);
- TextDrawAlignment(TD_mealMenu[12], 1);
- TextDrawColor(TD_mealMenu[12], -1);
- TextDrawSetShadow(TD_mealMenu[12], 0);
- TextDrawSetOutline(TD_mealMenu[12], 0);
- TextDrawBackgroundColor(TD_mealMenu[12], 255);
- TextDrawFont(TD_mealMenu[12], 5);
- TextDrawSetProportional(TD_mealMenu[12], 0);
- TextDrawSetShadow(TD_mealMenu[12], 0);
- TextDrawSetSelectable(TD_mealMenu[12], true);
- TextDrawSetPreviewModel(TD_mealMenu[12], 2768);
- TextDrawSetPreviewRot(TD_mealMenu[12], -29.000000, 14.000000, -2.000000, 1.037539);
- TD_mealMenu[13] = TextDrawCreate(350.077362, 217.434829, "Spicy_Chicken_Sandwich");
- TextDrawLetterSize(TD_mealMenu[13], 0.211000, 1.243257);
- TextDrawAlignment(TD_mealMenu[13], 1);
- TextDrawColor(TD_mealMenu[13], -1);
- TextDrawSetShadow(TD_mealMenu[13], 0);
- TextDrawSetOutline(TD_mealMenu[13], 0);
- TextDrawBackgroundColor(TD_mealMenu[13], 255);
- TextDrawFont(TD_mealMenu[13], 1);
- TextDrawSetProportional(TD_mealMenu[13], 1);
- TextDrawSetShadow(TD_mealMenu[13], 0);
- TD_mealMenu[14] = TextDrawCreate(349.577331, 228.265060, "Full_Health");
- TextDrawLetterSize(TD_mealMenu[14], 0.211000, 1.243257);
- TextDrawAlignment(TD_mealMenu[14], 1);
- TextDrawColor(TD_mealMenu[14], -2147483393);
- TextDrawSetShadow(TD_mealMenu[14], 0);
- TextDrawSetOutline(TD_mealMenu[14], 0);
- TextDrawBackgroundColor(TD_mealMenu[14], 255);
- TextDrawFont(TD_mealMenu[14], 1);
- TextDrawSetProportional(TD_mealMenu[14], 1);
- TextDrawSetShadow(TD_mealMenu[14], 0);
- TD_mealMenu[15] = TextDrawCreate(350.544006, 237.721282, "Price:_$100");
- TextDrawLetterSize(TD_mealMenu[15], 0.211000, 1.243257);
- TextDrawAlignment(TD_mealMenu[15], 1);
- TextDrawColor(TD_mealMenu[15], -1920073729);
- TextDrawSetShadow(TD_mealMenu[15], 0);
- TextDrawSetOutline(TD_mealMenu[15], 0);
- TextDrawBackgroundColor(TD_mealMenu[15], 255);
- TextDrawFont(TD_mealMenu[15], 1);
- TextDrawSetProportional(TD_mealMenu[15], 1);
- TextDrawSetShadow(TD_mealMenu[15], 0);
- TD_mealMenu[16] = TextDrawCreate(473.333435, 102.888885, "x");
- TextDrawLetterSize(TD_mealMenu[16], 0.288333, 0.857481);
- TextDrawAlignment(TD_mealMenu[16], 1);
- TextDrawColor(TD_mealMenu[16], -1);
- TextDrawSetShadow(TD_mealMenu[16], 0);
- TextDrawSetOutline(TD_mealMenu[16], 0);
- TextDrawBackgroundColor(TD_mealMenu[16], 255);
- TextDrawFont(TD_mealMenu[16], 2);
- TextDrawSetProportional(TD_mealMenu[16], 1);
- TextDrawSetShadow(TD_mealMenu[16], 0);
- TextDrawSetSelectable(TD_mealMenu[16], true);
-
- blindfoldTextdraw = TextDrawCreate(0.999984, 0.429619, "box");
- TextDrawLetterSize(blindfoldTextdraw, 0.000000, 49.499942);
- TextDrawTextSize(blindfoldTextdraw, 664.000000, 0.000000);
- TextDrawAlignment(blindfoldTextdraw, 1);
- TextDrawColor(blindfoldTextdraw, -1);
- TextDrawUseBox(blindfoldTextdraw, 1);
- TextDrawBoxColor(blindfoldTextdraw, 255);
- TextDrawSetShadow(blindfoldTextdraw, 0);
- TextDrawSetOutline(blindfoldTextdraw, 0);
- TextDrawBackgroundColor(blindfoldTextdraw, 255);
- TextDrawFont(blindfoldTextdraw, 1);
- TextDrawSetProportional(blindfoldTextdraw, 1);
- TextDrawSetShadow(blindfoldTextdraw, 0);
- furnitureadd_TD[0] = TextDrawCreate(70.333335, 309.881439, "HOLD_''");
- TextDrawLetterSize(furnitureadd_TD[0], 0.300000, 1.205926);
- TextDrawAlignment(furnitureadd_TD[0], 1);
- TextDrawColor(furnitureadd_TD[0], -1);
- TextDrawSetShadow(furnitureadd_TD[0], 0);
- TextDrawSetOutline(furnitureadd_TD[0], 1);
- TextDrawBackgroundColor(furnitureadd_TD[0], 255);
- TextDrawFont(furnitureadd_TD[0], 2);
- TextDrawSetProportional(furnitureadd_TD[0], 1);
- TextDrawSetShadow(furnitureadd_TD[0], 0);
- furnitureadd_TD[1] = TextDrawCreate(116.832611, 309.551818, "SPACe_");
- TextDrawLetterSize(furnitureadd_TD[1], 0.300000, 1.205926);
- TextDrawAlignment(furnitureadd_TD[1], 1);
- TextDrawColor(furnitureadd_TD[1], -457153537);
- TextDrawSetShadow(furnitureadd_TD[1], 0);
- TextDrawSetOutline(furnitureadd_TD[1], 1);
- TextDrawBackgroundColor(furnitureadd_TD[1], 255);
- TextDrawFont(furnitureadd_TD[1], 2);
- TextDrawSetProportional(furnitureadd_TD[1], 1);
- TextDrawSetShadow(furnitureadd_TD[1], 0);
- furnitureadd_TD[2] = TextDrawCreate(159.834381, 309.681396, "''_AND_PRESS_YOUR_''");
- TextDrawLetterSize(furnitureadd_TD[2], 0.300000, 1.205926);
- TextDrawAlignment(furnitureadd_TD[2], 1);
- TextDrawColor(furnitureadd_TD[2], -1);
- TextDrawSetShadow(furnitureadd_TD[2], 0);
- TextDrawSetOutline(furnitureadd_TD[2], 1);
- TextDrawBackgroundColor(furnitureadd_TD[2], 255);
- TextDrawFont(furnitureadd_TD[2], 2);
- TextDrawSetProportional(furnitureadd_TD[2], 1);
- TextDrawSetShadow(furnitureadd_TD[2], 0);
- furnitureadd_TD[3] = TextDrawCreate(289.542297, 309.551818, "lmb");
- TextDrawLetterSize(furnitureadd_TD[3], 0.300000, 1.205926);
- TextDrawAlignment(furnitureadd_TD[3], 1);
- TextDrawColor(furnitureadd_TD[3], -457153537);
- TextDrawSetShadow(furnitureadd_TD[3], 0);
- TextDrawSetOutline(furnitureadd_TD[3], 1);
- TextDrawBackgroundColor(furnitureadd_TD[3], 255);
- TextDrawFont(furnitureadd_TD[3], 2);
- TextDrawSetProportional(furnitureadd_TD[3], 1);
- TextDrawSetShadow(furnitureadd_TD[3], 0);
- furnitureadd_TD[4] = TextDrawCreate(317.544006, 309.551818, "''_TO_MOVE_YOUR_FURNITUre_around.");
- TextDrawLetterSize(furnitureadd_TD[4], 0.300000, 1.205926);
- TextDrawAlignment(furnitureadd_TD[4], 1);
- TextDrawColor(furnitureadd_TD[4], -1);
- TextDrawSetShadow(furnitureadd_TD[4], 0);
- TextDrawSetOutline(furnitureadd_TD[4], 1);
- TextDrawBackgroundColor(furnitureadd_TD[4], 255);
- TextDrawFont(furnitureadd_TD[4], 2);
- TextDrawSetProportional(furnitureadd_TD[4], 1);
- TextDrawSetShadow(furnitureadd_TD[4], 0);
- furnitureadd_TD[5] = TextDrawCreate(70.333335, 321.282135, "press_your_''_");
- TextDrawLetterSize(furnitureadd_TD[5], 0.300000, 1.205926);
- TextDrawAlignment(furnitureadd_TD[5], 1);
- TextDrawColor(furnitureadd_TD[5], -1);
- TextDrawSetShadow(furnitureadd_TD[5], 0);
- TextDrawSetOutline(furnitureadd_TD[5], 1);
- TextDrawBackgroundColor(furnitureadd_TD[5], 255);
- TextDrawFont(furnitureadd_TD[5], 2);
- TextDrawSetProportional(furnitureadd_TD[5], 1);
- TextDrawSetShadow(furnitureadd_TD[5], 0);
- furnitureadd_TD[6] = TextDrawCreate(159.534362, 321.352539, "esc");
- TextDrawLetterSize(furnitureadd_TD[6], 0.300000, 1.205926);
- TextDrawAlignment(furnitureadd_TD[6], 1);
- TextDrawColor(furnitureadd_TD[6], -1575535873);
- TextDrawSetShadow(furnitureadd_TD[6], 0);
- TextDrawSetOutline(furnitureadd_TD[6], 1);
- TextDrawBackgroundColor(furnitureadd_TD[6], 255);
- TextDrawFont(furnitureadd_TD[6], 2);
- TextDrawSetProportional(furnitureadd_TD[6], 1);
- TextDrawSetShadow(furnitureadd_TD[6], 0);
- furnitureadd_TD[7] = TextDrawCreate(185.535964, 321.667358, "''");
- TextDrawLetterSize(furnitureadd_TD[7], 0.300000, 1.205926);
- TextDrawAlignment(furnitureadd_TD[7], 1);
- TextDrawColor(furnitureadd_TD[7], -1);
- TextDrawSetShadow(furnitureadd_TD[7], 0);
- TextDrawSetOutline(furnitureadd_TD[7], 1);
- TextDrawBackgroundColor(furnitureadd_TD[7], 255);
- TextDrawFont(furnitureadd_TD[7], 2);
- TextDrawSetProportional(furnitureadd_TD[7], 1);
- TextDrawSetShadow(furnitureadd_TD[7], 0);
- furnitureadd_TD[8] = TextDrawCreate(195.436569, 321.282135, "KEY_TO_RETURN_THE_ITEM_IF_YOU'RE_NOT_PLEASED.");
- TextDrawLetterSize(furnitureadd_TD[8], 0.300000, 1.205926);
- TextDrawAlignment(furnitureadd_TD[8], 1);
- TextDrawColor(furnitureadd_TD[8], -1);
- TextDrawSetShadow(furnitureadd_TD[8], 0);
- TextDrawSetOutline(furnitureadd_TD[8], 1);
- TextDrawBackgroundColor(furnitureadd_TD[8], 255);
- TextDrawFont(furnitureadd_TD[8], 2);
- TextDrawSetProportional(furnitureadd_TD[8], 1);
- TextDrawSetShadow(furnitureadd_TD[8], 0);
-
- Buymenu_TD[0] = TextDrawCreate(336.666839, 132.340713, "box");
- TextDrawLetterSize(Buymenu_TD[0], 0.000000, 27.166658);
- TextDrawTextSize(Buymenu_TD[0], 0.000000, 341.000000);
- TextDrawAlignment(Buymenu_TD[0], 2);
- TextDrawColor(Buymenu_TD[0], -1);
- TextDrawUseBox(Buymenu_TD[0], 1);
- TextDrawBoxColor(Buymenu_TD[0], 255);
- TextDrawSetShadow(Buymenu_TD[0], 0);
- TextDrawSetOutline(Buymenu_TD[0], 0);
- TextDrawBackgroundColor(Buymenu_TD[0], 255);
- TextDrawFont(Buymenu_TD[0], 1);
- TextDrawSetProportional(Buymenu_TD[0], 1);
- TextDrawSetShadow(Buymenu_TD[0], 0);
- Buymenu_TD[1] = TextDrawCreate(481.666839, 131.925994, "EXIT");
- TextDrawLetterSize(Buymenu_TD[1], 0.352665, 1.334519);
- TextDrawAlignment(Buymenu_TD[1], 1);
- TextDrawColor(Buymenu_TD[1], -1);
- TextDrawSetShadow(Buymenu_TD[1], 0);
- TextDrawSetOutline(Buymenu_TD[1], 0);
- TextDrawBackgroundColor(Buymenu_TD[1], 255);
- TextDrawFont(Buymenu_TD[1], 1);
- TextDrawSetProportional(Buymenu_TD[1], 1);
- TextDrawSetShadow(Buymenu_TD[1], 0);
- TextDrawSetSelectable(Buymenu_TD[1], true);
- Buymenu_TD[2] = TextDrawCreate(163.999969, 131.511169, "The_Store_Name_Goes_Here");
- TextDrawLetterSize(Buymenu_TD[2], 0.401665, 1.645629);
- TextDrawAlignment(Buymenu_TD[2], 1);
- TextDrawColor(Buymenu_TD[2], -1);
- TextDrawSetShadow(Buymenu_TD[2], 0);
- TextDrawSetOutline(Buymenu_TD[2], 0);
- TextDrawBackgroundColor(Buymenu_TD[2], 255);
- TextDrawFont(Buymenu_TD[2], 0);
- TextDrawSetProportional(Buymenu_TD[2], 1);
- TextDrawSetShadow(Buymenu_TD[2], 0);
- Buymenu_TD[3] = TextDrawCreate(169.333175, 152.511123, "");
- TextDrawLetterSize(Buymenu_TD[3], 0.000000, 0.000000);
- TextDrawTextSize(Buymenu_TD[3], 81.000000, 72.000000);
- TextDrawAlignment(Buymenu_TD[3], 1);
- TextDrawColor(Buymenu_TD[3], -1);
- TextDrawSetShadow(Buymenu_TD[3], 0);
- TextDrawSetOutline(Buymenu_TD[3], 0);
- TextDrawBackgroundColor(Buymenu_TD[3], -572662273);
- TextDrawFont(Buymenu_TD[3], 5);
- TextDrawSetProportional(Buymenu_TD[3], 0);
- TextDrawSetShadow(Buymenu_TD[3], 0);
- TextDrawSetSelectable(Buymenu_TD[3], true);
- TextDrawSetPreviewModel(Buymenu_TD[3], 1650);
- TextDrawSetPreviewRot(Buymenu_TD[3], 0.600000, 0.200000, 22.000000, 1.100000);
- Buymenu_TD[4] = TextDrawCreate(170.666671, 152.251876, "Gas_Can");
- TextDrawLetterSize(Buymenu_TD[4], 0.262665, 1.044147);
- TextDrawAlignment(Buymenu_TD[4], 1);
- TextDrawColor(Buymenu_TD[4], -1);
- TextDrawSetShadow(Buymenu_TD[4], 0);
- TextDrawSetOutline(Buymenu_TD[4], 1);
- TextDrawBackgroundColor(Buymenu_TD[4], 255);
- TextDrawFont(Buymenu_TD[4], 1);
- TextDrawSetProportional(Buymenu_TD[4], 1);
- TextDrawSetShadow(Buymenu_TD[4], 0);
- Buymenu_TD[5] = TextDrawCreate(229.333297, 215.303710, "$30");
- TextDrawLetterSize(Buymenu_TD[5], 0.221000, 0.957036);
- TextDrawAlignment(Buymenu_TD[5], 1);
- TextDrawColor(Buymenu_TD[5], 8388863);
- TextDrawSetShadow(Buymenu_TD[5], 0);
- TextDrawSetOutline(Buymenu_TD[5], 0);
- TextDrawBackgroundColor(Buymenu_TD[5], 8388863);
- TextDrawFont(Buymenu_TD[5], 1);
- TextDrawSetProportional(Buymenu_TD[5], 1);
- TextDrawSetShadow(Buymenu_TD[5], 0);
- Buymenu_TD[6] = TextDrawCreate(253.999893, 152.511093, "");
- TextDrawLetterSize(Buymenu_TD[6], 0.000000, 0.000000);
- TextDrawTextSize(Buymenu_TD[6], 81.000000, 72.000000);
- TextDrawAlignment(Buymenu_TD[6], 1);
- TextDrawColor(Buymenu_TD[6], -1);
- TextDrawSetShadow(Buymenu_TD[6], 0);
- TextDrawSetOutline(Buymenu_TD[6], 0);
- TextDrawBackgroundColor(Buymenu_TD[6], -572662273);
- TextDrawFont(Buymenu_TD[6], 5);
- TextDrawSetProportional(Buymenu_TD[6], 0);
- TextDrawSetShadow(Buymenu_TD[6], 0);
- TextDrawSetSelectable(Buymenu_TD[6], true);
- TextDrawSetPreviewModel(Buymenu_TD[6], 2226);
- TextDrawSetPreviewRot(Buymenu_TD[6], 0.600000, 0.200000, 180.000000, 1.100000);
- Buymenu_TD[7] = TextDrawCreate(255.666595, 152.666748, "Boombox");
- TextDrawLetterSize(Buymenu_TD[7], 0.262665, 1.044147);
- TextDrawAlignment(Buymenu_TD[7], 1);
- TextDrawColor(Buymenu_TD[7], -1);
- TextDrawSetShadow(Buymenu_TD[7], 0);
- TextDrawSetOutline(Buymenu_TD[7], 1);
- TextDrawBackgroundColor(Buymenu_TD[7], 255);
- TextDrawFont(Buymenu_TD[7], 1);
- TextDrawSetProportional(Buymenu_TD[7], 1);
- TextDrawSetShadow(Buymenu_TD[7], 0);
- Buymenu_TD[8] = TextDrawCreate(307.333221, 215.718536, "$150");
- TextDrawLetterSize(Buymenu_TD[8], 0.221000, 0.957036);
- TextDrawAlignment(Buymenu_TD[8], 1);
- TextDrawColor(Buymenu_TD[8], 8388863);
- TextDrawSetShadow(Buymenu_TD[8], 0);
- TextDrawSetOutline(Buymenu_TD[8], 0);
- TextDrawBackgroundColor(Buymenu_TD[8], 8388863);
- TextDrawFont(Buymenu_TD[8], 1);
- TextDrawSetProportional(Buymenu_TD[8], 1);
- TextDrawSetShadow(Buymenu_TD[8], 0);
- Buymenu_TD[9] = TextDrawCreate(342.666473, 147.273101, "Welcome!");
- TextDrawLetterSize(Buymenu_TD[9], 0.400000, 1.600000);
- TextDrawAlignment(Buymenu_TD[9], 1);
- TextDrawColor(Buymenu_TD[9], -1);
- TextDrawSetShadow(Buymenu_TD[9], 0);
- TextDrawSetOutline(Buymenu_TD[9], 0);
- TextDrawBackgroundColor(Buymenu_TD[9], 255);
- TextDrawFont(Buymenu_TD[9], 1);
- TextDrawSetProportional(Buymenu_TD[9], 1);
- TextDrawSetShadow(Buymenu_TD[9], 0);
- Buymenu_TD[10] = TextDrawCreate(344.999938, 161.792678, "Click_on_any_of_the_items_~n~to_buy_them.~n~~n~Press_ESC_to_exit.");
- TextDrawLetterSize(Buymenu_TD[10], 0.255665, 0.932147);
- TextDrawAlignment(Buymenu_TD[10], 1);
- TextDrawColor(Buymenu_TD[10], -1);
- TextDrawSetShadow(Buymenu_TD[10], 0);
- TextDrawSetOutline(Buymenu_TD[10], 0);
- TextDrawBackgroundColor(Buymenu_TD[10], 255);
- TextDrawFont(Buymenu_TD[10], 1);
- TextDrawSetProportional(Buymenu_TD[10], 1);
- TextDrawSetShadow(Buymenu_TD[10], 0);
- Buymenu_TD[11] = TextDrawCreate(169.333267, 226.762939, "");
- TextDrawLetterSize(Buymenu_TD[11], 0.000000, 0.000000);
- TextDrawTextSize(Buymenu_TD[11], 81.000000, 72.000000);
- TextDrawAlignment(Buymenu_TD[11], 1);
- TextDrawColor(Buymenu_TD[11], -1);
- TextDrawSetShadow(Buymenu_TD[11], 0);
- TextDrawSetOutline(Buymenu_TD[11], 0);
- TextDrawBackgroundColor(Buymenu_TD[11], -572662273);
- TextDrawFont(Buymenu_TD[11], 5);
- TextDrawSetProportional(Buymenu_TD[11], 0);
- TextDrawSetShadow(Buymenu_TD[11], 0);
- TextDrawSetSelectable(Buymenu_TD[11], true);
- TextDrawSetPreviewModel(Buymenu_TD[11], 336);
- TextDrawSetPreviewRot(Buymenu_TD[11], 200.000000, 150.000000, 1.000000, 2.099998);
- Buymenu_TD[12] = TextDrawCreate(170.333374, 226.088943, "Baseball_Bat");
- TextDrawLetterSize(Buymenu_TD[12], 0.258666, 1.035851);
- TextDrawAlignment(Buymenu_TD[12], 1);
- TextDrawColor(Buymenu_TD[12], -1);
- TextDrawSetShadow(Buymenu_TD[12], 0);
- TextDrawSetOutline(Buymenu_TD[12], 1);
- TextDrawBackgroundColor(Buymenu_TD[12], 255);
- TextDrawFont(Buymenu_TD[12], 1);
- TextDrawSetProportional(Buymenu_TD[12], 1);
- TextDrawSetShadow(Buymenu_TD[12], 0);
- Buymenu_TD[13] = TextDrawCreate(230.333312, 289.555725, "$10");
- TextDrawLetterSize(Buymenu_TD[13], 0.221000, 0.957036);
- TextDrawAlignment(Buymenu_TD[13], 1);
- TextDrawColor(Buymenu_TD[13], 8388863);
- TextDrawSetShadow(Buymenu_TD[13], 0);
- TextDrawSetOutline(Buymenu_TD[13], 0);
- TextDrawBackgroundColor(Buymenu_TD[13], 8388863);
- TextDrawFont(Buymenu_TD[13], 1);
- TextDrawSetProportional(Buymenu_TD[13], 1);
- TextDrawSetShadow(Buymenu_TD[13], 0);
- Buymenu_TD[14] = TextDrawCreate(253.999938, 226.348114, "");
- TextDrawLetterSize(Buymenu_TD[14], 0.000000, 0.000000);
- TextDrawTextSize(Buymenu_TD[14], 81.000000, 73.000000);
- TextDrawAlignment(Buymenu_TD[14], 1);
- TextDrawColor(Buymenu_TD[14], -1);
- TextDrawSetShadow(Buymenu_TD[14], 0);
- TextDrawSetOutline(Buymenu_TD[14], 0);
- TextDrawBackgroundColor(Buymenu_TD[14], -572662273);
- TextDrawFont(Buymenu_TD[14], 5);
- TextDrawSetProportional(Buymenu_TD[14], 0);
- TextDrawSetShadow(Buymenu_TD[14], 0);
- TextDrawSetSelectable(Buymenu_TD[14], true);
- TextDrawSetPreviewModel(Buymenu_TD[14], 325);
- TextDrawSetPreviewRot(Buymenu_TD[14], 200.000000, 600.000000, -100.000000, 1.000000);
- Buymenu_TD[15] = TextDrawCreate(254.333389, 225.674118, "Flowers");
- TextDrawLetterSize(Buymenu_TD[15], 0.260333, 1.060740);
- TextDrawAlignment(Buymenu_TD[15], 1);
- TextDrawColor(Buymenu_TD[15], -1);
- TextDrawSetShadow(Buymenu_TD[15], 0);
- TextDrawSetOutline(Buymenu_TD[15], 1);
- TextDrawBackgroundColor(Buymenu_TD[15], 255);
- TextDrawFont(Buymenu_TD[15], 1);
- TextDrawSetProportional(Buymenu_TD[15], 1);
- TextDrawSetShadow(Buymenu_TD[15], 0);
- Buymenu_TD[16] = TextDrawCreate(314.333343, 290.385437, "$3");
- TextDrawLetterSize(Buymenu_TD[16], 0.221000, 0.957036);
- TextDrawAlignment(Buymenu_TD[16], 1);
- TextDrawColor(Buymenu_TD[16], 8388863);
- TextDrawSetShadow(Buymenu_TD[16], 0);
- TextDrawSetOutline(Buymenu_TD[16], 0);
- TextDrawBackgroundColor(Buymenu_TD[16], 8388863);
- TextDrawFont(Buymenu_TD[16], 1);
- TextDrawSetProportional(Buymenu_TD[16], 1);
- TextDrawSetShadow(Buymenu_TD[16], 0);
- Buymenu_TD[17] = TextDrawCreate(337.999877, 225.933273, "");
- TextDrawLetterSize(Buymenu_TD[17], 0.000000, 0.000000);
- TextDrawTextSize(Buymenu_TD[17], 81.000000, 73.000000);
- TextDrawAlignment(Buymenu_TD[17], 1);
- TextDrawColor(Buymenu_TD[17], -1);
- TextDrawSetShadow(Buymenu_TD[17], 0);
- TextDrawSetOutline(Buymenu_TD[17], 0);
- TextDrawBackgroundColor(Buymenu_TD[17], -572662273);
- TextDrawFont(Buymenu_TD[17], 5);
- TextDrawSetProportional(Buymenu_TD[17], 0);
- TextDrawSetShadow(Buymenu_TD[17], 0);
- TextDrawSetSelectable(Buymenu_TD[17], true);
- TextDrawSetPreviewModel(Buymenu_TD[17], 326);
- TextDrawSetPreviewRot(Buymenu_TD[17], 200.000000, 600.000000, -100.000000, 1.000000);
- Buymenu_TD[18] = TextDrawCreate(339.000000, 225.259307, "Cane");
- TextDrawLetterSize(Buymenu_TD[18], 0.260333, 1.060740);
- TextDrawAlignment(Buymenu_TD[18], 1);
- TextDrawColor(Buymenu_TD[18], -1);
- TextDrawSetShadow(Buymenu_TD[18], 0);
- TextDrawSetOutline(Buymenu_TD[18], 1);
- TextDrawBackgroundColor(Buymenu_TD[18], 255);
- TextDrawFont(Buymenu_TD[18], 1);
- TextDrawSetProportional(Buymenu_TD[18], 1);
- TextDrawSetShadow(Buymenu_TD[18], 0);
- Buymenu_TD[19] = TextDrawCreate(399.333312, 289.970672, "$20");
- TextDrawLetterSize(Buymenu_TD[19], 0.221000, 0.957036);
- TextDrawAlignment(Buymenu_TD[19], 1);
- TextDrawColor(Buymenu_TD[19], 8388863);
- TextDrawSetShadow(Buymenu_TD[19], 0);
- TextDrawSetOutline(Buymenu_TD[19], 0);
- TextDrawBackgroundColor(Buymenu_TD[19], 8388863);
- TextDrawFont(Buymenu_TD[19], 1);
- TextDrawSetProportional(Buymenu_TD[19], 1);
- TextDrawSetShadow(Buymenu_TD[19], 0);
- Buymenu_TD[20] = TextDrawCreate(421.333099, 225.933258, "");
- TextDrawLetterSize(Buymenu_TD[20], 0.000000, 0.000000);
- TextDrawTextSize(Buymenu_TD[20], 81.000000, 73.000000);
- TextDrawAlignment(Buymenu_TD[20], 1);
- TextDrawColor(Buymenu_TD[20], -1);
- TextDrawSetShadow(Buymenu_TD[20], 0);
- TextDrawSetOutline(Buymenu_TD[20], 0);
- TextDrawBackgroundColor(Buymenu_TD[20], -572662273);
- TextDrawFont(Buymenu_TD[20], 5);
- TextDrawSetProportional(Buymenu_TD[20], 0);
- TextDrawSetShadow(Buymenu_TD[20], 0);
- TextDrawSetSelectable(Buymenu_TD[20], true);
- TextDrawSetPreviewModel(Buymenu_TD[20], 367);
- TextDrawSetPreviewRot(Buymenu_TD[20], 20.000000, 7.000000, 2000.000000, 0.600000);
- Buymenu_TD[21] = TextDrawCreate(422.333251, 225.259307, "Camera");
- TextDrawLetterSize(Buymenu_TD[21], 0.260333, 1.060740);
- TextDrawAlignment(Buymenu_TD[21], 1);
- TextDrawColor(Buymenu_TD[21], -1);
- TextDrawSetShadow(Buymenu_TD[21], 0);
- TextDrawSetOutline(Buymenu_TD[21], 1);
- TextDrawBackgroundColor(Buymenu_TD[21], 255);
- TextDrawFont(Buymenu_TD[21], 1);
- TextDrawSetProportional(Buymenu_TD[21], 1);
- TextDrawSetShadow(Buymenu_TD[21], 0);
- Buymenu_TD[22] = TextDrawCreate(407.666351, 214.888854, "PURCHASE");
- TextDrawLetterSize(Buymenu_TD[22], 0.220332, 1.135408);
- TextDrawAlignment(Buymenu_TD[22], 1);
- TextDrawColor(Buymenu_TD[22], 8388863);
- TextDrawSetShadow(Buymenu_TD[22], 0);
- TextDrawSetOutline(Buymenu_TD[22], 1);
- TextDrawBackgroundColor(Buymenu_TD[22], 255);
- TextDrawFont(Buymenu_TD[22], 1);
- TextDrawSetProportional(Buymenu_TD[22], 1);
- TextDrawSetShadow(Buymenu_TD[22], 0);
- Buymenu_TD[23] = TextDrawCreate(449.666259, 215.303680, "EMPTY_CART");
- TextDrawLetterSize(Buymenu_TD[23], 0.198999, 1.131260);
- TextDrawAlignment(Buymenu_TD[23], 1);
- TextDrawColor(Buymenu_TD[23], -16776961);
- TextDrawSetShadow(Buymenu_TD[23], 0);
- TextDrawSetOutline(Buymenu_TD[23], 1);
- TextDrawBackgroundColor(Buymenu_TD[23], 255);
- TextDrawFont(Buymenu_TD[23], 1);
- TextDrawSetProportional(Buymenu_TD[23], 1);
- TextDrawSetShadow(Buymenu_TD[23], 0);
- Buymenu_TD[24] = TextDrawCreate(169.333175, 301.429504, "");
- TextDrawLetterSize(Buymenu_TD[24], 0.000000, 0.000000);
- TextDrawTextSize(Buymenu_TD[24], 81.000000, 73.000000);
- TextDrawAlignment(Buymenu_TD[24], 1);
- TextDrawColor(Buymenu_TD[24], -1);
- TextDrawSetShadow(Buymenu_TD[24], 0);
- TextDrawSetOutline(Buymenu_TD[24], 0);
- TextDrawBackgroundColor(Buymenu_TD[24], -572662273);
- TextDrawFont(Buymenu_TD[24], 5);
- TextDrawSetProportional(Buymenu_TD[24], 0);
- TextDrawSetShadow(Buymenu_TD[24], 0);
- TextDrawSetSelectable(Buymenu_TD[24], true);
- TextDrawSetPreviewModel(Buymenu_TD[24], 19036);
- TextDrawSetPreviewRot(Buymenu_TD[24], 0.200000, 0.500000, 50.000000, 1.000000);
- Buymenu_TD[25] = TextDrawCreate(170.333251, 301.170471, "OOC_Mask");
- TextDrawLetterSize(Buymenu_TD[25], 0.243999, 1.027555);
- TextDrawAlignment(Buymenu_TD[25], 1);
- TextDrawColor(Buymenu_TD[25], -1);
- TextDrawSetShadow(Buymenu_TD[25], 0);
- TextDrawSetOutline(Buymenu_TD[25], 1);
- TextDrawBackgroundColor(Buymenu_TD[25], 255);
- TextDrawFont(Buymenu_TD[25], 1);
- TextDrawSetProportional(Buymenu_TD[25], 1);
- TextDrawSetShadow(Buymenu_TD[25], 0);
- Buymenu_TD[26] = TextDrawCreate(481.666717, 289.970672, "$50");
- TextDrawLetterSize(Buymenu_TD[26], 0.221000, 0.957036);
- TextDrawAlignment(Buymenu_TD[26], 1);
- TextDrawColor(Buymenu_TD[26], 8388863);
- TextDrawSetShadow(Buymenu_TD[26], 0);
- TextDrawSetOutline(Buymenu_TD[26], 0);
- TextDrawBackgroundColor(Buymenu_TD[26], 8388863);
- TextDrawFont(Buymenu_TD[26], 1);
- TextDrawSetProportional(Buymenu_TD[26], 1);
- TextDrawSetShadow(Buymenu_TD[26], 0);
- Buymenu_TD[27] = TextDrawCreate(223.000122, 366.296691, "$200");
- TextDrawLetterSize(Buymenu_TD[27], 0.221000, 0.957036);
- TextDrawAlignment(Buymenu_TD[27], 1);
- TextDrawColor(Buymenu_TD[27], 8388863);
- TextDrawSetShadow(Buymenu_TD[27], 0);
- TextDrawSetOutline(Buymenu_TD[27], 0);
- TextDrawBackgroundColor(Buymenu_TD[27], 8388863);
- TextDrawFont(Buymenu_TD[27], 1);
- TextDrawSetProportional(Buymenu_TD[27], 1);
- TextDrawSetShadow(Buymenu_TD[27], 0);
- Buymenu_TD[28] = TextDrawCreate(253.666534, 301.844207, "");
- TextDrawLetterSize(Buymenu_TD[28], 0.000000, 0.000000);
- TextDrawTextSize(Buymenu_TD[28], 81.000000, 73.000000);
- TextDrawAlignment(Buymenu_TD[28], 1);
- TextDrawColor(Buymenu_TD[28], -1);
- TextDrawSetShadow(Buymenu_TD[28], 0);
- TextDrawSetOutline(Buymenu_TD[28], 0);
- TextDrawBackgroundColor(Buymenu_TD[28], -572662273);
- TextDrawFont(Buymenu_TD[28], 5);
- TextDrawSetProportional(Buymenu_TD[28], 0);
- TextDrawSetShadow(Buymenu_TD[28], 0);
- TextDrawSetSelectable(Buymenu_TD[28], true);
- TextDrawSetPreviewModel(Buymenu_TD[28], 19823);
- TextDrawSetPreviewRot(Buymenu_TD[28], 0.200000, 0.500000, 50.000000, 1.000000);
- Buymenu_TD[29] = TextDrawCreate(254.999908, 301.170410, "Drink");
- TextDrawLetterSize(Buymenu_TD[29], 0.243999, 1.027555);
- TextDrawAlignment(Buymenu_TD[29], 1);
- TextDrawColor(Buymenu_TD[29], -1);
- TextDrawSetShadow(Buymenu_TD[29], 0);
- TextDrawSetOutline(Buymenu_TD[29], 1);
- TextDrawBackgroundColor(Buymenu_TD[29], 255);
- TextDrawFont(Buymenu_TD[29], 1);
- TextDrawSetProportional(Buymenu_TD[29], 1);
- TextDrawSetShadow(Buymenu_TD[29], 0);
- Buymenu_TD[30] = TextDrawCreate(314.333618, 366.296691, "$3");
- TextDrawLetterSize(Buymenu_TD[30], 0.221000, 0.957036);
- TextDrawAlignment(Buymenu_TD[30], 1);
- TextDrawColor(Buymenu_TD[30], 8388863);
- TextDrawSetShadow(Buymenu_TD[30], 0);
- TextDrawSetOutline(Buymenu_TD[30], 0);
- TextDrawBackgroundColor(Buymenu_TD[30], 8388863);
- TextDrawFont(Buymenu_TD[30], 1);
- TextDrawSetProportional(Buymenu_TD[30], 1);
- TextDrawSetShadow(Buymenu_TD[30], 0);
- Buymenu_TD[31] = TextDrawCreate(338.333312, 301.844207, "");
- TextDrawLetterSize(Buymenu_TD[31], 0.000000, 0.000000);
- TextDrawTextSize(Buymenu_TD[31], 81.000000, 73.000000);
- TextDrawAlignment(Buymenu_TD[31], 1);
- TextDrawColor(Buymenu_TD[31], -1);
- TextDrawSetShadow(Buymenu_TD[31], 0);
- TextDrawSetOutline(Buymenu_TD[31], 0);
- TextDrawBackgroundColor(Buymenu_TD[31], -572662273);
- TextDrawFont(Buymenu_TD[31], 5);
- TextDrawSetProportional(Buymenu_TD[31], 0);
- TextDrawSetShadow(Buymenu_TD[31], 0);
- TextDrawSetSelectable(Buymenu_TD[31], true);
- TextDrawSetPreviewModel(Buymenu_TD[31], 19897);
- TextDrawSetPreviewRot(Buymenu_TD[31], 600.000000, 400.000000, 200.000000, 1.000000);
- Buymenu_TD[32] = TextDrawCreate(339.666473, 301.170379, "Cigarette");
- TextDrawLetterSize(Buymenu_TD[32], 0.243999, 1.027555);
- TextDrawAlignment(Buymenu_TD[32], 1);
- TextDrawColor(Buymenu_TD[32], -1);
- TextDrawSetShadow(Buymenu_TD[32], 0);
- TextDrawSetOutline(Buymenu_TD[32], 1);
- TextDrawBackgroundColor(Buymenu_TD[32], 255);
- TextDrawFont(Buymenu_TD[32], 1);
- TextDrawSetProportional(Buymenu_TD[32], 1);
- TextDrawSetShadow(Buymenu_TD[32], 0);
- Buymenu_TD[33] = TextDrawCreate(400.000305, 366.296661, "$30");
- TextDrawLetterSize(Buymenu_TD[33], 0.221000, 0.957036);
- TextDrawAlignment(Buymenu_TD[33], 1);
- TextDrawColor(Buymenu_TD[33], 8388863);
- TextDrawSetShadow(Buymenu_TD[33], 0);
- TextDrawSetOutline(Buymenu_TD[33], 0);
- TextDrawBackgroundColor(Buymenu_TD[33], 8388863);
- TextDrawFont(Buymenu_TD[33], 1);
- TextDrawSetProportional(Buymenu_TD[33], 1);
- TextDrawSetShadow(Buymenu_TD[33], 0);
- Buymenu_TD[34] = TextDrawCreate(421.666625, 301.844268, "");
- TextDrawLetterSize(Buymenu_TD[34], 0.000000, 0.000000);
- TextDrawTextSize(Buymenu_TD[34], 81.000000, 73.000000);
- TextDrawAlignment(Buymenu_TD[34], 1);
- TextDrawColor(Buymenu_TD[34], -1);
- TextDrawSetShadow(Buymenu_TD[34], 0);
- TextDrawSetOutline(Buymenu_TD[34], 0);
- TextDrawBackgroundColor(Buymenu_TD[34], -572662273);
- TextDrawFont(Buymenu_TD[34], 5);
- TextDrawSetProportional(Buymenu_TD[34], 0);
- TextDrawSetShadow(Buymenu_TD[34], 0);
- TextDrawSetSelectable(Buymenu_TD[34], true);
- TextDrawSetPreviewModel(Buymenu_TD[34], 19942);
- TextDrawSetPreviewRot(Buymenu_TD[34], 4000.000000, 4000.000000, 200.000000, 1.000000);
- Buymenu_TD[35] = TextDrawCreate(422.666351, 300.755401, "Radio");
- TextDrawLetterSize(Buymenu_TD[35], 0.243999, 1.027555);
- TextDrawAlignment(Buymenu_TD[35], 1);
- TextDrawColor(Buymenu_TD[35], -1);
- TextDrawSetShadow(Buymenu_TD[35], 0);
- TextDrawSetOutline(Buymenu_TD[35], 1);
- TextDrawBackgroundColor(Buymenu_TD[35], 255);
- TextDrawFont(Buymenu_TD[35], 1);
- TextDrawSetProportional(Buymenu_TD[35], 1);
- TextDrawSetShadow(Buymenu_TD[35], 0);
- Buymenu_TD[36] = TextDrawCreate(474.000305, 365.881683, "$50");
- TextDrawLetterSize(Buymenu_TD[36], 0.221000, 0.957036);
- TextDrawAlignment(Buymenu_TD[36], 1);
- TextDrawColor(Buymenu_TD[36], 8388863);
- TextDrawSetShadow(Buymenu_TD[36], 0);
- TextDrawSetOutline(Buymenu_TD[36], 0);
- TextDrawBackgroundColor(Buymenu_TD[36], 8388863);
- TextDrawFont(Buymenu_TD[36], 1);
- TextDrawSetProportional(Buymenu_TD[36], 1);
- TextDrawSetShadow(Buymenu_TD[36], 0);
- return true;
- }
- MySQLConnection()
- {
- /*new MySQLOpt: option_id = mysql_init_options();
- mysql_set_option(option_id, AUTO_RECONNECT, true); no need as mysql automatically does this */
- m_Handle = mysql_connect(SQL_HOSTNAME, SQL_USERNAME, SQL_PASSWORD, SQL_DATABASE/*, option_id*/);
- if(m_Handle) {
- printf("[MYSQL]: Connection to '%s' successful!", SQL_DATABASE);
- return true;
- }
- else
- {
- printf("[MYSQL]: Connection to '%s' failed!", SQL_DATABASE);
- return false;
- }
- }
- public OnGameModeExit()
- {
- //Saving:
- SaveProperties();
- SaveFactions();
- SaveBusinesses();
- SaveTolls();
- SavePaynSprays();
- SaveDoors();
- SavePropertyGarages();
- foreach (new i : Player) {
- if(StartedTruckerMission[i]) {
- StartedTruckerMission[i] = false;
- KillTimer(TruckerJobTimer[i]);
-
- if(TruckerMissionStep[i] == 2)
- {
- TogglePlayerControllable(i, 1);
- KillTimer(TruckerJobDeliverTimer[i]);
- }
-
- for(new x = 0; x < 2; i++)
- PlayerTextDrawHide(i, TruckerEarning_PTD[i][x]);
-
- DisablePlayerCheckpoint(i);
- GiveMoney(i, TruckerJobEarnings[i]);
- TruckerJobEarnings[i] = 0;
- }
- OnPlayerDisconnect(i, 1);
- }
- //Closing database:
- mysql_close(m_Handle);
- return true;
- }
- /*public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
- {
- switch(weaponid){
- case 1: amount = 10;
- case 3: amount = 11;
- case 4: amount = 11;
- case 5: amount = 11;
- case 6: amount = 11;
- case 7: amount = 11;
- case 8: amount = 20;
- case 10 .. 15: amount = 5;
- case 22: amount = 12;
- case 23: amount = 13;
- case 24: amount = 30;
- case 25: amount = 40;
- case 27: amount = 65;
- case 28: amount = 14;
- case 29: amount = 16;
- case 30: amount = 17;
- case 31: amount = 18;
- case 32: amount = 14;
- case 33: amount = 60;
- case 34: amount = 100;
- }
- if(issuerid != INVALID_PLAYER_ID) {
-
- new Float: playerHealth, Float: playerArmor, Float: amoun;
-
- GetPlayerHealth(playerid, playerHealth);
- GetPlayerArmour(playerid, playerArmor);
-
- foreach(new i : Player)
- {
- if(WatchingDamages[i][playerid] == 1)
- {
- Message(i, COLOR_WHITE, "%s did %.2f damage to {FF6347}%s{FFFFFF} with a %s, Health: %f", ReturnName(issuerid), amount, ReturnName(playerid), ReturnWeaponName(weaponid), playerHealth-amount);
- }
- }
-
- if(GetPlayerTeam(playerid) == STATE_WOUNDED)
- {
- if(!PlayerData[playerid][pExecuteTime]){
- SetDead(playerid);
- SetPlayerTeam(playerid, STATE_DEAD);
-
- new string[128];
-
- format(string, sizeof(string), "Executed by %s with %s", ReturnName(issuerid), ReturnWeaponName(weaponid));
- LogPlayerAction(playerid, string);
-
- format(string, sizeof(string), "Executed %s with %s", ReturnName(playerid), ReturnWeaponName(weaponid));
- LogPlayerAction(issuerid, string);
- return false;
- }
-
- SetPlayerHealth(playerid, playerHealth);
- return false;
- }
-
- if(GetPlayerTeam(playerid) != STATE_ALIVE){ SetPlayerHealth(playerid, playerHealth); return false; }
-
- if(GetPlayerTeam(playerid) == STATE_ALIVE){
- if(playerArmor > 0) { // if armor is greater than 0
- amoun = playerArmor - amount; // armor - amount taken
-
- if(amoun <= 0){ // if armor - amount taken is less than or equal to 0
- SetPlayerHealth(playerid, playerHealth - amount); // hp is set
- }
- else { // if the amoun is greater than 0
- if(bodypart != BODY_PART_HEAD && bodypart != BODY_PART_RIGHT_LEG && bodypart != BODY_PART_LEFT_LEG){ // if bodypart isn't head or legs
- SetPlayerArmour(playerid, playerArmor - amount);
- }
- else{ // if bodypart is legs or head
- SetPlayerHealth(playerid, playerHealth - amount); // hp is taken
- }
- }
- }
- else{
- SetPlayerHealth(playerid, playerHealth - amount);
- }
- }
-
- AddDamages(playerid, issuerid, weaponid, bodypart, amount);
-
- if(bodypart == BODY_PART_LEFT_LEG){
- if(!PlayerData[playerid][pLegShot]) {
- PlayerData[playerid][pLegShot] = true;
- LegShotTimer[playerid] = SetTimerEx("LegShotEnd", 900000, false, "i", playerid);
- SendClientMessage(playerid, COLOR_ADM, "-> You've been hit in the leg, you're gonna struggle with running and jumping.");
- }
- }
-
- if(bodypart == BODY_PART_RIGHT_LEG){
- if(!PlayerData[playerid][pLegShot]) {
- PlayerData[playerid][pLegShot] = true;
- LegShotTimer[playerid] = SetTimerEx("LegShotEnd", 900000, false, "i", playerid);
- SendClientMessage(playerid, COLOR_ADM, "-> You've been hit in the leg, you're gonna struggle with running and jumping.");
- }
- }
-
- if( playerHealth - amount <= 5 && GetPlayerTeam(playerid) == STATE_ALIVE ) {
- SetBrutallyWounded( playerid, issuerid, weaponid );
-
- SetPlayerTeam(playerid, STATE_WOUNDED);
- if(IsPlayerInAnyVehicle(playerid)) ClearAnimations(playerid);
- return false;
- }
-
- if( playerHealth - amount <= 1 ){
- SetBrutallyWounded(playerid, issuerid, weaponid);
- SetPlayerTeam(playerid, STATE_WOUNDED);
- return false;
- }
- }
- return true;
- }*/
- stock IsPill(drug)
- {
- new ispill;
- switch (drug)
- {
- case DRUG_TYPE_ECSTASY, DRUG_TYPE_LSD, DRUG_TYPE_PCP, DRUG_TYPE_ASPIRIN, DRUG_TYPE_HALOP, DRUG_TYPE_MORPHINE, DRUG_TYPE_XANAX, DRUG_TYPE_MDMA, DRUG_TYPE_PHENETOLE, DRUG_TYPE_STEROIDS: {
- ispill = 1;
- }
- }
- return ispill;
- }
- stock GetPackageType(type)
- {
- new string[32];
- switch (type)
- {
- case 0: string = "Ziploc Bag - Small";
- case 1: string = "Ziploc Bag - Medium";
- case 2: string = "Ziploc Bag - Large";
- case 3: string = "Plastic Wrap Ball - Small";
- case 4: string = "Plastic Wrap Ball - Medium";
- case 5: string = "Plastic Wrap Ball - Large";
- case 6: string = "Wrapped Foil - Small";
- case 7: string = "Wrapped Foil - Medium";
- case 8: string = "Wrapped Foil - Large";
- case 9: string = "Pill Bottle - Small";
- case 10: string = "Pill Bottle - Medium";
- case 11: string = "Pill Bottle - Large";
- case 12: string = "Wax Paper Wrap - Small";
- case 13: string = "Wax Paper Wrap - Medium";
- }
- return string;
- }
- stock CountPackages(playerid)
- {
- new count;
- for (new i = 0; i < 10; i++) if (DrugData[playerid][i][drugQuantity] > 0)
- count++;
- return count;
- }
- stock Float:GetPackageCapacity(type, drugtype)
- {
- new Float:capacity[][] =
- {
- {7.0, 16.0},
- {14.0, 32.0},
- {28.0, 50.0},
- {7.0, 16.0},
- {14.0, 32.0},
- {28.0, 50.0},
- {7.0, 16.0},
- {14.0, 32.0},
- {28.0, 50.0},
- {7.0, 16.0},
- {14.0, 32.0},
- {28.0, 50.0},
- {7.0, 16.0},
- {14.0, 32.0}
- };
- return capacity[type][IsPill(drugtype)];
- }
- stock GiveDrugPackage(playerid, type, drugtype, Float:quantity, strength)
- {
- for (new i = 0; i < 10; i++) if (DrugData[playerid][i][drugQuantity] == 0)
- {
- new query[128];
-
- DrugData[playerid][i][drugPackage] = type;
- DrugData[playerid][i][drugType] = drugtype;
- DrugData[playerid][i][drugQuantity] = quantity;
- DrugData[playerid][i][drugStrength] = strength;
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO player_drugs (playersqlid, slot, package, type, quantity, strength) VALUES (%d, %d, %d, %d, %.1f, %d)", PlayerData[playerid][pSQLID], i, type, drugtype, quantity, strength);
- mysql_tquery(m_Handle, query);
- return 1;
- }
- return 0;
- }
- stock RemoveDrugPackage(playerid, slot)
- {
- new query[100];
-
- DrugData[playerid][slot][drugPackage] = 0;
- DrugData[playerid][slot][drugType] = 0;
- DrugData[playerid][slot][drugQuantity] = 0.0;
- DrugData[playerid][slot][drugStrength] = 0;
-
- mysql_format(m_Handle, query, sizeof(query), "DELETE FROM player_drugs WHERE playersqlid = %d AND slot = %d", PlayerData[playerid][pSQLID], slot);
- mysql_tquery(m_Handle, query);
- }
- Float:GetHousePackageCapacity(type)
- {
- new Float:capacity;
- switch (type)
- {
- case 0: capacity = 33.0;
- case 1: capacity = 53.0;
- case 2: capacity = 113.0;
- case 3: capacity = 113.0;
- case 4: capacity = 103.0;
- case 5: capacity = 103.0;
- case 6: capacity = 83.0;
- case 7: capacity = 123.0;
- case 8: capacity = 14.0;
- }
- return capacity;
- }
- GetPackageModel(type)
- {
- new model;
- switch (type)
- {
- case 0: model = 2768;
- case 1: model = 2647;
- case 2: model = 19562;
- case 3: model = 2694;
- case 4: model = 19569;
- case 5: model = 1575;
- case 6: model = 1582;
- case 7: model = 1220;
- case 8: model = 19896;
- }
- return model;
- }
- GetPackageName(type)
- {
- new name[32];
- switch (type)
- {
- case 0: name = "Cluckin' Bell Burger Box";
- case 1: name = "Burgershot Cup";
- case 2: name = "Cok'O'Pops";
- case 3: name = "Shoe Box";
- case 4: name = "Milk Carton";
- case 5: name = "Wrapped Package";
- case 6: name = "Pizza Box";
- case 7: name = "Cardboard Box";
- case 8: name = "Cigarette Pack";
- }
- return name;
- }
- public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
- {
- if (weaponid > 0 && !PlayerHasWeapon(playerid, weaponid))
- return 0;
-
- switch(weaponid)
- {
- case 1: amount = 10;
- case 3: amount = 11;
- case 4: amount = 11;
- case 5: amount = 10;
- case 6: amount = 11;
- case 7: amount = 11;
- case 8: amount = 20;
- case 10 .. 15: amount = 5;
- case 22: amount = 29;
- case 23: amount = 13;
- case 24: amount = 30;
- case 25: amount = 75;
- case 27: amount = 65;
- case 28: amount = 34;
- case 29: amount = 16;
- case 30: amount = 35;
- case 31: amount = 18;
- case 32: amount = 14;
- case 33: amount = 60;
- case 34: amount = 100;
- }
- switch(bodypart)
- {
- case BODY_PART_HEAD: amount = amount * 1.5;
- case BODY_PART_LEFT_LEG, BODY_PART_RIGHT_LEG: amount = amount * 0.8;
- }
-
- new string[128];
- if(damagedid != INVALID_PLAYER_ID)
- {
- new
- Float:targetPos[3],
- Float:distance,
- distancex;
-
- GetPlayerPos(damagedid, targetPos[0], targetPos[1], targetPos[2]);
- distance = GetPlayerDistanceFromPoint(playerid, targetPos[0], targetPos[1], targetPos[2]);
- distancex = floatround(distance, floatround_round);
-
- switch(distancex)
- {
- case 46 .. 70:
- {
- if(weaponid != WEAPON_SNIPER && weaponid != WEAPON_RIFLE)
- amount = amount * 0.74;
-
- else if(weaponid == WEAPON_M4 || weaponid == WEAPON_AK47)
- amount = amount * 0.79;
- }
- case 71 .. 200:
- {
- if(weaponid != WEAPON_SNIPER && weaponid != WEAPON_RIFLE)
- amount = amount * 0.70;
-
- else if(weaponid == WEAPON_M4 || weaponid == WEAPON_AK47)
- amount = amount * 0.74;
- }
- }
-
- new Float: playerHealth, Float: playerArmor, Float: amoun;
-
- GetPlayerHealth(damagedid, playerHealth);
- GetPlayerArmour(damagedid, playerArmor);
-
- foreach(new i : Player)
- {
- if(WatchingDamages[i][damagedid] == 1)
- {
- Message(i, COLOR_WHITE, "%s did %.2f damage to {FF6347}%s{FFFFFF} with a %s, Health: %f", ReturnName(playerid), amount, ReturnName(damagedid), ReturnWeaponName(weaponid), playerHealth-amount);
- }
- }
-
- if(GetPlayerTeam(damagedid) == STATE_WOUNDED)
- {
- if(!PlayerData[damagedid][pExecuteTime]){
- SetDead(damagedid);
- SetPlayerTeam(damagedid, STATE_DEAD);
-
- format(string, sizeof(string), "Executed by %s with %s", ReturnName(playerid), ReturnWeaponName(weaponid));
- LogPlayerAction(damagedid, string);
-
- format(string, sizeof(string), "Executed %s with %s", ReturnName(damagedid), ReturnWeaponName(weaponid));
- LogPlayerAction(playerid, string);
- return false;
- }
-
- SetPlayerHealth(damagedid, playerHealth);
- return false;
- }
-
- if(GetPlayerTeam(damagedid) != STATE_ALIVE) {
- SetPlayerHealth(damagedid, playerHealth);
- return false;
- }
-
- if(GetPlayerTeam(damagedid) == STATE_ALIVE){
- if(playerArmor > 0) { // if armor is greater than 0
- amoun = playerArmor - amount; // armor - amount taken
-
- if(amoun <= 0){ // if armor - amount taken is less than or equal to 0
- SetPlayerHealth(damagedid, playerHealth - amount); // hp is set
- }
- else { // if the amoun is greater than 0
- if(bodypart != BODY_PART_HEAD && bodypart != BODY_PART_RIGHT_LEG && bodypart != BODY_PART_LEFT_LEG){ // if bodypart isn't head or legs
- SetPlayerArmour(damagedid, playerArmor - amount);
- }
- else{ // if bodypart is legs or head
- SetPlayerHealth(damagedid, playerHealth - amount); // hp is taken
- }
- }
- }
- else {
- SetPlayerHealth(damagedid, playerHealth - amount);
- }
-
- if(PlayerData[playerid][pRubberbullet] && GetPlayerWeapon(playerid) == 25)
- {
- if(!GetDistanceBetweenPlayers(playerid, damagedid, 26))
- {
- SendClientMessage(playerid, COLOR_WHITE, "SERVER: Your shotguns beanbags don't go that far.");
-
- SetPlayerHealth(damagedid, playerHealth);
- if(playerArmor > 0) SetPlayerArmour(damagedid, playerArmor);
- return 0;
- }
-
- format(string, sizeof(string), "Rubberbulleted by %s", ReturnName(playerid));
- LogPlayerAction(damagedid, string);
-
- format(string, sizeof(string), "Rubberbulleted player %s", ReturnName(damagedid));
- LogPlayerAction(playerid, string);
-
- SendNearbyMessage(damagedid, 20.0, COLOR_EMOTE, "* %s gets hit by %s's rubberbullets and falls.", ReturnName(damagedid, 0), ReturnName(playerid, 0));
-
- format(string, sizeof(string), "[ ! ] %s hit you with a rubberbullet!", ReturnName(playerid, 0));
- SendClientMessage(damagedid, COLOR_ADM, string);
-
- format(string, sizeof(string), "[ ! ] You hit %s with your rubberbullets!", ReturnName(damagedid, 0));
- SendClientMessage(playerid, COLOR_ADM, string);
-
- ClearAnimations(damagedid, 1);
-
- SetPlayerDrunkLevel(damagedid, 6000);
- TogglePlayerControllable(damagedid, 0);
-
- SetTimerEx("OnPlayerRubberbulleted", 1100, false, "i", damagedid);
- PlayerIsTased[damagedid] = 21;
-
- SetPlayerHealth(damagedid, playerHealth);
- if(playerArmor > 0) SetPlayerArmour(damagedid, playerArmor);
- return 0;
- }
-
- if(PlayerData[playerid][pTaser] && GetPlayerWeapon(playerid) == 23)
- {
- if(!GetDistanceBetweenPlayers(playerid, damagedid, 10.3))
- {
- SendClientMessage(playerid, COLOR_WHITE, "SERVER: You aren't close enough for your prongs to hit.");
-
- SetPlayerHealth(damagedid, playerHealth);
- if(playerArmor > 0) SetPlayerArmour(damagedid, playerArmor);
- return 0;
- }
-
- format(string, sizeof(string), "Tasered by %s", ReturnName(playerid));
- LogPlayerAction(damagedid, string);
-
- format(string, sizeof(string), "Tased player %s", ReturnName(damagedid));
- LogPlayerAction(playerid, string);
-
- ClearAnimations(damagedid, 1);
- SetPlayerDrunkLevel(damagedid, 5000);
-
- SendNearbyMessage(damagedid, 20.0, COLOR_EMOTE, "* %s falls on the ground after being hit by %s's taser.", ReturnName(damagedid, 0), ReturnName(playerid, 0));
- GameTextForPlayer(damagedid, "~r~You Are Tasered", 3000, 3);
-
- TogglePlayerControllable(damagedid, false);
-
- format(string, sizeof(string), "[ ! ] You were tasered by %s!", ReturnName(playerid, 0));
- SendClientMessage(damagedid, COLOR_ADM, string);
-
- format(string, sizeof(string), "[ ! ] You tasered %s!", ReturnName(damagedid, 0));
- SendClientMessage(playerid, COLOR_ADM, string);
-
- SetTimerEx("OnPlayerTasered", 1200, false, "i", damagedid);
- PlayerIsTased[damagedid] = 21;
-
- SetPlayerHealth(damagedid, playerHealth);
- if(playerArmor > 0) SetPlayerArmour(damagedid, playerArmor);
- return 0;
- }
- if (PlayerData[playerid][pTackle] && weaponid == 0) {
- if (random(7)) {
- format(string, sizeof(string), "Tackled by %s", ReturnName(playerid));
- LogPlayerAction(damagedid, string);
-
- format(string, sizeof(string), "Tackled player %s", ReturnName(damagedid));
- LogPlayerAction(playerid, string);
- ClearAnimations(damagedid, 1);
- TogglePlayerControllable(damagedid, false);
- SendNearbyMessage(damagedid, 20.0, COLOR_EMOTE, "* %s falls on the ground after being tackled by %s.", ReturnName(damagedid, 0), ReturnName(playerid, 0));
- GameTextForPlayer(damagedid, "~r~You Were Tackled", 3000, 3);
- format(string, sizeof(string), "[ ! ] %s tackled you!", ReturnName(playerid, 0));
- SendClientMessage(damagedid, COLOR_ADM, string);
-
- format(string, sizeof(string), "[ ! ] You tackled %s!", ReturnName(damagedid, 0));
- SendClientMessage(playerid, COLOR_ADM, string);
- SetTimerEx("OnPlayerTackled", 1200, false, "iii", damagedid, playerid, true);
- PlayerIsTased[damagedid] = 16;
- } else {
- format(string, sizeof(string), "Attempted to be tackled by %s", ReturnName(playerid));
- LogPlayerAction(damagedid, string);
-
- format(string, sizeof(string), "Attempted to tackle player %s", ReturnName(damagedid));
- LogPlayerAction(playerid, string);
- cmd_me(playerid, sprintf("attempts to tackle %s and fails.", ReturnName(damagedid)));
-
- ClearAnimations(playerid, 1);
- TogglePlayerControllable(playerid, false);
- SetTimerEx("OnPlayerTackled", 1200, false, "iii", damagedid, playerid, false);
- PlayerIsTased[playerid] = 16;
- }
- SetPlayerHealth(damagedid, playerHealth);
- if(playerArmor > 0) SetPlayerArmour(damagedid, playerArmor);
- return 0;
- }
- }
-
- AddDamages(damagedid, playerid, weaponid, bodypart, amount);
-
- if(!PlayerData[damagedid][pAdminDuty]) {
- if(bodypart == BODY_PART_LEFT_LEG || bodypart == BODY_PART_RIGHT_LEG) {
- if(!PlayerData[damagedid][pLegShot]) {
- PlayerData[damagedid][pLegShot] = true;
- LegShotTimer[damagedid] = SetTimerEx("LegShotEnd", 900000, false, "i", damagedid);
- SendClientMessage(damagedid, COLOR_ADM, "-> You've been hit in the leg, you're gonna struggle with running and jumping.");
- }
- }
- }
-
- /*if(bodypart == BODY_PART_RIGHT_LEG){
- if(!PlayerData[damagedid][pLegShot]) {
- PlayerData[damagedid][pLegShot] = true;
- LegShotTimer[damagedid] = SetTimerEx("LegShotEnd", 900000, false, "i", damagedid);
- SendClientMessage(damagedid, COLOR_ADM, "-> You've been hit in the leg, you're gonna struggle with running and jumping.");
- }
- }*/
-
- if( playerHealth - amount <= 5 && GetPlayerTeam(damagedid) == STATE_ALIVE ) {
- SetBrutallyWounded( damagedid, playerid, weaponid );
-
- SetPlayerTeam(damagedid, STATE_WOUNDED);
- if(IsPlayerInAnyVehicle(damagedid)) ClearAnimations(damagedid);
- return false;
- }
-
- if( playerHealth - amount <= 1 ){
- SetBrutallyWounded(damagedid, playerid, weaponid);
- SetPlayerTeam(damagedid, STATE_WOUNDED);
- return false;
- }
- }
- return true;
- }
- public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
- {
- new
- string[128];
-
- if(GetTickCount() > (PlayerData[playerid ][pPauseCheck]+2000))
- {
- format(string, sizeof(string), "%s(%d) may be cheating OR desynced (or TABBED) while shooting.", ReturnName(playerid), playerid);
- adminWarn(1, string);
- }
- if(PlayerHasWeapon(playerid, weaponid))
- {
- UpdatePlayerWeapon(playerid, weaponid);
- }
- else
- {
- if(!PlayerData[playerid][pExecuteTime])
- {
- format(string, sizeof(string), "%s(%d) may be cheating[Shooting] a: %s (Ammo: %i)", ReturnName(playerid), playerid, ReturnWeaponName(weaponid), GetPlayerAmmo(playerid));
- adminWarn(1, string);
- return 0;
- }
- }
-
- if(hittype == BULLET_HIT_TYPE_PLAYER)
- {
- if(GetPlayerTeam(hitid) == STATE_WOUNDED){
- if(!PlayerData[hitid][pExecuteTime]) {
- SetDead(hitid);
- SetPlayerTeam(hitid, STATE_DEAD);
-
- format(string, sizeof(string), "Executed by %s with %s", ReturnName(playerid), ReturnWeaponName(weaponid));
- LogPlayerAction(hitid, string);
-
- format(string, sizeof(string), "Executed %s with %s", ReturnName(hitid), ReturnWeaponName(weaponid));
- LogPlayerAction(playerid, string);
- return false;
- }
- return false;
- }
- else{
- if(GetPlayerTeam(hitid) != STATE_ALIVE)return false;
- }
- }
-
- if(PlayerData[playerid][pTaser] && weaponid == 23)
- {
- //SetPlayerArmedWeapon(playerid, 0);
-
- ApplyAnimation(playerid, "COLT45", "colt45_reload", 4.1, 0, 0, 0, 0, 0);
- SetTimerEx("OnTaserShoot", 1100, false, "i", playerid);
- }
- return true;
- }
- public OnPlayerConnect(playerid)
- {
- for(new i = 0; i < MAX_PLAYER_ATTACHED_OBJECTS; i++)
- {
- RemovePlayerAttachedObject(playerid, i);
- }
-
- foreach(new i : Player)
- {
- if(PlayerData[i][pAdmin] && PlayerData[i][pToggleConnects])
- {
- Message(i, COLOR_GREY, "**%s[%i] connected to the server. IP: %s", ReturnName(playerid), playerid, ReturnIP(playerid));
- }
- }
-
- ResetPlayerWeapons(playerid);
- ResetPlayerMoney(playerid);
-
- DefaultPlayerValues(playerid);
- CheckPlayerBans(playerid);
-
- PreloadAnimations(playerid);
- SetPlayerColor(playerid, COLOR_GREY);
- phone_OnPlayerConnect(playerid);
- //createMDTTextdraws(playerid);
- InitMDC(playerid);
- SetUp[playerid][0] = CreatePlayerTextDraw(playerid, 160.000000, 173.000000, "_");
- PlayerTextDrawBackgroundColor(playerid, SetUp[playerid][0], 255);
- PlayerTextDrawFont(playerid, SetUp[playerid][0], 1);
- PlayerTextDrawLetterSize(playerid, SetUp[playerid][0], 0.500000, 14.599998);
- PlayerTextDrawColor(playerid, SetUp[playerid][0], -1);
- PlayerTextDrawSetOutline(playerid, SetUp[playerid][0], 0);
- PlayerTextDrawSetProportional(playerid, SetUp[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, SetUp[playerid][0], 1);
- PlayerTextDrawUseBox(playerid, SetUp[playerid][0], 1);
- PlayerTextDrawBoxColor(playerid, SetUp[playerid][0], 119);
- PlayerTextDrawTextSize(playerid, SetUp[playerid][0], 10.000000, 20.000000);
- SetUp[playerid][1] = CreatePlayerTextDraw(playerid, 9.000000, 162.000000, "Character Setup");
- PlayerTextDrawBackgroundColor(playerid, SetUp[playerid][1], 255);
- PlayerTextDrawFont(playerid, SetUp[playerid][1], 0);
- PlayerTextDrawLetterSize(playerid, SetUp[playerid][1], 0.569999, 1.799998);
- PlayerTextDrawColor(playerid, SetUp[playerid][1], -1);
- PlayerTextDrawSetOutline(playerid, SetUp[playerid][1], 1);
- PlayerTextDrawSetProportional(playerid, SetUp[playerid][1], 1);
- SetUp[playerid][2] = CreatePlayerTextDraw(playerid, 18.000000, 184.000000, "~g~~h~Gender:");
- PlayerTextDrawBackgroundColor(playerid, SetUp[playerid][2], 255);
- PlayerTextDrawFont(playerid, SetUp[playerid][2], 2);
- PlayerTextDrawLetterSize(playerid, SetUp[playerid][2], 0.239999, 1.200000);
- PlayerTextDrawColor(playerid, SetUp[playerid][2], -1);
- PlayerTextDrawSetOutline(playerid, SetUp[playerid][2], 1);
- PlayerTextDrawSetProportional(playerid, SetUp[playerid][2], 1);
- SetUp[playerid][3] = CreatePlayerTextDraw(playerid, 19.000000, 195.000000, "Male");
- PlayerTextDrawTextSize(playerid, SetUp[playerid][3], 100.000000, 10.000000);
- PlayerTextDrawBackgroundColor(playerid, SetUp[playerid][3], 255);
- PlayerTextDrawFont(playerid, SetUp[playerid][3], 2);
- PlayerTextDrawLetterSize(playerid, SetUp[playerid][3], 0.239999, 1.100000);
- PlayerTextDrawColor(playerid, SetUp[playerid][3], -1);
- PlayerTextDrawSetOutline(playerid, SetUp[playerid][3], 1);
- PlayerTextDrawSetProportional(playerid, SetUp[playerid][3], 1);
- PlayerTextDrawSetSelectable(playerid, SetUp[playerid][3], true);
- SetUp[playerid][4] = CreatePlayerTextDraw(playerid, 19.000000, 205.000000, "Female");
- PlayerTextDrawTextSize(playerid, SetUp[playerid][4], 100.000000, 10.000000);
- PlayerTextDrawBackgroundColor(playerid, SetUp[playerid][4], 255);
- PlayerTextDrawFont(playerid, SetUp[playerid][4], 2);
- PlayerTextDrawLetterSize(playerid, SetUp[playerid][4], 0.240000, 1.100000);
- PlayerTextDrawColor(playerid, SetUp[playerid][4], -1);
- PlayerTextDrawSetOutline(playerid, SetUp[playerid][4], 1);
- PlayerTextDrawSetProportional(playerid, SetUp[playerid][4], 1);
- PlayerTextDrawSetSelectable(playerid, SetUp[playerid][4], true);
- SetUp[playerid][5] = CreatePlayerTextDraw(playerid, 18.000000, 225.000000, "~g~~h~Age:");
- PlayerTextDrawBackgroundColor(playerid, SetUp[playerid][5], 255);
- PlayerTextDrawFont(playerid, SetUp[playerid][5], 2);
- PlayerTextDrawLetterSize(playerid, SetUp[playerid][5], 0.239999, 1.100000);
- PlayerTextDrawColor(playerid, SetUp[playerid][5], -1);
- PlayerTextDrawSetOutline(playerid, SetUp[playerid][5], 1);
- PlayerTextDrawSetProportional(playerid, SetUp[playerid][5], 1);
- SetUp[playerid][6] = CreatePlayerTextDraw(playerid, 19.000000, 235.000000, "13 years old");
- PlayerTextDrawBackgroundColor(playerid, SetUp[playerid][6], 255);
- PlayerTextDrawFont(playerid, SetUp[playerid][6], 2);
- PlayerTextDrawLetterSize(playerid, SetUp[playerid][6], 0.230000, 1.100000);
- PlayerTextDrawColor(playerid, SetUp[playerid][6], -1);
- PlayerTextDrawSetOutline(playerid, SetUp[playerid][6], 1);
- PlayerTextDrawSetProportional(playerid, SetUp[playerid][6], 1);
- SetUp[playerid][7] = CreatePlayerTextDraw(playerid, 123.000000, 235.000000, "-");
- PlayerTextDrawAlignment(playerid, SetUp[playerid][7], 2);
- PlayerTextDrawBackgroundColor(playerid, SetUp[playerid][7], 255);
- PlayerTextDrawFont(playerid, SetUp[playerid][7], 0);
- PlayerTextDrawLetterSize(playerid, SetUp[playerid][7], 0.589999, 1.200000);
- PlayerTextDrawColor(playerid, SetUp[playerid][7], -1);
- PlayerTextDrawSetOutline(playerid, SetUp[playerid][7], 1);
- PlayerTextDrawSetProportional(playerid, SetUp[playerid][7], 1);
- PlayerTextDrawUseBox(playerid, SetUp[playerid][7], 1);
- PlayerTextDrawBoxColor(playerid, SetUp[playerid][7], 68);
- PlayerTextDrawTextSize(playerid, SetUp[playerid][7], 20.000000, 15.000000);
- PlayerTextDrawSetSelectable(playerid, SetUp[playerid][7], true);
- SetUp[playerid][8] = CreatePlayerTextDraw(playerid, 143.000000, 235.000000, "+");
- PlayerTextDrawAlignment(playerid, SetUp[playerid][8], 2);
- PlayerTextDrawBackgroundColor(playerid, SetUp[playerid][8], 255);
- PlayerTextDrawFont(playerid, SetUp[playerid][8], 0);
- PlayerTextDrawLetterSize(playerid, SetUp[playerid][8], 0.389999, 1.200000);
- PlayerTextDrawColor(playerid, SetUp[playerid][8], -1);
- PlayerTextDrawSetOutline(playerid, SetUp[playerid][8], 1);
- PlayerTextDrawSetProportional(playerid, SetUp[playerid][8], 1);
- PlayerTextDrawUseBox(playerid, SetUp[playerid][8], 1);
- PlayerTextDrawBoxColor(playerid, SetUp[playerid][8], 68);
- PlayerTextDrawTextSize(playerid, SetUp[playerid][8], 20.000000, 15.000000);
- PlayerTextDrawSetSelectable(playerid, SetUp[playerid][8], true);
- SetUp[playerid][9] = CreatePlayerTextDraw(playerid, 18.000000, 256.000000, "~g~~h~Outfit:");
- PlayerTextDrawBackgroundColor(playerid, SetUp[playerid][9], 255);
- PlayerTextDrawFont(playerid, SetUp[playerid][9], 2);
- PlayerTextDrawLetterSize(playerid, SetUp[playerid][9], 0.239999, 1.100000);
- PlayerTextDrawColor(playerid, SetUp[playerid][9], -1);
- PlayerTextDrawSetOutline(playerid, SetUp[playerid][9], 1);
- PlayerTextDrawSetProportional(playerid, SetUp[playerid][9], 1);
- SetUp[playerid][10] = CreatePlayerTextDraw(playerid, 19.000000, 266.000000, "Skin: 299");
- PlayerTextDrawBackgroundColor(playerid, SetUp[playerid][10], 255);
- PlayerTextDrawFont(playerid, SetUp[playerid][10], 2);
- PlayerTextDrawLetterSize(playerid, SetUp[playerid][10], 0.230000, 1.100000);
- PlayerTextDrawColor(playerid, SetUp[playerid][10], -1);
- PlayerTextDrawSetOutline(playerid, SetUp[playerid][10], 1);
- PlayerTextDrawSetProportional(playerid, SetUp[playerid][10], 1);
- SetUp[playerid][11] = CreatePlayerTextDraw(playerid, 123.000000, 267.000000, "<<");
- PlayerTextDrawAlignment(playerid, SetUp[playerid][11], 2);
- PlayerTextDrawBackgroundColor(playerid, SetUp[playerid][11], 255);
- PlayerTextDrawFont(playerid, SetUp[playerid][11], 0);
- PlayerTextDrawLetterSize(playerid, SetUp[playerid][11], 0.219999, 1.200000);
- PlayerTextDrawColor(playerid, SetUp[playerid][11], -1);
- PlayerTextDrawSetOutline(playerid, SetUp[playerid][11], 1);
- PlayerTextDrawSetProportional(playerid, SetUp[playerid][11], 1);
- PlayerTextDrawUseBox(playerid, SetUp[playerid][11], 1);
- PlayerTextDrawBoxColor(playerid, SetUp[playerid][11], 68);
- PlayerTextDrawTextSize(playerid, SetUp[playerid][11], 20.000000, 15.000000);
- PlayerTextDrawSetSelectable(playerid, SetUp[playerid][11], true);
- SetUp[playerid][12] = CreatePlayerTextDraw(playerid, 143.000000, 267.000000, ">>");
- PlayerTextDrawAlignment(playerid, SetUp[playerid][12], 2);
- PlayerTextDrawBackgroundColor(playerid, SetUp[playerid][12], 255);
- PlayerTextDrawFont(playerid, SetUp[playerid][12], 0);
- PlayerTextDrawLetterSize(playerid, SetUp[playerid][12], 0.219999, 1.200000);
- PlayerTextDrawColor(playerid, SetUp[playerid][12], -1);
- PlayerTextDrawSetOutline(playerid, SetUp[playerid][12], 1);
- PlayerTextDrawSetProportional(playerid, SetUp[playerid][12], 1);
- PlayerTextDrawUseBox(playerid, SetUp[playerid][12], 1);
- PlayerTextDrawBoxColor(playerid, SetUp[playerid][12], 68);
- PlayerTextDrawTextSize(playerid, SetUp[playerid][12], 20.000000, 15.000000);
- PlayerTextDrawSetSelectable(playerid, SetUp[playerid][12], true);
- SetUp[playerid][13] = CreatePlayerTextDraw(playerid, 37.000000, 290.000000, "Reset");
- PlayerTextDrawAlignment(playerid, SetUp[playerid][13], 2);
- PlayerTextDrawBackgroundColor(playerid, SetUp[playerid][13], 255);
- PlayerTextDrawFont(playerid, SetUp[playerid][13], 2);
- PlayerTextDrawLetterSize(playerid, SetUp[playerid][13], 0.230000, 1.200000);
- PlayerTextDrawColor(playerid, SetUp[playerid][13], -1);
- PlayerTextDrawSetOutline(playerid, SetUp[playerid][13], 1);
- PlayerTextDrawSetProportional(playerid, SetUp[playerid][13], 1);
- PlayerTextDrawUseBox(playerid, SetUp[playerid][13], 1);
- PlayerTextDrawBoxColor(playerid, SetUp[playerid][13], 68);
- PlayerTextDrawTextSize(playerid, SetUp[playerid][13], 20.000000, 37.000000);
- PlayerTextDrawSetSelectable(playerid, SetUp[playerid][13], true);
- SetUp[playerid][14] = CreatePlayerTextDraw(playerid, 85.000000, 290.000000, "Confirm");
- PlayerTextDrawAlignment(playerid, SetUp[playerid][14], 2);
- PlayerTextDrawBackgroundColor(playerid, SetUp[playerid][14], 255);
- PlayerTextDrawFont(playerid, SetUp[playerid][14], 2);
- PlayerTextDrawLetterSize(playerid, SetUp[playerid][14], 0.230000, 1.200000);
- PlayerTextDrawColor(playerid, SetUp[playerid][14], -1);
- PlayerTextDrawSetOutline(playerid, SetUp[playerid][14], 1);
- PlayerTextDrawSetProportional(playerid, SetUp[playerid][14], 1);
- PlayerTextDrawUseBox(playerid, SetUp[playerid][14], 1);
- PlayerTextDrawBoxColor(playerid, SetUp[playerid][14], 68);
- PlayerTextDrawTextSize(playerid, SetUp[playerid][14], 20.000000, 46.000000);
- PlayerTextDrawSetSelectable(playerid, SetUp[playerid][14], true);
- SetUp[playerid][15] = CreatePlayerTextDraw(playerid, 133.000000, 290.000000, "Help");
- PlayerTextDrawAlignment(playerid, SetUp[playerid][15], 2);
- PlayerTextDrawBackgroundColor(playerid, SetUp[playerid][15], 255);
- PlayerTextDrawFont(playerid, SetUp[playerid][15], 2);
- PlayerTextDrawLetterSize(playerid, SetUp[playerid][15], 0.230000, 1.200000);
- PlayerTextDrawColor(playerid, SetUp[playerid][15], -1);
- PlayerTextDrawSetOutline(playerid, SetUp[playerid][15], 1);
- PlayerTextDrawSetProportional(playerid, SetUp[playerid][15], 1);
- PlayerTextDrawUseBox(playerid, SetUp[playerid][15], 1);
- PlayerTextDrawBoxColor(playerid, SetUp[playerid][15], 68);
- PlayerTextDrawTextSize(playerid, SetUp[playerid][15], 20.000000, 37.000000);
- PlayerTextDrawSetSelectable(playerid, SetUp[playerid][15], true);
- MDC_Layout[playerid][0] = CreatePlayerTextDraw(playerid, 519.575378, 177.166748, "box");
- PlayerTextDrawLetterSize(playerid, MDC_Layout[playerid][0], 0.000000, 1.566619);
- PlayerTextDrawTextSize(playerid, MDC_Layout[playerid][0], 615.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, MDC_Layout[playerid][0], 1);
- PlayerTextDrawColor(playerid, MDC_Layout[playerid][0], -1);
- PlayerTextDrawUseBox(playerid, MDC_Layout[playerid][0], 1);
- PlayerTextDrawBoxColor(playerid, MDC_Layout[playerid][0], -1717986982);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, MDC_Layout[playerid][0], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_Layout[playerid][0], 1962829311);
- PlayerTextDrawFont(playerid, MDC_Layout[playerid][0], 1);
- PlayerTextDrawSetProportional(playerid, MDC_Layout[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][0], 0);
- MDC_Layout[playerid][1] = CreatePlayerTextDraw(playerid, 565.959411, 177.750000, "EMERGENCY_LIGHT");
- PlayerTextDrawLetterSize(playerid, MDC_Layout[playerid][1], 0.247730, 1.174165);
- PlayerTextDrawAlignment(playerid, MDC_Layout[playerid][1], 2);
- PlayerTextDrawColor(playerid, MDC_Layout[playerid][1], -1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, MDC_Layout[playerid][1], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_Layout[playerid][1], 255);
- PlayerTextDrawFont(playerid, MDC_Layout[playerid][1], 1);
- PlayerTextDrawSetProportional(playerid, MDC_Layout[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][1], 0);
- MDC_Layout[playerid][2] = CreatePlayerTextDraw(playerid, 519.106933, 202.250076, "box");
- PlayerTextDrawLetterSize(playerid, MDC_Layout[playerid][2], 0.000000, 12.623718);
- PlayerTextDrawTextSize(playerid, MDC_Layout[playerid][2], 616.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, MDC_Layout[playerid][2], 1);
- PlayerTextDrawColor(playerid, MDC_Layout[playerid][2], -1);
- PlayerTextDrawUseBox(playerid, MDC_Layout[playerid][2], 1);
- PlayerTextDrawBoxColor(playerid, MDC_Layout[playerid][2], -1717986982);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, MDC_Layout[playerid][2], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_Layout[playerid][2], 1962829311);
- PlayerTextDrawFont(playerid, MDC_Layout[playerid][2], 1);
- PlayerTextDrawSetProportional(playerid, MDC_Layout[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][2], 0);
- MDC_Layout[playerid][3] = CreatePlayerTextDraw(playerid, 526.603271, 206.916717, "PRIMARY");
- PlayerTextDrawLetterSize(playerid, MDC_Layout[playerid][3], 0.153557, 1.086665);
- PlayerTextDrawAlignment(playerid, MDC_Layout[playerid][3], 1);
- PlayerTextDrawColor(playerid, MDC_Layout[playerid][3], 255);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][3], 0);
- PlayerTextDrawSetOutline(playerid, MDC_Layout[playerid][3], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_Layout[playerid][3], 255);
- PlayerTextDrawFont(playerid, MDC_Layout[playerid][3], 2);
- PlayerTextDrawSetProportional(playerid, MDC_Layout[playerid][3], 1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][3], 0);
- MDC_Layout[playerid][4] = CreatePlayerTextDraw(playerid, 576.735107, 205.166641, "~g~Off");
- PlayerTextDrawLetterSize(playerid, MDC_Layout[playerid][4], 0.217276, 1.337499);
- PlayerTextDrawAlignment(playerid, MDC_Layout[playerid][4], 1);
- PlayerTextDrawColor(playerid, MDC_Layout[playerid][4], -1523963137);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][4], 0);
- PlayerTextDrawSetOutline(playerid, MDC_Layout[playerid][4], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_Layout[playerid][4], 255);
- PlayerTextDrawFont(playerid, MDC_Layout[playerid][4], 2);
- PlayerTextDrawSetProportional(playerid, MDC_Layout[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][4], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_Layout[playerid][4], true);
- MDC_Layout[playerid][5] = CreatePlayerTextDraw(playerid, 526.603271, 225.583312, "STROBE");
- PlayerTextDrawLetterSize(playerid, MDC_Layout[playerid][5], 0.153557, 1.086665);
- PlayerTextDrawAlignment(playerid, MDC_Layout[playerid][5], 1);
- PlayerTextDrawColor(playerid, MDC_Layout[playerid][5], 255);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][5], 0);
- PlayerTextDrawSetOutline(playerid, MDC_Layout[playerid][5], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_Layout[playerid][5], 255);
- PlayerTextDrawFont(playerid, MDC_Layout[playerid][5], 2);
- PlayerTextDrawSetProportional(playerid, MDC_Layout[playerid][5], 1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][5], 0);
- MDC_Layout[playerid][6] = CreatePlayerTextDraw(playerid, 576.735107, 223.833312, "~g~Off");
- PlayerTextDrawLetterSize(playerid, MDC_Layout[playerid][6], 0.217276, 1.337499);
- PlayerTextDrawAlignment(playerid, MDC_Layout[playerid][6], 1);
- PlayerTextDrawColor(playerid, MDC_Layout[playerid][6], -1523963137);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][6], 0);
- PlayerTextDrawSetOutline(playerid, MDC_Layout[playerid][6], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_Layout[playerid][6], 255);
- PlayerTextDrawFont(playerid, MDC_Layout[playerid][6], 2);
- PlayerTextDrawSetProportional(playerid, MDC_Layout[playerid][6], 1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][6], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_Layout[playerid][6], true);
- MDC_Layout[playerid][7] = CreatePlayerTextDraw(playerid, 526.134765, 244.833312, "SEARCH");
- PlayerTextDrawLetterSize(playerid, MDC_Layout[playerid][7], 0.153557, 1.086665);
- PlayerTextDrawAlignment(playerid, MDC_Layout[playerid][7], 1);
- PlayerTextDrawColor(playerid, MDC_Layout[playerid][7], 255);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][7], 0);
- PlayerTextDrawSetOutline(playerid, MDC_Layout[playerid][7], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_Layout[playerid][7], 255);
- PlayerTextDrawFont(playerid, MDC_Layout[playerid][7], 2);
- PlayerTextDrawSetProportional(playerid, MDC_Layout[playerid][7], 1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][7], 0);
- MDC_Layout[playerid][8] = CreatePlayerTextDraw(playerid, 576.735046, 243.083282, "~g~Off");
- PlayerTextDrawLetterSize(playerid, MDC_Layout[playerid][8], 0.217276, 1.337499);
- PlayerTextDrawAlignment(playerid, MDC_Layout[playerid][8], 1);
- PlayerTextDrawColor(playerid, MDC_Layout[playerid][8], -1523963137);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][8], 0);
- PlayerTextDrawSetOutline(playerid, MDC_Layout[playerid][8], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_Layout[playerid][8], 255);
- PlayerTextDrawFont(playerid, MDC_Layout[playerid][8], 2);
- PlayerTextDrawSetProportional(playerid, MDC_Layout[playerid][8], 1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][8], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_Layout[playerid][8], true);
- MDC_Layout[playerid][9] = CreatePlayerTextDraw(playerid, 595.476196, 205.750015, "~y~Static");
- PlayerTextDrawLetterSize(playerid, MDC_Layout[playerid][9], 0.117012, 1.179999);
- PlayerTextDrawAlignment(playerid, MDC_Layout[playerid][9], 1);
- PlayerTextDrawColor(playerid, MDC_Layout[playerid][9], -1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][9], 0);
- PlayerTextDrawSetOutline(playerid, MDC_Layout[playerid][9], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_Layout[playerid][9], 255);
- PlayerTextDrawFont(playerid, MDC_Layout[playerid][9], 2);
- PlayerTextDrawSetProportional(playerid, MDC_Layout[playerid][9], 1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][9], 0);
- MDC_Layout[playerid][10] = CreatePlayerTextDraw(playerid, 595.944580, 221.500030, "~y~Static");
- PlayerTextDrawLetterSize(playerid, MDC_Layout[playerid][10], 0.116075, 1.284999);
- PlayerTextDrawAlignment(playerid, MDC_Layout[playerid][10], 1);
- PlayerTextDrawColor(playerid, MDC_Layout[playerid][10], -1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][10], 0);
- PlayerTextDrawSetOutline(playerid, MDC_Layout[playerid][10], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_Layout[playerid][10], 255);
- PlayerTextDrawFont(playerid, MDC_Layout[playerid][10], 2);
- PlayerTextDrawSetProportional(playerid, MDC_Layout[playerid][10], 1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][10], 0);
- MDC_Layout[playerid][11] = CreatePlayerTextDraw(playerid, 535.973937, 264.083251, "Dispatch");
- PlayerTextDrawLetterSize(playerid, MDC_Layout[playerid][11], 0.168549, 1.162497);
- PlayerTextDrawAlignment(playerid, MDC_Layout[playerid][11], 1);
- PlayerTextDrawColor(playerid, MDC_Layout[playerid][11], -1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][11], 0);
- PlayerTextDrawSetOutline(playerid, MDC_Layout[playerid][11], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_Layout[playerid][11], 255);
- PlayerTextDrawFont(playerid, MDC_Layout[playerid][11], 2);
- PlayerTextDrawSetProportional(playerid, MDC_Layout[playerid][11], 1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][11], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_Layout[playerid][11], true);
- MDC_Layout[playerid][12] = CreatePlayerTextDraw(playerid, 532.225463, 282.166748, "box");
- PlayerTextDrawLetterSize(playerid, MDC_Layout[playerid][12], 0.000000, 2.691070);
- PlayerTextDrawTextSize(playerid, MDC_Layout[playerid][12], 609.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, MDC_Layout[playerid][12], 1);
- PlayerTextDrawColor(playerid, MDC_Layout[playerid][12], -2139062017);
- PlayerTextDrawUseBox(playerid, MDC_Layout[playerid][12], 1);
- PlayerTextDrawBoxColor(playerid, MDC_Layout[playerid][12], -1523963137);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][12], 0);
- PlayerTextDrawSetOutline(playerid, MDC_Layout[playerid][12], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_Layout[playerid][12], 255);
- PlayerTextDrawFont(playerid, MDC_Layout[playerid][12], 1);
- PlayerTextDrawSetProportional(playerid, MDC_Layout[playerid][12], 1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][12], 0);
- MDC_Layout[playerid][13] = CreatePlayerTextDraw(playerid, 613.279968, 264.083435, "[~bl~IIIIIIII~w~]");
- PlayerTextDrawLetterSize(playerid, MDC_Layout[playerid][13], 0.214465, 1.174165);
- PlayerTextDrawAlignment(playerid, MDC_Layout[playerid][13], 3);
- PlayerTextDrawColor(playerid, MDC_Layout[playerid][13], -1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][13], 0);
- PlayerTextDrawSetOutline(playerid, MDC_Layout[playerid][13], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_Layout[playerid][13], 255);
- PlayerTextDrawFont(playerid, MDC_Layout[playerid][13], 1);
- PlayerTextDrawSetProportional(playerid, MDC_Layout[playerid][13], 1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][13], 0);
- MDC_Layout[playerid][14] = CreatePlayerTextDraw(playerid, 537.379211, 282.166748, "Something_here");
- PlayerTextDrawLetterSize(playerid, MDC_Layout[playerid][14], 0.180261, 0.882498);
- PlayerTextDrawAlignment(playerid, MDC_Layout[playerid][14], 1);
- PlayerTextDrawColor(playerid, MDC_Layout[playerid][14], -1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][14], 0);
- PlayerTextDrawSetOutline(playerid, MDC_Layout[playerid][14], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_Layout[playerid][14], 255);
- PlayerTextDrawFont(playerid, MDC_Layout[playerid][14], 1);
- PlayerTextDrawSetProportional(playerid, MDC_Layout[playerid][14], 1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][14], 0);
- MDC_Layout[playerid][15] = CreatePlayerTextDraw(playerid, 537.379272, 292.083435, "Something_here");
- PlayerTextDrawLetterSize(playerid, MDC_Layout[playerid][15], 0.180261, 0.882498);
- PlayerTextDrawAlignment(playerid, MDC_Layout[playerid][15], 1);
- PlayerTextDrawColor(playerid, MDC_Layout[playerid][15], -1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][15], 0);
- PlayerTextDrawSetOutline(playerid, MDC_Layout[playerid][15], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_Layout[playerid][15], 255);
- PlayerTextDrawFont(playerid, MDC_Layout[playerid][15], 1);
- PlayerTextDrawSetProportional(playerid, MDC_Layout[playerid][15], 1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][15], 0);
- MDC_Layout[playerid][16] = CreatePlayerTextDraw(playerid, 586.573974, 276.916625, "l");
- PlayerTextDrawLetterSize(playerid, MDC_Layout[playerid][16], 0.255225, 3.279999);
- PlayerTextDrawAlignment(playerid, MDC_Layout[playerid][16], 1);
- PlayerTextDrawColor(playerid, MDC_Layout[playerid][16], 255);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][16], 0);
- PlayerTextDrawSetOutline(playerid, MDC_Layout[playerid][16], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_Layout[playerid][16], 255);
- PlayerTextDrawFont(playerid, MDC_Layout[playerid][16], 1);
- PlayerTextDrawSetProportional(playerid, MDC_Layout[playerid][16], 1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][16], 0);
- MDC_Layout[playerid][17] = CreatePlayerTextDraw(playerid, 600.160644, 282.166564, "BACK-UP~n~DEPART");
- PlayerTextDrawLetterSize(playerid, MDC_Layout[playerid][17], 0.134816, 1.086665);
- PlayerTextDrawAlignment(playerid, MDC_Layout[playerid][17], 2);
- PlayerTextDrawColor(playerid, MDC_Layout[playerid][17], 255);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][17], 0);
- PlayerTextDrawSetOutline(playerid, MDC_Layout[playerid][17], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_Layout[playerid][17], 255);
- PlayerTextDrawFont(playerid, MDC_Layout[playerid][17], 1);
- PlayerTextDrawSetProportional(playerid, MDC_Layout[playerid][17], 1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][17], 0);
- MDC_Layout[playerid][18] = CreatePlayerTextDraw(playerid, 595.944580, 241.916687, "~y~Static");
- PlayerTextDrawLetterSize(playerid, MDC_Layout[playerid][18], 0.116075, 1.284999);
- PlayerTextDrawAlignment(playerid, MDC_Layout[playerid][18], 1);
- PlayerTextDrawColor(playerid, MDC_Layout[playerid][18], -1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][18], 0);
- PlayerTextDrawSetOutline(playerid, MDC_Layout[playerid][18], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_Layout[playerid][18], 255);
- PlayerTextDrawFont(playerid, MDC_Layout[playerid][18], 2);
- PlayerTextDrawSetProportional(playerid, MDC_Layout[playerid][18], 1);
- PlayerTextDrawSetShadow(playerid, MDC_Layout[playerid][18], 0);
-
- //Police Buildings
- RemoveBuildingForPlayer(playerid, 17535, 2364.0547, -1391.5313, 41.3516, 0.25);
- RemoveBuildingForPlayer(playerid, 17965, 2322.2813, -1355.1953, 25.4063, 0.25);
- RemoveBuildingForPlayer(playerid, 1266, 2317.5859, -1355.8281, 37.2188, 0.25);
- RemoveBuildingForPlayer(playerid, 17970, 2364.0547, -1391.5313, 41.3516, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 2331.4453, -1373.5313, 23.0938, 0.25);
- RemoveBuildingForPlayer(playerid, 1315, 2310.0547, -1376.9453, 26.2422, 0.25);
- RemoveBuildingForPlayer(playerid, 17504, 2378.6719, -1455.2578, 26.7422, 0.25);
- RemoveBuildingForPlayer(playerid, 1297, 2308.5859, -1356.2813, 26.2266, 0.25);
- RemoveBuildingForPlayer(playerid, 17543, 2322.2813, -1355.1953, 25.4063, 0.25);
- RemoveBuildingForPlayer(playerid, 1260, 2317.5938, -1355.8203, 37.2266, 0.25);
- RemoveBuildingForPlayer(playerid, 620, 2336.9844, -1350.5781, 22.7266, 0.25);
-
- RemoveBuildingForPlayer(playerid, 5422, 2071.4766, -1831.4219, 14.5625, 0.25); // Idlewood PNS
- RemoveBuildingForPlayer(playerid, 6400, 488.2813, -1734.6953, 12.3906, 0.25); // Santa Maria PNS
- RemoveBuildingForPlayer(playerid, 5856, 1024.9844, -1029.3516, 33.1953, 0.25); // Temple PNS
- RemoveBuildingForPlayer(playerid, 13028, 720.0156, -462.5234, 16.8594, 0.25); // Dillimore PNS
- RemoveBuildingForPlayer(playerid, 3294, -100.0000, 1111.4141, 21.6406, 0.25); // Fort Carson PNS
- RemoveBuildingForPlayer(playerid, 3294, -1420.5469, 2591.1563, 57.7422, 0.25); // El Q ... PNS
- RemoveBuildingForPlayer(playerid, 11319, -1904.5313, 277.8984, 42.9531, 0.25); // SF PNS
- RemoveBuildingForPlayer(playerid, 11313, -1935.8594, 239.5313, 35.3516, 0.25); // SF Carshop East
- RemoveBuildingForPlayer(playerid, 10575, -2716.3516, 217.4766, 5.3828, 0.25); // SF Carshop West
- RemoveBuildingForPlayer(playerid, 9093, 2386.6563, 1043.6016, 11.5938, 0.25); // LV Carshop
- RemoveBuildingForPlayer(playerid, 5340, 2644.8594, -2039.2344, 14.0391, 0.25); // Seville Carshop
- RemoveBuildingForPlayer(playerid, 5779, 1041.3516, -1025.9297, 32.6719, 0.25); // Temple Carshop
-
- RemoveBuildingForPlayer(playerid, 792, 1279.7344, -1552.9453, 12.2188, 0.25); // Market DMV
- RemoveBuildingForPlayer(playerid, 1231, 1273.6094, -1542.3750, 15.2344, 0.25); // Market DMV
- RemoveBuildingForPlayer(playerid, 792, 1280.0313, -1531.1406, 12.0703, 0.25); // Market DMV
- RemoveBuildingForPlayer(playerid, 1231, 1263.3047, -1520.1484, 15.1953, 0.25); // Market DMV
-
- //Prison Mapping
- RemoveBuildingForPlayer(playerid, 16614, -346.6719, 1595.0781, 79.6641, 0.25);
- RemoveBuildingForPlayer(playerid, 16615, -389.7656, 1515.1641, 74.5547, 0.25);
- RemoveBuildingForPlayer(playerid, 16616, -326.6953, 1541.3906, 74.5547, 0.25);
- RemoveBuildingForPlayer(playerid, 16137, -389.7656, 1515.1641, 74.5547, 0.25);
- RemoveBuildingForPlayer(playerid, 16138, -326.6953, 1541.3906, 74.5547, 0.25);
- RemoveBuildingForPlayer(playerid, 16613, -346.6719, 1595.0781, 79.6641, 0.25);
-
- Init_SpeedText(playerid);
- LoadWarehouseMenu_2(playerid);
- CrateInventory_P[playerid][0] = CreatePlayerTextDraw(playerid, 553.666687, 128.607421, "AK-47~n~M4A1");
- PlayerTextDrawLetterSize(playerid, CrateInventory_P[playerid][0], 0.203000, 0.741333);
- PlayerTextDrawAlignment(playerid, CrateInventory_P[playerid][0], 1);
- PlayerTextDrawColor(playerid, CrateInventory_P[playerid][0], -1);
- PlayerTextDrawSetShadow(playerid, CrateInventory_P[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, CrateInventory_P[playerid][0], 1);
- PlayerTextDrawBackgroundColor(playerid, CrateInventory_P[playerid][0], 255);
- PlayerTextDrawFont(playerid, CrateInventory_P[playerid][0], 1);
- PlayerTextDrawSetProportional(playerid, CrateInventory_P[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, CrateInventory_P[playerid][0], 0);
-
- //Default Textdraws
- DefaultTextdraw[playerid] = CreatePlayerTextDraw(playerid, 97.333351, 291.629669, "~y~............");
- PlayerTextDrawLetterSize(playerid, DefaultTextdraw[playerid], 0.216666, 1.139555);
- PlayerTextDrawAlignment(playerid, DefaultTextdraw[playerid], 1);
- PlayerTextDrawColor(playerid, DefaultTextdraw[playerid], -1523963137);
- PlayerTextDrawSetShadow(playerid, DefaultTextdraw[playerid], 0);
- PlayerTextDrawSetOutline(playerid, DefaultTextdraw[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, DefaultTextdraw[playerid], 255);
- PlayerTextDrawFont(playerid, DefaultTextdraw[playerid], 2);
- PlayerTextDrawSetProportional(playerid, DefaultTextdraw[playerid], 1);
- PlayerTextDrawSetShadow(playerid, DefaultTextdraw[playerid], 0);
-
- //Graffiti Display
- GraffitiDisplay[playerid] = CreatePlayerTextDraw(playerid, 97.333351, 291.629669, "~y~............");
- PlayerTextDrawLetterSize(playerid, GraffitiDisplay[playerid], 0.216666, 1.139555);
- PlayerTextDrawAlignment(playerid, GraffitiDisplay[playerid], 1);
- PlayerTextDrawColor(playerid, GraffitiDisplay[playerid], -1523963137);
- PlayerTextDrawSetShadow(playerid, GraffitiDisplay[playerid], 0);
- PlayerTextDrawSetOutline(playerid, GraffitiDisplay[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, GraffitiDisplay[playerid], 255);
- PlayerTextDrawFont(playerid, GraffitiDisplay[playerid], 2);
- PlayerTextDrawSetProportional(playerid, GraffitiDisplay[playerid], 1);
- PlayerTextDrawSetShadow(playerid, GraffitiDisplay[playerid], 0);
-
- //Phone:
- //UI_Phone(playerid);
-
- //Vehicle List:
- CreateVehicleMenu(playerid);
-
- //Vehicle HUD:
- VehicleHUD[playerid][0] = CreatePlayerTextDraw(playerid, 497.086730, 127.583274, "~bl~mph:~n~fuel:");
- PlayerTextDrawLetterSize(playerid, VehicleHUD[playerid][0], 0.459502, 1.302499);
- PlayerTextDrawAlignment(playerid, VehicleHUD[playerid][0], 1);
- PlayerTextDrawColor(playerid, VehicleHUD[playerid][0], -1);
- PlayerTextDrawSetShadow(playerid, VehicleHUD[playerid][0], 2);
- PlayerTextDrawSetOutline(playerid, VehicleHUD[playerid][0], 0);
- PlayerTextDrawBackgroundColor(playerid, VehicleHUD[playerid][0], 255);
- PlayerTextDrawFont(playerid, VehicleHUD[playerid][0], 3);
- PlayerTextDrawSetProportional(playerid, VehicleHUD[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, VehicleHUD[playerid][0], 2);
- VehicleHUD[playerid][1] = CreatePlayerTextDraw(playerid, 552.372192, 128.166625, "~g~0~n~0");
- PlayerTextDrawLetterSize(playerid, VehicleHUD[playerid][1], 0.459970, 1.273333);
- PlayerTextDrawAlignment(playerid, VehicleHUD[playerid][1], 1);
- PlayerTextDrawColor(playerid, VehicleHUD[playerid][1], -1);
- PlayerTextDrawSetShadow(playerid, VehicleHUD[playerid][1], 2);
- PlayerTextDrawSetOutline(playerid, VehicleHUD[playerid][1], 0);
- PlayerTextDrawBackgroundColor(playerid, VehicleHUD[playerid][1], 255);
- PlayerTextDrawFont(playerid, VehicleHUD[playerid][1], 3);
- PlayerTextDrawSetProportional(playerid, VehicleHUD[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, VehicleHUD[playerid][1], 2);
- VehicleHUD[playerid][2] = CreatePlayerTextDraw(playerid, 597.349853, 97.250038, "~g~100__~r~9__~w~15");
- PlayerTextDrawLetterSize(playerid, VehicleHUD[playerid][2], 0.532122, 2.031666);
- PlayerTextDrawAlignment(playerid, VehicleHUD[playerid][2], 3);
- PlayerTextDrawColor(playerid, VehicleHUD[playerid][2], -1);
- PlayerTextDrawSetShadow(playerid, VehicleHUD[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, VehicleHUD[playerid][2], 1);
- PlayerTextDrawBackgroundColor(playerid, VehicleHUD[playerid][2], 255);
- PlayerTextDrawFont(playerid, VehicleHUD[playerid][2], 3);
- PlayerTextDrawSetProportional(playerid, VehicleHUD[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid, VehicleHUD[playerid][2], 0);
-
- VehicleHUD[playerid][3] = CreatePlayerTextDraw(playerid, 20.131790, 152.666564, "Tahoma_~r~100_90~y~KMH/~r~92~y~MPH~n~~w~Radio_Info:~y~123~n~~w~Slot:~y~11");
- PlayerTextDrawLetterSize(playerid, VehicleHUD[playerid][3], 0.245387, 1.745832);
- PlayerTextDrawAlignment(playerid, VehicleHUD[playerid][3], 1);
- PlayerTextDrawColor(playerid, VehicleHUD[playerid][3], -1);
- PlayerTextDrawSetShadow(playerid, VehicleHUD[playerid][3], 0);
- PlayerTextDrawSetOutline(playerid, VehicleHUD[playerid][3], 1);
- PlayerTextDrawBackgroundColor(playerid, VehicleHUD[playerid][3], 255);
- PlayerTextDrawFont(playerid, VehicleHUD[playerid][3], 1);
- PlayerTextDrawSetProportional(playerid, VehicleHUD[playerid][3], 1);
- PlayerTextDrawSetShadow(playerid, VehicleHUD[playerid][3], 0);
-
- VehicleHUD[playerid][4] = CreatePlayerTextDraw(playerid, 524.729553, 383.083496, "Landstalker");
- PlayerTextDrawLetterSize(playerid, VehicleHUD[playerid][4], 0.495577, 3.367500);
- PlayerTextDrawAlignment(playerid, VehicleHUD[playerid][4], 2);
- PlayerTextDrawColor(playerid, VehicleHUD[playerid][4], 255);
- PlayerTextDrawSetShadow(playerid, VehicleHUD[playerid][4], 0);
- PlayerTextDrawSetOutline(playerid, VehicleHUD[playerid][4], 1);
- PlayerTextDrawBackgroundColor(playerid, VehicleHUD[playerid][4], -2139062017);
- PlayerTextDrawFont(playerid, VehicleHUD[playerid][4], 2);
- PlayerTextDrawSetProportional(playerid, VehicleHUD[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid, VehicleHUD[playerid][4], 0);
- VehicleHUD[playerid][5] = CreatePlayerTextDraw(playerid, 590.322448, 413.416870, "~w~0 ~l~0 ~w~1000 ~l~100");
- PlayerTextDrawLetterSize(playerid, VehicleHUD[playerid][5], 0.406558, 2.649996);
- PlayerTextDrawAlignment(playerid, VehicleHUD[playerid][5], 3);
- PlayerTextDrawColor(playerid, VehicleHUD[playerid][5], 255);
- PlayerTextDrawSetShadow(playerid, VehicleHUD[playerid][5], 0);
- PlayerTextDrawSetOutline(playerid, VehicleHUD[playerid][5], 1);
- PlayerTextDrawBackgroundColor(playerid, VehicleHUD[playerid][5], -2139062017);
- PlayerTextDrawFont(playerid, VehicleHUD[playerid][5], 2);
- PlayerTextDrawSetProportional(playerid, VehicleHUD[playerid][5], 1);
- PlayerTextDrawSetShadow(playerid, VehicleHUD[playerid][5], 0);
-
- //Order Counter:
- OrderCount[playerid][0] = CreatePlayerTextDraw(playerid, 34.200592, 322.396972, "ORDER_TIME:");
- PlayerTextDrawLetterSize(playerid, OrderCount[playerid][0], 0.300000, 1.205924);
- PlayerTextDrawAlignment(playerid, OrderCount[playerid][0], 1);
- PlayerTextDrawColor(playerid, OrderCount[playerid][0], -457153537);
- PlayerTextDrawSetShadow(playerid, OrderCount[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, OrderCount[playerid][0], 1);
- PlayerTextDrawBackgroundColor(playerid, OrderCount[playerid][0], 255);
- PlayerTextDrawFont(playerid, OrderCount[playerid][0], 1);
- PlayerTextDrawSetProportional(playerid, OrderCount[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, OrderCount[playerid][0], 0);
- OrderCount[playerid][1] = CreatePlayerTextDraw(playerid, 104.032882, 322.567382, "00:00:00");
- PlayerTextDrawLetterSize(playerid, OrderCount[playerid][1], 0.300000, 1.205924);
- PlayerTextDrawAlignment(playerid, OrderCount[playerid][1], 1);
- PlayerTextDrawColor(playerid, OrderCount[playerid][1], -1);
- PlayerTextDrawSetShadow(playerid, OrderCount[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, OrderCount[playerid][1], 1);
- PlayerTextDrawBackgroundColor(playerid, OrderCount[playerid][1], 255);
- PlayerTextDrawFont(playerid, OrderCount[playerid][1], 1);
- PlayerTextDrawSetProportional(playerid, OrderCount[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, OrderCount[playerid][1], 0);
-
- //Spectators:
- SpectatorTD[playerid][0] = CreatePlayerTextDraw(playerid, 380.846374, 286.452758, "SPECTATING:");
- PlayerTextDrawLetterSize(playerid, SpectatorTD[playerid][0], 0.206330, 1.118813);
- PlayerTextDrawAlignment(playerid, SpectatorTD[playerid][0], 1);
- PlayerTextDrawColor(playerid, SpectatorTD[playerid][0], -2147483393);
- PlayerTextDrawSetShadow(playerid, SpectatorTD[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, SpectatorTD[playerid][0], 1);
- PlayerTextDrawBackgroundColor(playerid, SpectatorTD[playerid][0], 255);
- PlayerTextDrawFont(playerid, SpectatorTD[playerid][0], 2);
- PlayerTextDrawSetProportional(playerid, SpectatorTD[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, SpectatorTD[playerid][0], 0);
- SpectatorTD[playerid][1] = CreatePlayerTextDraw(playerid, 442.902862, 286.637817, "firstname-LASTNAMe");
- PlayerTextDrawLetterSize(playerid, SpectatorTD[playerid][1], 0.206330, 1.118813);
- PlayerTextDrawAlignment(playerid, SpectatorTD[playerid][1], 1);
- PlayerTextDrawColor(playerid, SpectatorTD[playerid][1], -490707969);
- PlayerTextDrawSetShadow(playerid, SpectatorTD[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, SpectatorTD[playerid][1], 1);
- PlayerTextDrawBackgroundColor(playerid, SpectatorTD[playerid][1], 255);
- PlayerTextDrawFont(playerid, SpectatorTD[playerid][1], 2);
- PlayerTextDrawSetProportional(playerid, SpectatorTD[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, SpectatorTD[playerid][1], 0);
- SpectatorTD[playerid][2] = CreatePlayerTextDraw(playerid, 380.946380, 297.553436, "ping:");
- PlayerTextDrawLetterSize(playerid, SpectatorTD[playerid][2], 0.206330, 1.118813);
- PlayerTextDrawAlignment(playerid, SpectatorTD[playerid][2], 1);
- PlayerTextDrawColor(playerid, SpectatorTD[playerid][2], -2147483393);
- PlayerTextDrawSetShadow(playerid, SpectatorTD[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, SpectatorTD[playerid][2], 1);
- PlayerTextDrawBackgroundColor(playerid, SpectatorTD[playerid][2], 255);
- PlayerTextDrawFont(playerid, SpectatorTD[playerid][2], 2);
- PlayerTextDrawSetProportional(playerid, SpectatorTD[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid, SpectatorTD[playerid][2], 0);
- SpectatorTD[playerid][3] = CreatePlayerTextDraw(playerid, 407.800720, 297.538482, "PINGhere");
- PlayerTextDrawLetterSize(playerid, SpectatorTD[playerid][3], 0.206330, 1.118813);
- PlayerTextDrawAlignment(playerid, SpectatorTD[playerid][3], 1);
- PlayerTextDrawColor(playerid, SpectatorTD[playerid][3], -490707969);
- PlayerTextDrawSetShadow(playerid, SpectatorTD[playerid][3], 0);
- PlayerTextDrawSetOutline(playerid, SpectatorTD[playerid][3], 1);
- PlayerTextDrawBackgroundColor(playerid, SpectatorTD[playerid][3], 255);
- PlayerTextDrawFont(playerid, SpectatorTD[playerid][3], 2);
- PlayerTextDrawSetProportional(playerid, SpectatorTD[playerid][3], 1);
- PlayerTextDrawSetShadow(playerid, SpectatorTD[playerid][3], 0);
- SpectatorTD[playerid][4] = CreatePlayerTextDraw(playerid, 380.946380, 308.354095, "PACKETLOSS:");
- PlayerTextDrawLetterSize(playerid, SpectatorTD[playerid][4], 0.206330, 1.118813);
- PlayerTextDrawAlignment(playerid, SpectatorTD[playerid][4], 1);
- PlayerTextDrawColor(playerid, SpectatorTD[playerid][4], -2147483393);
- PlayerTextDrawSetShadow(playerid, SpectatorTD[playerid][4], 0);
- PlayerTextDrawSetOutline(playerid, SpectatorTD[playerid][4], 1);
- PlayerTextDrawBackgroundColor(playerid, SpectatorTD[playerid][4], 255);
- PlayerTextDrawFont(playerid, SpectatorTD[playerid][4], 2);
- PlayerTextDrawSetProportional(playerid, SpectatorTD[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid, SpectatorTD[playerid][4], 0);
- SpectatorTD[playerid][5] = CreatePlayerTextDraw(playerid, 443.102874, 308.739166, "Plosshere");
- PlayerTextDrawLetterSize(playerid, SpectatorTD[playerid][5], 0.206330, 1.118813);
- PlayerTextDrawAlignment(playerid, SpectatorTD[playerid][5], 1);
- PlayerTextDrawColor(playerid, SpectatorTD[playerid][5], -490707969);
- PlayerTextDrawSetShadow(playerid, SpectatorTD[playerid][5], 0);
- PlayerTextDrawSetOutline(playerid, SpectatorTD[playerid][5], 1);
- PlayerTextDrawBackgroundColor(playerid, SpectatorTD[playerid][5], 255);
- PlayerTextDrawFont(playerid, SpectatorTD[playerid][5], 2);
- PlayerTextDrawSetProportional(playerid, SpectatorTD[playerid][5], 1);
- PlayerTextDrawSetShadow(playerid, SpectatorTD[playerid][5], 0);
-
- //Taxi Fair Textdraws:
- TaxiFair_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 99.032882, 309.551818, "duration:");
- PlayerTextDrawLetterSize(playerid, TaxiFair_PTD[playerid][0], 0.231333, 0.961183);
- PlayerTextDrawAlignment(playerid, TaxiFair_PTD[playerid][0], 1);
- PlayerTextDrawColor(playerid, TaxiFair_PTD[playerid][0], -457153537);
- PlayerTextDrawSetShadow(playerid, TaxiFair_PTD[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, TaxiFair_PTD[playerid][0], 1);
- PlayerTextDrawBackgroundColor(playerid, TaxiFair_PTD[playerid][0], 255);
- PlayerTextDrawFont(playerid, TaxiFair_PTD[playerid][0], 2);
- PlayerTextDrawSetProportional(playerid, TaxiFair_PTD[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, TaxiFair_PTD[playerid][0], 0);
- TaxiFair_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 98.899574, 301.151306, "YOU'RE_IN_A_TAXI_RIDE!");
- PlayerTextDrawLetterSize(playerid, TaxiFair_PTD[playerid][1], 0.231333, 0.961183);
- PlayerTextDrawAlignment(playerid, TaxiFair_PTD[playerid][1], 1);
- PlayerTextDrawColor(playerid, TaxiFair_PTD[playerid][1], -2147483393);
- PlayerTextDrawSetShadow(playerid, TaxiFair_PTD[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, TaxiFair_PTD[playerid][1], 1);
- PlayerTextDrawBackgroundColor(playerid, TaxiFair_PTD[playerid][1], 255);
- PlayerTextDrawFont(playerid, TaxiFair_PTD[playerid][1], 2);
- PlayerTextDrawSetProportional(playerid, TaxiFair_PTD[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, TaxiFair_PTD[playerid][1], 0);
- TaxiFair_PTD[playerid][2] = CreatePlayerTextDraw(playerid, 154.800765, 309.551818, "0_Seconds");
- PlayerTextDrawLetterSize(playerid, TaxiFair_PTD[playerid][2], 0.231333, 0.961183);
- PlayerTextDrawAlignment(playerid, TaxiFair_PTD[playerid][2], 1);
- PlayerTextDrawColor(playerid, TaxiFair_PTD[playerid][2], -1);
- PlayerTextDrawSetShadow(playerid, TaxiFair_PTD[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, TaxiFair_PTD[playerid][2], 1);
- PlayerTextDrawBackgroundColor(playerid, TaxiFair_PTD[playerid][2], 255);
- PlayerTextDrawFont(playerid, TaxiFair_PTD[playerid][2], 2);
- PlayerTextDrawSetProportional(playerid, TaxiFair_PTD[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid, TaxiFair_PTD[playerid][2], 0);
- TaxiFair_PTD[playerid][3] = CreatePlayerTextDraw(playerid, 99.032882, 318.452362, "PRICE:");
- PlayerTextDrawLetterSize(playerid, TaxiFair_PTD[playerid][3], 0.231333, 0.961183);
- PlayerTextDrawAlignment(playerid, TaxiFair_PTD[playerid][3], 1);
- PlayerTextDrawColor(playerid, TaxiFair_PTD[playerid][3], -457153537);
- PlayerTextDrawSetShadow(playerid, TaxiFair_PTD[playerid][3], 0);
- PlayerTextDrawSetOutline(playerid, TaxiFair_PTD[playerid][3], 1);
- PlayerTextDrawBackgroundColor(playerid, TaxiFair_PTD[playerid][3], 255);
- PlayerTextDrawFont(playerid, TaxiFair_PTD[playerid][3], 2);
- PlayerTextDrawSetProportional(playerid, TaxiFair_PTD[playerid][3], 1);
- PlayerTextDrawSetShadow(playerid, TaxiFair_PTD[playerid][3], 0);
- TaxiFair_PTD[playerid][4] = CreatePlayerTextDraw(playerid, 133.632781, 318.452362, "$0.00");
- PlayerTextDrawLetterSize(playerid, TaxiFair_PTD[playerid][4], 0.231333, 0.961183);
- PlayerTextDrawAlignment(playerid, TaxiFair_PTD[playerid][4], 1);
- PlayerTextDrawColor(playerid, TaxiFair_PTD[playerid][4], -1);
- PlayerTextDrawSetShadow(playerid, TaxiFair_PTD[playerid][4], 0);
- PlayerTextDrawSetOutline(playerid, TaxiFair_PTD[playerid][4], 1);
- PlayerTextDrawBackgroundColor(playerid, TaxiFair_PTD[playerid][4], 255);
- PlayerTextDrawFont(playerid, TaxiFair_PTD[playerid][4], 2);
- PlayerTextDrawSetProportional(playerid, TaxiFair_PTD[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid, TaxiFair_PTD[playerid][4], 0);
-
- //Unscrambler Textdraws:
- Unscrambler_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 199.873275, 273.593383, "<UNSCRAMBLED_WORD>");
- PlayerTextDrawLetterSize(playerid, Unscrambler_PTD[playerid][0], 0.206330, 1.118813);
- PlayerTextDrawAlignment(playerid, Unscrambler_PTD[playerid][0], 1);
- PlayerTextDrawColor(playerid, Unscrambler_PTD[playerid][0], -1);
- PlayerTextDrawSetShadow(playerid, Unscrambler_PTD[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, Unscrambler_PTD[playerid][0], 1);
- PlayerTextDrawBackgroundColor(playerid, Unscrambler_PTD[playerid][0], 255);
- PlayerTextDrawFont(playerid, Unscrambler_PTD[playerid][0], 2);
- PlayerTextDrawSetProportional(playerid, Unscrambler_PTD[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, Unscrambler_PTD[playerid][0], 0);
- Unscrambler_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 137.369461, 273.593383, "/unscramble");
- PlayerTextDrawLetterSize(playerid, Unscrambler_PTD[playerid][1], 0.206330, 1.118813);
- PlayerTextDrawAlignment(playerid, Unscrambler_PTD[playerid][1], 1);
- PlayerTextDrawColor(playerid, Unscrambler_PTD[playerid][1], -490707969);
- PlayerTextDrawSetShadow(playerid, Unscrambler_PTD[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, Unscrambler_PTD[playerid][1], 1);
- PlayerTextDrawBackgroundColor(playerid, Unscrambler_PTD[playerid][1], 255);
- PlayerTextDrawFont(playerid, Unscrambler_PTD[playerid][1], 2);
- PlayerTextDrawSetProportional(playerid, Unscrambler_PTD[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, Unscrambler_PTD[playerid][1], 0);
- Unscrambler_PTD[playerid][2] = CreatePlayerTextDraw(playerid, 305.179687, 273.593383, "TO_UNSCRAMBLE_THE_WORD");
- PlayerTextDrawLetterSize(playerid, Unscrambler_PTD[playerid][2], 0.206330, 1.118813);
- PlayerTextDrawAlignment(playerid, Unscrambler_PTD[playerid][2], 1);
- PlayerTextDrawColor(playerid, Unscrambler_PTD[playerid][2], -2147483393);
- PlayerTextDrawSetShadow(playerid, Unscrambler_PTD[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, Unscrambler_PTD[playerid][2], 1);
- PlayerTextDrawBackgroundColor(playerid, Unscrambler_PTD[playerid][2], 255);
- PlayerTextDrawFont(playerid, Unscrambler_PTD[playerid][2], 2);
- PlayerTextDrawSetProportional(playerid, Unscrambler_PTD[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid, Unscrambler_PTD[playerid][2], 0);
- Unscrambler_PTD[playerid][3] = CreatePlayerTextDraw(playerid, 141.369705, 285.194091, "scrambledword");
- PlayerTextDrawLetterSize(playerid, Unscrambler_PTD[playerid][3], 0.206330, 1.118813);
- PlayerTextDrawAlignment(playerid, Unscrambler_PTD[playerid][3], 1);
- PlayerTextDrawColor(playerid, Unscrambler_PTD[playerid][3], -1);
- PlayerTextDrawSetShadow(playerid, Unscrambler_PTD[playerid][3], 0);
- PlayerTextDrawSetOutline(playerid, Unscrambler_PTD[playerid][3], 1);
- PlayerTextDrawBackgroundColor(playerid, Unscrambler_PTD[playerid][3], 255);
- PlayerTextDrawFont(playerid, Unscrambler_PTD[playerid][3], 2);
- PlayerTextDrawSetProportional(playerid, Unscrambler_PTD[playerid][3], 1);
- PlayerTextDrawSetShadow(playerid, Unscrambler_PTD[playerid][3], 0);
- Unscrambler_PTD[playerid][4] = CreatePlayerTextDraw(playerid, 137.902801, 296.924377, "YOU_HAVE");
- PlayerTextDrawLetterSize(playerid, Unscrambler_PTD[playerid][4], 0.206330, 1.118813);
- PlayerTextDrawAlignment(playerid, Unscrambler_PTD[playerid][4], 1);
- PlayerTextDrawColor(playerid, Unscrambler_PTD[playerid][4], -2147483393);
- PlayerTextDrawSetShadow(playerid, Unscrambler_PTD[playerid][4], 0);
- PlayerTextDrawSetOutline(playerid, Unscrambler_PTD[playerid][4], 1);
- PlayerTextDrawBackgroundColor(playerid, Unscrambler_PTD[playerid][4], 255);
- PlayerTextDrawFont(playerid, Unscrambler_PTD[playerid][4], 2);
- PlayerTextDrawSetProportional(playerid, Unscrambler_PTD[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid, Unscrambler_PTD[playerid][4], 0);
- Unscrambler_PTD[playerid][5] = CreatePlayerTextDraw(playerid, 184.539016, 297.024383, "001");
- PlayerTextDrawLetterSize(playerid, Unscrambler_PTD[playerid][5], 0.206330, 1.118813);
- PlayerTextDrawAlignment(playerid, Unscrambler_PTD[playerid][5], 1);
- PlayerTextDrawColor(playerid, Unscrambler_PTD[playerid][5], -1);
- PlayerTextDrawSetShadow(playerid, Unscrambler_PTD[playerid][5], 0);
- PlayerTextDrawSetOutline(playerid, Unscrambler_PTD[playerid][5], 1);
- PlayerTextDrawBackgroundColor(playerid, Unscrambler_PTD[playerid][5], 255);
- PlayerTextDrawFont(playerid, Unscrambler_PTD[playerid][5], 2);
- PlayerTextDrawSetProportional(playerid, Unscrambler_PTD[playerid][5], 1);
- PlayerTextDrawSetShadow(playerid, Unscrambler_PTD[playerid][5], 0);
- Unscrambler_PTD[playerid][6] = CreatePlayerTextDraw(playerid, 202.540191, 297.124389, "SECONDS_LEFT_TO_FINISh.");
- PlayerTextDrawLetterSize(playerid, Unscrambler_PTD[playerid][6], 0.206330, 1.118813);
- PlayerTextDrawAlignment(playerid, Unscrambler_PTD[playerid][6], 1);
- PlayerTextDrawColor(playerid, Unscrambler_PTD[playerid][6], -2147483393);
- PlayerTextDrawSetShadow(playerid, Unscrambler_PTD[playerid][6], 0);
- PlayerTextDrawSetOutline(playerid, Unscrambler_PTD[playerid][6], 1);
- PlayerTextDrawBackgroundColor(playerid, Unscrambler_PTD[playerid][6], 255);
- PlayerTextDrawFont(playerid, Unscrambler_PTD[playerid][6], 2);
- PlayerTextDrawSetProportional(playerid, Unscrambler_PTD[playerid][6], 1);
- PlayerTextDrawSetShadow(playerid, Unscrambler_PTD[playerid][6], 0);
-
- //Skin menu
- Skinmenu_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 434.965545, 236.270599, "LD_BEAT:right");
- PlayerTextDrawLetterSize(playerid, Skinmenu_PTD[playerid][0], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Skinmenu_PTD[playerid][0], 25.000000, 27.000000);
- PlayerTextDrawAlignment(playerid, Skinmenu_PTD[playerid][0], 1);
- PlayerTextDrawColor(playerid, Skinmenu_PTD[playerid][0], -1);
- PlayerTextDrawSetShadow(playerid, Skinmenu_PTD[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, Skinmenu_PTD[playerid][0], 0);
- PlayerTextDrawBackgroundColor(playerid, Skinmenu_PTD[playerid][0], 255);
- PlayerTextDrawFont(playerid, Skinmenu_PTD[playerid][0], 4);
- PlayerTextDrawSetProportional(playerid, Skinmenu_PTD[playerid][0], 0);
- PlayerTextDrawSetShadow(playerid, Skinmenu_PTD[playerid][0], 0);
- PlayerTextDrawSetSelectable(playerid, Skinmenu_PTD[playerid][0], true);
- Skinmenu_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 356.360748, 236.270599, "LD_BEAT:left");
- PlayerTextDrawLetterSize(playerid, Skinmenu_PTD[playerid][1], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Skinmenu_PTD[playerid][1], 25.000000, 27.000000);
- PlayerTextDrawAlignment(playerid, Skinmenu_PTD[playerid][1], 1);
- PlayerTextDrawColor(playerid, Skinmenu_PTD[playerid][1], -1);
- PlayerTextDrawSetShadow(playerid, Skinmenu_PTD[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, Skinmenu_PTD[playerid][1], 0);
- PlayerTextDrawBackgroundColor(playerid, Skinmenu_PTD[playerid][1], 255);
- PlayerTextDrawFont(playerid, Skinmenu_PTD[playerid][1], 4);
- PlayerTextDrawSetProportional(playerid, Skinmenu_PTD[playerid][1], 0);
- PlayerTextDrawSetShadow(playerid, Skinmenu_PTD[playerid][1], 0);
- PlayerTextDrawSetSelectable(playerid, Skinmenu_PTD[playerid][1], true);
- Skinmenu_PTD[playerid][2] = CreatePlayerTextDraw(playerid, 319.200164, 60.496173, "");
- PlayerTextDrawLetterSize(playerid, Skinmenu_PTD[playerid][2], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Skinmenu_PTD[playerid][2], 168.000000, 179.000000);
- PlayerTextDrawAlignment(playerid, Skinmenu_PTD[playerid][2], 1);
- PlayerTextDrawColor(playerid, Skinmenu_PTD[playerid][2], -1);
- PlayerTextDrawSetShadow(playerid, Skinmenu_PTD[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, Skinmenu_PTD[playerid][2], 0);
- PlayerTextDrawBackgroundColor(playerid, Skinmenu_PTD[playerid][2], 0);
- PlayerTextDrawFont(playerid, Skinmenu_PTD[playerid][2], 5);
- PlayerTextDrawSetProportional(playerid, Skinmenu_PTD[playerid][2], 0);
- PlayerTextDrawSetShadow(playerid, Skinmenu_PTD[playerid][2], 0);
- PlayerTextDrawSetSelectable(playerid, Skinmenu_PTD[playerid][2], true);
- PlayerTextDrawSetPreviewModel(playerid, Skinmenu_PTD[playerid][2], 1);
- PlayerTextDrawSetPreviewRot(playerid, Skinmenu_PTD[playerid][2], 0.000000, 0.000000, 0.000000, 1.000000);
-
- //Trucker Job Earnings
- TruckerEarning_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 2.000023, 165.525863, "EARNINGS:");
- PlayerTextDrawLetterSize(playerid, TruckerEarning_PTD[playerid][0], 0.289333, 1.210073);
- PlayerTextDrawAlignment(playerid, TruckerEarning_PTD[playerid][0], 1);
- PlayerTextDrawColor(playerid, TruckerEarning_PTD[playerid][0], -1);
- PlayerTextDrawSetShadow(playerid, TruckerEarning_PTD[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, TruckerEarning_PTD[playerid][0], 1);
- PlayerTextDrawBackgroundColor(playerid, TruckerEarning_PTD[playerid][0], 255);
- PlayerTextDrawFont(playerid, TruckerEarning_PTD[playerid][0], 2);
- PlayerTextDrawSetProportional(playerid, TruckerEarning_PTD[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, TruckerEarning_PTD[playerid][0], 0);
- TruckerEarning_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 1.900024, 177.156143, "$0");
- PlayerTextDrawLetterSize(playerid, TruckerEarning_PTD[playerid][1], 0.289333, 1.210073);
- PlayerTextDrawAlignment(playerid, TruckerEarning_PTD[playerid][1], 1);
- PlayerTextDrawColor(playerid, TruckerEarning_PTD[playerid][1], -1523963137);
- PlayerTextDrawSetShadow(playerid, TruckerEarning_PTD[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, TruckerEarning_PTD[playerid][1], 1);
- PlayerTextDrawBackgroundColor(playerid, TruckerEarning_PTD[playerid][1], 255);
- PlayerTextDrawFont(playerid, TruckerEarning_PTD[playerid][1], 2);
- PlayerTextDrawSetProportional(playerid, TruckerEarning_PTD[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, TruckerEarning_PTD[playerid][1], 0);
-
- //Trucker Warning
- TruckerWarning_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 97.333351, 291.629669, "RETURN_TO_YOUR_TRUCK_OR_ENTER_THE_CHECKPOINT!");
- PlayerTextDrawLetterSize(playerid, TruckerWarning_PTD[playerid][0], 0.216666, 1.139555);
- PlayerTextDrawAlignment(playerid, TruckerWarning_PTD[playerid][0], 1);
- PlayerTextDrawColor(playerid, TruckerWarning_PTD[playerid][0], -1523963137);
- PlayerTextDrawSetShadow(playerid, TruckerWarning_PTD[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, TruckerWarning_PTD[playerid][0], 1);
- PlayerTextDrawBackgroundColor(playerid, TruckerWarning_PTD[playerid][0], 255);
- PlayerTextDrawFont(playerid, TruckerWarning_PTD[playerid][0], 2);
- PlayerTextDrawSetProportional(playerid, TruckerWarning_PTD[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, TruckerWarning_PTD[playerid][0], 0);
- TruckerWarning_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 96.799972, 301.485900, "TIME_LEFT:_60_Seconds");
- PlayerTextDrawLetterSize(playerid, TruckerWarning_PTD[playerid][1], 0.210332, 1.122962);
- PlayerTextDrawAlignment(playerid, TruckerWarning_PTD[playerid][1], 1);
- PlayerTextDrawColor(playerid, TruckerWarning_PTD[playerid][1], -1);
- PlayerTextDrawSetShadow(playerid, TruckerWarning_PTD[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, TruckerWarning_PTD[playerid][1], 1);
- PlayerTextDrawBackgroundColor(playerid, TruckerWarning_PTD[playerid][1], 255);
- PlayerTextDrawFont(playerid, TruckerWarning_PTD[playerid][1], 2);
- PlayerTextDrawSetProportional(playerid, TruckerWarning_PTD[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, TruckerWarning_PTD[playerid][1], 0);
-
- //Trucker job Textdraws
- TruckerJob_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 97.333351, 291.629669, "TRUCKER_MISSION");
- PlayerTextDrawLetterSize(playerid, TruckerJob_PTD[playerid][0], 0.216666, 1.139555);
- PlayerTextDrawAlignment(playerid, TruckerJob_PTD[playerid][0], 1);
- PlayerTextDrawColor(playerid, TruckerJob_PTD[playerid][0], -1523963137);
- PlayerTextDrawSetShadow(playerid, TruckerJob_PTD[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, TruckerJob_PTD[playerid][0], 1);
- PlayerTextDrawBackgroundColor(playerid, TruckerJob_PTD[playerid][0], 255);
- PlayerTextDrawFont(playerid, TruckerJob_PTD[playerid][0], 2);
- PlayerTextDrawSetProportional(playerid, TruckerJob_PTD[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, TruckerJob_PTD[playerid][0], 0);
- TruckerJob_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 96.799972, 301.485900, "YOU_ARE_NOW_TRUCKING");
- PlayerTextDrawLetterSize(playerid, TruckerJob_PTD[playerid][1], 0.210332, 1.122962);
- PlayerTextDrawAlignment(playerid, TruckerJob_PTD[playerid][1], 1);
- PlayerTextDrawColor(playerid, TruckerJob_PTD[playerid][1], -1);
- PlayerTextDrawSetShadow(playerid, TruckerJob_PTD[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, TruckerJob_PTD[playerid][1], 1);
- PlayerTextDrawBackgroundColor(playerid, TruckerJob_PTD[playerid][1], 255);
- PlayerTextDrawFont(playerid, TruckerJob_PTD[playerid][1], 2);
- PlayerTextDrawSetProportional(playerid, TruckerJob_PTD[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, TruckerJob_PTD[playerid][1], 0);
-
- //New job textdraw
- Getjob_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 97.333351, 291.629669, "CONGRATULATIONS!");
- PlayerTextDrawLetterSize(playerid, Getjob_PTD[playerid][0], 0.216666, 1.139555);
- PlayerTextDrawAlignment(playerid, Getjob_PTD[playerid][0], 1);
- PlayerTextDrawColor(playerid, Getjob_PTD[playerid][0], -1523963137);
- PlayerTextDrawSetShadow(playerid, Getjob_PTD[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, Getjob_PTD[playerid][0], 1);
- PlayerTextDrawBackgroundColor(playerid, Getjob_PTD[playerid][0], 255);
- PlayerTextDrawFont(playerid, Getjob_PTD[playerid][0], 2);
- PlayerTextDrawSetProportional(playerid, Getjob_PTD[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, Getjob_PTD[playerid][0], 0);
- Getjob_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 169.702743, 301.385894, "JOB_NAME.");
- PlayerTextDrawLetterSize(playerid, Getjob_PTD[playerid][1], 0.206332, 1.118814);
- PlayerTextDrawAlignment(playerid, Getjob_PTD[playerid][1], 1);
- PlayerTextDrawColor(playerid, Getjob_PTD[playerid][1], -490707969);
- PlayerTextDrawSetShadow(playerid, Getjob_PTD[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, Getjob_PTD[playerid][1], 1);
- PlayerTextDrawBackgroundColor(playerid, Getjob_PTD[playerid][1], 255);
- PlayerTextDrawFont(playerid, Getjob_PTD[playerid][1], 2);
- PlayerTextDrawSetProportional(playerid, Getjob_PTD[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, Getjob_PTD[playerid][1], 0);
- Getjob_PTD[playerid][2] = CreatePlayerTextDraw(playerid, 96.799972, 301.485900, "YOU_ARE_NOW_A");
- PlayerTextDrawLetterSize(playerid, Getjob_PTD[playerid][2], 0.210332, 1.122962);
- PlayerTextDrawAlignment(playerid, Getjob_PTD[playerid][2], 1);
- PlayerTextDrawColor(playerid, Getjob_PTD[playerid][2], -1);
- PlayerTextDrawSetShadow(playerid, Getjob_PTD[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, Getjob_PTD[playerid][2], 1);
- PlayerTextDrawBackgroundColor(playerid, Getjob_PTD[playerid][2], 255);
- PlayerTextDrawFont(playerid, Getjob_PTD[playerid][2], 2);
- PlayerTextDrawSetProportional(playerid, Getjob_PTD[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid, Getjob_PTD[playerid][2], 0);
- Getjob_PTD[playerid][3] = CreatePlayerTextDraw(playerid, 97.766632, 311.686523, "/jobhelp.");
- PlayerTextDrawLetterSize(playerid, Getjob_PTD[playerid][3], 0.219332, 1.089777);
- PlayerTextDrawAlignment(playerid, Getjob_PTD[playerid][3], 1);
- PlayerTextDrawColor(playerid, Getjob_PTD[playerid][3], -1);
- PlayerTextDrawSetShadow(playerid, Getjob_PTD[playerid][3], 0);
- PlayerTextDrawSetOutline(playerid, Getjob_PTD[playerid][3], 1);
- PlayerTextDrawBackgroundColor(playerid, Getjob_PTD[playerid][3], 255);
- PlayerTextDrawFont(playerid, Getjob_PTD[playerid][3], 2);
- PlayerTextDrawSetProportional(playerid, Getjob_PTD[playerid][3], 1);
- PlayerTextDrawSetShadow(playerid, Getjob_PTD[playerid][3], 0);
-
- //Trace System
- Trace_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 98.632888, 309.551818, "TRACE_INITIATED");
- PlayerTextDrawLetterSize(playerid, Trace_PTD[playerid][0], 0.300000, 1.205925);
- PlayerTextDrawAlignment(playerid, Trace_PTD[playerid][0], 1);
- PlayerTextDrawColor(playerid, Trace_PTD[playerid][0], -457153537);
- PlayerTextDrawSetShadow(playerid, Trace_PTD[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, Trace_PTD[playerid][0], 1);
- PlayerTextDrawBackgroundColor(playerid, Trace_PTD[playerid][0], 255);
- PlayerTextDrawFont(playerid, Trace_PTD[playerid][0], 2);
- PlayerTextDrawSetProportional(playerid, Trace_PTD[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, Trace_PTD[playerid][0], 0);
-
- //Dealership Carbuy
- CarBought_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 97.333351, 291.629669, "YOUR_NEW_PLATE_HAS_BEEN_SET");
- PlayerTextDrawLetterSize(playerid, CarBought_PTD[playerid][0], 0.248666, 1.259851);
- PlayerTextDrawAlignment(playerid, CarBought_PTD[playerid][0], 1);
- PlayerTextDrawColor(playerid, CarBought_PTD[playerid][0], -1);
- PlayerTextDrawSetShadow(playerid, CarBought_PTD[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, CarBought_PTD[playerid][0], 1);
- PlayerTextDrawBackgroundColor(playerid, CarBought_PTD[playerid][0], 255);
- PlayerTextDrawFont(playerid, CarBought_PTD[playerid][0], 2);
- PlayerTextDrawSetProportional(playerid, CarBought_PTD[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, CarBought_PTD[playerid][0], 0);
- CarBought_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 97.533348, 302.630340, "PLATEHERE");
- PlayerTextDrawLetterSize(playerid, CarBought_PTD[playerid][1], 0.248666, 1.259851);
- PlayerTextDrawAlignment(playerid, CarBought_PTD[playerid][1], 1);
- PlayerTextDrawColor(playerid, CarBought_PTD[playerid][1], -490707969);
- PlayerTextDrawSetShadow(playerid, CarBought_PTD[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, CarBought_PTD[playerid][1], 1);
- PlayerTextDrawBackgroundColor(playerid, CarBought_PTD[playerid][1], 255);
- PlayerTextDrawFont(playerid, CarBought_PTD[playerid][1], 2);
- PlayerTextDrawSetProportional(playerid, CarBought_PTD[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, CarBought_PTD[playerid][1], 0);
-
- AdmWarmToggle[playerid] = 1;
- TogglePMs[playerid] = 1;
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch(dialogid)
- {
- /*case DIALOG_REG1: {
- if (!response)
- return KickEx(playerid);
- if (strlen(inputtext) < 1)
- return ShowPlayerDialog(playerid, DIALOG_REG1, DIALOG_STYLE_INPUT, "Question 1", PlayerRegQuestion[playerid][playerRegQuestion][0], "Submit", "Exit");
- format(PlayerRegQuestion[playerid][playerRegAnswer][0], 128, "%s", inputtext);
- ShowPlayerDialog(playerid, DIALOG_REG2, DIALOG_STYLE_INPUT, "Question 2", PlayerRegQuestion[playerid][playerRegQuestion][1], "Submit", "Exit");
- }
- case DIALOG_REG2: {
- if (!response)
- return KickEx(playerid);
- if (strlen(inputtext) < 1)
- return ShowPlayerDialog(playerid, DIALOG_REG2, DIALOG_STYLE_INPUT, "Question 2", PlayerRegQuestion[playerid][playerRegQuestion][1], "Submit", "Exit");
- format(PlayerRegQuestion[playerid][playerRegAnswer][1], 128, "%s", inputtext);
- ShowPlayerDialog(playerid, DIALOG_REG3, DIALOG_STYLE_INPUT, "Question 3", PlayerRegQuestion[playerid][playerRegQuestion][2], "Submit", "Exit");
- }
- case DIALOG_REG3: {
- if (!response)
- return KickEx(playerid);
- if (strlen(inputtext) < 1)
- return ShowPlayerDialog(playerid, DIALOG_REG3, DIALOG_STYLE_INPUT, "Question 3", PlayerRegQuestion[playerid][playerRegQuestion][2], "Submit", "Exit");
- format(PlayerRegQuestion[playerid][playerRegAnswer][2], 128, "%s", inputtext);
- ShowPlayerDialog(playerid, DIALOG_REG4, DIALOG_STYLE_INPUT, "Thank you!", "{FFFFFF}Your application has been submitted!\n{FFFFFF}Please wait for a helper to review it.\n\n{FF0000}Do not log off otherwise you will have to redo the quiz!", "Status", "");
- }
- case DIALOG_REG4: {
- if (!response)
- return ShowPlayerDialog(playerid, DIALOG_REG4, DIALOG_STYLE_INPUT, "Thank you!", "{FFFFFF}Your application has been submitted!\n{FFFFFF}Please wait for an admin to review it.\n\n{FF0000}Do not log off otherwise you will have to redo the quiz!", "Status", "");
- adminWarn(1, sprintf("%s (id: %d) has submitted a registration quiz. /review %d to answer it.", ReturnName(playerid, 1), playerid, playerid));
- PlayerAwaitingRegistration[playerid] = true;
- PlayerRegWait[playerid] = 60;
- }*/
- // "24/7\nDealerships\nBanks\nJobs"
- /*
- case 0: string = "Unemployed";
- case 1: string = "Mechanic";
- case 2: string = "Fisherman";
- case 3: string = "Taxi Driver";
- case 4: string = "Trucker"; */
- /*case DIALOG_GPS1: {
- if (!response) return 1;
- switch (listitem) {
- case 0: {
- return ShowPlayerDialog(playerid, DIALOG_GPS2, DIALOG_STYLE_MSGBOX, "GPS > 24/7", "GPS's are strategically placed around the map.\nYou can usually identify them by their exterior.", "Back", "");
- }
- case 1: {
- return ShowPlayerDialog(playerid, DIALOG_GPS3, DIALOG_STYLE_MSGBOX, "GPS > Dealerships", "The dealerships are located at two locations. Rodeo Dealership, or Grotti's, and Commerce Dealership.\nYou can also upgrade your vehicle's at these dealerships.");
- }
- case 2: {
- return ShowPlayerDialog(playerid, DIALOG_GPS4, DIALOG_STYLE_MSGBOX, "GPS > Banks", "The Bank is located in Rodeo, right next to the Rodeo Dealership.\nYou can withdraw, deposit and withdraw/deposit into your savings account here.");
- }
- case 3: {
- static string[] = EOS, jobDesc[32], jobName[16], bool:jobVehicle;
- for (new i = 1; i < 6; i++) {
- jobDesc[0] = EOS;
- jobName[0] = EOS;
- jobVehicle = false;
- switch (i) {
- case 1: {
- jobName = "Mechanic";
- jobDesc = "Repair, tow and respray cars for a fee";
- jobVehicle = true;
- }
- case 2: {
- jobName = "Taxi Driver";
- jobDesc = "Drive players about";
- jobVehicle = true;
- }
- case 3: {
- jobName = "Trucker";
- jobDesc = "Truck, truck, truck. Makes roughly 1K per run";
- jobVehicle = false;
- }
- }
- strcat(string, sprintf("%s\t%s\t%s\n", jobName, jobDesc, (jobVehicle ? "Yes" : "No")));
- }
- return ShowPlayerDialog(playerid, DIALOG_GPS5, DIALOG_STYLE_TABLIST_HEADERS,
- sprintf("GPS > Jobs", "Job Name\tJob Description\tPersonal Vehicle Needed?\n\
- %s", string
- ), "Back", "");
- }
- default: {
- SendClientMessage(playerid, COLOR_ADM, "GPS: Invalid option selected!");
- }
- }
- return 1;
- }*/
- case DIALOG_CONFIRM_SYS:{
- ConfirmDialog_Response(playerid, response);
- }
- case DIALOG_REGISTER:{
- if(!response) return Kick(playerid);
- if(strlen(inputtext) < 3 || strlen(inputtext) > 30){
- ShowRegisterDialog(playerid, "Your password length should be above 3 chars AND below 30 chars long.");
- return true;
- }
-
- new thstndrd[10];
-
- switch(CountRegister() + 1)
- {
- case 1,21,31: format(thstndrd, sizeof(thstndrd), "st");
- case 2,22: format(thstndrd, sizeof(thstndrd), "nd");
- case 3,23: format(thstndrd, sizeof(thstndrd), "rd");
- default: format(thstndrd, sizeof(thstndrd), "th");
- }
-
- SetPlayerCamera(playerid);
- format(PlayerPassword[playerid], 90, "%s", inputtext);
- Message(playerid, COLOR_GOLD, "Welcome to San Andreas '92 Singleplayer Roleplay, %s {FFFFFF}["REVISION"]", ReturnName(playerid));
- SendClientMessage(playerid, -1, " ");
-
- Message(playerid, COLOR_WHITE, "* You will be our %i%s registered user.", (CountRegister() + 1), thstndrd);
- SendClientMessage(playerid, COLOR_WHITE, "* Before you can spawn you'll go through this short introduction to our server.");
- SendClientMessage(playerid, COLOR_WHITE, "* You can through slides by pressing SPACE.");
- PlayerTutorial[playerid] = 1;
- PlayerTutorialTimer[playerid] = SetTimerEx("StartPlayerTutorial", 3000, false, "i", playerid);
- }
- case DIALOG_LOGIN: {
- if(!response)return Kick(playerid);
- if(strlen(inputtext) < 3 || strlen(inputtext) > 128){
- ShowLoginDialog(playerid, "The password you inputted does not match the password criteria.");
- PlayerData[playerid][pPassAttempts]++;
- if(PlayerData[playerid][pPassAttempts] == 4){
- SendClientMessage(playerid, COLOR_ADM, "SERVER:{FFFFFF} You were kicked for exceeding three password attempts.");
- KickEx(playerid);
- }
- return true;
- }
- new
- query[190];
- mysql_format(m_Handle, query, sizeof(query), "SELECT id, IP, SecretWord FROM players WHERE Name = '%e' AND Password = sha1('%e') LIMIT 1", ReturnName(playerid, 1), inputtext);
- mysql_pquery(m_Handle, query, "SQL_OnAccountLogin", "i", playerid);
- }
- case DIALOG_ADMINPM:
- {
- if(response)
- {
- new
- name_colorA[60],
- name_colorB[60];
-
- new text[128], playerb;
- format(text, 128, "%s", PlayerData[playerid][pPMText]);
- playerb = PlayerData[playerid][pPMing];
- // 2 lazy to change them all to PMText;
-
- if(PlayerData[playerid][pAdminDuty])
- format(name_colorA, 60, "{FF9900}%s", ReturnName(playerid));
- else format(name_colorA, 60, "%s", ReturnName(playerid));
-
- if(PlayerData[playerb][pAdminDuty])
- format(name_colorB, 60, "{FF9900}%s", ReturnName(playerb));
- else format(name_colorB, 60, "%s", ReturnName(playerb));
-
- foreach(new i : Player)
- {
- if(PlayerData[i][pSpectator] == playerid)
- {
- Message(i, COLOR_PMSEN, "%s[%i] PM to %s[%i]: %s", name_colorA, playerid, name_colorB, playerb, text);
- }
- if(PlayerData[i][pSpectator] == playerb)
- {
- Message(i, COLOR_PMREC, "%s[%i] PM to %s[%i]: %s", name_colorA, playerid, name_colorB, playerb, text);
- }
- }
-
- if(strlen(text) > 75)
- {
- Message(playerid, COLOR_PMSEN, "(( PM to %s{EEE854}[%i]: %.75s... ))", name_colorB, playerb, text);
- Message(playerid, COLOR_PMSEN, "(( PM to %s{EEE854}[%i]: ...%s ))", name_colorB, playerb, text[75]);
-
- Message(playerb, COLOR_PMREC, "(( PM from %s{FFDC18}[%i]: %.75s... ))", name_colorA, playerid, text);
- Message(playerb, COLOR_PMREC, "(( PM from %s{FFDC18}[%i]: ...%s ))", name_colorA, playerid, text[75]);
- }
- else
- {
- Message(playerid, COLOR_PMSEN, "(( PM to %s{ECCD2D}[%i]: %s ))", name_colorB, playerb, text);
- Message(playerb, COLOR_PMREC, "(( PM from %s{FFDC18}[%i]: %s ))", name_colorA, playerid, text);
- }
-
- CanPMAdmin[playerid][playerb] = 1;
- WriteLog("chat_logs/pm_log.txt", "[%s] %s PMed %s: %s.", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), text);
- return 1;
- }
- else format(PlayerData[playerid][pPMText], 128, "");
- return 1;
- }
- case DIALOG_PDSKINS:{
- switch(listitem){
- case 0: SetPlayerSkin(playerid, 280);
- case 1: SetPlayerSkin(playerid, 300);
- case 2: SetPlayerSkin(playerid, 281);
- case 3: SetPlayerSkin(playerid, 301);
- case 4: SetPlayerSkin(playerid, 306);
- case 5: SetPlayerSkin(playerid, 307);
- case 6: SetPlayerSkin(playerid, 265);
- case 7: SetPlayerSkin(playerid, 267);
- case 8: SetPlayerSkin(playerid, 266);
- case 9: SetPlayerSkin(playerid, 284);
- case 10: SetPlayerSkin(playerid, 61);
- case 11: SetPlayerSkin(playerid, 93);
- }
- return 1;
- }
- case DIALOG_SDSKINS:{
- switch(listitem){
- case 0: SetPlayerSkin(playerid, 71);
- case 1: SetPlayerSkin(playerid, 282);
- case 2: SetPlayerSkin(playerid, 302);
- case 3: SetPlayerSkin(playerid, 309);
- case 4: SetPlayerSkin(playerid, 283);
- case 5: SetPlayerSkin(playerid, 310);
- case 6: SetPlayerSkin(playerid, 288);
- case 7: SetPlayerSkin(playerid, 311);
- case 8: SetPlayerSkin(playerid, 211);
- case 9: SetPlayerSkin(playerid, 93);
- case 10: SetPlayerSkin(playerid, 284);
- case 11: SetPlayerSkin(playerid, 61);
- case 12: SetPlayerSkin(playerid, 150);
- }
- return 1;
- }
- case DIALOG_FDSKINS:{
- switch(listitem)
- {
- case 0: SetPlayerSkin(playerid, 274);
- case 1: SetPlayerSkin(playerid, 275);
- case 2: SetPlayerSkin(playerid, 276);
- case 3: SetPlayerSkin(playerid, 308);
- case 4: SetPlayerSkin(playerid, 277);
- case 5: SetPlayerSkin(playerid, 278);
- case 6: SetPlayerSkin(playerid, 279);
- }
- return 1;
- }
- case DIALOG_TOLLS:{
- if(response){
- new string[129], longstr[256];
- //bf605c locked
- new lslvStatus[90], lslvLock[90];
- new flintStatus[90], flintLock[90];
- new richStatus[90], richLock[90];
-
- if(TollsData[1][tollStatus] == 1)
- format(lslvStatus, sizeof(lslvStatus), "Opened");
- else
- format(lslvStatus, sizeof(lslvStatus), "Closed");
-
- if(TollsData[1][tollLocked] == 1)
- format(lslvLock, sizeof(lslvLock), "{BF605C}Locked");
- else
- format(lslvLock, sizeof(lslvLock), "{85A82B}Unlocked");
-
- if(TollsData[2][tollStatus] == 1)
- format(flintStatus, sizeof(flintStatus), "Opened");
- else
- format(flintStatus, sizeof(flintStatus), "Closed");
-
- if(TollsData[2][tollLocked] == 1)
- format(flintLock, sizeof(flintLock), "{BF605C}Locked");
- else
- format(flintLock, sizeof(flintLock), "{85A82B}Unlocked");
-
- if(TollsData[3][tollStatus] == 1)
- format(richStatus, sizeof(richStatus), "Opened");
- else
- format(richStatus, sizeof(richStatus), "Closed");
-
- if(TollsData[3][tollLocked] == 1)
- format(richLock, sizeof(richLock), "{BF605C}Locked");
- else
- format(richLock, sizeof(richLock), "{85A82B}Unlocked");
-
- format(string, sizeof(string), "{AFAFAF}Booth Name\t\t\tStatus\t\t\tEmergency\n");
- strcat(longstr, string);
-
- format(string, sizeof(string), " \t\t\n\n");
- strcat(longstr, string);
-
- format(string, sizeof(string), "{FFFFFF}LSLV Highway{AFAFAF}\t\t\t%s\t\t\t%s\n", lslvStatus, lslvLock);
- strcat(longstr, string);
-
- format(string, sizeof(string), "{FFFFFF}Flint Range{AFAFAF}\t\t\t%s\t\t\t%s\n", flintStatus, flintLock);
- strcat(longstr, string);
-
- format(string, sizeof(string), "{FFFFFF}Rodeo Bank{AFAFAF}\t\t\t%s\t\t\t%s\n", richStatus, richLock);
- strcat(longstr, string);
-
- format(string, sizeof(string), "{AFAFAF}Lock all booths\n{AFAFAF}Unlock all booths");
- strcat(longstr, string);
-
- ShowPlayerDialog(playerid, DIALOG_TOLLM, DIALOG_STYLE_LIST, "Toll Management", longstr, "Select", "Back");
- }
- }
- case DIALOG_TOLLM:{
- if(response){
- switch(listitem){
- case 2:{ // LS LV
- new string[128];
- if(TollsData[1][tollLocked]){
- TollsData[1][tollLocked] = false;
- format(string, sizeof(string), "** HQ Announcement: The Las Venturas tolls were UNLOCKED by %s %s! **", ReturnRank(playerid), ReturnName(playerid, 0));
- SendLawMessage(COLOR_COP, string);
- }
- else{
- TollsData[1][tollLocked] = true;
- format(string, sizeof(string), "** HQ Announcement: The Las Venturas tolls were LOCKED by %s %s! **", ReturnRank(playerid), ReturnName(playerid, 0));
- SendLawMessage(COLOR_COP, string);
-
- tollTimesLocked++;
- }
- }
- case 3:{ // Flint
- new string[128];
- if(TollsData[2][tollLocked]){
- TollsData[2][tollLocked] = false;
- format(string, sizeof(string), "** HQ Announcement: The Flint Range tolls were UNLOCKED by %s %s! **", ReturnRank(playerid), ReturnName(playerid, 0));
- SendLawMessage(COLOR_COP, string);
- }
- else{
- TollsData[2][tollLocked] = true;
- format(string, sizeof(string), "** HQ Announcement: The Flint Range tolls were LOCKED by %s %s! **", ReturnRank(playerid), ReturnName(playerid, 0));
- SendLawMessage(COLOR_COP, string);
-
- tollTimesLocked++;
- }
- }
- case 4:{ // Rodeo
- new string[128];
- if(TollsData[3][tollLocked]){
- TollsData[3][tollLocked] = false;
- format(string, sizeof(string), "** HQ Announcement: The Rodeo Bank tolls were UNLOCKED by %s %s! **", ReturnRank(playerid), ReturnName(playerid, 0));
- SendLawMessage(COLOR_COP, string);
- }
- else{
- TollsData[3][tollLocked] = true;
- format(string, sizeof(string), "** HQ Announcement: The Rodeo Bank tolls were LOCKED by %s %s! **", ReturnRank(playerid), ReturnName(playerid, 0));
- SendLawMessage(COLOR_COP, string);
-
- tollTimesLocked++;
- }
- }
- case 5:{ // Lock all
- new string[128];
-
- for(new i = 0; i < MAX_TOLLS; i++){
- if(TollsData[i][tollID] != 0){
- TollsData[i][tollLocked] = true;
- }
- }
- tollTimesLocked++;
-
- format(string, sizeof(string), "** HQ Announcement: All toll booths were LOCKED by %s %s! **", ReturnRank(playerid), ReturnName(playerid, 0));
- SendLawMessage(COLOR_COP, string);
- }
- case 6:{ // Unlock all
- new string[128];
-
- for(new i = 0; i < MAX_TOLLS; i++){
- if(TollsData[i][tollID] != 0){
- TollsData[i][tollLocked] = false;
- }
- }
-
- format(string, sizeof(string), "** HQ Announcement: All toll booths were UNLOCKED by %s %s! **", ReturnRank(playerid), ReturnName(playerid, 0));
- SendLawMessage(COLOR_COP, string);
- }
- }
- }
- else{
- new string[256];
- format(string, sizeof(string), "Welcome to the toll booth management menu!\n\nFrom this menu you can toggle the locked status of tolls and\nview some information on a specific toll around San Andreas.\n\nThis front screen will also display financial and statistical data\nof all toll booth's including visits, taxations and payments made\nfor the past 60 minutes.\n\n{85A82B}Statistical Information:\n{FFFFFF}Booths Opened: %d Payments: %d Times Locked: %d",
- ReturnTollsOpened(), totalTollPayment, tollTimesLocked);
- ShowPlayerDialog(playerid, DIALOG_TOLLS, DIALOG_STYLE_MSGBOX, "Tollbooth Management", string, "Proceed", "Cancel");
- }
- }
- case DIALOG_FURNITURE:{
- if(response){
- switch(listitem){
- case 0:{
- new prop = IsPlayerInProperty(playerid);
-
- if(CountPropertyFurniture(prop) >= MAX_HOUSE_FURNITURE)
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} Your properties at the limit.");
-
- new string[400];
- string[0] = EOS;
-
- for(new i = 0; i < sizeof(g_aFurnitureTypes); i++){
- format(string, sizeof(string), "%s%s\n", string, g_aFurnitureTypes[i]);
- }
- ShowPlayerDialog(playerid, DIALOG_BUYFURNITURE, DIALOG_STYLE_LIST, "Categories:", string, "Select", "<<");
- }
- case 1:{
- ShowPlayerFurniture(playerid, 1);
-
- /*new sub_str[256], principal_str[3200], title[128], counter = 0, id = IsPlayerInProperty(playerid);
-
- format(title, sizeof(title), "Current Furniture({33AA33}%d{FFFFFF})", CountPropertyFurniture(id));
-
- for(new i = 0; i < MAX_FURNITURE; i++){
- if( FurnitureData[i][furnitureSQLID] != 0 )
- {
- if( FurnitureData[i][furniturePropertyID] == id )
- {
- format(sub_str, sizeof(sub_str), "%d. %s\n", i, FurnitureData[i][furnituresName]);
- strcat(principal_str, sub_str);
- FurnitureSelectHolder[playerid][counter] = i;
- counter++;
- }
- }
- }
- ShowPlayerDialog(playerid, DIALOG_EDIT_FURNITURE, DIALOG_STYLE_LIST, title, principal_str, "Select", "<<");*/
- }
- case 2:{
- new string[267], id = IsPlayerInProperty(playerid);
-
- format(string, sizeof(string), "{FFFFFF}-This property currently\nhas {33AA33}%d{FFFFFF} items.\n-You have a furniture limit of {33AA33}%d\n{FFFFFF}-You can add\n {33AA33}%d{FFFFFF} more items.",
- CountPropertyFurniture(id), MAX_HOUSE_FURNITURE, MAX_HOUSE_FURNITURE - CountPropertyFurniture(id));
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_MSGBOX, "House Information", string, "<<", "");
-
- }
- }
- }
- }
- case DIALOG_EDIT_FURNITURE:{
- if(!response)
- {
- PlayerFurniturePage[playerid] = 0;
- for(new i = 0; i < MAX_SHOWING_FURNITURE+3; i++)
- {
- FurnitureSelectHolder[playerid][i] = -1;
- }
- }
- if(response){
- if(listitem == 0)
- {
- if(PlayerFurniturePage[playerid] == 1)
- ShowPlayerFurniture(playerid, 1);
-
- else
- ShowPlayerFurniture(playerid, PlayerFurniturePage[playerid]-1);
-
- return true;
- }
- if(listitem == MAX_SHOWING_FURNITURE+1){
- return ShowPlayerFurniture(playerid, PlayerFurniturePage[playerid]+1);
- }
-
- //FurnitureSelectHolderArr[playerid] = FurnitureSelectHolder[playerid][listitem];
- PlayerListitemSelected[playerid] = listitem-1;
-
- ShowPlayerDialog(playerid, DIALOG_FURNITURE_EDIT_MENU, DIALOG_STYLE_LIST, "Modification Menu", "Edit Furniture\nDuplicate Furniture\nSell Furniture", "Select", "<<");
- }
- }
- case DIALOG_FURNITURE_EDIT_MENU:{
- if(response){
- for(new i = 0; i < MAX_FURNITURE; i++){
- if(FurnitureData[i][furnitureSQLID] != 0){
- if(FurnitureData[i][furnitureSQLID] == FurnitureSelectHolder[playerid][PlayerListitemSelected[playerid]]){
- FurnitureSelectHolderArr[playerid] = i;
- }
- }
- }
-
- switch(listitem){
- case 0:{
-
- DisplayFurnitureMessage(playerid);
- EditDynamicObject(playerid, FurnitureData[FurnitureSelectHolderArr[playerid]][furnitureObject]);
-
- PlayerData[playerid][pEditingFurniture] = true;
-
- PlayerData[playerid][pEditingXMR] = false;
- PlayerData[playerid][pAddingFurniture] = false;
- }
- case 1:{
- new i = FurnitureSelectHolderArr[playerid];
-
- PlayerData[playerid][pFurnitureDuplicate] =
- CreateDynamicObject(FurnitureData[i][furnituresModel], FurnitureData[i][furniturePos][0], FurnitureData[i][furniturePos][1], FurnitureData[i][furniturePos][2],
- FurnitureData[i][furnitureRot][0], FurnitureData[i][furnitureRot][1], FurnitureData[i][furnitureRot][2], GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
-
- EditDynamicObject(playerid, PlayerData[playerid][pFurnitureDuplicate]);
- PlayerData[playerid][pEditingDuplicate] = true;
-
- DisplayFurnitureMessage(playerid);
- }
- case 2:{
- new string[128];
- format(string, sizeof(string), "{FFFFFF}Are you sure you\n want to sell this %s?\n\nPress {FFFF00}Yes{FFFFFF} to continue.", FurnitureData[FurnitureSelectHolderArr[playerid]][furnituresName]);
-
- ConfirmDialog(playerid, "Confirmation", string, "OnPlayerSellFurniture", FurnitureData[FurnitureSelectHolderArr[playerid]][furnitureObject], FurnitureData[FurnitureSelectHolderArr[playerid]][furnitureSQLID], FurnitureSelectHolderArr[playerid]);
- }
- }
- }
-
- }
- case DIALOG_BUYFURNITURE:{
- new string[1250];
- if(response){
-
- CatFurnitureHolder[playerid] = listitem;
- new counter = 0;
-
- for(new i = 0; i < sizeof(g_aFurnitureData); i++){
- if(listitem == g_aFurnitureData[i][furnitureCategory]){
- format(string, sizeof(string), "%s%s\n", string, g_aFurnitureData[i][furnitureName]);
- SubFurnitureHolderArr[playerid][counter] = i;
- counter++;
- }
- }
- ShowPlayerDialog(playerid, DIALOG_BUYFURNITURE_SUB, DIALOG_STYLE_LIST, "Available Furnitures:", string, "Select", "<<");
- }
- else{
- for(new i = 0; i < sizeof(g_aFurnitureTypes); i++){
- format(string, sizeof(string), "%s%s\n", string, g_aFurnitureTypes[i]);
- }
- ShowPlayerDialog(playerid, DIALOG_BUYFURNITURE, DIALOG_STYLE_LIST, "Categories:", string, "Select", "<<");
- }
- }
- case DIALOG_BUYFURNITURE_SUB:{
- if(response){
-
- SubFurnitureHolder[playerid] = SubFurnitureHolderArr[playerid][listitem];
-
- new Float:currPos[3];
- GetPlayerPos(playerid, currPos[0], currPos[1], currPos[2]);
-
- PlayerData[playerid][pFurnitureModel] = g_aFurnitureData[SubFurnitureHolder[playerid]][furnitureModel];
- format(PlayerData[playerid][pFurnitureName], 32, g_aFurnitureData[SubFurnitureHolder[playerid]][furnitureName]);
-
- PlayerData[playerid][pFurnitureObject] = CreateDynamicObject(g_aFurnitureData[SubFurnitureHolder[playerid]][furnitureModel], currPos[0] - 1, currPos[1], currPos[2] + 1, 0.0, 0.0, 0.0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
- EditDynamicObject(playerid, PlayerData[playerid][pFurnitureObject]);
-
- PlayerData[playerid][pAddingFurniture] = true;
- DisplayFurnitureMessage(playerid);
- }
- }
- case DIALOG_DEALERSHIP:{
- if(response){
- CatDealershipHolder[playerid] = listitem;
-
- new string[900], counter = 0;
-
- for(new i = 0; i < sizeof(g_aDealershipData); i++){
- if(listitem == g_aDealershipData[i][dealershipCategory]){
- format(string, sizeof(string), "%s%s\t\t\t$%s\n", string, g_aDealershipData[i][dealershipModelName], MoneyFormat(g_aDealershipData[i][dealershipPrice]));
- SubDealershipHolderArr[playerid][counter] = i;
- counter++;
- }
- }
- ShowPlayerDialog(playerid, DIALOG_DEALERSHIP_SUB, DIALOG_STYLE_LIST, "Available Vehicles:", string, "Select", "<<");
- }
- else{
- new string[400];
-
- string[0] = EOS;
-
- for(new v = 0; v < sizeof(g_aDealershipCategory); v++){
- format(string, sizeof(string), "%s%s\n", string, g_aDealershipCategory[v]);
- }
- }
- }
- case DIALOG_DEALERSHIP_SUB:{
- if(response){
- SubDealershipHolder[playerid] = SubDealershipHolderArr[playerid][listitem];
- new title[128], string[128];
-
- g_aTotalAmount[playerid] = g_aDealershipData[SubDealershipHolder[playerid]][dealershipPrice];
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
-
- strcat(string, "Alarm\n");
- strcat(string, "Lock\n");
- strcat(string, "Immobiliser\n");
- strcat(string, "Colors\n");
- strcat(string, "No XM Installed\n");
-
- ShowPlayerDialog(playerid, DIALOG_DEALERSHIP_APPEND, DIALOG_STYLE_LIST, title, string, "Append", "Purchase");
-
- TogglePlayerControllable(playerid, false);
-
- new biz = PlayerData[playerid][pAtDealership];
-
- g_aVehicleSpawned[playerid] = CreateVehicle(ds_PlayerMenuModels[playerid][SubDealershipHolder[playerid]], BusinessData[biz][businessInt][0], BusinessData[biz][businessInt][1], BusinessData[biz][businessInt][2], 90, 0, 0, 0, 0);
- PutPlayerInVehicle(playerid, g_aVehicleSpawned[playerid], 0);
- printf("[DEBUG] Vehicle ID %d spawned for %s's dealership car.", g_aVehicleSpawned[playerid], ReturnName(playerid, 1));
- }
- }
- case DIALOG_DEALERSHIP_APPEND:{
- if(response){
- new title[128], string[400];
-
- switch(listitem){
- case 0:{
- format(title, sizeof(title), "%s - {33AA33}$%s", ds_PlayerMenuNames[playerid][SubDealershipHolder[playerid]], MoneyFormat(g_aTotalAmount[playerid]));
-
- if(g_aAlarmLevel[playerid] == 1){
- strcat(string, "{FFFF00}>>{FFFFFF}Alarm Level 1 - $200\n");
- }
- else { strcat(string, "Alarm Level 1 - $200\n"); }
-
- if(g_aAlarmLevel[playerid] == 2){
- strcat(string, "{FFFF00}>>{FFFFFF}Alarm Level 2 - $400\n");
- }
- else { strcat(string, "Alarm Level 2 - $400\n"); }
-
- if(g_aAlarmLevel[playerid] == 3){
- strcat(string, "{FFFF00}>>{FFFFFF}Alarm Level 3 - $600\n");
- }
- else { strcat(string, "Alarm Level 3 - $600\n"); }
-
- if(g_aAlarmLevel[playerid] == 4){
- strcat(string, "{FFFF00}>>{FFFFFF}Alarm Level 4 - $1,000\n");
- }
- else { strcat(string, "Alarm Level 4 - $1,000\n"); }
-
- ShowPlayerDialog(playerid, DIALOG_APPEND_ALARM, DIALOG_STYLE_LIST, title, string, "Select", "<<");
- }
- case 1:{
- format(title, sizeof(title), "%s - {33AA33}$%s", ds_PlayerMenuNames[playerid][SubDealershipHolder[playerid]], MoneyFormat(g_aTotalAmount[playerid]));
-
- if(g_aLockLevel[playerid] == 1){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 1 - $100\n");
- }
- else { strcat(string, "Lock Level 1 - $100\n"); }
-
- if(g_aLockLevel[playerid] == 2){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 2 - $300\n");
- }
- else { strcat(string, "Lock Level 2 - $300\n"); }
-
- if(g_aLockLevel[playerid] == 3){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 3 - $500\n");
- }
- else { strcat(string, "Lock Level 3 - $500\n"); }
-
- if(g_aLockLevel[playerid] == 4){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 4 - $800\n");
- }
- else { strcat(string, "Lock Level 4 - $800\n"); }
-
- ShowPlayerDialog(playerid, DIALOG_APPEND_LOCK, DIALOG_STYLE_LIST, title, string, "Select", "<<");
- }
- case 2:{
- format(title, sizeof(title), "%s - {33AA33}$%s", ds_PlayerMenuNames[playerid][SubDealershipHolder[playerid]], MoneyFormat(g_aTotalAmount[playerid]));
-
- if(g_aImmobLevel[playerid] == 1) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 1 - $300\n");
- }
- else { strcat(string, "Immobiliser Level 1 - $300\n"); }
-
- if(g_aImmobLevel[playerid] == 2) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 2 - $500\n");
- }
- else { strcat(string, "Immobiliser Level 2 - $500\n"); }
-
- if(g_aImmobLevel[playerid] == 3) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 3 - $700\n");
- }
- else { strcat(string, "Immobiliser Level 3 - $700\n"); }
-
- if(g_aImmobLevel[playerid] == 4) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 4 - $1,000\n");
- }
- else { strcat(string, "Immobiliser Level 4 - $1,000\n"); }
-
- ShowPlayerDialog(playerid, DIALOG_APPEND_IMMOB, DIALOG_STYLE_LIST, title, string, "Select", "<<");
- }
- case 3:{
- format(title, sizeof(title), "%s - {33AA33}$%s", ds_PlayerMenuNames[playerid][SubDealershipHolder[playerid]], MoneyFormat(g_aTotalAmount[playerid]));
- ShowPlayerDialog(playerid, DIALOG_APPEND_COLOR, DIALOG_STYLE_INPUT, title, "Enter your vehicles Color1 ID (0-255)!", "Select", ">>");
- }
- case 4:{
- if(!g_aXMR[playerid]){
- g_aXMR[playerid] = true;
-
- format(title, sizeof(title), "%s - {33AA33}$%s", ds_PlayerMenuNames[playerid][SubDealershipHolder[playerid]], MoneyFormat(g_aTotalAmount[playerid]));
-
- strcat(string, "Alarm\n");
- strcat(string, "Lock\n");
- strcat(string, "Immobiliser\n");
- strcat(string, "Colors\n");
- strcat(string, "{FFFF00}XM-Radio Installed\n");
-
- ShowPlayerDialog(playerid, DIALOG_DEALERSHIP_APPEND, DIALOG_STYLE_LIST, title, string, "Select", ">>");
- }
- else{
- g_aXMR[playerid] = false;
-
- format(title, sizeof(title), "%s - {33AA33}$%s", ds_PlayerMenuNames[playerid][SubDealershipHolder[playerid]], MoneyFormat(g_aTotalAmount[playerid]));
-
- strcat(string, "Alarm\n");
- strcat(string, "Lock\n");
- strcat(string, "Immobiliser\n");
- strcat(string, "Colors\n");
- strcat(string, "No XM Installed\n");
-
- ShowPlayerDialog(playerid, DIALOG_DEALERSHIP_APPEND, DIALOG_STYLE_LIST, title, string, "Select", ">>");
- }
- }
- }
- }
- else{
- new title[100];
-
- format(title, sizeof(title), "%s - {33AA33}$%s", ds_PlayerMenuNames[playerid][SubDealershipHolder[playerid]], MoneyFormat(g_aTotalAmount[playerid]));
- ConfirmDialog(playerid, title, "Are you sure you would like\n to continue with this purchase?", "OnPlayerPurchaseCar");
- }
- }
- case DIALOG_APPEND_COLOR:{
- if(response) {
- new title[100];
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
-
- if(!IsNumeric(inputtext)){
- return ShowPlayerDialog(playerid, DIALOG_APPEND_COLOR, DIALOG_STYLE_INPUT, title, "{F81414}Color must be between 0-255! ( /colorlist )\n\n{FFFFFF}Enter your vehicles Color1 ID (0-255)!", "Select", "<<");
- }
-
- g_aVehicleColor[playerid][0] = strval(inputtext);
-
- ChangeVehicleColor(GetPlayerVehicleID(playerid), g_aVehicleColor[playerid][0], g_aVehicleColor[playerid][1]);
-
- ShowPlayerDialog(playerid, DIALOG_APPEND_COLOR2, DIALOG_STYLE_INPUT, title, "Enter your vehicles Color2 ID (0-255)!", "Select", "<<");
- }
- else {
- new title[100], string[128];
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
-
- strcat(string, "Alarm\n");
- strcat(string, "Lock\n");
- strcat(string, "Immobiliser\n");
- strcat(string, "Colors\n");
-
- if(g_aXMR[playerid]) {
- strcat(string, "{FFFF00}XM-Radio Installed\n");
- }
- else{
- strcat(string, "No XM Installed");
- }
-
- ShowPlayerDialog(playerid, DIALOG_DEALERSHIP_APPEND, DIALOG_STYLE_LIST, title, string, "Select", "<<");
- }
- }
- case DIALOG_APPEND_COLOR2:{
- if(response) {
- new title[100], string[128];
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
-
- if(!IsNumeric(inputtext)){
- return ShowPlayerDialog(playerid, DIALOG_APPEND_COLOR, DIALOG_STYLE_INPUT, title, "{F81414}Color must be between 0-255! ( /colorlist )\n\n{FFFFFF}Enter your vehicles Color1 ID (0-255)!", "Select", "<<");
- }
-
- g_aVehicleColor[playerid][1] = strval(inputtext);
-
- ChangeVehicleColor(GetPlayerVehicleID(playerid), g_aVehicleColor[playerid][0], g_aVehicleColor[playerid][1]);
-
- strcat(string, "Alarm\n");
- strcat(string, "Lock\n");
- strcat(string, "Immobiliser\n");
- strcat(string, "Colors\n");
-
- if(g_aXMR[playerid]) {
- strcat(string, "{FFFF00}XM-Radio Installed\n");
- }
- else{
- strcat(string, "No XM Installed");
- }
-
- ShowPlayerDialog(playerid, DIALOG_DEALERSHIP_APPEND, DIALOG_STYLE_LIST, title, string, "Select", "<<");
- }
- else {
- new title[100], string[128];
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
-
- strcat(string, "Alarm\n");
- strcat(string, "Lock\n");
- strcat(string, "Immobiliser\n");
- strcat(string, "Colors\n");
-
- if(g_aXMR[playerid]) {
- strcat(string, "{FFFF00}XM-Radio Installed\n");
- }
- else{
- strcat(string, "No XM Installed");
- }
-
- ShowPlayerDialog(playerid, DIALOG_DEALERSHIP_APPEND, DIALOG_STYLE_LIST, title, string, "Select", "<<");
- }
- }
- case DIALOG_APPEND_IMMOB:{
- if(response){
- new title[100], string[600];
-
- switch(listitem){
- case 0:{
- if(g_aImmobLevel[playerid] != 1) { g_aTotalAmount[playerid] += 300; }
-
- if(g_aImmobLevel[playerid] == 2){
- g_aTotalAmount[playerid] -= 500;
- }
- else if(g_aImmobLevel[playerid] == 3){
- g_aTotalAmount[playerid] -= 700;
- }
- else if(g_aImmobLevel[playerid] == 4){
- g_aTotalAmount[playerid] -= 1000;
- }
-
- g_aImmobLevel[playerid] = 1;
-
- if(g_aImmobLevel[playerid] == 1) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 1 - $300\n");
- }
- else { strcat(string, "Immobiliser Level 1 - $300\n"); }
-
- if(g_aImmobLevel[playerid] == 2) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 2 - $500\n");
- }
- else { strcat(string, "Immobiliser Level 2 - $500\n"); }
-
- if(g_aImmobLevel[playerid] == 3) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 3 - $700\n");
- }
- else { strcat(string, "Immobiliser Level 3 - $700\n"); }
-
- if(g_aImmobLevel[playerid] == 4) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 4 - $1,000\n");
- }
- else { strcat(string, "Immobiliser Level 4 - $1,000\n"); }
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
- ShowPlayerDialog(playerid, DIALOG_APPEND_IMMOB, DIALOG_STYLE_LIST, title, string, "Select", "<<");
- }
- case 1:{
- if(g_aImmobLevel[playerid] != 2) { g_aTotalAmount[playerid] += 500; }
-
- if(g_aImmobLevel[playerid] == 1){
- g_aTotalAmount[playerid] -= 300;
- }
- else if(g_aImmobLevel[playerid] == 3){
- g_aTotalAmount[playerid] -= 700;
- }
- else if(g_aImmobLevel[playerid] == 4){
- g_aTotalAmount[playerid] -= 1000;
- }
-
- g_aImmobLevel[playerid] = 2;
-
- if(g_aImmobLevel[playerid] == 1) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 1 - $300\n");
- }
- else { strcat(string, "Immobiliser Level 1 - $300\n"); }
-
- if(g_aImmobLevel[playerid] == 2) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 2 - $500\n");
- }
- else { strcat(string, "Immobiliser Level 2 - $500\n"); }
-
- if(g_aImmobLevel[playerid] == 3) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 3 - $700\n");
- }
- else { strcat(string, "Immobiliser Level 3 - $700\n"); }
-
- if(g_aImmobLevel[playerid] == 4) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 4 - $1,000\n");
- }
- else { strcat(string, "Immobiliser Level 4 - $1,000\n"); }
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
- ShowPlayerDialog(playerid, DIALOG_APPEND_IMMOB, DIALOG_STYLE_LIST, title, string, "Select", "<<");
- }
- case 2:{
- if(g_aImmobLevel[playerid] != 3) { g_aTotalAmount[playerid] += 700; }
-
- if(g_aImmobLevel[playerid] == 1){
- g_aTotalAmount[playerid] -= 300;
- }
- else if(g_aImmobLevel[playerid] == 2){
- g_aTotalAmount[playerid] -= 500;
- }
- else if(g_aImmobLevel[playerid] == 4){
- g_aTotalAmount[playerid] -= 1000;
- }
-
- g_aImmobLevel[playerid] = 3;
-
- if(g_aImmobLevel[playerid] == 1) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 1 - $300\n");
- }
- else { strcat(string, "Immobiliser Level 1 - $300\n"); }
-
- if(g_aImmobLevel[playerid] == 2) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 2 - $500\n");
- }
- else { strcat(string, "Immobiliser Level 2 - $500\n"); }
-
- if(g_aImmobLevel[playerid] == 3) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 3 - $700\n");
- }
- else { strcat(string, "Immobiliser Level 3 - $700\n"); }
-
- if(g_aImmobLevel[playerid] == 4) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 4 - $1,000\n");
- }
- else { strcat(string, "Immobiliser Level 4 - $1000\n"); }
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
- ShowPlayerDialog(playerid, DIALOG_APPEND_IMMOB, DIALOG_STYLE_LIST, title, string, "Select", "<<");
- }
- case 3:{
- if(g_aImmobLevel[playerid] != 4) { g_aTotalAmount[playerid] += 1000; }
-
- if(g_aImmobLevel[playerid] == 1){
- g_aTotalAmount[playerid] -= 300;
- }
- else if(g_aImmobLevel[playerid] == 2){
- g_aTotalAmount[playerid] -= 500;
- }
- else if(g_aImmobLevel[playerid] == 3){
- g_aTotalAmount[playerid] -= 700;
- }
-
- g_aImmobLevel[playerid] = 4;
-
- if(g_aImmobLevel[playerid] == 1) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 1 - $300\n");
- }
- else { strcat(string, "Immobiliser Level 1 - $300\n"); }
-
- if(g_aImmobLevel[playerid] == 2) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 2 - $500\n");
- }
- else { strcat(string, "Immobiliser Level 2 - $500\n"); }
-
- if(g_aImmobLevel[playerid] == 3) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 3 - $700\n");
- }
- else { strcat(string, "Immobiliser Level 3 - $700\n"); }
-
- if(g_aImmobLevel[playerid] == 4) {
- strcat(string, "{FFFF00}>>{FFFFFF}Immobiliser Level 4 - $1,000\n");
- }
- else { strcat(string, "Immobiliser Level 4 - $1,000\n"); }
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
- ShowPlayerDialog(playerid, DIALOG_APPEND_IMMOB, DIALOG_STYLE_LIST, title, string, "Select", "<<");
- }
- }
- }
- else{
- new title[100], string[128];
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
-
- strcat(string, "Alarm\n");
- strcat(string, "Lock\n");
- strcat(string, "Immobiliser\n");
- strcat(string, "Colors\n");
-
- if(g_aXMR[playerid]) {
- strcat(string, "{FFFF00}XM-Radio Installed\n");
- }
- else{
- strcat(string, "No XM Installed");
- }
-
- ShowPlayerDialog(playerid, DIALOG_DEALERSHIP_APPEND, DIALOG_STYLE_LIST, title, string, "Select", "<<");
- }
- }
- case DIALOG_APPEND_LOCK:{
- if(response){
- new title[100], string[128];
-
- switch(listitem){
- case 0:{
- if(g_aLockLevel[playerid] != 1) { g_aTotalAmount[playerid]+= 100; }
-
- if(g_aLockLevel[playerid] == 2){
- g_aTotalAmount[playerid]-= 300;
- }
- else if(g_aLockLevel[playerid] == 3){
- g_aTotalAmount[playerid] -=500;
- }
- else if(g_aLockLevel[playerid] == 4){
- g_aTotalAmount[playerid]-=800;
- }
-
- g_aLockLevel[playerid] = 1;
-
- if(g_aLockLevel[playerid] == 1){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 1 - $100\n");
- }
- else { strcat(string, "Lock Level 1 - $100\n"); }
-
- if(g_aLockLevel[playerid] == 2){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 2 - $300\n");
- }
- else { strcat(string, "Lock Level 2 - $300\n"); }
-
- if(g_aLockLevel[playerid] == 3){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 3 - $500\n");
- }
- else { strcat(string, "Lock Level 3 - $500\n"); }
-
- if(g_aLockLevel[playerid] == 4){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 4 - $800\n");
- }
- else { strcat(string, "Lock Level 4 - $800\n"); }
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
- ShowPlayerDialog(playerid, DIALOG_APPEND_LOCK, DIALOG_STYLE_LIST, title, string, "Select", "<<");
- }
- case 1:{
- if(g_aLockLevel[playerid] != 2) { g_aTotalAmount[playerid]+= 300; }
-
- if(g_aLockLevel[playerid] == 1){
- g_aTotalAmount[playerid] -= 100;
- }
- else if(g_aLockLevel[playerid] == 3){
- g_aTotalAmount[playerid] -= 500;
- }
- else if(g_aLockLevel[playerid] == 4){
- g_aTotalAmount[playerid]-= 800;
- }
-
- g_aLockLevel[playerid] = 2;
-
- if(g_aLockLevel[playerid] == 1){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 1 - $100\n");
- }
- else { strcat(string, "Lock Level 1 - $100\n"); }
-
- if(g_aLockLevel[playerid] == 2){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 2 - $300\n");
- }
- else { strcat(string, "Lock Level 2 - $300\n"); }
-
- if(g_aLockLevel[playerid] == 3){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 3 - $500\n");
- }
- else { strcat(string, "Lock Level 3 - $500\n"); }
-
- if(g_aLockLevel[playerid] == 4){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 4 - $800\n");
- }
- else { strcat(string, "Lock Level 4 - $800\n"); }
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
- ShowPlayerDialog(playerid, DIALOG_APPEND_LOCK, DIALOG_STYLE_LIST, title, string, "Select", "<<");
- }
- case 2:{
- if(g_aLockLevel[playerid] != 3) { g_aTotalAmount[playerid]+= 500; }
-
- if(g_aLockLevel[playerid] == 1){
- g_aTotalAmount[playerid] -= 100;
- }
- else if(g_aLockLevel[playerid] == 2){
- g_aTotalAmount[playerid] -= 300;
- }
- else if(g_aLockLevel[playerid] == 4){
- g_aTotalAmount[playerid]-= 800;
- }
-
- g_aLockLevel[playerid] = 3;
-
- if(g_aLockLevel[playerid] == 1){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 1 - $100\n");
- }
- else { strcat(string, "Lock Level 1 - $100\n"); }
-
- if(g_aLockLevel[playerid] == 2){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 2 - $300\n");
- }
- else { strcat(string, "Lock Level 2 - $300\n"); }
-
- if(g_aLockLevel[playerid] == 3){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 3 - $500\n");
- }
- else { strcat(string, "Lock Level 3 - $500\n"); }
-
- if(g_aLockLevel[playerid] == 4){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 4 - $800\n");
- }
- else { strcat(string, "Lock Level 4 - $800\n"); }
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
- ShowPlayerDialog(playerid, DIALOG_APPEND_LOCK, DIALOG_STYLE_LIST, title, string, "Select", "<<");
- }
- case 3:{
- if(g_aLockLevel[playerid] != 4) { g_aTotalAmount[playerid]+= 800; }
-
- if(g_aLockLevel[playerid] == 1){
- g_aTotalAmount[playerid] -= 100;
- }
- else if(g_aLockLevel[playerid] == 2){
- g_aTotalAmount[playerid] -= 300;
- }
- else if(g_aLockLevel[playerid] == 3){
- g_aTotalAmount[playerid]-= 500;
- }
-
- g_aLockLevel[playerid] = 4;
-
- if(g_aLockLevel[playerid] == 1){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 1 - $100\n");
- }
- else { strcat(string, "Lock Level 1 - $100\n"); }
-
- if(g_aLockLevel[playerid] == 2){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 2 - $300\n");
- }
- else { strcat(string, "Lock Level 2 - $300\n"); }
-
- if(g_aLockLevel[playerid] == 3){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 3 - $500\n");
- }
- else { strcat(string, "Lock Level 3 - $500\n"); }
-
- if(g_aLockLevel[playerid] == 4){
- strcat(string, "{FFFF00}>>{FFFFFF}Lock Level 4 - $800\n");
- }
- else { strcat(string, "Lock Level 4 - $800\n"); }
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
- ShowPlayerDialog(playerid, DIALOG_APPEND_LOCK, DIALOG_STYLE_LIST, title, string, "Select", "<<");
- }
- }
- }
- else{
- new title[128], string[128];
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
-
- strcat(string, "Alarm\n");
- strcat(string, "Lock\n");
- strcat(string, "Immobiliser\n");
- strcat(string, "Colors\n");
-
- if(g_aXMR[playerid]) {
- strcat(string, "{FFFF00}XM-Radio Installed\n");
- }
- else{
- strcat(string, "No XM Installed");
- }
-
- ShowPlayerDialog(playerid, DIALOG_DEALERSHIP_APPEND, DIALOG_STYLE_LIST, title, string, "Select", "<<");
- }
- }
- case DIALOG_APPEND_ALARM:{
- if(response){
- new title[128], string[600];
-
- switch(listitem){
- case 0:{
- if(g_aAlarmLevel[playerid] != 1){ g_aTotalAmount[playerid]+= 200; }
-
- if(g_aAlarmLevel[playerid] == 2){
- g_aTotalAmount[playerid]-= 400;
- }
- else if(g_aAlarmLevel[playerid] == 3){
- g_aTotalAmount[playerid]-=600;
- }
- else if(g_aAlarmLevel[playerid] == 4){
- g_aTotalAmount[playerid]-=1000;
- }
-
- g_aAlarmLevel[playerid] = 1;
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
- strcat(string, "{FFFF00}>>{FFFFFF}Alarm Level 1 - $200\n");
- strcat(string, "Alarm Level 2 - $400\n");
- strcat(string, "Alarm Level 3 - $600\n");
- strcat(string, "Alarm Level 4 - $1000\n");
-
- ShowPlayerDialog(playerid, DIALOG_APPEND_ALARM, DIALOG_STYLE_LIST, title, string, "Select", ">>");
- }
- case 1:{
- if(g_aAlarmLevel[playerid] != 2){ g_aTotalAmount[playerid]+= 400; }
-
- if(g_aAlarmLevel[playerid] == 1){
- g_aTotalAmount[playerid]-= 200;
- }
- else if(g_aAlarmLevel[playerid] == 3){
- g_aTotalAmount[playerid]-=600;
- }
- else if(g_aAlarmLevel[playerid] == 4){
- g_aTotalAmount[playerid]-=1000;
- }
-
- g_aAlarmLevel[playerid] = 2;
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
- strcat(string, "Alarm Level 1 - $200\n");
- strcat(string, "{FFFF00}>>{FFFFFF}Alarm Level 2 - $400\n");
- strcat(string, "Alarm Level 3 - $600\n");
- strcat(string, "Alarm Level 4 - $1000\n");
-
- ShowPlayerDialog(playerid, DIALOG_APPEND_ALARM, DIALOG_STYLE_LIST, title, string, "Select", ">>");
- }
- case 2:{
- if(g_aAlarmLevel[playerid] != 3){ g_aTotalAmount[playerid]+= 600; }
-
- if(g_aAlarmLevel[playerid] == 1){
- g_aTotalAmount[playerid]-=200;
- }
- else if(g_aAlarmLevel[playerid] == 2){
- g_aTotalAmount[playerid]-= 400;
- }
- else if(g_aAlarmLevel[playerid] == 4){
- g_aTotalAmount[playerid]-=1000;
- }
-
- g_aAlarmLevel[playerid] = 3;
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
- strcat(string, "Alarm Level 1 - $200\n");
- strcat(string, "Alarm Level 2 - $400\n");
- strcat(string, "{FFFF00}>>{FFFFFF}Alarm Level 3 - $600\n");
- strcat(string, "Alarm Level 4 - $1,000\n");
-
- ShowPlayerDialog(playerid, DIALOG_APPEND_ALARM, DIALOG_STYLE_LIST, title, string, "Select", ">>");
- }
- case 3:{
- if(g_aAlarmLevel[playerid] != 4){ g_aTotalAmount[playerid]+= 1000; }
-
- if(g_aAlarmLevel[playerid] == 1){
- g_aTotalAmount[playerid]-=200;
- }
- else if(g_aAlarmLevel[playerid] == 2){
- g_aTotalAmount[playerid]-= 400;
- }
- else if(g_aAlarmLevel[playerid] == 3){
- g_aTotalAmount[playerid]-=600;
- }
-
- g_aAlarmLevel[playerid] = 4;
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
- strcat(string, "Alarm Level 1 - $200\n");
- strcat(string, "Alarm Level 2 - $400\n");
- strcat(string, "Alarm Level 3 - $600\n");
- strcat(string, "{FFFF00}>>{FFFFFF}Alarm Level 4 - $1,000\n");
-
- ShowPlayerDialog(playerid, DIALOG_APPEND_ALARM, DIALOG_STYLE_LIST, title, string, "Select", ">>");
- }
- }
- }
- else{
- new title[128], string[128];
-
- format(title, sizeof(title), "%s - {33AA33}$%s", g_aDealershipData[SubDealershipHolder[playerid]][dealershipModelName], MoneyFormat(g_aTotalAmount[playerid]));
-
- strcat(string, "Alarm\n");
- strcat(string, "Lock\n");
- strcat(string, "Immobiliser\n");
- strcat(string, "Colors\n");
-
- if(g_aXMR[playerid]) {
- strcat(string, "{FFFF00}XM-Radio Installed\n");
- }
- else{
- strcat(string, "No XM Installed");
- }
-
- ShowPlayerDialog(playerid, DIALOG_DEALERSHIP_APPEND, DIALOG_STYLE_LIST, title, string, "Select", "<<");
- }
- }
- case DIALOG_XMR:
- {
- if(response){
- new string[400], counter = 0;
- string[0] = EOS;
-
- CatXMRHolder[playerid] = listitem + 1;
-
- for(new i = 1; i < MAX_XMR_SUBCATEGORY; i++)
- {
- if (CatXMRHolder[playerid] == XMRData[i][xmrCategory]){
- format(string, sizeof(string), "%sID:%d - %s\n", string, XMRData[i][xmrID], XMRData[i][xmrName]);
-
- SubXMRHolderArr[playerid][counter] = i;
- counter++;
- }
- }
-
- strcat(string, "{FFFF00}OFF - Click to turn off.\n");
- ShowPlayerDialog(playerid, DIALOG_XMR_SELECT, DIALOG_STYLE_LIST, "Stations:", string, "Select", "Cancel");
- }
- }
- case DIALOG_XMR_SELECT:
- {
- if(response){
- SubXMRHolder[playerid] = SubXMRHolderArr[playerid][listitem];
-
- if(!strcmp(inputtext, "OFF - Click to turn off."))
- {
- cmd_setstation(playerid, "off");
- return 1;
- }
-
- new
- string[128],
- vehicleid = GetPlayerVehicleID(playerid),
- property = IsPlayerInProperty(playerid)
- ;
-
- if (IsNearBoombox(playerid))
- {
- format(string, sizeof(string), "> %s has turned the radio to %s.", ReturnName(playerid, 0), XMRData[SubXMRHolder[playerid]][xmrName]);
- SetPlayerChatBubble(playerid, string, COLOR_ACTION, 20.0, 3000);
- SendClientMessage(playerid, 0x88AA62FF, string);
-
- new idx = IsNearBoombox(playerid);
-
- foreach (new i : Player)
- {
- if (pLoggedIn[i])
- {
- if (IsPlayerInRangeOfPoint(i, 25.0, BoomboxData[idx][boomboxPos][0], BoomboxData[idx][boomboxPos][1], BoomboxData[idx][boomboxPos][2]))
- {
- PlayAudioStreamForPlayer(i, XMRData[SubXMRHolder[playerid]][xmrStationURL], BoomboxData[idx][boomboxPos][0], BoomboxData[idx][boomboxPos][1], BoomboxData[idx][boomboxPos][2], 25.0, 1);
-
- format(string, sizeof(string), "Radio changed to station %s.", XMRData[SubXMRHolder[playerid]][xmrName]);
- SendClientMessage(i, COLOR_ADM, string);
- }
- }
- }
-
- BoomboxData[idx][boomboxOn] = true;
- format(BoomboxData[idx][boomboxURL], 128, "%s", XMRData[SubXMRHolder[playerid]][xmrStationURL]);
- return true;
- }
-
- if(IsPlayerInAnyVehicle(playerid))
- {
- format(string, sizeof(string), "> %s has turned the radio to %s.", ReturnName(playerid, 0), XMRData[SubXMRHolder[playerid]][xmrName]);
- SetPlayerChatBubble(playerid, string, COLOR_ACTION, 20.0, 3000);
- SendClientMessage(playerid, 0x88AA62FF, string);
-
- if(IsValidPlayerCar(vehicleid))
- {
- CarData[vehicleid][carXMROn] = true;
- format(CarData[vehicleid][carXMRUrl], 128, "%s", XMRData[SubXMRHolder[playerid]][xmrStationURL]);
- }
-
- if(IsValidFactionCar(vehicleid))
- {
- FactionCar[vehicleid][carsXMROn] = true;
- format(FactionCar[vehicleid][carsXMRURL], 128, "%s", XMRData[SubXMRHolder[playerid]][xmrStationURL]);
- }
-
- foreach(new i : Player)
- {
- if(IsPlayerInVehicle(i, vehicleid))
- {
- PlayAudioStreamForPlayer(i, XMRData[SubXMRHolder[playerid]][xmrStationURL]);
-
- format(string, sizeof(string), "Radio changed to station %s.", XMRData[SubXMRHolder[playerid]][xmrName]);
- SendClientMessage(i, COLOR_ADM, string);
- }
- }
- return true;
- }
-
- if(IsPlayerInProperty(playerid))
- {
- foreach(new i : Player)
- {
- if(IsPlayerInProperty(i) == IsPlayerInProperty(playerid))
- {
- PlayAudioStreamForPlayer(i, XMRData[SubXMRHolder[playerid]][xmrStationURL]);
-
- format(string, sizeof(string), "Radio changed to station %s.", XMRData[SubXMRHolder[playerid]][xmrName]);
- SendClientMessage(i, COLOR_ADM, string);
- }
- }
-
- format(string, sizeof(string), "> %s has turned the radio to %s.", ReturnName(playerid, 0), XMRData[SubXMRHolder[playerid]][xmrName]);
- SetPlayerChatBubble(playerid, string, COLOR_ACTION, 20.0, 3000);
- SendClientMessage(playerid, 0x88AA62FF, string);
-
- PropertyData[property][propertyXMROn] = true;
- format(PropertyData[property][propertyXMRUrl], 128, "%s", XMRData[SubXMRHolder[playerid]][xmrStationURL]);
- return true;
- }
- SendClientMessage(playerid, COLOR_ADM, "You're no longer near a radio... Please stay within a distance of your XMR source.");
- return true;
- }
- }
- case DIALOG_BUY_CLOTHING:
- {
- if(response){
- if(listitem == 0){
- if(PlayerClothingPage[playerid] == 1)
- ShowClothingList(playerid, 1);
-
- else
- ShowClothingList(playerid, PlayerClothingPage[playerid]-1);
-
- return true;
- }
- if(listitem == MAX_CLOTHING_SHOW+1){
- return ShowClothingList(playerid, PlayerClothingPage[playerid]+1);
- }
-
- new id = ClothingItemSelector[playerid][listitem-1], clothing_id = FreeAttachmentSlot(playerid);
-
- ApplyAnimation(playerid, "CLOTHES", "CLO_Pose_Hat", 4.1, 0, 0, 0, 1, 0, 1);
-
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Use {FFFF00}SPACE{FFFFFF} to look around. Press {FFFF00}ESC{FFFFFF} to decline.");
- SendClientMessage(playerid, COLOR_WHITE, "Use {FFFF00}/clothing{FFFFFF} to edit your clothing items.");
-
- SetPlayerAttachedObject(playerid, clothing_id, g_aClothingData[id][clothingModel], 2);
- EditAttachedObject(playerid, clothing_id);
- // was -1
- ClothingCost[playerid] = g_aClothingData[id][clothingPrice];
-
- format(PlayerData[playerid][pClothingName], 90, "%s", g_aClothingData[id][clothingName]);
- PlayerData[playerid][pBuyingClothing] = true;
- }
- }
- case DIALOG_CLOTHING_MENU:
- {
- new
- string[128]
- ;
-
- if(response)
- {
- ClothingHolder[playerid] = ClothingMenuSelect[playerid][listitem + 1];
- new index;
-
- for(new i = 1; i < MAX_CLOTHING_ITEMS; i++)
- {
- if(ClothingData[playerid][i][attachment_SQLID] == ClothingMenuSelect[playerid][listitem + 1])
- index = i;
- }
-
- format(string, sizeof(string), "%s", ClothingData[playerid][index][attachment_name]);
-
- if(IsPlayerAttachedObjectSlotUsed(playerid, index))
- ShowPlayerDialog(playerid, DIALOG_CLOTHING_EDIT, DIALOG_STYLE_LIST, string, "Adjust The Item\nChange Bone Slot\nDrop The Item\nTake Off", "Select", "<<");
-
- else
- ShowPlayerDialog(playerid, DIALOG_CLOTHING_EDIT, DIALOG_STYLE_LIST, string, "Adjust The Item\nChange Bone Slot\nDrop The Item\nPlace On", "Select", "<<");
-
- for(new i = 1; i < MAX_CLOTHING_ITEMS; i++)
- {
- ClothingMenuSelect[playerid][i] = 0;
- }
- }
- }
- case DIALOG_CLOTHING_EDIT:
- {
- new
- id,
- string[128]
- ;
-
- for(new i = 1; i < MAX_CLOTHING_ITEMS; i++)
- {
- if(ClothingData[playerid][i][attachment_SQLID] == ClothingHolder[playerid])
- id = i;
- }
-
- if(response) {
- switch(listitem){
- case 0:
- {
- if (IsPlayerAttachedObjectSlotUsed(playerid, id))
- {
- ApplyAnimation(playerid, "CLOTHES", "CLO_Pose_Hat", 4.1, 0, 0, 0, 1, 0, 1);
- EditAttachedObject(playerid, id);
-
- PlayerData[playerid][pEditingClothing] = true;
- }
- else {
- SetPlayerAttachedObject(playerid, id, ClothingData[playerid][id][attachment_modelid], ClothingData[playerid][id][attachment_bone], ClothingData[playerid][id][attachment_Pos][0], ClothingData[playerid][id][attachment_Pos][1], ClothingData[playerid][id][attachment_Pos][2],
- ClothingData[playerid][id][attachment_Rot][0], ClothingData[playerid][id][attachment_Rot][1], ClothingData[playerid][id][attachment_Rot][2], ClothingData[playerid][id][attachment_Scale][0],
- ClothingData[playerid][id][attachment_Scale][1], ClothingData[playerid][id][attachment_Scale][2]);
-
- ApplyAnimation(playerid, "CLOTHES", "CLO_Pose_Hat", 4.1, 0, 0, 0, 1, 0, 1);
- EditAttachedObject(playerid, id);
-
- PlayerData[playerid][pEditingClothing] = true;
- }
- }
- case 1:
- {
- ShowPlayerDialog(playerid, DIALOG_CLOTHES_BONE, DIALOG_STYLE_LIST, "Change The Bone Slot", "Spine\nHead\nLeft arm\nRight arm\nLeft hand\nRight hand\nLeft thigh\nRight thigh\nLeft foot\nRight foot", "Select", "<<");
- }
- case 2:
- {
- new
- thread[128];
-
- mysql_format(m_Handle, thread, sizeof(thread), "DELETE FROM player_clothing WHERE id = %i", ClothingData[playerid][id][attachment_SQLID]);
- mysql_pquery(m_Handle, thread, "OnClothingDelete", "ii", playerid, id);
- }
- case 3:
- {
- if (IsPlayerAttachedObjectSlotUsed(playerid, id))
- {
- RemovePlayerAttachedObject(playerid, id);
-
- format(string, sizeof(string), "You took off %s", ClothingData[playerid][id][attachment_name]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else {
- SetPlayerAttachedObject(playerid, id, ClothingData[playerid][id][attachment_modelid], ClothingData[playerid][id][attachment_bone], ClothingData[playerid][id][attachment_Pos][0], ClothingData[playerid][id][attachment_Pos][1], ClothingData[playerid][id][attachment_Pos][2],
- ClothingData[playerid][id][attachment_Rot][0], ClothingData[playerid][id][attachment_Rot][1], ClothingData[playerid][id][attachment_Rot][2], ClothingData[playerid][id][attachment_Scale][0],
- ClothingData[playerid][id][attachment_Scale][1], ClothingData[playerid][id][attachment_Scale][2]);
-
- format(string, sizeof(string), "You put on %s", ClothingData[playerid][id][attachment_name]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- }
- }
- else
- {
- return cmd_clothing(playerid, "");
- }
- }
- case DIALOG_CLOTHES_BONE:
- {
- new id, string[128];
-
- for(new i = 1; i < MAX_CLOTHING_ITEMS; i++)
- {
- if(ClothingData[playerid][i][attachment_SQLID] == ClothingHolder[playerid])
- id = i;
- }
-
- if(response){
- switch(listitem){
- case 0:{
- format(string, sizeof(string), "You changed your %s(Index: %d) bone to Spine", ClothingData[playerid][id][attachment_name], id);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- ClothingData[playerid][id][attachment_bone] = OBJECT_BONE_SPINE;
- }
- case 1:{
- format(string, sizeof(string), "You changed your %s(Index: %d) bone to Head", ClothingData[playerid][id][attachment_name], id);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- ClothingData[playerid][id][attachment_bone] = OBJECT_BONE_HEAD;
- }
- case 2:{
- format(string, sizeof(string), "You changed your %s(Index: %d) bone to Left arm", ClothingData[playerid][id][attachment_name], id);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- ClothingData[playerid][id][attachment_bone] = OBJECT_BONE_LUPPER_A;
- }
- case 3:{
- format(string, sizeof(string), "You changed your %s(Index: %d) bone to Right arm", ClothingData[playerid][id][attachment_name], id);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- ClothingData[playerid][id][attachment_bone] = OBJECT_BONE_RUPPER_A;
- }
- case 4:{
- format(string, sizeof(string), "You changed your %s(Index: %d) bone to Left hand", ClothingData[playerid][id][attachment_name], id);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- ClothingData[playerid][id][attachment_bone] = OBJECT_BONE_LHAND;
- }
- case 5:{
- format(string, sizeof(string), "You changed your %s(Index: %d) bone to Right hand", ClothingData[playerid][id][attachment_name], id);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- ClothingData[playerid][id][attachment_bone] = OBJECT_BONE_RHAND;
- }
- case 6:{
- format(string, sizeof(string), "You changed your %s(Index: %d) bone to Left thigh", ClothingData[playerid][id][attachment_name], id);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- ClothingData[playerid][id][attachment_bone] = OBJECT_BONE_LTHIGH;
- }
- case 7:{
- format(string, sizeof(string), "You changed your %s(Index: %d) bone to Right thigh", ClothingData[playerid][id][attachment_name], id);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- ClothingData[playerid][id][attachment_bone] = OBJECT_BONE_RTHIGH;
- }
- case 8:{
- format(string, sizeof(string), "You changed your %s(Index: %d) bone to Left foot", ClothingData[playerid][id][attachment_name], id);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- ClothingData[playerid][id][attachment_bone] = OBJECT_BONE_LFOOT;
- }
- case 9:{
- format(string, sizeof(string), "You changed your %s(Index: %d) bone to Right foot", ClothingData[playerid][id][attachment_name], id);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- ClothingData[playerid][id][attachment_bone] = OBJECT_BONE_RFOOT;
- }
- }
-
- new
- thread[128];
-
- mysql_format(m_Handle, thread, sizeof(thread), "UPDATE player_clothing SET bone = %i WHERE id = %i", ClothingData[playerid][id][attachment_bone], ClothingData[playerid][id][attachment_SQLID]);
- mysql_tquery(m_Handle, thread);
- }
- }
- case DIALOG_ADMIN_MSG:
- {
- if (response){
- PlayerData[playerid][pAdmMsgConfirm] = true;
-
- format(PlayerData[playerid][pAdminMsg], 128, "");
- format(PlayerData[playerid][pAdminMsgBy], 60, "");
- }
- }
- case DIALOG_SECRET_WORD_CREATE:
- {
- new query[256];
-
- if (!response) {
- SendClientMessage(playerid, COLOR_ADM, "You have been kicked for not setting your secret word.");
- printf("[DEBUG] %s was auto-kicked (Reason: Not logging in after 60s.)");
- KickEx(playerid);
- return true;
- }
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET SecretWord = sha1('%e') WHERE id = %i", inputtext, PlayerData[playerid][pSQLID]);
- mysql_pquery(m_Handle, query);
-
- LoadPlayerData(playerid);
- SendClientMessage(playerid, COLOR_YELLOW, "Your connection to the server has been authenticated.");
- }
- case DIALOG_SECRET_WORD_ENTER:
- {
- new string[128], query[256];
-
- if(!response) {
- SendClientMessage(playerid, COLOR_ADM, "You have been kicked for not logging in.");
-
- format(string, sizeof(string), "%s was kicked during login (Did not confirm security password). Details logged", ReturnName(playerid, 1));
- adminWarn(1, string);
-
- KickEx(playerid);
- return true;
- }
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT id FROM players WHERE Name = '%e' AND SecretWord = sha1('%e') LIMIT 1", ReturnName(playerid, 1), inputtext);
- mysql_pquery(m_Handle, query, "SQL_OnAccountConfirm", "i", playerid);
- }
- case DIALOG_GRAFFITI_MENU:
- {
- if (response)
- {
- switch(listitem)
- {
- case 0:
- {
- new string[289];
-
- string = "USAGE:\n\n-\t\tIn this dialog, you may insert custom text to spray graffiti with. With this, there are custom bbCodes.\n\n\t\tNew line (n), Black (b), Brown(br) Red (r), Blue (bl), Green (g), Orange (o), White (w)\n\t\tYellow (y), Maroon (mr)\n-\t\t\nYour character may not be longer then 60 characters.";
-
- format(string, sizeof(string), "%s", string);
-
- ShowPlayerDialog(playerid, DIALOG_GRAFFITI_TEXT, DIALOG_STYLE_INPUT, "Enter your text:", string, "Select", "<<");
- }
- case 1:
- {
- ShowPlayerDialog(playerid, DIALOG_GRAFFITI_FONT, DIALOG_STYLE_LIST, "Pick A Font:", "Comic Sans\nLevi Brush\nDripping\nDiploma", "Select", "<<");
- }
- }
- }
- }
- case DIALOG_GRAFFITI_FONT:
- {
- if (response)
- {
- switch(listitem)
- {
- case 0:
- {
- format(graffitiFont[playerid], 60, "Comic Sans");
- SendClientMessage(playerid, COLOR_YELLOW, "You have chosen the font:{FFFFFF} Comic Sans");
- }
- case 1:
- {
- format(graffitiFont[playerid], 60, "Levi Brush");
- SendClientMessage(playerid, COLOR_YELLOW, "You have chosen the font:{FFFFFF} Levi Brush");
- }
- case 2:
- {
- format(graffitiFont[playerid], 60, "Dripping");
- SendClientMessage(playerid, COLOR_YELLOW, "You have chosen the font:{FFFFFF} Dripping");
- }
- case 3:
- {
- format(graffitiFont[playerid], 60, "Diploma");
- SendClientMessage(playerid, COLOR_YELLOW, "You have chosen the font:{FFFFFF} Diploma");
- }
- }
- }
- else return ShowPlayerDialog(playerid, DIALOG_GRAFFITI_MENU, DIALOG_STYLE_LIST, "Main Menu:", "Custom Graffiti Text\nChoose Your Font", "Select", "<<");
- }
- case DIALOG_GRAFFITI_TEXT:
- {
- if (response)
- {
- new
- string[289]
- ;
-
- string = "USAGE:\n\n-\tIn this dialog, you may insert custom text to spray graffiti with. With this, there are custom bbCodes.\n\n\t\tNew line (n), Black (b), Brown(br) Red (r), Blue (bl), Green (g), Orange (o), White (w)\n\t\tYellow (y), Maroon (mr)\n-\t\t\nYour character may not be longer then 60 characters.";
-
- format(string, sizeof(string), "%s", string);
-
- if(strlen(inputtext) >= 60)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Your graffiti text was over 60 characters.");
-
- ShowPlayerDialog(playerid, DIALOG_GRAFFITI_TEXT, DIALOG_STYLE_INPUT, "Enter your text:", string, "Select", "<<");
- return true;
- }
-
- if(strlen(inputtext) < 1)
- {
- ShowPlayerDialog(playerid, DIALOG_GRAFFITI_TEXT, DIALOG_STYLE_INPUT, "Enter your text:", string, "Select", "<<");
- return true;
- }
-
- ShowPlayerDialog(playerid, DIALOG_GRAFFITI_TEXT, DIALOG_STYLE_INPUT, "Enter your text:", string, "Select", "<<");
- format(graffitiText[playerid], 60, "%s", inputtext);
-
- sprayingGraffitiTime[playerid] = strlen(graffitiText[playerid]);
- saveSprayingTime[playerid] = sprayingGraffitiTime[playerid];
-
- format(graffitiFont[playerid], 60, "Comic Sans");
- SendClientMessage(playerid, COLOR_YELLOW, "You have set your text!");
-
- format(string, sizeof(string), "%s", graffitiText[playerid]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else return ShowPlayerDialog(playerid, DIALOG_GRAFFITI_MENU, DIALOG_STYLE_LIST, "Main Menu:", "Custom Graffiti Text\nChoose Your Font", "Select", "<<");
- }
- case DIALOG_FACTION_CLOTHING:
- {
- if(response){
- new id = listitem, clothing_id = FreeAttachmentSlot(playerid);
-
- ApplyAnimation(playerid, "CLOTHES", "CLO_Pose_Hat", 4.1, 0, 0, 0, 1, 0, 1);
-
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Use {FFFF00}SPACE{FFFFFF} to look around. Press {FFFF00}ESC{FFFFFF} to decline.");
- SendClientMessage(playerid, COLOR_WHITE, "Use {FFFF00}/clothing{FFFFFF} to edit your clothing items.");
-
- SetPlayerAttachedObject(playerid, clothing_id, g_aFactionClothing[id][clothingModel], 2);
- EditAttachedObject(playerid, clothing_id);
-
- ClothingCost[playerid] = g_aFactionClothing[id][clothingPrice];
-
- format(PlayerData[playerid][pClothingName], 90, "%s", g_aFactionClothing[id][clothingName]);
- PlayerData[playerid][pBuyingClothing] = true;
- }
- }
- case DIALOG_MDC:
- {
- if(response)
- {
- PlayNearbySound(playerid, MDC_SELECT);
-
- switch(listitem)
- {
- case 0: return ShowPlayerDialog(playerid, DIALOG_MDC_NAME, DIALOG_STYLE_INPUT, "Name Search - MDC", "Enter the persons full legal name to search below:", "Select", "<<");
- case 2: return ShowPlayerDialog(playerid, DIALOG_MDC_PLATE_FULL, DIALOG_STYLE_INPUT, "Plate Search - MDC", "Enter the vehicles full plate number to search below:", "Select", "<<");
- case 3: return ShowPlayerDialog(playerid, DIALOG_MDC_PLATE_PARTIAL, DIALOG_STYLE_INPUT, "Partial Plate Search - MDC", "Enter a partial plate number to search below:", "Select", "<<");
- case 5:
- {
- new
- primary[500], sub[128];
-
- if(!TotalJailees)
- return ShowPlayerDialog(playerid, DIALOG_MDC_FINISH_QUEUE, DIALOG_STYLE_MSGBOX, "Prisoners List - MDC", "There are no prisoners at the time.", "<<", "");
-
- foreach(new i : Player)
- {
- if(PlayerData[i][pICJailed])
- {
- format(sub, sizeof(sub), "%s\n", ReturnName(i));
- strcat(primary, sub);
- }
- }
-
- format(sub, sizeof(sub), "{1E0C95}Total Prisoners: %i", TotalJailees);
- strcat(primary, sub);
-
- ShowPlayerDialog(playerid, DIALOG_MDC_FINISH_QUEUE, DIALOG_STYLE_LIST, "Prisoners List - MDC", primary, ">>", "<<");
- }
- case 6:
- {
- return mysql_tquery(m_Handle, "SELECT ModelID, Plate, ReportedStolenDate FROM ownedcars WHERE ReportedStolen = 1 ORDER BY id DESC", "OnStolenCars", "i", playerid);
- }
- case 8: return ShowPlayerDialog(playerid, DIALOG_MDC_NUMBER_SEARCH, DIALOG_STYLE_INPUT, "Phone Search - MDC", "Enter the phone number you want to find the owner of:", "Select", "<<");
- case 9:
- {
- new
- primary[900], sub[128],
- callsign[128], bool:found;
-
- foreach(new i : Player)
- {
- if(!PlayerData[i][pLAWduty])
- continue;
-
- format(callsign, 128, "- %s", PlayerData[i][pCallsign]);
-
- format(sub, sizeof(sub), "%s %s\n", ReturnName(i), (strlen(PlayerData[i][pCallsign]) > 1) ? (callsign) : (""));
- strcat(primary, sub);
-
- found = true;
- }
- if(!found)
- return ShowPlayerDialog(playerid, DIALOG_MDC_FINISH_QUEUE, DIALOG_STYLE_MSGBOX, "Duty Roster - MDC", "There's nobody on duty right now.", ">>", "<<");
-
- ShowPlayerDialog(playerid, DIALOG_MDC_FINISH_QUEUE, DIALOG_STYLE_LIST, "Duty Roster - MDC", primary, ">>", "<<");
- }
- }
- }
- return 1;
- }
- case DIALOG_MDC_NAME:
- {
- if(response)
- {
- if(strlen(inputtext) < 3 || strlen(inputtext) > MAX_PLAYER_NAME + 1)
- return ShowPlayerDialog(playerid, DIALOG_MDC_NAME, DIALOG_STYLE_INPUT, "Name Search - MDC", "Enter the persons full legal name to search below:", "Select", "<<");
-
- for(new i = 0; i < strlen(inputtext); i++)
- {
- if(inputtext[i] == '_')
- {
- PlayNearbySound(playerid, MDC_ERROR);
- ShowPlayerDialog(playerid, DIALOG_MDC_NAME, DIALOG_STYLE_INPUT, "Name Search - MDC", "Enter the persons full legal name to search below:", "Select", "<<");
- }
- else
- {
- if(inputtext[i] == ' ')
- {
- inputtext[i] = '_';
- }
- }
- }
-
- PlayNearbySound(playerid, MDC_SELECT);
- format(PlayerMDCText[playerid], 32, "%s", inputtext);
-
- new
- search_query[256];
-
- mysql_format(m_Handle, search_query, sizeof(search_query), "SELECT Phone, DriversLicense, WeaponsLicense, ActiveListing, JailTimes, PrisonTimes FROM players WHERE Name = '%e'", inputtext);
- mysql_tquery(m_Handle, search_query, "OnMDCNameSearch", "i", playerid);
- return 1;
- }
- else ShowPlayerMDC(playerid);
- }
- case DIALOG_MDC_PLATE_FULL:
- {
- if(response)
- {
- if(strlen(inputtext) > 7 || strlen(inputtext) < 7)
- {
- PlayNearbySound(playerid, MDC_ERROR);
- return ShowPlayerDialog(playerid, DIALOG_MDC_PLATE_FULL, DIALOG_STYLE_INPUT, "Plate Search - MDC", "Enter the vehicles full plate number to search below:", "Select", "<<");
- }
-
- PlayNearbySound(playerid, MDC_SELECT);
- format(PlayerMDCText[playerid], 32, "%s", inputtext);
-
- new
- search_query[256];
-
- mysql_format(m_Handle, search_query, sizeof(search_query), "SELECT OwnerID, ModelID, Impounded, Insurance, ReportedStolen, ReportedStolenDate FROM ownedcars WHERE Plate = '%e'", inputtext);
- mysql_tquery(m_Handle, search_query, "OnMDCPlateSearch", "i", playerid);
- return 1;
- }
- else return ShowPlayerMDC(playerid);
- }
- case DIALOG_MDC_PLATE_PARTIAL:
- {
- if(response)
- {
- if(strlen(inputtext) < 3 || strlen(inputtext) > 7)
- {
- PlayNearbySound(playerid, MDC_ERROR);
- return ShowPlayerDialog(playerid, DIALOG_MDC_PLATE_PARTIAL, DIALOG_STYLE_INPUT, "Partial Plate Search - MDC", "Partial plates must have at least 3 characters.\n\nEnter a partial plate number to search below:", "Select", "<<");
- }
-
- PlayNearbySound(playerid, MDC_SELECT);
- format(PlayerMDCText[playerid], 32, "%s", inputtext);
-
- new
- search_query[128];
-
- mysql_format(m_Handle, search_query, sizeof(search_query), "SELECT Plate FROM ownedcars WHERE Plate LIKE '%%%e%%' LIMIT 5", inputtext);
- mysql_tquery(m_Handle, search_query, "OnMDCPartialPlate", "i", playerid);
- return 1;
- }
- else return ShowPlayerMDC(playerid);
- }
- case DIALOG_MDC_PLATE_LIST:
- {
- if(response)
- {
- new
- search_query[230];
-
- PlayNearbySound(playerid, MDC_SELECT);
- format(PlayerMDCText[playerid], 32, "%s", PlayerMDCPlateHolder[playerid][listitem]);
-
- mysql_format(m_Handle, search_query, sizeof(search_query), "SELECT OwnerID, ModelID, Impounded, Insurance, ReportedStolen, ReportedStolenDate FROM ownedcars WHERE Plate = '%e'", PlayerMDCPlateHolder[playerid][listitem]);
- mysql_tquery(m_Handle, search_query, "OnMDCPlateSearch", "i", playerid);
- return 1;
- }
- else return ShowPlayerMDC(playerid);
- }
- case DIALOG_MDC_NUMBER_SEARCH:
- {
- if(response)
- {
- if(!IsNumeric(inputtext))
- return ShowPlayerDialog(playerid, DIALOG_MDC_NUMBER_SEARCH, DIALOG_STYLE_INPUT, "Phone Search - MDC", "Enter the phone number you want to find the owner of:", "Select", "<<");
-
- new
- number,
- thread[128];
-
- if(strlen(inputtext) > 6)
- return ShowPlayerDialog(playerid, DIALOG_MDC_NUMBER_SEARCH, DIALOG_STYLE_INPUT, "Phone Search - MDC", "Enter the phone number you want to find the owner of:", "Select", "<<");
-
- number = strval(inputtext);
-
- mysql_format(m_Handle, thread, sizeof(thread), "SELECT Name FROM players WHERE Phone = %i", number);
- mysql_tquery(m_Handle, thread, "OnPhoneSearch", "ii", playerid, number);
- }
- else return ShowPlayerMDC(playerid);
- }
- /*
- case DIALOG_MDC_FINISH_QUEUE:
- {
- if(response)
- return ShowPlayerMDC(playerid);
-
- return 1;
- }
- */
- /*
- case DIALOG_MDC:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0: return ShowPlayerDialog(playerid, DIALOG_MDC_NAME, DIALOG_STYLE_INPUT, "Name Search - MDC", "Enter the persons full name to search below:", "Search", "<<");
- case 1: return ShowPlayerDialog(playerid, DIALOG_MDC_PLATE, DIALOG_STYLE_INPUT, "Plate Search - MDC", "Enter the vehicles full or partial plate to search below:", "Search", "<<");
- }
- return 1;
- }
- }
- case DIALOG_MDC_NAME:
- {
- if(response)
- {
- if(strlen(inputtext) < 3 || strlen(inputtext) > 32)
- return ShowPlayerDialog(playerid, DIALOG_MDC_NAME, DIALOG_STYLE_INPUT, "Name Search - MDC", "Enter the persons full name to search below:", "Search", "<<");
-
- for(new i = 0; i < strlen(inputtext); i++)
- {
- if(inputtext[i] == '_')
- {
- return ShowPlayerDialog(playerid, DIALOG_MDC_NAME, DIALOG_STYLE_INPUT, "Name Search - MDC", "Enter the persons full name to search below:", "Search", "<<");
- }
- else
- {
- if(inputtext[i] == ' ')
- {
- inputtext[i] = '_';
- }
- }
- }
-
- PlayerMDCCount[playerid] = 0;
- PlayerMDCTimer[playerid] = SetTimerEx("OnMDCSearch", 1000, true, "ii", playerid, 1);
- format(PlayerMDCName[playerid], 32, "%s", inputtext);
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][64], "Searching.");
- return 1;
- }
- else return 1;
- }
- */
- case DIALOG_MDC_PLATE:
- {
- if(response)
- {
- if(strlen(inputtext) > 6 || strlen(inputtext) < 3)
- return ShowPlayerDialog(playerid, DIALOG_MDC_PLATE, DIALOG_STYLE_INPUT, "Plate Search - MDC", "Enter the vehicles full or partial plate to search below:\n\nYou need at least 3 characters for a plate search.", "Search", "<<");
-
- PlayerMDCCount[playerid] = 0;
- PlayerMDCTimer[playerid] = SetTimerEx("OnMDCSearch", 1000, true, "ii", playerid, 2);
- format(PlayerMDCName[playerid], 32, "%s", inputtext);
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][64], "Searching.");
- }
- else return 1;
- }
- case DIALOG_MDC_NAME_QUEUE:
- {
- if(response)
- {
- new
- str[120];
-
- format(str, sizeof(str), "{FFFFFF}Name search cancelled for: \"%s\"", PlayerMDCName[playerid]);
- ShowPlayerDialog(playerid, DIALOG_DEFAULT, DIALOG_STYLE_MSGBOX, "Name Search - MDC", str, "Okay", "");
-
- KillTimer(PlayerMDCTimer[playerid]);
- PlayerMDCCount[playerid] = 0;
- return 1;
- }
- }
- case DIALOG_MDC_PLATE_QUEUE:
- {
- if(response)
- {
- new
- str[120];
-
- format(str, sizeof(str), "{FFFFFF}Plate search cancelled for: \"%s\"", PlayerMDCName[playerid]);
- ShowPlayerDialog(playerid, DIALOG_DEFAULT, DIALOG_STYLE_MSGBOX, "Plate Search - MDC", str, "Okay", "");
-
- KillTimer(PlayerMDCTimer[playerid]);
-
- for(new i = 0; i < 5; i++) PlayerPlateSaver[playerid][i] = "";
- PlayerMDCName[playerid] = "";
- PlayerMDCCount[playerid] = 0;
- }
- }
- /*
- case DIALOG_MDC_PLATE_LIST:
- {
- if(response)
- {
- new query[220];
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT VehicleStolen, VehicleOwnerDBID, VehicleModel, VehicleImpounded FROM vehicles WHERE VehiclePlates = '%e'", PlayerPlateSaver[playerid][listitem]);
- mysql_tquery(m_Handle, query, "OnPlateSelect", "ii", playerid, listitem);
- return 1;
- }
- }
- */
- case DIALOG_MDC_FINISH_QUEUE:
- {
- if(response)
- {
- ShowPlayerMDC(playerid);
- return 1;
- }
- }
- case DIALOG_FINES:
- {
- if(response)
- { //{105289} ADC3E7
-
- if(!strcmp(inputtext, "**Click here to clear a fine."))
- {
- if(PlayerData[playerid][pFactionRank] > FactionData[PlayerData[playerid][pFaction]][factionEditrank])
- return ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_LIST, "Fines", "Your rank doesn't have permission to clear fines.", ">>", "<<");
-
- return ShowPlayerDialog(playerid, DIALOG_FINES_DELETE, DIALOG_STYLE_INPUT, "Clear a fine:", "Enter the Fine's # ID to clear it.", "Select", "Exit");
- }
-
- new
- str[128], id;
-
- id = CheckingPlayerFine[playerid];
-
- SendClientMessage(playerid, COLOR_GRAD1, "- - - - - - - - PRINTED FINE - - - - - - - -");
-
- format(str, sizeof(str), "{105289}Fine #. ID:{ADC3E7} %i", Fines[id][listitem][Fine_ID]);
- SendClientMessage(playerid, -1, str);
-
- format(str, sizeof(str), "{105289}Fine Recipient:{ADC3E7} %s", ReturnName(id, 1));
- SendClientMessage(playerid, -1, str);
-
- ClearLines(playerid, 1);
-
- format(str, sizeof(str), "{105289}Fine Issuer:{ADC3E7} %s", Fines[id][listitem][Fine_Issuer]);
- SendClientMessage(playerid, -1, str);
-
- format(str, sizeof(str), "{105289}Fine Amount:{ADC3E7} $%s", MoneyFormat(Fines[id][listitem][Fine_Amount]));
- SendClientMessage(playerid, -1, str);
-
- ClearLines(playerid, 1);
-
- format(str, sizeof(str), "{105289}Fine Reason:{ADC3E7} %s", Fines[id][listitem][Fine_Reason]);
- SendClientMessage(playerid, -1, str);
-
- format(str, sizeof(str), "{105289}Issued Date:{ADC3E7} %s", Fines[id][listitem][Fine_Date]);
- SendClientMessage(playerid, -1, str);
-
- SendClientMessage(playerid, COLOR_GRAD1, "- - - - - - - - - - - - - - - - - - - - - -");
- return 1;
- }
- return 1;
- }
- case DIALOG_FINES_DELETE:
- {
- if(response)
- {
- new
- id,
- bool:found = false,
- query[128]
- ;
-
- if(!IsNumeric(inputtext))
- return ShowPlayerDialog(playerid, DIALOG_FINES_DELETE, DIALOG_STYLE_INPUT, "Clear a fine:", "Enter the Fine's # ID to clear it.", "Select", "Exit");
-
- id = strval(inputtext);
-
-
- foreach(new i : Player)
- {
- for(new f = 0; f < 30; f++)
- {
- if(Fines[i][f][Fine_ID] == id)
- {
- found = true;
- }
- }
- }
-
- if(!found)
- return ShowPlayerDialog(playerid, DIALOG_FINES_DELETE, DIALOG_STYLE_INPUT, "Clear a fine:", "THAT FINE DOESN'T EXIST!\n\nEnter the Fine's # ID to clear it.", "Select", "Exit");
-
- else
- {
- mysql_format(m_Handle, query, sizeof(query), "DELETE FROM player_fines WHERE id = %i", id);
- mysql_tquery(m_Handle, query, "OnDeletePlayerFine", "ii", playerid, id);
- }
- return 1;
- }
- return 1;
- }
- case DIALOG_ROADBLOCKS:
- {
- if(response)
- {
- new
- liststr[500];
-
- switch(listitem)
- {
- case 0:
- {
- for(new i = 0; i < sizeof(g_aRoadblocks); i++)
- {
- format(liststr, sizeof(liststr), "%s%s\n", liststr, g_aRoadblocks[i][RoadblockName]);
- }
- ShowPlayerDialog(playerid, DIALOG_ROADBLOCK_LIST, DIALOG_STYLE_LIST, "Available Roadblocks:", liststr, "Select", "<<");
- }
- case 1:
- {
- new
- foundRoadblock;
-
- for(new i = 0; i < sizeof(Roadblocks); i++)
- {
- if(!Roadblocks[i][RoadblockExists])
- continue;
-
- foundRoadblock++;
- format(liststr, sizeof(liststr), "%s%s {AFAFAF}[%s - %s]\n", liststr, GetRoadblockNameFromModel(Roadblocks[i][RoadblocksModelID]), Roadblocks[i][RoadblockPlacedBy], Roadblocks[i][RoadblockLocation]);
- }
-
- if(foundRoadblock) return ShowPlayerDialog(playerid, DIALOG_ACTIVE_ROADBLOCKS, DIALOG_STYLE_LIST, "Active Roadblocks:", liststr, "Select", "<<");
- else return ShowPlayerDialog(playerid, DIALOG_ROADBLOCKS, DIALOG_STYLE_LIST, "Roadblocks Menu", "Deploy Roadblock\nRoadblock List", "Select", "Cancel");
- }
- }
- }
- return 1;
- }
- case DIALOG_ROADBLOCK_LIST:
- {
- if(response)
- {
- new
- foundRoom = 1,
- count;
-
- for(new i = 0; i < sizeof(Roadblocks); i++)
- {
- if(!Roadblocks[i][RoadblockExists])
- continue;
-
- count++;
- if(count >= 29)
- foundRoom = 0;
- }
-
- if(!foundRoom)
- {
- SendClientMessage(playerid, COLOR_WHITE, "SERVER: It's not possible to spawn anymore roadblocks right now.");
- return ShowPlayerDialog(playerid, DIALOG_ROADBLOCKS, DIALOG_STYLE_LIST, "Roadblocks Menu", "Deploy Roadblock\nRoadblock List", "Select", "Cancel");
- }
-
- new
- Float:x,
- Float:y,
- Float:z, str[128];
- GetPlayerPos(playerid, x, y, z);
-
- PlayerData[playerid][pRoadblockObject] = CreateDynamicObject(g_aRoadblocks[listitem][RoadblockModel], x + 2, y, z, 0.0, 0.0, 0.0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), playerid);
- PlayerData[playerid][pAddingRoadblock] = 1;
- PlayerData[playerid][pRoadblockModel] = g_aRoadblocks[listitem][RoadblockModel];
- EditDynamicObject(playerid, PlayerData[playerid][pRoadblockObject]);
-
- format(str, 128, "SERVER: You're adding a {ADC3E7}%s{FFFFFF} roadblock. Set the position to spawn it.", GetRoadblockNameFromModel(g_aRoadblocks[listitem][RoadblockModel]));
- SendClientMessage(playerid, -1, str);
- }
- else return ShowPlayerDialog(playerid, DIALOG_ROADBLOCKS, DIALOG_STYLE_LIST, "Roadblocks Menu", "Deploy Roadblock\nRoadblock List", "Select", "Cancel");
- return 1;
- }
- case DIALOG_ACTIVE_ROADBLOCKS:
- {
- if(response)
- {
- new
- primary[350],
- detailstr[128];
-
- format(detailstr, 128, "{ADC3E7}Roadblock:{FFFFFF} %s\n", GetRoadblockNameFromModel(Roadblocks[listitem][RoadblocksModelID]));
- strcat(primary, detailstr);
-
- format(detailstr, 128, "{ADC3E7}Location:{FFFFFF} %s\n", Roadblocks[listitem][RoadblockLocation]);
- strcat(primary, detailstr);
-
- format(detailstr, 128, "{ADC3E7}Placed by:{FFFFFF} %s\n\n", Roadblocks[listitem][RoadblockPlacedBy]);
- strcat(primary, detailstr);
-
- strcat(primary, "Click '{ADC3E7}Yes{FFFFFF}' to disband this roadblock.");
-
- ConfirmDialog(playerid, "Roadblock:", primary, "OnRoadblockDisband", listitem);
- }
- else return ShowPlayerDialog(playerid, DIALOG_ROADBLOCKS, DIALOG_STYLE_LIST, "Roadblocks Menu", "Deploy Roadblock\nRoadblock List", "Select", "Cancel");
- return 1;
- }
- case DIALOG_FORUM_NAME:
- {
- if(response)
- {
- if(strlen(inputtext) > 60)
- return ShowPlayerDialog(playerid, DIALOG_FORUM_NAME, DIALOG_STYLE_INPUT, "ADMIN FORUM NAME:", "{FFFF00}You're missing your forum name. As an admin, it's required to have one. Type in your forum name:", "Select", "Exit");
-
- if(!strcmp(inputtext, "Kane", true) && PlayerData[playerid][pSQLID] != 1)
- return ShowPlayerDialog(playerid, DIALOG_FORUM_NAME, DIALOG_STYLE_INPUT, "ADMIN FORUM NAME:", "YOU AREN'T KANE.\n\n{FFFF00}You're missing your forum name. As an admin, it's required to have one. Type in your forum name:", "Select", "Exit");
-
- return cmd_forumname(playerid, inputtext);
- }
- return 1;
- }
- case DIALOG_INTERIORS:
- {
- if(response)
- {
- SetPlayerPos(playerid, Interiors[listitem][IntPosX], Interiors[listitem][IntPosY], Interiors[listitem][IntPosZ]);
- SetPlayerInterior(playerid, Interiors[listitem][IntID]);
-
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- ResetHouseVar(playerid);
- return 1;
- }
- return 1;
- }
- case DIALOG_VLOG_LIST:
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(PlayerVlogPage[playerid] == 1)
- ShowVehicleLogs(playerid, PlayerVlogVehicle[playerid], 1);
-
- else
- ShowVehicleLogs(playerid, PlayerVlogVehicle[playerid], PlayerVlogPage[playerid]-1);
-
- return 1;
- }
- if(listitem == MAX_VLOG_PER_PAGE+1){
- return ShowVehicleLogs(playerid, PlayerVlogVehicle[playerid], PlayerVlogPage[playerid]+1);
- }
- }
- return 1;
- }
- case DIALOG_PLOG_LIST:
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(PlayerLogPage[playerid] == 1)
- ShowPlayerLogs(playerid, PlayerLogPlayer[playerid], 1);
-
- else
- ShowPlayerLogs(playerid, PlayerLogPlayer[playerid], PlayerLogPage[playerid]-1);
-
- return 1;
- }
- if(listitem == MAX_PLOG_PER_PAGE+1)
- return ShowPlayerLogs(playerid, PlayerLogPlayer[playerid], PlayerLogPage[playerid]+1);
- }
- }
- case DIALOG_REPORTS:
- {
- if(response)
- {
- new
- primary_str[300],
- sub_str[128];
-
- format(sub_str, sizeof(sub_str), "Report ID: %i\n", listitem + 1);
- strcat(primary_str, sub_str);
-
- format(sub_str, sizeof(sub_str), "Reporter: %s\n", ReturnSQLName(ReportData[listitem + 1][reportBy]));
- strcat(primary_str, sub_str);
-
- format(sub_str, sizeof(sub_str), "Details: %s\n", ReportData[listitem + 1][reportReason]);
- strcat(primary_str, sub_str);
-
- format(sub_str, sizeof(sub_str), "Pending time: %d Seconds\n\n", gettime() - ReportData[listitem + 1][reportTime]);
- strcat(primary_str, sub_str);
-
- strcat(primary_str, "{A52A2A}Accept(Yes) or disregard(No) this report with the buttons.");
-
- ConfirmDialog(playerid, "{A52A2A}Accept/disregard Report", primary_str, "OnSelectReport", listitem + 1);
- return 1;
- }
- return 1;
- }
- case DIALOG_ADMINSYS:
- {
- if(response)
- {
- ShowAdminSys(playerid, listitem);
- return 1;
- }
- return 1;
- }
- case DIALOG_ASYS_OFFLINEBAN:
- {
- if(!response)
- return ShowAdminPanel(playerid);
-
- new
- strin[128];
-
- if(!ReturnSQLFromName(inputtext))
- {
- format(strin, sizeof(strin), "{ADC3E7}The username \"{A52A2A}%s{ADC3E7}\" does not exist in the database.", inputtext);
- ShowAdminSys(playerid, 0, strin);
- return 1;
- }
-
- if(IsUserBanned(inputtext))
- {
- format(strin, sizeof(strin), "{ADC3E7}The username \"{A52A2A}%s{ADC3E7}\" is already banned from the server.", inputtext);
- ShowAdminSys(playerid, 0, strin);
- return 1;
- }
-
- foreach(new i : Player)
- {
- if(!strcmp(ReturnName(i), inputtext, true))
- {
- format(strin, sizeof(strin), "{ADC3E7}The username \"{A52A2A}%s{ADC3E7}\" is logged in as ID %i.", inputtext, i);
- ShowAdminSys(playerid, 0, strin);
- return 1;
- }
- }
-
- format(OfflineBanName[playerid], 128, "%s", inputtext);
-
- format(strin, 128, "Input the ban reason for user \"{A52A2A}%s{ADC3E7}\":", inputtext);
- ShowPlayerDialog(playerid, DIALOG_ASYS_BANREASON, DIALOG_STYLE_INPUT, "Administration panel", strin, "Select", "<<");
- return 1;
- }
- case DIALOG_ASYS_BANREASON:
- {
- if(!response)
- return ShowAdminPanel(playerid);
-
- if(strlen(inputtext) < 3)
- {
- new
- strin[128];
-
- format(strin, 128, "Input the ban reason for user \"{A52A2A}%s{ADC3E7}\":", OfflineBanName[playerid]);
- ShowPlayerDialog(playerid, DIALOG_ASYS_BANREASON, DIALOG_STYLE_INPUT, "Administration panel", strin, "Select", "<<");
- return 1;
- }
-
- foreach(new i : Player)
- {
- if(!strcmp(ReturnName(i), OfflineBanName[playerid], true))
- {
- SendClientMessage(playerid, COLOR_ADM, "An error occurred... The player you were banning has logged in.");
- Message(playerid, COLOR_WHITE, "ID: %i", i);
- return 1;
- }
- }
-
- new
- secure[160],
- admin_level, IP[60], HWID[90];
-
- mysql_format(m_Handle, secure, sizeof(secure), "SELECT AdminLevel, IP, HWID FROM players WHERE Name = '%e'", OfflineBanName[playerid]);
- new Cache:cache = mysql_query(m_Handle, secure);
-
- cache_get_value_name_int(0, "AdminLevel", admin_level);
-
- cache_get_value_name(0, "IP", IP, 60);
- cache_get_value_name(0, "HWID", HWID, 90);
-
- if(admin_level > PlayerData[playerid][pAdmin])
- {
- cache_delete(cache);
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_MSGBOX, "Error processing", "The user specified cannot be banned by you.", "Okay", "");
- return 1;
- }
-
- new
- query[300],
- string[128];
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO bans (`Name`, `Reason`, `BannedBy`, `Date`, `IP`, `HWID`) VALUES('%e', '%e', '%e', '%e', '%e', '%e')", OfflineBanName[playerid], inputtext, ReturnName(playerid, 1), ReturnDateLog(), IP, HWID);
- mysql_pquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO log_bans (Name, Reason, BannedBy, Date, IP) VALUES('%e', '%e', '%e', '%e', '%e')", OfflineBanName[playerid], inputtext, ReturnName(playerid), ReturnDate(), IP);
- mysql_pquery(m_Handle, query);
-
- format(string, sizeof(string), "{ADC3E7}The username \"{A52A2A}%s{ADC3E7}\" has successfully been banned.", OfflineBanName[playerid]);
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_MSGBOX, "Administration panel", string, "Okay!", "");
-
- format(string, sizeof(string), "%s was offline banned by %s for '%s'", OfflineBanName[playerid], ReturnName(playerid), inputtext);
- adminWarn(1, string);
-
- printf("[WARNING] AdmCmd: %s offline banned %s, reason: %s ", ReturnName(playerid, 1), OfflineBanName[playerid], inputtext);
- WriteLog("admin_logs/punishments/ban_log.txt", "[%s] %s was banned by %s, Reason: %s (OFFLINE)", ReturnDate(), OfflineBanName[playerid], ReturnName(playerid), inputtext);
-
- cache_delete(cache);
- return 1;
- }
- case DIALOG_ASYS_OFFLINEAJAIL:
- {
- if(!response)
- return ShowAdminPanel(playerid);
-
- new
- strin[128];
-
- if(!ReturnSQLFromName(inputtext))
- {
- format(strin, sizeof(strin), "{ADC3E7}The username \"{A52A2A}%s{ADC3E7}\" does not exist in the database.", inputtext);
- ShowAdminSys(playerid, 1, strin);
- return 1;
- }
-
- foreach(new i : Player)
- {
- if(!strcmp(ReturnName(i), inputtext, true))
- {
- format(strin, sizeof(strin), "{ADC3E7}The username \"{A52A2A}%s{ADC3E7}\" is logged in as ID %i.", inputtext, i);
- ShowAdminSys(playerid, 0, strin);
- return 1;
- }
- }
-
- format(OfflineJailName[playerid], 60, "%s", inputtext);
-
- format(strin, sizeof(strin), "Input the time you want to admin jail \"{A52A2A}%s{ADC3E7}\" for:", inputtext);
- ShowPlayerDialog(playerid, DIALOG_ASYS_OJAILTIME, DIALOG_STYLE_INPUT, "Administration panel", strin, "Select", "<<");
- return 1;
- }
- case DIALOG_ASYS_OJAILTIME:
- {
- if(!response)
- return ShowAdminPanel(playerid);
-
- new
- strin[230];
-
- if(!IsNumeric(inputtext))
- {
- format(strin, sizeof(strin), "The time must be a numeric value in minutes.\n\nInput the time you want to admin jail \"{A52A2A}%s{ADC3E7}\" for:", OfflineJailName[playerid]);
- ShowPlayerDialog(playerid, DIALOG_ASYS_OJAILTIME, DIALOG_STYLE_INPUT, "Administration panel", strin, "Select", "<<");
- return 1;
- }
-
- OfflineJailTime[playerid] = strval(inputtext);
-
- if(OfflineJailTime[playerid] < 1)
- {
- if(!IsNumeric(inputtext))
- {
- format(strin, sizeof(strin), "The time must be a numeric value in minutes. (1+)\n\nInput the time you want to admin jail \"{A52A2A}%s{ADC3E7}\" for:", OfflineJailName[playerid]);
- ShowPlayerDialog(playerid, DIALOG_ASYS_OJAILTIME, DIALOG_STYLE_INPUT, "Administration panel", strin, "Select", "<<");
- return 1;
- }
- }
-
- format(strin, sizeof(strin), "Input the reason for \"{A52A2A}%s{ADC3E7}\"'s (%i) minute admin jail:", OfflineJailName[playerid], OfflineJailTime[playerid]);
- ShowPlayerDialog(playerid, DIALOG_ASYS_OJAILREASON, DIALOG_STYLE_INPUT, "Administration panel", strin, "Select", "<<");
- return 1;
- }
- case DIALOG_ASYS_OJAILREASON:
- {
- if(!response)
- return ShowAdminPanel(playerid);
-
- new
- query[256],
- string[170];
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET OfflineAjail = 1, AjailTime = %d, OfflineAjailReason = '%e' WHERE Name = '%e'", OfflineJailTime[playerid], inputtext, OfflineJailName[playerid]);
- mysql_pquery(m_Handle, query);
-
- format(string, sizeof(string), "{ADC3E7}The username \"{A52A2A}%s{ADC3E7}\" has successfully been admin jailed.", OfflineJailName[playerid]);
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_MSGBOX, "Administration panel", string, "Okay!", "");
-
- format(string, sizeof(string), "%s was offline jailed by %s for '%s'", OfflineJailName[playerid], ReturnName(playerid), inputtext);
- adminWarn(1, string);
-
- WriteLog("admin_logs/punishments/ajail_log.txt", "[%s] %s offline jailed %s for %d minutes, reason: %s (OFFLINE)", ReturnDate(), ReturnName(playerid, 1), OfflineJailName[playerid], OfflineJailTime[playerid], inputtext);
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO log_ajail (`Name`, `Reason`, `JailedBy`, `Date`, `Time`, `IP`) VALUES('%e', '%e', '%e', '%e', %i, 'via off')", OfflineJailName[playerid], inputtext, ReturnName(playerid, 1), ReturnDateLog(), OfflineJailTime[playerid]);
- mysql_pquery(m_Handle, query);
- return 1;
- }
- case DIALOG_ASYS_UNBAN:
- {
- if(!response)
- return ShowAdminPanel(playerid);
-
- /*{
- ShowAdminSys(playerid, 2, "The username you specified isn't possible.");
- return 1;
- }*/
-
- if(!ReturnSQLFromName(inputtext))
- {
- ShowAdminSys(playerid, 2, "The username you specified doesn't exist in the database.");
- return 1;
- }
-
- new
- string[128];
-
- foreach(new i : Player)
- {
- if(!strcmp(ReturnName(i), inputtext, true))
- {
- format(string, sizeof(string), "The user you specified is logged in as ID %i.", i);
- ShowAdminSys(playerid, 2, string);
- return 1;
- }
- }
-
- if(!IsUserBanned(inputtext))
- {
- format(string, sizeof(string), "The user \"{A52A2A}%s{ADC3E7}\" is not banned from the server.", inputtext);
- ShowAdminSys(playerid, 2, string);
- return 1;
- }
-
- format(AdminPanelName[playerid], 60, "%s", inputtext);
-
- format(string, sizeof(string), "Are you sure you want to unban \"{A52A2A}%s{ADC3E7}\" from the server?", inputtext);
- ConfirmDialog(playerid, "Administration panel", string, "OnPanelUnban");
- return 1;
- }
- case DIALOG_LOOKUP_JAILS:
- {
- if(!response)
- return ShowAdminPanel(playerid);
- /*{
- ShowAdminSys(playerid, 3, "The username you specified isn't possible.");
- return 1;
- }*/
-
- if(!ReturnSQLFromName(inputtext))
- {
- ShowAdminSys(playerid, 3, "The username you specified doesn't exist in the database.");
- return 1;
- }
-
- new
- query[200];
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM log_ajail WHERE Name = '%e' ORDER BY id DESC", inputtext);
- new Cache:cache = mysql_query(m_Handle, query);
-
- if(!cache_num_rows())
- {
- format(query, sizeof(query), "The user \"{A52A2A}%s{ADC3E7}\" has never been admin jailed.", inputtext);
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", query, "Okay!", "");
-
- cache_delete(cache);
- return 1;
- }
- else
- {
- new Reason[128], By[60], Date[90], IP[90], Time;
- new PackerString[128], FullList[1100];
-
- strcat(FullList, "Jailed by - Date - Time - Reason - IP\n\n");
-
- for(new i = 0; i < cache_num_rows(); i++)
- {
- cache_get_value_name(i, "JailedBy", By, 60);
- cache_get_value_name(i, "Reason", Reason, 128);
-
- cache_get_value_name(i, "Date", Date, 90);
- cache_get_value_name(i, "IP", IP, 90);
-
- cache_get_value_name_int(i, "Time", Time);
-
- format(PackerString, 128, "\t%s - %s - %i - %s - %s\n", By, Date, Time, Reason, IP);
- strcat(FullList, PackerString);
- }
-
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", FullList, "Okay!", "");
- }
- return 1;
- }
- case DIALOG_LOOKUP_KICKS:
- {
- if(!response)
- return ShowAdminPanel(playerid);
- /*{
- ShowAdminSys(playerid, 4, "The username you specified isn't possible.");
- return 1;
- }*/
-
- if(!ReturnSQLFromName(inputtext))
- {
- ShowAdminSys(playerid, 4, "The username you specified doesn't exist in the database.");
- return 1;
- }
-
- new
- query[200];
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM log_kicks WHERE Name = '%e' ORDER BY id DESC", inputtext);
- new Cache:cache = mysql_query(m_Handle, query);
-
- if(!cache_num_rows())
- {
- format(query, sizeof(query), "The user \"{A52A2A}%s{ADC3E7}\" has never been kicked.", inputtext);
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", query, "Okay!", "");
-
- cache_delete(cache);
- return 1;
- }
- else
- {
- new Reason[128], By[60], Date[90], IP[90];
- new PackerString[128], FullList[1100];
-
- strcat(FullList, "Kicked by - Date - Reason - IP\n\n");
-
- for(new i = 0; i < cache_num_rows(); i++)
- {
- cache_get_value_name(i, "KickedBy", By, 60);
- cache_get_value_name(i, "Reason", Reason, 128);
-
- cache_get_value_name(i, "Date", Date, 90);
- cache_get_value_name(i, "IP", IP, 90);
-
- format(PackerString, 128, "\t%s - %s - %s - %s\n", By, Date, Reason, IP);
- strcat(FullList, PackerString);
- }
-
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", FullList, "Okay!", "");
- }
- return 1;
- }
- case DIALOG_LOOKUP_BANS:
- {
- if(!response)
- return ShowAdminPanel(playerid);
-
- /*{
- ShowAdminSys(playerid, 5, "The username you specified isn't possible.");
- return 1;
- }*/
-
- if(!ReturnSQLFromName(inputtext))
- {
- ShowAdminSys(playerid, 5, "The username you specified doesn't exist in the database.");
- return 1;
- }
-
- new
- query[200];
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM log_bans WHERE Name = '%e' ORDER BY id DESC", inputtext);
- new Cache:cache = mysql_query(m_Handle, query);
-
- if(!cache_num_rows())
- {
- format(query, sizeof(query), "The user \"{A52A2A}%s{ADC3E7}\" has never been banned.", inputtext);
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", query, "Okay!", "");
-
- cache_delete(cache);
- return 1;
- }
- else
- {
- new Reason[128], By[60], Date[90], IP[90];
- new PackerString[128], FullList[1100];
-
- strcat(FullList, "Banned by - Date - Reason - IP\n\n");
-
- for(new i = 0; i < cache_num_rows(); i++)
- {
- cache_get_value_name(i, "BannedBy", By, 60);
- cache_get_value_name(i, "Reason", Reason, 128);
-
- cache_get_value_name(i, "Date", Date, 90);
- cache_get_value_name(i, "IP", IP, 90);
-
- format(PackerString, 128, "\t%s - %s - %s - %s\n", By, Date, Reason, IP);
- strcat(FullList, PackerString);
- }
-
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", FullList, "Okay!", "");
- }
- return 1;
- }
- case DIALOG_DECRYPTMASK:
- {
- if(!response)
- return ShowAdminPanel(playerid);
-
- if(strlen(inputtext) > 9)
- return ShowAdminSys(playerid, 6, "The Mask ID you specified is invalid.");
-
- new bool:isValid = true;
-
- for (new i = 0, l = strlen(inputtext); i != l; i ++)
- {
- if (i == 6 && inputtext[6] == '_')
- continue;
- else if (inputtext[i] < '0' || inputtext[i] > '9')
- isValid = false;
- }
- if(!isValid)
- return ShowAdminSys(playerid, 6, "The Mask ID you specified is invalid.");
-
- new First,
- Second,
- FirstStr[30],
- SecondStr[30];
-
- strmid(FirstStr, inputtext, 0, 6);
- strmid(SecondStr, inputtext, 7, 9);
-
- First = strval(FirstStr);
- Second = strval(SecondStr);
-
- new Query[128],
- string[128];
-
- mysql_format(m_Handle, Query, sizeof(Query), "SELECT Name FROM players WHERE MaskID = %i AND MaskIDEx = %i", First, Second);
- new Cache:cache = mysql_query(m_Handle, Query);
-
- if(!cache_num_rows())
- {
- format(string, sizeof(string), "No user has the Mask ID \"{A52A2A}[%d_%d]{ADC3E7}\".", First, Second);
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", string, "Okay!", "");
-
- cache_delete(cache);
- }
- else
- {
- new Name[60];
- cache_get_value_name(0, "Name", Name, 60);
-
- format(string, sizeof(string), "Mask ID \"{A52A2A}[%d_%d]{ADC3E7}\" belongs to the user \"{A52A2A}%s{ADC3E7}\".", First, Second, Name);
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", string, "Okay!", "");
-
- cache_delete(cache);
- }
-
- return 1;
- }
- case DIALOG_APANEL:
- {
- if(response) return ShowAdminPanel(playerid);
- return 1;
- }
- case DIALOG_SKINSEARCH:
- {
- if(!response)
- return ShowAdminPanel(playerid);
-
- if(!IsNumeric(inputtext))
- return ShowAdminSys(playerid, 8, "Your input needs to be a numeric value.");
-
- new Skin;
- Skin = strval(inputtext);
-
- if(Skin < 0 || Skin == 74 || Skin > 311)
- return ShowAdminSys(playerid, 8, "You specified an invalid Skin ID.");
-
- new FoundSkin, ListStr[900], PlayerStr[128];
-
- format(PlayerStr, sizeof(PlayerStr), "Players with Skin ID %i:\n\n", Skin);
- strcat(ListStr, PlayerStr);
-
- foreach(new i : Player) if(GetPlayerSkin(i) == Skin)
- {
- FoundSkin++;
-
- format(PlayerStr, sizeof(PlayerStr), "\t%s (ID: %i) - Location: %s - Vehicle: %i\n", ReturnName(i), i, ReturnLocation(i), GetPlayerVehicleID(i));
- strcat(ListStr, PlayerStr);
- }
- if(!FoundSkin)
- return ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", "No player was found with that Skin ID.", "Okay!", "");
-
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", ListStr, "Okay!", "");
- return 1;
- }
- case DIALOG_ANOTE_LOOKUP:
- {
- if(!response)
- return ShowAdminPanel(playerid);
-
- /*{
- ShowAdminSys(playerid, 9, "The username you specified isn't possible.");
- return 1;
- }*/
-
- if(!ReturnSQLFromName(inputtext))
- {
- ShowAdminSys(playerid, 9, "The username you specified doesn't exist in the database.");
- return 1;
- }
-
- new Query[200], string[128];
-
- mysql_format(m_Handle, Query, sizeof(Query), "SELECT * FROM player_anotes WHERE player_dbid = %i", ReturnSQLFromName(inputtext));
- new Cache:cache = mysql_query(m_Handle, Query);
-
- if(!cache_num_rows())
- {
- format(string, sizeof(string), "The user \"{A52A2A}%s{ADC3E7}\" does not have any admin notes.", inputtext);
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", string, "Okay!", "");
-
- cache_delete(cache);
- return 1;
- }
- else
- {
- new Reason[128];
- new ID;
-
- new FullList[400], ShowList[128];
-
- for(new i = 0, j = 1; i < cache_num_rows(); i++)
- {
- cache_get_value_name(i, "anote_reason", Reason, 128);
- cache_get_value_name_int(i, "id", ID);
-
- AdminNoteSelect[playerid][j] = ID;
- j++;
-
- if(j > MAX_ADMIN_NOTES)
- break;
-
- format(ShowList, sizeof(ShowList), "[%i] %.35s...\n", i+1, Reason);
- strcat(FullList, ShowList);
- }
-
- ShowPlayerDialog(playerid, DIALOG_ANOTE_SELECT, DIALOG_STYLE_LIST, "Administration panel", FullList, "Select", "<<");
- }
- return 1;
- }
- case DIALOG_ANOTE_SELECT:
- {
- if(!response)
- return ShowAdminPanel(playerid);
-
- new Query[128];
-
- mysql_format(m_Handle, Query, sizeof(Query), "SELECT * FROM player_anotes WHERE id = %i", AdminNoteSelect[playerid][listitem+1]);
- new Cache:cache = mysql_query(m_Handle, Query);
-
- if(!cache_num_rows())
- {
- cache_delete(cache);
-
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", "An error occurred with this admin note.", "Okay!", "");
- return 1;
- }
- else
- {
- new PlayerDBID, Reason[128],
- Issuer[60], Date[90];
-
- cache_get_value_name_int(0, "player_dbid", PlayerDBID);
- cache_get_value_name(0, "anote_issuer", Issuer, 60);
-
- cache_get_value_name(0, "anote_reason", Reason, 128);
- cache_get_value_name(0, "anote_date", Date, 90);
-
- new Primary[500], Sub[128];
-
- format(Sub, sizeof(Sub), "Player name: %s\n", ReturnSQLName(PlayerDBID));
- strcat(Primary, Sub);
-
- format(Sub, sizeof(Sub), "Issuer name: %s\n\n", Issuer);
- strcat(Primary, Sub);
-
- format(Sub, sizeof(Sub), "Date: %s\n", Date);
- strcat(Primary, Sub);
-
- format(Sub, sizeof(Sub), "Reason: %s\n\n", Reason);
- strcat(Primary, Sub);
-
- strcat(Primary, "{A52A2A}Use admin sys to Delete or Edit this admin note.");
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", Primary, "Okay!", "");
-
- for(new i = 1; i < MAX_ADMIN_NOTES; i++)
- AdminNoteSelect[playerid][i] = 0;
- }
- return 1;
- }
- case DIALOG_ANOTE_EDIT:
- {
- if(!response)
- return ShowAdminPanel(playerid);
-
- /*{
- ShowAdminSys(playerid, 10, "The username you specified isn't possible.");
- return 1;
- }*/
-
- if(!ReturnSQLFromName(inputtext))
- {
- ShowAdminSys(playerid, 10, "The username you specified doesn't exist in the database.");
- return 1;
- }
-
- new Query[200], string[128];
-
- mysql_format(m_Handle, Query, sizeof(Query), "SELECT * FROM player_anotes WHERE player_dbid = %i", ReturnSQLFromName(inputtext));
- new Cache:cache = mysql_query(m_Handle, Query);
-
- if(!cache_num_rows())
- {
- format(string, sizeof(string), "The user \"{A52A2A}%s{ADC3E7}\" does not have any admin notes.", inputtext);
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", string, "Okay!", "");
-
- cache_delete(cache);
- return 1;
- }
- else
- {
- new Reason[128];
- new ID;
-
- new FullList[400], ShowList[128];
-
- for(new i = 0, j = 1; i < cache_num_rows(); i++)
- {
- cache_get_value_name(i, "anote_reason", Reason, 128);
- cache_get_value_name_int(i, "id", ID);
-
- AdminNoteSelect[playerid][j] = ID;
- j++;
-
- if(j > MAX_ADMIN_NOTES)
- break;
-
- format(ShowList, sizeof(ShowList), "[%i] %.35s...\n", i+1, Reason);
- strcat(FullList, ShowList);
- }
-
- format(AdminPanelName[playerid], 60, "%s", inputtext);
-
- ShowPlayerDialog(playerid, DIALOG_ANOTE_EDIT_YES, DIALOG_STYLE_LIST, "Administration panel", FullList, "Select", "<<");
- }
- return 1;
- }
- case DIALOG_ANOTE_EDIT_YES:
- {
- if(!response)
- return ShowAdminPanel(playerid);
-
- new Query[128];
-
- mysql_format(m_Handle, Query, sizeof(Query), "SELECT * FROM player_anotes WHERE id = %i", AdminNoteSelect[playerid][listitem+1]);
- new Cache:cache = mysql_query(m_Handle, Query);
-
- if(!cache_num_rows())
- {
- cache_delete(cache);
-
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", "An error occurred with this admin note.", "Okay!", "");
- return 1;
- }
- else
- {
- new PlayerDBID, Reason[128],
- Issuer[60], Date[90];
-
- cache_get_value_name_int(0, "player_dbid", PlayerDBID);
- cache_get_value_name(0, "anote_issuer", Issuer, 60);
-
- cache_get_value_name(0, "anote_reason", Reason, 128);
- cache_get_value_name(0, "anote_date", Date, 90);
-
- new Primary[500], Sub[128];
-
- format(Sub, sizeof(Sub), "Player name: %s\n", ReturnSQLName(PlayerDBID));
- strcat(Primary, Sub);
-
- format(Sub, sizeof(Sub), "Issuer name: %s\n\n", Issuer);
- strcat(Primary, Sub);
-
- format(Sub, sizeof(Sub), "Date: %s\n", Date);
- strcat(Primary, Sub);
-
- format(Sub, sizeof(Sub), "Reason: %s\n\n", Reason);
- strcat(Primary, Sub);
-
- strcat(Primary, "{A52A2A}Select \"EDIT\" to edit this admin note reason.");
- ShowPlayerDialog(playerid, DIALOG_ANOTE_EDIT_YES2, DIALOG_STYLE_MSGBOX, "Administration panel", Primary, "Edit", "<<");
-
- cache_delete(cache);
- AdminNoteSelected[playerid] = AdminNoteSelect[playerid][listitem+1];
- format(AdminNoteIssuer[playerid], 90, "%s", Issuer);
- }
- return 1;
- }
- case DIALOG_ANOTE_EDIT_YES2:
- {
- if(!response)
- return ShowAdminPanel(playerid);
-
- ShowPlayerDialog(playerid, DIALOG_ANOTE_EDIT_YES3, DIALOG_STYLE_INPUT, "Administration panel", "What would you like to edit this admin notes reason to?", "Select", "<<");
- return 1;
- }
- case DIALOG_ANOTE_EDIT_YES3:
- {
- if(!response)
- return ShowAdminPanel(playerid);
-
- new Query[256], IssuerEdit[128];
-
- if(strlen(inputtext) < 3)
- return ShowPlayerDialog(playerid, DIALOG_ANOTE_EDIT_YES3, DIALOG_STYLE_INPUT, "Administration panel", "What would you like to edit this admin notes reason to?", "Select", "<<");
-
- if(strcmp(AdminNoteIssuer[playerid], ReturnName(playerid), true))
- {
- format(IssuerEdit[playerid], 128, "%s+%s", AdminNoteIssuer[playerid], ReturnName(playerid));
- }
- else format(IssuerEdit[playerid], 128, "%s", AdminNoteIssuer[playerid]);
-
- foreach(new i : Player)
- {
- for(new j = 1; j < MAX_ADMIN_NOTES; j++)
- {
- if(aNotesData[i][j][anote_SQLID] == AdminNoteSelected[playerid])
- {
- format(aNotesData[i][j][anote_reason], 128, "%s", inputtext);
- format(aNotesData[i][j][anote_issuer], 60, "%s", IssuerEdit);
- }
- }
- }
-
- mysql_format(m_Handle, Query, sizeof(Query), "UPDATE player_anotes SET anote_reason = '%e', anote_issuer = '%e' WHERE id = %i", inputtext, IssuerEdit[playerid], AdminNoteSelected[playerid]);
- mysql_tquery(m_Handle, Query);
-
- format(IssuerEdit, sizeof(IssuerEdit), "You successfully edited an admin note on {A52A2A}%s.", AdminPanelName[playerid]);
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", IssuerEdit, "Okay!", "");
-
- format(IssuerEdit, sizeof(IssuerEdit), "%s had an admin noted edited by %s", AdminPanelName[playerid], ReturnName(playerid));
- adminWarn(2, IssuerEdit);
-
- WriteLog("admin_logs/players/admin_note/edit_note.txt", "[%s] %s edited %s's Note (DBID %d) to %s", ReturnDate(), ReturnName(playerid, 1), AdminPanelName[playerid], AdminNoteSelected[playerid], inputtext);
- return 1;
- }
- case DIALOG_ANOTE_ADD:
- {
- if(!response)
- return ShowAdminPanel(playerid);
-
- /*{
- ShowAdminSys(playerid, 11, "The username you specified isn't possible.");
- return 1;
- }*/
-
- if(!ReturnSQLFromName(inputtext))
- {
- ShowAdminSys(playerid, 11, "The username you specified doesn't exist in the database.");
- return 1;
- }
-
- new bool:hasSlot = false;
- new NotIG;
- new string[128];
-
- foreach(new i : Player)
- {
- if(!strcmp(ReturnName(i), inputtext, true))
- {
- if(ReturnANoteSlot(i) != -1)
- {
- hasSlot = true;
- }
- }
- else
- {
- NotIG = true;
- }
- }
-
- if(NotIG)
- {
- new Query[128];
-
- mysql_format(m_Handle, Query, sizeof(Query), "SELECT id FROM player_anotes WHERE player_dbid = %i", ReturnSQLFromName(inputtext));
- new Cache:cache = mysql_query(m_Handle, Query);
-
- if(!cache_num_rows())
- {
- hasSlot = true;
- cache_delete(cache);
- }
- else
- {
- if(cache_num_rows() > MAX_ADMIN_NOTES)
- {
- hasSlot = false;
- }
- }
- }
-
- if(!hasSlot)
- {
- format(string, sizeof(string), "The user \"{A52A2A}%s{ADC3E7}\" does not have any free admin note slots.", inputtext);
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", string, "Okay!", "");
- return 1;
- }
-
- format(AdminPanelName[playerid], 60, "%s", inputtext);
-
- format(string, sizeof(string), "Input the reason for \"{A52A2A}%s{ADC3E7}\"'s new admin note:", inputtext);
- ShowPlayerDialog(playerid, DIALOG_ANOTE_ADD_REASON, DIALOG_STYLE_INPUT, "Administration panel", string, "Select", "<<");
- return 1;
- }
- case DIALOG_ANOTE_ADD_REASON:
- {
- if(!response)
- return ShowAdminPanel(playerid);
-
- if(strlen(inputtext) < 3)
- {
- new string[128];
-
- format(string, sizeof(string), "Input the reason for \"{A52A2A}%s{ADC3E7}\"'s new admin note:", AdminPanelName[playerid]);
- ShowPlayerDialog(playerid, DIALOG_ANOTE_ADD_REASON, DIALOG_STYLE_INPUT, "Administration panel", string, "Select", "<<");
- return 1;
- }
-
- new Insert[400];
-
- mysql_format(m_Handle, Insert, sizeof(Insert), "INSERT INTO player_anotes (player_dbid, anote_reason, anote_issuer, anote_date) VALUES(%i, '%e', '%e', '%e')", ReturnSQLFromName(AdminPanelName[playerid]), inputtext, ReturnName(playerid), ReturnDateLog());
- mysql_tquery(m_Handle, Insert, "OnAdminNoteAdd", "is", playerid, inputtext);
- return 1;
- }
- case DIALOG_ANOTE_DELETE:
- {
- if(!response)
- return ShowAdminPanel(playerid);
- /*{
- ShowAdminSys(playerid, 12, "The username you specified isn't possible.");
- return 1;
- }*/
-
- if(!ReturnSQLFromName(inputtext))
- {
- ShowAdminSys(playerid, 12, "The username you specified doesn't exist in the database.");
- return 1;
- }
-
- new Query[200], string[128];
-
- mysql_format(m_Handle, Query, sizeof(Query), "SELECT * FROM player_anotes WHERE player_dbid = %i", ReturnSQLFromName(inputtext));
- new Cache:cache = mysql_query(m_Handle, Query);
-
- if(!cache_num_rows())
- {
- format(string, sizeof(string), "The user \"{A52A2A}%s{ADC3E7}\" does not have any admin notes.", inputtext);
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", string, "Okay!", "");
-
- cache_delete(cache);
- return 1;
- }
- else
- {
- new Reason[128];
- new ID;
-
- new FullList[400], ShowList[128];
-
- for(new i = 0, j = 1; i < cache_num_rows(); i++)
- {
- cache_get_value_name(i, "anote_reason", Reason, 128);
- cache_get_value_name_int(i, "id", ID);
-
- AdminNoteSelect[playerid][j] = ID;
- j++;
-
- if(j > MAX_ADMIN_NOTES)
- break;
-
- format(ShowList, sizeof(ShowList), "[%i] %.35s...\n", i+1, Reason);
- strcat(FullList, ShowList);
- }
-
- format(AdminPanelName[playerid], 60, "%s", inputtext);
-
- ShowPlayerDialog(playerid, DIALOG_ANOTE_DELETE_SELECT, DIALOG_STYLE_LIST, "Administration panel", FullList, "Select", "<<");
- }
- return 1;
- }
- case DIALOG_ANOTE_DELETE_SELECT:
- {
- if(!response)
- return ShowAdminPanel(playerid);
-
- new Query[128];
-
- mysql_format(m_Handle, Query, sizeof(Query), "SELECT * FROM player_anotes WHERE id = %i", AdminNoteSelect[playerid][listitem+1]);
- new Cache:cache = mysql_query(m_Handle, Query);
-
- if(!cache_num_rows())
- {
- cache_delete(cache);
-
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", "An error occurred with this admin note.", "Okay!", "");
- return 1;
- }
- else
- {
- new PlayerDBID, Reason[128],
- Issuer[60], Date[90];
-
- cache_get_value_name_int(0, "player_dbid", PlayerDBID);
- cache_get_value_name(0, "anote_issuer", Issuer, 60);
-
- cache_get_value_name(0, "anote_reason", Reason, 128);
- cache_get_value_name(0, "anote_date", Date, 90);
-
- new Primary[500], Sub[128];
-
- format(Sub, sizeof(Sub), "Player name: %s\n", ReturnSQLName(PlayerDBID));
- strcat(Primary, Sub);
-
- format(Sub, sizeof(Sub), "Issuer name: %s\n\n", Issuer);
- strcat(Primary, Sub);
-
- format(Sub, sizeof(Sub), "Date: %s\n", Date);
- strcat(Primary, Sub);
-
- format(Sub, sizeof(Sub), "Reason: %s\n\n", Reason);
- strcat(Primary, Sub);
-
- strcat(Primary, "{A52A2A}Select \"DELETE\" to delete this admin note.");
- ShowPlayerDialog(playerid, DIALOG_ANOTE_DELETE_CONFIRM, DIALOG_STYLE_MSGBOX, "Administration panel", Primary, "Delete", "<<");
-
- cache_delete(cache);
- AdminNoteSelected[playerid] = AdminNoteSelect[playerid][listitem+1];
- }
- return 1;
- }
- case DIALOG_ANOTE_DELETE_CONFIRM:
- {
- if(!response)
- return ShowAdminPanel(playerid);
-
- new string[128];
-
- format(string, sizeof(string), "Are you sure you want to delete \"{A52A2A}%s{ADC3E7}\"'s admin note?", AdminPanelName[playerid]);
- ConfirmDialog(playerid, "Administration panel", string, "OnAdminNoteDelete", AdminNoteSelected[playerid]);
- return 1;
- }
- case DIALOG_PASSWORD_CHANGE:
- {
- if(response)
- {
- if(strlen(inputtext) > 128 || strlen(inputtext) < 3)
- {
- new
- largeString[800];
-
- strcat(largeString, "{F81414}YOU'RE ABOUT TO CHANGE YOUR PASSWORD!\n");
-
- strcat(largeString, "{FFFFFF}Here are a few tips to keep your account password safe and secure:\n\n");
- strcat(largeString, "\tUse a mix of letters, numbers, and symbols in your password.\n");
- strcat(largeString, "\tUse a unique password for each of your important accounts.\n");
- strcat(largeString, "\tDon't use personal information or common words as a password.\n");
- strcat(largeString, "\tDon't use the same password as your forum.baseroleplay.com forum account.\n");
-
- strcat(largeString, "Remember that San Andreas '92 staff will NEVER ask you for your account information.\n\n");
- strcat(largeString, "{F81414}~~ Your password has to be greater than 3 characters and less than 128.");
- ShowPlayerDialog(playerid, DIALOG_PASSWORD_CHANGE, DIALOG_STYLE_PASSWORD, "Change Your Password", largeString, "Select", "Cancel");
- return 1;
- }
-
- new LogQuery[300], Query[128];
-
- mysql_format(m_Handle, Query, sizeof(Query), "SELECT Password FROM players WHERE id = %i", PlayerData[playerid][pSQLID]);
- new Cache:cache = mysql_query(m_Handle, Query);
-
- new Password[255];
-
- cache_get_value_name(0, "Password", Password, 255);
- cache_delete(cache);
-
- mysql_format(m_Handle, LogQuery, sizeof(LogQuery), "UPDATE players SET Password = sha1('%e') WHERE id = %i", inputtext, PlayerData[playerid][pSQLID]);
- mysql_tquery(m_Handle, LogQuery, "OnPasswordChange", "is", playerid, Password);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "You cancelled your password change.");
- return 1;
- }
- case DIALOG_PASSWORD_SECURITY_WORD:
- {
- if(!response)
- {
- new
- string[128],
- ipString[128];
-
- if(PlayerData[playerid][pAdmin] < 3)
- format(ipString, 128, "%s", ReturnIP(playerid));
-
- else ipString = "Admin Account";
-
- format(string, sizeof(string), "%s (IP: %s) cancelled their secret word during a password change.", ReturnName(playerid), ipString);
- adminWarn(1, string);
-
- printf("[WARNING] %s (IP: %s) cancelled their secret word during a password change.", ReturnName(playerid), ReturnIP(playerid));
- return 1;
- }
-
- new Query[256];
-
- mysql_format(m_Handle, Query, sizeof(Query), "SELECT id FROM players WHERE SecretWord = sha1('%e') AND id = %i", inputtext, PlayerData[playerid][pSQLID]);
- mysql_tquery(m_Handle, Query, "ConfirmSecretWord", "i", playerid);
-
- return 1;
- }
- case DIALOG_FACTIONMENU:
- {
- if(response)
- {
- ShowYourFactionMenuAlt(playerid, listitem);
- }
- return 1;
- }
- case DIALOG_FACTIONMENU_NAME:
- {
- if(!response)
- return ShowYourFactionMenu(playerid);
-
- if(strlen(inputtext) > 60 || strlen(inputtext) < 6)
- return ShowYourFactionMenuAlt(playerid, 0);
-
- Message(playerid, COLOR_GREY, "You changed your factions name to: \"%s\" successfully.", inputtext);
- WriteLog("faction_logs/name_edit.txt", "[%s] %s edited Faction ID %i from %s to %s.", ReturnDateLog(), ReturnName(playerid), PlayerData[playerid][pFaction], FactionData[PlayerData[playerid][pFaction]][factionName], inputtext);
-
- format(FactionData[PlayerData[playerid][pFaction]][factionName], 128, "%s", inputtext);
- SaveFaction(PlayerData[playerid][pFaction]);
-
- ShowYourFactionMenu(playerid);
- return 1;
- }
- case DIALOG_FACTIONMENU_ABBREV:
- {
- if(!response)
- return ShowYourFactionMenu(playerid);
-
- if(strlen(inputtext) > 7 || strlen(inputtext) < 1)
- return ShowYourFactionMenuAlt(playerid, 1);
-
- Message(playerid, COLOR_GREY, "You changed your factions abbreviation to: \"%s\" successfully.", inputtext);
- WriteLog("faction_logs/abbrev_edit.txt", "[%s] %s edited Faction ID %i from %s to %s.", ReturnDateLog(), ReturnName(playerid), PlayerData[playerid][pFaction], FactionData[PlayerData[playerid][pFaction]][factionAbbrev], inputtext);
-
- format(FactionData[PlayerData[playerid][pFaction]][factionAbbrev], 128, "%s", inputtext);
- SaveFaction(PlayerData[playerid][pFaction]);
-
- ShowYourFactionMenu(playerid);
- return 1;
- }
- case DIALOG_FACTIONMENU_ALTER:
- {
- if(!response)
- return ShowYourFactionMenu(playerid);
-
- if(!IsNumeric(inputtext))
- return ShowYourFactionMenuAlt(playerid, 2);
-
- new rank_id;
- rank_id = strval(inputtext);
-
- if(rank_id > MAX_FACTION_RANKS || rank_id < 1)
- return ShowYourFactionMenuAlt(playerid, 2);
-
- Message(playerid, COLOR_GREY, "You changed your factions alter rank to: \"%s\" [%i] successfully.", FactionRanks[PlayerData[playerid][pFaction]][rank_id], rank_id);
- WriteLog("faction_logs/abbrev_edit.txt", "[%s] %s edited Faction ID %i from %d to %d.", ReturnDateLog(), ReturnName(playerid), PlayerData[playerid][pFaction], FactionData[PlayerData[playerid][pFaction]][factionEditrank], rank_id);
-
- FactionData[PlayerData[playerid][pFaction]][factionEditrank] = rank_id;
- SaveFaction(PlayerData[playerid][pFaction]);
-
- ShowYourFactionMenu(playerid);
- return 1;
- }
- case DIALOG_FACTIONMENU_TOW:
- {
- if(!response)
- return ShowYourFactionMenu(playerid);
-
- if(!IsNumeric(inputtext))
- return ShowYourFactionMenuAlt(playerid, 3);
-
- new rank_id;
- rank_id = strval(inputtext);
-
- if(rank_id > MAX_FACTION_RANKS || rank_id < 1)
- return ShowYourFactionMenuAlt(playerid, 3);
- Message(playerid, COLOR_GREY, "You changed your factions tow rank to: \"%s\" [%i] successfully.", FactionRanks[PlayerData[playerid][pFaction]][rank_id], rank_id);
-
- FactionData[PlayerData[playerid][pFaction]][factionTowrank] = rank_id;
- SaveFaction(PlayerData[playerid][pFaction]);
-
- ShowYourFactionMenu(playerid);
- return 1;
- }
- case DIALOG_FACTIONMENU_CHAT:
- {
- if(!response)
- return ShowYourFactionMenu(playerid);
-
- if(!IsNumeric(inputtext))
- return ShowYourFactionMenuAlt(playerid, 4);
-
- new rank_id;
- rank_id = strval(inputtext);
-
- if(rank_id > MAX_FACTION_RANKS || rank_id < 1)
- return ShowYourFactionMenuAlt(playerid, 4);
- Message(playerid, COLOR_GREY, "You changed your factions chat rank to: \"%s\" [%i] successfully.", FactionRanks[PlayerData[playerid][pFaction]][rank_id], rank_id);
-
- FactionData[PlayerData[playerid][pFaction]][factionChatrank] = rank_id;
- SaveFaction(PlayerData[playerid][pFaction]);
-
- ShowYourFactionMenu(playerid);
- return 1;
- }
- case DIALOG_FACTIONMENU_JOIN:
- {
- if(!response)
- return ShowYourFactionMenu(playerid);
-
- if(!IsNumeric(inputtext))
- return ShowYourFactionMenuAlt(playerid, 5);
-
- new rank_id;
- rank_id = strval(inputtext);
-
- if(rank_id > MAX_FACTION_RANKS || rank_id < 1)
- return ShowYourFactionMenuAlt(playerid, 5);
- Message(playerid, COLOR_GREY, "You changed your factions join rank to: \"%s\" [%i] successfully.", FactionRanks[PlayerData[playerid][pFaction]][rank_id], rank_id);
-
- FactionData[PlayerData[playerid][pFaction]][factionMaxRanks] = rank_id;
- SaveFaction(PlayerData[playerid][pFaction]);
-
- ShowYourFactionMenu(playerid);
- return 1;
- }
- case DIALOG_FACTIONMENU_EDIT:
- {
- if(!response)
- return ShowYourFactionMenu(playerid);
-
- SetPVarInt( playerid, "SelectedRank", listitem + 1 );
- ShowYourFactionMenuAlt(playerid, 7);
- return 1;
- }
- case DIALOG_FACTIONMENU_EDITALT:
- {
- if(!response)
- {
- DeletePVar(playerid, "SelectedRank");
- return ShowYourFactionMenuAlt(playerid, 6);
- }
-
- if(strlen(inputtext) < 2 || strlen(inputtext) > 60)
- {
- return ShowYourFactionMenuAlt(playerid, 7);
- }
-
- new rank_id;
- rank_id = GetPVarInt(playerid, "SelectedRank");
-
- Message(playerid, COLOR_GREY, "You changed your factions #%i rank to: \"%s\" successfully.", rank_id, inputtext);
-
- format(FactionRanks[PlayerData[playerid][pFaction]][rank_id], 60, "%s", inputtext);
- SaveFactionRanks(PlayerData[playerid][pFaction]);
-
- DeletePVar(playerid, "SelectedRank");
- ShowYourFactionMenuAlt(playerid, 6);
-
- printf("[FACTION CONFIG] %s edited faction ID %i's rank ID %i's name to: %s", ReturnName(playerid), PlayerData[playerid][pFaction], rank_id, inputtext);
- return 1;
- }
- case DIALOG_FACTIONMEMBERS:
- {
- if(response)
- {
- new page = GetPVarInt(playerid, "MemberPage");
-
- if(!strcmp(inputtext, "Previous Page <<"))
- {
- ShowFactionMembers(playerid, page-1);
- return 1;
- }
-
- if(!strcmp(inputtext, "Next Page >>")) //if(listitem == MAX_PLAYER_PER_PAGE+1)
- return ShowFactionMembers(playerid, page+1);
- }
- }
- case REGISTER_GENDER:
- {
- if(response) {
- SendClientMessage(playerid, COLOR_WHITE, "Your gender has been set to male.");
- PlayerData[playerid][pGender] = 1;
- PlayerData[playerid][pSkin] = 217;
- SetPlayerSkin(playerid, PlayerData[playerid][pSkin]);
- GiveMoney(playerid, 15000);
- SavePlayer(playerid);
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_WHITE, "Your gender has been set to female.");
- PlayerData[playerid][pGender] = 2;
- PlayerData[playerid][pSkin] = 211;
- SetPlayerSkin(playerid, PlayerData[playerid][pSkin]);
- GiveMoney(playerid, 15000);
- SavePlayer(playerid);
- return 1;
- }
- }
- /*case REGISTER_SKIN:
- {
- if( !response )
- {
- SetPlayerSkin( playerid, 264 );
- PlayerData[ playerid ][ pSkin ] = 264;
- return 1;
- }
- new Skin;
- Skin = strval(inputtext);
-
- if( Skin < 0 || Skin == 74 || Skin > 311 )
- {
- ShowPlayerDialog( playerid, REGISTER_SKIN, DIALOG_STYLE_INPUT, "Enter Skin ID:", "Invalid value entered!\n\nHey, what skin ID do you want?\n\nEnter a numeric value below!", "Enter", "<<" );
- return 1;
- }
- SetPlayerSkin( playerid, Skin );
- PlayerData[ playerid ][ pSkin ] = Skin;
- return 1;
- }*/
- case DIALOG_TRANSFER_DRUG:
- {
- if (response)
- {
- switch (listitem)
- {
- case 0:
- {
- if (CountPackages(playerid) == 10)
- {
- ShowPlayerDialog(playerid, DIALOG_TRANSFER_DRUG, DIALOG_STYLE_LIST, "Transfer Drug", "Transfer to a new package\nTransfer to an existing package", "Next", "Exit");
- SendClientMessage(playerid, COLOR_YELLOW, "You can't have any more packages.");
- return 1;
- }
- new string[128], id = PlayerData[playerid][pTransferDrug];
-
- format(string, sizeof(string), "Your %s currently contains %.1f%s of %s.\n\nHow much do you wish to transfer?",
- GetPackageType(DrugData[playerid][id][drugPackage]), DrugData[playerid][id][drugQuantity], (IsPill(DrugData[playerid][id][drugType]) == 1) ? (" Pills") : ("g"), ReturnDrugsName(DrugData[playerid][id][drugType]));
-
- ShowPlayerDialog(playerid, DIALOG_NEW_PACKAGE, DIALOG_STYLE_INPUT, "Transfer Drug", string, "Next", "Back");
- }
- case 1:
- {
- new string[128], id = PlayerData[playerid][pTransferDrug];
-
- format(string, sizeof(string), "Your %s currently contains %.1f%s of %s.\n\nHow much do you wish to transfer?",
- GetPackageType(DrugData[playerid][id][drugPackage]), DrugData[playerid][id][drugQuantity], (IsPill(DrugData[playerid][id][drugType]) == 1) ? (" Pills") : ("g"), ReturnDrugsName(DrugData[playerid][id][drugType]));
-
- ShowPlayerDialog(playerid, DIALOG_EXISTING_PACKAGE, DIALOG_STYLE_INPUT, "Transfer Drug", string, "Next", "Back");
- }
- }
- }
- }
- case DIALOG_NEW_PACKAGE:
- {
- if (response)
- {
- new Float:quantity, id = PlayerData[playerid][pTransferDrug];
-
- if (sscanf(inputtext, "f", quantity) || quantity < 0.1)
- {
- new string[128];
-
- format(string, sizeof(string), "Your %s currently contains %.1f%s of %s.\n\nHow much do you wish to transfer?",
- GetPackageType(DrugData[playerid][id][drugPackage]), DrugData[playerid][id][drugQuantity], (IsPill(DrugData[playerid][id][drugType]) == 1) ? (" Pills") : ("g"), ReturnDrugsName(DrugData[playerid][id][drugType]));
-
- ShowPlayerDialog(playerid, DIALOG_NEW_PACKAGE, DIALOG_STYLE_INPUT, "Transfer Drug", string, "Next", "Back");
- return 1;
- }
- if (quantity > DrugData[playerid][id][drugQuantity])
- {
- new string[128];
-
- format(string, sizeof(string), "Your %s currently contains %.1f%s of %s.\n\nHow much do you wish to transfer?",
- GetPackageType(DrugData[playerid][id][drugPackage]), DrugData[playerid][id][drugQuantity], (IsPill(DrugData[playerid][id][drugType]) == 1) ? (" Pills") : ("g"), ReturnDrugsName(DrugData[playerid][id][drugType]));
-
- SendClientMessage(playerid, COLOR_YELLOW, "You don't have that much.");
- ShowPlayerDialog(playerid, DIALOG_NEW_PACKAGE, DIALOG_STYLE_INPUT, "Transfer Drug", string, "Next", "Back");
- return 1;
- }
- new dialog[650], string[64];
-
- dialog = "#\tStorage Name\n";
-
- PlayerData[playerid][pTransferQuantity] = quantity;
-
- for (new i = 0; i <= 13; i++)
- {
- format(string, sizeof(string), "%d\t%s (Capacity: %.1f%s)\n", i, GetPackageType(i), GetPackageCapacity(i, DrugData[playerid][id][drugType]), (IsPill(DrugData[playerid][id][drugType]) == 1) ? (" Pills") : ("g"));
- strcat(dialog, string);
- }
- ShowPlayerDialog(playerid, DIALOG_NEW_PACKAGE_TYPE, DIALOG_STYLE_TABLIST_HEADERS, "Transfer Drug", dialog, "Select", "Back");
- }
- else ShowPlayerDialog(playerid, DIALOG_TRANSFER_DRUG, DIALOG_STYLE_LIST, "Transfer Drug", "Transfer to a new package\nTransfer to an existing package", "Next", "Exit");
- }
- case DIALOG_NEW_PACKAGE_TYPE:
- {
- new string[128], id = PlayerData[playerid][pTransferDrug];
- if (response)
- {
- if (PlayerData[playerid][pTransferQuantity] > GetPackageCapacity(listitem, DrugData[playerid][id][drugType]))
- {
- new dialog[512];
-
- dialog = "#\tStorage Name\n";
- for (new i = 0; i <= 13; i++)
- {
- format(string, sizeof(string), "%d\t%s (Capacity: %.1f%s)\n", i, GetPackageType(i), GetPackageCapacity(i, DrugData[playerid][id][drugType]), (IsPill(DrugData[playerid][id][drugType]) == 1) ? (" Pills") : ("g"));
- strcat(dialog, string);
- }
- ShowPlayerDialog(playerid, DIALOG_NEW_PACKAGE_TYPE, DIALOG_STYLE_TABLIST_HEADERS, "Transfer Drug", dialog, "Select", "Back");
- SendClientMessage(playerid, COLOR_YELLOW, "You can't fit that much into that package.");
- return 1;
- }
- new strength;
-
- switch (random(2))
- {
- case 0:
- {
- strength = DrugData[playerid][id][drugStrength] - random(5) + 1;
- if (strength < 50) strength = 50;
- }
- case 1: strength = DrugData[playerid][id][drugStrength];
- }
- DrugData[playerid][id][drugQuantity] -= PlayerData[playerid][pTransferQuantity];
- GiveDrugPackage(playerid, listitem, DrugData[playerid][id][drugType], PlayerData[playerid][pTransferQuantity], strength);
-
- format(string, sizeof(string), "You've transferred %.1f%s of %s into a %s.", PlayerData[playerid][pTransferQuantity], (IsPill(DrugData[playerid][id][drugType]) == 1) ? (" Pills") : ("g"), ReturnDrugsName(DrugData[playerid][id][drugType]), GetPackageType(listitem));
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- if (DrugData[playerid][id][drugQuantity] == 0) {
- RemoveDrugPackage(playerid, id);
- }
- else
- {
- new query[100];
- mysql_format(m_Handle, query, sizeof(query), "UPDATE player_drugs SET quantity = %.1f WHERE playersqlid = %d AND slot = %d", DrugData[playerid][id][drugQuantity], PlayerData[playerid][pSQLID], id);
- mysql_tquery(m_Handle, query);
- }
- }
- else
- {
- format(string, sizeof(string), "Your %s currently contains %.1f%s of %s.\n\nHow much do you wish to transfer?",
- GetPackageType(DrugData[playerid][id][drugPackage]), DrugData[playerid][id][drugQuantity], (IsPill(DrugData[playerid][id][drugType]) == 1) ? (" Pills") : ("g"), ReturnDrugsName(DrugData[playerid][id][drugType]));
-
- ShowPlayerDialog(playerid, DIALOG_NEW_PACKAGE, DIALOG_STYLE_INPUT, "Transfer Drug", string, "Next", "Back");
- return 1;
- }
- }
- case DIALOG_EXISTING_PACKAGE:
- {
- if (response)
- {
- new Float:quantity, id = PlayerData[playerid][pTransferDrug];
- if (sscanf(inputtext, "f", quantity) || quantity < 0.1)
- {
- new string[128];
- format(string, sizeof(string), "Your %s currently contains %.1f%s of %s.\n\nHow much do you wish to transfer?",
- GetPackageType(DrugData[playerid][id][drugPackage]), DrugData[playerid][id][drugQuantity], (IsPill(DrugData[playerid][id][drugType]) == 1) ? (" Pills") : ("g"), ReturnDrugsName(DrugData[playerid][id][drugType]));
- ShowPlayerDialog(playerid, DIALOG_EXISTING_PACKAGE, DIALOG_STYLE_INPUT, "Transfer Drug", string, "Next", "Back");
- return 1;
- }
- if (quantity > DrugData[playerid][id][drugQuantity])
- {
- new string[128];
- format(string, sizeof(string), "Your %s currently contains %.1f%s of %s.\n\nHow much do you wish to transfer?",
- GetPackageType(DrugData[playerid][id][drugPackage]), DrugData[playerid][id][drugQuantity], (IsPill(DrugData[playerid][id][drugType]) == 1) ? (" Pills") : ("g"), ReturnDrugsName(DrugData[playerid][id][drugType]));
- SendClientMessage(playerid, COLOR_YELLOW, "You don't have that much.");
- ShowPlayerDialog(playerid, DIALOG_EXISTING_PACKAGE, DIALOG_STYLE_INPUT, "Transfer Drug", string, "Next", "Back");
- return 1;
- }
- new dialog[512], string[100], count;
- dialog = "#\tPackage Content\n";
- PlayerData[playerid][pTransferQuantity] = quantity;
-
- for (new i = 0; i < 10; i++)
- PlayerData[playerid][pTransferList][i] = -1;
- for (new i = 0; i < 10; i++) if (DrugData[playerid][i][drugQuantity] > 0)
- {
- if (i == id || DrugData[playerid][i][drugType] != DrugData[playerid][id][drugType] || DrugData[playerid][i][drugQuantity] >= GetPackageCapacity(DrugData[playerid][i][drugPackage], DrugData[playerid][i][drugType]) || DrugData[playerid][i][drugQuantity] + PlayerData[playerid][pTransferQuantity] > GetPackageCapacity(DrugData[playerid][i][drugPackage], DrugData[playerid][i][drugType]))
- continue;
- format(string, sizeof(string), "%d\t%s (%s: %.1f%s/%.1f%s) (Strength: %d)\n",
- i, GetPackageType(DrugData[playerid][i][drugPackage]), ReturnDrugsName(DrugData[playerid][i][drugType]), DrugData[playerid][i][drugQuantity], (IsPill(DrugData[playerid][i][drugType]) == 1) ? (" Pills") : ("g"),
- GetPackageCapacity(DrugData[playerid][i][drugPackage], DrugData[playerid][i][drugType]), (IsPill(DrugData[playerid][i][drugType]) == 1) ? (" Pills") : ("g"), DrugData[playerid][i][drugStrength]);
- strcat(dialog, string);
- PlayerData[playerid][pTransferList][count] = i;
- count++;
- }
- ShowPlayerDialog(playerid, DIALOG_EXISTING_CHOOSE, DIALOG_STYLE_TABLIST_HEADERS, "Transfer Drug", dialog, "Select", "Back");
- }
- else ShowPlayerDialog(playerid, DIALOG_TRANSFER_DRUG, DIALOG_STYLE_LIST, "Transfer Drug", "Transfer to a new package\nTransfer to an existing package", "Next", "Exit");
- }
- case DIALOG_EXISTING_CHOOSE:
- {
- new string[128], id = PlayerData[playerid][pTransferDrug];
- if (response)
- {
- if (PlayerData[playerid][pTransferList][0] == -1)
- return ShowPlayerDialog(playerid, DIALOG_EXISTING_CHOOSE, DIALOG_STYLE_TABLIST_HEADERS, "Transfer Drug", "#\tPackage Content\n", "Select", "Back");
- new to_id = PlayerData[playerid][pTransferList][listitem], query[100], strength;
- if (PlayerData[playerid][pTransferQuantity] > DrugData[playerid][id][drugQuantity]) {
- adminWarn(1, sprintf("%s has attempted to duplicate drug package ID %d.", ReturnName(playerid, 1), id));
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You do not have a sufficient amount of drugs in that slot to transfer.");
- }
- DrugData[playerid][to_id][drugQuantity] += PlayerData[playerid][pTransferQuantity];
- DrugData[playerid][id][drugQuantity] -= PlayerData[playerid][pTransferQuantity];
- strength = (DrugData[playerid][id][drugStrength] + DrugData[playerid][to_id][drugStrength]) / 2;
-
- switch (random(2))
- {
- case 0:
- {
- strength -= random(5) + 1;
- if (strength < 50) strength = 50;
- }
- }
- format(string, sizeof(string), "You've transferred %.1f%s of %s into an existing %s.", PlayerData[playerid][pTransferQuantity], (IsPill(DrugData[playerid][id][drugType]) == 1) ? (" Pills") : ("g"), ReturnDrugsName(DrugData[playerid][id][drugType]), GetPackageType(DrugData[playerid][to_id][drugPackage]));
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- DrugData[playerid][to_id][drugStrength] = strength;
-
- if (DrugData[playerid][id][drugQuantity] == 0) {
- RemoveDrugPackage(playerid, id);
- }
- else
- {
- mysql_format(m_Handle, query, sizeof(query), "UPDATE player_drugs SET quantity = %.1f WHERE playersqlid = %d AND slot = %d", DrugData[playerid][id][drugQuantity], PlayerData[playerid][pSQLID], id);
- mysql_tquery(m_Handle, query);
- }
- mysql_format(m_Handle, query, sizeof(query), "UPDATE player_drugs SET quantity = %.1f, strength = %d WHERE playersqlid = %d AND slot = %d", DrugData[playerid][to_id][drugQuantity], strength, PlayerData[playerid][pSQLID], to_id);
- mysql_tquery(m_Handle, query);
- }
- else
- {
- format(string, sizeof(string), "Your %s currently contains %.1f%s of %s.\n\nHow much do you wish to transfer?",
- GetPackageType(DrugData[playerid][id][drugPackage]), DrugData[playerid][id][drugQuantity], (IsPill(DrugData[playerid][id][drugType]) == 1) ? (" Pills") : ("g"), ReturnDrugsName(DrugData[playerid][id][drugType]));
- ShowPlayerDialog(playerid, DIALOG_EXISTING_PACKAGE, DIALOG_STYLE_INPUT, "Transfer Drug", string, "Next", "Back");
- }
- }
- }
- return false;
- }
- public OnPlayerEditAttachedObject(playerid, response, index, modelid, boneid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ)
- {
- if (PlayerData[playerid][pBuyingClothing])
- {
- if (response)
- {
- new
- id_save = FreeClothingSlot(playerid)
- ;
-
- if(id_save == -1)
- {
- SendClientMessage(playerid, COLOR_ADM, "An error occurred. You don't have a free slot.");
- RemovePlayerAttachedObject(playerid, index);
-
- ClearAnimations(playerid);
- PlayerData[playerid][pBuyingClothing] = false;
- return 1;
- }
-
- ClothingData[playerid][id_save][attachment_modelid] = modelid;
- ClothingData[playerid][id_save][attachment_bone] = boneid;
- ClothingData[playerid][id_save][attachment_playerDBID] = PlayerData[playerid][pSQLID];
-
- ClothingData[playerid][id_save][attachment_Pos][0] = fOffsetX;
- ClothingData[playerid][id_save][attachment_Pos][1] = fOffsetY;
- ClothingData[playerid][id_save][attachment_Pos][2] = fOffsetZ;
-
- ClothingData[playerid][id_save][attachment_Rot][0] = fRotX;
- ClothingData[playerid][id_save][attachment_Rot][1] = fRotY;
- ClothingData[playerid][id_save][attachment_Rot][2] = fRotZ;
-
- ClothingData[playerid][id_save][attachment_Scale][0] = fScaleX;
- ClothingData[playerid][id_save][attachment_Scale][1] = fScaleY;
- ClothingData[playerid][id_save][attachment_Scale][2] = fScaleZ;
-
- format(ClothingData[playerid][id_save][attachment_name], 90, "%s", PlayerData[playerid][pClothingName]);
-
- clothing_index[playerid] = id_save;
-
- new query[550], string[128];
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO player_clothing (`player_dbid`, `modelid`, `bone`, `PosX`, `PosY`, `PosZ`, `RotX`, `RotY`, `RotZ`, `ScaleX`, `ScaleY`, `ScaleZ`, `name`) VALUES (%i, %i, %i, %f, %f, %f, %f, %f, %f, %f, %f, %f, '%e')",
- PlayerData[playerid][pSQLID], modelid, boneid, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ, fScaleX, fScaleY, fScaleZ, PlayerData[playerid][pClothingName]);
- mysql_pquery(m_Handle, query, "SQL_AddPlayerAttachment", "i", playerid);
-
- format(string, sizeof(string), "Enjoy your new %s!", PlayerData[playerid][pClothingName]);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- RemovePlayerAttachedObject(playerid, index);
- ClearAnimations(playerid);
-
- GiveMoney(playerid, -ClothingCost[playerid]);
-
- ClothingCost[playerid] = 0;
- PlayerData[playerid][pBuyingClothing] = false;
- }
- else
- {
- SendClientMessage(playerid, COLOR_DARKGREEN, "You cancelled your purchase!");
- RemovePlayerAttachedObject(playerid, index);
-
- ClearAnimations(playerid);
- PlayerData[playerid][pBuyingClothing] = false;
- }
- }
- if (PlayerData[playerid][pEditingClothing])
- {
- if (response)
- {
- new
- indexx;
-
- for(new i = 1; i < MAX_CLOTHING_ITEMS; i++)
- {
- if(ClothingData[playerid][i][attachment_SQLID] == ClothingHolder[playerid])
- indexx = i;
- }
-
- ClothingData[playerid][indexx][attachment_Pos][0] = fOffsetX;
- ClothingData[playerid][indexx][attachment_Pos][1] = fOffsetY;
- ClothingData[playerid][indexx][attachment_Pos][2] = fOffsetZ;
-
- ClothingData[playerid][indexx][attachment_Rot][0] = fRotX;
- ClothingData[playerid][indexx][attachment_Rot][1] = fRotY;
- ClothingData[playerid][indexx][attachment_Rot][2] = fRotZ;
-
- ClothingData[playerid][indexx][attachment_Scale][0] = fScaleX;
- ClothingData[playerid][indexx][attachment_Scale][1] = fScaleY;
- ClothingData[playerid][indexx][attachment_Scale][2] = fScaleZ;
-
- new query[400];
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE player_clothing SET PosX = %f, PosY = %f, PosZ = %f, RotX = %f, RotY = %f, RotZ = %f WHERE id = %i", fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ, ClothingData[playerid][indexx][attachment_SQLID]);
- mysql_pquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE player_clothing SET ScaleX = %f, ScaleY = %f, ScaleZ = %f WHERE id = %i", fScaleX, fScaleY, fScaleZ, ClothingData[playerid][indexx][attachment_SQLID]);
- mysql_pquery(m_Handle, query);
-
- SendClientMessage(playerid, COLOR_DARKGREEN, "You edited your clothing item!");
- ClearAnimations(playerid);
- PlayerData[playerid][pEditingClothing] = false;
- }
- else
- {
- PlayerData[playerid][pEditingClothing] = false;
- ClearAnimations(playerid);
-
- RemovePlayerAttachedObject(playerid, index);
- SendClientMessage(playerid, COLOR_DARKGREEN, "You stopped editing your clothing item.");
- }
- }
- if (EditingDisplay[playerid])
- {
- new string[128], query[500], id = EditingDisplay[playerid];
-
- if (response)
- {
- WeaponDisplay[playerid][id][weaponPos][0] = fOffsetX;
- WeaponDisplay[playerid][id][weaponPos][1] = fOffsetY;
- WeaponDisplay[playerid][id][weaponPos][2] = fOffsetZ;
-
- WeaponDisplay[playerid][id][weaponRot][0] = fRotX;
- WeaponDisplay[playerid][id][weaponRot][1] = fRotY;
- WeaponDisplay[playerid][id][weaponRot][2] = fRotZ;
-
- SetPlayerAttachedObject(playerid, index, ReturnWeaponsModel(id), WeaponDisplay[playerid][id][weaponBone], fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ);
- EditingDisplay[playerid] = false;
-
- format (string, sizeof(string), "Your %s's position was changed.", ReturnWeaponName(id));
- SendClientMessage(playerid, COLOR_ADM, string);
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO weapon_attachments(playerdbid, weaponid, boneid, PosX, PosY, PosZ, RotX, RotY, RotZ) VALUES(%i, %i, %i, %f, %f, %f, %f, %f, %f) ON DUPLICATE KEY UPDATE boneid = %i, PosX = %f, PosY = %f, PosZ = %f, RotX = %f, RotY = %f, RotZ = %f",
- PlayerData[playerid][pSQLID], id, WeaponDisplay[playerid][id][weaponBone], fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ, WeaponDisplay[playerid][id][weaponBone], fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ);
- mysql_pquery(m_Handle, query);
- }
- else
- {
- //SetPlayerAttachedObject(playerid, index, ReturnWeaponsModel(id), WeaponDisplay[playerid][id][weaponBone], WeaponDisplay[playerid][id][weaponPos][0], WeaponDisplay[playerid][id][weaponPos][1], WeaponDisplay[playerid][id][weaponPos][2],
- //WeaponDisplay[playerid][id][weaponRot][0], WeaponDisplay[playerid][id][weaponRot][1], WeaponDisplay[playerid][id][weaponRot][2]);
-
- RemovePlayerAttachedObject(playerid, index);
- EditingDisplay[playerid] = false;
- }
- }
- return true;
- }
- Server:Float:GetDistanceBetweenPoints(Float:rx1,Float:ry1,Float:rz1,Float:rx2,Float:ry2,Float:rz2)
- {
- return floatadd(floatadd(floatsqroot(floatpower(floatsub(rx1,rx2),2)),floatsqroot(floatpower(floatsub(ry1,ry2),2))),floatsqroot(floatpower(floatsub(rz1,rz2),2)));
- }
- stock IsPointNearPoint(Float:aX, Float:aY, Float:aZ, Float:bX, Float:bY, Float:bZ, range = 50)
- return GetDistanceBetweenPoints(aX, aY, aZ, bX, bY, bZ) <= range;
- public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
- {
- if (PlayerData[playerid][pAddingFurniture])
- {
- if(response == EDIT_RESPONSE_FINAL) {
- if(100 > PlayerData[playerid][pMoney])
- {
- DestroyDynamicObject(PlayerData[playerid][pFurnitureObject]);
- PlayerData[playerid][pAddingFurniture] = false;
-
- SendClientMessage(playerid, COLOR_ADM, "You can't afford this.");
- return 1;
- }
-
- DestroyDynamicObject(PlayerData[playerid][pFurnitureObject]);
-
- SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} You added new furniture to your home.");
- AddFurniture(playerid, IsPlayerInProperty(playerid), PlayerData[playerid][pFurnitureName], PlayerData[playerid][pFurnitureModel], x, y, z, rx, ry, rz);
-
- GiveMoney(playerid, -100);
-
- PlayerData[playerid][pAddingFurniture] = false;
- }
- else if(response == EDIT_RESPONSE_CANCEL) {
- DestroyDynamicObject(PlayerData[playerid][pFurnitureObject]);
- PlayerData[playerid][pAddingFurniture] = false;
- }
- printf("pAddFurniture called for %s.", ReturnName(playerid));
- }
- else if (PlayerData[playerid][pAddingXMR]){
- if(response == EDIT_RESPONSE_FINAL) {
- GiveMoney(playerid, -100);
- DestroyDynamicObject(PlayerData[playerid][pXMRObject]);
-
- new id = IsPlayerInProperty(playerid);
- PropertyData[id][propertyXMRObject] = CreateDynamicObject(2103, x, y, z, rx, ry, rz, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
- PropertyData[id][propertyHasXMR] = true;
-
- PropertyData[id][propertyXMRPos][0] = x;
- PropertyData[id][propertyXMRPos][1] = y;
- PropertyData[id][propertyXMRPos][2] = z;
-
- PropertyData[id][propertyXMRRot][0] = rx;
- PropertyData[id][propertyXMRRot][1] = ry;
- PropertyData[id][propertyXMRRot][2] = rz;
-
- SaveProperty(id);
-
- PlayerData[playerid][pAddingXMR] = false;
- SendClientMessage(playerid, COLOR_GRAD2, "SERVER: Your Property now has a radio! /setstation");
- }
- else if(response == EDIT_RESPONSE_CANCEL) {
- DestroyDynamicObject(PlayerData[playerid][pXMRObject]);
- PlayerData[playerid][pAddingXMR] = false;
- }
- printf("pAddXMR called for %s.", ReturnName(playerid));
- }
- else if (PlayerData[playerid][pEditingDuplicate]){
- if(response == EDIT_RESPONSE_FINAL) {
- SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} You duplicated and saved a new furniture to your home.");
- AddFurniture(playerid, IsPlayerInProperty(playerid), FurnitureData[FurnitureSelectHolderArr[playerid]][furnituresName], FurnitureData[FurnitureSelectHolderArr[playerid]][furnituresModel], x, y, z, rx, ry, rz);
-
- DestroyDynamicObject(PlayerData[playerid][pFurnitureDuplicate]);
- GiveMoney(playerid, -100);
-
- PlayerData[playerid][pEditingFurniture] = false;
- PlayerData[playerid][pEditingDuplicate] = false;
- PlayerData[playerid][pFurnitureDuplicate] = INVALID_OBJECT_ID;
- }
- else if(response == EDIT_RESPONSE_CANCEL) {
- DestroyDynamicObject(PlayerData[playerid][pFurnitureDuplicate]);
- PlayerData[playerid][pEditingDuplicate] = false;
- PlayerData[playerid][pEditingFurniture] = false;
- PlayerData[playerid][pFurnitureDuplicate] = INVALID_OBJECT_ID;
- }
- printf("pEditingDuplicate called for %s.", ReturnName(playerid));
- }
- else if (PlayerData[playerid][pEditingFurniture]){
- if(response == EDIT_RESPONSE_FINAL) {
- new query[400], id = FurnitureSelectHolderArr[playerid];
-
- FurnitureData[id][furniturePos][0] = x;
- FurnitureData[id][furniturePos][1] = y;
- FurnitureData[id][furniturePos][2] = z;
- FurnitureData[id][furnitureRot][0] = rx;
- FurnitureData[id][furnitureRot][1] = ry;
- FurnitureData[id][furnitureRot][2] = rz;
-
- SetDynamicObjectPos(FurnitureData[id][furnitureObject], x, y, z);
- SetDynamicObjectRot(FurnitureData[id][furnitureObject], rx, ry, rz);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE furniture SET PosX = %f, PosY = %f, PosZ = %f, RotX = %f, RotY = %f, RotZ = %f WHERE id = %d",
- x, y, z, rx, ry, rz, FurnitureData[FurnitureSelectHolderArr[playerid]][furnitureSQLID]);
- mysql_pquery(m_Handle, query);
-
- SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} Your properties furniture was changed.");
- PlayerData[playerid][pEditingFurniture] = false;
- PlayerData[playerid][pEditingDuplicate] = false;
- }
- else if(response == EDIT_RESPONSE_CANCEL){
- new i = FurnitureSelectHolderArr[playerid];
-
- SetDynamicObjectPos(FurnitureData[i][furnitureObject], FurnitureData[i][furniturePos][0], FurnitureData[i][furniturePos][1], FurnitureData[i][furniturePos][2]);
- SetDynamicObjectRot(FurnitureData[i][furnitureObject], FurnitureData[i][furnitureRot][0], FurnitureData[i][furnitureRot][1], FurnitureData[i][furnitureRot][2]);
-
- PlayerData[playerid][pEditingFurniture] = false;
- PlayerData[playerid][pEditingDuplicate] = false;
- }
- printf("pEditingFurniture called for %s.", ReturnName(playerid));
- }
- else if (PlayerData[playerid][pEditingXMR])
- {
- new id = IsPlayerInProperty(playerid);
- if(response == EDIT_RESPONSE_FINAL) {
-
- PropertyData[id][propertyXMRPos][0] = x;
- PropertyData[id][propertyXMRPos][1] = y;
- PropertyData[id][propertyXMRPos][2] = z;
-
- PropertyData[id][propertyXMRRot][0] = rx;
- PropertyData[id][propertyXMRRot][1] = ry;
- PropertyData[id][propertyXMRRot][2] = rz;
-
- SetDynamicObjectPos(PropertyData[id][propertyXMRObject], x, y, z);
- SetDynamicObjectRot(PropertyData[id][propertyXMRObject], rx, ry, rz);
- SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} Your properties XMR was changed.");
-
- PlayerData[playerid][pEditingXMR] = false;
- }
- else if(response == EDIT_RESPONSE_CANCEL) {
- PlayerData[playerid][pEditingXMR] = false;
-
- SetDynamicObjectPos(PropertyData[id][propertyXMRObject], PropertyData[id][propertyXMRPos][0], PropertyData[id][propertyXMRPos][1], PropertyData[id][propertyXMRPos][2]);
- SetDynamicObjectRot(PropertyData[id][propertyXMRObject], PropertyData[id][propertyXMRRot][0], PropertyData[id][propertyXMRRot][1], PropertyData[id][propertyXMRRot][2]);
- }
- printf("pEditingXMR called for %s.", ReturnName(playerid));
- }
- else if (EditingBoombox[playerid])
- {
- new id = EditingBoombox[playerid];
-
- if (response == EDIT_RESPONSE_FINAL)
- {
- SetDynamicObjectPos(BoomboxData[id][boomboxObject], x, y, z);
- SetDynamicObjectRot(BoomboxData[id][boomboxObject], rx, ry, rz);
-
- if(IsValidDynamicArea(BoomboxData[id][boomboxArea]))
- DestroyDynamicArea(BoomboxData[id][boomboxArea]);
-
- BoomboxData[id][boomboxArea] = CreateDynamicCircle(x, y, 30.0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
-
- BoomboxData[id][boomboxPos][0] = x;
- BoomboxData[id][boomboxPos][1] = y;
- BoomboxData[id][boomboxPos][2] = z;
-
- BoomboxData[id][boomboxRot][0] = rx;
- BoomboxData[id][boomboxRot][1] = ry;
- BoomboxData[id][boomboxRot][2] = rz;
-
- SendClientMessage(playerid, COLOR_DARKGREEN, "/setstation to change your boombox's station!");
- EditingBoombox[playerid] = false;
- }
- else if (response == EDIT_RESPONSE_CANCEL)
- {
- EditingBoombox[playerid] = false;
-
- SetDynamicObjectPos(BoomboxData[id][boomboxObject], BoomboxData[id][boomboxPos][0], BoomboxData[id][boomboxPos][1], BoomboxData[id][boomboxPos][2]);
- SetDynamicObjectRot(BoomboxData[id][boomboxObject], BoomboxData[id][boomboxRot][0], BoomboxData[id][boomboxRot][1], BoomboxData[id][boomboxRot][2]);
- }
- printf("pEditingBoombox called for %s.", ReturnName(playerid));
- }
- else if (PlayerData[playerid][pPlacingMeal])
- {
- if (response == EDIT_RESPONSE_CANCEL)
- {
- PlayerData[playerid][pPlacingMeal] = false;
- PlayerData[playerid][pCarryingMeal] = false;
- DestroyDynamicObject(MealMenu[playerid][mealObject]);
-
- MealMenu[playerid][mealExists] = false;
- MealMenu[playerid][mealPlaced] = false;
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s throws their meal away.", ReturnName(playerid, 0));
- }
- else if (response == EDIT_RESPONSE_FINAL)
- {
- MealMenu[playerid][mealPos][0] = x;
- MealMenu[playerid][mealPos][1] = y;
- MealMenu[playerid][mealPos][2] = z;
-
- MealMenu[playerid][mealRot][0] = rx;
- MealMenu[playerid][mealRot][1] = ry;
- MealMenu[playerid][mealRot][2] = rz;
-
- SetDynamicObjectPos(MealMenu[playerid][mealObject], x, y, z);
- SetDynamicObjectRot(MealMenu[playerid][mealObject], rx, ry, rz);
-
- SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} Use /meal pickup to get your meal back!");
- MealMenu[playerid][mealPlaced] = true;
- }
- printf("pPlacingMeal called for %s.", ReturnName(playerid));
- }
- else if(PlayerAddingObject[playerid])
- {
- if(response == EDIT_RESPONSE_CANCEL)
- {
- PlayerAddingObject[playerid] = 0;
- DestroyDynamicObject(PlayerSpawnObject[playerid]);
-
- SendClientMessage(playerid, COLOR_GOLD, "* You cancelled your mapping.");
- printf("[DEBUG] Admin %s cancelled their Object (/map)", ReturnName(playerid));
- }
- else if(response == EDIT_RESPONSE_FINAL)
- {
- PlayerAddingObject[playerid] = 0;
- DestroyDynamicObject(PlayerSpawnObject[playerid]);
- new
- query[356];
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO objects (model_id, PosX, PosY, PosZ, RotX, RotY, RotZ, Interior, World) VALUES(%i, %f, %f, %f, %f, %f, %f, %i, %i)",
- PlayerAddingModel[playerid], x, y, z, rx, ry, rz, GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid));
-
- mysql_tquery(m_Handle, query, "OnMappingAdded", "iffffff", playerid, x, y, z, rx, ry, rz);
- }
- printf("pAddingMap called for %s.", ReturnName(playerid));
- }
- else if(PlayerEditingObject[playerid])
- {
- new
- id = PlayerEditingID[playerid];
-
- if(response == EDIT_RESPONSE_CANCEL)
- {
- SetDynamicObjectPos(ObjectData[id][Object], ObjectData[id][Object_PosX], ObjectData[id][Object_PosY], ObjectData[id][Object_PosZ]);
- SetDynamicObjectRot(ObjectData[id][Object], ObjectData[id][Object_RotX], ObjectData[id][Object_RotY], ObjectData[id][Object_RotZ]);
-
- PlayerEditingObject[playerid] = 0;
- PlayerEditingID[playerid] = 0;
-
- SendClientMessage(playerid, COLOR_GOLD, "* You cancelled your editing.");
- }
- else if(response == EDIT_RESPONSE_FINAL)
- {
- SetDynamicObjectPos(ObjectData[id][Object], x, y, z);
- SetDynamicObjectRot(ObjectData[id][Object], rx, ry, rz);
-
- PlayerEditingObject[playerid] = 0;
- PlayerEditingID[playerid] = 0;
-
- new
- query[256];
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE objects SET PosX = %f, PosY = %f, PosZ = %f, RotX = %f, RotY = %f, RotZ = %f WHERE id = %i", x, y, z, rx, ry, rz, ObjectData[id][ObjectDBID]);
- mysql_tquery(m_Handle, query, "OnMappingEdited", "iiffffff", playerid, id, x, y, z, rx, ry, rz);
- }
- printf("pEditingMap called for %s.", ReturnName(playerid));
- }
- else if(PlayerEditingOpen[playerid])
- {
- new
- id = PlayerEditingID[playerid];
-
- if(response == EDIT_RESPONSE_CANCEL)
- {
- SetDynamicObjectPos(ObjectData[id][Object], ObjectData[id][Object_PosX], ObjectData[id][Object_PosY], ObjectData[id][Object_PosZ]);
- SetDynamicObjectRot(ObjectData[id][Object], ObjectData[id][Object_RotX], ObjectData[id][Object_RotY], ObjectData[id][Object_RotZ]);
-
- PlayerEditingOpen[playerid] = 0;
- PlayerEditingID[playerid] = 0;
-
- SendClientMessage(playerid, COLOR_GOLD, "* You cancelled your editing.");
- }
- else if(response == EDIT_RESPONSE_FINAL)
- {
- new
- query[256];
-
- PlayerEditingOpen[playerid] = 0;
- PlayerEditingID[playerid] = 0;
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE objects SET OpenX = %f, OpenY = %f, OpenZ = %f, OpenRotX = %f, OpenRotY = %f, OpenRotZ = %f WHERE id = %i", x, y, z, rx, ry, rz, ObjectData[id][ObjectDBID]);
- mysql_tquery(m_Handle, query, "OnMappingEditedEx", "iiffffff", playerid, id, x, y, z, rx, ry, rz);
- }
- printf("pEditingMapOpen called for %s.", ReturnName(playerid));
- }
- else if(PlayerData[playerid][pAddingRoadblock])
- {
- if(response == EDIT_RESPONSE_CANCEL)
- {
- DestroyDynamicObject(PlayerData[playerid][pRoadblockObject]);
- PlayerData[playerid][pAddingRoadblock] = 0;
- }
- else if(response == EDIT_RESPONSE_FINAL)
- {
- new
- id = -1,
- str[128];
-
- for(new i = 0; i < sizeof(Roadblocks); i++)
- {
- if(Roadblocks[i][RoadblockExists])
- continue;
-
- id = i;
- break;
- }
-
- if(id == -1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "SERVER: It looks like you can't spawn this anymore.");
-
- DestroyDynamicObject(PlayerData[playerid][pRoadblockObject]);
- PlayerData[playerid][pAddingRoadblock] = 0;
- return 1;
- }
-
- DestroyDynamicObject(PlayerData[playerid][pRoadblockObject]);
-
- format(str, sizeof(str), "** HQ: %s %s added a '%s' at %s! **", ReturnRank(playerid), ReturnName(playerid, 0), GetRoadblockNameFromModel(PlayerData[playerid][pRoadblockModel]), ReturnLocation(playerid));
- SendLawMessage(COLOR_COP, str);
-
- format(Roadblocks[id][RoadblockLocation], 40, "%s", ReturnLocation(playerid));
- format(Roadblocks[id][RoadblockPlacedBy], 34, "%s", ReturnName(playerid));
-
- Roadblocks[id][RoadblockExists] = true;
- Roadblocks[id][RoadblocksModelID] = PlayerData[playerid][pRoadblockModel];
-
- if(PlayerData[playerid][pRoadblockModel] == 2892 || PlayerData[playerid][pRoadblockModel] == 2899)
- Roadblocks[id][RoadblockSpikes] = true;
-
- Roadblocks[id][RoadblockPos][0] = x;
- Roadblocks[id][RoadblockPos][1] = y;
- Roadblocks[id][RoadblockPos][2] = z;
-
- Roadblocks[id][RoadblockObject] = CreateDynamicObject(PlayerData[playerid][pRoadblockModel], x, y, z, rx, ry, rz, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
- Roadblocks[id][RoadblockWorld] = GetPlayerVirtualWorld(playerid);
- Roadblocks[id][RoadblockInterior] = GetPlayerInterior(playerid);
-
- PlayerData[playerid][pAddingRoadblock] = 0;
- PlayerData[playerid][pRoadblockModel] = 0;
- }
- printf("pEditingRoadblock called for %s.", ReturnName(playerid));
- }
- else if(PlayerPlacingWeapon[playerid])
- {
- new
- bool:CanPlace = true,
- Float:VehiclePos[3];
-
- if(response == EDIT_RESPONSE_UPDATE)
- {
- GetVehiclePos(PlayerPlacingInVehicle[playerid], VehiclePos[0], VehiclePos[1], VehiclePos[2]);
-
- if(IsPointNearPoint(x, y, z, VehiclePos[0], VehiclePos[1], VehiclePos[2], 4))
- {
- CanPlace = true;
- }
- else
- {
- CanPlace = false;
- SendClientMessage(playerid, COLOR_ADM, "INFO: Your object is out of bound from the vehicle!");
- }
- }
- else if(response == EDIT_RESPONSE_CANCEL)
- {
- GivePlayerWeapon(playerid, PlayerPlacingWeaponID[playerid], PlayerPlacingWeaponAmmo[playerid]);
-
- if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER && PlayerPlacingWeaponID[playerid] == 24)
- SetPlayerArmedWeapon(playerid, 0);
-
- DestroyDynamicObject(CarData[ PlayerPlacingInVehicle[playerid] ][carWeaponObject][ PlayerPlacingWeaponSlot[playerid] ]);
-
- PlayerPlacingWeapon[playerid] = 0; PlayerPlacingWeaponID[playerid] = 0;
- PlayerPlacingWeaponAmmo[playerid] = 0;
-
- SlotBeingUsed[ PlayerPlacingInVehicle[playerid] ][ PlayerPlacingWeaponSlot[playerid] ] = 0;
- PlayerPlacingWeaponSlot[playerid] = 0; PlayerPlacingInVehicle[playerid] = 0;
-
- SendClientMessage(playerid, COLOR_ADM, "INFO: Your weapon has been returned.");
- }
- else if(response == EDIT_RESPONSE_FINAL)
- {
- new
- Float:Offset[4],
- Float:ofx, Float:ofy,
- Float:ofz, Float:ofaz,
- Float:finalx, Float:finaly,
- Float:px, Float:py, Float:pz, Float:roz;
-
- GetVehiclePos(PlayerPlacingInVehicle[playerid], VehiclePos[0], VehiclePos[1], VehiclePos[2]);
- if(IsPointNearPoint(x, y, z, VehiclePos[0], VehiclePos[1], VehiclePos[2], 4))
- CanPlace = true;
- else
- CanPlace = false;
- if(!CanPlace)
- {
- SendClientMessage(playerid, COLOR_ADM, "INFO: Your weapon was out of bound and set to a default position.");
- Offset[0] = 0.0;
- Offset[1] = 0.0;
- Offset[2] = 0.0;
- Offset[3] = 0.0;
- /*x = 0.0;
- y = 0.0;
- z = 0.0;*/
- }
- else
- {
- GetVehiclePos(PlayerPlacingInVehicle[playerid], px, py, pz);
- GetVehicleZAngle(PlayerPlacingInVehicle[playerid], roz);
- ofx = x-px;
- ofy = y-py;
- ofz = z-pz;
- ofaz = rz-roz;
- finalx = ofx*floatcos(roz, degrees)+ofy*floatsin(roz, degrees);
- finaly = -ofx*floatsin(roz, degrees)+ofy*floatcos(roz, degrees);
-
- Offset[0] = finalx;
- Offset[1] = finaly;
- Offset[2] = ofz;
- Offset[3] = ofaz;
- }
- new
- slot_id = PlayerPlacingWeaponSlot[playerid],
- vehicleid = PlayerPlacingInVehicle[playerid],
- insert_query[230],
- string[128];
-
- CarData[vehicleid][carWeapons][slot_id] = PlayerPlacingWeaponID[playerid];
- CarData[vehicleid][carWeaponsAmmo][slot_id] = PlayerPlacingWeaponAmmo[playerid];
-
- TakePlayerWeapon(playerid, PlayerPlacingWeaponID[playerid]);
-
- DestroyDynamicObject(CarData[vehicleid][carWeaponObject][slot_id]);
-
- CarData[vehicleid][carWeaponObject][slot_id] = CreateDynamicObject(ReturnWeaponsModel(PlayerPlacingWeaponID[playerid]), 0.0, 0.0, 0.0, rx, ry, Offset[3], GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
- AttachDynamicObjectToVehicle(CarData[vehicleid][carWeaponObject][slot_id], vehicleid, Offset[0], Offset[1], Offset[2], rx, ry, Offset[3]);
-
- Message(playerid, COLOR_ADM, "You've placed a {FFFFFF}%s{FF6347} with {FFFFFF}%d Ammo{FF6347} in this %s.", ReturnWeaponName(PlayerPlacingWeaponID[playerid]), PlayerPlacingWeaponAmmo[playerid], ReturnVehicleName(vehicleid));
-
- format(string, sizeof(string), "* %s stores a %s in the %s.", ReturnName(playerid, 0), ReturnWeaponName(PlayerPlacingWeaponID[playerid]), ReturnVehicleName(vehicleid));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 20.0, 2000);
-
- format(string, sizeof(string), "%s put a %s[%d] (slot %d)", ReturnName(playerid), ReturnWeaponName(PlayerPlacingWeaponID[playerid]), PlayerPlacingWeaponAmmo[playerid], slot_id);
- LogVehicleAction(vehicleid, string);
-
- WriteLog("weapon_logs/vehicle_place.txt", "[%s] %s (DBID: %i) placed %s (Ammo: %i) in Vehicle DBID %i", ReturnDate(), ReturnName(playerid), PlayerData[playerid][pSQLID], ReturnWeaponName(PlayerPlacingWeaponID[playerid]), PlayerPlacingWeaponAmmo[playerid], CarData[vehicleid][carID]);
-
- SaveCar(vehicleid);
-
- switch(PlayerPlacingWeaponSlot[playerid])
- {
- case 1: mysql_format(m_Handle, insert_query, sizeof(insert_query), "UPDATE ownedcars SET Weapon1PosX = %f, Weapon1PosY = %f, Weapon1PosZ = %f, Weapon1RotX = %f, Weapon1RotY = %f, Weapon1RotZ = %f WHERE id = %i", Offset[0], Offset[1], Offset[2], rx, ry, Offset[3], CarData[vehicleid][carID]);
- case 2: mysql_format(m_Handle, insert_query, sizeof(insert_query), "UPDATE ownedcars SET Weapon2PosX = %f, Weapon2PosY = %f, Weapon2PosZ = %f, Weapon2RotX = %f, Weapon2RotY = %f, Weapon2RotZ = %f WHERE id = %i", Offset[0], Offset[1], Offset[2], rx, ry, Offset[3], CarData[vehicleid][carID]);
- case 3: mysql_format(m_Handle, insert_query, sizeof(insert_query), "UPDATE ownedcars SET Weapon3PosX = %f, Weapon3PosY = %f, Weapon3PosZ = %f, Weapon3RotX = %f, Weapon3RotY = %f, Weapon3RotZ = %f WHERE id = %i", Offset[0], Offset[1], Offset[2], rx, ry, Offset[3], CarData[vehicleid][carID]);
- case 4: mysql_format(m_Handle, insert_query, sizeof(insert_query), "UPDATE ownedcars SET Weapon4PosX = %f, Weapon4PosY = %f, Weapon4PosZ = %f, Weapon4RotX = %f, Weapon4RotY = %f, Weapon4RotZ = %f WHERE id = %i", Offset[0], Offset[1], Offset[2], rx, ry, Offset[3], CarData[vehicleid][carID]);
- }
- mysql_tquery(m_Handle, insert_query);
-
- PlayerPlacingWeapon[playerid] = 0; PlayerPlacingWeaponID[playerid] = 0;
- PlayerPlacingWeaponAmmo[playerid] = 0;
-
- SlotBeingUsed[vehicleid][slot_id] = 0;
- PlayerPlacingWeaponSlot[playerid] = 0; PlayerPlacingInVehicle[playerid] = 0;
- }
- }
- else if(GetPVarInt(playerid, "EditingCrateToVehicle") > 0)
- {
- new
- bool:CanPlace = true,
- Float:VehiclePos[3];
-
- new crate;
- crate = GetPVarInt(playerid, "EditingCrateID");
-
- if(response == EDIT_RESPONSE_CANCEL)
- {
- DestroyDynamicObject(WeaponCrates[crate][CrateObject]);
- PlayAnimation(playerid, "MISC", "pickup_box", 4.1, 0, 0, 0, 0, 0, 1);
-
- new attach;
- attach = FreeAttachmentSlot(playerid);
-
- if(attach == -1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You ran out of space to carry this.");
-
- new Float:Pos[3];
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
-
- WeaponCrates[crate][CrateObject] = CreateDynamicObject(2912, Pos[0], Pos[1], Pos[2]-1, 0.0, 0.0, 0.0);
- new label[60];
- format(label, sizeof label, "%s", ReturnFactionName(WeaponCrates[crate][CrateFaction]));
- WeaponCrates[crate][CrateLabel] = CreateDynamic3DTextLabel(label, COLOR_YELLOW, Pos[0], Pos[1], Pos[2]-1, 20.0);
-
- WeaponCrates[crate][CrateAttachedTo] = -1;
- WeaponCrates[crate][CrateVehicle] = -1;
- return 1;
- }
-
- SetTimerEx("PickupBox", 1000, false, "ii", playerid, attach);
- WeaponCrates[crate][CrateAttachedTo] = playerid;
-
- DeletePVar(playerid, "EditingCrateID"); DeletePVar(playerid, "EditingCrateVehicleID");
- DeletePVar(playerid, "EditingCrateToVehicle");
- }
- else if(response == EDIT_RESPONSE_UPDATE)
- {
- GetVehiclePos(GetPVarInt(playerid, "EditingCrateVehicleID"), VehiclePos[0], VehiclePos[1], VehiclePos[2]);
-
- if(IsPointNearPoint(x, y, z, VehiclePos[0], VehiclePos[1], VehiclePos[2], 6))
- {
- CanPlace = true;
- }
- else
- {
- CanPlace = false;
- SendClientMessage(playerid, COLOR_ADM, "INFO: Your object is out of bound from the vehicle!");
- }
- }
- else if(response == EDIT_RESPONSE_FINAL)
- {
- new
- Float:Offset[4],
- Float:ofx, Float:ofy,
- Float:ofz, Float:ofaz,
- Float:finalx, Float:finaly,
- Float:px, Float:py, Float:pz, Float:roz
- ;
-
- new vehicleid;
- vehicleid = GetPVarInt(playerid, "EditingCrateVehicleID");
- GetVehiclePos(vehicleid, VehiclePos[0], VehiclePos[1], VehiclePos[2]);
- if(IsPointNearPoint(x, y, z, VehiclePos[0], VehiclePos[1], VehiclePos[2], 6))
- CanPlace = true;
- else
- CanPlace = false;
- if(!CanPlace)
- {
- SendClientMessage(playerid, COLOR_ADM, "INFO: Your object was out of bound and set to a default position.");
- Offset[0] = 0.0;
- Offset[1] = 0.0;
- Offset[2] = 0.0;
- Offset[3] = 0.0;
- /*x = 0.0;
- y = 0.0;
- z = 0.0;*/
- }
- else
- {
- GetVehiclePos(vehicleid, px, py, pz);
- GetVehicleZAngle(vehicleid, roz);
- ofx = x-px;
- ofy = y-py;
- ofz = z-pz;
- ofaz = rz-roz;
- finalx = ofx*floatcos(roz, degrees)+ofy*floatsin(roz, degrees);
- finaly = -ofx*floatsin(roz, degrees)+ofy*floatcos(roz, degrees);
-
- Offset[0] = finalx;
- Offset[1] = finaly;
- Offset[2] = ofz;
- Offset[3] = ofaz;
- }
-
- DestroyDynamicObject(WeaponCrates[crate][CrateObject]);
- WeaponCrates[crate][CrateObject] = CreateDynamicObject(2912, 0.0, 0.0, 0.0, rx, ry, Offset[3]);
- AttachDynamicObjectToVehicle(WeaponCrates[crate][CrateObject], vehicleid, Offset[0], Offset[1], Offset[2], rx, ry, Offset[3]);
-
- cmd_me(playerid, "puts the crate into the vehicle.");
-
- WeaponCrates[crate][CrateAttachedTo] = -1;
- WeaponCrates[crate][CrateVehicle] = vehicleid;
-
- SendClientMessage(playerid, COLOR_YELLOW, "You loaded the crate into your vehicle.");
- SendClientMessage(playerid, COLOR_YELLOW, "Take it to a discrete location to unload the packages.");
-
- DeletePVar(playerid, "EditingCrateID"); DeletePVar(playerid, "EditingCrateVehicleID");
- DeletePVar(playerid, "EditingCrateToVehicle");
- }
- }
- else if (PlayerData[playerid][pAdjustPackage] != -1)
- {
- if (response == EDIT_RESPONSE_FINAL || response == EDIT_RESPONSE_CANCEL)
- {
- new id = PlayerData[playerid][pAdjustPackage], house_id = IsPlayerInProperty(playerid);
-
- if (response == EDIT_RESPONSE_FINAL)
- {
- new query[200];
-
- HousePackages[house_id][id][packagePos][0] = x;
- HousePackages[house_id][id][packagePos][1] = y;
- HousePackages[house_id][id][packagePos][2] = z;
- HousePackages[house_id][id][packagePos][3] = rx;
- HousePackages[house_id][id][packagePos][4] = ry;
- HousePackages[house_id][id][packagePos][5] = rz;
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE house_packages SET posX = %.3f, posY = %.3f, posZ = %.3f, rotX = %.3f, rotY = %.3f, rotZ = %.3f WHERE housesqlid = %d AND id = %d", x, y, z, rx, ry, rz, PropertyData[house_id][propertyid], id);
- mysql_tquery(m_Handle, query);
- }
- DestroyDynamicObject(HousePackages[house_id][id][packageObject]);
- HousePackages[house_id][id][packageObject] = CreateDynamicObject(GetPackageModel(HousePackages[house_id][id][packageType]), HousePackages[house_id][id][packagePos][0], HousePackages[house_id][id][packagePos][1], HousePackages[house_id][id][packagePos][2],
- HousePackages[house_id][id][packagePos][3], HousePackages[house_id][id][packagePos][4], HousePackages[house_id][id][packagePos][5], PropertyData[house_id][propertyInteriorWorld], PropertyData[house_id][propertyInteriorID]);
-
- PlayerData[playerid][pAdjustPackage] = -1;
- }
- }
- return true;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- printf("[CONNECTION] %s (DBID: %d) disconnected.", ReturnName(playerid, 1), PlayerData[playerid][pSQLID]);
-
- new string[128];
-
- if(PlayerTutorialStep[playerid] != 0)
- KillTimer(PlayerTutorialTimer[playerid]);
- if(pLoggedIn[playerid])
- {
- switch(reason)
- {
- case 0:
- {
- format(string, sizeof(string), "** %s (Connection lost)", ReturnName(playerid, 1));
-
- SaveSQLInt(PlayerData[playerid][pSQLID], "players", "Crashed", 1);
- PlayerData[playerid][pCrashed] = 1;
-
- if(PlayerData[playerid][pLAWduty] || PlayerData[playerid][pSWATduty])
- {
- new
- thr[128];
-
- PlayerData[playerid][pSkin] = GetPlayerSkin(playerid);
-
- mysql_format(m_Handle, thr, sizeof(thr), "UPDATE players SET Crashed = 1, pCrashTime = %i, pCopDuty = %i, pSWATDuty = %i WHERE id = %i",
- gettime(), PlayerData[playerid][pLAWduty], PlayerData[playerid][pSWATduty], PlayerData[playerid][pSQLID]);
-
- mysql_tquery(m_Handle, thr);
- }
- }
-
- case 1: format(string, sizeof(string), "** %s (Quit)", ReturnName(playerid, 1));
- case 2: format(string, sizeof(string), "** %s (Kicked)", ReturnName(playerid, 1));
- }
-
- SendNearbyMessage(playerid, 20.0, COLOR_WHITE, string);
-
- if(reason == 1)
- {
- LogPlayerAction(playerid, "Disconnected by Quitting");
- }
-
- if(gOpeningCrate[playerid] != -1)
- {
- KillTimer(gOpeningCrateTimer[playerid]);
-
- WeaponCrates[ gOpeningCrate[playerid] ][CrateBeingOpened] = 0;
- for(new i; i < 3; i++) gOpeningCratePos[playerid][i] = 0.0;
-
- gOpeningCrate[playerid] = -1;
- }
-
- if(PlayerData[playerid][pInsidePNS])
- {
- new PNSvehicleid = GetPVarInt(playerid, "InsidePNSVehicle");
- new ppns = PlayerData[playerid][pInsidePNS];
-
- SetVehiclePos(PNSvehicleid, PNSData[ppns][pnsEntrance][0], PNSData[ppns][pnsEntrance][1], PNSData[ppns][pnsEntrance][2]);
- PNSData[ppns][pnsOccupied] = false;
- }
-
- if(gShowingTextDrawInfo[playerid])
- KillTimer(gShowingTextDrawTimer[playerid]);
-
- foreach(new i : Player)
- {
- if(PlayerData[i][pSpectator] == playerid)
- {
- format(string, sizeof(string), "SERVER: The player you were spectating (%s) disconnected from the server.", ReturnName(playerid, 1));
- SendClientMessage(i, COLOR_YELLOW, string);
-
- TogglePlayerSpectating(playerid, false);
- ShowSpectatorTextdraw(playerid, true);
- }
-
- if(VehicleOfferBy[i] == playerid)
- {
- Message(i, COLOR_ACTION, "SERVER: The player (%s) who offered to sell you a vehicle disconnected.", ReturnName(playerid));
-
- VehicleOfferBy[i] = INVALID_PLAYER_ID;
- VehiclePrice[i] = 0;
- VehicleDBIDOffered[i] = 0;
- }
-
- if(VehicleOfferedTo[i] == playerid)
- {
- Message(i, COLOR_ACTION, "SERVER: The player (%s) you offered a vehicle to disconnected.", ReturnName(playerid));
-
- VehicleOfferedTo[i] = INVALID_PLAYER_ID;
- VehiclePrice[i] = 0;
- VehicleDBIDOffered[i] = 0;
- }
- }
-
- if(PlayerRefilling[playerid])
- {
- KillTimer(RefillTimer[playerid]);
- DestroyDynamic3DTextLabel(RefillTextdraw[playerid]);
- }
-
- if(IsValidDynamic3DTextLabel(vehicleTextdraw[playerid]))
- {
- DestroyDynamic3DTextLabel(vehicleTextdraw[playerid]);
- }
-
- if(IsValidDynamic3DTextLabel(BreakInTextDraw[playerid]))
- {
- DestroyDynamic3DTextLabel(BreakInTextDraw[playerid]);
- KillTimer(BreakInTDTimer[playerid]);
- }
-
- if(g_aVehicleSpawned[playerid] != 0)
- {
- if(IsValidVehicle(g_aVehicleSpawned[playerid]) && !IsValidPlayerCar(g_aVehicleSpawned[playerid]) && !IsValidFactionCar(g_aVehicleSpawned[playerid])){
- DestroyVehicle(g_aVehicleSpawned[playerid]);
- }
- }
-
- if(PlayerData[playerid][pBrutallyWounded]){
- GetPlayerPos(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]);
- }
-
- for(new i = 0; i < MAX_PLAYER_ATTACHED_OBJECTS; i++){
- if(IsPlayerAttachedObjectSlotUsed(playerid, i)){
- RemovePlayerAttachedObject(playerid, i);
- }
- }
-
- if(PlayerData[playerid][pLAWduty] || PlayerData[playerid][pSWATduty] && reason != 0)
- SetPlayerArmour(playerid, 0.0);
-
- if(InTaxiRide[playerid])
- {
- foreach(new i : Player) if(PlayerData[i][pSQLID] == TaxiDriver[playerid])
- {
- SendClientMessage(i, COLOR_YELLOW, "-> A person in your taxi disconnected. You were compensated regardless.");
- }
-
- EndTaxiFair(playerid);
- }
-
- if(PlayerData[playerid][pICJailed])
- {
- DestroyDynamic3DTextLabel(PlayerData[playerid][pICJail3D]);
- TotalJailees--;
- }
-
- foreach (new i : Player)
- {
- if(CanPMAdmin[i][playerid] == 1)
- {
- CanPMAdmin[i][playerid] = 0;
- }
-
- if(WatchingDamages[i][playerid] == 1)
- {
- WatchingDamages[i][playerid] = 0;
- Message(playerid, COLOR_ADM, "Player %s(%i) whos damages you were watching disconnected.", ReturnName(playerid), playerid);
- }
- }
-
- if(PlayerData[playerid][pLegShot])
- KillTimer(LegShotTimer[playerid]);
-
- if(StartedTruckerMission[playerid])
- {
- EndTruckerMission(playerid);
- }
-
- KillTimer(DisplayTimer[playerid]);
-
- KillTimer(graffitiTimer[playerid]);
- KillTimer(graffitiTimerEx[playerid]);
-
- KillTimer(MechanicCallTimer[playerid]);
- KillTimer(TaxiCallTimer[playerid]);
-
- KillTimer(TruckerJobExitTimer[playerid]);
- KillTimer(TrailerTimer[playerid]);
- KillTimer(TruckerJobDeliverTimer[playerid]);
- KillTimer(TruckerJobTimer[playerid]);
-
- KillTimer(PlayerData[playerid][pUnscrambleTimer]);
- KillTimer(GraffitiExitTimer[playerid]);
-
- if(PlayerData[playerid][pUnscrambling])
- {
- KillTimer(PlayerData[playerid][pUnscrambleTimer]);
- }
-
- if(OrderedWeapon[playerid] || WeaponOrderPrompt[playerid] > 0)
- KillTimer(WeaponOrderTimer[playerid]);
-
- if(PlayerPlacingWeapon[playerid])
- {
- PlayerPlacingWeapon[playerid] = 0; PlayerPlacingWeaponID[playerid] = 0;
- PlayerPlacingWeaponAmmo[playerid] = 0;
-
- SlotBeingUsed[ PlayerPlacingInVehicle[playerid] ][ PlayerPlacingWeaponSlot[playerid] ] = 0;
- PlayerPlacingWeaponSlot[playerid] = 0; PlayerPlacingInVehicle[playerid] = 0;
-
- DestroyDynamicObject(CarData[ PlayerPlacingInVehicle[playerid] ][carWeaponObject][ PlayerPlacingWeaponSlot[playerid] ]);
- }
-
- phone_OnPlayerDisconnect(playerid);
- new playerTime = NetStats_GetConnectedTime(playerid);
- new secondsConnection = ((playerTime % (1000*60*60)) % (1000*60)) / 1000;
-
- format(PlayerData[playerid][pLastConnect], 60, "%s", ReturnDate());
- PlayerData[playerid][pLastConnectTime] = secondsConnection;
-
- SavePlayer(playerid);
- DefaultPlayerValues(playerid);
- }
-
- return true;
- }
- public OnPlayerText(playerid, text[])
- {
- new string[128];
-
- PlayerData[playerid][pLastChat] = gettime();
-
- format(string, sizeof(string), "Said: %s", text);
- LogPlayerChat(playerid, string);
-
- if(!pLoggedIn[playerid])
- {
- SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You need to login first to type.");
- return 0;
- }
-
- if(GetPlayerTeam(playerid) != STATE_ALIVE)
- {
- SendClientMessage(playerid, COLOR_ADM, "You can't type when you're dead.");
- return 0;
- }
-
- if(PlayerData[playerid][pSpectator] != -1 || PlayerData[playerid][pSpecVehicle] != -1)
- {
- SendClientMessage(playerid, COLOR_ADM, "-> You can't type during spectator mode.");
- return 0;
- }
-
- if(PlayerData[playerid][pPhoneline] != INVALID_PLAYER_ID && !PlayerData[playerid][pCalling])
- {
- if(PlayerData[playerid][pPhoneline] == 911)
- {
- if(strlen(text) > 90)
- {
- format(string, sizeof(string), "%s says (phone): %.90s", ReturnName(playerid, 0), text);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
-
- format(string, sizeof(string), "%s says (phone): %s", ReturnName(playerid, 0), text[90]);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
- else
- {
- format(string, sizeof(string), "%s says (phone): %s", ReturnName(playerid, 0), text);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
-
- switch(PlayerData[playerid][p911Steps])
- {
- case 0:
- {
- if(strfind(text, "Police", true) != -1 || strfind(text, "Cops", true) != -1 || strfind(text, "Law enforcement", true) != -1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Dispatch says: You're being transferred to the police department. Please state your emergency.");
- PlayerData[playerid][p911Steps] = 1;
- }
- else if(strfind(text, "Medics", true) != -1 || strfind(text, "Paramedics", true) != -1 || strfind(text, "Ambulance", true) != -1 || strfind(text, "Fire", true) != -1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Dispatch says: You're being transferred over to medical units now. What's the emergency?");
- PlayerData[playerid][p911Steps] = 2;
- }
- else SendClientMessage(playerid, COLOR_YELLOW, "Dispatch says: Sorry, I didn't hear that. Please repeat what service you require.");
- }
- case 1: // Police forward;
- {
- if(strlen(text) < 1)
- return SendClientMessage(playerid, COLOR_ADM, "-> You need actual text to continue.");
-
- format(PlayerData[playerid][p911Text], 128, "%s", text);
- PlayerData[playerid][p911Steps] = 5;
-
- SendClientMessage(playerid, COLOR_YELLOW, "Dispatch says: Can you tell me your location?");
- }
- case 2: // Medic forward;
- {
- if(strlen(text) < 1)
- return SendClientMessage(playerid, COLOR_ADM, "-> You need actual text to continue.");
-
- format(PlayerData[playerid][p911Text], 128, "%s", text);
- PlayerData[playerid][p911Steps] = 10;
-
- SendClientMessage(playerid, COLOR_YELLOW, "Dispatch says: Can you tell me your location?");
- }
- case 5: // Police;
- {
- if(strlen(text) < 1)
- return SendClientMessage(playerid, COLOR_ADM, "-> You need actual text to continue.");
-
- format(PlayerData[playerid][p911Location], 128, "%s", text);
- SendClientMessage(playerid, COLOR_YELLOW, "Dispatch says: Police units have been notified.");
- Send911Message(playerid, 1);
- }
- case 10: // Medics;
- {
- if(strlen(text) < 1)
- return SendClientMessage(playerid, COLOR_ADM, "-> You need actual text to continue.");
-
- format(PlayerData[playerid][p911Location], 128, "%s", text);
- SendClientMessage(playerid, COLOR_YELLOW, "Dispatch says: Medical units have been notified.");
- Send911Message(playerid, 2);
- }
- }
- }
- else if(PlayerData[playerid][pPhoneline] == 788 && PlayerStolenCarPrompt[playerid] != 0)
- {
- if(strlen(text) > 90)
- {
- format(string, sizeof(string), "%s says (phone): %.90s", ReturnName(playerid, 0), text);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
-
- format(string, sizeof(string), "%s says (phone): %s", ReturnName(playerid, 0), text[90]);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
- else
- {
- format(string, sizeof(string), "%s says (phone): %s", ReturnName(playerid, 0), text);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
-
- switch(PlayerStolenCarPrompt[playerid])
- {
- case 1:
- {
- if(strfind(text, "Yes", true) != -1 || strfind(text, "Affirmative", true) != -1 || strfind(text, "Mhm", true) != -1 || strfind(text, "Yeah", true) != -1)
- {
- PlayerStolenCarPrompt[playerid] = 2;
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): Okay! Can you provide us with your vehicles license plate?");
- }
- else if(strfind(text, "No", true) != -1 || strfind(text, "Nope", true) != -1 || strfind(text, "Negative", true) != -1)
- {
- PlayerStolenCarPrompt[playerid] = 10;
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): Alright then! Would you like to be transferred to law enforcement or end the call?");
- }
- else SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): I didn't understand that. Could you repeat it?");
- }
- case 2: //"Yes" answer to prompt 1;
- {
- if(strlen(text) > 7)
- return SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): For now, please only provide your vehicles license plate.");
-
- else if(strlen(text) < 7)
- return SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): Sorry, we need the entire plate for this to work.");
-
- format(PlayerStolenCarPlate[playerid], 32, "%s", text);
- PlayerStolenCarPrompt[playerid] = 99;
-
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): Please standby while we confirm the vehicles plates.");
-
- mysql_format(m_Handle, string, sizeof(string), "SELECT Plate, ModelID FROM ownedcars WHERE Plate = '%e'", text);
- mysql_tquery(m_Handle, string, "OnStolenCarPrompt", "i", playerid);
- }
- case 3: //Bad plate, end or try again:
- {
- if(strfind(text, "try", true) != -1 || strfind(text, "again", true) != -1 || strfind(text, "yes", true) != -1)
- {
- PlayerStolenCarPrompt[playerid] = 2;
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): Okay! Can you provide us with your vehicles license plate again?");
- }
- else if(strfind(text, "end", true) != -1 || strfind(text, "no", true) != -1 || strfind(text, "stop", true) != -1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): Okay!");
-
- PlayerStolenCarPrompt[playerid] = 0;
- cmd_hangup(playerid, "");
- }
- else SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): Could you repeat that? I didn't catch that.");
- }
- case 4:
- {
- if(strfind(text, "confirm", true) != -1 || strfind(text, "confirmed", true) != -1 || strfind(text, "yes", true) != -1 || strfind(text, "correct", true) != -1)
- {
- PlayerStolenCarPrompt[playerid] = 99;
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): Thank you for confirming! Please standby.");
-
- mysql_format(m_Handle, string, sizeof(string), "SELECT OwnerID FROM ownedcars WHERE Plate = '%e'", PlayerStolenCarPlate[playerid]);
- mysql_tquery(m_Handle, string, "OnStolenCarOwnedCheck", "i", playerid);
- }
- else if(strfind(text, "no", true) != -1 || strfind(text, "incorrect", true) != -1 || strfind(text, "unconfirm", true) != -1 || strfind(text, "wrong", true) != -1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): Okay! Please don't call back until your information is persist.");
-
- PlayerStolenCarPrompt[playerid] = 0;
- cmd_hangup(playerid, "");
- }
- else SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): Sorry, I didn't get that. Can you confirm these details are correct?");
- }
- case 10: //"No" answer to prompt 1;
- {
- if(strfind(text, "Transfer", true) != -1 || strfind(text, "Transferred", true) != -1 || strfind(text, "law enforcement", true) != -1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): Please standby while we transfer you to a 911 operator.");
-
- PlayerStolenCarPrompt[playerid] = 0;
-
- PlayerData[playerid][pPhoneline] = 999;
- PlayerData[playerid][pCalling] = 2;
-
- PlayerPlaySound(playerid, 3600, 0.0, 0.0, 0.0);
- PlayerData[playerid][p911CallTimer][0] = SetTimerEx("CallingEmergencyServices", 2000, false, "i", playerid);
- }
- else if(strfind(text, "End the call", true) != -1 || strfind(text, "end", true) != -1 || strfind(text, "hangup", true) != -1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): Okay! Please don't call unless you would like to report a stolen vehicle.");
-
- PlayerStolenCarPrompt[playerid] = 0;
- cmd_hangup(playerid, "");
- }
- else SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): Would you like to hangup or be transferred? I didn't understand that.");
- }
- case 99: //Avoid spam for prompt 2;
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): Please standby!");
- }
- }
- }
- else if(PlayerData[playerid][pPhoneline] == WEAPON_ORDER_NUMBER && !PlayerData[playerid][pCalling] && WeaponOrderPrompt[playerid] != 999)
- {
- if(strlen(text) > 90)
- {
- format(string, sizeof(string), "%s says (phone): %.90s", ReturnName(playerid, 0), text);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
-
- format(string, sizeof(string), "%s says (phone): %s", ReturnName(playerid, 0), text[90]);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
- else
- {
- format(string, sizeof(string), "%s says (phone): %s", ReturnName(playerid, 0), text);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
-
- switch(WeaponOrderPrompt[playerid])
- {
- case 1:
- {
- if(strfind(text, "Calling for weapons", true) != -1 || strfind(text, "Calling about weapons", true) != -1 || strfind(text, "weapons", true) != -1 || strfind(text, "weapon", true) != -1 || strfind(text, "firearms", true) != -1 || strfind(text, "gun", true) != -1 || strfind(text, "guns", true) != -1)
- {
- WeaponOrderPrompt[playerid] = 66;
- WeaponOrderTimer[playerid] = SetTimerEx("WeaponOrderPrompts", 2000, false, "ii", playerid, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): You got the wrong number pal.");
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] They hung up.");
-
- cmd_hangup(playerid, "");
- WeaponOrderPrompt[playerid] = 0;
- }
- }
- case 2: //Choosing first weapon:
- {
- new
- bool:confirm = true;
-
- for(new i = 0; i < sizeof PossibleWeapons; i++)
- {
- if(strfind(text, PossibleWeapons[i][WeaponName], true) != -1)
- {
- WeaponOrdered[0][playerid] = PossibleWeapons[i][WeaponID];
- format(WeaponOrderedName[0][playerid], 32, "%s", PossibleWeapons[i][WeaponName]);
-
- confirm = true;
- break;
- }
- else
- {
- confirm = false;
- }
- }
-
- if(!confirm)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): Talk to me when you're ready kid. We don't got that.");
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] They hung up.");
-
- cmd_hangup(playerid, "");
- WeaponOrderPrompt[playerid] = 0;
- }
-
- if(WeaponOrderPrompt[playerid] != 0)
- {
- WeaponOrderPrompt[playerid] = 66;
- WeaponOrderTimer[playerid] = SetTimerEx("WeaponOrderPrompts", 3000, false, "ii", playerid, 3);
- }
- }
- case 3: //Confirming first weapon:
- {
- if(strfind(text, "yes", true) != -1 || strfind(text, "yeah", true) != -1 || strfind(text, "correct", true) != -1 || strfind(text, "affirm", true) != -1 || strfind(text, "yah", true) != -1)
- {
- WeaponOrderPrompt[playerid] = 4;
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): That it or another one?");
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): Talk to me when you know what you want.");
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] They hung up.");
-
- cmd_hangup(playerid, "");
- WeaponOrderPrompt[playerid] = 0;
- }
- }
- case 4: //Finishing with first order or picking another one.
- {
- if(strfind(text, "another", true) != -1 || strfind(text, "one", true) != -1 || strfind(text, "another one", true) != -1 || strfind(text, "one more", true) != -1)
- {
- WeaponOrderPrompt[playerid] = 5;
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): Name it.");
- }
- else if(strfind(text, "thats it", true) != -1 || strfind(text, "that's it", true) != -1 || strfind(text, "that's all", true) != -1 || strfind(text, "thats all", true) != -1 || strfind(text, "that it", true) != -1 || strfind(text, "done", true) != -1)
- {
- WeaponOrderPrompt[playerid] = 10;
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): Hold on.");
-
- WeaponOrderTimer[playerid] = SetTimerEx("WeaponOrderPrompts", 6000, false, "ii", playerid, 6);
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): Don't waste my time if you can't answer straight.");
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] They hung up.");
-
- cmd_hangup(playerid, "");
- WeaponOrderPrompt[playerid] = 0;
- }
- }
- case 5: //Second weapon:
- {
- new
- bool:confirm = false;
-
- for(new i = 0; i < sizeof PossibleWeapons; i++)
- {
- if(strfind(text, PossibleWeapons[i][WeaponName], true) != -1)
- {
- WeaponOrdered[1][playerid] = PossibleWeapons[i][WeaponID];
- format(WeaponOrderedName[1][playerid], 32, "%s", PossibleWeapons[i][WeaponName]);
-
- confirm = true;
- break;
- }
- }
-
- if(!confirm)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): Talk to me when you're ready kid. We don't got that.");
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] They hung up.");
-
- cmd_hangup(playerid, "");
- WeaponOrderPrompt[playerid] = 0;
- }
-
- if(WeaponOrderPrompt[playerid] != 0)
- {
- WeaponOrderPrompt[playerid] = 66;
- WeaponOrderTimer[playerid] = SetTimerEx("WeaponOrderPrompts", 3000, false, "ii", playerid, 5);
- }
- }
- case 6: //Answering to second weapon:
- {
- if(strfind(text, "yes", true) != -1 || strfind(text, "yeah", true) != -1 || strfind(text, "correct", true) != -1 || strfind(text, "affirm", true) != -1 || strfind(text, "yah", true) != -1)
- {
- WeaponOrderPrompt[playerid] = 10;
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): OK. Hold on.");
-
- WeaponOrderTimer[playerid] = SetTimerEx("WeaponOrderPrompts", 6000, false, "ii", playerid, 7);
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): Talk to me when you know what you want.");
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] They hung up.");
-
- cmd_hangup(playerid, "");
- WeaponOrderPrompt[playerid] = 0;
- }
- }
- case 10:
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): I said hold on.");
- WeaponOrderStop[playerid]++;
-
- if(WeaponOrderStop[playerid] > 2)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): Fuck you too.");
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] They hung up.");
-
- cmd_hangup(playerid, "");
- WeaponOrderPrompt[playerid] = 0;
- }
- }
- case 11: //Confirmation;
- {
- if(strfind(text, "confirm", true) != -1 || strfind(text, "confirmed", true) != -1 || strfind(text, "correct", true) != -1 || strfind(text, "yes", true) != -1 || strfind(text, "yeah", true) != -1)
- {
- WeaponOrderPrompt[playerid] = 66;
- WeaponOrderTimer[playerid] = SetTimerEx("WeaponOrderPrompts", 5000, false, "ii", playerid, 10);
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): Don't waste my time.");
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] They hung up.");
-
- cmd_hangup(playerid, "");
- WeaponOrderPrompt[playerid] = 0;
- }
- }
- case 66:
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): *Static*");
- }
- }
- }
- else if(PlayerData[playerid][pPhoneline] == TAXI_NUMBER && !PlayerData[playerid][pCalling] && TaxiStage[playerid] > 0)
- {
- if(strlen(text) > 90)
- {
- format(string, sizeof(string), "%s says (phone): %.90s", ReturnName(playerid, 0), text);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
-
- format(string, sizeof(string), "%s says (phone): %s", ReturnName(playerid, 0), text[90]);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
- else
- {
- format(string, sizeof(string), "%s says (phone): %s", ReturnName(playerid, 0), text);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
-
- switch(TaxiStage[playerid])
- {
- case 1:
- {
- if(strlen(text) < 1)
- return SendClientMessage(playerid, COLOR_ADM, "Enter some text first.");
-
- format(TaxiText[playerid][0], 128, "%s", text);
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): Okay! Where are you right now?");
-
- TaxiStage[playerid] = 2;
- }
- case 2:
- {
- if(strlen(text) < 1)
- return SendClientMessage(playerid, COLOR_ADM, "Enter some text first.");
-
- format(TaxiText[playerid][1], 128, "%s", text);
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): Our taxi drivers have been notified. A taxi will be with you shortly.");
-
- foreach(new i : Player)
- {
- if(StartedTaxiJob[i])
- {
- SendClientMessage(i, COLOR_YELLOW, "|_______________TAXI CALL_______________|");
- Message(i, COLOR_YELLOW, "Caller:%s, Phone:%d", ReturnName(playerid, 0), ReturnPhoneNumber(playerid));
- Message(i, COLOR_YELLOW, "Destination: %s", TaxiText[playerid][0]);
- Message(i, COLOR_YELLOW, "Location: %s", TaxiText[playerid][1]);
- }
- }
-
- cmd_hangup(playerid, "");
-
- TaxiStage[playerid] = 0;
- for(new i = 0; i < 2; i++) format(TaxiText[playerid][i], 128, "");
- }
- }
- }
- else if(PlayerData[playerid][pPhoneline] == MECHANIC_NUMBER && !PlayerData[playerid][pCalling])
- {
- if(strlen(text) > 90)
- {
- format(string, sizeof(string), "%s says (phone): %.90s", ReturnName(playerid, 0), text);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
-
- format(string, sizeof(string), "%s says (phone): %s", ReturnName(playerid, 0), text[90]);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
- else
- {
- format(string, sizeof(string), "%s says (phone): %s", ReturnName(playerid, 0), text);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
-
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): Alright! We notified our best mechanic!");
-
- foreach(new i : Player)
- {
- if(PlayerData[i][pJob] == MECHANIC_JOB || PlayerData[i][pSidejob] == MECHANIC_JOB)
- {
- Message(i, COLOR_ADM, "Mechanic Call from %s, Phone:%i", ReturnName(playerid, 0), ReturnPhoneNumber(playerid));
- if(strlen(text) > 90)
- {
- Message(i, COLOR_ADM, "They said: {FFFFFF}%.90s...", text);
- Message(i, COLOR_ADM, "...%s", text[90]);
- }
- else Message(i, COLOR_ADM, "They said: {FFFFFF}%s", text);
- }
- }
-
- cmd_hangup(playerid, "");
- }
- else if(PlayerData[playerid][pPhoneline] == 991 && !PlayerData[playerid][pCalling] && GetPVarInt(playerid, "NonEmergencyCall") > 0)
- {
- if(strlen(text) > 90)
- {
- format(string, sizeof(string), "%s says (phone): %.90s", ReturnName(playerid, 0), text);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
-
- format(string, sizeof(string), "%s says (phone): %s", ReturnName(playerid, 0), text[90]);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
- else
- {
- format(string, sizeof(string), "%s says (phone): %s", ReturnName(playerid, 0), text);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
-
- SendClientMessage(playerid, COLOR_YELLOW, "991 Operator says (phone): Alright! We notified local law enforcement.");
- cmd_hangup(playerid, "");
-
- SendLawMessage(COLOR_NINER, "|____________Non-Emergency Call____________|");
-
- new
- emertext[128];
-
- format(emertext, sizeof(string), "Caller: %s, Phone: %d", ReturnName(playerid, 0), ReturnPhoneNumber(playerid));
- SendLawMessage(COLOR_NINER, emertext);
-
- if(strlen(text) > 90)
- {
- format(emertext, 128, "Situation: %.90s", text);
- SendLawMessage(COLOR_NINER, emertext);
-
- format(emertext, 128, "Situation: ...%s", text);
- SendLawMessage(COLOR_NINER, emertext);
- }
- else
- {
- format(emertext, 128, "Situation: %s", text);
- SendLawMessage(COLOR_NINER, emertext);
- }
- }
- else if(PlayerData[playerid][pPhoneline] == GUN_SHOP_NUMBER && !PlayerData[playerid][pCalling] && WarehouseCallStep[playerid] > 1)
- {
- if(strlen(text) > 90)
- {
- format(string, sizeof(string), "%s says (phone): %.90s", ReturnName(playerid, 0), text);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
-
- format(string, sizeof(string), "%s says (phone): %s", ReturnName(playerid, 0), text[90]);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
- else
- {
- format(string, sizeof(string), "%s says (phone): %s", ReturnName(playerid, 0), text);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
-
- switch(WarehouseCallStep[playerid])
- {
- case 2:
- {
- if(strfind(text, "blackmarket", true) != -1 || strfind(text, "black market", true) != -1)
- {
- SetPVarInt(playerid, "DestinationSelected", BLACK_MARKET_SELECTED);
- SendClientMessage(playerid, COLOR_YELLOW, "A person says (phone): Understood.");
-
- WarehouseCallStep[playerid] = 1;
- WarehouseCallTimer[playerid] = SetTimerEx("CallingWarehouse_3", 2000, false, "i", playerid);
- }
- else if(strfind(text, "warehouse", true) != -1)
- {
- SetPVarInt(playerid, "DestinationSelected", WAREHOUSE_SELECTED);
- SendClientMessage(playerid, COLOR_YELLOW, "A person says (phone): Understood.");
-
- WarehouseCallStep[playerid] = 1;
- WarehouseCallTimer[playerid] = SetTimerEx("CallingWarehouse_3", 2000, false, "i", playerid);
- }
- else SendClientMessage(playerid, COLOR_YELLOW, "A person says (phone): Please repeat that.");
- }
- case 3:
- {
- if(strfind(text, "standard", true) != -1)
- {
- SetPVarInt(playerid, "WarehouseDeliveryType", 1);
- SendClientMessage(playerid, COLOR_YELLOW, "A person says (phone): Understood. Please wait a couple seconds while we process your order.");
-
- WarehouseCallStep[playerid] = 1;
- WarehouseCallTimer[playerid] = SetTimerEx("CallingWarehouse_4", 15000, false, "i", playerid);
- }
- else if(strfind(text, "deluxe", true) != -1)
- {
- SetPVarInt(playerid, "WarehouseDeliveryType", 2);
- SendClientMessage(playerid, COLOR_YELLOW, "A person says (phone): Understood. Please wait a couple seconds while we process your order.");
- SendClientMessage(playerid, COLOR_YELLOW, "A person says (phone): For choosing our deluxe delivery, you'll be charged extra upon delivery.");
-
- WarehouseCallStep[playerid] = 1;
- WarehouseCallTimer[playerid] = SetTimerEx("CallingWarehouse_4", 15000, false, "i", playerid);
- }
- else SendClientMessage(playerid, COLOR_YELLOW, "A person says (phone): Please repeat that.");
- }
- }
- }
- else
- {
- new
- playerb = PlayerData[playerid][pPhoneline];
-
- if(strlen(text) > 99)
- {
- format (string, sizeof(string), "%s says (phone): %.99s...", ReturnName(playerid, 0), text);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
-
- if(!PlayerData[ playerb ][pLoudspeaker])
- SendClientMessage(playerb, COLOR_YELLOW, string);
-
- else LocalChat(playerb, 6.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
-
- format (string, sizeof(string), "%s says (phone): ... %s", ReturnName(playerid, 0), text[99]);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
-
- if(!PlayerData[ playerb ][pLoudspeaker])
- SendClientMessage(playerb, COLOR_YELLOW, string);
-
- else LocalChat(playerb, 6.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
- else
- {
- format (string, sizeof(string), "%s says (phone): %s", ReturnName(playerid, 0), text);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
-
- if(!PlayerData[ playerb ][pLoudspeaker])
- SendClientMessage(playerb, COLOR_YELLOW, string);
-
- else LocalChat(playerb, 6.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
- }
- }
- else
- {
- if(PlayerData[playerid][pAutoLow])
- {
- if(strlen(text) > 99)
- {
- format(string, sizeof(string), "%s says [low]: %.99s...", ReturnName(playerid, 0), text);
- LocalChat(playerid, 6.0, string, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5, COLOR_FADE5);
-
- format(string, sizeof(string), "%s says [low]: ... %s", ReturnName(playerid, 0), text[99]);
- LocalChat(playerid, 6.0, string, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5, COLOR_FADE5);
- }
- else
- {
- format(string, sizeof(string), "%s says [low]: %s", ReturnName(playerid, 0), text);
- LocalChat(playerid, 8.0, string, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5, COLOR_FADE5);
- }
- }
- else
- {
- if(strlen(text) > 99)
- {
- format (string, sizeof(string), "%s says: %.99s...", ReturnName(playerid, 0), text);
- LocalChat(playerid, 25.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
-
- format (string, sizeof(string), "%s says: ... %s", ReturnName(playerid, 0), text[99]);
- LocalChat(playerid, 25.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
- else
- {
- format (string, sizeof(string), "%s says: %s", ReturnName(playerid, 0), text);
- LocalChat(playerid, 25.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
- }
- ReturnChatAnimation(playerid, text);
- }
- return 0;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- printf("[WARNING] %s was spawned in after OnPlayerDeath was called.", ReturnName(playerid, 1));
- SetPlayerHealth(playerid, PlayerData[playerid][pMaxHealth]);
-
- new
- str[128];
-
- if(killerid != INVALID_PLAYER_ID)
- {
- format(str, sizeof(str), "[DEATH] %s died. (%s from %s)", ReturnName(playerid, 1), ReturnWeaponName(reason), ReturnName(killerid, 1));
- SendAdminMessage(COLOR_ADM, str);
- }
- else
- {
- format(str, sizeof(str), "[DEATH] %s died.", ReturnName(playerid));
- SendAdminMessage(COLOR_ADM, str);
- }
-
- PlayerData[playerid][pLegShot] = false;
- return true;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- new Float:vehiclesHealth;
- GetVehicleHealth(vehicleid, vehiclesHealth);
-
- new
- string[128];
-
- printf("[DEBUG] %s was destroyed by %s. Health before destroy: %.0f", ReturnVehicleName(vehicleid), ReturnName(killerid, 1), vehiclesHealth);
-
- if(DoesVehicleHaveCrate(vehicleid))
- {
- ClearActiveCrate(vehicleid);
- }
-
- foreach(new i : Player)
- {
- if(StartedTruckerMission[i])
- {
- if(TruckerMissionVehicle[i] == vehicleid)
- {
- SendClientMessage(i, COLOR_ADM, "Your trucker mission vehicle has been destroyed.");
-
- if(IsTruckerVehicle(vehicleid))
- {
- SetVehicleToRespawn(vehicleid);
-
- TruckerVehicleRentedBy[vehicleid] = 0;
- CarEngine[vehicleid] = false;
- ToggleVehicleEngine(vehicleid, false);
-
- if(TruckerJobEarnings[i] != 0)
- {
- format(string, sizeof(string), "You received half of your $%s earnings for the damages. ($%s)", MoneyFormat(TruckerJobEarnings[i]), MoneyFormat(TruckerJobEarnings[i] / 2));
- SendClientMessage(i, COLOR_ADM, string);
-
- GiveMoney(i, TruckerJobEarnings[i] / 2);
- }
- else SendClientMessage(i, COLOR_ADM, "You didn't have any earnings.");
- }
- else
- {
- if(TruckerJobEarnings[i] != 0)
- {
- format(string, sizeof(string), "You received your earning of $%s.", MoneyFormat(TruckerJobEarnings[i]));
- SendClientMessage(i, COLOR_ADM, string);
- }
- else SendClientMessage(i, COLOR_ADM, "You didn't have any earnings.");
- }
- EndTruckerMission(i);
- }
- }
-
- if(RefillVehicle[i] == vehicleid)
- {
- EndPlayerRefill(i, 1);
- }
- }
- if( IsValidPlayerCar(vehicleid) ) {
- CarData[vehicleid][carEngine]-= 20.20;
- CarData[vehicleid][carBattery]-= 10.00;
-
- CarData[vehicleid][carTimeDestroyed]++;
-
- CarData[vehicleid][carLastHealth] = 1000;
- SaveCar(vehicleid);
-
- foreach(new f : Player) if(PlayerBreakInVehicle[f] == vehicleid)
- {
- if(IsValidDynamic3DTextLabel(BreakInTextDraw[f]))
- {
- DestroyDynamic3DTextLabel(BreakInTextDraw[f]);
- }
-
- BreakInLevel[f] = 0;
- KillTimer(BreakInTDTimer[f]);
-
- //Clearing variables:
- PlayerBreakInVehicle[f] = INVALID_VEHICLE_ID;
- PlayerBreakingIn[f] = 0;
-
- BreakInError[f] = 0;
- BreakInLevel[f] = 0;
-
- ActiveLockTD[f] = 0;
- }
-
- for(new i = 1; i < 5; i++)
- {
- if(CarData[vehicleid][carWeapons][i])
- {
- if(IsValidDynamicObject(CarData[vehicleid][carWeaponObject][i]))
- DestroyDynamicObject(CarData[vehicleid][carWeaponObject][i]);
- }
- }
-
- format(string, sizeof(string), "%s ( %d ) ownedby %s was destroyed by %s", ReturnVehicleName(vehicleid), vehicleid, ReturnSQLName(CarData[vehicleid][carOwnerID]), ReturnName(killerid, 1));
- adminWarn(1, string);
-
- foreach(new n : Player){
-
- if(strfind(ReturnName(n, 1), ReturnSQLName(CarData[vehicleid][carOwnerID]), true) != -1){
- format(string, sizeof(string), "Your %s has been destroyed.", ReturnVehicleName(vehicleid));
- SendClientMessage(n, COLOR_ADM, string);
- format(string, sizeof(string), "LIFESPAN: Engine Health reduced to {FFFFFF}%.2f. {FF6346}Battery Health reduced to {FFFFFF}%.2f{FF6346}.", CarData[vehicleid][carEngine], CarData[vehicleid][carBattery]);
- SendClientMessage(n, COLOR_ADM, string);
-
- _has_vehicle_spawned[n] = false;
- }
- }
-
- DefaultVehicleValues(vehicleid);
- DestroyVehicle(vehicleid);
- }
- else {
- format(string, sizeof(string), "%s ( %d ) was destroyed by %s", ReturnVehicleName(vehicleid), vehicleid, ReturnName(killerid, 1));
- adminWarn(1, string);
-
- if(IsValidFactionCar(vehicleid))
- {
- if(FactionCar[vehicleid][carSirenOn])
- {
- FactionCar[vehicleid][carSirenOn] = false;
- DestroyDynamicObject(FactionCar[vehicleid][carSirenObject]);
- }
- }
-
- SetVehicleToRespawn(vehicleid);
- }
-
- for(new i = 0; i < sizeof TruckerVehicles; i++)
- {
- if(vehicleid == TruckerVehicles[vehicleid])
- {
- TruckerVehicleRentedBy[vehicleid] = 0;
- }
- }
-
- if(RentalData[vehicleid][rentalcarRented])
- {
- RentalData[vehicleid][rentalcarRented] = false;
- RentalData[vehicleid][rentalcarRentedBy] = 0;
- }
- return true;
- }
- stock PlayerHasWeaponEx(playerid, weapon_id)
- {
- new weaponid, ammo;
-
- for(new i = 0; i < 13; i++)
- {
- GetPlayerWeaponData(playerid, i, weaponid, ammo);
- if(weaponid == weapon_id && ammo > 0) return 1;
- }
- return 0;
- }
- public OnPlayerUpdate(playerid)
- {
- new
- string[128];
-
- if(GetPlayerDrunkLevel(playerid) == 0 && pLoggedIn[playerid] && !PlayerJustDied[playerid] && gettime() - PlayerLoginTick[playerid] >= 10)
- {
- if(!PlayerIsDesynced[playerid])
- PlayerIsDesynced[playerid] = 1;
-
- if(!PlayerDesyncNotify[playerid])
- {
- GameTextForPlayer(playerid, "~w~YOU'RE DESYNCED!~n~ AVOID MOVING AND RELOG!", 9000, 6);
- PlayerDesyncNotify[playerid] = 30;
- }
- }
-
- if(PlayerData[playerid][pAdminDuty])
- SetPlayerHealth(playerid, 255);
-
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !NoEngineCar(GetPlayerVehicleID(playerid)))
- {
- if (PlayerData[playerid][pHUDToggled] == 0) UpdateHUDForPlayer(playerid);
- }
-
- PlayerData[playerid][pPauseCheck] = GetTickCount();
- //if(pLoggedIn[playerid]) PlayerConnectionTick[playerid] = NetStats_GetConnectedTime(playerid);
-
- if(PlayerData[playerid][pBrutallyWounded] == 1)
- {
- format(string, sizeof(string), "(( Has been injured %d times, /damages %d for more information. ))", totalDamages[playerid], playerid);
- SetPlayerChatBubble(playerid, string, COLOR_ADM, 30.0, 2000);
- }
-
- if(PlayerData[playerid][pBrutallyWounded] == 2)
- SetPlayerChatBubble(playerid, "(( THIS PLAYER IS DEAD ))", COLOR_ADM, 30.0, 2000);
-
- if(PlayerData[playerid][pExecuteTime])
- {
- ApplyAnimation(playerid, "WUZI", "CS_Dead_Guy", 4.1, 0, 1, 1, 1, 0, 1);
- }
-
- if(PlayerData[playerid][pSpectator] != -1)
- {
- UpdateSpectatorTextdraw(playerid);
- }
-
- if(PlayerData[playerid][pSpectator] != -1)
- {
- new Keys, ud, lr, update[60];
- GetPlayerKeys(playerid, Keys, ud, lr);
-
- if(lr == KEY_RIGHT && SpectatorWait[playerid] == 0)
- {
- for(new p = PlayerData[playerid][pSpectator] + 1; p < MAX_PLAYERS; p++)
- {
- if(playerid == p)
- continue;
-
- if(IsPlayerConnected(p))
- {
- PlayerData[playerid][pSpectator] = p;
-
- format(update, 60, "%d", PlayerData[playerid][pSpectator]);
- cmd_spectate(playerid, update);
-
- SpectatorWait[playerid] = 2;
- break;
- }
- else continue;
- }
- }
-
- if(lr == KEY_LEFT && SpectatorWait[playerid] == 0)
- {
- for(new p = PlayerData[playerid][pSpectator] - 1; p >= 0; p--)
- {
- if(playerid == p)
- continue;
-
- if(IsPlayerConnected(p))
- {
- PlayerData[playerid][pSpectator] = p;
-
- format(update, 60, "%d", PlayerData[playerid][pSpectator]);
- cmd_spectate(playerid, update);
-
- SpectatorWait[playerid] = 2;
- break;
- }
- else continue;
- }
- }
- }
-
- if(NetStats_GetConnectedTime(playerid) - PlayerConnectionTick[playerid] >= 250)
- {
- new placeSlot, id;
-
- for(new i = 0; i < 4; i++)
- {
- if(Weapon[playerid][i][eWeaponAmmo] > 0)
- {
- id = Weapon[playerid][i][eWeaponID];
- placeSlot = ReturnWeaponsSlot(id);
-
- if(IsWeaponShowable(id) && EditingDisplay[playerid] != id)
- {
- if (GetPlayerWeapon(playerid) != id && !WeaponDisplay[playerid][id][weaponHidden])
- {
- SetPlayerAttachedObject (playerid, placeSlot, ReturnWeaponsModel(id), WeaponDisplay[playerid][id][weaponBone], WeaponDisplay[playerid][id][weaponPos][0], WeaponDisplay[playerid][id][weaponPos][1], WeaponDisplay[playerid][id][weaponPos][2],
- WeaponDisplay[playerid][id][weaponRot][0], WeaponDisplay[playerid][id][weaponRot][1], WeaponDisplay[playerid][id][weaponRot][2]);
- }
- else
- {
- if (IsPlayerAttachedObjectSlotUsed(playerid, placeSlot))
- RemovePlayerAttachedObject(playerid, placeSlot);
- }
- }
- }
- }
- PlayerConnectionTick[playerid] = NetStats_GetConnectedTime(playerid);
- }
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 481, 509, 510: ToggleVehicleEngine(vehicleid, true);
- }
-
- switch(GetVehicleModel(vehicleid))
- {
- case 528, 601, 427: SetVehicleHealth(vehicleid, 10000);
- default: SetVehicleHealth(vehicleid, 1000);
- }
-
- if(IsValidFactionCar(vehicleid))
- {
- LinkVehicleToInterior(vehicleid, FactionCar[vehicleid][carInterior]);
- SetVehicleVirtualWorld(vehicleid, FactionCar[vehicleid][carWorld]);
-
- if(FactionCar[vehicleid][carSirenOn])
- {
- DestroyDynamicObject(FactionCar[vehicleid][carSirenObject]);
- FactionCar[vehicleid][carSirenOn] = false;
- }
- }
-
- if(IsValidPlayerCar(vehicleid))
- {
- LinkVehicleToInterior(vehicleid, CarData[vehicleid][carInterior]);
- SetVehicleVirtualWorld(vehicleid, CarData[vehicleid][carWorld]);
- }
- CarEngine[vehicleid] = false;
- CarLights[vehicleid] = false;
-
- for(new i = 0; i < sizeof TruckerVehicles; i++)
- {
- if(vehicleid == TruckerVehicles[i])
- {
- TruckerVehicleRentedBy[vehicleid] = 0;
- }
- }
-
- SetVehicleParamsEx(vehicleid, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF);
- printf("[DEBUG] Vehicle ID %d ( %s ) was respawned (OnVehicleSpawn)", vehicleid, ReturnVehicleName(vehicleid));
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- if(PlayerData[playerid][pAdmin] < 1)
- {
- switch(GetVehicleModel(vehicleid)) // Check if the vehicle is a non rp vehicle or a vehicle with a gun.
- {
- case 406, 425, 432, 441, 447, 464, 465, 476, 486, 520, 528, 537, 538, 556, 557, 564, 594, 595, 601, 490:
- {
- adminWarn(1, sprintf("%s has just entered a %s.", ReturnName(playerid, 1), ReturnVehicleModelName(vehicleid)));
- }
- }
- }
- if(PlayerData[playerid][pBrutallyWounded])
- {
- SendClientMessage(playerid, COLOR_ADM, "SERVER: Trying to bug abuse into a vehicle while dead will lead to a ban.");
- ClearAnimations(playerid);
- return false;
- }
-
- if(IsValidFactionCar(vehicleid) && !ispassenger && FactionCar[vehicleid][carFaction] != PlayerData[playerid][pFaction] && !PlayerData[playerid][pAdminDuty])
- {
- if(!playerTextdraw[playerid])
- {
- vehicleTextdraw[playerid] = CreateDynamic3DTextLabel("You can't enter this. (Faction-vehicle)", COLOR_WHITE, 0.0, 0.0, 0.0, 10.0, .attachedvehicle = vehicleid, .playerid = playerid, .worldid = GetPlayerVirtualWorld(playerid), .interiorid = GetPlayerInterior(playerid));
- SetTimerEx("OnVehicleTextdraw", 4000, false, "i", playerid);
-
- playerTextdraw[playerid] = true;
- }
-
- return ClearAnimations(playerid);
- }
-
- if(PlayerData[playerid][pAdminDuty]) {
- Message(playerid, COLOR_YELLOW, "VEHICLE ID: [%i] TYPE: [%s] USER ID: [%d]", vehicleid, GetVehicleTypeString(vehicleid), CarData[vehicleid][carOwnerID]);
- if(IsValidFactionCar(vehicleid)) Message(playerid, COLOR_YELLOW, "FACTION: [%i] DBID: [%i]", FactionCar[vehicleid][carFaction], FactionCar[vehicleid][carID]);
- if(IsValidPlayerCar(vehicleid)) Message(playerid, COLOR_YELLOW, "DBID: [%i]", CarData[vehicleid][carID]);
- }
-
- return true;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- if( _taking_license_test[playerid] )
- {
- QuitLicenseSession(playerid);
- }
- return true;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(HOLDING(KEY_HANDBRAKE) && PRESSED(KEY_WALK))
- {
- if(GetPVarInt(playerid, "MDCLayout"))
- {
- SelectTextDraw(playerid, COLOR_GREY);
- }
- }
- if (PRESSED(KEY_SPRINT) && PlayerTutorial[playerid] == 1 && PlayerTutorialStep[playerid] < 11)
- {
- KillTimer(PlayerTutorialTimer[playerid]);
- PlayerTutorialStep[playerid]++;
- SetTutorial(playerid);
- }
- if(PRESSED(KEY_FIRE))
- {
- switch(GetPlayerWeapon(playerid))
- {
- case WEAPON_GRENADE:
- {
- if(PlayerHasWeapon(playerid, WEAPON_GRENADE))
- UpdatePlayerWeapon(playerid, WEAPON_GRENADE);
- }
- case WEAPON_TEARGAS:
- {
- if(PlayerHasWeapon(playerid, WEAPON_TEARGAS))
- UpdatePlayerWeapon(playerid, WEAPON_TEARGAS);
- }
- case WEAPON_MOLTOV:
- {
- if(PlayerHasWeapon(playerid, WEAPON_MOLTOV))
- UpdatePlayerWeapon(playerid, WEAPON_MOLTOV);
- }
- }
- }
-
- if(PlayerBreakingIn[playerid] && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && RELEASED(KEY_FIRE))
- {
- new
- level[60],
- gun = GetPlayerWeapon(playerid),
- vehicleid = GetNearestVehicle(playerid);
-
- if(gun != 0 && !PlayerHasWeapon(playerid, gun))
- return 0;
-
- if(vehicleid != -1 && vehicleid == PlayerBreakInVehicle[playerid])
- {
- new Float:cX, Float:cY, Float:cZ;
- new Float:dX, Float:dY, Float:dZ;
- GetVehicleModelInfo(GetVehicleModel(vehicleid), VEHICLE_MODEL_INFO_FRONTSEAT, cX, cY, cZ);
- GetVehicleRelativePos(vehicleid, dX, dY, dZ, -cX - 0.5, cY, cZ);
-
- if(!IsPlayerInRangeOfPoint(playerid, 1.2, dX, dY, dZ))
- return 1;
-
- new Float:VehicleHealth;
- GetVehicleHealth(vehicleid, VehicleHealth);
-
- switch(gun)
- {
- case 0: SetVehicleHealth(vehicleid, (VehicleHealth - 5.0 <= 320.0) ? 320.0 : VehicleHealth - 3.0);
- case 5: SetVehicleHealth(vehicleid, (VehicleHealth - 10.0 <= 320.0) ? 320.0 : VehicleHealth - 6.0);
- case 4: SetVehicleHealth(vehicleid, (VehicleHealth - 12.0 <= 320.0) ? 320.0 : VehicleHealth - 7.0);
- }
-
- BreakInLevel[playerid]-= random(5);
- format(level, 60, "%d", BreakInLevel[playerid]);
-
- if(!IsValidDynamic3DTextLabel(BreakInTextDraw[playerid]))
- BreakInTextDraw[playerid] = CreateDynamic3DTextLabel(level, COLOR_WHITE, cX, cY, cZ, 10.0, .attachedvehicle = vehicleid, .playerid = playerid, .worldid = GetPlayerVirtualWorld(playerid), .interiorid = GetPlayerInterior(playerid));
-
- else UpdateDynamic3DTextLabelText(BreakInTextDraw[playerid], COLOR_WHITE, level);
-
- if(BreakInLevel[playerid] <= 1)
- {
- BreakInLevel[playerid] = 0;
-
- //Vehicle unlocked:
- ToggleVehicleLock(vehicleid, false);
-
- //Updating label to let player know it's unlocked:
- UpdateDynamic3DTextLabelText(BreakInTextDraw[playerid], COLOR_DARKGREEN, "Unlocked");
- Streamer_Update(playerid);
-
- //Destroying the label with a timer:
- BreakInTDTimer[playerid] = SetTimerEx("OnBreakSuccess", 2000, false, "i", playerid);
-
- //Clearing variables:
- PlayerBreakInVehicle[playerid] = INVALID_VEHICLE_ID;
- PlayerBreakingIn[playerid] = 0;
-
- BreakInError[playerid] = 0;
- BreakInLevel[playerid] = 0;
-
- ActiveLockTD[playerid] = 0;
- }
-
- new panels, doors, lights, tires;
- GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
-
- switch(BreakInLevel[playerid])
- {
- case 0: UpdateVehicleDamageStatus(vehicleid, panels, encode_doors(0, 0, 4, 0, 0, 0), lights, tires);
- case 1 .. 240: UpdateVehicleDamageStatus(vehicleid, panels, encode_doors(0, 0, 2, 0, 0, 0), lights, tires);
- }
- }
- }
-
- if(PRESSED(KEY_CROUCH) && WeaponOrderPrompt[playerid] == 20)
- {
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, PossibleDropSpots[WeaponOrderSpot[playerid]][LocationX], PossibleDropSpots[WeaponOrderSpot[playerid]][LocationY], PossibleDropSpots[WeaponOrderSpot[playerid]][LocationZ]))
- return SendClientMessage(playerid, COLOR_ADM, "* You can only drop the money at the checkpoint given.");
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s puts down money on the floor.", ReturnName(playerid, 0));
- GiveMoney(playerid, -WeaponOrderPrice[playerid]);
-
- ApplyAnimation(playerid, "CARRY", "putdwn", 4.1, 0, 1, 1, 0, 0, 1);
-
- WeaponOrderPrompt[playerid] = 0;
- WeaponOrderTimer[playerid] = SetTimerEx("WeaponOrderPrompts", 4000, false, "ii", playerid, 15);
- }
-
- if(PRESSED(KEY_CROUCH) && WeaponOrderPrompt[playerid] == 21)
- {
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]))
- return SendClientMessage(playerid, COLOR_ADM, "* You need to be at the spot marked to pick up your package.");
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s picks up their package.", ReturnName(playerid, 0));
- ApplyAnimation(playerid, "CARRY", "putdwn", 4.1, 0, 1, 1, 0, 0, 1);
-
- DestroyDynamicObject(WeaponOrderObject[playerid]);
-
- PlayerData[playerid][pWepOrderRestricted] = true;
- OrderWeaponTime[playerid] = gettime();
-
- new
- idx[2],
- str[128];
-
- if(WeaponOrdered[0][playerid] && !WeaponOrdered[1][playerid])
- format(str, sizeof(str), "* You picked up a %s package.", WeaponOrderedName[0][playerid]);
-
- else
- format(str, sizeof(str), "* You picked up a %s and %s package.", WeaponOrderedName[0][playerid], WeaponOrderedName[1][playerid]);
-
- SendClientMessage(playerid, COLOR_GOLD, str);
-
- if(WeaponOrdered[0][playerid])
- {
- idx[0] = ReturnFreePackage(playerid);
-
- if(idx[0] == -1)
- {
- SendClientMessage(playerid, COLOR_ADM, "* You can't carry anymore packages on you... Goodbye.");
- return ClearPlayerOrder(playerid);
- }
- PackageData[playerid][packageWeapon][idx[0]] = WeaponOrdered[0][playerid];
-
- if(WeaponOrdered[0][playerid] == WEAPON_DEAGLE)
- PackageData[playerid][packageAmmo][idx[0]] = 66;
-
- else if(WeaponOrdered[0][playerid] == WEAPON_SHOTGUN)
- PackageData[playerid][packageAmmo][idx[0]] = 50;
-
- else if(WeaponOrdered[0][playerid] == WEAPON_TEC9)
- PackageData[playerid][packageAmmo][idx[0]] = 110;
-
- else if(WeaponOrdered[0][playerid] == WEAPON_COLT45)
- PackageData[playerid][packageAmmo][idx[0]] = 75;
-
- format(str, sizeof(str), "Received %s(%d) from Weapon Order", ReturnWeaponName(WeaponOrdered[0][playerid]), PackageData[playerid][packageAmmo][idx[0]]);
- LogPlayerAction(playerid, str);
- }
-
- if(WeaponOrdered[1][playerid])
- {
- idx[1] = ReturnFreePackage(playerid);
-
- if(idx[1] == -1)
- {
- SendClientMessage(playerid, COLOR_ADM, "* You don't have room for your second package. Goodbye.");
- return ClearPlayerOrder(playerid);
- }
-
- PackageData[playerid][packageWeapon][idx[1]] = WeaponOrdered[1][playerid];
-
- if(WeaponOrdered[1][playerid] == WEAPON_DEAGLE)
- PackageData[playerid][packageAmmo][idx[1]] = 66;
-
- else if(WeaponOrdered[1][playerid] == WEAPON_SHOTGUN)
- PackageData[playerid][packageAmmo][idx[1]] = 50;
-
- else if(WeaponOrdered[1][playerid] == WEAPON_TEC9)
- PackageData[playerid][packageAmmo][idx[1]] = 110;
-
- else if(WeaponOrdered[1][playerid] == WEAPON_COLT45)
- PackageData[playerid][packageAmmo][idx[1]] = 75;
-
- format(str, sizeof(str), "Received %s(%d) from Weapon Order", ReturnWeaponName(WeaponOrdered[1][playerid]), PackageData[playerid][packageAmmo][idx[1]]);
- LogPlayerAction(playerid, str);
- }
-
- ClearPlayerOrder(playerid);
- SavePlayer(playerid);
- return 1;
- }
- if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && PlayerData[playerid][pBrutallyWounded] && !PlayerData[playerid][pInsideAmbulance]){
- ApplyAnimation(playerid, "WUZI", "CS_Dead_Guy", 4.1, 0, 0, 0, 1, 0, 1);
- }
-
- if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && PlayerData[playerid][pLegShot] && GetPlayerTeam(playerid) == STATE_ALIVE){
- ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff", 4.1, 0, 1, 1, 0, 0, 1);
- }
-
- if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && PlayerData[playerid][pHandcuff] && GetPlayerTeam(playerid) == STATE_ALIVE){
- ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff", 4.1, 0, 1, 1, 0, 0, 1);
- }
- if(newkeys & KEY_SPRINT && !(oldkeys & KEY_SPRINT) && PlayerData[playerid][pLegShot] && GetPlayerTeam(playerid) == STATE_ALIVE){
- ApplyAnimation(playerid, "ped", "FALL_collapse", 4.1, 0, 1, 1, 0, 0, 1);
- }
-
- if(newkeys & KEY_SPRINT && !(oldkeys & KEY_SPRINT) && GetPlayerTeam(playerid) == STATE_WOUNDED){
- ApplyAnimation(playerid, "WUZI", "CS_Dead_Guy", 4.1, 0, 1, 1, 1, 0, 1);
- }
-
- if (PRESSED(KEY_FIRE) && GetPlayerWeapon(playerid) == 41 && sprayPermission[playerid] == true && sprayingGraffiti[playerid] == false && strlen(graffitiText[playerid]) > 0)
- {
- if (PlayerData[playerid][pBrutallyWounded])
- return false;
-
- new bool:nearGraffiti = false;
-
- for(new i = 0; i < sizeof(g_aGraffitiData); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 4.0, g_aGraffitiData[i][graffitiPosX], g_aGraffitiData[i][graffitiPosY], g_aGraffitiData[i][graffitiPosZ]))
- {
- nearGraffiti = true;
-
- sprayingGraffiti[playerid] = true;
- graffitiID[playerid] = i;
- }
- }
- if(nearGraffiti)
- {
- graffitiTimer[playerid] = SetTimerEx("TIMER_PlayerGraffiti", 1000, true, "i", playerid);
- }
- }
- if (RELEASED(KEY_FIRE) && GetPlayerWeapon(playerid) == 41 && sprayingGraffiti[playerid] == true)
- {
- KillTimer(graffitiTimer[playerid]);
- KillTimer(graffitiTimerEx[playerid]);
-
- graffitiTimerEx_Confirm[playerid] = false;
- sprayingGraffiti[playerid] = false;
- sprayingGraffitiTime[playerid] = saveSprayingTime[playerid];
-
- PlayerTextDrawSetString(playerid, GraffitiDisplay[playerid], "~r~GRAFFITI STOPPED!");
- PlayerTextDrawShow(playerid, GraffitiDisplay[playerid]);
-
- GraffitiExitTimer[playerid] = SetTimerEx("ClearGraffitiTD", 2000, false, "i", playerid);
- ClearGraffitiVars(playerid);
- }
- if (PRESSED(KEY_YES) && paintjobOffered[playerid][0])
- {
- new string[128], offerid = paintjobOffered[playerid][1];
-
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You're no longer in a vehicle. Your paintjob offer is voided.");
-
- format (string, sizeof(string), "SERVER: %s is no longer in their vehicle. Your paintjob offer was cancelled.", ReturnName(playerid, 1));
- SendClientMessage(offerid, COLOR_YELLOW, string);
-
- paintjobOffered[playerid][0] = false;
- paintjobOffered[playerid][1] = -1;
-
- return true;
- }
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You accepted the paintjob offer!");
-
- format (string, sizeof(string), "SERVER: %s accepted your paintjob offer. Pull out your spraycan.", ReturnName(playerid, 1));
- SendClientMessage(offerid, COLOR_YELLOW, string);
-
- GivePlayerGun(offerid, 41, 9999, WEAPON_SERVER_GIVEN);
-
- paintjobOffered[playerid][0] = false;
- paintjobOffered[playerid][1] = -1;
-
- startingPaintjob[offerid] = true;
- paintjobVehicle[offerid] = GetPlayerVehicleID(playerid);
- }
- if (PRESSED(KEY_NO) && paintjobOffered[playerid][0])
- {
- new string[128], offerid = paintjobOffered[playerid][1];
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You declined the paintjob offer!");
-
- format (string, sizeof(string), "SERVER: %s declined your paintjob offer.", ReturnName(playerid, 1));
- SendClientMessage(offerid, COLOR_YELLOW, string);
-
- paintjobOffered[playerid][0] = false;
- paintjobOffered[playerid][1] = -1;
- }
- if (PRESSED(KEY_FIRE) && !IsPlayerInAnyVehicle(playerid) && startingPaintjob[playerid] == true)
- {
- new v = paintjobVehicle[playerid], Float: vehPos[3];
-
- GetVehiclePos(v, vehPos[0], vehPos[1], vehPos[2]);
-
- if (!IsPlayerInRangeOfPoint(playerid, 5.0, vehPos[0], vehPos[1], vehPos[2]))
- {
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You aren't near your selected vehicle.");
-
- startingPaintjob[playerid] = false;
- paintjobVehicle[playerid] = INVALID_VEHICLE_ID;
- return true;
- }
-
- paintjobTime[playerid] = 15;
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Start spraying to change the colors!");
- paintjobTimer[playerid] = SetTimerEx("PaintjobTimer", 1000, true, "i", playerid);
- paintjobCounter[playerid] = SetTimerEx("PaintjobCounter", 1000, true, "i", playerid);
- }
- if (RELEASED(KEY_FIRE) && !IsPlayerInAnyVehicle(playerid) && startingPaintjob[playerid] == true)
- {
- GameTextForPlayer(playerid, "~r~Spraying Stopped", 3000, 3);
-
- KillTimer(paintjobTimer[playerid]);
- KillTimer(paintjobCounter[playerid]);
-
- startingPaintjob[playerid] = false;
- }
-
- return true;
- }
- Server:PaintjobTimer(playerid)
- {
- new string[128], vehicleid = paintjobVehicle[playerid], Float:vehPos[3];
-
- GetVehiclePos(vehicleid, vehPos[0], vehPos[1], vehPos[2]);
- if (!IsPlayerInRangeOfPoint(playerid, 5.0, vehPos[0], vehPos[1], vehPos[2]))
- {
- KillTimer(paintjobTimer[playerid]);
- KillTimer(paintjobCounter[playerid]);
-
- startingPaintjob[playerid] = false;
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Your paintjob was cancelled. You're no longer near the vehicle.");
- return true;
- }
-
- format (string, sizeof(string), "~r~Spraying~n~~w~%d]", paintjobTime[playerid]);
- GameTextForPlayer(playerid, string, 3000, 3);
-
- if(paintjobTime[playerid] <= 0)
- {
- KillTimer(paintjobTimer[playerid]);
- KillTimer(paintjobCounter[playerid]);
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You've finished spraying!");
- ChangeVehicleColor(vehicleid, paintjobColors[playerid][0], paintjobColors[playerid][1]);
-
- startingPaintjob[playerid] = false;
- return true;
- }
- return true;
- }
- Server:PaintjobCounter(playerid)
- {
- if (startingPaintjob[playerid] == false)
- return KillTimer(paintjobCounter[playerid]);
-
- paintjobTime[playerid]--;
- return true;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT || oldstate == PLAYER_STATE_DRIVER){
-
- new vehicleid = GetPlayerVehicleID(playerid), id, string[128];
- id = FactionCar[vehicleid][carID];
-
- if(id != -1 && FactionCar[vehicleid][carFaction] > 0 && FactionCar[vehicleid][carFaction] != PlayerData[playerid][pFaction] && !PlayerData[playerid][pAdminDuty]){
- format(string, sizeof(string), "%s[%i] teleported into faction vehicleid %d", ReturnName(playerid, 1), playerid, vehicleid);
- adminWarn(1, string);
- RemovePlayerFromVehicle(playerid);
- ClearAnimations(playerid);
- }
- }
-
- if(newstate == PLAYER_STATE_DRIVER)
- {
- SetPlayerArmedWeapon(playerid, 0);
-
- foreach(new i : Player)
- {
- if(PlayerData[i][pSpectator] == playerid)
- {
- new cmd[30];
- format(cmd, 30, "%i", playerid);
- cmd_awc(i, cmd);
- }
- }
- if (!NoEngineCar(GetPlayerVehicleID(playerid)) && !PlayerData[playerid][pHUDToggled])
- {
- UpdateHUDForPlayer(playerid);
- switch(PlayerData[playerid][pHUD])
- {
- case 0: {
- PlayerTextDrawShow(playerid, VehicleHUD[playerid][0]);
- PlayerTextDrawShow(playerid, VehicleHUD[playerid][1]);
- }
- case 1: {
- PlayerTextDrawShow(playerid, VehicleHUD[playerid][2]);
- }
- case 2: {
- PlayerTextDrawShow(playerid, VehicleHUD[playerid][3]);
- }
- case 3: {
- PlayerTextDrawShow(playerid, VehicleHUD[playerid][4]);
- PlayerTextDrawShow(playerid, VehicleHUD[playerid][5]);
- }
- }
- }
- }
-
- if(oldstate == PLAYER_STATE_DRIVER)
- {
- if(PlayerData[playerid][pUnscrambling])
- {
- PlayerData[playerid][pUnscrambling] = false;
- PlayerData[playerid][pUnscrambleID] = 0;
- PlayerData[playerid][pUnscramblerTime] = 111;
- PlayerData[playerid][pScrambleFailed] = 0;
- PlayerData[playerid][pScrambleSuccess] = 0;
-
- KillTimer(PlayerData[playerid][pUnscrambleTimer]);
- ShowUnscrambleTextdraw(playerid, false);
- }
-
- /*if(!PlayerData[playerid][pHUDToggled])
- HideHUDForPlayer(playerid); */
-
- foreach(new i : Player)
- {
- if(PlayerData[i][pSpectator] == playerid)
- {
- new cmd[30];
- format(cmd, 30, "%i", playerid);
- cmd_spectate(i, cmd);
- }
- }
- if (!PlayerData[playerid][pHUDToggled])
- {
- switch(PlayerData[playerid][pHUD])
- {
- case 0: {
- PlayerTextDrawHide(playerid, VehicleHUD[playerid][0]);
- PlayerTextDrawHide(playerid, VehicleHUD[playerid][1]);
- }
- case 1: {
- PlayerTextDrawHide(playerid, VehicleHUD[playerid][2]);
- }
- case 2: {
- PlayerTextDrawHide(playerid, VehicleHUD[playerid][3]);
- }
- case 3: {
- PlayerTextDrawHide(playerid, VehicleHUD[playerid][4]);
- PlayerTextDrawHide(playerid, VehicleHUD[playerid][5]);
- }
- }
- }
- }
-
- if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_DRIVER)
- {
- new id = GetPlayerVehicleID(playerid);
- if(IsValidPlayerCar(id))
- {
- new string[128];
- format(string, sizeof(string), "Player %s entered seat %d", ReturnName(playerid), GetPlayerVehicleSeat(playerid));
- LogVehicleAction(id, string);
- }
- }
-
- if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT || oldstate == PLAYER_STATE_DRIVER){
- new vehicleid = GetPlayerVehicleID(playerid);
-
- PlayerData[playerid][pEnterVehicle]++;
- if(PlayerData[playerid][pEnterVehicle] > 2){
- new string[128];
-
- format(string, sizeof(string), "%s(%i) may be teleporting (into) vehicles", ReturnName(playerid, 1), playerid);
- adminWarn(1, string);
-
- }
-
- if(IsValidPlayerCar(vehicleid)) {
- CarData[vehicleid][carlastDriver] = PlayerData[playerid][pSQLID];
- }
-
- if(IsValidFactionCar(vehicleid)) {
- FactionCar[vehicleid][carlastDriver] = PlayerData[playerid][pSQLID];
- }
-
- if(!IsValidFactionCar(vehicleid) && !IsValidPlayerCar(vehicleid)) {
- CarlastDriver[vehicleid] = PlayerData[playerid][pSQLID];
- }
- }
-
- if(newstate == PLAYER_STATE_PASSENGER && oldstate == PLAYER_STATE_ONFOOT || oldstate == PLAYER_STATE_DRIVER) {
- new vehicleid = GetPlayerVehicleID(playerid);
-
- if(IsValidPlayerCar(vehicleid)) {
- CarData[vehicleid][carlastPassenger] = PlayerData[playerid][pSQLID];
- }
-
- if(IsValidFactionCar(vehicleid)) {
- FactionCar[vehicleid][carlastPassenger] = PlayerData[playerid][pSQLID];
- }
-
- if(!IsValidFactionCar(vehicleid) && !IsValidPlayerCar(vehicleid)) {
- CarlastPassenger[vehicleid] = PlayerData[playerid][pSQLID];
- }
-
- if(GetPlayerWeapon(playerid) == WEAPON_DEAGLE || GetPlayerWeapon(playerid) == WEAPON_SNIPER)
- SetPlayerArmedWeapon(playerid, 0);
- }
-
- if(newstate == PLAYER_STATE_ONFOOT && oldstate == PLAYER_STATE_DRIVER)
- {
- if(StartedTruckerMission[playerid])
- {
- for(new i = 0; i < 2; i++)
- PlayerTextDrawShow(playerid, TruckerWarning_PTD[playerid][i]);
-
- TruckerJobExitTimer[playerid] = SetTimerEx("OnExitTrucker", 1000, true, "i", playerid);
- TruckerJobExitCount[playerid] = 60;
- }
- }
-
- if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT){
-
- new vehicleid = GetPlayerVehicleID(playerid), id, string[128];
- id = CarData[vehicleid][carID];
-
- if(StartedTruckerMission[playerid] && vehicleid == TruckerMissionVehicle[playerid])
- {
- for(new i = 0; i < 2; i++)
- PlayerTextDrawHide(playerid, TruckerWarning_PTD[playerid][i]);
-
- TruckerJobExitCount[playerid] = 60;
- KillTimer(TruckerJobExitTimer[playerid]);
- }
-
- if(StartedTruckerMission[playerid] && TruckerMissionStep[playerid] == 3 && vehicleid == TruckerMissionVehicle[playerid])
- {
- RewardTruckerMission(playerid);
- }
- if (!PlayerData[playerid][pDriversLicense]) {
- SendClientMessage(playerid, COLOR_ADM, "You don't have a driving license! Pass a driving test to get one.");
- }
-
- if(IsTruckerVehicle(vehicleid) && !StartedTruckerMission[playerid])
- {
- SendClientMessage(playerid, COLOR_WHITE, "INFO: You're in a trucker mission vehicle. Use /truckermission to start!");
- SendClientMessage(playerid, COLOR_WHITE, "INFO: Use /renttruck to rent the vehicle if you haven't!");
- }
-
- if(IsTruckerVehicle(vehicleid) && StartedTruckerMission[playerid])
- {
- SendClientMessage(playerid, COLOR_WHITE, "INFO: You can use /endmission to stop and collect your earnings.");
- }
-
- if(IsPlayerInDMVCar(playerid)) {
- SendClientMessage(playerid, COLOR_WHITE, "You have entered a license exam vehicle. To attempt to pass your license exam, type /licenseexam.");
- }
-
- if(!CarEngine[vehicleid] && !NoEngineCar(vehicleid)){
- SendClientMessage(playerid, COLOR_DARKGREEN, "The engine is off. (/engine)");
- }
-
- if(id && CarData[vehicleid][carOwnerID] == PlayerData[playerid][pSQLID]){
- format(string, sizeof(string), "Welcome to your %s.", ReturnVehicleName(vehicleid));
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- if(CountVehicleFines(vehicleid) > 0)
- {
- format(string, sizeof(string), "[-] Your vehicle has fines accumulating up to $%s.", MoneyFormat(CountVehicleFinesTotal(vehicleid)));
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- SendClientMessage(playerid, COLOR_YELLOW, "[-] Use /v payfines at a dealership to take care of them.");
- }
- }
-
- if(IsValidRentalCar(vehicleid)){
- format(string, sizeof(string), "Vehicle Rental Service: Rent the %s for $2500. (/rentvehicle)", ReturnVehicleName(vehicleid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- SendClientMessage(playerid, COLOR_DARKGREEN, "Renting this vehicle will make you able to /lock it.");
- }
- }
-
- if(newstate == PLAYER_STATE_ONFOOT && oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER){
- if(g_aVehicleSpawned[playerid] != 0){
- if(IsValidVehicle(g_aVehicleSpawned[playerid]) && !IsValidPlayerCar(g_aVehicleSpawned[playerid]) && !IsValidFactionCar(g_aVehicleSpawned[playerid])){
- DestroyVehicle(g_aVehicleSpawned[playerid]);
- }
- }
-
- StopAudioStreamForPlayer(playerid);
- }
-
- if(newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER && oldstate == PLAYER_STATE_ONFOOT){
- new
- vehicleid = GetPlayerVehicleID(playerid)
- ;
-
- if(IsValidPlayerCar(vehicleid))
- {
- if(CarData[vehicleid][carXMR] && CarData[vehicleid][carXMROn])
- {
- PlayAudioStreamForPlayer(playerid, CarData[vehicleid][carXMRUrl]);
- }
- }
-
- if(IsValidFactionCar(vehicleid))
- {
- if(FactionCar[vehicleid][carsXMROn])
- {
- PlayAudioStreamForPlayer(playerid, FactionCar[vehicleid][carsXMRURL]);
- }
- }
- }
-
-
- if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER && newstate == PLAYER_STATE_ONFOOT)
- {
- StopAudioStreamForPlayer(playerid);
- showMDCLayout(playerid, false);
- }
- return true;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(!PlayerData[playerid][pCheckpoint]){
- PlayerPlaySound(playerid, 1138, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- }
-
- if(StartedTruckerMission[playerid] && TruckerMissionStep[playerid] == 1)
- {
- if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT)
- {
- SendClientMessage(playerid, COLOR_ADM, "** You need to enter the checkpoint on foot.");
- SetPlayerCheckpoint(playerid, BusinessData[TruckerMissionPoint[playerid]][businessExt][0], BusinessData[TruckerMissionPoint[playerid]][businessExt][1], BusinessData[TruckerMissionPoint[playerid]][businessExt][2], 1.0);
- return 1;
- }
-
- if(!IsPlayerInRangeOfPoint(playerid, 4.0, BusinessData[TruckerMissionPoint[playerid]][businessExt][0], BusinessData[TruckerMissionPoint[playerid]][businessExt][1], BusinessData[TruckerMissionPoint[playerid]][businessExt][2]))
- {
- SendClientMessage(playerid, COLOR_ADM, "** Uh-Oh! You don't seem to be at your assigned objective.");
- SetPlayerCheckpoint(playerid, BusinessData[TruckerMissionPoint[playerid]][businessExt][0], BusinessData[TruckerMissionPoint[playerid]][businessExt][1], BusinessData[TruckerMissionPoint[playerid]][businessExt][2], 1.0);
- return 1;
- }
-
- for(new i = 0; i < 2; i++)
- PlayerTextDrawHide(playerid, TruckerWarning_PTD[playerid][i]);
-
- TruckerJobExitCount[playerid] = 60;
- KillTimer(TruckerJobExitTimer[playerid]);
-
- TruckerMissionStep[playerid] = 2;
- TruckerJobDeliveryCount[playerid] = 0;
-
- TogglePlayerControllable(playerid, 0);
- TruckerJobDeliverTimer[playerid] = SetTimerEx("OnTruckerDelivery", 1000, true, "i", playerid);
- }
-
- if(PlayerData[playerid][pCheckpoint] == WEAPON_ORDER_NUMBER)
- {
- new
- str[128];
-
- DisablePlayerCheckpoint(playerid);
-
- format(str, sizeof(str), "SMS: Put down $%s and wait., Sender: 434112", MoneyFormat(WeaponOrderPrice[playerid]));
- SendClientMessage(playerid, COLOR_YELLOW, str);
-
- WeaponOrderPrompt[playerid] = 20;
- PlayerData[playerid][pCheckpoint] = 0;
-
- SendClientMessage(playerid, COLOR_ADM, "TIP: Use your Crouch key (C) to put down money.");
- return 1;
- }
-
- if(_taking_license_test[playerid]){
- PlayerPlaySound(playerid, 1138, 0.0, 0.0, 0.0);
- if(!IsPlayerInDMVCar(playerid))return QuitLicenseSession(playerid);
-
- if(_taking_license_point[playerid] == 101){
- SetPlayerCheckpoint(playerid, 1209.1361, -1569.4271, 13.2656, 5.0);
- _taking_license_point[playerid] = 102;
- }
- else if(_taking_license_point[playerid] == 102){
- SetPlayerCheckpoint(playerid, 929.7857, -1570.2813, 13.2577, 5.0);
- _taking_license_point[playerid] = 103;
- }
- else if(_taking_license_point[playerid] == 103){
- SetPlayerCheckpoint(playerid, 915.2255, -1659.8831, 13.2578, 5.0);
- _taking_license_point[playerid] = 104;
- }
- else if(_taking_license_point[playerid] == 104){
- SetPlayerCheckpoint(playerid, 915.0769, -1759.7145, 13.2548, 5.0);
- _taking_license_point[playerid] = 105;
- }
- else if(_taking_license_point[playerid] == 105){
- //1022.2615, -1800.2925, 13.7688
- SetPlayerCheckpoint(playerid, 1019.9954,-1810.2715,13.9787, 5.0);
- _taking_license_point[playerid] = 106;
- }
- else if(_taking_license_point[playerid] == 106){
- // 1039.2104, -1671.6567, 13.2578 old coords
- // 1019.9954,-1810.2715,13.9787
- SetPlayerCheckpoint(playerid, 1039.2104, -1671.6567, 13.2578, 5.0);
- _taking_license_point[playerid] = 107;
- }
- else if(_taking_license_point[playerid] == 107){
- SetPlayerCheckpoint(playerid, 1039.4230, -1588.5918, 13.2577, 5.0);
- _taking_license_point[playerid] = 108;
- }
- else if(_taking_license_point[playerid] == 108){
- SetPlayerCheckpoint(playerid, 1140.6078, -1574.2045, 13.1487, 5.0);
- _taking_license_point[playerid] = 109;
- }
- else if(_taking_license_point[playerid] == 109){
- SetPlayerCheckpoint(playerid, 1240.2865, -1574.5254, 13.2583, 5.0);
- _taking_license_point[playerid] = 110;
- }
- else if(_taking_license_point[playerid] == 110){
- SetPlayerCheckpoint(playerid, 1282.2665, -1574.0415, 13.2578, 5.0);
- _taking_license_point[playerid] = 111;
- }
- else if(_taking_license_point[playerid] == 111){
- DisablePlayerCheckpoint(playerid);
- SetVehicleToRespawn(_taking_license_vehicle[playerid]);
-
- _taking_license_point[playerid] = 0;
- _taking_license_test[playerid] = false;
- _taking_license_vehicle[playerid] = 0;
- _taking_license_time[playerid] = 0;
-
- PlayerData[playerid][pDriversLicense] = true;
- SaveSQLInt(PlayerData[playerid][pSQLID], "players", "DriversLicense", PlayerData[playerid][pDriversLicense]);
-
- GiveMoney(playerid, -1000);
-
- GameTextForPlayer(playerid, "~w~Congratulations!~n~ Here is your license!", 5000, 1);
- }
- }
- return true;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- if (PlayerData[playerid][pMasked]){
- if(!PlayerData[forplayerid][pAdminDuty]){
- ShowPlayerNameTagForPlayer(forplayerid, playerid, 0);
- }
- }
- return true;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- foreach(new i : Player)
- {
- if(PlayerData[i][pSpectator] == playerid)
- {
- new cmd[30];
- format(cmd, 30, "%i", playerid);
- cmd_spectate(i, cmd);
- }
- }
- if(newinteriorid != 0)
- {
- Streamer_Update(playerid);
-
- TogglePlayerControllable(playerid, false);
- SetTimerEx("TIMER_LoadingInterior", 1000, false, "i", playerid);
- }
- else
- {
- ResetHouseVar(playerid);
- }
- return true;
- }
- public OnPlayerPickUpDynamicPickup(playerid, pickupid)
- {
- for(new i = 0; i < MAX_BUSINESS; i++){
- if(BusinessData[i][businessID] != 0 && BusinessData[i][businessType] == BIZ_BANK){
- if(GetPlayerVirtualWorld(playerid) == BusinessData[i][businessBankPickupWorld]){
- if(pickupid == BusinessData[i][businessBankPickup]){
- if (!PlayerData[playerid][pPaycheck]){
- return false;
- }
- else{
- new string[128];
- GiveMoney(playerid, PlayerData[playerid][pPaycheck]);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "~w~You have just received~n~your paycheck:~n~~g~$%d", PlayerData[playerid][pPaycheck]);
- GameTextForPlayer(playerid, string, 4000, 4);
-
- WriteLog("money_logs/getpaycheck_log.txt", "[%s] %s got their paycheck: $%d (Bank: $%d, Hand: $%d)", ReturnDate(), ReturnName(playerid, 1), PlayerData[playerid][pPaycheck], PlayerData[playerid][pBank],
- PlayerData[playerid][pMoney]);
-
- PlayerData[playerid][pPaycheck] = 0;
- }
- }
- }
- }
- }
- return true;
- }
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- phone_OnPlayerClickPlayerTD(playerid, playertextid);
- ds_OnPlayerClickPlayerTD(playerid, playertextid);
- if(GetPVarInt(playerid, "UsingMDC") == 1)
- {
- if(playertextid == MDC_UI[playerid][35])
- {
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][36], -1431655681);
- PlayerTextDrawHide(playerid, MDC_UI[playerid][36]);
- PlayerTextDrawShow(playerid, MDC_UI[playerid][36]);
- PlayerTextDrawHide(playerid, MDC_UI[playerid][35]);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][35], 858993663);
- PlayerTextDrawShow(playerid, MDC_UI[playerid][35]);
- PlayerTextDrawHide(playerid, MDC_UI[playerid][39]);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][39], -1);
- PlayerTextDrawShow(playerid, MDC_UI[playerid][39]);
- PlayerTextDrawHide(playerid, MDC_UI[playerid][40]);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][40], 858993663);
- PlayerTextDrawShow(playerid, MDC_UI[playerid][40]);
- SetPVarInt(playerid, "Query_Mode", 0);
- }
- if(playertextid == MDC_UI[playerid][36])
- {
- PlayerTextDrawHide(playerid, MDC_UI[playerid][39]);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][39], 858993663);
- PlayerTextDrawShow(playerid, MDC_UI[playerid][39]);
- PlayerTextDrawHide(playerid, MDC_UI[playerid][40]);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][40], -1);
- PlayerTextDrawShow(playerid, MDC_UI[playerid][40]);
- PlayerTextDrawHide(playerid, MDC_UI[playerid][35]);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][35], -1431655681);
- PlayerTextDrawShow(playerid, MDC_UI[playerid][35]);
- PlayerTextDrawHide(playerid, MDC_UI[playerid][36]);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][36], 858993663);
- PlayerTextDrawShow(playerid, MDC_UI[playerid][36]);
- SetPVarInt(playerid, "Query_Mode", 1);
- }
- if(playertextid == MDC_UI[playerid][37])
- {
- if(!GetPVarInt(playerid, "Query_Mode"))
- {
- ShowPlayerDialog(playerid, DIALOG_MDC_NAME, DIALOG_STYLE_INPUT, "Name Search - MDC", "Enter the persons full name to search below:", "Search", "<<");
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_MDC_PLATE, DIALOG_STYLE_INPUT, "Plate Search - MDC", "Enter the vehicles full or partial plate to search below:", "Search", "<<");
- }
- }
- for(new i = 10; i < 16; i ++)
- {
- if(playertextid == MDC_UI[playerid][i])
- {
- if(GetPVarInt(playerid, "LastPage_ID") != -1)
- {
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][GetPVarInt(playerid, "LastPage_ID")], -1431655681);
- PlayerTextDrawHide(playerid, MDC_UI[playerid][GetPVarInt(playerid, "LastPage_ID")]);
- PlayerTextDrawShow(playerid, MDC_UI[playerid][GetPVarInt(playerid, "LastPage_ID")]);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][GetPVarInt(playerid, "LastPage_ID")+6], 858993663);
- PlayerTextDrawHide(playerid, MDC_UI[playerid][GetPVarInt(playerid, "LastPage_ID")+6]);
- PlayerTextDrawShow(playerid, MDC_UI[playerid][GetPVarInt(playerid, "LastPage_ID")+6]);
- }
- PlayerTextDrawColor(playerid, MDC_UI[playerid][i+6], -1);
- PlayerTextDrawHide(playerid, MDC_UI[playerid][i+6]);
- PlayerTextDrawShow(playerid, MDC_UI[playerid][i+6]);
- PlayerTextDrawHide(playerid, MDC_UI[playerid][i]);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][i], 858993663);
- PlayerTextDrawShow(playerid, MDC_UI[playerid][i]);
- SetPVarInt(playerid, "LastPage_ID", i);
-
- new messageEx[128];
- format(messageEx, sizeof messageEx, "Page #%d", i-10);
- SendClientMessage(playerid, -1, messageEx);
- UpdateMDC(playerid, i-10);
- }
- }
- if(playertextid == MDC_UI[playerid][3])
- {
- CancelSelectTextDraw(playerid);
- ToggleMDC(playerid, false);
- }
- }
- if(Text:playertextid != INVALID_TEXT_DRAW)
- {
- if(playertextid == Skinmenu_PTD[playerid][0])
- {
- if(PlayerData[playerid][pSkinMenu] == 305)
- PlayerData[playerid][pSkinMenu] = 1;
-
- else PlayerData[playerid][pSkinMenu]++;
-
- PlayerTextDrawSetPreviewModel(playerid, Skinmenu_PTD[playerid][2], PlayerData[playerid][pSkinMenu]);
- DisplayClothingMenu(playerid, false, false);
- }
- else if(playertextid == Skinmenu_PTD[playerid][1])
- {
- if(PlayerData[playerid][pSkinMenu] == 1)
- PlayerData[playerid][pSkinMenu] = 305;
-
- else PlayerData[playerid][pSkinMenu]--;
-
- PlayerTextDrawSetPreviewModel(playerid, Skinmenu_PTD[playerid][2], PlayerData[playerid][pSkinMenu]);
- DisplayClothingMenu(playerid, false, false);
- }
- else if(playertextid == Skinmenu_PTD[playerid][2])
- {
- new forbidSkin[35] =
- {
- 0, 71, 74, 264, 265, 266, 267, 274, 275, 276,
- 277, 278, 279, 280, 281, 282, 283, 284, 285,
- 286, 287, 288, 300, 301, 302, 306, 307, 308,
- 309, 310, 311
- };
-
- for(new i = 0; i < sizeof forbidSkin; i++)
- {
- if(PlayerData[playerid][pSkinMenu] == forbidSkin[i])
- {
- return SendClientMessage(playerid, COLOR_ADM, "You can't select this skin.");
- }
- }
-
- SendClientMessage(playerid, COLOR_ACTION, "Thank you for your purchase!");
-
- SetPlayerSkin(playerid, PlayerData[playerid][pSkinMenu]);
- PlayerData[playerid][pSkin] = PlayerData[playerid][pSkinMenu];
-
- CancelSelectTextDraw(playerid);
- DisplayClothingMenu(playerid, true);
-
- GiveMoney(playerid, -50);
- BusinessData[IsPlayerInBusiness(playerid)][businessCashbox]+= 50;
- }
-
- if(GetPVarInt(playerid, "Viewing_OwnedCarList") == 1)
- {
- if(playertextid == Player_Vehicles_Arrow[playerid][2])
- {
- SetPVarInt(playerid, "Viewing_OwnedCarList", 2);
- ShowPlayerVehicleList2(playerid);
- }
-
- for(new i = 0; i < 6; i++)
- {
- if(playertextid == Player_Vehicles[playerid][i])
- {
- if(_has_vehicle_spawned[playerid])
- {
- SendClientMessage(playerid, COLOR_ADM, "SERVER: You already have a vehicle spawned.");
-
- HideVehicleUI(playerid, 1);
- DeletePVar(playerid, "Viewing_OwnedCarList");
- return 1;
- }
-
- LoadOwnedCars(playerid, i+1);
- HideVehicleUI(playerid, 1);
- }
- }
- }
- if(GetPVarInt(playerid, "Viewing_OwnedCarList") == 2)
- {
- if(playertextid == Player_Static_Arrow[playerid])
- {
- ShowPlayerVehicleList(playerid);
- SetPVarInt(playerid, "Viewing_OwnedCarList", 1);
- }
-
- new slot;
- for(new i = 0; i < 6; i++)
- {
- if(playertextid == Player_Vehicles[playerid][i])
- {
- switch(i)
- {
- case 0: slot = 7;
- case 1: slot = 8;
- case 2: slot = 9;
- case 3: slot = 10;
- }
-
- if(_has_vehicle_spawned[playerid])
- {
- SendClientMessage(playerid, COLOR_ADM, "SERVER: You already have a vehicle spawned.");
-
- HideVehicleUI(playerid, 1);
- DeletePVar(playerid, "Viewing_OwnedCarList");
- return 1;
- }
-
- LoadOwnedCars(playerid, slot);
- HideVehicleUI(playerid, 1);
- }
- }
- }
-
- }
- else
- {
- DisplayClothingMenu(playerid, true);
-
- if(PlayerData[playerid][pPhoneline] == GUN_SHOP_NUMBER) HideWarehouseMenu(playerid, 0);
- else HideWarehouseMenu(playerid);
-
- HideVehicleUI(playerid, 0);
- DeletePVar(playerid, "Viewing_OwnedCarList");
- }
- return true;
- }
- public OnPlayerClickTextDraw(playerid, Text:clickedid)
- {
- if(Text:clickedid != INVALID_TEXT_DRAW)
- {
- if(clickedid == Buymenu_TD[1])
- {
- for(new i = 0; i < 37; i++){
- TextDrawHideForPlayer(playerid, Buymenu_TD[i]);
- CancelSelectTextDraw(playerid);
- }
- }
- if(clickedid == Buymenu_TD[3])
- {
- if(30 > PlayerData[playerid][pMoney])
- {
- SendClientMessage(playerid, COLOR_ADM, "You can't afford this.");
- return 1;
- }
-
- if(IsPlayerInBusiness(playerid))
- {
- BusinessData[IsPlayerInBusiness(playerid)][businessCashbox]+= 30;
- }
-
- SendClientMessage(playerid, COLOR_YELLOW, "You purchased a gasoline can. Use /fill to refill your car.");
- // Create function later to fuel vehicle.
- GiveMoney(playerid, -30);
-
- for(new i = 0; i < 37; i++)
- {
- TextDrawHideForPlayer(playerid, Buymenu_TD[i]);
- CancelSelectTextDraw(playerid);
- }
- }
- if(clickedid == Buymenu_TD[6])
- {
- if(150 > PlayerData[playerid][pMoney])
- {
- SendClientMessage(playerid, COLOR_ADM, "You can't afford this.");
- return 1;
- }
-
- if(IsPlayerInBusiness(playerid))
- {
- BusinessData[IsPlayerInBusiness(playerid)][businessCashbox]+= 150;
- }
-
- SendClientMessage(playerid, COLOR_YELLOW, "You purchased a Boombox. Use /boombox!");
- PlayerData[playerid][pHasBoombox] = true;
-
- GiveMoney(playerid, -150);
- for(new i = 0; i < 37; i++){
- TextDrawHideForPlayer(playerid, Buymenu_TD[i]);
- CancelSelectTextDraw(playerid);
- }
- }
- if(clickedid == Buymenu_TD[11])
- {
- if(10 > PlayerData[playerid][pMoney])
- {
- SendClientMessage(playerid, COLOR_ADM, "You can't afford this.");
- return 1;
- }
-
- if(IsPlayerInBusiness(playerid))
- {
- BusinessData[IsPlayerInBusiness(playerid)][businessCashbox]+= 10;
- }
-
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Baseball Bat. ");
- GiveMoney(playerid, -10);
- GivePlayerGun(playerid, 5, 1, WEAPON_UNKNOWN_GIVEN);
- for(new i = 0; i < 37; i++) {
- TextDrawHideForPlayer(playerid, Buymenu_TD[i]);
- CancelSelectTextDraw(playerid);
- }
- }
- if(clickedid == Buymenu_TD[14])
- {
- if(3 > PlayerData[playerid][pMoney])
- {
- SendClientMessage(playerid, COLOR_ADM, "You can't afford this.");
- return 1;
- }
-
- if(IsPlayerInBusiness(playerid))
- {
- BusinessData[IsPlayerInBusiness(playerid)][businessCashbox]+= 3;
- }
-
- SendClientMessage(playerid, COLOR_YELLOW, "You bought Flowers. ");
- GiveMoney(playerid, -3);
- GivePlayerGun(playerid, 14, 1, WEAPON_UNKNOWN_GIVEN);
- for(new i = 0; i < 37; i++){
- TextDrawHideForPlayer(playerid, Buymenu_TD[i]);
- CancelSelectTextDraw(playerid);
- }
- }
- if(clickedid == Buymenu_TD[17])
- {
- if(20 > PlayerData[playerid][pMoney])
- {
- SendClientMessage(playerid, COLOR_ADM, "You can't afford this.");
- return 1;
- }
-
- if(IsPlayerInBusiness(playerid))
- {
- BusinessData[IsPlayerInBusiness(playerid)][businessCashbox]+= 20;
- }
-
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Cane. ");
- GiveMoney(playerid, -20);
- GivePlayerGun(playerid, 15, 1, WEAPON_UNKNOWN_GIVEN);
- for(new i = 0; i < 37; i++){
- TextDrawHideForPlayer(playerid, Buymenu_TD[i]);
- CancelSelectTextDraw(playerid);
- }
- }
- if(clickedid == Buymenu_TD[20])
- {
- if(50 > PlayerData[playerid][pMoney])
- {
- SendClientMessage(playerid, COLOR_ADM, "You can't afford this.");
- return 1;
- }
-
- if(IsPlayerInBusiness(playerid))
- {
- BusinessData[IsPlayerInBusiness(playerid)][businessCashbox]+= 50;
- }
-
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Camera. ");
- GiveMoney(playerid, -50);
- GivePlayerGun(playerid, 43, 9999, WEAPON_UNKNOWN_GIVEN);
- for(new i = 0; i < 37; i++){
- TextDrawHideForPlayer(playerid, Buymenu_TD[i]);
- CancelSelectTextDraw(playerid);
- }
- }
- if(clickedid == Buymenu_TD[24])
- {
- if(200 > PlayerData[playerid][pMoney])
- {
- SendClientMessage(playerid, COLOR_ADM, "You can't afford this.");
- return 1;
- }
-
- if(IsPlayerInBusiness(playerid))
- {
- BusinessData[IsPlayerInBusiness(playerid)][businessCashbox]+= 200;
- }
-
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Mask. You may now /Mask. ");
- GiveMoney(playerid, -200);
- PlayerData[playerid][pMask] = true;
- for(new i = 0; i < 37; i++){
- TextDrawHideForPlayer(playerid, Buymenu_TD[i]);
- CancelSelectTextDraw(playerid);
- }
- }
- if(clickedid == Buymenu_TD[28])
- {
- if(3 > PlayerData[playerid][pMoney])
- {
- SendClientMessage(playerid, COLOR_ADM, "You can't afford this.");
- return 1;
- }
-
- if(IsPlayerInBusiness(playerid))
- {
- BusinessData[IsPlayerInBusiness(playerid)][businessCashbox]+= 3;
- }
-
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Drink! Use /usedrink, /givedrink!");
- GiveMoney(playerid, -3);
- PlayerData[playerid][pDrinks]++;
- for(new i = 0; i < 37; i++){
- TextDrawHideForPlayer(playerid, Buymenu_TD[i]);
- CancelSelectTextDraw(playerid);
- }
- }
- if(clickedid == Buymenu_TD[31])
- {
- if(30 > PlayerData[playerid][pMoney])
- {
- SendClientMessage(playerid, COLOR_ADM, "You can't afford this.");
- return 1;
- }
-
- if(IsPlayerInBusiness(playerid)) {
- BusinessData[IsPlayerInBusiness(playerid)][businessCashbox]+= 30;
- }
-
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a 20 pack Cigarette! Use /smokecig, /givecig, /passcig!");
- GiveMoney(playerid, -30);
-
- PlayerData[playerid][pCigarettes] += 20;
- for(new i = 0; i < 37; i++){
- TextDrawHideForPlayer(playerid, Buymenu_TD[i]);
- CancelSelectTextDraw(playerid);
- }
- }
- if(clickedid == Buymenu_TD[34])
- {
- if(50 > PlayerData[playerid][pMoney])
- {
- SendClientMessage(playerid, COLOR_ADM, "You can't afford this.");
- return 1;
- }
-
- if(IsPlayerInBusiness(playerid))
- {
- BusinessData[IsPlayerInBusiness(playerid)][businessCashbox]+= 50;
- }
-
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Radio. Use /radio, /setchannel.");
- GiveMoney(playerid, -50);
- PlayerData[playerid][pHasRadio] = true;
- for(new i = 0; i < 37; i++){
- TextDrawHideForPlayer(playerid, Buymenu_TD[i]);
- CancelSelectTextDraw(playerid);
- }
- }
- if(clickedid == TD_mealMenu[4])
- {
- if(10 > PlayerData[playerid][pMoney])
- {
- SendClientMessage(playerid, COLOR_ADM, "You can't afford this.");
- return 1;
- }
-
- if (MealMenu[playerid][mealExists] == true)
- {
- SendClientMessage(playerid, COLOR_ADM, "ERROR: You're already carrying a meal tray.");
- ShowMealMenu(playerid, false); CancelSelectTextDraw(playerid);
- return true;
- }
-
- if(IsPlayerInBusiness(playerid))
- {
- BusinessData[IsPlayerInBusiness(playerid)][businessCashbox]+= 10;
- }
-
- GiveMoney(playerid, -10);
- ShowMealMenu(playerid, false); CancelSelectTextDraw(playerid);
-
- PlayerData[playerid][pCarryingMeal] = true;
- MealMenu[playerid][mealExists] = true;
-
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
- MealMenu[playerid][mealModel] = 2220;
-
- SetPlayerAttachedObject(playerid, 9, 2220, 1, 0.027000, 0.426000, -0.268000, 127.699913, 119.700027, -66.799972);//MealMenu[playerid][mealPos][0], MealMenu[playerid][mealPos][1], MealMenu[playerid][mealPos][2]);
- SetPlayerHealth(playerid, PlayerData[playerid][pMaxHealth]);
-
- SendClientMessage(playerid, COLOR_ADM, "You bought a meal! Use /meal to see what you can do.");
- }
- if(clickedid == TD_mealMenu[8] || clickedid == TD_mealMenu[12])
- {
- return SendClientMessage(playerid, COLOR_ADM, "We're out of this item!");
- }
- if(clickedid == TD_mealMenu[16])
- {
- ShowMealMenu(playerid, false);
- CancelSelectTextDraw(playerid);
- }
-
- if(GetPVarInt(playerid, "ViewingWarehouseMenu") == 1)
- {
- for(new i; i < 36; i++)
- {
- if(clickedid == WarehouseMenu[i])
- {
- UpdateWarehouseMenu(playerid, i);
- }
- }
- }
- }
- else if(Text:clickedid == INVALID_TEXT_DRAW){
-
- for(new i = 0; i < 37; i++) { TextDrawHideForPlayer(playerid, Buymenu_TD[i]); }
-
- if(PlayerData[playerid][pPhoneline] == GUN_SHOP_NUMBER) HideWarehouseMenu(playerid, 0);
- else HideWarehouseMenu(playerid);
-
- ShowMealMenu(playerid, false);
- DisplayClothingMenu(playerid, true);
-
- HideVehicleUI(playerid, 0);
- DeletePVar(playerid, "Viewing_OwnedCarList");
- }
- return false;
- }
- public OnVehicleSirenStateChange(playerid, vehicleid, newstate)
- {
- if (PlayerData[playerid][pLAWduty])
- {
- if (IsValidFactionCar(vehicleid))
- {
- if(FactionCar[vehicleid][carSirens])
- {
- if(newstate && !FactionCar[vehicleid][carSirenOn])
- {
- new
- model = GetVehicleModel(vehicleid),
- preset = -1;
-
- for(new i = 0; i < sizeof(g_SirenPresets); i++)
- {
- if(model == g_SirenPresets[i][SirenForModel])
- {
- preset = i;
- }
- }
-
- if(preset != -1)
- {
- FactionCar[vehicleid][carSirenObject] = CreateDynamicObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1, -1, -1, 20.0);
- AttachDynamicObjectToVehicle(FactionCar[vehicleid][carSirenObject], vehicleid, g_SirenPresets[preset][PosX], g_SirenPresets[preset][PosY], g_SirenPresets[preset][PosZ], 0.0, 0.0, 0.0);
-
- FactionCar[vehicleid][carSirenOn] = true;
- }
- }
- else
- {
- DestroyDynamicObject(FactionCar[vehicleid][carSirenObject]);
- FactionCar[vehicleid][carSirenOn] = false;
- }
- }
- }
- }
- return 1;
- }
- /*CMD:gendertest(playerid, params[])
- {
- if(PlayerData[playerid][pGender] == 1) return SendClientMessage(playerid, COLOR_WHITE, "MALE");
- else if(PlayerData[playerid][pGender] == 2) return SendClientMessage(playerid, COLOR_WHITE, "FEMALE");
- return 1;
- }
- CMD:skintest(playerid, params[])
- {
- if(PlayerData[playerid][pAdmin] < 1) return false;
- SetPlayerSkin(playerid, 20000);
- SendClientMessage(playerid, COLOR_WHITE, "[DEBUG] Skin set to 20000 (TESTING CUSTOM MODELS)");
- return 1;
- }*/
- CMD:setadmin(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return false;
- if(PlayerData[playerid][pAdmin] < 5 && !IsPlayerAdmin(playerid)) return false;
- new playerb, level;
- if (sscanf(params, "ui", playerb, level))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setadmin [playerid/PartofName] [level (0-5)]");
- if (!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if (!pLoggedIn[playerid])
- return SendClientMessage(playerid, COLOR_GREY, "You specified a player that isn't logged in.");
- if (level < 0 || (level > 5 && level != 6))
- return SendClientMessage(playerid, COLOR_ADM, "Invalid admin level.");
- else if (level == 6)
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} This admin rank cannot be set ingame. Please contact a Developer.");
-
- //format(str, sizeof(str), );
- SendAdminMessage(COLOR_ORANGE, sprintf("AdmCmd: %s made %s a level %i admin.", ReturnName(playerid, 1), ReturnName(playerb, 1), level));
- PlayerData[playerb][pAdmin] = level;
- SaveSQLInt(PlayerData[playerid][pSQLID], "players", "AdminLevel", PlayerData[playerid][pAdmin]);
- WriteLog("admin_logs/samplogs/setadmin_log.txt", "[%s] %s has set %s's admin level to %d.", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), level);
- printf("Server: [%s] %s was made an admin by %s (level %i).", ReturnDate(), ReturnName(playerb, 1), ReturnName(playerid, 1), level);
- return true;
- }
- CMD:adm(playerid, params[]) return cmd_aduty(playerid, params);
- CMD:adminduty(playerid, params[]) return cmd_aduty(playerid, params);
- CMD:aduty(playerid, params[])
- {
- if (!PlayerData[playerid][pAdmin])
- return false;
-
- new str[128];
-
- if (PlayerData[playerid][pAdminDuty] == false)
- {
- PlayerData[playerid][pAdminDuty] = true;
-
- format(str, sizeof(str), "AdmCmd: %s is now on admin duty.", ReturnName(playerid, 1));
- SendAdminMessage(COLOR_YELLOW, str);
-
- GetPlayerHealth(playerid, oldHealth[playerid]);
- SetPlayerColor(playerid, COLOR_ADMIN);
-
- foreach (new i : Player)
- {
- if (PlayerData[i][pMasked])
- {
- ShowPlayerNameTagForPlayer(playerid, i, 1);
- }
- }
- Streamer_Update(playerid);
- }
- else
- {
- PlayerData[playerid][pAdminDuty] = false;
-
- format(str, sizeof(str), "AdmCmd: %s is now off admin duty.", ReturnName(playerid, 1));
- SendAdminMessage(COLOR_YELLOW, str);
-
- if (PlayerData[playerid][pLAWduty])
- SetPlayerColor(playerid, COLOR_COP);
-
- else if (PlayerData[playerid][pHelperDuty])
- SetPlayerColor(playerid, COLOR_HELPER);
-
- else if (StartedTaxiJob[playerid])
- SetPlayerColor(playerid, COLOR_YELLOW);
-
- else
- SetPlayerColor(playerid, COLOR_WHITE);
-
- foreach (new i : Player)
- {
- if (PlayerData[i][pMasked])
- {
- ShowPlayerNameTagForPlayer(playerid, i, 0);
- }
- }
- Streamer_Update(playerid);
- SetPlayerHealth(playerid, oldHealth[playerid]);
- }
- return true;
- }
- CMD:a(playerid, params[]) return cmd_admin(playerid, params);
- CMD:admin(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /admin [admin chat]");
-
- new str[128];
- if(strlen(params) > 84)
- {
- format(str, sizeof(str), "** %s(%s): %.84s", ReturnName(playerid, 1), PlayerData[playerid][pForumName], params);
- SendAdminMessage(0x6CEFF0FF, str);
- format(str, sizeof(str), "** %s(%s): ...%s", ReturnName(playerid, 1), PlayerData[playerid][pForumName], params[84]);
- SendAdminMessage(0x6CEFF0FF, str);
- }
- else
- {
- format(str, sizeof(str), "** %s(%s): %s", ReturnName(playerid, 1), PlayerData[playerid][pForumName], params);
- SendAdminMessage(0x6CEFF0FF, str);
- }
- WriteLog("admin_logs/adminchat_log.txt", "[%s] %s said: %s", ReturnDate(), ReturnName(playerid, 1), params);
- return true;
- }
- CMD:la(playerid, params[])
- {
- if(PlayerData[playerid][pAdmin] < 4)
- return false;
- new string[128];
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /la [lead admin text]");
-
- foreach(new i : Player)
- {
- if(PlayerData[i][pAdmin] >= 4)
- {
- if(strlen(params) > 84) {
- format(string, sizeof(string), "** %s: %.84s", ReturnName(playerid, 1), params);
- SendClientMessage(i, COLOR_DARKGREEN, string);
- format(string, sizeof(string), "** %s: ...%s", ReturnName(playerid, 1), params[84]);
- SendClientMessage(i, COLOR_DARKGREEN, string);
- }
- else {
- format(string, sizeof(string), "** %s: %.s", ReturnName(playerid, 1), params);
- SendClientMessage(i, COLOR_DARKGREEN, string);
- }
- }
- }
-
- WriteLog("admin_logs/leadchat_log.txt", "[%s] %s said: %s", ReturnDate(), ReturnName(playerid), params);
- return true;
- }
- // Level 1
- CMD:goto(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return true;
- if(!PlayerData[playerid][pAdmin]) return UnAuthMessage(playerid);
- new playerb, id, location[128], string[90], str[128], Float:pos[3];
- if(sscanf(params, "u", playerb)) {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /goto [playerid OR name]");
- SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} ls, lv, sf, prison, idlewood, property, business, door");
- SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} faction, pns, car, mark, tolls, spawn, furniture");
- SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} pgarage, graffiti, map, entrance");
- return 1;
- }
- if(playerb == INVALID_PLAYER_ID)
- {
- if(sscanf(params, "s[128]S()[90]", location, string))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /goto [playerid OR name]");
- SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} ls, lv, sf, idlewood, pd, property, business faction, car, interiors");
- return true;
- }
- if(!strcmp(location, "ls", true)){
- SendPlayer(playerid, 1514.1836, -1677.8027, 14.0469, 0, 0);
- return SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- }
- else if(!strcmp(location, "lv", true)){
- SendPlayer(playerid, 1721.1599, 1444.5464, 10.5450, 0, 0);
- return SendClientMessage(playerid, COLOR_GREY, "You have been teleported.");
- }
- else if(!strcmp(location, "sf", true)){
- SendPlayer(playerid, -1751.6312, -607.6387, 16.2367, 0, 0);
- return SendClientMessage(playerid, COLOR_GREY, "You have been teleported.");
- }
- else if(!strcmp(location, "lv", true)){
- SendPlayer(playerid, 2098.6453,-1760.2810, 13.5625, 0, 0);
- return SendClientMessage(playerid, COLOR_GREY, "You have been teleported.");
- }
- else if(!strcmp(location, "idlewood", true)){
- SendPlayer(playerid, 2083.3252, -1758.8643, 13.5625, 0, 0);
- return SendClientMessage(playerid, COLOR_GREY, "You have been teleported.");
- }
- else if(!strcmp(location, "prison", true)){
- SendPlayer(playerid, -351.7723, 1597.3220, 76.3849, 0, 0);
- return SendClientMessage(playerid, COLOR_GREY, "You have been teleported.");
- }
- else if(!strcmp(location, "spawn", true)){
- SendPlayer(playerid, 1642.1362, -2332.5950, -2.6797, 0, 0);
- return SendClientMessage(playerid, COLOR_GREY, "You have been teleported.");
- }
- else if(!strcmp(location, "property", true)){
- if(sscanf(string, "d", id))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /goto property [propid]");
- if(id < 1 || id > MAX_PROPERTY || !PropertyData[id][propertyid])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid house ID.");
- SendPlayer(playerid, PropertyData[id][propertyExterior][0], PropertyData[id][propertyExterior][1], PropertyData[id][propertyExterior][2], PropertyData[id][propertyExteriorID], PropertyData[id][propertyExteriorWorld]);
- if(!PropertyData[id][propertyOwnerSQL])
- format(str, sizeof(str), "SERVER: You teleported to property %d that's for sale.", id);
- else
- format(str, sizeof(str), "SERVER: You teleported to property %d owned by %s.", id, ReturnSQLName(PropertyData[id][propertyOwnerSQL]));
- SendClientMessage(playerid, COLOR_YELLOW, str);
-
- return true;
- }
- else if(!strcmp(location, "business", true)){
- if(sscanf(string, "d", id))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /goto business [bizid]");
-
- if(id < 1 || id > MAX_BUSINESS || !BusinessData[id][businessID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid business ID.");
-
- SendPlayer(playerid, BusinessData[id][businessExt][0], BusinessData[id][businessExt][1], BusinessData[id][businessExt][2], 0, 0);
-
- if (!BusinessData[id][businessOwnerSQL])
- format(str, sizeof(str), "SERVER: You teleported to business %d that's for sale", id);
-
- else
- format(str, sizeof(str), "SERVER: You teleported to business %d owned by %s", id, ReturnSQLName(BusinessData[id][businessOwnerSQL]));
-
- SendClientMessage(playerid, COLOR_YELLOW, str);
-
- return true;
- }
- else if(!strcmp(location, "door", true)){
- if(sscanf(string, "d", id))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /goto door [doorid]");
-
- if(id > MAX_DOORS || !DoorData[id][doorID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid door ID.");
-
- SendPlayer(playerid, DoorData[id][doorPos][0], DoorData[id][doorPos][1], DoorData[id][doorPos][2], DoorData[id][doorPosWorld], DoorData[id][doorPosIntID]);
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- return true;
- }
- else if(!strcmp(location, "pgarage", true)){
- if(sscanf(string, "d", id))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /goto pgarage [property garage id]");
-
- if(id > MAX_PROPERTY_GARAGES || !GarageData[id][garageSQLID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid property garage.");
- SendPlayer(playerid, GarageData[id][garagePos][0], GarageData[id][garagePos][1], GarageData[id][garagePos][2], 0, 0);
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- return true;
- }
- else if(!strcmp(location, "furniture", true)){
- if(sscanf(string, "d", id))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /goto furniture [ferid] ");
- if(!FurnitureData[id][furnitureSQLID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid door ID.");
-
- SendPlayer(playerid, FurnitureData[id][furniturePos][0], FurnitureData[id][furniturePos][1], FurnitureData[id][furniturePos][2], PropertyData[FurnitureData[id][furniturePropertyID]][propertyInteriorID], PropertyData[FurnitureData[id][furniturePropertyID]][propertyInteriorWorld]);
- return true;
- }
- else if(!strcmp(location, "faction", true)){
- if(sscanf(string, "d", id))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /goto faction [factionid]");
- if(id < 1 || id > MAX_FACTIONS || !FactionData[id][factionID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You have specified an invalid faction ID.");
- format(str, sizeof(str), "SERVER: You teleported to %s's faction spawn.", FactionData[id][factionName]);
- SendClientMessage(playerid, COLOR_YELLOW, str);
-
- SendPlayer(playerid, FactionData[id][factionSpawn][0], FactionData[id][factionSpawn][1], FactionData[id][factionSpawn][2], 0, 0);
-
- return true;
- }
- else if(!strcmp(location, "pns", true)){
- if(sscanf(string, "d", id))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /goto pns [pns id]");
-
- if(id < 1 || id > MAX_PAYNSPRAY || !PNSData[id][pnsID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You have specified an invalid Pay n Spray ID.");
-
- format(str, sizeof(str), "SERVER: You teleported to Pay n' Spray %d", id);
- SendClientMessage(playerid, COLOR_YELLOW, str);
-
- SendPlayer(playerid, PNSData[id][pnsEntrance][0], PNSData[id][pnsEntrance][1], PNSData[id][pnsEntrance][2], 0, 0);
- return true;
- }
- else if(!strcmp(location, "tolls", true)){
- if(sscanf(string, "d", id))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /goto tolls [toll id]");
-
- if(id < 1 || id > MAX_TOLLS || !TollsData[id][tollID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You have specified an invalid toll booth ID.");
-
- format(str, sizeof(str), "SERVER: You teleported to Toll Booth %d", id);
- SendClientMessage(playerid, COLOR_YELLOW, str);
-
- SendPlayer(playerid, TollsData[id][tollPointA][0], TollsData[id][tollPointA][1], TollsData[id][tollPointA][2], 0, 0);
- return true;
- }
- else if(!strcmp(location, "car", true)){
- if(sscanf(string, "d", id))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /goto car [vehicleid]");
-
- if(id < 0 || id > MAX_VEHICLES || !IsValidVehicle(id))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You have specified an invalid vehicle ID.");
-
- new Float: Pos[3];
- GetVehiclePos(id, Pos[0], Pos[1], Pos[2]);
-
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, Pos[0], Pos[1], Pos[2], GetVehicleInterior(id), GetVehicleVirtualWorld(id));
-
- return true;
- }
- else if(!strcmp(location, "mark", true)){
- SendPlayer(playerid, PlayerData[playerid][pMark][0], PlayerData[playerid][pMark][1], PlayerData[playerid][pMark][2], 0, 0);
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
-
- return true;
- }
- else if(!strcmp(location, "graffiti", true)){
- if (sscanf(string, "d", id))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /goto graffiti [id]");
- if(id < 0 || id > MAX_GRAFFITI_SPOTS)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Graffiti's only exist between 0-30.");
-
- SendPlayer(playerid, g_aGraffitiData[id][graffitiPosX], g_aGraffitiData[id][graffitiPosY], g_aGraffitiData[id][graffitiPosZ], 0, 0);
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- return true;
- }
- else if(!strcmp(location, "map", true)){
- if(sscanf(string, "d", id)) return SendClientMessage(playerid, COLOR_ADM, "USAGE: /goto map [id]");
- if(id < 0 || id > MAX_SERVER_OBJECTS || !ObjectData[id][ObjectDBID]) return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid ID.");
-
- SendPlayer(playerid, ObjectData[id][Object_PosX], ObjectData[id][Object_PosY], ObjectData[id][Object_PosZ], ObjectData[id][Object_Interior], ObjectData[id][Object_World]);
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- return 1;
- }
- else if(!strcmp(location, "entrance", true)){
- if(sscanf(string, "d", id))return SendClientMessage(playerid, COLOR_ADM, "USAGE: /goto entrance [ID]");
-
- if(id < 0 || id > 30 || !Entrances[id][InteriorDBID])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid ID.");
-
- SendPlayer(playerid, Entrances[id][Entrance][0], Entrances[id][Entrance][1], Entrances[id][Entrance][2], Entrances[id][EntranceInteriorID], Entrances[id][EntranceWorld]);
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- return 1;
- }
- else return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- }
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You specified a player that isn't logged in.");
- if(PlayerData[playerb][pSpectator] != -1)return SendClientMessage(playerid, COLOR_GREY, "Their spectating someone already.");
- if (IsPlayerInBusiness(playerid)) PlayerData[playerid][pInsideBusiness] = 0;
- GetPlayerPos(playerb, pos[0], pos[1], pos[2]);
- SendPlayer(playerid, pos[0] + 1, pos[1], pos[2], GetPlayerInterior(playerb), GetPlayerVirtualWorld(playerb));
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- return true;
- }
- CMD:gethere(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
- new playerb, Float:pos[3];
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /gethere [playerid/PartofName]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You specified a player that isn't logged in.");
- GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
- SendPlayer(playerb, pos[0], pos[1], pos[2], GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid));
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- return true;
- }
- CMD:kick(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pHelper] && !PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
- new playerb, reason[128], query[400], str[128];
- if(sscanf(params, "us[128]", playerb, reason))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /kick [playerid/PartofName] [reason]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(PlayerData[playerb][pAdmin] > PlayerData[playerid][pAdmin])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't kick higher level admins.");
- if(strlen(reason) > 55)
- {
- SendMessageToAll(COLOR_ADM, "AdmCmd: %s was kicked by %s, Reason: %.55s", ReturnName(playerb, 1), ReturnName(playerid, 1), reason);
- SendMessageToAll(COLOR_ADM, "AdmCmd: ...%s", reason[55]);
- }
- else
- {
- SendMessageToAll(COLOR_ADM, "AdmCmd: %s was kicked by %s, Reason: %s", ReturnName(playerb, 1), ReturnName(playerid, 1), reason);
- }
-
- for(new i = 1; i < MAX_ADMIN_NOTES; i++)
- {
- if(aNotesData[playerb][i][anote_SQLID] != 0)
- {
- if(aNotesData[playerb][i][anote_active])
- {
- if(strlen(aNotesData[playerb][i][anote_reason]) > 45)
- {
- format(str, sizeof(str), "Player %s has %d active OnAdminAction notes on him, last is: %.45s", ReturnName(playerb, 1), CountAdminNotes(playerb), aNotesData[playerb][i][anote_reason]);
- adminWarn(1, str);
-
- format(str, sizeof(str), "...%s", aNotesData[playerb][i][anote_reason][45]);
- adminWarn(1, str);
- }
- else
- {
- format(str, sizeof(str), "Player %s has %d active OnAdminAction notes on him, last is: %s", ReturnName(playerb, 1), CountAdminNotes(playerb), aNotesData[playerb][i][anote_reason]);
- adminWarn(1, str);
- }
- }
- }
- }
- printf("[DEBUG] AdmCmd: %s was kicked by %s, Reason: %s", ReturnName(playerb, 1), ReturnName(playerid, 1), reason);
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO log_kicks (`Name`, `Reason`, `KickedBy`, `Date`, `IP`) VALUES('%e', '%e', '%e', '%e', '%e')", ReturnName(playerb, 1), reason, ReturnName(playerid, 1), ReturnDateLog(), ReturnIP(playerb));
- mysql_pquery(m_Handle, query);
-
- WriteLog("admin_logs/punishments/kick_log.txt", "[%s] %s kicked %s, Reason: %s", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), reason);
-
- KickEx(playerb);
- return true;
- }
- CMD:offlineajail(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
-
- new playerb[30], minutes, reason[128], query[128];
- if(sscanf(params, "s[30]ds[128]", playerb, minutes, reason))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /offlineajail [Firstname_Lastname] [time] [reason]");
- if(minutes < 1)return SendClientMessage(playerid, COLOR_GREY, "You can't admin jail a player for under 1 minute.");
-
- PlayerData[playerid][pSetTime] = minutes;
- format(PlayerData[playerid][pSetReason], 128, "%s", reason);
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT Name, OfflineAjail, AjailTime, OfflineAjailReason FROM `players` WHERE Name = '%e'", playerb);
- mysql_pquery(m_Handle, query, "SQL_OnOfflineJail", "i", playerid);
-
- return true;
- }
- CMD:ajail(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
- new playerb, minutes, query[400], reason[128], str[128];
- if(sscanf(params, "uds[128]", playerb, minutes, reason))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /ajail [playerid/PartofName] [minutes] [reason]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You specified a player that isn't logged in.");
- if(minutes < 1)return SendClientMessage(playerid, COLOR_GREY, "You can't admin jail a player for under 1 minute.");
- ClearAnimations(playerb);
- SetPlayerPos(playerb, 2578.929931, 2658.771728, 10.820312);
- SetPlayerVirtualWorld(playerb, playerb);
- SetPlayerInterior(playerb, 0);
-
- ResetHouseVar(playerid);
- ClearPlayerWeapons(playerid, 0);
- PlayerData[playerb][pAjailed] = true;
- PlayerData[playerb][pAjailTime] = minutes * 60;
-
- if(StartedTruckerMission[playerb])
- {
- EndTruckerMission(playerb);
- }
-
- if(InTaxiRide[playerb])
- {
- foreach(new i : Player) if(PlayerData[i][pSQLID] == TaxiDriver[playerb])
- {
- SendClientMessage(i, COLOR_YELLOW, "-> A person in your taxi was admin jailed. You were compensated regardless.");
- }
-
- EndTaxiFair(playerb);
- }
-
- if(StartedTaxiJob[playerb] && TaxiFairStarted[playerb])
- {
- foreach(new i : Player) if(TaxiDriver[i] == PlayerData[playerb][pSQLID])
- {
- SendClientMessage(i, COLOR_YELLOW, "-> Your taxi driver was admin jailed. The fair ended.");
- EndTaxiFair(i);
- }
-
- EndTaxiFairDriver(playerb);
- }
-
- if(OrderedWeapon[playerb])
- ClearPlayerOrder(playerid);
- if(strlen(reason) > 45)
- {
- SendMessageToAll(COLOR_ADM, "AdmCmd: %s has been admin jailed by %s for %d minutes, Reason: %.45s", ReturnName(playerb, 1), ReturnName(playerid, 1), minutes, reason);
- SendMessageToAll(COLOR_ADM, "AdmCmd: ...%s", reason[45]);
- }
- else
- {
- SendMessageToAll(COLOR_ADM, "AdmCmd: %s has been admin jailed by %s for %d minutes, Reason: %s", ReturnName(playerb, 1), ReturnName(playerid, 1), minutes, reason);
- }
-
- for(new i = 1; i < MAX_ADMIN_NOTES; i++)
- {
- if(aNotesData[playerb][i][anote_SQLID] != 0)
- {
- if(aNotesData[playerb][i][anote_active])
- {
- if(strlen(aNotesData[playerb][i][anote_reason]) > 45)
- {
- format(str, sizeof(str), "Player %s has %d active OnAdminAction notes on him, last is: %.45s", ReturnName(playerb, 1), CountAdminNotes(playerb), aNotesData[playerb][i][anote_reason]);
- adminWarn(1, str);
-
- format(str, sizeof(str), "...%s", aNotesData[playerb][i][anote_reason][45]);
- adminWarn(1, str);
- }
- else
- {
- format(str, sizeof(str), "Player %s has %d active OnAdminAction notes on him, last is: %s", ReturnName(playerb, 1), CountAdminNotes(playerb), aNotesData[playerb][i][anote_reason]);
- adminWarn(1, str);
- }
- }
- }
- }
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO log_ajail (`Name`, `Reason`, `JailedBy`, `Date`, `Time`, `IP`) VALUES('%e', '%e', '%e', '%e', %i, '%e')", ReturnName(playerb, 1), reason, ReturnName(playerid, 1), ReturnDateLog(), minutes, ReturnIP(playerb));
- mysql_pquery(m_Handle, query);
-
- WriteLog("admin_logs/punishments/ajail_log.txt", "[%s] %s has admin jailed %s for %d minutes, Reason: %s", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), minutes, reason);
- return true;
- }
- CMD:release(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
- new playerb;
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /release [playerid/PartofName]");
- if(!IsPlayerConnected(playerb)) return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb]) return SendClientMessage(playerid, COLOR_GREY, "You specified a player that isn't logged in.");
- if(!PlayerData[playerb][pAjailed] && !PlayerData[playerb][pICJailed]) return SendClientMessage(playerid, COLOR_GREY, "That player isn't in admin jail or jail.");
- if(PlayerData[playerb][pAjailed])
- {
- SendMessageToAll(COLOR_ADM, "AdmCmd: %s has been released from admin jail by %s.", ReturnName(playerb, 1), ReturnName(playerid, 1));
-
- PlayerData[playerb][pAjailed] = false;
- PlayerData[playerb][pAjailTime] = 0;
- }
- if(PlayerData[playerb][pICJailed])
- {
- SendMessageToAll(COLOR_ADM, "AdmCmd: %s has been released from prison/jail by %s.", ReturnName(playerb, 1), ReturnName(playerid, 1));
-
- PlayerData[playerb][pICJailTime] = 0;
- PlayerData[playerb][pICJailed] = 0;
- PlayerData[playerb][pICJailNotify] = 0;
-
- DestroyDynamic3DTextLabel(PlayerData[playerid][pICJail3D]);
- TotalJailees--;
- }
- SendPlayer(playerb, 1553.0421, -1675.4706, 16.1953, 0, 0);
- SendClientMessage(playerb, COLOR_GREY, "You have paid your debt to society.");
- WriteLog("admin_logs/punishments/release_log.txt", "[%s] %s released %s from admin jail", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1));
- if (IsValidDynamic3DTextLabel(PlayerData[playerb][pICJail3D])) {
- DestroyDynamic3DTextLabel(PlayerData[playerb][pICJail3D]);
- }
- return true;
- }
- CMD:jetpack(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
- PlayerData[playerid][pJetpack] = 1;
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
- return true;
- }
- CMD:setskin(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return true;
- if(!PlayerData[playerid][pAdmin]) return UnAuthMessage(playerid);
- new playerb, skinid, string[128];
- if(sscanf(params, "ui", playerb, skinid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setskin [playerid/PartofName] [skinid]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You specified a player that isn't logged in.");
- if((skinid <= 0 || skinid == 74 || skinid > 50000) && PlayerData[playerid][pAdmin] != 6) return SendClientMessage(playerid, COLOR_GREY, "You specified a skin ID that isn't valid.");
- PlayerData[playerb][pSkin] = skinid;
- SetPlayerSkin(playerb, skinid);
- format(string, sizeof(string), "AdmCmd: %s set %s's skin to %d", ReturnName(playerid, 1), ReturnName(playerb, 1), skinid);
- SendClientMessage(playerid, COLOR_GREY, string);
- SaveSQLInt(PlayerData[playerid][pSQLID], "players", "Skin", PlayerData[playerid][pSkin]);
- WriteLog("admin_logs/setskin_log.txt", "[%s] %s has set %s's skin id to %d.", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), skinid);
- return true;
- }
- CMD:setint(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin] && !PlayerData[playerid][pHelper])return UnAuthMessage(playerid);
- new playerb, interior, string[128];
- if(sscanf(params, "ui", playerb, interior))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setint [playerid/PartofName] [interiorid]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You specified a player that isn't logged in.");
- SetPlayerInterior(playerb, interior);
- format(string, sizeof(string), "AdmCmd: %s set %s's interior to %d", ReturnName(playerid, 1), ReturnName(playerb, 1), interior);
- SendClientMessage(playerid, COLOR_GREY, string);
-
- if(playerb != playerid){
- format(string, sizeof(string), "AdmCmd: %s set %s's interior to %d", ReturnName(playerid, 1), ReturnName(playerb, 1), interior);
- SendClientMessage(playerb, COLOR_GREY, string);
- }
- return true;
- }
- CMD:setworld(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return true;
- if(!PlayerData[playerid][pAdmin] && !PlayerData[playerid][pHelper]) return UnAuthMessage(playerid);
- new playerb, world, string[128];
- if(sscanf(params, "ui", playerb, world))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setworld [playerid/PartofName] [virtualworld]");
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_GREY, "You specified a player that isn't logged in.");
- SetPlayerVirtualWorld(playerb, world);
- format(string, sizeof(string), "AdmCmd: %s set %s's virtual world to %d", ReturnName(playerid, 1), ReturnName(playerb, 1), world);
- SendClientMessage(playerid, COLOR_GREY, string);
-
- if(playerb != playerid){
- format(string, sizeof(string), "AdmCmd: %s set %s's virtual world to %d", ReturnName(playerid, 1), ReturnName(playerb, 1), world);
- SendClientMessage(playerb, COLOR_GREY, string);
- }
- return true;
- }
- //
- CMD:adminsys(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
- new
- user[60], type[30], query[256];
-
- if(sscanf(params, "s[60]s[30]", user, type))
- return SendClientMessage(playerid, COLOR_RED, "SERVER: /adminsys [username] [details, listaccounts]");
-
- if(!ReturnSQLFromName(user))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: The user you specified doesn't exist. ");
-
- if(!strcmp(type, "details"))
- {
- Message(playerid, COLOR_GOLD, "* You're viewing %s's user data.", user);
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM players WHERE id = %i", ReturnSQLFromName(user));
- new Cache:cache = mysql_query(m_Handle, query);
-
- new RegisterIP[32];
- new LastConnection[90];
- new LastConnectLength;
- new Money, Bank, Levelx, Exp, MaskID, MaskIDEx, Adminjailed, MaxHealth, Crashed;
- new ActiveIP[32];
- cache_get_value_name(0, "RegisterIP", RegisterIP);
-
- cache_get_value_name_int(0, "Money", Money);
- cache_get_value_name_int(0, "Bank", Bank);
-
- cache_get_value_name_int(0, "Level", Levelx);
- cache_get_value_name_int(0, "Exp", Exp);
-
-
- cache_get_value_name(0, "IP", ActiveIP, 32);
-
- cache_get_value_name_int(0, "MaskID", MaskID);
- cache_get_value_name_int(0, "MaskIDEx", MaskIDEx);
-
- cache_get_value_name_int(0, "Adminjailed", Adminjailed);
- cache_get_value_name_int(0, "MaxHealth", MaxHealth);
-
- cache_get_value_name_int(0, "Crashed", Crashed);
-
- cache_get_value_name(0, "LastConnection", LastConnection, 90);
-
- cache_get_value_name_int(0, "LastConnectLength", LastConnectLength);
-
- new Float:LastHealth;
- cache_get_value_name_float(0, "LastHealth", LastHealth);
- new Float:LastArmor;
- cache_get_value_name_float(0, "LastArmor", LastArmor);
-
- new Phone;
- cache_get_value_name_int(0, "Phone", Phone);
- new BurnerPhone;
- cache_get_value_name_int(0, "BurnerPhoneNumber", BurnerPhone);
-
- new HWID[90];
- cache_get_value_name(0, "HWID", HWID, 90);
-
- cache_delete(cache);
-
- Message(playerid, COLOR_GRAD2, "Registered IP Address:[%s] Last IP Address:[%s]", RegisterIP, ActiveIP);
- Message(playerid, COLOR_GRAD1, "Money:[$%s] Bank:[$%s]", MoneyFormat(Money), MoneyFormat(Bank));
- Message(playerid, COLOR_GRAD2, "Level:[%i] EXP: [%i] MaskID:[%d_%d] MaxHealth:[%i/150] Admin jailed:[%s]", Levelx, Exp, MaskID, MaskIDEx, MaxHealth, (Adminjailed != 1) ? ("No") : ("Yes"));
- Message(playerid, COLOR_GRAD1, "LastArmor:[%.2f] LastHealth:[%.2f] Phone:[%i] BurnerPhone:[%i]", LastArmor, LastHealth, Phone, BurnerPhone);
- Message(playerid, COLOR_GRAD2, "Crashed last connection:[%s] Last Connection:[%s]", (Crashed != 1) ? ("No") : ("Yes"), LastConnection);
- Message(playerid, COLOR_GRAD1, "Last Connection length:[%i Minutes]", LastConnectLength);
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT id FROM bans WHERE Name = '%e'", user);
- mysql_tquery(m_Handle, query, "CheckNameForBan", "is", playerid, user);
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT id, Name FROM `bans` WHERE `IP` = '%e' AND `HWID` = '%e' OR `HWID` = '%e' OR `IP` = '%e'", ActiveIP, HWID, HWID, ActiveIP);
- mysql_tquery(m_Handle, query, "OnBanCheck", "is", playerid, user);
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT weapon_id, ammo FROM player_weapons WHERE player_dbid = %i", ReturnSQLFromName(user));
- mysql_tquery(m_Handle, query, "OnWeaponsCheck", "i", playerid);
- }
- else if(!strcmp(type, "listaccounts"))
- {
- Message(playerid, COLOR_GOLD, "* You're viewing accounts associated with %s.", user);
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT IP FROM players WHERE id = %i", ReturnSQLFromName(user));
- mysql_tquery(m_Handle, query, "OnListAccounts", "is", playerid, user);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- return 1;
- }
- CMD:adminp(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- ShowAdminPanel(playerid);
- return 1;
- }
- CMD:ipsys(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return 0;
- new
- user[60], query[256];
-
- if(sscanf(params, "s[60]", user))
- return SendClientMessage(playerid, COLOR_RED, "SERVER: /ipsys [ip address]");
-
- if(!DoesIPExist(user))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: That IP address isn't in our database.");
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT Name FROM players WHERE IP = '%e' AND RegisterIP = '%e' OR IP = '%e' OR RegisterIP = '%e'", user, user, user, user);
- new Cache:cache = mysql_query(m_Handle, query);
-
- Message(playerid, COLOR_GOLD, "* You're viewing IP Address (%s) associations.", user);
-
- new
- Name[34];
-
- for(new i = 0; i < cache_num_rows(); i++)
- {
- cache_get_value_name(i, "Name", Name);
- Message(playerid, COLOR_GOLD, "** %s", Name);
- }
- cache_delete(cache);
- return 1;
- }
- CMD:bansys(playerid, params[])
- {
- new
- query[128], id;
-
- if(!PlayerData[playerid][pAdmin] && !PlayerData[playerid][pHelper])
- return 0;
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /bansys [ban ID or username]");
-
- if(IsNumeric(params))
- {
- id = strval(params);
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM bans WHERE id = %i", id);
- mysql_tquery(m_Handle, query, "OnBanSys", "i", playerid);
- }
- else
- {
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM bans WHERE Name = '%e'", params);
- mysql_tquery(m_Handle, query, "OnBanSys", "i", playerid);
- }
- return 1;
- }
- CMD:arecord(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return 0;
-
- new
- str_a[30], b_str[90], query[128];
- if(sscanf(params, "s[30]s[90]", str_a, b_str))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /arecord [username] [bans, ajails, kicks]");
-
- if(!ReturnSQLFromName(str_a))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: The username you specified doesn't exist.");
-
- if(!strcmp(b_str, "bans"))
- {
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM log_bans WHERE Name = '%e' ORDER BY id DESC", str_a);
- mysql_tquery(m_Handle, query, "OnBanLookup", "is", playerid, str_a);
- }
- else if(!strcmp(b_str, "ajails"))
- {
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM log_ajail WHERE Name = '%e' ORDER BY id DESC", str_a);
- mysql_tquery(m_Handle, query, "OnAjailLookup", "is", playerid, str_a);
- }
- else if(!strcmp(b_str, "kicks"))
- {
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM log_kicks WHERE Name = '%e' ORDER BY id DESC", str_a);
- mysql_tquery(m_Handle, query, "OnKickLookup", "is", playerid, str_a);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- return 1;
- }
- CMD:as(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return 0;
-
- new
- playerb,
- Float:Health,
- Float:Armor
- ;
-
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /as [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You specified an invalid player.");
-
- if(!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: That player hasn't logged in yet.");
-
- GetPlayerHealth(playerb, Health); GetPlayerArmour(playerb, Armor);
-
- SendClientMessage(playerid, COLOR_DARKGREEN, "____________________________________________");
- Message(playerid, COLOR_ADM, "Players name: %s (Packetloss: %f)", ReturnName(playerb), NetStats_PacketLossPercent(playerb));
-
- for(new i = 0; i < MAX_POSSIBLE_WEAPONS; i++) if(Weapon[playerb][i][eWeaponID])
- {
- Message(playerid, COLOR_GREY, "Weapon: [%s(%i)] Ammo: [%i]", ReturnWeaponName(Weapon[playerb][i][eWeaponID]), Weapon[playerb][i][eWeaponID], Weapon[playerb][i][eWeaponAmmo]);
- }
-
- Message(playerid, COLOR_GREY, "Interior: [%i], World: [%i] Car ID: [%i], State: [%i], Health: [%f], Armor: [%f]", GetPlayerInterior(playerb), GetPlayerVirtualWorld(playerid), _has_spawned_vehicleid[playerb], GetPlayerState(playerb), Health, Armor);
- Message(playerid, COLOR_GREY, "Money out: [$%s] - Should have: [$%s] - Ajail time: [%i] Ajail: [%i] ", MoneyFormat(GetPlayerMoney(playerb)), MoneyFormat(PlayerData[playerb][pMoney]), PlayerData[playerb][pAjailTime], PlayerData[playerb][pAjailed]);
- Message(playerid, COLOR_GREY, "CH1: [%i] CH2: [%i] CH3: [%i] CH4: [%i] Crashed: [%s]", PlayerData[playerb][pRadio][0], PlayerData[playerb][pRadio][1], PlayerData[playerb][pRadio][2], PlayerData[playerb][pRadio][3], (PlayerData[playerb][pCrashed] != 1) ? ("No") : ("Yes"));
- Message(playerid, COLOR_GREY, "AFK Time: [%i] UserID: [%i] Last ME/DO: [%i] Skin: [%i] Mask: [%i_%i]", PlayerData[playerb][pPauseTime], PlayerData[playerb][pSQLID], gettime() - PlayerData[playerb][pLastEmoteTime], GetPlayerSkin(playerb), PlayerData[playerb][pMaskID], PlayerData[playerb][pMaskIDEx]);
- Message(playerid, COLOR_GREY, "Last CMD: [%i] Last Talk:[%i] Seconds on: [%i]", gettime() - PlayerData[playerb][pLastCMDTime], gettime() - PlayerData[playerb][pLastChat], NetStats_GetConnectedTime(playerb));
- return 1;
- }
- CMD:checkmask(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new
- str[128], query[128], primary, sub;
-
- if(sscanf(params, "ii", primary, sub))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /checkmask Value Value (i.e: /checkmask 40404 21)");
-
- if(primary < 200000 || sub < 40)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You specified an impossible Mask ID.");
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT Name FROM players WHERE MaskID = %i AND MaskIDEx = %i LIMIT 1", primary, sub);
- new Cache:cache = mysql_query(m_Handle, query);
- new Name[60];
-
- if(!cache_num_rows())
- {
- cache_delete(cache);
-
- format(str, sizeof(str), "[-] [Mask %d_%d] does not exist in the database.", primary, sub);
- SendClientMessage(playerid, COLOR_ADM, str);
- return 1;
- }
-
- cache_get_value_name(0, "Name", Name);
-
- format(str, sizeof(str), "[-] [Mask %d_%d] is used by '%s'", primary, sub, Name);
- SendClientMessage(playerid, COLOR_ADM, str);
-
- cache_delete(cache);
- return 1;
- }
- CMD:findweapon(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new
- weapon_id, weapon, ammo;
-
- if(sscanf(params, "i", weapon_id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /findweapon [weapon id]");
-
- SendClientMessage(playerid, COLOR_ADM, "Players with that weapon:");
-
- foreach(new i : Player)
- {
- for(new f = 0; f < 13; f++)
- {
- GetPlayerWeaponData(i, f, weapon, ammo);
- if(weapon == weapon_id)
- {
- Message(playerid, COLOR_GREY, "%s(ID: %i) - %s [Ammo: %d]", ReturnName(i), i, ReturnWeaponName(weapon), ammo);
- }
- }
- }
- return 1;
- }
- CMD:checkvehdrugs(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new vehicleid, string[128];
-
- if(sscanf(params, "i", vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /checkvehdrugs [vehicle id]");
-
- if(!IsValidVehicle(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid vehicle.");
-
- if(!IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: That isn't a player car.");
-
- Message(playerid, COLOR_ADM, "VEHICLE ID: [%i] DBID ID: [%i] USER ID:[%i]", vehicleid, CarData[vehicleid][carID], CarData[vehicleid][carOwnerID]);
-
- for (new i = 0; i < 10; i++)
- {
- if (CarDrugData[vehicleid][i][drugQuantity] > 0)
- {
- format(string, sizeof(string), "[ {FFFFFF}%d. %s (%s: %.1f%s/%.1f%s) (Strength: %d) {FF6347}]",
- i, GetPackageType(CarDrugData[vehicleid][i][drugPackage]), ReturnDrugsName(CarDrugData[vehicleid][i][drugType]), CarDrugData[vehicleid][i][drugQuantity], (IsPill(CarDrugData[vehicleid][i][drugType]) == 1) ? (" Pills") : ("g"),
- GetPackageCapacity(CarDrugData[vehicleid][i][drugPackage], CarDrugData[vehicleid][i][drugType]), (IsPill(CarDrugData[vehicleid][i][drugType]) == 1) ? (" Pills") : ("g"), CarDrugData[vehicleid][i][drugStrength]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- return 1;
- }
- CMD:checkvehpackages(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new vehicleid;
-
- if(sscanf(params, "i", vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /checkvehpackages [vehicle id]");
-
- if(!IsValidVehicle(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid vehicle.");
-
- if(!IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: That isn't a player car.");
-
- Message(playerid, COLOR_ADM, "VEHICLE ID: [%i] DBID ID: [%i] USER ID:[%i]", vehicleid, CarData[vehicleid][carID], CarData[vehicleid][carOwnerID]);
- DisplayVehiclePackages(playerid, vehicleid, 0);
- return 1;
- }
- CMD:arealookup(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /arealookup [name] to lookup players in that area");
-
- Message(playerid, COLOR_ADM, "Players in the '%s' area:", params);
-
- foreach(new i : Player)
- {
- if(!pLoggedIn[i])
- continue;
-
- if(!strcmp(ReturnLocation(i), params, true))
- {
- Message(playerid, COLOR_GREY, "%s[ID: %i] was found", ReturnName(i), i);
- }
- }
- return 1;
- }
- CMD:nearme(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new
- Float:distance,
- Float:x,
- Float:y,
- Float:z
- ;
-
- if(sscanf(params, "F(25.0)", distance))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /nearme [distance] Default 25.0 Players near you");
-
- Message(playerid, COLOR_ADM, "Players within %f radius of you:", distance);
-
- GetPlayerPos(playerid, x, y, z);
- foreach(new i : Player)
- {
- if(i == playerid)
- continue;
-
- if(IsPlayerInRangeOfPoint(i, distance, x, y, z))
- {
- Message(playerid, COLOR_GREY, "%s[ID: %i] Is Masked: %s Car ID: %i", ReturnName(i), i, (PlayerData[i][pMasked] != 1) ? ("No") : ("Yes"), GetPlayerVehicleID(i));
- }
- }
-
- return 1;
- }
- CMD:watchdamages(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new playerb;
-
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /watchdamages [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: Player isn't connected.");
-
- if(!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: Player isn't logged in.");
-
- if(!WatchingDamages[playerid][playerb])
- {
- Message(playerid, COLOR_ADM, "You're now watching the damages %s(%i) takes.", ReturnName(playerb), playerb);
- WatchingDamages[playerid][playerb] = 1;
- }
- else
- {
- Message(playerid, COLOR_ADM, "You're no longer watching %s's damages.", ReturnName(playerb), playerb);
- WatchingDamages[playerid][playerb] = 0;
- }
- return 1;
- }
- CMD:vlog(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new
- vehicleid;
-
- if(sscanf(params, "i", vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /vlog [vehicleid]");
-
- if(!IsValidVehicle(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid vehicle.");
-
- if(!IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: That isn't a valid player vehicle.");
-
- PlayerVlogVehicle[playerid] = vehicleid;
- ShowVehicleLogs(playerid, vehicleid, 1);
- return 1;
- }
- CMD:listvehicles(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new playerb;
-
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /listvehicles [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: Player isn't connected.");
-
- if(!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: Player isn't logged in.");
-
- Message(playerid, COLOR_ADM, "Player %s[ID: %i] has vehicles:", ReturnName(playerb), playerb);
-
- for(new i = 0; i < MAX_OWNED_CARS; i++) if(PlayerData[playerb][pOwnedCar][i])
- Message(playerid, COLOR_GREY, "Vehicle DBID: [%i]", PlayerData[playerb][pOwnedCar][i]);
-
- return 1;
- }
- CMD:log(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
- return SendClientMessage(playerid, COLOR_ADM, "Command disabled. Please contact a Developer or Hossenberg for logs.");
-
- /*new playerb;
-
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /log [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid player.");
-
- if(!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "That player hasn't logged in yet.");
-
- PlayerLogPlayer[playerid] = playerb;
- ShowPlayerLogs(playerid, playerb, 1);*/
- //return 1;
- }
- CMD:desync(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new
- playerb;
-
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /desync [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid player.");
-
- if(!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "That player hasn't logged in yet.");
-
- Message(playerid, COLOR_ADM, "[ ! ] %s is %s", ReturnName(playerb), (GetPlayerDrunkLevel(playerb) != 0) ? ("not desynced right now.") : ("DESYNCED!"));
- return 1;
- }
- CMD:getincar(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new vehicleid, seat;
- new string[128];
-
- if(sscanf(params, "ii", vehicleid, seat))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /getincar [vehicleid] [seat]");
-
- if(seat < 0 || seat > 4)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: Invalid seat.");
- if(!IsValidVehicle(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid vehicle.");
-
- if(!IsSeatAvailable(vehicleid, seat))
- return SendClientMessage(playerid, COLOR_ADM, "There's a player in that seat.");
-
- if(NoEngineCar(vehicleid) && seat > 0)
- return SendClientMessage(playerid, COLOR_ADM, "That's a bike, use seat ID 0.");
-
- new vworld;
- vworld = GetVehicleVirtualWorld(vehicleid);
-
- PutPlayerInVehicle(playerid, vehicleid, seat);
- SetPlayerVirtualWorld(playerid, vworld);
-
- if(PlayerData[playerid][pAdmin] < 3)
- {
- format(string, sizeof(string), "%s teleported into vehicle ID %i.", ReturnName(playerid), vehicleid);
- adminWarn(3, string);
- }
-
- Message(playerid, COLOR_GREY, "You teleported into vehicle ID %i.", vehicleid);
- return 1;
- }
- CMD:spec(playerid, params[]) return cmd_spectate(playerid, params);
- CMD:spectate(playerid, params[])
- {
- new string[128], playerb;
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
-
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /spectate [playerid/PartofName]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65534 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You specified a player that isn't logged in.");
- if(playerb == playerid) return SendClientMessage(playerid, COLOR_ADM, "Hazard's an idiot LOL!");
-
- if(PlayerData[playerb][pSpectator] != -1 && PlayerData[playerb][pSpecVehicle] != -1)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That players in spectator mode already.");
-
- if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING)
- {
- GetPlayerPos(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]);
- GetPlayerFacingAngle(playerid, PlayerData[playerid][pPos][3]);
- PlayerData[playerid][pInterior] = GetPlayerInterior(playerid);
- PlayerData[playerid][pWorld] = GetPlayerVirtualWorld(playerid);
- }
-
- SetPlayerInterior(playerid, GetPlayerInterior(playerb));
- SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(playerb));
- TogglePlayerSpectating(playerid, true);
-
- if(!IsPlayerInAnyVehicle(playerb))
- PlayerSpectatePlayer(playerid, playerb);
-
- else PlayerSpectateVehicle(playerid, GetPlayerVehicleID(playerb));
- PlayerData[playerid][pSpectator] = playerb;
-
- if(PlayerData[playerid][pSpecVehicle] != -1){
- PlayerData[playerid][pSpecVehicle] = -1;
- }
-
- if(PlayerData[playerb][pSQLID] == 1)
- Message(playerb, COLOR_GREY, "-> %s started spectating you...", ReturnName(playerid));
-
- format(string, sizeof(string), "You're now spectating (%s). You can use /watchoff to stop.", ReturnName(playerb, 1));
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
-
- for(new i = 0; i < MAX_POSSIBLE_WEAPONS; i++) if(Weapon[playerb][i][eWeaponID])
- {
- Message(playerid, COLOR_GREY, "Weapon: [%s(%i)] Ammo: [%i]", ReturnWeaponName(Weapon[playerb][i][eWeaponID]), Weapon[playerb][i][eWeaponID], Weapon[playerb][i][eWeaponAmmo]);
- }
-
- if(GetPlayerDrunkLevel(playerb) == 0)SendClientMessage(playerid, COLOR_RED, "WARNING: This player is desynced.");
- return true;
- }
- CMD:awc(playerid, params[])
- {
- new string[128], vehicleid;
-
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
-
- if(sscanf(params, "d", vehicleid))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /awc [vehicleid]");
- if(!IsValidVehicle(vehicleid))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active vehicle.");
-
- if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING)
- {
- GetPlayerPos(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]);
- GetPlayerFacingAngle(playerid, PlayerData[playerid][pPos][3]);
- PlayerData[playerid][pInterior] = GetPlayerInterior(playerid);
- PlayerData[playerid][pWorld] = GetPlayerVirtualWorld(playerid);
- }
-
- SetPlayerVirtualWorld(playerid, GetVehicleVirtualWorld(vehicleid));
-
- TogglePlayerSpectating(playerid, true);
- PlayerSpectateVehicle(playerid, vehicleid);
-
- PlayerData[playerid][pSpecVehicle] = vehicleid;
-
- if(PlayerData[playerid][pSpectator] != -1){
- PlayerData[playerid][pSpectator] = -1;
- }
-
- format(string, sizeof(string), "You're now spectating (vehicleid %d). You can use /specoff to stop.", vehicleid);
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
-
- return true;
- }
- CMD:specoff(playerid, params[]) return cmd_stopspec(playerid, params);
- CMD:spectateoff(playerid, params[]) return cmd_stopspec(playerid, params);
- CMD:watchoff(playerid, params[]) return cmd_stopspec(playerid, params);
- CMD:stopspec(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return true;
- if(!PlayerData[playerid][pAdmin]) return UnAuthMessage(playerid);
-
- if(PlayerData[playerid][pSpectator] == -1 && PlayerData[playerid][pSpecVehicle] == -1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't spectating anyone right now.");
-
- PlayerSpectatePlayer(playerid, INVALID_PLAYER_ID);
- PlayerSpectateVehicle(playerid, INVALID_VEHICLE_ID);
-
- TogglePlayerSpectating(playerid, false);
- return true;
- }
- CMD:masks(playerid, params[])
- {
- new string[400], playerb;
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
- if(!isnull(params) && !strcmp(params, "all", true)){
- new count = 0;
- foreach(new i : Player)
- {
- if(PlayerData[i][pMasked] ==1)
- {
- format(string, sizeof(string), "%sName: %s (%d) | Mask ID: %d_%d\n", string, ReturnName(i, 1), i, PlayerData[i][pMaskID], PlayerData[i][pMaskIDEx]);
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_LIST, "Masked:", string, ">>", "");
- count++;
- }
- }
- if(!count)return ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_LIST, "Masked:", "There are NO masked players.", ">>", "");
- }
- if(sscanf(params, "d", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /masks [playerid/PartofName] OR `all`");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You have specified a player that isn't logged in.");
- format(string, sizeof(string), "-> %s (%d) is Mask %d_%d.", ReturnName(playerb, 1), playerb, PlayerData[playerb][pMaskID], PlayerData[playerb][pMaskIDEx]);
- SendClientMessage(playerid, COLOR_ADM, string);
- return true;
- }
- CMD:respawn(playerid, params[])
- {
- new string[128], playerb;
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /respawn [playerid/PartofName]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You have specified a player that isn't logged in.");
- format(string, sizeof(string), "%s respawned %s", ReturnName(playerid, 1), ReturnName(playerb, 1));
- adminWarn(1, string);
-
- PlayerData[playerid][pInsideApartment] = 0;
- PlayerData[playerid][pInsideBusiness] = 0;
- PlayerData[playerid][pInsideComplex] = 0;
- PlayerData[playerid][pInsideGarage] = 0;
- PlayerData[playerid][pInsideHouse] = 0;
-
- PlayerData[playerid][pLegShot] = 0;
- SetPlayerHealth(playerb, PlayerData[playerb][pMaxHealth]);
- SpawnPlayerIn(playerb);
- return true;
- }
- CMD:freeze(playerid, params[])
- {
- new string[128], playerb;
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /freeze [playerid/PartofName]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You have specified a player that isn't logged in.");
- TogglePlayerControllable(playerb, false);
- format(string, sizeof(string), "AdmCmd: %s freezed %s.", ReturnName(playerid, 1), ReturnName(playerb, 1));
- SendClientMessage(playerid, COLOR_GREY, string);
- if(playerb != playerid) { SendClientMessage(playerb, COLOR_GREY, string); }
- format(string, sizeof(string), "%s froze %s", ReturnName(playerid, 1), ReturnName(playerb, 1));
- adminWarn(4, string);
- return true;
- }
- CMD:thaw(playerid, params[])
- {
- new string[128], playerb;
- if(!pLoggedIn[playerid]) return true;
- if(!PlayerData[playerid][pAdmin]) return UnAuthMessage(playerid);
- if(sscanf(params, "u", playerb)) return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /thaw [playerid/PartofName]");
- if(!IsPlayerConnected(playerb)) return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb]) return SendClientMessage(playerid, COLOR_GREY, "You have specified a player that isn't logged in.");
- TogglePlayerControllable(playerb, true);
- format(string, sizeof(string), "AdmCmd: %s thawed %s.", ReturnName(playerid, 1), ReturnName(playerb, 1));
- SendClientMessage(playerid, COLOR_GREY, string);
- if(playerb != playerid) { SendClientMessage(playerb, COLOR_GREY, string); }
- format(string, sizeof(string), "%s thawed %s", ReturnName(playerid, 1), ReturnName(playerb, 1));
- adminWarn(4, string);
- return true;
- }
- CMD:ptp(playerid, params[])
- {
- new string[128], Float:posa[3], Float:posb[3], playera, playerb;
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
- if(sscanf(params, "uu", playera, playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /ptp [sending playerid] [playerid]");
- if(!IsPlayerConnected(playera))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playera] && !pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You have specified a player that isn't logged in.");
- GetPlayerPos(playera, posa[0], posa[1], posa[2]);
- GetPlayerPos(playerb, posb[0], posb[1], posb[2]);
- SendPlayer(playera, posb[0], posb[1], posb[2], GetPlayerInterior(playerb), GetPlayerVirtualWorld(playerb));
- SendClientMessage(playera, COLOR_GREY, "You have been teleported");
- format(string, sizeof(string), "%s teleported ID %d to ID %d.", ReturnName(playerid, 1), playera, playerb);
- adminWarn(1, string);
- return true;
- }
- CMD:p2biz(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
-
- new playerb, bizid, string[128];
-
- if(sscanf(params, "ud", playerb, bizid))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /p2biz [playerid/PartofName] [businessid]");
- if(bizid > MAX_BUSINESS || !BusinessData[bizid][businessID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid business ID.");
-
- SendPlayer(playerb, BusinessData[bizid][businessExt][0], BusinessData[bizid][businessExt][1], BusinessData[bizid][businessExt][2], 0, 0);
- if(playerid != playerb) { SendClientMessage(playerb, COLOR_GREY, "You have been teleported"); }
-
- format(string, sizeof(string), "%s teleported %s to business %d", ReturnName(playerid, 1), ReturnName(playerb, 1), bizid);
- adminWarn(1, string);
- return true;
- }
- CMD:p2house(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
-
- new playerb, houseid, string[128];
-
- if(sscanf(params, "ud", playerb, houseid))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /p2house [playerid/PartofName] [propertyid]");
- if(houseid > MAX_BUSINESS || !PropertyData[houseid][propertyid]) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid property ID.");
-
- SendPlayer(playerb, PropertyData[houseid][propertyExterior][0], PropertyData[houseid][propertyExterior][1], PropertyData[houseid][propertyExterior][2], PropertyData[houseid][propertyExteriorWorld], PropertyData[houseid][propertyExteriorID]);
- if(playerid != playerb) { SendClientMessage(playerb, COLOR_GREY, "You have been teleported"); }
-
- format(string, sizeof(string), "%s teleported %s to property %d", ReturnName(playerid, 1), ReturnName(playerb, 1), houseid);
- adminWarn(1, string);
- return true;
- }
- CMD:interiors(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new primary[2500], sub[128];
-
- for(new i = 0; i < sizeof Interiors; i++)
- {
- format(sub, sizeof(sub), "%s\n", Interiors[i][IntName]);
- strcat(primary, sub);
- }
- ShowPlayerDialog(playerid, DIALOG_INTERIORS, DIALOG_STYLE_LIST, "Interiors:", primary, "Teleport", "<<");
- return 1;
- }
- CMD:slap(playerid, params[])
- {
- new playerb, string[128];
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /slap [playerid/PartofName]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You have specified a player that isn't logged in.");
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerb, x, y, z);
- SetPlayerPos(playerb, x, y, z + 5);
- PlayNearbySound(playerb, 1130);
- format(string, sizeof(string), "AdmCmd: %s slapped %s", ReturnName(playerid, 1), ReturnName(playerb, 1));
- SendClientMessage(playerid, COLOR_GREY, string);
- if(playerb != playerid){ SendClientMessage(playerb, COLOR_GREY, string); }
- return true;
- }
- CMD:slapcar(playerid, params[])
- {
- new vehicleid, string[128];
-
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
-
- if(sscanf(params, "d", vehicleid))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /slapcar [vehicleid]");
- if(!IsValidVehicle(vehicleid))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active vehicle.");
-
- new Float: currPos[3];
- GetVehiclePos(vehicleid, currPos[0], currPos[1], currPos[2]);
- SetVehiclePos(vehicleid, currPos[0], currPos[1], currPos[2] + 5);
-
- format(string, sizeof(string), "AdmCmd: %s slapped vehicleid %d", ReturnName(playerid, 1), vehicleid);
- SendClientMessage(playerid, COLOR_GREY, string);
-
- return true;
- }
- CMD:o(playerid, params[]) return cmd_ooc(playerid, params);
- CMD:ooc(playerid, params[])
- {
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /o(oc) [text]");
- if(PlayerData[playerid][pAdmin])
- {
- if(strlen(params) > 80)
- {
- SendMessageToAll(COLOR_SAMP, "[OOC] %s: %.80s...", ReturnName(playerid, 1), params);
- SendMessageToAll(COLOR_SAMP, "[OOC] %s: ...%s", ReturnName(playerid, 1), params[80]);
- }
- else SendMessageToAll(COLOR_SAMP, "[OOC] %s: %s", ReturnName(playerid, 1), params);
-
- WriteLog("chat_logs/oocchat_log.txt", "[%s] %s said: %s", ReturnDate(), ReturnName(playerid, 1), params);
- }
- else
- {
- if(OOC == 1)
- {
- if(strlen(params) > 80)
- {
- SendMessageToAll(COLOR_SAMP, "[OOC] %s: %.80s...", ReturnName(playerid, 1), params);
- SendMessageToAll(COLOR_SAMP, "[OOC] %s: ...%s", ReturnName(playerid, 1), params[80]);
- }
- else SendMessageToAll(COLOR_SAMP, "[OOC] %s: %s", ReturnName(playerid, 1), params);
- WriteLog("chat_logs/oocchat_log.txt", "[%s] %s said: %s", ReturnDate(), ReturnName(playerid, 1), params);
- }
- else return UnAuthMessage(playerid);
- }
- return true;
- }
- CMD:aooc(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /aooc [text]");
-
- SendMessageToAll(COLOR_ORANGE, "[AOOC] Admin %s (%s): %s", ReturnName(playerid, 1), PlayerData[playerid][pForumName], params);
- WriteLog("chat_logs/a_oocchat_log.txt", "[%s] (AOOC) %s (%s) said: %s", ReturnDate(), ReturnName(playerid, 1), PlayerData[playerid][pForumName], params);
- return true;
- }
- CMD:togdeath(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
-
- if(PlayerData[playerid][pTogDeath]){
- PlayerData[playerid][pTogDeath] = false;
- SendClientMessage(playerid, COLOR_ADM, "AdmCmd: You will no longer see death messages.");
- }
- else {
- PlayerData[playerid][pTogDeath] = true;
- SendClientMessage(playerid, COLOR_ADM, "AdmCmd: You will now see death messages.");
- }
- return true;
- }
- CMD:togadmwarn(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
-
- if(!AdmWarmToggle[playerid])
- {
- AdmWarmToggle[playerid] = 1;
- SendClientMessage(playerid, COLOR_ADM, "AdmCmd: You will now see the admin warnings!");
- }
- else
- {
- AdmWarmToggle[playerid] = 0;
- SendClientMessage(playerid, COLOR_ADM, "AdmCmd: You will no longer see admin warnings!");
- }
- return true;
- }
- CMD:togdoubleexp(playerid, params[]) {
- if(!pLoggedIn[playerid])
- return true;
- if(PlayerData[playerid][pAdmin] < 5)
- return UnAuthMessage(playerid);
- if (DoubleEXP) {
- DoubleEXP = false;
- SendRconCommand("hostname [0.3.DL] San Andreas '92 Singleplayer Roleplay");
- } else {
- DoubleEXP = true;
- SendRconCommand("hostname [0.3.DL] San Andreas '92 Singleplayer Roleplay [2x EXP]");
- }
- return SendClientMessage(playerid, COLOR_ADM, sprintf("SUCCESS: You have toggled Double EXP %s!", (DoubleEXP ? "on" : "off")));
- }
- CMD:mute(playerid, params[])
- {
- new playerb;
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /mute [playerid/PartofName]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You have specified a player that isn't logged in.");
- if(!PlayerData[playerb][pMuted]){
- SendMessageToAll(COLOR_ADM, "%s muted %s.", ReturnName(playerid, 1), ReturnName(playerb, 1));
- PlayerData[playerb][pMuted] = true;
- }
- else{
- SendMessageToAll(COLOR_ADM, "%s unmuted %s.", ReturnName(playerid, 1), ReturnName(playerb, 1));
- PlayerData[playerb][pMuted] = false;
- }
- return true;
- }
- CMD:sethealth(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new string[128], playerb, health;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
- if(sscanf(params, "uI(-1)", playerb, health)){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /sethealth [playerid/PartofName] [health]");
- SendClientMessage(playerid, COLOR_ADM, "Warning: Leaving health blank will default set to players max health.");
- return true;
- }
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You have specified a player that isn't logged in.");
- if(health == -1){
- SetPlayerHealth(playerb, PlayerData[playerb][pMaxHealth]);
- format(string, sizeof(string), "%s gave %d health to %s", ReturnName(playerid, 1), PlayerData[playerb][pMaxHealth], ReturnName(playerb, 1));
- adminWarn(1, string);
- WriteLog("admin_logs/players/sethealth_log.txt", "[%s] %s set %s's health to %d.0", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerid, 1), PlayerData[playerb][pMaxHealth]);
- return true;
- }
-
- SetPlayerHealth(playerb, health);
- format(string, sizeof(string), "%s gave %d health to %s", ReturnName(playerid, 1), health, ReturnName(playerb, 1));
- adminWarn(1, string);
- WriteLog("admin_logs/players/sethealth_log.txt", "[%s] %s set %s's health to %d.0", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerid, 1), health);
- return true;
- }
- CMD:setarmor(playerid, params[]) return cmd_setarmour(playerid, params);
- CMD:setarmour(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new string[128], playerb, armor;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
- if(sscanf(params, "ui", playerb, armor))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setarmour [playerid/PartofName] [armor]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You have specified a player that isn't logged in.");
- SetPlayerArmour(playerb, armor);
- ArmorGiven[playerb] = 1;
-
- format(string, sizeof(string), "%s gave %d armor to %s", ReturnName(playerid, 1), armor, ReturnName(playerb, 1));
- adminWarn(1, string);
- WriteLog("admin_logs/players/setarmor_log.txt", "[%s] %s set %s's armor to %d.0", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerid, 1), armor);
- return true;
- }
- CMD:afks(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
- foreach(new i : Player)
- {
- if(GetTickCount() > (PlayerData[i][pPauseCheck]+2000))
- Message(playerid, COLOR_GREY, "[AFK] %s - Time: %i Seconds", ReturnName(i), PlayerData[i][pPauseTime]);
- }
-
- return 1;
- }
- CMD:reports(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- SendClientMessage(playerid, COLOR_YELLOW, "No reports if no box!");
- new
- primary_str[900], sub_str[128];
-
- for(new i = 1; i < sizeof ReportData; i++) if(ReportData[i][reportExists])
- {
- format(sub_str, sizeof(sub_str), "RID: %i | %s: %.20s...\n", i, ReturnSQLName(ReportData[i][reportBy]), ReportData[i][reportReason]);
- strcat(primary_str, sub_str);
- }
-
- ShowPlayerDialog(playerid, DIALOG_REPORTS, DIALOG_STYLE_LIST, "Reports:", primary_str, "Select", "<<");
-
- new ncRequests;
-
- foreach(new i : Player) if(GetPVarInt(i, "RequestedNC") == 2)
- ncRequests++;
-
- if(ncRequests)
- SendClientMessage(playerid, COLOR_DARKGREEN, "_______________________________________");
-
- foreach(new i : Player) if(GetPVarInt(i, "RequestedNC") == 2)
- {
- new requestedName[MAX_PLAYER_NAME + 1];
- GetPVarString(i, "RequestedNCName", requestedName, MAX_PLAYER_NAME + 1);
-
- Message(playerid, COLOR_ADM, "%s [ID: %i] is requesting a NC to: %s", ReturnName(i), i, requestedName);
- }
- return 1;
- }
-
- CMD:reportsx(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- SendClientMessage(playerid, COLOR_DARKGREEN, "____________________REPORTS____________________");
- for(new i = 1; i < sizeof ReportData; i++) if(ReportData[i][reportExists])
- {
- if(strlen(ReportData[i][reportReason]) > 70)
- {
- Message(playerid, COLOR_REPORT, "%s | RID: %i | Pending: %i Minutes | Report: %.70s", ReturnSQLName(ReportData[i][reportBy]), i, SecondsToMinute(gettime() - ReportData[i][reportTime]), ReportData[i][reportReason]);
- Message(playerid, COLOR_REPORT, "...%s", ReportData[i][reportReason][70]);
- }
- else Message(playerid, COLOR_REPORT, "%s | RID: %i | Pending: %i Minutes | Report: %s", ReturnSQLName(ReportData[i][reportBy]), i, SecondsToMinute(gettime() - ReportData[i][reportTime]), ReportData[i][reportReason]);
- }
-
- return 1;
- }
- CMD:ar(playerid, params[])return cmd_acceptreport(playerid, params);
- CMD:acceptreport(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
- new
- reportid, str[128];
- if(sscanf(params, "d", reportid))return SendClientMessage(playerid, COLOR_ADM, "USAGE: /acceptreport [report id]");
- if(reportid > MAX_REPORTS || !ReportData[reportid][reportExists]) return SendClientMessage(playerid, COLOR_ADM, "ERROR: That report doesn't exist.");
- format(str, sizeof(str), "[REPORT]{FF9900} %s accepted report %d by %s", ReturnName(playerid, 1), reportid, ReturnSQLName(ReportData[reportid][reportBy]));
- SendAdminMessage(COLOR_HELPER, str);
-
- ClearReport(reportid);
-
- return 1;
- }
- CMD:dr(playerid, params[])return cmd_disregardreport(playerid, params);
- CMD:disregardreport(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
- new
- reportid, str[128];
- if(sscanf(params, "d", reportid))return SendClientMessage(playerid, COLOR_ADM, "USAGE: /disregardreport [report id]");
- if(reportid > MAX_REPORTS || !ReportData[reportid][reportExists]) return SendClientMessage(playerid, COLOR_ADM, "ERROR: That report doesn't exist.");
- format(str, sizeof(str), "[REPORT]{FF9900} %s disregarded report %d by %s", ReturnName(playerid, 1), reportid, ReturnSQLName(ReportData[reportid][reportBy]));
- SendAdminMessage(COLOR_HELPER, str);
-
- ClearReport(reportid);
-
- return 1;
- }
- CMD:revive(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return true;
- if(!PlayerData[playerid][pAdmin]) return UnAuthMessage(playerid);
- new playerb, string[128];
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /revive [playerid/PartofName]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You have specified a player that isn't logged in.");
- if(!PlayerData[playerb][pBrutallyWounded])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player isn't brutally wounded.");
-
- PlayerData[playerb][pBrutallyWounded] = false;
- PlayerData[playerb][pLegShot] = false;
- PlayerData[playerb][pExecuteTime] = 0;
-
- SetPlayerHealth(playerb, PlayerData[playerb][pMaxHealth]);
- TogglePlayerControllable(playerb, true);
-
- GameTextForPlayer(playerb, "~b~You were revived", 3000, 4);
- SetPlayerChatBubble(playerb, "Respawned", COLOR_WHITE, 20.0, 2000);
-
- ClearDamages(playerb);
- SetPlayerTeam(playerb, STATE_ALIVE);
-
- format(string, sizeof(string), "%s revived %s", ReturnName(playerid, 1), ReturnName(playerb, 1));
- adminWarn(1, string);
-
- return true;
- }
- CMD:clearinjuries(playerid, params[]) {
- if (!pLoggedIn[playerid])
- return true;
- if (!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
- new playerb;
- if (sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /clearinjuries [playerid/PartofName]");
- if (!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if (!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_GREY, "You have specified a player that isn't logged in.");
- if (!PlayerData[playerb][pLegShot])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player isn't injured.");
- PlayerData[playerb][pLegShot] = false;
- adminWarn(1, sprintf("%s cleared %s's injuries.", ReturnName(playerid, 1), ReturnName(playerb, 1)));
- return 1;
- }
- CMD:mark(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
-
- GetPlayerPos(playerid, PlayerData[playerid][pMark][0], PlayerData[playerid][pMark][1], PlayerData[playerid][pMark][2]);
- SendClientMessage(playerid, COLOR_ADM, "Marked. Use /goto mark next");
- return true;
- }
- CMD:gotop(playerid, params[])
- {
- new spots;
-
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
-
- if(sscanf(params, "n", spots))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /gotop [number of location]");
- SendClientMessage(playerid, COLOR_GREY, "|1. Los Santos |2. Las Venturas |3. San Fierro |4. Market Ammunation |5. Market DMV |6. LSLV Highway |7. Montgomery");
- SendClientMessage(playerid, COLOR_GREY, "|8. Palomino |9. Dillimore |10. Fort Carson |11. Breach Center |12. Idlewood |13. El Corona |14. Idlegas |15. Ganton");
- SendClientMessage(playerid, COLOR_GREY, "|16. Grove Circle |17. Willowfield |18. Seville |19. Los Flores |20. East Los |21. Jefferson |22. Glen Park");
- SendClientMessage(playerid, COLOR_GREY, "|23. Downtown |24. Market |25. LS Runway |26. LV Runway |27. SF Runway |28. Mall |29. Trucker Trailers");
- }
- else
- {
- switch(spots)
- {
- case 1:
- {
- SendPlayer(playerid, 1514.1836, -1677.8027, 14.0469, 0, 0);
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- }
- case 2:
- {
- SendPlayer(playerid, 1721.1599, 1444.5464, 10.5450, 0, 0);
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- }
- case 3:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, -1751.6312, -607.6387, 16.2367, 0, 0);
- }
- case 4:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 1364.0856, -1276.8530, 13.5469, 0, 0);
- }
- case 5:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 1286.8722, -1540.2163, 13.4944, 0, 0);
- }
- case 6:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 1622.8391,158.6248,34.8305, 0, 0);
- }
- case 7:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 1348.9205,231.8964,19.2818, 0, 0);
- }
- case 8:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 2284.1912, 26.9898, 26.2115, 0, 0);
- }
- case 9:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 656.5389, -586.2031, 16.0592, 0, 0);
- }
- case 10:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, -58.4578,1168.8517,19.3818, 0, 0);
- }
- case 11:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 2776.4807, 2416.5981, 11.0702, 0, 0);
- }
- case 12:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 2098.6453,-1760.2810,13.5625, 0, 0);
- }
- case 13:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 1882.9041,-2016.5022, 13.5469, 0, 0);
- }
- case 14:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 1949.9351, -1769.6365, 13.5469, 0, 0);
- }
- case 15:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 2225.5811, -1742.8641, 13.5634, 0, 0);
- }
- case 16:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 2499.9521,-1686.2581,13.4776, 0, 0);
- }
- case 17:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 2489.4878,-1941.6466,12.9567, 0, 0);
- }
- case 18:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 2767.3303, -1944.2482, 12.8437, 0, 0);
- }
- case 19:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 2628.9937, -1250.3225, 49.2440, 0, 0);
- }
- case 20:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 2363.8564, -1290.3566, 23.4254, 0, 0);
- }
- case 21:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 2188.8093,-1294.6794,23.4828, 0, 0);
- }
- case 22:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 2002.3489,-1277.4027,23.3324, 0, 0);
- }
- case 23:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 1567.7167, -1311.5303, 16.7319, 0, 0);
- }
- case 24:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 1102.7339, -1387.4949, 13.2131, 0, 0);
- }
- case 25:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 1974.6187, -2459.8467, 13.5469, 0, 0);
- }
- case 26:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 1512.8564, 1487.1121, 10.8273, 0, 0);
- }
- case 27:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, -1453.3241, -46.0731, 14.5469, 0, 0);
- }
- case 28:
- {
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- SendPlayer(playerid, 1121.2642, -1412.9189, 13.5747, 0, 0);
- }
- case 29:
- {
- SendPlayer(playerid, 104.6114, -272.4609, 1.5781, 0, 0);
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- }
- }
- }
- return 1;
- }
- CMD:ban(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return true;
- if(!PlayerData[playerid][pAdmin]) return UnAuthMessage(playerid);
-
- new playerb, reason[128], query[400], str[128];
- if(sscanf(params, "us[128]", playerb, reason)) return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /ban [playerid/PartofName] [reason]");
-
- if(!IsPlayerConnected(playerb)) return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(PlayerData[playerb][pAdmin] >= PlayerData[playerid][pAdmin])
- return SendClientMessage(playerid, COLOR_ADM, "You can't do this to these type of players.");
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO bans (`Name`, `Reason`, `BannedBy`, `Date`, `IP`, `HWID`) VALUES('%e', '%e', '%e', '%e', '%e', '%e')", ReturnName(playerb, 1), reason, ReturnName(playerid, 1), ReturnDate(), ReturnIP(playerb), ReturnGPCI(playerb));
- mysql_pquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO log_bans (Name, Reason, BannedBy, Date, IP) VALUES('%e', '%e', '%e', '%e', '%e')", ReturnName(playerb, 1), reason, ReturnName(playerid), ReturnDateLog(), ReturnIP(playerb));
- mysql_pquery(m_Handle, query);
-
- SendMessageToAll(COLOR_ADM, "AdmCmd: %s was banned by %s, reason: %s", ReturnName(playerb, 1), ReturnName(playerid, 1), reason);
-
- for(new i = 1; i < MAX_ADMIN_NOTES; i++)
- {
- if(aNotesData[playerb][i][anote_SQLID] != 0)
- {
- if(aNotesData[playerb][i][anote_active])
- {
- if(strlen(aNotesData[playerb][i][anote_reason]) > 45)
- {
- format(str, sizeof(str), "Player %s has %d active OnAdminAction notes on him, last is: %.45s", ReturnName(playerb, 1), CountAdminNotes(playerb), aNotesData[playerb][i][anote_reason]);
- adminWarn(1, str);
-
- format(str, sizeof(str), "...%s", aNotesData[playerb][i][anote_reason][45]);
- adminWarn(1, str);
- }
- else
- {
- format(str, sizeof(str), "Player %s has %d active OnAdminAction notes on him, last is: %s", ReturnName(playerb, 1), CountAdminNotes(playerb), aNotesData[playerb][i][anote_reason]);
- adminWarn(1, str);
- }
- }
- }
- }
-
- KickEx(playerb);
-
- printf("[DEBUG] AdmCmd: %s was banned by %s, reason: %s", ReturnName(playerb, 1), ReturnName(playerid, 1), reason);
- WriteLog("admin_logs/punishments/ban_log.txt", "[%s] %s was banned by %s, reason: %s", ReturnDate(), ReturnName(playerb, 1), ReturnName(playerid, 1), reason);
- return true;
- }
- CMD:offlineban(playerid, params[])
- {
- if(!pLoggedIn[playerid])
- return true;
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new playerb[30], reason[128], query[90 + MAX_PLAYER_NAME];
-
- if(sscanf(params, "s[30]s[128]", playerb, reason))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /offlineban [Firstname_Lastname] [reason]");
-
- format(PlayerData[playerid][pSetReason], 128, "%s", reason);
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT Name, AdminLevel, IP, HWID FROM players WHERE Name = '%e'", playerb);
- mysql_pquery(m_Handle, query, "SQL_CheckAccountBan", "i", playerid);
-
- return true;
- }
- CMD:checkguns(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new
- playerb,
- bool:hasWeapons = false,
- bool:hasWeaponsEx = false,
- weapon_id[2][13]
- ;
-
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /checkguns [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
-
- Message(playerid, COLOR_ADM, ">> %s has the following server-sided weapons:", ReturnName(playerb));
-
- for(new i = 0; i < MAX_POSSIBLE_WEAPONS; i++)
- {
- if(Weapon[playerb][i][eWeaponAmmo] > 0)
- {
- hasWeapons = true;
- Message(playerid, COLOR_ADM, ">{FFFFFF} [%i] %s - Ammo: %i [Receive code: %s]", Weapon[playerb][i][eWeaponID], ReturnWeaponName(Weapon[playerb][i][eWeaponID]), Weapon[playerb][i][eWeaponAmmo], ReturnWeaponReceiveString(playerid, Weapon[playerb][i][eWeaponID]));
- }
- }
-
- if(!hasWeapons)
- SendClientMessage(playerid, COLOR_ADM, ">{FFFFFF} This player has no weapons.");
-
- Message(playerid, COLOR_ADM, ">> %s has these weapons overall:", ReturnName(playerb));
-
- for(new i = 0; i < 13; i++)
- {
- GetPlayerWeaponData(playerb, i, weapon_id[0][i], weapon_id[1][i]);
-
- if(weapon_id[0][i] != 0)
- {
- if(weapon_id[0][i] == WEAPON_SILENCED && PlayerData[playerb][pTaser])
- continue;
-
- hasWeaponsEx = true;
- Message(playerid, COLOR_ADM, ">{FFFFFF} [%i] %s - Ammo: %i", weapon_id[0][i], ReturnWeaponName(weapon_id[0][i]), weapon_id[1][i]);
- }
- }
-
- if(!hasWeaponsEx)
- SendClientMessage(playerid, COLOR_ADM, ">{FFFFFF} This player has no weapons.");
-
- else SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} If a weapon doesn't match their server-sided weapons, they're spawning weapons.");
- return 1;
- }
- CMD:checkhp(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
-
- new playerb, string[128];
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /checkhp [playerid/PartofName]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
-
- new Float:health, Float:armour;
- GetPlayerHealth(playerb, health);
- GetPlayerArmour(playerb, armour);
-
- format(string, sizeof(string), "SERVER: %s's health is %.1f (Max health: %d.0), armor is %.1f.", ReturnName(playerb, 1), health, PlayerData[playerid][pMaxHealth], armour);
- SendClientMessage(playerid, COLOR_ADM, string);
- return true;
- }
- CMD:dropinfo(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new
- idx;
-
- if( (idx = IsPlayerNearDroppedWeapon(playerid)) != -1 )
- {
- Message(playerid, COLOR_YELLOW, "[%i] This is a %s with %d Ammo dropped by %s.", idx, ReturnWeaponName(DropData[idx][eDropWeaponID]), DropData[idx][eDropWeaponAmmo], ReturnSQLName(DropData[idx][eWeaponDroppedBy]));
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near a dropped weapon.");
- return true;
- }
- CMD:sendplayer(playerid, params[])
- {
- new spots, playerb, string[128];
-
- if(!PlayerData[playerid][pAdmin]) return UnAuthMessage(playerid);
-
- if(sscanf(params, "un", playerb, spots))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /sendplayer [playerid/PartofName] [location]");
- SendClientMessage(playerid, COLOR_GREY, "|1. Los Santos |2. Las Venturas |3. San Fierro |4. Market Ammunation |5. Market DMV |6. LSLV Highway |7. Montgomery");
- SendClientMessage(playerid, COLOR_GREY, "|8. Palomino |9. Dillimore |10. Fort Carson |11. Breach Center |12. Idlewood |13. El Corona |14. Idlegas |15. Ganton");
- SendClientMessage(playerid, COLOR_GREY, "|16. Grove Circle |17. Willowfield |18. Seville |19. Los Flores |20. East Los |21. Jefferson |22. Glen Park");
- SendClientMessage(playerid, COLOR_GREY, "|23. Downtown |24. Market |25. LS Runway |26. LV Runway |27. SF Runway |28. Mall |29. Trucker Trailers");
-
- return 1;
- }
- else
- {
- switch(spots)
- {
- case 1:
- {
- SendPlayer(playerb, 1514.1836, -1677.8027, 14.0469, 0, 0);
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- }
- case 2:
- {
- SendPlayer(playerb, 1721.1599, 1444.5464, 10.5450, 0, 0);
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- }
- case 3:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, -1751.6312, -607.6387, 16.2367, 0, 0);
- }
- case 4:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 1364.0856, -1276.8530, 13.5469, 0, 0);
- }
- case 5:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 1286.8722, -1540.2163, 13.4944, 0, 0);
- }
- case 6:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 1622.8391,158.6248,34.8305, 0, 0);
- }
- case 7:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 1348.9205,231.8964,19.2818, 0, 0);
- }
- case 8:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 2284.1912, 26.9898, 26.2115, 0, 0);
- }
- case 9:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 656.5389, -586.2031, 16.0592, 0, 0);
- }
- case 10:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, -58.4578,1168.8517,19.3818, 0, 0);
- }
- case 11:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 2776.4807, 2416.5981, 11.0702, 0, 0);
- }
- case 12:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 2098.6453,-1760.2810,13.5625, 0, 0);
- }
- case 13:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 1882.9041,-2016.5022, 13.5469, 0, 0);
- }
- case 14:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 1949.9351, -1769.6365, 13.5469, 0, 0);
- }
- case 15:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 2225.5811, -1742.8641, 13.5634, 0, 0);
- }
- case 16:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 2499.9521,-1686.2581,13.4776, 0, 0);
- }
- case 17:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 2489.4878,-1941.6466,12.9567, 0, 0);
- }
- case 18:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 2767.3303, -1944.2482, 12.8437, 0, 0);
- }
- case 19:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 2628.9937, -1250.3225, 49.2440, 0, 0);
- }
- case 20:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 2363.8564, -1290.3566, 23.4254, 0, 0);
- }
- case 21:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 2188.8093,-1294.6794,23.4828, 0, 0);
- }
- case 22:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 2002.3489,-1277.4027,23.3324, 0, 0);
- }
- case 23:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 1567.7167, -1311.5303, 16.7319, 0, 0);
- }
- case 24:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 1102.7339, -1387.4949, 13.2131, 0, 0);
- }
- case 25:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 1974.6187, -2459.8467, 13.5469, 0, 0);
- }
- case 26:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 1512.8564, 1487.1121, 10.8273, 0, 0);
- }
- case 27:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, -1453.3241, -46.0731, 14.5469, 0, 0);
- }
- case 28:
- {
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- SendPlayer(playerb, 1121.2642, -1412.9189, 13.5747, 0, 0);
- }
- case 29:
- {
- SendPlayer(playerb, 104.6114, -272.4609, 1.5781, 0, 0);
- SendClientMessage(playerb, COLOR_GREY, "You have been teleported");
- }
- }
- format(string, sizeof(string), "%s teleported %s to a location", ReturnName(playerid, 1), ReturnName(playerb, 1));
- adminWarn(3, string);
- }
- return 1;
- }
- CMD:sendtospawn(playerid, params[]) {
- if (!pLoggedIn[playerid])
- return 1;
- if (!PlayerData[playerid][pHelper] || !PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
- new playerb;
- if (sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /sendtospawn [playerid/partOfName]");
- SendPlayer(playerb, 1642.2314, -2333.6973, 13.5469, 0, 0);
- SendClientMessage(playerid, COLOR_GREY, sprintf("You've sent %s to spawn.", ReturnName(playerb, 1)));
- adminWarn(1, sprintf("%s has sent %s to spawn", ReturnName(playerid, 1), ReturnName(playerb, 1)));
- return 1;
- }
- CMD:respawncar(playerid, params[])
- {
- new string[128], vehicleid;
-
- if(PlayerData[playerid][pAdminDuty]) {
- if(sscanf(params, "d", vehicleid)) return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /respawncar [vehicle ID]");
- if(vehicleid < 0 || !IsValidVehicle(vehicleid)) return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active vehicle.");
-
- format(string, sizeof(string), "%s respawned vehicle ID %d", ReturnName(playerid, 1), vehicleid);
- adminWarn(1, string);
-
- SetVehicleToRespawn(vehicleid);
- }
- else{
- if(IsPlayerInAnyVehicle(playerid)){
- new car = GetPlayerVehicleID(playerid);
-
- if(!IsValidFactionCar(car))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in a faction vehicle.");
-
- if(IsPlayerInRangeOfPoint(playerid, 7.0, FactionCar[car][carPos][0], FactionCar[car][carPos][1], FactionCar[car][carPos][2])){
- if(FactionCar[car][carFaction] == PlayerData[playerid][pFaction]){
- SetVehicleToRespawn(car);
- format(string, sizeof(string), "%s respawned their faction vehicle ID %d", ReturnName(playerid, 1), car);
- adminWarn(1, string);
- }
- else{
- SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} This vehicle doesn't belong to your faction.");
- }
- }
- else{
- SetPlayerCheckpoint(playerid, FactionCar[car][carPos][0], FactionCar[car][carPos][1], FactionCar[car][carPos][2], 3.0);
- SendClientMessage(playerid, COLOR_ADM, "You aren't at your vehicles park spot.");
- SendClientMessage(playerid, COLOR_PINK, "Hint: Follow the red marker to the park spot.");
- }
- }
- else{
- SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in a vehicle.");
- }
- }
- return true;
- }
- CMD:respawncars(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
-
- new string[128], count = 0;
-
- for(new i = 0; i < MAX_VEHICLES; i++)
- {
- new Float: currPos[3];
- GetVehiclePos(i, currPos[0], currPos[1], currPos[2]);
-
- if(IsPlayerInRangeOfPoint(playerid, 25.0, currPos[0], currPos[1], currPos[2])) {
- if(!IsVehicleOccupied(i)) {
- SetVehicleToRespawn(i);
-
- count++;
- }
- }
- }
- if(count) {
- format(string, sizeof(string), "AdmCmd: %s respawned nearby vehicles.", ReturnName(playerid, 1));
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- else return SendClientMessage(playerid, COLOR_GREY, "There are no nearby vehicles to respawn (25.0f radius). ");
- return true;
- }
- CMD:checktime(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
-
- new string[128], playerb, checkString[60];
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /checktime [playerid/PartofName]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You specified a player that isn't logged in.");
-
- if(!PlayerData[playerb][pAjailed]){
- format(string, sizeof(string), "SERVER: %s is not admin jailed.", ReturnName(playerb, 1));
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return true;
- }
-
- if(PlayerData[playerb][pAjailed] == 1)format(checkString, sizeof(checkString), "true");
- if(PlayerData[playerb][pAjailed] == 0)format(checkString, sizeof(checkString), "false");
-
- format(string, sizeof(string), "SERVER: %s has %s seconds left ( %d minutes ). Admin jail variable is %s.", ReturnName(playerb, 1), MoneyFormat(PlayerData[playerb][pAjailTime]), PlayerData[playerb][pAjailTime] / 60, checkString);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return true;
- }
- CMD:fly(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return false;
- new Float:px, Float:py, Float:pz, Float:pa;
- GetPlayerFacingAngle(playerid, pa);
- if(pa >= 0.0 && pa <= 22.5)
- {
- GetPlayerPos(playerid, px, py, pz);
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, px, py+30, pz+5);
- }
- else
- {
- SetPlayerPos(playerid, px, py+30, pz+5);
- }
- }
- if(pa >= 332.5 && pa < 0.0)
- {
- GetPlayerPos(playerid, px, py, pz);
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, px, py+30, pz+5);
- }
- else
- {
- SetPlayerPos(playerid, px, py+30, pz+5);
- }
- }
- if(pa >= 22.5 && pa <= 67.5)
- {
- GetPlayerPos(playerid, px, py, pz);
- if (GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, px-15, py+15, pz+5);
- }
- else
- {
- SetPlayerPos(playerid, px-15, py+15, pz+5);
- }
- }
- if(pa >= 67.5 && pa <= 112.5)
- {
- GetPlayerPos(playerid, px, py, pz);
- if (GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, px-30, py, pz+5);
- }
- else
- {
- SetPlayerPos(playerid, px-30, py, pz+5);
- }
- }
- if(pa >= 112.5 && pa <= 157.5)
- {
- GetPlayerPos(playerid, px, py, pz);
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, px-15, py-15, pz+5);
- }
- else
- {
- SetPlayerPos(playerid, px-15, py-15, pz+5);
- }
- }
- if(pa >= 157.5 && pa <= 202.5)
- {
- GetPlayerPos(playerid, px, py, pz);
- if (GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, px, py-30, pz+5);
- }
- else
- {
- SetPlayerPos(playerid, px, py-30, pz+5);
- }
- }
- if(pa >= 202.5 && pa <= 247.5)
- {
- GetPlayerPos(playerid, px, py, pz);
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, px+15, py-15, pz+5);
- }
- else
- {
- SetPlayerPos(playerid, px+15, py-15, pz+5);
- }
- }
- if(pa >= 247.5 && pa <= 292.5)
- {
- GetPlayerPos(playerid, px, py, pz);
- if (GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, px+30, py, pz+5);
- }
- else
- {
- SetPlayerPos(playerid, px+30, py, pz+5);
- }
- }
- if(pa >= 292.5 && pa <= 332.5)
- {
- GetPlayerPos(playerid, px, py, pz);
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, px+15, py+15, pz+5);
- }
- else
- {
- SetPlayerPos(playerid, px+15, py+15, pz+5);
- }
- }
- return true;
- }
- CMD:ninjamove(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return false;
-
- new Float:currPos[3], playerb;
-
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /ninjamove [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65534 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You specified a player that isn't logged in.");
-
- GetPlayerPos(playerb, currPos[0], currPos[1], currPos[2]);
- SetPlayerPos(playerid, currPos[0], currPos[1], currPos[2] + 15);
-
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- return true;
- }
- CMD:forumname(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin] && !PlayerData[playerid][pHelper])
- return UnAuthMessage(playerid);
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /forumname [name]");
-
- if(strlen(params) > 60)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: Make your forum name below 60 characters.");
-
- if(!strcmp(params, "Kane", true) && PlayerData[playerid][pSQLID] != 1)
- return SendClientMessage(playerid, COLOR_ADM, "You aren't Kane!!!!!!!!!!!!!!!!!!");
-
- format(PlayerData[playerid][pForumName], 60, "%s", params);
- Message(playerid, COLOR_ADM, "[ ! ] Your forum name is now: \"%s\". ", params);
-
- new updateName[128];
-
- mysql_format(m_Handle, updateName, sizeof(updateName), "UPDATE players SET ForumName = '%e' WHERE id = %i", params, PlayerData[playerid][pSQLID]);
- mysql_tquery(m_Handle, updateName);
- return 1;
- }
- CMD:toggleconnects(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return 0;
-
- if(PlayerData[playerid][pToggleConnects])
- {
- PlayerData[playerid][pToggleConnects] = 0;
- SendClientMessage(playerid, COLOR_ADM, "[ ! ] You will no longer see connections.");
- }
- else
- {
- PlayerData[playerid][pToggleConnects] = 1;
- SendClientMessage(playerid, COLOR_ADM, "[ ! ] You will now see connections.");
- }
- return 1;
- }
- CMD:clearmychat(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- for(new i; i < 25; i++)
- SendClientMessage(playerid, -1, " ");
- return 1;
- }
- CMD:lastincar(playerid, params[])
- {
- new vehicleid, string[128];
-
- if (!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- if (sscanf(params, "d", vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /lastincar [vehicle id]");
-
- if (!IsValidVehicle(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM , "ERROR:{FFFFFF} You have specified an invalid vehicle. ");
-
- if (IsValidFactionCar(vehicleid)) {
- format (string, sizeof(string), "(Faction) Last in %s dbid#%d was %s. Last driver was %s.", ReturnVehicleName(vehicleid), FactionCar[vehicleid][carID], ReturnSQLName(FactionCar[vehicleid][carlastPassenger]),
- ReturnSQLName(FactionCar[vehicleid][carlastDriver]));
-
- SendClientMessage(playerid, COLOR_ADM, string);
- }
-
- if (IsValidPlayerCar(vehicleid)) {
- format (string, sizeof(string), "(Private) Last in %s dbid#%d was %s. Last driver was %s.", ReturnVehicleName(vehicleid), CarData[vehicleid][carID], ReturnSQLName(CarData[vehicleid][carlastPassenger]),
- ReturnSQLName(CarData[vehicleid][carlastDriver]));
-
- SendClientMessage(playerid, COLOR_ADM, string);
- }
-
- if(!IsValidFactionCar(vehicleid) && !IsValidPlayerCar(vehicleid)) {
- if(IsValidRentalCar(vehicleid)) {
- format (string, sizeof(string), "(Rental) Last in %s dbid#%d was %s. Last driver was %s.", ReturnVehicleName(vehicleid), RentalData[vehicleid][rentalcarSQLID], ReturnSQLName(CarlastPassenger[vehicleid]),
- ReturnSQLName(CarlastDriver[vehicleid]));
-
- SendClientMessage(playerid, COLOR_ADM, string);
- }
- else {
- format (string, sizeof(string), "(Public) Last in %s veh#%d was %s. Last driver was %s.", ReturnVehicleName(vehicleid), vehicleid, ReturnSQLName(CarlastPassenger[vehicleid]), ReturnSQLName(CarlastDriver[vehicleid]));
- SendClientMessage(playerid, COLOR_ADM, string);
- }
- }
-
- return true;
- }
- CMD:clearguns(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return 0;
-
- new
- playerb, type, str[128];
-
- if(sscanf(params, "ui", playerb, type))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE: /clearguns [playerid/PartofName] [type]");
- SendClientMessage(playerid, COLOR_GRAD2, "Type was introduced with the changes to the weapons system.");
- SendClientMessage(playerid, COLOR_GRAD2, "Type (0) is ALL the weapons the player has. (1) is weapons that can't be saved. (i.e: /duty guns)");
- SendClientMessage(playerid, COLOR_GRAD2, "Type (2): Every. This clears client and server sided. Use 0 to determine weapon cheats.");
- return 1;
- }
-
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified a player that isn't logged in.");
-
- if(type > 2 || type < 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: Bad Type.");
-
- ClearPlayerWeapons(playerb, type);
-
- format(str, sizeof(str), "%s cleared %s's (%s) weapons.", ReturnName(playerid), ReturnName(playerb), (type != 1) ? ("ALL") : ("Unsavable"));
- adminWarn(1, str);
-
- WriteLog("weapon_logs/admin_logs/clearguns.txt", "[%s] %s cleared %s's weapons.", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1));
- return 1;
- }
- CMD:adminnote(playerid, params[])
- {
- new playerb, query[128], a_string[128], b_string[128], string[128];
-
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- if(sscanf(params, "us[128]S()[128]", playerb, a_string, b_string))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /adminnote [playerid OR name] [action]");
- SendClientMessage(playerid, COLOR_ADM, "[Action] add, alter, delete, display");
- return true;
- }
-
- if (!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
-
- if (!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "You specified a player that isn't logged in.");
-
- if(!strcmp(a_string, "add"))
- {
- new reasons[128], slot_check = ReturnANoteSlot(playerb);
-
- if(sscanf(b_string, "s[128]", reasons))
- {
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /adminnote [playerid] add [reasons] ");
- }
-
- if (slot_check == -1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} This player already has 5 admin notes on them.");
-
- format(string, sizeof(string), "SERVER: An admin note was added to %s", ReturnName(playerb, 1));
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- format(string, sizeof(string), "%s added a admin note to %s", ReturnName(playerid, 1), ReturnName(playerb, 1));
- adminWarn(3, string);
-
- AddAdminNote(playerid, playerb, reasons);
- }
- else if(!strcmp(a_string, "alter"))
- {
- new reasons[128], id;
-
- if(sscanf(b_string, "ds[128]", id, reasons))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /adminnote [playerid] alter [noteid] [reasons]");
-
- if(id < 1 || id > MAX_ADMIN_NOTES)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid admin note ID.");
-
- if(!aNotesData[playerb][id][anote_SQLID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player doesn't have a note in that ID.");
-
- format(string, sizeof(string), "SERVER: %s's Note %d edited to : %s", ReturnName(playerb, 1), id, reasons);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- format(aNotesData[playerb][id][anote_reason], 128, "%s", reasons);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE player_anotes SET anote_reason = '%e' WHERE id = %i", reasons, aNotesData[playerb][id][anote_SQLID]);
- mysql_pquery(m_Handle, query);
- WriteLog("admin_logs/players/admin_note/edit_note.txt", "[%s] %s edited %s's Note (%d) to %s", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), id, reasons);
- }
- else if(!strcmp(a_string, "delete"))
- {
- new id;
-
- if(sscanf(b_string, "d", id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /adminnote [playerid] delete [noteid]");
-
- if(id < 1 || id > MAX_ADMIN_NOTES)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid admin note ID.");
-
- if(!aNotesData[playerb][id][anote_SQLID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player doesn't have a note in that ID.");
-
- format(string, sizeof(string), "SERVER: %s's Note %d was deleted", ReturnName(playerb, 1), id);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- if(aNotesData[playerb][id][anote_active])
- {
- aNotesData[playerb][id-1][anote_active] = true; // Sets the note before deleted active.
- }
-
- mysql_format(m_Handle, query, sizeof(query), "DELETE FROM player_anotes WHERE id = %i", aNotesData[playerb][id][anote_SQLID]);
- mysql_pquery(m_Handle, query);
-
- aNotesData[playerb][id][anote_SQLID] = 0;
- aNotesData[playerb][id][anote_active] = false;
-
- WriteLog("admin_logs/players/admin_note/delete_note.txt", "[%s] %s deleted %s's Note ID %d", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), id);
- }
- else if(!strcmp(a_string, "display"))
- {
- new id;
-
- if (CountAdminNotes(playerb) == 0)
- {
- format(string, sizeof(string), "SERVER: %s has no OnAdminAction notes to display.", ReturnName(playerb, 1));
- SendClientMessage(playerid, COLOR_ADM, string);
- return true;
- }
-
- if(sscanf(b_string, "d", id))
- {
- format(string, sizeof(string), "___________%s's Admin Notes___________", ReturnName(playerb, 1));
- SendClientMessage(playerid, COLOR_ACTION, string);
-
- for(new i = 1; i < MAX_ADMIN_NOTES; i++)
- {
- if(aNotesData[playerb][i][anote_SQLID])
- {
- format(string, sizeof(string), "Note %d: %s", i, aNotesData[playerb][i][anote_reason]);
- SendClientMessage(playerid, COLOR_ACTION, string);
- }
- }
- SendClientMessage(playerid, COLOR_ACTION, "______________________________________");
- SendClientMessage(playerid, COLOR_ADM, "USAGE: /adminnote [playerid] display [noteid] for more information.");
- return true;
- }
-
- if(id < 1 || id > MAX_ADMIN_NOTES)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid admin note ID.");
-
- if(!aNotesData[playerb][id][anote_SQLID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player doesn't have a note in that ID.");
-
- format(string, sizeof(string), "___________%s's Note___________", ReturnName(playerb, 1));
- SendClientMessage(playerid, COLOR_ACTION, string);
-
- format(string, sizeof(string), "Note ID : %d", id);
- SendClientMessage(playerid, COLOR_ACTION, string);
-
- format(string, sizeof(string), "Reason : %s", aNotesData[playerb][id][anote_reason]);
- SendClientMessage(playerid, COLOR_ACTION, string);
-
- format(string, sizeof(string), "Issuer : %s", aNotesData[playerb][id][anote_issuer]);
- SendClientMessage(playerid, COLOR_ACTION, string);
-
- format(string, sizeof(string), "Date : %s", aNotesData[playerb][id][anote_date]);
- SendClientMessage(playerid, COLOR_ACTION, string);
-
- SendClientMessage(playerid, COLOR_ACTION, "_______________________________");
- }
- return true;
- }
- CMD:adminmsg(playerid, params[])
- {
- if (!PlayerData[playerid][pAdmin])
- return false;
-
- new playerb[32], string[128], query[200], n_reason[128];
-
- if (sscanf(params, "s[60]s[128]", playerb, n_reason))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /adminmsg [character name] [message]");
-
- foreach(new i : Player) {
- if(strfind(ReturnName(i, 1), playerb, true) != -1) {
- format(string, sizeof(string), "SERVER: %s is logged in right now. (ID: %d)", playerb, i);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return true;
- }
- }
-
- format(PlayerData[playerid][pAdminMsg], 128, "%s", n_reason);
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT Name, AdminMessage, AdminMessageBy, AdmMessageConfirm FROM `players` WHERE Name = '%e'", playerb);
- mysql_pquery(m_Handle, query, "SQL_AddAdminMessage", "i", playerid);
- return true;
- }
- CMD:logc(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new
- playerb, specifier[20];
-
- if(sscanf(params, "us[20]", playerb, specifier))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /logc [playerid OR name] [chat / command]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "You specified an invalid player.");
-
- if(!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "That player hasn't logged in yet.");
-
- if(PlayerData[playerb][pSQLID] == 1)
- return SendClientMessage(playerid, COLOR_ADM, "Ahhh Oh My Gosh Wow!");
-
- new
- log_viewer[1350], stringit[128],
- caption[60];
-
- if(!strcmp(specifier, "chat", true))
- {
- Message(playerid, COLOR_ADM, "%s's chat logs. If no box, they haven't said anything.", ReturnName(playerb));
-
- for(new i = 0; i < 30; i++)
- {
- if(isnull(PlayerChatLogs[playerid][i]))
- continue;
-
- format(stringit, 128, "%s\n", PlayerChatLogs[playerb][i]);
- strcat(log_viewer, stringit);
- }
- format(caption, 60, "%s", ReturnName(playerb));
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_MSGBOX, caption, log_viewer, "Okay!", "");
- }
- else if(!strcmp(specifier, "command", true))
- {
- Message(playerid, COLOR_ADM, "%s's command logs. If no box, they haven't done anything.", ReturnName(playerb));
-
- for(new i = 0; i < 30; i++)
- {
- if(isnull(PlayerCommandLogs[playerid][i]))
- continue;
-
- format(stringit, 128, "%s\n", PlayerCommandLogs[playerb][i]);
- strcat(log_viewer, stringit);
- }
- format(caption, 60, "%s", ReturnName(playerb));
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_MSGBOX, caption, log_viewer, "Okay!", "");
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- return 1;
- }
- CMD:apark(playerid, params[])
- {
- if (!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new vehicleid, string[128], query[110];
-
- if (sscanf(params, "i", vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /apark [vehicleid] ");
-
- if (!IsValidVehicle(vehicleid))
- return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active vehicle.");
-
- if (!IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You may only park private player vehicles.");
-
- new ownerid = CarData[vehicleid][carOwnerID];
-
- foreach (new i : Player)
- {
- if(strfind(ReturnName(i, 1), ReturnSQLName(ownerid), true) != -1)
- {
- format(string, sizeof(string), "SERVER: Your %s was parked by Admin %s.", ReturnVehicleName(vehicleid), ReturnName(playerid, 1));
- SendClientMessage(i, COLOR_ADM, string);
-
- _has_vehicle_spawned[i] = false;
- _has_spawned_vehicleid[i] = INVALID_VEHICLE_ID;
-
- if(StartedTruckerMission[i] && TruckerMissionVehicle[i] == vehicleid)
- {
- SendClientMessage(i, COLOR_ADM, "Your trucker mission ended due to your vehicle being parked...");
-
- if(TruckerJobEarnings[i] != 0)
- format(string, sizeof(string), "You were given your earning of $%s.", MoneyFormat(TruckerJobEarnings[i]));
-
- else string = "You didn't have any earnings to give back.";
- SendClientMessage(i, COLOR_ADM, string);
-
- EndTruckerMission(i);
- }
-
- }
- else
- {
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET HasCarSpawned = 0 WHERE id = %i", ownerid);
- mysql_pquery(m_Handle, query);
- }
- }
-
- foreach(new i : Player)
- {
- if(GetPVarInt(i, "DuplicateKey") == CarData[vehicleid][carID])
- {
- DeletePVar(i, "DuplicateKey");
- Message(i, COLOR_WHITE, "Your duplicate key to %s's vehicle expired.", ReturnSQLName(CarData[vehicleid][carOwnerID]));
- }
- }
-
- format (string, sizeof(string), "Parked by %s", ReturnName(playerid));
- LogVehicleAction(vehicleid, string);
-
- format (string, sizeof(string), "%s parked %s's %s.", ReturnName(playerid, 1), ReturnSQLName(ownerid), ReturnVehicleName(vehicleid));
- adminWarn(1, string);
-
- CarData[vehicleid][carExists] = false;
- SaveCar(vehicleid);
-
- SetVehicleHealth(vehicleid, 300);
- DefaultVehicleValues(vehicleid);
-
- DestroyVehicle(vehicleid);
- return true;
- }
- CMD:unban(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return 0;
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /unban [username]");
-
- if(!ReturnSQLFromName(params))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: The username you specified doesn't exist.");
-
- new thread[190];
- mysql_format(m_Handle, thread, sizeof(thread), "SELECT id FROM bans WHERE Name = '%e'", params);
- mysql_tquery(m_Handle, thread, "CheckPlayerBanned", "is", playerid, params);
-
- return 1;
- }
- CMD:setfuel(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new vehicleid, Float:fuel;
- if(sscanf(params, "if", vehicleid, fuel))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /setfuel [vehicleid] [fuel]");
-
- if(!IsValidVehicle(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid vehicle!");
-
- if(!IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You can only set fuel on player cars.");
-
- if(fuel < 0 || fuel > 100)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: Fuel has to be between 1-100.");
-
- new str[128];
- format(str, sizeof(str), "%s set vehicle ID %i's fuel to %.2f", ReturnName(playerid), vehicleid, fuel);
- adminWarn(1, str);
-
- CarData[vehicleid][carFuel] = fuel;
- return 1;
- }
- CMD:spawnedtrailers(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return 0;
-
- foreach(new i : Player) if(SpawnedTrailer[i])
- {
- Message(playerid, COLOR_ADM, "Trailer ID %i by %s", TrailerID[i], ReturnName(i));
- }
-
- return 1;
- }
- CMD:aunrentrental(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new
- vehicleid,
- str[128];
-
- if(sscanf(params, "i", vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /aunrentrental [vehicle id]");
-
- if(!IsValidVehicle(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid vehicle.");
-
- if(!RentalData[vehicleid][rentalcarSQLID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: That isn't a rental vehicle.");
-
- if(!RentalData[vehicleid][rentalcarRented])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: This isn't rented by anyone.");
-
- Message(playerid, COLOR_ADM, "Vehicle %i was being rented by: %s. It's been unrented.", vehicleid, ReturnSQLName(RentalData[vehicleid][rentalcarRentedBy]));
-
- RentalData[vehicleid][rentalcarRented] = false;
- RentalData[vehicleid][rentalcarRentedBy] = 0;
-
- format(str, sizeof(str), "%s unrented rental vehicle ID %i", ReturnName(playerid), vehicleid);
- adminWarn(1, str);
- return 1;
- }
- CMD:aunrenttrucker(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new
- vehicleid,
- str[128],
- isTrucker = 0;
-
- if(sscanf(params, "i", vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /aunrenttrucker [vehicle id]");
-
- for(new i = 0; i < sizeof TruckerVehicles; i++)
- {
- if(vehicleid == TruckerVehicles[i])
- {
- isTrucker = 1;
- }
- }
- if(!isTrucker) return SendClientMessage(playerid, COLOR_ADM, "ERROR: That isn't a trucker vehicle.");
-
- SendClientMessage(playerid, COLOR_GREY, "Vehicle unrented.");
-
- format(str, sizeof(str), "%s unrented trucker vehicle ID: %i", ReturnName(playerid), vehicleid);
- adminWarn(1, str);
-
- TruckerVehicleRentedBy[vehicleid] = 0;
- return 1;
- }
- CMD:checkpackages(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new playerb, string[128];
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /checkpackages [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You have specified a player that isn't logged in.");
-
- format(string, sizeof(string), "You're viewing %s's weapon packages.", ReturnName(playerb, 1));
- SendClientMessage(playerid, COLOR_ADM, string);
-
- DisplayWeaponPackages(playerb, playerid);
- return 1;
- }
- CMD:showdrugs(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new playerb, string[100];
-
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /showdrugs [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You have specified a player that isn't logged in.");
- format(string, sizeof(string), "%s's Drugs:", ReturnName(playerb, 0));
- SendClientMessage(playerid, COLOR_ADM, string);
-
- for (new i = 0; i < 10; i++) if (DrugData[playerb][i][drugQuantity] > 0)
- {
- format(string, sizeof(string), "[{FFFFFF} %d. %s (%s: %.1f%s/%.1f%s) (Strength: %d) {FF6347}]",
- i, GetPackageType(DrugData[playerb][i][drugPackage]), ReturnDrugsName(DrugData[playerb][i][drugType]), DrugData[playerb][i][drugQuantity], (IsPill(DrugData[playerb][i][drugType]) == 1) ? (" Pills") : ("g"),
- GetPackageCapacity(DrugData[playerb][i][drugPackage], DrugData[playerb][i][drugType]), (IsPill(DrugData[playerb][i][drugType]) == 1) ? (" Pills") : ("g"), DrugData[playerb][i][drugStrength]);
- SendClientMessage(playerid, COLOR_ADM, string);
- }
- return 1;
- }
- // Level 2
- CMD:car(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 2)return UnAuthMessage(playerid);
- new string[128], model[32], color[2], siren, Float:pos[4], vehicleid;
- if(sscanf(params, "s[32]I(-1)I(-1)I(0)", model, color[0], color[1], siren)){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /car [modelid OR name] [color1] [color2] [siren]");
- SendClientMessage(playerid, COLOR_ADM, "Tip: You can leave color1, color2 and siren blank and it'll set to random.");
- return true;
- }
- if ((model[0] = GetVehicleModelByName(model)) == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You selected an invalid model ID.");
- if(color[0] == -1) {
- color[0] = random(255);
- }
- if(color[1] == -1) {
- color[1] = random(255);
- }
- GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
- GetPlayerFacingAngle(playerid, pos[3]);
- vehicleid = CreateVehicle(model[0], pos[0], pos[1], pos[2], pos[3], color[0], color[1], 300, siren);
- SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- switch(GetVehicleModel(vehicleid)) {
- case 481, 509, 510: ToggleVehicleEngine(vehicleid, true);
- }
- AdminCar[vehicleid] = true;
- AdminCarColor1[vehicleid] = color[0];
- AdminCarColor2[vehicleid] = color[1];
-
- CarData[vehicleid][carID] = 0;
- FactionCar[vehicleid][carID] = 0;
- RentalData[vehicleid][rentalcarSQLID] = 0;
-
- CarEngine[vehicleid] = false;
- CarLights[vehicleid] = false;
- format(string, sizeof(string), "Warning: You spawned a %s. It will respawn when unoccupied every 300 seconds until you despawn it.", ReturnVehicleModelName(model[0]));
- SendClientMessage(playerid, COLOR_ADM, string);
- format(string, sizeof(string), "%s spawned a temporary %s. ", ReturnName(playerid, 1), ReturnVehicleModelName(model[0]));
- adminWarn(4, string);
- WriteLog("admin_logs/car_spawn.txt", "[%s] %s spawned a %s.", ReturnDate(), ReturnName(playerid, 1), ReturnVehicleModelName(model[0]));
- return true;
- }
- CMD:setcarparams(playerid, params[])
- {
- new vehicleid, option[90], value, string[128];
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
- if(sscanf(params, "ds[90]I(-1)", vehicleid, option, value)) {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setcarparams [vehicleid] [options]");
- SendClientMessage(playerid, COLOR_ADM, "->{FFFFFF} engine, lights, lock, health");
- return true;
- }
- if(vehicleid < 1 || !IsValidVehicle(vehicleid))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active vehicle.");
- if(strmatch(option, "engine")) {
- if(CarEngine[vehicleid]) {
- CarEngine[vehicleid] = false;
- ToggleVehicleEngine(vehicleid, false);
- format(string, sizeof(string), "%s turned vehicleid %d's (%s) engine OFF.", ReturnName(playerid, 1), vehicleid, ReturnVehicleName(vehicleid));
- adminWarn(1, string);
- }
- else {
- CarEngine[vehicleid] = true;
- ToggleVehicleEngine(vehicleid, true);
- format(string, sizeof(string), "%s turned vehicleid %d's (%s) engine ON.", ReturnName(playerid, 1), vehicleid, ReturnVehicleName(vehicleid));
- adminWarn(1, string);
- }
- }
- else if(strmatch(option, "lights")) {
- if(CarLights[vehicleid]){
- CarLights[vehicleid] = false;
- ToggleVehicleLights(vehicleid, false);
- format(string, sizeof(string), "%s turned vehicleid %d's (%s) lights OFF.", ReturnName(playerid, 1), vehicleid, ReturnVehicleName(vehicleid));
- adminWarn(1, string);
- }
- else {
- CarLights[vehicleid] = true;
- ToggleVehicleLights(vehicleid, true);
- format(string, sizeof(string), "%s turned vehicleid %d's (%s) lights ON.", ReturnName(playerid, 1), vehicleid, ReturnVehicleName(vehicleid));
- adminWarn(1, string);
- }
- }
- else if(strmatch(option, "lock")) {
- if(CarData[vehicleid][carLocked]){
- CarData[vehicleid][carLocked] = false;
- ToggleVehicleLock(vehicleid, false);
- format(string, sizeof(string), "%s unlocked vehicleid %d (%s).", ReturnName(playerid, 1), vehicleid, ReturnVehicleName(vehicleid));
- adminWarn(1, string);
- }
- else {
- CarData[vehicleid][carLocked] = true;
- ToggleVehicleLock(vehicleid, true);
- format(string, sizeof(string), "%s locked vehicleid %d (%s).", ReturnName(playerid, 1), vehicleid, ReturnVehicleName(vehicleid));
- adminWarn(1, string);
- }
- }
- else if(strmatch(option, "health")){
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setcarparams [vehicleid] health [health]");
- SetVehicleHealth(vehicleid, value);
- format(string, sizeof(string), "%s set vehicleid %d's (%s) health to %d", ReturnName(playerid, 1), vehicleid, ReturnVehicleName(vehicleid), value);
- adminWarn(1, string);
-
- WriteLog("admin_logs/vehicles/sethealth_log.txt", "[%s] %s set vehicle ID %d's Health to %i (Player car: %s)", ReturnDate(), ReturnName(playerid), vehicleid, value, (IsValidFactionCar(vehicleid) != 1) ? ("Yes") : ("No"));
- }
- return true;
- }
- CMD:set(playerid, params[])
- {
- new string[128], type[90], id;
- if(PlayerData[playerid][pAdmin] < 2) return UnAuthMessage(playerid);
- if(sscanf(params, "s[90]I(-1)", type, id)) return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /set [weather OR time] [id]");
- if(strmatch(type, "weather")) {
- if(id == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /set weather [weather id]");
- if(id < 1 || id > 50)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid weather id.");
- GlobalWeather = id;
- SetWeather(id);
- format(string, sizeof(string), "%s set the weather to %d", ReturnName(playerid, 1), id);
- adminWarn(1, string);
- }
- else if(strmatch(type, "time")) {
- if(id == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /set time [time id]");
- if(id < 0 || id > 23)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You have specified a invalid time.");
- format(string, sizeof(string), "%s set the time to %d", ReturnName(playerid, 1), id);
- adminWarn(1, string);
- SetWorldTime(id);
- }
- return true;
- }
- CMD:getcar(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 2)return UnAuthMessage(playerid);
-
- new vehicleid, Float:Pos[3], string[128];
- if(sscanf(params, "d", vehicleid))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /getcar [vehicle ID]");
- if(vehicleid < 1 || !IsValidVehicle(vehicleid))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active vehicle.");
-
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
- SetVehiclePos(vehicleid, Pos[0]+1, Pos[1], Pos[2]);
-
- format(string, sizeof(string), "%s teleported vehicle ID %d", ReturnName(playerid, 1), vehicleid);
- adminWarn(2, string);
- return 1;
- }
- CMD:putplayerincar(playerid, params[])
- {
- if(PlayerData[playerid][pAdmin] < 2)
- return UnAuthMessage(playerid);
-
- new vehicleid, playerb, seat;
- new string[128];
-
- if(sscanf(params, "uii", playerb, vehicleid, seat))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /putplayerincar [playerid/PartofName] [vehicleid] [seat]");
-
- if(seat < 0 || seat > 4)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: Invalid seat.");
-
- if(!IsPlayerConnected(playerb) || !pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "Player is either not connected or logged in.");
-
- if(!IsValidVehicle(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "Invalid vehicle specified.");
-
- if(!IsSeatAvailable(vehicleid, seat))
- return SendClientMessage(playerid, COLOR_ADM, "That seat is occupied.");
-
- PutPlayerInVehicle(playerb, vehicleid, seat);
-
- format(string, sizeof(string), "%s put player %s in vehicle ID %i.", ReturnName(playerid), ReturnName(playerb), seat);
- adminWarn(1, string);
- return 1;
- }
- CMD:backup(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 2)return false;
-
- new a_string[60], b_string[128], string[128];
-
- if(sscanf(params, "s[60]S()[128]", a_string, b_string))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /backup [action]");
- SendClientMessage(playerid, COLOR_ADM, "[Action] players, playerid, properties, property_id, factions");
- SendClientMessage(playerid, COLOR_ADM, "[Action] businesses, garages, garage_id, ALL");
- return true;
- }
-
- if(!strcmp(a_string, "players"))
- {
- foreach(new i : Player)
- {
- if(pLoggedIn[i])
- {
- SavePlayer(i);
- }
- }
-
- format(string, sizeof(string), "%s backed up all player data.", ReturnName(playerid, 1));
- adminWarn(1, string);
- }
- else if(!strcmp(a_string, "playerid"))
- {
- new playerb;
-
- if(sscanf(b_string, "u", playerb)) return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /backup playerid [playerid OR name]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65534 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You specified a player that isn't logged in.");
-
- SavePlayer(playerb);
-
- format(string, sizeof(string), "%s backed up player %s", ReturnName(playerid, 1), ReturnName(playerb, 1));
- adminWarn(2, string);
- }
- else if(!strcmp(a_string, "properties"))
- {
- new confirm[60];
-
- if(sscanf(b_string, "s[60]", confirm))
- {
- format(string, sizeof(string), "You're about to backup %i properties that are loaded.", TotalPropertyMade);
- SendClientMessage(playerid, COLOR_ADM, string);
- SendClientMessage(playerid, COLOR_ADM, "This could lag the server for a few seconds. Type /backup properties confirm to continue.");
- return true;
- }
-
- if(!strcmp(b_string, "confirm"))
- {
- for(new i = 0; i < TotalPropertyMade; i++){
- SaveProperty(i);
- }
-
- format(string, sizeof(string), "%s backed up %i properties.", ReturnName(playerid, 1), TotalPropertyMade);
- adminWarn(1, string);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- }
- else if(!strcmp(a_string, "property_id"))
- {
- new p_id;
-
- if(sscanf(b_string, "d", p_id)) return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /backup property_id [property id]");
- if(p_id > MAX_PROPERTY || !PropertyData[p_id][propertyid])return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid property.");
-
- SaveProperty(p_id);
-
- format(string, sizeof(string), "%s backed up property ID %d", ReturnName(playerid, 1), p_id);
- adminWarn(2, string);
- }
- else if(!strcmp(a_string, "factions"))
- {
- new confirm[60];
-
- if(sscanf(b_string, "s[60]", confirm))
- {
- format(string, sizeof(string), "You're about to backup %i factions that are loaded.", TotalFactionsLoaded);
- SendClientMessage(playerid, COLOR_ADM, string);
- SendClientMessage(playerid, COLOR_ADM, "Type /backup factions confirm to continue.");
- return true;
- }
-
- if(!strcmp(b_string, "confirm"))
- {
- for(new i = 0; i < TotalFactionsLoaded; i++)
- {
- SaveFaction(i);
- }
-
- format(string, sizeof(string), "%s backed up %i factions.", TotalFactionsLoaded);
- adminWarn(2, string);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- }
- else if(!strcmp(a_string, "businesses"))
- {
- new confirm[60];
-
- if(sscanf(b_string, "s[60]", confirm))
- {
- format(string, sizeof(string), "You're about to backup %i businesses that are loaded.", TotalBusinessesLoaded);
- SendClientMessage(playerid, COLOR_ADM, string);
- SendClientMessage(playerid, COLOR_ADM, "Type /backup businesses confirm to continue.");
- return true;
- }
-
- if(!strcmp(b_string, "confirm"))
- {
- for(new i = 0; i < TotalBusinessesLoaded; i++)
- {
- SaveBusiness(i);
- }
-
- format(string, sizeof(string), "%s backed up %i businesses.", TotalBusinessesLoaded);
- adminWarn(2, string);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- }
- else if(!strcmp(a_string, "garages"))
- {
- new confirm[60];
-
- if(sscanf(b_string, "s[60]", confirm))
- {
- format(string, sizeof(string), "You're about to backup %i property garages that are loaded.", TotalPropertyGaragesMade);
- SendClientMessage(playerid, COLOR_ADM, string);
- SendClientMessage(playerid, COLOR_ADM, "Type /backup garages confirm to continue.");
- return true;
- }
-
- if(!strcmp(b_string, "confirm"))
- {
- for(new i = 0; i < TotalPropertyGaragesMade; i++)
- {
- SavePropertyGarage(i);
- }
-
- format(string, sizeof(string), "%s backed up %i property garages.", ReturnName(playerid, 1), TotalPropertyGaragesMade);
- adminWarn(2, string);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- }
- else if(!strcmp(a_string, "garage_id"))
- {
- new g_id;
-
- if(sscanf(b_string, "d", g_id))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /backup garage_id [garage id]");
- if(g_id > MAX_PROPERTY_GARAGES || !GarageData[g_id][garageSQLID])return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid garage.");
-
- SavePropertyGarage(g_id);
-
- format(string, sizeof(string), "%s backed up property garage %i.", ReturnName(playerid, 1), g_id);
- adminWarn(2, string);
- }
- else if(!strcmp(a_string, "all"))
- {
- new confirm[60];
-
- if(sscanf(b_string, "s[60]", confirm))
- {
- SendClientMessage(playerid, COLOR_ADM, "You're about to backup all server data. This could lag the server for a few seconds.");
- SendClientMessage(playerid, COLOR_ADM, "Type /backup ALL confirm to continue.");
- return true;
- }
-
- if(!strcmp(b_string, "confirm"))
- {
-
- foreach(new i : Player){
- if(pLoggedIn[i]){
- SavePlayer(i);
- }
- }
- SaveProperties();
- SaveFactions();
- SaveBusinesses();
- SaveTolls();
- SavePaynSprays();
- SaveDoors();
- SavePropertyGarages();
-
- format(string, sizeof(string), "%s backed up the server data.", ReturnName(playerid, 1));
- SendClientMessageToAll(COLOR_ADM, string);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- return true;
- }
- CMD:despawncar(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 2)return UnAuthMessage(playerid);
-
- new string[128], vehicleid = GetPlayerVehicleID(playerid);
-
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(AdminCar[vehicleid]){
- AdminCar[vehicleid] = false;
- DestroyVehicle(vehicleid);
-
- format(string, sizeof(string), "%s destroyed vehicle ID %d", ReturnName(playerid, 1), vehicleid);
- adminWarn(1, string);
- }
- else {
- SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in an admin vehicle.");
- }
- }
- else {
- new carid;
-
- if(sscanf(params, "d", carid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /despawncar [vehicleid]");
-
- if(!IsValidVehicle(carid))
- return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active vehicle.");
-
- if(!AdminCar[carid])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't despawn that vehicle.");
-
- AdminCar[carid] = false;
- DestroyVehicle(carid);
-
- format(string, sizeof(string), "%s destroyed vehicle ID %d", ReturnName(playerid, 1), carid);
- adminWarn(1, string);
- }
- return true;
- }
- CMD:noooc(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if (PlayerData[playerid][pAdmin] < 2)return UnAuthMessage(playerid);
-
- new string[128];
-
- if (!OOC){
- OOC = true;
- SendMessageToAll(COLOR_GREY, "OOC chat was enabled by an admin.");
-
- format(string, sizeof(string), "%s enabled /o(oc) chat", ReturnName(playerid, 1));
- adminWarn(1, string);
- }
- else{
- OOC = false;
- SendMessageToAll(COLOR_GREY, "OOC chat was disabled by an admin.");
-
- format(string, sizeof(string), "%s disabled /o(oc) chat", ReturnName(playerid, 1));
- adminWarn(1, string);
- }
- return true;
- }
- CMD:clearpackages(playerid, params[])
- {
- new playerb, string[128];
-
- if (PlayerData[playerid][pAdmin] < 2)
- return UnAuthMessage(playerid);
-
- if (sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /clearpackages [playerid/PartofName]");
-
- if (!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
-
- if (!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_GREY, "You specified a player that isn't logged in.");
-
- WriteLog("weapon_logs/admin_logs/clearpackage.txt", "[%s] %s cleared %s's weapon packages. They had %d.",
- ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), CountPlayerPackages(playerb));
-
- for (new i = 1; i < MAX_WEAPON_PACKAGES; i++) {
- PackageData[playerb][packageWeapon][i] = 0;
- PackageData[playerb][packageAmmo][i] = 0;
- }
-
- format (string, sizeof(string), "%s cleared %s's weapon packages.", ReturnName(playerid, 1), ReturnName(playerb, 1));
- adminWarn(2, string);
- return true;
- }
- CMD:clearvehpackages(playerid, params[])
- {
- new vehicleid, string[128];
-
- if (PlayerData[playerid][pAdmin] < 2)
- return UnAuthMessage(playerid);
-
- if (sscanf(params, "d", vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /clearvehpackages [vehicleid]");
-
- if (!IsValidVehicle(vehicleid))
- return SendClientMessage(playerid, COLOR_GREY, "65534 is not an active vehicle.");
-
- if (!IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "The vehicle you specified can't hold weapon packages.");
-
- WriteLog("weapon_logs/admin_logs/clearvpackage.txt", "[%s] %s cleared vehicle DBID %d weapon packages. Owner DBID : %d",
- ReturnDate(), ReturnName(playerid, 1), CarData[vehicleid][carID], CarData[vehicleid][carOwnerID]);
-
- for (new i = 1; i < 21; i++)
- {
- CarData[vehicleid][carPackages][i] = 0;
- CarData[vehicleid][carPackagesAmmo][i] = 0;
- }
-
- format (string, sizeof(string), "%s cleared vehicleid %d's weapon packages. DBID %d", ReturnName(playerid, 1), vehicleid, CarData[vehicleid][carID]);
- adminWarn(2, string);
-
- return true;
- }
- CMD:cleardrugs(playerid, params[])
- {
- new playerb, string[128];
-
- if (PlayerData[playerid][pAdmin] < 2)
- return UnAuthMessage(playerid);
-
- if (sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /cleardrugs [playerid/PartofName]");
-
- if (!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
-
- if (!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_GREY, "You specified a player that isn't logged in.");
-
- WriteLog("PlayerDrugs/admin_cleardrugs.txt", "[%s] %s cleared %s's drug packages.", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1));
-
- format (string, sizeof(string), "%s cleared %s's drug packages.", ReturnName(playerid, 1), ReturnName(playerb, 1));
- adminWarn(2, string);
-
- for(new i = 0; i < 10; i++){
- RemoveDrugPackage(playerb, i);
- }
- return true;
- }
- CMD:checkfreq(playerid, params[])
- {
- new channel;
-
- if(PlayerData[playerid][pAdmin] < 2)
- return UnAuthMessage(playerid);
-
- if(sscanf(params, "i", channel))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /checkfreq [frequency]");
-
- if(channel < 1 || channel > 1000000)return SendClientMessage(playerid, COLOR_ADM, "ERROR: Only channels 1 - 1000000 are supported.");
-
- Message(playerid, COLOR_ADM, "Players in frequency %d:", channel);
- foreach(new i : Player)
- {
- for(new x = 0; x < 5; x++) if(PlayerData[i][pRadio][x] == channel)
- {
- Message(playerid, COLOR_GREY, "- %s [ID: %i]", ReturnName(i), i);
- }
- }
- return 1;
- }
- // Level 3
- CMD:setcar(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 3)return UnAuthMessage(playerid);
- new vehicleid, option[90], value, string[128];
- if(sscanf(params, "ds[90]I(-1)", vehicleid, option, value)){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setcar [vehicleid] [options]");
- SendClientMessage(playerid, COLOR_ADM, "->{FFFFFF} fuel, color1, color2, paintjob, xmr, timesdestroyed");
- SendClientMessage(playerid, COLOR_ADM, "->{FFFFFF} lock, alarm, immob, insurance");
- return true;
- }
- new id = CarData[vehicleid][carID];
- if(vehicleid < 0 || !IsValidVehicle(vehicleid))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active vehicle.");
- if(!id)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That vehicle doesn't exist in the database.");
- if(strmatch(option, "fuel")){
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setcar [vehicleid] fuel [fuel 0-100]");
- if(value < 0 || value > 100)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Fuel must be 0-100.");
- CarData[vehicleid][carFuel] = value;
- format(string, sizeof(string), "%s set vehicleid %d's fuel to %d", ReturnName(playerid, 1), vehicleid, value);
- adminWarn(3, string);
- SaveCar(vehicleid);
-
- WriteLog("admin_logs/vehicles/setfuel_log.txt", "[%s] %s set Vehicle (DBID) %d's fuel to %d", ReturnDate(), ReturnName(playerid, 1), id, value);
- }
- else if(strmatch(option, "color1")){
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setcar [vehicleid] color1 [colorid]");
- if(value < 0 || value > 255)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid color id.");
- CarData[vehicleid][carColor1] = value;
- format(string, sizeof(string), "%s set vehicleid %d's color1 to %d", ReturnName(playerid, 1), vehicleid, value);
- adminWarn(3, string);
- SendClientMessage(playerid, COLOR_ADM, "Warning: They must respawn their vehicle for the color to take effect.");
- SaveCar(vehicleid);
-
- WriteLog("admin_logs/vehicles/setcolor.txt", "[%s] %s set Vehicle (DBID) %d's color1 to %d", ReturnDate(), ReturnName(playerid, 1), id, value);
- }
- else if(strmatch(option, "color2")){
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setcar [vehicleid] color2 [colorid]");
- if(value < 0 || value > 255)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid color id.");
- CarData[vehicleid][carColor2] = value;
- format(string, sizeof(string), "%s set vehicleid %d's color2 to %d", ReturnName(playerid, 1), vehicleid, value);
- adminWarn(3, string);
- SendClientMessage(playerid, COLOR_ADM, "Warning: They must respawn their vehicle for the color to take effect.");
- SaveCar(vehicleid);
-
- WriteLog("admin_logs/vehicles/setcolor.txt", "[%s] %s set Vehicle (DBID) %d's color2 to %d", ReturnDate(), ReturnName(playerid, 1), id, value);
- }
- else if(strmatch(option, "paintjob")){
- if(value == -1){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setcar [vehicleid] paintjob [paintjob]");
- SendClientMessage(playerid, COLOR_ADM, "Warning: Valid paintjob IDs are 0-2. Use 3 to remove the paintjob.");
- return true;
- }
- if(value > 3 || value < 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You have specified an invalid paintjob id.");
- CarData[vehicleid][carPaintjob] = value;
- format(string, sizeof(string), "%s set vehicleid %d's paintjob to %d", ReturnName(playerid, 1), vehicleid, value);
- adminWarn(3, string);
- SendClientMessage(playerid, COLOR_ADM, "Warning: They must respawn their vehicle for the paintjob to take effect.");
- SaveCar(vehicleid);
-
- WriteLog("admin_logs/vehicles/setcolor.txt", "[%s] %s set Vehicle (DBID) %d's paintjob to %d", ReturnDate(), ReturnName(playerid, 1), id, value);
- }
- else if(strmatch(option, "xmr")){
- if(CarData[vehicleid][carXMR]){
- CarData[vehicleid][carXMR] = false;
- format(string, sizeof(string), "%s removed vehicleid %d's XMR.", ReturnName(playerid, 1), vehicleid);
- adminWarn(3, string);
- SaveCar(id);
-
- WriteLog("admin_logs/vehicles/setxmr_log.txt", "[%s] %s removed Vehicle (DBID) %d's XMR", ReturnDate(), ReturnName(playerid, 1), id);
- }
- else{
- CarData[vehicleid][carXMR] = true;
- format(string, sizeof(string), "%s set vehicleid %d's XMR.", ReturnName(playerid, 1), vehicleid);
- adminWarn(3, string);
- SaveCar(vehicleid);
-
- WriteLog("admin_logs/vehicles/setxmr_log.txt", "[%s] %s added XMR to Vehicle (DBID) %d", ReturnDate(), ReturnName(playerid, 1), id);
- }
- }
- else if(strmatch(option, "timesdestroyed")){
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setcar [vehicleid] timesdestroyed [value]");
- format(string, sizeof(string), "%s set vehicleid %d's times destroyed to %d from %d", ReturnName(playerid, 1), vehicleid, value, CarData[vehicleid][carTimeDestroyed]);
- adminWarn(3, string);
- CarData[vehicleid][carTimeDestroyed] = value;
- SaveCar(vehicleid);
-
- WriteLog("admin_logs/vehicles/setdestroy_log.txt", "[%s] %s set Vehicle (DBID) %d's times destroyed to %d", ReturnDate(), ReturnName(playerid, 1), id, value);
- }
- else if(strmatch(option, "lock")){
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setcar [vehicleid] lock [value]");
- if(value > 3 || value < 1)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Locks have to be 1-3.");
- format(string, sizeof(string), "%s set vehicleid %d's lock status to %d", ReturnName(playerid, 1), vehicleid, value);
- adminWarn(3, string);
- CarData[vehicleid][carLock] = value;
- SaveCar(vehicleid);
-
- WriteLog("admin_logs/vehicles/setlock_log.txt", "[%s] %s set Vehicle (DBID) %d's lock to %d", ReturnDate(), ReturnName(playerid, 1), id, value);
- }
- else if(strmatch(option, "alarm")){
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setcar [vehicleid] alarm [value]");
- if(value > 3 || value < 1)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Alarms have to be 1-3.");
- format(string, sizeof(string), "%s set vehicleid %d's alarm status to %d", ReturnName(playerid, 1), vehicleid, value);
- adminWarn(3, string);
- CarData[vehicleid][carAlarm] = value;
- SaveCar(vehicleid);
-
- WriteLog("admin_logs/vehicles/setalarm_log.txt", "[%s] %s set Vehicle (DBID) %d's alarm to %d", ReturnDate(), ReturnName(playerid, 1), id, value);
- }
- else if(strmatch(option, "immob")){
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setcar [vehicleid] immob [value]");
- if(value > 3 || value < 1)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Immoblizer has to be 1-3.");
- format(string, sizeof(string), "%s set vehicleid %d's Immoblizer status to %d", ReturnName(playerid, 1), vehicleid, value);
- adminWarn(3, string);
- CarData[vehicleid][carImmob] = value;
- SaveCar(vehicleid);
-
- WriteLog("admin_logs/vehicles/setimmob_log.txt", "[%s] %s set Vehicle (DBID) %d's immoblizer to %d", ReturnDate(), ReturnName(playerid, 1), id, value);
- }
- else if(strmatch(option, "insurance")){
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setcar [vehicleid] insurance [value]");
- if(value > 3 || value < 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Insurance have to be 1-3.");
- format(string, sizeof(string), "%s set vehicleid %d's insurance to %d", ReturnName(playerid, 1), vehicleid, value);
- adminWarn(3, string);
- CarData[vehicleid][carInsurance] = value;
- SaveCar(vehicleid);
-
- WriteLog("admin_logs/vehicles/setinsurance_log.txt", "[%s] %s set Vehicle (DBID) %d's insurance to %d", ReturnDate(), ReturnName(playerid, 1), id, value);
- }
- return true;
- }
- CMD:setcarlife(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 3)return UnAuthMessage(playerid);
- new string[128], option[90], vehicleid, Float:life;
- if(sscanf(params, "ds[90]F(-1)", vehicleid, option, life))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setcarlife [vehicleid] [engine OR battery] [life]");
- new id = CarData[vehicleid][carID];
- if(vehicleid < 0 || !IsValidVehicle(vehicleid))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active vehicle.");
- if(!id)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That vehicle doesn't exist in the database.");
- if(strmatch(option, "engine")){
- if(life == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setcarlife [vehicleid] engine [life...]");
- format(string, sizeof(string), "%s set vehicleid %d's engine to %.2f from %.2f", ReturnName(playerid, 1), vehicleid, life, CarData[vehicleid][carEngine]);
- adminWarn(3, string);
- CarData[vehicleid][carEngine] = life;
- SaveCar(vehicleid);
-
- WriteLog("admin_logs/vehicles/setengine_log.txt", "[%s] %s set Vehicle (DBID) %d's Engine Life to %d", ReturnDate(), ReturnName(playerid, 1), id, life);
- }
- else if(strmatch(option, "battery")) {
- if(life == -1) return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setcarlife [vehicleid] battery [life...]");
- format(string, sizeof(string), "%s set vehicleid %d's battery to %.2f from %.2f", ReturnName(playerid, 1), vehicleid, life, CarData[vehicleid][carBattery]);
- adminWarn(3, string);
- CarData[vehicleid][carBattery] = life;
- SaveCar(vehicleid);
-
- WriteLog("admin_logs/vehicles/setbattery_log.txt", "[%s] %s set Vehicle (DBID) %d's Battery Life to %d", ReturnDate(), ReturnName(playerid, 1), id, life);
- }
- return true;
- }
- CMD:setplate(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new string[128], plate[32], vehicleid;
- if(PlayerData[playerid][pAdmin] < 3)return UnAuthMessage(playerid);
- if(sscanf(params, "ds[32]", vehicleid, plate))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setplate [vehicleid] [car plates]");
- //new id = CarData[vehicleid][carID];
- if(vehicleid < 0 || !IsValidVehicle(vehicleid)) return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active vehicle.");
- if(!CarData[vehicleid][carID]) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That vehicle doesn't exist in the database.");
- format(CarData[vehicleid][carPlates], 32, "%s", plate);
- format(string, sizeof(string), "%s set vehicleid %d's plates to `%s`", ReturnName(playerid, 1), vehicleid, plate);
- adminWarn(3, string);
- SendClientMessage(playerid, COLOR_ADM, "Warning: They must respawn their vehicle for it to take effect.");
- SaveCar(vehicleid);
-
- WriteLog("admin_logs/vehicles/setplate_log.txt", "[%s] %s set Vehicle (DBID) %d's plates to %s", ReturnDate(), ReturnName(playerid, 1), CarData[vehicleid][carID], plate);
- return true;
- }
- CMD:setfaction(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 3)return UnAuthMessage(playerid);
- new string[128], playerb, factionid, leader;
- if(sscanf(params, "uiI(-1)", playerb, factionid, leader))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setfaction [playerid/PartofName] [factionid] [leader]");
- if(factionid < 1 || factionid > MAX_FACTIONS)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Faction IDs must be greater than 1 and less then 11.");
- if(!FactionData[factionid][factionID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That faction doesn't exist.");
- format(string, sizeof(string), "%s set %s's faction to the %s.", ReturnName(playerid, 1), ReturnName(playerb, 1), FactionData[factionid][factionName]);
- adminWarn(3, string);
- PlayerData[playerb][pFaction] = factionid;
- SaveSQLInt(PlayerData[playerid][pSQLID], "players", "Faction", PlayerData[playerid][pFaction]);
- if(leader == -1 || leader == 0){
- PlayerData[playerb][pFactionRank] = 20;
- }
- else{
- PlayerData[playerb][pFactionRank] = 1;
- }
- SaveSQLInt(PlayerData[playerid][pFaction], "players", "FactionRank", PlayerData[playerid][pFactionRank]);
-
- WriteLog("admin_logs/factions/setfaction_log.txt", "[%s] %s set %s to faction ID %d (leader = %d)", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), factionid, leader);
- if(leader == -1 || leader == 0){
- format(string, sizeof(string), "[ ! ]{FFFFFF} %s added you to %s.", ReturnName(playerid, 1), FactionData[factionid][factionName]);
- }
- else{
- format(string, sizeof(string), "[ ! ]{FFFFFF} %s made you leader of %s.", ReturnName(playerid, 1), FactionData[factionid][factionName]);
- }
- SendClientMessage(playerb, COLOR_ADM, string);
- return true;
- }
- CMD:custommsg(playerid, params[])
- {
- if(PlayerData[playerid][pAdmin] < 3)
- return UnAuthMessage(playerid);
-
- new playerb, text[128];
-
- if(sscanf(params, "us[128]", playerb, text))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /custommsg [playerid/PartofName] [text]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "Player isn't connected.");
-
- printf("[Debug] %s sent a custom TD message to %s: %s", ReturnName(playerid), ReturnName(playerb), text);
-
- ShowTextdrawInfo(playerb, text);
- if(playerb != playerid) SendClientMessage(playerid, COLOR_GREY, "Message was sent to the specified player.");
- return 1;
- }
- CMD:fixtruckers(playerid, params[])
- {
- if(PlayerData[playerid][pAdmin] < 4)
- return UnAuthMessage(playerid);
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "WARNING: This stops all trucker job related timers and stops their missions. /fixtruckers go");
-
- if(!isnull(params) && !strcmp(params, "go"))
- {
- foreach(new i : Player)
- {
- KillTimer(TruckerJobExitTimer[i]);
- KillTimer(TrailerTimer[i]);
- KillTimer(TruckerJobDeliverTimer[i]);
- KillTimer(TruckerJobTimer[i]);
-
- if(StartedTruckerMission[i])
- {
- SendClientMessage(i, COLOR_ADM, "Your trucking was reset by an admin due to an error. Contact a developer if you see this.");
- EndTruckerMission(i);
- }
- }
- }
- return 1;
- }
- //
- CMD:listorders(playerid, params[])
- {
- if( PlayerData[playerid][pAdmin] < 4 )
- return UnAuthMessage(playerid);
-
- SendClientMessage(playerid, COLOR_GREY, "Factions with active warehouse orders:");
-
- for(new i = 1; i < MAX_FACTIONS; i++) if(FactionData[i][factionHasWeaponOrder])
- {
- Message(playerid, COLOR_WHITE, "%s [%i] - Order time: %s", ReturnFactionName(i), i, TimeConvert(FactionData[i][factionOrderTime]));
- }
-
- return 1;
- }
- CMD:listcrates(playerid, params[])
- {
- if( PlayerData[playerid][pAdmin] < 4 )
- return UnAuthMessage(playerid);
-
- SendClientMessage(playerid, COLOR_GREY, "Active crates in the server:");
- for(new i; i < MAX_WEAPON_CRATES; i++) if(WeaponCrates[i][CrateExists])
- {
- Message(playerid, COLOR_WHITE, "Crate ID: %i - Faction: %s - Crate by: %s", i, ReturnFactionName(WeaponCrates[i][CrateFaction]), ReturnSQLName(WeaponCrates[i][CrateBy]));
- }
- return 1;
- }
- CMD:editordertime(playerid, params[])
- {
- if( PlayerData[playerid][pAdmin] < 4 )
- return UnAuthMessage(playerid);
-
- new faction_id, time;
- new string[128];
-
- if(sscanf(params, "ii", faction_id, time))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /editordertime [faction id] [time in seconds] This should only be used incase of a bug.");
-
- if(faction_id < 1 || faction_id > MAX_FACTIONS || !FactionData[faction_id][factionID])
- return SendClientMessage(playerid, COLOR_GREY, "Invalid faction specified.");
-
- if(time < 1)
- return SendClientMessage(playerid, COLOR_GREY, "Invalid seconds specified.");
-
- if(!FactionData[faction_id][factionHasWeaponOrder])
- return SendClientMessage(playerid, COLOR_GREY, "This faction doesn't have an active weapon order.");
-
- format(string, sizeof string, "%s set faction ID %i's order time to: %i from %i", ReturnName(playerid), faction_id, time, FactionData[faction_id][factionOrderTime]);
- adminWarn(4, string);
-
- WriteLog("faction_logs/warehouse_logs/editordertime.txt", "[%s] Admin %s ordered Faction ID %i's order from %i to %i", ReturnDateLog(), ReturnName(playerid), faction_id, FactionData[faction_id][factionOrderTime], time);
-
- FactionData[faction_id][factionOrderTime] = time;
- return 1;
- }
- CMD:editproducts(playerid, params[])
- {
- if( PlayerData[playerid][pAdmin] < 4 )
- return UnAuthMessage(playerid);
-
- new faction_id, products;
- new string[128];
-
- if(sscanf(params, "ii", faction_id, products))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /editproducts [faction id] [products]");
-
- if(faction_id < 1 || faction_id > MAX_FACTIONS || !FactionData[faction_id][factionID])
- return SendClientMessage(playerid, COLOR_GREY, "Invalid faction specified.");
-
- if(products < 1)
- return SendClientMessage(playerid, COLOR_GREY, "Invalid products.");
-
- format(string, sizeof(string), "%s set faction ID %i's products to %i from %i.", ReturnName(playerid), faction_id, products, FactionData[faction_id][factionProducts]);
- adminWarn(4, string);
-
- WriteLog("faction_logs/warehouse_logs/editproducts.txt", "%s set faction ID %i's products to %i from %i.", ReturnName(playerid), faction_id, products, FactionData[faction_id][factionProducts]);
-
- FactionData[faction_id][factionProducts] = products;
- return 1;
- }
- CMD:destroycrate(playerid, params[])
- {
- if( PlayerData[playerid][pAdmin] < 4 )
- return UnAuthMessage(playerid);
-
- new crateid;
-
- if(sscanf(params, "i", crateid))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /destroycrate [crate id]");
- if(crateid < 0 || crateid > MAX_WEAPON_CRATES || !WeaponCrates[crateid][CrateExists])
- return SendClientMessage(playerid, COLOR_GREY, "Specified an invalid crate ID.");
-
- new string[128];
-
- format(string, sizeof(string), "%s destroyed weapon crate ID %i.", ReturnName(playerid), crateid);
- adminWarn(4, string);
-
- printf("[Debug] %s cleared active crate ID %i", ReturnName(playerid), crateid);
- ClearActiveCrate(crateid);
- return 1;
- }
- CMD:gotocrate(playerid, params[])
- {
- if( PlayerData[playerid][pAdmin] < 4 )
- return UnAuthMessage(playerid);
-
- new crateid;
-
- if(sscanf(params, "i", crateid))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /destroycrate [crate id]");
- if(crateid < 0 || crateid > MAX_WEAPON_CRATES || !WeaponCrates[crateid][CrateExists])
- return SendClientMessage(playerid, COLOR_GREY, "Specified an invalid crate ID.");
-
- new Float:Pos[3];
- new string[128];
-
- format(string, sizeof string, "%s teleported to Crate ID %i.", ReturnName(playerid), crateid);
- adminWarn(4, string);
-
- GetDynamicObjectPos(WeaponCrates[crateid][CrateObject], Pos[0], Pos[1], Pos[2]);
- SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
- return 1;
- }
- //
- CMD:gotopoint(playerid, params[])
- {
- new Float:Point[3], interior;
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 3)return UnAuthMessage(playerid);
-
- if(sscanf(params, "dfff", interior, Point[0], Point[1], Point[2]))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /gotopoint [interior] [x axis] [y axis] [z axis]");
-
- SendPlayer(playerid, Point[0], Point[1], Point[2], interior, GetPlayerVirtualWorld(playerid));
-
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
-
- return 1;
- }
- CMD:getname(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 3)return UnAuthMessage(playerid);
-
- new dbid, string[128];
-
- if(sscanf(params, "d", dbid))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /getname [player dbid]");
- if(dbid < 1)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't go below one.");
-
- format(string, sizeof(string), "DBID %d is Player %s.", dbid, ReturnSQLName(dbid));
- SendClientMessage(playerid, COLOR_ADM, string);
- return true;
- }
- CMD:x(playerid, params[])
- {
- new Float:playerPos[3], Float:coord;
-
- if(PlayerData[playerid][pAdmin] < 3)
- return UnAuthMessage(playerid);
-
- if(sscanf(params, "f", coord))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /x [coordinate]");
-
- GetPlayerPos(playerid, playerPos[0], playerPos[1], playerPos[2]);
- SetPlayerPos(playerid, playerPos[0] + coord, playerPos[1], playerPos[2]);
-
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
- return true;
- }
- CMD:y(playerid, params[])
- {
- new Float:playerPos[3], Float:coord;
-
- if(PlayerData[playerid][pAdmin] < 3)
- return UnAuthMessage(playerid);
-
- if(sscanf(params, "f", coord))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /y [coordinate]");
-
- GetPlayerPos(playerid, playerPos[0], playerPos[1], playerPos[2]);
- SetPlayerPos(playerid, playerPos[0], playerPos[1] + coord, playerPos[2]);
-
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
-
- return true;
- }
- CMD:z(playerid, params[])
- {
- new Float:playerPos[3], Float:coord;
-
- if(PlayerData[playerid][pAdmin] < 3)
- return UnAuthMessage(playerid);
-
- if(sscanf(params, "f", coord))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /z [coordinate]");
-
- GetPlayerPos(playerid, playerPos[0], playerPos[1], playerPos[2]);
- SetPlayerPos(playerid, playerPos[0], playerPos[1], playerPos[2] + coord);
-
- SendClientMessage(playerid, COLOR_GREY, "You have been teleported");
-
- return true;
- }
- CMD:propertyinfo(playerid, params[])
- {
- new pid, name[40], string[128];
-
- if (!pLoggedIn[playerid])return true;
- if (PlayerData[playerid][pAdmin] < 3)return UnAuthMessage(playerid);
-
- if (sscanf(params, "d", pid))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /propertyinfo [propertyid]");
- if (pid < 1 || pid > MAX_PROPERTY || !PropertyData[pid][propertyid])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid property ID.");
-
- if(!PropertyData[pid][propertyOwnerSQL])
- name = "None";
-
- else format(name, 40, "%s", ReturnSQLName(PropertyData[pid][propertyOwnerSQL]));
-
- new garage_id;
- for(new i = 1; i < MAX_PROPERTY_GARAGES; i++) if(GarageData[i][garagePropertyID] == pid)
- garage_id = i;
-
- SendClientMessage(playerid, COLOR_DARKGREEN, "____________________________________________");
- format(string, sizeof(string), "Owner:[%s] Level:[%d] MarketPrice:[%d] Type:[%d] Locked:[%d] ID:[%d]", name, PropertyData[pid][propertyLevel], PropertyData[pid][propertyMarketPrice], PropertyData[pid][propertyType], PropertyData[pid][propertyLocked], PropertyData[pid][propertyid]);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- format(string, sizeof(string), "Interior:[%d] InteriorWorld:[%d] (Apartment)Exterior:[%d] ExteriorWorld:[%d] ComplexLink:[%d]", PropertyData[pid][propertyInteriorID], PropertyData[pid][propertyInteriorWorld], PropertyData[pid][propertyExteriorID], PropertyData[pid][propertyExteriorWorld], PropertyData[pid][propertyComplexLink]);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- format(string, sizeof(string), "Cashbox:[%d] Weapons:[%d], Faction:[%d], Linked Garage:[%d]", PropertyData[pid][propertyMoney], CountHouseWeapons(pid), PropertyData[pid][propertyFaction], garage_id);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SendClientMessage(playerid, COLOR_DARKGREEN, "____________________________________________");
- return true;
- }
- CMD:fixveh(playerid, params[]) return cmd_repair(playerid, params);
- CMD:repair(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return UnAuthMessage(playerid);
-
- new
- string[128],
- Float: angle
- ;
-
- if(IsPlayerInAnyVehicle(playerid)){
- RepairVehicle(GetPlayerVehicleID(playerid));
-
- switch(GetVehicleModel(GetPlayerVehicleID(playerid)))
- {
- case 528, 601, 427: SetVehicleHealth(GetPlayerVehicleID(playerid), 10000);
- default: SetVehicleHealth(GetPlayerVehicleID(playerid), 1000);
- }
-
- GetVehicleZAngle(GetPlayerVehicleID(playerid), angle);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), angle);
-
- format(string, sizeof(string), "%s repaired vehicle ID %d", ReturnName(playerid, 1), GetPlayerVehicleID(playerid));
- adminWarn(3, string);
- }
- else{
- new vehicleid;
-
- if(sscanf(params, "d", vehicleid))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /repair [vehicleid]");
- if(!IsValidVehicle(vehicleid))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active vehicle.");
-
- RepairVehicle(vehicleid);
- SetVehicleHealth(vehicleid, 1000);
-
- switch(GetVehicleModel(vehicleid))
- {
- case 528, 601, 427: SetVehicleHealth(vehicleid, 10000);
- default: SetVehicleHealth(vehicleid, 1000);
- }
-
- GetVehicleZAngle(vehicleid, angle);
- SetVehicleZAngle(vehicleid, angle);
-
- format(string, sizeof(string), "%s repaired vehicle ID %d", ReturnName(playerid, 1), vehicleid);
- adminWarn(3, string);
- }
- return true;
- }
- CMD:setjob(playerid, params[])
- {
- if (PlayerData[playerid][pAdmin] < 3)
- return false;
-
- new playerb, job_id, string[128];
-
- if (sscanf(params, "ud", playerb, job_id))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setjob [playerid/PartofName] [job_id] ");
- SendClientMessage(playerid, COLOR_WHITE, "| 1. Mechanic Job, 2. Fisherman Job (WIP), 3. Taxi Driver, 4. Trucker. |");
- return true;
- }
-
- if (!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
-
- if(!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_GREY, "You have specified a player that isn't logged in.");
-
- if (job_id > 4 || job_id < 1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid job.");
-
- if(PlayerData[playerb][pSidejob] == job_id)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: That job is the players sidejob.");
-
- PlayerData[playerb][pJob] = job_id;
- format(string, sizeof(string), "%s set %s's job to %s. ", ReturnName(playerid, 1), ReturnName(playerb, 1), ReturnJobName(job_id));
- adminWarn(3, string);
-
- WriteLog("admin_logs/players/setjob_log.txt", "[%s] %s set %s's Job to %s.", ReturnDate(), ReturnName(playerid), ReturnName(playerb), ReturnJobName(job_id));
- return true;
- }
- CMD:setsidejob(playerid, params[])
- {
- if (PlayerData[playerid][pAdmin] < 3)
- return 0;
-
- new playerb, job_id, string[128];
-
- if (sscanf(params, "ud", playerb, job_id))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setsidejob [playerid/PartofName] [job_id] ");
- SendClientMessage(playerid, COLOR_WHITE, "| 1. Mechanic Job, 2. State Agent, 3. Taxi Job, 4. Weapon Dealer, 5. Trucker Job |");
- return true;
- }
-
- if (!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
-
- if(!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_GREY, "You have specified a player that isn't logged in.");
-
- if (job_id > 5 || job_id < 1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid job.");
-
- if(PlayerData[playerb][pJob] == job_id)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: That job is the players primary.");
-
- PlayerData[playerb][pSidejob] = job_id;
- format(string, sizeof(string), "%s set %s's sidejob to %s. ", ReturnName(playerid, 1), ReturnName(playerb, 1), ReturnJobName(job_id));
- adminWarn(3, string);
-
- WriteLog("admin_logs/players/setjob_log.txt", "[%s] %s set %s's SideJob to %s.", ReturnDate(), ReturnName(playerid), ReturnName(playerb), ReturnJobName(job_id));
- return true;
- }
- CMD:near(playerid, params[])
- {
- if (PlayerData[playerid][pAdmin] < 3)
- return 0;
-
- new id;
-
- if( (id = IsPlayerNearProperty(playerid)) != 0)
- Message(playerid, COLOR_YELLOW, "[ ! ] You're near Property ID %i", id);
-
- if( (id = IsPlayerInProperty(playerid)) != 0)
- Message(playerid, COLOR_YELLOW, "[ ! ] You're inside Property ID %i", id);
-
- if( (id = IsPlayerNearBusiness(playerid)) != 0)
- Message(playerid, COLOR_YELLOW, "[ ! ] You're near Business ID %i", id);
-
- if( (id = IsPlayerInBusiness(playerid)) != 0)
- Message(playerid, COLOR_YELLOW, "[ ! ] You're inside Business ID %i", id);
-
- if( (id = GetNearestVehicle(playerid)) != INVALID_VEHICLE_ID)
- Message(playerid, COLOR_YELLOW, "[ ! ] You're near vehicle ID %i", id);
-
- for(new i = 0; i < sizeof ObjectData; i++) if(IsPlayerInRangeOfPoint(playerid, 5.0, ObjectData[i][Object_PosX], ObjectData[i][Object_PosY], ObjectData[i][Object_PosZ]) && GetPlayerVirtualWorld(playerid) == ObjectData[i][Object_World])
- Message(playerid, COLOR_YELLOW, "[ ! ] You're near Object ID %i (DBID: %i)", i, ObjectData[i][ObjectDBID]);
-
- if( (id = IsPlayerNearEntrance(playerid)) != -1)
- Message(playerid, COLOR_YELLOW, "[ ! ] You're near Entrance ID %i", id);
-
- return 1;
- }
- CMD:setfightstyle(playerid, params[])
- {
- if(PlayerData[playerid][pAdmin] < 3)
- return UnAuthMessage(playerid);
-
- new
- playerb, style,
- str[128];
-
- if(sscanf(params, "ui", playerb, style))
- {
- SendClientMessage(playerid, COLOR_WHITE, "Styles: 0 1 2 3 4 5");
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /setfightstyle [playerid/PartofName] <style>");
- }
-
- if(style < 0 || style > 5)
- return SendClientMessage(playerid, COLOR_ADM, "You specified an invalid style.");
-
- if(!IsPlayerConnected(playerb) && pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "Player isn't connected or logged in.");
-
- switch(style)
- {
- case 0: style = 15;
- case 1: style = 4;
- case 2: style = 5;
- case 3: style = 6;
- case 4: style = 7;
- case 5: style = 16;
- }
-
- PlayerData[playerb][pFightstyle] = style;
- SetPlayerFightingStyle(playerb, style);
-
- format(str, sizeof(str), "%s set %s's fight style to %s", ReturnName(playerid), ReturnName(playerb), GetFightstyleName(style));
- adminWarn(3, str);
-
- if(playerb != playerid) Message(playerb, COLOR_ADM, "Your fightstyle was changed by %s.", ReturnName(playerid));
- return 1;
- }
- // Level 4
- CMD:givegun(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new string[128], playerb, weaponid, ammo;
- if(PlayerData[playerid][pAdmin] < 4)return UnAuthMessage(playerid);
- if(sscanf(params, "uii", playerb, weaponid, ammo))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE: /givegun [playerid/PartofName] [weaponid] [ammo]");
- return true;
- }
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "You have specified a player that isn't logged in.");
- GivePlayerGun(playerb, weaponid, ammo, PlayerData[playerid][pSQLID]);
- format(string, sizeof(string), "%s gave %s an %s with %d ammo.", ReturnName(playerid, 1), ReturnName(playerb, 1), ReturnWeaponName(weaponid), ammo);
- adminWarn(1, string);
- WriteLog("weapon_logs/admin_logs/givegun.txt", "[%s] %s gave %s a %s with %d ammo", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerid, 1), ReturnWeaponName(weaponid), ammo);
- return true;
- }
- CMD:makeproperty(playerid, params[])
- {
- if (PlayerData[playerid][pAdmin] < 4)return UnAuthMessage(playerid);
-
- new option[90], interval;
- if(sscanf(params, "s[90]I(-1)", option, interval)) {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makeproperty [parameters]");
- SendClientMessage(playerid, COLOR_ADM, "-> parameters:");
- SendClientMessage(playerid, COLOR_ADM, "--> exterior - Set the exterior at your position. {F81414}USE EXTERIOR FOR APARTMENTS.");
- SendClientMessage(playerid, COLOR_ADM, "--> interior - Set the interior at your position.");
- SendClientMessage(playerid, COLOR_ADM, "--> type - Set the properties type. {F81414}Required to select other params.");
- SendClientMessage(playerid, COLOR_DARKGREEN, "---> 1:[Complex] 2:[Apartment] 3:[House]");
- SendClientMessage(playerid, COLOR_ADM, "--> cost - Set the properties market price.");
- SendClientMessage(playerid, COLOR_ADM, "--> level - Set the required level to buy the property.");
- SendClientMessage(playerid, COLOR_ADM, "--> complexlink - If an apartment, what complex is it linked too.");
- SendClientMessage(playerid, COLOR_ADM, "--> create - Finishes and makes your property.");
- SendClientMessage(playerid, COLOR_ORANGE, " !! WARNING !! When making an apartment, use /propertyinfo [complex id] to get the exterior WORLD.");
- SendClientMessage(playerid, COLOR_ORANGE, " !! WARNING !! Set the apartments world to that exterior world using /editproperty OR IT WILL BUG.");
- return true;
- }
-
- if (strmatch(option, "type")) {
- if(interval == -1){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makeproperty type [typeid]");
- SendClientMessage(playerid, COLOR_WHITE, "Types : 1 Complex, 2 Apartment, 3 House");
- SendClientMessage(playerid, COLOR_ADM, "Warning: Only make apartments for rooms inside a complex OR you will bug it.");
- return true;
- }
-
- if(interval < 1 || interval > 3) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid typeid.");
-
- if(interval == 2){
- SendClientMessage(playerid, COLOR_ADM, " !! WARNING !! When making an apartment, use /propertyinfo [complex id] to get the exterior WORLD.");
- SendClientMessage(playerid, COLOR_ADM, " !! WARNING !! Set the apartments world to that exterior world using /editproperty OR IT WILL BUG.");
- }
-
- Resources[playerid][Type] = interval;
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Your properties type was set. You may now continue. ");
- }
-
- if (strmatch(option, "exterior")) {
- if (!Resources[playerid][Type])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Set your properties type first.");
-
- GetPlayerPos(playerid, Resources[playerid][Exterior][0], Resources[playerid][Exterior][1], Resources[playerid][Exterior][2]);
-
- if(Resources[playerid][Type] == 2){
- Resources[playerid][extInteriorID] = GetPlayerInterior(playerid);
- Resources[playerid][extWorld] = 50000+random(9999);
- }
- else{
- Resources[playerid][extInteriorID] = 0;
- Resources[playerid][extWorld] = 0;
- }
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Your properties exterior has been selected.");
- }
- else if (strmatch(option, "interior")) {
- if (!Resources[playerid][Type])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Set your properties type first.");
-
- GetPlayerPos(playerid, Resources[playerid][Interior][0], Resources[playerid][Interior][1], Resources[playerid][Interior][2]);
- GetPlayerFacingAngle(playerid, Resources[playerid][Interior][3]);
-
- Resources[playerid][intInteriorID] = GetPlayerInterior(playerid);
- Resources[playerid][intWorld] = 50000+random(9999);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Your properties interior has been selected.");
- }
- else if (strmatch(option, "cost")) {
- if (!Resources[playerid][Type])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Set your properties type first.");
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makeproperty cost [price]");
-
- Resources[playerid][Cost] = interval;
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Your properties market price has been selected.");
- }
- else if (strmatch(option, "level")) {
- if (!Resources[playerid][Type])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Set your properties type first.");
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makeproperty level [level]");
-
- Resources[playerid][Level] = interval;
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Your properties level has been selected.");
- }
- else if (strmatch(option, "complexlink")) {
- if (Resources[playerid][Type] != 2)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} This is only for type 2 properties.");
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makeproperty complexlink [complexid]");
- if (interval < 1 || interval > MAX_PROPERTY || !PropertyData[interval][propertyid])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid complex ID.");
- if (PropertyData[interval][propertyType] != 1)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That property isn't a complex.");
-
- Resources[playerid][ComplexLink] = interval;
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Your properties complex link has been selected.");
- }
- else if (strmatch(option, "create")) {
- if (!Resources[playerid][Type])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Set your properties type first.");
- if (!Resources[playerid][Exterior])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Set your properties exterior first.");
- if (!Resources[playerid][Interior])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Set your properties interior first.");
- if (!Resources[playerid][Cost])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Set your properties market price first.");
- if (!Resources[playerid][Level])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Set your properties level first.");
- if (Resources[playerid][Type] == 2 && !Resources[playerid][ComplexLink])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You're making an apartment without a complex link.");
-
- if(Resources[playerid][Type] == 2) {
- Resources[playerid][extInteriorID] = PropertyData[Resources[playerid][ComplexLink]][propertyInteriorID];
- Resources[playerid][extWorld] = PropertyData[Resources[playerid][ComplexLink]][propertyInteriorWorld];
- }
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Creating your property, calling local function...");
- CallPropertyCreate(playerid);
- }
- return true;
- }
- CMD:makefaction(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 4)return UnAuthMessage(playerid);
- new string[128], section[90], name[128], faction = TotalFactionsLoaded+1;
- if(sscanf(params, "s[90]S('None')[128]", section, name))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makefaction [ 'name', 'abbrev', 'complete' ]");
- if(faction > MAX_FACTIONS)return SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} The server has maximum faction slots available.");
- if(strmatch(section, "name")) {
- if(strmatch(name, "None"))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makefaction name [factions name]");
- format(FactionName, 128, "%s", name);
- format(string, sizeof(string), "[ ! ]{FFFFFF} The factions name was set to {FF6346}%s{FFFFFF}. Set the abbreviation next.", name);
- SendClientMessage(playerid, COLOR_ADM, string);
- }
- else if(strmatch(section, "abbrev")) {
- if(strmatch(name, "None"))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makefaction abbreviation [factions abbrev]");
- if(strmatch(FactionName, "None"))return SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} You need to set the {FF6346}factions name{FFFFFF} before doing this.");
- format(FactionAbbrev, 128, "%s", name);
- format(string, sizeof(string), "[ ! ]{FFFFFF} The factions abbreviation was set to {FF6346}%s{FFFFFF}. Use /makefaction complete now.", name);
- SendClientMessage(playerid, COLOR_ADM, string);
- }
- else if(strmatch(section, "complete")) {
- if(strmatch(FactionName, "None"))return SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} You need to set the {FF6346}factions name{FFFFFF} before doing this.");
- if(strmatch(FactionAbbrev, "None"))return SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} You need to set the {FF6346}factions abbreviation{FFFFFF} before doing this.");
- SaveFactionToDatabase(playerid);
- }
- return true;
- }
- CMD:editfaction(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 4)return UnAuthMessage(playerid);
-
- new string[128], factionid, opt[90], value;
-
- if(sscanf(params, "ds[90]I(-1)", factionid, opt, value)) {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editfaction [factionid] [params]");
- SendClientMessage(playerid, COLOR_ADM, "->{FFFFFF} copperms, medperms, newsperms, warehouseperms.");
- SendClientMessage(playerid, COLOR_ADM, "Warning: Factions can't have two permissions. It'll be reset to default.");
- return true;
- }
-
- if(factionid < 1 || factionid > MAX_FACTIONS || !FactionData[factionid][factionID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid faction ID.");
-
- if(strmatch(opt, "copperms"))
- {
- if(value == -1) return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editfaction [factionid] copperms [0-1] ");
-
- FactionData[factionid][factionCopPerms] = value;
- SaveSQLInt(FactionData[factionid][factionID], "factions", "CopPerms", FactionData[factionid][factionCopPerms]);
-
- if (FactionData[factionid][factionMedPerms] == 1) {
- FactionData[factionid][factionMedPerms] = 0;
- SaveSQLInt(FactionData[factionid][factionID], "factions", "MedPerms", FactionData[factionid][factionMedPerms]);
- }
- if (FactionData[factionid][factionNewsPerms] == 1) {
- FactionData[factionid][factionNewsPerms] = 0;
- SaveSQLInt(FactionData[factionid][factionID], "factions", "NewsPerms", FactionData[factionid][factionNewsPerms]);
- }
-
- if(value == 1)
- format(string, sizeof(string), "[ ! ]{FFFFFF} You gave the {FF6346}%s{FFFFFF} faction cop permissions.", FactionData[factionid][factionName]);
- else
- format(string, sizeof(string), "[ ! ]{FFFFFF} You removed the {FF6346}%s{FFFFFF} faction cop permissions.", FactionData[factionid][factionName]);
-
- SendClientMessage(playerid, COLOR_ADM, string);
-
- WriteLog("admin_logs/factions/editfaction_log.txt", "[%s] %s set factionid %d's cop permissions to %d", ReturnDate(), ReturnName(playerid, 1), factionid, value);
- }
- else if(strmatch(opt, "medperms"))
- {
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editfaction [factionid] medperms [0-1] ");
-
- FactionData[factionid][factionMedPerms] = value;
- SaveSQLInt(FactionData[factionid][factionID], "factions", "MedPerms", FactionData[factionid][factionMedPerms]);
-
- if(FactionData[factionid][factionCopPerms] == 1){
- FactionData[factionid][factionCopPerms] = 0;
- SaveSQLInt(FactionData[factionid][factionID], "factions", "CopPerms", FactionData[factionid][factionCopPerms]);
- }
- if (FactionData[factionid][factionNewsPerms] == 1) {
- FactionData[factionid][factionNewsPerms] = 0;
- SaveSQLInt(FactionData[factionid][factionID], "factions", "NewsPerms", FactionData[factionid][factionNewsPerms]);
- }
- if(value == 1)
- format(string, sizeof(string), "[ ! ]{FFFFFF} You gave the {FF6346}%s{FFFFFF} faction medic permissions.", FactionData[factionid][factionName]);
- else
- format(string, sizeof(string), "[ ! ]{FFFFFF} You removed the {FF6346}%s{FFFFFF} faction medic permissions.", FactionData[factionid][factionName]);
-
- SendClientMessage(playerid, COLOR_ADM, string);
-
- WriteLog("admin_logs/factions/editfaction_log.txt", "[%s] %s set factionid %d's medic permissions to %d", ReturnDate(), ReturnName(playerid, 1), factionid, value);
- }
- else if(strmatch(opt, "newsperms"))
- {
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editfaction [factionid] newsperms [0-1] ");
-
- FactionData[factionid][factionNewsPerms] = value;
- SaveSQLInt(FactionData[factionid][factionID], "factions", "NewsPerms", FactionData[factionid][factionNewsPerms]);
-
- if(FactionData[factionid][factionCopPerms] == 1){
- FactionData[factionid][factionCopPerms] = 0;
- SaveSQLInt(FactionData[factionid][factionID], "factions", "CopPerms", FactionData[factionid][factionCopPerms]);
- }
- if (FactionData[factionid][factionMedPerms] == 1) {
- FactionData[factionid][factionMedPerms] = 0;
- SaveSQLInt(FactionData[factionid][factionID], "factions", "MedPerms", FactionData[factionid][factionMedPerms]);
- }
- if(value == 1)
- format(string, sizeof(string), "[ ! ]{FFFFFF} You gave the {FF6346}%s{FFFFFF} faction news permissions.", FactionData[factionid][factionName]);
- else
- format(string, sizeof(string), "[ ! ]{FFFFFF} You removed the {FF6346}%s{FFFFFF} faction news permissions.", FactionData[factionid][factionName]);
-
- SendClientMessage(playerid, COLOR_ADM, string);
-
- WriteLog("admin_logs/factions/editfaction_log.txt", "[%s] %s set factionid %d's news permissions to %d", ReturnDate(), ReturnName(playerid, 1), factionid, value);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That isn't an option here.");
-
- return true;
- }
- CMD:setstats(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return true;
- if(PlayerData[playerid][pAdmin] < 4) return UnAuthMessage(playerid);
-
- new playerb, opt[90], value, string[128], saveid = PlayerData[playerb][pSQLID];
-
- if(sscanf(params, "us[90]I(-1)", playerb, opt, value)) {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setstats [playerid/PartofName] [stats name]");
- SendClientMessage(playerid, COLOR_GRAD2, "|level, exp, bank, paycheck, radio, bmx, timeplayed, driverlicense, weaponslicense|");
- SendClientMessage(playerid, COLOR_GRAD1, "|phone, burnerphone, carspawned, carspawnedid|");
- return true;
- }
-
- if(strmatch(opt, "level")) {
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setstats [playerid OR name] level [value]");
-
- PlayerData[playerb][pLevel] = value;
- SaveSQLInt(saveid, "players", "Level", PlayerData[playerb][pLevel]);
- SetPlayerScore(playerb, value);
-
- format(string, sizeof(string), "SERVER: You set %s's level to %d", ReturnName(playerb, 1), value);
- SendClientMessage(playerid, COLOR_ADM, string);
-
- WriteLog("admin_logs/setstats_log.txt", "[%s] %s set %s's LEVEL to %d", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), value);
- }
- else if(strmatch(opt, "exp")) {
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setstats [playerid OR name] exp [value]");
-
- PlayerData[playerb][pExp] = value;
- SaveSQLInt(saveid, "players", "Exp", PlayerData[playerb][pExp]);
-
- format(string, sizeof(string), "SERVER: You set %s's experience points to %d", ReturnName(playerb, 1), value);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- WriteLog("admin_logs/setstats_log.txt", "[%s] %s set %s's EXP to %d", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), value);
- }
- else if(strmatch(opt, "bank")) {
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setstats [playerid OR name] bank [value]");
-
- PlayerData[playerb][pBank] = value;
- SaveSQLInt(saveid, "players", "Bank", PlayerData[playerb][pBank]);
-
- format(string, sizeof(string), "SERVER: You set %s's bank to $%s", ReturnName(playerb, 1), MoneyFormat(value));
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- format(string, sizeof(string), "%s set %s's bank money to $%s", ReturnName(playerid, 1), ReturnName(playerb, 1), MoneyFormat(value));
- adminWarn(4, string);
-
- WriteLog("admin_logs/setstats_log.txt", "[%s] %s set %s's BANK to %d", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), value);
- }
- else if(strmatch(opt, "savings")) {
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setstats [playerid OR name] savings [value]");
-
- PlayerData[playerb][pSavings] = value;
- SaveSQLInt(saveid, "players", "Savings", PlayerData[playerb][pSavings]);
-
- format(string, sizeof(string), "SERVER: You set %s's savings to $%s", ReturnName(playerb, 1), MoneyFormat(value));
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- format(string, sizeof(string), "%s set %s's savings money to $%s", ReturnName(playerid, 1), ReturnName(playerb, 1), MoneyFormat(value));
- adminWarn(4, string);
-
- WriteLog("admin_logs/setstats_log.txt", "[%s] %s set %s's SAVINGS to %d", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), value);
- }
- else if(strmatch(opt, "paycheck")) {
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setstats [playerid OR name] paycheck [value]");
-
- PlayerData[playerb][pPaycheck] = value;
- SaveSQLInt(saveid, "players", "Paycheck", PlayerData[playerb][pPaycheck]);
-
- format(string, sizeof(string), "SERVER: You set %s's paycheck to $%s", ReturnName(playerb, 1), MoneyFormat(value));
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- format(string, sizeof(string), "%s set %s's paycheck money to $%s", ReturnName(playerid, 1), ReturnName(playerb, 1), MoneyFormat(value));
- adminWarn(4, string);
-
- WriteLog("admin_logs/setstats_log.txt", "[%s] %s set %s's PAYCHECK to %d", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), value);
- }
- else if(strmatch(opt, "radio")) {
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setstats [playerid OR name] radio [value]");
- PlayerData[playerb][pHasRadio] = value;
- SaveSQLInt(saveid, "players", "HasRadio", PlayerData[playerb][pHasRadio]);
-
- if(value == 0){
- format(string, sizeof(string), "SERVER: You took %s's radio.", ReturnName(playerid, 1));
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- else{
- format(string, sizeof(string), "SERVER: You gave %s a radio.", ReturnName(playerb, 1));
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
-
- WriteLog("admin_logs/setstats_log.txt", "[%s] %s set %s's Radio to %d", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), value);
- }
- else if(strmatch(opt, "timeplayed")) {
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setstats [playerid OR name] timeplayed [value]");
-
- PlayerData[playerb][pHoursPlayed] = value;
- SaveSQLInt(saveid, "players", "HoursPlayed", PlayerData[playerid][pHoursPlayed]);
-
- format(string, sizeof(string), "SERVER: You set %s's time played to %d", ReturnName(playerb, 1), value);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- WriteLog("admin_logs/setstats_log.txt", "[%s] %s set %s's Time Played to %d", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), value);
- }
- else if(strmatch(opt, "driverlicense")){
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setstats [playerid OR name] driverlicense [value]");
-
- PlayerData[playerb][pDriversLicense] = value;
- SaveSQLInt(saveid, "players", "DriversLicense", PlayerData[playerid][pDriversLicense]);
-
- if(value >= 1)
- format(string, sizeof(string), "SERVER: You gave %s a driver's license", ReturnName(playerb, 1));
- else
- format(string, sizeof(string), "SERVER: You took %s's driver's license", ReturnName(playerb, 1));
-
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- WriteLog("admin_logs/setstats_log.txt", "[%s] %s set %s's DriversLicense to %d", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), value);
- }
- else if(strmatch(opt, "weaponslicense")) {
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setstats [playerid OR name] weaponslicense [value]");
-
- PlayerData[playerb][pWeaponsLicense] = value;
- SaveSQLInt(saveid, "players", "WeaponsLicense", PlayerData[playerid][pWeaponsLicense]);
-
- if(value >= 1)
- format(string, sizeof(string), "SERVER: You gave %s a weapon's license", ReturnName(playerb, 1));
- else
- format(string, sizeof(string), "SERVER: You took %s's weapon's license", ReturnName(playerb, 1));
-
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- WriteLog("admin_logs/setstats_log.txt", "[%s] %s set %s's WeaponsLicense to %d", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), value);
- }
- else if(strmatch(opt, "phone")) {
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE: /setstats [playerid/PartofName] phone [new phone]");
-
- if(value == 911 || value == WEAPON_ORDER_NUMBER || value == MECHANIC_NUMBER || value == TAXI_NUMBER)
- return SendClientMessage(playerid, COLOR_ADM, "Not allowed.");
-
- new query[128];
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT id FROM players WHERE Phone = %i", value);
- mysql_tquery(m_Handle, query, "IfPhoneExists", "iii", playerid, playerb, value);
- }
- else if(strmatch(opt, "burnerphone")) {
- if(value == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE: /setstats [playerid/PartofName] burnerphone [new phone]");
-
- if(value == 911 || value == WEAPON_ORDER_NUMBER || value == MECHANIC_NUMBER || value == TAXI_NUMBER)
- return SendClientMessage(playerid, COLOR_ADM, "Not allowed.");
-
- new query[128];
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT id FROM players WHERE BurnerPhoneNumber = %i", value);
- mysql_tquery(m_Handle, query, "IfBPhoneExists", "iii", playerid, playerb, value);
- }
- else if(strmatch(opt, "carspawned")) {
- if(value == -1)
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE: /setstats [playerid/PartofName] hascarspawned [0/1]");
- Message(playerid, COLOR_ADM, "%s %s", ReturnName(playerb), (_has_vehicle_spawned[playerb] != 1) ? ("does not have a vehicle spawned.") : ("has a vehicle spawned right now."));
- return 1;
- }
-
- if(value < 0 || value > 1)return SendClientMessage(playerid, COLOR_ADM, "Value has to be 0-1. 1 is true, 0 is false");
-
- _has_vehicle_spawned[playerb] = value;
-
- format(string, sizeof(string), "%s set %s's HasVehicleSpawned var to %s", ReturnName(playerid), ReturnName(playerb), (value != 1) ? ("false") : ("true"));
- adminWarn(4, string);
- }
- else if(strmatch(opt, "carspawnedid")) {
- if(value == -1)
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /setstats [playerid/PartofName] carspawnedid [vehicleid]");
-
- if(!IsValidVehicle(value))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: That isn't a valid vehicle.");
-
- _has_spawned_vehicleid[playerb] = value;
-
- format(string, sizeof(string), "%s set %s's VehicleSpawnedID var to %d", ReturnName(playerid), ReturnName(playerb), value);
- adminWarn(4, string);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- return true;
- }
- CMD:despawnacars(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 4)return UnAuthMessage(playerid);
-
- new string[128];
-
- for(new i = 1, j = GetVehiclePoolSize(); i <= j; i++)
- {
- if(AdminCar[i])
- {
- AdminCar[i] = false;
- DestroyVehicle(AdminCar[i]);
- }
- }
- format(string, sizeof(string), "%s destroyed admin vehicles.", ReturnName(playerid, 1));
- adminWarn(1, string);
-
- return true;
- }
- CMD:editproperty(playerid, params[])
- {
- if (!pLoggedIn[playerid])return true;
- if (PlayerData[playerid][pAdmin] < 4)return UnAuthMessage(playerid);
-
- new option[90], interval, pid;
-
- if (sscanf(params, "ds[90]I(-1)", pid, option, interval)){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editproperty [propertyid] [params]");
- SendClientMessage(playerid, COLOR_ADM, "-> params:");
- SendClientMessage(playerid, COLOR_ADM, "--> interior - Change the properties interior.");
- SendClientMessage(playerid, COLOR_ADM, "--> intworld - Change the properties INTERIOR virtual world.");
- SendClientMessage(playerid, COLOR_ADM, "--> extexterior - Change the properties exterior.");
- SendClientMessage(playerid, COLOR_ADM, "--> extinterior - Change the properties exterior ID (APARTMENTS ONLY).");
- SendClientMessage(playerid, COLOR_ADM, "--> extworld - Change the properties EXTERIOR virtual world (APARTMENTS ONLY).");
- SendClientMessage(playerid, COLOR_ADM, "--> complexlink - Change the complex ID for an apartment.");
- SendClientMessage(playerid, COLOR_ADM, "--> level - Change the property level.");
- SendClientMessage(playerid, COLOR_ADM, "--> price - Change the market price.");
- SendClientMessage(playerid, COLOR_ADM, "--> faction - Set faction. Cops can /duty or /heal armor, etc.");
- return true;
- }
- if(pid < 1 || pid > MAX_PROPERTY || !PropertyData[pid][propertyid])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid property ID.");
-
- if(strmatch(option, "interior")){
- GetPlayerPos(playerid, Resources[playerid][Interior][0], Resources[playerid][Interior][1], Resources[playerid][Interior][2]);
- GetPlayerFacingAngle(playerid, Resources[playerid][Interior][3]);
-
- Resources[playerid][intInteriorID] = GetPlayerInterior(playerid);
-
- PropertyData[pid][propertyInterior][0] = Resources[playerid][Interior][0];
- PropertyData[pid][propertyInterior][1] = Resources[playerid][Interior][1];
- PropertyData[pid][propertyInterior][2] = Resources[playerid][Interior][2];
- PropertyData[pid][propertyInterior][3] = Resources[playerid][Interior][3];
- PropertyData[pid][propertyInteriorID] = Resources[playerid][intInteriorID];
-
- SaveProperty(pid);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You changed this properties interior position.");
- WriteLog("admin_logs/properties/editproperty_log.txt", "[%s] %s edited PID %d's interior location", ReturnDate(), ReturnName(playerid, 1), pid);
- }
- else if(strmatch(option, "intworld")){
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editproperty pid intworld [world]");
-
- PropertyData[pid][propertyInteriorWorld] = interval;
- SaveProperty(pid);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You changed this properties interior world.");
- WriteLog("admin_logs/properties/editproperty_log.txt", "[%s] %s edited PID %d's interior world", ReturnDate(), ReturnName(playerid, 1), pid);
- }
- else if(strmatch(option, "exterior")){
- GetPlayerPos(playerid, Resources[playerid][Exterior][0], Resources[playerid][Exterior][1], Resources[playerid][Exterior][2]);
-
- PropertyData[pid][propertyExterior][0] = Resources[playerid][Exterior][0];
- PropertyData[pid][propertyExterior][1] = Resources[playerid][Exterior][1];
- PropertyData[pid][propertyExterior][2] = Resources[playerid][Exterior][2];
-
- if(PropertyData[pid][propertyType] == 1)
- {
- DestroyDynamicPickup(PropertyData[pid][propertyPickup]);
- PropertyData[pid][propertyPickup] = CreateDynamicPickup(1314, 14, PropertyData[pid][propertyExterior][0], PropertyData[pid][propertyExterior][1], PropertyData[pid][propertyExterior][2], -1);
- }
-
- SaveProperty(pid);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You changed this properties exterior position.");
- WriteLog("admin_logs/properties/editproperty_log.txt", "[%s] %s edited PID %d's exterior world", ReturnDate(), ReturnName(playerid, 1), pid);
- }
- else if(strmatch(option, "extinterior")){
- if(PropertyData[pid][propertyType] != 2)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} This is for apartments only.");
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editproperty pid extinterior [intid]");
-
- PropertyData[pid][propertyExteriorID] = interval;
- SaveProperty(pid);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You changed this properties exterior ID.");
- WriteLog("admin_logs/properties/editproperty_log.txt", "[%s] %s edited PID %d's exterior ID", ReturnDate(), ReturnName(playerid, 1), pid);
- }
- else if(strmatch(option, "extworld")){
- if(PropertyData[pid][propertyType] != 2)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} This is for apartments only.");
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editproperty pid extworld [world]");
-
- PropertyData[pid][propertyExteriorWorld] = interval;
- SaveProperty(pid);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You changed this properties exterior world.");
- WriteLog("admin_logs/properties/editproperty_log.txt", "[%s] %s edited PID %d's exterior world", ReturnDate(), ReturnName(playerid, 1), pid);
- }
- else if(strmatch(option, "complexlink")){
- if(PropertyData[pid][propertyType] != 2)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} This is for apartments only.");
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editproperty pid complexlink [complex id]");
-
- PropertyData[pid][propertyComplexLink] = interval;
- SaveProperty(pid);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You changed this properties complex link.");
- WriteLog("admin_logs/properties/editproperty_log.txt", "[%s] %s edited PID %d's complex link to %d", ReturnDate(), ReturnName(playerid, 1), pid, interval);
- }
- else if(strmatch(option, "level")){
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editproperty pid level [level]");
-
- PropertyData[pid][propertyLevel] = interval;
- SaveProperty(pid);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You changed this properties level.");
- WriteLog("admin_logs/properties/editproperty_log.txt", "[%s] %s edited PID %d's level", ReturnDate(), ReturnName(playerid, 1), pid);
- }
- else if(strmatch(option, "price")){
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editproperty pid price [price]");
-
- PropertyData[pid][propertyMarketPrice] = interval;
- SaveProperty(pid);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You changed this properties market price.");
- WriteLog("admin_logs/properties/editproperty_log.txt", "[%s] %s edited PID %d's level to %d", ReturnDate(), ReturnName(playerid, 1), pid, interval);
- }
- else if(strmatch(option, "faction")){
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editproperty pid faction [faction id]");
-
- if(!FactionData[interval][factionID] && interval != 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid faction.");
-
- PropertyData[pid][propertyFaction] = interval;
- SaveProperty(pid);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You changed this properties faction.");
- WriteLog("admin_logs/properties/editproperty_log.txt", "[%s] %s edited PID %d's faction to %d", ReturnDate(), ReturnName(playerid, 1), pid, interval);
- }
- return true;
- }
- CMD:makebusiness(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 4)return false;
-
- new options[90], interval;
-
- if (sscanf(params, "s[90]I(-1)", options, interval)){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makebusiness [params]");
- SendClientMessage(playerid, COLOR_ADM, "options -->[exterior][interior][type][level][price][create]");
- return true;
- }
-
- if(strmatch(options, "exterior")){
- GetPlayerPos(playerid, Resources[playerid][Exterior][0], Resources[playerid][Exterior][1], Resources[playerid][Exterior][2]);
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: The business exterior has been selected.");
- }
- else if(strmatch(options, "interior")){
- GetPlayerPos(playerid, Resources[playerid][Interior][0], Resources[playerid][Interior][1], Resources[playerid][Interior][2]);
- GetPlayerFacingAngle(playerid, Resources[playerid][Interior][3]);
-
- Resources[playerid][intInteriorID] = GetPlayerInterior(playerid);
- Resources[playerid][intWorld] = 20000+random(9999);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: The business interior has been selected.");
- }
- else if(strmatch(options, "type")){
- if(interval == -1){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makebusiness type [type_id]");
- SendClientMessage(playerid, COLOR_WHITE, "Type : 1:[Pawnshop] 2:[Restaurant] 3:[Ammunation]");
- SendClientMessage(playerid, COLOR_WHITE, "4:[Club] 5:[Store] 6:[General] 7:[Bank] 8:[Standalone]");
- SendClientMessage(playerid, COLOR_WHITE, "9:[Car Dealership] 10:[Clothing Store] 11:[Black Market]");
- return true;
- }
- if(interval < 1 || interval > 10)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid type ID.");
-
- Resources[playerid][Type] = interval;
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: The business type has been selected.");
- }
- else if(strmatch(options, "level")){
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makebusiness level [level]");
- if(interval < 1)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} The level must be at least 1.");
-
- Resources[playerid][Level] = interval;
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: The business level has been selected.");
- }
- else if(strmatch(options, "price")){
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makebusiness price [cost]");
- if(interval < 1)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} The price must be greater than 0.");
-
- Resources[playerid][Cost] = interval;
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: The business price has been selected.");
- }
- else if(strmatch(options, "create")){
- if (!Resources[playerid][Exterior])return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED: Please specify the businesses' exterior first.");
- if (!Resources[playerid][Interior])return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED: Please specify the businesses' interior first.");
- if (!Resources[playerid][Type])return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED: Please specify the businesses' type first.");
- if (!Resources[playerid][Cost])return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED: Please specify the businesses' price first.");
- if (!Resources[playerid][Level])return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED: Please specify the businesses' level first.");
- CallBusinessCreate(playerid);
- }
- return true;
- }
- CMD:editbusiness(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 4)return false;
-
- new edit[90], interval, bizid;
-
- if(sscanf(params, "ds[90]I(-1)", bizid, edit, interval)){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editbusiness [bizid] [params]");
- SendClientMessage(playerid, COLOR_ADM, "params-> [exterior][interior][type][price][level][bankpickup]");
- return true;
- }
- if(bizid < 1 || bizid > MAX_BUSINESS || !BusinessData[bizid][businessID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid business ID.");
-
- if(strmatch(edit, "exterior")){
- GetPlayerPos(playerid, BusinessData[bizid][businessExt][0], BusinessData[bizid][businessExt][1], BusinessData[bizid][businessExt][2]);
- DestroyDynamicPickup(BusinessData[bizid][businessPickup]);
-
- if(BusinessData[bizid][businessType] == BIZ_RESTAURANT){
- if (!BusinessData[bizid][businessOwnerSQL]){
- BusinessData[bizid][businessPickup] = CreateDynamicPickup(1272, 14, BusinessData[bizid][businessExt][0], BusinessData[bizid][businessExt][1], BusinessData[bizid][businessExt][2], 0);
- }
- else{
- BusinessData[bizid][businessPickup] = CreateDynamicPickup(1239, 14, BusinessData[bizid][businessExt][0], BusinessData[bizid][businessExt][1], BusinessData[bizid][businessExt][2], 0);
- }
- }
- else{
- BusinessData[bizid][businessPickup] = CreateDynamicPickup(1239, 14, BusinessData[bizid][businessExt][0], BusinessData[bizid][businessExt][1], BusinessData[bizid][businessExt][2], 0);
- }
-
- SaveBusiness(bizid);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You moved this businesses' exterior. The pickup was reset.");
- WriteLog("admin_logs/businesses/editbusiness_log.txt", "[%s] %s altered Business ID %d's Exterior position", ReturnDate(), ReturnName(playerid, 1), bizid);
- }
- else if(strmatch(edit, "interior")){
- GetPlayerPos(playerid, BusinessData[bizid][businessInt][0], BusinessData[bizid][businessInt][1], BusinessData[bizid][businessInt][2]);
- GetPlayerFacingAngle(playerid, BusinessData[bizid][businessInt][3]);
-
- BusinessData[bizid][businessIntID] = GetPlayerInterior(playerid);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You moved this businesses' interior. Players inside have been adjusted.");
-
- if(BusinessData[bizid][businessType] == BIZ_BANK){
- DestroyDynamicPickup(BusinessData[bizid][businessBankPickup]);
- for(new i = 0; i < 3; i++) { BusinessData[bizid][businessBankPickupLoc][i] = 0.0; }
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: This businesses' bank pickup was removed due to an interior change.");
- }
-
- foreach(new i : Player){
- if(PlayerData[i][pInsideBusiness] == bizid){
- SendPlayer(i, BusinessData[bizid][businessInt][0], BusinessData[bizid][businessInt][1], BusinessData[bizid][businessInt][2], BusinessData[bizid][businessIntID], BusinessData[bizid][businessWorld]);
- SetPlayerFacingAngle(i, BusinessData[bizid][businessInt][3]);
- SendClientMessage(playerid, COLOR_YELLOW, "-> This interior has been refreshed. ");
- }
- }
-
- SaveBusiness(bizid);
- WriteLog("admin_logs/businesses/editbusiness_log.txt", "[%s] %s altered Business ID %d's Interior position", ReturnDate(), ReturnName(playerid, 1), bizid);
- }
- else if(strmatch(edit, "type")){
- if(interval == -1){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editbusiness [bizid] type [type_id]");
- SendClientMessage(playerid, COLOR_WHITE, "Type : 1:[Pawnshop] 2:[Restaurant] 3:[Ammunation]");
- SendClientMessage(playerid, COLOR_WHITE, "4:[Club] 5:[Store] 6:[General] 7:[Bank] 8:[Standalone]");
- SendClientMessage(playerid, COLOR_WHITE, "9:[Car Dealership] 10:[Clothing Store] 11:[Black Market]");
- return true;
- }
-
- if(interval > 10 || interval < 1) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That isn't a business type.");
-
- BusinessData[bizid][businessType] = interval;
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: This businesses' type was changed. ");
-
- SaveBusiness(bizid);
- WriteLog("admin_logs/businesses/editbusiness_log.txt", "[%s] %s altered Business ID %d's Type", ReturnDate(), ReturnName(playerid, 1), bizid);
- }
- else if(strmatch(edit, "price")){
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editbusiness [bizid] price [cost]");
-
- BusinessData[bizid][businessMarketPrice] = interval;
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: This businesses' price was changed.");
-
- SaveBusiness(bizid);
- WriteLog("admin_logs/businesses/editbusiness_log.txt", "[%s] %s altered Business ID %d's Market Price", ReturnDate(), ReturnName(playerid, 1), bizid);
- }
- else if(strmatch(edit, "level")){
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editbusiness [bizid] level [lvl]");
- if(interval < 1)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} The level must be at least 1.");
-
- BusinessData[bizid][businessLevel] = interval;
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: This businesses' price was changed.");
-
- SaveBusiness(bizid);
- WriteLog("admin_logs/businesses/editbusiness_log.txt", "[%s] %s altered Business ID %d's Level", ReturnDate(), ReturnName(playerid, 1), bizid);
- }
- else if(strmatch(edit, "bankpickup")){
- if (BusinessData[bizid][businessType] != BIZ_BANK)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That business isn't a bank.");
- GetPlayerPos(playerid, BusinessData[bizid][businessBankPickupLoc][0], BusinessData[bizid][businessBankPickupLoc][1], BusinessData[bizid][businessBankPickupLoc][2]);
- BusinessData[bizid][businessBankPickupWorld] = GetPlayerVirtualWorld(playerid);
-
- DestroyDynamicPickup(BusinessData[bizid][businessBankPickup]);
- BusinessData[bizid][businessBankPickup] = CreateDynamicPickup(1274, 2, BusinessData[bizid][businessBankPickupLoc][0], BusinessData[bizid][businessBankPickupLoc][1], BusinessData[bizid][businessBankPickupLoc][2], BusinessData[bizid][businessBankPickupWorld]);
-
- SaveBusiness(bizid);
- WriteLog("admin_logs/businesses/editbusiness_log.txt", "[%s] %s altered Business ID %d's Bank Pickup location", ReturnDate(), ReturnName(playerid, 1), bizid);
- }
- return true;
- }
- CMD:businessname(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 4)return false;
-
- new bizid, name[128];
-
- if(sscanf(params, "ds[128]", bizid, name))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /businessname [bizid] [business name]");
- if(bizid < 1 || bizid > MAX_BUSINESS || !BusinessData[bizid][businessID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid business ID.");
-
- format(BusinessData[bizid][businessName], 128, "%s", name);
- SaveBusiness(bizid);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You changed the businesses name.");
- WriteLog("admin_logs/businesses/businessname_log.txt", "[%s] %s edited Business ID %d's name to %s", ReturnDate(), ReturnName(playerid, 1), bizid, name);
- return true;
- }
- CMD:makepns(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 4)return false;
-
- new option[90], interval, string[128];
-
- if(sscanf(params, "s[90]I(-1)", option, interval)){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makepns [params]");
- SendClientMessage(playerid, COLOR_ADM, "-> params [entrance][repairloc][price][create]");
- return true;
- }
-
- if(TotalPaynSpraysLoaded >= MAX_PAYNSPRAY)return SendClientMessage(playerid, COLOR_ADM, "SERVER: The server has total amount of Pay n' Sprays.");
-
- if(strmatch(option, "entrance")){
- GetPlayerPos(playerid, Resources[playerid][Exterior][0], Resources[playerid][Exterior][1], Resources[playerid][Exterior][2]);
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You set the Pay n' Sprays entrance.");
- }
- else if(strmatch(option, "repairloc")){
- GetPlayerPos(playerid, Resources[playerid][Interior][0], Resources[playerid][Interior][1], Resources[playerid][Interior][2]);
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You set the Pay n' Sprays repair spot.");
- }
- else if(strmatch(option, "price")){
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makepns price [amount] -{FF6346} This is the /enter price.");
- if(interval < 1)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} The price must be greater than 1.");
-
- Resources[playerid][Cost] = interval;
-
- format(string, sizeof(string), "SERVER: You set the Pay n' Spray price to $%s", MoneyFormat(interval));
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- else if(strmatch(option, "create")){
- if (!Resources[playerid][Exterior])return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} Set the Pay n' Sprays entrance first.");
- if (!Resources[playerid][Interior])return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} Set the Pay n' Sprays repair location first.");
-
- CallPNSCreate(playerid);
- }
- return true;
- }
- CMD:editpns(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 4)return false;
-
- new id, option[90], interval, string[128];
-
- if(sscanf(params, "ds[90]I(-1)", id, option, interval)){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editpns [pns id] [params]");
- SendClientMessage(playerid, COLOR_ADM, "-> params [entrance][repairloc][price]");
- return true;
- }
-
- if(strmatch(option, "entrance")){
- GetPlayerPos(playerid, PNSData[id][pnsEntrance][0], PNSData[id][pnsEntrance][1], PNSData[id][pnsEntrance][2]);
-
- DestroyDynamicPickup(PNSData[id][pnsPickup]);
- CreateDynamicPickup(1239, 14, PNSData[id][pnsEntrance][0], PNSData[id][pnsEntrance][1], PNSData[id][pnsEntrance][2], 0);
-
- format(string, sizeof(string), "SERVER: You changed Pay n' Spray %d's entrance.", id);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- WriteLog("admin_logs/paynspray/editpns_log.txt", "[%s] %s edited PNS %d's entrance.", ReturnDate(), ReturnName(playerid, 1), id);
- SavePaynSpray(id);
- }
- else if(strmatch(option, "repairloc")){
- GetPlayerPos(playerid, PNSData[id][pnsRepairSpot][0], PNSData[id][pnsRepairSpot][1], PNSData[id][pnsRepairSpot][2]);
-
- format(string, sizeof(string), "SERVER: You changed Pay n' Spray %d's entrance.", id);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- WriteLog("admin_logs/paynspray/editpns_log.txt", "[%s] %s edited PNS %d's repair location.", ReturnDate(), ReturnName(playerid, 1), id);
- SavePaynSpray(id);
- }
- else if(strmatch(option, "price")){
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editpns [pns id] price [amount]");
- if(interval < 1)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Price must at least $1.");
-
- PNSData[id][pnsPrice] = interval;
-
- format(string, sizeof(string), "SERVER: You changed Pay n' Spray %d's cost to $%d", id, interval);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- WriteLog("admin_logs/paynspray/editpns_log.txt", "[%s] %s edited PNS %d's price to $%d", ReturnDate(), ReturnName(playerid, 1), id, interval);
- SavePaynSpray(id);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- return true;
- }
- CMD:pnsname(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 4)return false;
-
- new Name[128], id, string[128];
- if(sscanf(params, "ds[128]", id, Name))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /pnsname [pns ID] [Name]");
-
- format(string, sizeof(string), "SERVER: You renamed Pay n' Spray %d from '%s' to '%s'", id, PNSData[id][pnsName], Name);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- format(PNSData[id][pnsName], 128, "%s", Name);
- SavePaynSpray(id);
-
- WriteLog("admin_logs/paynspray/pnsname_log.txt", "[%s] %s edited PNS %d's name to %s", ReturnDate(), ReturnName(playerid, 1), id, Name);
- return true;
- }
- CMD:maketolls(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 4)return false;
-
- new option[90];
-
- if(sscanf(params, "s[90]", option))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /maketolls [pointa, pointb, create]");
-
- if(strmatch(option, "pointa")){
- GetPlayerPos(playerid, Resources[playerid][Exterior][0], Resources[playerid][Exterior][1], Resources[playerid][Exterior][2]);
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Toll booth Point A has been assigned.");
- }
- else if(strmatch(option, "pointb")){
- GetPlayerPos(playerid, Resources[playerid][Interior][0], Resources[playerid][Interior][1], Resources[playerid][Interior][2]);
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Toll booth Point B has been assigned.");
- }
- else if(strmatch(option, "create")){
- if (!Resources[playerid][Exterior]) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You need to set Point A of the booth first.");
- if (!Resources[playerid][Interior]) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You need to set Point B of the booth first.");
-
- CallTollCreate(playerid);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- return true;
- }
- CMD:edittolls(playerid, params[])
- {
- if(PlayerData[playerid][pAdmin] < 4)
- return 0;
-
- new
- nearestID = -1;
-
- for(new i = 0; i < sizeof(TollsData); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 30.0, TollsData[i][tollPointA][0], TollsData[i][tollPointA][1], TollsData[i][tollPointA][2]))
- nearestID = i;
- }
-
- if(nearestID == -1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't near toll booths.");
-
- new point;
-
- if(sscanf(params, "i", point))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /edittolls [1/2] 1 = Point A, 2 = Point B");
-
- switch(point)
- {
- case 1: GetPlayerPos(playerid, TollsData[nearestID][tollPointA][0], TollsData[nearestID][tollPointA][1], TollsData[nearestID][tollPointA][2]);
- case 2: GetPlayerPos(playerid, TollsData[nearestID][tollPointB][0], TollsData[nearestID][tollPointB][1], TollsData[nearestID][tollPointB][2]);
- default: return SendClientMessage(playerid, COLOR_ADM, "Points are between 1-2.");
- }
-
- SendClientMessage(playerid, COLOR_ADM, "SERVER: Toll booth was updated.");
- SaveToll(nearestID);
- return 1;
- }
- CMD:makerental(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 4)return false;
- if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle.");
-
- new vehicleid = GetPlayerVehicleID(playerid), string[128], query[156];
- if(!AdminCar[vehicleid])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't make this vehicle a rental.");
-
- new Float: currPos[4];
-
- GetPlayerPos(playerid, currPos[0], currPos[1], currPos[2]);
- GetVehicleZAngle(vehicleid, currPos[3]);
-
- new color1 = AdminCarColor1[vehicleid];
- new color2 = AdminCarColor2[vehicleid];
-
- Resources[playerid][v_Model] = GetVehicleModel(vehicleid);
- Resources[playerid][v_Color1] = color1;
- Resources[playerid][v_Color2] = color2;
- Resources[playerid][v_Pos][0] = currPos[0];
- Resources[playerid][v_Pos][1] = currPos[1];
- Resources[playerid][v_Pos][2] = currPos[2];
- Resources[playerid][v_Pos][3] = currPos[3];
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO `rentals` (`model`, `color1`, `color2`, `PosX`, `PosY`, `PosZ`, `PosA`) VALUES(%i, %i, %i, %f, %f, %f, %f)",
- GetVehicleModel(vehicleid), color1, color2, currPos[0], currPos[1], currPos[2], currPos[3]);
- mysql_pquery(m_Handle, query, "SQL_AddRentalVehicle", "i", playerid);
-
- format(string, sizeof(string), "%s created a new rental vehicle.", ReturnName(playerid, 1));
- adminWarn(1, string);
- return true;
- }
- CMD:setfactioncar(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 4)return false;
-
- new vehicleid, field[90], interval, string[128];
- if(sscanf(params, "ds[90]I(-1)", vehicleid, field, interval)){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setfactioncar [vehicleid] [params]");
- SendClientMessage(playerid, COLOR_ADM, "-> sirens, gunrack, color1, color2, model, faction");
- SendClientMessage(playerid, COLOR_ADM, "-> parkworld, parkinterior");
- return true;
- }
-
- if(!IsValidVehicle(vehicleid) && !IsValidFactionCar(vehicleid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid vehicle ID.");
-
- if(strmatch(field, "sirens")){
- if(interval == -1){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setfactioncar [vehicleid] sirens [0/1]");
- SendClientMessage(playerid, COLOR_ADM, "This gives, e.g: unmarked vehicle option to toggle sirens + object via horn.");
- return true;
- }
-
- FactionCar[vehicleid][carSirens] = interval;
- SaveFactionCar(vehicleid);
- RefreshFactionCar(vehicleid);
-
- format(string, sizeof(string), "%s edited faction vehicle %d's siren to %d", ReturnName(playerid, 1), vehicleid, interval);
- adminWarn(4, string);
-
- WriteLog("admin_logs/vehicles/setfactioncar_log.txt", "[%s] %s edited faction vehicle %d's Siren to %d.", ReturnDate(), ReturnName(playerid, 1), vehicleid, interval);
- }
- else if(strmatch(field, "gunrack")){
- if(interval == -1){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setfactioncar [vehicleid] gunrack [0/1]");
- SendClientMessage(playerid, COLOR_ADM, "This gives vehicles the ability to /check and /takegun scripted weapons.");
- return true;
- }
-
- FactionCar[vehicleid][carGunRack] = interval;
- SaveFactionCar(vehicleid);
- //RefreshFactionCar(vehicleid);
-
- format(string, sizeof(string), "%s edited faction vehicle %d's gunrack to %d", ReturnName(playerid, 1), vehicleid, interval);
- adminWarn(4, string);
-
- WriteLog("admin_logs/vehicles/setfactioncar_log.txt", "[%s] %s edited faction vehicle %d's gunrack to %d", ReturnDate(), ReturnName(playerid, 1), vehicleid, interval);
- }
- else if(strmatch(field, "color1")){
- if(interval == -1){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setfactioncar [vehicleid] color1 [color_id]");
- SendClientMessage(playerid, COLOR_ADM, "This will respawn the vehicle to take affect.");
- return true;
- }
-
- if(interval < 0 || interval > 255)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That's an invalid color ID.");
-
- FactionCar[vehicleid][carColor1] = interval;
- SaveFactionCar(vehicleid);
- RefreshFactionCar(vehicleid);
-
- format(string, sizeof(string), "%s edited faction vehicle %d's color1 to %d", ReturnName(playerid, 1), vehicleid, interval);
- adminWarn(4, string);
-
- WriteLog("admin_logs/vehicles/setfactioncar_log.txt", "[%s] %s edited faction vehicle %d's Color1 to %d.", ReturnDate(), ReturnName(playerid, 1), vehicleid, interval);
- }
- else if(strmatch(field, "color2")){
- if(interval == -1){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setfactioncar [vehicleid] color2 [color_id]");
- SendClientMessage(playerid, COLOR_ADM, "This will respawn the vehicle to take affect.");
- return true;
- }
-
- if(interval < 0 || interval > 255)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That's an invalid color ID.");
-
- FactionCar[vehicleid][carColor2] = interval;
- SaveFactionCar(vehicleid);
- RefreshFactionCar(vehicleid);
-
- format(string, sizeof(string), "%s edited faction vehicle %d's color2 to %d", ReturnName(playerid, 1), vehicleid, interval);
- adminWarn(4, string);
-
- WriteLog("admin_logs/vehicles/setfactioncar_log.txt", "[%s] %s edited faction vehicle %d's Color2 to %d.", ReturnDate(), ReturnName(playerid, 1), vehicleid, interval);
- }
- else if(strmatch(field, "model")){
- if(interval == -1){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setfactioncar [vehicleid] model [model_id]");
- SendClientMessage(playerid, COLOR_ADM, "This will respawn the vehicle to take affect.");
- return true;
- }
-
- if(interval < 400 || interval > 611)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid model ID.");
-
- FactionCar[vehicleid][carModel] = interval;
- SaveFactionCar(vehicleid);
- RefreshFactionCar(vehicleid);
-
- format(string, sizeof(string), "%s edited faction vehicle %d's model to %d", ReturnName(playerid, 1), vehicleid, interval);
- adminWarn(4, string);
-
- WriteLog("admin_logs/vehicles/setfactioncar_log.txt", "[%s] %s edited faction vehicle %d's Model to %d.", ReturnDate(), ReturnName(playerid, 1), vehicleid, interval);
- }
- else if(strmatch(field, "faction")){
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setfactioncar [vehicleid] faction [factionid]");
- if(interval > MAX_FACTIONS || !FactionData[interval][factionID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid faction ID.");
-
- FactionCar[vehicleid][carFaction] = interval;
- SaveFactionCar(vehicleid);
-
- format(string, sizeof(string), "%s edited faction vehicle %d's faction to %d", ReturnName(playerid, 1), vehicleid, interval);
- adminWarn(4, string);
-
- WriteLog("admin_logs/vehicles/setfactioncar_log.txt", "[%s] %s edited faction vehicle %d's Faction to %d.", ReturnDate(), ReturnName(playerid, 1), vehicleid, interval);
- }
- else if(strmatch(field, "parkworld"))
- {
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE: /setfactioncar [vehicleid] parkworld [world]");
-
- FactionCar[vehicleid][carWorld] = interval;
- SaveFactionCar(vehicleid);
-
- format(string, sizeof(string), "%s edited faction vehicle %d's world to %i.", ReturnName(playerid), vehicleid, interval);
- adminWarn(4, string);
-
- SendClientMessage(playerid, COLOR_ADM, "[ ! ] Vehicle may need to be /refreshcar'd.");
- WriteLog("admin_logs/vehicles/setfactioncar_log.txt", "[%s] %s edited faction vehicle %d's World to %d.", ReturnDate(), ReturnName(playerid, 1), vehicleid, interval);
- }
- else if(strmatch(field, "parkinterior"))
- {
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE: /setfactioncar [vehicleid] parkinterior [interior]");
-
- FactionCar[vehicleid][carInterior] = interval;
- SaveFactionCar(vehicleid);
-
- format(string, sizeof(string), "%s edited faction vehicle %d's interior to %i.", ReturnName(playerid), vehicleid, interval);
- adminWarn(4, string);
-
- SendClientMessage(playerid, COLOR_ADM, "[ ! ] Vehicle may need to be /refreshcar'd.");
- WriteLog("admin_logs/vehicles/setfactioncar_log.txt", "[%s] %s edited faction vehicle %d's Interior to %d.", ReturnDate(), ReturnName(playerid, 1), vehicleid, interval);
- }
- return true;
- }
- CMD:vehicleinfo(playerid, params[])
- {
- new vehicleid, string[128];
-
- new sirenString[90], gunrackString[90], xmrString[90], impoundedString[90], lockedString[90], rentedString[90];
-
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 4)return false;
-
- if(sscanf(params, "d", vehicleid))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /vehicleinfo [vehicleid]");
- if(!IsValidVehicle(vehicleid))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active vehicle.");
-
- if(FactionCar[vehicleid][carSirens])
- format(sirenString, sizeof(sirenString), "Yes");
-
- else
- format(sirenString, sizeof(sirenString), "No");
-
- if(FactionCar[vehicleid][carGunRack])
- format(gunrackString, sizeof(gunrackString), "Yes");
-
- else
- format(gunrackString, sizeof(gunrackString), "No");
-
- if(CarData[vehicleid][carXMR])
- format(xmrString, sizeof(xmrString), "Yes");
-
- else
- format(xmrString, sizeof(xmrString), "No");
-
- if(CarData[vehicleid][carImpounded])
- format(impoundedString, sizeof(impoundedString), "Yes");
-
- else
- format(impoundedString, sizeof(impoundedString), "No");
-
- if(CarData[vehicleid][carLocked])
- format(lockedString, sizeof(lockedString), "Yes");
-
- else
- format(lockedString, sizeof(lockedString), "No");
-
- if(RentalData[vehicleid][rentalcarLocked])
- format(lockedString, sizeof(lockedString), "Yes");
-
- else
- format(lockedString, sizeof(lockedString), "No");
-
- if(RentalData[vehicleid][rentalcarRented])
- format(rentedString, sizeof(rentedString), "Yes");
-
- else
- format(rentedString, sizeof(rentedString), "No");
-
- SendClientMessage(playerid, COLOR_DARKGREEN, "__________________________________________");
-
- if(IsValidFactionCar(vehicleid)){
- format(string, sizeof(string), "Type:[Faction] DBID:[%d] Faction:[%d] ModelID:[%d] Park Interior:[%d] Park World:[%d]", FactionCar[vehicleid][carID], FactionCar[vehicleid][carFaction], FactionCar[vehicleid][carModel],
- FactionCar[vehicleid][carInterior], FactionCar[vehicleid][carWorld]);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- format(string, sizeof(string), "Color1:[{%06x}%d{CCE6E6}] Color2:[{%06x}%d{CCE6E6}] Sirens:[%s] Gunrack:[%s]", VehicleColoursTableRGBA[FactionCar[vehicleid][carColor1]] >>> 8, FactionCar[vehicleid][carColor1],
- VehicleColoursTableRGBA[FactionCar[vehicleid][carColor2]] >>> 8, FactionCar[vehicleid][carColor2], sirenString, gunrackString);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
-
- else if(IsValidPlayerCar(vehicleid)){
- format(string, sizeof(string), "Type:[Private] DBID:[%d] ModelID:[%d] Color1:[{%06x}%d{FFFFFF}] Color2:[{%06x}%d{FFFFFF}] Paintjob:[%d]", CarData[vehicleid][carID], CarData[vehicleid][carModel], VehicleColoursTableRGBA[CarData[vehicleid][carColor1]] >>> 8, CarData[vehicleid][carColor1],
- VehicleColoursTableRGBA[CarData[vehicleid][carColor2]] >>> 8, CarData[vehicleid][carColor2], CarData[vehicleid][carPaintjob]);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- format(string, sizeof(string), "XMR:[%s] Impounded:[%s] EngineLife:[%.2f] BatteryLife:[%.2f] LockLevel:[%d] AlarmLevel:[%d]", xmrString, impoundedString, CarData[vehicleid][carEngine], CarData[vehicleid][carBattery],
- CarData[vehicleid][carLock], CarData[vehicleid][carAlarm]);
- SendClientMessage(playerid, COLOR_GRAD1, string);
-
- format(string, sizeof(string), "ImmobLevel:[%d] Insurance:[%d] TimesDestroyed:[%d] Plate:[%s] Locked:[%s] Fuel:[%f]", CarData[vehicleid][carImmob], CarData[vehicleid][carInsurance], CarData[vehicleid][carTimeDestroyed],
- CarData[vehicleid][carPlates], lockedString, CarData[vehicleid][carFuel]);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- format(string, sizeof(string), "Weapon1:[%d] Ammo:[%d] Weapon2:[%d] Ammo:[%d] Weapon3:[%d] Ammo:[%d] Weapon4:[%d] Ammo:[%d]", CarData[vehicleid][carWeapons][1], CarData[vehicleid][carWeaponsAmmo][1],
- CarData[vehicleid][carWeapons][2], CarData[vehicleid][carWeaponsAmmo][2], CarData[vehicleid][carWeapons][3], CarData[vehicleid][carWeaponsAmmo][3], CarData[vehicleid][carWeapons][4],
- CarData[vehicleid][carWeaponsAmmo][4]);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
-
- else if(IsValidRentalCar(vehicleid)){
- format(string, sizeof(string), "Type:[Rental] DBID:[%d] ModelID:[%d] Color1:[{%06x}%d{FFFFFF}] Color2:[{%06x}%d{FFFFFF}] Rented:[%s] Rentedby:[%d DBID]",
- RentalData[vehicleid][rentalcarSQLID], RentalData[vehicleid][rentalcarModel], VehicleColoursTableRGBA[RentalData[vehicleid][rentalcarColor1]] >>> 8, RentalData[vehicleid][rentalcarColor1],
- VehicleColoursTableRGBA[RentalData[vehicleid][rentalcarColor2]] >>> 8, RentalData[vehicleid][rentalcarColor2], rentedString, RentalData[vehicleid][rentalcarRentedBy]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else {
- format(string, sizeof(string), "Type:[Public] ModelID:[%d] ", GetVehicleModel(vehicleid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
-
- SendClientMessage(playerid, COLOR_DARKGREEN, "__________________________________________");
- return true;
- }
- CMD:refreshcar(playerid, params[])
- {
- if(PlayerData[playerid][pAdmin] < 4)
- return 0;
-
- new
- vehicleid,
- str[128];
-
- if(sscanf(params, "i", vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /refreshcar [vehicleid]");
-
- if(!IsValidVehicle(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You specified an invalid vehicle ID.");
-
- if(!IsValidFactionCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You can only refresh faction vehicles.");
-
- format(str, sizeof(str), "%s refreshed faction vehicle ID %i", ReturnName(playerid), vehicleid);
- adminWarn(4, str);
-
- RefreshFactionCar(vehicleid);
- return 1;
- }
- CMD:makedoor(playerid, params[])
- {
- if(!pLoggedIn[playerid])return false;
- if(PlayerData[playerid][pAdmin] < 4)return false;
-
- new field[90], interval;
-
- if(sscanf(params, "s[90]I(-1)", field, interval)){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makedoor [params] ");
- SendClientMessage(playerid, COLOR_ADM, "-> exterior, interior, faction, create");
- return true;
- }
-
- if(strmatch(field, "exterior")){
- GetPlayerPos(playerid, Resources[playerid][Exterior][0], Resources[playerid][Exterior][1], Resources[playerid][Exterior][2]);
- Resources[playerid][extInteriorID] = GetPlayerInterior(playerid);
- Resources[playerid][extWorld] = GetPlayerVirtualWorld(playerid);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You selected the door exterior.");
- }
- else if(strmatch(field, "interior")){
- GetPlayerPos(playerid, Resources[playerid][Interior][0], Resources[playerid][Interior][1], Resources[playerid][Interior][2]);
- GetPlayerFacingAngle(playerid, Resources[playerid][Interior][3]);
- Resources[playerid][intInteriorID] = GetPlayerInterior(playerid);
- Resources[playerid][intWorld] = GetPlayerVirtualWorld(playerid);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You selected the doors interior.");
- }
- else if(strmatch(field, "faction")){
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makedoor faction [factionid]");
- if(!FactionData[interval][factionID] && interval != 0) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid faction ID.");
-
- Resources[playerid][v_Faction] = interval;
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You selected the doors faction.");
- }
- else if(strmatch(field, "create")){
- if(!Resources[playerid][Interior])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You need to select the doors interior first.");
- if(!Resources[playerid][Exterior])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You need to select the doors exterior first.");
-
- SaveDoorToDatabase(playerid);
- }
- return true;
- }
- CMD:doorname(playerid, params[])
- {
- new doorid, newname[128], string[128];
-
- if(PlayerData[playerid][pAdmin] < 4)return false;
-
- if(sscanf(params, "ds[128]", doorid, newname))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /doorname [doorid] [door name]");
- if(doorid > MAX_DOORS || !DoorData[doorid][doorID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid door ID.");
-
- format(DoorData[doorid][doorName], 128, "%s", newname);
- SaveDoor(doorid);
-
- format(string, sizeof(string), "SERVER: You edited door %d's name to %s", doorid, newname);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- WriteLog("admin_logs/doors/doorname_log.txt", "[%s] %s edited door %d's name to %s", ReturnDate(), ReturnName(playerid, 1), doorid, newname);
-
- return true;
- }
- CMD:editdoor(playerid, params[])
- {
- new doorid, field[90], interval, string[128];
-
- if(PlayerData[playerid][pAdmin] < 4)return false;
-
- if(sscanf(params, "ds[90]I(-1)", doorid, field, interval)){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editdoor [doorid] [params]");
- SendClientMessage(playerid, COLOR_ADM, "-> faction");
- return true;
- }
-
- if(doorid > MAX_DOORS || !DoorData[doorid][doorID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid door ID.");
-
- if(strmatch(field, "faction")){
- if(interval == -1)return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editdoor [doorid] faction [factionid]");
- if(!FactionData[interval][factionID] && interval != 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid faction ID.");
-
- DoorData[interval][doorFaction] = interval;
- SaveDoor(interval);
-
- format(string, sizeof(string), "SERVER: You edited door %d's faction to %d", doorid, interval);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- WriteLog("admin_logs/door/editdoor_log.txt", "[%s] %s edited door %d's faction to %d", ReturnDate(), ReturnName(playerid, 1), doorid, interval);
- }
-
- return true;
- }
- CMD:makepropgarage(playerid, params[])
- {
- new a_string[90], b_string[128], string[128];
-
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 4)return false;
-
- if(sscanf(params, "s[90]S()[128]", a_string, b_string))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makepropgarage [action]");
- SendClientMessage(playerid, COLOR_ADM, "[Action] exterior, type (interior), propertyid, create");
- return true;
- }
-
- if(!strcmp(a_string, "exterior"))
- {
- GetPlayerPos(playerid, Resources[playerid][Exterior][0], Resources[playerid][Exterior][1], Resources[playerid][Exterior][2]);
- if(IsPlayerInAnyVehicle(playerid)) GetVehicleZAngle(GetPlayerVehicleID(playerid), Resources[playerid][Exterior][3]);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Garage exterior was set.");
- }
- else if(!strcmp(a_string, "type"))
- {
- new g_type[90];
-
- if(sscanf(b_string, "s[90]", g_type))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makepropgarage type [type]");
- SendClientMessage(playerid, COLOR_ADM, "[Types] extrasmall (1), small (2), medium (3), large (4)");
- return true;
- }
-
- if(!strcmp(b_string, "extrasmall"))
- {
- Resources[playerid][Interior][0] = 1643.7938;
- Resources[playerid][Interior][1] = -1516.0559;
- Resources[playerid][Interior][2] = 13.4999;
- Resources[playerid][InteriorID] = 0;
- Resources[playerid][Type] = 1;
- Resources[playerid][InteriorWorld] = 90000+random(9999);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Garage type set to extra small.");
- }
- else if(!strcmp(b_string, "small"))
- {
- Resources[playerid][Interior][0] = 613.0642;
- Resources[playerid][Interior][1] = -75.2096;
- Resources[playerid][Interior][2] = 997.9222;
- Resources[playerid][InteriorID] = 2;
- Resources[playerid][Type] = 2;
- Resources[playerid][InteriorWorld] = 90000+random(9999);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Garage type set to small.");
- }
- else if(!strcmp(b_string, "medium"))
- {
- Resources[playerid][Interior][0] = 612.2191;
- Resources[playerid][Interior][1] = -123.9028;
- Resources[playerid][Interior][2] = 997.9922;
- Resources[playerid][InteriorID] = 3;
- Resources[playerid][Type] = 3;
- Resources[playerid][InteriorWorld] = 90000+random(9999);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Garage type set to medium.");
- }
- else if(!strcmp(b_string, "large"))
- {
- Resources[playerid][Interior][0] = 609.1080;
- Resources[playerid][Interior][1] = -1.3056;
- Resources[playerid][Interior][2] = 1000.8488;
- Resources[playerid][InteriorID] = 1;
- Resources[playerid][Type] = 4;
- Resources[playerid][InteriorWorld] = 90000+random(9999);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Garage type set to large.");
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Type.");
- }
- else if(!strcmp(a_string, "propertyid"))
- {
- new p_id;
-
- if(sscanf(b_string, "d", p_id))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makepropgarage propertyid [property ID]");
- if(p_id > MAX_PROPERTY || !PropertyData[p_id][propertyid])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid property.");
-
- Resources[playerid][PropertyLink] = p_id;
-
- format(string, sizeof(string), "SERVER: Garage is linked to property %d owned by %s.", p_id, ReturnSQLName(PropertyData[p_id][propertyOwnerSQL]));
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- else if(!strcmp(a_string, "create"))
- {
- if(!Resources[playerid][PropertyLink]) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You need to link the garage to a property first.");
- if(!Resources[playerid][Type])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You need to specify the garages type.");
- if(!Resources[playerid][Exterior])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You need to set the garages exterior.");
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Building garage...");
- SavePropertyGarageToDB(playerid);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- return true;
- }
- CMD:editpropgarage(playerid, params[])
- {
- new a_string[60], b_string[128], string[128], id;
-
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 4)return false;
- if(sscanf(params, "ds[90]S()[128]", id, a_string, b_string))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editpropgarage [id] [action]");
- SendClientMessage(playerid, COLOR_ADM, "[Action] exterior, type (interior), xinterior, propertyid, faction");
- return true;
- }
-
- if(id > MAX_PROPERTY_GARAGES || !GarageData[id][garageSQLID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid property garage.");
-
- if(!strcmp(a_string, "exterior"))
- {
- GetPlayerPos(playerid, GarageData[id][garagePos][0], GarageData[id][garagePos][1], GarageData[id][garagePos][2]);
- if(IsPlayerInAnyVehicle(playerid)) GetVehicleZAngle(GetPlayerVehicleID(playerid), GarageData[id][garagePos][3]);
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You changed the garages exterior.");
-
- WriteLog("admin_logs/garages/editpgarage_log.txt", "[%s] %s edited Garage %d's exterior.", ReturnDate(), ReturnName(playerid, 1), id);
- }
- else if(!strcmp(a_string, "type"))
- {
- new type[90];
-
- if(sscanf(b_string, "s[90]", type))
- {
- format(string, sizeof(string), "USAGE:{FFFFFF} /editpropgarage %d type [type name]", id);
- SendClientMessage(playerid, COLOR_ADM, string);
- SendClientMessage(playerid, COLOR_ADM, "[Types] extrasmall, small, medium, large");
- return true;
- }
-
- if(!strcmp(b_string, "extrasmall"))
- {
- GarageData[id][garageInt][0] = 1643.7938;
- GarageData[id][garageInt][1] = -1516.0559;
- GarageData[id][garageInt][2] = 13.4999;
- GarageData[id][garageInteriorID] = 0;
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: The garages type was set to extra small.");
- SavePropertyGarage(id);
- WriteLog("admin_logs/garages/editpgarage_log.txt", "[%s] %s edited Garage %d's type to Extra Small.", ReturnDate(), ReturnName(playerid, 1), id);
- }
- else if(!strcmp(b_string, "small"))
- {
- GarageData[id][garageInt][0] = 613.0642;
- GarageData[id][garageInt][1] = -75.2096;
- GarageData[id][garageInt][2] = 997.9222;
- GarageData[id][garageInteriorID] = 2;
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: The garages type was set to small.");
- SavePropertyGarage(id);
- WriteLog("admin_logs/garages/editpgarage_log.txt", "[%s] %s edited Garage %d's type to Small.", ReturnDate(), ReturnName(playerid, 1), id);
- }
- else if(!strcmp(b_string, "medium"))
- {
- GarageData[id][garageInt][0] = 612.2191;
- GarageData[id][garageInt][1] = -123.9028;
- GarageData[id][garageInt][2] = 997.9922;
- GarageData[id][garageInteriorID] = 3;
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: The garages type was set to medium.");
- SavePropertyGarage(id);
- WriteLog("admin_logs/garages/editpgarage_log.txt", "[%s] %s edited Garage %d's type to Medium.", ReturnDate(), ReturnName(playerid, 1), id);
- }
- else if(!strcmp(b_string, "large"))
- {
- GarageData[id][garageInt][0] = 609.1080;
- GarageData[id][garageInt][1] = -1.3056;
- GarageData[id][garageInt][2] = 1000.8488;
- GarageData[id][garageInteriorID] = 1;
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: The garages type was set to large.");
- SavePropertyGarage(id);
- WriteLog("admin_logs/garages/editpgarage_log.txt", "[%s] %s edited Garage %d's type to Large.", ReturnDate(), ReturnName(playerid, 1), id);
- }
- }
- else if(!strcmp(a_string, "xinterior"))
- {
- GetPlayerPos(playerid, GarageData[id][garageInt][0], GarageData[id][garageInt][1], GarageData[id][garageInt][2]);
- GarageData[id][garageInteriorID] = GetPlayerInterior(playerid);
-
- SavePropertyGarage(id);
-
- Message(playerid, COLOR_YELLOW, "SERVER: You edited Property garage %i to a custom interior.", id);
- WriteLog("admin_logs/garages/editpgarage_log.txt", "[%s] %s edited Garage %d to a custom interior.", ReturnDate(), ReturnName(playerid, 1), id);
- }
- else if(!strcmp(a_string, "faction"))
- {
- new fid;
-
- if(sscanf(b_string, "i", fid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /editpropgarage id faction [faction id]");
-
- if(fid > MAX_FACTIONS || fid < 1 || !FactionData[fid][factionID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid faction.");
-
- GarageData[id][garageFaction] = fid;
- SavePropertyGarage(id);
-
- Message(playerid, COLOR_YELLOW, "SERVER: Property garage %i now belongs to faction %s", id, ReturnFactionName(fid));
- }
- else if(!strcmp(a_string, "propertyid"))
- {
- new pid;
-
- if(sscanf(b_string, "d", pid))
- {
- format(string, sizeof(string), "USAGE:{FFFFFF} /editpropgarage %d propertyid [property id]", id);
- SendClientMessage(playerid, COLOR_ADM, string);
- return true;
- }
-
- if(!PropertyData[pid][propertyid])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid property.");
-
- GarageData[id][garagePropertyID] = pid;
- SavePropertyGarage(id);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: The garages property was set.");
- WriteLog("admin_logs/garages/editpgarage_log.txt", "[%s] %s edited Garage %d's propertylink to %d.", ReturnDate(), ReturnName(playerid, 1), id, pid);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- return 1;
- }
- CMD:xmrcategory(playerid, params[])
- {
- if (PlayerData[playerid][pAdmin] < 4)
- return false;
-
- if (isnull(params))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /xmrcategory [category name]");
- SendClientMessage(playerid, COLOR_ADM, "This will create a new listed category in /setstation. ");
- return true;
- }
-
- new string[128], query[128], xmr_id;
-
- for(new i = 1; i < MAX_XMR_CATEGORIES; i++)
- {
- if (!XMRCategoryData[i][XMRCategory])
- {
- xmr_id = i;
- break;
- }
- }
-
- XMRCategoryData[xmr_id][XMRID] = xmr_id;
- XMRCategoryData[xmr_id][XMRCategory] = xmr_id;
- format(XMRCategoryData[xmr_id][XMRCategoryName], 90, "%s", params);
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO xmr_sub (`cat_name`, `category_id`) VALUES('%e', %d)", params, xmr_id);
- mysql_pquery(m_Handle, query);
-
- format(string, sizeof(string), "SERVER: Category created... ID : %d Name : %s", xmr_id, params);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return true;
- }
- CMD:makexmr(playerid, params[])
- {
- if(PlayerData[playerid][pAdmin] < 4)
- return false;
-
- new string[128], query[400], free_slot, cat_id, xmr_name[90], xmr_url[128];
- if(sscanf(params, "s[90]ds[128]", xmr_name, cat_id, xmr_url))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /makexmr [station name] [category ID] [station URL]");
- SendClientMessage(playerid, COLOR_ADM, "Example: /makexmr Powerhitz 1 ((Hip Hop)) http://powerhitz.com");
- return true;
- }
-
- for(new i = 1; i < MAX_XMR_SUBCATEGORY; i++){
- if (!XMRData[i][xmrID]){
- free_slot = i;
- break;
- }
- }
-
- format(XMRData[free_slot][xmrStationURL], 128, "%s", xmr_url);
- format(XMRData[free_slot][xmrName], 90, "%s", xmr_name);
- XMRData[free_slot][xmrID] = free_slot;
- XMRData[free_slot][xmrCategory] = cat_id;
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO xmr_data (`xmr_name`, `xmr_url`, `category`) VALUES('%e', '%e', %d)", xmr_name, xmr_url, cat_id);
- mysql_pquery(m_Handle, query);
-
- format(string, sizeof(string), "SERVER: Station created... ID : %d Name : %s", free_slot, xmr_name);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- format(string, sizeof(string), "URL: %s", xmr_url);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- return true;
- }
- CMD:editxmrcat(playerid, params[])
- {
- if(PlayerData[playerid][pAdmin] < 4)
- return false;
-
- new id, string[128], query[90], input[128];
-
- if(sscanf(params, "is[128]", id, input))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editxmrcat [category id] [category name]");
-
- if(!XMRCategoryData[id][XMRID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid category ID.");
-
- format(string, sizeof(string), "SERVER: Category %s(%d) renamed to %s", XMRCategoryData[id][XMRCategoryName], id, input);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- format(XMRCategoryData[id][XMRCategoryName], 128, "%s", input);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE xmr_sub SET cat_name = '%e' WHERE id = %i", XMRCategoryData[id][XMRID]);
- mysql_pquery(m_Handle, query);
- return true;
- }
- CMD:editxmrstation(playerid, params[])
- {
- if(PlayerData[playerid][pAdmin] < 4)
- return false;
-
- new id, string[128], a_string[128], b_string[128], query[256];
-
- if(sscanf(params, "is[128]S()[128]", id, a_string, b_string))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editxmrstation [station id] [name, url, category]");
-
- if(!strcmp(a_string, "name"))
- {
- new input[128];
-
- if(sscanf(b_string, "s[128]", input))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editxmrstation station_id name [new name]");
-
- format(string, sizeof(string), "SERVER: Station %s(%d) renamed to %s", XMRData[id][xmrName], id, input);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- format(XMRData[id][xmrName], 128, "%s", input);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE xmr_data SET xmr_name = '%e' WHERE id = %i",
- input, XMRData[id][xmrID]);
- mysql_pquery(m_Handle, query);
- }
- else if(!strcmp(a_string, "url"))
- {
- new input[128];
-
- if(sscanf(b_string, "s[128]", input))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editxmrstation station_id url [new url]");
-
- format(string, sizeof(string), "SERVER: Station %s(%d) URL is now : %s", XMRData[id][xmrName], id, input);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- format(string, sizeof(string), "Previous: %s", XMRData[id][xmrStationURL]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- format(XMRData[id][xmrStationURL], 128, "%s", input);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE xmr_data SET xmr_url = '%e' WHERE id = %i",
- input, XMRData[id][xmrID]);
- mysql_pquery(m_Handle, query);
- }
- else if(!strcmp(a_string, "category"))
- {
- new cat_id;
-
- if(sscanf(b_string, "d", cat_id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editxmrstation station_id category [category id]");
-
- if(!XMRCategoryData[cat_id][XMRID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid category ID.");
-
- format(string, sizeof(string), "SERVER: Station %s(%d) Category set to %s (%d)", XMRData[id][xmrName], id, XMRCategoryData[cat_id][XMRCategoryName], cat_id);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- format(string, sizeof(string), "Previous: %s (%d)", XMRCategoryData[XMRData[id][xmrCategory]][XMRCategoryName], XMRData[id][xmrCategory]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- XMRData[id][xmrCategory] = cat_id;
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE xmr_data SET category = %i WHERE id = %i", cat_id, XMRData[id][xmrID]);
- mysql_pquery(m_Handle, query);
- return true;
- }
- return true;
- }
- CMD:makeentrance(playerid, params[])
- {
- if (PlayerData[playerid][pAdmin] < 4)
- return false;
-
- new
- faction_id, warehouse, b_market,
- insert_query[200];
-
- if(sscanf(params, "iii", faction_id, warehouse, b_market))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /makeentrance [Faction ID] [Warehouse] [Black Market]");
-
- if(faction_id > MAX_FACTIONS || !FactionData[faction_id][factionID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid faction.");
-
- if(warehouse && b_market)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: It needs to be either a warehouse or black market but not both.");
-
- if(warehouse < 0 || warehouse > 1 || b_market > 1 || b_market < 0)
- return SendClientMessage(playerid, COLOR_ADM, "Warehouse or Black Market parameters need to be a boolean value. (0 for false, 1 for true)");
-
- if(CountEntrances() >= 30)
- return SendClientMessage(playerid, COLOR_ADM, "Server has exceeded the max possible entrances. (30)");
-
- mysql_format(m_Handle, insert_query, sizeof(insert_query), "INSERT INTO entrances (FactionOwner, IsBlackMarket, IsWarehouse) VALUES(%i, %i, %i)", faction_id, b_market, warehouse);
- mysql_tquery(m_Handle, insert_query, "OnEntranceCreated", "iiii", playerid, faction_id, warehouse, b_market);
- return 1;
- }
- CMD:editentrance(playerid, params[])
- {
- if (PlayerData[playerid][pAdmin] < 4)
- return false;
-
- new
- id, specific[30], type[30], setid,
- update_query[200];
-
- if(sscanf(params, "is[30]S()[30]", id, specific, type))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE: /editentrance [Entrance ID] [Parameters]");
- SendClientMessage(playerid, COLOR_ADM, "Parameters:{FFFFFF} faction, warehouse, blackmarket, entrance, interior.");
- return 1;
- }
-
- if(!strcmp(specific, "faction", true))
- {
- if(sscanf(type, "i", setid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /editentrance EntranceID faction <Faction ID>");
-
- if(setid > MAX_FACTIONS || setid < 1 || !FactionData[setid][factionID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid faction.");
-
- mysql_format(m_Handle, update_query, sizeof(update_query), "UPDATE entrances SET FactionOwner = %i WHERE InteriorDBID = %i", setid, Entrances[id][InteriorDBID]);
- mysql_tquery(m_Handle, update_query, "OnEntranceFactionChange", "iii", playerid, id, setid);
- }
- else if(!strcmp(specific, "warehouse", true))
- {
- if(sscanf(type, "i", setid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /editentrane EntranceID warehouse <0/1>");
-
- if(setid > 1 || setid < 0)
- return SendClientMessage(playerid, COLOR_ADM, "Value must be either 0 or 1. (1 is true, 0 is false)");
-
- if(Entrances[id][IsBlackMarket])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: The Entrance you specified is a black market. It can't be both.");
-
- if(Entrances[id][IsWarehouse] == setid)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: The value you're setting is the same as the current.");
-
- mysql_format(m_Handle, update_query, sizeof(update_query), "UPDATE entrances SET IsWarehouse = %i WHERE InteriorDBID = %i", setid, Entrances[id][InteriorDBID]);
- mysql_tquery(m_Handle, update_query, "OnEntranceWarehouseChange", "iii", playerid, id, setid);
- }
- else if(!strcmp(specific, "blackmarket", true))
- {
- if(sscanf(type, "i", setid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /editentrane EntranceID blackmarket <0/1>");
-
- if(setid > 1 || setid < 0)
- return SendClientMessage(playerid, COLOR_ADM, "Value must be either 0 or 1. (1 is true, 0 is false)");
-
- if(Entrances[id][IsWarehouse])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: The Entrance you specified is a warehouse. It can't be both.");
-
- if(Entrances[id][IsBlackMarket] == setid)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: The value you're setting is the same as the current.");
-
- mysql_format(m_Handle, update_query, sizeof(update_query), "UPDATE entrances SET IsBlackMarket = %i WHERE InteriorDBID = %i", setid, Entrances[id][InteriorDBID]);
- mysql_tquery(m_Handle, update_query, "OnEntranceBlackmarketChange", "iii", playerid, id, setid);
- }
- else if(!strcmp(specific, "entrance", true))
- {
- format(update_query, sizeof(update_query), "Are you sure you want to change Entrance %i's entrance?\n\nIf this is a interior, please change your virtual world to a random value.", id);
- ConfirmDialog(playerid, "Confirmation", update_query, "OnEntrancesEntranceChange", id);
- }
- else if(!strcmp(specific, "interior", true))
- {
- format(update_query, sizeof(update_query), "Are you sure you want to change Entrance %i's interior?\n\nIf this is a interior, please change your virtual world to a random value.", id);
- ConfirmDialog(playerid, "Confirmation", update_query, "OnEntrancesInteriorChange", id);
- }
- return 1;
- }
- CMD:asellproperty(playerid, params[])
- {
- if (PlayerData[playerid][pAdmin] < 4)
- return false;
- new id, string[128];
- if (sscanf(params, "d", id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /asellproperty [property id]");
- if (id < 1 || id > MAX_PROPERTY || !PropertyData[id][propertyid])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid property ID.");
- if (PropertyData[id][propertyOwnerSQL] == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't sell property that isn't owned.");
- format(string, sizeof(string), "SERVER: You sold Property ID %d from %s", id, ReturnSQLName(PropertyData[id][propertyOwnerSQL]));
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "%s sold Property ID %d from %s", ReturnName(playerid, 1), id, ReturnSQLName(PropertyData[id][propertyOwnerSQL]));
- adminWarn(4, string);
- WriteLog("admin_logs/properties/sellproperty_log.txt", "[%s] %s sold Property ID %d from %s", ReturnDate(), ReturnName(playerid, 1), id, ReturnSQLName(PropertyData[id][propertyOwnerSQL]));
- foreach(new i : Player){
- if(strfind(ReturnName(i, 1), ReturnSQLName(PropertyData[id][propertyOwnerSQL]), true) != -1)
- {
- SendClientMessage(i, COLOR_ADM, "[ ! ] Your Property was sold by an Administrator.");
- }
- }
- PropertyData[id][propertyOwnerSQL] = 0;
- SaveProperty(id);
- return true;
- }
- CMD:asellbusiness(playerid, params[])
- {
- if (PlayerData[playerid][pAdmin] < 4)
- return false;
- new id, string[128];
- if (sscanf(params, "d", id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /asellbusiness [business id]");
- if (id < 1 || id > MAX_BUSINESS || !BusinessData[id][businessID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid business ID.");
- if (BusinessData[id][businessOwnerSQL] == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't sell a business that isn't owned.");
- format(string, sizeof(string), "SERVER: You sold Business ID %d from %s", id, ReturnSQLName(BusinessData[id][businessOwnerSQL]));
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "%s sold Business ID %d from %s", ReturnName(playerid, 1), id, ReturnSQLName(BusinessData[id][businessOwnerSQL]));
- adminWarn(4, string);
- WriteLog("admin_logs/businesses/sellbusiness_log.txt", "[%s] %s sold Business ID %d from %s", ReturnDate(), ReturnName(playerid, 1), id, ReturnSQLName(BusinessData[id][businessOwnerSQL]));
- foreach(new i : Player){
- if(strfind(ReturnName(i, 1), ReturnSQLName(BusinessData[id][businessOwnerSQL]), true) != -1)
- {
- SendClientMessage(i, COLOR_ADM, "[ ! ] Your Business was sold by an Administrator.");
- }
- }
- BusinessData[id][businessOwnerSQL] = 0;
- SaveBusiness(id);
- return true;
- }
- CMD:givepackage(playerid, params[])
- {
- new playerb, wepid, ammo, string[128], newid;
- if (PlayerData[playerid][pAdmin] < 4)
- return false;
- if (sscanf(params, "udd", playerb, wepid, ammo))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /givepackage [playerid/PartofName] [weaponid] [ammo]");
- if (!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if (!pLoggedIn[playerid])
- return SendClientMessage(playerid, COLOR_GREY, "You specified a player that isn't logged in.");
- if (newid == -1)
- return SendClientMessage(playerid, COLOR_ADM, "That player can't carry anymore packages.");
- if(wepid <= 1 || wepid > 46 || wepid == 35 || wepid == 36 || wepid == 37 || wepid == 38 || wepid == 39 || wepid == 21 || wepid == 19)
- return SendClientMessage(playerid, COLOR_GREY, "You have specified an invalid weaponid.");
- newid = ReturnFreePackage(playerb);
- WriteLog("weapon_logs/admin_logs/givepackage.txt", "[%s] %s gave %s a %s and %d Ammo package.",
- ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), ReturnWeaponName(wepid), ammo);
- PackageData[playerb][packageWeapon][newid] = wepid;
- PackageData[playerb][packageAmmo][newid] = ammo;
- format (string, sizeof(string), "%s gave %s a %s and %d Ammo package.", ReturnName(playerid, 1), ReturnName(playerb, 1), ReturnWeaponName(wepid), ammo);
- adminWarn(4, string);
- format(string, sizeof(string), "[Package] You've received %s and %d Ammo from Admin %s. ", ReturnWeaponName(wepid), ammo, ReturnName(playerid, 1));
- SendClientMessage(playerb, COLOR_DARKGREEN, string);
- return true;
- }
- CMD:agivedrug(playerid, params[])
- {
- if (PlayerData[playerid][pAdmin] < 4)
- return false;
- new string[150], playerb, package, type, Float:quantity, strength;
- if (sscanf(params, "uddfd", playerb, package, type, quantity, strength))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /agivedrug [playerid/PartofName] [package_type] [drug_type] [quantity] [strength]");
- SendClientMessage(playerid, COLOR_GRAD2, "Drug Types: 0. Marijuana, 1. Crack, 2. Cocaine, 3. Ecstasy, 4. LSD, 5. Meth, 6. PCP");
- SendClientMessage(playerid, COLOR_GRAD1, "Drug Types: 7. Heroin, 8. Aspirin, 9. Haloperidol, 10. Morphine, 11. Xanax, 12. MDMA, 13. Fentanyl, 14. Steroids");
- return true;
- }
- if (!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if (!pLoggedIn[playerid])
- return SendClientMessage(playerid, COLOR_GREY, "You specified a player that isn't logged in.");
- if (type > 13 || type < 0)
- return SendClientMessage(playerid, COLOR_ADM, "You specified an invalid package type. (0-13)");
- if (type > 14 || type < 0)
- return SendClientMessage(playerid, COLOR_ADM, "You specified an invalid drug type. (0-14)");
- if (quantity <= 0)
- return SendClientMessage(playerid, COLOR_ADM, "Quantity must be greater than 0.0.");
- if (strength < 50)
- return SendClientMessage(playerid, COLOR_ADM, "Strength must be 50 or greater.");
- if (CountPackages(playerb) == 10)
- return SendClientMessage(playerid, COLOR_ADM, "That player doesn't have an available package slot.");
- GiveDrugPackage(playerb, package, type, quantity, strength);
- WriteLog("drug_logs/admin_logs/givedrug.txt", "[%s] %s gave %s %.1f %s of %s in a %s (Strength: %d).", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), quantity, (IsPill(type) == 1) ? ("Pills") : ("grams"), ReturnDrugsName(type), GetPackageType(package), strength);
- format (string, sizeof(string), "%s gave %s %.1f %s of %s in a %s (Strength: %d).", ReturnName(playerid, 1), ReturnName(playerb, 1), quantity, (IsPill(type) == 1) ? ("Pills") : ("grams"), ReturnDrugsName(type), GetPackageType(package), strength);
- adminWarn(4, string);
- return 1;
- }
- CMD:map(playerid, params[])
- {
- if(PlayerData[playerid][pAdmin] < 4)
- return 0;
- if(PlayerEditingObject[playerid] || PlayerAddingObject[playerid])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You're already editing or adding an object.");
- new
- id = -1, model, str[128];
- if(sscanf(params, "i", model))
- {
- SendClientMessage(playerid, COLOR_ADM, "SERVER: /makeobject [model ID]");
- SendClientMessage(playerid, COLOR_WHITE, "These are permanent objects. !! FIND THE CORRECT MODEL ID !!");
- return 1;
- }
- if(model > 19999)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: There aren't objects past Model 19,999.");
- for(new i = 0; i < sizeof ObjectData; i++) if(!ObjectData[i][ObjectDBID])
- id = i;
- if(id == -1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: The server has the maximum possible map objects.");
- new
- Float:x,
- Float:y,
- Float:z;
- GetPlayerPos(playerid, x, y, z);
- PlayerAddingObject[playerid] = 1;
- PlayerAddingModel[playerid] = model;
- printf("[DEBUG] Admin %s spawned Object Model ID %i with /makeobject.", ReturnName(playerid), model);
- format(str, sizeof(str), "* You're editing an object (Model %i). Only you can see it.", model);
- SendClientMessage(playerid, COLOR_GOLD, str);
- PlayerSpawnObject[playerid] = CreateDynamicObject(model, x, y, z, 0.0, 0.0, 0.0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), playerid);
- EditDynamicObject(playerid, PlayerSpawnObject[playerid]);
- return 1;
- }
- CMD:mapedit(playerid, params[])
- {
- if(PlayerData[playerid][pAdmin] < 4)
- return 0;
-
- new
- id, str[30], b_str[30], query[128];
-
- if(sscanf(params, "is[30]S()[30]", id, str, b_str))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: /mapedit [id] [position, openposition, type, faction]");
-
- if(!ObjectData[id][ObjectDBID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid object.");
-
- if(!strcmp(str, "position"))
- {
- if(PlayerEditingObject[playerid] || PlayerEditingOpen[playerid] || PlayerAddingObject[playerid])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You're already editing.");
-
- PlayerEditingObject[playerid] = 1;
- PlayerEditingID[playerid] = id;
-
- EditDynamicObject(playerid, ObjectData[id][Object]);
-
- format(str, sizeof(str), "* You're now editing Object %i. (Model: %i)", id, ObjectData[id][Object_Model]);
- SendClientMessage(playerid, COLOR_GOLD, str);
- }
- else if(!strcmp(str, "openposition"))
- {
- if(ObjectData[id][Object_Type] != GATE_MAP_TYPE)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: That ID is not a gate.");
-
- if(ObjectData[id][Object_GateOpen])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You need to close the gate first.");
-
- if(PlayerEditingObject[playerid] || PlayerEditingOpen[playerid] || PlayerAddingObject[playerid])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You're already editing.");
-
- PlayerEditingOpen[playerid] = 1;
- PlayerEditingID[playerid] = id;
-
- EditDynamicObject(playerid, ObjectData[id][Object]);
-
- format(str, sizeof(str), "* You're now editing Object %i's open gate position. (Model: %i)", id, ObjectData[id][Object_Model]);
- SendClientMessage(playerid, COLOR_GOLD, str);
- }
- else if(!strcmp(str, "type"))
- {
- new
- type;
-
- if(sscanf(b_str, "i", type))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /mapedit [id] [type] type [0 - Standalone, 1 - Gate]");
-
- if(type > 1 || type < 0)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Type.");
-
- if(type == 0 && ObjectData[id][Object_Type] == 1 && ObjectData[id][Object_GateOpen])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: Close the objects gate first before switching.");
-
- ObjectData[id][Object_Type] = type;
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE objects SET Type = %i WHERE id = %i", type, ObjectData[id][ObjectDBID]);
- mysql_pquery(m_Handle, query);
-
- SendClientMessage(playerid, COLOR_GOLD, "* You successfully edited the objects type.");
- }
- else if(!strcmp(str, "faction"))
- {
- new
- faction;
-
- if(sscanf(b_str, "i", faction))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /mapedit [id] [faction] faction id");
-
- if(!FactionData[faction][factionID] || faction > MAX_FACTIONS)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You specified an invalid faction.");
-
- ObjectData[id][Object_Faction] = faction;
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE objects SET Faction = %i WHERE id = %i", faction, ObjectData[id][ObjectDBID]);
- mysql_pquery(m_Handle, query);
-
- SendClientMessage(playerid, COLOR_GOLD, "* You successfully edited the objects faction.");
- }
- return 1;
- }
- CMD:mapinfo(playerid, params[])
- {
- if(PlayerData[playerid][pAdmin] < 4)
- return 0;
-
- new id, str[128];
-
- if(sscanf(params, "i", id))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: /mapinfo [id]");
-
- if(!ObjectData[id][ObjectDBID])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You specified an invalid Map ID.");
-
- format(str, sizeof(str), "DBID:[%i] Model:[%i] Type:[%s] Faction:[%i]", ObjectData[id][ObjectDBID], ObjectData[id][Object_Model], (ObjectData[id][Object_Type] != 1) ? ("Default") : ("Garage"), ObjectData[id][Object_Faction]);
- SendClientMessage(playerid, COLOR_GOLD, str);
-
- format(str, sizeof(str), "World:[%i] Interior:[%i]", ObjectData[id][Object_World], ObjectData[id][Object_Interior]);
- SendClientMessage(playerid, COLOR_GOLD, str);
- return 1;
- }
- CMD:mapdelete(playerid, params[])
- {
- if(PlayerData[playerid][pAdmin] < 4)
- return 0;
-
- new id, str[128];
-
- if(sscanf(params, "i", id))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: /mapdelete [id]");
-
- if(!ObjectData[id][ObjectDBID])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You specified an invalid Map ID.");
-
- format(str, sizeof(str), "Are you sure you want to delete Map ID %i?", id);
- ConfirmDialog(playerid, "Confirmation", str, "OnMapDelete", id);
-
- return 1;
- }
- // Level 5
- CMD:sethelper(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return false;
- if(PlayerData[playerid][pAdmin] < 5) return false;
- new playerb, str[128];
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /sethelper [playerid/PartofName]");
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerid])
- return SendClientMessage(playerid, COLOR_GREY, "You specified a player that isn't logged in.");
-
- if (!PlayerData[playerb][pHelper])
- {
- format(str, sizeof(str), "AdmCmd: %s set %s to a Helper.", ReturnName(playerid, 1), ReturnName(playerb, 1));
- SendAdminMessage(COLOR_ORANGE, str);
-
- PlayerData[playerb][pHelper] = true;
-
- GameTextForPlayer(playerb, "~w~Account ~g~Upgraded", 3000, 1);
- WriteLog("admin_logs/samplogs/sethelper.txt", "[%s] %s gave %s Helper.", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1));
- }
- else
- {
- format(str, sizeof(str), "AdmCmd: %s removed %s's Helper.", ReturnName(playerid, 1), ReturnName(playerb, 1));
- SendAdminMessage(COLOR_ORANGE, str);
-
- PlayerData[playerb][pHelper] = false;
- WriteLog("admin_logs/samplogs/sethelper.txt", "[%s] %s removed %s's Helper.", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1));
- }
- return true;
- }
- CMD:setdonator(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return true;
- if(PlayerData[playerid][pAdmin] < 5) return false;
-
- new playerb, donator, levelString[45], string[128];
-
- if(sscanf(params, "ui", playerb, donator)) return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setdonator [playerid/PartofName] [0-4]");
- if(!IsPlayerConnected(playerb)) return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb]) return SendClientMessage(playerid, COLOR_GREY, "You have specified a player that isn't logged in.");
- if(donator < 0 || donator > 4) return SendClientMessage(playerid, COLOR_ADM, "Invalid donator level.");
-
- PlayerData[playerb][pDonator] = donator;
- SaveSQLInt(PlayerData[playerb][pSQLID], "players", "Donator", PlayerData[playerb][pDonator]);
- switch(donator) {
- case 1: levelString = "bronze donator";
- case 2: levelString = "silver donator";
- case 3: levelString = "gold donator";
- case 4: levelString = "platinum donator";
- }
-
- if(donator == 0) {
- format(string, sizeof(string), "SERVER: You took away %s's donator level", ReturnName(playerb, 1));
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- else {
- format(string, sizeof(string), "SERVER: You upgraded %s to a %s.", ReturnName(playerb, 1), levelString);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- WriteLog("admin_logs/samplogs/setdonator.txt", "[%s] %s made %s a level %d donator", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), donator);
- return true;
- }
- CMD:callpaycheck(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 5)return false;
-
- new string[128], confirm[40];
-
- if(sscanf(params, "s[40]", confirm)){
- SendClientMessage(playerid, COLOR_ADM, "Warning: This command calls the paycheck function before the hour. Type /callpaycheck yes to confirm.");
- SendClientMessage(playerid, COLOR_ADM, "This command cannot be undone and is logged.");
- return true;
- }
-
- if(strmatch(confirm, "yes")){
- CallPaycheck();
-
- format(string, sizeof(string), "%s called a paycheck before the hour.", ReturnName(playerid, 1));
- adminWarn(4, string);
-
- WriteLog("admin_logs/samplogs/callpaycheck_log.txt", "[%s] %s called a paycheck", ReturnDate(), ReturnName(playerid, 1));
- }
- return true;
- }
- /*CMD:ac(playerid, params[])
- {
- if(PlayerData[playerid][pAdmin] < 5)
- return 0;
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "WARNING: You're about to disable the anti cheat. Proceed with /ac DISABLE if you're sure. /ac ENABLE later.");
- if(!strcmp(params, "DISABLE"))
- {
- WEAPON_ANTI_CHEAT = 0;
- AMMO_ANTI_CHEAT = 0;
-
- SendClientMessage(playerid, COLOR_ADM, "WARNING: You just disabled the anti cheat.");
-
- printf("[WARNING] %s(ID: %i) just DISABLED the anti cheat.", ReturnName(playerid), playerid);
- }
- else if(!strcmp(params, "ENABLE"))
- {
- WEAPON_ANTI_CHEAT = 1;
- AMMO_ANTI_CHEAT = 1;
-
- SendClientMessage(playerid, COLOR_ADM, "WARNING: You just enabled the anti cheat.");
-
- printf("[WARNING] %s(ID: %i) just ENABLED the anti cheat.", ReturnName(playerid), playerid);
- }
- return 1;
- }*/
- CMD:restartserver(playerid, params[])
- {
- if(PlayerData[playerid][pAdmin] < 5)
- return 0;
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "WARNING: Are you sure you want to restart the server? This will backup everything up beforehand.");
-
- new str[128];
-
- if(!strcmp(params, "YES", true))
- {
- format(str, sizeof(str), "AdmCmd: %s is restarting the server in the next 5 Seconds!", ReturnName(playerid));
- SendAdminMessage(COLOR_ADM, str);
-
- foreach(new i : Player)
- {
- if(pLoggedIn[i])
- {
- SavePlayer(i);
-
- }
- }
- SaveProperties();
- SaveFactions();
- SaveBusinesses();
- SaveTolls();
- SavePaynSprays();
- SaveDoors();
- SavePropertyGarages();
-
- foreach(new i : Player)
- {
- GameTextForPlayer(playerid, "~r~THE SERVER IS RESTARTING~n~~w~RELOG WITHIN THE NEXT 30 SECONDS", 5000, 1);
- if(i == playerid) continue;
- KickEx(i);
- }
-
- SetTimer("RestartServer", 5000, false);
- }
- else return 0;
- return 1;
- }
- CMD:setname(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pAdmin])return false;
-
- new playerb, Name[32], string[128], query[128];
-
- if(sscanf(params, "us[32]", playerb, Name))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setname [playerid/PartofName] [ Firstname_Lastname ]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified a player that isn't logged in.");
-
- format(string, sizeof(string), "%s changed %s's name to %s", ReturnName(playerid, 1), ReturnName(playerb, 1), Name);
- adminWarn(1, string);
-
- format(string, sizeof(string), "SERVER: You were name changed to %s", Name);
- SendClientMessage(playerb, COLOR_YELLOW, string);
-
- format(string, sizeof(string), "Namechanged to %s (%s) by %s", Name, ReturnName(playerb), ReturnName(playerid));
- LogPlayerAction(playerb, string);
-
- WriteLog("admin_logs/samplogs/setname_log.txt", "[%s] %s set %s's name to %s", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), Name);
- SetPlayerName(playerb, Name);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET `Name` = '%e' WHERE id = %i", Name, PlayerData[playerb][pSQLID]);
- mysql_pquery(m_Handle, query);
- return true;
- }
- CMD:acceptnc(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new playerb;
- new query[300];
-
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE: /acceptnc [playerid/PartofName]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified a player that isn't logged in.");
-
- if(GetPVarInt(playerb, "RequestedNC") < 1)
- return SendClientMessage(playerid, COLOR_ADM, "Player hasn't requested a namechange.");
-
- new theirname[MAX_PLAYER_NAME + 1];
- GetPVarString(playerb, "RequestedNCName", theirname, MAX_PLAYER_NAME + 1);
-
- new string[128];
-
- format(string, sizeof(string), "%s accepted %s's namechange to: %s", ReturnName(playerid), ReturnName(playerb), theirname);
- adminWarn(1, string);
-
- Message(playerb, COLOR_ADM, "Admin %s accepted your namechange to %s.", ReturnName(playerid), theirname);
-
- DeletePVar(playerb, "RequestedNC");
- DeletePVar(playerb, "RequestedNCName");
- DeletePVar(playerb, "RequestedNCTime");
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET `Name` = '%e' WHERE id = %i", theirname, PlayerData[playerb][pSQLID]);
- mysql_tquery(m_Handle, query);
-
- Message(playerb, COLOR_ADM, "You're now known as %s. (Previously %s)", theirname, ReturnName(playerb));
- SetPlayerName(playerb, theirname);
- return 1;
- }
- CMD:denync(playerid, params[])
- {
- if(!PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new playerb;
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE: /acceptnc [playerid/PartofName]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified a player that isn't logged in.");
-
- if(GetPVarInt(playerb, "RequestedNC") < 1)
- return SendClientMessage(playerid, COLOR_ADM, "Player hasn't requested a namechange.");
-
- new theirname[MAX_PLAYER_NAME + 1];
- GetPVarString(playerb, "RequestedNCName", theirname, MAX_PLAYER_NAME + 1);
-
- new string[128];
-
- format(string, sizeof(string), "%s denied %s's namechange to: %s", ReturnName(playerid), ReturnName(playerb), theirname);
- adminWarn(1, string);
-
- Message(playerb, COLOR_ADM, "Admin %s denied your namechange to %s.", ReturnName(playerid), theirname);
-
- DeletePVar(playerb, "RequestedNC");
- DeletePVar(playerb, "RequestedNCName");
- DeletePVar(playerb, "RequestedNCTime");
- return 1;
- }
- CMD:givemoney(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pAdmin] < 5)return false;
-
- new playerb, give_amount, string[128];
-
- if(sscanf(params, "ud", playerb, give_amount))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /givemoney [playerid/PartofName] [amount]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified a player that isn't logged in.");
-
- GiveMoney(playerb, give_amount);
- if(PlayerData[playerid][pAdmin] <= 5)
- {
- format(string, sizeof(string), "%s gave $%s to %s", ReturnName(playerid, 1), MoneyFormat(give_amount), ReturnName(playerb, 1));
- adminWarn(4, string);
- WriteLog("admin_logs/samplogs/givemoney_log.txt", "[%s] %s gave $%s to %s", ReturnDate(), ReturnName(playerid, 1), MoneyFormat(give_amount), ReturnName(playerb, 1));
- }
- return true;
- }
- //Graffiti Commands
- CMD:sprayperms(playerid, params[])
- {
- new playerb, string[128];
-
- if(!PlayerData[playerid][pAdmin] && !PlayerData[playerid][pHelper])
- return SendClientMessage(playerid, COLOR_ADM, "This is restricted for administrators right now.");
-
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /sprayperms [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
-
- if(!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified a player that isn't logged in.");
-
- GivePlayerGun(playerb, 41, 99999, WEAPON_SERVER_GIVEN);
-
- if(PlayerData[playerid][pHelper] && !PlayerData[playerid][pAdmin])
- {
- format(string, sizeof(string), "Helper %s gave %s spraycan permission", ReturnName(playerid), ReturnName(playerb));
- adminWarn(1, string);
- }
-
- format(string, sizeof(string), "[ ! ] %s granted you spray permission, /graffiti.", ReturnName(playerid, 1));
- SendClientMessage(playerb, COLOR_YELLOW, string);
-
- Message(playerid, COLOR_YELLOW, "[ ! ] You gave %s spray permission.", ReturnName(playerb));
-
- sprayPermission[playerb] = true;
- WriteLog("Graffiti/spray_perms.txt", "[%s] %s granted %s", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1));
- return true;
- }
- CMD:graffiti(playerid, params[])
- {
- if (PlayerData[playerid][pBrutallyWounded])
- return SendClientMessage(playerid, COLOR_ADM, "You're dead right now.");
-
- if(sprayPermission[playerid] == false)
- return SendClientMessage(playerid, COLOR_YELLOW, "You don't have graffiti permissions.");
- ShowPlayerDialog(playerid, DIALOG_GRAFFITI_MENU, DIALOG_STYLE_LIST, "Main Menu:", "Custom Graffiti Text\nChoose Your Font", "Select", "<<");
- return true;
- }
- // Helper Commands
- CMD:helperhelp(playerid, params[])
- {
- if(!pLoggedIn[playerid])return false;
- if (!PlayerData[playerid][pHelper] && !PlayerData[playerid][pAdmin])return false;
-
- SendClientMessage(playerid, COLOR_WHITE, "[Helper]: /h(elper) (helper chat), /sc (staff chat), /helplist, /rsd, /helperduty, /playercheck.");
- SendClientMessage(playerid, COLOR_WHITE, "[Helper]: /level, /kick, /setint, /setworld, /sendtospawn.");
- return true;
- }
- CMD:ht(playerid, params[]) return cmd_helper(playerid, params);
- CMD:hc(playerid, params[]) return cmd_helper(playerid, params);
- CMD:helper(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return true;
- if (!PlayerData[playerid][pHelper] && PlayerData[playerid][pAdmin] < 4) return UnAuthMessage(playerid);
- if(isnull(params)) return SendClientMessage(playerid, COLOR_ADM, "USAGE: /helper [text]");
-
- SendHelperMessage(COLOR_BLUE, "** %s: %s", ReturnName(playerid, 1), params);
- WriteLog("helper_logs/helperchat_log.txt", "[%s] %s: %s", ReturnDate(), ReturnName(playerid, 1), params);
- return true;
- }
- CMD:sc(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return true;
- if (!PlayerData[playerid][pHelper] && !PlayerData[playerid][pAdmin]) return UnAuthMessage(playerid);
- if(isnull(params)) return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /sc [text]");
-
- SendStaffMessage(COLOR_ORANGE, "** %s: %s", ReturnName(playerid, 1), params);
- WriteLog("helper_logs/helperchat_log.txt", "[%s] %s: %s", ReturnDate(), ReturnName(playerid, 1), params);
- return true;
- }
- CMD:hduty(playerid, params[]) return cmd_helperduty(playerid, params);
- CMD:helperduty(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if (!PlayerData[playerid][pHelper] && !PlayerData[playerid][pAdmin]) return UnAuthMessage(playerid);
-
- if (!PlayerData[playerid][pHelperDuty]){
- SendStaffMessage(COLOR_HELPER, "[HELPER]{FF9900} %s is now on duty!", ReturnName(playerid, 1));
- PlayerData[playerid][pHelperDuty] = true;
-
- if(!PlayerData[playerid][pAdminDuty])
- SetPlayerColor(playerid, COLOR_HELPER);
- }
- else{
- SendStaffMessage(COLOR_HELPER, "[HELPER]{FF9900} %s is now off duty!", ReturnName(playerid, 1));
- PlayerData[playerid][pHelperDuty] = false;
-
- if(PlayerData[playerid][pLAWduty])
- SetPlayerColor(playerid, COLOR_COP);
-
- else if (StartedTaxiJob[playerid])
- SetPlayerColor(playerid, COLOR_YELLOW);
-
- else
- SetPlayerColor(playerid, COLOR_WHITE);
- }
- return true;
- }
- CMD:playercheck(playerid, params[])
- {
- if(!PlayerData[playerid][pHelper] && !PlayerData[playerid][pAdmin])
- return 0;
-
- new
- playerb,
- query[256];
-
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /playercheck [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid player.");
-
- if(!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "Wait for them to login.");
-
- if(PlayerData[playerb][pAdmin])
- return SendClientMessage(playerid, COLOR_ADM, "That's an admin.");
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT HWID, IP FROM players WHERE id = %i", PlayerData[playerb][pSQLID]);
- new Cache:cache = mysql_query(m_Handle, query);
-
- new HWID[90];
- cache_get_value_name(0, "HWID", HWID);
-
- new ActiveIP[90];
- cache_get_value_name(0, "IP", ActiveIP);
-
- cache_delete(cache);
-
- SendClientMessage(playerid, COLOR_RED, "WARNING: Incase they're newly registered, their data may not be in the database yet and cause NO results.");
- SendClientMessage(playerid, COLOR_DARKGREEN, "___________________________________");
- Message(playerid, COLOR_ADM, "Player name: [%s]", ReturnName(playerb));
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT id, Name FROM `bans` WHERE `IP` = '%e' AND `HWID` = '%e' OR `HWID` = '%e' OR `IP` = '%e'", ActiveIP, HWID, HWID, ActiveIP);
- mysql_tquery(m_Handle, query, "OnBanCheckEx", "ii", playerid, playerb);
- return 1;
- }
- CMD:level(playerid, params[])
- {
- if(!PlayerData[playerid][pHelper] && !PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new
- level;
-
- if(sscanf(params, "i", level))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /level [level]");
-
- if(level == 0)return SendClientMessage(playerid, COLOR_ADM, "This is an offline level.");
- Message(playerid, COLOR_ADM, "Players that are level %i:", level);
-
- foreach(new i : Player) if(PlayerData[i][pLevel] == level)
- {
- Message(playerid, COLOR_GREY, "%s [ID: %i]", ReturnName(i), i);
- }
-
- return 1;
- }
- //Support Commands
- CMD:helpme(playerid, params[])
- {
- if(isnull(params) || strlen(params) < 3)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: /helpme [text]");
-
- OnSupportRequest(playerid, params);
- return 1;
- }
- CMD:accepthelpme(playerid, params[]) return cmd_rsd(playerid, params);
- CMD:rsd(playerid, params[])
- {
- if (!PlayerData[playerid][pHelperDuty] && !PlayerData[playerid][pAdminDuty])
- return UnAuthMessage(playerid);
-
- new
- id;
-
- if(sscanf(params, "i", id))
- return SendClientMessage(playerid, COLOR_ADM, "USGAE: /rsd [support request id]");
-
- if(id > 99 || !SupportData[id][SupportExists])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid support request.");
-
- foreach(new i : Player) if(PlayerData[i][pHelperDuty] || PlayerData[i][pHelper]) //Admins on support duty;
- {
- if(i == playerid)
- continue;
-
- Message(i, COLOR_HELPER, "[SUPPORT REQUEST]{FF9900} %s accepted request %i by %s", ReturnName(playerid), id, ReturnSQLName(SupportData[id][SupportRequester]));
- }
-
- new
- playerb = INVALID_PLAYER_ID;
-
- foreach(new i : Player) if(PlayerData[i][pSQLID] == SupportData[id][SupportRequester])
- playerb = i;
-
- if(playerb == INVALID_PLAYER_ID)
- Message(playerid, COLOR_BLUE, "** It looks like the requester (%s) has gone offline.", ReturnSQLName(SupportData[id][SupportRequester]));
-
- else
- {
- Message(playerid, COLOR_BLUE, "{FF9900}You accepted %s's (%i) support request.", ReturnName(playerb), playerb);
- Message(playerid, COLOR_WHITE, "%s", SupportData[id][SupportReason]);
-
- Message(playerb, COLOR_GOLD, "{FF9900}%s has responded to your support request, wait until he/she PMs you.", ReturnName(playerid));
- Message(playerb, COLOR_GOLD, "{FF9900}You were the %s player in the queue.", ConvertNumber(id));
- }
-
- ClearSupportRequest(id);
- return 1;
- }
- CMD:helplist(playerid, params[])
- {
- if (!PlayerData[playerid][pHelper] && !PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- new
- bool:exists = false;
-
- for(new i = 1; i < sizeof SupportData; i++) if(SupportData[i][SupportExists])
- {
- exists = true;
-
- if(strlen(SupportData[i][SupportReason]) > 60)
- {
- Message(playerid, COLOR_REPORT, "%s | SID: %i | Pending: %d Minutes | Request: %.60s", ReturnSQLName(SupportData[i][SupportRequester]), i, SecondsToMinute(gettime() - SupportData[i][SupportTime]), SupportData[i][SupportReason]);
- Message(playerid, COLOR_REPORT, "...%s", SupportData[i][SupportReason][60]);
- }
- else Message(playerid, COLOR_REPORT, "%s | SID: %i | Pending: %d Minutes | Request: %s", ReturnSQLName(SupportData[i][SupportRequester]), i, SecondsToMinute(gettime() - SupportData[i][SupportTime]), SupportData[i][SupportReason]);
- }
- if(!exists)
- return SendClientMessage(playerid, COLOR_REPORT, "** There aren't any active support requests.");
- return 1;
- }
- // Account Commands
- CMD:changepassword(playerid, params[])
- {
- if(CanChangePassword[playerid])
- {
- CanChangePassword[playerid] = 0;
-
- new
- largeString[800];
-
- strcat(largeString, "{F81414}YOU'RE ABOUT TO CHANGE YOUR PASSWORD!\n");
-
- strcat(largeString, "{FFFFFF}Here are a few tips to keep your account password safe and secure:\n\n");
- strcat(largeString, "\tUse a mix of letters, numbers, and symbols in your password.\n");
- strcat(largeString, "\tUse a unique password for each of your important accounts.\n");
- strcat(largeString, "\tDon't use personal information or common words as a password.\n");
- strcat(largeString, "\tDon't use the same password as your forum.baseroleplay.com forum account.\n\n");
-
- strcat(largeString, "Remember that San Andreas '92 staff will NEVER ask you for your account information.");
- ShowPlayerDialog(playerid, DIALOG_PASSWORD_CHANGE, DIALOG_STYLE_PASSWORD, "Change Your Password", largeString, "Select", "Cancel");
- return 1;
- }
- else
- {
- new Query[128];
-
- mysql_format(m_Handle, Query, sizeof(Query), "SELECT RegisterIP, IP, HWID, Password FROM players WHERE id = %i", PlayerData[playerid][pSQLID]);
- new Cache:cache = mysql_query(m_Handle, Query);
-
- new IP[60], RegisterIP[60], HWID[90];
- new largeString[600];
-
- cache_get_value_name(0, "IP", IP, 60);
- cache_get_value_name(0, "RegisterIP", RegisterIP, 60);
-
- cache_get_value_name(0, "HWID", HWID, 90);
- cache_delete(cache);
-
- if(strcmp(ReturnGPCI(playerid), HWID, false))
- {
- strcat(largeString, "{F81414}AN ERROR OCCURRED!\n\n");
-
- strcat(largeString, "{FFFFFF}We were unable to verify a crucical step in our security check before allowing you...\n");
- strcat(largeString, "to change your accounts password. This measurement is in place to avoid breaches to your account and keep it secure.\n\n");
- strcat(largeString, "Please visit our forums at forum.baseroleplay.com to make a request and allow a password change.");
-
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_MSGBOX, "Change Your Password", largeString, "Okay", "");
- return 1;
- }
-
- if(strcmp(ReturnIP(playerid), RegisterIP, false))
- {
- strcat(largeString, "{F81414}SECURITY WORD REQUIRED!\n\n");
-
- strcat(largeString, "{FFFFFF}It looks like there was a change in your connection to the server. This requires you input your accounts...\n");
- strcat(largeString, "secret word before we can let you change your password. This was the word you set when you first registered.\n");
-
- ShowPlayerDialog(playerid, DIALOG_PASSWORD_SECURITY_WORD, DIALOG_STYLE_PASSWORD, "Change Your Password", largeString, "Select", "Cancel");
- return 1;
- }
-
- if(strcmp(ReturnIP(playerid), IP, false))
- {
- strcat(largeString, "{F81414}SECURITY WORD REQUIRED!\n\n");
-
- strcat(largeString, "{FFFFFF}It looks like there was a change in your connection to the server. This requires you input your accounts...\n");
- strcat(largeString, "secret word before we can let you change your password. This was the word you set when you first registered.\n");
-
- ShowPlayerDialog(playerid, DIALOG_PASSWORD_SECURITY_WORD, DIALOG_STYLE_PASSWORD, "Change Your Password", largeString, "Select", "Cancel");
- return 1;
- }
-
- strcat(largeString, "{F81414}YOU'RE ABOUT TO CHANGE YOUR PASSWORD!\n");
-
- strcat(largeString, "{FFFFFF}Here are a few tips to keep your account password safe and secure:\n\n");
- strcat(largeString, "\tUse a mix of letters, numbers, and symbols in your password.\n");
- strcat(largeString, "\tUse a unique password for each of your important accounts.\n");
- strcat(largeString, "\tDon't use personal information or common words as a password.\n");
- strcat(largeString, "\tDon't use the same password as your forum.baseroleplay.com forum account.\n");
-
- strcat(largeString, "Remember that San Andreas '92 staff will NEVER ask you for your account information.");
- ShowPlayerDialog(playerid, DIALOG_PASSWORD_CHANGE, DIALOG_STYLE_PASSWORD, "Change Your Password", largeString, "Select", "Cancel");
- }
- return 1;
- }
- /*CMD:review(playerid, params[]) {
- if(!pLoggedIn[playerid]) return false;
- if(!PlayerData[playerid][pAdmin]) return false;
- new playerb;
- if (sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /review [playerid/partOfName]");
- if (playerb == INVALID_PLAYER_ID || IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_GREY, "65535 is an invalid playerid.");
- if (!IsPlayerAwaitingRegistration(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: This player is not awaiting registration!");
- if (BeingReviewed[playerb] > -1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: This player is already being reviewed!");
- adminWarn(1, sprintf("%s (id: %d) is reviewing %s (id: %d)'s registration quiz!", ReturnName(playerid, 1), playerid, ReturnName(playerb, 1), playerb));
- BeingReviewed[playerb] = playerid;
- ShowPlayerDialog(playerid, DIALOG_REG5, DIALOG_STYLE_MSGBOX,
- sprintf("%s (%d)'s Registration Quiz", ReturnName(playerb, 1), playerb),
- sprintf("{FF6347}%s:\n{FFFFFF}%s\n\n\
- {FF6347}%s:\n{FFFFFF}%s\n\n\
- {FF6347}%s:\n{FFFFFF}%s\n", PlayerRegQuestion[playerb][playerRegQuestion][0], PlayerRegQuestion[playerb][playerRegAnswer][0], PlayerRegQuestion[playerb][playerRegQuestion][1], PlayerRegQuestion[playerb][playerRegAnswer][1], PlayerRegQuestion[playerb][playerRegQuestion][2], PlayerRegQuestion[playerb][playerRegAnswer][2]),
- "Accept", "Deny");
- return 1;
- }*/
- CMD:adminhelp(playerid, params[]) return cmd_ahelp(playerid, params);
- CMD:ahelp(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return false;
- if(!PlayerData[playerid][pAdmin]) return false;
-
- if (PlayerData[playerid][pAdmin] >= 1) {
- SendClientMessage(playerid, COLOR_DARKGREEN, "[1:][General]:{FFFFFF} /aduty, /reports, /ar (accept), /dr (disregard), /a (achat), /sc (staff chat), /aooc, /togdeath, /togadmwarn");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[1:][Lookup]:{FFFFFF} /toga, /spectate, /awc, /watchoff, /stats (id), /afks, /masks, /checktime, /lastincar, /checkhp, /dropinfo,");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[1:][Lookup]:{FFFFFF} /logc, /adminp, /adminsys, /as, /ipsys, /bansys, /arecord, /checkmask, /findweapon, /checkvehdrugs, /checkvehpackages.");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[1:][Lookup]:{FFFFFF} /showdrugs, /arealookup, /nearme, /watchdamages, /vlog, /listvehicles, /log, /desync.");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[1:][Action]:{FFFFFF} /kick, /(offline)ban, /(offline)ajail, /release, /respawn, /slap, /slapcar, /mute, /freeze, /thaw,");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[1:][Action]:{FFFFFF} /revive, /sethealth, /setarmour, /setint, /setworld, /respawncar (aduty), /respawncars (nearby), /clearguns,");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[1:][Action]:{FFFFFF} /adminmsg, /afrisk, /apark, /unban, /setname, /acceptnc, /desync, /getincar.");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[1:][Vehicles]:{FFFFFF} /setfuel, /spawnedtrailers, /aunrentrental, /aunrenttrucker, /setcarparams, /repair");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[1:][Teleport]:{FFFFFF} /goto, /gethere, /ptp, /sendplayer, /mark, /p2biz, /p2house, /interiors.");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[1:][Other]:{FFFFFF} /adminnote, /fly, /jetpack, /ninjamove, /forumname, /toggleconnects, /clearmychat, /setskin.");
- SendClientMessage(playerid, COLOR_DARKGREEN, " ");
- }
-
- if (PlayerData[playerid][pAdmin] >= 2) {
- SendClientMessage(playerid, COLOR_DARKGREEN, "[2:][General]:{FFFFFF} /noooc, /set, /backup, /clearpackages, /clearvehpackages, /cleardrugs, /checkfreq.");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[2:][Vehicle]:{FFFFFF} /car, /despawncar, /getcar, /putplayerincar");
- SendClientMessage(playerid, COLOR_DARKGREEN, " ");
- }
-
- if (PlayerData[playerid][pAdmin] >= 3) {
- SendClientMessage(playerid, COLOR_DARKGREEN, "[3:][General]:{FFFFFF} /propertyinfo, /gotopoint, /getname, /setjob, /setsidejob, /near, /setfightstyle.");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[3:][Teleport]:{FFFFFF} /x, /y, /zc.");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[3:][Vehicle]:{FFFFFF} /setcar, /setcarlife, /setplate");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[3:][Faction]:{FFFFFF} /setfaction.");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[3:][Other]:{FFFFFF} /custommsg");
- SendClientMessage(playerid, COLOR_DARKGREEN, " ");
- }
- if (PlayerData[playerid][pAdmin] >= 4) {
- SendClientMessage(playerid, COLOR_DARKGREEN, "[4:][General]:{FFFFFF} /setstats, /asellproperty, /asellbusiness, /givepackage, /agivedrug. ");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[4:][Create]:{FFFFFF} /makeproperty, /makefaction, /makebusiness, /maketolls, /makepns, /makerental, /makedoor,");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[4:][Create]:{FFFFFF} /makepropgarage, /xmrcategory, /makexmr, /makeentrance.");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[4:][Editing]:{FFFFFF} /editproperty, /editfaction, /editbusiness, /businessname, /editpns, /pnsname, /doorname,");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[4:][Editing]:{FFFFFF} /editdoor, /givegun, /editpropgarage, /editxmrcat, /editxmrstation, /edittolls, /editentrance.");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[4:][Vehicle]:{FFFFFF} /despawnacars, /setfactioncar, /v faction (acars), /vehicleinfo, /refreshcar.");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[4:][Other]:{FFFFFF} /map, /mapedit, /mapinfo, /mapdelete, /fixtruckers, /la.");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[4:][Warehouse]:{FFFFFF} /listorders, /listcrates, /editordertime, /editproducts");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[4:][Warehouse]:{FFFFFF} /destroycrate, /gotocrate");
- SendClientMessage(playerid, COLOR_DARKGREEN, " ");
-
- }
-
- if (PlayerData[playerid][pAdmin] >= 5) {
- SendClientMessage(playerid, COLOR_DARKGREEN, "[5:][General]:{FFFFFF} /setadmin, /sethelper, /setdonator, /givemoney, /callpaycheck.");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[5:][Other]:{FFFFFF} /restartserver, /toggleweaponorder, /togdoubleexp.");
- }
- if (PlayerData[playerid][pAdmin] >= 6) {
- SendClientMessage(playerid, COLOR_DARKGREEN, "[6:][Other]:{FFFFFF} /kanye.");
- SendClientMessage(playerid, COLOR_DARKGREEN, "[6:][Note]:{FFFFFF} Admin Level 6 is the same as 5. However, it appears hidden in /admins. ;)");
- }
- SendClientMessage(playerid, COLOR_DARKGREEN, "___________________________________________");
- return true;
- }
- CMD:toggleweaponorder(playerid, params[]) {
- if(!pLoggedIn[playerid])
- return false;
- if(PlayerData[playerid][pAdmin] < 5)
- return UnAuthMessage(playerid);
- WEAPON_ORDER_DISABLED = (WEAPON_ORDER_DISABLED ? (WEAPON_ORDER_DISABLED = false) : (WEAPON_ORDER_DISABLED = true));
- adminWarn(1, sprintf("%s toggled weapon ordering %s.", ReturnName(playerid, 1), (WEAPON_ORDER_DISABLED ? "off" : "on")));
- return 1;
- }
- CMD:help(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_DARKGREEN, "______________________www.sols-lsb.com______________________");
- SendClientMessage(playerid, COLOR_GRAD1, "[ACCOUNT] /admins, /helpers, /report, /helpme, /stats, /levelup, /upgrade, /setstyle, /setspawn, /requestnc");
- SendClientMessage(playerid, COLOR_GRAD2, "[EMOTES] /me, /ame, /do, /my, /amy, /s(hout), /low, /t, /pm /nopm");
- SendClientMessage(playerid, COLOR_GRAD1, "[GENERAL] /enter, /exit, /rcp, /fixr, /isafk, /time, /stime, /factions, /factionon [id], /licenseexam");
- SendClientMessage(playerid, COLOR_GRAD2, "[GENERAL] /mask, /weapons, /leavegun, /grabgun, /dropgun, /damages, /frisk, /friskapprove, /id");
- SendClientMessage(playerid, COLOR_GRAD1, "[GENERAL] /anims, /expcount, /licenses, /acceptdeath, /respawnme, /blindfold, /buy, /opentoll");
- SendClientMessage(playerid, COLOR_GRAD2, "[GENERAL] /autolow, /note, /colorlist, /opentoll, /weapon, /boombox, /eat, /setstation");
- SendClientMessage(playerid, COLOR_GRAD1, "[GENERAL] /fines, /payfine, /smokecig, /passcig, /givecig, /usedrink, /givedrink, /tognick.");
- SendClientMessage(playerid, COLOR_GRAD2, "[GENERAL] /coin, /dice, /walk, /oldcp, /toghud, /passgun");
- SendClientMessage(playerid, COLOR_GRAD1, "[FINANCIAL] /deposit, /withdraw, /balance, /savings, /pay");
- SendClientMessage(playerid, COLOR_GRAD2, "[PHONE] /call, /pickup, /hangup, /contacts, /loudspeaker");
- SendClientMessage(playerid, COLOR_GRAD1, "[HELP] /vehiclehelp, /househelp, /businesshelp, /drughelp, /jobhelp, /joblist, /ammunationhelp, /factionhelp");
- if(PlayerData[playerid][pDonator]) SendClientMessage(playerid, COLOR_GRAD2, "[DONATOR] /setstyle");
- if(PlayerData[playerid][pHelper]) SendClientMessage(playerid, COLOR_GRAD2, "[HELPER] /helperhelp");
- SendClientMessage(playerid, COLOR_DARKGREEN, "______________________________________________");
- return 1;
- }
- CMD:vehiclehelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_DARKGREEN, "______________________________________________");
- SendClientMessage(playerid, COLOR_GRAD1, "** VEHICLE ** /v(ehicle), /lock, /unimpound, /carwhisper (/cw), /cb /eject, /lights, /engine");
- SendClientMessage(playerid, COLOR_GRAD2, "** VEHICLE ** /(uns)cramble, /rollwindow");
- SendClientMessage(playerid, COLOR_GRAD1, "** RENTABLE ** /rentvehicle, /unrentvehicle, /renttruck, /unrenttruck.");
- SendClientMessage(playerid, COLOR_GRAD2, "** WEAPONS ** /check, /place, /takegun");
- SendClientMessage(playerid, COLOR_GRAD1, "** WEAPON PACKAGES ** /vehpackages, /putweapon (/pw), /putallweapons (/paw), /takeweapon (/tw), /takeallweapons (/taw)");
- SendClientMessage(playerid, COLOR_GRAD2, "** DRUGS ** /vehdrugs, /putdrug (/pd), /putalldrugs (/pad), /takedrug (/td), /takealldrugs (/tad) ");
- SendClientMessage(playerid, COLOR_DARKGREEN, "______________________________________________");
- return 1;
- }
- CMD:househelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_DARKGREEN, "______________________________________________");
- SendClientMessage(playerid, COLOR_GRAD1, "** HOUSE ** /buyhouse, /sellhouse, /lock, /myhouse, /houseupgrade, /houseitems");
- SendClientMessage(playerid, COLOR_GRAD2, "** FURNITURE ** /furniture, /grantbuild, /removebuild");
- SendClientMessage(playerid, COLOR_GRAD1, "** WEAPONS ** /check, /place, /takegun, /cmdspot");
- SendClientMessage(playerid, COLOR_GRAD2, "** DRUGS ** /propdrugs");
- SendClientMessage(playerid, COLOR_GRAD2, "** RENT ** /setrentable, /setrent, /rentroom");
- SendClientMessage(playerid, COLOR_GRAD1, "** ACTION ** /knock, /ds, /ddo, /heal");
- SendClientMessage(playerid, COLOR_DARKGREEN, "______________________________________________");
- return 1;
- }
- CMD:businesshelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_DARKGREEN, "______________________________________________");
- SendClientMessage(playerid, COLOR_GRAD1, "** OWNER ** /bizinfo, /bizfee, /bizname, /hirelist, /hire, /fire, /bizcashbox");
- SendClientMessage(playerid, COLOR_GRAD2, "** ACTION ** /buybiz, /sellbiz, /doorshout (/ds), /doordo (/ddo)");
- SendClientMessage(playerid, COLOR_DARKGREEN, "______________________________________________");
- return 1;
- }
- CMD:joblist(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_DARKGREEN, "______________________________________________");
- SendClientMessage(playerid, COLOR_GRAD1, "** These are the commands to acquire certain jobs at their locations: **");
- SendClientMessage(playerid, COLOR_GRAD2, "/mechanicjob, /truckerjob, /taxijob");
- SendClientMessage(playerid, COLOR_DARKGREEN, "______________________________________________");
- return 1;
- }
- CMD:ammunationhelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_DARKGREEN, "______________________________________________");
- SendClientMessage(playerid, COLOR_GRAD1, "** You need a weapon's license to acquire weapons from the ammunation. **");
- SendClientMessage(playerid, COLOR_GRAD2, "/buygun, /buyammo");
- SendClientMessage(playerid, COLOR_DARKGREEN, "______________________________________________");
- return 1;
- }
- CMD:drughelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_ADM, "Drug Commands:");
- SendClientMessage(playerid, COLOR_WHITE, "/mydrugs - /givedrug - /dropdrug - /usedrug");
- SendClientMessage(playerid, COLOR_WHITE, "/placedrug (/pd) - /placealldrugs (/pad) - /takedrug (td) - /takealldrugs (/tad)");
- SendClientMessage(playerid, COLOR_WHITE, "/checkdrugs - /transferdrug - /buildpackage - /adjustpackage");
- return 1;
- }
- CMD:factionhelp(playerid, params[])
- {
- if(!pLoggedIn[playerid])
- return true;
- new string[128];
- if(!PlayerData[playerid][pFaction])
- return SendClientMessage(playerid, COLOR_ADM, "->{FFFFFF} /f(action), /togfam, /nofam, /factions, /factionon, /rank, /respawncar, /towcars");
- format(string, sizeof(string), "%s Commands:", FactionData[PlayerData[playerid][pFaction]][factionName]);
- SendClientMessage(playerid, COLOR_ADM, string);
-
- SendClientMessage(playerid, COLOR_ADM, "->{FFFFFF} /f(action), /togfam, /nofam, /factions, /factionon, /rank, /respawncar, /towcars");
- SendClientMessage(playerid, COLOR_ADM, "->{FFFFFF} /fmembers");
- if(IsIllegalFaction(playerid))
- {
- SendClientMessage(playerid, COLOR_ADM, "->{FFFFFF} /order, /orderproducts, /checkprods");
- }
-
- if(FactionData[PlayerData[playerid][pFaction]][factionCopPerms])
- {
- SendClientMessage(playerid, COLOR_ADM, "->{FFFFFF} /duty, /offduty, /callsign, /uniform, /(un)handcuff, /(m)egaphone, /mdc, /taser, /rubberbullets");
- SendClientMessage(playerid, COLOR_ADM, "->{FFFFFF} /dep(artment), /jail, /roadblock, /disband, /fine, /vfine, /toll, /hq, /swat, /trace, /factiontrace, /apb");
- SendClientMessage(playerid, COLOR_ADM, "->{FFFFFF} /grantpf, /take, /siren, /badge, /carsign, /remove_carsign, /impound, /mdc, /wanted, /setp, /togcolor.");
- SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} You can view your factions radio frequency in your handbook.");
- SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} You can control your factions gates using /gate.");
- }
- if(FactionData[PlayerData[playerid][pFaction]][factionMedPerms])
- {
- SendClientMessage(playerid, COLOR_ADM, "->{FFFFFF} /duty, /offduty, /callsign, /uniform, /heal, /putinambu, /finishop, /hq");
- SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} You can view your factions radio frequency in your handbook.");
- SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} You can control your factions gates using /gate.");
- }
- if(FactionData[PlayerData[playerid][pFaction]][factionNewsPerms]) {
- SendClientMessage(playerid, COLOR_ADM, "->{FFFFFF} /duty, /offduty, /badge, /hq, /uniform, /live.");
- SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} You can view your factions radio frequency in your handbook.");
- SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} You can control your factions gates using /gate.");
- }
- if(PlayerData[playerid][pFactionRank] <= FactionData[PlayerData[playerid][pFaction]][factionEditrank])
- {
- SendClientMessage(playerid, COLOR_ADM, "-> Leadership:{FFFFFF} /invite, /(o)uninvite, /chatcolor, /configfaction");
- SendClientMessage(playerid, COLOR_ADM, "-> Leadership:{FFFFFF} /factionspawn, /setpspawn, /gov, /factionbank");
- }
- return true;
- }
- CMD:stats(playerid, params[])
- {
- if(!pLoggedIn[playerid])
- return 1;
-
- if(PlayerData[playerid][pAdmin] >= 1) {
- new playerb;
-
- if(sscanf(params, "u", playerb)) return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /stats [playerid OR name]");
- if(!IsPlayerConnected(playerb) && playerb != INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(playerb == INVALID_PLAYER_ID) {
- //ReturnStatistics(playerid, playerid, 0);
- return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- } else {
- SendClientMessage(playerid, -1, sprintf("[Debug] Showing you %s's statistics...", ReturnName(playerb, 1)));
- ReturnStatistics(playerb, playerid, 1);
- }
- }
- else {
- ReturnStatistics(playerid, playerid);
- }
- return 1;
- }
- CMD:levelup(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new string[128], newlevel, exp;
- newlevel = PlayerData[playerid][pLevel]+1;
- exp = ((PlayerData[playerid][pLevel]) * 4 + 2);
- if(PlayerData[playerid][pExp] < exp){
- format(string, sizeof(string), "ACCESS DENIED:{FFFFFF} You need %d Exp Points to level up, you have %d.", exp, PlayerData[playerid][pExp]);
- SendClientMessage(playerid, COLOR_ADM, string);
- return true;
- }
- PlayerData[playerid][pExp] = 0;
- PlayerData[playerid][pLevel]++;
- PlayerData[playerid][pUpgradePoints] += 2;
-
- SetPlayerScore(playerid, newlevel);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "~g~Leveled Up~n~~w~You leveled up to level %d", newlevel);
- GameTextForPlayer(playerid, string, 5000, 1);
- format(string, sizeof(string), "SERVER:{FFFFFF} You gained level %d! Type /upgrade for new account benefits.", newlevel);
- SendClientMessage(playerid, COLOR_ADM, string);
- SaveSQLInt(PlayerData[playerid][pSQLID], "players", "Level", PlayerData[playerid][pLevel]);
- SaveSQLInt(PlayerData[playerid][pSQLID], "players", "Exp", PlayerData[playerid][pExp]);
- WriteLog("player_logs/levelup_log.txt", "[%s] %s leveled up to level %d.", ReturnDate(), ReturnName(playerid, 1), newlevel);
- return true;
- }
- CMD:upgrade(playerid, params[])
- {
- new a_string[128], string[128];
-
- if (sscanf(params, "s[128]", a_string)) {
- SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /upgrade [upgrade]");
- format(string, sizeof(string), "You have %d Upgrade Points available to use.", PlayerData[playerid][pUpgradePoints]);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- SendClientMessage(playerid, COLOR_GRAD2, "________Available Upgrades________");
- SendClientMessage(playerid, COLOR_GRAD2, "1 : maxhealth [Upgrade your maximum health on login]");
- return true;
- }
-
- if(!strcmp(a_string, "maxhealth"))
- {
- if (!PlayerData[playerid][pUpgradePoints])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You don't have sufficient upgrade points.");
-
- if(PlayerData[playerid][pMaxHealth] >= 150)
- {
- SendClientMessage(playerid, -1, "Your max health is at the full upgrade. (150)");
- return 1;
- }
-
- WriteLog("player_logs/upgrade_log.txt", "[%s] %s upgraded their max health from %d to %d", ReturnDate(), ReturnName(playerid), PlayerData[playerid][pMaxHealth], PlayerData[playerid][pMaxHealth] + 5);
-
- PlayerData[playerid][pUpgradePoints]-= 1;
- PlayerData[playerid][pMaxHealth]+= 5;
-
- format(string, sizeof(string), "SERVER: Your max health was upgraded to %d.0", PlayerData[playerid][pMaxHealth]);
- SendClientMessage(playerid, COLOR_GRAD2, string);
-
- SavePlayer(playerid);
- }
- return true;
- }
- CMD:re(playerid, params[]) return cmd_report(playerid, params);
- CMD:report(playerid, params[])
- {
- new
- string[678];
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /report [text]");
- format(PlayerReport[playerid], 128, "%s", params);
-
- format(string, sizeof(string), "{F81414}WARNING:\n{FFFFFF}You're about to send all online administrators the following report:\n\nReason: %s\n\n- Reporting actions which do not happen at the moment is extremely difficult for online admins to handle on the spot, since no proof is presented to them.\nIt is highly recommended to head to the forums and submit a forum report.", params);
- ConfirmDialog(playerid, "Warning, you're about to send a /re", string, "OnPlayerReport", params);
- return true;
- }
- // General Commands
- CMD:admins(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return true;
- new count = 0, string[128];
-
- foreach(new i : Player){
- if(PlayerData[i][pAdmin] && PlayerData[i][pAdmin] != 6) {
- count++;
- }
- }
- if(count)
- {
- SendClientMessage(playerid, COLOR_GREY, "Admins Online:");
- foreach(new i : Player){
- if(PlayerData[i][pAdmin] && PlayerData[i][pAdmin] != 6)
- {
- if(PlayerData[i][pAdminDuty])
- {
- format(string, sizeof(string), "(Level: %d) %s (ID: %i) - On Duty: Yes", PlayerData[i][pAdmin], (isequal(PlayerData[i][pForumName], "-") ? sprintf("%s", ReturnName(i, 1)) : sprintf("%s", PlayerData[i][pForumName])), i);
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
- count++;
- }
- else
- {
- format(string, sizeof(string), "(Level: %d) %s (ID: %i) - On Duty: No", PlayerData[i][pAdmin], PlayerData[i][pForumName], i);
- SendClientMessage(playerid, COLOR_GREY, string);
- count++;
- }
- }
- }
- }
- if(!count)return SendClientMessage(playerid, COLOR_GREY, "There are no administrators online.");
- return true;
- }
- CMD:helpers(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new count = 0, string[128];
-
- foreach(new i : Player){
- if(PlayerData[i][pHelper]){
- count++;
- }
- }
-
- if(count) {
- SendClientMessage(playerid, COLOR_GREY, "Helpers Online:");
- }
-
- foreach(new i : Player)
- {
- if(PlayerData[i][pHelper])
- {
- if(PlayerData[i][pHelperDuty])
- {
- if(isnull(PlayerData[i][pForumName]))
- format(string, sizeof(string), "%s (ID: %i) - On Duty: Yes", ReturnName(i, 1), i);
-
- else format(string, sizeof(string), "%s (ID: %i) (%s) - On Duty: Yes", ReturnName(i, 1), i, PlayerData[i][pForumName]);
-
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
- count++;
- }
- else
- {
- if(isnull(PlayerData[i][pForumName]))
- format(string, sizeof(string), "%s(ID: %i) - On Duty: No", ReturnName(i, 1), i);
-
- else format(string, sizeof(string), "%s(ID: %i) (%s) - On Duty: No", ReturnName(i, 1), i, PlayerData[i][pForumName]);
-
- SendClientMessage(playerid, COLOR_GREY, string);
- count++;
- }
- }
- }
- if(!count)return SendClientMessage(playerid, COLOR_GREY, "There are no helpers online.");
- return true;
- }
- CMD:isafk(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new string[128], playerb;
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /isafk [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_GREY, "65535 is not an active player.");
- if(GetTickCount() > (PlayerData[playerb][pPauseCheck]+2000))
- format(string, sizeof(string), "Player %s has been paused for %d seconds!", ReturnName(playerb, 1), PlayerData[playerb][pPauseTime]);
-
- else format(string, sizeof(string), "Player %s is not paused.", ReturnName(playerb, 1));
-
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- CMD:enter(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new string[128];
-
- if(StartedTruckerMission[playerid] && TruckerMissionStep[playerid] == 2)
- return SendClientMessage(playerid, COLOR_ADM, "** You can't enter while delivering.");
- PauseAntiCheat(playerid);
-
- for(new h = 0; h < MAX_PROPERTY; h++){
- if(PropertyData[h][propertyid] != 0){
- if(PropertyData[h][propertyType] == 2){
- if(IsPlayerInRangeOfPoint(playerid, 3.0, PropertyData[h][propertyExterior][0], PropertyData[h][propertyExterior][1], PropertyData[h][propertyExterior][2])){
- if(GetPlayerInterior(playerid) == PropertyData[h][propertyExteriorID] && GetPlayerVirtualWorld(playerid) == PropertyData[h][propertyExteriorWorld] && PlayerData[playerid][pCheckpoint] == h){
-
- if(PropertyData[h][propertyLocked]) {
- GameTextForPlayer(playerid, "~r~Locked", 2000, 1);
- }
- else {
- if(IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "You are not able to enter due to being in a vehicle!");
-
- SendPlayer(playerid, PropertyData[h][propertyInterior][0], PropertyData[h][propertyInterior][1], PropertyData[h][propertyInterior][2], PropertyData[h][propertyInteriorID], PropertyData[h][propertyInteriorWorld]);
- SetPlayerFacingAngle(playerid, PropertyData[h][propertyInterior][3]);
-
- SetTimerEx("LoadingStream", 50, false, "i", playerid);
- SetTimerEx("EndStream", 300, false, "i", playerid);
-
- PlayerData[playerid][pInsideApartment] = h;
- PlayerData[playerid][pInsideComplex] = 0;
- DisablePlayerCheckpoint(playerid);
- PlayerData[playerid][pCheckpoint] = 0;
-
- if (PropertyData[h][propertyXMROn]){
- PlayAudioStreamForPlayer(playerid, PropertyData[h][propertyXMRUrl]);
- }
- }
- }
- }
- }
- else{
- if(IsPlayerInRangeOfPoint(playerid, 3.0, PropertyData[h][propertyExterior][0], PropertyData[h][propertyExterior][1], PropertyData[h][propertyExterior][2])){
- if(GetPlayerVirtualWorld(playerid) == PropertyData[h][propertyExteriorWorld]){
- if(PropertyData[h][propertyLocked]){
- GameTextForPlayer(playerid, "~r~Locked", 2000, 1);
- }
- else{
- if(IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "You are not able to enter due to being in a vehicle!");
-
- SendPlayer(playerid, PropertyData[h][propertyInterior][0], PropertyData[h][propertyInterior][1], PropertyData[h][propertyInterior][2], PropertyData[h][propertyInteriorID], PropertyData[h][propertyInteriorWorld]);
- SetPlayerFacingAngle(playerid, PropertyData[h][propertyInterior][3]);
-
- SetTimerEx("LoadingStream", 50, false, "i", playerid);
- SetTimerEx("EndStream", 300, false, "i", playerid);
-
- if(PropertyData[h][propertyType] == 1){
- PlayerData[playerid][pInsideComplex] = h;
- }
- if(PropertyData[h][propertyType] == 3){
- PlayerData[playerid][pInsideHouse] = h;
- }
- DisablePlayerCheckpoint(playerid);
- PlayerData[playerid][pCheckpoint] = 0;
-
- if (PropertyData[h][propertyXMROn]){
- PlayAudioStreamForPlayer(playerid, PropertyData[h][propertyXMRUrl]);
- }
- }
- }
- }
- }
- }
- }
-
- for(new b = 0; b < MAX_BUSINESS; b++)
- {
- if(BusinessData[b][businessID] != 0){
- if(IsPlayerInRangeOfPoint(playerid, 3.0, BusinessData[b][businessExt][0], BusinessData[b][businessExt][1], BusinessData[b][businessExt][2])){
- if(BusinessData[b][businessLocked]){
- GameTextForPlayer(playerid, "~r~Locked", 3000, 1);
- }
- else{
- if(BusinessData[b][businessType] == 8 || BusinessData[b][businessType] == 9){
- GameTextForPlayer(playerid, "~r~Closed", 3000, 1);
- return true;
- }
- if(IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "You are not able to enter due to being in a vehicle!");
- SendPlayer(playerid, BusinessData[b][businessInt][0], BusinessData[b][businessInt][1], BusinessData[b][businessInt][2], BusinessData[b][businessIntID], BusinessData[b][businessWorld]);
- SetPlayerFacingAngle(playerid, BusinessData[b][businessInt][3]);
-
- SetTimerEx("LoadingStream", 50, false, "i", playerid);
- SetTimerEx("EndStream", 300, false, "i", playerid);
-
- if(PlayerData[playerid][pSQLID] != BusinessData[b][businessOwnerSQL]) {
- GiveMoney(playerid, -BusinessData[b][businessFee]);
- BusinessData[b][businessCashbox]+= BusinessData[b][businessFee];
- }
-
- format(string, sizeof(string), "~w~%s", BusinessData[b][businessName]);
- GameTextForPlayer(playerid, string, 3000, 1);
-
- PlayerData[playerid][pInsideBusiness] = b;
- BusinessTypeMessage(playerid, b);
- }
- }
- }
- }
-
- for(new p = 0; p < MAX_PAYNSPRAY; p++)
- {
- if(PNSData[p][pnsID] != 0){
- if(IsPlayerInRangeOfPoint(playerid, 4.0, PNSData[p][pnsEntrance][0], PNSData[p][pnsEntrance][1], PNSData[p][pnsEntrance][2])){
- if (PNSData[p][pnsOccupied])return SendClientMessage(playerid, COLOR_ADM, "SERVER: Pay N Spray Occupied.");
- if (GetPlayerState(playerid) != PLAYER_STATE_DRIVER)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in a car.");
- if (PlayerData[playerid][pMoney] < PNSData[p][pnsPrice] && PlayerData[playerid][pDonator] == 0)return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Funds.");
-
- SendPlayer(playerid, PNSData[p][pnsRepairSpot][0], PNSData[p][pnsRepairSpot][1], PNSData[p][pnsRepairSpot][2], 0, 0);
-
- if (PlayerData[playerid][pDonator] == 0) {
- GiveMoney(playerid, -PNSData[p][pnsPrice]);
- PNSData[p][pnsEarnings]+= PNSData[p][pnsPrice];
- }
-
- new vehicle = GetPlayerVehicleID(playerid);
- PlayerData[playerid][pInsidePNS] = p;
- SetPVarInt(playerid, "InsidePNSVehicle", vehicle);
-
- PNSData[p][pnsOccupied] = true;
-
- SetTimerEx("TIMER_ExitPNS", 9500, false, "i", playerid);
- TogglePlayerControllable(playerid, false);
- RepairVehicle(vehicle);
- SetVehicleHealth(vehicle, 1000.0);
- SendClientMessage(playerid, COLOR_DARKGREEN, "Auto-Voice: You'll be moved out in 10 seconds.");
- GameTextForPlayer(playerid, "~g~REPAIRING...", 5000, 4);
- }
- }
- }
-
- for(new d = 0; d < MAX_DOORS; d++)
- {
- if(DoorData[d][doorID] != 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 4.0, DoorData[d][doorPos][0], DoorData[d][doorPos][1], DoorData[d][doorPos][2]))
- {
- if(GetPlayerVirtualWorld(playerid) == DoorData[d][doorPosWorld])
- {
- if(DoorData[d][doorLocked])return GameTextForPlayer(playerid, "~r~Locked", 3000, 1);
- if(DoorData[d][doorFaction] != PlayerData[playerid][pFaction]) return 1;
-
- if(IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "You are not able to enter due to being in a vehicle!");
- SetPlayerPos(playerid, DoorData[d][doorInt][0], DoorData[d][doorInt][1], DoorData[d][doorInt][2]);
- SetPlayerInterior(playerid, DoorData[d][doorIntID]);
- SetPlayerVirtualWorld(playerid, DoorData[d][doorIntWorld]);
- SetPlayerFacingAngle(playerid, DoorData[d][doorInt][3]);
-
- SetTimerEx("LoadingStream", 50, false, "i", playerid);
- SetTimerEx("EndStream", 300, false, "i", playerid);
-
- PlayerData[playerid][pInsideDoor] = d;
- }
- }
- }
- }
-
- for(new g = 0; g < MAX_PROPERTY_GARAGES; g++)
- {
- if(GarageData[g][garageSQLID] != 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 4.0, GarageData[g][garagePos][0], GarageData[g][garagePos][1], GarageData[g][garagePos][2]))
- {
- if(GarageData[g][garageLocked])return GameTextForPlayer(playerid, "~r~Locked", 3000, 1);
-
- SendPlayer(playerid, GarageData[g][garageInt][0], GarageData[g][garageInt][1], GarageData[g][garageInt][2], GarageData[g][garageInteriorID], GarageData[g][garageWorld]);
- PlayerData[playerid][pInsideGarage] = g;
-
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- foreach(new i : Player)
- {
- if(IsPlayerInVehicle(i, GetPlayerVehicleID(playerid)))
- {
- SetPlayerVirtualWorld(i, GarageData[g][garageWorld]);
- SetPlayerInterior(i, GarageData[g][garageInteriorID]);
-
- PlayerData[i][pInsideGarage] = g;
- }
- }
-
- SetVehicleZAngle(GetPlayerVehicleID(playerid), 90);
- }
- }
- }
- }
-
- new idx;
- if(IsPlayerNearEntrance(playerid) != -1)
- {
- idx = IsPlayerNearEntrance(playerid);
-
- if(IsEntranceLocked(idx) && !PlayerData[playerid][pAdminDuty])
- return GameTextForPlayer(playerid, "~r~Locked", 3000, 1);
-
- if(IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "You are not able to enter due to being in a vehicle!");
-
- EnterEntrance(playerid, idx);
-
- SetTimerEx("LoadingStream", 50, false, "i", playerid);
- SetTimerEx("EndStream", 300, false, "i", playerid);
- }
-
- return true;
- }
- CMD:exit(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- if(PlayerData[playerid][pEditingFurniture] && PlayerData[playerid][pEditingDuplicate])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You can't /exit anywhere while editing furniture.");
-
- if(PlayerData[playerid][pAdjustPackage] != -1)
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You can't /exit anywhere while adjusting a package.");
- PauseAntiCheat(playerid);
-
- for(new h = 0; h < MAX_PROPERTY; h++)
- {
- if(PropertyData[h][propertyid] != 0){
- if(PropertyData[h][propertyType] == 2){
- if(IsPlayerInRangeOfPoint(playerid, 3.0, PropertyData[h][propertyInterior][0], PropertyData[h][propertyInterior][1], PropertyData[h][propertyInterior][2]) && PlayerData[playerid][pInsideApartment] == h){
- if(GetPlayerVirtualWorld(playerid) == PropertyData[h][propertyInteriorWorld]){
- SendPlayer(playerid, PropertyData[h][propertyExterior][0], PropertyData[h][propertyExterior][1], PropertyData[h][propertyExterior][2], PropertyData[h][propertyExteriorID], PropertyData[h][propertyExteriorWorld]);
- PlayerData[playerid][pInsideApartment] = 0;
- PlayerData[playerid][pInsideComplex] = PropertyData[h][propertyComplexLink];
-
- StopAudioStreamForPlayer(playerid);
-
- }
- }
- }
- else{
- if(IsPlayerInRangeOfPoint(playerid, 3.0, PropertyData[h][propertyInterior][0], PropertyData[h][propertyInterior][1], PropertyData[h][propertyInterior][2])){
- if(GetPlayerVirtualWorld(playerid) == PropertyData[h][propertyInteriorWorld]){
- SendPlayer(playerid, PropertyData[h][propertyExterior][0], PropertyData[h][propertyExterior][1], PropertyData[h][propertyExterior][2], 0, 0);
- PlayerData[playerid][pInsideComplex] = 0;
- PlayerData[playerid][pInsideHouse] = 0;
-
- StopAudioStreamForPlayer(playerid);
- }
- }
- }
- }
- }
-
- for(new b = 0; b < MAX_BUSINESS; b++)
- {
- if(BusinessData[b][businessID] != 0){
- if(IsPlayerInRangeOfPoint(playerid, 3.0, BusinessData[b][businessInt][0], BusinessData[b][businessInt][1], BusinessData[b][businessInt][2])){
- if(GetPlayerVirtualWorld(playerid) == BusinessData[b][businessWorld]){
- SendPlayer(playerid, BusinessData[b][businessExt][0], BusinessData[b][businessExt][1], BusinessData[b][businessExt][2], 0, 0);
- PlayerData[playerid][pInsideBusiness] = 0;
- }
- }
- }
- }
-
- for(new i = 0; i < MAX_DOORS; i++)
- {
- if(DoorData[i][doorID] != 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 4.0, DoorData[i][doorInt][0], DoorData[i][doorInt][1], DoorData[i][doorInt][2]))
- {
- if(GetPlayerVirtualWorld(playerid) == DoorData[i][doorIntWorld])
- {
- SendPlayer(playerid, DoorData[i][doorPos][0], DoorData[i][doorPos][1], DoorData[i][doorPos][2], DoorData[i][doorPosIntID], DoorData[i][doorPosWorld]);
- PlayerData[playerid][pInsideDoor] = i;
- }
- }
- }
- }
-
- for(new g = 0; g < MAX_PROPERTY_GARAGES; g++)
- {
- if(GarageData[g][garageSQLID] != 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 4.0, GarageData[g][garageInt][0], GarageData[g][garageInt][1], GarageData[g][garageInt][2]))
- {
- if(GetPlayerVirtualWorld(playerid) == GarageData[g][garageWorld])
- {
- SendPlayer(playerid, GarageData[g][garagePos][0], GarageData[g][garagePos][1], GarageData[g][garagePos][2], 0, 0);
-
- PlayerData[playerid][pInsideGarage] = 0;
-
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- //SetVehicleZAngle(GetPlayerVehicleID(playerid), GarageData[g][garagePos][3]);
-
- foreach(new i : Player)
- {
- if(IsPlayerInVehicle(i, GetPlayerVehicleID(playerid)))
- {
- SetPlayerInterior(i, 0);
- SetPlayerVirtualWorld(i, 0);
- PlayerData[i][pInsideGarage] = 0;
- }
- }
- }
- }
- }
- }
- }
-
- new idx;
- if(IsPlayerInsideEntrance(playerid) != -1)
- {
- idx = IsPlayerInsideEntrance(playerid);
- ExitEntrance(playerid, idx);
- }
-
- return true;
- }
- CMD:block(playerid, params[])
- {
- new
- idx,
- nearby;
- if(IsPlayerNearBusiness(playerid))
- {
- idx = IsPlayerNearBusiness(playerid);
- if(IsPlayerInRangeOfPoint(playerid, 4.0, BusinessData[idx][businessExt][0], BusinessData[idx][businessExt][1], BusinessData[idx][businessExt][2]))
- {
- nearby++;
- if(BusinessData[idx][businessOwnerSQL] != PlayerData[playerid][pSQLID] && !PlayerData[playerid][pAdminDuty])
- return GameTextForPlayer(playerid, "You don't have the keys to this", 2000, 6);
-
- if(!BusinessData[idx][businessLocked])
- {
- BusinessData[idx][businessLocked] = true;
- GameTextForPlayer(playerid, "~w~DOOR ~r~LOCKED", 3000, 4);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- else
- {
- BusinessData[idx][businessLocked] = false;
- GameTextForPlayer(playerid, "~w~DOOR ~g~UNLOCKED", 3000, 4);
-
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- }
- }
-
- if(IsPlayerInBusiness(playerid))
- {
- idx = IsPlayerInBusiness(playerid);
- if(IsPlayerInRangeOfPoint(playerid, 4.0, BusinessData[idx][businessInt][0], BusinessData[idx][businessInt][1], BusinessData[idx][businessInt][2]) && GetPlayerVirtualWorld(playerid) == BusinessData[idx][businessWorld])
- {
- nearby++;
- if(BusinessData[idx][businessOwnerSQL] != PlayerData[playerid][pSQLID] && !PlayerData[playerid][pAdminDuty])
- return GameTextForPlayer(playerid, "You don't have the keys to this", 2000, 6);
-
- if(!BusinessData[idx][businessLocked])
- {
- BusinessData[idx][businessLocked] = true;
- GameTextForPlayer(playerid, "~w~DOOR ~r~LOCKED", 3000, 4);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- else
- {
- BusinessData[idx][businessLocked] = false;
- GameTextForPlayer(playerid, "~w~DOOR ~g~UNLOCKED", 3000, 4);
-
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- }
- }
-
- if(!nearby) return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't in or near a business.");
- return 1;
- }
- CMD:hlock(playerid, params[])
- {
- new nearby;
-
- for(new i = 0; i < MAX_PROPERTY; i++)
- {
- if(PropertyData[i][propertyid] != 0){
- if(PropertyData[i][propertyType] == 2){
- if(IsPlayerInRangeOfPoint(playerid, 3.0, PropertyData[i][propertyExterior][0], PropertyData[i][propertyExterior][1], PropertyData[i][propertyExterior][2]) || IsPlayerInRangeOfPoint(playerid, 3.0, PropertyData[i][propertyInterior][0], PropertyData[i][propertyInterior][1], PropertyData[i][propertyInterior][2])){
- if(PropertyData[i][propertyOwnerSQL] != PlayerData[playerid][pSQLID] && PlayerData[playerid][pRenting] != PropertyData[i][propertyid] && !PlayerData[playerid][pAdminDuty])return GameTextForPlayer(playerid, "You don't have the keys to this", 2000, 6);
- if(PropertyData[i][propertyLocked]){
- ToggleHouseLock(playerid, i, false);
- }
- else{
- ToggleHouseLock(playerid, i, true);
- }
- nearby++;
- }
- }
- else{
- if(IsPlayerInRangeOfPoint(playerid, 3.0, PropertyData[i][propertyExterior][0], PropertyData[i][propertyExterior][1], PropertyData[i][propertyExterior][2])){
- if(PropertyData[i][propertyOwnerSQL] != PlayerData[playerid][pSQLID] && PlayerData[playerid][pRenting] != PropertyData[i][propertyid] && !PlayerData[playerid][pAdminDuty])return GameTextForPlayer(playerid, "You don't have the keys to this", 2000, 6);
-
- if(PropertyData[i][propertyLocked]){
- ToggleHouseLock(playerid, i, false);
- }
- else{
- ToggleHouseLock(playerid, i, true);
- }
- nearby++;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, PropertyData[i][propertyInterior][0], PropertyData[i][propertyInterior][1], PropertyData[i][propertyInterior][2])){
- if(PlayerData[playerid][pInsideHouse] == i){
- if(PropertyData[i][propertyOwnerSQL] != PlayerData[playerid][pSQLID] && PlayerData[playerid][pRenting] != PropertyData[i][propertyid] && !PlayerData[playerid][pAdminDuty])return GameTextForPlayer(playerid, "You don't have the keys to this", 2000, 6);
-
- if(PropertyData[i][propertyLocked]){
- ToggleHouseLock(playerid, i, false);
- }
- else{
- ToggleHouseLock(playerid, i, true);
- }
- }
- nearby++;
- }
- }
- }
- }
- if(!nearby)return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near or in a property.");
- return 1;
- }
- CMD:glock(playerid, params[])
- {
- new nearby;
- for(new g = 0; g < MAX_PROPERTY_GARAGES; g++)
- {
- if(GarageData[g][garageSQLID] != 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 4.0, GarageData[g][garagePos][0], GarageData[g][garagePos][1], GarageData[g][garagePos][2]) || IsPlayerInRangeOfPoint(playerid, 4.0, GarageData[g][garageInt][0], GarageData[g][garageInt][1], GarageData[g][garageInt][2]) && GetPlayerVirtualWorld(playerid) == GarageData[g][garageWorld])
- {
- if(!GarageData[g][garageFaction] && PlayerData[playerid][pSQLID] != PropertyData[GarageData[g][garagePropertyID]][propertyOwnerSQL] && !PlayerData[playerid][pAdminDuty])return GameTextForPlayer(playerid, "You don't have the keys to this", 2000, 6);
- if(GarageData[g][garageFaction] && PlayerData[playerid][pFaction] != GarageData[g][garageFaction]) return GameTextForPlayer(playerid, "You don't have the keys to this", 2000, 6);
-
- if(GarageData[g][garageLocked])
- {
- GarageData[g][garageLocked] = false;
- GameTextForPlayer(playerid, "~w~Garage ~g~Unlocked", 4000, 6);
- }
- else
- {
- GarageData[g][garageLocked] = true;
- GameTextForPlayer(playerid, "~w~Garage ~r~Locked", 4000, 6);
- }
- nearby++;
- }
- }
- }
- if(!nearby) return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near or in a property garage.");
- return 1;
- }
- CMD:lock(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new string[128], idx;
-
- if(IsPlayerNearBusiness(playerid))
- {
- idx = IsPlayerNearBusiness(playerid);
- if(IsPlayerInRangeOfPoint(playerid, 4.0, BusinessData[idx][businessExt][0], BusinessData[idx][businessExt][1], BusinessData[idx][businessExt][2]))
- {
- if(BusinessData[idx][businessOwnerSQL] != PlayerData[playerid][pSQLID] && !PlayerData[playerid][pAdminDuty])
- return GameTextForPlayer(playerid, "You don't have the keys to this", 2000, 6);
-
- if(!BusinessData[idx][businessLocked])
- {
- BusinessData[idx][businessLocked] = true;
- GameTextForPlayer(playerid, "~w~DOOR ~r~LOCKED", 3000, 4);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- else
- {
- BusinessData[idx][businessLocked] = false;
- GameTextForPlayer(playerid, "~w~DOOR ~g~UNLOCKED", 3000, 4);
-
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- }
- }
-
- if(IsPlayerInBusiness(playerid))
- {
- idx = IsPlayerInBusiness(playerid);
- if(IsPlayerInRangeOfPoint(playerid, 4.0, BusinessData[idx][businessInt][0], BusinessData[idx][businessInt][1], BusinessData[idx][businessInt][2]) && GetPlayerVirtualWorld(playerid) == BusinessData[idx][businessWorld])
- {
- if(BusinessData[idx][businessOwnerSQL] != PlayerData[playerid][pSQLID] && !PlayerData[playerid][pAdminDuty])
- return GameTextForPlayer(playerid, "You don't have the keys to this", 2000, 6);
-
- if(!BusinessData[idx][businessLocked])
- {
- BusinessData[idx][businessLocked] = true;
- GameTextForPlayer(playerid, "~w~DOOR ~r~LOCKED", 3000, 4);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- else
- {
- BusinessData[idx][businessLocked] = false;
- GameTextForPlayer(playerid, "~w~DOOR ~g~UNLOCKED", 3000, 4);
-
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- }
- }
-
- if(IsPlayerNearEntrance(playerid) != -1)
- {
- idx = IsPlayerNearEntrance(playerid);
-
- if(Entrances[idx][FactionOwner] && PlayerData[playerid][pFaction] != Entrances[idx][FactionOwner] && !PlayerData[playerid][pAdminDuty])
- return GameTextForPlayer(playerid, "You don't have the keys to this", 2000, 6);
-
- LockEntrance(playerid, idx);
- }
-
- if(IsPlayerInsideEntrance(playerid) != -1)
- {
- idx = IsPlayerInsideEntrance(playerid);
-
- LockEntrance(playerid, idx);
- }
-
- if(IsPlayerNearProperty(playerid))
- {
- idx = IsPlayerNearProperty(playerid);
-
- if(IsPlayerInRangeOfPoint(playerid, 3.0, PropertyData[idx][propertyExterior][0], PropertyData[idx][propertyExterior][1], PropertyData[idx][propertyExterior][2]) && GetPlayerVirtualWorld(playerid) == PropertyData[idx][propertyExteriorWorld])
- {
- if(PropertyData[idx][propertyOwnerSQL] != PlayerData[playerid][pSQLID] && PlayerData[playerid][pRenting] != PropertyData[idx][propertyid] && !PlayerData[playerid][pAdminDuty])
- return GameTextForPlayer(playerid, "You don't have the keys to this", 2000, 6);
-
- if(PropertyData[idx][propertyLocked])
- ToggleHouseLock(playerid, idx, false);
-
- else ToggleHouseLock(playerid, idx, true);
- }
- }
-
- if(IsPlayerInProperty(playerid))
- {
- idx = IsPlayerInProperty(playerid);
-
- if(IsPlayerInRangeOfPoint(playerid, 3.0, PropertyData[idx][propertyInterior][0], PropertyData[idx][propertyInterior][1], PropertyData[idx][propertyInterior][2]) && GetPlayerVirtualWorld(playerid) == PropertyData[idx][propertyInteriorWorld])
- {
- if(PropertyData[idx][propertyLocked])
- ToggleHouseLock(playerid, idx, false);
-
- else ToggleHouseLock(playerid, idx, true);
- }
- }
- for(new i = 0; i < MAX_VEHICLES; i++){
-
- new Float: currPos[3];
- GetVehiclePos(i, currPos[0], currPos[1], currPos[2]);
-
- if(IsPlayerInRangeOfPoint(playerid, 5.0, currPos[0], currPos[1], currPos[2]))
- {
- if(IsValidPlayerCar(i))
- {
- if(!strcmp(params, "breakin", true))
- {
- if(NoEngineCar(i))
- return SendClientMessage(playerid, COLOR_ADM, "This doesn't have doors ?");
-
- if(!CarData[i][carLocked])
- {
- if(!ActiveLockTD[playerid])
- {
- BreakInTextDraw[playerid] = CreateDynamic3DTextLabel("This vehicle isn't locked.", COLOR_WHITE, 0.0, 0.0, 0.0, 10.0, .attachedvehicle = i, .playerid = playerid, .worldid = GetPlayerVirtualWorld(playerid), .interiorid = GetPlayerInterior(playerid));
- BreakInTDTimer[playerid] = SetTimerEx("OnLockTextdraw", 4000, false, "i", playerid);
-
- ActiveLockTD[playerid] = 1;
- BreakInError[playerid] = 1;
-
- Streamer_Update(playerid);
- }
- return 1;
- }
-
- if(BreakInError[playerid])
- {
- if(IsValidDynamic3DTextLabel(BreakInTextDraw[playerid]))
- DestroyDynamic3DTextLabel(BreakInTextDraw[playerid]);
-
- BreakInError[playerid] = 0;
-
- if(ActiveLockTD[playerid])
- {
- KillTimer(BreakInTDTimer[playerid]);
- ActiveLockTD[playerid] = 0;
- }
- }
-
- PlayerBreakingIn[playerid] = 1;
- PlayerBreakInVehicle[playerid] = i;
-
- switch(CarData[i][carLock])
- {
- case 5: BreakInLevel[playerid] = 240;
- case 4: BreakInLevel[playerid] = 180;
- case 3: BreakInLevel[playerid] = 130;
- case 2: BreakInLevel[playerid] = 90;
- case 1: BreakInLevel[playerid] = 40;
- case 0: BreakInLevel[playerid] = 10;
- }
-
- Message(playerid, COLOR_ADM, "Ho! You're breaking into this %s. Break the windows to start.", ReturnVehicleName(i));
- return 1;
- }
-
- if(CarData[i][carOwnerID] != PlayerData[playerid][pSQLID] && GetPVarInt(playerid, "DuplicateKey") != CarData[i][carID] && !PlayerData[playerid][pAdminDuty])
- return GameTextForPlayer(playerid, "You don't have the keys to this", 2000, 6);
- if(!CarData[i][carLocked])
- {
- ToggleVehicleLock(i, true);
- CarData[i][carLocked] = true;
- SaveSQLInt(CarData[i][carID], "ownedcars", "Locked", 1);
-
- format(string, sizeof(string), "%s locked", ReturnName(playerid));
- LogVehicleAction(i, string);
- format(string, sizeof(string), "~r~%s LOCKED", ReturnVehicleName(i));
- GameTextForPlayer(playerid, string, 3000, 6);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- else
- {
- CarData[i][carLocked] = false;
- ToggleVehicleLock(i, false);
- SaveSQLInt(CarData[i][carID], "ownedcars", "Locked", 0);
-
- format(string, sizeof(string), "%s unlocked", ReturnName(playerid));
- LogVehicleAction(i, string);
-
- format(string, sizeof(string), "~g~%s UNLOCKED", ReturnVehicleName(i));
- GameTextForPlayer(playerid, string, 3000, 6);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- }
- else if(IsValidRentalCar(i)){
- if(!RentalData[i][rentalcarRented])return GameTextForPlayer(playerid, "~r~This vehicle doesn't have a lock", 3000, 4);
- if(RentalData[i][rentalcarRentedBy] != PlayerData[playerid][pSQLID] && !PlayerData[playerid][pAdminDuty])return GameTextForPlayer(playerid, "You don't have the keys to this", 2000, 6);
-
- if(!RentalData[i][rentalcarLocked]){
- ToggleVehicleLock(i, true);
- RentalData[i][rentalcarLocked] = true;
-
- format(string, sizeof(string), "~r~%s LOCKED", ReturnVehicleName(i));
- GameTextForPlayer(playerid, string, 3000, 6);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- else{
- ToggleVehicleLock(i, false);
- RentalData[i][rentalcarLocked] = false;
-
- format(string, sizeof(string), "~g~%s UNLOCKED", ReturnVehicleName(i));
- GameTextForPlayer(playerid, string, 3000, 6);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- }
- else return GameTextForPlayer(playerid, "~r~This vehicle doesn't have a lock", 3000, 4);
- }
- }
-
- for(new i = 0; i < MAX_DOORS; i++)
- {
- if(DoorData[i][doorID] != 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 4.0, DoorData[i][doorPos][0], DoorData[i][doorPos][1], DoorData[i][doorPos][2]) || IsPlayerInRangeOfPoint(playerid, 4.0, DoorData[i][doorInt][0], DoorData[i][doorInt][1], DoorData[i][doorInt][2]))
- {
- if(DoorData[i][doorFaction] != 0 && DoorData[i][doorFaction] != PlayerData[playerid][pFaction] && !PlayerData[playerid][pAdminDuty])return GameTextForPlayer(playerid, "You don't have the keys to this", 2000, 6);
-
- if(!DoorData[i][doorLocked])
- {
- DoorData[i][doorLocked] = true;
- PlayNearbySound(playerid, 1052);
-
- if(strfind(DoorData[i][doorName], "None", false) != -1)
- {
- if(DoorData[i][doorFaction] != 0)
- {
- format(string, sizeof(string), "Door %s is {FFFF00}locked.", ReturnFactionName(DoorData[i][doorFaction]));
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Door is {FFFF00}locked.");
- }
-
- }
- else
- {
- format(string, sizeof(string), "Door %s is {FFFF00}locked.", DoorData[i][doorName]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- else
- {
- DoorData[i][doorLocked] = false;
- PlayNearbySound(playerid, 1052);
-
- if(strfind(DoorData[i][doorName], "None", false) != -1)
- {
- if(DoorData[i][doorFaction] != 0)
- {
- format(string, sizeof(string), "Door %s is {FFFF00}unlocked.", ReturnFactionName(DoorData[i][doorFaction]));
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Door is {FFFF00}unlocked.");
- }
- }
- else
- {
- format(string, sizeof(string), "Door %s is {FFFF00}unlocked.", DoorData[i][doorName]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- }
- }
- }
-
- for(new g = 0; g < MAX_PROPERTY_GARAGES; g++)
- {
- if(GarageData[g][garageSQLID] != 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 4.0, GarageData[g][garagePos][0], GarageData[g][garagePos][1], GarageData[g][garagePos][2]) || IsPlayerInRangeOfPoint(playerid, 4.0, GarageData[g][garageInt][0], GarageData[g][garageInt][1], GarageData[g][garageInt][2]) && GetPlayerVirtualWorld(playerid) == GarageData[g][garageWorld])
- {
- if(!GarageData[g][garageFaction] && PlayerData[playerid][pSQLID] != PropertyData[GarageData[g][garagePropertyID]][propertyOwnerSQL] && !PlayerData[playerid][pAdminDuty])return GameTextForPlayer(playerid, "You don't have the keys to this", 2000, 6);
- if(GarageData[g][garageFaction] && PlayerData[playerid][pFaction] != GarageData[g][garageFaction]) return GameTextForPlayer(playerid, "You don't have the keys to this", 2000, 6);
-
- if(GarageData[g][garageLocked])
- {
- GarageData[g][garageLocked] = false;
- GameTextForPlayer(playerid, "~w~Garage ~g~Unlocked", 4000, 6);
- }
- else
- {
- GarageData[g][garageLocked] = true;
- GameTextForPlayer(playerid, "~w~Garage ~r~Locked", 4000, 6);
- }
- }
- }
- }
-
- new bool:nearbyFurniture = false, bool:nearbyDoor = false, nearbyFurnitureID;
- for (new i = 0; i < MAX_FURNITURE; i++)
- {
- if (FurnitureData[i][furnitureExists])
- {
- if (IsPlayerInRangeOfPoint(playerid, 3.0, FurnitureData[i][furniturePos][0], FurnitureData[i][furniturePos][1], FurnitureData[i][furniturePos][2]))
- {
- nearbyFurniture = true;
- nearbyFurnitureID = i;
- }
- }
- }
- if (nearbyFurniture)
- {
- new id = nearbyFurnitureID;
-
- for (new i = 0; i < sizeof(g_aFurnitureData); i++)
- {
- if (FurnitureData[id][furnituresModel] == g_aFurnitureData[i][furnitureModel])
- {
- if (g_aFurnitureData[i][furnitureCategory] == FURNITURE_CATEGORY_DOORS)
- {
- nearbyDoor = true;
- }
- }
- }
- }
- if (nearbyDoor)
- {
- new bool:canUseDoor = false;
-
- if(!PropertyData[FurnitureData[nearbyFurnitureID][furniturePropertyID]][propertyFaction])
- {
- if (PlayerData[playerid][pSQLID] != PropertyData[FurnitureData[nearbyFurnitureID][furniturePropertyID]][propertyOwnerSQL] && !PlayerData[playerid][pAdminDuty])
- {
- canUseDoor = false;
- SendClientMessage(playerid, COLOR_YELLOW, "You don't have the keys to this door.");
- }
- else
- {
- canUseDoor = true;
- }
- }
- else
- {
- if (PlayerData[playerid][pFaction] != PropertyData[FurnitureData[nearbyFurnitureID][furniturePropertyID]][propertyFaction] && !PlayerData[playerid][pAdminDuty])
- {
- canUseDoor = false;
- SendClientMessage(playerid, COLOR_YELLOW, "You don't have the keys to this door. (Faction)");
- }
- else
- {
- canUseDoor = true;
- }
- }
-
- if(canUseDoor)
- {
- if (FurnitureData[nearbyFurnitureID][furnitureDoorOpen])
- return SendClientMessage(playerid, COLOR_ADM, "You can't lock a door that's open.");
-
- if (FurnitureData[nearbyFurnitureID][furnitureDoorLock])
- {
- FurnitureData[nearbyFurnitureID][furnitureDoorLock] = false;
- SendClientMessage(playerid, COLOR_YELLOW, "Door unlocked.");
- }
- else
- {
- FurnitureData[nearbyFurnitureID][furnitureDoorLock] = true;
- SendClientMessage(playerid, COLOR_YELLOW, "Door locked.");
- }
- }
- }
-
- return true;
- }
- CMD:engine(playerid, params[])
- {
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't driving a vehicle.");
-
- new
- str[128],
- vehicleid = GetPlayerVehicleID(playerid);
-
- if(NoEngineCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: This vehicle doesn't support an engine.");
-
- if(IsStaticVehicle(vehicleid) || !IsValidPlayerCar(vehicleid) && !IsValidFactionCar(vehicleid) && !IsValidRentalCar(vehicleid) && !PlayerData[playerid][pAdminDuty])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: This command can only be used for private vehicles. You are in a public static vehicle.");
- if(IsValidFactionCar(vehicleid) && PlayerData[playerid][pFaction] != FactionCar[vehicleid][carFaction] && !PlayerData[playerid][pAdminDuty])
- {
- SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't have access to this vehicle.");
-
- if (!PlayerData[playerid][pAdmin])
- {
- format(str, sizeof(str), "%s possibly teleported into a faction vehicle", ReturnName(playerid, 1));
- adminWarn(1, str);
- }
- return 1;
- }
-
- if(IsValidRentalCar(vehicleid))
- {
- if(!RentalData[vehicleid][rentalcarRented])
- return SendClientMessage(playerid, COLOR_ADM, "This hasn't been rented yet.");
-
- if(RentalData[vehicleid][rentalcarRented] && RentalData[vehicleid][rentalcarRentedBy] != PlayerData[playerid][pSQLID] && !PlayerData[playerid][pAdminDuty])
- return GameTextForPlayer(playerid, "You don't have the keys to this", 3000, 6);
- }
-
- if(IsValidPlayerCar(vehicleid))
- {
- if(CarData[vehicleid][carEngine] < 10.00)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: This vehicle has a dead engine and can't be started.");
-
- if(CarData[vehicleid][carFuel] < 1)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: This vehicle is out of fuel.");
-
- if(PlayerData[playerid][pSQLID] != CarData[vehicleid][carOwnerID] && GetPVarInt(playerid, "DuplicateKey") != CarData[vehicleid][carID])
- {
- if(CarEngine[vehicleid] && !PlayerData[playerid][pAdminDuty])
- return GameTextForPlayer(playerid, "~g~ENGINE IS ALREADY ON", 3000, 3);
-
- new
- idx;
-
- PlayerData[playerid][pUnscrambling] = true;
-
- idx = random(sizeof(g_aUnscrambleInfo));
- PlayerData[playerid][pUnscrambleID] = idx;
-
- switch(CarData[vehicleid][carImmob])
- {
- case 1: PlayerData[playerid][pUnscramblerTime] = 125;
- case 2: PlayerData[playerid][pUnscramblerTime] = 100;
- case 3: PlayerData[playerid][pUnscramblerTime] = 75;
- case 4: PlayerData[playerid][pUnscramblerTime] = 50;
- case 5: PlayerData[playerid][pUnscramblerTime] = 25;
- }
-
- PlayerData[playerid][pUnscrambleTimer] = SetTimerEx("OnPlayerUnscramble", 1000, true, "i", playerid);
-
- format(str, sizeof(str), "%s", g_aUnscrambleInfo[idx][scrambledWord]);
- PlayerTextDrawSetString(playerid, Unscrambler_PTD[playerid][3], str);
-
- format(str, sizeof(str), "%d", PlayerData[playerid][pUnscramblerTime]);
- PlayerTextDrawSetString(playerid, Unscrambler_PTD[playerid][5], str);
-
- ShowUnscrambleTextdraw(playerid);
-
- format(str, sizeof(str), "Started unscrambling VehicleDB %i", CarData[vehicleid][carID]);
- LogPlayerAction(playerid, str);
- return 1;
- }
- }
-
- if(CarEngine[vehicleid]) {
- CarEngine[vehicleid] = false;
- ToggleVehicleEngine(vehicleid, false);
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s stopped the engine of the %s.", ReturnName(playerid, 0), ReturnVehicleName(vehicleid));
- GameTextForPlayer(playerid, "~r~ENGINE OFF", 2000, 4);
- }
- else{
- CarEngine[vehicleid] = true;
- ToggleVehicleEngine(vehicleid, true);
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s started the engine of the %s.", ReturnName(playerid, 0), ReturnVehicleName(vehicleid));
- GameTextForPlayer(playerid, "~g~ENGINE ON", 2000, 4);
- }
- return 1;
- }
- CMD:uns(playerid, params[])return cmd_unscramble(playerid, params);
- CMD:unscramble(playerid, params[])
- {
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't driving a vehicle.");
-
- if(!PlayerData[playerid][pUnscrambling])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't hotwiring a vehicle.");
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /(uns)cramble [unscrambled word]");
-
- new
- displayString[60];
-
- if(!strcmp(g_aUnscrambleInfo[ PlayerData[playerid][pUnscrambleID] ][unscrambledWord], params, true))
- { //If the word is correct:
-
- PlayerData[playerid][pUnscrambleID] = random(sizeof(g_aUnscrambleInfo));
- //Find a new word to show the player;
-
- format(displayString, 60, "%s", g_aUnscrambleInfo[ PlayerData[playerid][pUnscrambleID] ][scrambledWord]);
- PlayerTextDrawSetString(playerid, Unscrambler_PTD[playerid][3], displayString);
- //Set the textdraws new word display;
-
- //Timer increases depending on alarm level:
- PlayerData[playerid][pUnscramblerTime] += 6;
- PlayerData[playerid][pScrambleSuccess]++;
-
- PlayerPlaySound(playerid, 1052, 0, 0, 0);
-
- if(PlayerData[playerid][pScrambleSuccess] >= 6)
- {
- PlayerData[playerid][pUnscrambling] = false;
- KillTimer(PlayerData[playerid][pUnscrambleTimer]);
-
- PlayerData[playerid][pUnscrambleID] = 0;
- PlayerData[playerid][pUnscramblerTime] = 0;
-
- PlayerData[playerid][pScrambleFailed] = 0;
- PlayerData[playerid][pScrambleSuccess] = 0;
-
- ShowUnscrambleTextdraw(playerid, false);
- GameTextForPlayer(playerid, "~g~ENGINE TURNED ON", 2000, 3);
-
- new vehicleid = GetPlayerVehicleID(playerid);
-
- CarEngine[vehicleid] = true;
- ToggleVehicleEngine(vehicleid, true);
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s started the engine of the %s.", ReturnName(playerid, 0), ReturnVehicleName(vehicleid));
- }
- }
- else
- {
- PlayerPlaySound(playerid, 1055, 0, 0, 0);
-
- PlayerData[playerid][pUnscrambleID] = random(sizeof(g_aUnscrambleInfo));
- //Find a new word to show the player;
-
- format(displayString, 60, "%s", g_aUnscrambleInfo[ PlayerData[playerid][pUnscrambleID] ][scrambledWord]);
- PlayerTextDrawSetString(playerid, Unscrambler_PTD[playerid][3], displayString);
-
- PlayerData[playerid][pScrambleFailed]++;
- PlayerData[playerid][pUnscramblerTime]-= random(6)+1;
-
- if(PlayerData[playerid][pScrambleFailed] >= 5)
- {
- PlayerData[playerid][pUnscrambling] = false;
- PlayerData[playerid][pUnscramblerTime] = 0;
- PlayerData[playerid][pUnscrambleID] = 0;
-
- PlayerData[playerid][pScrambleSuccess] = 0;
- PlayerData[playerid][pScrambleFailed] = 0;
- KillTimer(PlayerData[playerid][pUnscrambleTimer]);
-
- ShowUnscrambleTextdraw(playerid, false);
-
- new vehicleid = GetPlayerVehicleID(playerid);
-
- ToggleVehicleAlarms(vehicleid, true);
- NotifyVehicleOwner(vehicleid);
-
- ClearAnimations(playerid);
- }
- }
- return 1;
- }
- CMD:lights(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new vehicle = GetPlayerVehicleID(playerid);
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You're not in the driver's seat of a vehicle.");
- if(NoEngineCar(vehicle)) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} This vehicle doesn't have lights.");
- if(CarLights[vehicle]) {
- CarLights[vehicle] = false;
- ToggleVehicleLights(vehicle, false);
- }
- else {
- CarLights[vehicle] = true;
- ToggleVehicleLights(vehicle, true);
- }
- return true;
- }
- CMD:b(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pMuted])
- return SendClientMessage(playerid, -1, "You're muted.");
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /b [params]");
- if(PlayerData[playerid][pAdminDuty]){
- if(strlen(params) > 84)
- {
- SendNearbyMessage(playerid, 20.0, COLOR_GREY, "(( [%d] {FF9900}%s{AFAFAF}: %.84s", playerid, ReturnName(playerid, 1), params);
- SendNearbyMessage(playerid, 20.0, COLOR_GREY, "...%s ))", params[84]);
- }
- else
- {
- SendNearbyMessage(playerid, 20.0, COLOR_GREY, "(( [%d] {FF9900}%s{AFAFAF}: %s ))", playerid, ReturnName(playerid, 1), params);
- }
- }
- else{
- if(strlen(params) > 84)
- {
- SendNearbyMessage(playerid, 20.0, COLOR_GREY, "(( [%d] %s: %.84s", playerid, ReturnName(playerid, 1), params);
- SendNearbyMessage(playerid, 20.0, COLOR_GREY, "...%s ))", params[84]);
- }
- else
- {
- SendNearbyMessage(playerid, 20.0, COLOR_GREY, "(( [%d] %s: %s ))", playerid, ReturnName(playerid, 1), params);
- }
- }
- return true;
- }
- CMD:pm(playerid, params[])
- {
- new
- playerb,
- text[128],
- name_colorA[60],
- name_colorB[60];
-
- if(sscanf(params, "us[128]", playerb, text))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /pm [playerid/PartofName] [text]");
-
- if(playerid == playerb) return SendClientMessage(playerid, COLOR_ADM, "Heu, hue, heu, heu.");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid player.");
-
- if(TogglePMs[playerb] == 0) return SendClientMessage(playerid, COLOR_ADM, "ERROR: The player you are trying to PM has their PMs toggled!");
-
- if(PlayerData[playerid][pAdminDuty])
- format(name_colorA, 60, "{FF9900}%s", (isequal(PlayerData[playerid][pForumName], "-") ? sprintf("%s", ReturnName(playerid, 1)) : sprintf("%s", PlayerData[playerid][pForumName])));
- else format(name_colorA, 60, "%s", ReturnName(playerid));
-
- if(PlayerData[playerb][pAdminDuty])
- format(name_colorB, 60, "{FF9900}%s", (isequal(PlayerData[playerb][pForumName], "-") ? sprintf("%s", ReturnName(playerb, 1)) : sprintf("%s", PlayerData[playerb][pForumName])));
- else format(name_colorB, 60, "%s", ReturnName(playerb));
-
- if(PlayerData[playerb][pAdmin] && !PlayerData[playerid][pAdmin])
- {
- new bool:Confirmed;
-
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(CanPMAdmin[playerid][playerb] == 1)
- {
- Confirmed = true;
- }
- }
- if(!Confirmed)
- {
- format(PlayerData[playerid][pPMText], 128, "%s", text);
- PlayerData[playerid][pPMing] = playerb;
- return ShowPlayerDialog(playerid, DIALOG_ADMINPM, DIALOG_STYLE_MSGBOX, "Warning, you're PMing an admin", "Do not PM admins regarding admining, specifically not admins on adminduty.\n\nIf you got a problem with something all you got to do is make a /re and as soon as an admin finds free time to speak to\nyou about it, they will as it's their duty.", "Send", "Don't send");
- }
- }
-
- foreach(new i : Player)
- {
- if(PlayerData[i][pSpectator] == playerid)
- {
- Message(i, COLOR_PMSEN, "%s[%i] PM to %s[%i]: %s", name_colorA, playerid, name_colorB, playerb, text);
- }
- if(PlayerData[i][pSpectator] == playerb)
- {
- Message(i, COLOR_PMREC, "%s[%i] PM to %s[%i]: %s", name_colorA, playerid, name_colorB, playerb, text);
- }
- }
-
- if(strlen(text) > 75)
- {
- Message(playerid, COLOR_PMSEN, "(( PM to %s{EEE854}[%i]: %.75s... ))", name_colorB, playerb, text);
- Message(playerid, COLOR_PMSEN, "(( PM to %s{EEE854}[%i]: ...%s ))", name_colorB, playerb, text[75]);
-
- Message(playerb, COLOR_PMREC, "(( PM from %s{FFDC18}[%i]: %.75s... ))", name_colorA, playerid, text);
- Message(playerb, COLOR_PMREC, "(( PM from %s{FFDC18}[%i]: ...%s ))", name_colorA, playerid, text[75]);
- }
- else
- {
- Message(playerid, COLOR_PMSEN, "(( PM to %s{EEE854}[%i]: %s ))", name_colorB, playerb, text);
- Message(playerb, COLOR_PMREC, "(( PM from %s{FFDC18}[%i]: %s ))", name_colorA, playerid, text);
- }
- WriteLog("chat_logs/pm_log.txt", "[%s] %s PMed %s: %s.", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), text);
- return 1;
- }
- CMD:togglepm(playerid, params[]) return cmd_nopm(playerid, params);
- CMD:togpm(playerid, params[]) return cmd_nopm(playerid, params);
- CMD:nopm(playerid, params[])
- {
- if(!TogglePMs[playerid])
- {
- TogglePMs[playerid] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "You will now recieve private messages!");
- }
- else
- {
- TogglePMs[playerid] = 0;
- SendClientMessage(playerid, COLOR_YELLOW, "You will now no longer see private messages!");
- }
- return 1;
- }
- CMD:me(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /me [action message]");
- if(strlen(params) > 84)
- {
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s %.84s", ReturnName(playerid, 0), params);
- SendNearbyMessage(playerid, 30.0, COLOR_EMOTE, "...%s", params[84]);
- }
- else
- {
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s %s", ReturnName(playerid, 0), params);
- }
- PlayerData[playerid][pLastEmoteTime] = gettime();
- return true;
- }
- CMD:do(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /do [action message]");
- if(strlen(params) > 84)
- {
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %.84s", params);
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "...%s (( %s ))", params[84], ReturnName(playerid, 0));
- }
- else
- {
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s (( %s ))", params, ReturnName(playerid, 0));
- }
- PlayerData[playerid][pLastEmoteTime] = gettime();
- return true;
- }
- CMD:ame(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pBrutallyWounded]) return SendClientMessage(playerid, COLOR_ADM, "Annotatated emotes aren't possible while dead.");
- new string[128];
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /ame [action message]");
- format(string, sizeof(string), "* %s %s", ReturnName(playerid, 0), params);
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 25.0, 5000);
- format(string, sizeof(string), "> %s %s", ReturnName(playerid, 0), params);
- SendClientMessage(playerid, COLOR_EMOTE, string);
- PlayerData[playerid][pLastEmoteTime] = gettime();
- return true;
- }
- CMD:my(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /my [action message]");
-
- if(strlen(params) > 84)
- {
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s's %.84s", ReturnName(playerid, 0), params);
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "...%s", params[84]);
- }
- else
- {
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s's %s", ReturnName(playerid, 0), params);
- }
- PlayerData[playerid][pLastEmoteTime] = gettime();
- return true;
- }
- CMD:amy(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return true;
- if(PlayerData[playerid][pBrutallyWounded]) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Annotatated emotes aren't possible while dead.");
- new string[128];
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /amy [action message]");
- format(string, sizeof(string), "* %s's %s", ReturnName(playerid, 0), params);
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 25.0, 5000);
- format(string, sizeof(string), "> %s's %s", ReturnName(playerid, 0), params);
- SendClientMessage(playerid, COLOR_EMOTE, string);
- PlayerData[playerid][pLastEmoteTime] = gettime();
- return true;
- }
- CMD:s(playerid, params[]) return cmd_shout(playerid, params);
- CMD:shout(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pBrutallyWounded]) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't shout while brutally wounded.");
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /shout [params]");
-
- new string[128];
-
- format(string, sizeof(string), "Shouted: %s", params);
- LogPlayerChat(playerid, string);
- if(IsCaps(params))
- {
- if(strlen(params) > 84)
- {
- SendNearbyMessage(playerid, 45.0, COLOR_WHITE, "%s screams: %.84s", ReturnName(playerid, 0), params);
- SendNearbyMessage(playerid, 45.0, COLOR_WHITE, "...%s", params[84]);
- }
- else
- {
- SendNearbyMessage(playerid, 45.0, COLOR_WHITE, "%s screams: %s", ReturnName(playerid, 0), params);
- }
- }
- else
- {
- if(strlen(params) > 84)
- {
- SendNearbyMessage(playerid, 35.0, COLOR_WHITE, "%s shouts: %.84s", ReturnName(playerid, 0), params);
- SendNearbyMessage(playerid, 35.0, COLOR_WHITE, "...%s", params[84]);
- }
- else
- {
- SendNearbyMessage(playerid, 35.0, COLOR_WHITE, "%s shouts: %s", ReturnName(playerid, 0), params);
- }
- }
- return true;
- }
- CMD:mic(playerid, params[]) return cmd_microphone(playerid, params);
- CMD:microphone(playerid, params[]) {
- if (!pLoggedIn[playerid])
- return 1;
-
- new bizid = IsPlayerInBusiness(playerid);
- if (!bizid)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't in your business.");
- if (BusinessData[bizid][businessOwnerSQL] != PlayerData[playerid][pSQLID] && MicPerms[playerid] != BusinessData[bizid][businessID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this business or work for it.");
- if (isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /(mic)rophone [text]");
- foreach (new i : Player) {
- if (IsPlayerInBusiness(i) == bizid) {
- if (strlen(params) > 84) {
- SendClientMessage(i, COLOR_DARKGREEN, sprintf("[Microphone] %s: %.84s", ReturnName(playerid), params));
- SendClientMessage(i, COLOR_DARKGREEN, sprintf("[Microphone] %s: ..%s", ReturnName(playerid), params[84]));
- } else {
- SendClientMessage(i, COLOR_DARKGREEN, sprintf("[Microphone] %s: %s", ReturnName(playerid), params));
- }
- }
- }
- return 1;
- }
- CMD:micperms(playerid, params[]) return cmd_microphoneperms(playerid, params);
- CMD:microphoneperms(playerid, params[]) {
- if (!pLoggedIn[playerid])
- return 1;
-
- new bizid = IsPlayerInBusiness(playerid);
- if (!bizid)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't in your business.");
- if (BusinessData[bizid][businessOwnerSQL] != PlayerData[playerid][pSQLID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this business.");
-
- new playerb;
- if (sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /(mic)rophone(perms) [playerid/partOfName]");
- if (playerb == INVALID_PLAYER_ID)
- return SendClientMessage(playerid, COLOR_GREY, "65535 is an invalid player!");
- if (MicPerms[playerb] == 0) {
- if (!IsPlayerNearPlayer(playerid, playerb, 5.0))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You are too far away from that player!");
- MicPerms[playerb] = BusinessData[bizid][businessID];
- SendClientMessage(playerid, COLOR_YELLOW, sprintf("You have given %s mic perms!", ReturnName(playerb)));
- SendClientMessage(playerb, COLOR_YELLOW, sprintf("%s has given you mic perms!", ReturnName(playerid)));
- } else {
- MicPerms[playerb] = 0;
- SendClientMessage(playerid, COLOR_YELLOW, sprintf("You have taken away %s's mic perms!", ReturnName(playerb)));
- SendClientMessage(playerb, COLOR_YELLOW, sprintf("%s has taken away your mic perms!", ReturnName(playerid)));
- }
- return 1;
- }
- CMD:t(playerid, params[])
- {
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /t [text]");
-
- new string[128];
-
- if(PlayerData[playerid][pBrutallyWounded])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't do this right now.");
- if(strlen(params) > 99)
- {
- format (string, sizeof(string), "%s says: %.99s...", ReturnName(playerid, 0), params);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
-
- format (string, sizeof(string), "%s says: ... %s", ReturnName(playerid, 0), params[99]);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
- else
- {
- format (string, sizeof(string), "%s says: %s", ReturnName(playerid, 0), params);
- LocalChat(playerid, 20.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
-
- return 1;
- }
- CMD:low(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new string[128];
-
- if(PlayerData[playerid][pBrutallyWounded] && PlayerData[playerid][pBrutallyWounded] != 1 )return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't do this right now.");
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /low [low text]");
-
- if(PlayerData[playerid][pPhoneline] != INVALID_PLAYER_ID && !PlayerData[playerid][pCalling])
- {
- new playerb = PlayerData[playerid][pPhoneline];
-
- if(strlen(params) > 99)
- {
- format (string, sizeof(string), "%s says (phone): %.99s...", ReturnName(playerid, 0), params);
- LocalChat(playerid, 3.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
-
- if(!PlayerData[ playerb ][pLoudspeaker])
- SendClientMessage(playerb, COLOR_YELLOW, string);
-
- else LocalChat(playerb, 4.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
-
- format (string, sizeof(string), "%s says[low] (phone): ... %s", ReturnName(playerid, 0), params[99]);
- LocalChat(playerid, 3.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
-
- if(!PlayerData[ playerb ][pLoudspeaker])
- SendClientMessage(playerb, COLOR_YELLOW, string);
-
- else LocalChat(playerb, 4.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
- else
- {
- format (string, sizeof(string), "%s says[low] (phone): %s", ReturnName(playerid, 0), params);
- LocalChat(playerid, 3.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
-
- if(!PlayerData[ playerb ][pLoudspeaker])
- SendClientMessage(playerb, COLOR_YELLOW, string);
-
- else LocalChat(playerb, 4.0, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
- }
- }
- else
- {
- if (strlen(params) > 99)
- {
- format (string, sizeof(string), "%s says [low]: %.99s...", ReturnName(playerid, 0), params);
- LocalChat(playerid, 6.0, string, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5, COLOR_FADE5);
-
- format (string, sizeof(string), "%s says: ... %s", ReturnName(playerid, 0), params[99]);
- LocalChat(playerid, 6.0, string, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5, COLOR_FADE5);
- }
- else
- {
- format (string, sizeof(string), "%s says [low]: %s", ReturnName(playerid, 0), params);
- LocalChat(playerid, 6.0, string, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5, COLOR_FADE5);
- }
- }
-
- format(string, sizeof(string), "Low: %s", params);
- LogPlayerChat(playerid, string);
-
- if(GetPlayerTeam(playerid)==STATE_ALIVE && PlayerData[playerid][pPhoneline] == INVALID_PLAYER_ID)
- ReturnChatAnimation(playerid, params);
- return true;
- }
- CMD:w(playerid, params[]) return cmd_whisper(playerid, params);
- CMD:whisper(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new playerb, text[128], string[128];
-
- if(GetPlayerTeam(playerid) != STATE_ALIVE && GetPlayerTeam(playerid) == STATE_DEAD)
- return SendClientMessage(playerid, COLOR_ADM, "You can't whisper while dead.");
- if(sscanf(params, "us[128]", playerb, text))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /(w)hisper [playerid/PartofName] [whisper text]");
- if(playerb == playerid) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't whisper to yourself.");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You have specified an invalid player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player isn't logged in.");
- if(!GetDistanceBetweenPlayers(playerid, playerb, 4.5)) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You must be closer to that player to whisper.");
-
- foreach(new i : Player)
- {
- if(PlayerData[i][pSpectator] == playerid)
- {
- Message(i, COLOR_YELLOW, "%s whispered to %s: %s", ReturnName(playerid), ReturnName(playerb), params);
- }
- }
- format(string, sizeof(string), "%s whispered: %s", ReturnName(playerid, 0), text);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "%s whispered: %s", ReturnName(playerid, 0), text);
- SendClientMessage(playerb, COLOR_YELLOW, string);
- format(string, sizeof(string), "* %s mutters something.", ReturnName(playerid, 0));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 25.0, 5000);
-
- format(string, sizeof(string), "Whispered to %s: %s", ReturnName(playerb), text);
- LogPlayerChat(playerid, string);
- WriteLog("chat_logs/whisper_log.txt", "[%s] %s whispered to %s: %s", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), text);
- return true;
- }
- CMD:rcp(playerid, params[]) return cmd_removecp(playerid, params);
- CMD:removecp(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- DisablePlayerCheckpoint(playerid);
- PlayerData[playerid][pCheckpoint] = 0;
- return true;
- }
- CMD:mask(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pMask] && PlayerData[playerid][pDonator] < 2 && !PlayerData[playerid][pLAWduty] && !PlayerData[playerid][pAdmin])return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't have a mask.");
- if(PlayerData[playerid][pMasked] == 1){
- foreach(new i : Player){
- ShowPlayerNameTagForPlayer(i, playerid, 1);
- }
- GameTextForPlayer(playerid, "~p~YOUR MASK IS NOW OFF", 2000, 5);
- PlayerData[playerid][pMasked] = false;
- }
- else{
- foreach(new i : Player){
- if(!PlayerData[i][pAdminDuty]){
- ShowPlayerNameTagForPlayer(i, playerid, 0);
- }
- }
- GameTextForPlayer(playerid, "~p~YOUR MASK IS NOW ON", 2000, 5);
- PlayerData[playerid][pMasked] = true;
- }
- return true;
- }
- CMD:damages(playerid, params[])
- {
- new playerb;
-
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /damages [playerid/PartofName]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You have specified an invalid player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player isn't logged in.");
- if(PlayerData[playerid][pAdminDuty])
- {
- ReturnDamagesAdmin(playerb, playerid);
- }
- else {
- if(!GetDistanceBetweenPlayers(playerid, playerb, 4.5)) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You must be closer to that player.");
- ReturnDamages(playerb, playerid);
- }
-
- return true;
- }
- CMD:setslot(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new string[128], slotid;
-
- if(!PlayerData[playerid][pHasRadio])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a radio.");
- if(sscanf(params, "d", slotid))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setslot [slotid]");
- if(slotid < 1 || slotid > 5)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Slot IDs must be between 1 and 5.");
-
- format(string, sizeof(string), "Local channel on the radio set to %d!", slotid);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- PlayerData[playerid][pMainSlot] = slotid;
- return true;
- }
- CMD:setchannel(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return true;
-
- new channel, slotid, string[128], query[90];
-
- if(!PlayerData[playerid][pHasRadio])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a radio.");
- if(sscanf(params, "dd", channel, slotid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setchannel [frequency] [slotid]");
- if(channel < 1 || channel > 1000000)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Only channels 1 - 1000000 are supported.");
- if(slotid < 1 || slotid > 5)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Slot IDs must be between 1 and 5.");
-
- for(new i = 0; i < 5; i++) {
- if(PlayerData[playerid][pRadio][i] == channel){
- SendClientMessage(playerid, COLOR_YELLOW, "One of your slots already supports this channel.");
- return true;
- }
- }
-
- if (channel == 911 || channel == 1000 || channel == 1001 || channel == 1002 || channel == 1003 || channel == 1004 || channel == 1005 || channel == 1006 || channel == 1007){
- if(!FactionData[PlayerData[playerid][pFaction]][factionCopPerms]) return SendClientMessage(playerid, COLOR_ADM, "This channel is forbidden to the public.");
-
- PlayerData[playerid][pRadio][slotid - 1] = channel;
- PlayerData[playerid][pRadioSlot][slotid - 1] = channel;
-
- format(string, sizeof(string), "You will now be listening to channel %i under slot %d.", channel, slotid);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET Radio%d = %i WHERE id = %i", slotid, PlayerData[playerid][pRadio][slotid], PlayerData[playerid][pSQLID]);
- mysql_pquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET Slot%d = %i WHERE id = %i", slotid, PlayerData[playerid][pRadioSlot][slotid], PlayerData[playerid][pSQLID]);
- mysql_pquery(m_Handle, query);
- }
- else if (channel == 912 || channel == 1100 || channel == 1101 || channel == 1102 || channel == 1103 || channel == 1104 || channel == 1105)
- {
- if(!IsMedicFaction(playerid)) return SendClientMessage(playerid, COLOR_ADM, "This channel is forbidden to the public.");
-
- PlayerData[playerid][pRadio][slotid - 1] = channel;
- PlayerData[playerid][pRadioSlot][slotid - 1] = channel;
-
- format(string, sizeof(string), "You will now be listening to channel %i under slot %d.", channel, slotid);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET Radio%d = %i WHERE id = %i", slotid, PlayerData[playerid][pRadio][slotid], PlayerData[playerid][pSQLID]);
- mysql_pquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET Slot%d = %i WHERE id = %i", slotid, PlayerData[playerid][pRadioSlot][slotid], PlayerData[playerid][pSQLID]);
- mysql_pquery(m_Handle, query);
- }
- else if (channel == 261) {
- if(!IsNewsFaction(playerid)) return SendClientMessage(playerid, COLOR_ADM, "This channel is forbidden to the public.");
-
- PlayerData[playerid][pRadio][slotid - 1] = channel;
- PlayerData[playerid][pRadioSlot][slotid - 1] = channel;
-
- format(string, sizeof(string), "You will now be listening to channel %i under slot %d.", channel, slotid);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET Radio%d = %i WHERE id = %i", slotid, PlayerData[playerid][pRadio][slotid], PlayerData[playerid][pSQLID]);
- mysql_pquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET Slot%d = %i WHERE id = %i", slotid, PlayerData[playerid][pRadioSlot][slotid], PlayerData[playerid][pSQLID]);
- mysql_pquery(m_Handle, query);
- }
- else {
- PlayerData[playerid][pRadio][slotid - 1] = channel;
- PlayerData[playerid][pRadioSlot][slotid - 1] = channel;
-
- format(string, sizeof(string), "You will now be listening to channel %d under slot %d.", channel, slotid);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET Radio%d = %i WHERE id = %i", slotid, PlayerData[playerid][pRadio][slotid], PlayerData[playerid][pSQLID]);
- mysql_pquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET Slot%d = %i WHERE id = %i", slotid, PlayerData[playerid][pRadioSlot][slotid], PlayerData[playerid][pSQLID]);
- mysql_pquery(m_Handle, query);
-
- }
- return true;
- }
- CMD:r(playerid, params[])return cmd_radio(playerid, params);
- CMD:radio(playerid, params[])
- {
- if (!PlayerData[playerid][pHasRadio])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a radio.");
-
- if(!PlayerData[playerid][pRadio][(PlayerData[playerid][pMainSlot] - 1)])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in a radio channel.");
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /r [text] {FF6346},{FFFFFF} /rlow [text] {FF6346},{FFFFFF} /r[ch] [text] {FF6346}or{FFFFFF} /r[ch]low ");
-
- new string[128], radioChan = PlayerData[playerid][pRadio][(PlayerData[playerid][pMainSlot] - 1)], Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- foreach (new i : Player)
- {
- for (new s = 0; s < 5 ; s ++)
- {
- if (PlayerData[i][pRadio][s] == radioChan && PlayerData[i][pHasRadio])
- {
- if (s != (PlayerData[i][pMainSlot] - 1))
- {
- if(strlen(params) > 75)
- {
- format (string, sizeof(string), "**[CH: %d, S: %d] %s says: %.75s...", PlayerData[i][pRadio][s], GetChannelSlot(i, radioChan), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_RADIOEX, string);
-
- format (string, sizeof(string), "**[CH: %d, S: %d] %s says: ...%s", PlayerData[i][pRadio][s], GetChannelSlot(i, radioChan), ReturnName(playerid, 0), params[75]);
- SendClientMessage(i, COLOR_RADIOEX, string);
- }
- else
- {
- format (string, sizeof(string), "**[CH: %d, S: %d] %s says: %s", PlayerData[i][pRadio][s], GetChannelSlot(i, radioChan), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_RADIOEX, string);
- }
- }
- else
- {
- if(strlen(params) > 75)
- {
- format (string, sizeof(string), "**[CH: %d, S: %d] %s says: %.75s...", PlayerData[i][pRadio][s], GetChannelSlot(i, radioChan), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_RADIO, string);
-
- format (string, sizeof(string), "**[CH: %d, S: %d] %s says: ...%s", PlayerData[i][pRadio][s], GetChannelSlot(i, radioChan), ReturnName(playerid, 0), params[75]);
- SendClientMessage(i, COLOR_RADIO, string);
- }
- else
- {
- format (string, sizeof(string), "**[CH: %d, S: %d] %s says: %s", PlayerData[i][pRadio][s], GetChannelSlot(i, radioChan), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_RADIO, string);
- }
- }
- }
- }
- if (i == playerid) continue;
- if(IsPlayerInRangeOfPoint(i, 20.0, x, y, z))
- {
- format(string, sizeof(string), "(Radio) %s says: %s", ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_FADE1, string);
- }
- }
-
- return true;
- }
- CMD:rlow(playerid, params[])return cmd_radio(playerid, params);
- CMD:radiolow(playerid, params[])
- {
- if (!PlayerData[playerid][pHasRadio])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a radio.");
-
- if(!PlayerData[playerid][pRadio][(PlayerData[playerid][pMainSlot] - 1)])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in a radio channel.");
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /r [text] {FF6346},{FFFFFF} /rlow [text] {FF6346},{FFFFFF} /r[ch] [text] {FF6346}or{FFFFFF} /r[ch]low ");
-
- new string[128], radioChan = PlayerData[playerid][pRadio][(PlayerData[playerid][pMainSlot] - 1)];
-
- foreach (new i : Player)
- {
- for (new s = 0; s < 5 ; s ++)
- {
- if (PlayerData[i][pRadio][s] == radioChan && PlayerData[i][pHasRadio])
- {
- if (s != (PlayerData[i][pMainSlot] - 1))
- {
- format (string, sizeof(string), "**[CH: %d, S: %d] %s says: %s", PlayerData[i][pRadio][s], GetChannelSlot(i, radioChan), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_RADIOEX, string);
- }
- else
- {
- format (string, sizeof(string), "**[CH: %d, S: %d] %s says: %s", PlayerData[i][pRadio][s], GetChannelSlot(i, radioChan), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_RADIO, string);
- }
- }
- }
- }
-
- new Float:posx, Float:posy, Float:posz;
- GetPlayerPos(playerid, posx,posy,posz);
- foreach(new i : Player)
- {
- if(i == playerid)
- continue;
- else if(IsPlayerInRangeOfPoint(i, 5.0, posx,posy,posz))
- {
- format(string, sizeof(string), "(Radio) %s says[Low]: %s", ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_FADE1, string);
- }
- }
-
-
- return true;
- }
- CMD:r1(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new string[128];
-
- if(!PlayerData[playerid][pHasRadio])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a radio.");
- if(!PlayerData[playerid][pRadio][0])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in a radio channel.");
- if(isnull(params))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /radio [radio text]");
-
- new chan;
- chan = PlayerData[playerid][pRadio][0];
-
- foreach(new i : Player){
- for(new r = 0; r < 5; r++){
- if(PlayerData[i][pRadio][r] == PlayerData[playerid][pRadio][0] && PlayerData[i][pHasRadio]){
- if(r != (PlayerData[i][pMainSlot] - 1)){
- format(string, sizeof(string), "**[CH: %d, S: %d] %s says: %s", PlayerData[playerid][pRadio][0], GetChannelSlot(i, chan), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_RADIOEX, string);
- }
- else{
- format(string, sizeof(string), "**[CH: %d, S: %d] %s says: %s", PlayerData[playerid][pRadio][0], GetChannelSlot(i, chan), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_RADIO, string);
- }
- }
- }
- }
-
- new Float:posx, Float:posy, Float:posz;
- GetPlayerPos(playerid, posx,posy,posz);
- foreach(new i : Player)
- {
- if(i == playerid)
- continue;
- else if(IsPlayerInRangeOfPoint(i, 20.0, posx,posy,posz))
- {
- format(string, sizeof(string), "(Radio) %s says: %s", ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_WHITE, string);
- }
- }
-
- return true;
- }
- CMD:r2(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new string[128];
-
- if(!PlayerData[playerid][pHasRadio])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a radio.");
- if(!PlayerData[playerid][pRadio][1])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in a radio channel.");
- if(isnull(params))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /radio [radio text]");
-
- new chan;
- chan = PlayerData[playerid][pRadio][1];
-
- foreach(new i : Player){
- for(new r = 0; r < 5; r++){
- if(PlayerData[i][pRadio][r] == PlayerData[playerid][pRadio][1] && PlayerData[i][pHasRadio]){
- if(r != (PlayerData[i][pMainSlot] - 1)){
- format(string, sizeof(string), "**[CH: %d, S: %d] %s says: %s", PlayerData[playerid][pRadio][1], GetChannelSlot(i, chan), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_RADIOEX, string);
- }
- else{
- format(string, sizeof(string), "**[CH: %d, S: %d] %s says: %s", PlayerData[playerid][pRadio][1], GetChannelSlot(i, chan), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_RADIO, string);
- }
- }
- }
- }
-
- new Float:posx, Float:posy, Float:posz;
- GetPlayerPos(playerid, posx,posy,posz);
- foreach(new i : Player)
- {
- if(i == playerid)
- continue;
- else if(IsPlayerInRangeOfPoint(i, 20.0, posx,posy,posz))
- {
- format(string, sizeof(string), "(Radio) %s says: %s", ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_WHITE, string);
- }
- }
-
- return true;
- }
- CMD:r3(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new string[128];
-
- if(!PlayerData[playerid][pHasRadio])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a radio.");
- if(!PlayerData[playerid][pRadio][2])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in a radio channel.");
- if(isnull(params))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /radio [radio text]");
-
- new chan;
- chan = PlayerData[playerid][pRadio][2];
-
- foreach(new i : Player){
- for(new r = 0; r < 5; r++){
- if(PlayerData[i][pRadio][r] == PlayerData[playerid][pRadio][2] && PlayerData[i][pHasRadio]){
- if(r != (PlayerData[i][pMainSlot] - 1)){
- format(string, sizeof(string), "**[CH: %d, S: %d] %s says: %s", PlayerData[playerid][pRadio][2], GetChannelSlot(i, chan), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_RADIOEX, string);
- }
- else{
- format(string, sizeof(string), "**[CH: %d, S: %d] %s says: %s", PlayerData[playerid][pRadio][2], GetChannelSlot(i, chan), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_RADIO, string);
- }
- }
- }
- }
-
- new Float:posx, Float:posy, Float:posz;
- GetPlayerPos(playerid, posx,posy,posz);
- foreach(new i : Player)
- {
- if(i == playerid)
- continue;
- else if(IsPlayerInRangeOfPoint(i, 20.0, posx,posy,posz))
- {
- format(string, sizeof(string), "(Radio) %s says: %s", ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_WHITE, string);
- }
- }
-
- return true;
- }
- CMD:r4(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new string[128];
-
- if(!PlayerData[playerid][pHasRadio])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a radio.");
- if(!PlayerData[playerid][pRadio][3])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in a radio channel.");
- if(isnull(params))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /radio [radio text]");
-
- new chan;
- chan = PlayerData[playerid][pRadio][3];
-
- foreach(new i : Player){
- for(new r = 0; r < 5; r++){
- if(PlayerData[i][pRadio][r] == PlayerData[playerid][pRadio][3] && PlayerData[i][pHasRadio]){
- if(r != (PlayerData[i][pMainSlot] - 1)){
- format(string, sizeof(string), "**[CH: %d, S: %d] %s says: %s", PlayerData[playerid][pRadio][3], GetChannelSlot(i, chan), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_RADIOEX, string);
- }
- else{
- format(string, sizeof(string), "**[CH: %d, S: %d] %s says: %s", PlayerData[playerid][pRadio][3], GetChannelSlot(i, chan), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_RADIO, string);
- }
- }
- }
- }
-
- new Float:posx, Float:posy, Float:posz;
- GetPlayerPos(playerid, posx,posy,posz);
- foreach(new i : Player)
- {
- if(i == playerid)
- continue;
- else if(IsPlayerInRangeOfPoint(i, 20.0, posx,posy,posz))
- {
- format(string, sizeof(string), "(Radio) %s says: %s", ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_WHITE, string);
- }
- }
-
- return true;
- }
- CMD:r5(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new string[128];
-
- if(!PlayerData[playerid][pHasRadio])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a radio.");
- if(!PlayerData[playerid][pRadio][4])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in a radio channel.");
- if(isnull(params))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /radio [radio text]");
-
- new chan;
- chan = PlayerData[playerid][pRadio][4];
-
- foreach(new i : Player){
- for(new r = 0; r < 5; r++){
- if(PlayerData[i][pRadio][r] == PlayerData[playerid][pRadio][4] && PlayerData[i][pHasRadio]){
- if(r != (PlayerData[i][pMainSlot] - 1)){
- format(string, sizeof(string), "**[CH: %d, S: %d] %s says: %s", PlayerData[playerid][pRadio][4], GetChannelSlot(i, chan), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_RADIOEX, string);
- }
- else{
- format(string, sizeof(string), "**[CH: %d, S: %d] %s says: %s", PlayerData[playerid][pRadio][4], GetChannelSlot(i, chan), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_RADIO, string);
- }
- }
- }
- }
-
- new Float:posx, Float:posy, Float:posz;
- GetPlayerPos(playerid, posx,posy,posz);
- foreach(new i : Player)
- {
- if(i == playerid)
- continue;
- else if(IsPlayerInRangeOfPoint(i, 20.0, posx,posy,posz))
- {
- format(string, sizeof(string), "(Radio) %s says: %s", ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_WHITE, string);
- }
- }
-
- return true;
- }
- CMD:partradio(playerid, params[]) return cmd_partr(playerid, params);
- CMD:partr(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new string[128], slotid;
-
- if(!PlayerData[playerid][pHasRadio])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a radio.");
- if(sscanf(params, "d", slotid))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /partradio [slotid]");
- if(slotid < 1 || slotid > 5)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Slot IDs must be between 1 and 5.");
-
- PlayerData[playerid][pRadio][slotid - 1] = 0;
- PlayerData[playerid][pRadioSlot][slotid - 1] = 0;
-
- format(string, sizeof(string), "You parted from the radio slotid %d.", slotid);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- return true;
- }
- CMD:radiohelp(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new string[128];
-
- new slot1 = PlayerData[playerid][pRadio][0];
- new slot2 = PlayerData[playerid][pRadio][1];
- new slot3 = PlayerData[playerid][pRadio][2];
- new slot4 = PlayerData[playerid][pRadio][3];
- new slot5 = PlayerData[playerid][pRadio][4];
-
-
- SendClientMessage(playerid, COLOR_DARKGREEN, "|__________________Radio Help_________________|");
- SendClientMessage(playerid, COLOR_YELLOW, "HINT: You can buy a radio in 24-7's!");
- SendClientMessage(playerid, COLOR_WHITE, "/setchannel - Sets which channel you want on which slot.");
- SendClientMessage(playerid, COLOR_WHITE, "/setslot - Set your main slot, the one you're currently responding too.");
- SendClientMessage(playerid, COLOR_WHITE, "/r - Talk over your channel. {FFFF00}HINT: You may do /r2, /r3, /r4, /r5 for slots.");
- SendClientMessage(playerid, COLOR_WHITE, "/partr [slotid] - Part from the radio channel in that slot.");
- format(string, sizeof(string), "Your current channels:{33AA33}[Slot 1: %d][Slot 2: %d][Slot 3: %d][Slot 4: %d][Slot 5: %d]", slot1, slot2, slot3, slot4, slot5);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- return true;
- }
- CMD:frisk(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new playerb, string[128];
-
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /frisk [playerid/PartofName]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You have specified an invalid player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player isn't logged in.");
- if(!GetDistanceBetweenPlayers(playerid, playerb, 4.5)) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You must be closer to that player.");
-
- if(GetPlayerSpecialAction(playerb) == SPECIAL_ACTION_HANDSUP){
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s examines %s for any illegal items.", ReturnName(playerid, 0), ReturnName(playerb, 0));
- ReturnFriskData(playerid, playerb);
- }
- else{
- if(PlayerData[playerid][pFrisking] == playerb && PlayerData[playerid][pAllowedFrisk] == playerb){
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s examines %s for any illegal items.", ReturnName(playerid, 0), ReturnName(playerb, 0));
- ReturnFriskData(playerid, playerb);
-
- PlayerData[playerid][pAllowedFrisk] = -1;
- PlayerData[playerid][pFrisking] = -1;
- PlayerData[playerb][pFriskRequest] = -1;
- }
- else{
- format(string, sizeof(string), "SERVER: ID %d attempted to frisk you. You'll need to /friskapprove %d to comply.", playerid, playerid);
- SendClientMessage(playerb, COLOR_YELLOW, string);
- SendClientMessage(playerid, COLOR_ADM, "SERVER: That player will have to /friskapprove your ID prior to frisk.");
-
- PlayerData[playerid][pFrisking] = playerb;
- PlayerData[playerb][pFriskRequest] = playerid;
- }
- }
-
- return true;
- }
- CMD:friskapprove(playerid, params[])
- {
- new string[128], playerb;
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /frisk [playerid/PartofName]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You have specified an invalid player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player isn't logged in.");
- if(!GetDistanceBetweenPlayers(playerid, playerb, 4.5)) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You must be closer to that player.");
-
- format(string, sizeof(string), "SERVER: %s allowed you to frisk them, you may use /frisk %d.", ReturnName(playerid, 0), playerid);
- SendClientMessage(playerb, COLOR_YELLOW, string);
-
- format(string, sizeof(string), "SERVER: You've allowed %s to frisk you.", ReturnName(playerb, 0));
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- PlayerData[playerb][pAllowedFrisk] = playerid;
- PlayerData[playerid][pFriskRequest] = -1;
- return true;
- }
- CMD:weapons(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_ADM, "To throw away a weapon, type /dropgun [weapon ID]");
-
- for(new i = 0; i < MAX_POSSIBLE_WEAPONS; i++) if(Weapon[playerid][i][eWeaponAmmo] > 0)
- Message(playerid, COLOR_WHITE, "[ID: %i] %s - Ammo: %i", Weapon[playerid][i][eWeaponID], ReturnWeaponName(Weapon[playerid][i][eWeaponID]), Weapon[playerid][i][eWeaponAmmo]);
-
- return true;
- }
- CMD:lg(playerid, params[])return cmd_leavegun(playerid, params);
- CMD:leavegun(playerid, params[])
- {
- new
- weapon_id,
- idx = -1,
- str[128]
- ;
-
- if(sscanf(params, "i", weapon_id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /leavegun [weapon id]");
-
- if(weapon_id < 1 || weapon_id > 46 || weapon_id == 35 || weapon_id == 36 || weapon_id == 37 || weapon_id == 38 || weapon_id == 39)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You have specified an invalid weapon id.");
-
- if(!PlayerHasWeapon(playerid, weapon_id) || PlayerHasWeapon(playerid, weapon_id) && !IsSaveableWeapon(playerid, weapon_id))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't have this weapon or can't drop it.");
-
- for(new i = 0; i < sizeof DropData; i++) if(!DropData[i][eWeaponDropped])
- {
- idx = i;
- break;
- }
-
- if(idx == -1)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: It appears dropping weapons isn't possible right now.");
- if (Weapon[playerid][GetWeaponIndex(weapon_id)][eWeaponCCW])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: This weapon cannot be dropped.");
-
- if(IsPlayerAttachedObjectSlotUsed(playerid, ReturnWeaponsSlot(weapon_id)))
- RemovePlayerAttachedObject(playerid, ReturnWeaponsSlot(weapon_id));
-
- PauseAntiCheat(playerid);
-
- GetPlayerPos(playerid, DropData[idx][eWeaponPos][0], DropData[idx][eWeaponPos][1], DropData[idx][eWeaponPos][2]);
- DropData[idx][eWeaponInterior] = GetPlayerInterior(playerid);
- DropData[idx][eWeaponWorld] = GetPlayerVirtualWorld(playerid);
-
- DropData[idx][eDropWeaponID] = weapon_id;
- DropData[idx][eDropWeaponAmmo] = ReturnWeaponAmmo(playerid, weapon_id);
-
- DropData[idx][eWeaponDroppedBy] = PlayerData[playerid][pSQLID];
- DropData[idx][eWeaponDropped] = true;
-
- DropData[idx][eWeaponTimer] = SetTimerEx("OnPlayerLeaveGun", 600000, false, "i", idx);
- DropData[idx][eWeaponObject] = CreateDynamicObject(ReturnWeaponsModel(weapon_id), DropData[idx][eWeaponPos][0], DropData[idx][eWeaponPos][1], DropData[idx][eWeaponPos][2] - 1, 80.0, 0.0, 0.0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
-
- format(str, sizeof(str), "Left %s (%d) on floor (Drop index: %i)", ReturnWeaponName(weapon_id), ReturnWeaponAmmo(playerid, weapon_id), idx);
- LogPlayerAction(playerid, str);
-
- format(str, sizeof(str), "* %s left their %s on the floor.", ReturnName(playerid, 0), ReturnWeaponName(weapon_id));
- SetPlayerChatBubble(playerid, str, COLOR_EMOTE, 20.0, 2000);
-
- SendClientMessage(playerid, COLOR_ADM, "[ ! ] Your weapon will disappear in 10 minutes. /gg to pick it up.");
- WriteLog("weapon_logs/leave_gun.txt", "[%s] %s left a %s and %d Ammo.", ReturnDate(), ReturnName(playerid, 1), ReturnWeaponName(weapon_id), ReturnWeaponAmmo(playerid, weapon_id));
-
- TakePlayerWeapon(playerid, weapon_id);
- return true;
- }
- CMD:gg(playerid, params[])return cmd_grabgun(playerid, params);
- CMD:grabgun(playerid, params[])
- {
- new
- str[128],
- idx;
-
- if((idx = IsPlayerNearDroppedWeapon(playerid)) != -1)
- {
- if(PlayerHasWeapon(playerid, DropData[idx][eDropWeaponID]))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You already have this weapon.");
-
- GivePlayerGun(playerid, DropData[idx][eDropWeaponID], DropData[idx][eDropWeaponAmmo], DropData[idx][eWeaponDroppedBy]);
-
- format(str, sizeof(str), "Picked up %s (%d) from floor (Drop index: %i)", ReturnWeaponName(DropData[idx][eDropWeaponID]), DropData[idx][eDropWeaponAmmo], idx);
- LogPlayerAction(playerid, str);
-
- format(str, sizeof(str), "* %s picks up a %s.", ReturnName(playerid, 0), ReturnWeaponName(DropData[idx][eDropWeaponID]));
- SetPlayerChatBubble(playerid, str, COLOR_EMOTE, 20.0, 3000);
-
- Message(playerid, COLOR_ADM, "[ ! ]{FFFFFF} You picked up a %s and %d Ammo.", ReturnWeaponName(DropData[idx][eDropWeaponID]), DropData[idx][eDropWeaponAmmo]);
- WriteLog("weapon_logs/grab_gun.txt", "[%s] %s picked up a %s and %d Ammo dropped by %s.", ReturnDate(), ReturnName(playerid), ReturnWeaponName(DropData[idx][eDropWeaponID]), DropData[idx][eDropWeaponAmmo], ReturnSQLName(DropData[idx][eWeaponDroppedBy]));
-
- ClearDroppedWeapon(idx);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near a dropped weapon.");
- return true;
- }
- CMD:checkserial(playerid, params[]) {
- if (!IsPoliceFaction(playerid))
- return UnAuthMessage(playerid);
- new weapon_id;
- if(sscanf(params, "i", weapon_id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /checkserial [weapon id]");
-
- if(weapon_id < 1 || weapon_id > 46 || weapon_id == 35 || weapon_id == 36 || weapon_id == 37 || weapon_id == 38 || weapon_id == 39)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You have specified an invalid weapon id.");
- if(!PlayerHasWeapon(playerid, weapon_id) || PlayerHasWeapon(playerid, weapon_id) && !IsSaveableWeapon(playerid, weapon_id))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't have this weapon or can't drop it.");
- new weapon = Weapon[playerid][GetWeaponIndex(weapon_id)][eWeaponSerial], query[128];
- if (weapon == -1)
- return SendClientMessage(playerid, COLOR_YELLOW, "This weapon is not traceable!");
- mysql_format(m_Handle, query, sizeof query, "SELECT * FROM players WHERE id = %i", weapon);
- new Cache:res = mysql_query(m_Handle, query), name[MAX_PLAYER_NAME + 8];
- if (cache_num_rows()) {
- cache_get_value_name(0, "Name", name, sizeof name);
- } else {
- format(name, sizeof name, "Unknown");
- }
- cache_delete(res);
- SendClientMessage(playerid, COLOR_YELLOW, sprintf("This weapon serial number is %d, owned by %s.", weapon, name));
- return 1;
- }
- /*CMD:dctoggle(playerid, params[])
- {
- if(PlayerData[playerid][pDonator] < 2 && !PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- if(!PlayerData[playerid][pDCToggled])
- {
- PlayerData[playerid][pDCToggled] = 1;
- SendClientMessage(playerid, 0xB8860BAA, "You disabled your donator chat.");
- }
- else
- {
- PlayerData[playerid][pDCToggled] = 0;
- SendClientMessage(playerid, 0xB8860BAA, "You enabled your donator chat.");
- }
- return 1;
- }*/
- /*CMD:dc(playerid, params[])
- {
- if(PlayerData[playerid][pDonator] < 2 && !PlayerData[playerid][pAdmin])
- return UnAuthMessage(playerid);
-
- if(PlayerData[playerid][pDCToggled])
- return SendClientMessage(playerid, 0xB8860BAA, "Your donator chat is disabled right now.");
-
- foreach(new i : Player)
- {
- if(PlayerData[i][pDonator] > 1 || PlayerData[i][pAdmin])
- {
- if(!PlayerData[i][pDCToggled])
- {
- if(strlen(params) > 80)
- {
- Message(i, 0xB8860BAA, "[Donator] %s (Level %d): %.80s", ReturnName(playerid), PlayerData[playerid][pDonator], params);
- Message(i, 0xB8860BAA, "[Donator] %s (Level %d): ...%s", ReturnName(playerid), PlayerData[playerid][pDonator], params[80]);
- }
- else Message(i, 0xB8860BAA, "[Donator] %s (Level %d): %s", ReturnName(playerid), PlayerData[playerid][pDonator], params);
- }
- }
- }
- return 1;
- }*/
- CMD:setstyle(playerid, params[])
- {
- new styleid, pickid;
-
- if(sscanf(params, "iI(-1)", styleid, pickid)) {
- SendClientMessage(playerid, COLOR_ADM, "1 - Walk Style | 2 - Chat Style | 3 - Fightstyle");
- SendClientMessage(playerid, COLOR_ADM, "4 - HUD Style");
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setstyle [StyleID]");
- return true;
- }
-
- switch(styleid){
- case 1: {
- if(pickid == -1){
- SendClientMessage(playerid, COLOR_WHITE, "Walk Styles: 0 1 2 3 4");
- SendClientMessage(playerid, COLOR_WHITE, "Walk Styles: 5 6 7 8 9");
- SendClientMessage(playerid, COLOR_DARKGREEN, "USAGE: /setstyle 1 [StyleID]");
- return 1;
- }
-
- if(pickid != -1 && pickid < 0 || pickid > 9)
- return SendClientMessage(playerid, COLOR_ADM, "You specified an invalid walk.");
-
- PlayerData[playerid][pWalkstyle] = pickid;
- SendClientMessage(playerid, COLOR_YELLOW, "Enjoy your new walk style. /walk");
- }
- case 2:{
- if(!PlayerData[playerid][pDonator])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You aren't a donator.");
-
- if(pickid == -1){
- SendClientMessage(playerid, COLOR_WHITE, "Chat Styles: 0 1 2 3 4");
- SendClientMessage(playerid, COLOR_WHITE, "Chat Styles: 5 6 7");
- SendClientMessage(playerid, COLOR_DARKGREEN, "USAGE: /setstyle 2 [StyleID]");
- return true;
- }
-
- if(pickid != -1 && pickid < 0 || pickid > 7)
- return SendClientMessage(playerid, COLOR_ADM, "You specified an invalid chat.");
-
- PlayerData[playerid][pChatstyle] = pickid;
- SaveSQLInt(PlayerData[playerid][pSQLID], "players", "Chatstyle", PlayerData[playerid][pChatstyle]);
- SendClientMessage(playerid, COLOR_YELLOW, "Enjoy your new chatstyle!");
- }
- case 3:{
- if(!PlayerData[playerid][pDonator])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You aren't a donator.");
-
- if(pickid == -1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Fight Styles: 0 1 2 3 4");
- SendClientMessage(playerid, COLOR_WHITE, "Fight Styles: 5");
- SendClientMessage(playerid, COLOR_DARKGREEN, "USAGE: /setstyle 3 [StyleID]");
- return true;
- }
-
- if(pickid != -1 && pickid < 0 || pickid > 5)
- return SendClientMessage(playerid, COLOR_ADM, "Invalid Fightstyle.");
-
- switch(pickid)
- {
- case 0: pickid = 15;
- case 1: pickid = 4;
- case 2: pickid = 5;
- case 3: pickid = 6;
- case 4: pickid = 7;
- case 5: pickid = 16;
- }
-
- SetPlayerFightingStyle(playerid, pickid);
- PlayerData[playerid][pFightstyle] = pickid;
-
- Message(playerid, COLOR_YELLOW, "You set your fightstyle to %s!", GetFightstyleName(pickid));
- }
- case 4:
- {
- if(pickid == -1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "HUD Styles: 0 1 2 3");
- SendClientMessage(playerid, COLOR_DARKGREEN, "USAGE: /setstyle 4 [StyleID]");
- return 1;
- }
-
- if(pickid > 3 || pickid != -1 && pickid < 0)
- return SendClientMessage(playerid, COLOR_ADM, "Invalid HUD Style.");
-
- if(pickid == PlayerData[playerid][pHUD])
- return SendClientMessage(playerid, COLOR_ADM, "That's already your HUD.");
-
- HideHUDForPlayer2( playerid );
- PlayerData[ playerid ][ pHUDToggled ] = 0;
- PlayerData[playerid][pHUD] = pickid;
- OnPlayerChangeHud( playerid );
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !NoEngineCar(GetPlayerVehicleID(playerid)))
- {
- for (new i = 0; i < 6; i++)
- PlayerTextDrawHide(playerid, VehicleHUD[playerid][i]);
-
- UpdateHUDForPlayer(playerid);
- switch(pickid)
- {
- case 0: {
- PlayerTextDrawShow(playerid, VehicleHUD[playerid][0]);
- PlayerTextDrawShow(playerid, VehicleHUD[playerid][1]);
- }
- case 1: {
- PlayerTextDrawShow(playerid, VehicleHUD[playerid][2]);
- }
- case 2: {
- PlayerTextDrawShow(playerid, VehicleHUD[playerid][3]);
- }
- case 3: {
- PlayerTextDrawShow(playerid, VehicleHUD[playerid][4]);
- PlayerTextDrawShow(playerid, VehicleHUD[playerid][5]);
- }
- }
- }
- SendClientMessage(playerid, COLOR_YELLOW, "Enjoy your new HUD style!");
- }
- }
- return true;
- }
- CMD:time(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new string[128];
-
- format(string, sizeof(string), "* %s checks the time.", ReturnName(playerid, 0));
- SendClientMessage(playerid, COLOR_EMOTE, string);
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 30.0, 5000);
-
- format(string, sizeof(string), "~g~|~w~%s~g~|", ReturnHour());
- GameTextForPlayer(playerid, string, 2000, 1);
-
- if(PlayerData[playerid][pAjailTime] > 0){
- format(string, sizeof(string), "~g~|~w~%s~g~|~n~~w~Jail Time left: %s SEC", ReturnHour(), MoneyFormat(PlayerData[playerid][pAjailTime]));
- GameTextForPlayer(playerid, string, 2000, 1);
- }
- else if(PlayerData[playerid][pICJailTime] > 0)
- {
- format(string, sizeof(string), "~g~|~w~%s~g~|~n~~w~Jail Time left: %s SEC", ReturnHour(), MoneyFormat(PlayerData[playerid][pICJailTime]));
- GameTextForPlayer(playerid, string, 2000, 1);
- }
- return true;
- }
- CMD:stime(playerid, params[])return cmd_servertime(playerid, params);
- CMD:servertime(playerid, params[])
- {
- new date[128];
- getdate(date[2], date[1], date[0]);
- gettime(date[3], date[4], date[5]);
- format(date, sizeof(date), "The date is: %02d/%02d/%d -- The time is %02d:%02d:%02d", date[0], date[1], date[2], date[3], date[4], date[5]);
- SendClientMessage(playerid, COLOR_GREY, date);
- return true;
- }
- CMD:id(playerid, params[])
- {
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /id [playerid/PartofName]");
-
- if(IsNumeric(params))
- {
- new id = strval(params);
-
- if(!IsPlayerConnected(id))
- return SendClientMessage(playerid, COLOR_ADM, "Player ID specified is not valid.");
-
- Message(playerid, COLOR_GREY, "(ID: %d) %s | Level: %d", id, ReturnName(id), PlayerData[id][pLevel]);
- }
- else
- {
- new found;
- foreach (new i : Player)
- {
- if(strfind(ReturnName(i), params, true) != -1)
- {
- Message(playerid, COLOR_GREY, "(ID: %d) %s | Level: %d", i, ReturnName(i, 1), PlayerData[i][pLevel]);
- found++;
- }
- }
- if(!found) return SendClientMessage(playerid, COLOR_ADM, "Player was not found.");
- }
-
- return 1;
- }
- CMD:dropgun(playerid, params[])
- {
- new weapon_id;
-
- if(sscanf(params, "i", weapon_id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /dropgun [weapon id]");
-
- if(weapon_id == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: Invalid Weapon ID.");
-
- if(!PlayerHasWeapon(playerid, weapon_id) || PlayerHasWeapon(playerid, weapon_id) && IsSaveableWeapon(playerid, weapon_id))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't have this weapon or can't drop it.");
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s dropped their %s.", ReturnName(playerid, 0), ReturnWeaponName(weapon_id));
- WriteLog("weapon_logs/drop_gun.txt", "[%s] %s dropped their %s. (Receive code: %i)", ReturnDate(), ReturnName(playerid, 1), ReturnWeaponName(weapon_id), ReturnWeaponReceiveType(playerid, weapon_id));
-
- TakePlayerWeapon(playerid, weapon_id);
- return 1;
- }
- CMD:expcount(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new string[128];
-
- format(string, sizeof(string), "Your EXP counter is %d, you need 3600.", PlayerData[playerid][pPlayTime]);
- SendClientMessage(playerid, COLOR_GREY, string);
- return true;
- }
- //
- CMD:deposit(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!IsPlayerInBusiness(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't do this right now.");
-
- new biz = IsPlayerInBusiness(playerid), deposit, string[128];
-
- if(BusinessData[biz][businessType] != BIZ_BANK)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't inside of a bank.");
-
- if(sscanf(params, "d", deposit))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /deposit [amount]");
- if(deposit < 1)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't deposit under $1. ");
- if(deposit > PlayerData[playerid][pMoney])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have that much money.");
-
- GiveMoney(playerid, -deposit);
- PlayerData[playerid][pBank]+= deposit;
- format(string, sizeof(string), "You have deposited $%s into your account, Total:$%s", MoneyFormat(deposit), MoneyFormat(PlayerData[playerid][pBank]));
- SendClientMessage(playerid, COLOR_ACTION, string);
-
- WriteLog("money_logs/bank_log.txt", "[%s] %s deposited $%d into their bank, New balance: $%d (Hand: $%d)", ReturnDate(), ReturnName(playerid, 1), deposit, PlayerData[playerid][pBank], PlayerData[playerid][pMoney]);
- return true;
- }
- CMD:withdraw(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!IsPlayerInBusiness(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't do this right now.");
-
- new biz = IsPlayerInBusiness(playerid), total, string[128];
-
- if(BusinessData[biz][businessType] != BIZ_BANK && BusinessData[biz][businessType] != BIZ_GENERAL && BusinessData[biz][businessType] != BIZ_STORE)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't do that here.");
-
- if(sscanf(params, "d", total))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /withdraw [amount]");
- if(total < 1 || total > PlayerData[playerid][pBank])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't do that amount.");
- if(PlayerData[playerid][pSavings] && total > 5000)return SendClientMessage(playerid, COLOR_ADM, "SERVER: You may only withdraw up to $5,000 while using savings.");
-
- GiveMoney(playerid, total);
- PlayerData[playerid][pBank]-= total;
-
- format(string, sizeof(string), "You have withdrawn $%s from your account, Total:$%s", MoneyFormat(total), MoneyFormat(PlayerData[playerid][pBank]));
- SendClientMessage(playerid, COLOR_ACTION, string);
-
- WriteLog("money_logs/withdraw_log.txt", "[%s] %s withdrew $%d from their bank, New balance: $%d (Hand: $%d)", ReturnDate(), ReturnName(playerid, 1), total, PlayerData[playerid][pBank], PlayerData[playerid][pMoney]);
- return true;
- }
- CMD:balance(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!IsPlayerInBusiness(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't do this right now.");
-
- new biz = IsPlayerInBusiness(playerid), string[128];
-
- if(BusinessData[biz][businessType] != BIZ_BANK && BusinessData[biz][businessType] != BIZ_GENERAL && BusinessData[biz][businessType] != BIZ_STORE)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't do that here.");
-
- format(string, sizeof(string), "[ ! ]{FFFFFF} You have $%s in your bank account as of %s. ", MoneyFormat(PlayerData[playerid][pBank]), ReturnDate());
- SendClientMessage(playerid, COLOR_ADM, string);
-
- return true;
- }
- CMD:savings(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!IsPlayerInBusiness(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't do this right now.");
-
- new biz = IsPlayerInBusiness(playerid), amount, string[128];
-
- if(BusinessData[biz][businessType] != BIZ_BANK)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't inside of a bank.");
-
- if(!PlayerData[playerid][pSavings]){
- if(sscanf(params, "d", amount))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} To create a savings account, /savings [amount]");
- if(amount < 50000 || amount > 100000)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You may only make your savings with $50,000 to $100,000.");
- if(amount > PlayerData[playerid][pMoney])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have that much money.");
-
- PlayerData[playerid][pSavings] = amount;
- GiveMoney(playerid, -amount);
-
- SendClientMessage(playerid, COLOR_WHITE, "|___ BANK STATEMENT ___|");
- format(string, sizeof(string), " Savings account balance: $%s", MoneyFormat(PlayerData[playerid][pSavings]));
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- WriteLog("money_logs/savings_log.txt", "[%s] %s started their savings with : $%d", ReturnDate(), ReturnName(playerid, 1), amount);
- return true;
- }
- else if(isnull(params) && PlayerData[playerid][pSavings]){
- SendClientMessage(playerid, COLOR_WHITE, "|___ BANK STATEMENT ___|");
- format(string, sizeof(string), " Savings account balance: $%s", MoneyFormat(PlayerData[playerid][pSavings]));
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- format(string, sizeof(string), "[ ! ]{FFFFFF} You have {FF6346}$%s{FFFFFF} in your savings account.", MoneyFormat(PlayerData[playerid][pSavings]));
- SendClientMessage(playerid, COLOR_ADM, string);
-
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} To withdraw your savings, use {FF6346}/savings withdraw");
- return true;
- }
-
- if(!isnull(params) && !strcmp(params, "withdraw", true)){
- if (!PlayerData[playerid][pSavings])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a savings.");
-
- ConfirmDialog(playerid, "Confirmation", "Are you sure you want to withdraw your savings?\n\n{F81414}This cannot be reverted and you'll have to start over.", "OnPlayerSavingsWithdraw");
-
- return true;
- }
-
- return true;
- }
- CMD:eject(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You need to be in the driver's seat.");
-
- new playerb;
-
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /eject [playerid/PartofName]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid playerid.");
- if(GetPlayerVehicleID(playerb) != GetPlayerVehicleID(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player isn't inside your vehicle.");
-
- if(playerb == playerid)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You can't eject yourself.");
-
- RemovePlayerFromVehicle(playerb);
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s threw %s out of their vehicle.", ReturnName(playerid, 0), ReturnName(playerb, 0));
- return true;
- }
- CMD:buy(playerid, params[])
- {
- new
- biz = IsPlayerInBusiness(playerid),
- string[1100]
- ;
-
- string[0] = EOS;
-
- if(BusinessData[biz][businessType] == BIZ_PAWNSHOP || BusinessData[biz][businessType] == BIZ_GENERAL || BusinessData[biz][businessType] == BIZ_STORE)
- {
- DisplayBuyMenu(playerid);
- return true;
- }
-
- if(BusinessData[biz][businessType] == BIZ_CLOTHING)
- {
- if(PlayerData[playerid][pSkinMenuOn])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: Your skin menu is already open.");
-
- DisplayClothingMenu(playerid);
- return 1;
- }
-
- if(IsPlayerInRangeOfPoint(playerid, 4.0, -2471.7783, 756.2209, 35.1719))
- {
- if (PlayerData[playerid][pBuyingClothing])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You're already editing a clothing item.");
-
- ShowClothingList(playerid, 1);
- return true;
- }
- new id = PlayerData[playerid][pFaction];
- if (FactionData[id][factionCopPerms] || FactionData[id][factionMedPerms] || FactionData[id][factionNewsPerms])
- {
- if(IsPlayerInRangeOfPoint(playerid, 4.0, FactionData[id][factionSpawn][0], FactionData[id][factionSpawn][1], FactionData[id][factionSpawn][2]))
- {
- for (new i = 0; i < sizeof(g_aFactionClothing); i++)
- {
- format(string, sizeof(string), "%s{FFFFFF}%s\t-\t{33AA33}$%d\n", string, g_aFactionClothing[i][clothingName], g_aFactionClothing[i][clothingPrice]);
- ShowPlayerDialog(playerid, DIALOG_FACTION_CLOTHING, DIALOG_STYLE_LIST, "Clothing Available:", string, "Select", "<<");
- }
- }
- return true;
- }
- SendClientMessage(playerid, COLOR_ADM, "SERVER: There's nothing around you that you could buy.");
- return true;
- }
- CMD:buyphone(playerid, params[])
- {
- new
- id,
- str[350]
- ;
-
- if((id = IsPlayerInBusiness(playerid)) != 0)
- {
- if(BusinessData[id][businessType] != BIZ_PAWNSHOP && BusinessData[id][businessType] != BIZ_GENERAL && BusinessData[id][businessType] != BIZ_STORE)
- return SendClientMessage(playerid, COLOR_ADM, "[ ! ] This business does not sell burner phones.");
-
- if(PlayerData[playerid][pHasBurnerPhone])
- return SendClientMessage(playerid, COLOR_ADM, "[ ! ] You already have a burner phone.");
-
- strcat(str, "{ADC3E7}Burner Phones{FFFFFF}\nA burner phone is a prepaid phone bought for temporary use. They could be purchased from a pawn shop or general store.\n");
- strcat(str, "Players may call burner phones. Burner phones do not store contact information.\n\n");
- strcat(str, "After purchasing it, you can use /call to place a call or /dropburner to dispose of it.\n");
- strcat(str, "{ADC3E7}Price:{FFFFFF} $500");
-
- ConfirmDialog(playerid, "{ADC3E7}Burner Phone", str, "OnBurnerPhone");
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't in a business.");
- return 1;
- }
- CMD:bf(playerid, params[]) return cmd_blindfold(playerid, params);
- CMD:blindfold(playerid, params[])
- {
- new playerb, string[128];
-
- if(sscanf(params, "U(-1)", playerb))return true;
-
- if(playerb == -1){
- if (!PlayerData[playerid][pBlindfolded]){
- TextDrawShowForPlayer(playerid, blindfoldTextdraw);
-
- PlayerData[playerid][pBlindfolded] = 1;
- }
- else{
- TextDrawHideForPlayer(playerid, blindfoldTextdraw);
- PlayerData[playerid][pBlindfolded] = 0;
- }
- }
- else{
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid playerid.");
- if(!GetDistanceBetweenPlayers(playerid, playerb, 4.5)) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You must be closer to that player to blindfold.");
- if(GetPlayerSpecialAction(playerb) != SPECIAL_ACTION_HANDSUP && GetPlayerSpecialAction(playerb) != SPECIAL_ACTION_DUCK)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player doesn't have their hands up OR isn't crouched.");
-
- if (!PlayerData[playerb][pBlindfolded]){
-
- TextDrawShowForPlayer(playerb, blindfoldTextdraw);
- format(string, sizeof(string), "SERVER: %s blindfolded you. ", ReturnName(playerid, 0));
- SendClientMessage(playerb, COLOR_YELLOW, string);
-
- format(string, sizeof(string), "SERVER: You blindfolded %s. ", ReturnName(playerb, 0));
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- SetPlayerChatBubble(playerb, "Blindfolded", COLOR_WHITE, 10.0, 2500);
- GameTextForPlayer(playerb, "~p~Blindfolded", 3000, 4);
- PlayerData[playerb][pBlindfolded] = 1;
-
- }
- else{
- TextDrawHideForPlayer(playerb, blindfoldTextdraw);
-
- format(string, sizeof(string), "SERVER: You took %s's blindfold off. ", ReturnName(playerb, 0));
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- GameTextForPlayer(playerb, "~p~Unblinded", 3000, 4);
- PlayerData[playerb][pBlindfolded] = 0;
-
- SetPlayerChatBubble(playerb, "Unblindfolded", COLOR_WHITE, 10.0, 2500);
- }
- }
-
- return true;
- }
- CMD:pay(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(PlayerData[playerid][pLevel] == 0)
- return SendClientMessage(playerid, COLOR_GREY, "You cannot pay as a level 0!");
-
- new string[128], playerb, pay_amount, emote[128];
- if(sscanf(params, "udS('None')[128]", playerb, pay_amount, emote)) return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /pay [playerid/PartofName] [amount] [emote (Optional)]");
- if(!IsPlayerConnected(playerb)) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid player ID.");
-
- if(!GetDistanceBetweenPlayers(playerid, playerb, 4.5)) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You must be closer to that player to pay them.");
- if( pay_amount < 1) return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Amount.");
-
- if( pay_amount > PlayerData[playerid][pMoney]) return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Amount.");
- if(playerb == playerid ) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't pay yourself money.");
-
- if(gettime() - _pay_security_timer[playerid] < 3) return SendClientMessage(playerid, COLOR_WHITE, "Please wait before paying again. (Security Reasons)");
- if(PlayerData[playerid][pLevel] < 2 && pay_amount > 500) return SendClientMessage(playerid, COLOR_ADM, "Levels 1 can only pay $500 at a single time.");
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- PlayerPlaySound(playerb, 1052, 0.0, 0.0, 0.0);
-
- format(string, sizeof(string), " You have sent %s, $%s. ", ReturnName(playerb, 0), MoneyFormat(pay_amount));
- SendClientMessage(playerid, COLOR_GREY, string);
-
- format(string, sizeof(string), " You have received $%s from %s.", MoneyFormat(pay_amount), ReturnName(playerid, 0));
- SendClientMessage(playerb, COLOR_GREY, string);
-
- if(strfind(emote, "None", true) != -1){
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s takes out some cash, and hands it to %s.", ReturnName(playerid, 0), ReturnName(playerb, 0));
- }
- else{
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s %s %s (( Cash exchange ))", ReturnName(playerid, 0), emote, ReturnName(playerb, 0));
- }
- _pay_security_timer[playerid] = gettime();
-
- if((PlayerData[playerid][pLevel] <= 3 && PlayerData[playerb][pLevel] <= 3 && pay_amount > 1000) || pay_amount >= 50000){
- format(string, sizeof(string), "%s has paid $%s to %s", ReturnName(playerid, 1), MoneyFormat(pay_amount), ReturnName(playerb, 1));
- adminWarn(1, string);
- }
- if (PlayerData[playerid][pLevel] == 1) {
- if (PlayerData[playerid][pMoney] > 30000) {
- adminWarn(1, sprintf("%s (id: %d) has paid %s (id: %d) %d out of the %d they have", ReturnName(playerid, 1), playerid, ReturnName(playerb, 1), playerb, pay_amount, PlayerData[playerid][pMoney]));
- }
- }
-
- format(string, sizeof(string), "Paid $%s to %s", MoneyFormat(pay_amount), ReturnName(playerb));
- LogPlayerAction(playerid, string);
-
- format(string, sizeof(string), "Paid $%s from %s", MoneyFormat(pay_amount), ReturnName(playerid));
- LogPlayerAction(playerb, string);
-
- GiveMoney(playerid, -pay_amount);
- GiveMoney(playerb, pay_amount);
-
- SavePlayer(playerid);
- SavePlayer(playerb);
-
- WriteLog("money_logs/pay_log.txt", "[%s] %s has paid $%s to %s", ReturnDate(), ReturnName(playerid, 1), MoneyFormat(pay_amount), ReturnName(playerb, 1));
- return true;
- }
- CMD:licenseexam(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new vehicleid = GetPlayerVehicleID(playerid);
-
- if (PlayerData[playerid][pDriversLicense] != 0)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You have a driver's license and can't do this.");
- if (PlayerData[playerid][pMoney] < 1000)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You need $1000 to pass your license exam.");
-
- if(IsPlayerInVehicle(playerid, dmvCar1) || IsPlayerInVehicle(playerid, dmvCar2) || IsPlayerInVehicle(playerid, dmvCar3) || IsPlayerInVehicle(playerid, dmvCar4)){
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Get in the driver's seat.");
-
- SetPlayerCheckpoint(playerid, 1295.2953, -1561.9954, 13.2655, 5.0);
-
- _taking_license_test[playerid] = true;
- _taking_license_point[playerid] = 101;
- _taking_license_vehicle[playerid] = vehicleid;
- _taking_license_time[playerid] = 60;
-
- SendClientMessage(playerid, COLOR_GREY, "Driving Instructor says: Follow the checkpoints and drive safely. Stop at intersections and meet the speed limit.");
- ToggleVehicleEngine(vehicleid, true);
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s turned the engine of the %s on.", ReturnName(playerid, 0), ReturnVehicleName(vehicleid));
- }
- else{
- SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't in a driver's test vehicle.");
- }
- return true;
- }
- CMD:licenses(playerid, params[])
- {
- new playerb;
-
- if(!pLoggedIn[playerid])return true;
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /licenses [playerid/PartofName]");
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid player.");
- if(!GetDistanceBetweenPlayers(playerid, playerb, 4.5)) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You must be closer to that player.");
-
- ReturnLicenses(playerid, playerb);
-
- if(playerb != playerid){
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s shows %s their identification card.", ReturnName(playerid, 0), ReturnName(playerb, 0));
- }
- else{
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s looks at their identification card.", ReturnName(playerid, 0));
- }
- return true;
- }
- CMD:acceptdeath(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(GetPlayerTeam(playerid) != STATE_WOUNDED)return SendClientMessage(playerid, COLOR_GREY, "ERROR: You aren't brutally wounded.");
- ClearPlayerWeapons(playerid, 0);
- SetDead(playerid);
- return true;
- }
- CMD:respawnme(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(GetPlayerTeam(playerid) != STATE_DEAD)return SendClientMessage(playerid, COLOR_GREY, "ERROR: You aren't dead right now.");
-
- new string[128];
- if(gettime() - _respawn_timer[playerid] < 60){
- format(string, sizeof(string), "-> You've only been dead for %d seconds, you need to wait 60 seconds.", gettime() - _respawn_timer[playerid]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return true;
- }
- PlayerData[playerid][pBrutallyWounded] = false;
- _respawn_timer[playerid] = 0;
- DeathTimeNotice[playerid] = 0;
-
- TogglePlayerControllable(playerid, true);
- SetPlayerHealth(playerid, 0);
-
- PlayerJustDied[playerid] = 5;
- return true;
- }
- CMD:buygun(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new weaponName[128], ammo, totalPrice, string[128], biz = IsPlayerInBusiness(playerid);
-
- if(!IsPlayerInBusiness(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't do this right now.");
-
- if(BusinessData[biz][businessType] != BIZ_AMMUNATION)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't do that in here.");
-
- if(!PlayerData[playerid][pWeaponsLicense]) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a weapons license.");
- if(sscanf(params, "s[128]i", weaponName, ammo)) {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /buygun [weapon] [ammo]");
- SendClientMessage(playerid, COLOR_GRAD2, "[ colt: $600; ammo: $75 ] [ deagle: $1500; ammo: $114 ] [ shotgun: $2700; ammo: $114 ]");
- SendClientMessage(playerid, COLOR_GRAD2, "[ rifle: $3600; ammo: $300 ] [ armor: $1200 ]");
- return true;
- }
-
- if(strmatch(weaponName, "colt")){
- if( ammo < 1 )return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Ammo.");
- if( PlayerData[playerid][pMoney] < 600) return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Funds.");
-
- totalPrice = ammo * 75 + 600;
- if( PlayerData[playerid][pMoney] < totalPrice )return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Funds.");
-
- format(string, sizeof(string), "Are you sure you want to purchase a Colt 45 for $%s?", MoneyFormat(totalPrice));
- ConfirmDialog(playerid, "Confirmation", string, "OnPlayerPurchaseWeapon", WEAPON_COLT45, ammo, totalPrice);
- }
- else if(strmatch(weaponName, "deagle")){
- if( ammo < 1 )return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Ammo.");
- if( PlayerData[playerid][pMoney] < 1500 ) return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Funds.");
-
- totalPrice = ammo * 114 + 1500;
- if( PlayerData[playerid][pMoney] < totalPrice )return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Funds.");
-
- format(string, sizeof(string), "Are you sure you want to purchase a Desert Eagle for $%s?", MoneyFormat(totalPrice));
- ConfirmDialog(playerid, "Confirmation", string, "OnPlayerPurchaseWeapon", WEAPON_DEAGLE, ammo, totalPrice);
- }
- else if(strmatch(weaponName, "shotgun")){
- if( ammo < 1 )return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Ammo.");
- if( PlayerData[playerid][pMoney] < 2700 ) return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Funds.");
-
- totalPrice = ammo * 114 + 2700;
- if( PlayerData[playerid][pMoney] < totalPrice )return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Funds.");
-
- format(string, sizeof(string), "Are you sure you want to purchase a Shotgun for $%s?", MoneyFormat(totalPrice));
- ConfirmDialog(playerid, "Confirmation", string, "OnPlayerPurchaseWeapon", WEAPON_SHOTGUN, ammo, totalPrice);
- }
- else if(strmatch(weaponName, "rifle")){
- if( ammo < 1 )return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Ammo.");
- if( PlayerData[playerid][pMoney] < 1200 ) return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Funds.");
-
- totalPrice = ammo * 100 + 1200;
- if( PlayerData[playerid][pMoney] < totalPrice )return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Funds.");
-
- format(string, sizeof(string), "Are you sure you want to purchase a Rifle for $%s?", MoneyFormat(totalPrice));
- ConfirmDialog(playerid, "Confirmation", string, "OnPlayerPurchaseWeapon", WEAPON_RIFLE, ammo, totalPrice);
- }
- else if(strmatch(weaponName, "armor")){
- if( PlayerData[playerid][pMoney] < 1200 ) return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Funds.");
-
- totalPrice = 1200;
- ConfirmDialog(playerid, "Confirmation", "Are you sure you want to purchase Armor for $2,000?", "OnPlayerPurchaseArmor", totalPrice);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
-
- return true;
- }
- CMD:buyammo(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new weaponName[128], ammo, totalPrice, string[128], biz = IsPlayerInBusiness(playerid);
-
- if(!IsPlayerInBusiness(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't do this right now.");
-
- if(BusinessData[biz][businessType] != BIZ_AMMUNATION)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't do that in here.");
-
- if(!PlayerData[playerid][pWeaponsLicense])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a weapons license.");
- if(sscanf(params, "s[128]i", weaponName, ammo)) {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /buygun [weapon] [ammo]");
- SendClientMessage(playerid, COLOR_GRAD2, "[ colt: $75 ] [ deagle: $114 ] [ shotgun: $114 ] [ rifle: $300 ]");
- return true;
- }
-
- if(ammo < 1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: Invalid Ammo.");
-
- if(strmatch(weaponName, "colt")){
- if(!PlayerHasWeapon(playerid, WEAPON_COLT45))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have this weapon in hand.");
-
- totalPrice = 75 * ammo;
-
- if( PlayerData[playerid][pMoney] < totalPrice ) return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Funds.");
-
- format(string, sizeof(string), "Are you sure you want to buy ammo for $%s?", MoneyFormat(totalPrice));
- ConfirmDialog(playerid, "Confirmation", string, "OnPlayerPurchaseAmmo", WEAPON_COLT45, ammo, totalPrice);
- }
- else if(strmatch(weaponName, "deagle")){
- if(!PlayerHasWeapon(playerid, WEAPON_DEAGLE))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have this weapon in hand.");
-
- totalPrice = 114 * ammo;
-
- if( PlayerData[playerid][pMoney] < totalPrice ) return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Funds.");
-
- format(string, sizeof(string), "Are you sure you want to buy ammo for $%s?", MoneyFormat(totalPrice));
- ConfirmDialog(playerid, "Confirmation", string, "OnPlayerPurchaseAmmo", WEAPON_DEAGLE, ammo, totalPrice);
- }
- else if(strmatch(weaponName, "shotgun")){
- if(!PlayerHasWeapon(playerid, WEAPON_SHOTGUN))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have this weapon in hand.");
-
- totalPrice = 114 * ammo;
-
- if( PlayerData[playerid][pMoney] < totalPrice ) return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Funds.");
-
- format(string, sizeof(string), "Are you sure you want to buy ammo for $%s?", MoneyFormat(totalPrice));
- ConfirmDialog(playerid, "Confirmation", string, "OnPlayerPurchaseAmmo", WEAPON_SHOTGUN, ammo, totalPrice);
- }
- else if(strmatch(weaponName, "rifle")){
- if(!PlayerHasWeapon(playerid, WEAPON_RIFLE))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have this weapon in hand.");
-
- totalPrice = 300 * ammo;
-
- if( PlayerData[playerid][pMoney] < totalPrice ) return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Funds.");
-
- format(string, sizeof(string), "Are you sure you want to buy ammo for $%s?", MoneyFormat(totalPrice));
- ConfirmDialog(playerid, "Confirmation", string, "OnPlayerPurchaseAmmo", WEAPON_RIFLE, ammo, totalPrice);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- return true;
- }
- CMD:autolow(playerid, params[])
- {
- if ( !pLoggedIn[playerid] )return true;
-
- if ( !PlayerData[playerid][pAutoLow] ) {
- PlayerData[playerid][pAutoLow] = true;
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You enabled auto low. Your default chat will now return in /low. ");
- }
- else {
- PlayerData[playerid][pAutoLow] = false;
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You disabled auto low. Your default chat is back to normal.");
- }
-
- return true;
- }
- CMD:setspawn(playerid, params[])
- {
- if ( !pLoggedIn[playerid] )return true;
-
- new spawn_id, optional;
-
- if(sscanf(params, "dI(-1)", spawn_id, optional)){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setspawn [spawn_id] ");
- SendClientMessage(playerid, COLOR_DARKGREEN, "1. Airport | 2. House | 3. Rental House | 4. Faction");
- return true;
- }
-
- switch ( spawn_id ) {
- case 1: {
- PlayerData[playerid][pSpawnSelect] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "You will now spawn at the Airport.");
- }
- case 2: {
- if(CountPlayerHouses(playerid) == 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own any houses.");
-
- if(optional == -1){
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setspawn 2 [house_id] ");
- SendClientMessage(playerid, COLOR_ADM, "You must specify your house ID by using /myhouse to fetch the ID. ");
- return true;
- }
-
- if(optional < 0 || !PropertyData[optional][propertyid]) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid house ID.");
-
- for(new i = 0; i < MAX_PROPERTY; i++){
- if(PropertyData[optional][propertyid] != 0){
- if(PropertyData[optional][propertyOwnerSQL] != PlayerData[playerid][pSQLID]){
- SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own that house.");
- return true;
- }
- }
- }
-
- SendClientMessage(playerid, COLOR_GRAD2, "You will now spawn at your house.");
- PlayerData[playerid][pSpawnSelect] = 1;
- PlayerData[playerid][pSpawnHouse] = optional;
- }
- case 3: {
- if( !PlayerData[playerid][pRenting] )return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't renting anywhere.");
-
- SendClientMessage(playerid, COLOR_GRAD2, "You will now spawn at your rental house.");
- PlayerData[playerid][pSpawnSelect] = 2;
- }
- case 4: {
- if( !PlayerData[playerid][pFaction] )return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any faction.");
-
- SendClientMessage(playerid, COLOR_GRAD2, "You will now spawn at your faction spawn.");
- PlayerData[playerid][pSpawnSelect] = 3;
- PlayerData[playerid][pSpawnPrecinct] = 0;
- }
- }
- return true;
- }
- //NC
- CMD:requestnc(playerid, params[])
- {
- if(gettime() - GetPVarInt(playerid, "RequestedNCTime") < 5)
- return SendClientMessage(playerid, COLOR_ADM, "Wait 5 seconds before using this again.");
-
- if(GetPVarInt(playerid, "RequestedNC") > 0)
- return SendClientMessage(playerid, COLOR_ADM, "You have an active namechange requests.");
-
- if( isnull(params) )
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /requestnc [Firstname_Lastname]");
-
-
- if(ReturnSQLFromName(params))
- {
- SetPVarInt(playerid, "RequestedNCTime", gettime());
- return SendClientMessage(playerid, COLOR_ADM, "You can't namechange to this name right now.");
- }
-
- new full_info[690], info[140];
-
- format(info, sizeof(info), "{FFFFFF}You're requesting a namechange to: {FF9900}%s{FFFFFF}\n\n", params);
- strcat(full_info, info);
-
- strcat(full_info, "You will not lose any player statistics such as bank money, on hand money...\n");
- strcat(full_info, "paycheck money and et cetera. Businesses and properties are kept.\n");
- strcat(full_info, "{F81414}Players with weapon licenses will lose their license when namechanging.\n\n{FFFFFF}");
-
- strcat(full_info, "Your namechange will need to be approved by an admin.\nClick Yes to forward your request.");
- ConfirmDialog(playerid, "Request A Namechange", full_info, "OnNamechangeRequest");
-
- SetPVarString(playerid, "RequestedNCName", params);
- SetPVarInt(playerid, "RequestedNC", 1);
- return 1;
- }
- //
- CMD:rentvehicle(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle.");
-
- new vehicleid = GetPlayerVehicleID(playerid), string[128];
- if(!IsValidRentalCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: This isn't a rental vehicle.");
- if (!PlayerData[playerid][pDriversLicense] && !NoEngineCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You do not have a drivers license.");
- if(RentalData[vehicleid][rentalcarRented])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} This vehicles already being rented.");
- if (NoEngineCar(vehicleid)) {
- if(PlayerData[playerid][pMoney] < 500)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Funds.");
- GiveMoney(playerid, -500);
- } else {
- if(PlayerData[playerid][pMoney] < 2000)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Funds.");
- GiveMoney(playerid, -2000);
- }
-
- RentalData[vehicleid][rentalcarRented] = true;
- RentalData[vehicleid][rentalcarRentedBy] = PlayerData[playerid][pSQLID];
-
- format(string, sizeof(string), "INFO: This %s belongs to you.", ReturnVehicleName(vehicleid));
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- format(string, sizeof(string), "Rented Rental Vehicle DBID %i", RentalData[vehicleid][rentalcarSQLID]);
- LogPlayerAction(playerid, string);
-
- SendClientMessage(playerid, COLOR_DARKGREEN, "Available Commands: /engine, /lights, /lock");
- return true;
- }
- CMD:unrentvehicle(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle.");
-
- new vehicleid = GetPlayerVehicleID(playerid), string[128];
-
- if(!IsValidRentalCar(vehicleid))return SendClientMessage(playerid, COLOR_ADM, "SERVER: This isn't a rental vehicle.");
- if(!RentalData[vehicleid][rentalcarRented])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} This vehicle isn't rented by anyone.");
- if(RentalData[vehicleid][rentalcarRentedBy] != PlayerData[playerid][pSQLID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} This isn't your rental vehicle.");
-
- if(!IsPlayerInRangeOfPoint(playerid, 9.0, RentalData[vehicleid][rentalcarPos][0], RentalData[vehicleid][rentalcarPos][1], RentalData[vehicleid][rentalcarPos][2])){
- SendClientMessage(playerid, COLOR_ADM, "You aren't near your rental vehicles park spot.");
- SendClientMessage(playerid, COLOR_PINK, "Hint: Follow the red marker to the park spot if you want your money back.");
- SetPlayerCheckpoint(playerid, RentalData[vehicleid][rentalcarPos][0], RentalData[vehicleid][rentalcarPos][1], RentalData[vehicleid][rentalcarPos][2], 3.0);
- return true;
- }
-
- RentalData[vehicleid][rentalcarRented] = false;
- RentalData[vehicleid][rentalcarRentedBy] = 0;
-
- format(string, sizeof(string), "You unrented the %s.", ReturnVehicleName(vehicleid));
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
-
- format(string, sizeof(string), "Unrented Rental Vehicle DBID %i", RentalData[vehicleid][rentalcarSQLID]);
- LogPlayerAction(playerid, string);
-
- SetVehicleToRespawn(vehicleid);
- return true;
- }
- CMD:unrenttruck(playerid, params[]) {
- if(!pLoggedIn[playerid])
- return true;
- if(!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle.");
-
- new vehicleid = GetPlayerVehicleID(playerid), string[128];
- if (!IsTruckerVehicle(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: This isn't a rental trucker vehicle.");
- if (TruckerVehicleRentedBy[vehicleid] != PlayerData[playerid][pSQLID])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: This isn't your rental trucker vehicle.");
- format(string, sizeof(string), "Unrented Rental Truck ID %i", vehicleid);
- LogPlayerAction(playerid, string);
- format(string, sizeof(string), "You unrented the %s.", ReturnVehicleName(vehicleid));
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
- TruckerVehicleRentedBy[vehicleid] = 0;
- SetVehicleToRespawn(vehicleid);
- return 1;
- }
- CMD:note(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new sub_param[128], sub_z_param[128], string[400], query[177];
-
- if(sscanf(params, "s[128]S()[128]", sub_param, sub_z_param)){
- SendClientMessage(playerid, COLOR_ACTION, "____________________________________________________");
- SendClientMessage(playerid, COLOR_ACTION, "USAGE: /note [action]");
- SendClientMessage(playerid, COLOR_ACTION, "/note create [text] - Create a new note.");
- SendClientMessage(playerid, COLOR_ACTION, "/note display - See all your existing notes.");
- SendClientMessage(playerid, COLOR_ACTION, "/note show [noteid] [playerid] - Show another player your note.");
- SendClientMessage(playerid, COLOR_ACTION, "/note add [noteid] - Add text to existing note ID.");
- SendClientMessage(playerid, COLOR_ACTION, "/note delete [noteid] - Delete an existing note ID.");
- SendClientMessage(playerid, COLOR_ACTION, "____________________________________________________");
- return true;
- }
-
- if(!strcmp(sub_param, "create")){
- new note_id;
-
- if(isnull(sub_z_param))return SendClientMessage(playerid, COLOR_ACTION, "USAGE: /note create [text]");
-
- for(new i = 1; i < MAX_PLAYER_NOTES; i++)
- {
- if(!NoteData[playerid][i][NoteID]){
- note_id = i;
- break;
- }
- }
-
- if(note_id == 0)return SendClientMessage(playerid, COLOR_ACTION, "You can't make anymore notes!");
-
- format(NoteData[playerid][note_id][NoteDetail], 128, "%s", sub_z_param);
- NoteData[playerid][note_id][NoteID] = note_id;
-
- note_save_id[playerid] = note_id;
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO `player_notes` (playersqlid, slotid, details) VALUES(%i, %i, '%e')",
- PlayerData[playerid][pSQLID], note_id, sub_z_param);
- mysql_pquery(m_Handle, query, "SQL_AddPlayerNote", "i", playerid);
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s takes out a paper sheet and writes something.", ReturnName(playerid, 0));
-
- format(string, sizeof(string), "[Notes] You've created a note with text: %s", sub_z_param);
- SendClientMessage(playerid, COLOR_ACTION, string);
- }
- else if(!strcmp(sub_param, "display")){
-
- new hasNotes;
-
- for(new i = 1; i < MAX_PLAYER_NOTES; i++){
- if(NoteData[playerid][i][NoteID] != 0) {
- if(!isnull(NoteData[playerid][i][NoteDetail])){
- format(string, sizeof(string), "[Notes] Note(%d) says: %s", i, NoteData[playerid][i][NoteDetail]);
- SendClientMessage(playerid, COLOR_ACTION, string);
- hasNotes++;
- }
- }
- }
- if(!hasNotes)return SendClientMessage(playerid, COLOR_ACTION, "You don't have any notes ( /note create )!");
-
- //SendClientMessage(playerid, COLOR_ACTION, string);
- }
- else if(!strcmp(sub_param, "show")){
- new playerb, noteid;
-
- if(sscanf(sub_z_param, "du", noteid, playerb))
- return SendClientMessage(playerid, COLOR_ACTION, "USAGE: /note show [note_id] [playerid OR name]");
-
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid player.");
- if(!GetDistanceBetweenPlayers(playerid, playerb, 4.5)) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You must be closer to that player.");
-
- if(!NoteData[playerid][noteid][NoteID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} There isn't a note there.");
-
- format(string, sizeof(string), "[Notes] Note(%d) says: %s", noteid, NoteData[playerid][noteid][NoteDetail]);
- SendClientMessage(playerb, COLOR_ACTION, string);
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s shows %s a piece of paper.", ReturnName(playerid, 0), ReturnName(playerb, 0));
- }
- else if(!strcmp(sub_param, "add")){
- new addtext[128], noteid;
-
- if(sscanf(sub_z_param, "ds[128]", noteid, addtext))
- return SendClientMessage(playerid, COLOR_ACTION, "USAGE: /note add [note_id] [text]");
-
- if(!NoteData[playerid][noteid][NoteID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} There isn't a note there.");
-
- format(string, sizeof(string), "[Notes] Note(%d) now says: %s", noteid, addtext);
- SendClientMessage(playerid, COLOR_ACTION, string);
-
- format(NoteData[playerid][noteid][NoteDetail], 128, "%s", addtext);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE player_notes SET details = '%e' WHERE id = %i",
- NoteData[playerid][noteid][NoteDetail], NoteData[playerid][noteid][NoteSQLID]);
- mysql_tquery(m_Handle, query);
- }
- else if(!strcmp(sub_param, "delete")){
- new noteid;
-
- if(sscanf(sub_z_param, "d", noteid))
- return SendClientMessage(playerid, COLOR_ACTION, "USAGE: /note delete [note_id]");
-
- if(!NoteData[playerid][noteid][NoteID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} There isn't a note there.");
-
- format(string, sizeof(string), "You deleted Note(%d): %s", noteid, NoteData[playerid][noteid][NoteDetail]);
- SendClientMessage(playerid, COLOR_ACTION, string);
-
- mysql_format(m_Handle, query, sizeof(query), "DELETE FROM player_notes WHERE id = %i", NoteData[playerid][noteid][NoteSQLID]);
- mysql_tquery(m_Handle, query);
-
- NoteData[playerid][noteid][NoteID] = 0;
- NoteData[playerid][noteid][NoteSQLID] = 0;
- }
- return true;
- }
- CMD:colorlist(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new color_list[4000];
- color_list[0] = EOS;
-
- for(new colorid = 0; colorid != sizeof(VehicleColoursTableRGBA); colorid++)
- {
- format(color_list, sizeof(color_list), "%s{%06x}Color %03d%s", color_list, VehicleColoursTableRGBA[colorid] >>> 8, colorid, !((colorid + 1) % 21) ? ("\n") : (" "));
- }
-
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_MSGBOX, "Color List", color_list, "<<", "");
- return true;
- }
- CMD:weapon(playerid, params[])
- {
- new string[128], specifier[40], specifierex[40];
-
- if (sscanf(params, "s[40]S()[40]", specifier, specifierex))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /weapon [adjust, bone, hide, reset] [weapon id]");
- SendClientMessage(playerid, COLOR_ADM, "TIP:{FFFFFF} Use /weapon hide [id] to hide smaller weapons from being seen.");
- return true;
- }
-
- if (!strcmp(specifier, "hide"))
- {
- new id, query[350];
-
- if (sscanf(specifierex, "d", id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /weapon hide [weapon id]");
-
- if (!IsValidDisplayWeapon(id))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified a weapon ID that can't be edited.");
-
- if (NotHideableWeapon(id))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} This is a weapon you can't hide.");
-
- if (WeaponDisplay[playerid][id][weaponHidden])
- {
- WeaponDisplay[playerid][id][weaponHidden] = false;
-
- format (string, sizeof(string), "You've shown your %s.", ReturnWeaponName(id));
- SendClientMessage(playerid, COLOR_ADM, string);
- }
- else
- {
- WeaponDisplay[playerid][id][weaponHidden] = true;
- if (IsPlayerAttachedObjectSlotUsed(playerid, ReturnWeaponsSlot(id))) RemovePlayerAttachedObject(playerid, ReturnWeaponsSlot(id));
-
- format (string, sizeof(string), "You've hidden your %s.", ReturnWeaponName(id));
- SendClientMessage(playerid, COLOR_ADM, string);
- }
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO weapon_attachments(playerdbid, weaponid, boneid, PosX, PosY, PosZ, RotX, RotY, RotZ, Hidden) VALUES(%i, %i, %i, %f, %f, %f, %f, %f, %f, %i) ON DUPLICATE KEY UPDATE boneid = %i, PosX = %f, PosY = %f, PosZ = %f, RotX = %f, RotY = %f, RotZ = %f, Hidden = %i",
- PlayerData[playerid][pSQLID], id, WeaponDisplay[playerid][id][weaponBone], -0.055998, 0.188999, 0.053998, 0.000000, 44.500007, 0.000000, WeaponDisplay[playerid][id][weaponHidden], WeaponDisplay[playerid][id][weaponBone], WeaponDisplay[playerid][id][weaponPos][0], WeaponDisplay[playerid][id][weaponPos][1], WeaponDisplay[playerid][id][weaponPos][2], WeaponDisplay[playerid][id][weaponRot][0], WeaponDisplay[playerid][id][weaponRot][1], WeaponDisplay[playerid][id][weaponRot][2], WeaponDisplay[playerid][id][weaponHidden]);
-
- mysql_tquery(m_Handle, query);
- }
- else if (!strcmp(specifier, "adjust"))
- {
- new id;
-
- if (EditingDisplay[playerid])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You're already editing a weapon.");
-
- if (sscanf(specifierex, "d", id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /weapon adjust [weapon id]");
-
- if (!IsValidDisplayWeapon(id))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified a weapon ID that can't be edited.");
-
- EditingDisplay[playerid] = id;
-
- if (IsPlayerAttachedObjectSlotUsed(playerid, ReturnWeaponsSlot(id))) RemovePlayerAttachedObject(playerid, ReturnWeaponsSlot(id));
- SetPlayerArmedWeapon(playerid, 0);
-
- SetPlayerAttachedObject(playerid, ReturnWeaponsSlot(id), GetGunObjectID(id), WeaponDisplay[playerid][id][weaponBone], WeaponDisplay[playerid][id][weaponPos][0], WeaponDisplay[playerid][id][weaponPos][1], WeaponDisplay[playerid][id][weaponPos][2],
- WeaponDisplay[playerid][id][weaponRot][0], WeaponDisplay[playerid][id][weaponRot][1], WeaponDisplay[playerid][id][weaponRot][2]);
-
- EditAttachedObject(playerid, ReturnWeaponsSlot(id));
- }
- else if(!strcmp(specifier, "bone"))
- {
- new
- id, bone, query[350];
-
- if (EditingDisplay[playerid])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Stop editing your weapon first.");
-
- if (sscanf(specifierex, "ii", id, bone))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE: /weapon bone [weapon id] [bone]");
- SendClientMessage(playerid, COLOR_WHITE, "Bone: 1 - Spine, 2 - Head, 3 - Upper L Arm, 4 - Upper R Arm, 5 - Left Hand");
- SendClientMessage(playerid, COLOR_WHITE, "Bone: 6 - Right Hand, 7 - Left Thigh, 8 - Right Thigh, 9 - Left Foot, 10 - Right Foot");
- return 1;
- }
-
- if (!IsValidDisplayWeapon(id))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified a weapon ID that can't be edited.");
-
- if(bone < 1 || bone > 10)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid bone.");
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO weapon_attachments(playerdbid, weaponid, boneid, PosX, PosY, PosZ, RotX, RotY, RotZ, Hidden) VALUES(%i, %i, %i, %f, %f, %f, %f, %f, %f, %i) ON DUPLICATE KEY UPDATE boneid = %i, PosX = %f, PosY = %f, PosZ = %f, RotX = %f, RotY = %f, RotZ = %f, Hidden = %i",
- PlayerData[playerid][pSQLID], id, bone, -0.055998, 0.188999, 0.053998, 0.000000, 44.500007, 0.000000, WeaponDisplay[playerid][id][weaponHidden], bone, WeaponDisplay[playerid][id][weaponPos][0], WeaponDisplay[playerid][id][weaponPos][1], WeaponDisplay[playerid][id][weaponPos][2], WeaponDisplay[playerid][id][weaponRot][0], WeaponDisplay[playerid][id][weaponRot][1], WeaponDisplay[playerid][id][weaponRot][2], WeaponDisplay[playerid][id][weaponHidden]);
-
- mysql_tquery(m_Handle, query);
-
- if(IsPlayerAttachedObjectSlotUsed(playerid, ReturnWeaponsSlot(id)))
- {
- RemovePlayerAttachedObject(playerid, ReturnWeaponsSlot(id));
-
- SetPlayerAttachedObject(playerid, ReturnWeaponsSlot(id), GetGunObjectID(id), WeaponDisplay[playerid][id][weaponBone], WeaponDisplay[playerid][id][weaponPos][0], WeaponDisplay[playerid][id][weaponPos][1], WeaponDisplay[playerid][id][weaponPos][2],
- WeaponDisplay[playerid][id][weaponRot][0], WeaponDisplay[playerid][id][weaponRot][1], WeaponDisplay[playerid][id][weaponRot][2]);
-
- WeaponDisplay[playerid][id][weaponBone] = bone;
- }
- else WeaponDisplay[playerid][id][weaponBone] = bone;
- SendClientMessage(playerid, COLOR_ADM, "Your weapons bone was updated.");
- }
- else if(!strcmp(specifier, "reset"))
- {
- new
- id,
- query[350];
-
- if (EditingDisplay[playerid])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Stop editing your weapon first.");
-
- if(sscanf(specifierex, "i", id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /weapon reset [weapon id]");
-
- if (!IsValidDisplayWeapon(id))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified a weapon ID that can't be edited.");
-
- WeaponDisplay[playerid][id][weaponBone] = 1;
-
- WeaponDisplay[playerid][id][weaponPos][0] = -0.055998;
- WeaponDisplay[playerid][id][weaponPos][1] = 0.188999;
- WeaponDisplay[playerid][id][weaponPos][2] = 0.053998;
-
- WeaponDisplay[playerid][id][weaponRot][0] = 0.000000;
- WeaponDisplay[playerid][id][weaponRot][1] = 44.500007;
- WeaponDisplay[playerid][id][weaponRot][2] = 0.000000;
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO weapon_attachments(playerdbid, weaponid, boneid, PosX, PosY, PosZ, RotX, RotY, RotZ, Hidden) VALUES(%i, %i, %i, %f, %f, %f, %f, %f, %f, %i) ON DUPLICATE KEY UPDATE boneid = %i, PosX = %f, PosY = %f, PosZ = %f, RotX = %f, RotY = %f, RotZ = %f, Hidden = %i",
- PlayerData[playerid][pSQLID], id, WeaponDisplay[playerid][id][weaponBone], -0.055998, 0.188999, 0.053998, 0.000000, 44.500007, 0.000000, WeaponDisplay[playerid][id][weaponHidden], WeaponDisplay[playerid][id][weaponBone], WeaponDisplay[playerid][id][weaponPos][0], WeaponDisplay[playerid][id][weaponPos][1], WeaponDisplay[playerid][id][weaponPos][2], WeaponDisplay[playerid][id][weaponRot][0], WeaponDisplay[playerid][id][weaponRot][1], WeaponDisplay[playerid][id][weaponRot][2], WeaponDisplay[playerid][id][weaponHidden]);
-
- mysql_tquery(m_Handle, query);
-
- if(IsPlayerAttachedObjectSlotUsed(playerid, ReturnWeaponsSlot(id)))
- {
- RemovePlayerAttachedObject(playerid, ReturnWeaponsSlot(id));
-
- SetPlayerAttachedObject(playerid, ReturnWeaponsSlot(id), GetGunObjectID(id), WeaponDisplay[playerid][id][weaponBone], WeaponDisplay[playerid][id][weaponPos][0], WeaponDisplay[playerid][id][weaponPos][1], WeaponDisplay[playerid][id][weaponPos][2],
- WeaponDisplay[playerid][id][weaponRot][0], WeaponDisplay[playerid][id][weaponRot][1], WeaponDisplay[playerid][id][weaponRot][2]);
- }
-
- Message(playerid, COLOR_ADM, "Your %s was reset to a default position.", ReturnWeaponName(id));
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- return true;
- }
- CMD:boombox(playerid, params[])
- {
- new string[128], specifier[40], specifier_ex[40];
-
- if (sscanf(params, "s[40]S()[40]", specifier, specifier_ex))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /boombox [action]");
- SendClientMessage(playerid, COLOR_ADM, "[Action] place, adjust, destroy, pickup, giveto");
- SendClientMessage(playerid, COLOR_ADM, "** Use /setstation to set the station. **");
- return true;
- }
-
- if (!PlayerData[playerid][pHasBoombox])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a Boombox.");
-
- if (!strcmp(specifier, "place"))
- {
- new bool:alreadyPlaced = false, bool:nearbyBoombox = false, id = FreeBoomboxID();
-
- if (id == -1)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You can't place Boombox's right now. Try again later. (Max 30)");
-
- for (new i = 1; i < MAX_BOOMBOXS; i++)
- {
- if (BoomboxData[i][boomboxExists])
- {
- if (BoomboxData[i][boomboxPlayerID] == PlayerData[playerid][pSQLID])
- {
- alreadyPlaced = true;
- }
- }
- }
-
- if(alreadyPlaced == true)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You already have a boombox placed.");
-
- for (new i = 1; i < MAX_BOOMBOXS; i++)
- {
- if (BoomboxData[i][boomboxExists])
- {
- if (IsPlayerInRangeOfPoint(playerid, 20.0, BoomboxData[i][boomboxPos][0], BoomboxData[i][boomboxPos][1], BoomboxData[i][boomboxPos][2]))
- {
- nearbyBoombox = true;
- }
- }
- }
-
- if (nearbyBoombox == true)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} There's already a boombox placed near you. You need to get away from it.");
-
- GetPlayerPos(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]);
-
- BoomboxData[id][boomboxArea] = CreateDynamicCircle(PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], 30.0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
-
- BoomboxData[id][boomboxObject] = CreateDynamicObject(2226, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2] - 1, 0.0, 0.0, 0.0,
- GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
-
- BoomboxData[id][boomboxExists] = true;
- BoomboxData[id][boomboxPlayerID] = PlayerData[playerid][pSQLID];
- BoomboxData[id][boomboxPos][0] = PlayerData[playerid][pPos][0];
- BoomboxData[id][boomboxPos][1] = PlayerData[playerid][pPos][1];
- BoomboxData[id][boomboxPos][2] = PlayerData[playerid][pPos][2];
- new bizid = IsPlayerInBusiness(playerid);
- if (bizid) {
- BoomboxData[id][boomboxInBusiness] = BusinessData[bizid][businessID];
- } else {
- BoomboxData[id][boomboxInBusiness] = 0;
- }
-
- SendClientMessage(playerid, COLOR_DARKGREEN, "You put down a Boombox. To move it, use /boombox adjust while near it. /setstation");
- }
- else if (!strcmp(specifier, "adjust"))
- {
- new bool:nearBoombox, id;
-
- for (new i = 1; i < MAX_BOOMBOXS; i++)
- {
- if (BoomboxData[i][boomboxExists])
- {
- if (IsPlayerInRangeOfPoint(playerid, 4.0, BoomboxData[i][boomboxPos][0], BoomboxData[i][boomboxPos][1], BoomboxData[i][boomboxPos][2]))
- {
- if (BoomboxData[i][boomboxPlayerID] != PlayerData[playerid][pSQLID])
- return SendClientMessage(playerid, COLOR_ADM, "You don't own this boombox.");
-
- nearBoombox = true;
- id = i;
- }
- }
- }
-
- if(nearBoombox == false)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't near a boombox.");
-
- EditDynamicObject(playerid, BoomboxData[id][boomboxObject]);
- EditingBoombox[playerid] = id;
- }
- else if (!strcmp(specifier, "destroy"))
- {
- new bool:nearBoombox, id;
-
- for (new i = 1; i < MAX_BOOMBOXS; i++)
- {
- if (BoomboxData[i][boomboxExists])
- {
- if (IsPlayerInRangeOfPoint(playerid, 4.0, BoomboxData[i][boomboxPos][0], BoomboxData[i][boomboxPos][1], BoomboxData[i][boomboxPos][2]))
- {
- if (BoomboxData[i][boomboxPlayerID] != PlayerData[playerid][pSQLID])
- return SendClientMessage(playerid, COLOR_ADM, "You don't own this boombox.");
-
- nearBoombox = true;
- id = i;
- }
- }
- }
-
- if(nearBoombox == false)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't near a boombox.");
-
- SendClientMessage(playerid, COLOR_ADM, "You destroyed your Boombox.");
-
- foreach (new i : Player)
- {
- if(pLoggedIn[i])
- {
- if (IsPlayerInRangeOfPoint(i, 10.0, BoomboxData[id][boomboxPos][0], BoomboxData[id][boomboxPos][1], BoomboxData[id][boomboxPos][2]))
- {
- StopAudioStreamForPlayer(i);
- }
- }
- }
-
- RemoveBoombox(id);
- DestroyDynamicObject(BoomboxData[id][boomboxObject]);
- PlayerData[playerid][pHasBoombox] = false;
- }
- else if (!strcmp(specifier, "pickup"))
- {
- new bool:nearBoombox, id;
-
- for (new i = 1; i < MAX_BOOMBOXS; i++)
- {
- if (BoomboxData[i][boomboxExists])
- {
- if (IsPlayerInRangeOfPoint(playerid, 4.0, BoomboxData[i][boomboxPos][0], BoomboxData[i][boomboxPos][1], BoomboxData[i][boomboxPos][2]))
- {
- if (BoomboxData[i][boomboxPlayerID] != PlayerData[playerid][pSQLID])
- return SendClientMessage(playerid, COLOR_ADM, "You don't own this boombox.");
-
- nearBoombox = true;
- id = i;
- }
- }
- }
-
- if(nearBoombox == false)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't near a boombox.");
-
- SendClientMessage(playerid, COLOR_ADM, "You picked up your Boombox. Use /boombox place later");
-
- foreach (new i : Player)
- {
- if(pLoggedIn[i])
- {
- if (IsPlayerInRangeOfPoint(i, 10.0, BoomboxData[id][boomboxPos][0], BoomboxData[id][boomboxPos][1], BoomboxData[id][boomboxPos][2]))
- {
- StopAudioStreamForPlayer(i);
- }
- }
- }
-
- RemoveBoombox(id);
- DestroyDynamicObject(BoomboxData[id][boomboxObject]);
- }
- else if (!strcmp(specifier, "giveto"))
- {
- new bool:nearBoombox, id, playerb;
-
- for (new i = 1; i < MAX_BOOMBOXS; i++)
- {
- if (BoomboxData[i][boomboxExists])
- {
- if (IsPlayerInRangeOfPoint(playerid, 4.0, BoomboxData[i][boomboxPos][0], BoomboxData[i][boomboxPos][1], BoomboxData[i][boomboxPos][2]))
- {
- if (BoomboxData[i][boomboxPlayerID] != PlayerData[playerid][pSQLID])
- return SendClientMessage(playerid, COLOR_ADM, "You don't own this boombox.");
-
- nearBoombox = true;
- id = i;
- }
- }
- }
-
- if(nearBoombox == false)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't near a boombox.");
-
- if (sscanf(specifier_ex, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /boombox giveto [playerid/PartofName]");
-
- if (!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified a player that isn't connected.");
-
- if (!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified a player that isn't logged in.");
-
- if (PlayerData[playerb][pHasBoombox])
- return SendClientMessage(playerid, COLOR_ADM, "That player already owns a boombox.");
-
- BoomboxData[id][boomboxPlayerID] = PlayerData[playerb][pSQLID];
-
- format (string, sizeof(string), "* %s gave %s their Boombox.", ReturnName(playerid, 0), ReturnName(playerb, 0));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 20.0, 3000);
-
- format (string, sizeof(string), "** You gave %s your Boombox.", ReturnName(playerb, 0));
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
-
- PlayerData[playerid][pHasBoombox] = false;
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- return true;
- }
- CMD:eat(playerid, params[])
- {
- new id = IsPlayerInBusiness(playerid) ;
-
- if (!id)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in an establishment.");
-
- if (BusinessData[id][businessType] != BIZ_RESTAURANT)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in a restaurant.");
-
- if (MealMenu[playerid][mealExists] == true)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You already have a meal.");
-
- ShowMealMenu(playerid);
- return true;
- }
- CMD:meal(playerid, params[])
- {
- new stringb[90];
-
- if (sscanf(params, "s[90]", stringb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /meal [order / place / pickup / throw]");
-
- if (!strcmp(stringb, "order"))
- {
- return cmd_eat(playerid, "");
- }
-
- else if (!strcmp(stringb, "throw"))
- {
- if (!MealMenu[playerid][mealExists])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a meal.");
- if (MealMenu[playerid][mealPlaced] == true)
- {
- if (!IsPlayerInRangeOfPoint(playerid, 4.0, MealMenu[playerid][mealPos][0], MealMenu[playerid][mealPos][1], MealMenu[playerid][mealPos][2]))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't near your meal tray.");
-
- DestroyDynamicObject(MealMenu[playerid][mealObject]);
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s throws their meal away.", ReturnName(playerid, 0));
-
- MealMenu[playerid][mealExists] = false;
- MealMenu[playerid][mealPlaced] = false;
- return true;
- }
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s throws their meal away.", ReturnName(playerid, 0));
-
- MealMenu[playerid][mealExists] = false;
- PlayerData[playerid][pCarryingMeal] = false;
-
- RemovePlayerAttachedObject(playerid, 9);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- }
-
- else if (!strcmp(stringb, "place"))
- {
- if (!MealMenu[playerid][mealExists])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a meal.");
-
- if (MealMenu[playerid][mealPlaced])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You already have a meal placed.");
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s places their meal down.", ReturnName(playerid, 0));
-
- RemovePlayerAttachedObject(playerid, 9);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
-
- new modelid = MealMenu[playerid][mealModel];
- new Float:playersPos[3];
-
- GetPlayerPos(playerid, playersPos[0], playersPos[1], playersPos[2]);
- PlayerData[playerid][pPlacingMeal] = true;
-
- MealMenu[playerid][mealObject] =
- CreateDynamicObject(modelid, playersPos[0] - 1, playersPos[1], playersPos[2], -22.500001, 22.199998, 162.999984, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
-
- EditDynamicObject(playerid, MealMenu[playerid][mealObject]);
- }
- else if (!strcmp(stringb, "pickup"))
- {
- if (!MealMenu[playerid][mealExists])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a meal.");
-
- if (!MealMenu[playerid][mealPlaced])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a meal placed.");
-
- if (!IsPlayerInRangeOfPoint(playerid, 4.0, MealMenu[playerid][mealPos][0], MealMenu[playerid][mealPos][1], MealMenu[playerid][mealPos][2]))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't near your meal tray.");
-
- DestroyDynamicObject(MealMenu[playerid][mealObject]);
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s picks up their meal down.", ReturnName(playerid, 0));
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
-
- SetPlayerAttachedObject(playerid, 9, MealMenu[playerid][mealModel], 1, 0.027000, 0.426000, -0.268000, 127.699913, 119.700027, -66.799972);
-
- MealMenu[playerid][mealPlaced] = false;
- PlayerData[playerid][pCarryingMeal] = true;
- }
-
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
-
- return true;
- }
- //Vehicle Commands
- CMD:v(playerid, params[])return cmd_vehicle(playerid, params);
- CMD:vehicle(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return true;
- new a_string[60], b_string[128], string[128];
- if(sscanf(params, "s[60]S()[128]", a_string, b_string)) {
- SendClientMessage(playerid, COLOR_ACTION, "____________________________________________________");
- SendClientMessage(playerid, COLOR_ACTION, "USAGE: /v(ehicle) [action]");
- SendClientMessage(playerid, COLOR_ACTION, "[Actions] get, park, buypark, stats, list");
- SendClientMessage(playerid, COLOR_ACTION, "[Actions] find, tow, faction, buy, trunk, hood");
- SendClientMessage(playerid, COLOR_ACTION, "[Actions] payfines, sell, accept, refill, lights");
- SendClientMessage(playerid, COLOR_ACTION, "[Actions] lock, duplicatekey");
- SendClientMessage(playerid, COLOR_ACTION, "[Actions] scrap (warning: permanently deletes your vehicle)");
- SendClientMessage(playerid, COLOR_ACTION, "____________________________________________________");
- return true;
- }
- if(!strcmp(a_string, "get") || !strcmp(a_string, "g", true)) {
-
- if(_has_vehicle_spawned[playerid])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You already have a vehicle spawned.");
-
- if(gettime() - PlayerListShow[playerid] < 3)
- return SendClientMessage(playerid, COLOR_ADM, "You need to wait 3 seconds before using this again.");
-
- if(GetPVarInt(playerid, "Viewing_OwnedCarList") > 0)
- return SendClientMessage(playerid, COLOR_ADM, "You're already looking at it.");
-
- ShowPlayerVehicleList(playerid);
- PlayerListShow[playerid] = gettime();
- return 1;
-
- /*new slotid;
-
- if(sscanf(b_string, "d", slotid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /v(ehicle) get [vehicle slot ID]");
-
- if(slotid > MAX_OWNED_CARS || slotid < 1)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Slot.");
-
- if(!PlayerData[playerid][pOwnedCar][slotid])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't have a vehicle in that slot.");
- if(_has_vehicle_spawned[playerid])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You already have a vehicle spawned.");
-
- LoadOwnedCars(playerid, slotid);*/
- }
- else if(!strcmp(a_string, "park") || !strcmp(a_string, "p", true)) {
- if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle.");
-
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in the driver's seat.");
-
- new vehicleid = GetPlayerVehicleID(playerid);
-
- if(!IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't park this type of vehicle.");
-
- if(PlayerData[playerid][pSQLID] != CarData[vehicleid][carOwnerID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this vehicle.");
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, CarData[vehicleid][carPos][0], CarData[vehicleid][carPos][1], CarData[vehicleid][carPos][2])){
- SetPlayerCheckpoint(playerid, CarData[vehicleid][carPos][0], CarData[vehicleid][carPos][1], CarData[vehicleid][carPos][2], 3.0);
- SendClientMessage(playerid, COLOR_ADM, "You have to be at your vehicle's parking place.");
- SendClientMessage(playerid, COLOR_PINK, "Follow the marker.");
- return true;
- }
- for(new i = 1; i < 5; i++)
- {
- if(CarData[vehicleid][carWeapons][i])
- {
- if(IsValidDynamicObject(CarData[vehicleid][carWeaponObject][i]))
- DestroyDynamicObject(CarData[vehicleid][carWeaponObject][i]);
- }
- }
-
- foreach(new i : Player)
- {
- if(PlayerPlacingWeapon[i] && PlayerPlacingInVehicle[i] == vehicleid)
- {
- CancelEdit(i);
-
- if(IsValidDynamicObject(CarData[ PlayerPlacingInVehicle[i] ][carWeaponObject][PlayerPlacingWeaponSlot[i]]))
- DestroyDynamicObject(CarData[ PlayerPlacingInVehicle[i] ][carWeaponObject][PlayerPlacingWeaponSlot[i]]);
- }
- }
-
- foreach(new i : Player)
- {
- if(GetPVarInt(i, "DuplicateKey") == CarData[vehicleid][carID])
- {
- DeletePVar(i, "DuplicateKey");
- Message(i, COLOR_WHITE, "Your duplicate key to %s's vehicle expired.", ReturnSQLName(CarData[vehicleid][carOwnerID]));
- }
- }
-
- CarData[vehicleid][carExists] = false;
- SaveCar(vehicleid);
-
- _has_vehicle_spawned[playerid] = false;
- _has_spawned_vehicleid[playerid] = 0;
-
- format(string, sizeof(string), "Parked by %s", ReturnName(playerid));
- LogVehicleAction(vehicleid, string);
-
- format(string, sizeof(string), "Your %s was parked.", ReturnVehicleName(vehicleid));
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
-
- SetVehicleHealth(vehicleid, 300);
- DefaultVehicleValues(vehicleid);
- DestroyVehicle(vehicleid);
- }
- else if(!strcmp(a_string, "buypark") || !strcmp(a_string, "bp")) {
- if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle to park.");
-
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in the driver's seat.");
-
- new ownedHouse, freePark = 0, vehicleid = GetPlayerVehicleID(playerid);
-
- if(IsValidPlayerCar(vehicleid)){
- if(CarData[vehicleid][carOwnerID] != PlayerData[playerid][pSQLID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this vehicle.");
- GetPlayerPos(playerid, CarData[vehicleid][carPos][0], CarData[vehicleid][carPos][1], CarData[vehicleid][carPos][2]);
- GetVehicleZAngle(vehicleid, CarData[vehicleid][carPos][3]);
-
- CarData[vehicleid][carInterior] = GetPlayerInterior(playerid);
- CarData[vehicleid][carWorld] = GetPlayerVirtualWorld(playerid);
-
- for(new i = 0; i < MAX_PROPERTY; i++){
- if(PropertyData[i][propertyid] != 0){
- if(PropertyData[i][propertyOwnerSQL] == PlayerData[playerid][pSQLID]){
- ownedHouse = i;
- }
- }
- }
-
-
- if(PlayerData[playerid][pInsideGarage]){
- if(GarageData[playerid][garagePropertyID] == ownedHouse){
- freePark = 1;
- }
- }
- else {
- for(new i = 0; i < MAX_PROPERTY; i++){
- if(PropertyData[i][propertyid] != 0){
- if(IsPlayerInRangeOfPoint(playerid, 15.0, PropertyData[i][propertyExterior][0], PropertyData[i][propertyExterior][1], PropertyData[i][propertyExterior][2])){
- if(PropertyData[i][propertyOwnerSQL] == PlayerData[playerid][pSQLID]){
- freePark = 1;
- }
- }
- }
- }
- }
- if(!freePark) {
- if(1500 > PlayerData[playerid][pMoney])
- return SendClientMessage(playerid, COLOR_ADM, "You can't afford this parking. ($1500)");
-
- GiveMoney(playerid, -1500);
- SendClientMessage(playerid, COLOR_DARKGREEN, "Parking place purchased for $1500 (Area change).");
- }
- else {
- SendClientMessage(playerid, COLOR_DARKGREEN, "Parking place changed for free of charge!");
- }
- }
- else if(IsValidFactionCar(vehicleid)){
- if(PlayerData[playerid][pAdmin] < 3 || PlayerData[playerid][pFactionRank] < FactionData[PlayerData[playerid][pFaction]][factionEditrank]) return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You can't park this vehicle.");
-
- GetVehiclePos(vehicleid, FactionCar[vehicleid][carPos][0], FactionCar[vehicleid][carPos][1], FactionCar[vehicleid][carPos][2]);
- GetVehicleZAngle(vehicleid, FactionCar[vehicleid][carPos][3]);
-
- FactionCar[vehicleid][carInterior] = GetPlayerInterior(playerid);
- FactionCar[vehicleid][carWorld] = GetPlayerVirtualWorld(playerid);
-
- SaveFactionCar(vehicleid);
- RefreshFactionCar(vehicleid);
-
- GiveMoney(playerid, -1500);
- SendClientMessage(playerid, COLOR_DARKGREEN, "Parking place purchased for $1500.");
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: This command can only be used for private vehicles. You are in a public static vehicle.");
- }
- else if(!strcmp(a_string, "stats")){
- if (!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle.");
-
- new pcar = GetPlayerVehicleID(playerid);
- if (CarData[pcar][carOwnerID] != PlayerData[playerid][pSQLID]) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this vehicle");
-
- format(string, sizeof(string), "Life Span: Engine Life[%.2f], Battery Life[%.2f], Times Destroyed[%d]", CarData[pcar][carEngine], CarData[pcar][carBattery], CarData[pcar][carTimeDestroyed]);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- format(string, sizeof(string), "Security: Lock[%d], Alarm[%d], Immobiliser[%d], Insurance[%d]", CarData[pcar][carLock], CarData[pcar][carAlarm], CarData[pcar][carImmob], CarData[pcar][carInsurance]);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- format(string, sizeof(string), "Misc: Primary Color[{%06x}%d{FFFFFF}], Secondary Color[{%06x}%d{FFFFFF}], License Plate[%s] ", VehicleColoursTableRGBA[CarData[pcar][carColor1]] >>> 8, CarData[pcar][carColor1], VehicleColoursTableRGBA[CarData[pcar][carColor2]] >>> 8, CarData[pcar][carColor2], CarData[pcar][carPlates]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- else if(!strcmp(a_string, "list"))
- {
- if (CountPlayerCars(playerid) == 0)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't own any vehicles.");
-
- ShowVehicleList(playerid);
- }
- else if(!strcmp(a_string, "find")){
- if(!_has_vehicle_spawned[playerid]) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a vehicle spawned.");
-
- if(!IsVehicleOccupied(_has_spawned_vehicleid[playerid])){
- new Float: car_pos[3];
-
- GetVehiclePos(_has_spawned_vehicleid[playerid], car_pos[0], car_pos[1], car_pos[2]);
-
- SetPlayerCheckpoint(playerid, car_pos[0], car_pos[1], car_pos[2], 4.0);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "Your vehicle is in use / stolen right now!");
- }
- else if(!strcmp(a_string, "tow")){
- if(!_has_vehicle_spawned[playerid]) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a vehicle spawned.");
-
- if(playerTowingVehicle[playerid])
- return SendClientMessage(playerid, COLOR_ADM, "You're already towing a vehicle. ");
- if(!IsVehicleOccupied(_has_spawned_vehicleid[playerid]))
- {
- SendClientMessage(playerid, COLOR_DARKGREEN, "Tow Request Sent");
-
- vehicleTowSign[_has_spawned_vehicleid[playerid]] =
- Create3DTextLabel("(( | ))\nTOWING VEHICLE", COLOR_DARKGREEN, 0.0, 0.0, 0.0, 25.0, 0, 1);
-
- Attach3DTextLabelToVehicle(vehicleTowSign[_has_spawned_vehicleid[playerid]], _has_spawned_vehicleid[playerid], -0.0, -0.0, -0.0);
-
- playerTowingVehicle[playerid] = true;
- playerTowTimer[playerid] = SetTimerEx("OnVehicleTow", 4500, true, "i", playerid);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "Your vehicle is in use / stolen right now!");
- }
- else if(!strcmp(a_string, "faction")){
- if(PlayerData[playerid][pAdmin] < 3 && PlayerData[playerid][pFactionRank] != 1)
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You don't have permission to do this.");
- if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle.");
-
- new vehicleid = GetPlayerVehicleID(playerid);
- new query[256];
- new Float:currPos[4];
-
- GetPlayerPos(playerid, currPos[0], currPos[1], currPos[2]);
- GetVehicleZAngle(vehicleid, currPos[3]);
-
- if(IsValidPlayerCar(vehicleid)) {
- if(CarData[vehicleid][carOwnerID] != PlayerData[playerid][pSQLID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this vehicle.");
-
- Resources[playerid][v_Model] = CarData[vehicleid][carModel];
- Resources[playerid][v_Faction] = PlayerData[playerid][pFaction];
- Resources[playerid][v_Color1] = CarData[vehicleid][carColor1];
- Resources[playerid][v_Color2] = CarData[vehicleid][carColor2];
- Resources[playerid][v_Pos][0] = currPos[0];
- Resources[playerid][v_Pos][1] = currPos[1];
- Resources[playerid][v_Pos][2] = currPos[2];
- Resources[playerid][v_Pos][3] = currPos[3];
-
- mysql_format(m_Handle, query, sizeof(query), "DELETE FROM `ownedcars` WHERE id = %i", CarData[vehicleid][carID]);
- mysql_query(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO `factioncars` (`factionid`, `ModelID`, `PosX`, `PosY`, `PosZ`, `PosA`, `Interior`, `World`, `Color1`, `Color2`) VALUES(%i, %i, %f, %f, %f, %f, %i, %i, %i, %i)",
- PlayerData[playerid][pFaction], CarData[vehicleid][carModel], currPos[0], currPos[1], currPos[2], currPos[3], GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid), CarData[vehicleid][carColor1],
- CarData[vehicleid][carColor2]);
- mysql_pquery(m_Handle, query, "SQL_AddFactionVehicle", "i", playerid);
-
- for(new i = 0; i < (MAX_OWNED_CARS - 1); i++) {
- if(PlayerData[playerid][pOwnedCar][i] == CarData[vehicleid][carID]) {
- PlayerData[playerid][pOwnedCar][i] = 0;
- }
- }
-
- DefaultVehicleValues(vehicleid);
-
- _has_spawned_vehicleid[playerid] = 0;
- _has_vehicle_spawned[playerid] = 0;
-
- format(string, sizeof(string), "%s made their %s a faction vehicle", ReturnName(playerid, 1), ReturnVehicleName(vehicleid));
- adminWarn(3, string);
-
- format(string, sizeof(string), "Your %s now belongs to the %s. You will no longer own it.", ReturnVehicleName(vehicleid), ReturnFactionName(PlayerData[playerid][pFaction]));
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- WriteLog("vehicle_logs/factionize_log.txt", "[%s] %s factionized their vehicle to factionid %d", ReturnDate(), ReturnName(playerid, 1), PlayerData[playerid][pFaction]);
- return true;
- }
- else if(AdminCar[vehicleid]) {
- if(PlayerData[playerid][pAdmin] < 4)return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You don't have permission to factionize this vehicle.");
-
- new factionid;
-
- if(sscanf(b_string, "d", factionid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /v(ehicle) faction [faction_id] - {FF6346}THIS IS AN ADMIN VEHICLE.");
-
- new color1 = AdminCarColor1[vehicleid];
- new color2 = AdminCarColor2[vehicleid];
-
- format(string, sizeof(string), "This %s now belongs to the %s.", ReturnVehicleName(vehicleid), ReturnFactionName(factionid));
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- AdminCar[vehicleid] = false;
-
- Resources[playerid][v_Model] = GetVehicleModel(vehicleid);
- Resources[playerid][v_Faction] = factionid;
- Resources[playerid][v_Color1] = color1;
- Resources[playerid][v_Color2] = color2;
- Resources[playerid][v_Pos][0] = currPos[0];
- Resources[playerid][v_Pos][1] = currPos[1];
- Resources[playerid][v_Pos][2] = currPos[2];
- Resources[playerid][v_Pos][3] = currPos[3];
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO `factioncars` (`factionid`, `ModelID`, `PosX`, `PosY`, `PosZ`, `PosA`, `Interior`, `World`, `Color1`, `Color2`) VALUES(%i, %i, %f, %f, %f, %f, %i, %i, %i, %i)",
- factionid, GetVehicleModel(vehicleid), currPos[0], currPos[1], currPos[2], currPos[3], GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid), color1, color2);
- mysql_pquery(m_Handle, query, "SQL_AddFactionVehicle", "i", playerid);
-
- WriteLog("admin_logs/factions/carfactionize_log.txt", "[%s] %s factionized their vehicle to factionid %d", ReturnDate(), ReturnName(playerid, 1), factionid);
- return true;
- }
- else return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't factionize this vehicle.");
- }
- else if(!strcmp(a_string, "close")) {
- SendClientMessage(playerid, -1, "[ ! ] All dealership textdraws has been removed.");
- ds_DestroyDefaultTextdraws(playerid);
- CancelSelectTextDraw(playerid);
- }
- else if(!strcmp(a_string, "buy")) {
- if(_has_vehicle_spawned[playerid])return SendClientMessage(playerid, COLOR_ADM, "SERVER: You need to despawn your vehicle before buying a new one.");
- for(new i = 0; i < MAX_BUSINESS; i++)
- {
- if(BusinessData[i][businessID] != 0){
- if(IsPlayerInRangeOfPoint(playerid, 6.0, BusinessData[i][businessExt][0], BusinessData[i][businessExt][1], BusinessData[i][businessExt][2])){
- if(BusinessData[i][businessType] >= 9){
- ds_ShowDealership(playerid);
- PlayerData[playerid][pAtDealership] = i;
- ClearDealershipVar(playerid);
- return true;
- }
- }
- }
- }
- SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't at a dealership OR aren't near one.");
- }
- else if(!strcmp(a_string, "scrap")){
- new confirm[60], query[60], str[128], vehicleid = GetPlayerVehicleID(playerid);
-
- if(!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle.");
-
- if(!IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't scrap this vehicle.");
-
- if(PlayerData[playerid][pSQLID] != CarData[vehicleid][carOwnerID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this vehicle.");
-
- if(sscanf(b_string, "s[60]", confirm)){
- SendClientMessage(playerid, COLOR_ACTION, "You're about to scrap your vehicle. Type /v scrap confirm to do it.");
- SendClientMessage(playerid, COLOR_RED, "This action is permanent and cannot be undone.");
- return true;
- }
-
- if(!strcmp(b_string, "confirm")){
- new price = 0;
- for(new index = 0; index < sizeof(dealershipVehicles); index++) {
- if(CarData[vehicleid][carModel] == dealershipVehicles[index][1]) {
- price = dealershipVehicles[index][2]/2;
- break;
- }
- }
- WriteLog("vehicle_logs/scrap_log.txt", "[%s] %s scrapped their %s for $%i (DBID: %i)", ReturnDate(), ReturnName(playerid), price, ReturnVehicleName(vehicleid), CarData[vehicleid][carID]);
-
- format(str, sizeof(str), "You scrapped your %s for $%i.", ReturnVehicleName(vehicleid), price);
- SendClientMessage(playerid, COLOR_ACTION, str);
-
- _has_vehicle_spawned[playerid] = false;
- _has_spawned_vehicleid[playerid] = 0;
-
- for(new i = 0; i < (MAX_OWNED_CARS - 1); i++)
- {
- if(PlayerData[playerid][pOwnedCar][i] == CarData[vehicleid][carID])
- {
- PlayerData[playerid][pOwnedCar][i] = 0;
- }
- }
- GiveMoney(playerid, price);
-
- mysql_format(m_Handle, query, sizeof(query), "DELETE FROM ownedcars WHERE id = %i", CarData[vehicleid][carID]);
- mysql_pquery(m_Handle, query);
-
- DefaultVehicleValues(vehicleid);
- DestroyVehicle(vehicleid);
-
- RefreshPlayerCarSlots(playerid);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- }
- else if(!strcmp(a_string, "hood"))
- {
- new
- Float:x,
- Float:y,
- Float:z
- ;
-
- new engine, lights, alarm, doors, bonnet, boot, objective;
-
- if(!IsPlayerInAnyVehicle(playerid) && GetNearestVehicle(playerid) != INVALID_VEHICLE_ID)
- {
- GetVehicleHood(GetNearestVehicle(playerid), x, y, z);
-
- new
- vehicleid = GetNearestVehicle(playerid)
- ;
-
- if(IsValidFactionCar(vehicleid) && PlayerData[playerid][pFaction] != FactionCar[vehicleid][carFaction])
- return SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You don't have access to this vehicle.");
-
- if(!IsValidFactionCar(vehicleid) && CarData[vehicleid][carLocked])
- return SendClientMessage(playerid, COLOR_YELLOW, "This vehicle is locked.");
-
- if(!IsPlayerInRangeOfPoint(playerid, 2.5, x, y, z))
- return SendClientMessage(playerid, COLOR_YELLOW, "You aren't near the vehicles hood.");
-
- GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
-
- if(!bonnet)
- {
- SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, 1, boot, objective);
- SendClientMessage(playerid, COLOR_YELLOW, "You have opened the hood.");
- }
- else
- {
- SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, 0, boot, objective);
- SendClientMessage(playerid, COLOR_YELLOW, "You have closed the hood.");
- }
- }
- else if(IsPlayerInAnyVehicle(playerid))
- {
- new
- vehicleid = GetPlayerVehicleID(playerid)
- ;
-
- if(IsValidFactionCar(vehicleid) && PlayerData[playerid][pFaction] != FactionCar[vehicleid][carFaction])
- return SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You don't have access to this vehicle.");
-
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- return SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You aren't in the driver's seat.");
-
- GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
-
- if(!bonnet)
- {
- SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, 1, boot, objective);
- SendClientMessage(playerid, COLOR_YELLOW, "You have opened the hood.");
- }
- else
- {
- SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, 0, boot, objective);
- SendClientMessage(playerid, COLOR_YELLOW, "You have closed the hood.");
- }
- }
- else return SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You aren't in or near a vehicle.");
- }
- else if(!strcmp(a_string, "trunk"))
- {
- new
- Float:x,
- Float:y,
- Float:z
- ;
-
- new engine, lights, alarm, doors, bonnet, boot, objective;
-
- if(!IsPlayerInAnyVehicle(playerid) && GetNearestVehicle(playerid) != INVALID_VEHICLE_ID)
- {
- GetVehicleBoot(GetNearestVehicle(playerid), x, y, z);
-
- new
- vehicleid = GetNearestVehicle(playerid)
- ;
-
- if(IsValidFactionCar(vehicleid) && PlayerData[playerid][pFaction] != FactionCar[vehicleid][carFaction])
- return SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You don't have access to this vehicle.");
-
- if(!IsValidFactionCar(vehicleid) && CarData[vehicleid][carLocked])
- return SendClientMessage(playerid, COLOR_YELLOW, "This vehicle is locked.");
-
- if(!IsPlayerInRangeOfPoint(playerid, 2.5, x, y, z))
- return SendClientMessage(playerid, COLOR_YELLOW, "You aren't near the vehicles trunk.");
-
- GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
-
- if(!boot)
- {
- SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, 1, objective);
-
- SendClientMessage(playerid, COLOR_YELLOW, "You have opened the trunk.");
- SendClientMessage(playerid, COLOR_WHITE, "You can use /check to take a gun or /place to put one in.");
- }
- else
- {
- SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, 0, objective);
-
- SendClientMessage(playerid, COLOR_YELLOW, "You have closed the trunk.");
- }
- }
- else if(IsPlayerInAnyVehicle(playerid))
- {
- new
- vehicleid = GetPlayerVehicleID(playerid)
- ;
-
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- return SendClientMessage(playerid, COLOR_YELLOW, "You aren't in the driver's seat.");
-
- if(IsValidFactionCar(vehicleid) && PlayerData[playerid][pFaction] != FactionCar[vehicleid][carFaction])
- return SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You don't have access to this vehicle.");
-
- GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
-
- if(!boot)
- {
- SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, 1, objective);
-
- SendClientMessage(playerid, COLOR_YELLOW, "You have opened the trunk.");
- SendClientMessage(playerid, COLOR_WHITE, "You can use /check, /takegun and /place.");
- }
- else
- {
- SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, 0, objective);
- SendClientMessage(playerid, COLOR_YELLOW, "You have closed the trunk.");
- }
- }
- else return SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You aren't near or in a vehicle.");
- }
- else if(!strcmp(a_string, "payfines"))
- {
- new
- vehicleid = GetPlayerVehicleID(playerid);
-
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- return SendClientMessage(playerid, COLOR_YELLOW, "You aren't in the driver's seat.");
-
- if(CarData[vehicleid][carOwnerID] != PlayerData[playerid][pSQLID])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't own this vehicle.");
-
- if(!CountVehicleFines(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: This vehicle doesn't have any fines.");
-
- if(PlayerData[playerid][pMoney] < CountVehicleFinesTotal(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't have enough money to pay all the fines.");
-
- if(!IsPlayerNearBusiness(playerid) || IsPlayerNearBusiness(playerid) && BusinessData[IsPlayerNearBusiness(playerid)][businessType] != 9)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't at a dealership.");
-
- format(string, sizeof(string), "[-] You paid fines accumulating up to $%s.", MoneyFormat(CountVehicleFinesTotal(vehicleid)));
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- GiveMoney(playerid, -CountVehicleFinesTotal(vehicleid));
- ClearVehicleFines(vehicleid);
- }
- else if(!strcmp(a_string, "sell"))
- {
- new playerb, price, hasSpace = -1;
- new vehicleid = GetPlayerVehicleID(playerid);
-
- if(!isnull(b_string) && !strcmp(b_string, "cancel", true))
- {
- if(VehicleOfferedTo[playerid] == INVALID_PLAYER_ID)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You haven't offered to sell a vehicle.");
-
- Message(playerid, COLOR_ACTION, "SERVER: You cancelled your offer. %s was notified.", ReturnName(VehicleOfferedTo[playerid]));
- Message(VehicleOfferedTo[playerid], COLOR_ACTION, "SERVER: %s cancelled their vehicle offer.", ReturnName(playerid));
-
- VehicleOfferedTo[VehicleOfferBy[playerid]] = INVALID_PLAYER_ID;
- VehicleOfferBy[playerid] = INVALID_PLAYER_ID;
-
- VehiclePrice[playerid] = 0;
- VehicleDBIDOffered[VehicleOfferedTo[playerid]] = 0;
- return 1;
- }
-
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't in a vehicle.");
-
- if(CarData[vehicleid][carOwnerID] != PlayerData[playerid][pSQLID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't own this vehicle.");
-
- if(VehicleOfferedTo[playerid] != INVALID_PLAYER_ID)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You already offered your vehicle. Wait for their reply.");
-
- if(sscanf(b_string, "ui", playerb, price))
- return SendClientMessage(playerid, COLOR_ACTION, "USAGE: /v sell [playerid/PartofName] [price]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid player.");
-
- if(!GetDistanceBetweenPlayers(playerid, playerb, 4.5))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't near that player.");
-
- if(price < 1)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Price.");
-
- if(VehicleOfferBy[playerb] != INVALID_PLAYER_ID)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: That player has already been offered a vehicle.");
-
- hasSpace = FreePlayerCarID(playerb);
- if(hasSpace == -1) return SendClientMessage(playerid, COLOR_ADM, "SERVER: That player can't own anymore vehicles.");
-
- format(string, sizeof(string), "Are you sure you want to offer %s your %s for $%s?", ReturnName(playerb, 1), ReturnVehicleName(vehicleid), MoneyFormat(price));
- ConfirmDialog(playerid, "Confirmation", string, "OnVehicleOffer", playerb, price);
- return 1;
- }
- else if(!strcmp(a_string, "accept"))
- {
- if(VehicleOfferBy[playerid] == INVALID_PLAYER_ID)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You haven't been offered a vehicle.");
-
- if(!strcmp(b_string, "yes", true))
- {
-
- if(!GetDistanceBetweenPlayers(playerid, VehicleOfferBy[playerid], 4.5))
- {
- Message(playerid, COLOR_ACTION, "You're no longer near your offerer (%s). The sale was cancelled.", ReturnName(VehicleOfferBy[playerid]));
- VehicleOfferedTo[VehicleOfferBy[playerid]] = INVALID_PLAYER_ID;
- VehicleOfferBy[playerid] = INVALID_PLAYER_ID;
-
- VehiclePrice[playerid] = 0;
- VehicleDBIDOffered[playerid] = 0;
- return 1;
- }
-
- if(VehiclePrice[playerid] > PlayerData[playerid][pMoney])
- {
- Message(playerid, COLOR_ACTION, "You can't afford this price. The sale was cancelled.", ReturnName(VehicleOfferBy[playerid]));
- Message(VehicleOfferBy[playerid], COLOR_ACTION, "%s can't afford your sale.", ReturnName(playerid));
-
- VehicleOfferedTo[VehicleOfferBy[playerid]] = INVALID_PLAYER_ID;
- VehicleOfferBy[playerid] = INVALID_PLAYER_ID;
-
- VehiclePrice[playerid] = 0;
- VehicleDBIDOffered[playerid] = 0;
- return 1;
- }
-
- new slot, foundCar = -1;
-
- for(new i = 1, j = GetVehiclePoolSize(); i <= j; i++)
- {
- if(CarData[i][carID] == VehicleDBIDOffered[playerid])
- {
- foundCar = i;
- }
- }
- if(foundCar == -1)
- {
- Message(playerid, COLOR_ACTION, "An error occurred. %s's vehicle is no longer spawned.", ReturnName(VehicleOfferBy[playerid]));
- Message(VehicleOfferBy[playerid], COLOR_ACTION, "An error occurred. Your vehicle is no longer spawned.", ReturnName(playerid));
-
- VehicleOfferedTo[VehicleOfferBy[playerid]] = INVALID_PLAYER_ID;
- VehicleOfferBy[playerid] = INVALID_PLAYER_ID;
-
- VehiclePrice[playerid] = 0;
- VehicleDBIDOffered[playerid] = 0;
- return 1;
- }
-
- format(string, sizeof(string), "%s sold their %s to %s for $%d", ReturnName(VehicleOfferBy[playerid]), ReturnVehicleModelName(CarData[foundCar][carModel]), ReturnName(playerid), VehiclePrice[VehicleOfferBy[playerid]]);
- adminWarn(1, string);
-
- _has_vehicle_spawned[VehicleOfferBy[playerid]] = false;
- _has_spawned_vehicleid[VehicleOfferBy[playerid]] = INVALID_VEHICLE_ID;
-
- Message(VehicleOfferBy[playerid], COLOR_ACTION, "SERVER: %s accepted your vehicle offer! (%s)", ReturnName(playerid), ReturnDateEx());
- Message(playerid, COLOR_ACTION, "SERVER: You accepted %s's vehicle offer! (%s)", ReturnName(VehicleOfferBy[playerid]), ReturnDateEx());
-
- WriteLog("vehicle_logs/acceptsale_log.txt", "[%s] %s accepted %s's offer for their Vehicle DBID %i (Price: $%s)", ReturnDate(), ReturnName(playerid), ReturnName(VehicleOfferBy[playerid]), VehicleDBIDOffered[playerid], MoneyFormat(VehiclePrice[playerid]));
-
- slot = FreePlayerCarID(playerid);
-
- PlayerData[playerid][pOwnedCar][slot] = VehicleDBIDOffered[playerid];
-
- for(new i = 0; i < (MAX_OWNED_CARS - 1); i++)
- {
- if(PlayerData[VehicleOfferBy[playerid]][pOwnedCar][i] == VehicleDBIDOffered[playerid])
- {
- PlayerData[VehicleOfferBy[playerid]][pOwnedCar][i] = 0;
- }
- }
-
- CarData[foundCar][carOwnerID] = PlayerData[playerid][pSQLID];
- SaveCar(foundCar);
- GiveMoney(playerid, -VehiclePrice[VehicleOfferBy[playerid]]);
- GiveMoney(VehicleOfferBy[playerid], VehiclePrice[VehicleOfferBy[playerid]]);
-
- SavePlayer(playerid);
- SavePlayer(VehicleOfferBy[playerid]);
- RefreshPlayerCarSlots(VehicleOfferBy[playerid]);
-
- VehiclePrice[playerid] = 0;
- VehicleDBIDOffered[playerid] = 0;
-
- VehiclePrice[VehicleOfferBy[playerid]] = 0;
- VehicleDBIDOffered[VehicleOfferBy[playerid]] = 0;
-
- VehicleOfferedTo[VehicleOfferBy[playerid]] = INVALID_PLAYER_ID;
- VehicleOfferBy[playerid] = INVALID_PLAYER_ID;
- }
- else if(!strcmp(b_string, "no", true))
- {
- Message(VehicleOfferBy[playerid], COLOR_ACTION, "SERVER: %s declined your vehicle offer.", ReturnName(playerid));
- Message(playerid, COLOR_ACTION, "SERVER: You declined %s's offer.", ReturnName(VehicleOfferBy[playerid]));
-
- VehiclePrice[playerid] = 0;
- VehicleDBIDOffered[playerid] = 0;
-
- VehiclePrice[VehicleOfferBy[playerid]] = 0;
- VehicleDBIDOffered[VehicleOfferBy[playerid]] = 0;
-
- VehicleOfferedTo[VehicleOfferBy[playerid]] = INVALID_PLAYER_ID;
- VehicleOfferBy[playerid] = INVALID_PLAYER_ID;
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: It's either a yes or a no.");
- }
- else if(!strcmp(a_string, "refill"))
- {
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't driving a vehicle.");
-
- if(!IsValidPlayerCar(GetPlayerVehicleID(playerid)))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: This isn't a player vehicle.");
-
- if(PlayerRefilling[playerid])
- return SendClientMessage(playerid, COLOR_DARKGREEN, "You're in the process of refilling.");
-
- new
- vehicleid = GetPlayerVehicleID(playerid),
- vehicleType;
-
- if(GetVehicleModelInfoAsInt(GetVehicleModel(vehicleid), "TransMissionData_nEngineType") == 'P')
- vehicleType = FUEL_TYPE_PETROL;
-
- else if(GetVehicleModelInfoAsInt(GetVehicleModel(vehicleid), "TransMissionData_nEngineType") == 'D')
- vehicleType = FUEL_TYPE_DIESEL;
-
- else vehicleType = FUEL_TYPE_ELECTRIC;
-
- if(IsPlayerNearFuelStation(playerid) != -1)
- {
- format(string, sizeof(string), "Your vehicle uses %s. You're about to start refilling. Price: $10 per 30units.\nWould you like to refill it?", GetFuelTypeAsString(vehicleType));
- ConfirmDialog(playerid, "Confirmation", string, "OnConfirmFuel", vehicleType);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near a gas station.");
- }
- else if(!strcmp(a_string, "lights")) return cmd_lights(playerid, "");
- else if(!strcmp(a_string, "lock"))
- {
- new nearVehicle;
- for(new i = 0; i < MAX_VEHICLES; i++)
- {
- new Float: currPos[3];
- GetVehiclePos(i, currPos[0], currPos[1], currPos[2]);
-
- if(IsPlayerInRangeOfPoint(playerid, 5.0, currPos[0], currPos[1], currPos[2])){
-
- nearVehicle++;
- if(IsValidPlayerCar(i)){
- if(CarData[i][carOwnerID] != PlayerData[playerid][pSQLID] && !PlayerData[playerid][pAdminDuty])return GameTextForPlayer(playerid, "You don't have the keys to this", 2000, 6);
- if(!CarData[i][carLocked]){
- ToggleVehicleLock(i, true);
- CarData[i][carLocked] = true;
- SaveSQLInt(CarData[i][carID], "ownedcars", "Locked", 1);
-
- format(string, sizeof(string), "%s locked", ReturnName(playerid));
- LogVehicleAction(i, string);
- format(string, sizeof(string), "~r~%s LOCKED", ReturnVehicleName(i));
- GameTextForPlayer(playerid, string, 3000, 4);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- else{
- CarData[i][carLocked] = false;
- ToggleVehicleLock(i, false);
- SaveSQLInt(CarData[i][carID], "ownedcars", "Locked", 0);
-
- format(string, sizeof(string), "%s unlocked", ReturnName(playerid));
- LogVehicleAction(i, string);
-
- format(string, sizeof(string), "~g~%s UNLOCKED", ReturnVehicleName(i));
- GameTextForPlayer(playerid, string, 3000, 4);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- }
- else if(IsValidRentalCar(i)){
- if(!RentalData[i][rentalcarRented])return GameTextForPlayer(playerid, "~r~This vehicle doesn't have a lock", 3000, 4);
- if(RentalData[i][rentalcarRentedBy] != PlayerData[playerid][pSQLID] && !PlayerData[playerid][pAdminDuty])return GameTextForPlayer(playerid, "You don't have the keys to this", 2000, 6);
-
- if(!RentalData[i][rentalcarLocked]){
- ToggleVehicleLock(i, true);
- RentalData[i][rentalcarLocked] = true;
-
- format(string, sizeof(string), "~r~%s LOCKED", ReturnVehicleName(i));
- GameTextForPlayer(playerid, string, 3000, 4);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- else{
- ToggleVehicleLock(i, false);
- RentalData[i][rentalcarLocked] = false;
-
- format(string, sizeof(string), "~g~%s UNLOCKED", ReturnVehicleName(i));
- GameTextForPlayer(playerid, string, 3000, 4);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- }
- else return GameTextForPlayer(playerid, "~r~This vehicle doesn't have a lock", 3000, 4);
- }
- }
- if(!nearVehicle)return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near a vehicle or it isn't synced.");
- }
- else if(!strcmp(a_string, "duplicatekey"))
- {
- new playerb;
-
- if(sscanf(b_string, "i", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /v duplicatekey [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "You specified an invalid player.");
-
- if(!_has_vehicle_spawned[playerid])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't have a car spawned.");
-
- if(!GetDistanceBetweenPlayers(playerid, playerb, 5.0))
- return SendClientMessage(playerid, COLOR_ADM, "You aren't near that player.");
-
- if(GetPVarInt(playerb, "DuplicateKey") != 0)
- return SendClientMessage(playerid, COLOR_ADM, "That player already has a duplicated key.");
-
- if(GetPVarInt(playerb, "DuplicateKey") == CarData[_has_spawned_vehicleid[playerid]][carID])
- return SendClientMessage(playerid, COLOR_ADM, "That player already has your cars key.");
-
- GiveMoney(playerid, -50);
-
- Message(playerid, COLOR_WHITE, "You gave %s a key to your %s. This will expire when you park the car or they log out.", ReturnName(playerb), ReturnVehicleName(_has_spawned_vehicleid[playerid]));
- Message(playerb, COLOR_WHITE, "%s gave you a key to their %s. This will expire when they park it or you log out.", ReturnName(playerid), ReturnVehicleName(_has_spawned_vehicleid[playerid]));
-
- format(string, sizeof(string), "* %s gives %s a duplicate key of their vehicle.", ReturnName(playerid, 0), ReturnName(playerb, 0));
- SetPlayerChatBubble(playerid, string, COLOR_ACTION, 20.0, 3000);
-
- SetPVarInt(playerb, "DuplicateKey", CarData[_has_spawned_vehicleid[playerid]][carID]);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- return 1;
- }
- CMD:cw(playerid, params[])return cmd_carwhisper(playerid, params);
- CMD:carwhisper(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You need to be in a vehicle.");
-
- new string[128];
- if(isnull(params))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /carwhisper [text]");
-
- foreach(new i : Player)
- {
- if(PlayerData[i][pSpectator] == playerid)
- {
- Message(i, COLOR_YELLOW, "%s vehicle whispered: %s", ReturnName(playerid), params);
- }
- }
-
- foreach(new i : Player)
- {
- if(IsPlayerInVehicle(i, GetPlayerVehicleID(playerid)))
- {
- format(string, sizeof(string), "%s whispers: %s", ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_YELLOW, string);
- }
- }
-
- return true;
- }
- CMD:cb(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You need to be in a vehicle.");
-
- new string[128];
- if(isnull(params))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /cb [text]");
-
- foreach(new i : Player)
- {
- if(PlayerData[i][pSpectator] == playerid)
- {
- Message(i, COLOR_YELLOW, "%s vehicle /cb: %s", ReturnName(playerid), params);
- }
- }
-
- foreach(new i : Player)
- {
- if(IsPlayerInVehicle(i, GetPlayerVehicleID(playerid)))
- {
- format(string, sizeof(string), "(( [%d] %s: %s ))", playerid, ReturnName(playerid, 1), params);
- SendClientMessage(i, COLOR_YELLOW, string);
- }
- }
-
- return true;
- }
- CMD:setstation(playerid, params[])
- {
- new string[400], param[6], url[512];
- if (sscanf(params, "S()[6]S()[128]", param, url))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /setstation -> Optional Params: url [url], off");
-
- if (isequal(param, "off"))
- {
- if (IsNearBoombox(playerid))
- {
- new id = IsNearBoombox(playerid);
-
- if(BoomboxData[id][boomboxPlayerID] != PlayerData[playerid][pSQLID] && !PlayerData[playerid][pAdmin])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't have access to this boombox.");
-
- foreach (new i : Player) {
- if (IsPlayerInRangeOfPoint(i, 10.0, BoomboxData[id][boomboxPos][0], BoomboxData[id][boomboxPos][1], BoomboxData[id][boomboxPos][2]))
- {
- StopAudioStreamForPlayer(i);
- SendClientMessage(i, COLOR_ADM, "Radio has been stopped.");
-
- BoomboxData[id][boomboxOn] = false;
- }
- }
- return true;
- }
- if (IsPlayerInAnyVehicle(playerid))
- {
- if (GetPlayerVehicleSeat(playerid) > 1)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: Only the driver and front passenger may control the XMR.");
-
- new vehicleid = GetPlayerVehicleID(playerid);
-
- if (IsValidPlayerCar(vehicleid))
- {
- if (!CarData[vehicleid][carXMR])
- return SendClientMessage(playerid, COLOR_YELLOW, "This vehicle does not have an XM-Radio.");
- }
-
- if (IsValidFactionCar(vehicleid)) { FactionCar[vehicleid][carsXMROn] = false; }
- if (IsValidPlayerCar(vehicleid)) { CarData[vehicleid][carXMROn] = false; }
-
- foreach (new i : Player)
- {
- if(IsPlayerInVehicle(i, vehicleid))
- {
- StopAudioStreamForPlayer(i);
- SendClientMessage(i, COLOR_ADM, "Radio has been stopped.");
- }
- }
- return true;
- }
- if (IsPlayerInProperty(playerid))
- {
- new id = IsPlayerInProperty(playerid);
-
- if (IsPlayerInRangeOfPoint(playerid, 6.0, PropertyData[id][propertyXMRPos][0], PropertyData[id][propertyXMRPos][1], PropertyData[id][propertyXMRPos][2]))
- {
- if (PlayerData[playerid][pSQLID] != PropertyData[id][propertyOwnerSQL])
- return SendClientMessage(playerid, COLOR_ADM, "Only the properties owner may use this XMR.");
-
- foreach (new i : Player)
- {
- if (IsPlayerInProperty(i) == IsPlayerInProperty(playerid))
- {
- StopAudioStreamForPlayer(i);
- SendClientMessage(i, COLOR_ADM, "Radio has been stopped.");
- }
- }
- return true;
- }
- }
- SendClientMessage(playerid, COLOR_ADM, "You are not near a radio.");
- return true;
- }
- else if(isequal(param, "url")) {
- if (sscanf(params, "ss[512]", param, url))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /setstation url [URL]");
- new id, nearAnything = 0;
-
- if (IsNearBoombox(playerid))
- {
- id = IsNearBoombox(playerid);
-
- if(BoomboxData[id][boomboxPlayerID] != PlayerData[playerid][pSQLID] && !PlayerData[playerid][pAdmin])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't have access to this boombox.");
-
- nearAnything++;
-
- }
- if (IsPlayerInAnyVehicle(playerid))
- {
- if (GetPlayerVehicleSeat(playerid) > 1)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: Only the driver and front passenger may control the XMR.");
-
- new vehicleid = GetPlayerVehicleID(playerid);
-
- if (IsValidPlayerCar(vehicleid))
- {
- if (!CarData[vehicleid][carXMR])
- return SendClientMessage(playerid, COLOR_YELLOW, "This vehicle does not have an XM-Radio.");
- }
-
- nearAnything++;
- }
- if (IsPlayerInProperty(playerid))
- {
- id = IsPlayerInProperty(playerid);
-
- if (IsPlayerInRangeOfPoint(playerid, 4.0, PropertyData[id][propertyXMRPos][0], PropertyData[id][propertyXMRPos][1], PropertyData[id][propertyXMRPos][2]))
- {
- if (PlayerData[playerid][pSQLID] != PropertyData[id][propertyOwnerSQL])
- return SendClientMessage(playerid, COLOR_ADM, "Only the properties owner may use this XMR.");
- }
-
- nearAnything++;
- }
-
- if (!nearAnything)
- return SendClientMessage(playerid, COLOR_ADM, "You are not near a radio.");
-
- format(string, sizeof(string), "> %s has turned the radio to Custom.", ReturnName(playerid, 0));
- SetPlayerChatBubble(playerid, string, 0x88AA62FF, 20.0, 3000);
- SendClientMessage(playerid, 0x88AA62FF, string);
-
- if (IsNearBoombox(playerid))
- {
- new idx = IsNearBoombox(playerid);
-
- if(BoomboxData[idx][boomboxPlayerID] != PlayerData[playerid][pSQLID] && !PlayerData[playerid][pAdmin])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't have access to this boombox.");
-
- GetPlayerPos(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]);
-
- foreach (new i : Player)
- {
- if (pLoggedIn[i])
- {
- if (BoomboxData[idx][boomboxInBusiness] != 0) {
- if (BusinessData[IsPlayerInBusiness(i)][businessID] == BoomboxData[idx][boomboxInBusiness]) {
- if (IsPlayerInRangeOfPoint(i, 100.0, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2])) {
- PlayAudioStreamForPlayer(i, url, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2], 100.0, 1);
-
- format(string, sizeof(string), "Radio changed to station Custom.");
- SendClientMessage(i, COLOR_ADM, string);
- }
- }
- }
- else if (IsPlayerInRangeOfPoint(i, 25.0, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]))
- {
- PlayAudioStreamForPlayer(i, url, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2], 25.0, 1);
-
- format(string, sizeof(string), "Radio changed to station Custom.");
- SendClientMessage(i, COLOR_ADM, string);
- }
- }
- }
-
- BoomboxData[idx][boomboxOn] = true;
- format(BoomboxData[idx][boomboxURL], 128, "%s", url);
- return true;
- }
- if (IsPlayerInProperty(playerid))
- {
- foreach(new i : Player)
- {
- if (IsPlayerInProperty(i) == IsPlayerInProperty(playerid))
- {
- PlayAudioStreamForPlayer(i, url);
-
- format(string, sizeof(string), "Radio changed to station Custom.", url);
- SendClientMessage(i, COLOR_ADM, string);
- }
- }
-
- new idx = IsPlayerInProperty(playerid);
-
- PropertyData[idx][propertyXMROn] = true;
- format(PropertyData[idx][propertyXMRUrl], 128, "%s", url);
- return true;
- }
-
- if (IsPlayerInAnyVehicle(playerid))
- {
- new vehicleid = GetPlayerVehicleID(playerid);
-
- foreach(new i : Player)
- {
- if (IsPlayerInVehicle(i, vehicleid))
- {
- PlayAudioStreamForPlayer(i, url);
-
- format(string, sizeof(string), "Radio changed to station Custom.", url);
- SendClientMessage(i, COLOR_ADM, string);
- }
- }
- if(IsValidPlayerCar(vehicleid))
- {
- CarData[vehicleid][carXMROn] = true;
- format(CarData[vehicleid][carXMRUrl], 128, "%s", url);
- }
-
- if(IsValidFactionCar(vehicleid))
- {
- FactionCar[vehicleid][carsXMROn] = true;
- format(FactionCar[vehicleid][carsXMRURL], 128, "%s", url);
- }
- return true;
- }
- }
- else
- {
- new id, nearAnything = 0;
-
- if (IsNearBoombox(playerid))
- {
- id = IsNearBoombox(playerid);
-
- if(BoomboxData[id][boomboxPlayerID] != PlayerData[playerid][pSQLID] && !PlayerData[playerid][pAdmin])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't have access to this boombox.");
-
- nearAnything++;
-
- }
- if (IsPlayerInAnyVehicle(playerid))
- {
- if (GetPlayerVehicleSeat(playerid) > 1)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: Only the driver and front passenger may control the XMR.");
-
- new vehicleid = GetPlayerVehicleID(playerid);
-
- if (IsValidPlayerCar(vehicleid))
- {
- if (!CarData[vehicleid][carXMR])
- return SendClientMessage(playerid, COLOR_YELLOW, "This vehicle does not have an XM-Radio.");
- }
-
- nearAnything++;
- }
- if (IsPlayerInProperty(playerid))
- {
- id = IsPlayerInProperty(playerid);
-
- if (IsPlayerInRangeOfPoint(playerid, 4.0, PropertyData[id][propertyXMRPos][0], PropertyData[id][propertyXMRPos][1], PropertyData[id][propertyXMRPos][2]))
- {
- if (PlayerData[playerid][pSQLID] != PropertyData[id][propertyOwnerSQL])
- return SendClientMessage(playerid, COLOR_ADM, "Only the properties owner may use this XMR.");
- }
-
- nearAnything++;
- }
-
- if (!nearAnything)
- return SendClientMessage(playerid, COLOR_ADM, "You are not near a radio.");
-
- if (sscanf(params, "d", id))
- {
- ShowXMRDialog(playerid);
- return true;
- }
-
- if(!XMRData[id][xmrID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid station ID.");
-
- format(string, sizeof(string), "> %s has turned the radio to %s.", ReturnName(playerid, 0), XMRData[id][xmrName]);
- SetPlayerChatBubble(playerid, string, 0x88AA62FF, 20.0, 3000);
- SendClientMessage(playerid, 0x88AA62FF, string);
-
- if (IsNearBoombox(playerid))
- {
- new idx = IsNearBoombox(playerid);
-
- if(BoomboxData[idx][boomboxPlayerID] != PlayerData[playerid][pSQLID] && !PlayerData[playerid][pAdmin])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't have access to this boombox.");
-
- GetPlayerPos(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]);
-
- foreach (new i : Player)
- {
- if (pLoggedIn[i])
- {
- if (BoomboxData[idx][boomboxInBusiness] != 0) {
- if (BusinessData[IsPlayerInBusiness(i)][businessID] == BoomboxData[idx][boomboxInBusiness]) {
- if (IsPlayerInRangeOfPoint(i, 100.0, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2])) {
- PlayAudioStreamForPlayer(i, url, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2], 100.0, 1);
-
- format(string, sizeof(string), "Radio changed to station %s.", XMRData[id][xmrName]);
- SendClientMessage(i, COLOR_ADM, string);
- }
- }
- }
- else if (IsPlayerInRangeOfPoint(i, 25.0, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]))
- {
- PlayAudioStreamForPlayer(i, url, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2], 25.0, 1);
-
- format(string, sizeof(string), "Radio changed to station %s.", XMRData[id][xmrName]);
- SendClientMessage(i, COLOR_ADM, string);
- }
- }
- }
-
- BoomboxData[idx][boomboxOn] = true;
- format(BoomboxData[idx][boomboxURL], 128, "%s", XMRData[id][xmrStationURL]);
- return true;
- }
- if (IsPlayerInProperty(playerid))
- {
- foreach(new i : Player)
- {
- if (IsPlayerInProperty(i) == IsPlayerInProperty(playerid))
- {
- PlayAudioStreamForPlayer(i, XMRData[id][xmrStationURL]);
-
- format(string, sizeof(string), "Radio changed to station %s.", XMRData[id][xmrName]);
- SendClientMessage(i, COLOR_ADM, string);
- }
- }
-
- new idx = IsPlayerInProperty(playerid);
-
- PropertyData[idx][propertyXMROn] = true;
- format(PropertyData[idx][propertyXMRUrl], 128, "%s", XMRData[id][xmrStationURL]);
- return true;
- }
-
- if (IsPlayerInAnyVehicle(playerid))
- {
- new vehicleid = GetPlayerVehicleID(playerid);
-
- foreach(new i : Player)
- {
- if (IsPlayerInVehicle(i, vehicleid))
- {
- PlayAudioStreamForPlayer(i, XMRData[id][xmrStationURL]);
-
- format(string, sizeof(string), "Radio changed to station %s.", XMRData[id][xmrName]);
- SendClientMessage(i, COLOR_ADM, string);
- }
- }
- if(IsValidPlayerCar(vehicleid))
- {
- CarData[vehicleid][carXMROn] = true;
- format(CarData[vehicleid][carXMRUrl], 128, "%s", XMRData[id][xmrStationURL]);
- }
-
- if(IsValidFactionCar(vehicleid))
- {
- FactionCar[vehicleid][carsXMROn] = true;
- format(FactionCar[vehicleid][carsXMRURL], 128, "%s", XMRData[id][xmrStationURL]);
- }
- return true;
- }
- }
- return true;
- }
- CMD:fixr(playerid, params[])
- {
- return StopAudioStreamForPlayer(playerid);
- }
- CMD:unimpound(playerid, params[])
- {
- if(!_has_vehicle_spawned[playerid] && !PlayerData[playerid][pAdminDuty])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't have a vehicle spawned.");
-
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't driving a vehicle.");
-
- new
- vehicleid = GetPlayerVehicleID(playerid);
-
- if(!CarData[vehicleid][carImpounded])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: This vehicle isn't impounded.");
-
- if(PlayerData[playerid][pSQLID] != CarData[vehicleid][carOwnerID])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't own this vehicle.");
-
- CarData[vehicleid][carImpounded] = false;
- GiveMoney(playerid, -500);
-
- SendClientMessage(playerid, COLOR_DARKGREEN, "You unimpounded your vehicle.");
- SaveCar(vehicleid);
- return 1;
- }
- CMD:rw(playerid, params[])return cmd_rollwindows(playerid, params);
- CMD:rollwindows(playerid, params[])
- {
- if(!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't in a vehicle.");
-
- new window_states[4],
- vehicleid = GetPlayerVehicleID(playerid),
- seat = GetPlayerVehicleSeat(playerid),
- str[128];
-
- GetVehicleParamsCarWindows(GetPlayerVehicleID(playerid), window_states[0], window_states[1], window_states[2], window_states[3]);
-
- if(GetPlayerVehicleSeat(playerid) != 0)
- {
- window_states[seat] = !window_states[seat];
- SetVehicleParamsCarWindows(vehicleid, window_states[0], window_states[1], window_states[2], window_states[3]);
-
- format(str, sizeof(str), "rolls their window %s.", (window_states[seat] != 0) ? ("up") : ("down"));
- cmd_ame(playerid, str);
- return 1;
- }
- else
- {
- if(isnull(params))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE: /rollwindow [all, fr, rl, rr]");
-
- window_states[seat] = !window_states[seat];
- SetVehicleParamsCarWindows(vehicleid, window_states[0], window_states[1], window_states[2], window_states[3]);
-
- format(str, sizeof(str), "rolls their window %s.", (window_states[seat] != 0) ? ("up") : ("down"));
- cmd_ame(playerid, str);
- return 1;
- }
-
- if(!strcmp(params, "all"))
- {
- for(new i = 0; i < 4; i++)
- {
- window_states[i] = !window_states[i];
- }
-
- SetVehicleParamsCarWindows(vehicleid, window_states[0], window_states[1], window_states[2], window_states[3]);
- cmd_ame(playerid, "rolls all the windows.");
- }
- else if(!strcmp(params, "fr"))
- {
- if(window_states[1] == 1)
- window_states[1] = 0;
- else window_states[1] = 1;
- SetVehicleParamsCarWindows(vehicleid, window_states[0], window_states[1], window_states[2], window_states[3]);
-
- format(str, sizeof(str), "rolls the passenger window %s.", (window_states[1] != 0) ? ("up") : ("down"));
- cmd_ame(playerid, str);
- }
- else if(!strcmp(params, "rl"))
- {
- if(window_states[2] == 1)
- window_states[2] = 0;
- else window_states[2] = 1;
- SetVehicleParamsCarWindows(vehicleid, window_states[0], window_states[1], window_states[2], window_states[3]);
-
- format(str, sizeof(str), "rolls the back left window %s.", (window_states[2] != 0) ? ("up") : ("down"));
- cmd_ame(playerid, str);
- }
- else if(!strcmp(params, "rr"))
- {
- if(window_states[3] == 1)
- window_states[3] = 0;
- else window_states[3] = 1;
- SetVehicleParamsCarWindows(vehicleid, window_states[0], window_states[1], window_states[2], window_states[3]);
-
- format(str, sizeof(str), "rolls the back left window %s.", (window_states[3] != 0) ? ("up") : ("down"));
- cmd_ame(playerid, str);
- }
- }
- return 1;
- }
- //Ad
- CMD:ad(playerid, params[])
- {
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, AD_CENTER_X, AD_CENTER_Y, AD_CENTER_Z))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't at the advertisement center.");
-
- if(PlayerData[playerid][pDonator] != 3)
- {
- switch(PlayerData[playerid][pDonator])
- {
- case 2 .. 4:
- {
- if(gettime() - PlaceAdWait[playerid] < 5)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You need to wait 5 seconds between advertisements.");
- }
- }
- }
- else
- {
- if(gettime() - PlaceAdWait[playerid] < 30)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You need to wait 30 seconds between advertisements.");
- }
-
- if(isnull(params) || strlen(params) < 3)
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /ad [advertisement]");
-
- if(1000 > PlayerData[playerid][pMoney])
- return SendClientMessage(playerid, COLOR_ADM, "You can't afford this. ($1000)");
-
- PlaceAdWait[playerid] = gettime();
-
- new
- str[128];
-
- if(strlen(params) > 80)
- {
- SendMessageToAll(COLOR_DARKGREEN, "[Advertisement] %.80s ...", params);
- SendMessageToAll(COLOR_DARKGREEN, "[Advertisement] ...%s, Phone: %i", params[80], ReturnPhoneNumber(playerid));
- }
- else SendMessageToAll(COLOR_DARKGREEN, "[Advertisement] %s, Phone: %i", params, ReturnPhoneNumber(playerid));
-
- GiveMoney(playerid, -1000);
-
- format(str, sizeof(str), "Ad placed by %s[ID: %i]", ReturnName(playerid), playerid);
- SendAdminMessage(COLOR_YELLOW, str);
-
- return 1;
- }
- CMD:cad(playerid, params[])
- {
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, AD_CENTER_X, AD_CENTER_Y, AD_CENTER_Z))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't at the advertisement center.");
-
- if(gettime() - PlaceCadWait[playerid] < 30)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You need to wait 30 seconds between advertisements.");
-
- if(isnull(params) || strlen(params) < 3)
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /cad [advertisement]");
-
- if(1500 > PlayerData[playerid][pMoney])
- return SendClientMessage(playerid, COLOR_ADM, "You can't afford this. ($1500)");
-
- PlaceCadWait[playerid] = gettime();
-
- new
- str[128];
-
- if(strlen(params) > 80)
- {
- SendMessageToAll(COLOR_DARKGREEN, "[Advertisement] %.80s ...", params);
- SendMessageToAll(COLOR_DARKGREEN, "[Advertisement] ...%s", params[80]);
- }
- else SendMessageToAll(COLOR_DARKGREEN, "[Advertisement] %s", params);
-
- GiveMoney(playerid, -150);
-
- format(str, sizeof(str), "Company Ad placed by %s[ID: %i]", ReturnName(playerid), playerid);
- SendAdminMessage(COLOR_YELLOW, str);
-
- return 1;
- }
- //Fines
- CMD:fines(playerid, params[])
- {
- new
- playerb;
-
- if(sscanf(params, "U(-1)", playerb))
- return 1;
-
- if(playerb != -1)
- {
- if(!IsPoliceFaction(playerid))
- ShowPlayerFines(playerid, playerid);
-
- else ShowPlayerFines(playerid, playerb);
- }
- else ShowPlayerFines(playerid, playerid);
- return 1;
- }
- CMD:payfine(playerid, params[])
- {
- new
- bool:hasFines = false;
-
- for(new i = 0; i < 30; i++)
- {
- if(!Fines[playerid][i][Fine_ID])
- continue;
-
- hasFines = true;
- }
- if(!hasFines) return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't have any fines to pay.");
-
- new
- fine_id,
- bool:fine_exists = false,
- index,
- str[128];
-
- if(sscanf(params, "i", fine_id))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /payfine [Fine ID] (The ID provided in /fines.)");
-
- for(new i = 0; i < 30; i++)
- {
- if(!Fines[playerid][i][Fine_ID])
- continue;
-
- if(Fines[playerid][i][Fine_ID] == fine_id)
- {
- fine_exists = true;
- index = i;
- }
- }
- if(!fine_exists) return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't have a fine with that ID.");
-
-
- format(str, sizeof(str), "You're about to pay {ADC3E7}Fine ID %i{FFFFFF} for {ADC3E7}$%s.", fine_id, MoneyFormat(Fines[playerid][index][Fine_Amount]));
- ConfirmDialog(playerid, "Confirmation", str, "OnPlayerPayFine", index);
-
- return 1;
- }
- //Cigs
- CMD:smokecig(playerid, params[])
- {
- if(!PlayerData[playerid][pCigarettes])
- return SendClientMessage(playerid, COLOR_GREY, "ERROR: You don't have any cigarettes.");
-
- if(GetPlayerState(playerid) == SPECIAL_ACTION_SMOKE_CIGGY)
- return SendClientMessage(playerid, COLOR_GREY, "SERVER: You're already smoking a cigarette.");
-
- cmd_ame(playerid, "lights up a cigarette.");
-
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
- PlayerData[playerid][pCigarettes]--;
- return 1;
- }
- CMD:givecig(playerid, params[])
- {
- if(!PlayerData[playerid][pCigarettes])
- return SendClientMessage(playerid, COLOR_GREY, "ERROR: You don't have any cigarettes.");
-
- new playerb,
- quantity,
- str[128];
-
- if(sscanf(params, "ui", playerb, quantity))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /givecig [playerid/PartofName] [quantity]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid player.");
-
- if(!GetDistanceBetweenPlayers(playerid, playerb, 5.0))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't near that player.");
-
- if(quantity > PlayerData[playerid][pCigarettes])
- return SendClientMessage(playerid, COLOR_GREY, "SERVER: You don't have that quantity.");
-
- PlayerData[playerb][pCigarettes]+= quantity;
- PlayerData[playerid][pCigarettes]-= quantity;
-
- format(str, sizeof(str), "gives %s their cigarettes.", ReturnName(playerb, 0));
- cmd_ame(playerid, str);
-
- Message(playerb, COLOR_GREY, "%s passed you %i cigarettes!", ReturnName(playerid, 0), quantity);
- return 1;
- }
- CMD:passcig(playerid, params[])
- {
- if(GetPlayerState(playerid) != SPECIAL_ACTION_SMOKE_CIGGY)
- return SendClientMessage(playerid, COLOR_GREY, "ERROR: You aren't smoking a cigarette.");
-
- new playerb,
- str[128];
-
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /passcig [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid player.");
-
- if(!GetDistanceBetweenPlayers(playerid, playerb, 5.0))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't near that player.");
-
- if(GetPlayerState(playerb) == SPECIAL_ACTION_SMOKE_CIGGY)
- return SendClientMessage(playerid, COLOR_GREY, "That player is already smoking a cigarette.");
-
- format(str, sizeof(str), "passes %s their cigarette.", ReturnName(playerb, 0));
- cmd_ame(playerid, str);
-
- SetPlayerSpecialAction(playerb, SPECIAL_ACTION_SMOKE_CIGGY);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- return 1;
- }
- //Drinks
- CMD:usedrink(playerid, params[])
- {
- if(!PlayerData[playerid][pDrinks])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't have any drinks.");
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /usedrink [beer/wine/sprunk]");
-
- if(!strcmp(params, "beer"))
- {
- if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DRINK_BEER)
- return SendClientMessage(playerid, COLOR_ADM, "You're already drinking beer.");
-
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
- cmd_ame(playerid, "drinks their beer.");
- }
- else if(!strcmp(params, "wine"))
- {
- if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DRINK_WINE)
- return SendClientMessage(playerid, COLOR_ADM, "You're already drinking wine.");
-
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
- cmd_ame(playerid, "drinks their wine.");
- }
- else if(!strcmp(params, "sprunk"))
- {
- if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DRINK_SPRUNK)
- return SendClientMessage(playerid, COLOR_ADM, "You're already drinking sprunk");
-
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
- cmd_ame(playerid, "drinks their sprunk.");
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: That isn't an option.");
- return 1;
- }
- CMD:givedrink(playerid, params[])
- {
- if(!PlayerData[playerid][pDrinks])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't have any drinks.");
-
- new playerb,
- str[128];
-
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /givedrink [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid player.");
-
- if(!GetDistanceBetweenPlayers(playerid, playerb, 5.0))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't near that player.");
-
- format(str, sizeof(str), "gives %s a drink.", ReturnName(playerb, 0));
- cmd_ame(playerid, str);
-
- PlayerData[playerid][pDrinks]++;
- PlayerData[playerid][pDrinks]--;
- return 1;
- }
- CMD:tognick(playerid, params[])
- {
- if(!PlayerData[playerid][pNicksToggled])
- {
- foreach(new i : Player)
- {
- ShowPlayerNameTagForPlayer(playerid, i, 0);
- }
-
- SendClientMessage(playerid, COLOR_ADM, "You disabled player tags. /tognick to enable.");
- PlayerData[playerid][pNicksToggled] = 1;
- }
- else
- {
- foreach(new i : Player)
- {
- if(PlayerData[i][pMasked])
- continue;
-
- ShowPlayerNameTagForPlayer(playerid, i, 1);
- }
-
- SendClientMessage(playerid, COLOR_ADM, "You enabled player tags.");
- PlayerData[playerid][pNicksToggled] = 0;
- }
- return 1;
- }
- CMD:coin(playerid, params[])
- {
- switch(random(2))
- {
- case 0: SendNearbyMessage(playerid, 20.0, COLOR_WHITE, "* %s flips a coin that lands on Tails.", ReturnName(playerid, 0));
- case 1: SendNearbyMessage(playerid, 20.0, COLOR_WHITE, "* %s flips a coin that lands on Heads.", ReturnName(playerid, 0));
- }
- return 1;
- }
- CMD:dice(playerid, params[])
- {
- new
- dice;
-
- dice = random(7);
-
- if(dice == 0 || dice > 6)
- dice = random(7);
-
- SendNearbyMessage(playerid, 20.0, COLOR_WHITE, "* %s rolls a dice that lands on %i.", ReturnName(playerid, 0), dice);
- return 1;
- }
- CMD:walk(playerid, params[])
- {
- if (!AnimationCheck(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "You can't use this right now.");
- switch (PlayerData[playerid][pWalkstyle])
- {
- case 0: PlayAnimation(playerid, "PED", "WALK_player", 4.1, 1, 1, 1, 1, 1, 1);
- case 1: PlayAnimation(playerid, "PED", "WALK_walksexy", 4.1, 1, 1, 1, 1, 1, 1);
- case 2: PlayAnimation(playerid, "PED", "WALK_fat", 4.1, 1, 1, 1, 1, 1, 1);
- case 3: PlayAnimation(playerid, "PED", "WALK_fatold", 4.1, 1, 1, 1, 1, 1, 1);
- case 4: PlayAnimation(playerid, "PED", "WALK_gang1", 4.1, 1, 1, 1, 1, 1, 1);
- case 5: PlayAnimation(playerid, "PED", "WALK_gang2", 4.1, 1, 1, 1, 1, 1, 1);
- case 6: PlayAnimation(playerid, "PED", "WALK_old", 4.1, 1, 1, 1, 1, 1, 1);
- case 7: PlayAnimation(playerid, "PED", "WALK_armed", 4.1, 1, 1, 1, 1, 1, 1);
- case 8: PlayAnimation(playerid, "PED", "WALK_civi", 4.1, 1, 1, 1, 1, 1, 1);
- case 9: PlayAnimation(playerid, "PED", "WALK_DRUNK", 4.1, 1, 1, 1, 1, 1, 1);
- }
- return 1;
- }
- CMD:oldcp(playerid, params[])
- {
- if(!StartedTruckerMission[playerid])
- return SendClientMessage(playerid, COLOR_ADM, "You haven't started the trucker job.");
-
- new cp = TruckerMissionPoint[playerid];
-
- SetPlayerCheckpoint(playerid, BusinessData[cp][businessExt][0], BusinessData[cp][businessExt][1], BusinessData[cp][businessExt][2], 1.0);
- SendClientMessage(playerid, COLOR_GREY, "Established current trucker point checkpoint.");
- return 1;
- }
- CMD:toghud(playerid, params[])
- {
- if(!PlayerData[playerid][pHUDToggled])
- {
- PlayerData[playerid][pHUDToggled] = 1;
-
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !NoEngineCar(GetPlayerVehicleID(playerid)))
- {
- switch(PlayerData[playerid][pHUD])
- {
- case 0: {
- PlayerTextDrawHide(playerid, VehicleHUD[playerid][0]);
- PlayerTextDrawHide(playerid, VehicleHUD[playerid][1]);
- }
- case 1: {
- PlayerTextDrawHide(playerid, VehicleHUD[playerid][2]);
- }
- case 2: {
- PlayerTextDrawHide(playerid, VehicleHUD[playerid][3]);
- }
- case 3: {
- PlayerTextDrawHide(playerid, VehicleHUD[playerid][4]);
- PlayerTextDrawHide(playerid, VehicleHUD[playerid][5]);
- }
- }
- }
- SendClientMessage(playerid, COLOR_YELLOW, "Your HUD will no longer be visible.");
- }
- else
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !NoEngineCar(GetPlayerVehicleID(playerid)))
- {
- UpdateHUDForPlayer(playerid);
- switch(PlayerData[playerid][pHUD])
- {
- case 0: {
- PlayerTextDrawShow(playerid, VehicleHUD[playerid][0]);
- PlayerTextDrawShow(playerid, VehicleHUD[playerid][1]);
- }
- case 1: {
- PlayerTextDrawShow(playerid, VehicleHUD[playerid][2]);
- }
- case 2: {
- PlayerTextDrawShow(playerid, VehicleHUD[playerid][3]);
- }
- case 3: {
- PlayerTextDrawShow(playerid, VehicleHUD[playerid][4]);
- PlayerTextDrawShow(playerid, VehicleHUD[playerid][5]);
- }
- }
- }
- PlayerData[playerid][pHUDToggled] = 0;
- OnPlayerChangeHud( playerid );
- SendClientMessage(playerid, COLOR_YELLOW, "Your HUD will now be visible.");
- }
- return 1;
- }
- CMD:passgun(playerid, params[])
- {
- new playerb, wepid;
-
- if (sscanf(params, "ui", playerb, wepid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /passgun [playerid/PartofName] [weapon id]");
-
- if (!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "The player you specified doesn't exist.");
-
- if (!GetDistanceBetweenPlayers(playerid, playerb, 5.0))
- return SendClientMessage(playerid, COLOR_ADM, "You aren't near that player.");
-
- if (playerb == playerid)
- return SendClientMessage(playerid, COLOR_ADM, "Can't give it to yourself Joseph.");
-
- if (wepid <= 1 || wepid > 46 || wepid == 35 || wepid == 36 || wepid == 37 || wepid == 38 || wepid == 39 || wepid == 21 || wepid == 19)
- return SendClientMessage(playerid, COLOR_GREY, "You have specified an invalid weapon.");
- if(Weapon[playerid][GetWeaponIndex(wepid)][eWeaponCCW])
- return SendClientMessage(playerid, COLOR_GREY, "You cannot give someone else your CCW weapon.");
-
- if(!PlayerHasWeapon(playerid, wepid))
- return SendClientMessage(playerid, COLOR_ADM, "You don't have that weapon.");
-
- new index = GetWeaponIndex(wepid);
- if(Weapon[playerb][index][eWeaponID] > 0)
- return SendClientMessage(playerid, COLOR_ADM, "That player already has a weapon in the specified weapons slot.");
- WriteLog("weapon_logs/passgun.txt", "[%s] %s gave %s their %s with %d Ammo", ReturnDateLog(), ReturnName(playerid), ReturnName(playerb), ReturnWeaponName(wepid), ReturnWeaponAmmo(playerid, wepid));
-
- Message(playerid, COLOR_ORANGE, "You passed your %s with %i Ammo to %s.", ReturnWeaponName(wepid), ReturnWeaponAmmo(playerid, wepid), ReturnName(playerb));
- Message(playerb, COLOR_ORANGE, "%s gave you their %s with %i Ammo.", ReturnName(playerid), ReturnWeaponName(wepid), ReturnWeaponAmmo(playerid, wepid));
-
- GivePlayerGun(playerb, wepid, ReturnWeaponAmmo(playerid, wepid));
- TakePlayerWeapon(playerid, wepid);
- return 1;
- }
- /*CMD:passammo(playerid, params[])
- {
- new playerb, ammo;
-
- if(sscanf(params, "ui", playerb, ammo))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE: /passammo [playerid/PartofName] [ammo]");
- SendClientMessage(playerid, COLOR_ADM, "TIP:{FFFFFF} You hand ammo from the gun you're holding.");
- return 1;
- }
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "The player you specified doesn't exist.");
-
- if(!GetDistanceBetweenPlayers(playerid, playerb, 5.0))
- return SendClientMessage(playerid, COLOR_ADM, "You aren't near that player.");
-
- if(playerb == playerid)
- return SendClientMessage(playerid, COLOR_ADM, "Can't give it to yourself Joseph.");
-
- if(GetPlayerWeapon(playerid) == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't holding your weapon.");
-
- new weapon_id = ReturnWeapon(playerid);
- new currAmmo = ReturnWeaponAmmo(playerid, weapon_id);
- if(weapon_id == -1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't holding a weapon.");
-
- if(!PlayerHasWeapon(playerb, weapon_id))
- return SendClientMessage(playerid, COLOR_ADM, "That player doesn't have the weapon you're giving ammo for.");
-
- if(ammo < 1 || ammo > currAmmo)
- return SendClientMessage(playerid, COLOR_ADM, "You don't have that amount of ammo.");
-
- new bAmmo = ReturnWeaponAmmo(playerb, weapon_id);
-
- UpdatePlayerAmmo(playerb, weapon_id, bAmmo + ammo);
- SetPlayerAmmo(playerb, weapon_id, bAmmo + ammo);
-
- UpdatePlayerAmmo(playerid, weapon_id, currAmmo - ammo);
- SetPlayerAmmo(playerid, weapon_id, currAmmo - ammo);
-
- if(currAmmo - ammo <= 0)
- {
- TakePlayerWeapon(playerid, weapon_id);
- }
-
- Message(playerid, COLOR_ORANGE, "You gave %s ammo for their %s. (%i)", ReturnName(playerb), ReturnWeaponName(weapon_id), ammo);
- Message(playerb, COLOR_ORANGE, "%s gave you %i ammo for your %s.", ReturnName(playerid), ammo, ReturnWeaponName(weapon_id));
-
- WriteLog("weapon_logs/passammo.txt", "[%s] %s gave %s %i Ammo for a %s", ReturnDateLog(), ReturnName(playerid), ReturnName(playerb), ammo, ReturnWeaponName(weapon_id));
- return 1;
- }*/
- CMD:lift(playerid, params[])
- {
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, 1569.34424, -2156.86060, 12.96720))
- return SendClientMessage(playerid, COLOR_ADM, "You aren't near the garage lift.");
-
- if(MechUp)
- {
- MechUp = false;
- MoveDynamicObject(MechLift, 1569.34424, -2156.86060, 12.96720, 0.5);
- }
- else
- {
- MechUp = true;
- MoveDynamicObject(MechLift, 1569.34424, -2156.86060, 14.70720, 0.5);
- }
- new str[128];
-
- format(str, sizeof(str), "moves the lift %s.", (MechUp != true) ? ("down") : ("up"));
- cmd_ame(playerid, str);
- return 1;
- }
- //
- CMD:gate(playerid, params[])
- {
- new
- near = -1,
- Float:distance;
-
- if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- distance = 7.0;
-
- else if(IsPlayerInAnyVehicle(playerid))
- distance = 15.0;
-
- for(new i = 0; i < sizeof ObjectData; i++) if(ObjectData[i][Object_Type] == GATE_MAP_TYPE)
- {
- if(IsPlayerInRangeOfPoint(playerid, distance, ObjectData[i][Object_PosX], ObjectData[i][Object_PosY], ObjectData[i][Object_PosZ]))
- {
- near = i;
- }
- }
-
- if(near == -1)
- return SendClientMessage(playerid, COLOR_ADM, "* You aren't near a gate.");
-
- if(ObjectData[near][Object_Faction] && PlayerData[playerid][pFaction] != ObjectData[near][Object_Faction] && !PlayerData[playerid][pAdminDuty])
- return SendClientMessage(playerid, COLOR_ADM, "* You don't have the controller to this gate.");
-
- if(ObjectData[near][Object_GateOpen])
- {
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s uses their controller to close the gate.", ReturnName(playerid, 0));
-
- MoveDynamicObject(ObjectData[near][Object], ObjectData[near][Object_PosX], ObjectData[near][Object_PosY], ObjectData[near][Object_PosZ]-0.001, 3.0, ObjectData[near][Object_RotX], ObjectData[near][Object_RotY], ObjectData[near][Object_RotZ]);
- ObjectData[near][Object_GateOpen] = false;
- }
- else
- {
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s uses their controller to open the gate.", ReturnName(playerid, 0));
-
- MoveDynamicObject(ObjectData[near][Object], ObjectData[near][Object_OpenX], ObjectData[near][Object_OpenY], ObjectData[near][Object_OpenZ]+0.001, 5.0, ObjectData[near][Object_OpenRotX], ObjectData[near][Object_OpenRotY], ObjectData[near][Object_OpenRotZ]);
- ObjectData[near][Object_GateOpen] = true;
- }
-
- return 1;
- }
- CMD:releaseme(playerid, params[])
- {
- if(!PlayerData[playerid][pICJailed])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't currently jailed.");
-
- if(PlayerData[playerid][pICJailed] && PlayerData[playerid][pICJailTime] > 1)
- return SendClientMessage(playerid, COLOR_ADM, "[-] Your time hasn't been served yet.");
-
- SetPlayerPos(playerid, 1553.0421, -1675.4706, 16.1953);
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
-
- new
- str[128];
-
- format(str, sizeof(str), "[Jail] %s was released from jail.", ReturnName(playerid, 1));
- SendLawMessage(COLOR_ADM, str);
-
- DestroyDynamic3DTextLabel(PlayerData[playerid][pICJail3D]);
-
- PlayerData[playerid][pICJailNotify] = 0;
- PlayerData[playerid][pICJailed] = 0;
- PlayerData[playerid][pICJailTime] = 0;
-
- TotalJailees--;
-
- SendClientMessage(playerid, COLOR_ADM, "[-] You were released from jail.");
- if (IsValidDynamic3DTextLabel(PlayerData[playerid][pICJail3D])) {
- DestroyDynamic3DTextLabel(PlayerData[playerid][pICJail3D]);
- }
- return 1;
- }
- //Clothing Command
- CMD:clothing(playerid, params[])
- {
- new string[256], a_string[40], b_string[90], id, checkClothes = 0;
-
- if (sscanf(params, "s[40]S()[90]", a_string, b_string))
- {
- for(new i = 1, j = 1; i < MAX_CLOTHING_ITEMS; i++)
- {
- if(ClothingData[playerid][i][attachment_SQLID])
- {
- checkClothes++;
-
- ClothingMenuSelect[playerid][j] = ClothingData[playerid][i][attachment_SQLID];
- j++;
- if(j > 5)
- break;
-
- format(string, sizeof(string), "%s%s(Index: %d)\n", string, ClothingData[playerid][i][attachment_name], i);
- ShowPlayerDialog(playerid, DIALOG_CLOTHING_MENU, DIALOG_STYLE_LIST, "What would you like to edit?", string, "Select", "<<");
- }
- }
- if (!checkClothes)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have any clothing items.");
-
- return true;
- }
-
- if(!strcmp(a_string, "place") || !strcmp(a_string, "p"))
- {
- if (sscanf(b_string, "d", id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /clothing place [index]");
-
- if (id < 1 || id >= MAX_CLOTHING_ITEMS)
- return SendClientMessage(playerid, COLOR_ADM, "That isn't a valid slot.");
-
- if (!ClothingData[playerid][id][attachment_SQLID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have clothing there.");
-
- if (PlayerData[playerid][pEditingClothing])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You need to stop editing your clothing first.");
-
- if (IsPlayerAttachedObjectSlotUsed(playerid, id))
- {
- format(string, sizeof(string), "You took off %s", ClothingData[playerid][id][attachment_name]);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- RemovePlayerAttachedObject(playerid, id);
- }
- else {
- SetPlayerAttachedObject(playerid, id, ClothingData[playerid][id][attachment_modelid], ClothingData[playerid][id][attachment_bone], ClothingData[playerid][id][attachment_Pos][0], ClothingData[playerid][id][attachment_Pos][1], ClothingData[playerid][id][attachment_Pos][2],
- ClothingData[playerid][id][attachment_Rot][0], ClothingData[playerid][id][attachment_Rot][1], ClothingData[playerid][id][attachment_Rot][2], ClothingData[playerid][id][attachment_Scale][0],
- ClothingData[playerid][id][attachment_Scale][1], ClothingData[playerid][id][attachment_Scale][2]);
-
- format(string, sizeof(string), "You put on %s", ClothingData[playerid][id][attachment_name]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- else if(!strcmp(a_string, "adjust") || !strcmp(a_string, "a"))
- {
- if (sscanf(b_string, "d", id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /clothing adjust [index]");
-
- if (id < 1 || id >= MAX_CLOTHING_ITEMS)
- return SendClientMessage(playerid, COLOR_ADM, "That isn't a valid slot.");
-
- if (!ClothingData[playerid][id][attachment_SQLID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have clothing there.");
-
- PlayerData[playerid][pEditingClothing] = true;
- if (IsPlayerAttachedObjectSlotUsed(playerid, id))
- {
- ApplyAnimation(playerid, "CLOTHES", "CLO_Pose_Hat", 4.1, 0, 0, 0, 1, 0, 1);
- EditAttachedObject(playerid, id);
- }
- else {
- SetPlayerAttachedObject(playerid, id, ClothingData[playerid][id][attachment_modelid], ClothingData[playerid][id][attachment_bone], ClothingData[playerid][id][attachment_Pos][0], ClothingData[playerid][id][attachment_Pos][1], ClothingData[playerid][id][attachment_Pos][2],
- ClothingData[playerid][id][attachment_Rot][0], ClothingData[playerid][id][attachment_Rot][1], ClothingData[playerid][id][attachment_Rot][2], ClothingData[playerid][id][attachment_Scale][0],
- ClothingData[playerid][id][attachment_Scale][1], ClothingData[playerid][id][attachment_Scale][2]);
-
- ApplyAnimation(playerid, "CLOTHES", "CLO_Pose_Hat", 4.1, 0, 0, 0, 1, 0, 1);
- EditAttachedObject(playerid, id);
- }
- }
- else if(!strcmp(a_string, "drop"))
- {
- if (sscanf(b_string, "d", id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /clothing drop [index]");
-
- if (id < 1 || id >= MAX_CLOTHING_ITEMS)
- return SendClientMessage(playerid, COLOR_ADM, "That isn't a valid slot.");
-
- if (!ClothingData[playerid][id][attachment_SQLID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have clothing there.");
-
- if (PlayerData[playerid][pEditingClothing])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You need to stop editing your clothing first.");
-
- if (IsPlayerAttachedObjectSlotUsed(playerid, id)){
- RemovePlayerAttachedObject(playerid, id);
- }
-
- format(string, sizeof(string), "You dropped your %s", ClothingData[playerid][id][attachment_name]);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- new
- query[128]
- ;
-
- mysql_format(m_Handle, query, sizeof(query), "DELETE FROM player_clothing WHERE id = %i", ClothingData[playerid][id][attachment_SQLID]);
- mysql_pquery(m_Handle, query);
-
- ClothingData[playerid][id][attachment_SQLID] = 0;
- }
- return true;
- }
- //Faction Commands
- CMD:factions(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new string[2200];
- for(new i = 1; i < MAX_FACTIONS; i++)
- {
- if(FactionData[i][factionID] != 0){
-
- format(string, sizeof(string), "%s{ADC3E7}%d\t\t%s\t\t\t[%d out of %d]\n", string, i, FactionData[i][factionName], CountOnlineMembers(i), CountFactionMembers(i));
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_LIST, "Factions", string, ">>>", "");
- }
- }
- return true;
- }
- CMD:f(playerid, params[])return cmd_faction(playerid, params);
- CMD:faction(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new string[128];
- if(!PlayerData[playerid][pFaction]) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any faction.");
- if(PlayerData[playerid][pFactionChat] == 1) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You disabled your faction chat. Use /togfam.");
- if(PlayerData[playerid][pFactionRank] > FactionData[PlayerData[playerid][pFaction]][factionChatrank])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Your rank doesn't have faction chat permission.");
- if(isnull(params))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /faction [faction chat text]");
- if(FactionData[PlayerData[playerid][pFaction]][factionChatStatus])
- {
- if(PlayerData[playerid][pFactionRank] > FactionData[PlayerData[playerid][pFaction]][factionEditrank] && !PlayerData[playerid][pAdminDuty])
- {
- SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Your factions chat is disabled right now.");
- }
- else
- {
- format(string, sizeof(string), "**(( %s %s: %s ))**", ReturnRank(playerid), ReturnName(playerid, 1), params);
- SendFactionMessage(playerid, string);
- }
- }
- else
- {
- format(string, sizeof(string), "**(( %s %s: %s ))**", ReturnRank(playerid), ReturnName(playerid, 1), params);
- SendFactionMessage(playerid, string);
- }
- return true;
- }
- CMD:factionon(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return true;
- new factionid, string[256];
- if(sscanf(params, "I(-1)", factionid)) return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /factionon [faction id]");
- if(factionid == -1)
- {
- if(!PlayerData[playerid][pFaction]) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any faction.");
-
- format(string, sizeof(string), "Members of %s online:", FactionData[PlayerData[playerid][pFaction]][factionName]);
- SendClientMessage(playerid, COLOR_GREY, string);
- foreach(new i : Player)
- {
- if(PlayerData[i][pFaction] == PlayerData[playerid][pFaction])
- {
- if(PlayerData[i][pLAWduty])
- {
- if(PlayerData[i][pAdminDuty])
- {
- format(string, sizeof(string), "(ID: %d){FF9900} %s %s", i, ReturnRank(i), ReturnName(i, 1));
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- else
- {
- format(string, sizeof(string), "(ID: %d){8D8DFF} %s %s", i, ReturnRank(i), ReturnName(i, 1));
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- else
- {
- if(PlayerData[i][pAdminDuty])
- {
- format(string, sizeof(string), "(ID: %d){FF9900} %s %s", i, ReturnRank(i), ReturnName(i, 1));
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- else
- {
- format(string, sizeof(string), "(ID: %d) %s %s", i, ReturnRank(i), ReturnName(i, 1));
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- }
- }
- }
- else{
-
- if(factionid < 1 || factionid > MAX_FACTIONS)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid faction id.");
- if(!FactionData[factionid][factionID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid faction id.");
-
- format(string, sizeof(string), "[ ! ]{FFFFFF} The {FF6347}%s{FFFFFF} has {FF6347}%d{FFFFFF} out of {FF6347}%d{FFFFFF} members online.", FactionData[factionid][factionName], CountOnlineMembers(factionid), CountFactionMembers(factionid));
- SendClientMessage(playerid, COLOR_ADM, string);
- }
- return true;
- }
- CMD:nofam(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- if(!PlayerData[playerid][pFaction])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You're not in any faction.");
- if(PlayerData[playerid][pFactionRank] > FactionData[PlayerData[playerid][pFaction]][factionEditrank])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Your rank doesn't have permission to tog the faction chat.");
-
- new string[128], faction = PlayerData[playerid][pFaction];
-
- if(!FactionData[faction][factionChatStatus])
- {
- format(string, sizeof(string), "%s turned the /f chat off.", ReturnName(playerid, 1));
- SendFactionMessageEx(playerid, COLOR_ADM, string);
-
- FactionData[faction][factionChatStatus] = true;
- }
- else
- {
- format(string, sizeof(string), "%s turned the /f chat on.", ReturnName(playerid, 1));
- SendFactionMessageEx(playerid, COLOR_ADM, string);
-
- FactionData[faction][factionChatStatus] = false;
- }
-
- return true;
- }
- CMD:togfam(playerid, params[])
- {
- if (!PlayerData[playerid][pFactionChat])
- {
- PlayerData[playerid][pFactionChat] = 1;
- SendClientMessage(playerid, COLOR_ADM, "You toggled your faction chat off.");
- }
- else
- {
- PlayerData[playerid][pFactionChat] = 0;
- SendClientMessage(playerid, COLOR_ADM, "You toggled your faction chat on.");
- }
- return true;
- }
- CMD:chatcolor(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return true;
- if(!PlayerData[playerid][pFaction]) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You're not in any faction.");
- if(PlayerData[playerid][pFactionRank] > FactionData[PlayerData[playerid][pFaction]][factionEditrank])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Your rank doesn't have permission to edit.");
-
- new string[128], color, faction = PlayerData[playerid][pFaction];
-
- if(sscanf(params, "x", color))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /chatcolor [hex code]");
- format(string, sizeof(string), "[ ! ]{FFFFFF} Chat color changed from %x to %x.", FactionData[PlayerData[playerid][pFaction]][factionChatColor], color);
- SendClientMessage(playerid, COLOR_ADM, string);
-
- FactionData[PlayerData[playerid][pFaction]][factionChatColor] = color;
-
- SaveSQLInt(faction, "factions", "ChatColor", FactionData[faction][factionChatColor]);
- return true;
- }
- CMD:ranknames(playerid, params[])
- {
- if(!PlayerData[playerid][pFaction])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You're not in any faction.");
- if(PlayerData[playerid][pFactionRank] > FactionData[PlayerData[playerid][pFaction]][factionEditrank])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Your rank doesn't have permission to edit.");
-
- new string[128], rank[60], rankn, faction = PlayerData[playerid][pFaction];
-
- if(sscanf(params, "ds[60]", rankn, rank))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE: /ranknames [rank_id] [rank_name]");
- SendClientMessage(playerid, COLOR_ADM, "In order to remove a rank, set it to \"NotSet\". ");
- return 1;
- }
-
- if(rankn > 20 || rankn < 1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid rank.");
-
- if(strlen(rank) > 60)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: Your rank name needs to be less than 60 characters.");
-
- format(string, sizeof(string), "[ ! ]{FFFFFF} You altered rank (%d) %s to %s!", rankn, FactionRanks[faction][rankn], rank);
- SendClientMessage(playerid, COLOR_ADM, string);
-
- FactionRanks[faction][rankn] = rank;
- SaveFactionRanks(faction);
- return true;
- }
- CMD:editrank(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return true;
- if(!PlayerData[playerid][pFaction]) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You're not in any faction.");
- if(PlayerData[playerid][pFactionRank] != 1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Only rank 1 in factions may edit the edit rank.");
-
- new string[128], rank, faction = PlayerData[playerid][pFaction];
-
- if(sscanf(params, "d", rank))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /editrank [rank id]");
-
- FactionData[faction][factionEditrank] = rank;
- SaveSQLInt(faction, "factions", "EditRank", FactionData[faction][factionEditrank]);
-
- format(string, sizeof(string), "[ ! ]{FFFFFF} Your factions {FF6347}edit rank{FFFFFF} is now {FF6347}%d{FFFFFF}.", rank);
- SendClientMessage(playerid, COLOR_ADM, string);
-
- return true;
- }
- CMD:towrank(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pFaction])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You're not in any faction.");
- if(PlayerData[playerid][pFactionRank] > FactionData[PlayerData[playerid][pFaction]][factionEditrank])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Your rank doesn't have permission to edit.");
-
- new string[128], rank, faction = PlayerData[playerid][pFaction];
-
- if(sscanf(params, "d", rank))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /towrank [rank id]");
-
- FactionData[faction][factionTowrank] = rank;
- SaveSQLInt(faction, "factions", "TowRank", FactionData[faction][factionTowrank]);
-
- format(string, sizeof(string), "[ ! ]{FFFFFF} Your factions {FF6347}tow rank{FFFFFF} is now {FF6347}%d{FFFFFF}.", rank);
- SendClientMessage(playerid, COLOR_ADM, string);
-
- return true;
- }
- CMD:chatrank(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pFaction])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You're not in any faction.");
- if(PlayerData[playerid][pFactionRank] > FactionData[PlayerData[playerid][pFaction]][factionEditrank])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Your rank doesn't have permission to edit.");
-
- new string[128], rank, faction = PlayerData[playerid][pFaction];
-
- if(sscanf(params, "d", rank))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /chatrank [rank id]");
-
- FactionData[faction][factionChatrank] = rank;
- SaveSQLInt(faction, "factions", "ChatRank", FactionData[faction][factionChatrank]);
-
- format(string, sizeof(string), "[ ! ]{FFFFFF} Your factions {FF6347}chat rank{FFFFFF} is now {FF6347}%d{FFFFFF}.", rank);
- SendClientMessage(playerid, COLOR_ADM, string);
-
- return true;
- }
- CMD:joinrank(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pFaction])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You're not in any faction.");
- if(PlayerData[playerid][pFactionRank] > FactionData[PlayerData[playerid][pFaction]][factionEditrank])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Your rank doesn't have permission to edit.");
-
- new string[128], rank, faction = PlayerData[playerid][pFaction];
-
- if(sscanf(params, "d", rank))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /joinrank [rank id]");
-
- FactionData[faction][factionMaxRanks] = rank;
- SaveSQLInt(faction, "factions", "MaxRanks", FactionData[faction][factionChatrank]);
-
- format(string, sizeof(string), "[ ! ]{FFFFFF} Your factions {FF6347}join rank{FFFFFF} is now {FF6347}%d{FFFFFF}.", rank);
- SendClientMessage(playerid, COLOR_ADM, string);
-
- return true;
- }
- CMD:rank(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new string[128], playerb, newrank, faction = PlayerData[playerid][pFaction];
-
- if(!PlayerData[playerid][pFaction])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any faction.");
-
- if(PlayerData[playerid][pFactionRank] > FactionData[faction][factionEditrank])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Your rank doesn't have permission to edit.");
-
- if(sscanf(params, "ud", playerb, newrank))
- {
- for(new i = 1; i < MAX_FACTION_RANKS; i++)
- {
- if(!strcmp(FactionRanks[faction][i], "NotSet"))
- continue;
-
- format(string, sizeof(string), "-> Rank %i: %s", i, FactionRanks[faction][i]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /rank [playerid/PartofName] [rank id]");
- return 1;
- }
-
- if(newrank > 20 || newrank < 1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid rank.");
-
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "You have specified an invalid player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
-
- if(PlayerData[playerb][pFaction] != faction)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player isn't in your faction.");
-
- if(PlayerData[playerb][pFactionRank] < PlayerData[playerid][pFactionRank])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You can't alter that players rank.");
-
- format(string, sizeof(string), "-> You upgraded %s's rank from %s to %s!", ReturnName(playerb, 1), FactionRanks[faction][PlayerData[playerb][pFactionRank]], FactionRanks[faction][newrank]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- format(string, sizeof(string), "-> Your rank was upgraded from %s to %s by %s!", FactionRanks[faction][PlayerData[playerb][pFactionRank]], FactionRanks[faction][newrank], ReturnName(playerid, 1));
- SendClientMessage(playerb, COLOR_YELLOW, string);
-
- PlayerData[playerb][pFactionRank] = newrank;
- return true;
- }
- CMD:factionspawn(playerid, params[])
- {
- new string[128], faction = PlayerData[playerid][pFaction];
-
- if(!pLoggedIn[playerid])return true;
-
- if(!PlayerData[playerid][pFaction])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any faction.");
-
- if(PlayerData[playerid][pFactionRank] > FactionData[faction][factionEditrank])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Your rank doesn't have permission to edit.");
-
- new Float:Pos[4];
-
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
- GetPlayerFacingAngle(playerid, Pos[3]);
-
- FactionSpawn[0] = Pos[0];
- FactionSpawn[1] = Pos[1];
- FactionSpawn[2] = Pos[2];
- FactionSpawn[3] = Pos[3];
-
- FactionData[faction][factionSpawn][0] = FactionSpawn[0];
- FactionData[faction][factionSpawn][1] = FactionSpawn[1];
- FactionData[faction][factionSpawn][2] = FactionSpawn[2];
- FactionData[faction][factionSpawn][3] = FactionSpawn[3];
-
- SaveSQLFloat(faction, "factions", "SpawnX", FactionSpawn[0]);
- SaveSQLFloat(faction, "factions", "SpawnY", FactionSpawn[1]);
- SaveSQLFloat(faction, "factions", "SpawnZ", FactionSpawn[2]);
- SaveSQLFloat(faction, "factions", "SpawnA", FactionSpawn[3]);
-
- format(string, sizeof(string), "[ ! ]{FFFFFF} The {FF6346}%s's{FFFFFF} faction spawn was changed.", FactionData[faction][factionName]);
- SendClientMessage(playerid, COLOR_ADM, string);
-
- return true;
- }
- CMD:setpspawn(playerid, params[])
- {
- if(!PlayerData[playerid][pFaction])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't in a faction.");
-
- if(PlayerData[playerid][pFactionRank] > FactionData[PlayerData[playerid][pFaction]][factionEditrank])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: Your rank doesn't have permission to edit.");
- new
- id, factionid = PlayerData[playerid][pFaction];
- if(sscanf(params, "i", id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /setpspawn [1/2/3]");
-
- switch(id)
- {
- case 1:
- {
- GetPlayerPos(playerid, FactionData[factionid][factionSpawnEx1][0], FactionData[factionid][factionSpawnEx1][1], FactionData[factionid][factionSpawnEx1][2]);
- SendClientMessage(playerid, COLOR_ADM, "You set your factions 1st secondary spawn.");
-
- SaveSQLFloat(FactionData[factionid][factionID], "factions", "ExSpawn1X", FactionData[factionid][factionSpawnEx1][0]);
- SaveSQLFloat(FactionData[factionid][factionID], "factions", "ExSpawn1Y", FactionData[factionid][factionSpawnEx1][1]);
- SaveSQLFloat(FactionData[factionid][factionID], "factions", "ExSpawn1Z", FactionData[factionid][factionSpawnEx1][2]);
- }
- case 2:
- {
- GetPlayerPos(playerid, FactionData[factionid][factionSpawnEx2][0], FactionData[factionid][factionSpawnEx2][1], FactionData[factionid][factionSpawnEx2][2]);
- SendClientMessage(playerid, COLOR_ADM, "You set your factions 2nd secondary spawn.");
-
- SaveSQLFloat(FactionData[factionid][factionID], "factions", "ExSpawn2X", FactionData[factionid][factionSpawnEx2][0]);
- SaveSQLFloat(FactionData[factionid][factionID], "factions", "ExSpawn2Y", FactionData[factionid][factionSpawnEx2][1]);
- SaveSQLFloat(FactionData[factionid][factionID], "factions", "ExSpawn2Z", FactionData[factionid][factionSpawnEx2][2]);
- }
- case 3:
- {
- GetPlayerPos(playerid, FactionData[factionid][factionSpawnEx3][0], FactionData[factionid][factionSpawnEx3][1], FactionData[factionid][factionSpawnEx3][2]);
- SendClientMessage(playerid, COLOR_ADM, "You set your factions 3rd secondary spawn.");
-
- SaveSQLFloat(FactionData[factionid][factionID], "factions", "ExSpawn3X", FactionData[factionid][factionSpawnEx3][0]);
- SaveSQLFloat(FactionData[factionid][factionID], "factions", "ExSpawn3Y", FactionData[factionid][factionSpawnEx3][1]);
- SaveSQLFloat(FactionData[factionid][factionID], "factions", "ExSpawn3Z", FactionData[factionid][factionSpawnEx3][2]);
- }
- default: SendClientMessage(playerid, COLOR_ADM, "You specified an invalid spawn. [1-3]");
- }
- return 1;
- }
- CMD:factionname(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pFaction])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You're not in any faction.");
- if(PlayerData[playerid][pFactionRank] != 1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Only rank 1 in factions may edit the factions name.");
-
- new faction = PlayerData[playerid][pFaction], string[128], name[128];
-
- if(sscanf(params, "s[128]", name))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /factionname [factions name]");
-
- format(string, sizeof(string), "[ ! ]{FFFFFF} The {FF6346}%s{FFFFFF} was changed to {FF6346}%s{FFFFFF}.", FactionData[faction][factionName], name);
- SendClientMessage(playerid, COLOR_ADM, string);
-
- format(FactionData[faction][factionName], 128, "%s", name);
- SaveFaction(faction);
-
- return true;
- }
- CMD:factionabbrev(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pFaction])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You're not in any faction.");
- if(PlayerData[playerid][pFactionRank] != 1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Only rank 1 in factions may edit the factions abbreviation.");
-
- new faction = PlayerData[playerid][pFaction], string[128], name[128];
-
- if(sscanf(params, "s[128]", name))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /factionabbrev [factions abbrev]");
-
- format(string, sizeof(string), "[ ! ]{FFFFFF} The abbreviation {FF6346}%s{FFFFFF} was changed to {FF6346}%s{FFFFFF}.", FactionData[faction][factionAbbrev], name);
- SendClientMessage(playerid, COLOR_ADM, string);
-
- format(FactionData[faction][factionAbbrev], 128, "%s", name);
- SaveFaction(faction);
-
- return true;
- }
- CMD:invite(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pFaction])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You're not in any faction.");
-
- new playerb, string[128], faction = PlayerData[playerid][pFaction];
-
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /invite [playerid/PartofName]");
-
- if(PlayerData[playerid][pFactionRank] > FactionData[faction][factionEditrank])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have access to this command.");
-
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "You have specified an invalid player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
-
- if(PlayerData[playerb][pFaction] != 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player's already in a faction.");
-
- format(string, sizeof(string), "%s has invited you to join %s, type /accept to accept the invitation.", ReturnName(playerid, 0), FactionData[faction][factionName]);
- SendClientMessage(playerb, COLOR_YELLOW, string);
- format(string, sizeof(string), "You invited %s to join %s, they have to /accept to join.", ReturnName(playerb, 0), FactionData[faction][factionName]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- PlayerData[playerb][pFactionOffer] = faction;
- return true;
- }
- CMD:uninvite(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pFaction])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You're not in any faction.");
-
- new playerb, string[128];
-
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /uninvite [playerid/PartofName]");
-
- if(PlayerData[playerid][pFactionRank] > FactionData[PlayerData[playerid][pFaction]][factionEditrank])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have access to this command.");
-
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_GREY, "You have specified an invalid player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
-
- if(PlayerData[playerb][pFaction] == 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player isn't in any faction.");
-
- if(PlayerData[playerid][pFaction] != PlayerData[playerb][pFaction])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player isn't in your faction.");
-
- if(PlayerData[playerid][pFactionRank] > PlayerData[playerb][pFactionRank])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't uninvite a higher rank.");
-
- format(string, sizeof(string), "%s uninvited you from the %s.", ReturnName(playerid, 0), FactionData[PlayerData[playerid][pFaction]][factionName]);
- SendClientMessage(playerb, COLOR_YELLOW, string);
-
- format(string, sizeof(string), "You uninvited %s from the faction.", ReturnName(playerb, 0));
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- if(FactionData[PlayerData[playerb][pFaction]][factionCopPerms]) {
- if(PlayerData[playerb][pLAWduty] == 1) {
- PlayerData[playerb][pLAWduty] = false;
- SetPlayerColor(playerb, COLOR_WHITE);
- SetPlayerArmour(playerb, 0);
- }
- }
-
- PlayerData[playerb][pFaction] = 0;
- PlayerData[playerb][pFactionRank] = 0;
-
- SaveSQLInt(PlayerData[playerb][pSQLID], "players", "Faction", PlayerData[playerb][pFaction]);
-
- PlayerData[playerb][pSkin] = 264;
- SetPlayerSkin(playerb, 264);
-
- return true;
- }
- CMD:ouninvite(playerid, params[])
- {
- if(!PlayerData[playerid][pFaction])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't in a faction.");
-
- if(PlayerData[playerid][pFactionRank] > FactionData[PlayerData[playerid][pFaction]][factionEditrank])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't have access to this command.");
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /ouninvite [character name]");
-
- if(!ReturnSQLFromName(params))
- return SendClientMessage(playerid, COLOR_ADM, "That person doesn't exist in the database.");
-
- foreach(new i : Player)
- {
- if(!strcmp(ReturnName(i), params, true))
- {
- SendClientMessage(playerid, COLOR_ADM, "That player's online.");
- return 1;
- }
- }
-
- new query[230];
- new faction_id, rank_id;
-
- mysql_format(m_Handle, query, sizeof query, "SELECT Faction, FactionRank FROM players WHERE id = %i", ReturnSQLFromName(params));
- new Cache:cache = mysql_query(m_Handle, query);
-
- cache_get_value_name_int(0, "Faction", faction_id);
- cache_get_value_name_int(0, "FactionRank", rank_id);
-
- if(faction_id != PlayerData[playerid][pFaction])
- {
- SendClientMessage(playerid, COLOR_ADM, "That player isn't in your faction.");
- cache_delete(cache);
- return 1;
- }
-
- if(rank_id < PlayerData[playerid][pFactionRank])
- {
- SendClientMessage(playerid, COLOR_ADM, "That players rank exceeds yours.");
- cache_delete(cache);
- return 1;
- }
-
- format(query, sizeof query, "Are you sure you want to uninvite %s from your faction?", params);
- ConfirmDialog(playerid, "Confirmation", query, "OnOfflineUninvite", ReturnSQLFromName(params));
-
- cache_delete(cache);
- return true;
- }
- CMD:accept(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new string[128];
-
- if(!PlayerData[playerid][pFactionOffer])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't invited to a faction.");
-
- PlayerData[playerid][pFaction] = PlayerData[playerid][pFactionOffer];
- PlayerData[playerid][pFactionRank] = FactionData[PlayerData[playerid][pFactionOffer]][factionMaxRanks];
- PlayerData[playerid][pFactionOffer] = false;
-
- SaveSQLInt(PlayerData[playerid][pSQLID], "players", "Faction", PlayerData[playerid][pFaction]);
- SaveSQLInt(PlayerData[playerid][pSQLID], "players", "FactionRank", PlayerData[playerid][pFactionRank]);
-
- format(string, sizeof(string), "You are now a member of %s!", FactionData[PlayerData[playerid][pFaction]][factionName]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- return true;
- }
- // Cop Commands
- CMD:callsign(playerid, params[]) {
- if(!IsPoliceFaction(playerid))
- return UnAuthMessage(playerid);
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /callsign [_callsign_]");
- if (strlen(params) > 14) {
- adminWarn(1, sprintf("%s [ID: %d] has attempted to use the callsign: %s. Take action if a trollish callsign is used."));
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: That callsign is too long!");
- }
- //new
- //callsign = -1,
- //str[128];
-
- /*for(new i = 0; i < sizeof(g_CallsignData); i++)
- {
- if(strfind(params, g_CallsignData[i][Callsign], true) != -1)
- {
- callsign = i;
- }
- }
- if(callsign == -1) return SendClientMessage(playerid, COLOR_ADM, "ERROR: That isn't a recognized callsign.");*/
-
- format(PlayerData[playerid][pCallsign], 60, "%s", params);
-
- if(!PlayerData[playerid][pLAWduty])
- Message(playerid, COLOR_COP, "** HQ: %s %s is now under callsign %s! **", ReturnRank(playerid), ReturnName(playerid, 0), params);
-
- SendLawMessage(COLOR_COP, sprintf("** HQ: %s %s is now under callsign %s! **", ReturnRank(playerid), ReturnName(playerid, 0), params));
- adminWarn(1, sprintf("%s [ID: %d] has went on-duty using callsign: %s. Take action if a trollish callsign is used.", ReturnName(playerid, 1), playerid, params));
- SendClientMessage(playerid, COLOR_ADM, "Make sure you've /carsign'ed.");
- return 1;
- }
- CMD:duty(playerid, params[])
- {
- new string[128], myfaction = PlayerData[playerid][pFaction];
-
- if (!myfaction)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any faction.");
-
- if (!IsLAWFaction(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You aren't in a faction with permissions.");
-
- if(!IsPlayerInRangeOfPoint(playerid, 4.0, FactionData[myfaction][factionSpawn][0], FactionData[myfaction][factionSpawn][1], FactionData[myfaction][factionSpawn][2]) && !InFactionProperty(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't at your faction spawn.");
-
- if(IsPoliceFaction(playerid)){
- if(PlayerData[playerid][pLAWduty])
- return SendClientMessage(playerid, COLOR_WHITE, "You're already on duty.");
-
- if(isnull(PlayerData[playerid][pCallsign]))
- {
- format(string, sizeof(string), "** HQ: %s %s is now On Duty! **", ReturnRank(playerid), ReturnName(playerid, 0));
- SendLawMessage(COLOR_COP, string);
- }
- else{
- format(string, sizeof(string), "** HQ: %s %s is now On Duty as %s! **", ReturnRank(playerid), ReturnName(playerid, 0), PlayerData[playerid][pCallsign]);
- SendLawMessage(COLOR_COP, string);
- }
-
- PlayerData[playerid][pLAWduty] = true;
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s takes equipment from their locker.", ReturnName(playerid, 0));
-
- format(string, sizeof(string), "You were given: Spraycan, Nitestick, Desert Eagle(60), Health(%d)", PlayerData[playerid][pMaxHealth]);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- SetPlayerHealth(playerid, PlayerData[playerid][pMaxHealth]);
- SetPlayerArmour(playerid, 100);
-
- ClearPlayerWeapons(playerid, 2);
-
- GivePlayerGun(playerid, 24, 100, WEAPON_SERVER_GIVEN);
- GivePlayerGun(playerid, 3, 1, WEAPON_SERVER_GIVEN);
- GivePlayerGun(playerid, 41, 350, WEAPON_SERVER_GIVEN);
-
- if(PlayerData[playerid][pHelperDuty]){
- SetPlayerColor(playerid, COLOR_HELPER);
- }
- else{
- if(PlayerData[playerid][pAdminDuty]){
- SetPlayerColor(playerid, COLOR_ADMIN);
- }
- else{
- SetPlayerColor(playerid, COLOR_COP);
- }
- }
- }
- else if(IsMedicFaction(playerid))
- {
- if(PlayerData[playerid][pHelperDuty]){
- SetPlayerColor(playerid, COLOR_HELPER);
- }
- else{
- if(PlayerData[playerid][pAdminDuty]){
- SetPlayerColor(playerid, COLOR_ADMIN);
- }
- else{
- SetPlayerColor(playerid, COLOR_EMT);
- }
- }
-
- SetPlayerHealth(playerid, PlayerData[playerid][pMaxHealth]);
-
- PlayerData[playerid][pMEDduty] = true;
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s takes their uniform out their locker.", ReturnName(playerid, 0));
-
- format(string, sizeof(string), "** HQ: %s %s is now On Duty! **", ReturnRank(playerid), ReturnName(playerid, 0));
- SendFDMessage(COLOR_EMT, string);
- }
- return true;
- }
- CMD:offduty(playerid, params[])
- {
- new string[128], myfaction = PlayerData[playerid][pFaction];
-
- if (!myfaction)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any faction.");
-
- if (!IsLAWFaction(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You aren't in a faction with permissions.");
-
- if(!IsPlayerInRangeOfPoint(playerid, 4.0, FactionData[myfaction][factionSpawn][0], FactionData[myfaction][factionSpawn][1], FactionData[myfaction][factionSpawn][2]) && !InFactionProperty(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't at your faction spawn.");
-
- if(IsPoliceFaction(playerid)){
- if(isnull(PlayerData[playerid][pCallsign]))
- {
- format(string, sizeof(string), "** HQ: %s %s is now Off Duty! **", ReturnRank(playerid), ReturnName(playerid, 0));
- SendLawMessage(COLOR_COP, string);
- }
- else{
- format(string, sizeof(string), "** HQ: %s %s is now Off Duty from %s! **", ReturnRank(playerid), ReturnName(playerid, 0), PlayerData[playerid][pCallsign]);
- SendLawMessage(COLOR_COP, string);
- }
-
- format(PlayerData[playerid][pCallsign], 128, "");
-
- PlayerData[playerid][pLAWduty] = false;
-
- if(PlayerData[playerid][pSWATduty]) { PlayerData[playerid][pSWATduty] = false; }
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s puts their equipment in the locker.", ReturnName(playerid, 0));
-
- SetPlayerHealth(playerid, PlayerData[playerid][pMaxHealth]);
- SetPlayerArmour(playerid, 0);
-
- ClearPlayerWeapons(playerid, 2);
-
- if(PlayerData[playerid][pHelperDuty]){
- SetPlayerColor(playerid, COLOR_HELPER);
- }
- else{
- if(PlayerData[playerid][pAdminDuty]){
- SetPlayerColor(playerid, COLOR_ADMIN);
- }
- else{
- SetPlayerColor(playerid, COLOR_WHITE);
- }
- }
- if(GetPlayerSkin(playerid) != PlayerData[playerid][pSkin])
- SetPlayerSkin(playerid, PlayerData[playerid][pSkin]);
- }
- else if(IsMedicFaction(playerid))
- {
- if(!PlayerData[playerid][pMEDduty])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't on duty right now.");
-
- SetPlayerHealth(playerid, PlayerData[playerid][pMaxHealth]);
-
- format(string, sizeof(string), "** HQ: %s %s is now Off Duty! **", ReturnRank(playerid), ReturnName(playerid, 0));
- SendFDMessage(COLOR_EMT, string);
-
- PlayerData[playerid][pMEDduty] = false;
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s puts their uniform back into their locker.", ReturnName(playerid, 0));
-
- if(PlayerData[playerid][pHelperDuty]){
- SetPlayerColor(playerid, COLOR_HELPER);
- }
- else{
- if(PlayerData[playerid][pAdminDuty]){
- SetPlayerColor(playerid, COLOR_ADMIN);
- }
- else{
- SetPlayerColor(playerid, COLOR_WHITE);
- }
- }
-
- if(GetPlayerSkin(playerid) != PlayerData[playerid][pSkin])
- SetPlayerSkin(playerid, PlayerData[playerid][pSkin]);
- }
- return 1;
- }
- CMD:uniform(playerid, params[])
- {
- new myfaction = PlayerData[playerid][pFaction];
-
- if (!myfaction) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any faction.");
- if (!FactionData[myfaction][factionCopPerms] && !FactionData[myfaction][factionMedPerms] && !FactionData[myfaction][factionNewsPerms]) return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED: Your faction doesn't have access to this.");
-
- new found;
-
- if (!IsPlayerInRangeOfPoint(playerid, 5.0, FactionData[myfaction][factionSpawn][0], FactionData[myfaction][factionSpawn][1], FactionData[myfaction][factionSpawn][2]))
- {
- if(PlayerData[playerid][pSpawnPrecinct] != 0)
- {
- switch(PlayerData[playerid][pSpawnPrecinct])
- {
- case 1:
- {
- if(IsPlayerInRangeOfPoint(playerid, 5.0, FactionData[myfaction][factionSpawnEx1][0], FactionData[myfaction][factionSpawnEx1][1], FactionData[myfaction][factionSpawnEx1][2]))
- {
- found++;
- }
- }
- case 2:
- {
- if(IsPlayerInRangeOfPoint(playerid, 5.0, FactionData[myfaction][factionSpawnEx2][0], FactionData[myfaction][factionSpawnEx2][1], FactionData[myfaction][factionSpawnEx2][2]))
- {
- found++;
- }
- }
- case 3:
- {
- if(IsPlayerInRangeOfPoint(playerid, 5.0, FactionData[myfaction][factionSpawnEx3][0], FactionData[myfaction][factionSpawnEx3][1], FactionData[myfaction][factionSpawnEx3][2]))
- {
- found++;
- }
- }
- }
- }
- }
- else found++;
-
- if(!found) return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't near a faction spawn.");
-
- if(FactionData[myfaction][factionCopPerms] == 1){
- ShowPlayerDialog(playerid, DIALOG_PDSKINS, DIALOG_STYLE_TABLIST_HEADERS, "Select a skin",
- "Model\tRace\tSex\n\
- 11: LSPD\tCaucasian\tMale\n\
- 12: LSPD (No Belt)\tCaucasian\tMale\n\
- 13: SFPD\tCaucasian\tMale\n\
- 14: SFPD (No Belt)\tCaucasian\tMale\n\
- 15: LSPD\tCaucasian\tFemale\n\
- 16: LSPD\tAfrican American\tFemale\n\
- 17: TENPENNY\tAfrican American\tMale\n\
- 18: HERNANDEZ\tHispanic\tMale\n\
- 19: PULASKI\tCaucasian\tMale\n\
- 20: Biker\tAfrican American\tMale\n\
- 21: Pilot\tCaucasian\tMale\n\
- 22: Lady\tCaucasian\tFemale",
- "Select", "Cancel");
- }
- if(FactionData[myfaction][factionCopPerms] == 2) {
- ShowPlayerDialog(playerid, DIALOG_SDSKINS, DIALOG_STYLE_TABLIST_HEADERS, "Select a skin",
- "Model\tRace\tSex\n\
- 11: Cadet\tCaucasian\tMale\n\
- 12: LVPD\tCaucasian\tMale\n\
- 13: LVPD\tCaucasian\tMale\n\
- 14: LVPD\tCaucasian\tFemale\n\
- 15: CSHER\tCaucasian\tMale\n\
- 16: CSHER\tCacuasian\tMale\n\
- 17: DSHER\tCacuasian\tMale\n\
- 18: DSHER\tCacuasian\tMale\n\
- 30: STAFF\tCaucasian\tFemale\n\
- 31: WFYST\tCaucasian\tFemale\n\
- 32: Biker\tAfrican American\tMale\n\
- 34: Pilot\tCaucasian\tMale\n\
- 35: Lady\tCaucasian\tMale",
- "Select", "Cancel");
- }
- if(FactionData[myfaction][factionMedPerms]) {
- ShowPlayerDialog(playerid, DIALOG_FDSKINS, DIALOG_STYLE_TABLIST_HEADERS, "Select a skin",
- "Model\tRace\tSex\n\
- 1: Paramedic\tAfrican American\tMale\n\
- 2: Paramedic\tHispanic\tMale\n\
- 3: Paramedic\tCaucasian\tMale\n\
- 4: Paramedic\tCaucasian\tFemale\n\
- 5: Firefighter\tCaucasian\tMale\n\
- 6: Firefighter\tAfrican American\tMale\n\
- 7: Firefighter\tHispanic\tMale\n",
- "Select", "Cancel");
- }
- if (FactionData[myfaction][factionNewsPerms]) {
- SendClientMessage(playerid, COLOR_ADM, "A list of skins for the news faction will be added soon!");
- }
- return true;
- }
- CMD:m(playerid, params[]) return cmd_megaphone(playerid, params);
- CMD:megaphone(playerid, params[])
- {
- new
- myfaction = PlayerData[playerid][pFaction];
-
- if (!PlayerData[playerid][pFaction])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any faction.");
-
- if (!FactionData[myfaction][factionCopPerms] && !FactionData[myfaction][factionMedPerms])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} Your faction doesn't have access to this.");
-
- if (!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in a vehicle.");
-
- new
- vehicleid = GetPlayerVehicleID(playerid);
-
- if (isnull(params))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /megaphone [text]");
-
- if(!IsValidFactionCar(vehicleid) || IsValidFactionCar(vehicleid) && !FactionData[FactionCar[vehicleid][carFaction]][factionCopPerms] && !FactionData[FactionCar[vehicleid][carFaction]][factionMedPerms])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You can't megaphone in this vehicle.");
-
- SendNearbyMessage(playerid, 40.0, COLOR_YELLOW, "[ %s:o< %s ]", ReturnName(playerid, 0), params);
- return true;
- }
- CMD:dep(playerid, params[])return cmd_department(playerid, params);
- CMD:department(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new string[128], myfaction = PlayerData[playerid][pFaction];
-
- if (!PlayerData[playerid][pFaction]) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any faction.");
- if (!FactionData[myfaction][factionCopPerms] && !FactionData[myfaction][factionMedPerms]) return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} Your faction doesn't have access to this.");
-
- if (isnull(params)) return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /department [text]");
-
- foreach(new i : Player) {
- if(FactionData[myfaction][factionCopPerms] || FactionData[myfaction][factionMedPerms]){
- if(strlen(params) > 80)
- {
- format(string, sizeof(string), "** [%s] %s %s: %.80s...", FactionData[myfaction][factionAbbrev], ReturnRank(playerid), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_DEPT, string);
-
- format(string, sizeof(string), "** [%s] %s %s: ...%s", FactionData[myfaction][factionAbbrev], ReturnRank(playerid), ReturnName(playerid, 0), params[80]);
- SendClientMessage(i, COLOR_DEPT, string);
- }
- else
- {
- format(string, sizeof(string), "** [%s] %s %s: %s", FactionData[myfaction][factionAbbrev], ReturnRank(playerid), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_DEPT, string);
- }
- }
- }
-
- new Float:posx, Float:posy, Float:posz;
- GetPlayerPos(playerid, posx,posy,posz);
- foreach(new i : Player)
- {
- if(i == playerid)
- continue;
- else if(IsPlayerInRangeOfPoint(i, 20.0, posx,posy,posz))
- {
- format(string, sizeof(string), "%s says (radio): %s", ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_WHITE, string);
- }
- }
- return true;
- }
- CMD:deplow(playerid, params[])return cmd_departmentlow(playerid, params);
- CMD:departmentlow(playerid, params[])
- {
- if(!pLoggedIn[playerid]) return true;
- new string[128];
- new myfaction = PlayerData[playerid][pFaction];
-
- if (!PlayerData[playerid][pFaction]) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any faction.");
- if (!FactionData[myfaction][factionCopPerms] && !FactionData[myfaction][factionMedPerms]) return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} Your faction doesn't have access to this.");
- if (isnull(params)) return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /department [text]");
-
- foreach(new i : Player){
- new faction = PlayerData[i][pFaction];
- if(FactionData[faction][factionCopPerms] || FactionData[faction][factionMedPerms]){
- if(strlen(params) > 80)
- {
- format(string, sizeof(string), "** [%s] %s %s: %.80s...", FactionData[faction][factionAbbrev], ReturnRank(playerid), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_DEPT, string);
-
- format(string, sizeof(string), "** [%s] %s %s: ...%s", FactionData[faction][factionAbbrev], ReturnRank(playerid), ReturnName(playerid, 0), params[80]);
- SendClientMessage(i, COLOR_DEPT, string);
- }
- else
- {
- format(string, sizeof(string), "** [%s] %s %s: %s", FactionData[faction][factionAbbrev], ReturnRank(playerid), ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_DEPT, string);
- }
- }
- }
-
- new Float:posx, Float:posy, Float:posz;
- GetPlayerPos(playerid, posx,posy,posz);
- foreach(new i : Player)
- {
- if(i == playerid)
- continue;
- else if(IsPlayerInRangeOfPoint(i, 5.0, posx,posy,posz))
- {
- format(string, sizeof(string), "%s says (radio): %s", ReturnName(playerid, 0), params);
- SendClientMessage(i, COLOR_GREY, string);
- }
- }
- return true;
- }
- CMD:jail(playerid, params[])
- {
- if(!IsPoliceFaction(playerid))
- return UnAuthMessage(playerid);
-
- if(!PlayerData[playerid][pLAWduty])
- return UnAuthMessage(playerid);
-
- if(!IsPlayerInDynamicArea(playerid, JailCenterArea) && !IsPlayerInRangeOfPoint(playerid, 20.0, 265.4598, 82.0945, 1001.0391))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near the jail zone.");
- new
- playerb, time,
- str[128];
-
- if(sscanf(params, "ui", playerb, time))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /jail [playerid/PartofName] [time]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified a player that doesn't exist.");
-
- if(!GetDistanceBetweenPlayers(playerid, playerb, 5) && (!IsPlayerInDynamicArea(playerb, JailCenterArea) || !IsPlayerInRangeOfPoint(playerb, 20.0, 265.4598, 82.0945, 1001.0391)))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't near that player.");
- PauseAntiCheat(playerb);
-
- PlayerData[playerb][pPhoneOff] = true;
-
- PlayerData[playerb][pICJailTime] = time * 60;
- PlayerData[playerb][pICJailed] = 1;
-
- if(PlayerData[playerb][pActiveListing])
- PlayerData[playerb][pActiveListing] = 0;
-
- PlayerData[playerb][pJailTimes]++;
-
- new
- jail_str[90];
-
- TotalJailees++;
-
- format(jail_str, 90, "%03d", TotalJailees);
- PlayerData[playerb][pICJail3D] = CreateDynamic3DTextLabel(jail_str, 0x1E0C95FF, 0.0, 0.0, -0.10, 20.0, playerb);
-
- format(str, sizeof(str), "[Jail] %s %s has just arrested %s!", ReturnRank(playerid), ReturnName(playerid), ReturnName(playerb));
- SendLawMessage(COLOR_ADM, str);
-
- format(str, sizeof(str), "[Jail] You were arrested by %s for (%d) minutes!", ReturnName(playerid), time);
- SendClientMessage(playerb, COLOR_ADM, str);
-
- switch (random(20))
- {
- case 0: SetPlayerPos(playerb, 2590.0229, -1503.2241, -48.9141);
- case 1: SetPlayerPos(playerb, 2590.1672, -1506.9596, -48.9141);
- case 2: SetPlayerPos(playerb, 2590.0635, -1510.7051, -48.9141);
- case 3: SetPlayerPos(playerb, 2590.1028, -1514.3425, -48.9141);
- case 4: SetPlayerPos(playerb, 2590.0334, -1517.9042, -48.9141);
- case 5: SetPlayerPos(playerb, 2587.8289, -1524.1613, -48.9141);
- case 6: SetPlayerPos(playerb, 2584.0989, -1524.1598, -48.9141);
- case 7: SetPlayerPos(playerb, 2580.5696, -1524.3359, -48.9141);
- case 8: SetPlayerPos(playerb, 2576.5071, -1517.0680, -48.9141);
- case 9: SetPlayerPos(playerb, 2576.0381, -1513.3489, -48.9141);
- case 10: SetPlayerPos(playerb, 2575.9680, -1509.6672, -48.9141);
- case 11: SetPlayerPos(playerb, 2576.0254, -1506.0710, -48.9141);
- case 12: SetPlayerPos(playerb, 2575.9700, -1502.2760, -48.9141);
- case 13: SetPlayerPos(playerb, 2587.6892, -1527.3584, -45.2369);
- case 14: SetPlayerPos(playerb, 2584.1965, -1527.5685, -45.2369);
- case 15: SetPlayerPos(playerb, 2580.3389, -1527.7498, -45.2369);
- case 16: SetPlayerPos(playerb, 2572.9805, -1513.4121, -45.2373);
- case 17: SetPlayerPos(playerb, 2572.5332, -1516.9791, -45.2373);
- case 18: SetPlayerPos(playerb, 2572.8823, -1502.3632, -45.2369);
- case 19: SetPlayerPos(playerb, 2572.8594, -1506.0131, -45.2369);
- }
- SavePlayer(playerb);
- return 1;
- }
- CMD:roadblock(playerid, params[])
- {
- if(!IsLAWFaction(playerid))
- return UnAuthMessage(playerid);
-
- if(!PlayerData[playerid][pLAWduty] && PlayerData[playerid][pMEDduty])
- return UnAuthMessage(playerid);
-
- if(PlayerData[playerid][pAddingRoadblock])
- return SendClientMessage(playerid, COLOR_ADM, "Stop adding a roadblock first...");
- ShowPlayerDialog(playerid, DIALOG_ROADBLOCKS, DIALOG_STYLE_LIST, "Roadblocks Menu", "Deploy Roadblock\nRoadblock List", "Select", "Cancel");
- return 1;
- }
- CMD:disband(playerid, params[])
- {
- if(!IsLAWFaction(playerid))
- return UnAuthMessage(playerid);
-
- if(!PlayerData[playerid][pLAWduty] && PlayerData[playerid][pMEDduty])
- return UnAuthMessage(playerid);
-
- new
- id, str[128];
-
- if( (id = IsPlayerNearRoadblock(playerid)) != -1)
- {
- format(str, sizeof(str), "Are you sure you want to disband '{ADC3E7}%s{FFFFFF}'?", GetRoadblockNameFromModel(Roadblocks[id][RoadblocksModelID]));
- ConfirmDialog(playerid, "Confirmation", str, "OnRoadblockDisband", id);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near a roadblock.");
- return 1;
- }
- CMD:fine(playerid, params[])
- {
- if(!IsLAWFaction(playerid))
- return UnAuthMessage(playerid);
-
- if(!PlayerData[playerid][pLAWduty] && PlayerData[playerid][pMEDduty])
- return UnAuthMessage(playerid);
- new
- playerb, amount, reason[128], query[256];
-
- if (sscanf(params, "uds[128]", playerb, amount, reason))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /fine [playerid/PartofName] [amount] [reason]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You have specified an invalid player.");
-
- if(!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: That player isn't logged in.");
-
- if(!GetDistanceBetweenPlayers(playerid, playerb, 4.5))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't near that player.");
-
- if(strlen(reason) < 3)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You need to specify a reason.");
-
- if(amount < 1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You can't issue an amount less than a dollar.");
-
- new
- id = -1;
-
- for (new i = 0; i < 30; i++)
- {
- if(Fines[playerb][i][Fine_ID])
- continue;
-
- id = i;
- break;
- }
-
- if(id == -1)
- return SendClientMessage(playerid, COLOR_ADM, "This player has 30 fines...");
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO player_fines (player_dbid, issuer_name, fine_amount, fine_reason, fine_date) VALUES(%i, '%e', %i, '%e', '%e')", PlayerData[playerb][pSQLID], ReturnName(playerid, 1), amount, reason, ReturnDate());
- mysql_tquery(m_Handle, query, "OnFineIssued", "iisi", playerid, playerb, reason, amount);
- return 1;
- }
- CMD:vfine(playerid, params[])
- {
- if(!IsLAWFaction(playerid))
- return UnAuthMessage(playerid);
-
- if(!PlayerData[playerid][pLAWduty] && PlayerData[playerid][pMEDduty])
- return UnAuthMessage(playerid);
- new
- targetid, amount, reason[128];
-
- if(sscanf(params, "iis[128]", targetid, amount, reason))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /vfine [vehicleid] [amount] [reason]");
-
- if(!IsValidVehicle(targetid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified a vehicle that doesn't exist.");
-
- new
- Float:x,
- Float:y,
- Float:z;
- GetVehiclePos(targetid, x, y, z);
- if(!IsPlayerInRangeOfPoint(playerid, 6.0, x, y, z))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near that vehicle.");
-
- if(!IsValidPlayerCar(targetid))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You can't fine this vehicle.");
-
- if(amount < 1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You can't issue an amount less than a dollar.");
-
- new
- id = -1,
- query[256];
-
- for(new i = 0; i < 30; i++)
- {
- if(VehicleFines[targetid][i][Fine_ID])
- continue;
-
- id = i;
- break;
- }
-
- if(id == -1)
- return SendClientMessage(playerid, COLOR_ADM, "This vehicle has 30 fines...");
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO vehicle_fines (vehicle_dbid, issuer_name, fine_amount, fine_reason, fine_date) VALUES(%i, '%e', %i, '%e', '%e')", CarData[targetid][carID], ReturnName(playerid), amount, reason, ReturnDate());
- mysql_tquery(m_Handle, query, "OnVehicleFineIssued", "iisi", playerid, targetid, reason, amount);
- return 1;
- }
- CMD:charity(playerid, params[]) {
- if(!pLoggedIn[playerid])
- return true;
- new amount;
- if (sscanf(params, "d", amount))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} /charity [amount]");
- if (amount > PlayerData[playerid][pMoney])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER:{FFFFFF} You can only charity what you have, not what you don't have.");
- GiveMoney(playerid, -amount);
- SendClientMessage(playerid, COLOR_GREY, sprintf("You have donated $%d to charity, on %s.", amount, ReturnDateEx()));
- adminWarn(1, sprintf("%s has charitied $%d (%s)", ReturnName(playerid, 1), amount, ReturnDateEx()));
- return 1;
- }
- CMD:handcuff(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new playerb, string[128], faction = PlayerData[playerid][pFaction];
-
- if(!faction && !PlayerData[playerid][pAdminDuty])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any faction.");
- if(!FactionData[faction][factionCopPerms] && !PlayerData[playerid][pAdminDuty])return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} Your faction doesn't have access to this.");
-
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /handcuff [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You have specified an invalid player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player isn't logged in.");
- if(!GetDistanceBetweenPlayers(playerid, playerb, 4.5)) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You must be closer to that player.");
-
- new
- bool:canHandcuff;
-
- if(GetPlayerSpecialAction(playerb) == SPECIAL_ACTION_HANDSUP)
- canHandcuff = true;
-
- if(GetPlayerSpecialAction(playerb) == SPECIAL_ACTION_DUCK)
- canHandcuff = true;
-
- if(GetPlayerAnimationIndex(playerb) == 1151)
- canHandcuff = true;
-
- if(GetPlayerAnimationIndex(playerb) == 1150)
- canHandcuff = true;
-
- if(GetPlayerAnimationIndex(playerb) == 960)
- canHandcuff = true;
-
- if(GetPlayerAnimationIndex(playerb) == 1701)
- canHandcuff = true;
-
- if(!canHandcuff)
- return SendClientMessage(playerid, COLOR_ADM, "That player needs to be crouched, have their hands up or be on the floor.");
-
- if(!PlayerData[playerb][pHandcuff])
- {
- ToggleHandcuffs(playerb, true);
- format(string, sizeof(string), "SERVER: %s handcuffed you.", ReturnName(playerid, 0));
- SendClientMessage(playerb, COLOR_WHITE, string);
- }
- else SendClientMessage(playerid, COLOR_WHITE, "That player's already handcuffed.");
- return true;
-
- }
- CMD:unhandcuff(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new playerb, string[128], faction = PlayerData[playerid][pFaction];
-
- if(!faction && !PlayerData[playerid][pAdminDuty])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any faction.");
- if(!FactionData[faction][factionCopPerms] && !PlayerData[playerid][pAdminDuty])return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} Your faction doesn't have access to this.");
-
- if(sscanf(params, "u", playerb))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /unhandcuff [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You have specified an invalid player.");
- if(!pLoggedIn[playerb])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player isn't logged in.");
- if(!GetDistanceBetweenPlayers(playerid, playerb, 4.5)) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You must be closer to that player.");
-
- if(PlayerData[playerb][pHandcuff]){
- ToggleHandcuffs(playerb, false);
- format(string, sizeof(string), "SERVER: %s unhandcuffed you.", ReturnName(playerid, 0));
- SendClientMessage(playerb, COLOR_WHITE, string);
- }
- else{
- SendClientMessage(playerid, COLOR_WHITE, "That player's not handcuffed.");
- }
- return true;
-
- }
- CMD:taser(playerid, params[])
- {
- if(!PlayerData[playerid][pLAWduty])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You don't have access to this.");
-
- if(!PlayerHasWeapon(playerid, 24) && !PlayerData[playerid][pTaser])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't have a taser equipped.");
-
- if(!PlayerData[playerid][pTaser])
- {
- SavePlayerTaser[playerid] = ReturnWeaponAmmo(playerid, 24);
- TakePlayerWeapon(playerid, 24);
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s takes out their taser.", ReturnName(playerid, 0));
- GivePlayerGun(playerid, 23, 5, WEAPON_SERVER_GIVEN);
-
- PlayerData[playerid][pTaser] = true;
- }
- else
- {
- TakePlayerWeapon(playerid, 23);
- GivePlayerGun(playerid, 24, SavePlayerTaser[playerid], WEAPON_SERVER_GIVEN);
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s puts their taser away.", ReturnName(playerid, 0));
- PlayerData[playerid][pTaser] = false;
- }
-
- return 1;
- }
- CMD:rb(playerid, params[])return cmd_rubberbullets(playerid, params);
- CMD:rubberbullets(playerid, params[])
- {
- if(!PlayerData[playerid][pLAWduty])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You don't have access to this.");
-
- if(!PlayerHasWeapon(playerid, 25) || PlayerHasWeapon(playerid, 25) && IsSaveableWeapon(playerid, 25) && !PlayerData[playerid][pRubberbullet])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't have a Shotgun equipped.");
-
- if(!PlayerData[playerid][pRubberbullet])
- {
- PlayerData[playerid][pRubberbullet] = true;
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You've changed to LESS LETHAL AMMO / RUBBER BULLETS.");
- }
- else
- {
- PlayerData[playerid][pRubberbullet] = false;
- SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You've changed to LETHAL AMMUNITION.");
- }
- return 1;
- }
- CMD:tackle(playerid, params[]) {
- if(!PlayerData[playerid][pLAWduty])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You don't have access to this.");
- PlayerData[playerid][pTackle] = (PlayerData[playerid][pTackle] ? (PlayerData[playerid][pTackle] = false) : (PlayerData[playerid][pTackle] = true));
- SendClientMessage(playerid, COLOR_YELLOW, sprintf("SERVER: You have now %s tackling mode! Use /tackle to turn it %s again.", (PlayerData[playerid][pTackle] ? ("enabled") : ("disabled")), (PlayerData[playerid][pTackle] ? ("off") : ("on"))));
- return 1;
- }
- CMD:towcars(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new string[128], count = 0, factionid = PlayerData[playerid][pFaction];
-
- if( !factionid && !PlayerData[playerid][pAdminDuty] ) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any faction.");
-
- if( factionid && !PlayerData[playerid][pAdminDuty] ) {
- if( PlayerData[playerid][pFactionRank] > FactionData[factionid][factionTowrank] ) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Your rank doesn't have permission to do this.");
-
- for(new i = 1, j = GetVehiclePoolSize(); i <= j; i++)
- {
- if(!IsValidFactionCar(i))
- continue;
-
- if(FactionCar[i][carFaction] != PlayerData[playerid][pFaction])
- continue;
-
- if(IsVehicleOccupied(i))
- continue;
-
- count++;
-
- if(FactionCar[i][carSirenOn])
- {
- DestroyDynamicObject(FactionCar[i][carSirenObject]);
- FactionCar[i][carSirenOn] = false;
- }
-
- SetVehicleToRespawn(i);
- }
-
- if(count){
- format(string, sizeof(string), "<< %s returned all faction vehicles to their parking place >>", ReturnName(playerid, 1));
- SendFactionMessageEx(playerid, COLOR_ADM, string);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: No faction vehicles were available for respawn.");
- }
- else if(PlayerData[playerid][pAdminDuty]) {
- new towid;
-
- if(sscanf(params, "d", towid)) return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /towcars [factionid] ");
- if ( !FactionData[towid][factionID] || towid < 1 || towid > MAX_FACTIONS) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid faction ID.");
-
- for(new i = 1, j = GetVehiclePoolSize(); i <= j; i++)
- {
- if(!IsValidFactionCar(i))
- continue;
-
- if(FactionCar[i][carFaction] != towid)
- continue;
-
- if(IsVehicleOccupied(i))
- continue;
-
- count++;
-
- if(FactionCar[i][carSirenOn])
- {
- DestroyDynamicObject(FactionCar[i][carSirenObject]);
- FactionCar[i][carSirenOn] = false;
- }
-
- SetVehicleToRespawn(i);
- }
-
- if(count){
- format(string, sizeof(string), "<< Administrator %s returned all faction vehicles to their parking place >>", ReturnName(playerid, 1));
- SendMessageToFaction(towid, COLOR_ADM, string);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: No faction vehicles were available for respawn.");
- }
-
- return true;
- }
- CMD:fmembers(playerid, params[])
- {
- if(!PlayerData[playerid][pFaction])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't in a faction.");
-
- ShowFactionMembers(playerid, 1);
- return 1;
- }
- CMD:hq(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new string[128], factionid = PlayerData[playerid][pFaction];
-
- if( !factionid ) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any faction.");
- if( !FactionData[factionid][factionCopPerms] && !FactionData[factionid][factionMedPerms] && !FactionData[factionid][factionNewsPerms])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Your faction can't do this.");
-
- if(isnull(params)) return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /hq [text]");
-
- format(string, sizeof(string), "HQ: %s %s: %s", ReturnRank(playerid), ReturnName(playerid, 0), params);
- SendFactionMessageEx(playerid, COLOR_CYAN, string);
-
- FactionNotifyBeep(playerid);
-
- return true;
- }
- CMD:swat(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new string[128], factionid = PlayerData[playerid][pFaction];
-
- if( !factionid ) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any faction.");
- if( !FactionData[factionid][factionCopPerms] )return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Your faction can't do this.");
-
- if (!IsPlayerInRangeOfPoint(playerid, 5.0, FactionData[factionid][factionSpawn][0], FactionData[factionid][factionSpawn][1], FactionData[factionid][factionSpawn][2]))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't near your faction spawn.");
-
- if(!PlayerData[playerid][pLAWduty])return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You must be on duty before SWATing up.");
-
- SetPlayerSkin(playerid, 285);
-
- PauseAntiCheat(playerid);
- ArmorGiven[playerid] = 1;
-
- SetPlayerArmour(playerid, 150);
- SetPlayerHealth(playerid, PlayerData[playerid][pMaxHealth]);
-
- format(string, sizeof(string), "** HQ: %s %s is now ready for tactical duty! **", ReturnRank(playerid), ReturnName(playerid, 0));
- SendLawMessage(COLOR_COP, string);
-
- PlayerData[playerid][pSWATduty] = true;
- return true;
- }
- CMD:trace(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new string[128], phone, playerb;
-
- if(!PlayerData[playerid][pLAWduty])return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You can't use this feature.");
- if(sscanf(params, "d", phone))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /trace [phone number]");
- if(PlayerData[playerid][pIsTracing])return SendClientMessage(playerid, COLOR_ADM, "TRACE:{FFFFFF} You're in the progress of a trace. Please wait.");
-
- playerb = IsValidNumber(phone);
- PlayerData[playerid][pTraceNum] = playerb;
-
- format(string, sizeof(string), "** HQ: %s %s initiated a trace on 555-%d! **", ReturnRank(playerid), ReturnName(playerid, 0), phone);
- SendLawMessage(COLOR_COP, string);
-
- PlayerTextDrawShow(playerid, Trace_PTD[playerid][0]);
- PlayerTextDrawSetString(playerid, Trace_PTD[playerid][0], "Trace_Initiated");
-
- SetTimerEx("TracingSteps", 4000, false, "i", playerid);
- PlayerData[playerid][pIsTracing] = true;
- return true;
- }
- CMD:ftrace(playerid, params[])return cmd_factiontrace(playerid, params);
- CMD:factiontrace(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new string[128], phone, playerb;
-
- if(!PlayerData[playerid][pLAWduty])return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You can't use this feature.");
- if(sscanf(params, "d", phone))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /factiontrace [phone number]");
- if(PlayerData[playerid][pIsTracing])return SendClientMessage(playerid, COLOR_ADM, "TRACE:{FFFFFF} You're in the progress of a trace. Please wait.");
-
- playerb = IsValidNumber(phone);
- PlayerData[playerid][pTraceNum] = playerb;
-
- format(string, sizeof(string), "** HQ: %s %s initiated a wide-trace on 555-%d! **", ReturnRank(playerid), ReturnName(playerid, 0), phone);
- SendLawMessage(COLOR_COP, string);
-
- PlayerTextDrawShow(playerid, Trace_PTD[playerid][0]);
- PlayerTextDrawSetString(playerid, Trace_PTD[playerid][0], "Trace_Initiated");
-
- SetTimerEx("TracingSteps", 4000, false, "i", playerid);
- PlayerData[playerid][pIsTracing] = 2;
- return true;
- }
- CMD:apb(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pLAWduty])return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You can't use this feature.");
-
- new string[128], sub_string[128];
- if(sscanf(params, "s[128]S()[128]", string, sub_string))
- {
- SendClientMessage(playerid, COLOR_ADM, "___________________________________");
- SendClientMessage(playerid, COLOR_ADM, "USAGE: /apb [action]");
- SendClientMessage(playerid, COLOR_ADM, "[Display] /apb display");
- SendClientMessage(playerid, COLOR_ADM, "[Details] /apb details [number]");
- SendClientMessage(playerid, COLOR_ADM, "[Clear] /apb clear [number]");
- SendClientMessage(playerid, COLOR_ADM, "[Modify] /apb modify [number] [text]");
- SendClientMessage(playerid, COLOR_ADM, "[Create] /apb create [suspect]//[charges]");
- SendClientMessage(playerid, COLOR_ADM, "[Example] /apb create John Doe, Red Sentinel // Murder");
- SendClientMessage(playerid, COLOR_ADM, "___________________________________");
- return true;
- }
-
- if(!strcmp(string, "display")){
- format(string, sizeof(string), "___________All Point Bulletins(%d)_________", CountAllBulletins());
- SendClientMessage(playerid, COLOR_ADM, string);
-
- for(new i = 1; i < MAX_APBS; i++)
- {
- if(APBData[i][bulletinExists])
- {
- format(string, sizeof(string), "%d. APB: %s", i, APBData[i][bulletinDetails]);
- SendClientMessage(playerid, COLOR_ADM, string);
- }
- }
-
- SendClientMessage(playerid, COLOR_ADM, "_______________________________________");
- }
- else if(!strcmp(string, "details")){
- new number;
-
- if(sscanf(sub_string, "d", number))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /apb details [number]");
-
- if(!APBData[number][bulletinExists])return SendClientMessage(playerid, COLOR_ADM, "SERVER: There isn't an APB there.");
-
- format(string, sizeof(string), "___________All Point Bulletin Number %d_________", number);
- SendClientMessage(playerid, COLOR_ADM, string);
-
- format(string, sizeof(string), "APB: %s", APBData[number][bulletinDetails]);
- SendClientMessage(playerid, COLOR_ADM, string);
-
- format(string, sizeof(string), "___________ISSUED BY: %s_________", APBData[number][bulletinBy]);
- SendClientMessage(playerid, COLOR_ADM, string);
- }
- else if(!strcmp(string, "clear")){
- new number;
-
- if(sscanf(sub_string, "d", number))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /apb clear [number]");
-
- if(!APBData[number][bulletinExists])return SendClientMessage(playerid, COLOR_ADM, "SERVER: There isn't an APB there.");
-
- format(string, sizeof(string), "%s %s cleared All Points Bulletin number %d!", ReturnRank(playerid), ReturnName(playerid, 0), number);
- SendLawMessage(COLOR_ADM, string);
-
- APBData[number][bulletinExists] = false;
- APBData[number][bulletinID] = 0;
- format(APBData[number][bulletinDetails], 128, " ");
- }
- else if(!strcmp(string, "modify")){
- new number, newtext[128];
-
- if(sscanf(sub_string, "ds[128]", number, newtext))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /apb modify [number] [text]");
-
- if(!APBData[number][bulletinExists])return SendClientMessage(playerid, COLOR_ADM, "SERVER: There isn't an APB there.");
- if(number > MAX_APBS || number < 1)return SendClientMessage(playerid, COLOR_ADM, "SERVER: There isn't an APB there.");
-
- format(APBData[number][bulletinDetails], 128, "%s", newtext);
- format(APBData[number][bulletinBy], 128, "%s", ReturnName(playerid, 1));
-
- format(string, sizeof(string), "%s %s modified All Points Bulletin number %d!", ReturnRank(playerid), ReturnName(playerid, 0), number);
- SendLawMessage(COLOR_ADM, string);
- }
- else if(!strcmp(string, "create")){
- new text[128], new_id;
-
- if(sscanf(sub_string, "s[128]", text))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /apb create [text]");
-
- for(new i = 1; i < MAX_APBS; i++)
- {
- if(!APBData[i][bulletinExists])
- {
- new_id = i;
- break;
- }
- }
-
- if(new_id == 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} There are one too many APBs right now.");
-
- APBData[new_id][bulletinID] = new_id;
- APBData[new_id][bulletinExists] = true;
- format(APBData[new_id][bulletinDetails], 128, "%s", text);
- format(APBData[new_id][bulletinBy], 128, "%s", ReturnName(playerid, 1));
-
- format(string, sizeof(string), "%s %s added a new All Points Bulletin ( /apb details %d )!", ReturnRank(playerid), ReturnName(playerid, 0), new_id);
- SendLawMessage(COLOR_ADM, string);
- }
- return true;
- }
- CMD:togcolor(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(!PlayerData[playerid][pLAWduty])return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You can't use this right now.");
-
- if(PlayerData[playerid][pTogColor])
- {
- SetPlayerColor(playerid, COLOR_COP);
- SendClientMessage(playerid, COLOR_YELLOW, "-> Your color is now back to on duty.");
-
- PlayerData[playerid][pTogColor] = false;
- }
- else
- {
- SetPlayerColor(playerid, COLOR_WHITE);
- SendClientMessage(playerid, COLOR_YELLOW, "-> Your color is now off. You will seem off duty.");
-
- PlayerData[playerid][pTogColor] = true;
- }
-
- return true;
- }
- CMD:gov(playerid, params[])
- {
- new factionid = PlayerData[playerid][pFaction], string[128];
-
- if(!FactionData[factionid][factionCopPerms] && !FactionData[factionid][factionMedPerms])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You don't have permission to use this command.");
-
- if(PlayerData[playerid][pFactionRank] > FactionData[factionid][factionEditrank])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} Your rank doesn't have permission to do this.");
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /gov [text]");
-
- if(strlen(params) > 80)
- {
- format(string, sizeof(string), "[Government Announcement] %.80s", params);
- SendClientMessageToAll(COLOR_COP, string);
- format(string, sizeof(string), "[Government Announcement] ...%s", params[80]);
- SendClientMessageToAll(COLOR_COP, string);
- }
- else
- {
- format(string, sizeof(string), "[Government Announcement] %s", params);
- SendClientMessageToAll(COLOR_COP, string);
- }
-
- format(string, sizeof(string), "Announcement by %s[ID: %i]", ReturnName(playerid, 1), playerid);
- SendAdminMessage(COLOR_YELLOW, string);
-
- return true;
- }
- CMD:live(playerid, params[])
- {
- new factionid = PlayerData[playerid][pFaction];
-
- if(!FactionData[factionid][factionNewsPerms])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You don't have permission to use this command.");
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /live [text]");
-
- new string[128];
- if(strlen(params) > 80)
- {
- format(string, sizeof(string), "[San Andreas Network] %s: %.80s", ReturnName(playerid), params);
- SendClientMessageToAll(COLOR_SAN, string);
- format(string, sizeof(string), "[San Andreas Network] %s: ...%s", ReturnName(playerid), params[80]);
- SendClientMessageToAll(COLOR_SAN, string);
- }
- else
- {
- format(string, sizeof(string), "[San Andreas Network] %s: %s", ReturnName(playerid), params);
- SendClientMessageToAll(COLOR_SAN, string);
- }
-
- format(string, sizeof(string), "SAN Announcement by %s[ID: %i]", ReturnName(playerid, 1), playerid);
- SendAdminMessage(COLOR_YELLOW, string);
-
- return true;
- }
- /*CMD:inviteguest(playerid, params[]) {
- }*/
- CMD:factionbank(playerid, params[])
- {
- if(!IsLAWFaction(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: Your faction doesn't have a bank.");
-
- new factionid = PlayerData[playerid][pFaction];
-
- if(PlayerData[playerid][pFactionRank] > FactionData[factionid][factionEditrank])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} Your rank doesn't have permission to do this.");
- new specifier[60], method[30];
-
- if(sscanf(params, "s[60]S()[30]", specifier, method))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /factionbank [deposit/withdraw/balance]");
-
- if(!strcmp(specifier, "deposit"))
- {
- new quantity;
-
- if(sscanf(method, "i", quantity))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /factionbank deposit [quantity]");
-
- if(quantity > PlayerData[playerid][pMoney] || quantity < 1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't have that quantity.");
-
- GiveMoney(playerid, -quantity);
- FactionData[factionid][factionBank]+= quantity;
-
- Message(playerid, COLOR_ACTION, "You deposited $%s into the %s's bank! (%s)", MoneyFormat(quantity), ReturnFactionName(factionid), ReturnDateEx());
- }
- else if(!strcmp(specifier, "withdraw"))
- {
- new quantity;
-
- if(PlayerData[playerid][pFactionRank] != 1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: Only your factions Rank 1 can withdraw.");
-
- if(sscanf(method, "i", quantity))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /factionbank withdraw [quantity]");
-
- if(quantity > FactionData[factionid][factionBank] || quantity < 1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't have that much in the bank.");
-
- GiveMoney(playerid, quantity);
- FactionData[factionid][factionBank]-= quantity;
-
- Message(playerid, COLOR_ACTION, "You withdrew $%s from the %s's bank. (%s)", MoneyFormat(quantity), ReturnFactionName(factionid), ReturnDateEx());
- }
- else if(!strcmp(specifier, "balance"))
- return Message(playerid, COLOR_ACTION, "The %s has: $%s in their bank. (%s)", ReturnFactionName(factionid), MoneyFormat(FactionData[factionid][factionBank]), ReturnDateEx());
-
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- return 1;
- }
- CMD:take(playerid, params[])
- {
- if(!PlayerData[playerid][pLAWduty])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You are not authorized to use this.");
-
- new playerb, specifier[90], b_string[128], string[128];
-
- if(sscanf(params, "us[90]S()[128]", playerb, specifier, b_string))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /take [playerid OR name] [weapons, license, drugs]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "You specified an invalid player.");
-
- if(!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "You specified a player that isn't logged in.");
-
- if(!strcmp(specifier, "weapons"))
- {
- if(!GetDistanceBetweenPlayers(playerid, playerb, 4.5)) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You must be closer to that player.");
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s %s took %s's weapons!", ReturnRank(playerid), ReturnName(playerid, 0), ReturnName(playerb, 0));
- ClearPlayerWeapons(playerb, 0);
-
- format(string, sizeof string, "Took %s's weapons", ReturnName(playerb));
- LogPlayerAction(playerid, string);
-
- format(string, sizeof string, "Weapons taken by %s", ReturnName(playerid));
- LogPlayerAction(playerb, string);
-
- printf("[Debug] %s took %s's weapons with /take.", ReturnName(playerid), ReturnName(playerb));
- }
- else if(!strcmp(specifier, "license"))
- {
- new lictype[90];
-
- if(sscanf(b_string, "s[90]", lictype))
- return SendClientMessage(playerid, COLOR_ADM, "CMD: /take [playerid OR name] license [driver, weapons]");
-
- if(!strcmp(b_string, "driver"))
- {
- format(string, sizeof(string), "** HQ Announcement: %s %s revoked %s's driver's license! **", ReturnRank(playerid), ReturnName(playerid, 1), ReturnName(playerb, 1));
- SendLawMessage(COLOR_COP, string);
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s %s took %s's driver's license!", ReturnRank(playerid), ReturnName(playerid, 0), ReturnName(playerb, 0));
- PlayerData[playerb][pDriversLicense] = false;
-
- // Log later.
- }
- else if(!strcmp(b_string, "weapons"))
- {
- format(string, sizeof(string), "** HQ Announcement: %s %s revoked %s's weapons license! **", ReturnRank(playerid), ReturnName(playerid, 1), ReturnName(playerb, 1));
- SendLawMessage(COLOR_COP, string);
-
- format(string, sizeof(string), "-> %s %s revoked your weapons license.", ReturnRank(playerid), ReturnName(playerid, 1));
- SendClientMessage(playerb, COLOR_YELLOW, string);
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s %s took %s's weapons license!", ReturnRank(playerid), ReturnName(playerid, 0), ReturnName(playerb, 0));
- PlayerData[playerb][pWeaponsLicense] = false;
-
- // Log later.
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- }
- else if(!strcmp(specifier, "drugs"))
- {
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s %s took %s's drug packages.", ReturnRank(playerid), ReturnName(playerid, 0), ReturnName(playerb, 0));
- printf("[Debug] %s took %s's drugs with /take.", ReturnName(playerid), ReturnName(playerb));
-
- format(string, sizeof string, "Took %s's drug packages", ReturnName(playerb));
- LogPlayerAction(playerid, string);
-
- format(string, sizeof string, "Drug packages taken by %s", ReturnName(playerid));
- LogPlayerAction(playerb, string);
-
- for(new i = 0; i < 10; i++) {
- RemoveDrugPackage(playerb, i);
- }
- return 1;
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- return true;
- }
- CMD:grantpf(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- if(!PlayerData[playerid][pLAWduty])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You are not authorized to use this.");
-
- new playerb, string[128];
-
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /grantpf [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "You specified an invalid player.");
-
- if(!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "You specified a player that isn't logged in.");
-
- if(PlayerData[playerb][pWeaponsLicense])
- return SendClientMessage(playerid, COLOR_GREY, "They already have a weapons license.");
-
- PlayerData[playerb][pWeaponsLicense] = true;
-
- format(string, sizeof(string), "-> %s %s granted you a weapons license.", ReturnRank(playerid), ReturnName(playerid, 1));
- SendClientMessage(playerb, COLOR_YELLOW, string);
-
- format(string, sizeof(string), "** HQ Announcement: %s %s granted %s a weapons license! **", ReturnRank(playerid), ReturnName(playerid, 1), ReturnName(playerb, 1));
- SendLawMessage(COLOR_COP, string);
-
- // Log it later.
- return true;
- }
- CMD:siren(playerid, params[])
- {
- if(!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle.");
-
- if(!IsLAWFaction(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You aren't authorized to use this command.");
-
- new vehicleid = GetPlayerVehicleID(playerid);
-
- if (!FactionCar[vehicleid][carSirenOn])
- {
- new
- model = GetVehicleModel(vehicleid),
- preset = -1;
-
- for(new i = 0; i < sizeof(g_SirenPresets); i++)
- {
- if(model == g_SirenPresets[i][SirenForModel])
- {
- preset = i;
- }
- }
- if(preset == -1) return SendClientMessage(playerid, COLOR_ADM, "SERVER: Sirens aren't compatible on this vehicle!");
-
- FactionCar[vehicleid][carSirenObject] = CreateDynamicObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1, -1, -1, 20.0);
- AttachDynamicObjectToVehicle(FactionCar[vehicleid][carSirenObject], vehicleid, g_SirenPresets[preset][PosX], g_SirenPresets[preset][PosY], g_SirenPresets[preset][PosZ], 0.0, 0.0, 0.0);
-
- FactionCar[vehicleid][carSirenOn] = true;
- GameTextForPlayer(playerid, "~g~SIREN IS ON", 3000, 4);
- }
- else
- {
- DestroyDynamicObject(FactionCar[vehicleid][carSirenObject]);
- FactionCar[vehicleid][carSirenOn] = false;
-
- GameTextForPlayer(playerid, "~r~SIREN IS OFF", 3000, 4);
- }
-
- return true;
- }
- CMD:badge(playerid, params[])
- {
- new playerb, string[128];
-
- if (sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /badge [playerid/PartofName]");
-
- if (!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid player.");
-
- if (!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified a player that isn't logged in.");
-
- if(!GetDistanceBetweenPlayers(playerid, playerb, 4.5))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You must be closer to that player to show your badge.");
-
- if (!PlayerData[playerid][pFaction])
- return SendClientMessage(playerid, COLOR_ADM, "You aren't in any agency.");
-
- if (!FactionData[PlayerData[playerid][pFaction]][factionCopPerms] && !FactionData[PlayerData[playerid][pFaction]][factionMedPerms] && !FactionData[PlayerData[playerid][pFaction]][factionNewsPerms])
- return SendClientMessage(playerid, COLOR_ADM, "You don't have a badge.");
-
- if (playerb == playerid)
- {
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s looks at their badge.", ReturnName(playerid, 0));
- }
- else
- {
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s shows %s their badge.", ReturnName(playerid, 0), ReturnName(playerb, 0));
- }
-
- SendClientMessage(playerb, COLOR_COP, "______________________________________");
- format (string, sizeof(string), " Name: %s", ReturnNameLetter(playerid));
- SendClientMessage(playerb, COLOR_GRAD2, string);
-
- format (string, sizeof(string), " Rank: %s", ReturnRank(playerid));
- SendClientMessage(playerb, COLOR_GRAD2, string);
-
- format (string, sizeof(string), " Agency: %s", ReturnFactionName(PlayerData[playerid][pFaction]));
- SendClientMessage(playerb, COLOR_GRAD2, string);
-
- SendClientMessage(playerb, COLOR_COP, "______________________________________");
- return true;
- }
- CMD:carsign(playerid, params[])
- {
- if (!IsLAWFaction(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFFF} You aren't authorized to use this.");
-
- if(!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle.");
-
- new vehicleid = GetPlayerVehicleID(playerid);
-
- if (!IsValidFactionCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You may only carsign faction vehicles.");
-
- if (isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /carsign [carsign text]");
-
- if (IsPoliceFaction(playerid)) {
- if (strlen(params) > 5) {
- adminWarn(1, sprintf("%s [ID: %d] has attempted to use the callsign: %s. Take action if a trollish callsign is used."));
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: That callsign is too long!");
- }
- }
-
- if (!FactionCar[vehicleid][carHasCallsign])
- {
- FactionCar[vehicleid][carHasCallsign] = true;
- SendClientMessage(playerid, COLOR_ADM, "/remove_carsign to remove the carsign. Added.");
- SendClientMessage(playerid, COLOR_ADM, "Make sure you've /callsign'ed.");
-
- format(FactionCar[vehicleid][carsCallsignText], 90, "%s", params);
- FactionCar[vehicleid][carsCallsign] = CreateDynamic3DTextLabel(params, 0xFFFFFFFF, -0.7, -1.9, -0.3, 25.0, .attachedvehicle = GetPlayerVehicleID(playerid));
- }
- else
- {
- DestroyDynamic3DTextLabel(FactionCar[vehicleid][carsCallsign]);
-
- format(FactionCar[vehicleid][carsCallsignText], 90, "%s", params);
- FactionCar[vehicleid][carsCallsign] = CreateDynamic3DTextLabel(params, 0xFFFFFFFF, -0.7, -1.9, -0.3, 25.0, .attachedvehicle = GetPlayerVehicleID(playerid));
- }
-
- printf("[DEBUG] %s created 3DText Carsign with vehicleid %d. Text: %s", ReturnName(playerid), vehicleid, params);
- return true;
- }
- CMD:remove_carsign(playerid, params[])
- {
- if (!IsLAWFaction(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFFF} You aren't authorized to use this.");
-
- if(!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle.");
-
- new vehicleid = GetPlayerVehicleID(playerid);
-
- if (!IsValidFactionCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You may only remove carsigns from faction vehicles.");
-
- if (!FactionCar[vehicleid][carHasCallsign])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} This vehicle isn't using a carsign.");
- DestroyDynamic3DTextLabel(FactionCar[vehicleid][carsCallsign]);
- FactionCar[vehicleid][carHasCallsign] = false;
-
- SendClientMessage(playerid, COLOR_ADM, "Carsign has been removed. /carsign to re-add.");
- return true;
- }
- CMD:impound(playerid, params[])
- {
- if (!IsPoliceFaction(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFFF} You aren't authorized to use this.");
-
- if(!PlayerData[playerid][pLAWduty])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFFF} You aren't authorized to use this.");
-
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't driving a vehicle.");
-
- new vehicleid = GetPlayerVehicleID(playerid), string[128];
-
- if(!IsValidPlayerCar(vehicleid) || IsValidRentalCar(vehicleid) || IsValidFactionCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "This vehicle can't be impounded.");
-
- if(!IsPlayerInDynamicArea(playerid, ImpoundLotArea))
- return SendClientMessage(playerid, COLOR_ADM, "You aren't in the impound lot area.");
-
- GetPlayerPos(playerid, CarData[vehicleid][carImpoundPos][0], CarData[vehicleid][carImpoundPos][1], CarData[vehicleid][carImpoundPos][2]);
- CarData[vehicleid][carImpounded] = true;
-
- SaveCar(vehicleid);
-
- format(string, sizeof(string), "You impounded %s's %s.", ReturnSQLName(CarData[vehicleid][carOwnerID]), ReturnVehicleName(vehicleid));
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
-
- foreach(new i : Player) if(PlayerData[i][pSQLID] == CarData[vehicleid][carOwnerID])
- {
- format(string, sizeof(string), "Your %s was impounded by %s.", ReturnVehicleName(vehicleid), ReturnName(playerid, 1));
- SendClientMessage(i, COLOR_DARKGREEN, string);
- }
- return 1;
- }
- CMD:mdc(playerid, params[])
- {
- if (!IsPoliceFaction(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You aren't authorized to use this.");
-
- if(!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't in a vehicle.");
-
- if(GetPlayerVehicleSeat(playerid) > 1)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You can't use the MDC from back there.");
-
- new
- vehicleid = GetPlayerVehicleID(playerid)
- ;
-
- if(!IsValidFactionCar(vehicleid) || IsValidFactionCar(vehicleid) && !FactionData[FactionCar[vehicleid][carFaction]][factionCopPerms])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: This vehicle doesn't have a MDC.");
-
- ShowPlayerMDC(playerid);
- return 1;
- }
- /*
- CMD:mdc(playerid, params[])
- {
- if (!IsPoliceFaction(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You aren't authorized to use this.");
-
- if(!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't in a vehicle.");
-
- if(GetPlayerVehicleSeat(playerid) > 1)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You can't use the MDC from back there.");
-
- new vehicleid = GetPlayerVehicleID(playerid);
-
- if(!IsValidFactionCar(vehicleid) || IsValidFactionCar(vehicleid) && !FactionData[FactionCar[vehicleid][carFaction]][factionCopPerms])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: This vehicle doesn't have a MDC.");
-
- SetPVarInt(playerid, "UsingMDC", 1);
- SetPVarInt(playerid, "LastPage_ID", 10);
- ToggleMDC(playerid, true);
- UpdateMDC(playerid, 0);
- SelectTextDraw(playerid, COLOR_GREY);
- //ShowPlayerMDC(playerid);
- return 1;
- }
- */
- CMD:wanted(playerid, params[])
- {
- if (!IsPoliceFaction(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFFF} You aren't authorized to use this.");
-
- if(!PlayerData[playerid][pLAWduty])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFFF} You aren't authorized to use this.");
-
- new
- playerb,
- reason[128],
- add_query[256];
-
- if(sscanf(params, "us[128]", playerb, reason))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /wanted [playerid/PartofName] [reason]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid player.");
-
- if(!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: That player hasn't logged in yet.");
-
- if(strlen(reason) < 3 || strlen(reason) > 128)
- return SendClientMessage(playerid, COLOR_ADM, "The reason must be between 3 to 128 characters.");
-
- mysql_format(m_Handle, add_query, sizeof(add_query), "INSERT INTO criminal_record (player_name, entry_reason, entry_date, entry_by) VALUES('%e', '%e', '%e', '%e')", ReturnName(playerb, 0), reason, ReturnDate(), ReturnName(playerid, 1));
- mysql_tquery(m_Handle, add_query, "OnPlayerAddCharge", "ii", playerid, playerb);
- return 1;
- }
- CMD:setp(playerid, params[])
- {
- if (!IsPoliceFaction(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFFF} You aren't authorized to use this.");
-
- new
- id;
- if(sscanf(params, "i", id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /setp [precinct id, 1-3]");
-
- if(id < 1 || id > 3)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid precinct.");
-
- switch(id)
- {
- case 1:
- {
- if(!FactionData[PlayerData[playerid][pFaction]][factionSpawnEx1][0])
- return SendClientMessage(playerid, COLOR_ADM, "That precinct hasn't been configured yet.");
- }
- case 2:
- {
- if(!FactionData[PlayerData[playerid][pFaction]][factionSpawnEx2][0])
- return SendClientMessage(playerid, COLOR_ADM, "That precinct hasn't been configured yet.");
- }
- case 3:
- {
- if(!FactionData[PlayerData[playerid][pFaction]][factionSpawnEx3][0])
- return SendClientMessage(playerid, COLOR_ADM, "That precinct hasn't been configured yet.");
- }
- }
-
- PlayerData[playerid][pSpawnPrecinct] = id;
- Message(playerid, COLOR_ADM, "[ ! ] Your precinct spawn is now set (%d). You will spawn there on login.", id);
- return 1;
- }
- //FD Commands:
- CMD:finishop(playerid, params[])
- {
- if(!IsMedicFaction(playerid))
- return UnAuthMessage(playerid);
-
- if(!PlayerData[playerid][pMEDduty])
- return UnAuthMessage(playerid);
-
- new
- playerb,
- str[128];
-
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /finishop [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_GREY, "ERROR: You specified an invalid player.");
-
- if(playerb == playerid)
- return SendClientMessage(playerid, COLOR_GREY, "ERROR: You can't heal yourself.");
-
- if(!GetDistanceBetweenPlayers(playerid, playerb, 6.0) && !IsPlayerInDynamicArea(playerb, HospitalArea))
- return SendClientMessage(playerid, COLOR_GREY, "SERVER: You aren't near that player.");
-
- if(GetPlayerTeam(playerb) != STATE_WOUNDED)
- return SendClientMessage(playerid, COLOR_GREY, "SERVER: The player needs to be brutally wounded.");
-
- PlayerData[playerb][pBrutallyWounded] = 0;
-
- SetPlayerTeam(playerb, STATE_ALIVE);
- SetPlayerHealth(playerb, 50);
-
- format(str, sizeof(str), "** HQ: %s %s finished an operation on %s! **", ReturnRank(playerid), ReturnName(playerid, 0), ReturnName(playerb));
- SendFDMessage(COLOR_EMT, str);
-
- format(str, sizeof(str), "%s revived %s with \"/finishop\".", ReturnName(playerid), ReturnName(playerb));
- adminWarn(1, str);
-
- Message(playerid, COLOR_EMT, "SERVER: You finished the operation on %s.", ReturnName(playerb, 0));
- Message(playerb, COLOR_EMT, "SERVER: You were operated on by %s.", ReturnName(playerid, 0));
- return 1;
- }
- CMD:putinambu(playerid, params[])
- {
- if(!IsMedicFaction(playerid))
- return UnAuthMessage(playerid);
-
- if(!PlayerData[playerid][pMEDduty])
- return UnAuthMessage(playerid);
-
- new
- playerb, str[128],
- vehicleid = GetPlayerVehicleID(playerid);
-
- if(GetVehicleModel(vehicleid) != 416)
- return SendClientMessage(playerid, COLOR_GREY, "SERVER: You aren't inside an ambulance.");
-
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /putinambu [playerid/PartofName]");
-
- if(!GetDistanceBetweenPlayers(playerid, playerb, 6.0) && !IsPlayerInDynamicArea(playerb, HospitalArea))
- return SendClientMessage(playerid, COLOR_GREY, "SERVER: You aren't near that player.");
-
- if(GetPlayerTeam(playerb) != STATE_WOUNDED)
- return SendClientMessage(playerid, COLOR_GREY, "SERVER: The player needs to be brutally wounded.");
-
- new
- seat_available = -1;
-
- foreach(new i : Player) if(IsPlayerInVehicle(i, vehicleid))
- {
- if(GetPlayerVehicleSeat(i) != 2)
- {
- seat_available = 2;
- }
- else if(GetPlayerVehicleSeat(i) != 3)
- {
- seat_available = 3;
- }
- }
- if(seat_available == -1)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: There's no room in your Ambulance.");
-
- format(str, sizeof(str), "puts %s into the ambulance.", ReturnName(playerb, 0));
- cmd_me(playerid, str);
-
- PutPlayerInVehicle(playerb, vehicleid, seat_available);
- PlayerData[playerb][pInsideAmbulance] = 1;
- return 1;
- }
- //
- CMD:buydrink(playerid, params[])
- {
- if(!IsPlayerInBusiness(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't in an establishment.");
-
- new id = IsPlayerInBusiness(playerid);
-
- if(BusinessData[id][businessType] != BIZ_CLUB)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: This isn't a club.");
-
- if(3 > PlayerData[playerid][pMoney])
- return SendClientMessage(playerid, COLOR_ADM, "You can't afford a drink. ($3)");
-
- SendClientMessage(playerid, COLOR_YELLOW, "You bought a Drink! Use /usedrink, /givedrink!");
- GiveMoney(playerid, -3);
- PlayerData[playerid][pDrinks]++;
- return 1;
- }
- //Business commands
- CMD:buybiz(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(CountPlayerBusinesses(playerid) == 1)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You already own a business.");
-
- new string[128], bizid = 0;
-
- for(new i = 0; i < MAX_BUSINESS; i++){
- if(BusinessData[i][businessID] != 0){
- if(IsPlayerInRangeOfPoint(playerid, 3.0, BusinessData[i][businessExt][0], BusinessData[i][businessExt][1], BusinessData[i][businessExt][2])){
- bizid = i;
- }
- }
- }
-
- if(bizid == 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't near any businesses.");
- if(BusinessData[bizid][businessOwnerSQL] != 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't buy a business that's already owned.");
- if(BusinessData[bizid][businessType] == 8 || BusinessData[bizid][businessType] == 9)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't buy this type of business.");
- if(PlayerData[playerid][pMoney] < BusinessData[bizid][businessMarketPrice]){
- format(string, sizeof(string), "Insufficient amount. This business cost $%s. Please arrange a sufficient payment.", MoneyFormat(BusinessData[bizid][businessMarketPrice]));
- SendClientMessage(playerid, COLOR_ADM, string);
- return true;
- }
- if(PlayerData[playerid][pLevel] < BusinessData[bizid][businessLevel])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't the level required for this business.");
-
- GiveMoney(playerid, -BusinessData[bizid][businessMarketPrice]);
- BusinessData[bizid][businessOwnerSQL] = PlayerData[playerid][pSQLID];
-
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- GameTextForPlayer(playerid, "Congratulations!~n~You're now the owner of this business!", 4000, 5);
-
- SaveSQLInt(BusinessData[bizid][businessID], "businesses", "OwnerSQL", BusinessData[bizid][businessOwnerSQL]);
-
- DestroyDynamicPickup(BusinessData[bizid][businessPickup]);
- BusinessData[bizid][businessPickup] = CreateDynamicPickup(1239, 14, BusinessData[bizid][businessExt][0], BusinessData[bizid][businessExt][1], BusinessData[bizid][businessExt][2], 0);
-
- return true;
- }
- CMD:sellbiz(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(CountPlayerBusinesses(playerid) == 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own a business.");
-
- new string[128], confirm[60];
- if(sscanf(params, "s[60]", confirm))return SendClientMessage(playerid, COLOR_ADM, "SERVER:{FFFFFF} You're about to sell your business. Type /sellbiz confirm to confirm.");
-
- if(strmatch(confirm, "confirm")){
- for(new i = 0; i < MAX_BUSINESS; i++){
- if(BusinessData[i][businessID] != 0){
- if(IsPlayerInRangeOfPoint(playerid, 3.0, BusinessData[i][businessExt][0], BusinessData[i][businessExt][1], BusinessData[i][businessExt][2])){
- if(BusinessData[i][businessOwnerSQL] != PlayerData[playerid][pSQLID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this business.");
-
- BusinessData[i][businessOwnerSQL] = 0;
- SaveSQLInt(BusinessData[i][businessID], "businesses", "OwnerSQL", 0);
- GameTextForPlayer(playerid, "You sold your business!", 3000, 5);
- format(string, sizeof(string), "SERVER:{FFFFFF} You sold your business. You were paid $%s of the market price.", MoneyFormat(BusinessData[i][businessMarketPrice] / 2));
- SendClientMessage(playerid, COLOR_ADM, string);
- GiveMoney(playerid, BusinessData[i][businessMarketPrice] / 2);
- }
- }
- }
- }
- return true;
- }
- CMD:bizinfo(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(CountPlayerBusinesses(playerid) == 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't own a business.");
- if(!IsPlayerInBusiness(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't in your business.");
-
- new bizid = IsPlayerInBusiness(playerid), string[128], lockString[40];
- if(BusinessData[bizid][businessOwnerSQL] != PlayerData[playerid][pSQLID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this business.");
-
- if(BusinessData[bizid][businessLocked])
- format(lockString, sizeof(lockString), "Yes");
-
- else
- format(lockString, sizeof(lockString), "No");
-
- SendClientMessage(playerid, COLOR_DARKGREEN, "____________________________________________");
- format(string, sizeof(string), "*** %s ***", BusinessData[bizid][businessName]);
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
- format(string, sizeof(string), "Owner:[%s] Level:[%d] Value:[%d] Type:[%d] Locked:[%s] ID:[%d]", ReturnName(playerid, 1), BusinessData[bizid][businessLevel],
- BusinessData[bizid][businessMarketPrice], BusinessData[bizid][businessType], lockString, BusinessData[bizid][businessID]);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- format(string, sizeof(string), "Cashbox:[%s] Entrance Fee:[%s] Products[%d / 500]", MoneyFormat(BusinessData[bizid][businessCashbox]), MoneyFormat(BusinessData[bizid][businessFee]), BusinessData[bizid][businessProduct]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SendClientMessage(playerid, COLOR_WHITE, "Employees: /hirelist");
- SendClientMessage(playerid, COLOR_DARKGREEN, "____________________________________________");
-
- return true;
- }
- CMD:bizcashbox(playerid, params[])
- {
- if(CountPlayerBusinesses(playerid) == 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't own a business.");
- if(!IsPlayerInBusiness(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't in your business.");
-
- new bizid = IsPlayerInBusiness(playerid),
- specifier[30],
- type[30];
-
- if(BusinessData[bizid][businessOwnerSQL] != PlayerData[playerid][pSQLID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't own this business.");
-
- if(sscanf(params, "s[30]S()[30]", specifier, type))
- {
- SendClientMessage(playerid, COLOR_DARKGREEN, "____________________________________________");
- Message(playerid, COLOR_ADM, "You have: $%s inside your business.", MoneyFormat(BusinessData[bizid][businessCashbox]));
- SendClientMessage(playerid, COLOR_GREY, "Use /bizcashbox [withdraw/deposit] to handle it.");
- return 1;
- }
-
- if(!strcmp(specifier, "withdraw"))
- {
- new amount;
- if(sscanf(type, "i", amount))
- return SendClientMessage(playerid, COLOR_DARKGREEN, "USAGE: /bizcashbox withdraw [amount]");
-
- if(amount < 1 || amount > BusinessData[bizid][businessCashbox])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid amount.");
-
- WriteLog("business_logs/cashbox_withdraw.txt", "[%s] %s withdrew $%s from the $%s cashbox. [New amount: $%s]", ReturnDateLog(), ReturnName(playerid), MoneyFormat(amount), MoneyFormat(BusinessData[bizid][businessCashbox]), (BusinessData[bizid][businessCashbox]-amount));
-
- GiveMoney(playerid, amount);
- BusinessData[bizid][businessCashbox]-= amount;
-
- Message(playerid, COLOR_DARKGREEN, "You withdrew $%s from your business. (Total: $%s)", MoneyFormat(amount), MoneyFormat(BusinessData[bizid][businessCashbox]));
- }
- else if(!strcmp(specifier, "deposit"))
- {
- new amount;
- if(sscanf(type, "i", amount))
- return SendClientMessage(playerid, COLOR_DARKGREEN, "USAGE: /bizcashbox deposit [amount]");
-
- if(amount < 1 || amount > PlayerData[playerid][pMoney])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid amount.");
-
- WriteLog("business_logs/cashbox_deposit.txt", "[%s] %s deposited %s into the %s cashbox. [New cashbox: $%s - New on hand: $%s]",
- ReturnDateLog(), ReturnName(playerid), MoneyFormat(amount), MoneyFormat(BusinessData[bizid][businessCashbox]), MoneyFormat((BusinessData[bizid][businessCashbox]+amount)), MoneyFormat((PlayerData[playerid][pMoney]-amount)));
-
- GiveMoney(playerid, -amount);
- BusinessData[bizid][businessCashbox]+= amount;
-
- Message(playerid, COLOR_DARKGREEN, "You deposited $%s into your business. (Total: $%s)", MoneyFormat(amount), MoneyFormat(BusinessData[bizid][businessCashbox]));
- }
- else return SendClientMessage(playerid, COLOR_ADM, "ERROR: Invalid Parameter.");
- return 1;
- }
- CMD:bizfee(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(CountPlayerBusinesses(playerid) == 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own a business.");
- if(!IsPlayerInBusiness(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in your business.");
-
- new bizid = IsPlayerInBusiness(playerid), string[128], fee;
-
- if(BusinessData[bizid][businessOwnerSQL] != PlayerData[playerid][pSQLID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this business.");
-
- if(sscanf(params, "d", fee))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /bizfee [0-50]");
- if(fee < 0 || fee > 50)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Business fee must be between 0 and 50.");
-
- BusinessData[bizid][businessFee] = fee;
- SaveSQLInt(BusinessData[bizid][businessID], "businesses", "Fee", BusinessData[bizid][businessFee]);
-
- format(string, sizeof(string), "Your businesses' fee was set to $%d!", fee);
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
-
- return true;
- }
- CMD:bizname(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(CountPlayerBusinesses(playerid) == 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own a business.");
- if(!IsPlayerInBusiness(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in your business.");
-
- new bizid = IsPlayerInBusiness(playerid), string[128], bName[128];
-
- if(BusinessData[bizid][businessOwnerSQL] != PlayerData[playerid][pSQLID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this business.");
- if(sscanf(params, "s[128]", bName))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /bizfee [business name]");
-
- format(BusinessData[bizid][businessName], 128, "%s", bName);
- SaveBusiness(bizid);
-
- format(string, sizeof(string), "Your business is now named %s!", bName);
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
-
- return true;
- }
- CMD:hirelist(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(CountPlayerBusinesses(playerid) == 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own a business.");
- if(!IsPlayerInBusiness(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in your business.");
-
- new bizid = IsPlayerInBusiness(playerid);
-
- if(BusinessData[bizid][businessOwnerSQL] != PlayerData[playerid][pSQLID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this business.");
-
- ShowBusinessEmployees(playerid, bizid);
- return true;
- }
- CMD:hire(playerid, params[])
- {
- if(CountPlayerBusinesses(playerid) == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own a business.");
-
- if(!IsPlayerInBusiness(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in your business.");
-
- new
- bizid = IsPlayerInBusiness(playerid),
- playerb;
-
- if(BusinessData[bizid][businessOwnerSQL] != PlayerData[playerid][pSQLID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this business.");
-
- if(!isnull(params) && !strcmp(params, "cancel"))
- {
- if(OfferedHireTo[playerid] == INVALID_PLAYER_ID)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You haven't made an offer to anyone.");
-
- Message(OfferedHireTo[playerid], COLOR_ADM, "SERVER: %s cancelled their offer for you.", ReturnName(playerid));
- Message(playerid, COLOR_ADM, "SERVER: You cancelled your offer to %s.", ReturnName(OfferedHireTo[playerid]));
-
- OfferedHireBy[OfferedHireTo[playerid]] = INVALID_PLAYER_ID;
- OfferedHireTo[playerid] = INVALID_PLAYER_ID;
- OfferedHireBusinessID[playerid] = 0;
- return 1;
- }
-
- if(OfferedHireTo[playerid] != INVALID_PLAYER_ID)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You have a pending offer. Wait for them to accept or cancel.");
-
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /hire [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid player.");
-
- if(!GetDistanceBetweenPlayers(playerid, playerb, 5.0))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't near that player.");
-
- if(OfferedHireBy[playerb] != INVALID_PLAYER_ID)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: This player already has an offer.");
-
- Message(playerid, COLOR_ADM, "You offered %s to work for %s.", ReturnName(playerb, 0), BusinessData[bizid][businessName]);
- SendClientMessage(playerid, COLOR_ADM, "Use /hire cancel to disregard the offer.");
-
- Message(playerb, COLOR_ADM, "%s offered you a job at %s. Use /hireaccept YES to work there or /hireaccept NO.", ReturnName(playerid, 0), BusinessData[bizid][businessName]);
-
- OfferedHireBusinessID[playerid] = BusinessData[bizid][businessID];
-
- OfferedHireBy[playerb] = playerid;
- OfferedHireTo[playerid] = playerb;
- return 1;
- }
- CMD:hireaccept(playerid, params[])
- {
- if(OfferedHireBy[playerid] == INVALID_PLAYER_ID)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: Nobody offered you a job.");
-
- if(!strcmp(params, "yes", true))
- {
-
- Message(playerid, COLOR_ADM, "You accepted %s's offer and are now working at their business!", ReturnName(OfferedHireBy[playerid]));
- Message(OfferedHireBy[playerid], COLOR_ADM, "%s accepted your job offer.", ReturnName(playerid));
-
- PlayerData[playerid][pWorkOn] = OfferedHireBusinessID[OfferedHireBy[playerid]];
-
- OfferedHireTo[OfferedHireBy[playerid]] = INVALID_PLAYER_ID;
- OfferedHireBusinessID[OfferedHireBy[playerid]] = 0;
- OfferedHireBy[playerid] = INVALID_PLAYER_ID;
- }
- else if(!strcmp(params, "no", true))
- {
- Message(playerid, COLOR_ADM, "You declined %s's offer.", ReturnName(OfferedHireBy[playerid]));
- Message(OfferedHireBy[playerid], COLOR_ADM, "%s declined your job offer.", ReturnName(playerid));
-
- OfferedHireTo[OfferedHireBy[playerid]] = INVALID_PLAYER_ID;
- OfferedHireBusinessID[OfferedHireBy[playerid]] = 0;
- OfferedHireBy[playerid] = INVALID_PLAYER_ID;
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: It's either a YES or a NO.");
- return 1;
- }
- CMD:quitwork(playerid, params[])
- {
- if(!PlayerData[playerid][pWorkOn])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't hired by any business.");
-
- Message(playerid, COLOR_ADM, "You quit your job at %s.", BusinessData[PlayerData[playerid][pWorkOn]][businessName]);
-
- PlayerData[playerid][pWorkOn] = 0;
- SavePlayer(playerid);
- return 1;
- }
- CMD:fire(playerid, params[])
- {
- if(CountPlayerBusinesses(playerid) == 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own a business.");
- if(!IsPlayerInBusiness(playerid))return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in your business.");
-
- new bizid = IsPlayerInBusiness(playerid),
- playerb;
-
- if(BusinessData[bizid][businessOwnerSQL] != PlayerData[playerid][pSQLID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this business.");
-
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /fire [playerid/PartofName]");
-
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid player.");
-
- if(!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: That player isn't logged in.");
-
- if(PlayerData[playerb][pWorkOn] != BusinessData[bizid][businessID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: That player isn't one of your workers.");
-
- PlayerData[playerb][pWorkOn] = 0;
- SavePlayer(playerb);
-
- Message(playerb, COLOR_ADM, "%s fired you from their business.", ReturnName(playerid));
- Message(playerid, COLOR_ADM, "You fired %s.", ReturnName(playerb));
- return 1;
- }
- //Property Commands
- CMD:buyhouse(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(CountPlayerHouses(playerid) == 3)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You own maximum amount of houses.");
- new string[128], propertyID = 0;
- for(new i = 0; i < MAX_PROPERTY; i++){
- if(PropertyData[i][propertyid] != 0){
- if(IsPlayerInRangeOfPoint(playerid, 3.0, PropertyData[i][propertyExterior][0], PropertyData[i][propertyExterior][1], PropertyData[i][propertyExterior][2])){
- if(GetPlayerInterior(playerid) == PropertyData[i][propertyExteriorID] && GetPlayerVirtualWorld(playerid) == PropertyData[i][propertyExteriorWorld]){
- propertyID = i;
- }
- }
- }
- }
- if(propertyID == 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't near any properties.");
- if(PropertyData[propertyID][propertyOwnerSQL] != 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't buy property that's already owned.");
- if(PlayerData[playerid][pMoney] < PropertyData[propertyID][propertyMarketPrice]){
- format(string, sizeof(string), "Insufficient amount. This house cost $%s. Please arrange a sufficient payment.", MoneyFormat(PropertyData[propertyID][propertyMarketPrice]));
- SendClientMessage(playerid, COLOR_ADM, string);
- return true;
- }
- if(PlayerData[playerid][pLevel] < PropertyData[propertyID][propertyLevel])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't the level required for this property.");
- GiveMoney(playerid, -PropertyData[propertyID][propertyMarketPrice]);
- PropertyData[propertyID][propertyOwnerSQL] = PlayerData[playerid][pSQLID];
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- GameTextForPlayer(playerid, "Congratulations!~n~You're now the owner of this property!", 4000, 5);
-
- DestroyDynamic3DTextLabel(PropertyData[propertyID][ForSaleSign]);
- SaveSQLInt(PropertyData[propertyID][propertyid], "properties", "OwnerSQL", PropertyData[propertyID][propertyOwnerSQL]);
- WriteLog("property_logs/buyproperty_log.txt", "[%s] %s bought Property ID %i for $%s", ReturnDate(), ReturnName(playerid), propertyID, MoneyFormat(PropertyData[propertyID][propertyMarketPrice]));
- return true;
- }
- CMD:sellhouse(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(CountPlayerHouses(playerid) == 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own a house.");
- new string[128], confirm[60];
- if(sscanf(params, "s[60]", confirm))return SendClientMessage(playerid, COLOR_ADM, "SERVER:{FFFFFF} You're about to sell your house. Type /sellhouse confirm to confirm. ");
- if(strmatch(confirm, "confirm")){
- for(new i = 0; i < MAX_PROPERTY; i++){
- if(PropertyData[i][propertyid] != 0){
- if(IsPlayerInRangeOfPoint(playerid, 4.0, PropertyData[i][propertyExterior][0], PropertyData[i][propertyExterior][1], PropertyData[i][propertyExterior][2]))
- {
- if(PropertyData[i][propertyOwnerSQL] != PlayerData[playerid][pSQLID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this house.");
- PropertyData[i][propertyOwnerSQL] = 0;
- SaveSQLInt(PropertyData[i][propertyid], "properties", "OwnerSQL", 0);
-
- DestroyDynamic3DTextLabel(PropertyData[i][ForSaleSign]);
-
- if(PropertyData[i][propertyType] == 1){
- format(string, sizeof(string), "Complex[%d] For Sale:\nPrice: $%d\nLevel: %d", i, PropertyData[i][propertyMarketPrice], PropertyData[i][propertyLevel]);
- PropertyData[i][ForSaleSign] = CreateDynamic3DTextLabel(string, COLOR_TEXTDRAW, PropertyData[i][propertyExterior][0], PropertyData[i][propertyExterior][1], PropertyData[i][propertyExterior][2], 15.0);
- }
- else if(PropertyData[i][propertyType] == 2){
- format(string, sizeof(string), "Apartment[%d] For Sale:\nPrice: $%d\nLevel: %d", i, PropertyData[i][propertyMarketPrice], PropertyData[i][propertyLevel]);
- PropertyData[i][ForSaleSign] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, PropertyData[i][propertyExterior][0], PropertyData[i][propertyExterior][1], PropertyData[i][propertyExterior][2], 20.0, .worldid = PropertyData[i][propertyExteriorWorld]);
- }
- else if(PropertyData[i][propertyType] == 3){
- format(string, sizeof(string), "House[%d] For Sale:\nPrice: $%d\nLevel: %d", i, PropertyData[i][propertyMarketPrice], PropertyData[i][propertyLevel]);
- PropertyData[i][ForSaleSign] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, PropertyData[i][propertyExterior][0], PropertyData[i][propertyExterior][1], PropertyData[i][propertyExterior][2], 15.0);
- }
-
- PlayerData[playerid][pSpawnSelect] = 0;
- GameTextForPlayer(playerid, "You sold your property!", 3000, 5);
- format(string, sizeof(string), "SERVER:You sold your house. You were paid $%s of the market price.", MoneyFormat(PropertyData[i][propertyMarketPrice] / 2));
- SendClientMessage(playerid, COLOR_ADM, string);
- GiveMoney(playerid, PropertyData[i][propertyMarketPrice] / 2);
-
- WriteLog("property_logs/sellproperty_log.txt", "[%s] %s sold Property ID %i for $%s", ReturnDate(), ReturnName(playerid), i, MoneyFormat(PropertyData[i][propertyMarketPrice] / 2));
- SavePlayer(playerid);
- return true;
- }
- }
- }
- }
- SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't near a house.");
- return true;
- }
- CMD:home(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- if(CountPlayerHouses(playerid) == 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own any houses.");
- for(new i = 0; i < MAX_PROPERTY; i++)
- {
- if(PropertyData[i][propertyid] != 0){
- if(PropertyData[i][propertyOwnerSQL] == PlayerData[playerid][pSQLID]){
- SetPlayerCheckpoint(playerid, PropertyData[i][propertyExterior][0], PropertyData[i][propertyExterior][1], PropertyData[i][propertyExterior][2], 3.0);
- GameTextForPlayer(playerid, "~r~Waypoint ~y~set to your home!", 4000, 4);
- }
- }
- }
- return true;
- }
- CMD:cmdspot(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new hid = IsPlayerInProperty(playerid);
- if(hid == 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't do this right now.");
- if (PropertyData[hid][propertyOwnerSQL] != PlayerData[playerid][pSQLID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this house.");
- GetPlayerPos(playerid, Resources[playerid][CmdSpot][0], Resources[playerid][CmdSpot][1], Resources[playerid][CmdSpot][2]);
- PropertyData[hid][propertyCheckPos][0] = Resources[playerid][CmdSpot][0];
- PropertyData[hid][propertyCheckPos][1] = Resources[playerid][CmdSpot][1];
- PropertyData[hid][propertyCheckPos][2] = Resources[playerid][CmdSpot][2];
-
- SaveSQLFloat(PropertyData[hid][propertyid], "properties", "CheckPosX", Resources[playerid][CmdSpot][0]);
- SaveSQLFloat(PropertyData[hid][propertyid], "properties", "CheckPosY", Resources[playerid][CmdSpot][1]);
- SaveSQLFloat(PropertyData[hid][propertyid], "properties", "CheckPosZ", Resources[playerid][CmdSpot][2]);
- SendClientMessage(playerid, COLOR_WHITE, "You've set a new spot to perform certain commands at.");
- SendClientMessage(playerid, COLOR_WHITE, "/takegun, /place");
- return true;
- }
- CMD:check(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new string[2000], hid = IsPlayerInProperty(playerid);
- string[0] = 0;
- if(IsPlayerInAnyVehicle(playerid))
- {
- new vehicleid = GetPlayerVehicleID(playerid);
-
- if(!IsValidFactionCar(vehicleid) && !IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: This command can only be used for private vehicles. You are in a public static vehicle.");
-
- if(IsValidPlayerCar(vehicleid))
- {
- for(new i = 1; i < 5; i++)
- {
- if(!CarData[vehicleid][carWeapons][i])
- format(string, sizeof(string), "%s%d. [Empty]\n", string, i);
- else
- format(string, sizeof(string), "%s%d. %s[Ammo: %d]\n", string, i, ReturnWeaponName(CarData[vehicleid][carWeapons][i]), CarData[vehicleid][carWeaponsAmmo][i]);
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_LIST, "Trunk", string, ">>>", "");
- }
- }
- else if(IsValidFactionCar(vehicleid))
- {
- if(FactionCar[vehicleid][carFaction] > 0 && FactionCar[vehicleid][carFaction] == PlayerData[playerid][pFaction] && FactionCar[vehicleid][carGunRack])
- {
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_LIST, "Trunk", "1. Shotgun[Ammo: 100]\n2. MP5[Ammo:200]\n3. M4[Ammo:200]\n4. SPAZ[Ammo:100]\n5. Sniper[Ammo:50]\n6. Camera\n7. Pepperspray", "Ok", "");
- }
- }
- }
- if(hid && IsPlayerInRangeOfPoint(playerid, 3.0, PropertyData[hid][propertyCheckPos][0], PropertyData[hid][propertyCheckPos][1], PropertyData[hid][propertyCheckPos][2])){
- for(new i = 0; i < 21; i ++)
- {
- if(!PropertyData[hid][propertyWeapons][i])
- format(string, sizeof(string), "%s%d. [Empty]\n", string, i);
- else
- format(string, sizeof(string), "%s%d. %s[Ammo:%d]\n", string, i, ReturnWeaponName(PropertyData[hid][propertyWeapons][i]), PropertyData[hid][propertyAmmo][i]);
- }
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_LIST, "House Weapon Storage(Capacity of 20)", string, ">>>", "");
- }
- return true;
- }
- CMD:checkdrugs(playerid, params[])
- {
- new id;
-
- if( (id = IsPlayerInProperty(playerid)) != 0)
- {
- new nearest_id = -1;
- for (new i = 0; i < 10; i++) if (HousePackages[id][i][packageType] != -1)
- {
- if (IsPlayerInRangeOfPoint(playerid, 2.5, HousePackages[id][i][packagePos][0], HousePackages[id][i][packagePos][1], HousePackages[id][i][packagePos][2])) {
- nearest_id = i;
- }
- }
- if (nearest_id == -1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You are not near a drug package.");
-
- new string[128], Float:total;
-
- for (new i = 0; i < 20; i++) {
- total += PackageDrugs[id][nearest_id][i][drugQuantity];
- }
- format(string, sizeof(string), "%s (%.1fg / %.1fg):", GetPackageName(HousePackages[id][nearest_id][packageType]), total, GetHousePackageCapacity(HousePackages[id][nearest_id][packageType]));
- SendClientMessage(playerid, COLOR_ADM, string);
-
- for (new i = 0; i < 20; i++) if (PackageDrugs[id][nearest_id][i][drugQuantity] > 0)
- {
- format(string, sizeof(string), "[{FFFFFF} %d. %s (%s: %.1f%s/%.1f%s) {FF6347}]",
- i, GetPackageType(PackageDrugs[id][nearest_id][i][drugPackage]), ReturnDrugsName(PackageDrugs[id][nearest_id][i][drugType]), PackageDrugs[id][nearest_id][i][drugQuantity], (IsPill(PackageDrugs[id][nearest_id][i][drugType]) == 1) ? (" Pills") : ("g"),
- GetPackageCapacity(PackageDrugs[id][nearest_id][i][drugPackage], PackageDrugs[id][nearest_id][i][drugType]), (IsPill(PackageDrugs[id][nearest_id][i][drugType]) == 1) ? (" Pills") : ("g"));
- SendClientMessage(playerid, COLOR_ADM, string);
- }
- }
- else SendClientMessage(playerid, COLOR_ADM, "You aren't inside a house.");
- return 1;
- }
- CMD:buildpackage(playerid, params[])
- {
- new id;
-
- if( (id = IsPlayerInProperty(playerid)) != 0)
- {
- new package_id, object;
- if (sscanf(params, "dd", package_id, object))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /buildpackage [player_package_id] [object]");
- SendClientMessage(playerid, COLOR_ADM, "OBJECTS: 0 - Cluckin' Bell Burger Box 1 - Burgershot Cup 2 - Cok'O'Pops 3 - Shoe Box 4 - Milk Carton 5 - Wrapped Package 6 - Pizza Box");
- SendClientMessage(playerid, COLOR_ADM, "7 - Cardboard Box 8 - Cigarette Pack");
- return 1;
- }
- if (package_id < 0 || package_id > 9 || DrugData[playerid][package_id][drugQuantity] == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a package in that slot.");
-
- if (object < 0 || object > 8)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Invalid object ID specified.");
-
- if (DrugData[playerid][package_id][drugQuantity] > GetHousePackageCapacity(object))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Specified package doesn't fit in the object.");
- for (new i = 0; i < 10; i++)
- {
- printf("%d", HousePackages[id][i][packageType]);
-
- if (HousePackages[id][i][packageType] == -1)
- {
- new Float:x, Float:y, Float:z, string[256];
- GetPlayerPos(playerid, x, y, z);
- HousePackages[id][i][packageType] = object;
- HousePackages[id][i][packagePos][0] = x;
- HousePackages[id][i][packagePos][1] = y;
- HousePackages[id][i][packagePos][2] = z;
- mysql_format(m_Handle, string, sizeof(string), "INSERT INTO house_packages (housesqlid, type, posX, posY, posZ, rotX, rotY, royZ) VALUES (%d, %d, %.3f, %.3f, %.3f, 0.0, 0.0, 0.0)", PropertyData[id][propertyid], object, x, y, z);
- mysql_tquery(m_Handle, string);
- PackageDrugs[id][i][0][drugPackage] = DrugData[playerid][package_id][drugPackage];
- PackageDrugs[id][i][0][drugType] = DrugData[playerid][package_id][drugType];
- PackageDrugs[id][i][0][drugQuantity] = DrugData[playerid][package_id][drugQuantity];
- PackageDrugs[id][i][0][drugStrength] = DrugData[playerid][package_id][drugStrength];
- mysql_format(m_Handle, string, sizeof(string), "INSERT INTO house_packages_drugs (housesqlid, packageid, type, package, quantity, strength) VALUES (%d, 0, %d, %d, %.1f, %d)", PropertyData[id][propertyid], i, PackageDrugs[id][i][0][drugPackage],
- PackageDrugs[id][i][0][drugType], PackageDrugs[id][i][0][drugQuantity], PackageDrugs[id][i][0][drugStrength]);
- mysql_tquery(m_Handle, string);
-
- format(string, sizeof(string), "[ ! ]{FFFFFF} You have put a{FF6347} %s{FFFFFF} in a {FF6347}%s.", GetPackageType(DrugData[playerid][package_id][drugPackage]), GetPackageName(object));
- SendClientMessage(playerid, COLOR_ADM, string),
- SendClientMessage(playerid, COLOR_ADM, "HINT:{FFFFFF} Use /adjustpackage to reposition the package.");
- SendClientMessage(playerid, COLOR_ADM, "WARNING: The placement of drug packages is actively logged and monitored. Any misuse of this feature will result");
- SendClientMessage(playerid, COLOR_ADM, "in a server ban.");
-
- HousePackages[id][i][packageObject] = CreateDynamicObject(GetPackageModel(HousePackages[id][i][packageType]), HousePackages[id][i][packagePos][0], HousePackages[id][i][packagePos][1], HousePackages[id][i][packagePos][2],
- HousePackages[id][i][packagePos][3], HousePackages[id][i][packagePos][4], HousePackages[id][i][packagePos][5], PropertyData[id][propertyInteriorWorld], PropertyData[id][propertyInteriorID]);
-
- RemoveDrugPackage(playerid, package_id);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} This house can't hold any more drug packages.");
- }
- else SendClientMessage(playerid, COLOR_ADM, "You aren't inside a house.");
- return 1;
- }
- CMD:adjustpackage(playerid, params[])
- {
- if (PlayerData[playerid][pAdjustPackage] != -1)
- return SendClientMessage(playerid, COLOR_ADM, "You are already adjusting a package.");
-
- if(PlayerData[playerid][pEditingFurniture] && PlayerData[playerid][pEditingDuplicate])
- return SendClientMessage(playerid, COLOR_ADM, "You are adjusting furniture at the moment.");
-
- new id;
-
- if( (id = IsPlayerInProperty(playerid)) != 0)
- {
- new nearest_id = -1;
- for (new i = 0; i < 10; i++) if (HousePackages[id][i][packageType] != -1)
- {
- if (IsPlayerInRangeOfPoint(playerid, 2.5, HousePackages[id][i][packagePos][0], HousePackages[id][i][packagePos][1], HousePackages[id][i][packagePos][2])) {
- nearest_id = i;
- }
- }
- if (nearest_id == -1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You are not near a drug package.");
-
- PlayerData[playerid][pAdjustPackage] = nearest_id;
- EditDynamicObject(playerid, HousePackages[id][nearest_id][packageObject]);
- }
- else SendClientMessage(playerid, COLOR_ADM, "You aren't inside a house.");
- return 1;
- }
- CMD:place(playerid, params[])
- {
- new
- string[128],
- id,
- slot_id,
- weapon_id,
- ammo
- ;
-
- if((id = IsPlayerInProperty(playerid)) != 0)
- {
- if(!IsPlayerInRangeOfPoint(playerid, 4.0, PropertyData[id][propertyCheckPos][0], PropertyData[id][propertyCheckPos][1], PropertyData[id][propertyCheckPos][2]))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't near the command spot.");
-
- if(GetPlayerWeapon(playerid) == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't holding your weapon.");
-
- weapon_id = ReturnWeapon(playerid);
- if(weapon_id == -1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't holding a weapon.");
-
- ammo = ReturnWeaponAmmo(playerid, weapon_id);
- slot_id = House_ReturnWeaponSlot(id);
-
- PropertyData[id][propertyWeapons][slot_id] = weapon_id;
- PropertyData[id][propertyAmmo][slot_id] = ammo;
-
- TakePlayerWeapon(playerid, weapon_id);
- SaveProperty(id);
-
- format(string, sizeof(string), "* %s stores a %s in the house.", ReturnName(playerid, 0), ReturnWeaponName(weapon_id));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 25.0, 3000);
- SendClientMessage(playerid, COLOR_EMOTE, string);
-
- WriteLog("weapon_logs/property_place.txt", "[%s] %s (DBID: %i) placed %s (Ammo: %i) in Property %i", ReturnDate(), ReturnName(playerid), PlayerData[playerid][pSQLID], ReturnWeaponName(weapon_id), ammo, id);
- return 1;
- }
-
- if(IsPlayerInAnyVehicle(playerid))
- {
- id = GetPlayerVehicleID(playerid);
-
- if(!IsValidFactionCar(id) && !IsValidPlayerCar(id))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: This command can only be used for private vehicles. You are in a public static vehicle.");
-
- if(IsValidPlayerCar(id))
- {
- if(sscanf(params, "i", weapon_id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /place [weapon id]");
-
- if(!PlayerHasWeapon(playerid, weapon_id))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't have that weapon.");
-
- slot_id = Car_ReturnWeaponSlot(id);
-
- if(slot_id == -1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: This vehicle is at full capacity.");
-
- ammo = ReturnWeaponAmmo(playerid, weapon_id);
-
- if(SlotBeingUsed[id][slot_id])
- return SendClientMessage(playerid, COLOR_ADM, "You can't place your weapon there right now.");
-
- PlayerPlacingWeapon[playerid] = 1;
- PlayerPlacingWeaponSlot[playerid] = slot_id;
-
- PlayerPlacingWeaponID[playerid] = weapon_id;
- PlayerPlacingWeaponAmmo[playerid] = ammo;
-
- SlotBeingUsed[id][slot_id] = 1;
- PlayerPlacingInVehicle[playerid] = id;
-
- new
- Float:x[3];
- GetPlayerPos(playerid, x[0], x[1], x[2]);
-
- CarData[id][carWeaponObject][slot_id] = CreateDynamicObject(ReturnWeaponsModel(weapon_id), x[0], x[1], x[2], 80.0, 0.0, 0.0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
- EditDynamicObject(playerid, CarData[id][carWeaponObject][slot_id]);
-
- SendClientMessage(playerid, COLOR_ADM, "INFO: Hold {FFFFFF}W{FF6347} or {FFFFFF}SPACE{FF6347} to move your camera.");
- Message(playerid, COLOR_YELLOW, "You're storing a %s with %i Ammo.", ReturnWeaponName(weapon_id), ammo);
-
- RemovePlayerWeapon(playerid, weapon_id);
-
- /*CarData[id][carWeapons][slot_id] = weapon_id;
- CarData[id][carWeaponsAmmo][slot_id] = ammo;
-
- TakePlayerWeapon(playerid, weapon_id);
- SaveCar(id);
-
- format(string, sizeof(string), "* %s stores a %s in the %s.", ReturnName(playerid, 0), ReturnWeaponName(weapon_id), ReturnVehicleName(id));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 20.0, 2000);
-
- format(string, sizeof(string), "[ ! ] You have stored a %s in the %s.", ReturnWeaponName(weapon_id), ReturnVehicleName(id));
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- format(string, sizeof(string), "%s put a %s[%d] (slot %d)", ReturnName(playerid), ReturnWeaponName(weapon_id), ammo, slot_id);
- LogVehicleAction(id, string);
-
- WriteLog("weapon_logs/vehicle_place.txt", "[%s] %s (DBID: %i) placed %s (Ammo: %i) in Vehicle DBID %i", ReturnDate(), ReturnName(playerid), PlayerData[playerid][pSQLID], ReturnWeaponName(weapon_id), ammo, CarData[id][carID]);*/
- return 1;
- }
-
- if(IsValidFactionCar(id) && FactionData[FactionCar[id][carFaction]][factionCopPerms])
- {
- if(sscanf(params, "i", weapon_id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /place [weapon id]");
-
- if(weapon_id != 25 && weapon_id != 29 && weapon_id != 27 && weapon_id != 31 && weapon_id != 34 && weapon_id != 41 && weapon_id != 43)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You can't put that in this car.");
-
- switch(weapon_id)
- {
- case 25:
- {
- if(!PlayerHasWeapon(playerid, 25) && !IsSaveableWeapon(playerid, 25))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't have this weapon.");
-
- TakePlayerWeapon(playerid, 25);
- format(string, sizeof(string), "* %s places their Shotgun in the %s.", ReturnName(playerid, 0), ReturnVehicleName(id));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 25.0, 3000);
- SendClientMessage(playerid, COLOR_EMOTE, string);
- }
- case 29:
- {
- if(!PlayerHasWeapon(playerid, 29) && !IsSaveableWeapon(playerid, 29))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't have this weapon.");
-
- TakePlayerWeapon(playerid, 29);
- format(string, sizeof(string), "* %s places their MP5 in the %s.", ReturnName(playerid, 0), ReturnVehicleName(id));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 25.0, 3000);
- SendClientMessage(playerid, COLOR_EMOTE, string);
- }
- case 31:
- {
- if(!PlayerHasWeapon(playerid, 31) && !IsSaveableWeapon(playerid, 31))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't have this weapon.");
-
- TakePlayerWeapon(playerid, 31);
- format(string, sizeof(string), "* %s places their M4 in the %s.", ReturnName(playerid, 0), ReturnVehicleName(id));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 25.0, 3000);
- SendClientMessage(playerid, COLOR_EMOTE, string);
- }
- case 34:
- {
- if(!PlayerHasWeapon(playerid, 34) && !IsSaveableWeapon(playerid, 34))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't have this weapon.");
-
- TakePlayerWeapon(playerid, 34);
- format(string, sizeof(string), "* %s places their Sniper Rifle in the %s.", ReturnName(playerid, 0), ReturnVehicleName(id));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 25.0, 3000);
- SendClientMessage(playerid, COLOR_EMOTE, string);
- }
- case 41:
- {
- if(!PlayerHasWeapon(playerid, 41) && !IsSaveableWeapon(playerid, 41))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't have this weapon.");
-
- TakePlayerWeapon(playerid, 41);
- format(string, sizeof(string), "* %s places their Spray Can in the %s.", ReturnName(playerid, 0), ReturnVehicleName(id));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 25.0, 3000);
- SendClientMessage(playerid, COLOR_EMOTE, string);
- }
- case 43:
- {
- if(!PlayerHasWeapon(playerid, 45) && !IsSaveableWeapon(playerid, 45))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't have this weapon.");
-
- TakePlayerWeapon(playerid, 45);
- format(string, sizeof(string), "* %s places their Camera in the %s.", ReturnName(playerid, 0), ReturnVehicleName(id));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 25.0, 3000);
- SendClientMessage(playerid, COLOR_EMOTE, string);
- }
- }
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_ADM, "SERVER: You can't place your weapon anywhere.");
- return 1;
- }
- CMD:takegun(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new string[128], hid = IsPlayerInProperty(playerid), slotid;
- if(IsPlayerInRangeOfPoint(playerid, 3.0, PropertyData[hid][propertyCheckPos][0], PropertyData[hid][propertyCheckPos][1], PropertyData[hid][propertyCheckPos][2]))
- {
- if(sscanf(params, "d", slotid))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /takegun slot_id");
- if(!PropertyData[hid][propertyWeapons][slotid])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} There's nothing in that slot.");
- if(slotid < 0 || slotid > 20)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That slot doesn't exist.");
- GivePlayerGun(playerid, PropertyData[hid][propertyWeapons][slotid], PropertyData[hid][propertyAmmo][slotid], WEAPON_UNKNOWN_GIVEN);
- format(string, sizeof(string), "* %s takes a %s from the house.", ReturnName(playerid, 0), ReturnWeaponName(PropertyData[hid][propertyWeapons][slotid]));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 25.0, 3000);
- SendClientMessage(playerid, COLOR_EMOTE, string);
-
- WriteLog("weapon_logs/property_take.txt", "[%s] %s took %s (Ammo: %d) from Property DBID %d", ReturnDate(), ReturnName(playerid, 1), ReturnWeaponName(PropertyData[hid][propertyWeapons][slotid]),
- PropertyData[hid][propertyAmmo][slotid], hid);
- PropertyData[hid][propertyWeapons][slotid] = 0;
- PropertyData[hid][propertyAmmo][slotid] = 0;
- SaveProperty(hid);
- return true;
- }
- if(IsPlayerInAnyVehicle(playerid)) {
-
- new vehicleid = GetPlayerVehicleID(playerid), w_slot_id;
-
- if(!IsValidFactionCar(vehicleid) && !IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: This command can only be used for private vehicles. You are in a public static vehicle.");
-
- if ( IsValidPlayerCar(vehicleid) ) {
- if(sscanf(params, "d", w_slot_id)) return SendClientMessage(playerid, COLOR_ADM, "USAGE: /takegun slot_id");
- if ( w_slot_id < 1 || w_slot_id > 4 ) return SendClientMessage(playerid, COLOR_ADM, "ERROR: That slot doesn't exist.");
- if ( !CarData[vehicleid][carWeapons][w_slot_id] ) return SendClientMessage(playerid, COLOR_ADM, "ERROR: There's nothing in that slot.");
-
- GivePlayerGun(playerid, CarData[vehicleid][carWeapons][w_slot_id], CarData[vehicleid][carWeaponsAmmo][w_slot_id], WEAPON_UNKNOWN_GIVEN);
-
- format(string, sizeof(string), "* %s takes a %s from the %s.", ReturnName(playerid, 0), ReturnWeaponName(CarData[vehicleid][carWeapons][w_slot_id]), ReturnVehicleName(vehicleid));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 25.0, 3000);
- SendClientMessage(playerid, COLOR_EMOTE, string);
-
- WriteLog("weapon_logs/vehicle_take.txt", "[%s] %s took %s (Ammo: %d) from %s (Vehicle DBID %d)", ReturnDate(), ReturnName(playerid, 1), ReturnWeaponName(CarData[vehicleid][carWeapons][w_slot_id]),
- CarData[vehicleid][carWeaponsAmmo][w_slot_id], ReturnVehicleName(vehicleid), CarData[vehicleid][carID]);
-
- format(string, sizeof(string), "%s took a %s[%d] (slot %d)", ReturnName(playerid), ReturnWeaponName(CarData[vehicleid][carWeapons][w_slot_id]), CarData[vehicleid][carWeaponsAmmo][w_slot_id], w_slot_id);
- LogVehicleAction(vehicleid, string);
-
- if(IsValidDynamicObject(CarData[vehicleid][carWeaponObject][w_slot_id]))
- DestroyDynamicObject(CarData[vehicleid][carWeaponObject][w_slot_id]);
-
- CarData[vehicleid][carWeapons][w_slot_id] = 0;
- CarData[vehicleid][carWeaponsAmmo][w_slot_id] = 0;
-
- SaveCar(vehicleid);
- return true;
- }
- else if( IsValidFactionCar(vehicleid) ) {
- if(FactionCar[vehicleid][carFaction] != PlayerData[playerid][pFaction])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You don't have the keys to this vehicle.");
-
- if(FactionCar[vehicleid][carGunRack]) {
-
- if(sscanf(params, "d", w_slot_id)) return SendClientMessage(playerid, COLOR_WHITE, "/takegun slot_id (ID List in /check.)");
- if ( w_slot_id < 0 || w_slot_id > 7 ) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That slot ID does not exist.");
-
- switch ( w_slot_id ) {
- case 1: {
- GivePlayerGun(playerid, 25, 100, WEAPON_SERVER_GIVEN);
-
- format(string, sizeof(string), "* %s takes a Shotgun from the %s.", ReturnName(playerid, 0), ReturnVehicleName(vehicleid));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 25.0, 3000);
- SendClientMessage(playerid, COLOR_EMOTE, string);
- }
- case 2: {
- GivePlayerGun(playerid, 29, 200, WEAPON_SERVER_GIVEN);
-
- format(string, sizeof(string), "* %s takes a MP5 from the %s.", ReturnName(playerid, 0), ReturnVehicleName(vehicleid));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 25.0, 3000);
- SendClientMessage(playerid, COLOR_EMOTE, string);
- }
- case 3: {
- GivePlayerGun(playerid, 31, 200, WEAPON_SERVER_GIVEN);
-
- format(string, sizeof(string), "* %s takes a M4 from the %s.", ReturnName(playerid, 0), ReturnVehicleName(vehicleid));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 25.0, 3000);
- SendClientMessage(playerid, COLOR_EMOTE, string);
- }
- case 4: { return SendClientMessage(playerid, COLOR_ADM, "SERVER: This is not available right now. "); }
- case 5: {
- GivePlayerGun(playerid, 34, 200, WEAPON_SERVER_GIVEN);
-
- format(string, sizeof(string), "* %s takes a Sniper Rifle from the %s.", ReturnName(playerid, 0), ReturnVehicleName(vehicleid));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 25.0, 3000);
- SendClientMessage(playerid, COLOR_EMOTE, string);
- }
- case 6: {
- GivePlayerGun(playerid, 43, 100, WEAPON_SERVER_GIVEN);
-
- format(string, sizeof(string), "* %s takes a Camera from the %s.", ReturnName(playerid, 0), ReturnVehicleName(vehicleid));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 25.0, 3000);
- SendClientMessage(playerid, COLOR_EMOTE, string);
- }
- case 7: {
- GivePlayerGun(playerid, 41, 200, WEAPON_SERVER_GIVEN);
-
- format(string, sizeof(string), "* %s takes a Spray Can from the %s.", ReturnName(playerid, 0), ReturnVehicleName(vehicleid));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 25.0, 3000);
- SendClientMessage(playerid, COLOR_EMOTE, string);
- }
- }
-
- return true;
- }
- else {
- SendClientMessage(playerid, COLOR_ADM, "SERVER: Unavailable Feature.");
- return true;
- }
- }
- }
- SendClientMessage(playerid, COLOR_ADM, "SERVER: You can't do this right now.");
- return true;
- }
- CMD:myhouse(playerid, params[])
- {
- if( CountPlayerHouses(playerid) == 0 )
- return SendClientMessage(playerid, COLOR_ADM, "You don't own a house.");
-
- new prim_str[30], sub_str[30], thr_str[30];
- new id;
- if( !IsPlayerInProperty(playerid) )
- return SendClientMessage(playerid, COLOR_ADM, "You aren't inside a house.");
-
- id = IsPlayerInProperty(playerid);
-
- if( PropertyData[id][propertyOwnerSQL] != PlayerData[playerid][pSQLID] )
- return SendClientMessage(playerid, COLOR_ADM, "You don't own this house.");
-
- if( sscanf(params, "s[30]S()[30]S()[30]", prim_str, sub_str, thr_str) )
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /myhouse [info, cashbox]");
-
- if(!strcmp(prim_str, "info", true))
- {
- new garage_id;
- for(new i; i < MAX_PROPERTY_GARAGES; i++)
- {
- if(GarageData[i][garagePropertyID] == id)
- garage_id = i;
- }
-
- Message(playerid, COLOR_GREY, "Your House ID is: %i", id);
- Message(playerid, COLOR_GREY, "Garage ID:[%s] Market price:[$%s] Level:[%i]", (garage_id != 0) ? (MoneyFormat(garage_id)) : ("None"), MoneyFormat(PropertyData[id][propertyMarketPrice]), PropertyData[id][propertyLevel]);
- }
- else if(!strcmp(prim_str, "cashbox", true))
- {
- new ink[32], quantity;
-
- if(sscanf(sub_str, "s[32]", ink))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /myhouse cashbox [ take, put, info ]");
-
- if(!strcmp(ink, "take", true))
- {
- if(sscanf(thr_str, "i", quantity))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /myhouse cashbox take [quantity]");
-
- if( quantity < 1 || quantity > PropertyData[id][propertyMoney] )
- return SendClientMessage(playerid, COLOR_ADM, "You specified an invalid amount.");
-
- WriteLog("property_logs/cashboxtake_log.txt", "[%s] %s took $%s from Property %i's Cashbox. [Previous cashbox: $%i - Onhand now: $%i]", ReturnDateLog(), ReturnName(playerid), MoneyFormat(quantity), PropertyData[id][propertyid], (PropertyData[id][propertyMoney]-quantity), (PlayerData[playerid][pMoney]+quantity));
- Message(playerid, COLOR_GREY, "[%s] You took $%s from the $%s in your cashbox.", ReturnDateLog(), MoneyFormat(quantity), MoneyFormat(PropertyData[id][propertyMoney]));
-
- GiveMoney( playerid, quantity );
- PropertyData[id][propertyMoney]-= quantity;
-
- SaveSQLInt(PropertyData[id][propertyid], "properties", "Money", PropertyData[id][propertyMoney]);
- }
- else if(!strcmp(ink, "put", true))
- {
- if(sscanf(thr_str, "i", quantity))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /myhouse cashbox put [quantity]");
-
- if( quantity < 1 || quantity > PlayerData[playerid][pMoney] )
- return SendClientMessage(playerid, COLOR_ADM, "You specified an invalid amount.");
-
- WriteLog("property_logs/cashboxput_log.txt", "[%s] %s put $%s into Property %i's Cashbox. [Previous cashbox: $%i - Previous Onhand: $%i - Onhand now: $%i]", ReturnDateLog(), ReturnName(playerid), MoneyFormat(quantity), PropertyData[id][propertyid], PropertyData[id][propertyMoney], PlayerData[playerid][pMoney], (PlayerData[playerid][pMoney]-quantity));
- Message(playerid, COLOR_GREY, "[%s] You put $%s into the current $%s cashbox.", ReturnDateLog(), MoneyFormat(quantity), MoneyFormat(PropertyData[id][propertyMoney]));
-
- PropertyData[id][propertyMoney]+= quantity;
- GiveMoney( playerid, -quantity );
-
- SaveSQLInt(PropertyData[id][propertyid], "properties", "Money", PropertyData[id][propertyMoney]);
- }
- else if(!strcmp(ink, "info", true))
- {
- Message(playerid, COLOR_GREY, "As of %s, you have $%s in your cashbox.", ReturnDateLog(), MoneyFormat(PropertyData[id][propertyMoney]));
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- return 1;
- }
- CMD:setrentable(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new hid = IsPlayerInProperty(playerid);
- if(CountPlayerHouses(playerid) == 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own any houses.");
- if (!hid)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You need to be inside your house.");
- if(PropertyData[hid][propertyOwnerSQL] != PlayerData[playerid][pSQLID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this house.");
- if(PropertyData[hid][propertyRentable] == 0){
- PropertyData[hid][propertyRentable] = 1;
- SaveSQLInt(PropertyData[hid][propertyid], "properties", "Rentable", PropertyData[hid][propertyRentable]);
- SendClientMessage(playerid, COLOR_DARKGREEN, "Your house is now rentable. Use `/setrent` to set the rent.");
- }
- else{
- PropertyData[hid][propertyRentable] = 0;
- SaveSQLInt(PropertyData[hid][propertyid], "properties", "Rentable", PropertyData[hid][propertyRentable]);
- SendClientMessage(playerid, COLOR_DARKGREEN, "Your house is no longer rentable.");
- }
- return true;
- }
- CMD:setrent(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new string[128], rent, hid = IsPlayerInProperty(playerid);
- if(CountPlayerHouses(playerid) == 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own any houses.");
- if (!hid)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You need to be inside your house.");
- if(PropertyData[hid][propertyOwnerSQL] != PlayerData[playerid][pSQLID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this house.");
- if(sscanf(params, "d", rent))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /setrent [$1-$500]");
- if(rent < 0 || rent > 500)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} The rent must be at least $1 and not greater than $500.");
- PropertyData[hid][propertyRentPrice] = rent;
- SaveSQLInt(PropertyData[hid][propertyid], "properties", "RentPrice", PropertyData[hid][propertyRentPrice]);
- format(string, sizeof(string), "Your houses rent is now $%s.", MoneyFormat(rent));
- SendClientMessage(playerid, COLOR_ADM, string);
- WriteLog("property_logs/setrent_log.txt", "[%s] %s set their House DBID %i rent to $%s", ReturnDate(), ReturnName(playerid), hid, MoneyFormat(rent));
- return true;
- }
- CMD:rentroom(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new string[128];
- if(PlayerData[playerid][pRenting])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can only rent at one house.");
- for(new i = 0; i < MAX_PROPERTY; i++)
- {
- if(PropertyData[i][propertyid] != 0){
- if(IsPlayerInRangeOfPoint(playerid, 3.0, PropertyData[i][propertyExterior][0], PropertyData[i][propertyExterior][1], PropertyData[i][propertyExterior][2])){
- if(!PropertyData[i][propertyRentable])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} This house isn't rentable.");
- if(PropertyData[i][propertyOwnerSQL] == PlayerData[playerid][pSQLID])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't rent at your own home.");
- PlayerData[playerid][pRenting] = PropertyData[i][propertyid];
- GiveMoney(playerid, -PropertyData[i][propertyRentPrice]);
- SaveSQLInt(PlayerData[playerid][pSQLID], "players", "Renting", PlayerData[playerid][pRenting]);
- format(string, sizeof(string), "You're now renting at this house. Cost: $%s.", MoneyFormat(PropertyData[i][propertyRentPrice]));
- SendClientMessage(playerid, COLOR_ADM, string);
-
- WriteLog("property_logs/rentroom_log.txt", "[%s] %s is renting house ID %d", ReturnDate(), ReturnName(playerid, 1), i);
- return true;
- }
- }
- }
- SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You're not near a house.");
- return true;
- }
- CMD:unrentroom(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- if(!PlayerData[playerid][pRenting])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't renting anywhere.");
-
- PlayerData[playerid][pRenting] = false;
- cmd_setspawn(playerid, "1");
- return true;
- }
- CMD:tenants(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
-
- new hid = IsPlayerInProperty(playerid);
- if(CountPlayerHouses(playerid) == 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own any houses.");
- if (!hid)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You need to be inside your house.");
- if(PropertyData[hid][propertyOwnerSQL] != PlayerData[playerid][pSQLID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this house.");
- ShowTenantNames(playerid, hid);
- return true;
- }
- CMD:evictall(playerid, params[])
- {
- if(!pLoggedIn[playerid])return true;
- new hid = IsPlayerInProperty(playerid);
- if(CountPlayerHouses(playerid) == 0)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own any houses.");
- if (!hid)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You need to be inside your house.");
- if(PropertyData[hid][propertyOwnerSQL] != PlayerData[playerid][pSQLID])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this house.");
- new confirm[90];
- if(sscanf(params, "s[90]", confirm))return SendClientMessage(playerid, COLOR_ADM, "SERVER:{FFFFFF} Are you sure you want to evict all your tenants? Type /evictall `confirm` to continue.");
- if(strmatch(confirm, "confirm")){
- EvictAllTenants(playerid, hid);
- }
- return true;
- }
- CMD:knock(playerid, params[])
- {
- new
- string[128],
- idx;
-
- if(IsPlayerNearProperty(playerid))
- {
- idx = IsPlayerNearProperty(playerid);
-
- foreach(new i : Player)
- {
- if(IsPlayerInProperty(i) == idx)
- {
- format(string, sizeof(string), "* %s knocks on the door.", ReturnPlayerMask(playerid));
- SendClientMessage(i, COLOR_EMOTE, string);
- }
- }
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s knocks on the door.", ReturnPlayerMask(playerid));
- return 1;
- }
-
- if(IsPlayerNearBusiness(playerid))
- {
- idx = IsPlayerNearBusiness(playerid);
-
- foreach(new i : Player)
- {
- if(IsPlayerInBusiness(i) == idx)
- {
- format(string, sizeof(string), "* %s knocks on the door.", ReturnPlayerMask(playerid));
- SendClientMessage(i, COLOR_EMOTE, string);
- }
- }
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s knocks on the door.", ReturnPlayerMask(playerid));
- return 1;
- }
-
- SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near a door.");
- return 1;
- }
- CMD:ds(playerid, params[])
- {
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /ds [door shout text]");
-
- new
- string[128],
- idx;
-
- if(IsPlayerNearProperty(playerid))
- {
- idx = IsPlayerNearProperty(playerid);
-
- foreach(new i : Player)
- {
- if(IsPlayerInProperty(i) == idx)
- {
- if(strlen(params) > 90)
- {
- format(string, sizeof(string), "%s shouts (door): %.90s", ReturnPlayerMask(playerid), params);
- SendClientMessage(i, COLOR_GRAD1, string);
-
- format(string, sizeof(string), "%s shouts (door): ... %s", ReturnPlayerMask(playerid), params[90]);
- SendClientMessage(i, COLOR_GRAD1, string);
- }
- else
- {
- format(string, sizeof(string), "%s shouts (door): %s", ReturnPlayerMask(playerid), params);
- SendClientMessage(i, COLOR_GRAD1, string);
- }
- }
- }
-
- if(strlen(params) > 90)
- {
- SendNearbyMessage(playerid, 20.0, COLOR_GRAD1, "%s shouts (door): %.90s", ReturnPlayerMask(playerid), params);
- SendNearbyMessage(playerid, 20.0, COLOR_GRAD1, "%s shouts (door): ... %s", ReturnPlayerMask(playerid), params[90]);
- }
- else SendNearbyMessage(playerid, 20.0, COLOR_GRAD1, "%s shouts (door): %s", ReturnPlayerMask(playerid), params);
- return 1;
- }
-
- if(IsPlayerInProperty(playerid))
- {
- idx = IsPlayerInProperty(playerid);
-
- if(!IsPlayerInRangeOfPoint(playerid, 8.0, PropertyData[idx][propertyInterior][0], PropertyData[idx][propertyInterior][1], PropertyData[idx][propertyInterior][2]))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near the properties door.");
-
- foreach(new i : Player)
- {
- if(IsPlayerNearProperty(i) == idx)
- {
- if(strlen(params) > 90)
- {
- format(string, sizeof(string), "%s shouts (door): %.90s", ReturnPlayerMask(playerid), params);
- SendClientMessage(i, COLOR_GRAD1, string);
-
- format(string, sizeof(string), "%s shouts (door): ... %s", ReturnPlayerMask(playerid), params[90]);
- SendClientMessage(i, COLOR_GRAD1, string);
- }
- else
- {
- format(string, sizeof(string), "%s shouts (door): %s", ReturnPlayerMask(playerid), params);
- SendClientMessage(i, COLOR_GRAD1, string);
- }
- }
- }
-
- if(strlen(params) > 90)
- {
- SendNearbyMessage(playerid, 20.0, COLOR_GRAD1, "%s shouts (door): %.90s", ReturnPlayerMask(playerid), params);
- SendNearbyMessage(playerid, 20.0, COLOR_GRAD1, "%s shouts (door): ... %s", ReturnPlayerMask(playerid), params[90]);
- }
- else SendNearbyMessage(playerid, 20.0, COLOR_GRAD1, "%s shouts (door): %s", ReturnPlayerMask(playerid), params);
- return 1;
- }
-
- if(IsPlayerNearBusiness(playerid))
- {
- idx = IsPlayerNearBusiness(playerid);
-
- foreach(new i : Player)
- {
- if(IsPlayerInBusiness(i) == idx)
- {
- if(strlen(params) > 90)
- {
- format(string, sizeof(string), "%s shouts (door): %.90s", ReturnPlayerMask(playerid), params);
- SendClientMessage(i, COLOR_GRAD1, string);
-
- format(string, sizeof(string), "%s shouts (door): ... %s", ReturnPlayerMask(playerid), params[90]);
- SendClientMessage(i, COLOR_GRAD1, string);
- }
- else
- {
- format(string, sizeof(string), "%s shouts (door): %s", ReturnPlayerMask(playerid), params);
- SendClientMessage(i, COLOR_GRAD1, string);
- }
- }
- }
-
- if(strlen(params) > 90)
- {
- SendNearbyMessage(playerid, 20.0, COLOR_GRAD1, "%s shouts (door): %.90s", ReturnPlayerMask(playerid), params);
- SendNearbyMessage(playerid, 20.0, COLOR_GRAD1, "%s shouts (door): ... %s", ReturnPlayerMask(playerid), params[90]);
- }
- else SendNearbyMessage(playerid, 20.0, COLOR_GRAD1, "%s shouts (door): %s", ReturnPlayerMask(playerid), params);
- return 1;
- }
-
- if(IsPlayerInBusiness(playerid))
- {
- idx = IsPlayerInBusiness(playerid);
-
- if(!IsPlayerInRangeOfPoint(playerid, 8.0, BusinessData[idx][businessInt][0], BusinessData[idx][businessInt][1], BusinessData[idx][businessInt][2]))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near this business' door.");
-
- foreach(new i : Player)
- {
- if(IsPlayerNearBusiness(i) == idx)
- {
- if(strlen(params) > 90)
- {
- format(string, sizeof(string), "%s shouts (door): %.90s", ReturnPlayerMask(playerid), params);
- SendClientMessage(i, COLOR_GRAD1, string);
-
- format(string, sizeof(string), "%s shouts (door): ... %s", ReturnPlayerMask(playerid), params[90]);
- SendClientMessage(i, COLOR_GRAD1, string);
- }
- else
- {
- format(string, sizeof(string), "%s shouts (door): %s", ReturnPlayerMask(playerid), params);
- SendClientMessage(i, COLOR_GRAD1, string);
- }
- }
- }
-
- if(strlen(params) > 90)
- {
- SendNearbyMessage(playerid, 20.0, COLOR_GRAD1, "%s shouts (door): %.90s", ReturnPlayerMask(playerid), params);
- SendNearbyMessage(playerid, 20.0, COLOR_GRAD1, "%s shouts (door): ... %s", ReturnPlayerMask(playerid), params[90]);
- }
- else SendNearbyMessage(playerid, 20.0, COLOR_GRAD1, "%s shouts (door): %s", ReturnPlayerMask(playerid), params);
- return 1;
- }
-
- SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near a door.");
- return 1;
- }
- CMD:ddo(playerid, params[])
- {
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /ddo [door emote text]");
-
- new
- string[128],
- idx;
-
- if(IsPlayerNearProperty(playerid))
- {
- idx = IsPlayerNearProperty(playerid);
-
- foreach(new i : Player)
- {
- if(IsPlayerInProperty(i) == idx)
- {
- if(strlen(params) > 90)
- {
- format(string, sizeof(string), "* [Door] %.90s ...", params, ReturnPlayerMask(playerid));
- SendClientMessage(i, COLOR_EMOTE, string);
-
- format(string, sizeof(string), "* [Door] ... %s (( %s ))", params[90], ReturnPlayerMask(playerid));
- SendClientMessage(i, COLOR_EMOTE, string);
- }
- else
- {
- format(string, sizeof(string), "* [Door] %s (( %s ))", params, ReturnPlayerMask(playerid));
- SendClientMessage(i, COLOR_EMOTE, string);
- }
- }
- }
-
- if(strlen(params) > 90)
- {
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* [Door] %.90s ...", params, ReturnPlayerMask(playerid));
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* [Door] ... %s (( %s ))", params, ReturnPlayerMask(playerid));
- }
- else SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* [Door] %s (( %s ))", params, ReturnPlayerMask(playerid));
- return 1;
- }
-
- if(IsPlayerInProperty(playerid))
- {
- idx = IsPlayerInProperty(playerid);
-
- if(!IsPlayerInRangeOfPoint(playerid, 8.0, PropertyData[idx][propertyInterior][0], PropertyData[idx][propertyInterior][1], PropertyData[idx][propertyInterior][2]))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near the properties door.");
-
- foreach(new i : Player)
- {
- if(IsPlayerNearProperty(i) == idx)
- {
- if(strlen(params) > 90)
- {
- format(string, sizeof(string), "* [Door] %.90s ...", params, ReturnPlayerMask(playerid));
- SendClientMessage(i, COLOR_EMOTE, string);
-
- format(string, sizeof(string), "* [Door] ... %s (( %s ))", params[90], ReturnPlayerMask(playerid));
- SendClientMessage(i, COLOR_EMOTE, string);
- }
- else
- {
- format(string, sizeof(string), "* [Door] %s (( %s ))", params, ReturnPlayerMask(playerid));
- SendClientMessage(i, COLOR_EMOTE, string);
- }
- }
- }
-
- if(strlen(params) > 90)
- {
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* [Door] %.90s ...", params, ReturnPlayerMask(playerid));
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* [Door] ... %s (( %s ))", params, ReturnPlayerMask(playerid));
- }
- else SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* [Door] %s (( %s ))", params, ReturnPlayerMask(playerid));
- return 1;
- }
-
- if(IsPlayerNearBusiness(playerid))
- {
- idx = IsPlayerNearBusiness(playerid);
-
- foreach(new i : Player)
- {
- if(IsPlayerInBusiness(i) == idx)
- {
- if(strlen(params) > 90)
- {
- format(string, sizeof(string), "* [Door] %.90s ...", params, ReturnPlayerMask(playerid));
- SendClientMessage(i, COLOR_EMOTE, string);
-
- format(string, sizeof(string), "* [Door] ... %s (( %s ))", params[90], ReturnPlayerMask(playerid));
- SendClientMessage(i, COLOR_EMOTE, string);
- }
- else
- {
- format(string, sizeof(string), "* [Door] %s (( %s ))", params, ReturnPlayerMask(playerid));
- SendClientMessage(i, COLOR_EMOTE, string);
- }
- }
- }
-
- if(strlen(params) > 90)
- {
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* [Door] %.90s ...", params, ReturnPlayerMask(playerid));
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* [Door] ... %s (( %s ))", params, ReturnPlayerMask(playerid));
- }
- else SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* [Door] %s (( %s ))", params, ReturnPlayerMask(playerid));
- return 1;
- }
-
- if(IsPlayerInBusiness(playerid))
- {
- idx = IsPlayerInBusiness(playerid);
-
- if(!IsPlayerInRangeOfPoint(playerid, 8.0, BusinessData[idx][businessInt][0], BusinessData[idx][businessInt][1], BusinessData[idx][businessInt][2]))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near this business' door.");
-
- foreach(new i : Player)
- {
- if(IsPlayerNearBusiness(i) == idx)
- {
- if(strlen(params) > 90)
- {
- format(string, sizeof(string), "* [Door] %.90s ...", params, ReturnPlayerMask(playerid));
- SendClientMessage(i, COLOR_EMOTE, string);
-
- format(string, sizeof(string), "* [Door] ... %s (( %s ))", params[90], ReturnPlayerMask(playerid));
- SendClientMessage(i, COLOR_EMOTE, string);
- }
- else
- {
- format(string, sizeof(string), "* [Door] %s (( %s ))", params, ReturnPlayerMask(playerid));
- SendClientMessage(i, COLOR_EMOTE, string);
- }
- }
- }
-
- if(strlen(params) > 90)
- {
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* [Door] %.90s ...", params, ReturnPlayerMask(playerid));
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* [Door] ... %s (( %s ))", params, ReturnPlayerMask(playerid));
- }
- else SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* [Door] %s (( %s ))", params, ReturnPlayerMask(playerid));
- return 1;
- }
-
- SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near a door.");
- return true;
- }
- CMD:door(playerid, params[])
- {
- if (PlayerData[playerid][pBrutallyWounded])
- return SendClientMessage(playerid, COLOR_ADM, "You're dead right now.");
- if (IsPoliceFaction(playerid))
- {
- if (IsPlayerInRangeOfPoint(playerid, 2.0, 2577.50000, -1484.82642, -49.92000))
- {
- if (PDDoor[1] == 1)
- {
- SetDynamicObjectRot(PDDoor[0], 0.00000, 0.00000, -90.00000);
- PDDoor[1] = 0;
- }
- else
- {
- SetDynamicObjectRot(PDDoor[0], 0.00000, 0.00000, -180.00000);
- PDDoor[1] = 1;
- }
- return 1;
- }
- else if (IsPlayerInRangeOfPoint(playerid, 2.0, 2595.95532, -1487.13977, -49.92000))
- {
- if (PDDoor[3] == 1)
- {
- SetDynamicObjectRot(PDDoor[2], 0.00000, 0.00000, 180.00000);
- PDDoor[3] = 0;
- }
- else
- {
- SetDynamicObjectRot(PDDoor[2], 0.00000, 0.00000, 90.00000);
- PDDoor[3] = 1;
- }
- return 1;
- }
- else if (IsPlayerInRangeOfPoint(playerid, 2.5, 2571.82983, -1532.14771, -47.34000))
- {
- if (PDDoor[5] == 1)
- {
- PDDoor[4] = CreateDynamicObject(2930, 2571.82983, -1532.14771, -47.34000, 0.00000, 0.00000, 90.00000);
- PDDoor[5] = 0;
- }
- else
- {
- DestroyDynamicObject(PDDoor[4]);
- PDDoor[5] = 1;
- }
- return 1;
- }
- else if (IsPlayerInRangeOfPoint(playerid, 2.5, 2578.28296, -1496.61218, -47.34000))
- {
- if (PDDoor[7] == 1)
- {
- PDDoor[6] = CreateDynamicObject(2930, 2578.28296, -1496.61218, -47.34000, 0.00000, 0.00000, 90.00000);
- PDDoor[7] = 0;
- }
- else
- {
- DestroyDynamicObject(PDDoor[6]);
- PDDoor[7] = 1;
- }
- return 1;
- }
- else if (IsPlayerInRangeOfPoint(playerid, 2.5, 2587.85669, -1496.61206, -47.34000))
- {
- if (PDDoor[9] == 1)
- {
- PDDoor[8] = CreateDynamicObject(2930, 2587.85669, -1496.61206, -47.34000, 0.00000, 0.00000, 90.00000);
- PDDoor[9] = 0;
- }
- else
- {
- DestroyDynamicObject(PDDoor[8]);
- PDDoor[9] = 1;
- }
- return 1;
- }
- else if (IsPlayerInRangeOfPoint(playerid, 2.5, 2593.54297, -1497.40930, -47.34000))
- {
- if (PDDoor[11] == 1)
- {
- PDDoor[10] = CreateDynamicObject(2930, 2593.54297, -1497.40930, -47.34000, 0.00000, 0.00000, 0.00000);
- PDDoor[11] = 0;
- }
- else
- {
- DestroyDynamicObject(PDDoor[10]);
- PDDoor[11] = 1;
- }
- return 1;
- }
- else if (IsPlayerInRangeOfPoint(playerid, 2.5, 2580.86865, -1535.06982, -47.34000))
- {
- if (PDDoor[13] == 1)
- {
- PDDoor[12] = CreateDynamicObject(2930, 2580.86865, -1535.06982, -47.34000, 0.00000, 0.00000, 90.00000);
- PDDoor[13] = 0;
- }
- else
- {
- DestroyDynamicObject(PDDoor[12]);
- PDDoor[13] = 1;
- }
- return 1;
- }
- else if (IsPlayerInRangeOfPoint(playerid, 2.5, 2587.29785, -1535.08044, -47.34000))
- {
- if (PDDoor[15] == 1)
- {
- PDDoor[14] = CreateDynamicObject(2930, 2587.29785, -1535.08044, -47.34000, 0.00000, 0.00000, 90.00000);
- PDDoor[15] = 0;
- }
- else
- {
- DestroyDynamicObject(PDDoor[14]);
- PDDoor[15] = 1;
- }
- return 1;
- }
- }
- new bool:nearbyDoor = false, bool:nearbyFurniture = false, nearbyFurnitureID;
-
- for (new i = 0; i < MAX_FURNITURE; i++) {
- if (FurnitureData[i][furnitureExists])
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, FurnitureData[i][furniturePos][0], FurnitureData[i][furniturePos][1], FurnitureData[i][furniturePos][2]))
- {
- nearbyFurniture = true;
- nearbyFurnitureID = i;
- }
- }
- }
- if (nearbyFurniture == false)
- {
- return SendClientMessage(playerid, COLOR_ADM, "You aren't near any furniture.");
- }
- else
- {
- for (new i = 0; i < sizeof(g_aFurnitureData); i++)
- {
- if (FurnitureData[nearbyFurnitureID][furnituresModel] == g_aFurnitureData[i][furnitureModel])
- {
- if (g_aFurnitureData[i][furnitureCategory] == FURNITURE_CATEGORY_DOORS)
- {
- nearbyDoor = true;
- }
- }
- }
- }
- if (nearbyDoor == false)
- {
- return SendClientMessage(playerid, COLOR_ADM, "You aren't near a door.");
- }
- else
- {
- if (FurnitureData[nearbyFurnitureID][furnitureDoorLock])
- return SendClientMessage(playerid, COLOR_YELLOW, "Door is locked.");
-
- if (!FurnitureData[nearbyFurnitureID][furnitureDoorOpen])
- {
- FurnitureData[nearbyFurnitureID][furnitureDoorOpen] = true;
- SetDynamicObjectRot(FurnitureData[nearbyFurnitureID][furnitureObject], FurnitureData[nearbyFurnitureID][furnitureRot][0], FurnitureData[nearbyFurnitureID][furnitureRot][1], 90.0);
- }
- else
- {
- FurnitureData[nearbyFurnitureID][furnitureDoorOpen] = false;
- SetDynamicObjectRot(FurnitureData[nearbyFurnitureID][furnitureObject], FurnitureData[nearbyFurnitureID][furnitureRot][0], FurnitureData[nearbyFurnitureID][furnitureRot][1], FurnitureData[nearbyFurnitureID][furnitureRot][2]);
- }
-
- }
- return true;
- }
- CMD:furniture(playerid, params[])
- {
- if (PlayerData[playerid][pEditingFurniture] && PlayerData[playerid][pEditingDuplicate])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You can't do this while editing objects.");
-
- new property_id = IsPlayerInProperty(playerid), owner_id, count;
-
- foreach(new i : Player)
- {
- if(PlayerData[i][pSQLID] == PropertyData[property_id][propertyOwnerSQL])
- {
- owner_id = i;
- }
- }
-
- if(PropertyData[property_id][propertyOwnerSQL] == PlayerData[playerid][pSQLID])
- {
- return ShowPlayerDialog(playerid, DIALOG_FURNITURE, DIALOG_STYLE_LIST, "Furniture Main Menu:", "Buy Furniture\nCurrent Furniture\nInformation", "Select", ">>");
- }
- else
- {
- for(new i = 0; i < MAX_GRANT_BUILD; i++)
- {
- if(BuildData[owner_id][i][GrantedSQLID] == PlayerData[playerid][pSQLID])
- {
- count++;
- }
- }
-
- if (count){
- return ShowPlayerDialog(playerid, DIALOG_FURNITURE, DIALOG_STYLE_LIST, "Furniture Main Menu:", "Buy Furniture\nCurrent Furniture\nInformation", "Select", ">>");
- }
- else SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You don't own this house OR have grantbuild permissions.");
- }
- return true;
- }
- CMD:heal(playerid, params[])
- {
- new string[128], id = IsPlayerInProperty(playerid), found, myfaction = PlayerData[playerid][pFaction];
-
- if(IsPoliceFaction(playerid))
- {
- if (!IsPlayerInRangeOfPoint(playerid, 5.0, FactionData[myfaction][factionSpawn][0], FactionData[myfaction][factionSpawn][1], FactionData[myfaction][factionSpawn][2]))
- {
- if(PlayerData[playerid][pSpawnPrecinct] != 0)
- {
- switch(PlayerData[playerid][pSpawnPrecinct])
- {
- case 1:
- {
- if(IsPlayerInRangeOfPoint(playerid, 5.0, FactionData[myfaction][factionSpawnEx1][0], FactionData[myfaction][factionSpawnEx1][1], FactionData[myfaction][factionSpawnEx1][2]))
- {
- found++;
- }
- }
- case 2:
- {
- if(IsPlayerInRangeOfPoint(playerid, 5.0, FactionData[myfaction][factionSpawnEx2][0], FactionData[myfaction][factionSpawnEx2][1], FactionData[myfaction][factionSpawnEx2][2]))
- {
- found++;
- }
- }
- case 3:
- {
- if(IsPlayerInRangeOfPoint(playerid, 5.0, FactionData[myfaction][factionSpawnEx3][0], FactionData[myfaction][factionSpawnEx3][1], FactionData[myfaction][factionSpawnEx3][2]))
- {
- found++;
- }
- }
- }
- }
- }
- else
- {
- found++;
- }
- }
-
- if(found)
- {
- PauseAntiCheat(playerid);
-
- SendClientMessage(playerid, COLOR_WHITE, "You have been healed to max health and supplied with body armor.");
- SetPlayerHealth(playerid, PlayerData[playerid][pMaxHealth]);
- SetPlayerArmour(playerid, 100);
-
- LogPlayerAction(playerid, "Healed and got 100 Armor");
- return 1;
- }
-
- if(!id) return SendClientMessage(playerid, COLOR_ADM, "ERROR: You can't do this right now.");
-
- if(PropertyData[id][propertyFaction] != 0)
- {
- if(PlayerData[playerid][pFaction] != PropertyData[id][propertyFaction])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You can't heal in here.");
-
- if(FactionData[PropertyData[id][propertyFaction]][factionCopPerms])
- {
- if(PlayerData[playerid][pLAWduty])
- {
- PauseAntiCheat(playerid);
- ArmorGiven[playerid] = 1;
-
- SendClientMessage(playerid, COLOR_WHITE, "You have been healed to max health and supplied with body armor.");
- SetPlayerHealth(playerid, PlayerData[playerid][pMaxHealth]);
- SetPlayerArmour(playerid, 100);
-
- LogPlayerAction(playerid, "Healed and got 100 Armor");
- }
- else
- {
- SetPlayerHealth(playerid, PlayerData[playerid][pMaxHealth]);
- SendClientMessage(playerid, COLOR_WHITE, "You have been healed to max health.");
-
- LogPlayerAction(playerid, "Healed to max health");
- }
- }
- else if(FactionData[PropertyData[id][propertyFaction]][factionMedPerms])
- {
- if(PlayerData[playerid][pMEDduty] && IsPlayerInDynamicArea(playerid, HospitalArea))
- {
- new
- playerb;
-
- if(sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /heal [playerid/PartofName]");
-
- if(playerb == playerid)
- return SendClientMessage(playerid, COLOR_GREY, "ERROR: You can't heal yourself.");
-
- if(!GetDistanceBetweenPlayers(playerid, playerb, 6.0) && !IsPlayerInDynamicArea(playerb, HospitalArea))
- return SendClientMessage(playerid, COLOR_GREY, "SERVER: You aren't near that player.");
-
- format(string, sizeof(string), "%s healed you to 100 percent health.", ReturnName(playerid));
- SendClientMessage(playerb, COLOR_EMT, string);
-
- SetPlayerHealth(playerb, 100);
- SendClientMessage(playerid, COLOR_EMT, "The player was healed to 100 percent health.");
-
- format(string, sizeof(string), "Healed to 100 health by %s", ReturnName(playerid));
- LogPlayerAction(playerb, string);
-
- format(string, sizeof(string), "Healed %s to 100 health", ReturnName(playerb));
- LogPlayerAction(playerid, string);
-
- format(string, sizeof(string), "%s healed (/heal) %s to 100 health.", ReturnName(playerid), ReturnName(playerb));
- adminWarn(1, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_ADM, "You can't heal in here right now.");
- }
- }
- else
- {
- SetPlayerHealth(playerid, PlayerData[playerid][pMaxHealth]);
- SendClientMessage(playerid, COLOR_WHITE, "You have been healed to max health.");
-
- LogPlayerAction(playerid, "Healed to max health");
- }
- }
- else
- {
- SetPlayerHealth(playerid, PlayerData[playerid][pMaxHealth]);
- SendClientMessage(playerid, COLOR_WHITE, "You have healed to max health.");
-
- format(string, sizeof(string), "(( * %s healed to their max health. ))", ReturnName(playerid, 1));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 20.0, 4000);
-
- LogPlayerAction(playerid, "Healed to max health");
- }
- if (PlayerData[playerid][pLegShot]) PlayerData[playerid][pLegShot] = false;
- return true;
- }
- CMD:grantbuild(playerid, params[])
- {
- if (CountPlayerHouses(playerid) == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own any properties. ");
-
- if (!IsPlayerInProperty(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't inside your property.");
-
- new property = IsPlayerInProperty(playerid), playerb, string[128], newid = GetFreeBuildSlot(playerid), count = 0;
-
- if (PlayerData[playerid][pSQLID] != PropertyData[property][propertyOwnerSQL])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this property.");
- if (sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /grantbuild [playerid/PartofName]");
-
- if (!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid player.");
- if (!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified a player that isn't logged in.");
-
- if (playerb == playerid)
- return SendClientMessage(playerid, COLOR_ADM, "?");
-
- if (IsPlayerInProperty(playerb) != property)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player needs to be inside your house.");
-
- if(newid == -1)return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Your properties at maximum capacity.");
-
- for(new i = 0; i < MAX_GRANT_BUILD; i++)
- {
- if(BuildData[playerid][i][GrantedSQLID] != PlayerData[playerb][pSQLID])
- {
- BuildData[playerid][newid][GrantedSQLID] = PlayerData[playerb][pSQLID];
- count++;
- }
- }
-
- if(count) {
- format(string, sizeof(string), "SERVER: You gave %s grantbuild permissions.", ReturnName(playerb, 1));
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- format(string, sizeof(string), "SERVER: %s granted you build permission.", ReturnName(playerid, 1));
- SendClientMessage(playerb, COLOR_YELLOW, string);
-
- format(string, sizeof(string), "(( * %s gave %s grant build. ))", ReturnName(playerid, 1), ReturnName(playerb, 1));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 20.0, 3000);
-
- WriteLog("property_logs/grantbuild_log.txt", "[%s] %s granted %s permissions", ReturnDate(), ReturnName(playerid), ReturnName(playerb));
- }
- else SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player already has build permissions.");
- return true;
- }
- CMD:removebuild(playerid, params[])
- {
- if (CountPlayerHouses(playerid) == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own any properties. ");
-
- if (!IsPlayerInProperty(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't inside your property.");
-
- new property = IsPlayerInProperty(playerid), playerb, count = 0;
-
- if (PlayerData[playerid][pSQLID] != PropertyData[property][propertyOwnerSQL])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this property.");
- if (sscanf(params, "u", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /removebuild [playerid/PartofName]");
-
- if (!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid player.");
- if (!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified a player that isn't logged in.");
-
- for(new i = 0; i < MAX_GRANT_BUILD; i++)
- {
- if(BuildData[playerid][i][GrantedSQLID] == PlayerData[playerb][pSQLID])
- {
- BuildData[playerid][i][GrantedSQLID] = 0;
- count++;
- }
- }
-
- if(count) {
- return SendClientMessage(playerid, COLOR_YELLOW, "SERVER: You removed that players build permission to your house.");
- }
- else SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That player doesn't have grant build permissions to your house.");
-
- return true;
- }
- CMD:houseitems(playerid, params[])
- {
- if (CountPlayerHouses(playerid) == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own any properties. ");
-
- if (!IsPlayerInProperty(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't inside your property.");
-
- new property = IsPlayerInProperty(playerid), a_string[128], b_string[128];
-
- if (PlayerData[playerid][pSQLID] != PropertyData[property][propertyOwnerSQL])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this property.");
-
- if (!PropertyData[property][propertyHasXMR])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Your property doesn't have XMR.");
-
- if(sscanf(params, "s[128]S()[128]", a_string, b_string))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /houseitems [item]");
- SendClientMessage(playerid, COLOR_GREY, "|_________House Items_________|");
- SendClientMessage(playerid, COLOR_GREY, "| 1. XMR <House /setstation>");
- return true;
- }
-
- if(!strcmp(a_string, "xmr"))
- {
- new option[40];
-
- if(sscanf(b_string, "s[128]", option))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /houseitems xmr [adjust / remove]");
-
- if(!strcmp(option, "adjust"))
- {
- EditDynamicObject(playerid, PropertyData[property][propertyXMRObject]);
- PlayerData[playerid][pEditingXMR] = true;
- PlayerData[playerid][pEditingDuplicate] = false;
-
- DisplayFurnitureMessage(playerid);
- }
- else if(!strcmp(option, "remove"))
- {
- PropertyData[property][propertyHasXMR] = false;
- DestroyDynamicObject(PropertyData[property][propertyXMRObject]);
-
- SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} You removed your properties XMR.");
- }
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
- return true;
- }
- CMD:houseupgrade(playerid, params[])
- {
- if (CountPlayerHouses(playerid) == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own any properties. ");
-
- if (!IsPlayerInProperty(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't inside your property.");
-
- new property = IsPlayerInProperty(playerid), a_string[128], b_string[128];
-
- if (PlayerData[playerid][pSQLID] != PropertyData[property][propertyOwnerSQL])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't own this property.");
-
- if(sscanf(params, "s[128]S()[128]", a_string, b_string))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /houseupgrade [upgrade]");
- SendClientMessage(playerid, COLOR_GREY, "|_________Available Upgrades_________|");
- SendClientMessage(playerid, COLOR_GREY, "| 1. XMR <Ability to /setstation in property>");
- return true;
- }
-
- if(!strcmp(a_string, "xmr"))
- {
- if (PlayerData[playerid][pMoney] < 5000)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} This upgrade costs $5,000. You don't have enough money.");
-
- if (PropertyData[property][propertyHasXMR])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Your house already has an XMR.");
-
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
-
- PlayerData[playerid][pAddingXMR] = true;
- PlayerData[playerid][pXMRObject] = CreateDynamicObject(2103, x, y, z, 0.0, 0.0, 0.0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
- EditDynamicObject(playerid, PlayerData[playerid][pXMRObject]);
-
- DisplayFurnitureMessage(playerid);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid Parameter.");
-
- return true;
- }
- //Toll booth commands
- CMD:toll(playerid, params[])
- {
- if (!PlayerData[playerid][pFaction])return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You're not authorized to use this.");
- if (!PlayerData[playerid][pLAWduty])return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You're not authorized to use this.");
-
- new string[1200];
-
- format(string, sizeof(string), "Welcome to the toll booth management menu!\n\nFrom this menu you can toggle the locked status of tolls and\nview some information on a specific toll around San Andreas.\n\nThis front screen will also display financial and statistical data\nof all toll booth's including visits, taxations and payments made\nfor the past 60 minutes.\n\n{85A82B}Statistical Information:\n{FFFFFF}Booths Opened: %d Payments: %d Times Locked: %d",
- ReturnTollsOpened(), totalTollPayment, tollTimesLocked);
- ShowPlayerDialog(playerid, DIALOG_TOLLS, DIALOG_STYLE_MSGBOX, "Tollbooth Management", string, "Proceed", "Cancel");
- return true;
- }
- CMD:opentoll(playerid, params[])
- {
- for (new i = 1; i < MAX_TOLLS ; i++)
- {
- if(!TollsData[i][tollID])
- continue;
-
- if(IsPlayerInRangeOfPoint(playerid, 5.0, TollsData[i][tollPointA][0], TollsData[i][tollPointA][1], TollsData[i][tollPointA][2]) || IsPlayerInRangeOfPoint(playerid, 5.0, TollsData[i][tollPointB][0], TollsData[i][tollPointB][1], TollsData[i][tollPointB][2]))
- {
- if(TollsData[i][tollStatus] == 1)
- return SendClientMessage(playerid, COLOR_ADM, "TOLL BOOTH:{FFFFFF} These tolls are already open!");
-
- if(TollsData[i][tollLocked] && !PlayerData[playerid][pLAWduty] && !PlayerData[playerid][pMEDduty])
- return SendClientMessage(playerid, COLOR_ADM, "TOLL BOOTH:{FFFFFF} This toll booth is closed right now. Sorry.");
-
- if(PlayerData[playerid][pMoney] < TollsData[i][tollPrice] && !PlayerData[playerid][pLAWduty])
- return SendClientMessage(playerid, COLOR_ADM, "TOLL BOOTH:{FFFFFF} Sorry, you need to pay to open these tolls.");
-
- SendClientMessage(playerid, COLOR_ADM, "TOLL BOOTH:{FFFFFF} The toll bars have been lifted for 6 seconds. Pass through before it closes!");
- GiveMoney(playerid, -TollsData[i][tollPrice]);
-
- TollsData[i][tollStatus] = 1;
- totalTollPayment+= TollsData[i][tollPrice];
-
- switch(i)
- {
- case TOLL_LSLV:
- {
- TollsData[i][tollTimer] = SetTimerEx("TIMER_LSLVTolls", 6000, false, "i", i);
-
- SetDynamicObjectRot(tollObject1, 0.000000, 0.000000, 169.43664550781);
- SetDynamicObjectRot(tollObject2, 0.000000, 0.000000, 348.10229492188);
- }
- case TOLL_RODEO:
- {
- TollsData[i][tollTimer] = SetTimerEx("TIMER_RodeoTolls", 6000, false, "i", i);
-
- SetDynamicObjectRot(tollObject3, 0.000000, 0.000000, 23.81982421875);
- SetDynamicObjectRot(tollObject4, 0.000000, 0.000000, 214.37744140625);
- }
- case TOLL_FLINT:
- {
- TollsData[i][tollTimer] = SetTimerEx("TIMER_FlintTolls", 6000, false, "i", i);
-
- SetDynamicObjectRot(tollObject5, 0.000000, 0.000000, 270.67565917969); // Right side barrier.
- SetDynamicObjectRot(tollObject6, 0.000000, 0.000000, 87.337799072266); // Left side barrier.
- }
- }
- }
- }
- return 1;
- }
- /*CMD:barrier(playerid, params[])
- {
- if (!PlayerData[playerid][pFaction])return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any faction.");
- if (IsPoliceFaction(playerid))
- {
- if (IsPlayerInRangeOfPoint(playerid, 6.0, 1544.692016, -1630.910156, 13.144363))
- {
- if (PDToll[1] == 1)
- {
- MoveDynamicObject(PDToll[0], 1544.692016, -1630.910156, 13.144363, 0.001, 0.0, 90.0, 90.0);
- PDToll[1] = 0;
- }
- else
- {
- MoveDynamicObject(PDToll[0], 1544.692016, -1630.910156, 13.143363, 0.001, 0.0, 0.0, 90.0);
- PDToll[1] = 1;
- }
- }
- else SendClientMessage(playerid, COLOR_ADM, "You're not near a barrier.");
- }
- return 1;
- }*/
- //Job commands
- CMD:jobhelp(playerid, params[])
- {
- if (!PlayerData[playerid][pJob])
- return SendClientMessage(playerid, COLOR_ADM, "You're Unemployed.");
-
- new string[128];
-
- if (PlayerData[playerid][pJob]) {
- format(string, sizeof(string), "%s Commands:", ReturnJobName(PlayerData[playerid][pJob]));
- SendClientMessage(playerid, COLOR_ADM, string);
-
- switch (PlayerData[playerid][pJob]){
- case 1:{
- SendClientMessage(playerid, COLOR_GREY, " /paintcar");
- SendClientMessage(playerid, COLOR_GREY, " /tow");
- SendClientMessage(playerid, COLOR_GREY, " /fix");
- }
- case 2:{
- SendClientMessage(playerid, COLOR_GREY, " None.");
- }
- case 3:{
- SendClientMessage(playerid, COLOR_GREY, " /taxi");
- }
- case 4:{
- SendClientMessage(playerid, COLOR_GREY, " /renttruck");
- SendClientMessage(playerid, COLOR_GREY, " /unrenttruck");
- SendClientMessage(playerid, COLOR_GREY, " /truckermission");
- SendClientMessage(playerid, COLOR_GREY, " /endmission");
- }
- }
- }
-
- if (PlayerData[playerid][pSidejob]) {
- format(string, sizeof(string), "%s Commands:", ReturnJobName(PlayerData[playerid][pSidejob]));
- SendClientMessage(playerid, COLOR_ADM, string);
-
- switch (PlayerData[playerid][pSidejob]){
- case 1:{
- SendClientMessage(playerid, COLOR_GREY, " /paintcar");
- SendClientMessage(playerid, COLOR_GREY, " /tow");
- SendClientMessage(playerid, COLOR_GREY, " /fix");
- }
- case 2:{
- SendClientMessage(playerid, COLOR_GREY, " None.");
- }
- case 3:{
- SendClientMessage(playerid, COLOR_GREY, " /taxi");
- }
- case 4:{
- SendClientMessage(playerid, COLOR_GREY, " /renttruck");
- SendClientMessage(playerid, COLOR_GREY, " /unrenttruck");
- SendClientMessage(playerid, COLOR_GREY, " /truckermission");
- SendClientMessage(playerid, COLOR_GREY, " /endmission");
- }
- }
- }
- return true;
- }
- /*CMD:sidejob(playerid, params[])
- {
- if (!PlayerData[playerid][pJob])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a job to switch.");
-
- if (PlayerData[playerid][pSidejob])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You already have a side job. Use /quitsidejob");
-
- PlayerData[playerid][pSidejob] = PlayerData[playerid][pJob];
- PlayerData[playerid][pJob] = 0;
-
- new string[128];
-
- format(string, sizeof(string), "[ ! ]{FFFFFF} You're now a %s as a side job.", ReturnJobName(PlayerData[playerid][pSidejob]));
- SendClientMessage(playerid, COLOR_ADM, string);
- return true;
- }*/
- CMD:quitjob(playerid, params[])
- {
- if (!PlayerData[playerid][pJob])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a job to quit.");
- SendClientMessage(playerid, COLOR_ADM, sprintf("[ ! ]{FFFFFF} You left your job as a %s.", ReturnJobName(PlayerData[playerid][pJob])));
- PlayerData[playerid][pJob] = 0;
- PlayerData[playerid][pJobLevel] = 1;
- return true;
- }
- CMD:quitsidejob(playerid, params[])
- {
- if (!PlayerData[playerid][pSidejob])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have a job to quit.");
-
- new string[128];
-
- format(string, sizeof(string), "[ ! ]{FFFFFF} You left your job as a %s.", ReturnJobName(PlayerData[playerid][pSidejob]));
- SendClientMessage(playerid, COLOR_ADM, string);
- PlayerData[playerid][pSidejob] = 0;
- PlayerData[playerid][pSidejobLevel] = 1;
- return true;
- }
- CMD:switchjob(playerid, params[])
- {
- new type;
-
- if (sscanf(params, "i", type))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /switchjob [(1)job / (2)sidejob]");
- switch (type)
- {
- case 1:
- {
- if (PlayerData[playerid][pSidejob])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You already have a Side job. ");
-
- PlayerData[playerid][pSidejob] = PlayerData[playerid][pJob];
- PlayerData[playerid][pSidejobLevel] = PlayerData[playerid][pJobLevel];
- PlayerData[playerid][pJob] = 0;
- PlayerData[playerid][pJobLevel] = 1;
-
- SendClientMessage(playerid, COLOR_YELLOW, "You've switched sidejobs!");
- return true;
- }
- case 2:
- {
- if (PlayerData[playerid][pJob])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You already have a Job.");
-
- PlayerData[playerid][pJob] = PlayerData[playerid][pSidejob];
- PlayerData[playerid][pJobLevel] = PlayerData[playerid][pSidejobLevel];
- PlayerData[playerid][pSidejob] = 0;
- PlayerData[playerid][pSidejobLevel] = 1;
-
- SendClientMessage(playerid, COLOR_YELLOW, "You've switched jobs!");
- return true;
- }
- }
- SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid job title.");
- return true;
- }
- /*CMD:weaponjob(playerid, params[])
- {
- if (PlayerData[playerid][pJob])
- return SendClientMessage(playerid, COLOR_ADM, "You need to quit your job first.");
-
- if (!IsPlayerInRangeOfPoint(playerid, 5.0, 2520.1699, -1485.2290, 23.9977))
- return SendClientMessage(playerid, COLOR_ADM, "You aren't near the Weapons Job point.");
-
- PlayerData[playerid][pJob] = WEAPON_DEALER_JOB;
- JobGetMessage(playerid);
- return true;
- }*/
- CMD:mechanicjob(playerid, params[])
- {
- if (PlayerData[playerid][pJob])
- return SendClientMessage(playerid, COLOR_ADM, "You need to quit your job first.");
- if (!IsPlayerInRangeOfPoint(playerid, 7.0, 83.5813, -149.3909, 2.5845))
- return SendClientMessage(playerid, COLOR_ADM, "You aren't near the Mechanic Job point.");
-
- PlayerData[playerid][pJob] = MECHANIC_JOB;
- JobGetMessage(playerid);
- return true;
- }
- //Mechanic Job Commands
- CMD:paintcar(playerid, params[])
- {
- if (PlayerData[playerid][pSidejob] != MECHANIC_JOB && PlayerData[playerid][pJob] != MECHANIC_JOB)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't have the Mechanic job.");
-
- new
- string[128],
- vehicleid = GetPlayerVehicleID(playerid),
- playerb,
- color1,
- color2,
- elsevehicle = GetPlayerVehicleID(playerb);
-
- if(GetVehicleModel(vehicleid) != 525)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't in a Towtruck.");
-
- if (sscanf(params, "uii", playerb, color1, color2))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE: /paintcar [playerid/PartofName] [color1] [color2]");
-
- if(color1 < 0 || color1 > 255)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid color number.");
-
- if(color2 < 0 || color2 > 255)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: Invalid color number.");
-
- if (!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid player.");
-
- if(!GetDistanceBetweenPlayers(playerid, playerb, 4.5))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near that player.");
-
- if(!IsPlayerInAnyVehicle(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: That player isn't in any vehicle.");
-
- if(!IsValidPlayerCar(elsevehicle) && !IsValidFactionCar(elsevehicle))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: That players car colors can't be changed.");
-
- format (string, sizeof(string), "SERVER: You offered to repaint %s's vehicles bodywork.", ReturnName(playerb, 0));
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- format (string, sizeof(string), "SERVER: %s offered to repaint your vehicle, press \"Y\" to accept and \"N\" to decline.", ReturnName(playerid, 1));
- SendClientMessage(playerb, COLOR_YELLOW, string);
-
- paintjobOffered[playerb][0] = true;
- paintjobOffered[playerb][1] = playerid;
-
- paintjobColors[playerid][0] = color1;
- paintjobColors[playerid][1] = color2;
- return true;
- }
- CMD:tow(playerid, params[])
- {
- if (PlayerData[playerid][pSidejob] != MECHANIC_JOB && PlayerData[playerid][pJob] != MECHANIC_JOB)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't have the Mechanic job.");
-
- new
- vehicleid = GetPlayerVehicleID(playerid),
- elsevehicle = INVALID_VEHICLE_ID,
- string[128]
- ;
-
- if(GetVehicleModel(vehicleid) != 525)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't in a Towtruck.");
-
- if(!IsTrailerAttachedToVehicle(vehicleid))
- {
- new
- Float:x,
- Float:y,
- Float:z
- ;
-
- for(new i = 1; i <= GetVehiclePoolSize(); i++)
- {
- if(i == vehicleid)
- continue;
-
- GetVehiclePos(i, x, y, z);
-
- if(IsPlayerInRangeOfPoint(playerid, 10.0, x, y, z))
- {
- elsevehicle = i;
- }
- }
-
- if(elsevehicle == INVALID_VEHICLE_ID)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near a vehicle.");
-
- if(IsTrailerAttachedToVehicle(elsevehicle))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: That vehicles already attached to another towtruck.");
-
- if(IsHelicopter(elsevehicle) || NoEngineCar(elsevehicle))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: This isn't towable.");
-
- AttachTrailerToVehicle(elsevehicle, vehicleid);
-
- format(string, sizeof(string), "You attached a %s to your Towtruck.", ReturnVehicleName(elsevehicle));
- SendClientMessage(playerid, COLOR_ACTION, string);
- }
- else
- {
- elsevehicle = DetachTrailerFromVehicle(vehicleid);
-
- format(string, sizeof(string), "You deattached the %s from your Towtruck.", ReturnVehicleName(elsevehicle));
- SendClientMessage(playerid, COLOR_ACTION, string);
- }
- return 1;
- }
- CMD:fix(playerid, params[])
- {
- if (PlayerData[playerid][pSidejob] != MECHANIC_JOB && PlayerData[playerid][pJob] != MECHANIC_JOB) return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't have the Mechanic Job.");
- new string[128], vehicleid = GetPlayerVehicleID(playerid), targetid, vehicleidtarget = GetPlayerVehicleID(targetid);
- if(GetVehicleModel(vehicleid) != 525) {
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You must be in a tow truck to use this command.");
- }
- if(sscanf(params, "u", targetid)) {
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fix [playerid] ((This must be roleplayed and the player needs to use /pay to pay you for your services))");
- }
- if(!IsPlayerInAnyVehicle(targetid)) {
- return SendClientMessage(playerid, COLOR_ADM, "The player isn't in a vehicle");
- }
- if(!GetDistanceBetweenPlayers(playerid, targetid, 4.5)) {
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near that player.");
- }
- if(!IsValidPlayerCar(targetid)) {
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: That players car can't be repaired changed.");
- }
- else {
- RepairVehicle(vehicleidtarget);
- SetVehicleHealth(vehicleidtarget, 1000);
- format (string, sizeof(string), "* %s has repaired %s's vehicle.", ReturnName(playerid, 0), ReturnName(targetid, 0));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 20.0, 3000);
- }
- return 1;
- }
- CMD:mydrugs(playerid, params[])
- {
- new string[100];
-
- format(string, sizeof(string), "%s's Drugs:", ReturnName(playerid, 0));
- SendClientMessage(playerid, COLOR_ADM, string);
-
- for (new i = 0; i < 10; i++) if (DrugData[playerid][i][drugQuantity] > 0)
- {
- format(string, sizeof(string), "[{FFFFFF} %d. %s (%s: %.1f%s/%.1f%s) (Strength: %d) {FF6347}]",
- i, GetPackageType(DrugData[playerid][i][drugPackage]), ReturnDrugsName(DrugData[playerid][i][drugType]), DrugData[playerid][i][drugQuantity], (IsPill(DrugData[playerid][i][drugType]) == 1) ? (" Pills") : ("g"),
- GetPackageCapacity(DrugData[playerid][i][drugPackage], DrugData[playerid][i][drugType]), (IsPill(DrugData[playerid][i][drugType]) == 1) ? (" Pills") : ("g"), DrugData[playerid][i][drugStrength]);
- SendClientMessage(playerid, COLOR_ADM, string);
- }
- return 1;
- }
- /*
- CMD:testdrug(playerid, params[])
- {
- DrugData[playerid][0][drugType] = DRUG_TYPE_COCAINE;
- DrugData[playerid][0][drugPackage] = 0;
- DrugData[playerid][0][drugQuantity] = 7.0;
- DrugData[playerid][0][drugStrength] = 100;
- return 1;
- }
- */
- CMD:transferdrug(playerid, params[])
- {
- new id;
-
- if (sscanf(params, "d", id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /transferdrug [package_id]");
-
- if (id < 0 || id > 9 || DrugData[playerid][id][drugQuantity] == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Invalid package ID specified.");
-
- PlayerData[playerid][pTransferDrug] = id;
- ShowPlayerDialog(playerid, DIALOG_TRANSFER_DRUG, DIALOG_STYLE_LIST, "Transfer Drug", "Transfer to a new package\nTransfer to an existing package", "Next", "Exit");
- return 1;
- }
- CMD:givedrug(playerid, params[])
- {
- new playerb, package_id, string[100];
-
- if (sscanf(params, "ud", playerb, package_id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /givedrug [playerid/PartofName] [package_id]");
-
- if (!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid player.");
-
- if (!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified a player that isn't logged in.");
-
- if(!GetDistanceBetweenPlayers(playerid, playerb, 5.0))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't close enough to that player.");
- if (package_id < 0 || package_id > 9 || DrugData[playerid][package_id][drugQuantity] == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Invalid package ID specified.");
- if (CountPackages(playerb) == 10){
- format (string, sizeof(string), "%s can't hold anymore drug packages.", ReturnName(playerb, 0));
- SendClientMessage(playerid, COLOR_ADM, string);
- return true;
- }
-
- if(playerb == playerid)
- return SendClientMessage(playerid, COLOR_ADM, "You can't give yourself drugs.");
-
- WriteLog("drug_logs/givedrug.txt", "[%s] %s gave %s %.1f %s of %s in a %s.", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), DrugData[playerid][package_id][drugQuantity], (IsPill(DrugData[playerid][package_id][drugType]) == 1) ? ("Pills") : ("grams"), ReturnDrugsName(DrugData[playerid][package_id][drugType]), GetPackageType(DrugData[playerid][package_id][drugPackage]));
-
- GiveDrugPackage(playerb, DrugData[playerid][package_id][drugPackage], DrugData[playerid][package_id][drugType], DrugData[playerid][package_id][drugQuantity], DrugData[playerid][package_id][drugStrength]);
- RemoveDrugPackage(playerid, package_id);
-
- format (string, sizeof(string), "* %s has given %s a drug package.", ReturnName(playerid, 0), ReturnName(playerb, 0));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 20.0, 3000);
-
- SendClientMessage(playerid, COLOR_YELLOW, "You've given this person your drug package.");
- SendClientMessage(playerb, COLOR_YELLOW, "You've been given a drug package.");
- return true;
- }
- CMD:dropdrug(playerid, params[])
- {
- new package_id, string[64];
-
- if (sscanf(params, "d", package_id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /dropdrug [package_id]");
-
- if (package_id < 0 || package_id > 9 || DrugData[playerid][package_id][drugQuantity] == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Invalid package ID specified.");
-
- format (string, sizeof(string), "* %s throws their drug package away.", ReturnName(playerid, 0));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 20.0, 3000);
-
- SendClientMessage(playerid, COLOR_YELLOW, "You've thrown your drug package away.");
- RemoveDrugPackage(playerid, package_id);
- return 1;
- }
- CMD:usedrug(playerid, params[])
- {
- new package_id, Float:amount, string[128], effect_time;
-
- if(sscanf(params, "df", package_id, amount))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /usedrug [package_id] [amount|");
-
- if (package_id < 0 || package_id > 9 || DrugData[playerid][package_id][drugQuantity] == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Invalid package ID specified.");
-
- if (IsPill(DrugData[playerid][package_id][drugType]) && amount != 1.0)
- {
- format(string, sizeof(string), "ERROR:{FFFFFF} You can only take 1.0 of %s at one time.", ReturnDrugsName(DrugData[playerid][package_id][drugType]));
- SendClientMessage(playerid, COLOR_ADM, string);
- return 1;
- }
- if (!IsPill(DrugData[playerid][package_id][drugType]) && amount < 0.1)
- {
- format(string, sizeof(string), "ERROR:{FFFFFF} The minimum amount of %s you can take at one time is 0.1.", ReturnDrugsName(DrugData[playerid][package_id][drugType]));
- SendClientMessage(playerid, COLOR_ADM, string);
- return 1;
- }
- if (!IsPill(DrugData[playerid][package_id][drugType]) && amount > 0.3)
- {
- format(string, sizeof(string), "ERROR:{FFFFFF} The maximum amount of %s you can take at one time is 0.3.", ReturnDrugsName(DrugData[playerid][package_id][drugType]));
- SendClientMessage(playerid, COLOR_ADM, string);
- return 1;
- }
- if (amount > DrugData[playerid][package_id][drugQuantity])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have that much in the package.");
-
- if (PlayerData[playerid][pDrugEffect] != -1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You are already on drugs.");
-
- format(string, sizeof(string), "Used drug %s", ReturnDrugsName(DrugData[playerid][package_id][drugType]));
- LogPlayerAction(playerid, string);
-
- format(string, sizeof(string), "You've taken %.1f%s of %s.", amount, (IsPill(DrugData[playerid][package_id][drugType]) == 1) ? (" pill") : ("g"), ReturnDrugsName(DrugData[playerid][package_id][drugType]));
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- if (DrugData[playerid][package_id][drugType] == DRUG_TYPE_MARIJUANA) {
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
- }
- switch (DrugData[playerid][package_id][drugType])
- {
- case DRUG_TYPE_MARIJUANA: effect_time = floatround(15.0 * amount);
- case DRUG_TYPE_CRACK: effect_time = floatround(60.0 * amount);
- case DRUG_TYPE_COCAINE: effect_time = floatround(50.0 * amount);
- case DRUG_TYPE_ECSTASY: effect_time = floatround(70.0 * amount);
- case DRUG_TYPE_LSD: effect_time = floatround(75.0 * amount);
- case DRUG_TYPE_METH: effect_time = floatround(80.0 * amount);
- case DRUG_TYPE_PCP: effect_time = floatround(75.0 * amount);
- case DRUG_TYPE_HEROIN: effect_time = floatround(80.0 * amount);
- case DRUG_TYPE_ASPIRIN: effect_time = floatround(50.0 * amount);
- case DRUG_TYPE_HALOP: effect_time = floatround(50.0 * amount);
- case DRUG_TYPE_MORPHINE: effect_time = floatround(45.0 * amount);
- case DRUG_TYPE_XANAX: effect_time = floatround(40.0 * amount);
- case DRUG_TYPE_MDMA: effect_time = floatround(70.0 * amount);
- case DRUG_TYPE_PHENETOLE: effect_time = floatround(70.0 * amount);
- case DRUG_TYPE_STEROIDS: effect_time = floatround(60.0 * amount);
- }
- PlayerData[playerid][pDrugEffect] = DrugData[playerid][package_id][drugType];
- PlayerData[playerid][pDrugTime] = effect_time;
- PlayerData[playerid][pDrugStrength] = DrugData[playerid][package_id][drugStrength];
- DrugData[playerid][package_id][drugQuantity] -= amount;
-
- if (DrugData[playerid][package_id][drugQuantity] == 0) {
- RemoveDrugPackage(playerid, package_id);
- }
- else
- {
- mysql_format(m_Handle, string, sizeof(string), "UPDATE player_drugs SET quantity = %.1f WHERE playersqlid = %d AND slot = %d", DrugData[playerid][package_id][drugQuantity], PlayerData[playerid][pSQLID], package_id);
- mysql_tquery(m_Handle, string);
- }
- return 1;
- }
- //Weapon packages commands
- CMD:mypackages(playerid, params[])
- {
- new playerb, string[128];
-
- if (sscanf(params, "U(-1)", playerb))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /mypackages [playerid OR name to display]");
-
- if (playerb == -1) { return DisplayWeaponPackages(playerid, playerid); }
-
- if (!IsPlayerConnected(playerb) && playerb != -1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid player.");
-
- if (!pLoggedIn[playerb] && playerb != -1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified a player that isn't logged in.");
-
- if (playerb != -1) {
- if(!GetDistanceBetweenPlayers(playerid, playerb, 4.5)) return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You need to be closer to that player.");
-
- format(string, sizeof(string), "You're viewing %s's weapon packages.", ReturnName(playerid, 0));
- SendClientMessage(playerb, COLOR_ADM, string);
-
- DisplayWeaponPackages(playerid, playerb);
- }
- return true;
- }
- CMD:sw(playerid, params[])return cmd_sellweapon(playerid, params);
- CMD:sellweapon(playerid, params[])
- {
- new string[128], playerb, packageid;
-
- if (sscanf(params, "ud", playerb, packageid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /sellweapon [playerid/PartofName] [package id]");
-
- /*if (PlayerData[playerid][pJob] != WEAPON_DEALER_JOB && PlayerData[playerid][pSidejob] != WEAPON_DEALER_JOB)
- return SendClientMessage(playerid, COLOR_ADM, "You aren't a Weapons Dealer.");*/
-
- if (!PackageData[playerid][packageWeapon][packageid])
- return SendClientMessage(playerid, COLOR_ADM, "You don't have a package in that slot.");
-
- if (!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid player.");
-
- if (!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified a player that isn't logged in.");
-
- if (!GetDistanceBetweenPlayers(playerid, playerb, 4.5))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You need to be closer to that player.");
-
- if (packageid > MAX_WEAPON_PACKAGES || packageid < 1)
- return SendClientMessage(playerid, COLOR_ADM, "You specified an invalid package slot.");
-
- if(PlayerPlacingWeapon[playerb] || PlayerEditingWeapon[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "That player can't receive weapons right now.");
-
- format(string, sizeof(string), "Unpackaged %s (%d Ammo) package to %s", ReturnWeaponName(PackageData[playerid][packageWeapon][packageid]), PackageData[playerid][packageAmmo][packageid], ReturnName(playerb, 1));
- LogPlayerAction(playerid, string);
-
- format (string, sizeof(string), "* %s gives %s to %s.", ReturnName(playerid, 0), ReturnWeaponName(PackageData[playerid][packageWeapon][packageid]), ReturnName(playerb, 0));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 20.0, 3000);
-
- format (string, sizeof(string), "[Weapon] You've given %s and %d Ammo to %s.",
- ReturnWeaponName(PackageData[playerid][packageWeapon][packageid]), PackageData[playerid][packageAmmo][packageid], ReturnName(playerb, 0));
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
-
- GivePlayerGun(playerb, PackageData[playerid][packageWeapon][packageid], PackageData[playerid][packageAmmo][packageid], PlayerData[playerid][pSQLID]);
-
- WriteLog("weapon_logs/packages/sellweapon.txt", "[%s] %s gave %s : %s and %d Ammo",
- ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), ReturnWeaponName(PackageData[playerid][packageWeapon][packageid]),
- PackageData[playerid][packageAmmo][packageid]);
-
- PackageData[playerid][packageWeapon][packageid] = 0;
- PackageData[playerid][packageAmmo][packageid] = 0;
- return true;
- }
- CMD:sp(playerid, params[])return cmd_sellpackage(playerid, params);
- CMD:sellpackage(playerid, params[])
- {
- new string[128], playerb, packageid, free_id;
-
- if (sscanf(params, "ud", playerb, packageid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /sellpackage [playerid/PartofName] [package id]");
-
- /*if (PlayerData[playerid][pJob] != WEAPON_DEALER_JOB && PlayerData[playerid][pSidejob] != WEAPON_DEALER_JOB)
- return SendClientMessage(playerid, COLOR_ADM, "You aren't a Weapons Dealer.");*/
-
- if (!PackageData[playerid][packageWeapon][packageid])
- return SendClientMessage(playerid, COLOR_ADM, "You don't have a package in that slot.");
-
- if (!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified an invalid player.");
-
- if (!pLoggedIn[playerb])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You specified a player that isn't logged in.");
-
- if (!GetDistanceBetweenPlayers(playerid, playerb, 4.5))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You need to be closer to that player.");
-
- if (free_id == -1)
- return SendClientMessage(playerid, COLOR_ADM, "That player can't carry any more packages.");
-
- if (packageid > MAX_WEAPON_PACKAGES || packageid < 1)
- return SendClientMessage(playerid, COLOR_ADM, "You specified an invalid package slot.");
-
- free_id = ReturnFreePackage(playerb);
-
- PackageData[playerb][packageWeapon][free_id] = PackageData[playerid][packageWeapon][packageid];
- PackageData[playerb][packageAmmo][free_id] = PackageData[playerid][packageAmmo][packageid];
-
- format(string, sizeof(string), "Gave package %s (%d Ammo) to %s", ReturnWeaponName(PackageData[playerid][packageWeapon][packageid]), PackageData[playerid][packageAmmo][packageid], ReturnName(playerb));
- LogPlayerAction(playerid, string);
- format (string, sizeof(string), "[Package] You've given %s and %d Ammo to %s.",
- ReturnWeaponName(PackageData[playerid][packageWeapon][packageid]), PackageData[playerid][packageAmmo][packageid], ReturnName(playerb, 0));
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
-
- format (string, sizeof(string), "[Package] You've received %s and %d Ammo from %s.",
- ReturnWeaponName(PackageData[playerid][packageWeapon][packageid]), PackageData[playerid][packageAmmo][packageid], ReturnName(playerid, 0));
- SendClientMessage(playerb, COLOR_DARKGREEN, string);
-
- format(string, sizeof(string), "* %s gave %s an unassembled %s.", ReturnName(playerid, 0), ReturnName(playerb, 0),
- ReturnWeaponName(PackageData[playerid][packageWeapon][packageid]));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 20.0, 3000);
-
- WriteLog("weapon_logs/packages/sellpackage.txt", "[%s] %s gave %s : %s and %d Ammo", ReturnDate(),
- ReturnName(playerid, 1), ReturnName(playerb, 1), ReturnWeaponName(PackageData[playerid][packageWeapon][packageid]),
- PackageData[playerid][packageAmmo][packageid]);
-
- PackageData[playerid][packageWeapon][packageid] = 0;
- PackageData[playerid][packageAmmo][packageid] = 0;
- return true;
- }
- CMD:vehpackages(playerid, params[])
- {
- if (!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle.");
-
- new
- vehicleid = GetPlayerVehicleID(playerid)
- ;
-
- if (!IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "This vehicle can't hold any weapon packages.");
-
- DisplayVehiclePackages(playerid, vehicleid);
- return true;
- }
- CMD:pw(playerid, params[])return cmd_putweapon(playerid, params);
- CMD:putweapon(playerid, params[])
- {
- new string[128], packageid, vehicleid = GetPlayerVehicleID(playerid), slotid = ReturnCarFreePackage(vehicleid);
-
- if (!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle.");
- if (!IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "You can't put weapon packages in this vehicle.");
-
- if (sscanf(params, "d", packageid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /putweapon [Weapon Slot ID]");
-
- if(!PackageData[playerid][packageWeapon][packageid])
- return SendClientMessage(playerid, COLOR_ADM, "You don't have a package in that slot.");
-
- if(packageid > 20 || packageid < 1)
- return SendClientMessage(playerid, COLOR_ADM, "You specified an invalid package slot.");
-
- if (slotid == -1)
- return SendClientMessage(playerid, COLOR_ADM, "This vehicle is full and can't store anymore weapons.");
-
- CarData[vehicleid][carPackagesAmmo][slotid] = PackageData[playerid][packageAmmo][packageid];
- CarData[vehicleid][carPackages][slotid] = PackageData[playerid][packageWeapon][packageid];
-
- format(string, sizeof(string), "Stored %s (%d) package in VehicleDB %i", ReturnWeaponName(PackageData[playerid][packageWeapon][packageid]), PackageData[playerid][packageAmmo][packageid], CarData[vehicleid][carID]);
- LogPlayerAction(playerid, string);
-
- format(string, sizeof(string), "[Package] You've put %s and %d ammo in the vehicle.",
- ReturnWeaponName(PackageData[playerid][packageWeapon][packageid]), PackageData[playerid][packageAmmo][packageid]);
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
-
- format(string, sizeof(string), "* %s puts something in the vehicle.", ReturnName(playerid, 0));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 20.0, 3000);
-
- format(string, sizeof(string), "%s put %s[%d] package (slot %i)", ReturnName(playerid), ReturnWeaponName(PackageData[playerid][packageWeapon][packageid]), PackageData[playerid][packageAmmo][packageid], slotid);
- LogVehicleAction(vehicleid, string);
-
- WriteLog("weapon_logs/packages/putweapon.txt", "[%s] %s put %s and %d Ammo in vehicle (SQL ID: %d)",
- ReturnDate(), ReturnName(playerid, 1), ReturnWeaponName(PackageData[playerid][packageWeapon][packageid]), PackageData[playerid][packageAmmo][packageid], CarData[vehicleid][carID]);
-
- PackageData[playerid][packageWeapon][packageid] = 0;
- PackageData[playerid][packageAmmo][packageid] = 0;
- return true;
- }
- CMD:paw(playerid, params[])return cmd_putallweapons(playerid, params);
- CMD:putallweapons(playerid, params[])
- {
- new
- string[128],
- vehicleid = GetPlayerVehicleID(playerid)
- ;
-
- if (!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle.");
- if (!IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "You can't put weapon packages in this vehicle.");
-
- if (ReturnCarFreePackage(vehicleid) == -1)
- return SendClientMessage(playerid, COLOR_ADM, "This vehicle is full and can't store anymore weapons.");
-
- if(CountPlayerPackages(playerid) == 0)
- return SendClientMessage(playerid, COLOR_ADM, "You don't have any packages to place.");
-
- new totalCount, vehicleSpace = 0, playerSpace = 0;
-
- for (new i = 1; i < MAX_WEAPON_PACKAGES; i ++)
- {
- if ( !CarData[vehicleid][carPackages][i] )
- {
- vehicleSpace++;
- for ( new j = 1; j < MAX_WEAPON_PACKAGES; j ++ )
- {
- if ( PackageData[playerid][packageWeapon][j] )
- {
- playerSpace++;
- totalCount++;
-
- CarData[vehicleid][carPackages][i] = PackageData[playerid][packageWeapon][j];
- CarData[vehicleid][carPackagesAmmo][i] = PackageData[playerid][packageAmmo][j];
-
- WriteLog("weapon_logs/packages/putweapon.txt", "[%s] %s put %s and %d Ammo in vehicle (SQL ID: %d) [/paw]",
- ReturnDate(), ReturnName(playerid, 1), ReturnWeaponName(PackageData[playerid][packageWeapon][j]), PackageData[playerid][packageAmmo][j], CarData[vehicleid][carID]);
-
- PackageData[playerid][packageWeapon][j] = 0;
- PackageData[playerid][packageAmmo][j] = 0;
-
- if(playerSpace % vehicleSpace == 0)
- break;
- }
- }
- }
- }
-
- format(string, sizeof(string), "%s took %i weapon packages", ReturnName(playerid), totalCount);
- LogVehicleAction(vehicleid, string);
-
- format(string, sizeof(string), "Stored %i weapon packages in VehicleDB %i", totalCount, CarData[vehicleid][carID]);
- LogPlayerAction(playerid, string);
-
- format(string, sizeof(string), "[Weapons] You put %i weapon packages into the vehicle.", totalCount);
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
-
- return true;
- }
- CMD:vehdrugs(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid), string[128];
-
- if(!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle.");
-
- if(!IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "This vehicle can't store drug packages.");
-
- format (string, sizeof(string), "%s's Drug Packages:", ReturnVehicleName(vehicleid));
- SendClientMessage(playerid, COLOR_ADM, string);
-
- for (new i = 0; i < 10; i++)
- {
- if (CarDrugData[vehicleid][i][drugQuantity] > 0)
- {
- format(string, sizeof(string), "[ {FFFFFF}%d. %s (%s: %.1f%s/%.1f%s) (Strength: %d) {FF6347}]",
- i, GetPackageType(CarDrugData[vehicleid][i][drugPackage]), ReturnDrugsName(CarDrugData[vehicleid][i][drugType]), CarDrugData[vehicleid][i][drugQuantity], (IsPill(CarDrugData[vehicleid][i][drugType]) == 1) ? (" Pills") : ("g"),
- GetPackageCapacity(CarDrugData[vehicleid][i][drugPackage], CarDrugData[vehicleid][i][drugType]), (IsPill(CarDrugData[vehicleid][i][drugType]) == 1) ? (" Pills") : ("g"), CarDrugData[vehicleid][i][drugStrength]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- return true;
- }
- /*CMD:pad(playerid, params[])return cmd_placealldrugs(playerid, params);
- CMD:placealldrugs(playerid, params[])
- {
- new string[128], vehicleid = GetPlayerVehicleID(playerid);
-
- if (!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle.");
-
- if (!IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "This vehicle can't hold drug packages.");
-
- if(CountPackages(playerid) == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You don't have any drugs.");
- if(VehicleHasDrugs(vehicleid) == 10)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: This vehicle can't hold anymore drug packages.");
-
- new success;
-
- for (new i = 0; i < 10; i++) if (DrugData[playerid][i][drugQuantity] > 0)
- {
- success = AddVehicleDrug(vehicleid, DrugData[playerid][i][drugPackage], DrugData[playerid][i][drugType], DrugData[playerid][i][drugQuantity], DrugData[playerid][i][drugStrength]);
-
- if (success == 1) {
- RemoveDrugPackage(playerid, i);
- }
- }
- WriteLog("drug_logs/putdrug.txt", "[%s] %s stored all of their drug packages into Vehicle DBID %i [/pad]", ReturnDate(), ReturnName(playerid), CarData[vehicleid][carID]);
-
- format(string, sizeof(string), "%s stored all of their drug packages", ReturnName(playerid));
- LogVehicleAction(vehicleid, string);
- if (CountPackages(playerid) == 0)
- SendClientMessage(playerid, COLOR_YELLOW, "You've stored all of your drug packages into the vehicle.");
- else
- SendClientMessage(playerid, COLOR_YELLOW, "You've stored all drug packages you could fit into the vehicle.");
-
- format (string, sizeof(string), "* %s puts something in the vehicle.", ReturnName(playerid, 0));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 10.0, 3000);
- return 1;
- }
- CMD:tad(playerid, params[]) return cmd_takealldrugs(playerid, params);
- CMD:takealldrugs(playerid, params[])
- {
- new
- string[128],
- vehicleid = GetPlayerVehicleID(playerid)
- ;
- if (!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle.");
-
- if (!IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "This vehicle doesn't hold drug packages.");
-
- if(CountPackages(playerid) == 10)
- return SendClientMessage(playerid, COLOR_ADM, "You can't hold anymore drug packages.");
-
- if(!VehicleHasDrugs(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "This vehicle doesn't have drug packages.");
- new success;
-
- for (new i = 0; i < 10; i++) if (CarDrugData[vehicleid][i][drugQuantity] > 0)
- {
- success = GiveDrugPackage(playerid, CarDrugData[vehicleid][i][drugPackage], CarDrugData[vehicleid][i][drugType], CarDrugData[vehicleid][i][drugQuantity], CarDrugData[vehicleid][i][drugStrength]);
-
- if (success == 1) {
- RemoveVehicleDrug(vehicleid, i);
- }
- }
- WriteLog("drug_logs/putdrug.txt", "[%s] %s took all drug packages from Vehicle DBID %i [/tad]", ReturnDate(), ReturnName(playerid), CarData[vehicleid][carID]);
-
- format(string, sizeof(string), "%s took all drug packages", ReturnName(playerid));
- LogVehicleAction(vehicleid, string);
-
- if (VehicleHasDrugs(vehicleid) == 0)
- SendClientMessage(playerid, COLOR_YELLOW, "You've taken all drug packages from the vehicle.");
- else
- SendClientMessage(playerid, COLOR_YELLOW, "You've taken all drug packages from the vehicle you could carry.");
-
- format (string, sizeof(string), "* %s takes something from the vehicle.", ReturnName(playerid, 0));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 10.0, 3000);
- return 1;
- }*/
- CMD:pd(playerid, params[])return cmd_placedrug(playerid, params);
- CMD:placedrug(playerid, params[])
- {
- if (IsPlayerInAnyVehicle(playerid))
- {
- new string[128], vehicleid = GetPlayerVehicleID(playerid);
- if (!IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "This vehicle can't hold drug packages.");
-
- new package_id;
-
- if (sscanf(params, "d", package_id))return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /putdrug [package_id]");
-
- if (package_id < 0 || package_id > 9 || DrugData[playerid][package_id][drugQuantity] == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Invalid package ID specified.");
- /*if (PlayerData[playerid][pTransferList][0] != -1) {
- adminWarn(1, sprintf("%s has attempted to duplicate drug package ID %d.", ReturnName(playerid, 1), package_id));
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Nice try sunshine, you've been reported to admins.");
- }*/
- if (VehicleHasDrugs(vehicleid) == 10)
- return SendClientMessage(playerid, COLOR_ADM, "This car is full of drug packages.");
- AddVehicleDrug(vehicleid, DrugData[playerid][package_id][drugPackage], DrugData[playerid][package_id][drugType], DrugData[playerid][package_id][drugQuantity], DrugData[playerid][package_id][drugStrength]);
- format (string, sizeof(string), "* %s puts something in the vehicle.", ReturnName(playerid, 0));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 10.0, 3000);
-
- SendClientMessage(playerid, COLOR_YELLOW, "You've stored a drug package in the vehicle.");
-
- format(string, sizeof(string), "%s stored %s (type: %s) (quantity: %.1f) (strength: %d)", ReturnName(playerid), GetPackageType(DrugData[playerid][package_id][drugPackage]), ReturnDrugsName(DrugData[playerid][package_id][drugType]), DrugData[playerid][package_id][drugQuantity], DrugData[playerid][package_id][drugStrength]);
- LogVehicleAction(vehicleid, string);
-
- WriteLog("drug_logs/putdrug.txt", "[%s] %s stored %s (type: %s) (quantity: %.1f) (strength: %d) (vehicledbid: %d)", ReturnDate(), ReturnName(playerid), GetPackageType(DrugData[playerid][package_id][drugPackage]), ReturnDrugsName(DrugData[playerid][package_id][drugType]), DrugData[playerid][package_id][drugQuantity], DrugData[playerid][package_id][drugStrength], CarData[vehicleid][carID]);
- RemoveDrugPackage(playerid, package_id);
- }
- else
- {
- new id;
-
- if( (id = IsPlayerInProperty(playerid)) != 0)
- {
- new nearest_id = -1, string[128];
- for (new i = 0; i < 10; i++) if (HousePackages[id][i][packageType] != -1)
- {
- if (IsPlayerInRangeOfPoint(playerid, 2.5, HousePackages[id][i][packagePos][0], HousePackages[id][i][packagePos][1], HousePackages[id][i][packagePos][2])) {
- nearest_id = i;
- }
- }
- if (nearest_id == -1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You are not near a drug package.");
-
- new package_id, Float:total, slots_used;
-
- if (sscanf(params, "d", package_id))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /putdrug [package_id]");
-
- if (package_id < 0 || package_id > 9 || DrugData[playerid][package_id][drugQuantity] == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} Invalid package ID specified.");
-
- for (new i = 0; i < 20; i++) if (PackageDrugs[id][nearest_id][i][drugQuantity] > 0)
- {
- total += PackageDrugs[id][nearest_id][i][drugQuantity];
- slots_used++;
- }
- if (slots_used == 20)
- {
- format(string, sizeof(string), "This %s is full of drug packages.", GetPackageName(HousePackages[id][nearest_id][packageType]));
- SendClientMessage(playerid, COLOR_ADM, string);
- return 1;
- }
- if (total + DrugData[playerid][package_id][drugQuantity] > GetHousePackageCapacity(HousePackages[id][nearest_id][packageType]))
- {
- format(string, sizeof(string), "You can't fit this drug package in the %s.", GetPackageName(HousePackages[id][nearest_id][packageType]));
- SendClientMessage(playerid, COLOR_ADM, string);
- return 1;
- }
- for (new i = 0; i < 20; i++) if (PackageDrugs[id][nearest_id][i][drugQuantity] == 0)
- {
- PackageDrugs[id][nearest_id][i][drugPackage] = DrugData[playerid][package_id][drugPackage];
- PackageDrugs[id][nearest_id][i][drugType] = DrugData[playerid][package_id][drugType];
- PackageDrugs[id][nearest_id][i][drugQuantity] = DrugData[playerid][package_id][drugQuantity];
- PackageDrugs[id][nearest_id][i][drugStrength] = DrugData[playerid][package_id][drugStrength];
-
- mysql_format(m_Handle, string, sizeof(string), "INSERT INTO house_packages_drugs VALUES (%d, %d, %d, %d, %d, %.1f, %d)", PropertyData[id][propertyid], nearest_id, i,
- DrugData[playerid][package_id][drugPackage], DrugData[playerid][package_id][drugType], DrugData[playerid][package_id][drugQuantity], DrugData[playerid][package_id][drugStrength]);
- mysql_tquery(m_Handle, string);
-
- format(string, sizeof(string), "You've stored a drug package in a %s.", GetPackageName(HousePackages[id][nearest_id][packageType]));
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- format (string, sizeof(string), "* %s stores a drug package in a %s.", ReturnName(playerid, 0), GetPackageName(HousePackages[id][nearest_id][packageType]));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 10.0, 3000);
-
- RemoveDrugPackage(playerid, package_id);
- return 1;
- }
- }
- else SendClientMessage(playerid, COLOR_ADM, "You must be in a house or a vehicle to use this command.");
- }
- return 1;
- }
- CMD:td(playerid, params[]) return cmd_takedrug(playerid, params);
- CMD:takedrug(playerid, params[])
- {
- if (IsPlayerInAnyVehicle(playerid))
- {
- new string[128], index, vehicleid = GetPlayerVehicleID(playerid);
- if (!IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "This vehicle doesn't hold drug packages.");
-
- if(CountPackages(playerid) == 10)
- return SendClientMessage(playerid, COLOR_ADM, "You can't hold anymore drug packages.");
-
- if(!VehicleHasDrugs(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "This vehicle doesn't have drug packages.");
-
- if(sscanf(params, "i", index))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /takedrug [slot]");
- if(index < 0 || index > 9)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid slot.");
-
- if(CarDrugData[vehicleid][index][drugQuantity] == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: There's no drug package in that slot.");
- GiveDrugPackage(playerid, CarDrugData[vehicleid][index][drugPackage], CarDrugData[vehicleid][index][drugType], CarDrugData[vehicleid][index][drugQuantity], CarDrugData[vehicleid][index][drugStrength]);
-
- format(string, sizeof(string), "%s took %s (type: %s) (quantity: %.1f) (strength: %d)", ReturnName(playerid), GetPackageType(CarDrugData[vehicleid][index][drugPackage]), ReturnDrugsName(CarDrugData[vehicleid][index][drugType]), CarDrugData[vehicleid][index][drugQuantity], CarDrugData[vehicleid][index][drugStrength]);
- LogVehicleAction(vehicleid, string);
-
- WriteLog("drug_logs/putdrug.txt", "[%s] %s took %s (type: %s) (quantity: %.1f) (strength: %d) (vehicledbid: %d)", ReturnDate(), ReturnName(playerid), GetPackageType(CarDrugData[vehicleid][index][drugPackage]), ReturnDrugsName(CarDrugData[vehicleid][index][drugType]), CarDrugData[vehicleid][index][drugQuantity], CarDrugData[vehicleid][index][drugStrength], CarData[vehicleid][carID]);
-
- SendClientMessage(playerid, COLOR_YELLOW, "You've taken a drug package from the vehicle.");
-
- format (string, sizeof(string), "* %s takes something from the vehicle.", ReturnName(playerid, 0));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 10.0, 3000);
-
- RemoveVehicleDrug(vehicleid, index);
- }
- else
- {
- new id;
-
- if( (id = IsPlayerInProperty(playerid)) != 0)
- {
- new nearest_id = -1, index, string[128], not_empty;
- for (new i = 0; i < 10; i++) if (HousePackages[id][i][packageType] != -1)
- {
- if (IsPlayerInRangeOfPoint(playerid, 2.5, HousePackages[id][i][packagePos][0], HousePackages[id][i][packagePos][1], HousePackages[id][i][packagePos][2])) {
- nearest_id = i;
- }
- }
- if (nearest_id == -1)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You are not near a drug package.");
-
- if(CountPackages(playerid) == 10)
- return SendClientMessage(playerid, COLOR_ADM, "You can't hold anymore drug packages.");
-
- if(sscanf(params, "i", index))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /takedrug [slot]");
- if(index < 0 || index > 20)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You specified an invalid slot.");
-
- if(PackageDrugs[id][nearest_id][index][drugQuantity] == 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: There's no drug package in that slot.");
-
- GiveDrugPackage(playerid, PackageDrugs[id][nearest_id][index][drugPackage], PackageDrugs[id][nearest_id][index][drugType], PackageDrugs[id][nearest_id][index][drugQuantity], PackageDrugs[id][nearest_id][index][drugStrength]);
-
- format(string, sizeof(string), "You've taken a drug package from a %s.", GetPackageName(HousePackages[id][nearest_id][packageType]));
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- format (string, sizeof(string), "* %s takes a drug package from a %s.", ReturnName(playerid, 0), GetPackageName(HousePackages[id][nearest_id][packageType]));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 10.0, 3000);
-
- PackageDrugs[id][nearest_id][index][drugPackage] = 0;
- PackageDrugs[id][nearest_id][index][drugType] = 0;
- PackageDrugs[id][nearest_id][index][drugQuantity] = 0.0;
- PackageDrugs[id][nearest_id][index][drugStrength] = 0;
-
- mysql_format(m_Handle, string, sizeof(string), "DELETE FROM house_packages_drugs WHERE housesqlid = %d AND packageid = %d AND id = %d", PropertyData[id][propertyid], nearest_id, index);
- mysql_tquery(m_Handle, string);
-
- for (new i = 0; i < 20; i++) if (PackageDrugs[id][nearest_id][i][drugQuantity] > 0)
- {
- not_empty = 1;
- break;
- }
- if (not_empty == 0)
- {
- HousePackages[id][nearest_id][packageType] = -1;
- HousePackages[id][nearest_id][packagePos][0] = 0.0;
- HousePackages[id][nearest_id][packagePos][1] = 0.0;
- HousePackages[id][nearest_id][packagePos][2] = 0.0;
- HousePackages[id][nearest_id][packagePos][3] = 0.0;
- HousePackages[id][nearest_id][packagePos][4] = 0.0;
- HousePackages[id][nearest_id][packagePos][5] = 0.0;
-
- mysql_format(m_Handle, string, sizeof(string), "DELETE FROM house_packages WHERE housesqlid = %d AND id = %d", PropertyData[id][propertyid], nearest_id);
- mysql_tquery(m_Handle, string);
-
- DestroyDynamicObject(HousePackages[id][nearest_id][packageObject]);
- }
- }
- else SendClientMessage(playerid, COLOR_ADM, "You must be in a house or a vehicle to use this command.");
- }
- return 1;
- }
- CMD:tw(playerid, params[])return cmd_takeweapon(playerid, params);
- CMD:takeweapon(playerid, params[])
- {
- new string[128], slotid, vehicleid = GetPlayerVehicleID(playerid), yourslot = ReturnFreePackage(playerid);
- if (!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle.");
- if (!IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "You can't put weapon packages in this vehicle.");
-
- if (sscanf(params, "d", slotid))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /takeweapon [vehicle slot]");
-
- if (slotid > 20 || slotid < 1)
- return SendClientMessage(playerid, COLOR_ADM, "You specified an invalid package slot.");
-
- if (yourslot == -1)
- return SendClientMessage(playerid, COLOR_ADM, "You can't carry anymore weapon packages.");
-
- if (!CarData[vehicleid][carPackages][slotid])
- return SendClientMessage(playerid, COLOR_ADM, "This vehicle slot doesn't have a package.");
-
- WriteLog("weapon_logs/packages/takeweapon.txt", "[%s] %s took %s and %d Ammo from vehicle (SQLID: %d)",
- ReturnDate(), ReturnName(playerid, 1), ReturnWeaponName(CarData[vehicleid][carPackages][slotid]),
- CarData[vehicleid][carPackagesAmmo][slotid], CarData[vehicleid][carID]);
-
- format (string, sizeof(string), "[Package] You've taken %s and %d ammo from the vehicle.", ReturnWeaponName(CarData[vehicleid][carPackages][slotid]), CarData[vehicleid][carPackagesAmmo][slotid]);
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
-
- format (string, sizeof(string), "* %s takes something from the vehicle.", ReturnName(playerid, 0));
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 20.0, 3000);
-
- format(string, sizeof(string), "%s took %s[%d] package (slot %d)", ReturnName(playerid), ReturnWeaponName(CarData[vehicleid][carPackages][slotid]), CarData[vehicleid][carPackagesAmmo][slotid], slotid);
- LogVehicleAction(vehicleid, string);
-
- format(string, sizeof(string), "Took %s (%d) package from VehicleDB %i", ReturnWeaponName(CarData[vehicleid][carPackages][slotid]), CarData[vehicleid][carPackagesAmmo][slotid], CarData[vehicleid][carID]);
- LogPlayerAction(playerid, string);
-
- PackageData[playerid][packageWeapon][yourslot] = CarData[vehicleid][carPackages][slotid];
- PackageData[playerid][packageAmmo][yourslot] = CarData[vehicleid][carPackagesAmmo][slotid];
-
- CarData[vehicleid][carPackages][slotid] = 0;
- CarData[vehicleid][carPackagesAmmo][slotid] = 0;
- return true;
- }
- CMD:taw(playerid, params[])return cmd_takeallweapons(playerid, params);
- CMD:takeallweapons(playerid, params[])
- {
- new
- string[128],
- vehicleid = GetPlayerVehicleID(playerid);
-
- if (!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You aren't in any vehicle.");
- if (!IsValidPlayerCar(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "You can't put weapon packages in this vehicle.");
-
- if (ReturnFreePackage(playerid) == -1)
- return SendClientMessage(playerid, COLOR_ADM, "You can't carry anymore weapon packages.");
-
- if(!VehicleHasPackages(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: This vehicle doesn't have packages.");
-
- new takeCount, playerSpace = 0, vehicleSpace = 0;
-
- for (new i = 1; i < MAX_WEAPON_PACKAGES; i++)
- {
- if (!PackageData[playerid][packageWeapon][i])
- {
- playerSpace++;
- for (new j = 1; j < MAX_WEAPON_PACKAGES; j ++)
- {
- if (CarData[vehicleid][carPackages][j])
- {
- vehicleSpace++;
- takeCount++;
-
- PackageData[playerid][packageWeapon][i] = CarData[vehicleid][carPackages][j];
- PackageData[playerid][packageAmmo][i] = CarData[vehicleid][carPackagesAmmo][j];
-
- WriteLog("weapon_logs/packages/takeweapon.txt", "[%s] %s took %s and %d Ammo from vehicle (SQLID: %d) [/taw]",
- ReturnDate(), ReturnName(playerid, 1), ReturnWeaponName(CarData[vehicleid][carPackages][j]),
- CarData[vehicleid][carPackagesAmmo][j], CarData[vehicleid][carID]);
-
- CarData[vehicleid][carPackages][j] = 0;
- CarData[vehicleid][carPackagesAmmo][j] = 0;
-
- if(playerSpace % vehicleSpace == 0) break;
- }
- }
- }
- }
-
- format(string, sizeof(string), "Took %i weapon packages from VehicleDB %i", takeCount, CarData[vehicleid][carID]);
- LogPlayerAction(playerid, string);
-
- format(string, sizeof(string), "%s took %i weapon packages", ReturnName(playerid), takeCount);
- LogVehicleAction(vehicleid, string);
-
- format(string, sizeof(string), "[Weapons] You took %i packages from the vehicle.", takeCount);
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
- return true;
- }
- //Animation commands
- CMD:anims(playerid, params[])
- {
- GameTextForPlayer(playerid, "~p~ANIMATIONS AVAILABLE: ~n~~r~/STOPANIM TO STOP", 2500, 4);
- SendClientMessage(playerid, COLOR_DARKGREEN, "|_______________Animations_______________|");
- SendClientMessage(playerid, COLOR_GRAD1, "/stopanim, /dance, /dance2, /dance3, /dance4, /carry, /handsup, /fall, /frontfall, /flip");
- SendClientMessage(playerid, COLOR_GRAD2, "/kickdoor, /injured, /cpr, /fastaim, /washhands, /shadowbox, /sit, /seat, /camera1-3, /tired ");
- SendClientMessage(playerid, COLOR_GRAD1, "/gsign1-9, /salute, /no, /yes, /traffic1-4, /crouchshoot, /crouchreload, /reload");
- SendClientMessage(playerid, COLOR_GRAD2, "/forwardlook, /forwardpanic, /forwardwave, /wave, /crossarms, /crossarms2, /caranim, /comecross ");
- SendClientMessage(playerid, COLOR_GRAD1, "/point, /scratchballs, /cry, /mourn, /pray, /provoke, /riot, /fucku, /rap1-3, /lean1-2, /smoke");
- SendClientMessage(playerid, COLOR_GRAD2, "/no2, /wave2, /stomp, /riflestance, /aimwalk, /sipdrink, /laugh");
- SendClientMessage(playerid, COLOR_DARKGREEN, "|________________________________________|");
- return true;
- }
- CMD:sa(playerid, params[])return cmd_stopanim(playerid, params);
- CMD:stopanim(playerid, params[])
- {
- if(IsPlayerHoldingCrate(playerid) != -1)return SendClientMessage(playerid, COLOR_ADM, "You're holding a crate right now.");
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't do this right now.");
- ApplyAnimation(playerid, "CARRY", "crry_prtial", 4, 0, 0, 0, 0, 0, 1);
-
- if (!PlayerData[playerid][pHandcuff] && GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DRINK_BEER && GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DRINK_WINE && GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DRINK_SPRUNK)
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
-
- PlayerData[playerid][pPlayingAnimation] = false;
- return true;
- }
- CMD:dance(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE1);
- return true;
- }
- CMD:dance2(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE2);
- return true;
- }
- CMD:dance3(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE3);
- return true;
- }
- CMD:dance4(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE4);
- return true;
- }
- CMD:carry(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
- return true;
- }
- CMD:handsup(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- if (PlayerData[playerid][pHandcuff])return SendClientMessage(playerid, COLOR_ADM, "You can't do this right now.");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_HANDSUP);
- return true;
- }
- CMD:fall(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "parachute", "FALL_skyDive_DIE", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:frontfall(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "PED", "FLOOR_HIT_F", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:flip(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "PED", "FLOOR_HIT", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:kickdoor(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "POLICE", "DOOR_KICK", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:injured(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "CRACK", "crckidle1", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:cpr(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "MEDIC", "CPR", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:fastaim(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "SNIPER", "WEAPON_SNIPER", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:copaim(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "PED", "ARRESTGUN", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:washhands(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "INT_HOUSE", "WASH_UP", 4.1, 1, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:shadowbox(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "GYMNASIUM", "GYMSHADOWBOX", 4.1, 1, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:sit(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "BEACH", "PARKSIT_M_LOOP", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:seat(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "PED", "SEAT_DOWN", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:forwardlook(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "BD_FIRE", "BD_PANIC_02", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:forwardpanic(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "BD_FIRE", "BD_PANIC_03", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:forwardwave(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "BD_FIRE", "BD_PANIC_01", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:camera1(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "CAMERA", "CAMCRCH_CMON", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:camera2(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "CAMERA", "CAMCRCH_IDLELOOP", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:camera3(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "CAMERA", "CAMSTND_TO_CAMCRCH", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:tired(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "FAT", "IDLE_TIRED", 4.1, 1, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:gsign1(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "GHANDS", "GSIGN1", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:gsign2(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "GHANDS", "GSIGN1LH", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:gsign3(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "GHANDS", "GSIGN2", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:gsign4(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "GHANDS", "GSIGN2LH", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:gsign5(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "GHANDS", "GSIGN3", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:gsign6(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "GHANDS", "GSIGN3LH", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:gsign7(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "GHANDS", "GSIGN4", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:gsign8(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "GHANDS", "GSIGN4LH", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:gsign9(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "GHANDS", "GSIGN5", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:salute(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "GHANDS", "GSIGN5LH", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:no(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "GANGS", "INVITE_NO", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:yes(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "GANGS", "INVITE_YES", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:traffic1(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "POLICE", "COPTRAF_AWAY", 4.1, 1, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:traffic2(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "POLICE", "COPTRAF_COME", 4.1, 1, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:traffic3(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "POLICE", "COPTRAF_LEFT", 4.1, 1, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:traffic4(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "POLICE", "COPTRAF_STOP", 4.1, 1, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:crouchshoot(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "PYTHON", "PYTHON_CROUCHFIRE", 4.1, 1, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:crouchreload(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "PYTHON", "PYTHON_CROUCHRELOAD", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:reload(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "PYTHON", "PYTHON_RELOAD", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:wave(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "PED", "ENDCHAT_03", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:crossarms(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "OTB", "WTCHRACE_IN", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:crossarms2(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "OTB", "WTCHRACE_LOOP", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:point(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "ON_LOOKERS", "POINT_LOOP", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:scratchballs(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "MISC", "SCRATCHBALLS_01", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:caranim(playerid, params[])
- {
- if (PlayerData[playerid][pBrutallyWounded])
- return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
-
- if (!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
-
- new anim[40];
-
- if(sscanf(params, "s[40]", anim))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /caranim [relax / tap]");
-
- if(!strcmp(anim, "relax")) {
- PlayAnimation(playerid, "LOWRIDER", "SIT_RELAXED", 4.1, 0, 0, 0, 1, 0, 1);
- }
- else if(!strcmp(anim, "tap")) {
- PlayAnimation(playerid, "LOWRIDER", "TAP_HAND", 4.1, 1, 0, 0, 1, 0, 1);
- }
- else return SendClientMessage(playerid, COLOR_ADM, "You specified an invalid animation.");
- return true;
- }
- CMD:cry(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "GRAVEYARD", "MRNF_LOOP", 4.1, 1, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:mourn(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "GRAVEYARD", "MRNM_LOOP", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:pray(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "GRAVEYARD", "PRST_LOOPA", 4.1, 1, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:provoke(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "RIOT", "RIOT_CHALLENGE", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:riot(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "RIOT", "RIOT_ANGRY_B", 4.1, 1, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:fucku(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "RIOT", "RIOT_FUKU", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:rap1(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "RAPPING", "RAP_A_LOOP", 4.1, 1, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:rap2(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "RAPPING", "RAP_B_LOOP", 4.1, 1, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:rap3(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "RAPPING", "RAP_C_LOOP", 4.1, 1, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:lean1(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "SMOKING", "F_SMKLEAN_LOOP", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:lean2(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "SMOKING", "M_SMKLEAN_LOOP", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:smoke(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "SMOKING", "M_SMK_DRAG", 4.1, 1, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:comecross(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "OTB", "WTCHRACE_CMON", 4.1, 0, 0, 0, 1, 0, 1);
- return true;
- }
- CMD:no2(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "PED", "ENDCHAT_02", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
-
- CMD:wave2(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "PED", "ENDCHAT_01", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
-
- CMD:stomp(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "PED", "FIGHTA_G", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
-
- CMD:riflestance(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "PED", "IDLE_ARMED", 4.1, 1, 0, 0, 0, 0, 1);
- return true;
- }
-
- CMD:aimwalk(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "POLICE", "COP_MOVE_FWD", 4.1, 1, 1, 1, 0, 0, 1);
- return true;
- }
-
- CMD:sipdrink(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "BAR", "DNK_STNDM_LOOP", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:laugh(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "RAPPING", "Laugh_01", 4.1, 0, 0, 0, 0, 0, 1);
- return true;
- }
- CMD:servedrink(playerid, params[])
- {
- if (!AnimationCheck(playerid))return SendClientMessage(playerid, COLOR_ADM, "You can't use this animation right now.");
- PlayAnimation(playerid, "RAPPING", "VEND_Drink2_P", 4.1, 0, 0, 0, 0, 0, 1);
- return 1;
- }
- //Public functions
- Server:SaveSQLInt(sqlid, table[], row[], value)
- {
- new query[128];
- mysql_format(m_Handle, query, sizeof(query), "UPDATE %e SET %e = %i WHERE id = %i", table, row, value, sqlid);
- mysql_pquery(m_Handle, query);
- return true;
- }
- Server:SaveSQLFloat(sqlid, table[], row[], Float:value)
- {
- new query[128];
- mysql_format(m_Handle, query, sizeof(query), "UPDATE %e SET %e = %f WHERE id = %i", table, row, value, sqlid);
- mysql_pquery(m_Handle, query);
- return true;
- }
- Server:FunctionPlayers()
- {
- foreach(new i : Player)
- {
- if(GetTickCount() > (PlayerData[i][pPauseCheck]+2000))
- PlayerData[i][pPauseTime] ++;
-
- else PlayerData[i][pPauseTime] = 0;
-
- if(PlayerData[i][pLogintime] > 0){
- PlayerData[i][pLogintime]++;
- if(PlayerData[i][pLogintime] == 60){
- SendClientMessage(i, COLOR_ADM, "-> You failed to login in 60 seconds and were kicked.");
- KickEx(i);
- }
- }
- /*if (IsPlayerAwaitingRegistration(playerid)) {
- if (IsPlayerRegWait[playerid] > 0) {
- PlayerRegWait[playerid] --;
- } else {
- adminWarn(1, sprintf("%s (id: %d) has submitted a registration quiz. /review %d to answer it.", ReturnName(playerid, 1), playerid, playerid));
- PlayerRegWait[playerid] = 60;
- }
- } else {
- if (PlayerRegWait[playerid] > 0) PlayerRegWait[playerid] = 0;
- }*/
-
- if(!PlayerIsTased[i])
- {
- SetPlayerDrunkLevel(i, 2000);
- }
-
- if(PlayerDesyncNotify[i] != 0)
- {
- PlayerDesyncNotify[i]--;
- }
-
- if(PlayerJustDied[i] != 0)
- {
- PlayerJustDied[i]--;
- }
-
- if(pLoggedIn[i])
- {
- if(PlayerData[i][pAjailed]){
- PlayerData[i][pAjailTime]--;
- if(PlayerData[i][pAjailTime] == 0){
- PlayerData[i][pAjailed] = false;
- SendPlayer(i, 1553.0421, -1675.4706, 16.1953, 0, 0);
- SendClientMessage(i, COLOR_GREY, "You have paid your debt to society.");
- new string[128];
- format(string, sizeof(string), "%s was released from admin jail", ReturnName(i, 1), i);
- adminWarn(1, string);
- }
- }
-
- if(PlayerData[i][pExecuteTime]){
- PlayerData[i][pExecuteTime]++;
- if(PlayerData[i][pExecuteTime] == 5){
- PlayerData[i][pExecuteTime] = 0;
- }
- }
-
- PlayerData[i][pPlayTime]++;
- if(PlayerData[i][pPlayTime] >= 3600) {
- PlayerData[i][pPlayTime] = 0;
-
- switch(PlayerData[i][pDonator])
- {
- case 4: {
- if (DoubleEXP) PlayerData[i][pExp] += 8;
- else PlayerData[i][pExp] += 4;
- }
- case 3: {
- if (DoubleEXP) PlayerData[i][pExp] += 6;
- else PlayerData[i][pExp] += 3;
- }
- case 1 .. 2: {
- if (DoubleEXP) PlayerData[i][pExp] += 4;
- else PlayerData[i][pExp] += 2;
- }
- default: {
- if (DoubleEXP) PlayerData[i][pExp] += 2;
- else PlayerData[i][pExp] += 1;
- }
- }
-
- PlayerData[i][pHoursPlayed]++;
- }
-
- if(GetPlayerTeam(i) == STATE_WOUNDED)
- {
- if(GetPlayerAnimationIndex(i) != 1701 && !PlayerData[i][pInsideAmbulance])
- ApplyAnimation(i, "WUZI", "CS_Dead_Guy", 4.0, 0, 0, 0, 1, 0, 1);
-
- if(!PlayerData[i][pInsideAmbulance] && !IsPlayerInRangeOfPoint(i, 3.0, PlayerData[i][pPos][0], PlayerData[i][pPos][1], PlayerData[i][pPos][2]) || GetPlayerVirtualWorld(i) != PlayerData[i][pWorld])
- {
- SetPlayerPos(i, PlayerData[i][pPos][0], PlayerData[i][pPos][1], PlayerData[i][pPos][2]);
- SetPlayerFacingAngle(i, PlayerData[i][pPos][3]);
-
- SetPlayerInterior(i, PlayerData[i][pInterior]);
- SetPlayerVirtualWorld(i, PlayerData[i][pWorld]);
- }
- }
-
- if(GetPlayerTeam(i) == STATE_DEAD && gettime() - _respawn_timer[i] >= 60)
- {
- if(!DeathTimeNotice[i])
- {
- DeathTimeNotice[i] = 30;
- SendClientMessage(i, COLOR_YELLOW, "[ ! ] Your respawn time is up. You can use /respawnme to respawn.");
- }
- }
-
- if(PlayerPlacingWeapon[i])
- {
- if(!IsValidVehicle(PlayerPlacingInVehicle[i]) || !IsPlayerInAnyVehicle(i))
- {
- GivePlayerWeapon(i, PlayerPlacingWeaponID[i], PlayerPlacingWeaponAmmo[i]);
-
- CancelEdit(i);
-
- if(IsValidDynamicObject(CarData[ PlayerPlacingInVehicle[i] ][carWeaponObject][PlayerPlacingWeaponSlot[i]]))
- DestroyDynamicObject(CarData[ PlayerPlacingInVehicle[i] ][carWeaponObject][PlayerPlacingWeaponSlot[i]]);
-
- PlayerPlacingWeapon[i] = 0; PlayerPlacingWeaponID[i] = 0;
- PlayerPlacingWeaponAmmo[i] = 0;
-
- SlotBeingUsed[ PlayerPlacingInVehicle[i] ][ PlayerPlacingWeaponSlot[i] ] = 0;
- PlayerPlacingWeaponSlot[i] = 0; PlayerPlacingInVehicle[i] = 0;
-
- SendClientMessage(i, COLOR_ADM, "The vehicle you were placing your weapon in was despawned.");
- }
- }
-
- if(PlayerEditingWeapon[i])
- {
- if(!IsValidVehicle(PlayerPlacingInVehicle[i]) || !IsPlayerInAnyVehicle(i))
- {
- CancelEdit(i);
- SendClientMessage(i, COLOR_ADM, "The vehicles weapon you were editing was despawned.");
- }
- }
-
- if(SpectatorWait[i] != 0)
- {
- SpectatorWait[i]--;
- }
-
- if(DeathTimeNotice[i] != 0)
- {
- DeathTimeNotice[i]--;
- }
-
- if( _taking_license_test[i] && _taking_license_time[i] <= 80 ) {
- _taking_license_time[i]--;
-
- new string[128];
-
- format(string, sizeof(string), "~w~%d", _taking_license_time[i]);
- GameTextForPlayer(i, string, 1000, 3);
-
- if( _taking_license_test[i] && _taking_license_time[i] == 0 ) {
- SetVehicleToRespawn(_taking_license_vehicle[i]);
- SendClientMessage(i, COLOR_ADM, "You ran out of time and failed your driver license test.");
-
- _taking_license_point[i] = 0;
- _taking_license_test[i] = false;
- _taking_license_vehicle[i] = 0;
- _taking_license_time[i] = 0;
- }
- }
- if( PlayerData[i][pHUDToggled] ) {
- UpdatePlayerHud( i, GetPlayerVehicleID( i ) );
- }
- PlayerData[i][pEnterVehicle] = 0;
-
-
- if(PlayerData[i][pICJailed])
- {
- PlayerData[i][pICJailTime]--;
- if(PlayerData[i][pICJailTime] < 1)
- {
- if(!PlayerData[i][pICJailNotify])
- {
- SendClientMessage(i, COLOR_ADM, "[-] Your jail time is up. /releaseme");
- PlayerData[i][pICJailNotify] = 1;
- }
- }
- }
-
- if(PlayerIsTased[i] > 0)
- {
- PlayerIsTased[i]--;
- }
-
- if(ACPausedForPlayer[i] != 0)
- {
- ACPausedForPlayer[i]--;
- }
-
- if(PauseMessage[i] != 0)
- {
- PauseMessage[i]--;
- }
- if (PlayerData[i][pDrugEffect] != -1)
- {
- new Float:health, Float:health_gain;
-
- switch (PlayerData[i][pDrugEffect])
- {
- case DRUG_TYPE_MARIJUANA: health_gain = 0.01;
- case DRUG_TYPE_CRACK: health_gain = 0.02;
- case DRUG_TYPE_COCAINE: health_gain = 0.02;
- case DRUG_TYPE_ECSTASY: health_gain = 0.03;
- case DRUG_TYPE_LSD: health_gain = 0.04;
- case DRUG_TYPE_METH: health_gain = 0.04;
- case DRUG_TYPE_PCP: health_gain = 0.03;
- case DRUG_TYPE_HEROIN: health_gain = 0.04;
- case DRUG_TYPE_ASPIRIN: health_gain = 0.02;
- case DRUG_TYPE_HALOP: health_gain = 0.01;
- case DRUG_TYPE_MORPHINE : health_gain = 0.01;
- case DRUG_TYPE_XANAX: health_gain = 0.01;
- case DRUG_TYPE_MDMA: health_gain = 0.03;
- case DRUG_TYPE_PHENETOLE: health_gain = 0.03;
- case DRUG_TYPE_STEROIDS: health_gain = 0.03;
- }
- health_gain *= float(PlayerData[i][pDrugStrength]);
- GetPlayerHealth(i, health);
-
- health += health_gain;
- if (health > 175.0) health = 175.0;
-
- SetPlayerHealth(i, health);
- PlayerData[i][pDrugTime]--;
-
- if (PlayerData[i][pDrugTime] == 0)
- {
- PlayerData[i][pDrugEffect] = -1;
- PlayerData[i][pDrugStrength] = 0;
- }
- }
- new Float:Armor;
- if(ACPausedForPlayer[i] == 0)
- {
- new cash = GetPlayerMoney(i);
- new antistring[128];
- if(cash > PlayerData[i][pMoney])
- {
- if(PauseMessage[i] == 0)
- {
- format(antistring, 128, "%s[ID: %i] could be spawning money. (Client: $%s Server: $%s)", ReturnName(i), i, MoneyFormat(cash), MoneyFormat(PlayerData[i][pMoney]));
- adminWarn(1, antistring);
-
-
- PauseMessage[i] = 5;
- }
- }
-
- if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK && PlayerData[i][pJetpack] == 0)
- {
- if(PauseMessage[i] == 0)
- {
- format(antistring, 128, "%s[ID: %i] has a Jetpack spawned.", ReturnName(i), i);
- adminWarn(1, antistring);
-
- PauseMessage[i] = 5;
- }
- }
-
- GetPlayerArmour(i, Armor);
- if(Armor > 50 && !PlayerData[i][pLAWduty] && !ArmorGiven[i] && !PlayerData[i][pAdmin])
- {
- if(PauseMessage[i] == 0)
- {
- format(antistring, 128, "%s[ID: %i] may have spawned armor. ARMOR: %f", ReturnName(i), i, Armor);
- adminWarn(1, antistring);
-
- PauseMessage[i] = 5;
- }
- }
- else if(PlayerData[i][pLAWduty] && PlayerData[i][pSWATduty] && !ArmorGiven[i] && Armor > 200 && !PlayerData[i][pAdmin])
- {
- if(PauseMessage[i] == 0)
- {
- format(antistring, 128, "%s[ID: %i] may have spawned armor. ARMOR: %f", ReturnName(i), i, Armor);
- adminWarn(1, antistring);
-
- PauseMessage[i] = 5;
- }
- }
- }
- }
- }
- return true;
- }
- Server:Fuel()
- {
- for(new i = 1, j = GetVehiclePoolSize(); i <= j; i++)
- {
- if(IsValidPlayerCar(i) && !AdminCar[i] && !IsValidFactionCar(i) && CarEngine[i] && GetVehicleSpeed(i) > 1)
- {
- static marker_time;
-
- if(!marker_time)
- marker_time = gettime();
-
- if(gettime() - marker_time > 240)
- {
- DecreaseFuel(i);
- marker_time = 0;
- }
- }
- }
- }
- /*Server:DecreaseFuel(vehicleid)
- {
- new Float:g_fuel_deduction_rate_petrol = 0.004,
- Float:g_fuel_deduction_rate_diesel = 0.002,
- Float:g_vehicle_model_mass,
- Float:g_total_loss;
-
- GetVehicleMass(vehicleid, g_vehicle_model_mass);
-
- if(GetVehicleModelInfoAsInt(GetVehicleModel(vehicleid), "TransMissionData_nEngineType") == 'P')
- g_total_loss = (g_vehicle_model_mass/30.0) * g_fuel_deduction_rate_petrol;
-
- else if(GetVehicleModelInfoAsInt(GetVehicleModel(vehicleid), "TransMissionData_nEngineType") == 'D')
- g_total_loss = (g_vehicle_model_mass/30.0) * g_fuel_deduction_rate_diesel;
-
- else g_total_loss = (g_vehicle_model_mass/30.0) * 0.009+0.002; // 0.004 -> 0.009, 10.0 -> 30.0
-
- CarData[vehicleid][carFuel]-= g_total_loss;
- if(CarData[vehicleid][carFuel] < 1)
- {
- ToggleVehicleEngine(vehicleid, false);
- foreach(new i : Player) if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
- SendClientMessage(i, COLOR_ADM, "Your car ran out of fuel!");
- }
- return 1;
- }*/
- Server:DecreaseFuel(vehicleid)
- {
- new
- Float:g_fuel_deduction_rate_petrol = 0.074,
- Float:g_fuel_deduction_rate_diesel = 0.072,
- Float:g_vehicle_model_mass,
- Float:g_total_loss;
- GetVehicleMass(vehicleid, g_vehicle_model_mass);
- if(GetVehicleModelInfoAsInt(GetVehicleModel(vehicleid), "TransMissionData_nEngineType") == 'P')
- g_total_loss = (g_vehicle_model_mass/30.0) * g_fuel_deduction_rate_petrol;
- else if(GetVehicleModelInfoAsInt(GetVehicleModel(vehicleid), "TransMissionData_nEngineType") == 'D')
- g_total_loss = (g_vehicle_model_mass/30.0) * g_fuel_deduction_rate_diesel;
- else g_total_loss = (g_vehicle_model_mass/30.0) * 0.079+0.052; // 0.004 -> 0.009, 10.0 -> 30.0
- CarData[vehicleid][carFuel]-= g_total_loss;
- if(CarData[vehicleid][carFuel] < 1)
- {
- ToggleVehicleEngine(vehicleid, false);
- foreach(new i : Player) if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
- SendClientMessage(i, COLOR_ADM, "Your car ran out of fuel!");
- }
- return 1;
- }
- new TriggeredWeapon[MAX_PLAYERS] = 0;
- new TriggeredAmmo[MAX_PLAYERS] = 0;
- Server:WeaponCheats()
- {
- if(WEAPON_ANTI_CHEAT)
- {
- foreach(new i : Player)
- {
- if(!pLoggedIn[i])
- continue;
-
- if(NetStats_GetConnectedTime(i) - PlayerConnectionTick[i] < 300)
- continue;
-
- if(gettime() - PlayerData[i][pPauseWepAC] < 4 && PlayerData[i][pPauseWepAC] != 0)
- continue;
-
- if(ACPausedForPlayer[i])
- continue;
-
- new string[128]; new weapon_id, ammo;
- new LOCAL_CHEAT_DETECTED;
- new WEAPON_FOUND;
- new WEAPON_INDEX;
-
- for(new w = 0; w < 13; w++)
- {
- GetPlayerWeaponData(i, w, weapon_id, ammo);
-
- if(weapon_id > 0 && ammo > 0)
- {
- WEAPON_INDEX = GetWeaponIndex(weapon_id);
-
- if(Weapon[i][WEAPON_INDEX][eWeaponID] != weapon_id)
- {
- LOCAL_CHEAT_DETECTED = 1;
- WEAPON_FOUND = weapon_id;
-
- if(!TriggeredWeapon[i])
- TriggeredWeapon[i] = gettime();
- break;
- }
- }
- }
-
- if(LOCAL_CHEAT_DETECTED)
- {
- if(gettime() - TriggeredWeapon[i] > 5)
- {
- format(string, sizeof(string), "%s(ID: %i) may be WEAPON HACKING. (Weapon: %s)", ReturnName(i), i, ReturnWeaponName(WEAPON_FOUND));
- adminWarn(1, string);
-
- TriggeredWeapon[i] = gettime();
- }
- }
- }
- }
- }
- static const s_TopSpeed[212] = {
- 157, 147, 186, 110, 133, 164, 110, 148, 100, 158, 129, 221, 168, 110, 105, 192, 154, 270,
- 115, 149, 145, 154, 140, 99, 135, 270, 173, 165, 157, 201, 190, 130, 94, 110, 167, 0, 149,
- 158, 142, 168, 136, 145, 139, 126, 110, 164, 270, 270, 111, 0, 0, 193, 270, 60, 135, 157,
- 106, 95, 157, 136, 270, 160, 111, 142, 145, 145, 147, 140, 144, 270, 157, 110, 190, 190,
- 149, 173, 270, 186, 117, 140, 184, 73, 156, 122, 190, 99, 64, 270, 270, 139, 157, 149, 140,
- 270, 214, 176, 162, 270, 108, 123, 140, 145, 216, 216, 173, 140, 179, 166, 108, 79, 101, 270,
- 270, 270, 120, 142, 157, 157, 164, 270, 270, 160, 176, 151, 130, 160, 158, 149, 176, 149, 60,
- 70, 110, 167, 168, 158, 173, 0, 0, 270, 149, 203, 164, 151, 150, 147, 149, 142, 270, 153, 145,
- 157, 121, 270, 144, 158, 113, 113, 156, 178, 169, 154, 178, 270, 145, 165, 160, 173, 146, 0, 0,
- 93, 60, 110, 60, 158, 158, 270, 130, 158, 153, 151, 136, 85, 0, 153, 142, 165, 108, 162, 0, 0,
- 270, 270, 130, 190, 175, 175, 175, 158, 151, 110, 169, 171, 148, 152, 0, 0, 0, 108, 0, 0
- }; //Credits to Emmet (Extended Vehicle function)
- Server:Float:GetVehicleTopSpeed(vehicleid)
- {
- new model = GetVehicleModel(vehicleid);
- if (model)
- {
- return float(s_TopSpeed[(model - 400)]);
- }
- return 0.0;
- }
- new SpeedCount [MAX_PLAYERS];
- Server:SpeedCheats()
- {
- foreach (new i : Player)
- {
- if(!pLoggedIn[i])
- continue;
-
- if(GetPlayerState(i) != PLAYER_STATE_DRIVER)
- continue;
-
- if(GetVehicleSpeedMPH(GetPlayerVehicleID(i)) == 0)
- continue;
-
- new vehicleid = GetPlayerVehicleID(i);
-
- new Float: topSpeed;
- topSpeed = GetVehicleTopSpeed(vehicleid);
-
- new playerSpeed;
- playerSpeed = GetVehicleSpeedMPH(vehicleid);
-
- if(playerSpeed > topSpeed)
- {
- SpeedCount [i] ++;
- }
-
- if(SpeedCount[i] == 3)
- {
- new string[200];
-
- format(string, sizeof(string), "%s exceeded their vehicles top speed. Vehicle:%s Top: %.0f Their speed: %i", ReturnName(i), ReturnVehicleName(vehicleid), topSpeed, playerSpeed);
- adminWarn(1, string);
-
- SpeedCount[i] = 0;
- }
- }
- return 1;
- }
- Server:AmmoCheats()
- {
- if(AMMO_ANTI_CHEAT)
- {
- foreach(new i : Player)
- {
- if(!pLoggedIn[i])
- continue;
-
- if(NetStats_GetConnectedTime(i) - PlayerConnectionTick[i] < 300)
- continue;
-
- if(gettime() - PlayerData[i][pPauseWepAC] < 4 && PlayerData[i][pPauseWepAC] != 0)
- continue;
-
- if(ACPausedForPlayer[i])
- continue;
-
- new string[128]; new weapon_id, ammo;
- new LOCAL_CHEAT_DETECTED;
- new WEAPON_FOUND;
- new WEAPON_AMMO;
- new WEAPON_INDEX;
-
- for(new w = 0; w < 13; w++)
- {
- GetPlayerWeaponData(i, w, weapon_id, ammo);
-
- if(weapon_id > 0 && ammo > 0)
- {
- if(weapon_id == 41)
- continue;
-
- WEAPON_INDEX = GetWeaponIndex(weapon_id);
-
- if(Weapon[i][WEAPON_INDEX][eWeaponID] == weapon_id && ammo - 1 > Weapon[i][WEAPON_INDEX][eWeaponAmmo])
- {
- LOCAL_CHEAT_DETECTED = 1;
- WEAPON_FOUND = weapon_id;
- WEAPON_AMMO = ammo;
-
- if(!TriggeredAmmo[i])
- TriggeredAmmo[i] = gettime();
- break;
- }
- }
- }
-
- if(LOCAL_CHEAT_DETECTED)
- {
- if(gettime() - TriggeredAmmo[i] > 5)
- {
- format(string, sizeof(string), "%s(ID: %i) may be AMMO HACKING. Weapon:%s, Ammo: %d, Real Ammo:%d", ReturnName(i), i, ReturnWeaponName(WEAPON_FOUND), WEAPON_AMMO, Weapon[i][WEAPON_INDEX][eWeaponAmmo]);
- adminWarn(1, string);
-
- TriggeredAmmo[i] = gettime();
- }
- }
- }
- }
- }
- /*public OnPlayerTeleport(playerid, Float:distance) {
- if (ACPausedForPlayer[playerid] > 0) return 1;
- if (PlayerData[playerid][pAdmin] == 0) {
- adminWarn(1, sprintf("%s [ID: %d] is likely using TP hacks! (distance from last pos: %0.2f)", ReturnName(playerid, 1), playerid, distance));
- } else if (PlayerData[playerid][pAdmin] < 4) {
- adminWarn(4, sprintf("%s [ID: %d] is likely using TP hacks! (distance from last pos: %0.2f)", ReturnName(playerid, 1), playerid, distance));
- }
- return 1;
- }*/
- public OnPlayerFly(playerid) {
- adminWarn(1, sprintf("%s [ID: %d] is likely using fly hacks!", ReturnName(playerid, 1), playerid));
- return 1;
- }
- forward OnFakeKillDetected(playerid);
- public OnFakeKillDetected(playerid) {
- adminWarn(1, sprintf("%s [ID: %d] is likely using fake kill hacks!", ReturnName(playerid, 1), playerid));
- return 1;
- }
- Server:OnPlayerNearBusiness()
- {
- new string[128];
-
- foreach(new i : Player)
- {
- if(pLoggedIn[i])
- {
- for(new b = 0; b < MAX_BUSINESS; b++){
- if(BusinessData[b][businessID] != 0){
- if(IsPlayerInRangeOfPoint(i, 2.0, BusinessData[b][businessExt][0], BusinessData[b][businessExt][1], BusinessData[b][businessExt][2]) && TruckerMissionStep[i] != 2){
- if (!BusinessData[b][businessOwnerSQL]){
- if (BusinessData[b][businessType] == 8 || BusinessData[b][businessType] == 9)
- format(string, sizeof(string), "%s~n~~w~Entrance Fee : ~g~$%d~n~~p~To use /enter", BusinessData[b][businessName], BusinessData[b][businessFee]);
-
- else
- format(string, sizeof(string), "%s~n~~w~This business is for sale~n~Price : ~g~$%d~w~ Level : %d~n~~p~To buy use /buybiz", BusinessData[b][businessName], BusinessData[b][businessMarketPrice], BusinessData[b][businessLevel]);
- GameTextForPlayer(i, string, 5000, 3);
- }
- else{
- format(string, sizeof(string), "%s~n~~w~Owned By : %s~n~Entrance Fee : ~g~$%d~n~~p~To use /enter", BusinessData[b][businessName], ReturnSQLName(BusinessData[b][businessOwnerSQL]), BusinessData[b][businessFee]);
- GameTextForPlayer(i, string, 5000, 3);
- }
- }
- }
- }
- }
- }
- return true;
- }
- Server:OnPlayerNearPNS()
- {
- new string[128];
-
- foreach(new i : Player)
- {
- if(pLoggedIn[i])
- {
- for(new p = 0; p < MAX_PAYNSPRAY; p++){
- if(PNSData[p][pnsID] != 0){
- if(IsPlayerInRangeOfPoint(i, 2.0, PNSData[p][pnsEntrance][0], PNSData[p][pnsEntrance][1], PNSData[p][pnsEntrance][2])){
- format(string, sizeof(string), "%s", PNSData[p][pnsName]);
- GameTextForPlayer(i, string, 1500, 1);
- }
- }
- }
- }
- }
- return true;
- }
- Server:OnPlayerNearPickup()
- {
- new string[128];
-
- foreach(new i : Player)
- {
- if(pLoggedIn[i])
- {
- for(new h = 0; h < MAX_PROPERTY; h++){
- if(PropertyData[h][propertyid] != 0){
- if(PropertyData[h][propertyType] == 2){
- if(IsPlayerInRangeOfPoint(i, 1.5, PropertyData[h][propertyExterior][0], PropertyData[h][propertyExterior][1], PropertyData[h][propertyExterior][2])){
- if(GetPlayerVirtualWorld(i) == PropertyData[h][propertyExteriorWorld]){
- if (!PlayerData[i][pCheckpoint]){
- if(PropertyData[h][propertyOwnerSQL] == PlayerData[i][pSQLID]){
- SendClientMessage(i, COLOR_DARKGREEN, "Welcome to your apartment!");
- SendClientMessage(i, COLOR_WHITE, "Available commands: /enter, /knock, /ds, /ddo");
- PlayerData[i][pCheckpoint] = h;
- }
- else{
- PlayerData[i][pCheckpoint] = h;
-
- if(PropertyData[h][propertyRentable] && PlayerData[i][pRenting] != h){
- SendClientMessage(i, COLOR_WHITE, "Want to rent here? Use /rentroom");
- }
-
- if(PropertyData[h][propertyOwnerSQL] == 0){
- SendClientMessage(i, COLOR_DARKGREEN, "Would you like to buy this?");
- format(string, sizeof(string), "Price: $%d", PropertyData[h][propertyMarketPrice]);
- SendClientMessage(i, COLOR_DARKGREEN, string);
- }
- else{
- format(string, sizeof(string), "You're standing on %s's porch.", ReturnSQLName(PropertyData[h][propertyOwnerSQL]));
- SendClientMessage(i, COLOR_DARKGREEN, string);
- }
- SendClientMessage(i, COLOR_WHITE, "Available commands: /enter, /knock, /ds, /ddo");
- if(PropertyData[h][propertyOwnerSQL] == 0){
- SendClientMessage(i, COLOR_WHITE, "/buyhouse");
- }
-
- if(PlayerData[i][pAdminDuty])
- {
- Message(i, COLOR_YELLOW, "PROPERTY ID: [%i] DBID: [%i]", h, PropertyData[h][propertyid]);
- Message(i, COLOR_YELLOW, "USER ID: [%i] ", PropertyData[h][propertyOwnerSQL]);
- }
- }
- }
- }
- }
- }
- else if(PropertyData[h][propertyType] == 3){
- if(IsPlayerInRangeOfPoint(i, 1.5, PropertyData[h][propertyExterior][0], PropertyData[h][propertyExterior][1], PropertyData[h][propertyExterior][2])){
- if(GetPlayerVirtualWorld(i) == PropertyData[h][propertyExteriorWorld]){
- if (!PlayerData[i][pCheckpoint]){
- if(PropertyData[h][propertyOwnerSQL] == PlayerData[i][pSQLID]){
- SendClientMessage(i, COLOR_DARKGREEN, "Welcome to your house's porch!");
- SendClientMessage(i, COLOR_WHITE, "Available commands: /enter, /knock, /ds, /ddo");
- PlayerData[i][pCheckpoint] = h;
- }
- else{
- PlayerData[i][pCheckpoint] = h;
-
- if(PropertyData[h][propertyRentable] && PlayerData[i][pRenting] != h){
- SendClientMessage(i, COLOR_WHITE, "Want to rent here? Use /rentroom");
- }
-
- if(PropertyData[h][propertyOwnerSQL] == 0){
- SendClientMessage(i, COLOR_DARKGREEN, "Would you like to buy this?");
- format(string, sizeof(string), "Price: $%d", PropertyData[h][propertyMarketPrice]);
- SendClientMessage(i, COLOR_DARKGREEN, string);
- }
- else{
- format(string, sizeof(string), "You're standing on %s's porch.", ReturnSQLName(PropertyData[h][propertyOwnerSQL]));
- SendClientMessage(i, COLOR_DARKGREEN, string);
- }
- SendClientMessage(i, COLOR_WHITE, "Available commands: /enter, /knock, /ds, /ddo");
- if(PropertyData[h][propertyOwnerSQL] == 0){
- SendClientMessage(i, COLOR_WHITE, "/buyhouse");
- }
-
- if(PlayerData[i][pAdminDuty])
- {
- Message(i, COLOR_YELLOW, "PROPERTY ID: [%i] DBID: [%i]", h, PropertyData[h][propertyid]);
- Message(i, COLOR_YELLOW, "USER ID: [%i] ", PropertyData[h][propertyOwnerSQL]);
- }
- }
- }
- }
- }
- }
- else if(PropertyData[h][propertyType] == 1){
- if(IsPlayerInRangeOfPoint(i, 1.5, PropertyData[h][propertyExterior][0], PropertyData[h][propertyExterior][1], PropertyData[h][propertyExterior][2])){
- if(GetPlayerVirtualWorld(i) == PropertyData[h][propertyExteriorWorld]){
- if (!PlayerData[i][pCheckpoint]){
- if(PropertyData[h][propertyOwnerSQL] == PlayerData[i][pSQLID]){
- SendClientMessage(i, COLOR_DARKGREEN, "Welcome to your apartment complex!");
- SendClientMessage(i, COLOR_WHITE, "Available commands: /enter, /knock, /ds, /ddo");
- PlayerData[i][pCheckpoint] = h;
- }
- else{
- PlayerData[i][pCheckpoint] = h;
-
- if(PropertyData[h][propertyRentable] && PlayerData[i][pRenting] != h){
- SendClientMessage(i, COLOR_WHITE, "Want to rent here? Use /rentroom");
- }
-
- if(PropertyData[h][propertyOwnerSQL] == 0){
- SendClientMessage(i, COLOR_DARKGREEN, "Would you like to buy this?");
- format(string, sizeof(string), "Price: $%d", PropertyData[h][propertyMarketPrice]);
- SendClientMessage(i, COLOR_DARKGREEN, string);
- }
- else{
- if(PropertyData[h][propertyFaction] != 0){
- SendClientMessage(i, COLOR_DARKGREEN, "You're standing at Confidentials apartment complex.");
- }
- else {
- if(PropertyData[h][propertyOwnerSQL] != 0)
- {
- format(string, sizeof(string), "You're standing at %s's apartment complex.", ReturnSQLName(PropertyData[h][propertyOwnerSQL]));
- SendClientMessage(i, COLOR_DARKGREEN, string);
- }
- else SendClientMessage(i, COLOR_DARKGREEN, "Would you like to buy this?");
- }
- }
- SendClientMessage(i, COLOR_WHITE, "Available commands: /enter, /knock, /ds, /ddo");
- if(PropertyData[h][propertyOwnerSQL] == 0){
- SendClientMessage(i, COLOR_WHITE, "/buyhouse");
- }
-
- if(PlayerData[i][pAdminDuty])
- {
- Message(i, COLOR_YELLOW, "PROPERTY ID: [%i] DBID: [%i]", h, PropertyData[h][propertyid]);
- Message(i, COLOR_YELLOW, "USER ID: [%i] ", PropertyData[h][propertyOwnerSQL]);
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- return true;
- }
- Server:OnPlayerNearTolls()
- {
- new string[128];
- foreach(new i : Player){
- for(new t = 0; t < MAX_TOLLS; t++){
- if(TollsData[t][tollID] != 0){
- if(IsPlayerInRangeOfPoint(i, 3.0, TollsData[t][tollPointA][0], TollsData[t][tollPointA][1], TollsData[t][tollPointA][2]) || IsPlayerInRangeOfPoint(i, 3.0, TollsData[t][tollPointB][0], TollsData[t][tollPointB][1], TollsData[t][tollPointB][2])){
- if (PlayerData[i][pLAWduty]){
- if(GetPlayerState(i) == PLAYER_STATE_DRIVER){
- SendClientMessage(i, COLOR_ADM, "TOLL BOOTH:{FFFFFF} This toll will be free for you, /opentoll if you want to pass.");
- }
- }
- else{
- if(GetPlayerState(i) == PLAYER_STATE_DRIVER){
- format(string, sizeof(string), "TOLL BOOTH:{FFFFFF} This toll will cost $%d, /opentoll if you want to pass.", TollsData[t][tollPrice]);
- SendClientMessage(i, COLOR_ADM, string);
- }
- }
- }
- }
- }
- }
- return true;
- }
- Server:RefreshPlayer()
- {
- foreach(new i : Player){
- if (PlayerData[i][pCheckpoint] && PlayerData[i][pCheckpoint] != WEAPON_ORDER_NUMBER){
- new cp = PlayerData[i][pCheckpoint];
- if(!IsPlayerInRangeOfPoint(i, 2.0, PropertyData[cp][propertyExterior][0], PropertyData[cp][propertyExterior][1], PropertyData[cp][propertyExterior][2])){
- PlayerData[i][pCheckpoint] = false;
- DisablePlayerCheckpoint(i);
- }
- }
- }
- return true;
- }
- Server:OnPlayerTasered(playerid)
- {
- SetPlayerDrunkLevel(playerid, 1000);
- TogglePlayerControllable(playerid, 1);
-
- ApplyAnimation(playerid, "PED", "KO_skid_front", 4.1, 0, 1, 1, 1, 0);
- ApplyAnimation(playerid, "PED", "KO_skid_front", 4.1, 0, 1, 1, 1, 0);
- return 1;
- }
- Server:OnPlayerRubberbulleted(playerid)
- {
- SetPlayerDrunkLevel(playerid, 1000);
- TogglePlayerControllable(playerid, 1);
- ApplyAnimation(playerid, "SWEET", "Sweet_injuredloop", 4.1, 0, 1, 1, 1, 0);
- ApplyAnimation(playerid, "SWEET", "Sweet_injuredloop", 4.1, 0, 1, 1, 1, 0);
- return 1;
- }
- forward OnPlayerTackled(playerid, tackler, bool:tackled);
- public OnPlayerTackled(playerid, tackler, bool:tackled) {
- if (tackled) {
- SetPlayerDrunkLevel(playerid, 1000);
- TogglePlayerControllable(playerid, 1);
-
- ApplyAnimation(playerid, "PED", "KO_skid_front", 4.1, 0, 1, 1, 1, 0);
- ApplyAnimation(playerid, "PED", "KO_skid_front", 4.1, 0, 1, 1, 1, 0);
- } else {
- TogglePlayerControllable(tackler, 1);
- ApplyAnimation(tackler, "PED", "FLOOR_HIT", 4.1, 0, 1, 1, 1, 0);
- ApplyAnimation(tackler, "PED", "FLOOR_HIT", 4.1, 0, 1, 1, 1, 0);
- }
- return 1;
- }
- Server:FunctionPaychecks()
- {
- new hour, minute, second;
- gettime(hour, minute, second);
-
- if(minute == 00 && second == 59){
- CallPaycheck();
- SetWorldTime(hour+1);
- }
- return true;
- }
- Server:OnVehicleUpdate()
- {
- foreach(new i : Player){
- if(pLoggedIn[i]){
- if(GetPlayerState(i) == PLAYER_STATE_DRIVER){
- new string[128], tmpcar = GetPlayerVehicleID(i), Float:vehicleHealth;
- GetVehicleHealth(tmpcar, vehicleHealth);
-
- if(vehicleHealth <= 248){
- if(CarData[tmpcar][carID] != 0){
- new Float:life_deplete;
-
- life_deplete = CarData[tmpcar][carEngine] / 1.30;
-
- if(life_deplete < 1.00)
- CarData[tmpcar][carEngine] = 0.0;
-
- else CarData[tmpcar][carEngine] = life_deplete;
- CarData[tmpcar][carBattery]-= 10.00;
-
- CarData[tmpcar][carTimeDestroyed]++;
-
- CarData[tmpcar][carLastHealth] = 1000;
- SaveCar(tmpcar);
-
- if(DoesVehicleHaveCrate(tmpcar))
- {
- ClearActiveCrate(tmpcar);
- }
-
- format(string, sizeof(string), "%s (ID %d) was destroyed with %s as the driver", ReturnVehicleName(tmpcar), tmpcar, ReturnName(i, 1));
- adminWarn(1, string);
-
- format(string, sizeof(string), "Destroyed. %s was driver", ReturnName(i, 1));
- LogVehicleAction(tmpcar, string);
-
- for(new b = 1; b < 5; b++)
- {
- if(IsValidDynamicObject(CarData[tmpcar][carWeaponObject][b]))
- DestroyDynamicObject(CarData[tmpcar][carWeaponObject][b]);
- }
-
- foreach(new n : Player){
-
- if(strfind(ReturnName(n, 1), ReturnSQLName(CarData[tmpcar][carOwnerID]), true) != -1) {
- format(string, sizeof(string), "Your %s has been destroyed.", ReturnVehicleName(tmpcar));
- SendClientMessage(n, COLOR_ADM, string);
- format(string, sizeof(string), "LIFESPAN: Engine Health reduced to {FFFFFF}%.2f. {FF6346}Battery Health reduced to {FFFFFF}%.2f{FF6346}.", CarData[tmpcar][carEngine], CarData[tmpcar][carBattery]);
- SendClientMessage(n, COLOR_ADM, string);
-
- _has_vehicle_spawned[n] = false;
- }
- else{
- new
- query[128];
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET HasCarSpawned = 0 WHERE id = %i LIMIT 1", CarData[tmpcar][carOwnerID]);
- mysql_pquery(m_Handle, query);
- }
- }
-
- foreach(new f : Player) if(PlayerBreakInVehicle[f] == tmpcar)
- {
- if(IsValidDynamic3DTextLabel(BreakInTextDraw[f]))
- {
- DestroyDynamic3DTextLabel(BreakInTextDraw[f]);
- }
-
- BreakInLevel[f] = 0;
- KillTimer(BreakInTDTimer[f]);
-
- //Clearing variables:
- PlayerBreakInVehicle[f] = INVALID_VEHICLE_ID;
- PlayerBreakingIn[f] = 0;
-
- BreakInError[f] = 0;
- BreakInLevel[f] = 0;
-
- ActiveLockTD[f] = 0;
- }
-
- DefaultVehicleValues(tmpcar);
- DestroyVehicle(tmpcar);
- }
- }
- }
- }
- }
- return true;
- }
- Server:TIMER_StopPlateShow(playerid)
- {
- for(new i = 0; i < 2; i++)
- {
- PlayerTextDrawHide(playerid, CarBought_PTD[playerid][i]);
- }
-
- return true;
- }
- Server:TIMER_LoadingInterior(playerid)
- {
- return TogglePlayerControllable(playerid, true);
- }
- Server:TIMER_ExitPNS(playerid)
- {
- new ppns = PlayerData[playerid][pInsidePNS];
- SendPlayer(playerid, PNSData[ppns][pnsEntrance][0], PNSData[ppns][pnsEntrance][1], PNSData[ppns][pnsEntrance][2], 0, 0);
-
- PNSData[ppns][pnsOccupied] = false;
- PlayerData[playerid][pInsidePNS] = false;
-
- SendClientMessage(playerid, COLOR_DARKGREEN, "Auto-Voice: Enjoy your repair.");
- TogglePlayerControllable(playerid, true);
-
- return true;
- }
- public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
- {
- if(PlayerData[playerid][pAdminDuty])
- {
- SetPlayerPosFindZ(playerid, fX, fY, fZ);
- SendClientMessage(playerid, COLOR_GREY, "You were teleported (May not be accurate)");
- }
- return 1;
- }
- Server:CallPaycheck()
- {
- new string[128], taxCost, Float:interestGain, Float:savingsGain, Paycheck, Float:inter, Float:save;
-
- foreach(new i : Player) {
- if(pLoggedIn[i]) {
-
- new bank = PlayerData[i][pBank], savings = PlayerData[i][pSavings];
-
- Paycheck = 0;
- taxCost = Paycheck / 10;
-
- save = 0.5;
- switch (PlayerData[i][pDonator]) {
- case 1: inter = 0.2;
- case 2: inter = 0.3;
- case 3: inter = 0.4;
- case 4: inter = 0.5;
- default: inter = 0.1;
- }
-
- interestGain = (bank / 100) * inter;
- savingsGain = (savings / 100) * save;
-
- if(PlayerData[i][pLevel] == 0) Paycheck += 2500;
- else if(PlayerData[i][pLevel] == 1) Paycheck += 1500;
- if (PlayerData[i][pJob] == MECHANIC_JOB || PlayerData[i][pSidejob] == MECHANIC_JOB) Paycheck += 1500;
-
- switch(PlayerData[i][pDonator])
- {
- case 2: Paycheck += 1000;
- case 3: Paycheck += 1500;
- case 4: Paycheck += 2000;
- }
-
- new saveGain = floatround(savingsGain, floatround_round);
- new intGain = floatround(interestGain, floatround_round);
-
- if(PlayerData[i][pFaction] > 0 /*&& FactionData[PlayerData[i][pFaction]][factionBank] > 0*/)
- {
- /*new factionPay;
- factionPay = FactionData[PlayerData[i][pFaction]][factionBank] / CountOnlineMembers(PlayerData[i][pFaction]);
-
- Paycheck += factionPay;
- FactionData[PlayerData[i][pFaction]][factionBank]-= factionPay;*/
- new factionPay = 0, faction = PlayerData[i][pFaction];
- if (IsPoliceFaction(i)) {
- if (PlayerData[i][pFactionRank] >= FactionData[faction][factionTowrank]) {
- factionPay += 4500;
- } else {
- factionPay += 2500;
- }
- } else if (IsMedicFaction(i)) {
- factionPay += 2500;
- } else if (IsNewsFaction(i)) {
- factionPay += 2500;
- }
- Paycheck += factionPay;
- }
-
- new carOwnerIG = 0;
- new carID_Found;
- for(new v = 1, j = GetVehiclePoolSize(); v <= j; v++)
- {
- if(!IsValidPlayerCar(v))
- continue;
-
- if(IsVehicleOccupied(v))
- continue;
-
- foreach(new c : Player)
- {
- if(PlayerData[c][pSQLID] == CarData[v][carOwnerID])
- {
- carOwnerIG = 1;
- carID_Found = v;
- }
- }
- }
- if(!carOwnerIG)
- {
- SaveCar(carID_Found);
- DestroyVehicle(carID_Found);
- }
-
- if(PlayerData[i][pLevel] == 0 || PlayerData[i][pLevel] == 1)
- {
- new exp = ((PlayerData[i][pLevel]) * 4 + 2);
- if(PlayerData[i][pExp] >= exp)
- {
- cmd_levelup(i, "");
- }
- }
-
- format(string, sizeof(string), "SERVER TIME:[ %s ]", ReturnHour());
- SendClientMessage(i, COLOR_WHITE, string);
-
- SendClientMessage(i, COLOR_WHITE, "|___ BANK STATEMENT ___|");
- format(string, sizeof(string), " Balance: $%s", MoneyFormat(PlayerData[i][pBank]));
- SendClientMessage(i, COLOR_GREY, string);
- SendClientMessage(i, COLOR_GREY, sprintf(" Interest rate: %f", inter));
-
- PlayerData[i][pPaycheck] += Paycheck;
- PlayerData[i][pBank] -= PropertyData[PlayerData[i][pRenting]][propertyRentPrice];
- PlayerData[i][pBank] -= taxCost;
- PlayerData[i][pBank] += intGain;
-
- if(PlayerData[i][pSavings] > 0) {
- PlayerData[i][pSavings] += saveGain;
- }
-
- format(string, sizeof(string), " Interest Gained: $%s", MoneyFormat(intGain));
- SendClientMessage(i, COLOR_GREY, string);
-
- format(string, sizeof(string), " Tax paid: $%s", MoneyFormat(taxCost));
- SendClientMessage(i, COLOR_GREY, string);
-
- if(PlayerData[i][pSavings] > 0) {
- format(string, sizeof(string), " Savings income: $%s, at rate: 0.5", MoneyFormat(saveGain));
- SendClientMessage(i, COLOR_GREY, string);
-
- format(string, sizeof(string), " Savings new balance: $%s", MoneyFormat(PlayerData[i][pSavings]));
- SendClientMessage(i, COLOR_GREY, string);
- }
-
- SendClientMessage(i, COLOR_WHITE, "|________________________|");
- format(string, sizeof(string), " New Balance: $%s", MoneyFormat(PlayerData[i][pBank]));
- SendClientMessage(i, COLOR_WHITE, string);
- format(string, sizeof(string), " Rent: -$%s", MoneyFormat(PropertyData[PlayerData[i][pRenting]][propertyRentPrice]));
- SendClientMessage(i, COLOR_WHITE, string);
- format(string, sizeof(string), " Paycheck: $%s", MoneyFormat(PlayerData[i][pPaycheck]));
- SendClientMessage(i, COLOR_WHITE, string);
- if (PlayerData[i][pLevel] == 0) {
- SendClientMessage(i, COLOR_WHITE, "(( You have received $2500 as level 0 ))");
- } else if (PlayerData[i][pLevel] == 1) {
- SendClientMessage(i, COLOR_WHITE, "(( You have received $1500 as a level 1 ))");
- }
- format(string, sizeof(string), "~y~Payday~n~~w~Paycheck~n~~g~$%s", MoneyFormat(Paycheck));
- GameTextForPlayer(i, string, 3000, 1);
-
- SavePlayer(i);
- }
- }
- return true;
- }
- Server:TIMER_LSLVTolls(id)
- {
- SetDynamicObjectRot(tollObject2, 0.000000, -90.000000, 348.10229492188);
- SetDynamicObjectRot(tollObject1, 0.000000, -90.000000, 169.43664550781);
- TollsData[id][tollStatus] = false;
- return true;
- }
- Server:TIMER_RodeoTolls(id)
- {
- SetDynamicObjectRot(tollObject3, 0.000000, -90.000000, 23.81982421875);
- SetDynamicObjectRot(tollObject4, 0.000000, -90.000000, 214.37744140625);
- TollsData[id][tollStatus] = false;
-
- return true;
- }
- Server:TIMER_FlintTolls(id)
- {
- SetDynamicObjectRot(tollObject5, 0.000000, -90.000000, 270.67565917969);
- SetDynamicObjectRot(tollObject6, 0.000000, -90.000000, 87.337799072266);
- TollsData[id][tollStatus] = false;
- return true;
- }
- Server:OnVehicleTow(playerid)
- {
- new vehicleid = _has_spawned_vehicleid[playerid], newDisplay[128];
-
- if(IsVehicleOccupied(vehicleid))
- {
- KillTimer(playerTowTimer[playerid]);
- Delete3DTextLabel(vehicleTowSign[vehicleid]);
-
- SendClientMessage(playerid, COLOR_DARKGREEN, "Your tow was interrupted.");
-
- playerVehicleTowCount[playerid] = 0;
- playerTowingVehicle[playerid] = false;
- return 1;
- }
-
- playerVehicleTowCount[playerid]++;
-
- if(playerVehicleTowCount[playerid] == 1) newDisplay = "(( || ))\nTOWING VEHICLE";
- if(playerVehicleTowCount[playerid] == 2) newDisplay = "(( ||| ))\nTOWING VEHICLE";
- if(playerVehicleTowCount[playerid] == 3) newDisplay = "(( |||| ))\nTOWING VEHICLE";
- if(playerVehicleTowCount[playerid] == 4) newDisplay = "(( ||||| ))\nTOWING VEHICLE";
- if(playerVehicleTowCount[playerid] == 5) newDisplay = "(( |||||| ))\nTOWING VEHICLE";
- if(playerVehicleTowCount[playerid] == 6) newDisplay = "(( ||||||| ))\nTOWING VEHICLE";
- if(playerVehicleTowCount[playerid] == 7) newDisplay = "(( |||||||| ))\nTOWING VEHICLE";
- if(playerVehicleTowCount[playerid] == 8) newDisplay = "(( |||||||| ))\nTOWING VEHICLE";
-
- Update3DTextLabelText(vehicleTowSign[vehicleid], COLOR_DARKGREEN, newDisplay);
-
- if(playerVehicleTowCount[playerid] == 9)
- {
- SendClientMessage(playerid, COLOR_DARKGREEN, "Your vehicle has been towed.");
- GiveMoney(playerid, -50);
-
- playerTowingVehicle[playerid] = false;
-
- if(CarData[vehicleid][carImpounded])
- {
- SetVehiclePos(vehicleid, CarData[vehicleid][carImpoundPos][0], CarData[vehicleid][carImpoundPos][1], CarData[vehicleid][carImpoundPos][2]);
- SetVehicleZAngle(vehicleid, CarData[vehicleid][carImpoundPos][3]);
- }
- else SetVehicleToRespawn(vehicleid);
-
- Delete3DTextLabel(vehicleTowSign[vehicleid]);
- KillTimer(playerTowTimer[playerid]);
-
- playerVehicleTowCount[playerid] = 0;
- return 1;
- }
-
- return 1;
- }
- Server:TIMER_HideTextdraw(playerid)
- {
- for(new i = 0; i < 9; i++){
- TextDrawHideForPlayer(playerid, furnitureadd_TD[i]);
- }
- return true;
- }
- /*Server:WeaponsUpdater(playerid)
- {
- new placeSlot, id;
-
- for (new i = 0; i < 4; i++)
- {
- if (Weapon[playerid][i][eWeaponAmmo] > 0)
- {
- id = Weapon[playerid][i][eWeaponID];
- placeSlot = ReturnWeaponsSlot(id);
-
- if (IsWeaponShowable(id) && EditingDisplay[playerid] != id)
- {
- if (GetPlayerWeapon(playerid) != id && !WeaponDisplay[playerid][id][weaponHidden])
- {
- SetPlayerAttachedObject (playerid, placeSlot, ReturnWeaponsModel(id), WeaponDisplay[playerid][id][weaponBone], WeaponDisplay[playerid][id][weaponPos][0], WeaponDisplay[playerid][id][weaponPos][1], WeaponDisplay[playerid][id][weaponPos][2],
- WeaponDisplay[playerid][id][weaponRot][0], WeaponDisplay[playerid][id][weaponRot][1], WeaponDisplay[playerid][id][weaponRot][2]);
-
- PlayerAttachedWeapons[playerid][GetWeaponIndex(i)] = id;
- }
- else
- {
- if (IsPlayerAttachedObjectSlotUsed(playerid, placeSlot))
- {
- RemovePlayerAttachedObject(playerid, placeSlot);
- PlayerAttachedWeapons[playerid][GetWeaponIndex(i)] = 0;
- }
- }
- }
- }
- else if(Weapon[playerid][i][eWeaponID] && Weapon[playerid][i][eWeaponAmmo] < 1)
- {
- placeSlot = ReturnWeaponsSlot(Weapon[playerid][i][eWeaponID]);
-
- if(IsPlayerAttachedObjectSlotUsed(playerid, placeSlot))
- {
- RemovePlayerAttachedObject(playerid, placeSlot);
- }
- }
- }
- return true;
- }*/
-
- Server:SavePlayerPos(playerid, bool:save)
- {
- GetPlayerPos(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]);
- GetPlayerFacingAngle(playerid, PlayerData[playerid][pPos][3]);
- PlayerData[playerid][pInterior] = GetPlayerInterior(playerid);
- PlayerData[playerid][pWorld] = GetPlayerVirtualWorld(playerid);
- if(save){
- new query[256];
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET LastX = %f, LastY = %f, LastZ = %f, LastRot = %f, Interior = %i, World = %i WHERE id = %i LIMIT 1", PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2], PlayerData[playerid][pPos][3], PlayerData[playerid][pInterior], PlayerData[playerid][pWorld], PlayerData[playerid][pSQLID]);
- mysql_pquery(m_Handle, query);
- }
- return true;
- }
- Server:SavePlayer(playerid)
- {
- if(pLoggedIn[playerid]) {
- SavePlayerPos(playerid, true);
- SavePlayerWeapons(playerid);
-
- GetPlayerHealth(playerid, PlayerData[playerid][pLastHealth]);
- GetPlayerArmour(playerid, PlayerData[playerid][pLastArmor]);
- new query[400];
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET AdminLevel = %i, Money = %i, Level = %i, Exp = %i, Skin = %i, MaskID = %i, MaskIDEx = %i WHERE id = %i LIMIT 1", PlayerData[playerid][pAdmin], PlayerData[playerid][pMoney], PlayerData[playerid][pLevel], PlayerData[playerid][pExp], PlayerData[playerid][pSkin], PlayerData[playerid][pMaskID], PlayerData[playerid][pMaskIDEx], PlayerData[playerid][pSQLID]);
- mysql_tquery(m_Handle, query);
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET Bank = %i, Adminjailed = %i, AjailTime = %i, MaxHealth = %i, LastHealth = %.2f, LastArmor = %.2f, Renting = %i WHERE id = %i LIMIT 1", PlayerData[playerid][pBank], PlayerData[playerid][pAjailed], PlayerData[playerid][pAjailTime], PlayerData[playerid][pMaxHealth], PlayerData[playerid][pLastHealth], PlayerData[playerid][pLastArmor], PlayerData[playerid][pRenting], PlayerData[playerid][pSQLID]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET IP = '%e', MainSlot = %i, Phone = %i, Donator = %i, Helper = %i WHERE id = %i LIMIT 1", PlayerData[playerid][pIP], PlayerData[playerid][pMainSlot], PlayerData[playerid][pPhone], PlayerData[playerid][pDonator], PlayerData[playerid][pHelper], PlayerData[playerid][pSQLID]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET OfflineAjail = 0, OfflineAjailReason = '%e' WHERE id = %i LIMIT 1", PlayerData[playerid][pOffAjailReason], PlayerData[playerid][pSQLID]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET HoursPlayed = %i, Paycheck = %i, Walkstyle = %i, Chatstyle = %i WHERE id = %i LIMIT 1", PlayerData[playerid][pHoursPlayed], PlayerData[playerid][pPaycheck], PlayerData[playerid][pWalkstyle], PlayerData[playerid][pChatstyle], PlayerData[playerid][pSQLID]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET PhoneOff = %i, ActiveListing = %i, JailTimes = %i, PrisonTimes = %i, Cigarettes = %i, Drinks = %i WHERE id = %i LIMIT 1", PlayerData[playerid][pPhoneOff], PlayerData[playerid][pActiveListing], PlayerData[playerid][pJailTimes], PlayerData[playerid][pPrisonTimes], PlayerData[playerid][pCigarettes], PlayerData[playerid][pDrinks], PlayerData[playerid][pSQLID]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET InsideHouse = %i, InsideComplex = %i, InsideApartment = %i, InsideGarage = %i, InsideBusiness = %i, WorkOn = %i WHERE id = %i LIMIT 1", PlayerData[playerid][pInsideHouse], PlayerData[playerid][pInsideComplex], PlayerData[playerid][pInsideApartment], PlayerData[playerid][pInsideGarage], PlayerData[playerid][pInsideBusiness], PlayerData[playerid][pWorkOn], PlayerData[playerid][pSQLID]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET DriversLicense = %i, WeaponsLicense = %i, Gender = %i, SpawnSelect = %i, SpawnHouse = %i, Crashed = %i, Playtime = %i, ICJailed = %i, ICJailTime = %i, Fightstyle = %i WHERE id = %i LIMIT 1", PlayerData[playerid][pDriversLicense], PlayerData[playerid][pWeaponsLicense], PlayerData[playerid][pGender], PlayerData[playerid][pSpawnSelect], PlayerData[playerid][pSpawnHouse], PlayerData[playerid][pCrashed], PlayerData[playerid][pPlayTime], PlayerData[playerid][pICJailed], PlayerData[playerid][pICJailTime], PlayerData[playerid][pFightstyle], PlayerData[playerid][pSQLID]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET HasCarSpawned = %i, HasCarSpawnedID = %i, AdmMessageConfirm = %i, AdminMessage = '%e', AdminMessageBy = '%e', UpgradePoints = %i, HUD = %i, HUDToggled = %i WHERE id = %i LIMIT 1", _has_vehicle_spawned[playerid], _has_spawned_vehicleid[playerid], PlayerData[playerid][pAdmMsgConfirm], PlayerData[playerid][pAdminMsg], PlayerData[playerid][pAdminMsgBy], PlayerData[playerid][pUpgradePoints], PlayerData[playerid][pHUD], PlayerData[playerid][pHUDToggled], PlayerData[playerid][pSQLID]);
- mysql_tquery(m_Handle, query);
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET Job = %i, Sidejob = %i, LastConnection = '%e', LastConnectLength = %i, HWID = '%e', HasRadio = %i, BrutallyWounded = %i, DCToggle = %i, Savings = %i WHERE id = %i LIMIT 1", PlayerData[playerid][pJob], PlayerData[playerid][pSidejob], PlayerData[playerid][pLastConnect], PlayerData[playerid][pLastConnectTime], PlayerData[playerid][pHWID], PlayerData[playerid][pHasRadio], PlayerData[playerid][pBrutallyWounded], PlayerData[playerid][pDCToggled], PlayerData[playerid][pSavings], PlayerData[playerid][pSQLID]);
- mysql_tquery(m_Handle, query);
- for(new c = 1; c < MAX_OWNED_CARS; c++){
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET OwnedCar%d = %d WHERE id = %i LIMIT 1", c, PlayerData[playerid][pOwnedCar][c - 1], PlayerData[playerid][pSQLID]);
- mysql_tquery(m_Handle, query);
- }
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET Faction = %i, FactionRank = %i, HasBurnerPhone = %i, BurnerPhoneNumber = %i, OrderWeaponRestricted = %i, OrderWeaponTime = %i, SpawnPrecinct = %i WHERE id = %i", PlayerData[playerid][pFaction], PlayerData[playerid][pFactionRank], PlayerData[playerid][pHasBurnerPhone], PlayerData[playerid][pBurnerPhoneNumber], PlayerData[playerid][pWepOrderRestricted], OrderWeaponTime[playerid], PlayerData[playerid][pSpawnPrecinct], PlayerData[playerid][pSQLID]);
- mysql_tquery(m_Handle, query);
-
- for(new r = 0; r < 5; r++){
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET Radio%d = %d, Slot%d = %d WHERE id = %i", (r+1), PlayerData[playerid][pRadio][r], (r+1), PlayerData[playerid][pRadioSlot][r], PlayerData[playerid][pSQLID]);
- mysql_tquery(m_Handle, query);
- }
-
- for(new p = 1; p < MAX_WEAPON_PACKAGES; p++){
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET Package%d = %i, Package%dA = %i WHERE id = %i", p, PackageData[playerid][packageWeapon][p], p, PackageData[playerid][packageAmmo][p], PlayerData[playerid][pSQLID]);
- mysql_tquery(m_Handle, query);
- }
- }
- return true;
- }
- Server:SaveFactionCar(vehicleid)
- {
- new query[256];
-
- if(IsValidFactionCar(vehicleid)){
- mysql_format(m_Handle, query, sizeof(query), "UPDATE factioncars SET factionid = %i, ModelID = %d, PosX = %f, PosY = %f, PosZ = %f, PosA = %f WHERE id = %i",
- FactionCar[vehicleid][carFaction], FactionCar[vehicleid][carModel], FactionCar[vehicleid][carPos][0], FactionCar[vehicleid][carPos][1], FactionCar[vehicleid][carPos][2], FactionCar[vehicleid][carPos][3],
- FactionCar[vehicleid][carID]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE factioncars SET Interior = %i, World = %i, Color1 = %i, Color2 = %i, Sirens = %i, Gunrack = %i, Plate = '%e' WHERE id = %i",
- FactionCar[vehicleid][carInterior], FactionCar[vehicleid][carWorld], FactionCar[vehicleid][carColor1], FactionCar[vehicleid][carColor2], FactionCar[vehicleid][carSirens],
- FactionCar[vehicleid][carGunRack], FactionCar[vehicleid][carLicensePlate], FactionCar[vehicleid][carID]);
- mysql_tquery(m_Handle, query);
- printf("[DEBUG] Vehicle ID %d ( DBID : %d ) saved. (Factionized)", vehicleid, FactionCar[vehicleid][carID]);
- }
- return true;
- }
- Server:SaveCar(vehicleid)
- {
- new query[256];
- new car = CarData[vehicleid][carID];
- if(car != 0)
- {
- GetVehicleDamageStatus(vehicleid, CarData[vehicleid][carPanelStatus], CarData[vehicleid][carDoorsStatus], CarData[vehicleid][carLightsStatus], CarData[vehicleid][carTiresStatus]);
- GetVehicleHealth(vehicleid, CarData[vehicleid][carLastHealth]);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE ownedcars SET OwnerID = %i, ModelID = %d, PosX = %f, PosY = %f, PosZ = %f, PosA = %f, Interior = %d, World = %d WHERE id = %i", CarData[vehicleid][carOwnerID], CarData[vehicleid][carModel], CarData[vehicleid][carPos][0], CarData[vehicleid][carPos][1], CarData[vehicleid][carPos][2], CarData[vehicleid][carPos][3], CarData[vehicleid][carInterior], CarData[vehicleid][carWorld], CarData[vehicleid][carID]);
- mysql_tquery(m_Handle, query);
- mysql_format(m_Handle, query, sizeof(query), "UPDATE ownedcars SET Color1 = %d, Color2 = %d, Locked = %d, Fuel = %f, Paintjob = %d, XMR = %d, Impounded = %d WHERE id = %i", CarData[vehicleid][carColor1], CarData[vehicleid][carColor2], CarData[vehicleid][carLocked], CarData[vehicleid][carFuel], CarData[vehicleid][carPaintjob], CarData[vehicleid][carXMR], CarData[vehicleid][carImpounded], CarData[vehicleid][carID]);
- mysql_tquery(m_Handle, query);
- mysql_format(m_Handle, query, sizeof(query), "UPDATE ownedcars SET ImpoundPosX = %f, ImpoundPosY = %f, ImpoundPosZ = %f, ImpoundPosA = %f WHERE id = %i", CarData[vehicleid][carImpoundPos][0], CarData[vehicleid][carImpoundPos][1], CarData[vehicleid][carImpoundPos][2], CarData[vehicleid][carImpoundPos][3], CarData[vehicleid][carID]);
- mysql_tquery(m_Handle, query);
- mysql_format(m_Handle, query, sizeof(query), "UPDATE ownedcars SET EngineLife = %f, BatteryLife = %f WHERE id = %i", CarData[vehicleid][carEngine], CarData[vehicleid][carBattery], CarData[vehicleid][carID]);
- mysql_tquery(m_Handle, query);
- mysql_format(m_Handle, query, sizeof(query), "UPDATE ownedcars SET LockLevel = %d, AlarmLevel = %d, ImmobLevel = %d, Insurance = %d, TimesDestroyed = %d, Plate = '%e' WHERE id = %i", CarData[vehicleid][carLock], CarData[vehicleid][carAlarm], CarData[vehicleid][carImmob], CarData[vehicleid][carInsurance], CarData[vehicleid][carTimeDestroyed], CarData[vehicleid][carPlates], CarData[vehicleid][carID]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE ownedcars SET LastDriver = %i, LastPassenger = %i WHERE id = %i", CarData[vehicleid][carlastDriver], CarData[vehicleid][carlastPassenger], CarData[vehicleid][carID]);
- mysql_tquery(m_Handle, query);
- for(new w = 1; w < 5; w++) {
- mysql_format(m_Handle, query, sizeof(query), "UPDATE ownedcars SET Weapons%d = %d, Ammo%d = %d WHERE id = %i", w, CarData[vehicleid][carWeapons][w], w, CarData[vehicleid][carWeaponsAmmo][w], CarData[vehicleid][carID]);
- mysql_tquery(m_Handle, query);
- }
- for(new p = 1; p < 21; p++) {
- mysql_format(m_Handle, query, sizeof(query), "UPDATE ownedcars SET Packages%d = %d, PackagesAmmo%d = %d WHERE id = %i", p, CarData[vehicleid][carPackages][p], p, CarData[vehicleid][carPackagesAmmo][p], CarData[vehicleid][carID]);
- mysql_tquery(m_Handle, query);
- }
- for(new m = 1; m < 14; m++) {
- mysql_format(m_Handle, query, sizeof(query), "UPDATE ownedcars SET CarMods%d = %d WHERE id = %i", m, CarData[vehicleid][carMods][m], CarData[vehicleid][carID]);
- mysql_tquery(m_Handle, query);
- }
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE ownedcars SET LastHealth = %f, Panels = %i, Doors = %i, Lights = %i, Tires = %i WHERE id = %i", CarData[vehicleid][carLastHealth], CarData[vehicleid][carPanelStatus], CarData[vehicleid][carDoorsStatus], CarData[vehicleid][carLightsStatus], CarData[vehicleid][carTiresStatus], CarData[vehicleid][carID]);
- mysql_tquery(m_Handle, query);
- printf("[DEBUG] Vehicle ID %d ( DBID : %d ) saved. (Private)", vehicleid, CarData[vehicleid][carID]);
- }
- return true;
- }
- Server:SavePropertyGarage(id)
- {
- new query[256];
-
- if(id != 0)
- {
- mysql_format(m_Handle, query, sizeof(query), "UPDATE property_garages SET PosX = %f, PosY = %f, PosZ = %f, PosA = %f WHERE id = %i", GarageData[id][garagePos][0], GarageData[id][garagePos][1], GarageData[id][garagePos][2], GarageData[id][garagePos][3], GarageData[id][garageSQLID]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE property_garages SET IntX = %f, IntY = %f, IntZ = %f, IntA = %f WHERE id = %i", GarageData[id][garageInt][0], GarageData[id][garageInt][1], GarageData[id][garageInt][2], GarageData[id][garageInt][3], GarageData[id][garageSQLID]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE property_garages SET InteriorID = %i, InteriorWorld = %i, Type = %i, PropertyID = %i, Locked = %i, Faction = %i WHERE id = %i", GarageData[id][garageInteriorID], GarageData[id][garageWorld], GarageData[id][garageType], GarageData[id][garagePropertyID], GarageData[id][garageLocked], GarageData[id][garageFaction], GarageData[id][garageSQLID]);
- mysql_tquery(m_Handle, query);
- }
- return true;
- }
- Server:SaveDoor(doorid)
- {
- new query[200];
-
- if(doorid != 0)
- {
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE doors SET PosX = %f, PosY = %f, PosZ = %f, PosInterior = %i, PosWorld = %i WHERE id = %i",
- DoorData[doorid][doorPos][0], DoorData[doorid][doorPos][1], DoorData[doorid][doorPos][2], DoorData[doorid][doorPosIntID], DoorData[doorid][doorPosWorld], DoorData[doorid][doorID]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE doors SET IntX = %f, IntY = %f, IntZ = %f, IntA = %f, IntInterior = %i, IntWorld = %i WHERE id = %i",
- DoorData[doorid][doorInt][0], DoorData[doorid][doorInt][1], DoorData[doorid][doorInt][2], DoorData[doorid][doorInt][3], DoorData[doorid][doorIntID], DoorData[doorid][doorIntWorld],
- DoorData[doorid][doorIntWorld], DoorData[doorid][doorID]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE doors SET Faction = %i, Name = '%e', Locked = %i WHERE id = %i", DoorData[doorid][doorFaction], DoorData[doorid][doorName], DoorData[doorid][doorLocked],
- DoorData[doorid][doorID]);
- mysql_tquery(m_Handle, query);
-
- printf("[DEBUG] Dynamic Door %d ( DBID: %d ) was saved.", doorid, DoorData[doorid][doorID]);
- }
- return true;
- }
- Server:SaveFaction(factionid)
- {
- new query[456];
- mysql_format(m_Handle, query, sizeof(query), "UPDATE factions SET Name = '%e', Abbreviation = '%e', MaxRanks = %d, Bank = %i, HasWarehouseAccess = %i, Products = %i WHERE id = %i", FactionData[factionid][factionName], FactionData[factionid][factionAbbrev], FactionData[factionid][factionMaxRanks], FactionData[factionid][factionBank], FactionData[factionid][factionWarehousePerms], FactionData[factionid][factionProducts], FactionData[factionid][factionID]);
- mysql_tquery(m_Handle, query);
- mysql_format(m_Handle, query, sizeof(query), "UPDATE factions SET EditRank = %d, ChatRank = %d, TowRank = %d, ChatColor = %d, ChatStatus = %d, CopPerms = %d, MedPerms = %d, NewsPerms = %d WHERE id = %i",
- FactionData[factionid][factionEditrank], FactionData[factionid][factionChatrank], FactionData[factionid][factionTowrank], FactionData[factionid][factionChatColor], FactionData[factionid][factionChatStatus],
- FactionData[factionid][factionCopPerms], FactionData[factionid][factionMedPerms], FactionData[factionid][factionNewsPerms], FactionData[factionid][factionID]);
- mysql_tquery(m_Handle, query);
- mysql_format(m_Handle, query, sizeof(query), "UPDATE factions SET SpawnX = %f, SpawnY = %f, SpawnZ = %f, SpawnA = %f WHERE id = %i", FactionData[factionid][factionSpawn][0], FactionData[factionid][factionSpawn][1],
- FactionData[factionid][factionSpawn][2], FactionData[factionid][factionSpawn][3], FactionData[factionid][factionID]);
- mysql_tquery(m_Handle, query);
- return true;
- }
- Server:SaveFactionRanks(factionid)
- {
- new
- query[456];
-
- for(new i = 1; i < MAX_FACTION_RANKS; i++)
- {
- mysql_format(m_Handle, query, sizeof(query), "UPDATE faction_ranks SET factionrank%i = '%e' WHERE faction_id = %i", i, FactionRanks[factionid][i], FactionData[factionid][factionID]);
- mysql_tquery(m_Handle, query);
- }
- return 1;
- }
- Server:SaveProperty(id)
- {
- new query[300];
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE properties SET OwnerSQL = %i, Type = %i, ComplexID = %i WHERE id = %i", PropertyData[id][propertyOwnerSQL], PropertyData[id][propertyType], PropertyData[id][propertyComplexLink], PropertyData[id][propertyid]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE properties SET ExteriorX = %f, ExteriorY = %f, ExteriorZ = %f, ExteriorID = %i, ExteriorWorld = %i WHERE id = %i", PropertyData[id][propertyExterior][0], PropertyData[id][propertyExterior][1], PropertyData[id][propertyExterior][2], PropertyData[id][propertyExteriorID], PropertyData[id][propertyExteriorWorld], PropertyData[id][propertyid]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE properties SET InteriorX = %f, InteriorY = %f, InteriorZ = %f, InteriorA = %f, InteriorID = %i, InteriorWorld = %i WHERE id = %i", PropertyData[id][propertyInterior][0], PropertyData[id][propertyInterior][1], PropertyData[id][propertyInterior][2], PropertyData[id][propertyInterior][3], PropertyData[id][propertyInteriorID], PropertyData[id][propertyInteriorWorld], PropertyData[id][propertyid]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE properties SET MarketPrice = %i, Rentable = %i, RentPrice = %i, Locked = %i, Money = %i, Level = %i WHERE id = %i", PropertyData[id][propertyMarketPrice], PropertyData[id][propertyRentable], PropertyData[id][propertyRentPrice], PropertyData[id][propertyLocked], PropertyData[id][propertyMoney], PropertyData[id][propertyLevel], PropertyData[id][propertyid]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE properties SET CheckPosX = %f, CheckPosY = %f, CheckPosZ = %f, Faction = %i, HasXMR = %i WHERE id = %i", PropertyData[id][propertyCheckPos][0], PropertyData[id][propertyCheckPos][1], PropertyData[id][propertyCheckPos][2], PropertyData[id][propertyFaction], PropertyData[id][propertyHasXMR], PropertyData[id][propertyid]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE properties SET XMRPosX = %f, XMRPosY = %f, XMRPosZ = %f, XMRRotX = %f, XMRRotY = %f, XMRRotZ = %f WHERE id = %i",
- PropertyData[id][propertyXMRPos][0], PropertyData[id][propertyXMRPos][1], PropertyData[id][propertyXMRPos][2], PropertyData[id][propertyXMRRot][0], PropertyData[id][propertyXMRRot][1],
- PropertyData[id][propertyXMRRot][2], PropertyData[id][propertyid]);
- mysql_tquery(m_Handle, query);
-
- for(new i = 0; i < 21; i++){
- mysql_format(m_Handle, query, sizeof(query), "UPDATE properties SET Weapons%d = %d, Ammo%d = %d WHERE id = %i", i, PropertyData[id][propertyWeapons][i], i, PropertyData[id][propertyAmmo][i], PropertyData[id][propertyid]);
- mysql_tquery(m_Handle, query);
- }
-
- return true;
- }
- Server:SaveFurniture(id)
- {
- new query[456];
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE furniture SET model = %d, name = '%s', PosX = %f, PosY = %f, PosZ = %f, RotX = %f, RotY = %f, RotZ = %f WHERE id = %i AND propertyid = %i", FurnitureData[id][furnituresModel], FurnitureData[id][furnituresName], FurnitureData[id][furniturePos][0], FurnitureData[id][furniturePos][1],
- FurnitureData[id][furniturePos][2], FurnitureData[id][furnitureRot][0], FurnitureData[id][furnitureRot][1], FurnitureData[id][furnitureRot][2], FurnitureData[id][furnitureSQLID], PropertyData[FurnitureData[id][furniturePropertyID]][propertyid]);
-
- mysql_tquery(m_Handle, query);
-
- return true;
- }
- Server:SaveBusiness(id)
- {
- new query[450];
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE businesses SET OwnerSQL = %i, InteriorX = %f, InteriorY = %f, InteriorZ = %f, InteriorA = %f WHERE id = %i", BusinessData[id][businessOwnerSQL],
- BusinessData[id][businessInt][0], BusinessData[id][businessInt][1], BusinessData[id][businessInt][2], BusinessData[id][businessInt][3], BusinessData[id][businessID]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE businesses SET World = %i, InteriorID = %i, ExteriorX = %f, ExteriorY = %f, ExteriorZ = %f WHERE id = %i", BusinessData[id][businessWorld],
- BusinessData[id][businessIntID], BusinessData[id][businessExt][0], BusinessData[id][businessExt][1], BusinessData[id][businessExt][2], BusinessData[id][businessID]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE businesses SET BankPX = %f, BankPY = %f, BankPZ = %f, BankPIntID = %i, BankPWorld = %i WHERE id = %i", BusinessData[id][businessBankPickupLoc][0],
- BusinessData[id][businessBankPickupLoc][1], BusinessData[id][businessBankPickupLoc][2], BusinessData[id][businessBankPickupIntID], BusinessData[id][businessBankPickupWorld], BusinessData[id][businessID]);
- mysql_tquery(m_Handle, query);
- mysql_format(m_Handle, query, sizeof(query), "UPDATE businesses SET Name = '%e', Type = %i, MarketPrice = %i, Locked = %i, Fee = %i, Cashbox = %i, Level = %i, Product = %i WHERE id = %i", BusinessData[id][businessName],
- BusinessData[id][businessType], BusinessData[id][businessMarketPrice], BusinessData[id][businessLocked], BusinessData[id][businessFee], BusinessData[id][businessCashbox], BusinessData[id][businessLevel],
- BusinessData[id][businessProduct], BusinessData[id][businessID]);
-
- mysql_tquery(m_Handle, query);
-
- for(new i = 0; i < 21; i++){
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE businesses SET Weapons%d = %i, Ammo%d = %i WHERE id = %i", i, BusinessData[id][businessWeapons][i], i, BusinessData[id][businessWeaponsAmmo][i], BusinessData[id][businessID]);
- mysql_tquery(m_Handle, query);
- }
-
- printf("[WARNING]: Business %d was saved.", id);
- return true;
- }
- Server:SavePaynSpray(id)
- {
- new query[156];
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE paynspray SET OwnerSQL = %i, Price = %i, Earnings = %i, Name = '%e' WHERE id = %i",
- PNSData[id][pnsOwnerSQL], PNSData[id][pnsPrice], PNSData[id][pnsEarnings], PNSData[id][pnsName], PNSData[id][pnsID]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE paynspray SET EntranceX = %f, EntranceY = %f, EntranceZ = %f WHERE id = %i",
- PNSData[id][pnsEntrance][0], PNSData[id][pnsEntrance][1], PNSData[id][pnsEntrance][2], PNSData[id][pnsID]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE paynspray SET RepairSpotX = %f, RepairSpotY = %f, RepairSpotZ = %f WHERE id = %i",
- PNSData[id][pnsRepairSpot][0], PNSData[id][pnsRepairSpot][1], PNSData[id][pnsRepairSpot][2], PNSData[id][pnsID]);
- mysql_tquery(m_Handle, query);
-
- return true;
- }
- Server:SaveToll(id)
- {
- new query[156];
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE tolls SET Price = %i, PointAX = %f, PointAY = %f, PointAZ = %f WHERE id = %i", TollsData[id][tollPrice],
- TollsData[id][tollPointA][0], TollsData[id][tollPointA][1], TollsData[id][tollPointA][2], TollsData[id][tollID]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE tolls SET PointBX = %f, PointBY = %f, PointBZ = %f WHERE id = %i", TollsData[id][tollPointB][0],
- TollsData[id][tollPointB][1], TollsData[id][tollPointB][2], TollsData[id][tollID]);
- mysql_tquery(m_Handle, query);
-
- return true;
- }
- Server:CheckPlayerExist(playerid)
- {
- new
- query[90];
-
- SetPlayerCamera(playerid);
- mysql_format(m_Handle, query, sizeof(query), "SELECT id FROM players WHERE Name = '%e' LIMIT 1", ReturnName(playerid, 1));
- mysql_tquery(m_Handle, query, "SQL_CheckPlayerExist", "i", playerid);
- return true;
- }
- Server:SQL_CheckPlayerExist(playerid)
- {
- if(cache_num_rows() != 0) //Exists.
- {
- ShowLoginDialog(playerid, "");
- }
- else //Doesn't exist.
- {
- ShowRegisterDialog(playerid, "");
- }
- return true;
- }
- Server:SQL_CheckPlayerBans(playerid)
- {
- if(cache_num_rows() == 0) return CheckPlayerExist(playerid);
- new string[128];
- if(cache_num_rows())
- {
- format(string, sizeof(string), "You're banned from San Andreas '92 Singleplayer Roleplay.", ReturnIP(playerid));
- SendClientMessage(playerid, COLOR_YELLOW, string);
- SendClientMessage(playerid, COLOR_YELLOW, "Make a ban appeal on our forum - if you believe your ban was unjust.");
- format(string, sizeof(string), "%s [IP: %s] connected while banned and was kicked", ReturnName(playerid, 1), ReturnIP(playerid));
- adminWarn(1, string);
- KickEx(playerid);
- }
- return true;
- }
- Server:SetPlayerCamera(playerid)
- {
- new rand = random(3);
- switch(rand)
- {
- case 0:
- {
- SetPlayerCameraPos(playerid, 1249.3018, -1697.8046, 99.9554);
- SetPlayerCameraLookAt(playerid, 1249.6576, -1696.8656, 99.4902);
- }
- case 1:
- {
- SetPlayerCameraPos(playerid, 2151.2539, -1894.5447, 85.3924);
- SetPlayerCameraLookAt(playerid, 2150.5833, -1893.8066, 84.6774);
- }
- case 2:
- {
- SetPlayerCameraPos(playerid, 2169.0635, -1740.4182, 112.0308);
- SetPlayerCameraLookAt(playerid, 2170.0603, -1740.3655, 111.3108);
- }
- }
- return 1;
- }
- Server:OnVehicleTextdraw(playerid)
- {
- DestroyDynamic3DTextLabel(vehicleTextdraw[playerid]);
- playerTextdraw[playerid] = false;
- return 1;
- }
- Server:DefaultPlayerValues(playerid)
- {
- pLoggedIn[playerid] = false;
- PlayerData[playerid][pSQLID] = 0;
- PlayerData[playerid][pAdmin] = 0;
- PlayerData[playerid][pAdminDuty] = false;
- PlayerData[playerid][pHelperDuty] = 0;
- PlayerData[playerid][pMoney] = 5000;
- PlayerData[playerid][pBank] = 10000;
- PlayerData[playerid][pSavings] = 0;
- PlayerData[playerid][pLevel] = 1;
- PlayerData[playerid][pExp] = 0;
- PlayerData[playerid][pPassAttempts] = 0;
- PlayerData[playerid][pBrutallyWounded] = 0;
- PlayerData[playerid][pPMText] = 0;
- PlayerData[playerid][pPMing] = -1;
- PlayerData[playerid][pSkin] = 264;
- PlayerData[playerid][pMask] = 0;
- PlayerData[playerid][pMasked] = 0;
- PlayerData[playerid][pMaskID] = 200000+random(199991);
- PlayerData[playerid][pMaskIDEx] = 40+random(59);
- PlayerData[playerid][pSpectator] = -1;
- PlayerData[playerid][pSpecVehicle] = -1;
- PlayerData[playerid][pAjailed] = 0;
- PlayerData[playerid][pAjailTime] = 0;
- PlayerData[playerid][pMaxHealth] = 100;
- PlayerData[playerid][pLastHealth] = 100.0;
- PlayerData[playerid][pLastArmor] = 0;
- PlayerData[playerid][pInsideApartment] = 0;
- PlayerData[playerid][pInsidePNS] = 0;
- PlayerData[playerid][pInsideDoor] = 0;
- PlayerData[playerid][pInsideGarage] = 0;
- PlayerData[playerid][pRenting] = 0;
- PlayerData[playerid][pFaction] = 0;
- PlayerData[playerid][pFactionRank] = 0;
- PlayerData[playerid][pFactionChat] = 0;
- PlayerData[playerid][pLegShot] = 0;
- PlayerData[playerid][pFactionOffer] = 0;
- PlayerData[playerid][pHasRadio] = 0;
- PlayerData[playerid][pMainSlot] = 0;
- PlayerData[playerid][pIP] = 0;
-
- for(new i = 0; i < 5; i++){
- PlayerData[playerid][pRadio][i] = 0;
- PlayerData[playerid][pRadioSlot][i] = 0;
- }
-
- PlayerData[playerid][pPhone] = 36000+random(5999);
- PlayerData[playerid][pHelper] = 0;
- PlayerData[playerid][pDonator] = 0;
- PlayerData[playerid][pOffAjail] = 0;
- PlayerData[playerid][pOffAjailReason] = 0;
- format(PlayerData[playerid][pCallsign], 60, "");
- PlayerData[playerid][pHandcuff] = 0;
- PlayerData[playerid][pAllowedFrisk] = -1;
- PlayerData[playerid][pFrisking] = -1;
- PlayerData[playerid][pFriskRequest] = -1;
- PlayerData[playerid][pTaser] = 0;
- PlayerData[playerid][pRubberbullet] = 0;
- PlayerData[playerid][pWeaponsGiven] = 0;
- PlayerData[playerid][pPlayTime] = 0;
- PlayerData[playerid][pHoursPlayed] = 0;
- PlayerData[playerid][pPaycheck] = 500;
- PlayerData[playerid][pChatstyle] = 0;
- PlayerData[playerid][pWalkstyle] = 0;
- PlayerData[playerid][pCalling] = 0;
- PlayerData[playerid][pPhoneline] = INVALID_PLAYER_ID;
- PlayerData[playerid][pPhoneOff] = 0;
- PlayerData[playerid][pWorkOn] = 0;
- PlayerData[playerid][pBlindfolded] = 0;
- format(PlayerData[playerid][plastCommand], 128, "None");
- PlayerData[playerid][pDriversLicense] = 0;
- PlayerData[playerid][pWeaponsLicense] = 0;
- PlayerData[playerid][pGender] = 1;
- PlayerData[playerid][pAutoLow] = 0;
- PlayerData[playerid][pSpawnSelect] = 0;
- PlayerData[playerid][pSpawnHouse] = 0;
- PlayerData[playerid][pCrashed] = 0;
-
- _taking_license_test[playerid] = 0;
- _taking_license_point[playerid] = 0;
- _taking_license_vehicle[playerid] = 0;
- _taking_license_time[playerid] = 0;
- _respawn_timer[playerid] = 0;
- _has_vehicle_spawned[playerid] = 0;
- _has_spawned_vehicleid[playerid] = 0;
-
- PlayerData[playerid][pSWATduty] = 0;
- PlayerData[playerid][pTogDeath] = 0;
-
- for(new i = 1; i < MAX_PLAYER_NOTES; i++){
- NoteData[playerid][i][NoteID] = 0;
- NoteData[playerid][i][NotePlayerSQLID] = 0;
- NoteData[playerid][i][NoteSQLID] = 0;
- format(NoteData[playerid][i][NoteDetail], 128, " ");
- }
-
- PlayerData[playerid][pEnterVehicle] = 0;
- PlayerData[playerid][pTraceNum] = INVALID_PLAYER_ID;
- PlayerData[playerid][pIsTracing] = false;
- PlayerData[playerid][pAtDealership] = false;
-
- PlayerData[playerid][p911Steps] = 0;
- format(PlayerData[playerid][p911Text], 128, " ");
- format(PlayerData[playerid][p911Location], 128, " ");
-
- PlayerData[playerid][pTogColor] = 0;
- PlayerData[playerid][pEditingFurniture] = false;
- PlayerData[playerid][pEditingDuplicate] = 0;
-
- for(new i = 0; i < MAX_GRANT_BUILD; i++){
- BuildData[playerid][i][GrantedSQLID] = 0;
- }
-
- PlayerData[playerid][pFurnitureDuplicate] = INVALID_OBJECT_ID;
- PlayerData[playerid][pAddingXMR] = false;
- PlayerData[playerid][pXMRObject] = 0;
-
- for(new i = 1; i < MAX_ADMIN_NOTES; i++)
- {
- aNotesData[playerid][i][anote_SQLID] = 0;
- }
-
- PlayerData[playerid][pBuyingClothing] = false;
- format(PlayerData[playerid][pClothingName], 90, " ");
- PlayerData[playerid][pEditingClothing] = false;
-
- for(new i = 1; i < MAX_CLOTHING_ITEMS; i++)
- {
- ClothingData[playerid][i][attachment_SQLID] = 0;
- if(IsPlayerAttachedObjectSlotUsed(playerid, i))
- {
- RemovePlayerAttachedObject(playerid, i);
- }
- }
-
- PlayerData[playerid][pEditingXMR] = false;
- PlayerData[playerid][pPlayingAnimation] = false;
-
- format(PlayerData[playerid][pAdminMsg], 128, " ");
- format(PlayerData[playerid][pAdminMsgBy], 60, " ");
- format(PlayerData[playerid][pSecretWord], 128, " ");
-
- for(new i = 1; i < MAX_WEAPON_PACKAGES; i++) {
- PackageData[playerid][packageWeapon][i] = 0;
- PackageData[playerid][packageAmmo][i] = 0;
- }
- format(PlayerData[playerid][pHWID], 60, " ");
-
- for(new i = 0; i < 30; i++)
- {
- PlayerChatLogs[playerid][i] = "";
- PlayerCommandLogs[playerid][i] = "";
- }
-
- ResetDisplayPositions(playerid);
-
- PlayerData[playerid][pHasBoombox] = false;
-
- EditingBoombox[playerid] = false;
-
- sprayPermission[playerid] = false;
- sprayingGraffiti[playerid] = false;
- sprayingGraffitiTime[playerid] = 0;
- saveSprayingTime[playerid] = 0;
-
- PlayerData[playerid][pCarryingMeal] = false;
- MealMenu[playerid][mealExists] = false;
- PlayerData[playerid][pPlacingMeal] = false;
-
- PlayerData[playerid][pSkinMenu] = 1;
- PlayerData[playerid][pSkinMenuOn] = false;
-
- for(new i = 1; i < MAX_PLAYER_CONTACTS; i++)
- {
- ContactsData[playerid][i][contactID] = 0;
- ContactsData[playerid][i][contactSQLID] = 0;
- }
-
- PlayerData[playerid][pUnscrambling] = false;
- PlayerData[playerid][pUnscrambleID] = 0;
- PlayerData[playerid][pUnscramblerTime] = 0;
- PlayerData[playerid][pScrambleFailed] = 0;
- PlayerData[playerid][pScrambleSuccess] = 0;
- PlayerData[playerid][pPauseWepAC] = 0;
-
- for(new i = 0; i < MAX_POSSIBLE_WEAPONS; i++)
- {
- Weapon[playerid][i][eWeaponAmmo] = 0;
- Weapon[playerid][i][eWeaponID] = 0;
- Weapon[playerid][i][eWeaponSaveable] = false;
- Weapon[playerid][i][eWeaponGivenBy] = 0;
- Weapon[playerid][i][eWeaponCCW] = false;
- Weapon[playerid][i][eWeaponSerial] = -1;
- }
-
- PlayerData[playerid][pPauseTime] = 0;
-
- PlayerTutorial[playerid] = 0;
- PlayerTutorialStep[playerid] = 0;
- PlayerPassword[playerid] = "";
-
- PlayerData[playerid][pBurnerPhoneOff] = false;
- PlayerData[playerid][pUsingBurner] = false;
- PlayerData[playerid][pHasBurnerPhone] = false;
- //MainPhone[playerid] = 0;
-
- ClearPlayerOrder(playerid);
- PlayerData[playerid][pWepOrderRestricted] = false;
-
- StartedTruckerMission[playerid] = false;
- TruckerMissionVehicle[playerid] = INVALID_VEHICLE_ID;
- SpawnedTrailer[playerid] = false;
- TrailerID[playerid] = INVALID_VEHICLE_ID;
- TruckerMissionPoint[playerid] = 0;
- TruckerMissionStep[playerid] = 0;
- TruckerJobEarnings[playerid] = 0;
- TrailerAttachTime[playerid] = 0;
- TruckerJobDeliveryCount[playerid] = 0;
- TruckerJobExitCount[playerid] = 0;
-
- StartedTaxiJob[playerid] = false;
- TaxiFairStarted[playerid] = 0;
- TaxiDriver[playerid] = 0;
- TaxiDuration[playerid] = 0;
- TaxiPrice[playerid] = 0;
- InTaxiRide[playerid] = 0;
- TaxiFair[playerid] = 0;
- TaxiTotalFair[playerid] = 0;
-
- for(new i = 0; i < 30; i++)
- {
- Fines[playerid][i][Fine_ID] = 0;
- }
-
- PlayerData[playerid][pICJailTime] = 0;
- PlayerData[playerid][pICJailed] = 0;
- PlayerData[playerid][pICJailNotify] = 0;
-
- PlayerData[playerid][pAddingRoadblock] = 0;
-
- PlayerData[playerid][pInsideAmbulance] = 0;
- PlayerConnectionTick[playerid] = 0;
-
- //MainPhone[playerid] = 0;
-
- PlayerTutorialStep[playerid] = 0;
- KillTimer(PlayerTutorialTimer[playerid]);
- format(PlayerPassword[playerid], 90, "");
-
- VehicleOfferBy[playerid] = INVALID_PLAYER_ID;
- VehicleOfferedTo[playerid] = INVALID_PLAYER_ID;
- VehiclePrice[playerid] = 0;
- VehicleDBIDOffered[playerid] = 0;
-
- PlayerRefilling[playerid] = 0;
- RefillPoint[playerid] = 0;
- RefillPrice[playerid] = 0;
- RefillAmount[playerid] = 0;
- RefillVehicle[playerid] = 0;
-
- PlayerData[playerid][pToggleConnects] = 0;
-
- TaxiStage[playerid] = 0;
- for(new i = 0; i < 2; i++) format(TaxiText[playerid][i], 128, "");
-
- format(MechanicText[playerid], 128, "");
-
- PlayerData[playerid][pLoudspeaker] = 0;
- PlayerData[playerid][pLAWduty] = 0;
- PlayerData[playerid][pMEDduty] = 0;
-
- OfferedHireBy[playerid] = INVALID_PLAYER_ID;
- OfferedHireTo[playerid] = INVALID_PLAYER_ID;
- OfferedHireBusinessID[playerid] = 0;
-
- PlayerData[playerid][pLastChat] = 0;
- PlayerData[playerid][pLastCMDTime] = 0;
- PlayerData[playerid][pLastEmoteTime] = 0;
-
- totalDamages[playerid] = 0;
-
- for(new i = 0; i < MAX_DAMAGES; i++)
- {
- DamageData[playerid][i][damageTaken] = 0;
- DamageData[playerid][i][damageWeapon] = 0;
- DamageData[playerid][i][damageBy] = 0;
- }
-
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- CanPMAdmin[playerid][i] = 0;
- }
-
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- WatchingDamages[playerid][i] = 0;
- }
-
- PlayerData[playerid][pNicksToggled] = 0;
-
- PlayerVlogPage[playerid] = 0;
- PlayerVlogVehicle[playerid] = 0;
-
- DeathTimeNotice[playerid] = 0;
-
- CanChangePassword[playerid] = 0;
- OfflineBanName[playerid] = "";
- OfflineJailName[playerid] = "";
- OfflineJailTime[playerid] = 0;
- AdminPanelName[playerid] = "";
- for(new i = 1; i < MAX_ADMIN_NOTES; i++) AdminNoteSelect[playerid][i] = 0;
- AdminNoteSelected[playerid] = 0;
- AdminNoteIssuer[playerid] = "";
-
- PlayerPlacingInVehicle[playerid] = 0;
- PlayerPlacingWeapon[playerid] = 0;
- PlayerEditingWeapon[playerid] = 0;
- PlayerPlacingWeaponSlot[playerid] = 0;
- PlayerPlacingWeaponID[playerid] = 0;
- PlayerPlacingWeaponAmmo[playerid] = 0;
-
- PlayerBreakInVehicle[playerid] = INVALID_VEHICLE_ID;
- PlayerBreakingIn[playerid] = 0;
-
- BreakInError[playerid] = 0;
- BreakInLevel[playerid] = 0;
-
- ActiveLockTD[playerid] = 0;
-
- PlayerData[playerid][pDCToggled] = 0;
-
- PlayerData[playerid][pHUDToggled] = 0;
- PlayerData[playerid][pHUD] = 0;
-
- PlayerData[playerid][pFightstyle] = 0;
-
- PlayerListShow[playerid] = 0;
- DeletePVar(playerid, "Viewing_OwnedCarList");
-
- DeletePVar(playerid, "RequestedNC");
- DeletePVar(playerid, "RequestedNCName");
- DeletePVar(playerid, "RequestedNCTime");
- DeletePVar(playerid, "DuplicateKey");
-
- ClearGraffitiVars(playerid);
-
- DeletePVar(playerid, "SelectedRank");
-
- DeletePVar(playerid, "ViewingCrateContent");
- DeletePVar(playerid, "ViewingWarehouseMenu");
-
- gPlayerInsideEntrance[playerid] = -1;
-
- gOpeningCrate[playerid] = -1;
- for(new i; i < 3; i++) gOpeningCratePos[playerid][i] = 0.0;
- gCrateOpenIntervals[playerid] = 0;
-
- gHidingFactionTimer[playerid] = 0;
-
- PlayerData[playerid][pTransferDrug] = -1;
- PlayerData[playerid][pTransferQuantity] = 0.0;
-
- for (new i = 0; i < 10; i++) PlayerData[playerid][pTransferList][i] = -1;
-
- PlayerData[playerid][pDrugEffect] = -1;
- PlayerData[playerid][pDrugTime] = 0;
- PlayerData[playerid][pDrugStrength] = 0;
-
- PlayerData[playerid][pAdjustPackage] = -1;
- PlayerData[playerid][pTackle] = false;
- MicPerms[playerid] = 0;
- /*PlayerAwaitingRegistration[playerid] = false;
- PlayerRegWait[playerid] = 0;
- resetPlayerRegQuestions(playerid);
- BeingReviewed[playerid] = -1;*/
- return 1;
- }
- Server:DefaultVehicleValues(vehicleid)
- {
- CarData[vehicleid][carID] = 0;
- CarData[vehicleid][carExists] = false;
- CarData[vehicleid][carOwnerID] = 0;
- CarData[vehicleid][carPos][0] = 0.0;
- CarData[vehicleid][carPos][1] = 0.0;
- CarData[vehicleid][carPos][2] = 0.0;
- CarData[vehicleid][carPos][3] = 0.0;
- CarData[vehicleid][carInterior] = 0;
- CarData[vehicleid][carWorld] = 0;
- CarData[vehicleid][carFuel] = 100;
- CarData[vehicleid][carWindows] = false;
- CarData[vehicleid][carLocked] = false;
- CarData[vehicleid][carColor1] = 0;
- CarData[vehicleid][carColor2] = 0;
- CarData[vehicleid][carPaintjob] = -1;
-
- for(new i = 1; i < 14; i++){
- CarData[vehicleid][carMods][i] = -1;
- }
-
- CarData[vehicleid][carXMR] = 0;
- CarData[vehicleid][carXMROn] = false;
-
- CarData[vehicleid][carImpounded] = false;
- CarData[vehicleid][carBattery] = 100.00;
- CarData[vehicleid][carEngine] = 100.00;
- CarData[vehicleid][carLock] = 0;
- CarData[vehicleid][carAlarm] = 0;
- CarData[vehicleid][carInsurance] = 0;
- CarData[vehicleid][carTimeDestroyed] = 0;
- CarData[vehicleid][carImmob] = 1;
-
- for(new i = 1; i < 5; i++){
- CarData[vehicleid][carWeapons][i] = 0;
- CarData[vehicleid][carWeaponsAmmo][i] = 0;
-
- SlotBeingUsed[vehicleid][i] = 0;
- }
-
- for(new i = 1; i < 20; i++){
- CarData[vehicleid][carPackages][i] = 0;
- CarData[vehicleid][carPackagesAmmo][i] = 0;
- }
-
- for(new i = 0; i < 30; i++)
- {
- VehicleFines[vehicleid][i][Fine_ID] = 0;
- VehicleFines[vehicleid][i][Fine_Amount] = 0;
- }
- for(new i = 0; i < 10; i++)
- {
- CarDrugData[vehicleid][i][drugPackage] = 0;
- CarDrugData[vehicleid][i][drugType] = 0;
- CarDrugData[vehicleid][i][drugQuantity] = 0.0;
- CarDrugData[vehicleid][i][drugStrength] = 0;
- }
- CarData[vehicleid][carlastDriver] = -1;
- CarData[vehicleid][carlastPassenger] = -1;
-
- return true;
- }
- Server:ShowLoginDialog(playerid, error[])
- {
- if(pLoggedIn[playerid])return true;
- if(!strmatch(error, "")) {
- SendClientMessage(playerid, COLOR_ADM, error);
- }
- //ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Welcome to San Andreas '92 Singleplayer Roleplay", "SERVER: You have 60 seconds to login!\nTIP: Please report all bugs that you\nmay have found to development.\n\n Enter Your Password:", "Login", "Cancel");
- ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{FFFFFF}San Andreas '92 Roleplay {FF0000}", "{FFFFFF}Welcome to San Andreas '92 Roleplay\nThis account is already in use on our server.\n\nPlease input your password below in order to loginn\n Password:", "Login", "");
- PlayerData[playerid][pLogintime]++;
- /// DELETE THESE IF NOT WORKING BELOW V
- TogglePlayerSpectating(playerid, false);
- SetPlayerPos(playerid, 2862.5293,-2125.0662,2.6053);
- TogglePlayerSpectating(playerid, true);
- SetPlayerCameraPos(playerid, 2900.4119,-2125.7310,2.9535);
- SetPlayerCameraLookAt(playerid, 2870.9690,-2125.0227,4.8737, CAMERA_CUT);
- return true;
- }
- Server:ShowRegisterDialog(playerid, error[])
- {
- if(pLoggedIn[playerid]) return true;
- if(!strmatch(error, "")){
- SendClientMessage(playerid, COLOR_ADM, error);
- }
- //ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Welcome to San Andreas '92 Singleplayer Roleplay", "SERVER: You have 60 seconds to register!\nTIP: Using a strong password will\nkeep your account secure.\n\n Enter New Password:", "Register", "Cancel");
- ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "{FFFFFF}San Andreas '92 {FF0000}Sinegleplayer", "{FFFFFF}Welcome to San Andreas '92 Singleplayer Roleplay\nThis character name is not registered upon the server\n\nPlease input a desired strong password below to continue. \n\n Enter New Password:", "Register", "");
- // DELETE IF NOT WORKING BELOW V
- TogglePlayerSpectating(playerid, false);
- SetPlayerPos(playerid, 2862.5293,-2125.0662,2.6053);
- TogglePlayerSpectating(playerid, true);
- SetPlayerCameraPos(playerid, 2900.4119,-2125.7310,2.9535);
- SetPlayerCameraLookAt(playerid, 2870.9690,-2125.0227,4.8737, CAMERA_CUT);
- return true;
- }
- Server:LoadPlayerData(playerid)
- {
- new
- query[256];
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM players WHERE id = %i LIMIT 1", PlayerData[playerid][pSQLID]);
- mysql_pquery(m_Handle, query, "SQL_LoadPlayerData", "i", playerid);
- printf("[DEBUG] Callback 'LoadPlayerData' called for %s", ReturnName(playerid));
- return true;
- }
- Server:SQL_LoadPlayerData(playerid)
- {
- if(pLoggedIn[playerid] == true)
- {
- new
- str[128];
-
- format(str, sizeof(str), "%s was kicked for possibly exploiting account data.", ReturnName(playerid));
- adminWarn(1, str);
-
- printf("[DEBUG] %s was kicked with callback `SQL_LoadPlayerData` error.", ReturnName(playerid));
-
- SendClientMessage(playerid, COLOR_ADM, "-> An error occurred with your account. Contact a developer with this message.");
- KickEx(playerid);
-
- return 1;
- }
- pLoggedIn[playerid] = true;
- TogglePlayerSpectating(playerid, false);
-
- cache_get_value_name_int(0, "AdminLevel", PlayerData[playerid][pAdmin]);
- cache_get_value_name_int(0, "Money", PlayerData[playerid][pMoney]);
- cache_get_value_name_int(0, "Level", PlayerData[playerid][pLevel]);
- cache_get_value_name_int(0, "Exp", PlayerData[playerid][pExp]);
- cache_get_value_name_float(0, "LastX", PlayerData[playerid][pPos][0]);
- cache_get_value_name_float(0, "LastY", PlayerData[playerid][pPos][1]);
- cache_get_value_name_float(0, "LastZ", PlayerData[playerid][pPos][2]);
- cache_get_value_name_float(0, "LastRot", PlayerData[playerid][pPos][3]);
- cache_get_value_name_int(0, "Interior", PlayerData[playerid][pInterior]);
- cache_get_value_name_int(0, "World", PlayerData[playerid][pWorld]);
- cache_get_value_name_int(0, "Skin", PlayerData[playerid][pSkin]);
- cache_get_value_name_int(0, "MaskID", PlayerData[playerid][pMaskID]);
- cache_get_value_name_int(0, "MaskIDEx", PlayerData[playerid][pMaskIDEx]);
- cache_get_value_name_int(0, "Bank", PlayerData[playerid][pBank]);
- cache_get_value_name_int(0, "Savings", PlayerData[playerid][pSavings]);
-
- cache_get_value_name_int(0, "Adminjailed", PlayerData[playerid][pAjailed]);
- cache_get_value_name_int(0, "AjailTime", PlayerData[playerid][pAjailTime]);
- cache_get_value_name_int(0, "MaxHealth", PlayerData[playerid][pMaxHealth]);
- cache_get_value_name_int(0, "Renting", PlayerData[playerid][pRenting]);
- cache_get_value_name_int(0, "Faction", PlayerData[playerid][pFaction]);
- cache_get_value_name_int(0, "FactionRank", PlayerData[playerid][pFactionRank]);
-
- cache_get_value_name_int(0, "HasRadio", PlayerData[playerid][pHasRadio]);
- cache_get_value_name_int(0, "MainSlot", PlayerData[playerid][pMainSlot]);
- cache_get_value_name_int(0, "Chatstyle", PlayerData[playerid][pChatstyle]);
- new str[256];
- for(new i = 1; i < MAX_OWNED_CARS; i++){
- format(str, sizeof(str), "OwnedCar%d", i);
- cache_get_value_name_int(0, str, PlayerData[playerid][pOwnedCar][i - 1]);
- }
-
- for(new i = 0; i < 5; i++){
-
- format(str, sizeof(str), "Radio%d", i+1);
- cache_get_value_name_int(0, str, PlayerData[playerid][pRadio][i]);
-
- format(str, sizeof(str), "Slot%d", i+1);
- cache_get_value_name_int(0, str, PlayerData[playerid][pRadioSlot][i]);
- }
-
- cache_get_value_name_int(0, "Phone", PlayerData[playerid][pPhone]);
- cache_get_value_name_int(0, "Donator", PlayerData[playerid][pDonator]);
- cache_get_value_name_int(0, "Helper", PlayerData[playerid][pHelper]);
- cache_get_value_name_int(0, "OfflineAjail", PlayerData[playerid][pOffAjail]);
- cache_get_value_name(0, "OfflineAjailReason", PlayerData[playerid][pOffAjailReason], 128);
- cache_get_value_name_int(0, "HoursPlayed", PlayerData[playerid][pHoursPlayed]);
- cache_get_value_name_int(0, "Paycheck", PlayerData[playerid][pPaycheck]);
- cache_get_value_name_int(0, "PhoneOff", PlayerData[playerid][pPhoneOff]);
-
- cache_get_value_name_int(0, "InsideApartment", PlayerData[playerid][pInsideApartment]);
- cache_get_value_name_int(0, "InsideHouse", PlayerData[playerid][pInsideHouse]);
- cache_get_value_name_int(0, "InsideComplex", PlayerData[playerid][pInsideComplex]);
- cache_get_value_name_int(0, "InsideGarage", PlayerData[playerid][pInsideGarage]);
- cache_get_value_name_int(0, "InsideBusiness", PlayerData[playerid][pInsideBusiness]);
- cache_get_value_name_int(0, "WorkOn", PlayerData[playerid][pWorkOn]);
- cache_get_value_name_int(0, "DriversLicense", PlayerData[playerid][pDriversLicense]);
- cache_get_value_name_int(0, "WeaponsLicense", PlayerData[playerid][pWeaponsLicense]);
- cache_get_value_name_int(0, "Gender", PlayerData[playerid][pGender]);
- cache_get_value_name_int(0, "SpawnSelect", PlayerData[playerid][pSpawnSelect]);
- cache_get_value_name_int(0, "SpawnHouse", PlayerData[playerid][pSpawnHouse]);
- cache_get_value_name_int(0, "Crashed", PlayerData[playerid][pCrashed]);
-
- cache_get_value_name_int(0, "Playtime", PlayerData[playerid][pPlayTime]);
-
- cache_get_value_name_int(0, "HasCarSpawned", _has_vehicle_spawned[playerid]);
- cache_get_value_name_int(0, "HasCarSpawnedID", _has_spawned_vehicleid[playerid]);
-
- cache_get_value_name(0, "AdminMessage", PlayerData[playerid][pAdminMsg], 128);
- cache_get_value_name(0, "AdminMessageBy", PlayerData[playerid][pAdminMsgBy], 60);
- cache_get_value_name_int(0, "AdmMessageConfirm", PlayerData[playerid][pAdmMsgConfirm]);
-
- cache_get_value_name_int(0, "UpgradePoints", PlayerData[playerid][pUpgradePoints]);
-
- cache_get_value_name_int(0, "Job", PlayerData[playerid][pJob]);
- cache_get_value_name_int(0, "Sidejob", PlayerData[playerid][pSidejob]);
- cache_get_value_name_int(0, "JobLevel", PlayerData[playerid][pJobLevel]);
- cache_get_value_name_int(0, "SidejobLevel", PlayerData[playerid][pSidejobLevel]);
- cache_get_value_name(0, "LastConnection", PlayerData[playerid][pLastConnect], 60);
- cache_get_value_name_int(0, "LastConnectLength", PlayerData[playerid][pLastConnectTime]);
-
- cache_get_value_name(0, "HWID", PlayerData[playerid][pHWID], 60);
-
- cache_get_value_name_float(0, "LastHealth", PlayerData[playerid][pLastHealth]);
- cache_get_value_name_float(0, "LastArmor", PlayerData[playerid][pLastArmor]);
-
- cache_get_value_name_int(0, "ActiveListing", PlayerData[playerid][pActiveListing]);
- cache_get_value_name_int(0, "JailTimes", PlayerData[playerid][pJailTimes]);
- cache_get_value_name_int(0, "PrisonTimes", PlayerData[playerid][pPrisonTimes]);
-
- cache_get_value_name_int(0, "HasBurnerPhone", PlayerData[playerid][pHasBurnerPhone]);
- cache_get_value_name_int(0, "BurnerPhoneNumber", PlayerData[playerid][pBurnerPhoneNumber]);
-
- cache_get_value_name_int(0, "OrderWeaponRestricted", PlayerData[playerid][pWepOrderRestricted]);
- cache_get_value_name_int(0, "OrderWeaponTime", OrderWeaponTime[playerid]);
-
- cache_get_value_name_int(0, "ICJailTime", PlayerData[playerid][pICJailTime]);
- cache_get_value_name_int(0, "ICJailed", PlayerData[playerid][pICJailed]);
-
- cache_get_value_name_int(0, "Cigarettes", PlayerData[playerid][pCigarettes]);
- cache_get_value_name_int(0, "Drinks", PlayerData[playerid][pDrinks]);
-
- cache_get_value_name(0, "ForumName", PlayerData[playerid][pForumName], 60);
-
- cache_get_value_name_int(0, "SpawnPrecinct", PlayerData[playerid][pSpawnPrecinct]);
- cache_get_value_name_int(0, "Walkstyle", PlayerData[playerid][pWalkstyle]);
-
- cache_get_value_name_int(0, "BrutallyWounded", PlayerData[playerid][pBrutallyWounded]);
- cache_get_value_name_int(0, "DCToggle", PlayerData[playerid][pDCToggled]);
-
- cache_get_value_name_int(0, "HUD", PlayerData[playerid][pHUD]);
- cache_get_value_name_int(0, "HUDToggled", PlayerData[playerid][pHUDToggled]);
-
- cache_get_value_name_int(0, "Fightstyle", PlayerData[playerid][pFightstyle]);
-
- if(PlayerData[playerid][pCrashed])
- {
- new cTime;
- cache_get_value_name_int(0, "pCrashTime", cTime);
- SetPVarInt(playerid, "pCrashTime", cTime);
- cache_get_value_name_int(0, "pCopDuty", PlayerData[playerid][pLAWduty]);
- cache_get_value_name_int(0, "pSWATDuty", PlayerData[playerid][pSWATduty]);
-
- if(PlayerData[playerid][pLAWduty] || PlayerData[playerid][pSWATduty])
- {
- if(gettime() - GetPVarInt(playerid, "pCrashTime") <= 300)
- {
- format(str, sizeof(str), "** HQ: %s %s is now back On Duty! (( Connection lost ))", ReturnRank(playerid), ReturnName(playerid));
- SendLawMessage(COLOR_COP, str);
- }
- }
- }
-
- for(new i = 1; i < MAX_WEAPON_PACKAGES; i++) {
- format(str, sizeof(str), "Package%d", i);
- cache_get_value_name_int(0, str, PackageData[playerid][packageWeapon][i]);
-
- format(str, sizeof(str), "Package%dA", i);
- cache_get_value_name_int(0, str, PackageData[playerid][packageAmmo][i]);
- }
- if (!PlayerData[playerid][pMaskID])
- PlayerData[playerid][pMaskID] = 200000+random(199991);
- if (!PlayerData[playerid][pMaskIDEx])
- PlayerData[playerid][pMaskIDEx] = 40+random(59);
-
- if (!PlayerData[playerid][pPhone])
- PlayerData[playerid][pPhone] = 94000+random(6999);
-
- if (!PlayerData[playerid][pBurnerPhoneNumber])
- PlayerData[playerid][pBurnerPhoneNumber] = 36000+random(6999);
- SetPlayerColor(playerid, COLOR_WHITE);
- SetPlayerScore(playerid, PlayerData[playerid][pLevel]);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerData[playerid][pMoney]);
-
- new query[90];
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM `player_notes` WHERE playersqlid = %i", PlayerData[playerid][pSQLID]);
- mysql_pquery(m_Handle, query, "SQL_LoadPlayerNotes", "i", playerid);
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM `player_contacts` WHERE playersqlid = %i", PlayerData[playerid][pSQLID]);
- mysql_pquery(m_Handle, query, "SQL_LoadPlayerContacts", "i", playerid);
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM `player_anotes` WHERE player_dbid = %i", PlayerData[playerid][pSQLID]);
- mysql_pquery(m_Handle, query, "SQL_LoadAdminNotes", "i", playerid);
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM `player_clothing` WHERE player_dbid = %i", PlayerData[playerid][pSQLID]);
- mysql_pquery(m_Handle, query, "SQL_LoadClothing", "i", playerid);
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM `weapon_attachments` WHERE playerdbid = %i", PlayerData[playerid][pSQLID]);
- mysql_pquery(m_Handle, query, "SQL_LoadAttachments", "i", playerid);
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM `player_drugs` WHERE playersqlid = %i", PlayerData[playerid][pSQLID]);
- mysql_pquery(m_Handle, query, "SQL_LoadPlayerDrugs", "i", playerid);
-
- SetPlayerSpawn(playerid); format(PlayerData[playerid][pIP], 20, "%s", ReturnIP(playerid));
- format(PlayerData[playerid][pHWID], 60, "%s", ReturnGPCI(playerid));
-
- mysql_format(m_Handle, query, sizeof(query), "DELETE FROM player_weapons WHERE player_dbid = %i AND weapon_id = 0 OR ammo = 0", PlayerData[playerid][pSQLID]);
- mysql_pquery(m_Handle, query);
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM player_weapons WHERE player_dbid = %i", PlayerData[playerid][pSQLID]);
- mysql_tquery(m_Handle, query, "OnLoadPlayerWeapons", "i", playerid);
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM player_fines WHERE player_dbid = %i", PlayerData[playerid][pSQLID]);
- mysql_tquery(m_Handle, query, "LoadPlayerFines", "i", playerid);
-
- printf("[CONNECTION] %s (DBID: %d) logged in. IP: %s", ReturnName(playerid, 1), PlayerData[playerid][pSQLID], ReturnIP(playerid));
- return true;
- }
- Server:TracingSteps(playerid)
- {
- PlayerTextDrawSetString(playerid, Trace_PTD[playerid][0], "Trace_Initiated.");
- SetTimerEx("TracingStepsTwo", 4000, false, "i", playerid);
- PlayNearbySound(playerid, 1149);
- }
- Server:TracingStepsTwo(playerid)
- {
- PlayerTextDrawSetString(playerid, Trace_PTD[playerid][0], "Trace_Initiated..");
- SetTimerEx("TracingStepsThree", 2000, false, "i", playerid);
- PlayNearbySound(playerid, 1149);
- }
- Server:TracingStepsThree(playerid)
- {
- PlayerTextDrawSetString(playerid, Trace_PTD[playerid][0], "Trace_Initiated...");
- SetTimerEx("TracingStepsFour", 4000, false, "i", playerid);
- PlayNearbySound(playerid, 1149);
- }
- Server:TracingStepsFour(playerid)
- {
- PlayerTextDrawSetString(playerid, Trace_PTD[playerid][0], "Trace_Initiated....");
- SetTimerEx("TracingStepsFive", 4000, false, "i", playerid);
- PlayNearbySound(playerid, 1149);
- }
- Server:TracingStepsFive(playerid)
- {
- PlayerTextDrawSetString(playerid, Trace_PTD[playerid][0], "~g~Trace Completed!");
- SetTimerEx("TracingStepsFinish", 2000, false, "i", playerid);
- PlayNearbySound(playerid, 1149);
- }
- Server:TracingStepsFinish(playerid)
- {
- PlayerTextDrawHide(playerid, Trace_PTD[playerid][0]);
-
- new tracing_num = PlayerData[playerid][pTraceNum], string[128], playerLocation[MAX_ZONE_NAME];
- if(tracing_num == INVALID_PLAYER_ID) {
- SendClientMessage(playerid, COLOR_ADM, "TRACE:{FFFFFF} The trace was unsuccessful. That number is out of reach.");
- PlayerData[playerid][pIsTracing] = false;
- return true;
- }
-
- if(PlayerData[tracing_num][pPhoneOff]) {
- SendClientMessage(playerid, COLOR_ADM, "TRACE:{FFFFFF} The trace was unsuccessful. That number is out of reach.");
- PlayerData[playerid][pIsTracing] = false;
- return true;
- }
-
- GetPlayer2DZone(tracing_num, playerLocation, MAX_ZONE_NAME);
-
- GetPlayerPos(tracing_num, PlayerData[tracing_num][pPos][0], PlayerData[tracing_num][pPos][1], PlayerData[tracing_num][pPos][2]);
-
- if(PlayerData[playerid][pIsTracing] == 1) {
- if(PlayerData[tracing_num][pInsideComplex]){
- new incomp = PlayerData[tracing_num][pInsideComplex];
- SetPlayerCheckpoint(playerid, PropertyData[incomp][propertyExterior][0], PropertyData[incomp][propertyExterior][1], PropertyData[incomp][propertyExterior][2], 4.0);
- }
- else if(PlayerData[tracing_num][pInsideApartment]){
- new link = PropertyData[PlayerData[tracing_num][pInsideApartment]][propertyComplexLink];
- SetPlayerCheckpoint(playerid, PropertyData[link][propertyExterior][0], PropertyData[link][propertyExterior][1], PropertyData[link][propertyExterior][2], 4.0);
- }
- else if(PlayerData[tracing_num][pInsideHouse]){
- new inhous = PlayerData[tracing_num][pInsideHouse];
- SetPlayerCheckpoint(playerid, PropertyData[inhous][propertyExterior][0], PropertyData[inhous][propertyExterior][1], PropertyData[inhous][propertyExterior][2], 4.0);
- }
- else if(PlayerData[tracing_num][pInsideBusiness]){
- new inbiz = PlayerData[tracing_num][pInsideBusiness];
- SetPlayerCheckpoint(playerid, BusinessData[inbiz][businessExt][0], BusinessData[inbiz][businessExt][1], BusinessData[inbiz][businessExt][2], 4.0);
- }
- else if(PlayerData[tracing_num][pInsideGarage]){
- new ingar = PlayerData[tracing_num][pInsideGarage];
- SetPlayerCheckpoint(playerid, GarageData[ingar][garagePos][0], GarageData[ingar][garagePos][1], GarageData[ingar][garagePos][2], 4.0);
- }
- else{
- SetPlayerCheckpoint(playerid, PlayerData[tracing_num][pPos][0], PlayerData[tracing_num][pPos][1], PlayerData[tracing_num][pPos][2], 4.0);
- }
-
- format(string, sizeof(string), "TRACE:{FFFFFF} Trace was successful... Location : %s. Follow marker to target.", playerLocation);
- SendClientMessage(playerid, COLOR_ADM, string);
- }
- else if(PlayerData[playerid][pIsTracing] == 2) {
- foreach(new i : Player) {
- if(i == playerid)
- continue;
-
- else if(PlayerData[i][pFaction] == PlayerData[playerid][pFaction] && PlayerData[playerid][pLAWduty]){
- if(PlayerData[tracing_num][pInsideComplex]){
- new incomp = PlayerData[tracing_num][pInsideComplex];
- SetPlayerCheckpoint(i, PropertyData[incomp][propertyExterior][0], PropertyData[incomp][propertyExterior][1], PropertyData[incomp][propertyExterior][2], 4.0);
- }
- else if(PlayerData[tracing_num][pInsideApartment]){
- new link = PropertyData[PlayerData[tracing_num][pInsideApartment]][propertyComplexLink];
- SetPlayerCheckpoint(i, PropertyData[link][propertyExterior][0], PropertyData[link][propertyExterior][1], PropertyData[link][propertyExterior][2], 4.0);
- }
- else if(PlayerData[tracing_num][pInsideHouse]){
- new inhous = PlayerData[tracing_num][pInsideHouse];
- SetPlayerCheckpoint(i, PropertyData[inhous][propertyExterior][0], PropertyData[inhous][propertyExterior][1], PropertyData[inhous][propertyExterior][2], 4.0);
- }
- else if(PlayerData[tracing_num][pInsideBusiness]){
- new inbiz = PlayerData[tracing_num][pInsideBusiness];
- SetPlayerCheckpoint(i, BusinessData[inbiz][businessExt][0], BusinessData[inbiz][businessExt][1], BusinessData[inbiz][businessExt][2], 4.0);
- }
- else if(PlayerData[tracing_num][pInsideGarage]){
- new ingar = PlayerData[tracing_num][pInsideGarage];
- SetPlayerCheckpoint(i, GarageData[ingar][garagePos][0], GarageData[ingar][garagePos][1], GarageData[ingar][garagePos][2], 4.0);
- }
- else{
- SetPlayerCheckpoint(i, PlayerData[tracing_num][pPos][0], PlayerData[tracing_num][pPos][1], PlayerData[tracing_num][pPos][2], 4.0);
- }
-
- format(string, sizeof(string), "TRACE:{FFFFFF} A marker has appeared on your screen from faction wide trace... Location : %s", playerLocation);
- SendClientMessage(i, COLOR_ADM, string);
-
- format(string, sizeof(string), "TRACE:{FFFFFF} Trace originated from %s", ReturnName(playerid, 0));
- SendClientMessage(i, COLOR_ADM, string);
- }
- }
-
- SetPlayerCheckpoint(playerid, PlayerData[tracing_num][pPos][0], PlayerData[tracing_num][pPos][1], PlayerData[tracing_num][pPos][2], 4.0);
-
- format(string, sizeof(string), "TRACE:{FFFFFF} Trace was successful... Location : %s. Follow marker to target.", playerLocation);
- SendClientMessage(playerid, COLOR_ADM, string);
- }
-
- PlayerData[playerid][pIsTracing] = false;
- return true;
- }
- Server:CallingEmergencyServices(playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] They picked up. You can talk now by using the chat box.");
- PlayerData[playerid][p911CallTimer][1] = SetTimerEx("CallingEmergencyServices_Two", 1500, false, "i", playerid);
- return true;
- }
- Server:CallingEmergencyServices_Two(playerid)
- {
- PlayerData[playerid][pPhoneline] = 911;
- PlayerData[playerid][pCalling] = 0;
-
- SendClientMessage(playerid, COLOR_YELLOW, "Dispatcher says: 911, what's your emergency? Police OR Fire?");
- return true;
- }
- public OnPlayerSpawn(playerid)
- {
- GangZoneShowForPlayer(playerid, gsf, 0x00800096);
- GangZoneShowForPlayer(playerid, sbf, 0x80FF0096);
- GangZoneShowForPlayer(playerid, fyb, 0x80008096);
- GangZoneShowForPlayer(playerid, vla, 0x00FFFF96);
- GangZoneShowForPlayer(playerid, vla2, 0x00FFFF96);
- GangZoneShowForPlayer(playerid, JB, 0x40008096);
- GangZoneShowForPlayer(playerid, jb2, 0x40008096);
- GangZoneShowForPlayer(playerid, jb3, 0x40008096);
- GangZoneShowForPlayer(playerid, vagos, 0xFFFF0096);
- GangZoneShowForPlayer(playerid, vagos2, 0xFFFF0096);
- GangZoneShowForPlayer(playerid, TDF, 0x00804096);
- GangZoneShowForPlayer(playerid, tdb, 0xFF00FF96);
- PauseAntiCheat(playerid);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 899);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 0);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 0);
- Streamer_Update(playerid);
-
- SetPlayerTeam(playerid, STATE_ALIVE);
- SetPlayerWeather(playerid, GlobalWeather);
-
- if(PlayerData[playerid][pSpectator] == -1 && PlayerData[playerid][pSpecVehicle] == -1) ClearDamages(playerid);
-
- for(new i = 0; i < MAX_PLAYER_ATTACHED_OBJECTS; i++){
- if(IsPlayerAttachedObjectSlotUsed(playerid, i)){
- RemovePlayerAttachedObject(playerid, i);
- }
- }
-
- if(PlayerData[playerid][pAjailed] == 1){
- SendPlayer(playerid, 2578.929931, 2658.771728, 10.820312, 0, 1338);
- ResetHouseVar(playerid);
- }
- else{
-
- if(PlayerData[playerid][pBrutallyWounded]){
- SendPlayer(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2], PlayerData[playerid][pInterior], PlayerData[playerid][pWorld]);
- SetBrutallyWounded(playerid, -1, -1);
- }
- else
- {
- if(PlayerData[playerid][pSpecVehicle] != -1 || PlayerData[playerid][pSpectator] != -1)
- {
- ReturnPlayerWeapons(playerid);
-
- PlayerData[playerid][pSpecVehicle] = -1;
- PlayerData[playerid][pSpectator] = -1;
-
- ShowSpectatorTextdraw(playerid, true);
-
- SetPlayerPos(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]);
- SetPlayerVirtualWorld(playerid, PlayerData[playerid][pWorld]); SetPlayerInterior(playerid, PlayerData[playerid][pInterior]);
- }
- else
- {
- SetPlayerHealth(playerid, PlayerData[playerid][pLastHealth]);
- SetPlayerArmour(playerid, PlayerData[playerid][pLastArmor]);
-
- if(!PlayerData[playerid][pCrashed])
- {
- SpawnPlayerIn(playerid);
- }
- else
- {
- SendPlayer(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2], PlayerData[playerid][pInterior], PlayerData[playerid][pWorld]);
-
- PlayerData[playerid][pCrashed] = false;
- GameTextForPlayer(playerid, "~r~Crashed~n~~w~Spawned at last location!", 4000, 1);
-
- if(PlayerData[playerid][pLAWduty] || PlayerData[playerid][pSWATduty])
- {
- SetPlayerColor(playerid, COLOR_COP);
-
- GivePlayerGun(playerid, 24, 100, WEAPON_SERVER_GIVEN);
- GivePlayerGun(playerid, 3, 1, WEAPON_SERVER_GIVEN);
- GivePlayerGun(playerid, 41, 350, WEAPON_SERVER_GIVEN);
- }
- }
- }
- }
- }
-
- return true;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- if(!pLoggedIn[playerid]){
- TogglePlayerSpectating(playerid, 1);
- SetPlayerCamera(playerid);
- return 0;
- }
- else if(pLoggedIn[playerid]) {
- SetSpawnInfo(playerid, 0, PlayerData[playerid][pSkin], 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
- SpawnPlayer(playerid);
- return 0;
- }
- else return 0;
- }
- public OnPlayerCommandReceived(playerid, cmdtext[])
- {
- if(pLoggedIn[playerid] == true)
- {
- printf("Player [%s] sent command: %s", ReturnName(playerid), cmdtext);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You need to be logged in to use commands.");
- printf("Player [%s] tried to send command: %s (During login, denied access)", ReturnName(playerid), cmdtext);
- return 0;
- }
- }
- public OnPlayerCommandPerformed(playerid, cmdtext[], success)
- {
- if(!success)
- {
- if(strlen(cmdtext) > 28) // Preventing long bad commands from returning default message;
- SendClientMessage(playerid, COLOR_ADM, "SERVER: Sorry, that command doesn't exist. Use /help if you need assistance.");
-
- else
- Message(playerid, COLOR_ADM, "SERVER: Sorry, the command \"%s\" doesn't exist. Use /help if you need assistance.", cmdtext);
- }
- else
- {
- if(strcmp(cmdtext, "/la", true))
- LogPlayerCommand(playerid, cmdtext);
-
- PlayerData[playerid][pLastCMDTime] = gettime();
-
- return 1;
- }
- return 1;
- }
- /*public OnPlayerCommandPerformed(playerid, cmdtext[], success)
- {
- if(!success){
- SendClientMessage(playerid, COLOR_WHITE, "{ADC3E7}Error: {FFFFFF}Sorry, that command does not exist. {ADC3E7}/help{FFFFFF} or {ADC3E7}/helpme{FFFFFF} if you're in need of assistance.");
- }
- else{
- LogPlayerCommand(playerid, cmdtext);
- return true;
- }
- return true;
- }*/
- Server:SetPlayerSpawn(playerid)
- {
- PauseAntiCheat(playerid);
- if(PlayerData[playerid][pAjailed]){
- SetSpawnInfo(playerid, 0, PlayerData[playerid][pSkin], 2578.929931, 2658.771728, 10.820312, 90, 0, 0, 0, 0, 0, 0);
- SetPlayerVirtualWorld(playerid, playerid);
- SetPlayerInterior(playerid, 0);
- SpawnPlayer(playerid);
- }
- else
- {
- SetSpawnInfo(playerid, 0, PlayerData[playerid][pSkin], 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
- SpawnPlayer(playerid);
- //SetPlayerVirtualWorld(playerid, PlayerData[playerid][pWorld]);
- //SetPlayerInterior(playerid, PlayerData[playerid][pInterior]);
- SetPlayerWeather(playerid, GlobalWeather);
- }
-
- if(PlayerData[playerid][pOffAjail] == 1){
- SendMessageToAll(COLOR_ADM, "AdmCmd: %s has been admin jailed by SYSTEM for %d minutes, reason: %s", ReturnName(playerid, 1), PlayerData[playerid][pAjailTime], PlayerData[playerid][pOffAjailReason]);
-
- PlayerData[playerid][pAjailTime] = PlayerData[playerid][pAjailTime] * 60;
-
- PlayerData[playerid][pOffAjail] = 0;
- PlayerData[playerid][pAjailed] = 1;
-
-
- SaveSQLInt(PlayerData[playerid][pSQLID], "players", "OfflineAjail", 0);
-
- SetSpawnInfo(playerid, 0, PlayerData[playerid][pSkin], 2578.929931, 2658.771728, 10.820312, 90, 0, 0, 0, 0, 0, 0);
- SetPlayerVirtualWorld(playerid, playerid);
- SetPlayerInterior(playerid, 0);
- SpawnPlayer(playerid);
- }
- // DisplayTimer[playerid] = SetTimerEx("WeaponsUpdater", 1000, true, "i", playerid);
- new string[128];
- if(PlayerData[playerid][pAdmin]){
- format(string, sizeof(string), "SERVER: You are logged in as a level %i admin", PlayerData[playerid][pAdmin]);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- PlayerData[playerid][pTogDeath] = true;
-
- if(isnull(PlayerData[playerid][pForumName]))
- {
- ShowPlayerDialog(playerid, DIALOG_FORUM_NAME, DIALOG_STYLE_INPUT, "ADMIN FORUM NAME:", "{FFFF00}You're missing your forum name. As an admin, it's required to have one. Type in your forum name:", "Select", "Exit");
- }
- }
-
- SetPlayerFightingStyle(playerid, PlayerData[playerid][pFightstyle]);
-
- if(PlayerData[playerid][pMaxHealth] > 150)
- PlayerData[playerid][pMaxHealth] = 150;
- format(string, sizeof(string), "SERVER: Welcome %s", ReturnName(playerid, 0));
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "~w~Welcome~n~~y~ %s", ReturnName(playerid, 0));
- GameTextForPlayer(playerid, string, 1000, 1);
-
- if (!isnull(PlayerData[playerid][pAdminMsg])) {
- format (string, sizeof(string), "%s\n\nSent by: %s", PlayerData[playerid][pAdminMsg], PlayerData[playerid][pAdminMsgBy]);
- ShowPlayerDialog(playerid, DIALOG_ADMIN_MSG, DIALOG_STYLE_MSGBOX, "Admin Message", string, "Understood", "");
- }
-
- if(_has_vehicle_spawned[playerid] && !IsValidVehicle(_has_spawned_vehicleid[playerid]))
- {
- _has_vehicle_spawned[playerid] = false;
- }
-
- if(_has_vehicle_spawned[playerid] && IsValidVehicle(_has_spawned_vehicleid[playerid]))
- {
- new vehicleid = _has_spawned_vehicleid[playerid];
- if(!IsValidPlayerCar(vehicleid)) _has_vehicle_spawned[playerid] = false;
- if(IsValidPlayerCar(vehicleid) && CarData[vehicleid][carOwnerID] != PlayerData[playerid][pSQLID]) _has_vehicle_spawned[playerid] = false;
- }
-
- PlayerLoginTick[playerid] = gettime();
- return true;
- }
- Server:SQL_OnAccountConfirm(playerid)
- {
- new string[128];
- if(cache_num_rows() == 0){
- format(string, sizeof(string), "%s has been kicked during login. (Incorrect security word) Info logged.", ReturnName(playerid, 1));
- adminWarn(1, string);
-
- SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You entered a bad security word. This was logged for security reasons.");
- KickEx(playerid);
- return true;
- }
-
- cache_get_value_name_int(0, "id", PlayerData[playerid][pSQLID]);
- LoadPlayerData(playerid);
-
- SendClientMessage(playerid, COLOR_YELLOW, "Your connection to the server is now authenticated.");
- return true;
- }
- Server:SQL_OnAccountLogin(playerid)
- {
- if(cache_num_rows() == 0){
- ShowLoginDialog(playerid, "SERVER:{FFFFFF} The password you've entered is incorrect.");
- PlayerData[playerid][pPassAttempts]++;
- if(PlayerData[playerid][pPassAttempts] == 4){
- SendClientMessage(playerid, COLOR_ADM, "SERVER:{FFFFFF} You were kicked for exceeding three password attempts.");
- KickEx(playerid);
- }
- return true;
- }
-
- new secret_Word[128], accountIP[20];
-
- cache_get_value_name(0, "SecretWord", secret_Word, 128);
- cache_get_value_name(0, "IP", accountIP, 20);
-
- if(isnull(secret_Word))
- {
- cache_get_value_name_int(0, "id", PlayerData[playerid][pSQLID]);
- PlayerData[playerid][pLogintime] = 0;
-
- ShowPlayerDialog(playerid, DIALOG_SECRET_WORD_CREATE, DIALOG_STYLE_PASSWORD,
- "Welcome to San Andreas '92 Singleplayer Roleplay",
- "SECURITY PRECAUTION:\n\nWe have introduced a SECRET CONFIRMATION CODE system to help protect user accounts. This is basically a word that will be presented if any connection conditions change.\n\nYou will have to remember this.\n\n{F81414}IT IS ADVISED THIS ISN'T YOUR PASSWORD.", "Enter", "Cancel");
- return true;
- }
-
- if(strfind(ReturnIP(playerid), accountIP, true) == -1){
- PlayerData[playerid][pLogintime] = 0;
-
- new string[128];
-
- format(string, sizeof(string), "%s was prompted with a secret word input during login.", ReturnName(playerid));
- adminWarn(1, string);
-
- ShowPlayerDialog(playerid, DIALOG_SECRET_WORD_ENTER, DIALOG_STYLE_PASSWORD,
- "Welcome to San Andreas '92 Singleplayer Roleplay",
- "{F81414}SECURITY PRECAUTION:{FFFFFF}\n\nOur system has flagged changes to your accounts connection conditions. To ensure there is no breach of security,\n\nPlease enter your {F81414}SECURITY CONFIRMATION CODE{FFFFFF} you selected during registration to login.", "Enter", "Cancel");
- return true;
- }
-
- cache_get_value_name_int(0, "id", PlayerData[playerid][pSQLID]);
- PlayerData[playerid][pLogintime] = 0;
- GetPlayerIp(playerid, PlayerData[playerid][pIP], 20);
- LoadPlayerData(playerid);
- return true;
- }
- Server:SQL_OnAccountRegister(playerid)
- {
- PlayerTutorial[playerid] = 0;
- Message(playerid, COLOR_GOLD, "* Your account (%s) is now registered. Welcome to San Andreas '92 Singleplayer Roleplay", ReturnName(playerid));
- SendClientMessage(playerid, COLOR_GOLD, "Remember if there any questions or concerns to ask a staff member using \"/helpme\" or \"/report\". ");
-
- ClearLines(playerid, 5);
-
- printf("[DEBUG] %s completed the tutorial and registered an account", ReturnName(playerid));
- PlayerData[playerid][pSQLID] = cache_insert_id();
- //ShowPlayerDialog( playerid, REGISTER_SKIN, DIALOG_STYLE_INPUT, "Enter Skin ID:", "Hey, what skin ID do you want?\n\nEnter a numeric value below!", "Enter", "<<" );
- ShowPlayerDialog(playerid, REGISTER_GENDER, DIALOG_STYLE_MSGBOX, "Gender", "What is your character's gender?", "Male", "Female");
- LoadPlayerData(playerid);
- SavePlayer(playerid);
- return 1;
- }
- Server:GetDistanceBetweenPlayers(playerid, id, Float:distance)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(pLoggedIn[id] && GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(id) && GetPlayerInterior(playerid) == GetPlayerInterior(id))
- {
- if(IsPlayerInRangeOfPoint(id, distance, x, y, z))
- {
- return true;
- }
- }
- return false;
- }
- Server:KickTimer(playerid)
- {
- Kick(playerid);
- return true;
- }
- Server:EndStream(playerid)
- {
- TogglePlayerControllable(playerid, 1);
- return true;
- }
- Server:LoadingStream(playerid)
- {
- TogglePlayerControllable(playerid, 0);
- return true;
- }
- Server:SaveFactionToDatabase(playerid)
- {
- new query[256];
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO factions (`Name`, `Abbreviation`) VALUES('%e', '%e')", FactionName, FactionAbbrev);
- mysql_pquery(m_Handle, query, "SQL_SaveFactionToDB", "i", playerid);
- return true;
- }
- Server:SaveDoorToDatabase(playerid)
- {
- new query[256];
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO doors (`PosX`, `PosY`, `PosZ`, `PosInterior`, `PosWorld`, `IntX`, `IntY`, `IntZ`, `IntA`, `IntInterior`, `IntWorld`, `Faction`) VALUES(%f, %f, %f, %i, %i, %f, %f, %f, %f, %i, %i, %i)",
- Resources[playerid][Exterior][0], Resources[playerid][Exterior][1], Resources[playerid][Exterior][2], Resources[playerid][extInteriorID], Resources[playerid][extWorld],
- Resources[playerid][Interior][0], Resources[playerid][Interior][1], Resources[playerid][Interior][2], Resources[playerid][Interior][3], Resources[playerid][intInteriorID], Resources[playerid][intWorld], Resources[playerid][v_Faction]);
-
- mysql_pquery(m_Handle, query, "SQL_CallDoorCreate", "i", playerid);
- return true;
- }
- Server:SavePropertyGarageToDB(playerid)
- {
- new query[560];
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO property_garages (`PosX`, `PosY`, `PosZ`, `PosA`, `IntX`, `IntY`, `IntZ`, `InteriorID`, `InteriorWorld`, `Type`, `PropertyID`) VALUES(%f, %f, %f, %f, %f, %f, %f, %i, %i, %i, %i)",
- Resources[playerid][Exterior][0], Resources[playerid][Exterior][1], Resources[playerid][Exterior][2], Resources[playerid][Exterior][3], Resources[playerid][Interior][0], Resources[playerid][Interior][1], Resources[playerid][Interior][2],
- Resources[playerid][InteriorID], Resources[playerid][InteriorWorld], Resources[playerid][Type], Resources[playerid][PropertyLink]);
- mysql_pquery(m_Handle, query, "SQL_CallPropGarageCreate", "i", playerid);
- return true;
- }
- Server:CallPropertyCreate(playerid)
- {
- new query[500];
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO properties (`OwnerSQL`, `Type`, `ExteriorX`, `ExteriorY`, `ExteriorZ`, `ExteriorID`, `ExteriorWorld`, `InteriorX`, `InteriorY`, `InteriorZ`, `InteriorA`, `InteriorID`, `InteriorWorld`, `MarketPrice`, `Level`, `ComplexID`) VALUES (0, %i, %f, %f, %f, %i, %i, %f, %f, %f, %f, %i, %i, %i, %i, %i)",
- Resources[playerid][Type], Resources[playerid][Exterior][0], Resources[playerid][Exterior][1], Resources[playerid][Exterior][2], Resources[playerid][extInteriorID], Resources[playerid][extWorld], Resources[playerid][Interior][0], Resources[playerid][Interior][1], Resources[playerid][Interior][2], Resources[playerid][Interior][3],
- Resources[playerid][intInteriorID], Resources[playerid][intWorld], Resources[playerid][Cost], Resources[playerid][Level], Resources[playerid][ComplexLink]);
-
- mysql_pquery(m_Handle, query, "SQL_CallPropertyCreate", "i", playerid);
-
- return true;
- }
- Server:CallBusinessCreate(playerid)
- {
- new query[456];
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO businesses (`InteriorX`, `InteriorY`, `InteriorZ`, `InteriorA`, `World`, `InteriorID`, `ExteriorX`, `ExteriorY`, `ExteriorZ`, `Type`, `Level`, `MarketPrice`) VALUES(%f, %f, %f, %f, %i, %i, %f, %f, %f, %i, %i, %i)",
- Resources[playerid][Interior][0], Resources[playerid][Interior][1], Resources[playerid][Interior][2], Resources[playerid][Interior][3], Resources[playerid][intWorld], Resources[playerid][intInteriorID],
- Resources[playerid][Exterior][0], Resources[playerid][Exterior][1], Resources[playerid][Exterior][2], Resources[playerid][Type], Resources[playerid][Level], Resources[playerid][Cost]);
-
- mysql_pquery(m_Handle, query, "SQL_CallBusinessCreate", "i", playerid);
- return true;
- }
- Server:CallPNSCreate(playerid)
- {
- new query[256];
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO paynspray (`Price`, `EntranceX`, `EntranceY`, `EntranceZ`, `RepairSpotX`, `RepairSpotY`, `RepairSpotZ`) VALUES(%i, %f, %f, %f, %f, %f, %f)",
- Resources[playerid][Cost], Resources[playerid][Exterior][0], Resources[playerid][Exterior][1], Resources[playerid][Exterior][2], Resources[playerid][Interior][0],
- Resources[playerid][Interior][1], Resources[playerid][Interior][2]);
-
- mysql_pquery(m_Handle, query, "SQL_CallPNSCreate", "i", playerid);
- return true;
- }
- Server:CallTollCreate(playerid)
- {
- new query[256];
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO tolls (`PointAX`, `PointAY`, `PointAZ`, `PointBX`, `PointBY`, `PointBZ`) VALUES (%f, %f, %f, %f, %f, %f)",
- Resources[playerid][Exterior][0], Resources[playerid][Exterior][1], Resources[playerid][Exterior][2], Resources[playerid][Interior][0],
- Resources[playerid][Interior][1], Resources[playerid][Interior][2]);
-
- mysql_pquery(m_Handle, query, "SQL_CallTollCreate", "i", playerid);
- return true;
- }
- Server:SQL_AddRentalVehicle(playerid)
- {
- new newvehicleid, vehicleid = GetPlayerVehicleID(playerid);
-
- RentalData[vehicleid][rentalcarSQLID] = cache_insert_id();
- RentalData[vehicleid][rentalcarModel] = Resources[playerid][v_Model];
-
- RentalData[vehicleid][rentalcarColor1] = Resources[playerid][v_Color1];
- RentalData[vehicleid][rentalcarColor2] = Resources[playerid][v_Color2];
-
- RentalData[vehicleid][rentalcarPos][0] = Resources[playerid][v_Pos][0];
- RentalData[vehicleid][rentalcarPos][1] = Resources[playerid][v_Pos][1];
- RentalData[vehicleid][rentalcarPos][2] = Resources[playerid][v_Pos][2];
- RentalData[vehicleid][rentalcarPos][3] = Resources[playerid][v_Pos][3];
-
- DestroyVehicle(vehicleid);
- newvehicleid = CreateVehicle(RentalData[vehicleid][rentalcarModel], RentalData[vehicleid][rentalcarPos][0], RentalData[vehicleid][rentalcarPos][1], RentalData[vehicleid][rentalcarPos][2], RentalData[vehicleid][rentalcarPos][3],
- RentalData[vehicleid][rentalcarColor1], RentalData[vehicleid][rentalcarColor2], -1, 0);
-
- PutPlayerInVehicle(playerid, newvehicleid, 0);
- printf("[WARNING] Vehicle ID %d was added as a faction vehicle by %s", vehicleid, ReturnName(playerid, 1));
- return true;
-
- }
- Server:SQL_AddFactionVehicle(playerid)
- {
- new newvehicleid, vehicleid = GetPlayerVehicleID(playerid);
-
- DestroyVehicle(vehicleid);
- newvehicleid = CreateVehicle(Resources[playerid][v_Model], Resources[playerid][v_Pos][0], Resources[playerid][v_Pos][1], Resources[playerid][v_Pos][2], Resources[playerid][v_Pos][3], Resources[playerid][v_Color1],
- Resources[playerid][v_Color2], -1, 0);
-
- PutPlayerInVehicle(playerid, newvehicleid, 0);
-
- if(newvehicleid != INVALID_VEHICLE_ID) {
- FactionCar[newvehicleid][carID] = cache_insert_id();
- FactionCar[newvehicleid][carModel] = Resources[playerid][v_Model];
- FactionCar[newvehicleid][carFaction] = Resources[playerid][v_Faction];
- FactionCar[newvehicleid][carColor1] = Resources[playerid][v_Color1];
- FactionCar[newvehicleid][carColor2] = Resources[playerid][v_Color2];
- FactionCar[newvehicleid][carPos][0] = Resources[playerid][v_Pos][0];
- FactionCar[newvehicleid][carPos][1] = Resources[playerid][v_Pos][1];
- FactionCar[newvehicleid][carPos][2] = Resources[playerid][v_Pos][2];
- FactionCar[newvehicleid][carPos][3] = Resources[playerid][v_Pos][3];
- FactionCar[newvehicleid][carInterior] = GetPlayerInterior(playerid);
- FactionCar[newvehicleid][carWorld] = GetPlayerVirtualWorld(playerid);
-
- if(FactionCar[newvehicleid][carInterior] != 0)
- LinkVehicleToInterior(newvehicleid, GetPlayerInterior(playerid));
-
- SetVehicleVirtualWorld(newvehicleid, GetPlayerVirtualWorld(playerid));
- }
-
- printf("[WARNING] Vehicle ID %d was added as a faction vehicle by %s", newvehicleid, ReturnName(playerid, 1));
- return true;
- }
- Server:SQL_AddFurniture(id)
- {
- FurnitureData[id][furnitureSQLID] = cache_insert_id();
- SaveFurniture(id);
- LoadFurnitureObjects(id);
- return true;
- }
- Server:SQL_BuyPlayerCar(playerid)
- {
- PlayerData[playerid][pOwnedCar][g_aSlotSave[playerid]] = cache_insert_id();
- SavePlayer(playerid);
-
- new vehicleid;
-
- GetPlayerPos(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]);
-
- vehicleid = CreateVehicle(ds_PlayerMenuModels[playerid][SubDealershipHolder[playerid]], PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2], 90, g_aVehicleColor[playerid][0], g_aVehicleColor[playerid][1], -1);
- SetVehicleNumberPlate(vehicleid, g_aPlates[playerid]);
- SetVehicleToRespawn(vehicleid);
-
- PutPlayerInVehicle(playerid, vehicleid, 0);
-
- CarData[vehicleid][carID] = cache_insert_id();
- CarData[vehicleid][carOwnerID] = PlayerData[playerid][pSQLID];
- CarData[vehicleid][carColor1] = g_aVehicleColor[playerid][0];
- CarData[vehicleid][carColor2] = g_aVehicleColor[playerid][1];
- CarData[vehicleid][carLocked] = 0;
- CarData[vehicleid][carLock] = g_aLockLevel[playerid];
- CarData[vehicleid][carAlarm] = g_aAlarmLevel[playerid];
- CarData[vehicleid][carImmob] = g_aImmobLevel[playerid];
- CarData[vehicleid][carXMR] = g_aXMR[playerid];
- CarData[vehicleid][carInsurance] = 0;
- CarData[vehicleid][carFuel] = 100;
- CarData[vehicleid][carModel] = ds_PlayerMenuModels[playerid][SubDealershipHolder[playerid]];
- format(CarData[vehicleid][carPlates], 32, "%s", g_aPlates[playerid]);
-
- CarData[vehicleid][carEngine] = 100.00;
- CarData[vehicleid][carBattery] = 100.00;
-
- GetPlayerPos(playerid, CarData[vehicleid][carPos][0], CarData[vehicleid][carPos][1], CarData[vehicleid][carPos][2]);
- CarData[vehicleid][carPos][3] = 90.0;
-
- _has_vehicle_spawned[playerid] = true;
- _has_spawned_vehicleid[playerid] = vehicleid;
-
- cmd_v(playerid, "stats");
-
- switch(GetVehicleModel(vehicleid))
- {
- case 481, 509, 510: ToggleVehicleEngine(vehicleid, true);
- }
-
- WriteLog("vehicle_logs/purchase_log.txt", "[%s] %s bought a %s for $%s [Lock: %i, Alarm: %i, Immob: %i, XMR: %s]", ReturnDate(), ReturnName(playerid), ReturnVehicleName(vehicleid), MoneyFormat(g_aTotalAmount[playerid]), g_aLockLevel[playerid], g_aAlarmLevel[playerid], g_aImmobLevel[playerid], (g_aXMR[playerid] != 1) ? ("No") : ("Yes"));
- ClearDealershipVar(playerid);
- return true;
- }
- Server:BuyPlayerCarEx(playerid)
- {
- SendClientMessage(playerid, 0xB9E35EFF, "PROCESSED: Your list was rebuilt.");
- PutPlayerInVehicle(playerid, _has_spawned_vehicleid[playerid], 0);
-
- return true;
- }
- Server:SQL_SaveFactionToDB(playerid)
- {
- TotalFactionsLoaded++;
- new i = TotalFactionsLoaded;
- new string[128];
- new query[200];
- FactionData[i][factionID] = cache_insert_id();
- FactionData[i][factionName] = FactionName;
- FactionData[i][factionAbbrev] = FactionAbbrev;
- printf("[DEBUG] Faction ID %i has been created by Admin %s", cache_insert_id(), ReturnName(playerid, 1));
- format(string, sizeof(string), "[ ! ]{FFFFFF} {FF6347}%s{FFFFFF} ( %i ) was created.", FactionName, cache_insert_id());
- SendClientMessage(playerid, COLOR_ADM, string);
- SendClientMessage(playerid, COLOR_ADM, "To configure the faction, use /editrank to set the edit rank first. /editfaction to set the type.");
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO faction_ranks (faction_id) VALUES (%i)", cache_insert_id());
- mysql_tquery(m_Handle, query, "CreateFactionRanks", "i", playerid);
- WriteLog("admin_logs/factions/makefaction.txt", "[%s] %s made faction ID %i", ReturnDate(), ReturnName(playerid), cache_insert_id());
- return true;
- }
- Server:CreateFactionRanks(playerid)
- {
- return SendClientMessage(playerid, -1, "Entry for faction ranks was made.");
- }
- Server:SQL_CallTollCreate(playerid)
- {
- TotalTollsLoaded++;
-
- new i = TotalTollsLoaded, string[128];
-
- TollsData[i][tollID] = cache_insert_id();
- TollsData[i][tollPrice] = 1;
- TollsData[i][tollLocked] = false;
- TollsData[i][tollPointA][0] = Resources[playerid][Exterior][0];
- TollsData[i][tollPointA][1] = Resources[playerid][Exterior][1];
- TollsData[i][tollPointA][2] = Resources[playerid][Exterior][2];
-
- TollsData[i][tollPointB][0] = Resources[playerid][Interior][0];
- TollsData[i][tollPointB][1] = Resources[playerid][Interior][1];
- TollsData[i][tollPointB][2] = Resources[playerid][Interior][2];
-
- format(string, sizeof(string), "SERVER: Successfully created Toll booth... Booth id : %d", cache_insert_id());
- SendClientMessage(playerid, COLOR_YELLOW, string);
- printf("[WARNING] %s created Toll Booth ID %d", ReturnName(playerid, 1), cache_insert_id());
- WriteLog("admin_logs/maketolls_log.txt", "[%s] %s created toll booth ID %d", ReturnDate(), ReturnName(playerid, 1), cache_insert_id());
-
- for(new j = 0; j < 4; j++){
- Resources[playerid][Interior][j] = 0;
- }
- for(new q = 0; q < 3; q++){
- Resources[playerid][Exterior][q] = 0;
- }
-
- return true;
- }
- Server:SQL_CallPNSCreate(playerid)
- {
- TotalPaynSpraysLoaded++;
-
- new i = TotalPaynSpraysLoaded, string[128];
-
- PNSData[i][pnsID] = cache_insert_id();
- PNSData[i][pnsOwnerSQL] = 0;
- PNSData[i][pnsPrice] = Resources[playerid][Cost];
- PNSData[i][pnsEarnings] = 0;
-
- PNSData[i][pnsEntrance][0] = Resources[playerid][Exterior][0];
- PNSData[i][pnsEntrance][1] = Resources[playerid][Exterior][1];
- PNSData[i][pnsEntrance][2] = Resources[playerid][Exterior][2];
-
- PNSData[i][pnsRepairSpot][0] = Resources[playerid][Interior][0];
- PNSData[i][pnsRepairSpot][1] = Resources[playerid][Interior][1];
- PNSData[i][pnsRepairSpot][2] = Resources[playerid][Interior][2];
- format(PNSData[i][pnsName], 128, "No-Name");
-
- PNSData[i][pnsPickup] = CreateDynamicPickup(1239, 14, PNSData[i][pnsEntrance][0], PNSData[i][pnsEntrance][1], PNSData[i][pnsEntrance][2], 0);
-
- format(string, sizeof(string), "SERVER: Successfully created Pay n Spray... PNS id: %d", cache_insert_id());
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- printf("[WARNING] %s created PaynSpray ID %d", ReturnName(playerid, 1), cache_insert_id());
- WriteLog("admin_logs/paynspray/makepns_log.txt", "[%s] %s created PNS ID %d", ReturnDate(), ReturnName(playerid, 1), cache_insert_id());
-
- for(new j = 0; j < 4; j++){
- Resources[playerid][Interior][j] = 0;
- }
- for(new q = 0; q < 3; q++){
- Resources[playerid][Exterior][q] = 0;
- }
-
- Resources[playerid][Cost] = 0;
- return true;
- }
- Server:SQL_CallBusinessCreate(playerid)
- {
- TotalBusinessesLoaded++;
-
- new i = TotalBusinessesLoaded, string[128];
-
- BusinessData[i][businessID] = cache_insert_id();
- BusinessData[i][businessOwnerSQL] = 0;
-
- BusinessData[i][businessExt][0] = Resources[playerid][Exterior][0];
- BusinessData[i][businessExt][1] = Resources[playerid][Exterior][1];
- BusinessData[i][businessExt][2] = Resources[playerid][Exterior][2];
-
- BusinessData[i][businessInt][0] = Resources[playerid][Interior][0];
- BusinessData[i][businessInt][1] = Resources[playerid][Interior][1];
- BusinessData[i][businessInt][2] = Resources[playerid][Interior][2];
- BusinessData[i][businessInt][3] = Resources[playerid][Interior][3];
-
- BusinessData[i][businessIntID] = Resources[playerid][intInteriorID];
- BusinessData[i][businessWorld] = Resources[playerid][intWorld];
-
- BusinessData[i][businessMarketPrice] = Resources[playerid][Cost];
- BusinessData[i][businessLevel] = Resources[playerid][Level];
- BusinessData[i][businessType] = Resources[playerid][Type];
- BusinessData[i][businessCashbox] = 0;
- BusinessData[i][businessProduct] = 0;
- BusinessData[i][businessFee] = 1;
-
- if(BusinessData[i][businessType] == BIZ_RESTAURANT){
- if(BusinessData[i][businessOwnerSQL] == 0){
- BusinessData[i][businessPickup] = CreateDynamicPickup(1272, 14, BusinessData[i][businessExt][0], BusinessData[i][businessExt][1], BusinessData[i][businessExt][2], 0);
- }
- else{
- BusinessData[i][businessPickup] = CreateDynamicPickup(1239, 14, BusinessData[i][businessExt][0], BusinessData[i][businessExt][1], BusinessData[i][businessExt][2], 0);
- }
- }
- else{
- BusinessData[i][businessPickup] = CreateDynamicPickup(1239, 14, BusinessData[i][businessExt][0], BusinessData[i][businessExt][1], BusinessData[i][businessExt][2], 0);
- }
- format(string, sizeof(string), "SERVER: Successfully created business... Business id : %d", cache_insert_id());
- SendClientMessage(playerid, COLOR_YELLOW, string);
- printf("[WARNING] %s created business ID %d", ReturnName(playerid, 1), cache_insert_id());
- WriteLog("admin_logs/businesses/makebusiness_log.txt", "[%s] %s created business ID %d", ReturnDate(), ReturnName(playerid, 1), cache_insert_id());
-
- for(new j = 0; j < 4; j++){
- Resources[playerid][Interior][j] = 0;
- }
- for(new q = 0; q < 3; q++){
- Resources[playerid][Exterior][q] = 0;
- }
- Resources[playerid][Type] = 0;
- Resources[playerid][Cost] = 0;
- Resources[playerid][Level] = 0;
- return true;
- }
- Server:SQL_CallDoorCreate(playerid)
- {
- TotalDoorsLoaded++;
-
- new i = TotalDoorsLoaded, string[128];
-
- DoorData[i][doorID] = cache_insert_id();
-
- DoorData[i][doorPos][0] = Resources[playerid][Exterior][0];
- DoorData[i][doorPos][1] = Resources[playerid][Exterior][1];
- DoorData[i][doorPos][2] = Resources[playerid][Exterior][2];
-
- DoorData[i][doorPosIntID] = Resources[playerid][extInteriorID];
- DoorData[i][doorPosWorld] = Resources[playerid][extWorld];
-
- DoorData[i][doorInt][0] = Resources[playerid][Interior][0];
- DoorData[i][doorInt][1] = Resources[playerid][Interior][1];
- DoorData[i][doorInt][2] = Resources[playerid][Interior][2];
- DoorData[i][doorInt][3] = Resources[playerid][Interior][3];
- DoorData[i][doorIntID] = Resources[playerid][intInteriorID];
- DoorData[i][doorIntWorld] = Resources[playerid][intWorld];
-
- DoorData[i][doorFaction] = Resources[playerid][v_Faction];
-
- format(DoorData[i][doorName], 128, "None");
-
- format(string, sizeof(string), "SERVER: Successfully created dynamic door... Door id : %d", cache_insert_id());
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- printf("[WARNING] Dynamic door %i was created by %s", cache_insert_id(), ReturnName(playerid, 1));
- WriteLog("admin_logs/doors/makedoor_log.txt", "[%s] %s created Door %i", ReturnDate(), ReturnName(playerid, 1), cache_insert_id());
-
- return true;
- }
- Server:SQL_CallPropGarageCreate(playerid)
- {
- TotalPropertyGaragesMade++;
-
- new i = TotalPropertyGaragesMade, string[128];
-
- GarageData[i][garageSQLID] = cache_insert_id();
-
- GarageData[i][garagePos][0] = Resources[playerid][Exterior][0];
- GarageData[i][garagePos][1] = Resources[playerid][Exterior][1];
- GarageData[i][garagePos][2] = Resources[playerid][Exterior][2];
-
- GarageData[i][garageInt][0] = Resources[playerid][Interior][0];
- GarageData[i][garageInt][1] = Resources[playerid][Interior][1];
- GarageData[i][garageInt][2] = Resources[playerid][Interior][2];
-
- GarageData[i][garageInteriorID] = Resources[playerid][InteriorID];
- GarageData[i][garageWorld] = Resources[playerid][InteriorWorld];
-
- GarageData[i][garageType] = Resources[playerid][Type];
- GarageData[i][garagePropertyID] = Resources[playerid][PropertyLink];
- GarageData[i][garageLocked] = 0;
-
- format(string, sizeof(string), "SERVER: Successfully created garage... Garage id: %d", cache_insert_id());
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- WriteLog("admin_logs/garages/makepropgarage_log.txt", "[%s] %s created Garage %d with property %d link. Type %d.", ReturnDate(), ReturnName(playerid, 1), cache_insert_id(), GarageData[i][garagePropertyID]);
-
- for(new j = 0; j < 4; j++){
- Resources[playerid][Interior][j] = 0;
- }
- for(new q = 0; q < 3; q++){
- Resources[playerid][Exterior][q] = 0;
- }
- Resources[playerid][Type] = 0;
- Resources[playerid][PropertyLink] = 0;
- return true;
- }
- Server:SQL_CallPropertyCreate(playerid)
- {
- TotalPropertyMade++;
-
- new i = TotalPropertyMade, string[128];
-
- PropertyData[i][propertyid] = cache_insert_id();
- PropertyData[i][propertyOwnerSQL] = 0;
-
- PropertyData[i][propertyExterior][0] = Resources[playerid][Exterior][0];
- PropertyData[i][propertyExterior][1] = Resources[playerid][Exterior][1];
- PropertyData[i][propertyExterior][2] = Resources[playerid][Exterior][2];
- PropertyData[i][propertyExteriorID] = Resources[playerid][extInteriorID];
- PropertyData[i][propertyExteriorWorld] = Resources[playerid][extWorld];
-
- PropertyData[i][propertyInterior][0] = Resources[playerid][Interior][0];
- PropertyData[i][propertyInterior][1] = Resources[playerid][Interior][1];
- PropertyData[i][propertyInterior][2] = Resources[playerid][Interior][2];
- PropertyData[i][propertyInterior][3] = Resources[playerid][Interior][3];
- PropertyData[i][propertyInteriorID] = Resources[playerid][intInteriorID];
- PropertyData[i][propertyInteriorWorld] = Resources[playerid][intWorld];
-
- PropertyData[i][propertyLevel] = Resources[playerid][Level];
- PropertyData[i][propertyType] = Resources[playerid][Type];
- PropertyData[i][propertyMarketPrice] = Resources[playerid][Cost];
-
- PropertyData[i][propertyComplexLink] = Resources[playerid][ComplexLink];
-
- if(PropertyData[i][propertyType] == 1){
- PropertyData[i][propertyPickup] = CreateDynamicPickup(1314, 14, PropertyData[i][propertyExterior][0], PropertyData[i][propertyExterior][1], PropertyData[i][propertyExterior][2], 0);
- }
-
- if(PropertyData[i][propertyType] == 1){
- format(string, sizeof(string), "Complex[%d] For Sale:\nPrice: $%d\nLevel: %d", i, PropertyData[i][propertyMarketPrice], PropertyData[i][propertyLevel]);
- PropertyData[i][ForSaleSign] = CreateDynamic3DTextLabel(string, COLOR_TEXTDRAW, PropertyData[i][propertyExterior][0], PropertyData[i][propertyExterior][1], PropertyData[i][propertyExterior][2], 15.0);
- }
- else if(PropertyData[i][propertyType] == 2){
- format(string, sizeof(string), "Apartment[%d] For Sale:\nPrice: $%d\nLevel: %d", i, PropertyData[i][propertyMarketPrice], PropertyData[i][propertyLevel]);
- PropertyData[i][ForSaleSign] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, PropertyData[i][propertyExterior][0], PropertyData[i][propertyExterior][1], PropertyData[i][propertyExterior][2], 20.0, .worldid = PropertyData[i][propertyExteriorWorld]);
- }
- else if(PropertyData[i][propertyType] == 3){
- format(string, sizeof(string), "House[%d] For Sale:\nPrice: $%d\nLevel: %d", i, PropertyData[i][propertyMarketPrice], PropertyData[i][propertyLevel]);
- PropertyData[i][ForSaleSign] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, PropertyData[i][propertyExterior][0], PropertyData[i][propertyExterior][1], PropertyData[i][propertyExterior][2], 15.0);
- }
-
- printf("[WARNING] %s created Property %d", ReturnName(playerid, 0), cache_insert_id());
-
- format(string, sizeof(string), "SERVER: Successfully created property... Property id : %d", cache_insert_id());
- SendClientMessage(playerid, COLOR_YELLOW, string);
- WriteLog("admin_logs/properties/makeproperty_log.txt", "[%s] %s created property ID %d", ReturnDate(), ReturnName(playerid, 1), cache_insert_id());
-
- for(new j = 0; j < 4; j++){
- Resources[playerid][Interior][j] = 0;
- }
- for(new q = 0; q < 3; q++){
- Resources[playerid][Exterior][q] = 0;
- }
- Resources[playerid][Type] = 0;
- Resources[playerid][Cost] = 0;
- Resources[playerid][Level] = 0;
-
- return true;
- }
- Server:SQL_LoadPaynSpray()
- {
- if(cache_num_rows() == 0) return print("Loading - No Pay n Sprays were available to load.");
-
- new rows, fields;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- for(new i = 0; i < rows && i < MAX_PAYNSPRAY; i++){
-
- cache_get_value_name_int(i, "id", PNSData[i+1][pnsID]);
- cache_get_value_name_int(i, "OwnerSQL", PNSData[i+1][pnsOwnerSQL]);
- cache_get_value_name_int(i, "Price", PNSData[i+1][pnsPrice]);
- cache_get_value_name(i, "Name", PNSData[i+1][pnsName], 128);
-
- cache_get_value_name_float(i, "EntranceX", PNSData[i+1][pnsEntrance][0]);
- cache_get_value_name_float(i, "EntranceY", PNSData[i+1][pnsEntrance][1]);
- cache_get_value_name_float(i, "EntranceZ", PNSData[i+1][pnsEntrance][2]);
-
- cache_get_value_name_float(i, "RepairSpotX", PNSData[i+1][pnsRepairSpot][0]);
- cache_get_value_name_float(i, "RepairSpotY", PNSData[i+1][pnsRepairSpot][1]);
- cache_get_value_name_float(i, "RepairSpotZ", PNSData[i+1][pnsRepairSpot][2]);
-
- cache_get_value_name_int(i, "Earnings", PNSData[i+1][pnsEarnings]);
-
- PNSData[i+1][pnsPickup] = CreateDynamicPickup(1239, 14, PNSData[i+1][pnsEntrance][0], PNSData[i+1][pnsEntrance][1], PNSData[i+1][pnsEntrance][2], 0);
-
- TotalPaynSpraysLoaded++;
- }
-
- printf("Loading - %i Pay n Sprays from MySQL database.", TotalPaynSpraysLoaded);
- return true;
- }
- Server:SQL_LoadTolls()
- {
- if(cache_num_rows() == 0)return print("Loading - No Toll Booths were available to load.");
-
- new rows, fields;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- for(new i = 0; i < rows && i < MAX_TOLLS; i++){
- cache_get_value_name_int(i, "id", TollsData[i+1][tollID]);
- cache_get_value_name_int(i, "Price", TollsData[i+1][tollPrice]);
-
- cache_get_value_name_float(i, "PointAX", TollsData[i+1][tollPointA][0]);
- cache_get_value_name_float(i, "PointAY", TollsData[i+1][tollPointA][1]);
- cache_get_value_name_float(i, "PointAZ", TollsData[i+1][tollPointA][2]);
-
- cache_get_value_name_float(i, "PointBX", TollsData[i+1][tollPointB][0]);
- cache_get_value_name_float(i, "PointBY", TollsData[i+1][tollPointB][1]);
- cache_get_value_name_float(i, "PointBZ", TollsData[i+1][tollPointB][2]);
-
- TotalTollsLoaded++;
- }
- printf("Loading - %i tolls from MySQL database.", TotalTollsLoaded);
- return true;
- }
- Server:SQL_LoadBusinesses()
- {
- if(cache_num_rows() == 0) return print("Loading - No businesses were available to load.");
-
- new rows, fields, str[128];
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- for(new i = 0; i < rows && i < MAX_BUSINESS; i++){
-
- cache_get_value_name_int(i, "id", BusinessData[i+1][businessID]);
- cache_get_value_name_int(i, "OwnerSQL", BusinessData[i+1][businessOwnerSQL]);
-
- cache_get_value_name_float(i, "ExteriorX", BusinessData[i+1][businessExt][0]);
- cache_get_value_name_float(i, "ExteriorY", BusinessData[i+1][businessExt][1]);
- cache_get_value_name_float(i, "ExteriorZ", BusinessData[i+1][businessExt][2]);
-
- cache_get_value_name_float(i, "InteriorX", BusinessData[i+1][businessInt][0]);
- cache_get_value_name_float(i, "InteriorY", BusinessData[i+1][businessInt][1]);
- cache_get_value_name_float(i, "InteriorZ", BusinessData[i+1][businessInt][2]);
- cache_get_value_name_float(i, "InteriorA", BusinessData[i+1][businessInt][3]);
- cache_get_value_name_int(i, "World", BusinessData[i+1][businessWorld]);
- cache_get_value_name_int(i, "InteriorID", BusinessData[i+1][businessIntID]);
-
- cache_get_value_name_float(i, "BankPX", BusinessData[i+1][businessBankPickupLoc][0]);
- cache_get_value_name_float(i, "BankPY", BusinessData[i+1][businessBankPickupLoc][1]);
- cache_get_value_name_float(i, "BankPZ", BusinessData[i+1][businessBankPickupLoc][2]);
- cache_get_value_name_int(i, "BankPIntID", BusinessData[i+1][businessBankPickupIntID]);
- cache_get_value_name_int(i, "BankPWorld", BusinessData[i+1][businessBankPickupWorld]);
-
- cache_get_value_name(i, "Name", BusinessData[i+1][businessName], 128);
- if (strlen(BusinessData[i+1][businessName]) < 1) {
- format(BusinessData[i+1][businessName], 128, "NULL");
- }
- cache_get_value_name_int(i, "Type", BusinessData[i+1][businessType]);
-
- if(BusinessData[i+1][businessType] == BIZ_RESTAURANT){
- if(BusinessData[i+1][businessOwnerSQL] == 0){
- BusinessData[i+1][businessPickup] = CreateDynamicPickup(1272, 14, BusinessData[i+1][businessExt][0], BusinessData[i+1][businessExt][1], BusinessData[i+1][businessExt][2], 0);
- }
- else{
- BusinessData[i+1][businessPickup] = CreateDynamicPickup(1239, 14, BusinessData[i+1][businessExt][0], BusinessData[i+1][businessExt][1], BusinessData[i+1][businessExt][2], 0);
- }
- }
- else{
- BusinessData[i+1][businessPickup] = CreateDynamicPickup(1239, 14, BusinessData[i+1][businessExt][0], BusinessData[i+1][businessExt][1], BusinessData[i+1][businessExt][2], 0);
- }
-
- if(BusinessData[i+1][businessType] == BIZ_BANK){
- BusinessData[i+1][businessBankPickup] = CreateDynamicPickup(1274, 2, BusinessData[i+1][businessBankPickupLoc][0], BusinessData[i+1][businessBankPickupLoc][1], BusinessData[i+1][businessBankPickupLoc][2], BusinessData[i+1][businessBankPickupWorld]);
- }
-
- cache_get_value_name_int(i, "MarketPrice", BusinessData[i+1][businessMarketPrice]);
- cache_get_value_name_int(i, "Locked", BusinessData[i+1][businessLocked]);
- cache_get_value_name_int(i, "Fee", BusinessData[i+1][businessFee]);
- cache_get_value_name_int(i, "Cashbox", BusinessData[i+1][businessCashbox]);
- cache_get_value_name_int(i, "Level", BusinessData[i+1][businessLevel]);
- cache_get_value_name_int(i, "Product", BusinessData[i+1][businessProduct]);
-
- for(new w = 0; w < 21; w++){
- format(str, sizeof(str), "Weapons%d", w);
- cache_get_value_name_int(i, str, BusinessData[i+1][businessWeapons][w]);
-
- format(str, sizeof(str), "Ammo%d", w);
- cache_get_value_name_int(i, str, BusinessData[i+1][businessWeaponsAmmo][w]);
- }
-
- TotalBusinessesLoaded++;
- }
- printf("Loading - %i businesses from MySQL database.", TotalBusinessesLoaded);
-
- return true;
- }
- Server:SQL_LoadFactions()
- {
- if(cache_num_rows() == 0)return print("Loading - No factions were available to load.");
- new rows, fields, newThread[128];
- cache_get_row_count(rows);
- cache_get_field_count(fields);
- for(new i = 0; i < rows && i < MAX_FACTIONS; i++){
- cache_get_value_name_int(i, "id", FactionData[i+1][factionID]);
- cache_get_value_name(i, "Name", FactionData[i+1][factionName], 128);
- cache_get_value_name(i, "Abbreviation", FactionData[i+1][factionAbbrev], 128);
- cache_get_value_name_int(i, "MaxRanks", FactionData[i+1][factionMaxRanks]);
- cache_get_value_name_int(i, "EditRank", FactionData[i+1][factionEditrank]);
- cache_get_value_name_int(i, "ChatRank", FactionData[i+1][factionChatrank]);
- cache_get_value_name_int(i, "TowRank", FactionData[i+1][factionTowrank]);
- cache_get_value_name_int(i, "ChatColor", FactionData[i+1][factionChatColor]);
- cache_get_value_name_int(i, "ChatStatus", FactionData[i+1][factionChatStatus]);
- cache_get_value_name_int(i, "CopPerms", FactionData[i+1][factionCopPerms]);
- cache_get_value_name_int(i, "MedPerms", FactionData[i+1][factionMedPerms]);
- cache_get_value_name_int(i, "NewsPerms", FactionData[i+1][factionNewsPerms]);
- cache_get_value_name_float(i, "SpawnX", FactionData[i+1][factionSpawn][0]);
- cache_get_value_name_float(i, "SpawnY", FactionData[i+1][factionSpawn][1]);
- cache_get_value_name_float(i, "SpawnZ", FactionData[i+1][factionSpawn][2]);
- cache_get_value_name_float(i, "SpawnA", FactionData[i+1][factionSpawn][3]);
-
- cache_get_value_name_float(i, "ExSpawn1X", FactionData[i+1][factionSpawnEx1][0]);
- cache_get_value_name_float(i, "ExSpawn1Y", FactionData[i+1][factionSpawnEx1][1]);
- cache_get_value_name_float(i, "ExSpawn1Z", FactionData[i+1][factionSpawnEx1][2]);
-
- cache_get_value_name_float(i, "ExSpawn2X", FactionData[i+1][factionSpawnEx2][0]);
- cache_get_value_name_float(i, "ExSpawn2Y", FactionData[i+1][factionSpawnEx2][1]);
- cache_get_value_name_float(i, "ExSpawn2Z", FactionData[i+1][factionSpawnEx2][2]);
-
- cache_get_value_name_float(i, "ExSpawn3X", FactionData[i+1][factionSpawnEx3][0]);
- cache_get_value_name_float(i, "ExSpawn3Y", FactionData[i+1][factionSpawnEx3][1]);
- cache_get_value_name_float(i, "ExSpawn3Z", FactionData[i+1][factionSpawnEx3][2]);
-
- cache_get_value_name_int(i, "Bank", FactionData[i+1][factionBank]);
- cache_get_value_name_int(i, "HasWarehouseAccess", FactionData[i+1][factionWarehousePerms]);
-
- cache_get_value_name_int(i, "Products", FactionData[i+1][factionProducts]);
-
- mysql_format(m_Handle, newThread, sizeof(newThread), "SELECT * FROM faction_ranks WHERE faction_id = %i", FactionData[i+1][factionID]);
- mysql_tquery(m_Handle, newThread, "Query_LoadFactionRanks", "i", i+1);
-
- FactionData[i+1][factionExists] = true;
- TotalFactionsLoaded++;
- }
- printf("Loading - %i factions loaded from MySQL database.", TotalFactionsLoaded);
- return true;
- }
- Server:Query_LoadFactionRanks(factionid)
- {
- new str[128];
-
- new rows, fields;
-
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- for (new i = 0; i < rows; i++)
- {
- for (new j = 1; j < MAX_FACTION_RANKS; j++)
- {
- format(str, sizeof(str), "factionrank%i", j);
- cache_get_value_name(i, str, FactionRanks[factionid][j], 60);
- }
- }
- return 1;
- }
- Server:SQL_LoadProperties()
- {
- if(cache_num_rows() == 0) return print("Loading - No properties were available to load.");
-
- new str[128], string[128], rows, fields;
-
- cache_get_row_count(rows);
- cache_get_field_count(fields);
- for(new i = 0; i < rows && i < MAX_PROPERTY; i++){
-
- cache_get_value_name_int(i, "id", PropertyData[i+1][propertyid]);
- cache_get_value_name_int(i, "OwnerSQL", PropertyData[i+1][propertyOwnerSQL]);
- cache_get_value_name_int(i, "Type", PropertyData[i+1][propertyType]);
- cache_get_value_name_int(i, "ComplexID", PropertyData[i+1][propertyComplexLink]);
- cache_get_value_name_float(i, "ExteriorX", PropertyData[i+1][propertyExterior][0]);
- cache_get_value_name_float(i, "ExteriorY", PropertyData[i+1][propertyExterior][1]);
- cache_get_value_name_float(i, "ExteriorZ", PropertyData[i+1][propertyExterior][2]);
-
- cache_get_value_name_int(i, "ExteriorID", PropertyData[i+1][propertyExteriorID]);
- cache_get_value_name_int(i, "ExteriorWorld", PropertyData[i+1][propertyExteriorWorld]);
-
- cache_get_value_name_float(i, "InteriorX", PropertyData[i+1][propertyInterior][0]);
- cache_get_value_name_float(i, "InteriorY", PropertyData[i+1][propertyInterior][1]);
- cache_get_value_name_float(i, "InteriorZ", PropertyData[i+1][propertyInterior][2]);
- cache_get_value_name_float(i, "InteriorA", PropertyData[i+1][propertyInterior][3]);
-
- cache_get_value_name_int(i, "InteriorID", PropertyData[i+1][propertyInteriorID]);
- cache_get_value_name_int(i, "InteriorWorld", PropertyData[i+1][propertyInteriorWorld]);
-
- cache_get_value_name_float(i, "CheckPosX", PropertyData[i+1][propertyCheckPos][0]);
- cache_get_value_name_float(i, "CheckPosY", PropertyData[i+1][propertyCheckPos][1]);
- cache_get_value_name_float(i, "CheckPosZ", PropertyData[i+1][propertyCheckPos][2]);
-
- cache_get_value_name_int(i, "Faction", PropertyData[i+1][propertyFaction]);
-
- cache_get_value_name_int(i, "MarketPrice", PropertyData[i+1][propertyMarketPrice]);
- cache_get_value_name_int(i, "Rentable", PropertyData[i+1][propertyRentable]);
- cache_get_value_name_int(i, "RentPrice", PropertyData[i+1][propertyRentPrice]);
-
- cache_get_value_name_int(i, "Locked", PropertyData[i+1][propertyLocked]);
- cache_get_value_name_int(i, "Money", PropertyData[i+1][propertyMoney]);
- cache_get_value_name_int(i, "Level", PropertyData[i+1][propertyLevel]);
-
- cache_get_value_name_int(i, "HasXMR", PropertyData[i+1][propertyHasXMR]);
-
- cache_get_value_name_float(i, "XMRPosX", PropertyData[i+1][propertyXMRPos][0]);
- cache_get_value_name_float(i, "XMRPosY", PropertyData[i+1][propertyXMRPos][1]);
- cache_get_value_name_float(i, "XMRPosZ", PropertyData[i+1][propertyXMRPos][2]);
-
- cache_get_value_name_float(i, "XMRRotX", PropertyData[i+1][propertyXMRRot][0]);
- cache_get_value_name_float(i, "XMRRotY", PropertyData[i+1][propertyXMRRot][1]);
- cache_get_value_name_float(i, "XMRRotZ", PropertyData[i+1][propertyXMRRot][2]);
-
- for(new w = 0; w < 21; w++){
- format(str, sizeof(str), "Weapons%d", w);
- cache_get_value_name_int(i, str, PropertyData[i+1][propertyWeapons][w]);
- format(str, sizeof(str), "Ammo%d", w);
- cache_get_value_name_int(i, str, PropertyData[i+1][propertyAmmo][w]);
- }
-
- if(PropertyData[i+1][propertyType] == 1)
- {
- PropertyData[i+1][propertyPickup] = CreateDynamicPickup(1314, 14, PropertyData[i+1][propertyExterior][0], PropertyData[i+1][propertyExterior][1], PropertyData[i+1][propertyExterior][2]);
- }
-
- if(PropertyData[i+1][propertyOwnerSQL] == 0){
- if(PropertyData[i+1][propertyType] == 1){
- format(string, sizeof(string), "Complex[%d] For Sale:\nPrice: $%d\nLevel: %d", i+1, PropertyData[i+1][propertyMarketPrice], PropertyData[i+1][propertyLevel]);
- PropertyData[i+1][ForSaleSign] = CreateDynamic3DTextLabel(string, COLOR_TEXTDRAW, PropertyData[i+1][propertyExterior][0], PropertyData[i+1][propertyExterior][1], PropertyData[i+1][propertyExterior][2], 7.5);
- }
- else if(PropertyData[i+1][propertyType] == 2){
- format(string, sizeof(string), "Apartment[%d] For Sale:\nPrice: $%d\nLevel: %d", i+1, PropertyData[i+1][propertyMarketPrice], PropertyData[i+1][propertyLevel]);
- PropertyData[i+1][ForSaleSign] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, PropertyData[i+1][propertyExterior][0], PropertyData[i+1][propertyExterior][1], PropertyData[i+1][propertyExterior][2], 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, PropertyData[i+1][propertyExteriorWorld], PropertyData[i+1][propertyExteriorID]);
- }
- else if(PropertyData[i+1][propertyType] == 3){
- format(string, sizeof(string), "House[%d] For Sale:\nPrice: $%d\nLevel: %d", i+1, PropertyData[i+1][propertyMarketPrice], PropertyData[i+1][propertyLevel]);
- PropertyData[i+1][ForSaleSign] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, PropertyData[i+1][propertyExterior][0], PropertyData[i+1][propertyExterior][1], PropertyData[i+1][propertyExterior][2], 7.5);
- }
- }
-
- if(PropertyData[i+1][propertyHasXMR]){
- PropertyData[i+1][propertyXMRObject] = CreateDynamicObject(2103, PropertyData[i+1][propertyXMRPos][0], PropertyData[i+1][propertyXMRPos][1], PropertyData[i+1][propertyXMRPos][2],
- PropertyData[i+1][propertyXMRRot][0], PropertyData[i+1][propertyXMRRot][1], PropertyData[i+1][propertyXMRRot][2], PropertyData[i+1][propertyInteriorWorld], PropertyData[i+1][propertyInteriorID]);
- }
-
- TotalPropertyMade++;
-
- new newThread[230];
- mysql_format(m_Handle, newThread, sizeof(newThread), "SELECT * FROM house_packages WHERE housesqlid = %i", PropertyData[i+1][propertyid]);
- mysql_tquery(m_Handle, newThread, "SQL_LoadHousePackages", "i", i+1);
-
- /*for(new f = 0; f < MAX_PROPERTY; f++){
- if(PropertyData[f][propertyid] != 0) {
- mysql_format(, query, sizeof(query), "SELECT * FROM `furniture` WHERE id = %i", PropertyData[f][propertyid]);
- mysql_pquery(, query, "SQL_LoadFurniture", "i", f);
- }
- }*/
- }
-
- printf("Loading - %i properties were loaded from MySQL database.", TotalPropertyMade);
-
- return true;
- }
- Server:SQL_LoadHousePackages(house_id)
- {
- new rows, fields, query[128];
- cache_get_row_count(rows);
- cache_get_field_count(fields);
- if(rows)
- {
- for (new i = 0; i < rows && i < 10; i++)
- {
- new id;
-
- cache_get_value_name_int(i, "id", id);
- cache_get_value_name_int(i, "type", HousePackages[house_id][id][packageType]);
- cache_get_value_name_float(i, "posX", HousePackages[house_id][id][packagePos][0]);
- cache_get_value_name_float(i, "posY", HousePackages[house_id][id][packagePos][1]);
- cache_get_value_name_float(i, "posZ", HousePackages[house_id][id][packagePos][2]);
- cache_get_value_name_float(i, "rotX", HousePackages[house_id][id][packagePos][3]);
- cache_get_value_name_float(i, "rotY", HousePackages[house_id][id][packagePos][4]);
- cache_get_value_name_float(i, "rotZ", HousePackages[house_id][id][packagePos][5]);
-
- HousePackages[house_id][id][packageObject] = CreateDynamicObject(GetPackageModel(HousePackages[house_id][id][packageType]), HousePackages[house_id][id][packagePos][0], HousePackages[house_id][id][packagePos][1], HousePackages[house_id][id][packagePos][2],
- HousePackages[house_id][id][packagePos][3], HousePackages[house_id][id][packagePos][4], HousePackages[house_id][id][packagePos][5], PropertyData[house_id][propertyInteriorWorld], PropertyData[house_id][propertyInteriorID]);
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM house_packages_drugs WHERE housesqlid = %d AND packageid = %d", PropertyData[house_id][propertyid], id);
- mysql_tquery(m_Handle, query, "SQL_LoadPackageDrugs", "dd", id, house_id);
- }
- }
- return 1;
- }
- Server:SQL_LoadPackageDrugs(package_id, house_id)
- {
- new rows, fields;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
- if(rows)
- {
- for (new i = 0; i < rows && i < 20; i++)
- {
- new id;
-
- cache_get_value_name_int(i, "id", id);
- cache_get_value_name_int(i, "package", PackageDrugs[house_id][package_id][id][drugPackage]);
- cache_get_value_name_int(i, "type", PackageDrugs[house_id][package_id][id][drugType]);
- cache_get_value_name_float(i, "quantity", PackageDrugs[house_id][package_id][id][drugQuantity]);
- cache_get_value_name_int(i, "strength", PackageDrugs[house_id][package_id][id][drugStrength]);
- }
- }
- }
- Server:SQL_LoadFurniture()
- {
- new rows, fields, count = 0;
-
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- if(rows) {
- for(new i = 0, j = 0; i < rows && i < MAX_FURNITURE; i++, j++) {
- cache_get_value_name_int(i, "id", FurnitureData[j][furnitureSQLID]);
-
- cache_get_value_name_int(i, "propertyid", FurnitureData[j][furniturePropertyID]);
- cache_get_value_name_int(i, "model", FurnitureData[j][furnituresModel]);
-
- cache_get_value_name_float(i, "PosX", FurnitureData[j][furniturePos][0]);
- cache_get_value_name_float(i, "PosY", FurnitureData[j][furniturePos][1]);
- cache_get_value_name_float(i, "PosZ", FurnitureData[j][furniturePos][2]);
-
- cache_get_value_name_float(i, "RotX", FurnitureData[j][furnitureRot][0]);
- cache_get_value_name_float(i, "RotY", FurnitureData[j][furnitureRot][1]);
- cache_get_value_name_float(i, "RotZ", FurnitureData[j][furnitureRot][2]);
-
- cache_get_value_name(i, "name", FurnitureData[j][furnituresName], 32);
-
- FurnitureData[j][furnitureExists] = true;
-
- FurnitureData[j][furnitureObject] = CreateDynamicObject(FurnitureData[j][furnituresModel], FurnitureData[j][furniturePos][0], FurnitureData[j][furniturePos][1], FurnitureData[j][furniturePos][2], FurnitureData[j][furnitureRot][0],
- FurnitureData[j][furnitureRot][1], FurnitureData[j][furnitureRot][2], PropertyData[FurnitureData[j][furniturePropertyID]][propertyInteriorWorld], PropertyData[FurnitureData[j][furniturePropertyID]][propertyInteriorID]);
-
- //LoadFurnitureObjects(i+1);
- count++;
- }
- }
-
- printf("Loading - %d furnitures were loaded.", count);
- return true;
- }
- Server:SQL_EvictAllTenants(playerid)
- {
- if(!cache_num_rows())return SendClientMessage(playerid, COLOR_ADM, "Your house does not have any tenants to evict.");
- new query[90], string[128], rows, fields;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
- if(rows)
- {
- format(string, sizeof(string), "You evicted %d tenants from your house.", rows);
- SendClientMessage(playerid, COLOR_ADM, string);
- for(new i = 0; i < rows; i++)
- {
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET Renting = 0 WHERE Renting = %i LIMIT 20", i);
- mysql_pquery(m_Handle, query);
- }
- }
- return true;
- }
- Server:SQL_ShowBusinessEmployees(playerid)
- {
- if(!cache_num_rows())return SendClientMessage(playerid, COLOR_ADM, "Your business doesn't have any workers.");
- new string[566], name[24], title[20], rows, fields, count = 0;
- string[0] = 0;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
- if(rows)
- {
- for(new i = 0; i < rows; i++)
- {
- count++;
-
- format(title, sizeof(title), "%d Employees", count);
-
- cache_get_value_name(i, "Name", name, 24);
- format(string, sizeof(string), "%s%s\n", string, name);
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_LIST, title, string, ">>>", "");
- }
- }
- return true;
- }
- Server:SQL_ShowTenantNames(playerid)
- {
- if(!cache_num_rows())return SendClientMessage(playerid, COLOR_ADM, "Your house does not have any tenants.");
- new string[1206], name[24], rows, fields;
- string[0] = 0;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
- if(rows)
- {
- SendClientMessage(playerid, COLOR_ADM, "Your house tenants:");
- for(new i = 0; i < rows; i++)
- {
- cache_get_value_name(i, "Name", name, 24);
- format(string, sizeof(string), "%s%s\n", string, name);
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_LIST, "Tenants:", string, ">>>", "");
- }
- }
- return true;
- }
- Server:SQL_CheckAccountBan(playerid)
- {
- if(!cache_num_rows())
- return SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} That account doesn't exist in our database.");
-
- new Name[30], IP[30], adminLevel, rows, fields, hwID[40], query[456], string[128];
-
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- if(rows) {
- for(new i = 0; i < rows; i++)
- {
- cache_get_value_name_int(i, "AdminLevel", adminLevel);
- cache_get_value_name(i, "Name", Name, 30);
- cache_get_value_name(i, "IP", IP, 30);
- cache_get_value_name(i, "HWID", hwID, 40);
-
- if(PlayerData[playerid][pAdmin] < adminLevel) {
- SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} That account status is greater than yours.");
- return false;
- }
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO bans (`Name`, `Reason`, `BannedBy`, `Date`, `IP`, `HWID`) VALUES('%e', '%e', '%e', '%e', '%e', '%e')", Name, PlayerData[playerid][pSetReason], ReturnName(playerid, 1), ReturnDate(), IP, hwID);
- mysql_pquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO log_bans (Name, Reason, BannedBy, Date, IP) VALUES('%e', '%e', '%e', '%e', '%e')", Name, PlayerData[playerid][pSetReason], ReturnName(playerid), ReturnDate(), IP);
- mysql_pquery(m_Handle, query);
-
- format(string, sizeof(string), "[ ! ]{FFFFFF} %s has been successfully banned.", Name);
- SendClientMessage(playerid, COLOR_ADM, string);
-
- format(string, sizeof(string), "%s offline banned %s", ReturnName(playerid, 1), Name);
- adminWarn(3, string);
-
- printf("[WARNING] AdmCmd: %s offline banned %s, reason: %s ", ReturnName(playerid, 1), Name, PlayerData[playerid][pSetReason]);
- WriteLog("admin_logs/punishments/ban_log.txt", "[%s] %s was banned by %s, Reason: %s (OFFLINE)", ReturnDate(), Name, ReturnName(playerid), PlayerData[playerid][pSetReason]);
- }
- }
- else {
- SendClientMessage(playerid, COLOR_ADM, "ERROR: {FFFFFF}An error has occured. Contact a Developer. (errno: 1)");
- }
-
- return true;
- }
- Server:SQL_OfflineNotes(playerid)
- {
- if(!cache_num_rows())return SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} That account doesn't exist in our database.");
-
- return true;
- }
- Server:SQL_AddAdminMessage(playerid)
- {
- if (!cache_num_rows())
- return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} The user you have specified does not exist in the database.");
-
- new
- rows, fields, query[222], string[128], user_name[60];
-
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- if (rows)
- {
- for (new i = 0; i < rows; i++) {
- cache_get_value_name(i, "Name", user_name);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET AdminMessage = '%e', AdminMessageBy = '%e', AdmMessageConfirm = 0 WHERE Name = '%e'",
- PlayerData[playerid][pAdminMsg], ReturnName(playerid, 1), user_name);
- mysql_pquery(m_Handle, query);
-
- format(string, sizeof(string), "[ ! ]{FFFFFF} %s will now receive your notification during login.", user_name);
- SendClientMessage(playerid, COLOR_ADM, string);
-
- WriteLog("admin_logs/players/admin_msg.txt", "[%s] %s AddAdminMessage user %s, reason: %s", ReturnDate(), ReturnName(playerid, 1), user_name, PlayerData[playerid][pAdminMsg]);
- }
- }
-
- format(PlayerData[playerid][pAdminMsg], 128, " ");
- return true;
- }
- Server:SQL_OnOfflineJail(playerid)
- {
- if(!cache_num_rows())return SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} That account doesn't exist in our database.");
-
- new string[128], Name[30], rows, fields, query[456];
-
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- if(rows)
- {
- for(new i = 0; i < rows; i++)
- {
- cache_get_value_name(i, "Name", Name);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE players SET OfflineAjail = 1, AjailTime = %d, OfflineAjailReason = '%e' WHERE Name = '%e'", PlayerData[playerid][pSetTime], PlayerData[playerid][pSetReason], Name);
- mysql_pquery(m_Handle, query);
-
- format(string, sizeof(string), "[ ! ]{FFFFFF} %s has been successfully admin jailed.", Name);
- SendClientMessage(playerid, COLOR_ADM, string);
-
- WriteLog("admin_logs/punishments/ajail_log.txt", "[%s] %s offline jailed %s for %d minutes, reason: %s (OFFLINE)", ReturnDate(), ReturnName(playerid, 1), Name, PlayerData[playerid][pSetTime], PlayerData[playerid][pSetReason]);
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO log_ajail (`Name`, `Reason`, `JailedBy`, `Date`, `Time`, `IP`) VALUES('%e', '%e', '%e', '%e', %i, 'via off')", Name, PlayerData[playerid][pSetReason], ReturnName(playerid, 1), ReturnDate(), PlayerData[playerid][pSetTime]);
- mysql_pquery(m_Handle, query);
-
- PlayerData[playerid][pSetTime] = 0;
- PlayerData[playerid][pSetReason] = 0;
- }
- }
- return true;
- }
- Server:SQL_AddPlayerContact(playerid)
- {
- new id = contact_save_id[playerid];
-
- ContactsData[playerid][id][contactSQLID] = cache_insert_id();
- ContactsData[playerid][id][contactPlayerSQLID] = PlayerData[playerid][pSQLID];
- return true;
- }
- Server:SQL_AddPlayerAttachment(playerid)
- {
- new id = clothing_index[playerid];
-
- ClothingData[playerid][id][attachment_SQLID] = cache_insert_id();
- return true;
- }
- Server:SQL_AddPlayerNote(playerid)
- {
- new id = note_save_id[playerid];
-
- NoteData[playerid][id][NoteSQLID] = cache_insert_id();
- NoteData[playerid][id][NotePlayerSQLID] = PlayerData[playerid][pSQLID];
- printf("[DEBUG] AddPlayerNote called for %s and saved as dbid %i", ReturnName(playerid, 1), cache_insert_id());
- return true;
- }
- Server:SQL_LoadClothing(playerid)
- {
- if(!cache_num_rows())return true;
-
- new rows, fields;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- for(new i = 0; i < rows && i < MAX_CLOTHING_ITEMS; i++)
- {
- cache_get_value_name_int(i, "id", ClothingData[playerid][i+1][attachment_SQLID]);
- cache_get_value_name_int(i, "player_dbid", ClothingData[playerid][i+1][attachment_playerDBID]);
-
- cache_get_value_name_int(i, "modelid", ClothingData[playerid][i+1][attachment_modelid]);
- cache_get_value_name_int(i, "bone", ClothingData[playerid][i+1][attachment_bone]);
-
- cache_get_value_name_float(i, "PosX", ClothingData[playerid][i+1][attachment_Pos][0]);
- cache_get_value_name_float(i, "PosY", ClothingData[playerid][i+1][attachment_Pos][1]);
- cache_get_value_name_float(i, "PosZ", ClothingData[playerid][i+1][attachment_Pos][2]);
-
- cache_get_value_name_float(i, "RotX", ClothingData[playerid][i+1][attachment_Rot][0]);
- cache_get_value_name_float(i, "RotY", ClothingData[playerid][i+1][attachment_Rot][1]);
- cache_get_value_name_float(i, "RotZ", ClothingData[playerid][i+1][attachment_Rot][2]);
-
- cache_get_value_name_float(i, "ScaleX", ClothingData[playerid][i+1][attachment_Scale][0]);
- cache_get_value_name_float(i, "ScaleY", ClothingData[playerid][i+1][attachment_Scale][1]);
- cache_get_value_name_float(i, "ScaleZ", ClothingData[playerid][i+1][attachment_Scale][2]);
-
- cache_get_value_name(i, "name", ClothingData[playerid][i+1][attachment_name], 90);
- }
- return true;
- }
- Server:SQL_LoadAttachments(playerid)
- {
- if (!cache_num_rows())
- return true;
-
- new rows, fields, weaponsid[36];
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- for (new i = 0; i < rows && i < 35; i++)
- {
- cache_get_value_name_int(i, "weaponid", weaponsid[i]);
-
- cache_get_value_name_int(i, "boneid", WeaponDisplay[playerid][weaponsid[i]][weaponBone]);
- cache_get_value_name_float(i, "PosX", WeaponDisplay[playerid][weaponsid[i]][weaponPos][0]);
- cache_get_value_name_float(i, "PosY", WeaponDisplay[playerid][weaponsid[i]][weaponPos][1]);
- cache_get_value_name_float(i, "PosZ", WeaponDisplay[playerid][weaponsid[i]][weaponPos][2]);
-
- cache_get_value_name_float(i, "RotX", WeaponDisplay[playerid][weaponsid[i]][weaponRot][0]);
- cache_get_value_name_float(i, "RotY", WeaponDisplay[playerid][weaponsid[i]][weaponRot][1]);
- cache_get_value_name_float(i, "RotZ", WeaponDisplay[playerid][weaponsid[i]][weaponRot][2]);
-
- cache_get_value_name_int(i, "Hidden", WeaponDisplay[playerid][weaponsid[i]][weaponHidden]);
- }
-
- return true;
- }
- Server:SQL_LoadPlayerDrugs(playerid)
- {
- if(!cache_num_rows())return true;
-
- new rows, fields, id;
-
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- for(new i = 0; i < rows; i++) {
- cache_get_value_name_int(i, "id", id);
- cache_get_value_name_int(i, "package", DrugData[playerid][id][drugPackage]);
- cache_get_value_name_int(i, "type", DrugData[playerid][id][drugType]);
- cache_get_value_name_float(i, "quantity", DrugData[playerid][id][drugQuantity]);
- cache_get_value_name_int(i, "strength", DrugData[playerid][id][drugStrength]);
- }
- return true;
- }
- Server:SQL_LoadPlayerContacts(playerid)
- {
- if(!cache_num_rows())return true;
-
- new rows, fields;
-
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- for(new i = 0; i < rows && i < MAX_PLAYER_CONTACTS; i++) {
- cache_get_value_name_int(i, "id", ContactsData[playerid][i+1][contactSQLID]);
- cache_get_value_name_int(i, "playersqlid", ContactsData[playerid][i+1][contactPlayerSQLID]);
- cache_get_value_name_int(i, "contactid", ContactsData[playerid][i+1][contactID]);
-
- cache_get_value_name(i, "contact_name", ContactsData[playerid][i+1][contactName], 128);
- cache_get_value_name_int(i, "contact_num", ContactsData[playerid][i+1][contactNumber]);
- }
- return true;
- }
- Server:SQL_LoadAdminNotes(playerid)
- {
- if(!cache_num_rows())return true;
-
- new string[128], rows, fields;
-
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- for(new i = 0; i < rows && i < MAX_ADMIN_NOTES; i++){
- cache_get_value_name_int(i, "id", aNotesData[playerid][i+1][anote_SQLID]);
- cache_get_value_name_int(i, "player_dbid", aNotesData[playerid][i+1][anote_playerDBID]);
-
- cache_get_value_name(i, "anote_reason", aNotesData[playerid][i+1][anote_reason], 128);
- cache_get_value_name(i, "anote_issuer", aNotesData[playerid][i+1][anote_issuer], 60);
- cache_get_value_name(i, "anote_date", aNotesData[playerid][i+1][anote_date], 90);
-
- cache_get_value_name_int(i, "anote_active", aNotesData[playerid][i+1][anote_active]);
- }
-
- for(new i = 1; i < MAX_ADMIN_NOTES; i++)
- {
- if(aNotesData[playerid][i][anote_SQLID] != 0)
- {
- if(aNotesData[playerid][i][anote_active])
- {
- format(string, sizeof(string), "Player %s has %d active OnAdminAction notes on him, last is: %s", ReturnName(playerid, 1), CountAdminNotes(playerid), aNotesData[playerid][i][anote_reason]);
- adminWarn(1, string);
- }
- else continue;
- }
- }
- return true;
- }
- Server:SQL_LoadPlayerNotes(playerid)
- {
- if(!cache_num_rows()) return true;
-
- new rows, fields;
-
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- for(new i = 0; i < rows && i < MAX_PLAYER_NOTES; i++){
-
- cache_get_value_name_int(i, "id", NoteData[playerid][i+1][NoteSQLID]);
- cache_get_value_name_int(i, "playersqlid", NoteData[playerid][i+1][NotePlayerSQLID]);
- cache_get_value_name_int(i, "slotid", NoteData[playerid][i+1][NoteID]);
-
- cache_get_value_name(i, "details", NoteData[playerid][i+1][NoteDetail], 128);
-
- }
- return true;
- }
- Server:LoadPlayerFines(playerid)
- {
- if(!cache_num_rows())
- return printf("[DEBUG] %s has no fines to load...", ReturnName(playerid));
-
- new rows, fields, count = 0;
-
- cache_get_row_count(rows), cache_get_field_count(fields);
- for(new i = 0; i < rows && i < 30; i++)
- {
- cache_get_value_name_int(i, "id", Fines[playerid][i][Fine_ID]);
- cache_get_value_name(i, "issuer_name", Fines[playerid][i][Fine_Issuer], 34);
-
- cache_get_value_name_int(i, "fine_amount", Fines[playerid][i][Fine_Amount]);
- cache_get_value_name(i, "fine_reason", Fines[playerid][i][Fine_Reason], 128);
-
- cache_get_value_name(i, "fine_date", Fines[playerid][i][Fine_Date], 90);
- count++;
- }
-
- printf("[DEBUG] %s has %d fines loaded.", ReturnName(playerid), count);
- return 1;
- }
- Server:LoadVehicleFines(vehicleid)
- {
- if(!cache_num_rows())
- return printf("[DEBUG] Vehicle (%d) has no fines to load...", vehicleid);
-
- new rows, fields, count = 0;
-
- cache_get_row_count(rows), cache_get_field_count(fields);
-
- for(new i = 0; i < rows && i < 30; i++)
- {
- cache_get_value_name_int(i, "id", VehicleFines[vehicleid][i][Fine_ID]);
- cache_get_value_name(i, "issuer_name", VehicleFines[vehicleid][i][Fine_Issuer], 34);
-
- cache_get_value_name_int(i, "fine_amount", VehicleFines[vehicleid][i][Fine_Amount]);
- cache_get_value_name(i, "fine_reason", VehicleFines[vehicleid][i][Fine_Reason], 128);
-
- cache_get_value_name(i, "fine_date", VehicleFines[vehicleid][i][Fine_Date], 90);
- count++;
- }
-
- printf("[DEBUG] Vehicle (%d) has %d fines loaded.", vehicleid, count);
- return 1;
- }
- Server:LoadVehicleDrugs(vehicleid)
- {
- if(!cache_num_rows()) return printf("LoadVehicleDrugs %d Cache Num Rows 0.", vehicleid);
- new id;
-
- for(new i = 0; i < cache_num_rows(); i++) {
- cache_get_value_name_int(i, "slot", id);
- cache_get_value_name_int(i, "package", CarDrugData[vehicleid][id][drugPackage]);
- cache_get_value_name_int(i, "type", CarDrugData[vehicleid][id][drugType]);
- cache_get_value_name_float(i, "quantity", CarDrugData[vehicleid][id][drugQuantity]);
- cache_get_value_name_int(i, "strength", CarDrugData[vehicleid][id][drugStrength]);
-
- printf("(%d) Drug %s loaded in slot %i, for vehicleid %d.", id, ReturnDrugsName(DrugData[id][i][drugType]), i, vehicleid);
- }
- return true;
- }
- /*AddVehicleDrug(vehicleid, package, type, Float:quantity, strength)
- {
- for (new i = 0; i < 10; i++) if (CarDrugData[vehicleid][i][drugQuantity] == 0)
- {
- new query[200];
-
- CarDrugData[vehicleid][i][drugPackage] = package;
- CarDrugData[vehicleid][i][drugType] = type;
- CarDrugData[vehicleid][i][drugQuantity] = quantity;
- CarDrugData[vehicleid][i][drugStrength] = strength;
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO vehicle_drugs (vehiclesqlid, id, package, type, quantity, strength) VALUES (%d, %d, %d, %d, %.1f, %d)", CarData[vehicleid][carID], i, package, type, quantity, strength);
- mysql_tquery(m_Handle, query);
- return 1;
- }
- return 0;
- }*/
- AddVehicleDrug(vehicleid, package, type, Float:quantity, strength) {
- for (new i = 0; i < 10; i++) {
- if (CarDrugData[vehicleid][i][drugQuantity] == 0) {
- static query[256];
- CarDrugData[vehicleid][i][drugPackage] = package;
- CarDrugData[vehicleid][i][drugType] = type;
- CarDrugData[vehicleid][i][drugQuantity] = quantity;
- CarDrugData[vehicleid][i][drugStrength] = strength;
- mysql_format(m_Handle, query, sizeof query, "INSERT INTO vehicle_drugs (slot, vehiclesqlid, package, type, quantity, strength) VALUES (%d, %d, %d, %d, %.1f, %d);", i, CarData[vehicleid][carID], package, type, quantity, strength);
- mysql_query(m_Handle, query, false);
- return 1;
- }
- }
- return 0;
- }
- RemoveVehicleDrug(vehicleid, slot) {
- static query[128];
- CarDrugData[vehicleid][slot][drugPackage] = 0;
- CarDrugData[vehicleid][slot][drugType] = 0;
- CarDrugData[vehicleid][slot][drugQuantity] = 0.0;
- CarDrugData[vehicleid][slot][drugStrength] = 0;
- mysql_format(m_Handle, query, sizeof query, "SELECT * FROM vehicle_drugs WHERE slot = %d AND vehiclesqlid = %d;", slot, CarData[vehicleid][carID]);
- new Cache:result = mysql_query(m_Handle, query);
- if (cache_num_rows() > 0) {
- mysql_format(m_Handle, query, sizeof query, "DELETE FROM vehicle_drugs WHERE slot = %d AND vehiclesqlid = %d;", slot, CarData[vehicleid][carID]);
- mysql_query(m_Handle, query, false);
- cache_delete(result);
- return 1;
- } else {
- cache_delete(result);
- return 0;
- }
- }
- /*RemoveVehicleDrug(vehicleid, slot)
- {
- new query[100];
-
- CarDrugData[vehicleid][slot][drugPackage] = 0;
- CarDrugData[vehicleid][slot][drugType] = 0;
- CarDrugData[vehicleid][slot][drugQuantity] = 0.0;
- CarDrugData[vehicleid][slot][drugStrength] = 0;
-
- mysql_format(m_Handle, query, sizeof(query), "DELETE FROM vehicle_drugs WHERE vehiclesqlid = %d AND id = %d", CarData[vehicleid][carID], slot);
- mysql_tquery(m_Handle, query);
- }*/
- Server:SQL_LoadPropertyGarages()
- {
- if(!cache_num_rows())return print("Loading - No property garages were available to load.");
-
- new rows, fields;
-
- cache_get_row_count(rows), cache_get_field_count(fields);
-
- for(new i = 0; i < rows && i < MAX_PROPERTY_GARAGES; i++){
- cache_get_value_name_int(i, "id", GarageData[i+1][garageSQLID]);
-
- cache_get_value_name_float(i, "PosX", GarageData[i+1][garagePos][0]);
- cache_get_value_name_float(i, "PosY", GarageData[i+1][garagePos][1]);
- cache_get_value_name_float(i, "PosZ", GarageData[i+1][garagePos][2]);
- cache_get_value_name_float(i, "PosA", GarageData[i+1][garagePos][3]);
-
- cache_get_value_name_float(i, "IntX", GarageData[i+1][garageInt][0]);
- cache_get_value_name_float(i, "IntY", GarageData[i+1][garageInt][1]);
- cache_get_value_name_float(i, "IntZ", GarageData[i+1][garageInt][2]);
- cache_get_value_name_float(i, "IntA", GarageData[i+1][garageInt][3]);
-
- cache_get_value_name_int(i, "InteriorID", GarageData[i+1][garageInteriorID]);
- cache_get_value_name_int(i, "InteriorWorld", GarageData[i+1][garageWorld]);
-
- cache_get_value_name_int(i, "Type", GarageData[i+1][garageType]);
- cache_get_value_name_int(i, "PropertyID", GarageData[i+1][garagePropertyID]);
-
- cache_get_value_name_int(i, "Locked", GarageData[i+1][garageLocked]);
- cache_get_value_name_int(i, "Faction", GarageData[i+1][garageFaction]);
-
- TotalPropertyGaragesMade++;
- }
- printf("Loading - %i property garages were loaded from MySQL database.", TotalPropertyGaragesMade);
- return true;
- }
- Server:SQL_LoadDoors()
- {
- if(!cache_num_rows())return print("Loading - No dynamic doors were available to load.");
-
- new rows, fields;
-
- cache_get_row_count(rows), cache_get_field_count(fields);
-
- for(new i = 0; i < rows && i < MAX_DOORS; i++) {
- cache_get_value_name_int(i, "id", DoorData[i+1][doorID]);
-
- cache_get_value_name_float(i, "PosX", DoorData[i+1][doorPos][0]);
- cache_get_value_name_float(i, "PosY", DoorData[i+1][doorPos][1]);
- cache_get_value_name_float(i, "PosZ", DoorData[i+1][doorPos][2]);
-
- cache_get_value_name_int(i, "PosInterior", DoorData[i+1][doorPosIntID]);
- cache_get_value_name_int(i, "PosWorld", DoorData[i+1][doorPosWorld]);
-
- cache_get_value_name_float(i, "IntX", DoorData[i+1][doorInt][0]);
- cache_get_value_name_float(i, "IntY", DoorData[i+1][doorInt][1]);
- cache_get_value_name_float(i, "IntZ", DoorData[i+1][doorInt][2]);
- cache_get_value_name_float(i, "IntA", DoorData[i+1][doorInt][3]);
-
- cache_get_value_name_int(i, "IntInterior", DoorData[i+1][doorIntID]);
- cache_get_value_name_int(i, "IntWorld", DoorData[i+1][doorIntWorld]);
-
- cache_get_value_name_int(i, "Faction", DoorData[i+1][doorFaction]);
-
- cache_get_value_name(i, "Name", DoorData[i+1][doorName], 128);
- cache_get_value_name_int(i, "Locked", DoorData[i+1][doorLocked]);
-
- TotalDoorsLoaded++;
- }
- printf("Loading - %d dynamic doors were loaded from MySQL database.", TotalDoorsLoaded);
- return true;
- }
- Server:SQL_LoadRentals()
- {
- if(!cache_num_rows()) return print("Loading - No rental vehicles were available to load.");
-
- new rows, fields, count = 0, vehicleid = INVALID_VEHICLE_ID;
-
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- for(new i = 0; i < rows && i < MAX_RENTALS; i++) {
- new Float:posX, Float:posY, Float:posZ, Float:posA;
- new color1, color2, model;
- cache_get_value_name_float(i, "PosX", posX);
- cache_get_value_name_float(i, "PosY", posY);
- cache_get_value_name_float(i, "PosZ", posZ);
- cache_get_value_name_float(i, "PosA", posA);
- cache_get_value_name_int(i, "color1", color1);
- cache_get_value_name_int(i, "color2", color2);
- cache_get_value_name_int(i, "model", model);
- vehicleid = CreateVehicle(model, posX, posY, posZ, posA, color1, color2, -1, 0);
- DefaultVehicleValues(vehicleid);
-
- cache_get_value_name_int(i, "id", RentalData[vehicleid][rentalcarSQLID]);
- cache_get_value_name_int(i, "model", RentalData[vehicleid][rentalcarModel]);
-
- cache_get_value_name_int(i, "color1", RentalData[vehicleid][rentalcarColor1]);
- cache_get_value_name_int(i, "color2", RentalData[vehicleid][rentalcarColor2]);
-
- cache_get_value_name_float(i, "PosX", RentalData[vehicleid][rentalcarPos][0]);
- cache_get_value_name_float(i, "PosY", RentalData[vehicleid][rentalcarPos][1]);
- cache_get_value_name_float(i, "PosZ", RentalData[vehicleid][rentalcarPos][2]);
- cache_get_value_name_float(i, "PosA", RentalData[vehicleid][rentalcarPos][3]);
-
- RentalData[vehicleid][rentalcarRented] = false;
- RentalData[vehicleid][rentalcarRentedBy] = false;
-
- SetVehicleNumberPlate(vehicleid, "RENTAL");
- SetVehicleToRespawn(vehicleid);
- count++;
- }
- printf("Loading - %d rental vehicles were loaded from MySQL dastabase.", count);
- return true;
- }
- Server:SQL_RefreshFactionCar(vehicleid)
- {
- if(!cache_num_rows())return printf("[WARNING] Failed to refresh faction vehicle ID %d. No data found.", vehicleid);
-
- new rows, fields, newvehicleid = INVALID_VEHICLE_ID;
-
- cache_get_row_count(rows), cache_get_field_count(fields);
-
- DestroyVehicle(vehicleid);
-
- for(new i = 0; i < rows && i < MAX_FACTION_CARS; i++) {
- new Float: posX; cache_get_value_name_float(i, "PosX", posX);
- new Float: posY; cache_get_value_name_float(i, "PosY", posY);
- new Float: posZ; cache_get_value_name_float(i, "PosZ", posZ);
- new Float: posA; cache_get_value_name_float(i, "PosA", posA);
- new color1, color2; cache_get_value_name_int(i, "Color1", color1), cache_get_value_name_int(i, "Color2", color2);
- new siren; cache_get_value_name_int(i, "Sirens", siren);
- new mdl; cache_get_value_name_int(i, "ModelID", mdl);
- newvehicleid = CreateVehicle(mdl, posX, posY, posZ, posA, color1, color2, -1, siren);
-
- if(newvehicleid != INVALID_VEHICLE_ID){
-
- cache_get_value_name_int(i, "id", FactionCar[newvehicleid][carID]);
- cache_get_value_name_int(i, "factionid", FactionCar[newvehicleid][carFaction]);
- cache_get_value_name_int(i, "ModelID", FactionCar[newvehicleid][carModel]);
-
- cache_get_value_name_float(i, "PosX", FactionCar[newvehicleid][carPos][0]);
- cache_get_value_name_float(i, "PosY", FactionCar[newvehicleid][carPos][1]);
- cache_get_value_name_float(i, "PosZ", FactionCar[newvehicleid][carPos][2]);
- cache_get_value_name_float(i, "PosA", FactionCar[newvehicleid][carPos][3]);
-
- cache_get_value_name_int(i, "Interior", FactionCar[newvehicleid][carInterior]);
- cache_get_value_name_int(i, "World", FactionCar[newvehicleid][carWorld]);
-
- if(FactionCar[newvehicleid][carInterior] != 0){
- LinkVehicleToInterior(vehicleid, FactionCar[newvehicleid][carInterior]);
- }
-
- SetVehicleVirtualWorld(vehicleid, FactionCar[newvehicleid][carWorld]);
-
- cache_get_value_name_int(i, "Color1", FactionCar[newvehicleid][carColor1]);
- cache_get_value_name_int(i, "Color2", FactionCar[newvehicleid][carColor2]);
-
- cache_get_value_name_int(i, "Sirens", FactionCar[newvehicleid][carSirens]);
- cache_get_value_name_int(i, "Gunrack", FactionCar[newvehicleid][carGunRack]);
- printf("[WARNING] Faction vehicle ID %d was refreshed.", newvehicleid);
- }
- }
- return true;
- }
- Server:SQL_LoadXMRData()
- {
- if(!cache_num_rows())return print("Loading - No XMR data was available to load.");
-
- new rows, fields, count = 0;
-
- cache_get_row_count(rows), cache_get_field_count(fields);
-
- for(new i = 0; i < rows && i < MAX_XMR_SUBCATEGORY; i++) {
- cache_get_value_name_int(i, "id", XMRData[i+1][xmrID]);
- cache_get_value_name_int(i, "category", XMRData[i+1][xmrCategory]);
-
- cache_get_value_name(i, "xmr_name", XMRData[i+1][xmrName], 90);
- cache_get_value_name(i, "xmr_url", XMRData[i+1][xmrStationURL], 128);
-
- count++;
- }
- printf("Loading - %d XMR stations were loaded.", count);
- return true;
- }
- Server:SQL_LoadXMRCategories()
- {
- if(!cache_num_rows())return print("Loading - No XMR data was available to load.");
-
- new rows, fields, count = 0;
-
- cache_get_row_count(rows), cache_get_field_count(fields);
-
- for(new i = 0; i < rows && i < MAX_XMR_CATEGORIES; i++) {
- cache_get_value_name_int(i, "id", XMRCategoryData[i+1][XMRID]);
-
- cache_get_value_name(i, "cat_name", XMRCategoryData[i+1][XMRCategoryName], 90);
- cache_get_value_name_int(i, "category_id", XMRCategoryData[i+1][XMRCategory]);
-
- count++;
- }
- printf("Loading - %d XMR sub categories were loaded.", count);
- return true;
- }
- Server:SQL_LoadObjects()
- {
- if(!cache_num_rows())
- return print("Loading - No Objects were available to load.");
-
- new rows, fields, count;
-
- cache_get_row_count(rows), cache_get_field_count(fields);
-
- for(new i = 0; i < rows && i < MAX_SERVER_OBJECTS; i++)
- {
- cache_get_value_name_int(i, "id", ObjectData[i][ObjectDBID]);
- cache_get_value_name_int(i, "model_id", ObjectData[i][Object_Model]);
-
- cache_get_value_name_float(i, "PosX", ObjectData[i][Object_PosX]);
- cache_get_value_name_float(i, "PosY", ObjectData[i][Object_PosY]);
- cache_get_value_name_float(i, "PosZ", ObjectData[i][Object_PosZ]);
-
- cache_get_value_name_float(i, "RotX", ObjectData[i][Object_RotX]);
- cache_get_value_name_float(i, "RotY", ObjectData[i][Object_RotY]);
- cache_get_value_name_float(i, "RotZ", ObjectData[i][Object_RotZ]);
-
- cache_get_value_name_float(i, "OpenX", ObjectData[i][Object_OpenX]);
- cache_get_value_name_float(i, "OpenY", ObjectData[i][Object_OpenY]);
- cache_get_value_name_float(i, "OpenZ", ObjectData[i][Object_OpenZ]);
-
- cache_get_value_name_float(i, "OpenRotX", ObjectData[i][Object_OpenRotX]);
- cache_get_value_name_float(i, "OpenRotY", ObjectData[i][Object_OpenRotY]);
- cache_get_value_name_float(i, "OpenRotZ", ObjectData[i][Object_OpenRotZ]);
-
- cache_get_value_name_int(i, "Type", ObjectData[i][Object_Type]);
- cache_get_value_name_int(i, "Faction", ObjectData[i][Object_Faction]);
-
- cache_get_value_name_int(i, "Interior", ObjectData[i][Object_Interior]);
- cache_get_value_name_int(i, "World", ObjectData[i][Object_World]);
-
- ObjectData[i][Object] = CreateDynamicObject(ObjectData[i][Object_Model], ObjectData[i][Object_PosX], ObjectData[i][Object_PosY], ObjectData[i][Object_PosZ], ObjectData[i][Object_RotX], ObjectData[i][Object_RotY], ObjectData[i][Object_RotZ], ObjectData[i][Object_World], ObjectData[i][Object_Interior]);
-
- count++;
- }
-
- printf("Loading - %d mapping objects were loaded.", count);
- return 1;
- }
- Server:SQL_LoadEntrances()
- {
- if(!cache_num_rows())
- return print("Loading - No Entrances were available to load.");
-
- new rows, fields, count;
-
- cache_get_row_count(rows), cache_get_field_count(fields);
-
- for(new i = 0; i < rows && i < 30; i++) // Smiling faces
- {
- cache_get_value_name_int(i, "InteriorDBID", Entrances[i+1][InteriorDBID]);
-
- cache_get_value_name_float(i, "EntranceX", Entrances[i+1][Entrance][0]);
- cache_get_value_name_float(i, "EntranceY", Entrances[i+1][Entrance][1]);
- cache_get_value_name_float(i, "EntranceZ", Entrances[i+1][Entrance][2]);
-
- cache_get_value_name_int(i, "EntranceInteriorID", Entrances[i+1][EntranceInteriorID]);
- cache_get_value_name_int(i, "EntranceWorld", Entrances[i+1][EntranceWorld]);
-
- cache_get_value_name_float(i, "ExitX", Entrances[i+1][Exit][0]);
- cache_get_value_name_float(i, "ExitY", Entrances[i+1][Exit][1]);
- cache_get_value_name_float(i, "ExitZ", Entrances[i+1][Exit][2]);
-
- cache_get_value_name_int(i, "ExitInteriorID", Entrances[i+1][ExitInteriorID]);
- cache_get_value_name_int(i, "ExitWorld", Entrances[i+1][ExitWorld]);
-
- cache_get_value_name_bool(i, "Locked", Entrances[i+1][Locked]);
-
- cache_get_value_name_int(i, "FactionOwner", Entrances[i+1][FactionOwner]);
- cache_get_value_name_int(i, "IsBlackMarket", Entrances[i+1][IsBlackMarket]);
- cache_get_value_name_int(i, "IsWarehouse", Entrances[i+1][IsWarehouse]);
-
- count++;
- }
- printf("Loading - %i entrances were loaded.", count);
- return 1;
- }
- Server:SQL_LoadFactionCars()
- {
- if(!cache_num_rows())return print("Loading - No faction vehicles were available to load.");
-
- new rows, fields, count = 0, vehicleid = INVALID_VEHICLE_ID;
-
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- for(new i = 0; i < rows && i < MAX_FACTION_CARS; i++){
-
- new Float: posX; cache_get_value_name_float(i, "PosX", posX);
- new Float: posY; cache_get_value_name_float(i, "PosY", posY);
- new Float: posZ; cache_get_value_name_float(i, "PosZ", posZ);
- new Float: posA; cache_get_value_name_float(i, "PosA", posA);
- new color1; cache_get_value_name_int(i, "Color1", color1);
- new color2; cache_get_value_name_int(i, "Color2", color2);
- new siren; cache_get_value_name_int(i, "Sirens", siren);
- new mdl; cache_get_value_name_int(i, "ModelID", mdl);
- vehicleid = CreateVehicle(mdl, posX, posY, posZ, posA, color1, color2, -1, siren);
-
- if(vehicleid != INVALID_VEHICLE_ID){
-
- cache_get_value_name_int(i, "id", FactionCar[vehicleid][carID]);
- cache_get_value_name_int(i, "factionid", FactionCar[vehicleid][carFaction]);
- cache_get_value_name_int(i, "ModelID", FactionCar[vehicleid][carModel]);
-
- cache_get_value_name_float(i, "PosX", FactionCar[vehicleid][carPos][0]);
- cache_get_value_name_float(i, "PosY", FactionCar[vehicleid][carPos][1]);
- cache_get_value_name_float(i, "PosZ", FactionCar[vehicleid][carPos][2]);
- cache_get_value_name_float(i, "PosA", FactionCar[vehicleid][carPos][3]);
-
- cache_get_value_name_int(i, "Interior", FactionCar[vehicleid][carInterior]);
- cache_get_value_name_int(i, "World", FactionCar[vehicleid][carWorld]);
-
- if(FactionCar[vehicleid][carInterior] != 0) {
- LinkVehicleToInterior(vehicleid, FactionCar[vehicleid][carInterior]);
- }
-
- SetVehicleVirtualWorld(vehicleid, FactionCar[vehicleid][carWorld]);
-
- cache_get_value_name_int(i, "Color1", FactionCar[vehicleid][carColor1]);
- cache_get_value_name_int(i, "Color2", FactionCar[vehicleid][carColor2]);
-
- cache_get_value_name_int(i, "Sirens", FactionCar[vehicleid][carSirens]);
- cache_get_value_name_int(i, "Gunrack", FactionCar[vehicleid][carGunRack]);
- cache_get_value_name(i, "Plate", FactionCar[vehicleid][carLicensePlate], 32);
-
- FactionCar[vehicleid][carSirenOn] = false;
-
- RentalData[vehicleid][rentalcarSQLID] = 0;
- CarData[vehicleid][carID] = 0;
-
- switch(FactionCar[vehicleid][carModel])
- {
- case 528, 601, 427: SetVehicleHealth(vehicleid, 10000);
- }
-
- SetVehicleParamsEx(vehicleid, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF);
- SetVehicleNumberPlate(vehicleid, FactionCar[vehicleid][carLicensePlate]);
- count++;
- }
- }
- printf("Loading - %d faction vehicles were loaded from MySQL database.", count);
- return true;
- }
- Server:SQL_LoadOwnedCars(playerid)
- {
- if(!cache_num_rows())return SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} That vehicle slot is empty.");
- new str[128], string[256], rows, fields, vehicleid = INVALID_VEHICLE_ID;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
- for(new i = 0; i < rows && i < MAX_VEHICLES; i++) {
- new Float: posX; cache_get_value_name_float(i, "PosX", posX);
- new Float: posY; cache_get_value_name_float(i, "PosY", posY);
- new Float: posZ; cache_get_value_name_float(i, "PosZ", posZ);
- new Float: posA; cache_get_value_name_float(i, "PosA", posA);
- new color1, color2; cache_get_value_name_int(i, "Color1", color1), cache_get_value_name_int(i, "Color2", color2);
- new mdl; cache_get_value_name_int(i, "ModelID", mdl);
- vehicleid = CreateVehicle(mdl, posX, posY, posZ, posA, color1, color2, -1, false);
-
- CarData[vehicleid][carIGid] = vehicleid;
- _has_spawned_vehicleid[playerid] = vehicleid;
- _has_vehicle_spawned[playerid] = true;
-
- cache_get_value_name(i, "Plate", CarData[vehicleid][carPlates], 32);
- SetVehicleNumberPlate(vehicleid, CarData[vehicleid][carPlates]);
- SetVehicleToRespawn(vehicleid);
- cache_get_value_name_float(i, "PosX", CarData[vehicleid][carPos][0]);
- cache_get_value_name_float(i, "PosY", CarData[vehicleid][carPos][1]);
- cache_get_value_name_float(i, "PosZ", CarData[vehicleid][carPos][2]);
- cache_get_value_name_float(i, "PosA", CarData[vehicleid][carPos][3]);
- cache_get_value_name_int(i, "Interior", CarData[vehicleid][carInterior]);
- cache_get_value_name_int(i, "World", CarData[vehicleid][carWorld]);
- if(CarData[vehicleid][carInterior] != 0) {
- LinkVehicleToInterior(vehicleid, CarData[vehicleid][carInterior]);
- SetVehicleVirtualWorld(vehicleid, CarData[vehicleid][carWorld]);
- }
- cache_get_value_name_int(i, "id", CarData[vehicleid][carID]);
- cache_get_value_name_int(i, "OwnerID", CarData[vehicleid][carOwnerID]);
- cache_get_value_name_int(i, "ModelID", CarData[vehicleid][carModel]);
- cache_get_value_name_float(i, "Fuel", CarData[vehicleid][carFuel]);
- cache_get_value_name_int(i, "Locked", CarData[vehicleid][carLocked]);
- cache_get_value_name_int(i, "Color1", CarData[vehicleid][carColor1]);
- cache_get_value_name_int(i, "Color2", CarData[vehicleid][carColor2]);
- cache_get_value_name_int(i, "Paintjob", CarData[vehicleid][carPaintjob]);
- cache_get_value_name_int(i, "XMR", CarData[vehicleid][carXMR]);
- cache_get_value_name_int(i, "Impounded", CarData[vehicleid][carImpounded]);
- cache_get_value_name_float(i, "ImpoundPosX", CarData[vehicleid][carImpoundPos][0]);
- cache_get_value_name_float(i, "ImpoundPosY", CarData[vehicleid][carImpoundPos][1]);
- cache_get_value_name_float(i, "ImpoundPosZ", CarData[vehicleid][carImpoundPos][2]);
- cache_get_value_name_float(i, "ImpoundPosA", CarData[vehicleid][carImpoundPos][3]);
- if(CarData[vehicleid][carImpounded] == 1){
- SetVehiclePos(vehicleid, CarData[vehicleid][carImpoundPos][0], CarData[vehicleid][carImpoundPos][1], CarData[vehicleid][carImpoundPos][2]);
- SetVehicleZAngle(vehicleid, CarData[vehicleid][carImpoundPos][3]);
- }
- if(CarData[vehicleid][carPaintjob] != -1){
- ChangeVehiclePaintjob(vehicleid, CarData[vehicleid][carPaintjob]);
- }
- cache_get_value_name_float(i, "EngineLife", CarData[vehicleid][carEngine]);
- cache_get_value_name_float(i, "BatteryLife", CarData[vehicleid][carBattery]);
- cache_get_value_name_int(i, "LockLevel", CarData[vehicleid][carLock]);
- cache_get_value_name_int(i, "AlarmLevel", CarData[vehicleid][carAlarm]);
- cache_get_value_name_int(i, "ImmobLevel", CarData[vehicleid][carImmob]);
- cache_get_value_name_int(i, "Insurance", CarData[vehicleid][carInsurance]);
- cache_get_value_name_int(i, "TimesDestroyed", CarData[vehicleid][carTimeDestroyed]);
-
- cache_get_value_name_int(i, "LastDriver", CarData[vehicleid][carlastDriver]);
- cache_get_value_name_int(i, "LastPassenger", CarData[vehicleid][carlastPassenger]);
-
- for(new m = 1; m < 14; m++){
- format(str, sizeof(str), "CarMods%d", m);
- cache_get_value_name_int(i, str, CarData[vehicleid][carMods][m]);
- }
- for(new w = 1; w < 5; w++){
- format(str, sizeof(str), "Weapons%d", w);
- cache_get_value_name_int(i, str, CarData[vehicleid][carWeapons][w]);
- format(str, sizeof(str), "Ammo%d", w);
- cache_get_value_name_int(i, str, CarData[vehicleid][carWeaponsAmmo][w]);
- }
- for(new p = 1; p < 21; p++){
- format(str, sizeof(str), "Packages%d", p);
- cache_get_value_name_int(i, str, CarData[vehicleid][carPackages][p]);
- format(str, sizeof(str), "PackagesAmmo%d", p);
- cache_get_value_name_int(i, str, CarData[vehicleid][carPackagesAmmo][p]);
- }
-
- cache_get_value_name_float(i, "Weapon1PosX", CarData[vehicleid][carWeapon1Pos][0]);
- cache_get_value_name_float(i, "Weapon1PosY", CarData[vehicleid][carWeapon1Pos][1]);
- cache_get_value_name_float(i, "Weapon1PosZ", CarData[vehicleid][carWeapon1Pos][2]);
- cache_get_value_name_float(i, "Weapon1RotX", CarData[vehicleid][carWeapon1Rot][0]);
- cache_get_value_name_float(i, "Weapon1RotY", CarData[vehicleid][carWeapon1Rot][1]);
- cache_get_value_name_float(i, "Weapon1RotZ", CarData[vehicleid][carWeapon1Rot][2]);
-
- cache_get_value_name_float(i, "Weapon2PosX", CarData[vehicleid][carWeapon2Pos][0]);
- cache_get_value_name_float(i, "Weapon2PosY", CarData[vehicleid][carWeapon2Pos][1]);
- cache_get_value_name_float(i, "Weapon2PosZ", CarData[vehicleid][carWeapon2Pos][2]);
- cache_get_value_name_float(i, "Weapon2RotX", CarData[vehicleid][carWeapon2Rot][0]);
- cache_get_value_name_float(i, "Weapon2RotY", CarData[vehicleid][carWeapon2Rot][1]);
- cache_get_value_name_float(i, "Weapon2RotZ", CarData[vehicleid][carWeapon2Rot][2]);
-
- cache_get_value_name_float(i, "Weapon3PosX", CarData[vehicleid][carWeapon3Pos][0]);
- cache_get_value_name_float(i, "Weapon3PosY", CarData[vehicleid][carWeapon3Pos][1]);
- cache_get_value_name_float(i, "Weapon3PosZ", CarData[vehicleid][carWeapon3Pos][2]);
- cache_get_value_name_float(i, "Weapon3RotX", CarData[vehicleid][carWeapon3Rot][0]);
- cache_get_value_name_float(i, "Weapon3RotY", CarData[vehicleid][carWeapon3Rot][1]);
- cache_get_value_name_float(i, "Weapon3RotZ", CarData[vehicleid][carWeapon3Rot][2]);
-
- cache_get_value_name_float(i, "Weapon4PosX", CarData[vehicleid][carWeapon4Pos][0]);
- cache_get_value_name_float(i, "Weapon4PosY", CarData[vehicleid][carWeapon4Pos][1]);
- cache_get_value_name_float(i, "Weapon4PosZ", CarData[vehicleid][carWeapon4Pos][2]);
- cache_get_value_name_float(i, "Weapon4RotX", CarData[vehicleid][carWeapon4Rot][0]);
- cache_get_value_name_float(i, "Weapon4RotY", CarData[vehicleid][carWeapon4Rot][1]);
- cache_get_value_name_float(i, "Weapon4RotZ", CarData[vehicleid][carWeapon4Rot][2]);
-
- cache_get_value_name_float(i, "LastHealth", CarData[vehicleid][carLastHealth]);
- cache_get_value_name_int(i, "Panels", CarData[vehicleid][carPanelStatus]);
- cache_get_value_name_int(i, "Doors", CarData[vehicleid][carDoorsStatus]);
- cache_get_value_name_int(i, "Lights", CarData[vehicleid][carLightsStatus]);
- cache_get_value_name_int(i, "Tires", CarData[vehicleid][carTiresStatus]);
-
- if(CarData[vehicleid][carLastHealth] < 248)
- SetVehicleHealth(vehicleid, 1000);
-
- else SetVehicleHealth(vehicleid, CarData[vehicleid][carLastHealth]);
-
- UpdateVehicleDamageStatus(vehicleid, CarData[vehicleid][carPanelStatus], CarData[vehicleid][carDoorsStatus], CarData[vehicleid][carLightsStatus], CarData[vehicleid][carTiresStatus]);
-
- for(new ii = 1; ii < 5; ii++)
- {
- if(CarData[vehicleid][carWeapons][ii])
- {
- switch(ii)
- {
- case 1:
- {
- CarData[vehicleid][carWeaponObject][ii] = CreateDynamicObject(ReturnWeaponsModel(CarData[vehicleid][carWeapons][ii]), 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, CarData[vehicleid][carWorld], CarData[vehicleid][carInterior]);
- AttachDynamicObjectToVehicle(CarData[vehicleid][carWeaponObject][ii], vehicleid, CarData[vehicleid][carWeapon1Pos][0], CarData[vehicleid][carWeapon1Pos][1], CarData[vehicleid][carWeapon1Pos][2], CarData[vehicleid][carWeapon1Rot][0], CarData[vehicleid][carWeapon1Rot][1], CarData[vehicleid][carWeapon1Rot][2]);
- }
- case 2:
- {
- CarData[vehicleid][carWeaponObject][ii] = CreateDynamicObject(ReturnWeaponsModel(CarData[vehicleid][carWeapons][ii]), 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, CarData[vehicleid][carWorld], CarData[vehicleid][carInterior]);
- AttachDynamicObjectToVehicle(CarData[vehicleid][carWeaponObject][ii], vehicleid, CarData[vehicleid][carWeapon2Pos][0], CarData[vehicleid][carWeapon2Pos][1], CarData[vehicleid][carWeapon2Pos][2], CarData[vehicleid][carWeapon2Rot][0], CarData[vehicleid][carWeapon2Rot][1], CarData[vehicleid][carWeapon2Rot][2]);
- }
- case 3:
- {
- CarData[vehicleid][carWeaponObject][ii] = CreateDynamicObject(ReturnWeaponsModel(CarData[vehicleid][carWeapons][ii]), 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, CarData[vehicleid][carWorld], CarData[vehicleid][carInterior]);
- AttachDynamicObjectToVehicle(CarData[vehicleid][carWeaponObject][ii], vehicleid, CarData[vehicleid][carWeapon3Pos][0], CarData[vehicleid][carWeapon3Pos][1], CarData[vehicleid][carWeapon3Pos][2], CarData[vehicleid][carWeapon3Rot][0], CarData[vehicleid][carWeapon3Rot][1], CarData[vehicleid][carWeapon3Rot][2]);
- }
- case 4:
- {
- CarData[vehicleid][carWeaponObject][ii] = CreateDynamicObject(ReturnWeaponsModel(CarData[vehicleid][carWeapons][i]), 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, CarData[vehicleid][carWorld], CarData[vehicleid][carInterior]);
- AttachDynamicObjectToVehicle(CarData[vehicleid][carWeaponObject][i], vehicleid, CarData[vehicleid][carWeapon4Pos][0], CarData[vehicleid][carWeapon4Pos][1], CarData[vehicleid][carWeapon4Pos][2], CarData[vehicleid][carWeapon4Rot][0], CarData[vehicleid][carWeapon4Rot][1], CarData[vehicleid][carWeapon4Rot][2]);
- }
- }
- }
- }
- FactionCar[vehicleid][carFaction] = -1;
- CarData[vehicleid][carExists] = true;
-
- SetVehicleParamsEx(vehicleid, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF);
-
- if(CarData[vehicleid][carLocked] == 0){
- ToggleVehicleLock(vehicleid, false);
- }
- else{
- ToggleVehicleLock(vehicleid, true);
- }
-
- switch(GetVehicleModel(vehicleid))
- {
- case 481, 509, 510: ToggleVehicleEngine(vehicleid, true);
- }
- }
-
- LogVehicleAction(vehicleid, "Spawned");
-
- mysql_format(m_Handle, string, sizeof(string), "SELECT * FROM vehicle_fines WHERE vehicle_dbid = %i", CarData[vehicleid][carID]);
- mysql_tquery(m_Handle, string, "LoadVehicleFines", "i", vehicleid);
- mysql_format(m_Handle, string, sizeof(string), "SELECT * FROM vehicle_drugs WHERE vehiclesqlid = %i", CarData[vehicleid][carID]);
- mysql_tquery(m_Handle, string, "LoadVehicleDrugs", "i", vehicleid);
-
- format(string, sizeof(string), "%s has been spawned at its parking place:", ReturnVehicleName(vehicleid));
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
- format(string, sizeof(string), "Lock[%d], Alarm[%d], Immob[%d], Insurance[%d]", CarData[vehicleid][carLock], CarData[vehicleid][carAlarm], CarData[vehicleid][carImmob], CarData[vehicleid][carInsurance]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Life Span: Engine Life[%.2f], Battery Life[%.2f], Times Destroyed[%d]", CarData[vehicleid][carEngine], CarData[vehicleid][carBattery], CarData[vehicleid][carTimeDestroyed]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SendClientMessage(playerid, COLOR_PINK, "Hint: Follow the red marker to find your vehicle.");
- if(CarData[vehicleid][carImpounded]) SetPlayerCheckpoint(playerid, CarData[vehicleid][carImpoundPos][0], CarData[vehicleid][carImpoundPos][1], CarData[vehicleid][carImpoundPos][2], 3.0);
- else SetPlayerCheckpoint(playerid, CarData[vehicleid][carPos][0], CarData[vehicleid][carPos][1], CarData[vehicleid][carPos][2], 3.0);
- printf("[DEBUG] %s spawned their vehicle %s. (DBID : %d)", ReturnName(playerid, 1), ReturnVehicleName(vehicleid), CarData[vehicleid][carID]);
- return true;
- }
- Server:LocalChat(playerid, Float:radi, string[], color1, color2, color3, color4)
- {
- if (!pLoggedIn[playerid])
- return false;
-
- new Float:currentPos[3], Float:oldPos[3], Float:checkPos[3];
-
- GetPlayerPos(playerid, oldPos[0], oldPos[1], oldPos[2]);
- foreach (new i : Player)
- {
- if (!pLoggedIn[i]) continue;
- GetPlayerPos(i, currentPos[0], currentPos[1], currentPos[2]);
- for (new p = 0; p < 3; p++)
- {
- checkPos[p] = (oldPos[p] - currentPos[p]);
- }
-
- if (GetPlayerVirtualWorld(i) != GetPlayerVirtualWorld(playerid))
- continue;
-
- if (((checkPos[0] < radi/16) && (checkPos[0] > -radi/16)) && ((checkPos[1] < radi/16) && (checkPos[1] > -radi/16)) && ((checkPos[2] < radi/16) && (checkPos[2] > -radi/16)))
- {
- SendClientMessage(i, color1, string);
- }
- else if (((checkPos[0] < radi/8) && (checkPos[0] > -radi/8)) && ((checkPos[1] < radi/8) && (checkPos[1] > -radi/8)) && ((checkPos[2] < radi/8) && (checkPos[2] > -radi/8)))
- {
- SendClientMessage(i, color2, string);
- }
- else if (((checkPos[0] < radi/4) && (checkPos[0] > -radi/4)) && ((checkPos[1] < radi/4) && (checkPos[1] > -radi/4)) && ((checkPos[2] < radi/4) && (checkPos[2] > -radi/4)))
- {
- SendClientMessage(i, color3, string);
- }
- else if (((checkPos[0] < radi/2) && (checkPos[0] > -radi/2)) && ((checkPos[1] < radi/2) && (checkPos[1] > -radi/2)) && ((checkPos[2] < radi/2) && (checkPos[2] > -radi/2)))
- {
- SendClientMessage(i, color4, string);
- }
- }
- return 1;
- }
- Server:ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:posx, Float:posy, Float:posz;
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- GetPlayerPos(i, posx, posy, posz);
- tempposx = (oldposx -posx);
- tempposy = (oldposy -posy);
- tempposz = (oldposz -posz);
- if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))
- {
- if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
- {
- SendClientMessage(i, col1, string);
- }
- else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
- {
- SendClientMessage(i, col2, string);
- }
- else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
- {
- SendClientMessage(i, col3, string);
- }
- else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
- {
- SendClientMessage(i, col4, string);
- }
- else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- SendClientMessage(i, col5, string);
- }
- }
- }
- }
- }
- return true;
- }
- Server:SendLawMessage(color, string[])
- {
- foreach(new i : Player)
- {
- if(PlayerData[i][pLAWduty]) {
- SendClientMessage(i, color, string);
- }
- }
- return true;
- }
- Server:SendFDMessage(color, string[])
- {
- foreach(new i : Player) if(PlayerData[i][pMEDduty])
- SendClientMessage(i, color, string);
- return 1;
- }
- Server:SendFactionMessage(playerid, string[])
- {
- new faction = PlayerData[playerid][pFaction];
- foreach(new i : Player)
- {
- if(PlayerData[i][pFaction] == faction){
- if(PlayerData[i][pFactionChat] == 0){
- SendClientMessage(i, FactionData[faction][factionChatColor], string);
- }
- }
- }
- return true;
- }
- Server:SendFactionMessageEx(playerid, color, string[])
- {
- new faction = PlayerData[playerid][pFaction];
- foreach(new i : Player)
- {
- if(PlayerData[i][pFaction] == faction){
- SendClientMessage(i, color, string);
- }
- }
- return true;
- }
- Server:SendMessageToFaction(factionid, color, string[])
- {
- foreach(new i : Player) {
- if(PlayerData[i][pFaction] == factionid) {
- SendClientMessage(i, color, string);
- }
- }
- return true;
- }
- Server:FactionNotifyBeep(playerid)
- {
- foreach(new i : Player) {
- if ( PlayerData[i][pFaction] == PlayerData[playerid][pFaction] ) {
- PlayNearbySound(i, 1149);
- }
- }
- return true;
- }
- Server:CountOnlineMembers(factionid)
- {
- new count = 0;
- foreach(new i : Player)
- {
- if(PlayerData[i][pFaction] == factionid){
- count++;
- }
- }
- return count;
- }
- Server:ReturnChatAnimation(playerid, text[])
- {
- if (PlayerData[playerid][pPlayingAnimation] || PlayerData[playerid][pBrutallyWounded] || PlayerIsTased[playerid] || GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_HANDSUP)
- return 1;
- switch(PlayerData[playerid][pChatstyle]) {
- case 0: ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,1,1,0,1,1,1);
- case 1: ApplyAnimation(playerid, "GANGS", "PRTIAL_GNGTLKA",4.0,1,0,0,1,1,1);
- case 2: ApplyAnimation(playerid, "GANGS", "PRTIAL_GNGTLKB", 4.0,1,0,0,1,1,1);
- case 3: ApplyAnimation(playerid, "GANGS", "PRTIAL_GNGTLKD", 4.0,1,0,0,1,1,1);
- case 4: ApplyAnimation(playerid, "GANGS", "PRTIAL_GNGTLKE", 4.0,1,0,0,1,1,1);
- case 5: ApplyAnimation(playerid, "GANGS", "PRTIAL_GNGTLKF", 4.0,1,0,0,1,1,1);
- case 6: ApplyAnimation(playerid, "GANGS", "PRTIAL_GNGTLKG", 4.0,1,0,0,1,1,1);
- case 7: ApplyAnimation(playerid, "GANGS", "PRTIAL_GNGTLKH", 4.0,1,0,0,1,1,1);
- }
- if(strlen(text) <= 16) SetTimerEx("TIMER_EndChatAnim",2000, 0, "i", playerid);
- else if(strlen(text) <= 32 && strlen(text) > 16) SetTimerEx("TIMER_EndChatAnim",3500, 0, "i", playerid);
- else if(strlen(text) <= 64 && strlen(text) > 32) SetTimerEx("TIMER_EndChatAnim",4000, 0, "i", playerid);
- else if(strlen(text) <= 96 && strlen(text) > 64) SetTimerEx("TIMER_EndChatAnim",4500, 0, "i", playerid);
- else if(strlen(text) <= 128 && strlen(text) > 96) SetTimerEx("TIMER_EndChatAnim",5000, 0, "i", playerid);
- else if(strlen(text) > 128) SetTimerEx("TIMER_EndChatAnim",5500, 0, "i", playerid);
-
- return 1;
- }
- Server:TIMER_EndChatAnim(playerid)
- {
- if(GetPlayerTeam(playerid) == STATE_ALIVE)
- return ApplyAnimation(playerid, "CARRY", "crry_prtial", 4, 0, 0, 0, 0, 0, 1);
- return 1;
- }
- public OnPlayerEnterDynamicArea(playerid, areaid)
- {
- for(new i = 0; i < sizeof BoomboxData; i++)
- {
- if(areaid == BoomboxData[i][boomboxArea] && BoomboxData[i][boomboxOn])
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(IsValidFactionCar(GetPlayerVehicleID(playerid)) && !FactionCar[GetPlayerVehicleID(playerid)][carsXMROn])
- PlayAudioStreamForPlayer(playerid, BoomboxData[i][boomboxURL], BoomboxData[i][boomboxPos][0], BoomboxData[i][boomboxPos][1], BoomboxData[i][boomboxPos][2], 30.0, 1);
-
- else if(IsValidPlayerCar(GetPlayerVehicleID(playerid)) && !CarData[GetPlayerVehicleID(playerid)][carXMROn])
- PlayAudioStreamForPlayer(playerid, BoomboxData[i][boomboxURL], BoomboxData[i][boomboxPos][0], BoomboxData[i][boomboxPos][1], BoomboxData[i][boomboxPos][2], 30.0, 1);
- }
- else {
- if (BoomboxData[i][boomboxInBusiness] == BusinessData[IsPlayerInBusiness(playerid)][businessID]) {
- PlayAudioStreamForPlayer(playerid, BoomboxData[i][boomboxURL], BoomboxData[i][boomboxPos][0], BoomboxData[i][boomboxPos][1], BoomboxData[i][boomboxPos][2], 100.0, 1);
- } else {
- PlayAudioStreamForPlayer(playerid, BoomboxData[i][boomboxURL], BoomboxData[i][boomboxPos][0], BoomboxData[i][boomboxPos][1], BoomboxData[i][boomboxPos][2], 30.0, 1);
- }
- }
-
- printf("[DEBUG] %s entered a boombox area.", ReturnName(playerid));
- }
- }
-
- if(OrderedWeapon[playerid] && areaid == WeaponOrderArea[playerid])
- {
- if(gettime() - WeaponOrderDoneTime[playerid] >= 480)
- {
- ClearPlayerOrder(playerid);
- SendClientMessage(playerid, COLOR_YELLOW, "SMS: You took too long..., Sender: 434112");
- return 1;
- }
-
- if(WeaponOrdered[0][playerid])
- {
- switch(WeaponOrdered[0][playerid])
- {
- case 25: WeaponOrderPrice[playerid]+= WEAPON_ORDER_SHOTGUN;
- case 24: WeaponOrderPrice[playerid]+= WEAPON_ORDER_DEAGLE;
- case 32: WeaponOrderPrice[playerid]+= WEAPON_ORDER_TEC9;
- }
- }
-
- if(WeaponOrdered[1][playerid])
- {
- switch(WeaponOrdered[1][playerid])
- {
- case 25: WeaponOrderPrice[playerid]+= WEAPON_ORDER_SHOTGUN;
- case 24: WeaponOrderPrice[playerid]+= WEAPON_ORDER_DEAGLE;
- case 32: WeaponOrderPrice[playerid]+= WEAPON_ORDER_TEC9;
- }
- }
-
- SendClientMessage(playerid, COLOR_YELLOW, "SMS: I see you. I marked a spot for you. Stop there., Sender: 434112");
- SetPlayerCheckpoint(playerid, PossibleDropSpots[WeaponOrderSpot[playerid]][LocationX], PossibleDropSpots[WeaponOrderSpot[playerid]][LocationY], PossibleDropSpots[WeaponOrderSpot[playerid]][LocationZ], 2.0);
-
- PlayerData[playerid][pCheckpoint] = WEAPON_ORDER_NUMBER;
- DestroyDynamicArea(WeaponOrderArea[playerid]);
- }
- return 1;
- }
- public OnPlayerLeaveDynamicArea(playerid, areaid)
- {
- for(new i = 0; i < sizeof BoomboxData; i++)
- {
- if(areaid == BoomboxData[i][boomboxArea] && BoomboxData[i][boomboxOn])
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(IsValidFactionCar(GetPlayerVehicleID(playerid)) && !FactionCar[GetPlayerVehicleID(playerid)][carsXMROn])
- StopAudioStreamForPlayer(playerid);
-
- else if(IsValidPlayerCar(GetPlayerVehicleID(playerid)) && !CarData[GetPlayerVehicleID(playerid)][carXMROn])
- StopAudioStreamForPlayer(playerid);
- }
- else
- StopAudioStreamForPlayer(playerid);
-
- printf("[DEBUG] %s left a boombox area.", ReturnName(playerid));
- }
- }
- return 1;
- }
- Server:OnPlayerSavingsWithdraw(playerid, response)
- {
- if(response) {
- WriteLog("money_logs/savingswithdraw_log.txt", "[%s] %s withdrew their savings of : $%s", ReturnDate(), ReturnName(playerid, 1), PlayerData[playerid][pSavings]);
- new string[128];
-
- format(string, sizeof(string), "[ ! ]{FFFFFF} You withdrew {FF6346}$%s{FFFFFF} from your savings!", MoneyFormat(PlayerData[playerid][pSavings]));
- SendClientMessage(playerid, COLOR_ADM, string);
-
- GiveMoney(playerid, PlayerData[playerid][pSavings]);
- PlayerData[playerid][pSavings] = 0;
- }
- else {
- SendClientMessage(playerid, COLOR_ADM, "[ ! ]{FFFFFF} If you wish to withdraw your savings later, use {FF6346}/savings withdraw");
- }
- }
- Server:OnPlayerPurchaseWeapon(playerid, response, weaponid, ammo, price)
- {
- if( response ) {
-
- if(IsPlayerInBusiness(playerid))
- {
- BusinessData[IsPlayerInBusiness(playerid)][businessCashbox]+= price;
- }
-
- GiveMoney(playerid, -price);
- GivePlayerGun(playerid, weaponid, ammo, WEAPON_AMMUNATION_GIVEN);
- new string[128];
-
- format(string, sizeof(string), "Bought %s (%d) for $%s", ReturnWeaponName(weaponid), ammo, MoneyFormat(price));
- LogPlayerAction(playerid, string);
-
- format(string, sizeof(string), "%s bought %s and %d ammo", ReturnName(playerid, 1), ReturnWeaponName(weaponid), ammo);
- adminWarn(1, string);
-
- WriteLog("weapon_logs/ammunation/buygun.txt", "[%s] %s bought %s and %d ammo", ReturnDate(), ReturnName(playerid, 1), ReturnWeaponName(weaponid), ammo);
- }
- else return SendClientMessage(playerid, COLOR_DARKGREEN, "You cancelled your purchase!");
- return true;
- }
- Server:OnPlayerPurchaseCar(playerid, response)
- {
- if(response)
- {
- new slot_id = FreePlayerCarID(playerid), carPlate[32], query[566];
- printf("FreePlayerCarId, playerid %d, returned slot_id: %d", playerid, slot_id);
- if(slot_id == -1) {
- SendClientMessage(playerid, COLOR_ADM, "SERVER: You currently own the maximum amount of vehicles possible.");
-
- if(IsValidVehicle(g_aVehicleSpawned[playerid])) {
- DestroyVehicle(g_aVehicleSpawned[playerid]);
- }
-
- ClearDealershipVar(playerid);
- TogglePlayerControllable(playerid, true);
- return true;
- }
-
- if(PlayerData[playerid][pMoney] < g_aTotalAmount[playerid]) {
- SendClientMessage(playerid, COLOR_ADM, "ERROR:{FFFFFF} You don't have enough money to buy this.");
-
- if(IsValidVehicle (g_aVehicleSpawned[playerid])) {
- DestroyVehicle(g_aVehicleSpawned[playerid]);
- }
-
- ClearDealershipVar(playerid);
- TogglePlayerControllable(playerid, true);
- return true;
- }
-
- GetPlayerPos(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]);
- g_aSlotSave[playerid] = slot_id;
-
- new rand[3];
-
- rand[0] = random(sizeof(PlatePossible));
- rand[1] = random(sizeof(PlatePossible));
- rand[2] = random(sizeof(PlatePossible));
-
- format(carPlate, sizeof(carPlate), "%d%s%s%s%d%d%d", random(9), PlatePossible[rand[0]], PlatePossible[rand[1]], PlatePossible[rand[2]], random(9), random(9), random(9));
- format(g_aPlates[playerid], 32, "%s", carPlate);
-
- SendClientMessage(playerid, 0xB9E35EFF, "PROCESSING: Rebuilding your vehicle list.");
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO ownedcars (`OwnerID`, `ModelID`, `Color1`, `Color2`, `XMR`, `LockLevel`, `AlarmLevel`, `ImmobLevel`, `PosX`, `PosY`, `PosZ`, `Plate`) VALUES(%i, %i, %i, %i, %i, %i, %i, %i, %f, %f, %f, '%e')",
- PlayerData[playerid][pSQLID], ds_PlayerMenuModels[playerid][SubDealershipHolder[playerid]], g_aVehicleColor[playerid][0], g_aVehicleColor[playerid][1], g_aXMR[playerid], g_aLockLevel[playerid],
- g_aAlarmLevel[playerid], g_aImmobLevel[playerid], PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2], carPlate);
- mysql_tquery(m_Handle, query, "SQL_BuyPlayerCar", "i", playerid);
-
- if(IsValidVehicle (g_aVehicleSpawned[playerid])) {
- DestroyVehicle(g_aVehicleSpawned[playerid]);
- }
-
- ShowPlayerPlateSet(playerid, carPlate);
- GiveMoney(playerid, -g_aTotalAmount[playerid]);
-
- TogglePlayerControllable(playerid, true);
- }
- else{
- if(IsValidVehicle (g_aVehicleSpawned[playerid])) {
- DestroyVehicle(g_aVehicleSpawned[playerid]);
- }
-
- SendClientMessage(playerid, 0xB9E35EFF, "PROCESSED: Your purchase has been cancelled.");
-
- ClearDealershipVar(playerid);
- TogglePlayerControllable(playerid, true);
- }
- return true;
- }
- Server:OnPlayerPurchaseArmor(playerid, response, price)
- {
- if(response) {
- if(IsPlayerInBusiness(playerid))
- {
- BusinessData[IsPlayerInBusiness(playerid)][businessCashbox]+= price;
- }
-
- GiveMoney(playerid, -price);
- SetPlayerArmour(playerid, 50);
- new string[128];
- format(string, sizeof(string), "Bought Armor $%s", MoneyFormat(price));
- LogPlayerAction(playerid, string);
-
- format(string, sizeof(string), "%s bought Armor for $%s", ReturnName(playerid, 1), MoneyFormat(price));
- adminWarn(1, string);
-
- WriteLog("weapon_logs/ammunation/buykevlar_log.txt", "[%s] %s bought Armor for $%s", ReturnDate(), ReturnName(playerid, 1), MoneyFormat(price));
- }
- else return SendClientMessage(playerid, COLOR_DARKGREEN, "You cancelled your purchase!");
- return true;
- }
- Server:OnPlayerSellFurniture(playerid, response, objectid, sqlid, igid)
- {
- if(response)
- {
- if(FurnitureData[igid][furnitureExists])
- {
- GiveMoney(playerid, 100);
- DestroyDynamicObject(objectid);
-
- new query[90];
-
- mysql_format(m_Handle, query, sizeof(query), "DELETE FROM furniture WHERE id = %i", sqlid);
- mysql_pquery(m_Handle, query);
-
- FurnitureData[igid][furnitureSQLID] = 0;
- FurnitureData[igid][furnitureExists] = false;
- }
- else return SendClientMessage(playerid, COLOR_DARKGREEN, "Furniture no longer exists.");
- }
- else return SendClientMessage(playerid, COLOR_DARKGREEN, "You cancelled your sale!");
- return true;
- }
- Server:OnPlayerPurchaseAmmo(playerid, response, weaponid, ammo, price)
- {
- if (response) {
-
- new currAmmo;
-
- SendClientMessage(playerid, COLOR_DARKGREEN, "You bought ammo. Enjoy your purchase!");
-
- if (weaponid == WEAPON_COLT45) {
- currAmmo = ReturnWeaponAmmo(playerid, WEAPON_COLT45);
- GiveMoney(playerid, -price);
-
- UpdatePlayerAmmo(playerid, WEAPON_COLT45, ammo + currAmmo);
- SetPlayerAmmo(playerid, WEAPON_COLT45, ammo + currAmmo);
- }
- else if ( weaponid == WEAPON_DEAGLE ) {
- currAmmo = ReturnWeaponAmmo(playerid, WEAPON_DEAGLE);
- GiveMoney(playerid, -price);
-
- UpdatePlayerAmmo(playerid, WEAPON_DEAGLE, ammo + currAmmo);
- SetPlayerAmmo(playerid, WEAPON_DEAGLE, ammo + currAmmo);
- }
- else if ( weaponid == WEAPON_SHOTGUN ) {
- currAmmo = ReturnWeaponAmmo(playerid, WEAPON_SHOTGUN);
- GiveMoney(playerid, -price);
-
- UpdatePlayerAmmo(playerid, WEAPON_SHOTGUN, ammo + currAmmo);
- SetPlayerAmmo(playerid, WEAPON_SHOTGUN, ammo + currAmmo);
- }
- else if ( weaponid == WEAPON_RIFLE ) {
- currAmmo = ReturnWeaponAmmo(playerid, WEAPON_RIFLE);
- GiveMoney(playerid, -price);
-
- UpdatePlayerAmmo(playerid, WEAPON_RIFLE, ammo + currAmmo);
- SetPlayerAmmo(playerid, WEAPON_RIFLE, ammo + currAmmo);
- }
-
- new string[128];
-
- format(string, sizeof(string), "Bought %d Ammo for %s (%d) for $%s", ammo, ReturnWeaponName(weaponid), currAmmo, MoneyFormat(price));
- LogPlayerAction(playerid, string);
-
- WriteLog("weapon_logs/ammunation/buyammo_log.txt", "[%s] %s bought %d Ammo for %s [Price: $%s]", ReturnDate(), ReturnName(playerid), ammo, ReturnWeaponName(weaponid), MoneyFormat(price));
- }
- else return SendClientMessage(playerid, COLOR_DARKGREEN, "You cancelled your purchase!");
- return true;
- }
- Server:ResetHouseVar(playerid)
- {
- PlayerData[playerid][pInsideHouse] = 0;
- PlayerData[playerid][pInsideBusiness] = 0;
- PlayerData[playerid][pInsideComplex] = 0;
- PlayerData[playerid][pInsideGarage] = 0;
- PlayerData[playerid][pInsideApartment] = 0;
- PlayerData[playerid][pInsidePNS] = 0;
- PlayerData[playerid][pInsideDoor] = 0;
-
- printf("[WARNING]: %s's inside house, biz, complex, apt, PNS were reset by script.", ReturnName(playerid, 1));
- return true;
- }
- Server:SpawnPlayerIn(playerid)
- {
- if(PlayerData[playerid][pICJailed])
- {
- SendPlayer(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2], PlayerData[playerid][pInterior], PlayerData[playerid][pWorld]);
-
- if(!IsValidDynamic3DTextLabel(PlayerData[playerid][pICJail3D]))
- {
- new jail_str[90];
-
- TotalJailees++;
-
- Message(playerid, COLOR_WHITE, "SERVER: You are currently incarcerated as jailee %03d.", TotalJailees);
-
- format(jail_str, 90, "%03d", TotalJailees);
- PlayerData[playerid][pICJail3D] = CreateDynamic3DTextLabelEx(jail_str, 0x1E0C95FF, 0.0, 0.0, -0.10, 20.0, playerid);
- }
- return 1;
- }
- if (PlayerData[playerid][pSpawnSelect] == 0){
- SendPlayer(playerid, 1642.2314, -2333.6973, 13.5469, 0, 0);
- SetPlayerFacingAngle(playerid, 0.0);
- }
- else if( PlayerData[playerid][pSpawnSelect] == 1 ){
- if(CountPlayerHouses(playerid) == 0) {
- SendPlayer(playerid, 1642.2314,-2333.6973,13.5469, 0, 0);
- SetPlayerFacingAngle(playerid, 0.0);
-
- PlayerData[playerid][pSpawnSelect] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "You will now spawn at the Airport.");
- return true;
- }
-
- new h_id = PlayerData[playerid][pSpawnHouse];
- if( PropertyData[h_id][propertyid] == 0 ) {
- SendPlayer(playerid, 1642.2314,-2333.6973,13.5469, 0, 0);
- SetPlayerFacingAngle(playerid, 0.0);
-
- PlayerData[playerid][pSpawnSelect] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "You will now spawn at the Airport.");
- return true;
- }
-
- ResetHouseVar(playerid);
-
- if(PropertyData[h_id][propertyType] == 1) {
- PlayerData[playerid][pInsideComplex] = h_id;
- }
- else if(PropertyData[h_id][propertyType] == 2) {
- PlayerData[playerid][pInsideApartment] = h_id;
- }
- else if(PropertyData[h_id][propertyType] == 3) {
- PlayerData[playerid][pInsideHouse] = h_id;
- }
-
- SetPlayerPos(playerid, PropertyData[h_id][propertyInterior][0], PropertyData[h_id][propertyInterior][1], PropertyData[h_id][propertyInterior][2]);
- SetPlayerFacingAngle(playerid, PropertyData[h_id][propertyInterior][3]);
- SetPlayerInterior(playerid, PropertyData[h_id][propertyInteriorID]);
- SetPlayerVirtualWorld(playerid, PropertyData[h_id][propertyInteriorWorld]);
- }
- else if ( PlayerData[playerid][pSpawnSelect] == 2 ) {
- if( !PlayerData[playerid][pRenting] ){
- SendPlayer(playerid, 1642.2314,-2333.6973,13.5469, 0, 0);
- SetPlayerFacingAngle(playerid, 357.934);
-
- PlayerData[playerid][pSpawnSelect] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "You will now spawn at the Airport.");
- return true;
- }
-
- new r_id = PlayerData[playerid][pRenting];
-
- if (PropertyData[r_id][propertyid] == 0) {
- SendPlayer(playerid, 1642.2314,-2333.6973,13.5469, 0, 0);
- SetPlayerFacingAngle(playerid, 0.0);
-
- PlayerData[playerid][pSpawnSelect] = 0;
- PlayerData[playerid][pRenting] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "You will now spawn at the Airport.");
- return true;
- }
-
- if(PlayerData[playerid][pBank] < PropertyData[r_id][propertyRentPrice]) {
- SendClientMessage(playerid, COLOR_ADM, "You don't have enough money to spawn at the house.");
-
- SendPlayer(playerid, 1642.2314,-2333.6973,13.5469, 0, 0);
- SetPlayerFacingAngle(playerid, 90.4274);
-
- return true;
- }
-
- new string[128];
-
- SendClientMessage(playerid, COLOR_ADM, "Rent price:");
- format(string, sizeof(string), "$%d", PropertyData[r_id][propertyRentPrice]);
- SendClientMessage(playerid, COLOR_GRAD2, string);
-
- PlayerData[playerid][pBank]-= PropertyData[r_id][propertyRentPrice];
-
- SetPlayerPos(playerid, PropertyData[r_id][propertyInterior][0], PropertyData[r_id][propertyInterior][1], PropertyData[r_id][propertyInterior][2]);
- SetPlayerFacingAngle(playerid, PropertyData[r_id][propertyInterior][3]);
- SetPlayerInterior(playerid, PropertyData[r_id][propertyInteriorID]);
- SetPlayerVirtualWorld(playerid, PropertyData[r_id][propertyInteriorWorld]);
-
- ResetHouseVar(playerid);
-
- if(PropertyData[r_id][propertyType] == 1) {
- PlayerData[playerid][pInsideComplex] = r_id;
- }
- else if(PropertyData[r_id][propertyType] == 2) {
- PlayerData[playerid][pInsideApartment] = r_id;
- }
- else if(PropertyData[r_id][propertyType] == 3) {
- PlayerData[playerid][pInsideHouse] = r_id;
- }
-
- }
- else if(PlayerData[playerid][pSpawnSelect] == 3) {
- if(!PlayerData[playerid][pFaction]){
- SendPlayer(playerid, 1642.2314,-2333.6973,13.5469, 0, 0);
- SetPlayerFacingAngle(playerid, 0.0);
-
- PlayerData[playerid][pSpawnSelect] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "You will now spawn at the Airport.");
- return true;
- }
-
- new f_id = PlayerData[playerid][pFaction];
-
- if(FactionData[f_id][factionID] == 0) {
- SendPlayer(playerid, 1642.2314,-2333.6973,13.5469, 0, 0);
- SetPlayerFacingAngle(playerid, 0.0);
-
- PlayerData[playerid][pSpawnSelect] = 0;
- PlayerData[playerid][pFaction] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "You will now spawn at the Airport.");
- return true;
- }
-
- if(PlayerData[playerid][pSpawnPrecinct] != 0)
- {
- switch(PlayerData[playerid][pSpawnPrecinct])
- {
- case 1:
- {
- SetPlayerPos(playerid, FactionData[f_id][factionSpawnEx1][0], FactionData[f_id][factionSpawnEx1][1], FactionData[f_id][factionSpawnEx1][2]);
- SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0);
- }
- case 2:
- {
- SetPlayerPos(playerid, FactionData[f_id][factionSpawnEx2][0], FactionData[f_id][factionSpawnEx2][1], FactionData[f_id][factionSpawnEx2][2]);
- SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0);
- }
- case 3:
- {
- SetPlayerPos(playerid, FactionData[f_id][factionSpawnEx3][0], FactionData[f_id][factionSpawnEx3][1], FactionData[f_id][factionSpawnEx3][2]);
- SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0);
- }
- }
- }
- else
- {
- SetPlayerPos(playerid, FactionData[f_id][factionSpawn][0], FactionData[f_id][factionSpawn][1], FactionData[f_id][factionSpawn][2]);
- SetPlayerFacingAngle(playerid, FactionData[f_id][factionSpawn][3]);
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- }
-
- ResetHouseVar(playerid);
- }
- return true;
- }
- stock ClearGraffitiVars(playerid)
- {
- IsGraffitiDone[playerid] = false;
- DotsSetForGraffiti[playerid] = 0;
-
- for(new v; v < 65; v++)
- {
- CharactersSetGraffiti[playerid][v] = 0;
-
- GraffitiActual[playerid][v] = ' ';
- GraffitiTD[playerid][v] = ' ';
- }
-
- return 1;
- }
- Server:TIMER_PlayerGraffitiEx(playerid)
- {
- new isDone = true;
- if(!DotsSetForGraffiti[playerid])
- {
- DotsSetForGraffiti[playerid] = 1;
-
- for(new i; i < strlen(GraffitiActual[playerid]); i++)
- {
- GraffitiTD[playerid][i] = '.';
- }
- }
-
- //We're replacing the dots with letters:
- for(new i; i < strlen(GraffitiActual[playerid]); i++)
- {
- if(CharactersSetGraffiti[playerid][i] == 0)
- {
- isDone = false;
- CharactersSetGraffiti[playerid][i] = 1;
-
- if(GraffitiTD[playerid][i] == '.')
- {
- GraffitiTD[playerid][i] = GraffitiActual[playerid][i];
- }
- break;
- }
- }
-
- for(new i; i < strlen(GraffitiTD[playerid]); i++)
- {
- if(GraffitiTD[playerid][i] == ' ') GraffitiTD[playerid][i] = '_';
- }
-
- new td[128];
- format(td, 128, "~y~%s", GraffitiTD[playerid]);
-
- PlayerTextDrawSetString(playerid, GraffitiDisplay[playerid], td);
- PlayerTextDrawShow(playerid, GraffitiDisplay[playerid]);
-
- printf("[DEBUG] %s : PlayerGraffitiEx ... Text: %s", ReturnName(playerid), td);
-
- IsGraffitiDone[playerid] = isDone;
- return 1;
- }
- Server:TIMER_PlayerGraffiti(playerid)
- {
- new i = graffitiID[playerid];
-
- if(sprayingGraffiti[playerid] == false)
- {
- KillTimer(graffitiTimer[playerid]);
- KillTimer(graffitiTimerEx[playerid]);
-
- graffitiTimerEx_Confirm[playerid] = false;
- }
-
- if(IsPlayerInRangeOfPoint(playerid, 4.0, g_aGraffitiData[i][graffitiPosX], g_aGraffitiData[i][graffitiPosY], g_aGraffitiData[i][graffitiPosZ]))
- {
- if(graffitiTimerEx_Confirm[playerid] == false)
- {
- graffitiTimerEx[playerid] = SetTimerEx("TIMER_PlayerGraffitiEx", 1000, true, "i", playerid);
- graffitiTimerEx_Confirm[playerid] = true;
-
- printf("[Debug] %s started spraying graffiti. Text: %s", ReturnName(playerid), graffitiText[playerid]);
-
- format(GraffitiActual[playerid], 65, "%s", graffitiText[playerid]);
-
- strreplace2(GraffitiActual[playerid], "(n)", "_");
- strreplace2(GraffitiActual[playerid], "(o)", "_");
- strreplace2(GraffitiActual[playerid], "(br)", "_");
- strreplace2(GraffitiActual[playerid], "(bl)", "_");
- strreplace2(GraffitiActual[playerid], "(b)", "_");
- strreplace2(GraffitiActual[playerid], "(g)", "_");
- strreplace2(GraffitiActual[playerid], "(w)", "_");
- strreplace2(GraffitiActual[playerid], "(y)", "_");
- strreplace2(GraffitiActual[playerid], "(r)", "_");
- strreplace2(GraffitiActual[playerid], "(mr)", "_");
- }
-
- // ORIGINAL GRAFFITI:
-
- /* format (string, sizeof(string), "~r~Spraying~n~~w~%d]", sprayingGraffitiTime[playerid]);
- GameTextForPlayer(playerid, string, 3000, 3);*/
-
- //strins(graffitiText[playerid], "\n", strfind(graffitiText[playerid], "(n)") + 1);
- //strdel(graffitiText[playerid], strfind(graffitiText[playerid], "(n)"), strfind(graffitiText[playerid], "(n)"));
-
- if(IsGraffitiDone[playerid])//if (sprayingGraffitiTime[playerid] <= 0)
- {
- strreplace2(graffitiText[playerid], "(n)", "\n");
- strreplace2(graffitiText[playerid], "(o)", "{FF8B00}");
- strreplace2(graffitiText[playerid], "(br)", "{5B3F01}");
- strreplace2(graffitiText[playerid], "(bl)", "{0000FF}");
- strreplace2(graffitiText[playerid], "(b)", "{000000}");
- strreplace2(graffitiText[playerid], "(g)", "{008000}");
- strreplace2(graffitiText[playerid], "(w)", "{FFFFFF}");
- strreplace2(graffitiText[playerid], "(y)", "{FFFF00}");
- strreplace2(graffitiText[playerid], "(r)", "{FF0000}");
- strreplace2(graffitiText[playerid], "(mr)", "{800000}");
-
- SetDynamicObjectMaterialText(GraffitiData[i][graffitiObject], 0, graffitiText[playerid], OBJECT_MATERIAL_SIZE_256x256, graffitiFont[playerid], 27, 1, 0xFFFFFFFF, 0, 1);
- //GameTextForPlayer(playerid, "~g~Sprayed", 2000, 3);
-
- KillTimer(graffitiTimer[playerid]);
- KillTimer(graffitiTimerEx[playerid]);
-
- sprayingGraffiti[playerid] = false;
- graffitiTimerEx_Confirm[playerid] = false;
-
- sprayingGraffitiTime[playerid] = saveSprayingTime[playerid];
-
- PlayerTextDrawSetString(playerid, GraffitiDisplay[playerid], "~g~YOU SET YOUR GRAFFITI!");
- PlayerTextDrawShow(playerid, GraffitiDisplay[playerid]);
-
- GraffitiExitTimer[playerid] = SetTimerEx("ClearGraffitiTD", 2000, false, "i", playerid);
-
- IsGraffitiDone[playerid] = false;
- DotsSetForGraffiti[playerid] = 0;
-
- for(new v; v < 65; v++)
- {
- CharactersSetGraffiti[playerid][v] = 0;
-
- GraffitiActual[playerid][v] = ' ';
- GraffitiTD[playerid][v] = ' ';
- }
-
- WriteLog("player_logs/spraying_graffiti.txt", "[%s] %s sprayed : %s at %s (G-ID: %d)", ReturnDate(), ReturnName(playerid, 1), graffitiText[playerid], ReturnLocation(playerid), i);
- }
- }
- else
- {
- KillTimer(graffitiTimer[playerid]);
- KillTimer(graffitiTimerEx[playerid]);
-
- PlayerTextDrawSetString(playerid, GraffitiDisplay[playerid], "~r~GRAFFITI STOPPED!");
- PlayerTextDrawShow(playerid, GraffitiDisplay[playerid]);
-
- GraffitiExitTimer[playerid] = SetTimerEx("ClearGraffitiTD", 2000, false, "i", playerid);
- ClearGraffitiVars(playerid);
-
- //GameTextForPlayer(playerid, "~r~Spraying Stopped", 3000, 3);
-
- sprayingGraffiti[playerid] = false;
- graffitiTimerEx_Confirm[playerid] = false;
- sprayingGraffitiTime[playerid] = saveSprayingTime[playerid];
- }
- }
- Server:ClearGraffitiTD(playerid)
- {
- printf("[DEBUG] Clearing graffiti for %s", ReturnName(playerid));
- PlayerTextDrawHide(playerid, GraffitiDisplay[playerid]);
- return 1;
- }
- Server:OnMDCPartialPlate(playerid)
- {
- if(!cache_num_rows())
- return ShowPlayerDialog(playerid, DIALOG_MDC_FINISH_QUEUE, DIALOG_STYLE_MSGBOX, "Mobile Database Computer", "The plate you inputted was not found in our database.", "<<", "");
- new rows, fields;
- cache_get_row_count(rows), cache_get_field_count(fields);
-
- new plate_list[128];
-
- for(new i = 0; i < rows; i++)
- {
- cache_get_value_name(i, "Plate", PlayerMDCPlateHolder[playerid][i], 32);
- }
-
- for(new i = 0; i < 5; i++)
- {
- if(!isnull(PlayerMDCPlateHolder[playerid][i]))
- {
- format(plate_list, sizeof(plate_list), "%s%s\n", plate_list, PlayerMDCPlateHolder[playerid][i]);
- }
- }
-
- ShowPlayerDialog(playerid, DIALOG_MDC_PLATE_LIST, DIALOG_STYLE_LIST, "Mobile Database Computer", plate_list, "Select", "<<");
- return 1;
- }
- Server:OnMDCPlateSearch(playerid)
- {
- new rows, fields;
- cache_get_row_count(rows), cache_get_field_count(fields);
-
- if(!cache_num_rows())
- return ShowPlayerDialog(playerid, DIALOG_MDC_FINISH_QUEUE, DIALOG_STYLE_MSGBOX, "Mobile Database Computer", "The plate you inputted was not found in our database.", "<<", "");
-
- new
- sub_str[128],
- primary_str[430],
-
- modelid,
- ownerid,
- impounded,
- insurance,
-
- bool:reportedstolen,
- reporteddate[90];
-
- cache_get_value_name_int(0, "ModelID", modelid);
- cache_get_value_name_int(0, "OwnerID", ownerid);
-
- cache_get_value_name_int(0, "Impounded", impounded);
- cache_get_value_name_int(0, "Insurance", insurance);
-
- cache_get_value_name_bool(0, "ReportedStolen", reportedstolen);
- cache_get_value_name(0, "ReportedStolenDate", reporteddate, 90);
-
- format(sub_str, sizeof(sub_str), "Vehicle plate: %s\n", PlayerMDCText[playerid]);
- strcat(primary_str, sub_str);
-
- format(sub_str, sizeof(sub_str), "Vehicle model: %s\n\n", ReturnVehicleModelName(modelid));
- strcat(primary_str, sub_str);
-
- format(sub_str, sizeof(sub_str), "Registered owner: %s\n", ReturnSQLName(ownerid));
- strcat(primary_str, sub_str);
-
- format(sub_str, sizeof(sub_str), "Impounded: %s\n", (impounded != 1) ? ("No") : ("Yes"));
- strcat(primary_str, sub_str);
-
- format(sub_str, sizeof(sub_str), "Insurance: %s\n\n", (insurance != 1) ? ("Invalid") : ("Valid"));
- strcat(primary_str, sub_str);
-
- if(reportedstolen)
- {
- strcat(primary_str, "{F81414}WARNING:\n\n");
-
- format(sub_str, sizeof(sub_str), "This vehicle {CCE6E6}(\"%s\"){F81414} has been REPORTED STOLEN by the owner.\n", PlayerMDCText[playerid]);
- strcat(primary_str, sub_str);
-
- format(sub_str, sizeof(sub_str), "The vehicle was reported stolen on {CCE6E6}%s{F81414}.\n\n", reporteddate);
- strcat(primary_str, sub_str);
-
- strcat(primary_str, "DOUBLE CHECK OWNER CREDENTIALS!");
- }
-
- ShowPlayerDialog(playerid, DIALOG_MDC_FINISH_QUEUE, DIALOG_STYLE_MSGBOX, "Mobile Database Computer", primary_str, "<<", "");
- return 1;
- }
- Server:OnMDCNameSearch(playerid)
- {
- new rows, fields;
- cache_get_row_count(rows), cache_get_field_count(fields);
-
- if(!cache_num_rows())
- return ShowPlayerDialog(playerid, DIALOG_MDC_FINISH_QUEUE, DIALOG_STYLE_MSGBOX, "Mobile Database Computer", "The name you inputted was not found in our database.", "<<", "");
-
- new
- sub_str[128],
- primary_str[300],
- query[128],
-
- phone,
- weplicense,
- driverlicense,
- listings,
- jailtime,
- prisontime;
-
- cache_get_value_name_int(0, "Phone", phone);
- cache_get_value_name_int(0, "WeaponsLicense", weplicense);
- cache_get_value_name_int(0, "DriversLicense", driverlicense);
-
- cache_get_value_name_int(0, "ActiveListing", listings);
- cache_get_value_name_int(0, "JailTimes", jailtime);
- cache_get_value_name_int(0, "PrisonTimes", prisontime);
-
- strcat(primary_str, "PERSONAL INFORMATION\n");
-
- for(new i = 0; i < strlen(PlayerMDCText[playerid]); i++) if(PlayerMDCText[playerid][i] == '_')
- {
- PlayerMDCText[playerid][i] = ' ';
- }
-
- format(sub_str, sizeof(sub_str), "Full name: %s\n", PlayerMDCText[playerid]);
- strcat(primary_str, sub_str);
-
- format(sub_str, sizeof(sub_str), "Phone number: %d\n\n", phone);
- strcat(primary_str, sub_str);
-
- format(sub_str, sizeof(sub_str), "Drivers license: %s\n", (driverlicense != 0) ? ("Acquired") : ("Invalid"));
- strcat(primary_str, sub_str);
-
- format(sub_str, sizeof(sub_str), "Weapons license: %s\n\n", (weplicense != 0) ? ("Acquired") : ("Invalid"));
- strcat(primary_str, sub_str);
-
- strcat(primary_str, "CRIMINAL RECORD\n");
-
- format(sub_str, sizeof(sub_str), "Jail sentences: %i\n", jailtime);
- strcat(primary_str, sub_str);
-
- format(sub_str, sizeof(sub_str), "Prison sentences: %i\n\n", prisontime);
- strcat(primary_str, sub_str);
-
- if(!listings)
- strcat(primary_str, "Previous arrest reason(s): (NOT WANTED)\n\n");
- else strcat(primary_str, "OUTSTANDING CHARGES:\n\n");
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT entry_reason FROM criminal_record WHERE player_name = '%e' ORDER BY id DESC", PlayerMDCText[playerid]);
- new Cache:cache = mysql_query(m_Handle, query);
- new entry_reason[128];
-
- if(!cache_num_rows())
- strcat(primary_str, "No previous arrest reasons.\n");
- else
- {
- for(new i = 0; i < rows; i++)
- {
- cache_get_value_name(i, "entry_reason", entry_reason, 128);
-
- format(sub_str, sizeof(sub_str), "* %s\n", entry_reason);
- strcat(primary_str, sub_str);
- }
- }
-
- cache_delete(cache);
- ShowPlayerDialog(playerid, DIALOG_MDC_FINISH_QUEUE, DIALOG_STYLE_MSGBOX, "Mobile Database Computer", primary_str, "<<", "");
- return 1;
- }
- Server:OnPlayerAddCharge(playerid, playerb)
- {
- new update_query[128], string[128];
-
- format(string, sizeof(string), "** HQ: %s added a charge to %s's record! **", ReturnName(playerid, 0), ReturnName(playerb, 1));
- SendLawMessage(COLOR_COP, string);
-
- PlayerData[playerb][pActiveListing]++;
-
- mysql_format(m_Handle, update_query, sizeof(update_query), "UPDATE players SET ActiveListing = %i WHERE id = %i", PlayerData[playerb][pActiveListing], PlayerData[playerb][pSQLID]);
- mysql_pquery(m_Handle, update_query);
- return 1;
- }
- Server:OnBadPhoneCall(playerid, type)
- {
- new string[128];
- switch(type)
- {
- case 1:
- {
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] You received a busy tone.");
-
- }
- case 2:
- {
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] The number you have dialed cannot be reached at this time.");
- }
- }
-
- PlayerData[playerid][pPhoneline] = INVALID_PLAYER_ID;
- PlayerData[playerid][pCalling] = 0;
-
- if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USECELLPHONE){
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
- }
-
- format(string, sizeof(string), "* %s puts their phone away.", ReturnName(playerid, 0));
- SendClientMessage(playerid, COLOR_EMOTE, string);
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 20.0, 3000);
- return 1;
- }
- Server:OnShowVehicleList(playerid, listnum)
- {
- new rows, fields;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- new
- dbid,
- model,
- lock,
- alarm,
- immobiliser,
- timesdestroyed,
- plates[32],
- bool:isSpawned,
- color,
- string[128];
-
- cache_get_value_name_int(0, "id", dbid);
- cache_get_value_name_int(0, "ModelID", model);
-
- cache_get_value_name_int(0, "LockLevel", lock);
- cache_get_value_name_int(0, "AlarmLevel", alarm);
- cache_get_value_name_int(0, "ImmobLevel", immobiliser);
-
- cache_get_value_name_int(0, "TimesDestroyed", timesdestroyed);
- cache_get_value_name(0, "Plate", plates);
-
- for(new i = 0, j = GetVehiclePoolSize(); i <= j; i++)
- {
- if(CarData[i][carID] == dbid) isSpawned = true;
- }
-
- if(isSpawned) color = COLOR_DARKGREEN;
- else color = COLOR_WHITE;
-
- format(string, sizeof(string), "Vehicle %i: %s, Lock[%i], Alarm[%i], Immobiliser[%i], Times destroyed[%i], Plates[%s]",
- listnum, ReturnVehicleModelName(model), lock, alarm, immobiliser, timesdestroyed, plates);
-
- SendClientMessage(playerid, color, string);
- return 1;
- }
- Server:OnPlayerUnscramble(playerid)
- {
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- PlayerData[playerid][pUnscrambling] = false;
- PlayerData[playerid][pUnscrambleID] = 0;
- PlayerData[playerid][pUnscramblerTime] = 111;
- PlayerData[playerid][pScrambleFailed] = 0;
- PlayerData[playerid][pScrambleSuccess] = 0;
-
- KillTimer(PlayerData[playerid][pUnscrambleTimer]);
- ShowUnscrambleTextdraw(playerid, false);
- return 1;
- }
-
- PlayerData[playerid][pUnscramblerTime]--;
-
- new timerString[20];
-
- format(timerString, 20, "%d", PlayerData[playerid][pUnscramblerTime]);
- PlayerTextDrawSetString(playerid, Unscrambler_PTD[playerid][5], timerString);
-
- if(PlayerData[playerid][pUnscramblerTime] < 1)
- {
- PlayerData[playerid][pUnscrambling] = false;
- PlayerData[playerid][pUnscramblerTime] = 111;
- PlayerData[playerid][pUnscrambleID] = 0;
-
- PlayerData[playerid][pScrambleSuccess] = 0;
- PlayerData[playerid][pScrambleFailed] = 0;
- KillTimer(PlayerData[playerid][pUnscrambleTimer]);
-
- ShowUnscrambleTextdraw(playerid, false);
-
- new vehicleid = GetPlayerVehicleID(playerid);
-
- ToggleVehicleAlarms(vehicleid, true);
- NotifyVehicleOwner(vehicleid);
-
- ClearAnimations(playerid);
- }
- return 1;
- }
- Server:OnVehicleAlarm(vehicleid)
- {
- return ToggleVehicleAlarms(vehicleid, false);
- }
- Server:OnStolenCarCall(playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] They picked up. You can talk now by using the chat box.");
- PlayerStolenCarTimer[playerid] = SetTimerEx("OnStolenCarCallEx", 1500, false, "i", playerid);
- return 1;
- }
- Server:OnStolenCarCallEx(playerid)
- {
- PlayerData[playerid][pPhoneline] = 788;
- PlayerData[playerid][pCalling] = 0;
-
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says: Thank you for calling 778-STOLEN-CARS. Are you calling to report a vehicle stolen?");
- PlayerStolenCarPrompt[playerid] = 1;
- return 1;
- }
- Server:OnStolenCarPrompt(playerid)
- {
- if(!cache_num_rows())
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says: Thank you for holding. We've ran the plates you provide and we've unfortunately found no match in...");
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says: ... database. Would you like to try again or end the call?");
-
- PlayerStolenCarPrompt[playerid] = 3;
- return 1;
- }
-
- new rows, fields;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- new string[128], model_id;
-
- cache_get_value_name_int(0, "ModelID", model_id);
-
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says: Thanks for holding. We've found a match with the plates you provided us. Could you confirm that...");
-
- format(string, sizeof(string), "Operator says: ... the vehicle is a \"%s\" with the license plates \"%s\"?", ReturnVehicleModelName(model_id), PlayerStolenCarPlate[playerid]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
-
- PlayerStolenCarPrompt[playerid] = 4;
- return 1;
- }
- Server:OnStolenCarOwnedCheck(playerid)
- {
- new string[128], owner_id, rows, fields;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- cache_get_value_name_int(0, "OwnerID", owner_id);
-
- if(owner_id != PlayerData[playerid][pSQLID])
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says: It appears this vehicle is not registered to you.");
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says: We are unable to report a vehicle stolen if it's not the registered owner.");
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] They hung up.");
-
- PlayerStolenCarPrompt[playerid] = 0;
- PlayerStolenCarPlate[playerid] = "";
-
- cmd_hangup(playerid, "");
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says: Okay! We have confirmed that this vehicle belongs to you.");
-
- mysql_format(m_Handle, string, sizeof(string), "UPDATE ownedcars SET ReportedStolen = 1, ReportedStolenDate = '%e' WHERE Plate = '%e'", ReturnDateEx(), PlayerStolenCarPlate[playerid]);
- mysql_tquery(m_Handle, string, "OnStolenCarConfirm", "i", playerid);
- }
- return 1;
- }
- Server:OnStolenCarConfirm(playerid)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says: Your vehicle has been flagged stolen and local law enforcement has been notified.");
-
- new string[128];
-
- format(string, sizeof(string), "** HQ: A vehicle with the license plates \"%s\" has been reported stolen. **", PlayerStolenCarPlate[playerid]);
- SendLawMessage(COLOR_COP, string);
-
- PlayerStolenCarPrompt[playerid] = 0;
- PlayerStolenCarPlate[playerid] = "";
-
- cmd_hangup(playerid, "");
- return 1;
- }
- Server:CheckNameForBan(playerid, user[])
- {
- if(!cache_num_rows())
- return Message(playerid, COLOR_GOLD, "[-] %s is NOT banned.", user);
-
- new rows, fields, id;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- id = cache_get_value_name_int(0, "id", id);
- Message(playerid, COLOR_GOLD, "[-] %s is banned (/bansys %i for details)!", user, id);
- return 1;
- }
- Server:OnBanCheck(playerid, user[])
- {
- //if(!cache_num_rows())
- //return Message(playerid, COLOR_GOLD, "This user (%s) is not banned or linked to any banned accounts.", user);
-
- new rows, fields, id, Name[32];
-
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- if(!rows)
- return Message(playerid, COLOR_GOLD, "This user (%s) is not banned or linked to any banned accounts.", user);
- for(new i = 0; i < rows; i++)
- {
- cache_get_value_name(i, "Name", Name);
- cache_get_value_name_int(i, "id", id);
-
- Message(playerid, COLOR_RED, "[ ! ] %s is linked to banned account %s. (Ban ID: %i)", user, Name, id);
- }
-
- return 1;
- }
- Server:OnBanCheckEx(playerid, playerb)
- {
- //if(!cache_num_rows())
- //return Message(playerid, COLOR_GOLD, "This user (%s) is not banned or linked to any banned accounts.", user);
-
- new rows, fields, id, Name[32];
-
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- if(!rows)
- return Message(playerid, COLOR_GOLD, "This user (%s) is not banned or linked to any banned accounts.", ReturnName(playerb));
- for(new i = 0; i < rows; i++)
- {
- cache_get_value_name(i, "Name", Name);
- cache_get_value_name_int(i, "id", id);
-
- Message(playerid, COLOR_RED, "[ ! ] %s is linked to banned account %s. (Ban ID: %i)", ReturnName(playerb), Name, id);
- }
-
- return 1;
- }
- Server:OnWeaponsCheck(playerid)
- {
- if(!cache_num_rows())
- return 1;
-
- new rows, fields, weapon_id, ammo;
-
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- for(new i = 0; i < rows; i++)
- {
- cache_get_value_name_int(i, "weapon_id", weapon_id);
- cache_get_value_name_int(i, "ammo", ammo);
-
- Message(playerid, COLOR_GRAD2, "- Weapon: %s [Ammo: %d]", ReturnWeaponName(weapon_id), ammo);
- }
-
- return 1;
- }
- Server:OnListAccounts(playerid, user[])
- {
- new rows, fields, IP[32], query[128];
-
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- for(new i = 0; i < rows; i++)
- {
- cache_get_value_name(i, "IP", IP);
- }
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT Name FROM players WHERE IP = '%e'", IP);
- new Cache:cache = mysql_query(m_Handle, query);
-
- if(!cache_num_rows())
- return Message(playerid, COLOR_GOLD, "** %s has no alternative accounts.", user);
-
- new Name[32];
-
- for(new i = 0; i < cache_num_rows(); i++)
- {
- cache_get_value_name(i, "Name", Name);
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT id FROM bans WHERE Name = '%e'", Name);
- mysql_pquery(m_Handle, query, "CheckIfBanned", "is", playerid, Name);
- }
-
- cache_delete(cache);
- return 1;
- }
- Server:CheckIfBanned(playerid, user[])
- {
- if(!cache_num_rows())
- Message(playerid, COLOR_GOLD, "** %s", user);
-
- else Message(playerid, COLOR_RED, "** %s (BANNED)", user);
- return 1;
- }
- Server:OnBanSys(playerid)
- {
- if(!cache_num_rows())
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: The username or ID you specified is not banned or is an invalid ban ID.");
- new
- rows, fields,
- id, Name[32], Reason[128], BannedBy[30], Date[128], IP[30];
-
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- cache_get_value_name_int(0, "id", id);
-
- cache_get_value_name(0, "Name", Name);
- cache_get_value_name(0, "Reason", Reason);
-
- cache_get_value_name(0, "BannedBy", BannedBy);
- cache_get_value_name(0, "Date", Date);
-
- cache_get_value_name(0, "IP", IP);
- Message(playerid, COLOR_GOLD, "BAN ID:{FFFFFF} #%s", MoneyFormat(id));
- Message(playerid, COLOR_GOLD, "USERNAME:{FFFFFF} %s", Name);
-
- ClearLines(playerid, 1);
-
- Message(playerid, COLOR_GOLD, "BANNED BY:{FFFFFF} %s", BannedBy);
- Message(playerid, COLOR_GOLD, "REASON:{FFFFFF} %s", Reason);
-
- ClearLines(playerid, 1);
-
- Message(playerid, COLOR_GOLD, "DATE:{FFFFFF} %s", Date);
- Message(playerid, COLOR_GOLD, "IP:{FFFFFF} %s", IP);
- return 1;
- }
- Server:OnBanLookup(playerid, user[])
- {
- if(!cache_num_rows())
- return Message(playerid, COLOR_ADM, "[-] %s has never been banned.", user);
-
- new rows, fields;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- new BannedBy[34], Reason[128], Date[90], IP[30];
- SendClientMessage(playerid, COLOR_GOLD, "Banned By | Date | IP | Reason");
-
- for(new i = 0; i < rows; i++)
- {
- cache_get_value_name(i, "BannedBy", BannedBy);
- cache_get_value_name(i, "Reason", Reason);
-
- cache_get_value_name(i, "Date", Date);
- cache_get_value_name(i, "IP", IP);
-
- if(strlen(Reason) > 59)
- {
- Message(playerid, COLOR_GREY, "%s %s %s %.59s ...", BannedBy, Date, IP, Reason);
- Message(playerid, COLOR_GREY, "...%s", Reason[59]);
- }
- else Message(playerid, COLOR_GREY, "%s %s %s %s", BannedBy, Date, IP, Reason);
- }
-
- return 1;
- }
- Server:OnAjailLookup(playerid, user[])
- {
- if(!cache_num_rows())
- return Message(playerid, COLOR_ADM, "[-] %s has never been admin jailed.", user);
-
- new rows, fields;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- new JailedBy[34], Reason[128], Date[90], Time;
-
- SendClientMessage(playerid, COLOR_GOLD, "Jailed By | Date | Time | Reason");
-
- for(new i = 0; i < rows; i++)
- {
- cache_get_value_name(i, "JailedBy", JailedBy);
- cache_get_value_name(i, "Reason", Reason);
-
- cache_get_value_name(i, "Date", Date);
- cache_get_value_name_int(i, "Time", Time);
-
- if(strlen(Reason) > 59)
- {
- Message(playerid, COLOR_GREY, "%s %s %i %.59s ...", JailedBy, Date, Time, Reason);
- Message(playerid, COLOR_GREY, "...%s", Reason[59]);
- }
- else Message(playerid, COLOR_GREY, "%s %s %i %s", JailedBy, Date, Time, Reason);
- }
- return 1;
- }
- Server:OnKickLookup(playerid, user[])
- {
- if(!cache_num_rows())
- return Message(playerid, COLOR_ADM, "[-] %s has never been kicked.", user);
-
- new rows, fields;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- new KickedBy[40], Reason[128], Date[90], IP[60];
-
- SendClientMessage(playerid, COLOR_GOLD, "Kicked By | Date | IP | Reason");
-
- for(new i = 0; i < rows; i++)
- {
- cache_get_value_name(i, "KickedBy", KickedBy);
- cache_get_value_name(i, "Reason", Reason);
-
- cache_get_value_name(i, "Date", Date);
- cache_get_value_name(i, "IP", IP);
-
- if(strlen(Reason) > 59)
- {
- Message(playerid, COLOR_GREY, "%s %s %s %.59s", KickedBy, Date, IP, Reason);
- Message(playerid, COLOR_GREY, "...%s", Reason[59]);
- }
- else Message(playerid, COLOR_GREY, "%s %s %s %s", KickedBy, Date, IP, Reason);
- }
- return 1;
- }
- Server:OnBurnerPhone(playerid, response)
- {
- if(response)
- {
- PlayerData[playerid][pHasBurnerPhone] = 1;
- SavePlayer(playerid);
-
- GiveMoney(playerid, -500);
- Message(playerid, COLOR_ADM, "[ ! ] You bought a burner phone. Your number is: %i", PlayerData[playerid][pBurnerPhoneNumber]);
- return 1;
- }
- return 1;
- }
- Server:OnPlayerReport(playerid, response)
- {
- if(response)
- {
- new
- id = -1,
- str[128]
- ;
- for(new i = 1; i < sizeof(ReportData); i++) if(!ReportData[i][reportExists])
- {
- id = i;
- break;
- }
- if(id == -1)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: An error occurred. Please /pm an Admin your inquiry.");
-
- ReportData[id][reportExists] = true;
- ReportData[id][reportBy] = PlayerData[playerid][pSQLID];
-
- format(ReportData[id][reportReason], 128, "%s", PlayerReport[playerid]);
- ReportData[id][reportTime] = gettime();
-
- if(strlen(PlayerReport[playerid]) > 67)
- {
- format(str, sizeof(str), "[REPORT: %d]{FF9900} %s(%d): %.75s", id, ReturnName(playerid), playerid, PlayerReport[playerid]);
- SendAdminMessage(COLOR_HELPER, str);
-
- format(str, sizeof(str), "[REPORT: %d]{FF9900} %s(%d): ...%s", id, ReturnName(playerid), playerid, PlayerReport[playerid][75]);
- SendAdminMessage(COLOR_HELPER, str);
- }
- else
- {
- format(str, sizeof(str), "[REPORT: %d]{FF9900} %s(%d): %s", id, ReturnName(playerid), playerid, PlayerReport[playerid]);
- SendAdminMessage(COLOR_HELPER, str);
- }
-
- if(strfind(PlayerReport[playerid], "hack", true) != -1 || strfind(PlayerReport[playerid], "cheat", true) != -1)
- {
- foreach(new i : Player)
- {
- if(PlayerData[i][pAdmin]) GameTextForPlayer(i, "~y~~h~Priority Report", 4000, 1);
- SendAdminMessage(COLOR_HELPER, "PRIORITY REPORT");
- }
- }
-
- SendClientMessage(playerid, COLOR_ADM, "SERVER: Your report was sent to all online Admins.");
- }
- return 1;
- }
- Server:OnFailedSMS(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] Your SMS failed to deliver.");
- }
- return 1;
- }
- Server:SendSMSText(playerid, playerb)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!IsPlayerConnected(playerb))
- return SendClientMessage(playerid, COLOR_GREY, "[ ! ] Your SMS failed to deliver.");
-
- new
- sender[60] = "";
-
- for(new i = 1; i < MAX_PLAYER_CONTACTS; i++)
- {
- if(ContactsData[playerb][i][contactNumber] == ReturnPhoneNumber(playerid))
- {
- format(sender, 60, "%s", ContactsData[playerb][i][contactName]);
- }
- }
-
- if(isnull(sender))
- format(sender, 60, "%d", ReturnPhoneNumber(playerid));
-
- if(strlen(PlayerSMS[playerid]) > 80)
- {
- Message(playerb, COLOR_YELLOW, "SMS: %.80s...", PlayerSMS[playerid]);
- Message(playerb, COLOR_YELLOW, "SMS: ...%s, Sender: %s", PlayerSMS[playerid][80], sender);
- }
- else Message(playerb, COLOR_YELLOW, "SMS: %s, Sender: %s", PlayerSMS[playerid], sender);
-
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] Your SMS was received.");
- }
- return 1;
- }
- Server:OnNonEmergencyCallPickup(playerid)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "991 Operator says (phone): Non-emergency hotline. How may I help you?");
- PlayerData[playerid][pCalling] = 0;
- return 1;
- }
- Server:OnMechanicCall(playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] They picked up. You can talk now by using the chat box.");
- MechanicCallTimer[playerid] = SetTimerEx("OnMechanicCallPickup", 2000, false, "i", playerid);
- return 1;
- }
- Server:OnMechanicCallPickup(playerid)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): Thanks for calling Jill's Auto Repair. How may we help you?");
- PlayerData[playerid][pCalling] = 0;
- return 1;
- }
- Server:OnTaxiCall(playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] They picked up. You can talk now by using the chat box.");
- TaxiCallTimer[playerid] = SetTimerEx("OnTaxiCallPickup", 2000, false, "i", playerid);
- return 1;
- }
- Server:OnTaxiCallPickup(playerid)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Operator says (phone): Thanks for calling our taxi services. Where would you like to go?");
-
- PlayerData[playerid][pCalling] = 0;
- TaxiStage[playerid] = 1;
-
- return 1;
- }
- Server:OnWeaponCall(playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] They picked up. You can talk now by using the chat box.");
- WeaponOrderTimer[playerid] = SetTimerEx("OnWeaponCallPickup", 2000, false, "i", playerid);
- return 1;
- }
- Server:OnWeaponCallPickup(playerid)
- {
- if(WEAPON_ORDER_DISABLED == true)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 4249956_61] says (phone): The MD5 hash is re-routing to the OC3 Optical line. Ahh, shit! FUCK! WE'RE HIT!");
-
- WeaponOrderPrompt[playerid] = 0;
- cmd_hangup(playerid, "");
- return 1;
- }
- if(OrderedWeapon[playerid])
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): Don't call back yet...");
-
- WeaponOrderPrompt[playerid] = 0;
- cmd_hangup(playerid, "");
- return 1;
- }
-
- if(gettime() - OrderWeaponTime[playerid] < 3600)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): I'm out for now.");
-
- WeaponOrderPrompt[playerid] = 0;
- cmd_hangup(playerid, "");
- return 1;
- }
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): It's Elias.");
-
- PlayerData[playerid][pCalling] = 0;
- WeaponOrderPrompt[playerid] = 1;
- return 1;
- }
- Server:WeaponOrderPrompts(playerid, prompt)
- {
- switch(prompt)
- {
- case 1:
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): (Audible breathing over the phone.)");
- WeaponOrderTimer[playerid] = SetTimerEx("WeaponOrderPrompts", 3000, false, "ii", playerid, 2);
- }
- case 2:
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): Name it.");
- WeaponOrderPrompt[playerid] = 2;
- }
- case 3:
- {
- Message(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): A %s? That right?", WeaponOrderedName[0][playerid]);
- WeaponOrderPrompt[playerid] = 3;
- }
- case 5:
- {
- Message(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): %s yeah?", WeaponOrderedName[1][playerid]);
- WeaponOrderPrompt[playerid] = 6;
- }
- case 6://1 weapon;
- {
- Message(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): You got one %s. Confirm.", WeaponOrderedName[0][playerid]);
- WeaponOrderPrompt[playerid] = 11;
- }
- case 7://2 weapon;
- {
- Message(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): You got a %s and a %s. Confirm.", WeaponOrderedName[0][playerid], WeaponOrderedName[1][playerid]);
- WeaponOrderPrompt[playerid] = 11;
- }
- case 10: //end;
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): I'll call you in 15 minutes. Be ready and have money on you.");
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): Don't go anywhere.");
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] They hung up.");
-
- WeaponOrderPrompt[playerid] = 0;
- OrderedWeapon[playerid] = true;
-
- cmd_hangup(playerid, ""); //900000
-
- WeaponOrderTimer[playerid] = SetTimerEx("OnWeaponOrderFinished", 900000, false, "i", playerid);
- }
- case 11: //order rdy:
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): Your orders ready. I sent you the pickup coordinates.");
- WeaponOrderTimer[playerid] = SetTimerEx("WeaponOrderPrompts", 2000, false, "ii", playerid, 12);
- }
- case 12:
- {
- SendClientMessage(playerid, COLOR_YELLOW, "[Mask 424956_61] says (phone): I'm gone if you're not here in eight.");
- SendClientMessage(playerid, COLOR_GREY, "[ ! ] They hung up.");
-
- cmd_hangup(playerid, "");
- WeaponOrderTimer[playerid] = SetTimerEx("WeaponOrderPrompts", 3000, false, "ii", playerid, 13);
- }
- case 13:
- {
- new id, str[128];
-
- id = random(sizeof(PossibleDropSpots));
- WeaponOrderSpot[playerid] = id;
- WeaponOrderArea[playerid] = CreateDynamicCircle(PossibleDropSpots[id][LocationX], PossibleDropSpots[id][LocationY], 20.0, 0, 0, playerid);
-
- format(str, sizeof(str), "SMS: %.4f, %.4f. 8 minutes., Sender: 434112", PossibleDropSpots[id][LocationX], PossibleDropSpots[id][LocationY]);
- SendClientMessage(playerid, COLOR_YELLOW, str);
-
- SetPlayerCheckpoint(playerid, PossibleDropSpots[id][LocationX], PossibleDropSpots[id][LocationY], PossibleDropSpots[id][LocationZ], 2.0);
- WeaponOrderDoneTime[playerid] = gettime();
- }
- case 14:
- {
- SendClientMessage(playerid, COLOR_YELLOW, "SMS: Don't order shit and then hangup you faggot, Sender: 434112");
-
- OrderedWeapon[playerid] = false;
- WeaponOrderPrompt[playerid] = false;
- }
- case 15:
- {
- new randomAngle = random(360);
- new randomDistance = random(10);
-
- new Float:Angle = float(randomAngle);
- new Float:newX = floatcos(Angle);
- new Float:newY = floatsin(Angle);
- new Float:newDistance = float(randomDistance);
- new Float:LocX = (newX * newDistance) + PossibleDropSpots[WeaponOrderSpot[playerid]][LocationX];
- new Float:LocY = (newY * newDistance) + PossibleDropSpots[WeaponOrderSpot[playerid]][LocationY];
-
- PlayerData[playerid][pPos][0] = LocX;
- PlayerData[playerid][pPos][1] = LocY;
- PlayerData[playerid][pPos][2] = PossibleDropSpots[WeaponOrderSpot[playerid]][LocationZ];
-
- WeaponOrderObject[playerid] = CreateDynamicObject(3014, LocX, LocY, PlayerData[playerid][pPos][2] - 1, 80.0, 0, 0);
-
- SendClientMessage(playerid, COLOR_YELLOW, "SMS: Thank you for your donation. I sent you a closeby location., Sender: 434112");
- SetPlayerCheckpoint(playerid, LocX, LocY, PossibleDropSpots[WeaponOrderSpot[playerid]][LocationZ], 1.0);
-
- SendClientMessage(playerid, COLOR_ADM, "TIP: Use your Crouch (C) key to pick up your package.");
- WeaponOrderPrompt[playerid] = 21;
- return 1;
- }
- }
- return 1;
- }
- Server:OnMappingAdded(playerid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
- {
- new
- id, str[128];
- for(new i = 0; i < sizeof ObjectData; i++) if(!ObjectData[i][ObjectDBID])
- {
- id = i;
- break;
- }
-
- ObjectData[id][Object] =
- CreateDynamicObject(PlayerAddingModel[playerid], x, y, z, rx, ry, rz, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
-
- ObjectData[id][ObjectDBID] = cache_insert_id();
- ObjectData[id][Object_Model] = PlayerAddingModel[playerid];
-
- ObjectData[id][Object_PosX] = x; ObjectData[id][Object_PosY] = y;
- ObjectData[id][Object_PosZ] = z;
-
- ObjectData[id][Object_RotX] = rx; ObjectData[id][Object_RotY] = ry;
- ObjectData[id][Object_RotZ] = rz;
-
- ObjectData[id][Object_Interior] = GetPlayerInterior(playerid);
- ObjectData[id][Object_World] = GetPlayerVirtualWorld(playerid);
-
- ObjectData[id][Object_Type] = DEFAULT_MAP_TYPE;
- ObjectData[id][Object_Faction] = 0;
-
- format(str, sizeof(str), "* You created a mapping object. Index: %i DBID: %i", id, cache_insert_id());
- SendClientMessage(playerid, COLOR_GOLD, str);
-
- format(str, sizeof(str), "%s created a mapping. (ID: %i)", ReturnName(playerid), id);
- adminWarn(4, str);
-
- WriteLog("admin_logs/makemap.txt", "[%s] %s made a mapping. ID: %i DBID: %i", ReturnDate(), ReturnName(playerid), id, cache_insert_id());
- return 1;
- }
- Server:OnMappingEdited(playerid, index, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
- {
- new str[128];
-
- ObjectData[index][Object_PosX] = x; ObjectData[index][Object_PosY] = y;
- ObjectData[index][Object_PosZ] = z;
-
- ObjectData[index][Object_RotX] = rx; ObjectData[index][Object_RotY] = ry;
- ObjectData[index][Object_RotZ] = rz;
-
- format(str, sizeof(str), "* You edited Object %i successfully.", index);
- SendClientMessage(playerid, COLOR_GOLD, str);
- return 1;
- }
- Server:OnMappingEditedEx(playerid, index, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
- {
- new str[128];
-
- ObjectData[index][Object_OpenX] = x; ObjectData[index][Object_OpenY] = y;
- ObjectData[index][Object_OpenZ] = z;
-
- ObjectData[index][Object_OpenRotX] = rx; ObjectData[index][Object_OpenRotY] = ry;
- ObjectData[index][Object_OpenRotZ] = rz;
-
- SetDynamicObjectPos(ObjectData[index][Object], ObjectData[index][Object_PosX], ObjectData[index][Object_PosY], ObjectData[index][Object_PosZ]);
- SetDynamicObjectRot(ObjectData[index][Object], ObjectData[index][Object_RotX], ObjectData[index][Object_RotY], ObjectData[index][Object_RotZ]);
-
- format(str, sizeof(str), "* You edited Object %i's open-position successfully.", index);
- SendClientMessage(playerid, COLOR_GOLD, str);
- return 1;
- }
- Server:OnMapDelete(playerid, response, id)
- {
- if(response)
- {
- new query[128];
-
- mysql_format(m_Handle, query, sizeof query, "DELETE FROM objects WHERE id = %i", ObjectData[id][ObjectDBID]);
- mysql_pquery(m_Handle, query, "OnMapDeleted", "ii", playerid, id);
- }
- return 1;
- }
- Server:OnMapDeleted(playerid, id)
- {
- new str[128];
-
- format(str, sizeof(str), "* You successfully deleted Map ID %i.", id);
- SendClientMessage(playerid, COLOR_GOLD, str);
-
- format(str, sizeof(str), "%s deleted Map Object ID %i", ReturnName(playerid), id);
- adminWarn(4, str);
-
- WriteLog("admin_logs/deletemap.txt", "[%s] %s deleted Map ID %i", ReturnDate(), ReturnName(playerid), id);
-
- ObjectData[id][ObjectDBID] = 0;
- ObjectData[id][Object_Model] = 0;
-
- ObjectData[id][Object_Faction] = 0;
- ObjectData[id][Object_Type] = 0;
-
- ObjectData[id][Object_PosX] = 0;
- ObjectData[id][Object_PosY] = 0;
-
- DestroyDynamicObject(ObjectData[id][Object]);
- return 1;
- }
- Server:OnTaserShoot(playerid)
- {
- SetPlayerArmedWeapon(playerid, WEAPON_SILENCED);
- return ClearAnimations(playerid);
- }
- Server:OnVehicleFineIssued(playerid, vehicleid, reason[], amount)
- {
- new id, str[128];
-
- for(new i = 0; i < 30; i++)
- {
- if(VehicleFines[vehicleid][i][Fine_ID])
- continue;
-
- id = i;
- break;
- }
-
- VehicleFines[vehicleid][id][Fine_ID] = cache_insert_id();
- VehicleFines[vehicleid][id][Fine_Amount] = amount;
-
- format(VehicleFines[vehicleid][id][Fine_Issuer], 34, "%s", ReturnName(playerid, 1));
- format(VehicleFines[vehicleid][id][Fine_Reason], 128, "%s", reason);
- format(VehicleFines[vehicleid][id][Fine_Date], 90, "%s", ReturnDate());
-
- format(str, sizeof(str), "writes the %s a $%s fine for '%s'.", ReturnVehicleName(vehicleid), MoneyFormat(amount), reason);
- cmd_me(playerid, str);
- return 1;
- }
- Server:OnFineIssued(playerid, playerb, reason[], amount)
- {
- new id, str[128];
-
- for (new i = 0; i < sizeof(Fines); i++)
- {
- if(Fines[playerb][i][Fine_ID])
- continue;
-
- id = i;
- break;
- }
- Fines[playerb][id][Fine_ID] = cache_insert_id();
- Fines[playerb][id][Fine_Amount] = amount;
-
- format(Fines[playerb][id][Fine_Issuer], 34, "%s", ReturnName(playerid, 1));
- format(Fines[playerb][id][Fine_Reason], 128, "%s", reason);
- format(Fines[playerb][id][Fine_Date], 90, "%s", ReturnDate());
-
- format(str, sizeof(str), "writes %s a $%s fine for '%s'.", ReturnName(playerb, 0), MoneyFormat(amount), reason);
- cmd_me(playerid, str);
-
- format(str, sizeof(str), "[ ! ] You have a new fine from %s for $%s.", ReturnName(playerid, 0), MoneyFormat(amount));
- SendClientMessage(playerb, COLOR_GOLD, str);
- return 1;
- }
- Server:OnRoadblockDisband(playerid, response, id)
- {
- if(response)
- {
- new str[128];
-
- format(str, sizeof(str), "** HQ: %s %s disbanded roadblock '%s' from %s! **", ReturnRank(playerid), ReturnName(playerid, 0),
- GetRoadblockNameFromModel(Roadblocks[id][RoadblocksModelID]), Roadblocks[id][RoadblockLocation]);
- SendLawMessage(COLOR_COP, str);
-
- DestroyDynamicObject(Roadblocks[id][RoadblockObject]);
- Roadblocks[id][RoadblockExists] = false;
- for(new i = 0; i < 3; i++) Roadblocks[id][RoadblockPos][i] = 0.0;
- }
- else return ShowPlayerDialog(playerid, DIALOG_ROADBLOCKS, DIALOG_STYLE_LIST, "Roadblocks Menu", "Deploy Roadblock\nRoadblock List", "Select", "Cancel");
- return 1;
- }
- Server:OnPlayerPayFine(playerid, response, index)
- {
- if(response)
- {
- if(PlayerData[playerid][pMoney] < Fines[playerid][index][Fine_Amount])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You can't afford to pay this right now.");
-
- new thread[128];
-
- mysql_format(m_Handle, thread, sizeof(thread), "DELETE FROM player_fines WHERE id = %i", Fines[playerid][index][Fine_ID]);
- mysql_tquery(m_Handle, thread, "OnPlayerFinePay", "ii", playerid, index);
- }
- return 1;
- }
- Server:OnPlayerFinePay(playerid, index)
- {
- GiveMoney(playerid, -Fines[playerid][index][Fine_Amount]);
-
- new str[128];
-
- format(str, sizeof(str), "You paid your $%s fine on %s.", MoneyFormat(Fines[playerid][index][Fine_Amount]), ReturnMonthAndDay());
- SendClientMessage(playerid, COLOR_ADM, str);
-
- Fines[playerid][index][Fine_ID] = 0;
- Fines[playerid][index][Fine_Amount] = 0;
- return 1;
- }
- Server:OnClothingDelete(playerid, index)
- {
- if (IsPlayerAttachedObjectSlotUsed(playerid, index))
- {
- RemovePlayerAttachedObject(playerid, index);
- }
-
- new string[128];
- format(string, sizeof(string), "You dropped your %s", ClothingData[playerid][index][attachment_name]);
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- ClothingData[playerid][index][attachment_SQLID] = 0;
- return 1;
- }
- Server:OnStolenCars(playerid)
- {
- if(!cache_num_rows())
- return ShowPlayerDialog(playerid, DIALOG_MDC_FINISH_QUEUE, DIALOG_STYLE_MSGBOX, "Stolen Cars - MDC", "There are no reported vehicles.", ">>", "<<");
-
- new rows, fields, primary[600], sub[128];
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- new Plate[30], ReportedDate[90], ModelID;
-
- strcat(primary, "Model\tPlate\tDate\n");
-
- for(new i = 0; i < rows; i++)
- {
- cache_get_value_name(i, "Plate", Plate);
- cache_get_value_name(i, "ReportedStolenDate", ReportedDate);
- cache_get_value_name_int(i, "ModelID", ModelID);
-
- format(sub, sizeof(sub), "%s\t%s\t%s\n", ReturnVehicleModelName(ModelID), Plate, ReportedDate);
- strcat(primary, sub);
- }
- ShowPlayerDialog(playerid, DIALOG_MDC_FINISH_QUEUE, DIALOG_STYLE_TABLIST_HEADERS, "Stolen Cars - MDC", primary, ">>", "<<");
- return 1;
- }
- Server:OnPhoneSearch(playerid, number)
- {
- if(!cache_num_rows())
- return ShowPlayerDialog(playerid, DIALOG_MDC_FINISH_QUEUE, DIALOG_STYLE_MSGBOX, "Phone Search - MDC", "That number does not exist.", "<<", "");
- new rows, fields;
- cache_get_row_count(rows), cache_get_field_count(fields);
-
- new Name[34], infoStr[190];
- cache_get_value_name(0, "Name", Name);
-
- for(new i = 0; i < strlen(Name); i++)
- {
- if(Name[i] == '_')
- {
- Name[i] = ' ';
- }
- }
-
- format(infoStr, sizeof(infoStr), "{ADC3E7}Phone number:{FFFFFF} %i\n{ADC3E7}Registered owner:{FFFFFF} %s\n\n{ADC3E7}The following was found during a search for '%d'.", number, Name, number);
- ShowPlayerDialog(playerid, DIALOG_MDC_FINISH_QUEUE, DIALOG_STYLE_MSGBOX, "Phone Search - MDC", infoStr, ">>", "<<");
- return 1;
- }
- Server:CheckPlayerBanned(playerid, user[])
- {
- if(!cache_num_rows())
- return Message(playerid, COLOR_ADM, "SERVER: %s is not banned.", user);
- new thread[180];
-
- mysql_format(m_Handle, thread, sizeof(thread), "DELETE FROM bans WHERE Name = '%e'", user);
- mysql_tquery(m_Handle, thread, "UnbanPlayer", "is", playerid, user);
- return 1;
- }
- Server:UnbanPlayer(playerid, user[])
- {
- new str[128];
-
- format(str, sizeof(str), "%s unbanned: %s", ReturnName(playerid), user);
- adminWarn(4, str);
-
- Message(playerid, COLOR_ADM, "SERVER: You successfully unbanned %s.", user);
- WriteLog("admin_logs/unban_log.txt", "[%s] %s unbanned %s", ReturnDate(), user);
- return 1;
- }
- Server:OnVehicleOffer(playerid, response, sellto, price)
- {
- if(response)
- {
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You're no longer in a vehicle.");
-
- if(!GetDistanceBetweenPlayers(playerid, sellto, 4.0))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You're no longer near that player.");
-
- new hasSpace = FreePlayerCarID(sellto);
- if(hasSpace == -1) return SendClientMessage(playerid, COLOR_ADM, "SERVER: That player can't own anymore vehicles.");
-
- VehicleOfferedTo[playerid] = sellto;
- VehicleOfferBy[sellto] = playerid;
-
- VehicleDBIDOffered[playerid] = CarData[GetPlayerVehicleID(playerid)][carID];
- VehiclePrice[playerid] = price;
-
- VehicleDBIDOffered[sellto] = CarData[GetPlayerVehicleID(playerid)][carID];
- VehiclePrice[sellto] = price;
-
- Message(sellto, COLOR_ACTION, "SERVER: %s offered to sell you their %s for: $%s", ReturnName(playerid, 1), ReturnVehicleName(GetPlayerVehicleID(playerid)), MoneyFormat(price));
- SendClientMessage(sellto, COLOR_ACTION, "Use \"/v accept yes\" to accept their offer or \"/v accept no\" to decline it.");
-
- Message(playerid, COLOR_ACTION, "SERVER: You offered %s your %s for: $%s", ReturnName(sellto, 1), ReturnVehicleName(GetPlayerVehicleID(playerid)), MoneyFormat(price));
- SendClientMessage(playerid, COLOR_ACTION, "Use \"/v sell cancel\" to cancel the offer.");
- }
- return 1;
- }
- Server:OnConfirmFuel(playerid, response, fuel_type)
- {
- if(response)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
-
- if(CarEngine[vehicleid])
- return SendClientMessage(playerid, COLOR_DARKGREEN, "Turn the vehicle engine off and refill.");
-
- PlayerRefilling[playerid] = 1;
- RefillVehicle[playerid] = vehicleid;
-
- RefillPrice[playerid] = 10;
- RefillAmount[playerid] = 0;
-
- RefillTextdraw[playerid] = CreateDynamic3DTextLabel("(( |--------- ))\nREFILLING", COLOR_DARKGREEN, 0.0, 0.0, 0.0, 10.0, .attachedvehicle = vehicleid, .worldid = GetPlayerVirtualWorld(playerid), .interiorid = GetPlayerInterior(playerid));
- RefillTimer[playerid] = SetTimerEx("OnVehicleRefill", 3000, true, "ii", playerid, fuel_type);
-
- Streamer_Update(playerid);
- }
- return 1;
- }
- Server:OnVehicleRefill(playerid, fuel_type) //(( |--------- ))\nREFILLING
- {
- if(!IsValidVehicle(RefillVehicle[playerid]))
- return EndPlayerRefill(playerid, 1);
- RefillPoint[playerid]++;
-
- new updateLabel[60];
-
- switch(RefillPoint[playerid])
- {
- case 1: updateLabel = "(( ||-------- ))\nREFILLING";
- case 2: updateLabel = "(( |||------- ))\nREFILLING";
- case 3:
- {
- RefillPrice[playerid]+= 10;
- updateLabel = "(( ||||------ ))\nREFILLING";
- }
- case 4: updateLabel = "(( |||||----- ))\nREFILLING";
- case 5: updateLabel = "(( ||||||---- ))\nREFILLING";
- case 6:
- {
- RefillPrice[playerid]+= 10;
- updateLabel = "(( |||||||--- ))\nREFILLING";
- }
- case 7: updateLabel = "(( ||||||||-- ))\nREFILLING";
- case 8: updateLabel = "(( |||||||||- ))\nREFILLING";
- case 9:
- {
- RefillPrice[playerid]+= 10;
- updateLabel = "(( |||||||||| ))\nREFILLING";
- }
- case 10:
- {
- updateLabel = "(( DONE ))\nREFILLING";
- EndPlayerRefill(playerid);
- }
- }
- UpdateDynamic3DTextLabelText(RefillTextdraw[playerid], COLOR_DARKGREEN, updateLabel);
-
- //Fuel[vehicleid] = floatadd(5.0, floatround(Fuel[vehicleid]));
-
- RefillAmount[playerid]+= floatadd(10.0, floatround(CarData[RefillVehicle[playerid]][carFuel]));
-
- if(RefillAmount[playerid] >= 100)
- {
- RefillAmount[playerid] = 100;
- return EndPlayerRefill(playerid);
- }
- return 1;
- }
- stock EndPlayerRefill(playerid, error = 0)
- {
- if(error)
- {
- DestroyDynamic3DTextLabel(RefillTextdraw[playerid]);
- KillTimer(RefillTimer[playerid]);
-
- PlayerRefilling[playerid] = 0;
- RefillPoint[playerid] = 0;
- RefillPrice[playerid] = 0;
- RefillAmount[playerid] = 0;
-
- SendClientMessage(playerid, COLOR_ADM, "Your vehicle stopped refilling! An error occurred.");
- }
- else
- {
- DestroyDynamic3DTextLabel(RefillTextdraw[playerid]);
- KillTimer(RefillTimer[playerid]);
-
- Message(playerid, COLOR_ACTION, "Your vehicle has been refueled. (Amount: %.2f, Previous: %.2f)", RefillAmount[playerid], CarData[RefillVehicle[playerid]][carFuel]);
- Message(playerid, COLOR_ACTION, "This cost you: $%d", RefillPrice[playerid]);
-
- CarData[RefillVehicle[playerid]][carFuel] = RefillAmount[playerid];
-
- GiveMoney(playerid, -RefillPrice[playerid]);
-
- PlayerRefilling[playerid] = 0;
- RefillPoint[playerid] = 0;
- RefillPrice[playerid] = 0;
- RefillAmount[playerid] = 0;
- RefillVehicle[playerid] = 0;
-
- }
- return 1;
- }
- Server:RestartServer()
- {
- SendRconCommand("gmx");
- }
- Server:IfPhoneExists(playerid, playerb, number)
- {
- if(!cache_num_rows())
- {
- PlayerData[playerb][pPhone] = number;
- SavePlayer(playerb);
-
- new string[128];
-
- format(string, sizeof(string), "%s set %s's Phone number to %d", ReturnName(playerid, 1), ReturnName(playerb, 1), number);
- adminWarn(4, string);
-
- WriteLog("admin_logs/setstats_log.txt", "[%s] %s set %s's Phone number to %d", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), number);
- }
- else return Message(playerid, COLOR_ADM, "SERVER: The number \"d\" is taken.", number);
- return 1;
- }
- Server:IfBPhoneExists(playerid, playerb, number)
- {
- if(!cache_num_rows())
- {
- PlayerData[playerb][pBurnerPhoneNumber] = number;
- SavePlayer(playerb);
-
- new string[128];
-
- format(string, sizeof(string), "%s set %s's Burner Phone number to %d", ReturnName(playerid, 1), ReturnName(playerb, 1), number);
- adminWarn(4, string);
-
- WriteLog("admin_logs/setstats_log.txt", "[%s] %s set %s's Burner Phone number to %d", ReturnDate(), ReturnName(playerid, 1), ReturnName(playerb, 1), number);
- }
- else return Message(playerid, COLOR_ADM, "SERVER: The number \"d\" is taken.", number);
- return 1;
- }
- Server:OnSelectReport(playerid, response, id)
- {
- new str[90];
- if(response)
- {
- format(str, sizeof(str), "%d", id);
- cmd_ar(playerid, str);
- }
- else
- {
- format(str, sizeof(str), "%d", id);
- cmd_dr(playerid, str);
- }
- return 1;
- }
- Server:OnPanelUnban(playerid, response)
- {
- if(response)
- {
- new
- string[128],
- query[256];
-
- format(string, sizeof(string), "%s was unbanned by %s", AdminPanelName[playerid], ReturnName(playerid));
- adminWarn(1, string);
-
- mysql_format(m_Handle, query, sizeof(query), "DELETE FROM bans WHERE Name = '%e'", AdminPanelName[playerid]);
- mysql_tquery(m_Handle, query);
-
- format(string, sizeof(string), "The user \"{A52A2A}%s{ADC3E7}\" was successfully unbanned.", AdminPanelName[playerid]);
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_MSGBOX, "Administration panel", string, "Okay!", "");
- }
- else return ShowAdminPanel(playerid);
- return 1;
- }
- Server:OnAdminNoteAdd(playerid, reason[])
- {
- new string[128];
-
- format(string, sizeof(string), "%s added an admin note to player %s", ReturnName(playerid), AdminPanelName[playerid]);
- adminWarn(2, string);
- format(string, sizeof(string), "You successfully added an admin note to \"{A52A2A}%s{ADC3E7}\". ", AdminPanelName[playerid]);
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", string, "Okay!", "");
-
- foreach(new i : Player)
- {
- if(PlayerData[i][pSQLID] == ReturnSQLFromName(AdminPanelName[playerid]))
- {
- new
- slot = ReturnANoteSlot(i);
-
- if(slot == -1)
- return Message(playerid, COLOR_ADM, "An error occurred. %s's admin note was saved but wont be loaded due to exceeding the max admin notes a player can have.", AdminPanelName[playerid]);
-
- for(new j = 1; j < MAX_ADMIN_NOTES; j++)
- {
- if(aNotesData[i][j][anote_active])
- {
- aNotesData[i][j][anote_active] = false;
- }
- }
-
- aNotesData[i][slot][anote_SQLID] = cache_insert_id();
- format(aNotesData[i][slot][anote_reason], 128, "%s", reason);
- format(aNotesData[i][slot][anote_issuer], 60, "%s", ReturnName(playerid));
- format(aNotesData[i][slot][anote_date], 90, "%s", ReturnDateLog());
- aNotesData[i][slot][anote_playerDBID] = PlayerData[i][pSQLID];
- }
- }
- return 1;
- }
- Server:OnAdminNoteDelete(playerid, response, selected)
- {
- if(response)
- {
- new DeleteQuery[128];
-
- mysql_format(m_Handle, DeleteQuery, sizeof(DeleteQuery), "DELETE FROM player_anotes WHERE id = %i", selected);
- mysql_tquery(m_Handle, DeleteQuery, "OnAdminNoteDeleted", "ii", playerid, selected);
- }
- else return ShowAdminPanel(playerid);
- return 1;
- }
- Server:OnAdminNoteDeleted(playerid, selected)
- {
- new string[128];
-
- format(string, sizeof(string), "%s deleted an admin note from %s", ReturnName(playerid), AdminPanelName[playerid]);
- adminWarn(2, string);
-
- format(string, sizeof(string), "You successfully deleted an admin note from \"{A52A2A}%s{ADC3E7}\".", AdminPanelName[playerid]);
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", string, "Okay!", "");
-
- foreach(new i : Player)
- {
- for(new j = 1; j < MAX_ADMIN_NOTES; j++)
- {
- if(aNotesData[i][j][anote_SQLID] == selected)
- {
- aNotesData[i][j][anote_SQLID] = 0;
- if(aNotesData[i][j][anote_active]) aNotesData[i][j][anote_active] = false;
-
- if(-- j > 0)
- {
- aNotesData[i][j][anote_active] = true;
- }
- }
- }
- }
-
- return 1;
- }
- Server:OnPasswordChange(playerid, oldpass[])
- {
- new LogQuery[500], Query[128];
-
- mysql_format(m_Handle, Query, sizeof(Query), "SELECT Password FROM players WHERE id = %i", PlayerData[playerid][pSQLID]);
- new Cache:cache = mysql_query(m_Handle, Query);
-
- new Password[255];
-
- cache_get_value_name(0, "Password", Password, 255);
- cache_delete(cache);
-
- mysql_format(m_Handle, LogQuery, sizeof(LogQuery), "INSERT INTO log_passchanges (player_name, account_dbid, change_date, player_ip, player_hwid, old_password, new_password) VALUES('%e', %i, '%e', '%e', '%e', '%e', sha1('%e'))", ReturnName(playerid), PlayerData[playerid][pSQLID], ReturnDateLog(), ReturnIP(playerid), ReturnGPCI(playerid), oldpass, Password);
- mysql_tquery(m_Handle, LogQuery, "OnLogPasswordChange", "i", playerid);
-
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_MSGBOX, "Confirmation", "Your password was successfully updated in the database.", "Thanks!", "");
- return 1;
- }
- Server:OnLogPasswordChange(playerid)
- {
- return printf("[Action Confirmed] %s's password change was logged to the database.", ReturnName(playerid));
- }
- Server:ConfirmSecretWord(playerid)
- {
- if(!cache_num_rows())
- {
- new LargeString[230],
- ipString[128];
-
- if(PlayerData[playerid][pAdmin] < 3)
- format(ipString, 128, "%s", ReturnIP(playerid));
-
- else ipString = "Admin Account";
-
- printf("[WARNING] %s (IP: %s) failed their secret word during a password change.", ReturnName(playerid), ReturnIP(playerid));
-
- format(LargeString, sizeof(LargeString), "%s (IP: %s) failed their secret word during a password change.", ReturnName(playerid), ipString);
- adminWarn(1, LargeString);
-
- strcat(LargeString, "{F81414}YOU INPUTTED AN INCORRECT SECRET WORD.\n{FFFFFF}");
- strcat(LargeString, "You can't change your password without giving the secret word associated to your account.");
-
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_MSGBOX, "Change Your Password", LargeString, "Okay", "");
- }
- else
- {
- SendClientMessage(playerid, COLOR_ADM, "Your account has been validated. You can now change your password.");
- CanChangePassword[playerid] = 1;
- }
- return 1;
- }
- Server:LegShotEnd(playerid)
- {
- PlayerData[playerid][pLegShot] = 0;
- return 1;
- }
- Server:OnPlayerLeaveGun(weaponindex)
- {
- ClearDroppedWeapon(weaponindex);
- return 1;
- }
- Server:OnLockTextdraw(playerid)
- {
- DestroyDynamic3DTextLabel(BreakInTextDraw[playerid]);
-
- ActiveLockTD[playerid] = 0;
- BreakInError[playerid] = 0;
- return 1;
- }
- Server:OnBreakSuccess(playerid)
- {
- PlayerBreakInVehicle[playerid] = INVALID_VEHICLE_ID;
- PlayerBreakingIn[playerid] = 0;
-
- BreakInError[playerid] = 0;
- BreakInLevel[playerid] = 0;
-
- ActiveLockTD[playerid] = 0;
-
- DestroyDynamic3DTextLabel(BreakInTextDraw[playerid]);
- return 1;
- }
- // Mapping loading
- stock LoadPNSGates()
- {
- printf("Loading - Mapping for Pay n Sprays were loaded.");
- CreateDynamicObject(975, 2071.54492, -1831.11218, 14.36484, 0.00000, 0.00000, 90.24015); //Idlewood
- CreateDynamicObject(975, 489.31689, -1735.36963, 12.28431, 0.00000, 0.00000, -9.29999); //Santa Maria
- CreateDynamicObject(975, 1025.51855, -1029.07166, 32.99280, 0.10000, 0.00000, 0.60000); //Temple
- CreateDynamicObject(975, 720.23773, -462.52246, 16.82595, 0.00000, 0.00000, 0.00000); //Dillimore
- CreateDynamicObject(975, -100.14352, 1111.52502, 21.05994, 0.00000, 0.00000, -0.18000); //Fort Carson
- CreateDynamicObject(975, -1420.64014, 2591.10156, 56.81979, 0.00000, 0.00000, 0.00000); // El Qua ...
- CreateDynamicObject(975, -1904.89099, 277.66046, 42.35647, 0.00000, 0.00000, 0.00000); // San Fierro
- return true;
- }
- stock LoadModGates()
- {
- printf("Loading - Mapping for Mod Shops were loaded.");
- CreateDynamicObject(975, -2716.25415, 216.96049, 5.12531, 0.00000, 0.00000, -90.18002); // San Fierro West
- CreateDynamicObject(975, -1935.89844, 238.90338, 35.02308, 0.00000, 0.00000, 1.26000); // San Fierro West
- CreateDynamicObject(975, 2386.47534, 1043.29553, 11.49380, 0.00000, 0.00000, 0.00000); // Las Venturas
- CreateDynamicObject(971, 2644.84448, -2039.59863, 11.46750, 0.42000, 89.73997, 0.96000); // Seville
- CreateDynamicObject(975, 1042.38208, -1025.86584, 32.61161, 0.00000, 0.00000, 0.00000); // Temple
- return true;
- }
- stock LoadMallBridge()
- {
- printf("Loading - Mapping for Mall Bridge was loaded.");
- CreateDynamicObject(17550, -7123.54443, -1744.88062, -1392.99512, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(17550, 1144.13074, -1399.91809, 15.74000, 0.00000, 0.00000, 106.00000);
- CreateDynamicObject(1486, 1130.40698, -1416.81396, 12.58851, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(4100, 1088.50549, -1362.49158, 14.40000, 0.00000, 0.00000, 140.00000);
- CreateDynamicObject(8332, 1115.10950, -1367.06030, 26.25000, 0.00000, 0.00000, 1439.00000);
- return true;
- }
- stock LoadMechanicDevin()
- {
- MechLift = CreateDynamicObject(3036, 1569.34424, -2156.86060, 12.96720, -90.00000, 0.00000, 90.00000);
- CreateDynamicObject(8947, 1571.63965, -2162.97534, 15.60000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1728, 1577.93616, -2172.75098, 12.54310, 0.00000, 0.00000, 200.00000);
- CreateDynamicObject(2236, 1578.56384, -2171.38745, 12.54770, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2855, 1578.07556, -2170.70435, 12.61150, 0.00000, 0.00000, -70.00000);
- CreateDynamicObject(2103, 1578.04272, -2170.91895, 13.05070, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(941, 1565.45959, -2162.12720, 13.02000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18633, 1565.68518, -2162.37158, 13.51180, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(18635, 1565.03613, -2162.54321, 13.47400, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(18634, 1565.62012, -2162.65918, 13.51390, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(2601, 1565.02441, -2161.81641, 13.57430, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2601, 1564.95422, -2162.94922, 13.57430, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2601, 1565.21777, -2162.71875, 13.57430, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1650, 1565.66016, -2160.63110, 12.88000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1650, 1565.26038, -2160.61182, 12.88000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1650, 1565.96277, -2173.00146, 12.86000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18452, 1540.91431, -2173.55005, 15.36000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1686, 1543.77039, -2173.57715, 12.60804, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1686, 1538.17444, -2173.56787, 12.60804, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(10281, 1571.83936, -2176.12622, 17.62310, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19378, 1559.01648, -2170.40479, 12.47840, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19385, 1558.58191, -2175.13892, 14.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19355, 1555.37634, -2175.14063, 14.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19355, 1564.98865, -2175.14478, 14.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19401, 1553.83740, -2173.62354, 14.30000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19355, 1553.84778, -2170.41187, 14.30000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19355, 1553.84070, -2167.20605, 14.30000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19355, 1555.37317, -2165.65088, 14.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19355, 1558.58630, -2165.66138, 14.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19385, 1561.79492, -2165.67285, 14.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19428, 1563.92029, -2165.66943, 14.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19466, 1553.82910, -2173.85303, 14.62000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2691, 1555.47705, -2175.03760, 14.57500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19355, 1562.65356, -2168.88916, 14.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19428, 1560.26184, -2168.88110, 14.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1806, 1554.31018, -2174.46118, 12.56480, 0.00000, 0.00000, -30.00000);
- CreateDynamicObject(19385, 1559.51440, -2167.35986, 14.30000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2485, 1560.99341, -2169.37939, 13.64870, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2655, 1553.98218, -2168.52930, 13.99920, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2060, 1556.29822, -2166.04321, 12.66500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2167, 1561.02869, -2168.77222, 12.54630, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1616, 1563.83838, -2174.67114, 15.73108, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1616, 1554.35144, -2166.15063, 15.73110, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1885, 1559.81201, -2174.80225, 12.56631, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2364, 1560.13660, -2175.53857, 12.54774, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3633, 1565.37878, -2164.14990, 13.02560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2049, 1563.46277, -2174.99854, 13.77900, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1650, 1560.31885, -2169.30225, 12.94000, 0.00000, 0.00000, 10.00000);
- CreateDynamicObject(1650, 1560.10718, -2169.55103, 12.92000, 0.00000, 0.00000, -20.00000);
- CreateDynamicObject(1650, 1559.85999, -2169.25513, 12.92000, 0.00000, 0.00000, 9.00000);
- CreateDynamicObject(2385, 1553.90295, -2170.85010, 12.56350, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1280, 1555.68579, -2175.58765, 12.94730, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18635, 1553.99207, -2170.91650, 13.47400, 90.00000, 0.00000, 30.00000);
- CreateDynamicObject(18635, 1554.03491, -2169.42310, 13.47400, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(18633, 1554.21985, -2170.35400, 12.63550, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(18638, 1562.58289, -2169.20581, 13.68020, 0.00000, -90.00000, 230.00000);
- CreateDynamicObject(18645, 1561.66614, -2169.16968, 13.75090, 0.00000, 0.00000, -65.00000);
- CreateDynamicObject(18644, 1554.07178, -2170.35229, 13.50660, 90.00000, 0.00000, -30.00000);
- CreateDynamicObject(18641, 1561.59155, -2169.65430, 13.35050, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18641, 1561.79419, -2169.55737, 13.29050, -90.00000, 0.00000, 0.00000);
- CreateDynamicObject(18641, 1562.11182, -2169.55249, 13.29050, -90.00000, 0.00000, 80.00000);
- CreateDynamicObject(1744, 1556.47192, -2165.61768, 13.91725, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19330, 1563.17224, -2169.24194, 13.71080, 0.00000, -90.00000, 140.00000);
- CreateDynamicObject(2690, 1554.17993, -2168.87842, 12.92650, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2690, 1563.99597, -2172.39795, 12.92650, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19308, 1556.50696, -2165.95850, 14.39660, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19311, 1557.42151, -2165.96753, 14.39670, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19377, 1559.02393, -2170.40381, 16.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19401, 1561.78467, -2175.15186, 14.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19466, 1561.67822, -2175.13867, 14.62000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2714, 1558.58203, -2175.32129, 15.49450, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1523, 1557.77881, -2175.18066, 12.52300, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19314, 1559.36047, -2167.35596, 15.26000, 90.00000, 90.00000, 90.00000);
- CreateDynamicObject(3633, 1565.98596, -2166.01709, 13.20560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2893, 1570.32886, -2162.50366, 11.70000, -30.00000, 0.00000, 180.00000);
- CreateDynamicObject(2893, 1568.38831, -2162.50391, 11.70000, -30.00000, 0.00000, 180.00000);
- CreateDynamicObject(1002, 1565.47888, -2164.14819, 13.49540, 0.00000, 0.00000, -70.00000);
- CreateDynamicObject(19371, 1573.78552, -2152.67773, 14.30000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19417, 1573.78503, -2155.86938, 14.30000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19398, 1575.30811, -2157.56323, 14.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19444, 1577.70020, -2157.55103, 14.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2972, 1565.40039, -2152.26099, 12.56550, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2972, 1566.70093, -2152.24854, 12.56550, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2972, 1566.01953, -2152.23999, 13.74550, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2605, 1577.46045, -2153.07178, 12.94750, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2164, 1573.88403, -2152.45703, 12.54720, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2309, 1577.86292, -2154.33716, 12.54820, 0.00000, 0.00000, 40.00000);
- CreateDynamicObject(19466, 1573.77002, -2155.99707, 15.06120, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1712, 1578.05420, -2156.29663, 12.52790, 0.00000, 0.00000, -155.00000);
- CreateDynamicObject(1897, 1571.05762, -2156.72192, 13.68000, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1897, 1571.06128, -2152.12695, 13.68000, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1897, 1567.62561, -2156.76196, 13.68000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1897, 1567.61914, -2152.15674, 13.68000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2254, 1577.25098, -2157.42871, 14.27690, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2255, 1565.20862, -2153.97485, 13.72360, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1244, 1571.91089, -2152.59009, 13.36000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1238, 1573.06030, -2152.67847, 12.86580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1238, 1573.08105, -2152.65918, 12.98580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1238, 1573.08093, -2152.65894, 13.16580, 0.00000, 0.00000, 30.00000);
- CreateDynamicObject(19371, 1575.46484, -2155.86499, 15.96800, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19371, 1575.46973, -2152.65698, 15.96800, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19444, 1577.71338, -2155.87573, 15.97600, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19444, 1577.71460, -2152.44751, 15.97530, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19121, 1576.18994, -2150.96045, 14.55500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1499, 1574.53870, -2157.57104, 12.53760, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2074, 1576.42334, -2154.66016, 15.63650, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2069, 1578.33411, -2157.21631, 12.58890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1893, 1568.18396, -2170.43237, 18.18831, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1893, 1568.23901, -2168.24756, 18.18831, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1893, 1568.44702, -2165.10059, 18.18831, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1893, 1573.07654, -2171.14331, 18.18831, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1893, 1573.18091, -2168.98193, 18.18831, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1893, 1573.20532, -2166.90137, 18.18831, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3785, 1564.85400, -2161.88745, 14.22000, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(8948, 1571.63501, -2174.02148, 16.18000, 0.00000, 60.00000, 90.00000);
- CreateDynamicObject(3504, 1563.63269, -2164.66235, 13.90000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2607, 1562.86597, -2168.40747, 12.96000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1806, 1563.24438, -2167.39795, 12.56660, 0.00000, 0.00000, 140.00000);
- CreateDynamicObject(2611, 1564.19165, -2167.41528, 14.03160, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2368, 1561.03723, -2169.32178, 12.56530, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1744, 1553.79956, -2170.73755, 13.15090, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1744, 1553.86499, -2170.73682, 12.73090, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1744, 1553.86499, -2170.73682, 12.29090, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2601, 1554.19006, -2171.12451, 13.17040, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2601, 1554.17151, -2170.81982, 13.17040, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2601, 1554.32166, -2170.90063, 13.17040, 0.00000, 0.00000, 199.00000);
- CreateDynamicObject(2583, 1554.20886, -2167.15063, 13.44000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2060, 1557.45947, -2166.02246, 12.66500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2060, 1556.86084, -2165.96167, 12.90500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2010, 1563.82642, -2174.45264, 12.56545, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1808, 1563.85522, -2169.43726, 12.56622, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2267, 1554.01575, -2170.21313, 14.57010, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2626, 1555.65527, -2173.88574, 13.08600, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2059, 1554.57422, -2167.13086, 12.58460, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2059, 1554.23389, -2166.72266, 12.58460, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(617, 1518.21594, -2163.69849, 12.53791, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19124, 1537.98999, -2176.60645, 13.16720, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19124, 1543.71545, -2176.59058, 13.16720, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1616, 1563.83398, -2151.56592, 18.22810, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1616, 1553.33130, -2166.39673, 15.99080, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1623, 1564.22986, -2153.22168, 18.00000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1623, 1564.21362, -2155.88379, 18.00000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2699, 1559.36987, -2172.04980, 13.20000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2690, 1543.87061, -2172.72217, 12.96000, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2690, 1538.28040, -2172.11206, 12.96000, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(7313, 1569.35132, -2151.06958, 16.38790, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2654, 1578.26660, -2158.43726, 12.76390, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(930, 1565.22961, -2172.53809, 13.04000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(943, 1566.41943, -2173.76587, 13.32540, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1650, 1565.83154, -2172.72803, 12.86000, 0.00000, 0.00000, 60.00000);
- CreateDynamicObject(2893, 1568.39294, -2156.87036, 13.04000, 80.00000, 0.00000, 180.00000);
- CreateDynamicObject(2893, 1570.33276, -2156.86255, 13.04000, 80.00000, 0.00000, 180.00000);
- CreateDynamicObject(1744, 1575.43970, -2150.92310, 14.00260, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2163, 1573.89050, -2154.75757, 12.57370, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1549, 1574.17236, -2153.23145, 12.57360, 0.00000, 0.00000, 60.00000);
- CreateDynamicObject(1786, 1573.89612, -2154.50342, 13.49750, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1671, 1577.74524, -2151.70923, 13.03380, 0.00000, 0.00000, -45.00000);
- CreateDynamicObject(2855, 1575.27625, -2151.28882, 14.34180, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18638, 1575.66113, -2151.15601, 14.40190, -5.00000, -90.00000, 60.00000);
- CreateDynamicObject(18631, 1573.70642, -2155.95776, 15.46850, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19171, 1578.54956, -2166.03735, 15.72090, 90.00000, -90.00000, 0.00000);
- CreateDynamicObject(19170, 1578.54504, -2164.54541, 15.72730, 90.00000, -90.00000, 0.00000);
- CreateDynamicObject(19169, 1578.54993, -2166.03711, 17.21540, 90.00000, -90.00000, 0.00000);
- CreateDynamicObject(19168, 1578.54993, -2164.53760, 17.21000, 90.00000, -90.00000, 0.00000);
- CreateDynamicObject(1499, 1562.51648, -2165.67017, 12.53760, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19347, 1562.60425, -2168.21997, 13.38500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18641, 1562.29968, -2168.27002, 13.40470, 90.00000, 0.00000, 30.00000);
- CreateDynamicObject(2190, 1563.25586, -2168.81567, 13.37920, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2074, 1561.70679, -2167.42603, 15.66950, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1495, 1559.46741, -2166.64307, 12.53610, 0.00000, 0.00000, 20.00000);
- CreateDynamicObject(1549, 1559.79456, -2168.56519, 12.56690, 0.00000, 0.00000, -30.00000);
- CreateDynamicObject(18977, 1559.50671, -2172.02490, 13.98820, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18978, 1559.22437, -2171.84595, 13.98840, 0.00000, 0.00000, 130.00000);
- CreateDynamicObject(18979, 1559.16382, -2172.18140, 13.98900, 0.00000, 0.00000, 230.00000);
- CreateDynamicObject(8843, 1549.52185, -2173.22754, 12.56390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(8843, 1530.12085, -2172.66406, 12.56390, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19380, 1594.43835, -2160.83398, 12.46460, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(8674, 1584.19849, -2156.12061, 14.00000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(8674, 1594.50549, -2156.13550, 14.00000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19380, 1583.95459, -2160.83813, 12.46460, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19380, 1594.44019, -2170.44019, 12.46460, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19380, 1583.95984, -2170.44116, 12.46460, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(8674, 1599.66370, -2161.30713, 14.00000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(8674, 1599.68286, -2166.42578, 14.00000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(8674, 1594.50403, -2175.24463, 14.00000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(8674, 1591.91846, -2175.23633, 14.00000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2048, 1564.74951, -2166.59277, 15.00000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(966, 1579.55505, -2174.99902, 12.55150, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(968, 1579.49268, -2175.02344, 13.30740, 0.00000, 6.00000, 0.00000);
- CreateDynamicObject(958, 1565.11157, -2169.23511, 13.42000, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(959, 1565.08240, -2169.23145, 13.39380, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2900, 1574.44751, -2152.08789, 16.05346, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1271, 1575.31152, -2153.09790, 16.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1271, 1574.56555, -2153.02905, 16.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1271, 1574.95813, -2153.07104, 17.08000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2478, 1574.93127, -2154.11426, 16.33510, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2694, 1574.29175, -2155.86401, 16.15450, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2694, 1574.67944, -2155.88208, 16.15450, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2694, 1575.04688, -2156.06079, 16.15450, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2694, 1574.84814, -2156.02954, 16.39450, 0.00000, 0.00000, 30.00000);
- CreateDynamicObject(2694, 1574.39722, -2156.01587, 16.39450, 0.00000, 0.00000, 30.00000);
- CreateDynamicObject(1271, 1575.78223, -2156.78516, 16.40000, 0.00000, 0.00000, 60.00000);
- CreateDynamicObject(2900, 1577.16760, -2153.29370, 16.05346, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2900, 1577.27222, -2156.78418, 16.05346, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(4638, 1598.63184, -2173.40820, 14.26000, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(970, 1537.87256, -2173.55957, 13.14670, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1538.47522, -2173.55737, 13.14670, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1543.43140, -2173.53125, 13.14670, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1544.12488, -2173.62476, 13.14670, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19360, 1577.03442, -2152.65063, 12.47620, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19360, 1575.53650, -2152.65088, 12.47000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19360, 1577.03271, -2155.86938, 12.47620, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19360, 1575.58203, -2155.86401, 12.47000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(8661, 1568.90967, -2164.78833, 12.55320, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(8661, 1548.92407, -2164.82007, 12.55320, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(8661, 1528.96375, -2164.88574, 12.55320, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(8661, 1576.85217, -2164.79248, 12.55000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1439, 1558.39624, -2152.13965, 12.55170, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1330, 1565.20154, -2153.43774, 13.01340, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1300, 1598.66931, -2170.77490, 12.93110, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19371, 1575.46753, -2151.00684, 14.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19371, 1576.92749, -2150.99463, 14.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19371, 1578.60022, -2152.58081, 14.30000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19371, 1578.60461, -2155.80054, 14.30000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19371, 1578.61365, -2155.98242, 14.30000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3031, 1556.23779, -2171.58423, 17.66000, 0.00000, 0.00000, -150.00000);
- CreateDynamicObject(3042, 1579.01013, -2153.44458, 17.83510, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2370, 1576.20642, -2164.97217, 12.55200, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3111, 1576.50281, -2164.60693, 13.41590, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(3017, 1576.54932, -2165.10083, 12.83710, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18866, 1576.86707, -2163.85742, 13.39680, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(18890, 1577.74036, -2157.77661, 13.40310, -15.00000, 0.00000, 0.00000);
- CreateDynamicObject(19468, 1577.39429, -2157.83008, 12.63390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1811, 1577.52454, -2166.35352, 13.16000, 0.00000, 0.00000, -30.00000);
- CreateDynamicObject(1811, 1576.66321, -2162.68970, 13.16000, 0.00000, 0.00000, 45.00000);
- CreateDynamicObject(1811, 1574.69446, -2165.01147, 13.16000, 0.00000, 0.00000, 160.00000);
- CreateDynamicObject(1078, 1566.93799, -2152.45361, 14.24330, 0.00000, 0.00000, -30.00000);
- CreateDynamicObject(1077, 1565.97778, -2152.16235, 15.04330, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(1077, 1565.97778, -2152.16235, 15.26330, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(1008, 1565.01624, -2161.28540, 13.49440, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1010, 1565.13574, -2169.96338, 14.30550, 0.00000, 0.00000, 75.00000);
- CreateDynamicObject(19166, 1564.24353, -2171.09692, 14.51260, 90.00000, -90.00000, 0.00000);
- CreateDynamicObject(19418, 1562.34497, -2168.64771, 13.38470, 90.00000, 0.00000, 60.00000);
- CreateDynamicObject(2161, 1563.15747, -2165.80054, 12.56590, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2270, 1561.95667, -2168.29102, 14.32850, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1775, 1563.76257, -2173.32104, 13.66000, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2894, 1555.61426, -2173.47266, 13.61470, 0.00000, 0.00000, -80.00000);
- CreateDynamicObject(1424, 1580.12781, -2155.60840, 13.06780, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1424, 1579.95374, -2154.65918, 13.06780, 0.00000, 0.00000, -50.00000);
- CreateDynamicObject(1459, 1579.70361, -2152.11157, 13.14770, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1459, 1583.55542, -2155.37524, 13.14770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1238, 1581.73181, -2155.46509, 12.86770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1238, 1581.73181, -2155.46509, 13.02770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1238, 1581.73181, -2155.46509, 13.24770, 0.00000, 0.00000, 20.00000);
- CreateDynamicObject(1635, 1563.64954, -2170.48438, 16.92610, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3036, 1557.53491, -2160.66431, 14.29070, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(10252, 1556.83728, -2161.89111, 14.16000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(974, 1557.51270, -2154.84912, 13.26930, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(974, 1560.86816, -2151.53491, 13.26930, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3504, 1563.65125, -2162.96436, 13.90000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1431, 1560.53516, -2152.03198, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1428, 1563.83215, -2153.30786, 13.98000, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1264, 1558.78479, -2152.08032, 13.36058, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1264, 1558.09253, -2152.18945, 13.36060, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1265, 1563.41553, -2152.12622, 12.95250, 0.00000, 0.00000, -60.00000);
- CreateDynamicObject(3015, 1559.58191, -2152.74072, 12.71220, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2969, 1560.31067, -2152.79053, 12.67390, 0.00000, 0.00000, 30.00000);
- CreateDynamicObject(2969, 1560.31433, -2152.76245, 12.93390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3014, 1561.98022, -2152.06763, 12.77340, 0.00000, 0.00000, 60.00000);
- CreateDynamicObject(3014, 1561.94373, -2151.99463, 13.25340, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1778, 1564.01563, -2161.78857, 12.55305, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1437, 1564.18604, -2156.69067, 12.80740, 20.00000, 93.50000, 79.50000);
- return 1;
- }
- stock LoadPD() //by Kova515
- {
- new tmpobjid;
- tmpobjid = CreateDynamicObject(19377, -230.140930, 131.258651, -54.886959, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14777, "int_casinoint3", "GB_midbar05", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, -240.639663, 131.257492, -54.886959, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14777, "int_casinoint3", "GB_midbar05", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, -230.141006, 140.891204, -51.223400, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "scratchedmetal", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, -240.629165, 140.889739, -54.886959, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14777, "int_casinoint3", "GB_midbar05", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -229.713623, 145.727188, -53.052600, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -230.952606, 146.041595, -52.323101, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -224.841812, 140.861358, -53.052600, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19435, -230.954605, 138.953796, -55.820800, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -226.224716, 138.238708, -53.052600, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -230.952560, 146.041610, -55.820789, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19435, -230.954376, 140.425155, -50.494300, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19435, -230.954605, 138.953796, -52.323101, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19435, -230.953765, 137.353256, -55.820800, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19435, -230.953796, 137.353302, -52.323101, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19435, -230.952606, 135.747680, -50.494300, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -231.035720, 130.132690, -55.820789, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -224.821090, 131.230346, -53.052600, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -226.141937, 129.495864, -53.052600, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(638, -231.534011, 138.069885, -54.297420, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 18007, "int_cutbar3", "barbers_wall3", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -239.348129, 145.726211, -53.052600, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, -236.374679, 121.645332, -54.886959, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14777, "int_casinoint3", "GB_midbar05", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -229.526443, 129.445648, -55.820800, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -240.642150, 129.444091, -55.820800, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -231.035705, 130.132705, -52.323101, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -231.040985, 124.540893, -53.052600, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -235.826019, 122.803649, -53.052600, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -237.606933, 124.645118, -53.052600, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -240.642196, 129.444107, -52.323101, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -229.526672, 129.430343, -52.323101, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19435, -235.082794, 129.442001, -50.540298, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -248.980438, 145.725311, -53.052600, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19443, -242.389419, 143.882690, -54.801399, 90.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 17606, "lae2roadscoast", "concretedust2_256128", 0x00000000);
- tmpobjid = CreateDynamicObject(19443, -242.838912, 143.880996, -53.936401, 0.000000, 90.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 17025, "cuntrock", "rock_country128", 0x00000000);
- tmpobjid = CreateDynamicObject(19443, -242.839431, 140.384613, -53.936401, 0.000000, 90.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 17025, "cuntrock", "rock_country128", 0x00000000);
- tmpobjid = CreateDynamicObject(19443, -242.839035, 136.884933, -53.936401, 0.000000, 90.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 17025, "cuntrock", "rock_country128", 0x00000000);
- tmpobjid = CreateDynamicObject(19443, -242.389297, 140.383666, -54.801399, 90.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 17606, "lae2roadscoast", "concretedust2_256128", 0x00000000);
- tmpobjid = CreateDynamicObject(19443, -242.389846, 136.883651, -54.801399, 90.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 17606, "lae2roadscoast", "concretedust2_256128", 0x00000000);
- tmpobjid = CreateDynamicObject(14397, -243.660827, 146.060958, -54.801300, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0x00000000);
- tmpobjid = CreateDynamicObject(1649, -242.766860, 137.397766, -51.488853, 0.000000, 0.000000, 90.399993, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10023, "bigwhitesfe", "sfe_arch8", 0xFF000000);
- tmpobjid = CreateDynamicObject(19443, -244.057952, 145.543167, -54.650398, 90.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 17606, "lae2roadscoast", "concretedust2_256128", 0x00000000);
- tmpobjid = CreateDynamicObject(19443, -244.078170, 135.230865, -54.650398, 90.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 17606, "lae2roadscoast", "concretedust2_256128", 0x00000000);
- tmpobjid = CreateDynamicObject(14397, -243.613174, 135.605377, -54.801300, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0x00000000);
- tmpobjid = CreateDynamicObject(19443, -245.390899, 135.935501, -53.936401, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 17025, "cuntrock", "rock_country128", 0x00000000);
- tmpobjid = CreateDynamicObject(19443, -245.387283, 144.830062, -53.936401, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 17025, "cuntrock", "rock_country128", 0x00000000);
- tmpobjid = CreateDynamicObject(1649, -242.828933, 146.277404, -51.488853, 0.000000, 0.000000, 90.399993, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10023, "bigwhitesfe", "sfe_arch8", 0xFF000000);
- tmpobjid = CreateDynamicObject(19454, -245.459213, 139.923461, -53.052600, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -245.459594, 149.547286, -53.052600, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(14397, -243.610733, 140.636703, -54.801300, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0x00000000);
- tmpobjid = CreateDynamicObject(19443, -236.137603, 146.408401, -52.304698, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0x00000000);
- tmpobjid = CreateDynamicObject(19443, -237.652938, 146.414047, -54.014389, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0x00000000);
- tmpobjid = CreateDynamicObject(19443, -234.592453, 146.409637, -54.014389, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0x00000000);
- tmpobjid = CreateDynamicObject(2010, -231.394149, 145.160140, -54.802600, 0.000000, 0.000000, 45.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 16060, "des_trees", "Newtreed256", 0x00000000);
- tmpobjid = CreateDynamicObject(2737, -230.806838, 143.132843, -53.181949, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14777, "int_casinoint3", "GB_midbar05", 0x00000000);
- tmpobjid = CreateDynamicObject(19482, -253.264236, 121.491668, -57.077590, 0.000000, -89.299980, 11.500011, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "Bow_church_grass_alt", 0x00000000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "{020201} by Kova", 120, "Calibri", 15, 1, 0x00000000, 0x00000000, 1);
- tmpobjid = CreateDynamicObject(2370, -234.417938, 122.064483, -52.459228, 0.000000, 90.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 16093, "a51_ext", "ws_controltowerwin1", 0x00000000);
- tmpobjid = CreateDynamicObject(2559, -234.300430, 123.297737, -53.322299, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 16093, "a51_ext", "ws_controltowerwin1", 0x00000000);
- tmpobjid = CreateDynamicObject(2010, -231.730361, 130.027374, -54.802951, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 16060, "des_trees", "Newtreed256", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, -230.141021, 140.891174, -54.886959, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14777, "int_casinoint3", "GB_midbar05", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, -240.629196, 140.859878, -51.223400, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "scratchedmetal", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, -240.639694, 131.257507, -51.223400, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "scratchedmetal", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, -230.140899, 131.258697, -51.223400, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "scratchedmetal", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, -236.374694, 121.645301, -51.223400, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "scratchedmetal", 0x00000000);
- tmpobjid = CreateDynamicObject(2010, -240.583892, 145.305114, -54.802600, 0.000000, 0.000000, 45.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 16060, "des_trees", "Newtreed256", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -245.461807, 135.855850, -53.052600, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19435, -245.429168, 130.256286, -50.540298, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_whiteplaster_top", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, -245.945602, 124.715103, -54.884998, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 12850, "cunte_block1", "ws_redbrickold", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, -250.319992, 131.449600, -54.884998, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 12850, "cunte_block1", "ws_redbrickold", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, -248.016952, 130.081863, -54.884998, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 12850, "cunte_block1", "ws_redbrickold", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, -250.776092, 129.781295, -51.109100, 0.000000, 56.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 11100, "bendytunnel_sfse", "ws_altz_wall10b", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -252.745300, 125.351562, -55.825698, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 12850, "cunte_block1", "ws_redbrickold", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -253.786331, 120.630943, -55.825698, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 12850, "cunte_block1", "ws_redbrickold", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -249.011184, 115.920936, -55.825698, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 12850, "cunte_block1", "ws_redbrickold", 0x00000000);
- tmpobjid = CreateDynamicObject(19454, -245.946029, 115.084716, -55.825698, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 12850, "cunte_block1", "ws_redbrickold", 0x00000000);
- tmpobjid = CreateDynamicObject(19452, -254.753463, 124.965423, -57.170558, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14486, "ab_vegasgymbits01", "bbar_wall2", 0x00000000);
- tmpobjid = CreateDynamicObject(19452, -254.270095, 126.270401, -57.172599, 0.000000, 90.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14486, "ab_vegasgymbits01", "bbar_wall2", 0x00000000);
- tmpobjid = CreateDynamicObject(19452, -257.823516, 120.239723, -58.833999, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14486, "ab_vegasgymbits01", "bbar_wall2", 0x00000000);
- tmpobjid = CreateDynamicObject(19452, -257.823516, 124.335937, -58.833999, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14486, "ab_vegasgymbits01", "bbar_wall2", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, -249.796951, 120.659347, -57.662040, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 17606, "lae2roadscoast", "concretedust2_256128", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, -249.796997, 120.659301, -54.029300, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 11100, "bendytunnel_sfse", "ws_altz_wall10b", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, -251.130447, 127.279502, -51.223400, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 11100, "bendytunnel_sfse", "ws_altz_wall10b", 0x00000000);
- tmpobjid = CreateDynamicObject(2704, -253.145828, 118.734832, -56.449798, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14486, "ab_vegasgymbits01", "bbar_wall2", 0x00000000);
- tmpobjid = CreateDynamicObject(19482, -240.167327, 129.536315, -52.021049, 0.000000, 0.000000, 89.700126, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "ws_oldpainted2rusty", 0x00000000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "{00050c} 5", 120, "Webdings", 70, 1, 0x00000000, 0x00000000, 1);
- tmpobjid = CreateDynamicObject(19482, -247.367141, 116.015396, -54.486110, 0.000000, -178.900146, 90.000015, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "Bow_church_grass_alt", 0x00000000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "{00050c} 5", 90, "Webdings", 50, 0, 0x00000000, 0x00000000, 1);
- tmpobjid = CreateDynamicObject(1649, -242.797790, 141.837646, -51.488853, 0.000000, 0.000000, 90.399993, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10023, "bigwhitesfe", "sfe_arch8", 0xFF000000);
- tmpobjid = CreateDynamicObject(1649, -244.872390, 135.299484, -51.488853, 0.000000, 0.000000, -1.100002, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10023, "bigwhitesfe", "sfe_arch8", 0xFF000000);
- tmpobjid = CreateDynamicObject(19172, -237.754776, 129.538986, -52.761054, 0.000000, 0.000000, 179.999801, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 12855, "cunte_cop", "sw_PD", 0x00000000);
- tmpobjid = CreateDynamicObject(19172, -251.206283, 125.268135, -55.416130, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 12853, "cunte_gas01", "starspangban1_256", 0x00000000);
- tmpobjid = CreateDynamicObject(19172, -251.325897, 116.015151, -55.572116, 0.000000, -3.699999, -179.500015, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10429, "hashblock1_sfs", "ws_suburbansign", 0x00000000);
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- tmpobjid = CreateDynamicObject(1496, -230.982604, 139.720092, -54.802101, 0.000000, 0.000000, 30.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1496, -231.002059, 136.580368, -54.802101, 0.000000, 0.000000, -30.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1502, -245.459548, 131.060989, -54.799598, 0.000000, 0.000000, -90.499740, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1569, -237.609466, 145.675567, -54.803890, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1569, -234.608413, 145.681884, -54.803901, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(14411, -247.646331, 127.436439, -57.989898, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1714, -244.321640, 143.388610, -54.799800, 0.000000, 0.000000, 85.258773, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1714, -244.400939, 140.878295, -54.799800, 0.000000, 0.000000, 90.906883, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1714, -244.343490, 138.120254, -54.799800, 0.000000, 0.000000, 90.906883, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2199, -245.330947, 139.576568, -54.798801, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2161, -245.353057, 143.143218, -54.798900, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2197, -244.434738, 138.735717, -54.798900, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2197, -244.453109, 142.300415, -54.798900, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2167, -245.370437, 138.006347, -54.799198, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2190, -242.953582, 138.247390, -53.847900, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2190, -243.012084, 140.989318, -53.847900, 0.000000, 0.000000, 266.250549, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2190, -242.945892, 143.048309, -53.847900, 0.000000, 0.000000, 266.250549, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19807, -243.159698, 137.211807, -53.778900, 0.000000, 0.000000, 276.428100, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2269, -244.278884, 145.124374, -52.908329, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19435, -246.856582, 136.207351, -53.052600, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1714, -225.188568, 133.691818, -54.798599, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2164, -226.247116, 145.624832, -54.799758, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2161, -227.572631, 138.159072, -54.799640, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2608, -225.145599, 136.132446, -54.235698, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2609, -225.090240, 134.925292, -54.099498, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2010, -225.438232, 138.834365, -54.801658, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2609, -230.349792, 129.783172, -54.099498, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1726, -227.435577, 130.134979, -54.800201, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2607, -226.590545, 133.798522, -54.408798, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2190, -226.971069, 133.401489, -54.003898, 0.000000, 0.000000, 93.168502, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19808, -226.356262, 133.308380, -53.995800, 0.000000, 0.000000, 92.202903, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19807, -226.462768, 134.376449, -53.949401, 0.000000, 0.000000, 111.524803, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19172, -224.919982, 141.999725, -52.607940, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2260, -226.279754, 130.060302, -52.787399, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2264, -229.124984, 138.829940, -52.811000, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2616, -230.895019, 132.808670, -52.990600, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1738, -226.106903, 138.013168, -54.299800, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2002, -231.610641, 142.673248, -54.802200, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2813, -227.351882, 137.868392, -53.442871, 0.000000, 0.000000, 18.146400, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2828, -226.792053, 134.164672, -54.003700, 0.000000, 0.000000, 246.332656, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19617, -225.862945, 138.161361, -52.422908, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19814, -226.256301, 138.329605, -54.242900, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19814, -224.932205, 141.092498, -54.219100, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1726, -226.905044, 138.929977, -54.800201, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2260, -227.120941, 138.806701, -52.787399, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2609, -229.437225, 145.484436, -54.099498, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2609, -228.983352, 145.464218, -54.099498, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19617, -228.351333, 145.677108, -52.422908, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1738, -230.639343, 144.532333, -54.299789, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2161, -227.562561, 145.641860, -54.799640, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2813, -227.419555, 145.391723, -53.442871, 0.000000, 0.000000, 18.146400, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2607, -226.430496, 141.953231, -54.408798, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2828, -226.633377, 142.383026, -54.003700, 0.000000, 0.000000, 246.332656, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19807, -226.303405, 142.656997, -53.949401, 0.000000, 0.000000, 111.524803, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19808, -226.189941, 141.645538, -53.995800, 0.000000, 0.000000, 92.202903, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2190, -226.797882, 141.795883, -54.003898, 0.000000, 0.000000, 93.168502, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1714, -225.188827, 142.010070, -54.798599, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2608, -225.159576, 143.604476, -54.235698, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2007, -225.328735, 140.093093, -54.799701, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2314, -229.245635, 131.621170, -54.800029, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2191, -225.464645, 131.279205, -54.800598, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1738, -226.356826, 129.747222, -54.299800, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19174, -224.905960, 133.789260, -52.538398, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2199, -228.967987, 138.035552, -54.800319, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2256, -228.697708, 129.620346, -52.526699, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2280, -225.430374, 136.719802, -52.859600, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(3017, -225.282424, 130.991149, -52.979099, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2222, -229.020324, 131.557250, -54.233501, 0.000000, 0.000000, 100.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2671, -228.393981, 130.208770, -54.799961, 0.000000, 0.000000, 329.326232, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2858, -228.039489, 131.646286, -54.291500, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1811, -231.601135, 126.004463, -54.184600, 0.000000, 0.000000, 5.493179, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1998, -237.013946, 125.328102, -54.858001, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1714, -236.179946, 125.015747, -54.799400, 0.000000, 0.000000, 170.906295, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1622, -237.577896, 123.282066, -51.681549, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2002, -231.674804, 132.035430, -54.802200, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19997, -233.281951, 125.985107, -54.821098, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19617, -231.021392, 138.133453, -52.323101, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(949, -238.204421, 145.405700, -54.186481, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(949, -234.124649, 145.305923, -54.186481, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1502, -235.844070, 129.440490, -54.799560, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19377, -245.765579, 124.715927, -54.884998, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19454, -245.440948, 124.719779, -53.052600, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19377, -245.589553, 124.716728, -54.884998, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1566, -248.411392, 116.014678, -56.243289, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2371, -250.654022, 120.554023, -57.575260, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2381, -250.277175, 121.262222, -56.875000, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2394, -250.951263, 121.232856, -56.858501, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19452, -252.766235, 129.399673, -58.833999, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19452, -249.546600, 129.341369, -58.833999, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2400, -253.630004, 116.476722, -57.800338, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19141, -253.545806, 117.630546, -55.763290, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19142, -252.983581, 116.413673, -57.071239, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19142, -253.362762, 116.394447, -57.071239, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19142, -252.981704, 119.366790, -57.071239, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19142, -253.342208, 119.368797, -57.071239, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19142, -252.984313, 118.762710, -57.071239, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19142, -253.323547, 118.746093, -57.071239, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19142, -252.989440, 118.155632, -57.071239, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19142, -253.349945, 118.157653, -57.071239, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19142, -252.992797, 117.588562, -57.071239, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19142, -253.333206, 117.591842, -57.071239, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19142, -252.998840, 117.010208, -57.071239, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19142, -253.298126, 116.996353, -57.071239, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19141, -253.208221, 117.624351, -55.763290, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19141, -253.538436, 116.383491, -55.763290, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19141, -253.220657, 116.385848, -55.763290, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19141, -253.547042, 116.979637, -55.763290, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19141, -253.209335, 116.987052, -55.763290, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19141, -253.545181, 118.190437, -55.763290, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19141, -253.208007, 118.184089, -55.763290, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19141, -253.544281, 118.810180, -55.763290, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19141, -253.203033, 118.809631, -55.763290, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19141, -253.542694, 119.350410, -55.763290, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19141, -253.203414, 119.350013, -55.763290, 0.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(18637, -251.366775, 116.037063, -56.958000, 90.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(18637, -251.370880, 116.153717, -56.958000, 90.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(18637, -251.374847, 116.270362, -56.958000, 90.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(18637, -252.409271, 116.291877, -56.958000, 90.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(18637, -252.415634, 116.175437, -56.958000, 90.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(18637, -252.421997, 116.058998, -56.958000, 90.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(18637, -251.896438, 116.288177, -56.958000, 90.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(18637, -251.897659, 116.171707, -56.958000, 90.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(18637, -251.898834, 116.055252, -56.958000, 90.000000, 270.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2371, -249.918457, 116.751747, -57.575260, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2381, -249.534286, 117.421951, -56.875000, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2394, -250.200942, 117.354187, -56.858501, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2846, -250.510925, 120.508888, -57.575851, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2846, -252.199539, 120.980712, -57.575801, 0.000000, 0.000000, 121.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2845, -251.323043, 123.508262, -57.575771, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(18636, -253.397796, 120.911399, -57.041400, 0.000000, 0.000000, 20.478519, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2704, -253.367492, 118.743270, -56.437801, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2689, -253.570495, 117.574600, -56.412498, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2358, -251.175582, 116.950752, -57.458698, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2358, -251.917572, 116.681846, -57.458698, 0.000000, 0.000000, 169.117507, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19832, -251.856124, 117.208053, -57.575061, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(11729, -246.312850, 119.025413, -57.576599, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(11729, -246.315734, 119.688148, -57.576599, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(11730, -246.315765, 120.357322, -57.575000, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(630, -244.673141, 133.579803, -53.789798, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19810, -245.364639, 131.710433, -52.529190, 0.000000, 0.000000, 270.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1536, -241.073348, 129.494705, -54.841148, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2195, -238.899414, 129.824508, -54.197490, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1893, -235.109298, 141.634460, -50.781024, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1893, -239.479232, 141.634460, -50.781024, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1893, -239.479232, 135.764419, -50.781024, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1893, -234.919342, 135.764419, -50.781024, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1893, -228.329421, 134.134445, -50.781024, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1893, -228.329421, 141.284423, -50.781024, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1893, -235.119400, 126.934379, -50.781024, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1893, -250.146621, 121.940414, -53.746273, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1893, -250.146621, 118.340461, -53.746273, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2611, -237.468444, 127.903121, -53.181015, 0.000000, 0.000000, 90.000045, -1, -1, -1, 300.00, 300.00);
- }
- stock LoadBank1() //from SC:RP
- {
- CreateObject(14602, 1443.33521, -985.86328, 1000.47083, 0.00000, 0.00000, 0.00000);
- CreateObject(19450, 1420.34436, -987.59058, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateObject(19450, 1420.34436, -997.22662, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateObject(19450, 1420.34436, -977.94659, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateObject(19450, 1420.34436, -968.31262, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateObject(19377, 1425.39563, -997.23810, 998.69531, 0.00000, -90.00000, 0.00000);
- CreateObject(19379, 1425.52917, -996.80780, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateObject(19377, 1425.39563, -987.59912, 998.69928, 0.00000, -90.00000, 0.00000);
- CreateObject(19377, 1425.39563, -977.97009, 998.69531, 0.00000, -90.00000, 0.00000);
- CreateObject(19377, 1425.39563, -968.33612, 998.69531, 0.00000, -90.00000, 0.00000);
- CreateObject(19450, 1425.15210, -1001.58301, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateObject(19450, 1444.42175, -992.99921, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateObject(19450, 1425.24097, -1001.64844, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateObject(19450, 1435.60022, -997.79559, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateObject(19450, 1430.77246, -1001.59528, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateObject(1569, 1432.61536, -1001.55011, 995.10773, 0.00000, 0.00000, 0.00000);
- CreateObject(19388, 1438.83838, -993.01642, 996.85449, 0.00000, 0.00000, 90.90000);
- CreateObject(19431, 1436.57031, -993.03369, 996.85193, 0.00000, 0.00000, 89.95040);
- CreateObject(19431, 1436.32031, -993.03369, 996.85388, 0.00000, 0.00000, 89.95040);
- CreateObject(19450, 1425.15210, -970.08197, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateObject(19450, 1427.71814, -970.08197, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateObject(19450, 1439.00610, -970.08197, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateObject(19450, 1448.52612, -970.08197, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateObject(19388, 1433.38245, -970.08441, 996.86249, 0.00000, 0.00000, 89.78290);
- CreateObject(19450, 1444.40637, -976.56262, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateObject(19450, 1444.40637, -966.93060, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateObject(19450, 1444.40637, -994.98560, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateObject(19377, 1435.89355, -997.23810, 998.69531, 0.00000, -90.00000, 0.00000);
- CreateObject(19377, 1435.89355, -987.59912, 998.70532, 0.00000, -90.00000, 0.00000);
- CreateObject(19377, 1435.89355, -977.97009, 998.70532, 0.00000, -90.00000, 0.00000);
- CreateObject(19377, 1435.89355, -968.33612, 998.69531, 0.00000, -90.00000, 0.00000);
- CreateObject(19377, 1446.39160, -968.33612, 998.69531, 0.00000, -90.00000, 0.00000);
- CreateObject(19377, 1446.39160, -977.97009, 998.69733, 0.00000, -90.00000, 0.00000);
- CreateObject(19377, 1446.39160, -987.59912, 998.69733, 0.00000, -90.00000, 0.00000);
- CreateObject(19450, 1444.40637, -986.19659, 1000.16260, -180.00000, 0.00000, 0.00000);
- CreateObject(1569, 1457.74744, -985.02881, 995.10431, 0.00000, 0.00000, -90.06000);
- CreateObject(19377, 1446.35864, -997.23810, 998.69531, 0.00000, -90.00000, 0.00000);
- CreateObject(16101, 1424.50464, -988.71008, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateObject(16101, 1424.50464, -990.89410, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateObject(16101, 1424.50464, -993.07813, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateObject(16101, 1424.50464, -995.26208, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateObject(16101, 1424.50464, -997.44611, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateObject(16101, 1424.50464, -999.63013, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateObject(16101, 1424.50464, -983.33411, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateObject(16101, 1424.50464, -981.15009, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateObject(16101, 1424.50464, -978.96613, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateObject(16101, 1424.50464, -976.78210, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateObject(16101, 1424.50464, -974.59808, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateObject(16101, 1424.50464, -972.41412, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateObject(19325, 1424.51428, -991.97479, 999.00391, 0.00000, 0.00000, 0.00000);
- CreateObject(19325, 1424.51428, -998.45477, 999.00391, 0.00000, 0.00000, 0.00000);
- CreateObject(19325, 1424.51428, -980.05078, 999.00391, 0.00000, 0.00000, 0.00000);
- CreateObject(19325, 1424.51428, -973.42279, 999.00391, 0.00000, 0.00000, 0.00000);
- CreateObject(2190, 1426.35876, -983.58972, 995.82874, 0.00000, 0.00000, -39.84000);
- CreateObject(2190, 1427.57007, -986.54395, 995.82874, 0.00000, 0.00000, -102.06001);
- CreateObject(2190, 1425.72351, -988.86444, 995.82874, 0.00000, 0.00000, -154.73996);
- CreateObject(1715, 1425.98022, -986.25348, 995.10559, 0.00000, 0.00000, 81.60000);
- CreateObject(1715, 1425.09607, -984.83795, 995.10559, 0.00000, 0.00000, 148.67998);
- CreateObject(1715, 1424.76306, -987.25067, 995.10559, 0.00000, 0.00000, 29.09999);
- CreateObject(2244, 1427.16125, -984.70050, 996.06403, 0.00000, 0.00000, 27.72000);
- CreateObject(2244, 1426.93335, -987.59070, 996.06403, 0.00000, 0.00000, -24.42000);
- CreateObject(2165, 1420.89612, -986.00458, 995.10638, 0.00000, 0.00000, 89.57999);
- CreateObject(1715, 1422.16272, -985.46423, 995.10559, 0.00000, 0.00000, -105.06001);
- CreateObject(2164, 1420.47449, -980.71246, 995.10602, 0.00000, 0.00000, 87.65998);
- CreateObject(2773, 1426.07617, -993.09894, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateObject(2773, 1426.07690, -990.98590, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateObject(2773, 1426.07617, -995.23187, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateObject(2773, 1426.07617, -997.52289, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateObject(2773, 1426.07617, -999.65588, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateObject(2773, 1426.07690, -981.18988, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateObject(2773, 1426.07690, -979.05688, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateObject(2773, 1426.07690, -976.84491, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateObject(2773, 1426.07690, -974.63287, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateObject(2773, 1426.07690, -972.42090, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateObject(1514, 1424.18726, -992.59534, 996.20605, 0.00000, 0.00000, 89.58002);
- CreateObject(1514, 1424.18726, -994.72827, 996.20612, 0.00000, 0.00000, 89.58000);
- CreateObject(1514, 1424.18726, -996.94031, 996.20612, 0.00000, 0.00000, 89.58000);
- CreateObject(1514, 1424.18726, -999.23132, 996.20612, 0.00000, 0.00000, 89.58000);
- CreateObject(1514, 1424.18726, -980.66632, 996.20612, 0.00000, 0.00000, 89.58000);
- CreateObject(1514, 1424.18726, -978.53333, 996.20612, 0.00000, 0.00000, 89.58000);
- CreateObject(1514, 1424.18726, -976.32129, 996.20612, 0.00000, 0.00000, 89.58000);
- CreateObject(1514, 1424.18726, -974.18829, 996.20612, 0.00000, 0.00000, 89.58000);
- CreateObject(1514, 1424.18726, -971.97632, 996.20612, 0.00000, 0.00000, 89.58000);
- CreateObject(1514, 1424.18726, -1001.12732, 996.20612, 0.00000, 0.00000, 89.58000);
- CreateObject(2599, 1426.01086, -1000.61847, 995.50098, 0.00000, 0.00000, -90.78001);
- CreateObject(2599, 1425.84473, -973.51959, 995.50061, 0.00000, 0.00000, -89.88000);
- CreateObject(2007, 1420.94165, -999.54968, 995.10248, 0.00000, 0.00000, 89.76000);
- CreateObject(2007, 1420.94165, -998.60168, 995.10248, 0.00000, 0.00000, 89.76000);
- CreateObject(2007, 1420.94165, -997.65369, 995.10248, 0.00000, 0.00000, 89.76000);
- CreateObject(2007, 1420.94165, -996.70569, 995.10248, 0.00000, 0.00000, 89.76000);
- CreateObject(2007, 1420.94165, -995.75769, 995.10248, 0.00000, 0.00000, 89.76000);
- CreateObject(1806, 1422.44788, -971.87213, 995.10742, 0.00000, 0.00000, -78.18002);
- CreateObject(1806, 1422.44788, -973.37311, 995.10742, 0.00000, 0.00000, -86.22002);
- CreateObject(1806, 1422.44788, -975.50610, 995.10742, 0.00000, 0.00000, -94.20003);
- CreateObject(1806, 1422.44788, -977.63910, 995.10742, 0.00000, 0.00000, -93.60002);
- CreateObject(1806, 1422.44788, -979.93011, 995.10742, 0.00000, 0.00000, -83.64001);
- CreateObject(1806, 1422.44788, -991.78009, 995.10742, 0.00000, 0.00000, -87.24001);
- CreateObject(1806, 1422.44788, -993.75513, 995.10742, 0.00000, 0.00000, -101.16003);
- CreateObject(1806, 1422.44788, -996.04608, 995.10742, 0.00000, 0.00000, -91.26003);
- CreateObject(1806, 1422.44788, -998.33710, 995.10742, 0.00000, 0.00000, -89.94003);
- CreateObject(1806, 1422.44788, -1000.23309, 995.10742, 0.00000, 0.00000, -78.18000);
- CreateObject(19379, 1425.52917, -987.17383, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateObject(19379, 1425.52917, -977.54077, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateObject(19379, 1425.52917, -967.90881, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateObject(19379, 1436.03015, -996.80780, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateObject(19379, 1436.03015, -987.17383, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateObject(19379, 1436.03015, -977.53979, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateObject(19379, 1436.03015, -967.90778, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateObject(19379, 1446.53076, -987.19177, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateObject(19379, 1457.03186, -987.19177, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateObject(19379, 1457.03186, -977.55780, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateObject(19379, 1446.53186, -977.55780, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateObject(19379, 1446.53186, -967.92480, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateObject(19379, 1446.53223, -996.81183, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateObject(19450, 1449.15112, -981.53003, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateObject(19450, 1458.76709, -981.53003, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateObject(19450, 1449.15210, -990.17499, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateObject(19450, 1458.78308, -990.17499, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateObject(19377, 1449.57959, -985.77112, 998.29529, 0.00000, -90.00000, 0.00000);
- CreateObject(19377, 1459.64563, -985.73309, 998.27332, 0.00000, -90.00000, 0.00000);
- CreateObject(19450, 1457.40637, -985.67657, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateObject(1569, 1457.37061, -982.48169, 995.10571, 0.00000, 0.00000, 269.37631);
- CreateObject(1569, 1457.37549, -985.46259, 995.10571, 0.00000, 0.00000, 89.99800);
- CreateObject(1569, 1457.36865, -986.57483, 995.10571, 0.00000, 0.00000, 269.37631);
- CreateObject(1569, 1457.37585, -989.57758, 995.10571, 0.00000, 0.00000, 89.99800);
- CreateObject(19431, 1440.70752, -982.46478, 996.86212, 0.00000, 0.00000, -91.56000);
- CreateObject(19431, 1440.70752, -981.04077, 996.86212, 0.00000, 0.00000, -91.14001);
- CreateObject(19431, 1439.91956, -981.72931, 996.86212, 0.00000, 0.00000, -183.05991);
- CreateObject(19431, 1441.44763, -981.76929, 996.86212, 0.00000, 0.00000, -181.92000);
- CreateObject(19431, 1441.44763, -989.43732, 996.86212, 0.00000, 0.00000, -181.92000);
- CreateObject(19431, 1440.70752, -988.71283, 996.86212, 0.00000, 0.00000, -91.56000);
- CreateObject(19431, 1440.70752, -990.13281, 996.86212, 0.00000, 0.00000, -91.56000);
- CreateObject(19431, 1439.88562, -989.40332, 996.86212, 0.00000, 0.00000, -181.92000);
- CreateObject(19431, 1431.84351, -988.67279, 996.86212, 0.00000, 0.00000, -91.56000);
- CreateObject(19431, 1431.10046, -989.40332, 996.86212, 0.00000, 0.00000, -181.92000);
- CreateObject(19431, 1431.84351, -990.13580, 996.86212, 0.00000, 0.00000, -91.56000);
- CreateObject(19431, 1432.58154, -989.40332, 996.86212, 0.00000, 0.00000, -181.92000);
- CreateObject(19431, 1432.58154, -982.06531, 996.86212, 0.00000, 0.00000, -181.92000);
- CreateObject(19431, 1431.02148, -982.01929, 996.86212, 0.00000, 0.00000, -181.92000);
- CreateObject(19431, 1431.84351, -982.75677, 996.86212, 0.00000, 0.00000, -91.56000);
- CreateObject(19431, 1431.84351, -981.32483, 996.86212, 0.00000, 0.00000, -91.56000);
- CreateObject(1569, 1432.61133, -970.15210, 995.10773, 0.00000, 0.00000, 0.00000);
- CreateObject(14576, 1435.29407, -987.92871, 990.71588, 0.00000, 0.00000, -0.36000);
- CreateObject(19379, 1436.03015, -1001.03583, 995.02307, 0.00000, -90.00000, 0.00000);
- CreateObject(19388, 1438.86841, -1002.63641, 996.85449, 0.00000, 0.00000, 90.90000);
- CreateObject(19450, 1440.54065, -997.84619, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateObject(19450, 1437.23877, -997.84979, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateObject(19377, 1440.83362, -1004.66913, 998.26831, 0.00000, -90.00000, 0.00000);
- CreateObject(2634, 1441.06909, -1004.53168, 992.32001, 0.00000, 0.00000, 270.07040);
- CreateObject(2198, 1433.27332, -996.86798, 989.92047, 0.00000, 0.00000, 178.63960);
- CreateObject(2198, 1433.27332, -994.02600, 989.92047, 0.00000, 0.00000, 178.63960);
- CreateObject(2198, 1433.27332, -990.89001, 989.92047, 0.00000, 0.00000, 178.63960);
- CreateObject(2198, 1433.27332, -1000.00403, 989.92047, 0.00000, 0.00000, 178.63960);
- CreateObject(1806, 1432.72278, -998.97363, 989.91901, 0.00000, 0.00000, -167.28003);
- CreateObject(1806, 1432.60571, -995.73785, 989.91901, 0.00000, 0.00000, 175.12816);
- CreateObject(1806, 1432.60571, -992.79791, 989.91901, 0.00000, 0.00000, 194.12750);
- CreateObject(1806, 1432.60571, -989.75989, 989.91901, 0.00000, 0.00000, 186.49478);
- CreateObject(16782, 1443.08545, -993.57495, 992.76324, 0.00000, 0.00000, 179.01819);
- CreateObject(3397, 1442.95642, -993.62469, 989.94727, 0.00000, 0.00000, 357.18283);
- CreateObject(3386, 1442.72241, -996.43250, 989.89600, 0.00000, 0.00000, 176.06250);
- CreateObject(3386, 1442.72241, -997.60852, 989.91400, 0.00000, 0.00000, 176.06250);
- CreateObject(3386, 1442.87439, -990.38049, 989.91400, 0.00000, 0.00000, 356.84091);
- CreateObject(3386, 1442.87439, -989.24652, 989.91400, 0.00000, 0.00000, 356.84091);
- CreateObject(18643, 1427.60217, -995.31152, 984.01813, 0.00000, 0.00000, 0.00000);
- CreateObject(18643, 1418.20618, -995.31152, 984.01813, 0.00000, 0.00000, 0.00000);
- CreateObject(18643, 1418.20618, -990.12750, 984.01813, 0.00000, 0.00000, 0.00000);
- CreateObject(18643, 1427.60217, -990.12750, 984.01813, 0.00000, 0.00000, 0.00000);
- CreateObject(18643, 1427.60217, -984.45752, 984.45007, 0.00000, 0.00000, 0.00000);
- CreateObject(18643, 1418.04419, -984.45752, 984.45007, 0.00000, 0.00000, 0.00000);
- CreateObject(14598, 1431.54688, -985.73328, 1010.65839, 0.00000, 0.00000, 0.00000);
- CreateObject(1723, 1439.22668, -972.44214, 995.05151, 0.00000, 0.00000, 0.00000);
- CreateObject(1723, 1442.60986, -973.58191, 995.05151, 0.00000, 0.00000, 269.47330);
- CreateObject(1723, 1441.65991, -976.88171, 995.05151, 0.00000, 0.00000, 179.19260);
- CreateObject(1723, 1438.09546, -975.58490, 995.05151, 0.00000, 0.00000, 86.82700);
- CreateObject(1817, 1439.95251, -975.20856, 995.11218, 0.00000, 0.00000, -0.36000);
- CreateObject(2011, 1437.90637, -970.72211, 995.11951, 0.00000, 0.00000, 0.00000);
- CreateObject(2002, 1439.03247, -970.70801, 995.11951, 0.00000, 0.00000, 0.00000);
- CreateObject(1776, 1440.21924, -970.60382, 996.18219, 0.00000, 0.00000, 0.00000);
- CreateObject(2816, 1439.91479, -974.76520, 995.62378, 0.00000, 0.00000, -66.18000);
- CreateObject(2245, 1440.35779, -974.71698, 995.85413, 0.00000, 0.00000, 0.00000);
- CreateObject(1549, 1441.38904, -970.58020, 995.07281, 0.00000, 0.00000, 0.00000);
- CreateObject(2961, 1436.19360, -992.91449, 996.43372, 0.00000, 0.00000, 0.00000);
- CreateObject(2690, 1436.22546, -992.86798, 996.92572, 0.00000, 0.00000, 169.80000);
- CreateObject(1999, 1435.73157, -1005.59863, 995.12238, 0.00000, 0.00000, 177.89998);
- CreateObject(1806, 1435.42896, -1003.91840, 995.12079, 0.00000, 0.00000, 146.81998);
- CreateObject(2606, 1433.61072, -1004.31232, 996.30280, 0.00000, 0.00000, 89.94000);
- CreateObject(2606, 1433.61072, -1004.31232, 996.73480, 0.00000, 0.00000, 89.94000);
- CreateObject(2606, 1433.61072, -1004.31232, 997.16681, 0.00000, 0.00000, 89.94000);
- CreateObject(2894, 1435.51477, -1005.65875, 995.93512, 0.00000, 0.00000, -156.29988);
- CreateObject(348, 1435.81042, -1005.49841, 995.93518, 91.00000, 0.00000, 38.22002);
- CreateObject(2839, 1434.89624, -1005.61493, 995.12347, 0.00000, 0.00000, 28.74000);
- CreateObject(1235, 1436.75586, -1005.67822, 995.63458, 0.00000, 0.00000, 4.14000);
- CreateObject(2881, 1436.83350, -1005.81738, 995.13568, -2.00000, -69.00000, 28.00000);
- CreateObject(2881, 1436.72742, -1005.73517, 995.13568, -2.00000, -69.00000, -15.20001);
- CreateObject(2007, 1420.94165, -995.75769, 996.49847, 0.00000, 0.00000, 89.76000);
- CreateObject(2007, 1420.94165, -996.70569, 996.50250, 0.00000, 0.00000, 89.76000);
- CreateObject(2007, 1420.94165, -997.65369, 996.50250, 0.00000, 0.00000, 89.76000);
- CreateObject(2007, 1420.94165, -998.60168, 996.50250, 0.00000, 0.00000, 89.76000);
- CreateObject(2007, 1420.94165, -999.54968, 996.50250, 0.00000, 0.00000, 89.76000);
- CreateObject(2942, 1446.68677, -989.58667, 995.71686, 0.00000, 0.00000, 179.99986);
- CreateObject(2942, 1448.42285, -989.58667, 995.71692, 0.00000, 0.00000, 179.99989);
- CreateObject(2942, 1450.13086, -989.58667, 995.71692, 0.00000, 0.00000, 179.99989);
- CreateObject(2690, 1434.28040, -1002.78546, 996.38782, 0.00000, 0.00000, -4.26000);
- CreateObject(1892, 1456.52942, -986.43781, 995.14093, 0.00000, 0.00000, 86.76000);
- CreateObject(1892, 1456.52942, -990.61377, 995.14093, 0.00000, 0.00000, 86.76000);
- CreateObject(1892, 1456.52942, -982.26178, 995.14093, 0.00000, 0.00000, 86.76000);
- CreateObject(14633, 1426.06604, -979.43066, 996.56683, 0.00000, 0.00000, 0.00000);
- CreateObject(2811, 1456.85181, -986.05109, 995.10602, 0.00000, 0.00000, 78.96002);
- CreateObject(3386, 1442.87439, -988.14252, 989.91400, 0.00000, 0.00000, 356.84091);
- CreateObject(3386, 1442.87439, -987.03851, 989.91400, 0.00000, 0.00000, 356.84091);
- CreateObject(3386, 1442.72241, -998.80847, 989.91400, 0.00000, 0.00000, 176.06250);
- CreateObject(3386, 1442.72241, -1000.00848, 989.91400, 0.00000, 0.00000, 176.06250);
- CreateObject(3391, 1440.51379, -987.03638, 989.89600, 0.00000, 0.00000, 89.76003);
- CreateObject(3392, 1436.92480, -987.02655, 989.89398, 0.00000, 0.00000, 89.81998);
- CreateObject(1806, 1441.29553, -993.01025, 989.92133, 0.00000, 0.00000, -119.94001);
- CreateObject(2634, 1435.35193, -980.29688, 984.21887, 0.00000, 0.00000, 179.04001);
- CreateObject(1502, 1438.05847, -992.99011, 995.10675, 0.00000, 0.00000, 0.00000);
- CreateObject(1499, 1438.53723, -1002.59253, 990.92316, 0.00000, 0.00000, 0.00000);
- CreateObject(2690, 1440.72217, -1010.17639, 994.91425, 0.00000, 0.00000, -90.41999);
- CreateObject(2690, 1433.67712, -1004.35260, 992.91760, 0.00000, 0.00000, 83.58002);
- CreateObject(2690, 1440.74304, -1010.16492, 991.04169, 0.00000, 0.00000, -88.08002);
- CreateObject(2690, 1433.68909, -1004.27728, 988.57770, 0.00000, 0.00000, 83.94003);
- CreateObject(2690, 1433.56665, -1009.76007, 986.42206, 0.00000, 0.00000, 83.70004);
- CreateObject(18643, 1441.46216, -995.31152, 984.01813, 0.00000, 0.00000, 0.00000);
- CreateObject(18643, 1441.64221, -990.12750, 984.01813, 0.00000, 0.00000, 0.00000);
- CreateObject(18643, 1441.54224, -984.45752, 984.45007, 0.00000, 0.00000, 0.00000);
- }
- stock LoadBank2() //by UMaps
- {
- CreateDynamicObject(19454, -554.65118, 1781.53296, 1392.81055, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1538, -557.89264, 1781.62354, 1391.36145, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1538, -554.90900, 1781.62854, 1391.36145, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1538, -556.40045, 1781.62573, 1391.36145, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1538, -553.40887, 1781.63074, 1391.36145, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14416, -556.84552, 1785.50378, 1389.08215, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14416, -552.85718, 1785.50073, 1389.08105, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, -553.64728, 1781.78906, 1391.38721, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, -556.13892, 1781.66296, 1391.38098, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, -554.32495, 1788.15186, 1391.52905, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19446, -554.32135, 1788.47168, 1391.75305, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19446, -554.31775, 1788.79150, 1391.97705, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19446, -553.72089, 1781.54749, 1388.87854, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19446, -556.12250, 1801.79419, 1392.20996, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, -559.59967, 1797.05823, 1392.20801, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, -550.21912, 1797.21521, 1392.20996, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(18762, -554.38385, 1797.94592, 1394.43140, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18762, -555.37006, 1797.94653, 1394.43140, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -554.85107, 1796.45837, 1394.67322, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -554.85107, 1796.45837, 1397.10522, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18762, -554.38239, 1796.95447, 1394.43140, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -555.88678, 1797.42908, 1397.10522, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -554.86432, 1798.44165, 1397.10522, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -553.87250, 1797.49951, 1397.10522, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18762, -555.37384, 1796.95508, 1394.43140, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -555.88678, 1797.42908, 1394.70520, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -554.86432, 1798.44165, 1394.67322, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -553.87250, 1797.49951, 1394.67322, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, -553.57190, 1792.15771, 1392.20801, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, -556.20551, 1792.16602, 1392.20996, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, -548.43030, 1797.19470, 1390.56006, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, -550.09369, 1801.99475, 1387.48816, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19446, -550.08557, 1792.33606, 1387.48816, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19446, -557.99139, 1782.54346, 1390.52808, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, -551.81482, 1782.54431, 1390.52808, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, -550.11230, 1782.70398, 1391.99524, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, -559.68329, 1783.01575, 1391.99524, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19454, -547.08148, 1787.36670, 1393.99451, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, -562.75732, 1787.35742, 1393.99451, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, -559.78015, 1782.18457, 1393.40076, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, -549.62158, 1782.30859, 1393.30066, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19439, -550.03668, 1786.54907, 1393.35815, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19439, -559.42651, 1786.47827, 1393.35815, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19439, -550.03662, 1781.22839, 1393.35815, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19439, -559.41858, 1781.19360, 1393.35815, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, -559.42529, 1782.49365, 1395.62024, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, -550.03906, 1782.54993, 1395.62024, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, -550.03857, 1782.54651, 1390.69226, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, -548.37512, 1782.60120, 1392.35718, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, -559.41479, 1782.43433, 1390.69226, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, -559.68518, 1801.92358, 1387.48816, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19446, -559.69104, 1792.16748, 1387.48816, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19446, -561.35327, 1797.03259, 1390.56006, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, -557.93243, 1803.59009, 1387.48816, 90.00000, 90.00000, 90.00000);
- CreateDynamicObject(19446, -551.85004, 1803.66968, 1387.48816, 90.00000, 90.00000, 90.00000);
- CreateDynamicObject(19446, -551.75311, 1790.50488, 1387.48816, 90.00000, 90.00000, 90.00000);
- CreateDynamicObject(19446, -551.74799, 1789.18359, 1387.48401, 90.00000, 90.00000, 90.00000);
- CreateDynamicObject(19446, -558.03204, 1790.48938, 1387.48816, 90.00000, 90.00000, 90.00000);
- CreateDynamicObject(19446, -558.02350, 1789.14771, 1387.48499, 90.00000, 90.00000, 90.00000);
- CreateDynamicObject(19446, -557.92401, 1804.87097, 1387.48401, 90.00000, 90.00000, 90.00000);
- CreateDynamicObject(19446, -551.85516, 1804.84265, 1387.48401, 90.00000, 90.00000, 90.00000);
- CreateDynamicObject(19454, -547.22302, 1805.94141, 1394.02649, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19446, -553.53448, 1801.76648, 1392.20801, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19454, -567.00446, 1796.41724, 1393.99451, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, -565.88788, 1805.87292, 1393.99451, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, -565.90173, 1787.59753, 1393.99451, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, -570.03937, 1794.74341, 1393.99451, 0.00000, 0.00000, 60.00000);
- CreateDynamicObject(19087, -565.81726, 1792.41406, 1395.79321, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -565.81732, 1792.41406, 1394.12915, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, -570.01099, 1798.73328, 1393.99451, 0.00000, 0.00000, -60.00000);
- CreateDynamicObject(19087, -565.79907, 1801.05444, 1395.79321, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -565.80334, 1801.05444, 1393.42517, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, -543.91089, 1787.80786, 1393.99451, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, -543.89935, 1806.10474, 1393.99451, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, -539.77545, 1794.96826, 1393.99451, 0.00000, 0.00000, -60.00000);
- CreateDynamicObject(19454, -539.77527, 1798.94958, 1393.99451, 0.00000, 0.00000, 60.00000);
- CreateDynamicObject(19087, -543.98010, 1801.27979, 1394.67322, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -543.98010, 1801.27979, 1396.33716, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -543.99048, 1792.62378, 1396.33716, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, -542.78033, 1796.77979, 1393.99451, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, -562.68665, 1805.97180, 1394.02649, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, -554.88025, 1806.55432, 1393.99451, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, -556.15613, 1808.34290, 1394.02649, 0.00000, 0.00000, 60.00000);
- CreateDynamicObject(19454, -553.73944, 1808.36646, 1394.02649, 0.00000, 0.00000, -60.00000);
- CreateDynamicObject(19087, -557.85669, 1805.88403, 1394.67322, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -552.03088, 1805.85913, 1395.79321, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -552.03094, 1805.85913, 1394.67322, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -557.85669, 1805.88403, 1396.20923, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19439, -560.14087, 1785.76306, 1393.35815, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19439, -560.14417, 1781.90759, 1393.35815, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19446, -561.08942, 1781.83594, 1392.35535, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, -561.08942, 1781.83594, 1393.95935, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, -548.37512, 1782.60120, 1393.95520, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19439, -549.32214, 1785.83118, 1393.35815, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19439, -549.32159, 1781.94421, 1393.35815, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19087, -543.99438, 1805.84521, 1395.80518, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -543.99438, 1805.84521, 1393.73315, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -565.79736, 1805.88367, 1395.80518, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -565.79742, 1805.88367, 1394.34314, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -565.81573, 1787.44141, 1395.80518, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -565.81567, 1787.44141, 1393.91724, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -543.99957, 1787.46399, 1395.80518, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -543.99939, 1787.46448, 1393.62219, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(968, -552.03613, 1787.33704, 1388.75134, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(968, -557.84833, 1787.34412, 1388.75134, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(968, -561.94733, 1787.34314, 1395.61536, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(968, -547.82422, 1787.34338, 1395.55945, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(968, -554.96802, 1787.34412, 1388.75134, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18762, -561.73401, 1787.14319, 1394.43140, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18762, -548.06830, 1787.14319, 1394.43140, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(968, -561.94733, 1787.34314, 1395.13538, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(968, -547.82422, 1787.34338, 1395.07935, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(2811, -548.13538, 1787.92627, 1392.29395, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, -561.67566, 1787.92627, 1392.29395, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -561.24115, 1787.63245, 1397.10522, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -562.22253, 1787.62854, 1394.68518, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -561.24109, 1787.63245, 1394.68518, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -562.22247, 1787.62854, 1397.06519, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -548.55627, 1787.64185, 1394.68518, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -547.57623, 1787.63562, 1394.68518, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -547.57617, 1787.63562, 1397.04517, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -548.55627, 1787.64185, 1397.04517, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, -554.91101, 1782.54346, 1396.75830, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, -554.90106, 1782.54346, 1396.76868, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19089, -557.94788, 1787.43591, 1392.95630, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -557.94788, 1787.43591, 1393.03625, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -557.94788, 1787.43591, 1394.49829, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -557.94788, 1787.43591, 1394.63428, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -557.94788, 1787.43591, 1394.77039, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -565.26611, 1787.43542, 1394.49829, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -565.26617, 1787.43542, 1394.63428, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -565.26617, 1787.43542, 1394.77026, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -565.26611, 1787.43542, 1393.03833, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -565.26611, 1787.43542, 1392.95825, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -565.81940, 1792.40906, 1394.77026, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -565.81940, 1792.40906, 1394.63428, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -565.81940, 1792.40906, 1394.49829, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -565.81940, 1792.40906, 1392.95435, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -565.81940, 1792.40906, 1393.03430, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -565.83014, 1792.40369, 1394.77026, 0.00000, 90.00000, -30.00000);
- CreateDynamicObject(19089, -565.83008, 1792.40369, 1394.62634, 0.00000, 90.00000, -30.00000);
- CreateDynamicObject(19089, -565.83008, 1792.40369, 1394.49036, 0.00000, 90.00000, -30.00000);
- CreateDynamicObject(19089, -565.83008, 1792.40369, 1393.01831, 0.00000, 90.00000, -30.00000);
- CreateDynamicObject(19089, -565.83008, 1792.40369, 1392.94629, 0.00000, 90.00000, -30.00000);
- CreateDynamicObject(19087, -566.91351, 1793.03723, 1394.12915, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -566.91351, 1793.03723, 1396.26526, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -566.91351, 1793.03723, 1394.12915, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -566.90088, 1800.41492, 1394.12915, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -566.90485, 1800.41345, 1395.86523, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19089, -566.91010, 1800.43542, 1394.77026, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -566.91010, 1800.43542, 1394.62634, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -566.91010, 1800.43542, 1394.49036, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -566.91010, 1800.43542, 1393.01843, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -566.91010, 1800.43542, 1392.93835, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -565.80042, 1801.06775, 1392.93835, 0.00000, 90.00000, 30.00000);
- CreateDynamicObject(19089, -565.80042, 1801.06775, 1394.48840, 0.00000, 90.00000, 30.00000);
- CreateDynamicObject(19089, -565.80042, 1801.06775, 1394.61438, 0.00000, 90.00000, 30.00000);
- CreateDynamicObject(19089, -565.80042, 1801.06775, 1394.76135, 0.00000, 90.00000, 30.00000);
- CreateDynamicObject(19089, -565.80042, 1801.06775, 1393.02246, 0.00000, 90.00000, 30.00000);
- CreateDynamicObject(19089, -565.80878, 1808.43799, 1393.02441, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -565.80878, 1808.43799, 1392.94043, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -565.80878, 1808.43799, 1394.48035, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -565.80878, 1808.43799, 1394.61536, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -565.80878, 1808.43799, 1394.76538, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -557.87201, 1805.89050, 1394.48132, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -565.23407, 1805.88989, 1394.48328, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -565.23407, 1805.89185, 1394.61829, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -565.23407, 1805.88794, 1394.76831, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -557.87201, 1805.89050, 1394.61926, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -557.87201, 1805.89050, 1394.76733, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -565.23407, 1805.88989, 1393.01929, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -565.23407, 1805.88989, 1392.93530, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -557.87201, 1805.89050, 1393.01733, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -557.87201, 1805.89050, 1392.93335, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -544.64325, 1805.85913, 1394.61926, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -544.64526, 1805.85950, 1394.48132, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -544.63739, 1805.85669, 1394.76733, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -544.64209, 1805.85999, 1392.93335, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -544.64209, 1805.85999, 1392.83728, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -537.77118, 1805.86255, 1392.93335, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -537.77118, 1805.86255, 1392.83728, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -537.77118, 1805.86255, 1394.48132, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -537.77118, 1805.86255, 1394.61328, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -543.98395, 1808.65088, 1394.76929, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -537.77118, 1805.86255, 1392.93335, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -537.69611, 1805.85791, 1394.76733, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -543.98389, 1808.65088, 1394.61328, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -543.98389, 1808.65088, 1394.48132, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -543.98389, 1808.65088, 1392.92834, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19087, -543.99048, 1792.62378, 1394.57324, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -542.88342, 1793.29492, 1396.33716, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -542.88293, 1793.29517, 1394.05823, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -542.87000, 1800.61829, 1396.33716, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -542.87000, 1800.61829, 1394.32324, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19089, -543.98389, 1808.65088, 1392.83533, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -542.85864, 1800.68604, 1394.48132, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -542.85791, 1800.66895, 1394.76929, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -542.86444, 1800.67920, 1394.61328, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -537.58807, 1797.59204, 1394.48132, 0.00000, 90.00000, -30.00000);
- CreateDynamicObject(19089, -537.58807, 1797.59204, 1394.60730, 0.00000, 90.00000, -30.00000);
- CreateDynamicObject(19089, -537.58807, 1797.59204, 1394.76733, 0.00000, 90.00000, -30.00000);
- CreateDynamicObject(19089, -537.58807, 1797.59204, 1392.92334, 0.00000, 90.00000, -30.00000);
- CreateDynamicObject(19089, -537.58807, 1797.59204, 1392.83533, 0.00000, 90.00000, -30.00000);
- CreateDynamicObject(19089, -542.85858, 1800.68604, 1392.91931, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -542.85858, 1800.68604, 1392.83130, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -537.60101, 1796.31677, 1394.76929, 0.00000, 90.00000, 30.00000);
- CreateDynamicObject(19089, -537.60101, 1796.31677, 1394.61536, 0.00000, 90.00000, 30.00000);
- CreateDynamicObject(19089, -537.60101, 1796.31677, 1394.48328, 0.00000, 90.00000, 30.00000);
- CreateDynamicObject(19089, -537.60101, 1796.31677, 1392.92126, 0.00000, 90.00000, 30.00000);
- CreateDynamicObject(19089, -537.60101, 1796.31677, 1392.83325, 0.00000, 90.00000, 30.00000);
- CreateDynamicObject(19089, -543.99524, 1792.61157, 1394.76929, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -543.99518, 1792.61157, 1394.61536, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -543.65558, 1792.60364, 1394.48328, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -543.98718, 1792.61108, 1392.92126, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -543.98700, 1792.61914, 1392.83325, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -543.99518, 1792.61157, 1394.48743, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19089, -538.40668, 1787.44226, 1392.82532, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -538.40668, 1787.44226, 1392.92126, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -538.40668, 1787.44226, 1394.48132, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -538.40668, 1787.44226, 1394.61731, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -538.40668, 1787.44226, 1394.76135, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -538.40668, 1787.44226, 1392.82532, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -544.49231, 1787.44531, 1394.76135, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -544.49231, 1787.44531, 1394.61743, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -544.49231, 1787.44531, 1394.48145, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -544.49231, 1787.44531, 1392.92139, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19089, -544.49231, 1787.44531, 1392.82544, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19454, -562.86969, 1787.27173, 1390.52051, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, -546.97845, 1787.30029, 1390.52051, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, -554.65118, 1781.53296, 1396.31055, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19377, -546.57129, 1792.20288, 1395.77429, 0.00000, 89.99997, 0.00000);
- CreateDynamicObject(18075, -548.96173, 1797.61719, 1395.68640, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18075, -561.17761, 1797.41479, 1395.68640, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18075, -554.63232, 1809.14722, 1395.68640, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18075, -552.87115, 1782.16736, 1395.68640, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19377, -546.57129, 1792.20288, 1392.19397, 0.00000, 89.99997, 0.00000);
- CreateDynamicObject(19377, -546.57129, 1801.81299, 1392.19397, 0.00000, 89.99997, 0.00000);
- CreateDynamicObject(19377, -563.08124, 1801.81299, 1392.19397, 0.00000, 89.99997, 0.00000);
- CreateDynamicObject(19377, -563.08124, 1792.23340, 1392.19397, 0.00000, 89.99997, 0.00000);
- CreateDynamicObject(19446, -556.13086, 1781.55750, 1388.87854, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19377, -546.57129, 1801.81299, 1395.77466, 0.00000, 89.99997, 0.00000);
- CreateDynamicObject(19377, -557.05072, 1792.20288, 1395.77429, 0.00000, 89.99997, 0.00000);
- CreateDynamicObject(19377, -567.53979, 1792.20288, 1395.77429, 0.00000, 89.99997, 0.00000);
- CreateDynamicObject(19377, -555.29059, 1782.58240, 1395.77429, 0.00000, 89.99997, 0.00000);
- CreateDynamicObject(19377, -557.05072, 1801.81274, 1395.77429, 0.00000, 89.99997, 0.00000);
- CreateDynamicObject(19377, -567.53040, 1801.81274, 1395.77429, 0.00000, 89.99997, 0.00000);
- CreateDynamicObject(2230, -557.93585, 1793.48523, 1392.29248, 0.00000, 0.00000, 179.59999);
- CreateDynamicObject(2230, -551.72223, 1794.24731, 1392.29248, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19361, -556.12134, 1793.67700, 1391.56531, 0.00000, 0.00000, 90.09998);
- CreateDynamicObject(18075, -552.87115, 1782.16736, 1395.68640, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19446, -554.92108, 1782.54346, 1396.75854, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, -561.67566, 1805.45630, 1392.29395, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, -554.91101, 1776.83289, 1393.76794, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19361, -553.46124, 1793.68152, 1391.56531, 0.00000, 0.00000, 90.09998);
- CreateDynamicObject(2230, -552.33582, 1793.44617, 1392.29248, 0.00000, 0.00000, 179.59999);
- CreateDynamicObject(2230, -557.33228, 1794.29736, 1392.29248, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19361, -553.46112, 1793.62146, 1390.60486, 0.00000, 0.00000, 90.09998);
- CreateDynamicObject(19361, -556.00159, 1793.61804, 1390.60486, 0.00000, 0.00000, 90.09998);
- CreateDynamicObject(2230, -550.02612, 1794.47388, 1392.29248, 0.00000, -0.00001, -90.50003);
- CreateDynamicObject(2230, -550.77734, 1800.68884, 1392.29248, 0.00000, 0.00001, 89.89993);
- CreateDynamicObject(19361, -550.21472, 1796.28882, 1391.56531, 0.00001, 0.00000, 179.99989);
- CreateDynamicObject(19361, -550.21460, 1798.94885, 1391.56531, 0.00001, 0.00000, 179.99989);
- CreateDynamicObject(2230, -549.97729, 1800.07385, 1392.29248, 0.00000, -0.00001, -90.50003);
- CreateDynamicObject(2230, -550.83722, 1795.07898, 1392.29248, 0.00000, 0.00001, 89.89993);
- CreateDynamicObject(19361, -550.15454, 1798.94885, 1390.60486, 0.00001, 0.00000, 179.99989);
- CreateDynamicObject(19361, -550.15558, 1796.40845, 1390.60486, 0.00001, 0.00000, 179.99989);
- CreateDynamicObject(2230, -559.48340, 1800.68579, 1392.29248, -0.00001, -0.00001, 89.40000);
- CreateDynamicObject(2230, -558.74304, 1794.46960, 1392.29248, 0.00001, 0.00001, -90.19999);
- CreateDynamicObject(19361, -559.29797, 1798.87061, 1391.56531, 0.00001, -0.00001, -0.10005);
- CreateDynamicObject(19361, -559.30273, 1796.21057, 1391.56531, 0.00001, -0.00001, -0.10005);
- CreateDynamicObject(2230, -559.54199, 1795.08594, 1392.29248, -0.00001, -0.00001, 89.40000);
- CreateDynamicObject(2230, -558.67334, 1800.07935, 1392.29248, 0.00001, 0.00001, -90.19999);
- CreateDynamicObject(19361, -559.36279, 1796.21069, 1390.60486, 0.00001, -0.00001, -0.10005);
- CreateDynamicObject(19361, -559.35730, 1798.75110, 1390.60486, 0.00001, -0.00001, -0.10005);
- CreateDynamicObject(1769, -566.30896, 1793.46130, 1392.27991, 0.00000, 0.00000, 90.10003);
- CreateDynamicObject(1769, -543.48767, 1798.68225, 1392.27991, 0.00000, 0.00000, -89.69998);
- CreateDynamicObject(1769, -543.49506, 1800.07275, 1392.27991, 0.00000, 0.00000, -89.69998);
- CreateDynamicObject(1769, -543.47345, 1795.93262, 1392.27991, 0.00000, 0.00000, -89.69998);
- CreateDynamicObject(1769, -543.46600, 1794.55237, 1392.27991, 0.00000, 0.00000, -89.69998);
- CreateDynamicObject(1769, -566.31122, 1794.84143, 1392.27991, 0.00000, 0.00000, 90.10003);
- CreateDynamicObject(1769, -566.31860, 1799.07178, 1392.27991, 0.00000, 0.00000, 90.10003);
- CreateDynamicObject(1769, -566.31604, 1797.69165, 1392.27991, 0.00000, 0.00000, 90.10003);
- CreateDynamicObject(1822, -544.29480, 1796.25745, 1392.29590, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1822, -566.45496, 1796.25745, 1392.29590, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, -548.05573, 1805.45630, 1392.29395, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19538, -570.23022, 1812.67126, 1391.41846, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, -543.97607, 1792.38879, 1394.41724, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(968, -554.96802, 1787.34412, 1388.75134, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19325, -554.87756, 1787.32800, 1397.13416, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2173, -554.34277, 1794.25769, 1392.29395, 0.00000, 0.00000, 179.99994);
- CreateDynamicObject(2173, -558.71259, 1796.97485, 1392.29395, 0.00000, 0.00000, 89.89991);
- CreateDynamicObject(2173, -550.77313, 1798.08081, 1392.29395, 0.00000, 0.00000, -90.00014);
- CreateDynamicObject(2161, -555.03278, 1796.42908, 1392.29395, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2161, -555.92603, 1797.62683, 1392.29395, 0.00000, 0.00000, -90.30000);
- CreateDynamicObject(2161, -553.85059, 1797.32129, 1392.29395, 0.00000, 0.00000, 88.99995);
- CreateDynamicObject(19893, -554.51886, 1794.14551, 1393.09521, 0.00000, 0.00000, -156.59998);
- CreateDynamicObject(19893, -550.65558, 1798.00073, 1393.09521, 0.00000, 0.00000, -46.89998);
- CreateDynamicObject(19893, -558.86810, 1796.98425, 1393.09521, 0.00000, 0.00000, 118.80003);
- CreateDynamicObject(11705, -555.55969, 1794.08447, 1393.07544, 0.00000, 0.00000, -179.50005);
- CreateDynamicObject(19792, -554.89050, 1794.16541, 1393.11560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1886, -554.82440, 1795.64014, 1395.86450, 32.20000, 0.00000, 0.00000);
- CreateDynamicObject(1886, -553.14111, 1797.48877, 1395.84509, 32.20000, 0.00000, 91.89999);
- CreateDynamicObject(1886, -556.54596, 1797.44397, 1395.83130, 32.20000, 0.00000, -90.19999);
- CreateDynamicObject(1886, -558.62823, 1786.72766, 1395.75256, 38.39999, 0.00000, 49.19999);
- CreateDynamicObject(3811, -558.78235, 1783.17651, 1391.95361, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3811, -558.78235, 1785.66638, 1391.95361, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3811, -550.89197, 1785.66650, 1391.95361, 0.00000, 0.00000, -179.90002);
- CreateDynamicObject(3811, -550.91742, 1783.05652, 1391.95361, 0.00000, 0.00000, -179.90002);
- }
- stock LoadComplex1() //by Twixx
- {
- new object = CreateDynamicObject(19390,1990.258300,1115.898437,23.251277,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19378,1989.983032,1120.623901,21.429975,0.000000,270.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 3305, "des_bighus", "GB_nastybar08", 0);
- object = CreateDynamicObject(19361,1991.905151,1117.513916,23.250453,0.000000,0.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19390,1991.905029,1120.724609,23.251277,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(1498,1991.941284,1119.946533,21.496349,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(19361,1987.046875,1115.898071,23.250453,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19407,1985.545166,1120.720703,23.250360,0.000000,0.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1985.554565,1117.513916,23.250453,0.000000,0.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(16500,1985.426269,1120.815185,22.605915,90.000000,0.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 14755, "sfhss2", "ah_rotwindow", 0);
- object = CreateDynamicObject(1498,1989.480834,1115.846191,21.496349,0.000000,0.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 14754, "sfhsb3", "mp_apt1_brokedoor", 0);
- object = CreateDynamicObject(19361,1991.905151,1123.931884,23.250453,0.000000,0.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19390,1991.905029,1127.144409,23.251277,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(1498,1991.941284,1126.366088,21.496349,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(19378,1989.983032,1130.253906,21.429975,0.000000,270.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 3305, "des_bighus", "GB_nastybar08", 0);
- object = CreateDynamicObject(4227,1972.579345,1115.910766,26.174308,0.000000,-13.599995,180.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(1706,1988.194458,1116.487670,21.509429,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(17969,1986.669189,1116.010009,23.725978,0.000000,0.000000,-90.099998,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(19361,1986.404418,1122.374023,23.250453,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1987.924682,1123.914184,23.250453,0.000000,0.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1987.924682,1127.123535,23.250453,0.000000,0.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19390,1987.924926,1130.334472,23.251277,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(1498,1987.881225,1131.073120,21.496349,0.000000,0.000000,270.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(1527,1991.822021,1118.339599,23.421043,-17.799997,0.000000,0.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(1264,1986.130737,1116.507690,21.819004,0.000000,0.000000,0.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(1338,1986.410888,1121.554687,21.706077,0.000000,0.000000,174.599990,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 5425, "jeffers4_lae", "greenwall2", 0);
- object = CreateDynamicObject(1349,1986.142089,1117.645141,22.129278,0.000000,0.000000,91.799972,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(19378,1989.983032,1120.623901,25.069969,0.000000,270.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 4859, "ground5_las", "Heliconcrete", 0);
- object = CreateDynamicObject(19378,1989.983032,1130.258666,25.069969,0.000000,270.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 4859, "ground5_las", "Heliconcrete", 0);
- object = CreateDynamicObject(19361,1991.905151,1130.356933,23.250453,0.000000,0.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19390,1991.905029,1133.564331,23.251277,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(1498,1991.941284,1132.790649,21.496349,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(19361,1992.245117,1135.137084,23.250453,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(14407,1991.066772,1137.202392,22.143606,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 4821, "union_las", "tarmacplain_bank", 0);
- object = CreateDynamicObject(19378,1994.963623,1130.408813,25.249971,0.000000,270.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 3305, "des_bighus", "GB_nastybar08", 0);
- object = CreateDynamicObject(19361,1990.255615,1138.256958,23.250453,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1987.056152,1138.256958,23.250453,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1986.405639,1131.866821,23.250453,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1984.745849,1133.467041,23.250453,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1984.745849,1136.677246,23.250453,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19378,1989.983032,1139.873046,21.429975,0.000000,270.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 3305, "des_bighus", "GB_nastybar08", 0);
- object = CreateDynamicObject(19361,1989.034423,1135.137084,23.250453,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1983.846069,1138.256958,23.250453,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1992.245117,1135.137084,26.750444,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1994.484008,1136.957031,25.240440,0.000000,270.000000,-270.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 3305, "des_bighus", "GB_nastybar08", 0);
- object = CreateDynamicObject(19361,1997.694091,1136.957031,25.240440,0.000000,270.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 3305, "des_bighus", "GB_nastybar08", 0);
- object = CreateDynamicObject(19361,1984.745849,1136.677246,26.740446,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1983.846069,1138.256958,26.750461,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1987.056152,1138.256958,26.750459,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1989.045166,1135.137084,26.750444,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1985.835083,1135.137084,26.750444,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1990.265625,1138.256958,26.750459,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1993.475341,1138.256958,26.750459,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1993.465332,1138.256958,23.250465,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1993.775390,1133.607055,27.050451,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19390,1993.785156,1130.394531,27.051286,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19378,1994.042846,1140.009155,28.449966,0.000000,270.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 4859, "ground5_las", "Heliconcrete", 0);
- object = CreateDynamicObject(19378,1983.543457,1140.009155,28.449966,0.000000,270.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 4859, "ground5_las", "Heliconcrete", 0);
- object = CreateDynamicObject(19378,1994.023803,1130.419189,28.619966,0.000000,270.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 4859, "ground5_las", "Heliconcrete", 0);
- object = CreateDynamicObject(19361,1996.674926,1138.256958,26.750459,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1999.884887,1138.256958,26.750459,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1998.374755,1136.567993,27.050451,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19390,1998.375244,1133.364746,27.051286,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1998.374023,1130.157958,27.050451,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19378,1994.963623,1120.778930,25.249971,0.000000,270.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 3305, "des_bighus", "GB_nastybar08", 0);
- object = CreateDynamicObject(19361,1992.275024,1128.856811,27.050451,0.000000,0.000000,270.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19390,1990.635253,1127.184692,27.051286,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19390,1998.375244,1126.946777,27.051286,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1998.374023,1123.737915,27.050451,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1992.275024,1125.536376,27.050451,0.000000,0.000000,270.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1993.775390,1123.965942,27.050451,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19378,1994.963623,1111.148315,25.249971,0.000000,270.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 3305, "des_bighus", "GB_nastybar08", 0);
- object = CreateDynamicObject(19390,1993.785156,1120.753906,27.051286,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19390,1997.236083,1117.805541,27.051286,0.000000,0.000000,135.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1998.374023,1120.528198,27.050451,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1994.535034,1116.656616,27.050451,0.000000,0.000000,270.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19361,1993.775390,1117.545532,27.050451,0.000000,0.000000,180.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 12931, "sw_brewery", "sw_brewbrick01", 0);
- object = CreateDynamicObject(19378,1994.023803,1120.799194,28.619966,0.000000,270.000000,0.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 4859, "ground5_las", "Heliconcrete", 0);
- object = CreateDynamicObject(1498,1998.421386,1132.590454,25.296337,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(1498,1998.421386,1126.170166,25.296337,0.000000,0.000000,90.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(1498,1993.750976,1131.132202,25.296337,0.000000,0.000000,270.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(1498,1990.590820,1127.930297,25.296337,0.000000,0.000000,270.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(1498,1993.750976,1121.491821,25.296337,0.000000,0.000000,270.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(1498,1996.713745,1117.228515,25.296337,0.000000,0.000000,405.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(1526,1992.605712,1125.630249,26.989597,175.599975,360.000000,270.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(1528,1998.289550,1124.332397,26.564401,-12.899997,0.000000,0.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(1530,1998.278076,1123.095214,26.803571,180.000000,0.000000,0.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(4227,1998.021362,1138.246948,26.191591,0.000000,0.000000,0.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(17969,1986.694213,1138.136108,24.691612,47.499988,0.000000,450.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(1357,1997.643676,1137.708129,25.592266,0.000000,0.000000,0.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(1362,1985.257080,1137.803710,22.091714,0.000000,0.000000,-159.999984,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(1369,1996.418945,1137.446533,25.926883,0.000000,0.000000,-27.399997,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 2, 14525, "imy_motel2", "Gen_Metal", 0);
- SetDynamicObjectMaterial(object, 3, 12805, "ce_loadbay", "sw_wheel1", 0);
- SetDynamicObjectMaterial(object, 4, 1794, "cj_beds", "CJ_TARTAN", 0);
- object = CreateDynamicObject(1368,1997.882324,1130.018554,26.023023,0.000000,0.000000,270.000000,0,0, -1, 200.0, 200.0);
- SetDynamicObjectMaterial(object, 0, 3402, "ce_farmxref", "sw_woodflloorsplat", 0);
- SetDynamicObjectMaterial(object, 1, 18250, "cw_junkbuildcs_t", "Was_scrpyd_rustmetal", 0);
- object = CreateDynamicObject(1264,1994.376953,1117.329589,25.647726,0.000000,0.000000,0.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(1265,1995.297119,1117.329589,25.737728,0.000000,0.099999,-22.300003,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(2670,1985.557373,1136.561889,21.601234,0.000000,0.000000,-81.299987,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(2673,1986.230712,1119.834472,21.625597,0.000000,0.000000,56.199993,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(2673,1996.627197,1136.414672,25.415241,0.000000,0.000000,0.000000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(2670,1995.337524,1123.270629,25.415496,0.000000,0.000000,131.500000,0,0, -1, 200.0, 200.0);
- object = CreateDynamicObject(2670,1996.992431,1131.555175,25.419147,0.000000,0.000000,-35.599998,0,0, -1, 200.0, 200.0);
- }
- stock LoadComplex2() //by Spydah
- {
- CreateDynamicObject(14596, 416.92703, 512.25531, 1000.41016, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18765, 411.47760, 517.00049, 987.22772, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18765, 401.47760, 517.00049, 987.22772, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19447, 416.50781, 517.64398, 991.46301, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19447, 411.64780, 522.00403, 991.46301, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19447, 402.01199, 522.00403, 991.46301, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19447, 397.14780, 517.64398, 991.46301, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19447, 408.42999, 513.37372, 991.46301, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19447, 398.79401, 513.37372, 991.46301, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19377, 411.18051, 518.18579, 993.29871, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 400.67899, 518.18579, 993.29871, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19378, 406.32169, 516.23523, 995.42938, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19378, 395.82001, 516.23523, 995.42938, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19389, 410.56879, 516.03308, 997.26978, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19451, 406.71121, 512.82239, 997.26978, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19432, 411.07379, 513.87018, 997.26978, 0.00000, 0.00000, 40.00000);
- CreateDynamicObject(19432, 411.07379, 518.19019, 997.26978, 0.00000, 0.00000, -40.00000);
- CreateDynamicObject(19359, 411.58099, 512.56390, 997.26978, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19359, 411.58099, 519.68390, 997.26978, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19451, 406.71121, 519.26239, 997.26978, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19451, 397.07690, 519.26239, 997.26978, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19451, 397.07690, 512.82239, 997.26978, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19451, 393.73929, 516.21240, 997.26978, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19377, 406.32169, 516.23523, 999.09869, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 395.82001, 516.23523, 999.09869, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 406.34091, 515.88342, 1001.22858, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 395.83890, 515.88342, 1001.22858, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 406.34091, 506.24890, 1001.22858, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 395.83890, 506.24890, 1001.22858, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19389, 410.56879, 516.03308, 1003.06580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19359, 410.56879, 519.24432, 1003.06580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19451, 403.36816, 518.04144, 1003.06580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19451, 396.06921, 520.71039, 1003.06580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19451, 392.76920, 515.81641, 1003.06580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19451, 392.76920, 506.18188, 1003.06580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19451, 396.06921, 501.39041, 1003.06580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19451, 405.70319, 501.39041, 1003.06580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19451, 410.56879, 509.61041, 1003.06580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19451, 410.56879, 499.97589, 1003.06580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19377, 406.34091, 515.88342, 1004.89673, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 406.34091, 506.24890, 1004.89673, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 395.83890, 506.24890, 1004.89673, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 395.83890, 515.88342, 1004.89673, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 406.80481, 515.88330, 1007.02887, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19385, 411.25900, 516.02570, 1008.86688, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19447, 411.25900, 509.60239, 1008.86688, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19447, 411.25900, 522.44843, 1008.86688, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19447, 406.38501, 519.48151, 1008.86688, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19447, 406.38501, 512.89648, 1008.86688, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19447, 401.54810, 515.88989, 1008.86688, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19377, 406.80481, 515.88330, 1010.70471, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(1504, 408.63470, 519.41193, 1007.11139, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1504, 404.09869, 519.41193, 1007.11139, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1504, 404.09869, 512.93591, 1007.11139, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1504, 408.63470, 512.93591, 1007.11139, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(17969, 401.66559, 516.27002, 1008.97131, 5.00000, 0.00000, 180.00000);
- CreateDynamicObject(1499, 411.25339, 515.28931, 1007.10992, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19814, 411.18051, 517.05450, 1007.18518, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19829, 411.18451, 517.26178, 1008.47339, 0.00000, 90.00000, -90.00000);
- CreateDynamicObject(19898, 408.32751, 516.39050, 1007.11920, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1728, 402.16400, 517.00311, 1007.11230, 0.00000, 0.00000, 80.00000);
- CreateDynamicObject(1810, 404.00381, 515.96259, 1007.10608, 0.00000, 0.00000, 211.99930);
- CreateDynamicObject(2062, 410.70651, 514.50580, 1007.51001, 0.00000, 90.00000, -80.00000);
- CreateDynamicObject(4227, 407.51831, 519.48309, 1008.84589, 0.00000, 4.00000, 0.00000);
- CreateDynamicObject(14840, 406.27219, 512.98218, 1009.02020, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2074, 407.61700, 516.54022, 1010.38220, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2672, 409.65253, 517.07941, 1007.39661, 0.00000, 0.00000, 80.00000);
- CreateDynamicObject(2670, 409.60251, 515.00006, 1007.19531, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(926, 410.85550, 518.12372, 1007.36731, 0.00000, 0.00000, 80.00000);
- CreateDynamicObject(853, 402.55347, 513.98633, 1007.29041, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2672, 405.60379, 517.65729, 1007.39661, 0.00000, 0.00000, 40.00000);
- CreateDynamicObject(11710, 411.09241, 516.04590, 1010.20062, -30.00000, 0.00000, 90.00000);
- CreateDynamicObject(2961, 411.15659, 514.87860, 1008.55298, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2690, 407.03021, 513.14398, 1007.47662, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19451, 405.70319, 520.71039, 1003.06580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19432, 408.09760, 517.32678, 1003.06580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19451, 403.36819, 516.61139, 1003.06580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19432, 397.74881, 518.04138, 1003.06580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19451, 398.65219, 511.73941, 1003.06580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19451, 403.36819, 504.03241, 1003.06580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19451, 397.03619, 513.31439, 1003.06580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19432, 408.09760, 504.74780, 1003.06580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19451, 403.36819, 505.46240, 1003.06580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19359, 399.62250, 506.58661, 1003.06580, 0.00000, 0.00000, 40.00000);
- CreateDynamicObject(19432, 397.74881, 504.03241, 1003.06580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19451, 397.03629, 508.80640, 1003.06580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1506, 407.32529, 520.64380, 1001.31018, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1506, 404.11929, 520.64380, 1001.31018, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1506, 400.90329, 520.64380, 1001.31018, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1506, 397.69531, 520.64380, 1001.31018, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1506, 394.47531, 520.64380, 1001.31018, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1506, 394.47531, 501.43079, 1001.31018, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1506, 397.69531, 501.43079, 1001.31018, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1506, 400.90329, 501.43079, 1001.31018, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1506, 404.11929, 501.43079, 1001.31018, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1506, 407.32529, 501.43079, 1001.31018, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19451, 408.09760, 511.70441, 1003.06580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19451, 406.66959, 511.70441, 1003.06580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19432, 407.38290, 506.97531, 1003.06580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19432, 408.09579, 505.94171, 1004.61780, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(1499, 408.12189, 505.42490, 1001.31030, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1506, 392.83731, 503.01120, 1001.31018, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1506, 392.83731, 506.22519, 1001.31018, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1506, 392.83731, 509.43121, 1001.31018, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1506, 392.83731, 512.64520, 1001.31018, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1506, 392.83731, 515.85321, 1001.31018, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(16151, 405.51581, 510.57431, 1001.64941, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2762, 400.70670, 507.55850, 1001.71649, 0.00000, 0.00000, -45.00000);
- CreateDynamicObject(14820, 400.70041, 507.55209, 1002.19550, 0.00000, 0.00000, -45.00000);
- CreateDynamicObject(2229, 399.67081, 509.41241, 1001.31641, 0.00000, 0.00000, 120.00000);
- CreateDynamicObject(2232, 400.65781, 508.51529, 1001.80243, 0.00000, 0.00000, 135.00000);
- CreateDynamicObject(2232, 401.15381, 508.00131, 1001.80243, 0.00000, 0.00000, 135.00000);
- CreateDynamicObject(2232, 401.65979, 507.49530, 1001.80243, 0.00000, 0.00000, 135.00000);
- CreateDynamicObject(2229, 402.01080, 507.07239, 1001.31641, 0.00000, 0.00000, 140.00000);
- CreateDynamicObject(18653, 400.63800, 506.71500, 1006.80487, 0.00000, 180.00000, 1330.00000);
- CreateDynamicObject(18654, 404.92310, 507.52710, 1006.99420, 0.00000, 180.00000, -59.00000);
- CreateDynamicObject(18655, 406.07391, 515.88019, 1007.00873, 0.00000, 180.00000, 61.00000);
- CreateDynamicObject(1432, 400.78052, 514.84216, 1001.42047, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1432, 400.72980, 512.10492, 1001.42047, 0.00000, 0.00000, 34.00000);
- CreateDynamicObject(1510, 400.82150, 514.85168, 1002.04639, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1510, 404.61917, 513.57800, 1002.28638, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1510, 404.74768, 509.30911, 1002.28638, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19620, 399.64621, 506.81580, 1003.21411, -90.00000, 0.00000, -48.71040);
- CreateDynamicObject(18649, 398.74051, 507.78751, 1002.86560, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(18649, 400.60980, 505.55829, 1002.86560, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(2690, 406.34009, 509.71600, 1001.64917, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(4227, 398.71011, 514.89020, 1003.75928, 0.00000, -13.90000, 90.00000);
- CreateDynamicObject(1291, 398.47021, 503.58170, 1001.70148, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(913, 396.46460, 504.76849, 1002.14722, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2672, 403.31158, 515.04059, 1001.59680, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18666, 406.57739, 508.26389, 1002.75128, 158.11650, 0.00000, 0.00000);
- CreateDynamicObject(18667, 402.69000, 505.55670, 1003.24530, -8.65760, 0.00000, 90.15460);
- CreateDynamicObject(2676, 408.26181, 519.12140, 1001.41681, 0.00000, 0.00000, -12.36800);
- CreateDynamicObject(2674, 403.01559, 509.83109, 1001.32483, 0.00000, 0.00000, 130.00000);
- CreateDynamicObject(2674, 409.00723, 506.22998, 1001.32483, 0.00000, 0.00000, -3.63310);
- CreateDynamicObject(2671, 409.12289, 508.20239, 1001.31500, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2676, 403.05899, 507.11581, 1001.41681, 0.00000, 0.00000, -12.36800);
- CreateDynamicObject(2676, 395.42569, 516.92609, 1001.41681, 0.00000, 0.00000, -45.36800);
- CreateDynamicObject(18665, 403.76810, 516.51990, 1003.28589, -11.98150, 0.00000, 90.00000);
- CreateDynamicObject(18663, 402.18359, 516.51880, 1003.53772, 6.33860, 0.00000, 90.00000);
- CreateDynamicObject(17969, 396.91821, 511.03171, 1003.33350, -3.86500, 0.00000, 0.00000);
- CreateDynamicObject(19896, 404.68481, 509.18900, 1002.28668, 0.00000, 0.00000, 81.34240);
- CreateDynamicObject(1544, 404.70929, 507.99582, 1002.26648, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1951, 405.19614, 507.39160, 1002.46082, 0.00000, 0.00000, 70.00000);
- CreateDynamicObject(1543, 404.30530, 510.05170, 1002.32880, 0.00000, 90.00000, 40.00000);
- CreateDynamicObject(1486, 404.86420, 509.43524, 1002.42078, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19159, 402.87759, 512.48688, 1004.62311, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1951, 406.17670, 514.05157, 1002.46082, 0.00000, 0.00000, 30.00000);
- CreateDynamicObject(1951, 404.68732, 512.58325, 1002.46082, 0.00000, 0.00000, 150.00000);
- CreateDynamicObject(1543, 405.74579, 513.87433, 1002.26678, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1543, 405.32166, 514.04639, 1002.26678, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1543, 404.35703, 512.29498, 1002.26678, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1543, 399.95901, 507.75739, 1002.12280, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1543, 404.39279, 511.66971, 1002.26678, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1951, 404.85202, 514.01550, 1002.46082, 0.00000, 0.00000, 70.00000);
- CreateDynamicObject(1951, 404.66959, 510.15570, 1002.46082, 0.00000, 0.00000, 140.00000);
- CreateDynamicObject(1486, 405.65170, 513.93793, 1002.42078, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1486, 404.62750, 513.94843, 1002.42078, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1486, 401.07034, 514.50989, 1002.17877, 0.00000, 0.00000, 140.00000);
- CreateDynamicObject(1486, 404.82040, 512.24548, 1002.42078, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1486, 404.36520, 512.09650, 1002.42078, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1486, 404.62488, 511.33081, 1002.42078, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1486, 404.51953, 510.82529, 1002.42078, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1544, 405.95239, 514.11841, 1002.26648, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1544, 404.77258, 513.73541, 1002.26648, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1544, 404.47021, 511.10751, 1002.26648, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1543, 404.69229, 511.82391, 1002.26678, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1543, 400.40979, 512.14911, 1002.01678, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1486, 404.74179, 513.32715, 1002.42078, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1486, 401.19601, 512.08142, 1002.17877, 0.00000, 0.00000, 140.00000);
- CreateDynamicObject(1486, 401.17542, 514.51099, 1002.17877, 0.00000, 0.00000, 14.00000);
- CreateDynamicObject(1486, 401.12140, 514.59900, 1002.17877, 0.00000, 0.00000, 170.00000);
- CreateDynamicObject(1951, 400.96439, 515.21619, 1002.21680, 0.00000, 0.00000, 150.00000);
- CreateDynamicObject(2674, 401.10571, 512.35059, 1001.32483, 0.00000, 0.00000, -3.63310);
- CreateDynamicObject(19424, 400.19650, 507.49161, 1002.15192, -6.26130, 0.00000, 0.00000);
- CreateDynamicObject(1543, 400.69180, 511.54489, 1002.01678, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19814, 396.95569, 505.80060, 1002.47498, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1709, 395.41519, 512.07440, 1001.30829, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2676, 408.68631, 505.55600, 1001.41681, 0.00000, 0.00000, -12.36800);
- CreateDynamicObject(18661, 410.47699, 510.43561, 1003.51990, -8.88950, 0.00000, 0.00000);
- CreateDynamicObject(18660, 402.63281, 518.13330, 1003.48859, 10.74470, 0.00000, -90.00000);
- CreateDynamicObject(18659, 396.94391, 516.05389, 1003.15088, 10.59010, 0.00000, 0.00000);
- CreateDynamicObject(4227, 408.99429, 520.71381, 1003.24792, 0.00000, -1.62330, 0.00000);
- CreateDynamicObject(17969, 401.19089, 501.50681, 1003.37610, 8.19380, 0.00000, -90.00000);
- CreateDynamicObject(18664, 401.29230, 503.94080, 1003.30518, -6.02940, 0.00000, 90.00000);
- CreateDynamicObject(18667, 405.10361, 503.94070, 1003.30762, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1710, 416.27310, 518.45117, 995.51593, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2961, 410.46091, 514.90833, 1002.89929, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2690, 396.50461, 512.77441, 1001.46521, -51.27270, 90.00000, 90.00000);
- CreateDynamicObject(11710, 410.46060, 516.04761, 1004.22522, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19829, 410.48901, 517.30548, 1002.95508, 0.00000, 90.00000, -90.00000);
- CreateDynamicObject(2074, 409.27829, 514.12323, 1004.57642, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2074, 404.39828, 502.72321, 1004.57642, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2074, 395.15829, 510.44321, 1004.57642, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2074, 401.79831, 519.52319, 1004.57642, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1504, 408.34930, 519.19470, 995.48120, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1504, 405.12930, 519.19470, 995.48120, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1504, 401.90930, 519.19470, 995.48120, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1504, 398.71729, 519.19470, 995.48120, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1504, 395.49731, 519.19470, 995.48120, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1504, 408.34930, 512.86072, 995.48120, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1504, 408.34930, 519.19470, 995.48120, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1504, 405.12930, 512.86072, 995.48120, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1504, 401.90930, 512.86072, 995.48120, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1504, 398.71729, 512.86072, 995.48120, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1504, 395.49731, 512.86072, 995.48120, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19451, 391.98141, 519.60858, 997.26978, 0.00000, 0.00000, 45.00000);
- CreateDynamicObject(19451, 391.98141, 512.92059, 997.26978, 0.00000, 0.00000, -45.00000);
- CreateDynamicObject(17969, 393.87881, 520.91980, 997.24609, 3.01470, 0.00000, 180.00000);
- CreateDynamicObject(14840, 393.82251, 514.13831, 997.59039, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(4227, 395.70331, 512.81830, 997.48602, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(18659, 401.12671, 519.17041, 997.51678, -8.58030, 0.00000, 90.00000);
- CreateDynamicObject(18661, 404.42761, 519.16931, 996.65002, 150.00000, 0.00000, 90.00000);
- CreateDynamicObject(18662, 411.10980, 513.67780, 997.30188, 7.00000, 0.00000, 40.00000);
- CreateDynamicObject(1805, 394.76190, 518.47937, 995.72070, 87.99020, 0.00000, 50.00000);
- CreateDynamicObject(2961, 410.47021, 514.91418, 997.16119, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(11710, 409.99429, 515.96582, 995.56592, 90.00000, 0.00000, 56.14260);
- CreateDynamicObject(18659, 416.25699, 519.07690, 997.78180, -9.19870, 0.00000, 90.00000);
- CreateDynamicObject(18661, 420.81229, 519.07849, 997.35962, -16.61950, 0.00000, 90.00000);
- CreateDynamicObject(18662, 417.68130, 514.95221, 997.10559, -4.01960, 0.00000, -90.00000);
- CreateDynamicObject(4227, 413.48181, 505.34811, 998.71838, 0.00000, 17.93360, 180.00000);
- CreateDynamicObject(18667, 415.95300, 511.94620, 997.69220, -13.75940, 0.00000, 0.00000);
- CreateDynamicObject(18663, 408.19449, 516.07813, 1003.14441, -11.36310, 0.00000, 0.00000);
- CreateDynamicObject(18660, 423.36890, 506.89120, 995.58862, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18664, 417.28101, 514.95319, 1003.19000, -4.48340, 0.00000, -90.00000);
- CreateDynamicObject(18665, 419.75729, 519.07727, 1003.94781, -7.73000, 0.00000, 90.00000);
- CreateDynamicObject(850, 421.30240, 517.27692, 1001.40363, 0.00000, 0.00000, 43.00000);
- CreateDynamicObject(2672, 421.80237, 514.42841, 1001.59729, 0.00000, 0.00000, 60.00000);
- CreateDynamicObject(2672, 414.40991, 517.27753, 1001.59729, 0.00000, 0.00000, 60.00000);
- CreateDynamicObject(2671, 417.69000, 517.01868, 1001.32330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2676, 418.51535, 516.73083, 1001.41931, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(851, 421.88541, 506.72009, 999.57330, 0.00000, 0.00000, 12.44530);
- CreateDynamicObject(2676, 421.46320, 516.61407, 995.61731, 0.00000, 0.00000, -22.33970);
- CreateDynamicObject(2670, 414.37701, 513.67603, 995.60608, 0.00000, 0.00000, 95.00000);
- CreateDynamicObject(2670, 416.90500, 517.29620, 995.60608, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(854, 400.97571, 515.89282, 995.72711, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2677, 408.66562, 516.35669, 995.78918, 0.00000, 0.00000, -40.00000);
- CreateDynamicObject(2677, 396.71603, 514.94598, 995.78918, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2674, 395.63400, 517.54303, 995.52393, 0.00000, 0.00000, -14.76430);
- CreateDynamicObject(2670, 404.82321, 515.42688, 995.60590, 0.00000, 0.00000, 80.00000);
- CreateDynamicObject(2768, 407.65674, 513.17102, 995.56189, 0.00000, 0.00000, 150.00000);
- CreateDynamicObject(2768, 400.96942, 518.84222, 995.56189, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2678, 410.09430, 518.90381, 996.57959, -9.89440, 0.00000, 0.00000);
- CreateDynamicObject(2663, 400.87949, 513.20947, 995.59558, 90.00000, 0.00000, 104.45510);
- CreateDynamicObject(1771, 421.43750, 518.48370, 1008.40338, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(2653, 416.92270, 518.25122, 1004.84991, 180.00000, 0.00000, 0.00000);
- CreateDynamicObject(2653, 417.82269, 518.25122, 1004.84991, 180.00000, 0.00000, 0.00000);
- CreateDynamicObject(2653, 417.82269, 518.25122, 998.84192, 180.00000, 0.00000, 0.00000);
- CreateDynamicObject(2653, 416.92270, 518.25122, 998.84192, 180.00000, 0.00000, 0.00000);
- CreateDynamicObject(2649, 417.53461, 516.58447, 1010.63928, 180.00000, 0.00000, 90.00000);
- CreateDynamicObject(2677, 413.98611, 507.16739, 997.58533, 0.00000, 0.00000, 45.00000);
- CreateDynamicObject(17969, 415.91339, 505.46811, 1005.41602, 14.84160, 0.00000, -90.00000);
- CreateDynamicObject(18660, 416.72449, 508.43689, 1005.84161, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1756, 422.28821, 506.79791, 1005.54962, 0.00000, -83.19760, 0.00000);
- CreateDynamicObject(2806, 414.63919, 514.26031, 1007.23816, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18698, 414.48749, 514.25513, 1008.15051, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18665, 417.80069, 519.07703, 1008.81091, -7.65270, 0.00000, 90.00000);
- CreateDynamicObject(18664, 422.53510, 516.21808, 1009.39288, 50.95210, 0.00000, 0.00000);
- CreateDynamicObject(2676, 418.45969, 517.17908, 1007.21661, 0.00000, 0.00000, -26.90040);
- CreateDynamicObject(2674, 420.75070, 515.08124, 1007.13141, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2677, 413.25311, 517.16760, 1007.38538, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(854, 412.73270, 513.59448, 1007.27472, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18667, 419.55121, 510.21320, 1008.04730, -13.75940, 0.00000, 180.00000);
- CreateDynamicObject(849, 413.78470, 506.65329, 1003.38922, 0.00000, 0.00000, 196.81551);
- CreateDynamicObject(2674, 394.69427, 507.20349, 1001.32880, 0.00000, 0.00000, 40.00000);
- CreateDynamicObject(2672, 394.61447, 509.21536, 1001.59332, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2670, 395.05731, 503.29129, 1001.41333, 0.00000, 0.00000, -30.00000);
- CreateDynamicObject(2674, 394.05051, 511.87009, 1001.32880, 0.00000, 0.00000, 130.00000);
- CreateDynamicObject(2677, 402.17981, 502.40799, 1001.58832, 0.00000, 0.00000, 50.00000);
- CreateDynamicObject(19385, 414.85291, 513.37372, 991.46301, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1238, 399.43137, 518.41571, 989.89679, 109.86610, 0.00000, -24.50410);
- CreateDynamicObject(1291, 405.52841, 517.55688, 989.99683, 90.00000, 0.00000, 47.84870);
- CreateDynamicObject(1338, 406.56921, 518.27582, 990.40082, 0.00000, 0.00000, -12.59990);
- CreateDynamicObject(1441, 397.67880, 514.92963, 990.36481, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1735, 415.78888, 514.25519, 989.72888, 0.00000, 0.00000, -120.00000);
- CreateDynamicObject(850, 414.16040, 517.64203, 989.79889, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1506, 413.54239, 521.93597, 989.72980, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1506, 410.11041, 521.93597, 989.72980, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1506, 406.67841, 521.93597, 989.72980, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1506, 402.98239, 521.93597, 989.72980, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1506, 399.48441, 521.93597, 989.72980, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1506, 399.48441, 513.41400, 989.72980, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1506, 402.98239, 513.41400, 989.72980, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1506, 406.67841, 513.41400, 989.72980, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1506, 410.11041, 513.41400, 989.72980, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1533, 397.26721, 516.71771, 989.70660, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1238, 410.82855, 516.08582, 989.89679, 109.86610, 0.00000, 79.00000);
- CreateDynamicObject(2670, 410.26639, 517.28528, 989.82123, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2674, 404.82190, 518.54852, 989.74921, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2672, 398.78366, 520.47852, 990.00720, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2671, 412.32599, 514.83838, 989.72522, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2676, 407.50073, 515.32758, 989.82721, 0.00000, 0.00000, 590.00000);
- CreateDynamicObject(2677, 410.42041, 520.01233, 989.99921, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2671, 401.08099, 517.07971, 989.72522, 0.00000, 0.00000, 39.00000);
- CreateDynamicObject(4227, 416.51111, 514.81921, 991.68158, 0.00000, -3.01470, -90.00000);
- CreateDynamicObject(17969, 408.19199, 521.89099, 991.34363, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18660, 405.58139, 513.46692, 991.36462, -5.64290, 0.00000, -90.00000);
- CreateDynamicObject(18663, 412.92371, 513.46570, 991.21863, 5.25640, 0.00000, -90.00000);
- CreateDynamicObject(18665, 397.24011, 515.25940, 991.50629, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(18667, 397.24039, 519.93439, 991.48828, 70.00000, 0.00000, 180.00000);
- CreateDynamicObject(14840, 398.66101, 521.92078, 991.11230, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1440, 414.04340, 506.85989, 992.01270, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19571, 414.65051, 508.13409, 991.54309, 90.00000, 0.00000, -15.22810);
- CreateDynamicObject(2714, 406.54770, 511.05069, 1003.96051, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2411, 416.16891, 513.09448, 990.07141, -17.23790, 0.00000, 0.00000);
- CreateDynamicObject(18659, 416.27151, 505.44241, 993.63269, -8.03920, 0.00000, -90.00000);
- CreateDynamicObject(18666, 418.30069, 508.43640, 994.78650, -7.03430, 0.00000, 90.00000);
- }
- stock LoadComplex3() //by Runcias
- {
- CreateDynamicObject(1495, 167.66940, 2489.65137, -89.93290, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1495, 163.88570, 2510.17822, -89.91240, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19378, 174.77980, 2499.51782, -90.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19378, 164.29010, 2499.52075, -90.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19378, 164.29739, 2489.89746, -90.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19378, 174.79372, 2489.90063, -90.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19363, 163.87869, 2485.16138, -88.17490, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19392, 160.67178, 2485.16260, -88.17410, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19363, 167.07910, 2485.16650, -88.17490, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19363, 170.28677, 2485.15820, -88.17490, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19363, 163.72479, 2484.94775, -88.17490, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19409, 163.73309, 2488.14136, -88.17580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19363, 159.17436, 2486.78711, -88.17490, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19363, 159.16769, 2489.98584, -88.17490, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19363, 159.17349, 2493.18628, -88.17490, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19363, 165.25096, 2489.65845, -88.17490, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19392, 168.45520, 2489.65918, -88.17410, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19363, 169.98030, 2488.13159, -88.17490, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19363, 169.97540, 2484.92065, -88.17490, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1536, 159.89000, 2485.14258, -89.91560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18755, 173.69800, 2483.19604, -87.97630, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19363, 177.07080, 2485.15771, -88.17490, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19363, 180.28000, 2485.16260, -88.17490, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19455, 179.89951, 2489.94312, -88.17400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19455, 179.90710, 2499.56201, -88.17400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19455, 159.16940, 2499.60229, -88.17400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19455, 163.74492, 2497.63672, -88.17400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19455, 168.49973, 2502.36963, -88.17400, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19378, 164.28760, 2509.14429, -90.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19378, 174.76860, 2509.14600, -90.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19455, 173.25882, 2497.62500, -88.17400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19455, 168.50482, 2492.90332, -88.17400, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19455, 168.62422, 2506.17798, -88.17400, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19455, 159.17409, 2509.22510, -88.17400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14596, 186.41576, 2501.68774, -90.83660, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19455, 179.88539, 2511.28223, -88.17400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19455, 173.37082, 2510.92456, -88.17400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19455, 175.14182, 2513.86133, -88.17400, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19455, 165.53920, 2513.85669, -88.17400, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19363, 159.15710, 2513.86646, -88.17490, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19363, 163.88513, 2507.70776, -88.17490, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19363, 163.88901, 2514.11157, -88.17490, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19392, 163.87959, 2510.91113, -88.17410, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2605, 164.34128, 2488.21069, -89.51270, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2164, 163.83501, 2485.85693, -89.91280, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1712, 169.49014, 2488.01831, -89.91260, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2235, 167.11861, 2485.17480, -89.91300, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1549, 169.27350, 2485.55396, -89.91270, 0.00000, 0.00000, 50.00000);
- CreateDynamicObject(2855, 167.38684, 2485.66064, -89.42720, 0.00000, 0.00000, -120.00000);
- CreateDynamicObject(2238, 168.01799, 2485.70264, -89.00730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1806, 165.13179, 2487.77808, -89.91270, 0.00000, 0.00000, 20.00000);
- CreateDynamicObject(2260, 167.10005, 2485.72119, -88.01350, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19466, 163.72301, 2488.34766, -87.57560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1330, 163.13237, 2485.76978, -89.45270, 0.00000, 0.00000, 9.00000);
- CreateDynamicObject(19314, 168.45410, 2489.77148, -87.17090, 90.00000, 90.00000, 0.00000);
- CreateDynamicObject(19347, 164.41870, 2488.08667, -89.09620, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18641, 164.12950, 2488.08667, -89.07620, -90.00000, 90.00000, 50.00000);
- CreateDynamicObject(19474, 171.26967, 2509.96973, -89.35330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1712, 166.87361, 2506.81812, -89.91270, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1823, 165.57867, 2508.09082, -89.91281, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2854, 166.00230, 2508.56079, -89.41910, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1330, 172.82903, 2506.71997, -89.47330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1210, 167.33705, 2506.90210, -89.75360, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2681, 166.52754, 2513.18677, -89.91290, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1330, 164.40500, 2513.38135, -89.47300, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2779, 168.21278, 2513.17163, -89.91261, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1731, 162.48328, 2485.39380, -88.01810, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19133, 159.23019, 2488.37329, -88.33640, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(1535, 163.72600, 2499.71265, -89.94700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1535, 163.71417, 2493.98535, -89.94700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1731, 163.50400, 2497.59253, -87.83990, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1535, 173.32091, 2499.86182, -89.94700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1535, 173.33266, 2493.99829, -89.94700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1731, 173.49640, 2497.80298, -87.57090, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1330, 179.36600, 2485.72900, -89.47500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2268, 178.24561, 2485.75195, -88.41080, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1731, 176.99229, 2485.39673, -87.97100, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1535, 179.87212, 2488.10010, -89.91460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1535, 179.87938, 2493.96436, -89.91460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1535, 176.09503, 2513.80713, -89.91460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1535, 179.86699, 2509.65332, -89.91460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1330, 173.83974, 2513.33154, -89.47390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1731, 178.58060, 2513.62769, -87.66010, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1731, 179.64020, 2512.53760, -87.66010, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2265, 174.91240, 2513.27661, -88.18660, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1535, 160.87723, 2513.80151, -89.91460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1535, 159.23965, 2509.26245, -89.91460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1731, 159.41716, 2512.26025, -87.50900, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1731, 160.00648, 2513.62256, -87.50900, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1330, 159.63036, 2513.34570, -89.47300, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2286, 173.25191, 2509.66235, -87.88730, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1535, 159.22736, 2499.93921, -89.91460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1535, 159.24034, 2493.97559, -89.91460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1731, 159.43825, 2497.80981, -87.50900, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1731, 179.63503, 2491.67847, -87.66010, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19379, 164.30305, 2489.91040, -86.43420, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 174.80309, 2489.92944, -86.43420, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 174.78734, 2499.53394, -86.43420, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 164.35258, 2499.54517, -86.43420, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 165.42210, 2509.16895, -86.43420, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 175.91251, 2509.17017, -86.43420, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 154.99165, 2509.14917, -86.43420, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 175.83620, 2505.14648, -95.81610, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19447, 175.33516, 2509.75439, -93.99060, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19447, 175.35667, 2501.08545, -93.99060, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19355, 180.08479, 2508.09131, -93.97030, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19355, 180.08479, 2502.76611, -93.97030, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19447, 170.55511, 2505.37085, -93.99060, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14775, 174.50310, 2501.26904, -93.72490, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(14782, 176.13734, 2509.34717, -94.70870, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(918, 179.67578, 2509.31616, -95.37010, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1348, 171.63040, 2509.05005, -95.02960, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(933, 172.27116, 2504.46143, -95.72934, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1353, 171.38425, 2501.92407, -95.04960, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1369, 171.36270, 2506.44434, -95.13000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1372, 178.69635, 2501.66113, -95.62920, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1372, 175.87645, 2501.69043, -95.62920, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1409, 177.27365, 2501.66626, -95.62930, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1558, 176.14000, 2504.56348, -95.14860, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1558, 176.12617, 2505.66577, -95.14860, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1558, 175.01320, 2505.09351, -95.14860, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1558, 175.63800, 2505.03418, -94.10860, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19378, 175.86020, 2504.94312, -92.30000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 185.55225, 2505.80347, -95.73199, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19375, 176.31772, 2506.15063, -84.21410, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19375, 165.81107, 2506.15820, -84.21410, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19375, 155.32430, 2506.15796, -84.21410, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19358, 180.74741, 2502.76489, -82.43080, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19358, 180.75220, 2508.09131, -82.43080, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 176.10500, 2509.78589, -82.43000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19450, 166.47780, 2509.80005, -82.43000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19450, 156.87546, 2509.79883, -82.43000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19450, 166.54799, 2501.34448, -82.43000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19450, 156.91534, 2501.34351, -82.43000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19450, 152.51118, 2505.47192, -82.43000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1535, 152.58044, 2502.68433, -84.13050, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1535, 152.58234, 2506.92554, -84.13050, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1535, 154.01143, 2509.72437, -84.13050, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1535, 162.06996, 2509.73535, -84.13050, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1535, 154.15306, 2501.37451, -84.13050, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1535, 162.98871, 2501.40332, -84.13050, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1535, 169.76723, 2509.73535, -84.13050, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1535, 177.12770, 2509.72754, -84.13050, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19380, 176.25819, 2505.61157, -80.61000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19380, 165.80792, 2505.60229, -80.61000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19380, 155.31279, 2505.63184, -80.61000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19380, 180.77750, 2505.70728, -76.12000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19375, 176.33250, 2496.53442, -84.21410, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19375, 176.33566, 2486.90967, -84.21410, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(18755, 173.69800, 2483.19604, -82.18000, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19450, 171.28337, 2496.60547, -82.43000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 171.27251, 2486.98560, -82.43000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 180.75031, 2496.41187, -82.43000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 180.75990, 2486.79810, -82.43000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 180.27991, 2485.14868, -82.43000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19450, 167.08611, 2485.17334, -82.43000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19439, 175.47040, 2485.12866, -80.40010, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19439, 171.96770, 2485.11987, -80.40010, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(1330, 178.24197, 2485.86890, -83.68860, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1535, 180.73372, 2490.51587, -84.13050, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1535, 180.73009, 2497.61230, -84.13050, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1712, 179.99945, 2487.48560, -84.12810, 0.00000, 0.00000, 220.00000);
- CreateDynamicObject(2261, 178.28606, 2485.76196, -82.17560, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2260, 171.84410, 2487.32690, -82.21700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2262, 171.85159, 2492.88452, -82.13970, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2263, 171.86945, 2495.82813, -81.89590, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2264, 171.87030, 2498.90015, -82.09670, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2265, 171.84715, 2490.49463, -82.12310, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19439, 175.43393, 2485.15039, -86.17230, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19439, 171.94534, 2485.15381, -86.17230, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19380, 176.20483, 2495.98071, -80.61000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19380, 176.20393, 2486.34692, -80.61000, 0.00000, 90.00000, 0.00000);
- }
- stock LoadStudioApartments() //by Private200
- {
- new tmpobjid;
- tmpobjid = CreateDynamicObject(19377, 235.273666, 231.651199, 998.126220, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 9907, "monlith_sfe", "window5b", 0xFF99CCFF);
- tmpobjid = CreateDynamicObject(19456, 240.430206, 235.651504, 999.966125, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschurchwall04_256", 0x00000000);
- tmpobjid = CreateDynamicObject(19456, 228.883499, 235.651748, 999.966125, 0.000000, 0.000000, 89.900001, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschurchwall04_256", 0x00000000);
- tmpobjid = CreateDynamicObject(19456, 230.160934, 240.529769, 1003.374389, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "walp72S", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14534, "ab_wooziea", "walp72S", 0x00000000);
- tmpobjid = CreateDynamicObject(8572, 233.857345, 242.920913, 1000.471130, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 9583, "bigshap_sfw", "ship2wall_3", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14534, "ab_wooziea", "walp72S", 0xFFBFBFBF);
- SetDynamicObjectMaterial(tmpobjid, 2, 9583, "bigshap_sfw", "ship2wall_3", 0x00000000);
- tmpobjid = CreateDynamicObject(19456, 234.298706, 243.661804, 999.966125, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschurchwall04_256", 0x00000000);
- tmpobjid = CreateDynamicObject(19456, 230.094406, 240.432495, 999.966125, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschurchwall04_256", 0x00000000);
- tmpobjid = CreateDynamicObject(19456, 237.128692, 235.653503, 1003.374389, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschurchwall04_256", 0x00000000);
- tmpobjid = CreateDynamicObject(19456, 227.497695, 235.651504, 1003.374389, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschurchwall04_256", 0x00000000);
- tmpobjid = CreateDynamicObject(19456, 234.298706, 243.663803, 1003.374389, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschurchwall04_256", 0x00000000);
- tmpobjid = CreateDynamicObject(2151, 230.410995, 236.906600, 998.232299, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "black64", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0xFFBFBFBF);
- tmpobjid = CreateDynamicObject(2151, 230.409805, 235.543594, 998.233215, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "black64", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0xFFBFBFBF);
- tmpobjid = CreateDynamicObject(2154, 230.409805, 238.282394, 998.232727, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "black64", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0xFFBFBFBF);
- tmpobjid = CreateDynamicObject(2152, 230.409805, 239.624099, 998.232971, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "black64", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0xFFBFBFBF);
- tmpobjid = CreateDynamicObject(2153, 230.409805, 240.979995, 998.232971, 0.000000, 0.000000, 89.893898, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "black64", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0xFFBFBFBF);
- tmpobjid = CreateDynamicObject(2127, 231.379989, 242.010955, 998.184387, 0.000000, 0.000000, 49.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0xFFBFBFBF);
- SetDynamicObjectMaterial(tmpobjid, 1, 9583, "bigshap_sfw", "ship2wall_3", 0xFF990000);
- SetDynamicObjectMaterial(tmpobjid, 2, 10765, "airportgnd_sfse", "black64", 0x00000000);
- tmpobjid = CreateDynamicObject(19456, 232.120498, 243.308898, 999.970092, 0.000000, 0.000000, -41.875999, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschurchwall04_256", 0x00000000);
- tmpobjid = CreateDynamicObject(19456, 239.053924, 238.921981, 999.966125, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschurchwall04_256", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, 229.897994, 237.183303, 1001.639221, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0x00000000);
- tmpobjid = CreateDynamicObject(2273, 230.670104, 238.757598, 999.858276, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0x00000000);
- tmpobjid = CreateDynamicObject(2273, 230.670104, 239.641799, 999.858276, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0x00000000);
- tmpobjid = CreateDynamicObject(19437, 235.048797, 241.186996, 1003.374389, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschurchwall04_256", 0x00000000);
- tmpobjid = CreateDynamicObject(19437, 235.048797, 236.027603, 1003.374389, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschurchwall04_256", 0x00000000);
- tmpobjid = CreateDynamicObject(19437, 230.968734, 236.335617, 1003.374389, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschurchwall04_256", 0x00000000);
- tmpobjid = CreateDynamicObject(19437, 230.206268, 237.029907, 1003.374389, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "walp72S", 0x00000000);
- tmpobjid = CreateDynamicObject(19437, 230.968704, 241.469406, 1003.374389, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschurchwall04_256", 0x00000000);
- tmpobjid = CreateDynamicObject(19456, 230.968704, 247.081497, 1003.374389, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschurchwall04_256", 0x00000000);
- tmpobjid = CreateDynamicObject(19437, 230.089294, 240.752197, 1003.374389, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "walp72S", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14534, "ab_wooziea", "walp72S", 0x00000000);
- tmpobjid = CreateDynamicObject(3498, 234.984298, 241.757293, 1000.872619, -0.122299, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "walp72S", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14534, "ab_wooziea", "walp72S", 0xFFBFBFBF);
- tmpobjid = CreateDynamicObject(19377, 225.631225, 239.235336, 1003.908020, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "walp72S", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14534, "ab_wooziea", "walp72S", 0x00000000);
- tmpobjid = CreateDynamicObject(19456, 230.880722, 240.543502, 1005.357910, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschurchwall04_256", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, 225.647201, 237.152603, 1002.254211, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "walp72S", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14534, "ab_wooziea", "walp72S", 0x00000000);
- tmpobjid = CreateDynamicObject(3498, 238.824462, 243.387313, 1000.869140, -0.122299, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "walp72S", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14534, "ab_wooziea", "walp72S", 0xFFBFBFBF);
- tmpobjid = CreateDynamicObject(3498, 238.824462, 235.887451, 1000.884826, -0.122299, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "walp72S", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14534, "ab_wooziea", "walp72S", 0xFFBFBFBF);
- tmpobjid = CreateDynamicObject(2155, 233.124298, 236.223693, 998.233581, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "black64", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0xFFBFBFBF);
- tmpobjid = CreateDynamicObject(2155, 233.124298, 237.051696, 998.233581, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "black64", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0xFFBFBFBF);
- tmpobjid = CreateDynamicObject(2155, 232.661605, 236.058898, 998.233581, 0.000000, 0.000000, -90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "black64", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0xFFBFBFBF);
- tmpobjid = CreateDynamicObject(2155, 232.661605, 236.888107, 998.233581, 0.000000, 0.000000, -90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "black64", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0xFFBFBFBF);
- tmpobjid = CreateDynamicObject(19393, 231.942596, 241.899093, 1003.365966, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschurchwall04_256", 0x00000000);
- tmpobjid = CreateDynamicObject(19437, 234.351806, 241.899093, 1003.374389, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschurchwall04_256", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, 235.443191, 240.535339, 1004.526306, 0.000000, -50.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschurchwall04_256", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10101, "2notherbuildsfe", "Bow_church_grass_alt", 0x00000000);
- tmpobjid = CreateDynamicObject(19393, 234.774993, 235.639419, 999.976135, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschurchwall04_256", 0x00000000);
- tmpobjid = CreateDynamicObject(1491, 231.159301, 241.885696, 1001.727416, 0.000000, 0.000000, 0.122299, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "CJ_WOODDOOR5", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14534, "ab_wooziea", "CJ_WOODDOOR5", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 2, 14534, "ab_wooziea", "CJ_WOODDOOR5", 0x00000000);
- tmpobjid = CreateDynamicObject(2314, 237.869400, 239.767593, 998.234008, 0.000000, 0.000000, -90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "sa_wood08_128", 0x00000000);
- tmpobjid = CreateDynamicObject(2267, 238.902099, 239.068023, 999.779785, 0.000000, 0.000000, -90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "black64", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0x00000000);
- tmpobjid = CreateDynamicObject(19820, 239.498397, 238.485595, 999.357971, 0.000000, -90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "Bow_Abpave_Gen", 0xFF0000FF);
- tmpobjid = CreateDynamicObject(19820, 239.498397, 238.575607, 999.357971, 0.000000, -90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "Bow_Abpave_Gen", 0xFFFF0000);
- tmpobjid = CreateDynamicObject(19456, 239.053894, 229.766998, 999.966125, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 3922, "bistro", "ahoodfence2", 0x00000000);
- tmpobjid = CreateDynamicObject(19456, 233.803741, 230.788330, 999.966125, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 3922, "bistro", "ahoodfence2", 0x00000000);
- tmpobjid = CreateDynamicObject(19456, 236.186538, 230.739578, 999.966125, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 3922, "bistro", "ahoodfence2", 0x00000000);
- tmpobjid = CreateDynamicObject(2132, 234.378845, 232.013793, 998.233276, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "Bow_Abpave_Gen", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 2, 10765, "airportgnd_sfse", "white", 0x00000000);
- tmpobjid = CreateDynamicObject(2273, 234.381011, 232.543350, 999.817382, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "black64", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0x00000000);
- tmpobjid = CreateDynamicObject(2273, 234.103561, 232.656250, 999.717407, -90.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 8487, "ballyswater", "waterclear256", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 8487, "ballyswater", "waterclear256", 0x00000000);
- tmpobjid = CreateDynamicObject(2267, 237.810165, 234.338485, 998.254211, -90.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0xFF0000CC);
- tmpobjid = CreateDynamicObject(19377, 235.430191, 230.821777, 998.145324, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", 0x5E5E5EFF);
- tmpobjid = CreateDynamicObject(19437, 237.168792, 230.287796, 999.966125, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 3922, "bistro", "ahoodfence2", 0x00000000);
- tmpobjid = CreateDynamicObject(19437, 239.507644, 232.614715, 999.966125, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 3922, "bistro", "ahoodfence2", 0x00000000);
- tmpobjid = CreateDynamicObject(19981, 238.067459, 228.473846, 999.737304, -90.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 2, 10765, "airportgnd_sfse", "black64", 0x00000000);
- tmpobjid = CreateDynamicObject(19581, 238.935806, 231.660995, 1000.424621, 0.000000, 180.000000, -90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "black64", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0x00000000);
- tmpobjid = CreateDynamicObject(1510, 238.964492, 231.779296, 999.614379, 90.000000, 0.000000, -90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "Bow_Abpave_Gen", 0xFF0000FF);
- tmpobjid = CreateDynamicObject(1510, 238.964492, 231.574401, 999.614379, 90.000000, 0.000000, -90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "Bow_Abpave_Gen", 0xFF990000);
- tmpobjid = CreateDynamicObject(19823, 237.913406, 231.121994, 999.758911, 0.000000, 0.000000, -45.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "Bow_Abpave_Gen", 0x00000000);
- tmpobjid = CreateDynamicObject(2230, 239.346893, 237.819793, 999.042480, 0.000000, 0.000000, -90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 2, 14652, "ab_trukstpa", "mp_diner_wood", 0x00000000);
- tmpobjid = CreateDynamicObject(2230, 239.346893, 239.683303, 999.042480, 0.000000, 0.000000, -90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 2, 14652, "ab_trukstpa", "mp_diner_wood", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, 235.273666, 240.431472, 998.145324, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0x00000000);
- tmpobjid = CreateDynamicObject(19456, 240.329895, 235.621429, 999.966125, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 3922, "bistro", "ahoodfence2", 0x00000000);
- tmpobjid = CreateDynamicObject(19456, 239.048507, 230.719772, 999.966125, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 3922, "bistro", "ahoodfence2", 0x00000000);
- tmpobjid = CreateDynamicObject(19377, 227.810501, 246.816802, 1001.639221, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0x00000000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0x00000000);
- tmpobjid = CreateDynamicObject(19456, 240.335006, 229.401229, 999.966125, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 3922, "bistro", "ahoodfence2", 0x00000000);
- tmpobjid = CreateDynamicObject(19364, 238.893920, 231.024475, 998.173217, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 14815, "whore_main", "WH_tiles", 0x00000000);
- tmpobjid = CreateDynamicObject(19456, 236.508697, 235.620101, 1003.270019, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 3922, "bistro", "ahoodfence2", 0x00000000);
- tmpobjid = CreateDynamicObject(19393, 234.784988, 235.619522, 999.956115, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- SetDynamicObjectMaterial(tmpobjid, 0, 3922, "bistro", "ahoodfence2", 0x00000000);
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- tmpobjid = CreateDynamicObject(19456, 237.473999, 264.332489, 999.966125, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19456, 228.037597, 264.332489, 999.966125, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19377, 227.629501, 245.389312, 1001.606079, 0.000000, 90.000000, 47.991001, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2298, 234.860351, 237.615081, 1001.661804, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1649, 235.131500, 238.658599, 1003.235107, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19377, 235.273666, 240.431472, 1004.822082, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2205, 234.354705, 235.894897, 1001.727111, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19893, 233.698669, 236.133148, 1002.662597, 0.000000, 0.000000, 164.661849, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1715, 234.079177, 237.065689, 1001.727661, 0.000000, 0.000000, 325.671081, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1742, 234.212295, 235.533706, 1003.040283, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1649, 230.899734, 239.154266, 1003.332275, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19437, 230.206298, 241.361999, 1003.374389, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19377, 227.810501, 246.816802, 1001.639221, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2394, 230.614501, 239.277603, 1003.107299, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19981, 230.624298, 239.594802, 1003.458801, 90.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19981, 230.624298, 239.594802, 1003.458801, 90.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2386, 230.552001, 237.513198, 1002.374206, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2384, 230.537704, 238.084197, 1002.447509, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2070, 231.172393, 237.574005, 1002.452087, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2030, 233.741897, 239.988067, 998.626403, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2123, 233.765518, 238.841461, 998.821899, 0.000000, 0.000000, -90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2123, 234.567504, 239.998703, 998.821899, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2123, 233.822113, 241.211715, 998.821899, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2123, 232.936599, 240.022506, 998.821899, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2828, 232.933624, 236.005371, 1002.662536, 0.000000, 0.000000, 312.951995, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2864, 230.512405, 238.799804, 999.279418, 0.000000, 0.000000, 7.247700, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(11728, 233.204193, 235.662506, 999.797973, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19828, 231.369903, 240.268402, 1002.170715, -90.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19828, 231.369903, 237.588104, 1002.170715, -90.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19830, 230.496994, 236.379455, 999.284973, 0.000000, 0.000000, 135.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19874, 230.348800, 238.477905, 999.299377, 0.000000, 0.000000, 30.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(11743, 232.600097, 235.912094, 999.286071, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(11706, 233.266403, 243.509201, 998.128173, -0.122299, 0.000000, 0.733798, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19377, 235.430191, 230.821777, 1001.516723, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1753, 236.221038, 237.956100, 998.233520, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2295, 234.361053, 241.178894, 1001.727172, 0.000000, 0.000000, -45.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1754, 237.524246, 236.467269, 998.233215, 0.000000, 0.000000, 170.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2345, 231.055374, 238.244720, 1004.415100, 38.852199, 0.000000, 90.322998, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2345, 231.048492, 239.457519, 1004.415100, 38.852199, 0.000000, 90.322998, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2519, 237.152374, 235.117187, 998.233886, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2528, 236.010299, 231.282546, 998.233703, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1649, 240.036743, 232.634536, 999.802673, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1649, 237.143402, 229.617706, 999.802673, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19570, 238.232101, 231.135635, 999.758850, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19617, 236.296386, 243.611923, 1000.277893, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19617, 237.176406, 243.611892, 1000.011901, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19617, 238.056396, 243.611892, 999.783874, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(3810, 238.835311, 241.969619, 1000.638916, 0.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19456, 237.473999, 264.332489, 999.966125, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19456, 228.037597, 264.332489, 999.966125, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19377, 227.629501, 245.389312, 1001.606079, 0.000000, 90.000000, 47.991001, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19437, 230.206298, 241.361999, 1003.374389, 0.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19981, 230.624298, 239.594802, 1003.458801, 90.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19981, 230.624298, 239.594802, 1003.458801, 90.000000, 0.000000, 180.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2070, 231.172393, 240.260498, 1002.452087, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1731, 232.832794, 235.880706, 1003.413574, 0.000000, 0.000000, -90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19828, 231.369903, 240.268402, 1002.170715, -90.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19874, 230.348800, 238.477905, 999.299377, 0.000000, 0.000000, 30.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(19377, 235.430191, 230.821777, 1001.516723, 0.000000, 90.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2345, 231.055374, 238.244720, 1004.415100, 38.852199, 0.000000, 90.322998, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(2345, 231.048492, 239.457519, 1004.415100, 38.852199, 0.000000, 90.322998, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1649, 240.036697, 232.634506, 999.802673, -180.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1649, 237.143402, 229.617706, 999.802673, -180.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- tmpobjid = CreateDynamicObject(1649, 235.131500, 238.658599, 1003.235107, -180.000000, 0.000000, 90.000000, -1, -1, -1, 300.00, 300.00);
- }
- stock LoadMafiaBar() //by Vomau
- {
- new g_Object[255];
- g_Object[0] = CreateDynamicObject(19462, 1934.3580, -2067.6208, 787.1101, 0.0000, 90.0000, 0.0000); //wall102
- g_Object[1] = CreateDynamicObject(19462, 1930.8574, -2067.6208, 787.1101, 0.0000, 90.0000, 0.0000); //wall102
- g_Object[2] = CreateDynamicObject(19462, 1937.8492, -2067.6208, 787.1101, 0.0000, 90.0000, 0.0000); //wall102
- g_Object[3] = CreateDynamicObject(14399, 1930.0992, -2065.1816, 787.0446, 0.0000, 0.0000, 180.0000); //bar2
- g_Object[4] = CreateDynamicObject(19462, 1927.3575, -2067.6208, 787.1101, 0.0000, 90.0000, 0.0000); //wall102
- g_Object[5] = CreateDynamicObject(19462, 1923.8574, -2067.6218, 787.1101, 0.0000, 90.0000, 0.0000); //wall102
- g_Object[6] = CreateDynamicObject(19462, 1927.3575, -2077.2438, 787.1101, 0.0000, 90.0000, 0.0000); //wall102
- g_Object[7] = CreateDynamicObject(19462, 1930.8574, -2077.2412, 787.1101, 0.0000, 90.0000, 0.0000); //wall102
- g_Object[8] = CreateDynamicObject(19462, 1934.3479, -2077.2412, 787.1101, 0.0000, 90.0000, 0.0000); //wall102
- g_Object[9] = CreateDynamicObject(14596, 1932.1999, -2057.0659, 780.4937, 0.0000, 0.0000, 90.0000); //paperchase_stairs
- g_Object[10] = CreateDynamicObject(19384, 1928.4504, -2062.8691, 788.8214, 0.0000, 0.0000, 90.0000); //wall032
- g_Object[11] = CreateDynamicObject(19446, 1934.8619, -2062.8669, 788.8247, 0.0000, 0.0000, 90.0000); //wall086
- g_Object[12] = CreateDynamicObject(19446, 1922.0412, -2062.8669, 788.8247, 0.0000, 0.0000, 90.0000); //wall086
- g_Object[13] = CreateDynamicObject(19462, 1921.7386, -2069.2333, 787.6707, 0.0000, 90.0000, 0.0000); //wall102
- SetObjectMaterial(g_Object[13], 0, 14650, "ab_trukstpc", "sa_wood08_128", 0x00000000);
- g_Object[14] = CreateDynamicObject(19446, 1939.5998, -2067.6115, 788.8247, 0.0000, 0.0000, 0.0000); //wall086
- g_Object[15] = CreateDynamicObject(19462, 1923.4084, -2069.2333, 785.9907, 0.0000, 0.0000, 0.0000); //wall102
- SetObjectMaterial(g_Object[15], 0, 14650, "ab_trukstpc", "sa_wood08_128", 0x00000000);
- g_Object[16] = CreateDynamicObject(19462, 1918.2696, -2069.2333, 787.6707, 0.0000, 90.0000, 0.0000); //wall102
- SetObjectMaterial(g_Object[16], 0, 14650, "ab_trukstpc", "sa_wood08_128", 0x00000000);
- g_Object[17] = CreateDynamicObject(19370, 1921.4975, -2063.2912, 787.3480, 0.0000, 90.0000, 0.0000); //wall018
- SetObjectMaterial(g_Object[17], 0, 14650, "ab_trukstpc", "sa_wood08_128", 0x00000000);
- g_Object[18] = CreateDynamicObject(19173, 1916.5340, -2068.6420, 789.5040, 0.0000, 0.0000, 90.0000); //SAMPPicture2
- g_Object[19] = CreateDynamicObject(19370, 1921.1872, -2063.2912, 787.5081, 0.0000, 90.0000, 0.0000); //wall018
- SetObjectMaterial(g_Object[19], 0, 14650, "ab_trukstpc", "sa_wood08_128", 0x00000000);
- g_Object[20] = CreateDynamicObject(19370, 1920.9277, -2064.5620, 787.6281, 0.0000, 90.0000, 0.0000); //wall018
- SetObjectMaterial(g_Object[20], 0, 14650, "ab_trukstpc", "sa_wood08_128", 0x00000000);
- g_Object[21] = CreateDynamicObject(19446, 1920.8009, -2072.4907, 788.8247, 0.0000, 0.0000, 90.0000); //wall086
- g_Object[22] = CreateDynamicObject(19446, 1940.4713, -2072.4907, 788.8247, 0.0000, 0.0000, 90.0000); //wall086
- g_Object[23] = CreateDynamicObject(19370, 1921.8686, -2064.9624, 785.9771, 0.0000, 0.0000, 90.0000); //wall018
- SetObjectMaterial(g_Object[23], 0, 14650, "ab_trukstpc", "sa_wood08_128", 0x00000000);
- g_Object[24] = CreateDynamicObject(19354, 1919.2125, -2063.2797, 788.8300, 0.0000, 0.0000, 0.0000); //wall002
- g_Object[25] = CreateDynamicObject(19354, 1917.7021, -2064.8093, 788.8300, 0.0000, 0.0000, 90.0000); //wall002
- g_Object[26] = CreateDynamicObject(19446, 1916.4503, -2069.6928, 788.8247, 0.0000, 0.0000, 0.0000); //wall086
- g_Object[27] = CreateDynamicObject(19446, 1925.5412, -2077.2121, 788.8247, 0.0000, 0.0000, 0.0000); //wall086
- g_Object[28] = CreateDynamicObject(19446, 1935.5804, -2077.2121, 788.8247, 0.0000, 0.0000, 0.0000); //wall086
- g_Object[29] = CreateDynamicObject(19384, 1930.5509, -2081.9128, 788.8314, 0.0000, 0.0000, 90.0000); //wall032
- g_Object[30] = CreateDynamicObject(19354, 1933.7218, -2081.9125, 788.8300, 0.0000, 0.0000, 90.0000); //wall002
- g_Object[31] = CreateDynamicObject(19354, 1936.9316, -2081.9125, 788.8300, 0.0000, 0.0000, 90.0000); //wall002
- g_Object[32] = CreateDynamicObject(19354, 1927.3514, -2081.9125, 788.8300, 0.0000, 0.0000, 90.0000); //wall002
- g_Object[33] = CreateDynamicObject(19354, 1924.1418, -2081.9125, 788.8300, 0.0000, 0.0000, 90.0000); //wall002
- g_Object[34] = CreateDynamicObject(1569, 1929.7821, -2081.8515, 787.1881, 0.0000, 0.0000, 0.0000); //ADAM_V_DOOR
- g_Object[35] = CreateDynamicObject(11711, 1930.5190, -2081.8581, 789.9785, 0.0000, 0.0000, 0.0000); //ExitSign1
- g_Object[36] = CreateDynamicObject(19454, 1930.7381, -2076.9965, 790.5838, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[37] = CreateDynamicObject(19454, 1927.2679, -2076.9965, 790.5838, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[38] = CreateDynamicObject(19454, 1934.2379, -2076.9965, 790.5838, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[39] = CreateDynamicObject(19454, 1923.8684, -2067.6198, 790.5838, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[40] = CreateDynamicObject(19454, 1920.3879, -2067.6198, 790.5838, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[41] = CreateDynamicObject(19454, 1916.8979, -2067.6198, 790.5838, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[42] = CreateDynamicObject(19454, 1927.3686, -2067.6198, 790.5838, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[43] = CreateDynamicObject(19454, 1930.8608, -2067.6198, 790.5838, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[44] = CreateDynamicObject(19454, 1934.3509, -2067.6198, 790.5838, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[45] = CreateDynamicObject(19454, 1937.8424, -2067.6198, 790.5838, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[46] = CreateDynamicObject(19454, 1937.7076, -2076.9965, 790.5838, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[47] = CreateDynamicObject(19462, 1924.9068, -2068.1826, 781.3106, 0.0000, 90.0000, 0.0000); //wall102
- SetObjectMaterial(g_Object[47], 0, 8486, "ballys02", "walltiles_128", 0x00000000);
- g_Object[48] = CreateDynamicObject(19462, 1928.3791, -2068.1826, 781.3106, 0.0000, 90.0000, 0.0000); //wall102
- SetObjectMaterial(g_Object[48], 0, 8486, "ballys02", "walltiles_128", 0x00000000);
- g_Object[49] = CreateDynamicObject(19454, 1926.3010, -2072.8537, 783.0324, 0.0000, 0.0000, 90.0000); //wall094
- SetObjectMaterial(g_Object[49], 0, 2514, "cj_bathroom", "cj_toilet", 0x00000000);
- g_Object[50] = CreateDynamicObject(19454, 1923.8004, -2068.1948, 783.0424, 0.0000, 0.0000, 0.0000); //wall094
- SetObjectMaterial(g_Object[50], 0, 2514, "cj_bathroom", "cj_toilet", 0x00000000);
- g_Object[51] = CreateDynamicObject(19454, 1930.0891, -2068.1948, 783.0324, 0.0000, 0.0000, 0.0000); //wall094
- SetObjectMaterial(g_Object[51], 0, 2514, "cj_bathroom", "cj_toilet", 0x00000000);
- g_Object[52] = CreateDynamicObject(19454, 1922.1009, -2063.4123, 783.0424, 0.0000, 0.0000, 90.0000); //wall094
- SetObjectMaterial(g_Object[52], 0, 2514, "cj_bathroom", "cj_toilet", 0x00000000);
- g_Object[53] = CreateDynamicObject(1523, 1927.5394, -2072.8798, 781.3563, 0.0000, 0.0000, 90.0000); //Gen_doorEXT10
- g_Object[54] = CreateDynamicObject(2528, 1924.4283, -2068.8024, 781.4180, 0.0000, 0.0000, 90.0000); //CJ_TOILET3
- g_Object[55] = CreateDynamicObject(2528, 1924.4283, -2072.0649, 781.4180, 0.0000, 0.0000, 90.0000); //CJ_TOILET3
- g_Object[56] = CreateDynamicObject(19454, 1922.7518, -2071.2761, 783.0424, 0.0000, 0.0000, 90.0000); //wall094
- SetObjectMaterial(g_Object[56], 0, 2514, "cj_bathroom", "cj_toilet", 0x00000000);
- g_Object[57] = CreateDynamicObject(2528, 1924.4283, -2070.3840, 781.4180, 0.0000, 0.0000, 90.0000); //CJ_TOILET3
- g_Object[58] = CreateDynamicObject(1523, 1927.5394, -2071.1884, 781.3563, 0.0000, 0.0000, 90.0000); //Gen_doorEXT10
- g_Object[59] = CreateDynamicObject(19454, 1922.7518, -2069.5844, 783.0424, 0.0000, 0.0000, 90.0000); //wall094
- SetObjectMaterial(g_Object[59], 0, 2514, "cj_bathroom", "cj_toilet", 0x00000000);
- g_Object[60] = CreateDynamicObject(1523, 1927.5394, -2069.5278, 781.3563, 0.0000, 0.0000, 90.0000); //Gen_doorEXT10
- g_Object[61] = CreateDynamicObject(19454, 1922.7518, -2067.9238, 783.0424, 0.0000, 0.0000, 90.0000); //wall094
- SetObjectMaterial(g_Object[61], 0, 2514, "cj_bathroom", "cj_toilet", 0x00000000);
- g_Object[62] = CreateDynamicObject(2523, 1924.3846, -2067.1020, 781.4055, 0.0000, 0.0000, 90.0000); //CJ_B_SINK3
- g_Object[63] = CreateDynamicObject(2523, 1924.3846, -2065.1105, 781.4055, 0.0000, 0.0000, 90.0000); //CJ_B_SINK3
- g_Object[64] = CreateDynamicObject(2741, 1923.9969, -2067.2949, 782.9663, 0.0000, 0.0000, 90.0000); //CJ_SOAP_DISP
- g_Object[65] = CreateDynamicObject(2741, 1923.9969, -2063.8842, 782.9663, 0.0000, 0.0000, 90.0000); //CJ_SOAP_DISP
- g_Object[66] = CreateDynamicObject(14662, 1922.1368, -2066.2858, 783.4586, 0.0000, 0.0000, 90.0000); //int_tatooA02
- g_Object[67] = CreateDynamicObject(19454, 1925.5974, -2068.1948, 783.9826, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[68] = CreateDynamicObject(19454, 1929.0870, -2068.1948, 783.9826, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[69] = CreateDynamicObject(16779, 1920.0130, -2068.3803, 790.9630, 0.0000, 0.0000, 0.0000); //ufo_light02
- g_Object[70] = CreateDynamicObject(1502, 1927.7169, -2063.4946, 775.5220, 0.0000, 0.0000, 0.0000); //Gen_doorINT04
- g_Object[71] = CreateDynamicObject(2685, 1923.9239, -2065.5805, 783.0280, 0.0000, 0.0000, 90.0000); //CJ_food_post1
- g_Object[72] = CreateDynamicObject(2773, 1923.2735, -2069.5253, 788.2258, 0.0000, 0.0000, 0.0000); //CJ_AIRPRT_BAR
- g_Object[73] = CreateDynamicObject(19391, 1928.4466, -2063.4157, 783.0435, 0.0000, 0.0000, 90.0000); //wall039
- SetObjectMaterial(g_Object[73], 0, 2514, "cj_bathroom", "cj_toilet", 0x00000000);
- g_Object[74] = CreateDynamicObject(2773, 1923.2735, -2071.4472, 788.2258, 0.0000, 0.0000, 0.0000); //CJ_AIRPRT_BAR
- g_Object[75] = CreateDynamicObject(2773, 1923.2735, -2067.6040, 788.2258, 0.0000, 0.0000, 0.0000); //CJ_AIRPRT_BAR
- g_Object[76] = CreateDynamicObject(2773, 1923.2735, -2065.6921, 788.2258, 0.0000, 0.0000, 0.0000); //CJ_AIRPRT_BAR
- g_Object[77] = CreateDynamicObject(2773, 1923.2735, -2073.3784, 788.0457, 0.0000, 0.0000, 0.0000); //CJ_AIRPRT_BAR
- g_Object[78] = CreateDynamicObject(2773, 1922.3326, -2064.7312, 788.2258, 0.0000, 0.0000, 90.0000); //CJ_AIRPRT_BAR
- g_Object[79] = CreateDynamicObject(19354, 1930.8208, -2082.0690, 788.8300, 0.0000, 0.0000, 90.0000); //wall002
- g_Object[80] = CreateDynamicObject(1757, 1911.4189, -2068.1005, 769.6857, 0.0000, 0.0000, 270.0000); //LOW_COUCH_5
- g_Object[81] = CreateDynamicObject(19463, 1929.3105, -2059.1347, 769.7100, 0.0000, 90.0000, 0.0000); //wall103
- g_Object[82] = CreateDynamicObject(19463, 1925.8302, -2059.1347, 769.7100, 0.0000, 90.0000, 0.0000); //wall103
- g_Object[83] = CreateDynamicObject(19463, 1922.3387, -2059.1347, 769.7100, 0.0000, 90.0000, 0.0000); //wall103
- g_Object[84] = CreateDynamicObject(19463, 1918.8784, -2059.1347, 769.7100, 0.0000, 90.0000, 0.0000); //wall103
- g_Object[85] = CreateDynamicObject(19463, 1915.4173, -2059.1347, 769.7100, 0.0000, 90.0000, 0.0000); //wall103
- g_Object[86] = CreateDynamicObject(19463, 1911.9870, -2059.1347, 769.7100, 0.0000, 90.0000, 0.0000); //wall103
- g_Object[87] = CreateDynamicObject(19463, 1926.2480, -2065.6965, 769.7100, 0.0000, 90.0000, 90.0000); //wall103
- g_Object[88] = CreateDynamicObject(19463, 1916.6477, -2065.6965, 769.7100, 0.0000, 90.0000, 90.0000); //wall103
- g_Object[89] = CreateDynamicObject(19463, 1907.0279, -2065.6965, 769.7100, 0.0000, 90.0000, 90.0000); //wall103
- g_Object[90] = CreateDynamicObject(19463, 1907.0279, -2069.1960, 769.7100, 0.0000, 90.0000, 90.0000); //wall103
- g_Object[91] = CreateDynamicObject(19456, 1926.3155, -2067.5141, 771.4650, 0.0000, 0.0000, 90.0000); //wall096
- g_Object[92] = CreateDynamicObject(19456, 1916.7047, -2067.5141, 771.4650, 0.0000, 0.0000, 90.0000); //wall096
- g_Object[93] = CreateDynamicObject(19456, 1907.0246, -2070.8374, 771.4650, 0.0000, 0.0000, 90.0000); //wall096
- g_Object[94] = CreateDynamicObject(19456, 1905.4748, -2063.9567, 771.4650, 0.0000, 0.0000, 90.0000); //wall096
- g_Object[95] = CreateDynamicObject(19456, 1926.3155, -2054.3454, 771.4650, 0.0000, 0.0000, 90.0000); //wall096
- g_Object[96] = CreateDynamicObject(19456, 1916.7047, -2054.3430, 771.4650, 0.0000, 0.0000, 90.0000); //wall096
- g_Object[97] = CreateDynamicObject(19456, 1930.9449, -2065.4951, 771.4650, 0.0000, 0.0000, 0.0000); //wall096
- g_Object[98] = CreateDynamicObject(19393, 1930.9427, -2059.0942, 771.4613, 0.0000, 0.0000, 0.0000); //wall041
- g_Object[99] = CreateDynamicObject(19456, 1910.2043, -2059.0939, 771.4650, 0.0000, 0.0000, 0.0000); //wall096
- g_Object[100] = CreateDynamicObject(19456, 1902.2142, -2067.1550, 771.4650, 0.0000, 0.0000, 0.0000); //wall096
- g_Object[101] = CreateDynamicObject(19393, 1930.9427, -2055.9211, 771.4613, 0.0000, 0.0000, 0.0000); //wall041
- g_Object[102] = CreateDynamicObject(19456, 1911.8547, -2072.2539, 771.4550, 0.0000, 0.0000, 0.0000); //wall096
- g_Object[103] = CreateDynamicObject(19364, 1910.2894, -2054.3430, 771.4639, 0.0000, 0.0000, 90.0000); //wall012
- g_Object[104] = CreateDynamicObject(19454, 1929.1512, -2062.6313, 773.2785, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[105] = CreateDynamicObject(19454, 1929.1512, -2053.0300, 773.2785, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[106] = CreateDynamicObject(19454, 1925.6606, -2062.6413, 773.2785, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[107] = CreateDynamicObject(19454, 1922.1606, -2062.6413, 773.2785, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[108] = CreateDynamicObject(19454, 1918.6601, -2062.6413, 773.2785, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[109] = CreateDynamicObject(19454, 1915.1695, -2062.6413, 773.2785, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[110] = CreateDynamicObject(19454, 1911.6894, -2062.6413, 773.2785, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[111] = CreateDynamicObject(19454, 1925.6721, -2053.0300, 773.2785, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[112] = CreateDynamicObject(19454, 1922.2019, -2053.0300, 773.2785, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[113] = CreateDynamicObject(19454, 1918.7214, -2053.0300, 773.2785, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[114] = CreateDynamicObject(19454, 1915.2508, -2053.0300, 773.2785, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[115] = CreateDynamicObject(19454, 1911.7999, -2053.0300, 773.2785, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[116] = CreateDynamicObject(19454, 1908.2097, -2066.8229, 773.2785, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[117] = CreateDynamicObject(19454, 1904.7187, -2066.8229, 773.2785, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[118] = CreateDynamicObject(19454, 1901.2193, -2066.8229, 773.2785, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[119] = CreateDynamicObject(19454, 1911.6894, -2072.2333, 773.2785, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[120] = CreateDynamicObject(922, 1919.0996, -2054.8686, 770.6701, 0.0000, 0.0000, 0.0000); //Packing_carates1
- g_Object[121] = CreateDynamicObject(2991, 1907.1500, -2065.0664, 770.4157, 0.0000, 0.0000, 0.0000); //imy_bbox
- g_Object[122] = CreateDynamicObject(925, 1912.3391, -2055.3593, 770.8280, 0.0000, 0.0000, 0.0000); //RACK2
- g_Object[123] = CreateDynamicObject(2008, 1902.7657, -2069.7302, 769.7537, 0.0000, 0.0000, 90.0000); //officedesk1
- g_Object[124] = CreateDynamicObject(1757, 1908.4886, -2070.1210, 769.6857, 0.0000, 0.0000, 90.0000); //LOW_COUCH_5
- g_Object[125] = CreateDynamicObject(1523, 1927.6483, -2063.4174, 781.2761, 0.0000, 0.0000, 0.0000); //Gen_doorEXT10
- g_Object[126] = CreateDynamicObject(2115, 1909.9940, -2069.5693, 769.6132, 0.0000, 0.0000, 90.0000); //LOW_DINNING_1
- g_Object[127] = CreateDynamicObject(3015, 1902.4930, -2064.3315, 769.8956, 0.0000, 0.0000, 0.0000); //cr_cratestack
- g_Object[128] = CreateDynamicObject(3015, 1902.4930, -2064.7919, 769.8956, 0.0000, 0.0000, 0.0000); //cr_cratestack
- g_Object[129] = CreateDynamicObject(3015, 1902.4930, -2065.3020, 769.8956, 0.0000, 0.0000, 0.0000); //cr_cratestack
- g_Object[130] = CreateDynamicObject(2358, 1903.6739, -2064.3686, 769.9071, 0.0000, 0.0000, 0.0000); //AMMO_BOX_c2
- g_Object[131] = CreateDynamicObject(2358, 1903.6739, -2064.3686, 770.1475, 0.0000, 0.0000, 0.0000); //AMMO_BOX_c2
- g_Object[132] = CreateDynamicObject(2358, 1903.6739, -2064.3686, 770.3875, 0.0000, 0.0000, 0.0000); //AMMO_BOX_c2
- g_Object[133] = CreateDynamicObject(2359, 1903.8443, -2064.8977, 769.9848, 0.0000, 0.0000, 0.0000); //AMMO_BOX_c5
- g_Object[134] = CreateDynamicObject(3014, 1904.7419, -2064.4174, 769.9874, 0.0000, 0.0000, 0.0000); //cr_guncrate
- g_Object[135] = CreateDynamicObject(3014, 1904.7419, -2065.0480, 769.9874, 0.0000, 0.0000, 0.0000); //cr_guncrate
- g_Object[136] = CreateDynamicObject(3014, 1904.7419, -2065.6286, 769.9874, 0.0000, 0.0000, 0.0000); //cr_guncrate
- g_Object[137] = CreateDynamicObject(1431, 1909.6958, -2065.0454, 770.3225, 0.0000, 0.0000, 90.0000); //DYN_BOX_PILE
- g_Object[138] = CreateDynamicObject(1431, 1905.9957, -2070.2287, 770.3438, 0.0000, 0.0000, 0.0000); //DYN_BOX_PILE
- g_Object[139] = CreateDynamicObject(1415, 1923.6854, -2066.8840, 769.8660, 0.0000, 0.0000, 180.0000); //DYN_DUMPSTER
- g_Object[140] = CreateDynamicObject(1415, 1926.1561, -2066.8840, 769.8660, 0.0000, 0.0000, 180.0000); //DYN_DUMPSTER
- g_Object[141] = CreateDynamicObject(1372, 1928.6937, -2066.7958, 769.9215, 0.0000, 0.0000, 180.0000); //CJ_Dump2_LOW
- g_Object[142] = CreateDynamicObject(14782, 1910.7148, -2060.9226, 770.7747, 0.0000, 0.0000, 90.0000); //int3int_boxing30
- g_Object[143] = CreateDynamicObject(19899, 1930.4128, -2056.0454, 769.7197, 0.0000, 0.0000, 180.0000); //ToolCabinet1
- g_Object[144] = CreateDynamicObject(19899, 1930.4128, -2062.1147, 769.7197, 0.0000, 0.0000, 180.0000); //ToolCabinet1
- g_Object[145] = CreateDynamicObject(1502, 1931.0012, -2059.8361, 769.7406, 0.0000, 0.0000, 90.0000); //Gen_doorINT04
- g_Object[146] = CreateDynamicObject(19921, 1907.7855, -2065.9799, 771.1218, 0.0000, 0.0000, -20.7999); //CutsceneToolBox1
- g_Object[147] = CreateDynamicObject(3630, 1921.3487, -2059.4772, 771.0504, 0.0000, 0.0000, 0.0000); //crdboxes2_LAs
- g_Object[148] = CreateDynamicObject(2945, 1903.4914, -2065.6523, 770.4215, -58.2999, 0.0000, 1.8997); //kmb_netting
- g_Object[149] = CreateDynamicObject(3630, 1921.3487, -2062.5786, 771.0504, 0.0000, 0.0000, 0.0000); //crdboxes2_LAs
- g_Object[150] = CreateDynamicObject(1421, 1915.8011, -2062.7038, 770.5410, 0.0000, 0.0000, 270.0000); //DYN_BOXES
- g_Object[151] = CreateDynamicObject(1421, 1915.8011, -2060.7451, 770.5410, 0.0000, 0.0000, 270.0000); //DYN_BOXES
- g_Object[152] = CreateDynamicObject(1421, 1915.8011, -2058.8049, 770.5410, 0.0000, 0.0000, 270.0000); //DYN_BOXES
- g_Object[153] = CreateDynamicObject(19454, 1932.6523, -2052.6596, 773.2785, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[154] = CreateDynamicObject(925, 1914.8994, -2055.3593, 770.8280, 0.0000, 0.0000, 0.0000); //RACK2
- g_Object[155] = CreateDynamicObject(922, 1924.4698, -2054.8686, 770.6701, 0.0000, 0.0000, 0.0000); //Packing_carates1
- g_Object[156] = CreateDynamicObject(934, 1916.8509, -2066.6181, 770.9862, 0.0000, 0.0000, 90.0000); //GENERATOR_BIG
- g_Object[157] = CreateDynamicObject(1716, 1931.0301, -2068.0590, 787.1712, 0.0000, 0.0000, 0.0000); //kb_slot_stool
- g_Object[158] = CreateDynamicObject(1716, 1932.5101, -2068.0590, 787.1712, 0.0000, 0.0000, 0.0000); //kb_slot_stool
- g_Object[159] = CreateDynamicObject(1716, 1938.7218, -2068.0590, 787.1712, 0.0000, 0.0000, 0.0000); //kb_slot_stool
- g_Object[160] = CreateDynamicObject(1716, 1934.1307, -2068.0590, 787.1712, 0.0000, 0.0000, 0.0000); //kb_slot_stool
- g_Object[161] = CreateDynamicObject(1716, 1935.6213, -2068.0590, 787.1712, 0.0000, 0.0000, 0.0000); //kb_slot_stool
- g_Object[162] = CreateDynamicObject(2531, 1938.7552, -2063.6208, 787.2473, 0.0000, 0.0000, -37.5000); //CJ_OFF2_LIC_1_M
- g_Object[163] = CreateDynamicObject(1716, 1937.1816, -2068.0590, 787.1712, 0.0000, 0.0000, 0.0000); //kb_slot_stool
- g_Object[164] = CreateDynamicObject(1716, 1929.8205, -2067.5190, 787.1712, 0.0000, 0.0000, 0.0000); //kb_slot_stool
- g_Object[165] = CreateDynamicObject(11686, 1935.2600, -2063.3491, 787.1337, 0.0000, 0.0000, 180.0000); //CBarSection1
- g_Object[166] = CreateDynamicObject(2964, 1921.6770, -2066.9404, 787.8568, 0.0000, 0.0000, 137.8999); //k_pooltablesm
- g_Object[167] = CreateDynamicObject(2964, 1921.5310, -2070.0969, 787.8568, 0.0000, 0.0000, 137.8999); //k_pooltablesm
- g_Object[168] = CreateDynamicObject(1723, 1917.0714, -2071.5068, 787.6837, 0.0000, 0.0000, 90.0000); //mrk_seating1
- g_Object[169] = CreateDynamicObject(1723, 1917.0714, -2067.9150, 787.6837, 0.0000, 0.0000, 90.0000); //mrk_seating1
- g_Object[170] = CreateDynamicObject(1549, 1917.0582, -2068.6945, 787.7318, 0.0000, 0.0000, 90.0000); //CJ_ASHTRAY_b
- g_Object[171] = CreateDynamicObject(19462, 1926.9071, -2068.3015, 775.5100, 0.0000, 90.0000, 0.0000); //wall102
- g_Object[172] = CreateDynamicObject(19462, 1930.4068, -2068.3015, 775.5100, 0.0000, 90.0000, 0.0000); //wall102
- g_Object[173] = CreateDynamicObject(19446, 1932.2037, -2068.3125, 777.2758, 0.0000, 0.0000, 0.0000); //wall086
- g_Object[174] = CreateDynamicObject(19446, 1925.1617, -2068.3125, 777.2758, 0.0000, 0.0000, 0.0000); //wall086
- g_Object[175] = CreateDynamicObject(19446, 1928.7209, -2073.1301, 777.2758, 0.0000, 0.0000, 90.0000); //wall086
- g_Object[176] = CreateDynamicObject(19354, 1925.3006, -2063.4863, 777.2846, 0.0000, 0.0000, 90.0000); //wall002
- g_Object[177] = CreateDynamicObject(19354, 1931.7110, -2063.4863, 777.2846, 0.0000, 0.0000, 90.0000); //wall002
- g_Object[178] = CreateDynamicObject(1671, 1930.2561, -2070.2370, 776.0172, 0.0000, 0.0000, 270.0000); //swivelchair_A
- g_Object[179] = CreateDynamicObject(19454, 1926.8996, -2068.3708, 778.9890, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[180] = CreateDynamicObject(19454, 1930.3996, -2068.3708, 778.9890, 0.0000, 90.0000, 0.0000); //wall094
- g_Object[181] = CreateDynamicObject(19384, 1928.5058, -2063.4855, 777.2847, 0.0000, 0.0000, 90.0000); //wall032
- g_Object[182] = CreateDynamicObject(2357, 1928.7270, -2068.9177, 775.9589, 0.0000, 0.0000, 90.0000); //DUNC_DINNING
- g_Object[183] = CreateDynamicObject(19999, 1928.7159, -2071.9990, 775.5831, 0.0000, 0.0000, 180.0000); //CutsceneChair2
- g_Object[184] = CreateDynamicObject(1671, 1930.2561, -2068.9257, 776.0172, 0.0000, 0.0000, 270.0000); //swivelchair_A
- g_Object[185] = CreateDynamicObject(1671, 1930.2561, -2067.6245, 776.0172, 0.0000, 0.0000, 270.0000); //swivelchair_A
- g_Object[186] = CreateDynamicObject(1671, 1927.2154, -2070.2370, 776.0172, 0.0000, 0.0000, 90.0000); //swivelchair_A
- g_Object[187] = CreateDynamicObject(1671, 1927.2154, -2068.9758, 776.0172, 0.0000, 0.0000, 90.0000); //swivelchair_A
- g_Object[188] = CreateDynamicObject(1671, 1927.2154, -2067.7446, 776.0172, 0.0000, 0.0000, 90.0000); //swivelchair_A
- g_Object[189] = CreateDynamicObject(19786, 1928.7253, -2073.1701, 777.8413, 0.0000, 0.0000, 180.0000); //LCDTVBig1
- g_Object[190] = CreateDynamicObject(2427, 1935.3022, -2062.9321, 788.1640, 0.0000, 0.0000, 0.0000); //CJ_FF_JUICE_L
- g_Object[191] = CreateDynamicObject(2965, 1921.1938, -2066.7485, 788.7733, 0.0000, 0.0000, 0.0000); //k_pooltriangle01
- g_Object[192] = CreateDynamicObject(338, 1921.9405, -2067.9169, 788.9223, -47.0000, 99.0998, 114.8000); //poolcue
- g_Object[193] = CreateDynamicObject(19824, 1932.9814, -2063.1633, 788.2312, 0.0000, 0.0000, 0.0000); //AlcoholBottle5
- g_Object[194] = CreateDynamicObject(19823, 1933.1887, -2063.1735, 788.2221, 0.0000, 0.0000, 0.0000); //AlcoholBottle4
- g_Object[195] = CreateDynamicObject(1512, 1933.4559, -2063.1713, 788.3676, 0.0000, 0.0000, 164.2998); //DYN_WINE_03
- g_Object[196] = CreateDynamicObject(1669, 1937.1075, -2063.3168, 788.3765, 0.0000, 0.0000, 0.0000); //propwinebotl1
- g_Object[197] = CreateDynamicObject(1544, 1937.2845, -2063.3740, 788.2564, 0.0000, 0.0000, 0.0000); //CJ_BEER_B_1
- g_Object[198] = CreateDynamicObject(1486, 1937.4991, -2063.3303, 788.3745, 0.0000, 0.0000, 0.0000); //DYN_BEER_1
- g_Object[199] = CreateDynamicObject(2429, 1934.7558, -2062.6926, 788.3518, 0.0000, 0.0000, 0.0000); //CJ_FF_CUP_DISP
- g_Object[200] = CreateDynamicObject(2429, 1936.2163, -2062.6926, 788.3518, 0.0000, 0.0000, 0.0000); //CJ_FF_CUP_DISP
- g_Object[201] = CreateDynamicObject(1665, 1931.4923, -2067.0949, 788.4442, 0.0000, 0.0000, 0.0000); //propashtray1
- g_Object[202] = CreateDynamicObject(1665, 1933.0218, -2067.0949, 788.4442, 0.0000, 0.0000, 0.0000); //propashtray1
- g_Object[203] = CreateDynamicObject(1665, 1934.7219, -2067.0949, 788.4442, 0.0000, 0.0000, 0.0000); //propashtray1
- g_Object[204] = CreateDynamicObject(1665, 1936.4023, -2067.0949, 788.4442, 0.0000, 0.0000, 0.0000); //propashtray1
- g_Object[205] = CreateDynamicObject(1665, 1938.3227, -2067.0949, 788.4442, 0.0000, 0.0000, 0.0000); //propashtray1
- g_Object[206] = CreateDynamicObject(338, 1922.0329, -2067.8996, 788.8920, -47.0000, 99.0998, 114.8000); //poolcue
- g_Object[207] = CreateDynamicObject(3106, 1921.3863, -2070.0986, 788.7880, 0.0000, 0.0000, 0.0000); //k_poolball8
- g_Object[208] = CreateDynamicObject(3003, 1921.8183, -2070.3898, 788.7774, 0.0000, 0.0000, 0.0000); //k_poolballcue
- g_Object[209] = CreateDynamicObject(2998, 1921.3243, -2069.6850, 788.7976, 0.0000, 0.0000, 0.0000); //k_poolballstp04
- g_Object[210] = CreateDynamicObject(3100, 1921.7821, -2070.0390, 788.7827, 0.0000, 0.0000, 0.0000); //k_poolballspt02
- g_Object[211] = CreateDynamicObject(3105, 1921.0233, -2070.0473, 788.7866, 0.0000, 0.0000, 0.0000); //k_poolballspt07
- g_Object[212] = CreateDynamicObject(2997, 1922.1944, -2070.2375, 788.7943, 0.0000, 0.0000, 0.0000); //k_poolballstp03
- g_Object[213] = CreateDynamicObject(2996, 1921.8216, -2070.6879, 788.7901, 0.0000, 0.0000, 0.0000); //k_poolballstp02
- g_Object[214] = CreateDynamicObject(3103, 1920.8210, -2069.7497, 788.7860, 0.0000, 0.0000, 0.0000); //k_poolballspt05
- g_Object[215] = CreateDynamicObject(1723, 1934.5622, -2081.2836, 787.1287, 0.0000, 0.0000, 180.0000); //mrk_seating1
- g_Object[216] = CreateDynamicObject(1723, 1928.4809, -2081.2836, 787.1287, 0.0000, 0.0000, 180.0000); //mrk_seating1
- g_Object[217] = CreateDynamicObject(2315, 1932.8177, -2079.8608, 787.1762, 0.0000, 0.0000, 0.0000); //CJ_TV_TABLE4
- g_Object[218] = CreateDynamicObject(1723, 1932.5406, -2078.4121, 787.1287, 0.0000, 0.0000, 0.0000); //mrk_seating1
- g_Object[219] = CreateDynamicObject(1502, 1927.6556, -2062.8757, 787.0744, 0.0000, 0.0000, 0.0000); //Gen_doorINT04
- g_Object[220] = CreateDynamicObject(1723, 1934.5614, -2076.4445, 787.1287, 0.0000, 0.0000, 180.0000); //mrk_seating1
- g_Object[221] = CreateDynamicObject(1723, 1926.4997, -2073.4812, 787.1287, 0.0000, 0.0000, 0.0000); //mrk_seating1
- g_Object[222] = CreateDynamicObject(1723, 1926.4404, -2078.3908, 787.1287, 0.0000, 0.0000, 0.0000); //mrk_seating1
- g_Object[223] = CreateDynamicObject(2315, 1932.8176, -2074.9907, 787.1762, 0.0000, 0.0000, 0.0000); //CJ_TV_TABLE4
- g_Object[224] = CreateDynamicObject(2315, 1926.7375, -2079.8608, 787.1762, 0.0000, 0.0000, 0.0000); //CJ_TV_TABLE4
- g_Object[225] = CreateDynamicObject(2315, 1926.7375, -2074.9907, 787.1762, 0.0000, 0.0000, 0.0000); //CJ_TV_TABLE4
- g_Object[226] = CreateDynamicObject(1723, 1928.4713, -2076.4445, 787.1287, 0.0000, 0.0000, 180.0000); //mrk_seating1
- g_Object[227] = CreateDynamicObject(1723, 1932.5699, -2073.4812, 787.1287, 0.0000, 0.0000, 0.0000); //mrk_seating1
- g_Object[228] = CreateDynamicObject(19370, 1921.7275, -2063.2912, 787.1978, 0.0000, 90.0000, 0.0000); //wall018
- SetObjectMaterial(g_Object[228], 0, 14650, "ab_trukstpc", "sa_wood08_128", 0x00000000);
- g_Object[229] = CreateDynamicObject(2961, 1930.0102, -2062.9467, 788.6464, 0.0000, 0.0000, 180.0000); //fire_break
- g_Object[230] = CreateDynamicObject(1778, 1930.3603, -2061.7004, 787.2133, 0.0000, 0.0000, 270.0000); //CJ_MOP_PAIL
- g_Object[231] = CreateDynamicObject(1514, 1930.5791, -2066.6240, 788.5355, 0.0000, 0.0000, -43.1999); //DYN_FF_TILL
- g_Object[232] = CreateDynamicObject(2700, 1931.7165, -2063.2187, 789.5230, 0.0000, 0.0000, 270.0000); //CJ_SEX_TV2
- g_Object[233] = CreateDynamicObject(2229, 1919.5716, -2062.7871, 787.7042, 0.0000, 0.0000, 52.4999); //SWANK_SPEAKER
- g_Object[234] = CreateDynamicObject(2004, 1939.1666, -2066.6062, 787.7930, 0.0000, 0.0000, 180.0000); //cr_safe_door
- g_Object[235] = CreateDynamicObject(2690, 1932.6794, -2063.0891, 787.5222, 0.0000, 0.0000, 0.0000); //CJ_FIRE_EXT
- g_Object[236] = CreateDynamicObject(2344, 1932.4812, -2067.3229, 788.4226, 0.0000, 0.0000, 180.0000); //CJ_REMOTE
- g_Object[237] = CreateDynamicObject(19814, 1932.2214, -2062.9545, 787.5178, 0.0000, 0.0000, 0.0000); //ElectricalOutlet2
- g_Object[238] = CreateDynamicObject(1665, 1927.5312, -2079.9133, 787.6840, 0.0000, 0.0000, 0.0000); //propashtray1
- g_Object[239] = CreateDynamicObject(19896, 1927.2508, -2080.0463, 787.6865, 0.0000, 0.0000, 0.0000); //CigarettePack1
- g_Object[240] = CreateDynamicObject(19827, 1929.4901, -2081.8369, 788.6900, 0.0000, 0.0000, 180.0000); //LightSwitch2
- g_Object[241] = CreateDynamicObject(1486, 1933.0102, -2075.2556, 787.7974, 0.0000, 0.0000, 0.0000); //DYN_BEER_1
- g_Object[242] = CreateDynamicObject(1486, 1933.9903, -2075.1755, 787.7974, 0.0000, 0.0000, 0.0000); //DYN_BEER_1
- g_Object[243] = CreateDynamicObject(1486, 1933.8000, -2074.6950, 787.7974, 0.0000, 0.0000, 0.0000); //DYN_BEER_1
- g_Object[244] = CreateDynamicObject(2827, 1927.4261, -2075.0615, 787.6920, 0.0000, 0.0000, 0.0000); //GB_novels05
- g_Object[245] = CreateDynamicObject(2742, 1926.6158, -2063.6835, 783.0454, 0.0000, 0.0000, 0.0000); //CJ_HANDDRIER
- g_Object[246] = CreateDynamicObject(2742, 1925.6064, -2063.6835, 783.0454, 0.0000, 0.0000, 0.0000); //CJ_HANDDRIER
- g_Object[247] = CreateDynamicObject(1670, 1933.4521, -2079.8918, 787.6914, 0.0000, 0.0000, 0.0000); //propcollecttable
- g_Object[248] = CreateDynamicObject(16779, 1927.4835, -2077.3625, 790.9630, 0.0000, 0.0000, 0.0000); //ufo_light02
- g_Object[249] = CreateDynamicObject(16779, 1933.5533, -2077.3625, 790.9630, 0.0000, 0.0000, 0.0000); //ufo_light02
- g_Object[250] = CreateDynamicObject(19175, 1939.4825, -2070.1420, 789.1589, 0.0000, 0.0000, 270.0000); //SAMPPicture4
- g_Object[251] = CreateDynamicObject(1724, 1938.9101, -2071.2221, 787.0900, 0.0000, 0.0000, 270.0000); //mrk_seating1b
- g_Object[252] = CreateDynamicObject(2725, 1937.3916, -2071.6796, 787.5042, 0.0000, 0.0000, 0.0000); //LM_stripTable
- g_Object[253] = CreateDynamicObject(1724, 1935.9598, -2072.2324, 787.0900, 0.0000, 0.0000, 90.0000); //mrk_seating1b
- g_Object[254] = CreateDynamicObject(2099, 1925.8131, -2062.9523, 787.2022, 0.0000, 0.0000, 0.0000); //MED_HI_FI_1
- }
- stock LoadCustomHouse1() //by RayLucker
- {
- new tmpobjid;
- tmpobjid = CreateDynamicObject(19377,2434.695,-1610.655,1567.842,0.000,90.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14488, "dogsgym", "ah_yelplnks", -1);
- tmpobjid = CreateDynamicObject(19377,2445.198,-1610.656,1567.842,0.000,90.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14488, "dogsgym", "ah_yelplnks", -1);
- tmpobjid = CreateDynamicObject(19377,2434.687,-1620.286,1567.842,0.000,90.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14488, "dogsgym", "ah_yelplnks", -1);
- tmpobjid = CreateDynamicObject(19377,2445.187,-1620.290,1567.842,0.000,90.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14488, "dogsgym", "ah_yelplnks", -1);
- tmpobjid = CreateDynamicObject(19450,2434.998,-1623.119,1569.677,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14718, "lasmall1int2", "burglry_wall7", -1);
- tmpobjid = CreateDynamicObject(19450,2444.592,-1623.119,1569.677,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14718, "lasmall1int2", "burglry_wall7", -1);
- tmpobjid = CreateDynamicObject(19388,2437.467,-1619.958,1569.677,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14718, "lasmall1int2", "burglry_wall7", -1);
- tmpobjid = CreateDynamicObject(19450,2435.948,-1615.232,1569.677,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14718, "lasmall1int2", "burglry_wall7", -1);
- tmpobjid = CreateDynamicObject(19431,2439.875,-1619.957,1569.677,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14718, "lasmall1int2", "burglry_wall7", -1);
- tmpobjid = CreateDynamicObject(19451,2430.824,-1623.430,1569.677,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14709, "lamidint2", "mp_apt1_bathtiles", -1);
- tmpobjid = CreateDynamicObject(19360,2432.263,-1618.579,1569.677,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14718, "lasmall1int2", "burglry_wall7", -1);
- tmpobjid = CreateDynamicObject(19431,2433.782,-1619.303,1569.677,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14718, "lasmall1int2", "burglry_wall7", -1);
- tmpobjid = CreateDynamicObject(19388,2433.785,-1621.713,1569.677,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14718, "lasmall1int2", "burglry_wall7", -1);
- tmpobjid = CreateDynamicObject(19450,2430.804,-1613.731,1569.677,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14718, "lasmall1int2", "burglry_wall7", -1);
- tmpobjid = CreateDynamicObject(19450,2433.357,-1612.479,1569.677,0.000,0.000,270.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14718, "lasmall1int2", "burglry_wall7", -1);
- tmpobjid = CreateDynamicObject(19450,2442.991,-1612.479,1569.677,0.000,0.000,270.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14718, "lasmall1int2", "burglry_wall7", -1);
- tmpobjid = CreateDynamicObject(19450,2440.596,-1615.004,1569.677,0.000,0.000,180.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14718, "lasmall1int2", "burglry_wall7", -1);
- tmpobjid = CreateDynamicObject(19388,2440.596,-1621.427,1569.677,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14718, "lasmall1int2", "burglry_wall7", -1);
- tmpobjid = CreateDynamicObject(19450,2445.512,-1621.102,1569.677,0.000,0.000,180.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14718, "lasmall1int2", "burglry_wall7", -1);
- tmpobjid = CreateDynamicObject(19450,2445.486,-1618.641,1569.677,0.000,0.000,269.994,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14718, "lasmall1int2", "burglry_wall7", -1);
- tmpobjid = CreateDynamicObject(1522,2434.045,-1623.109,1567.880,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18065, "ab_sfammumain", "gun_door1", -1);
- tmpobjid = CreateDynamicObject(2708,2439.391,-1622.771,1567.927,0.000,0.000,180.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 14652, "ab_trukstpa", "mp_diner_wood", 0);
- tmpobjid = CreateDynamicObject(912,2436.782,-1622.656,1568.494,0.000,0.000,180.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", -1);
- tmpobjid = CreateDynamicObject(2815,2434.371,-1622.832,1567.927,0.000,0.000,1.543,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14802, "lee_bdupsflat", "Bdup_Rug", -1);
- tmpobjid = CreateDynamicObject(1728,2436.541,-1618.036,1567.927,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(14632,2453.222,-1621.686,1569.427,0.000,0.000,359.885,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19962, "samproadsigns", "materialtext1", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 19962, "samproadsigns", "materialtext1", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 2567, "ab", "Box_Texturepage", 0);
- SetDynamicObjectMaterial(tmpobjid, 3, 14652, "ab_trukstpa", "mp_diner_wood", 0);
- tmpobjid = CreateDynamicObject(19433,2438.572,-1616.522,1567.854,0.000,90.000,274.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 2815, "gb_rugs01", "GB_livingrug02", -1);
- tmpobjid = CreateDynamicObject(1729,2439.140,-1619.334,1567.927,0.000,0.000,193.311,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(2205,2436.571,-1614.975,1567.782,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 14665, "genintint711_1", "interiorwindowglow", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 14665, "genintint711_1", "interiorwindowglow", 0);
- SetDynamicObjectMaterial(tmpobjid, 3, 14665, "genintint711_1", "interiorwindowglow", 0);
- SetDynamicObjectMaterial(tmpobjid, 4, 14665, "genintint711_1", "interiorwindowglow", 0);
- SetDynamicObjectMaterial(tmpobjid, 5, 19962, "samproadsigns", "materialtext1", 0);
- SetDynamicObjectMaterial(tmpobjid, 6, 19962, "samproadsigns", "speedlimit5sign", 0);
- tmpobjid = CreateDynamicObject(2313,2437.572,-1613.036,1567.927,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- SetDynamicObjectMaterial(tmpobjid, 2, 14652, "ab_trukstpa", "mp_diner_wood", 0);
- tmpobjid = CreateDynamicObject(1786,2438.157,-1612.713,1568.427,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(1744,2436.034,-1614.297,1569.646,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", -1);
- tmpobjid = CreateDynamicObject(2272,2436.543,-1617.114,1569.630,358.521,3.991,90.103,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", -1);
- tmpobjid = CreateDynamicObject(19317,2440.156,-1614.178,1568.693,352.932,0.000,356.631,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(2256,2438.187,-1612.583,1569.833,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14789, "ab_sfgymmain", "gymwinodow3", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 14789, "ab_sfgymmain", "gymwinodow3", 0);
- tmpobjid = CreateDynamicObject(2273,2439.284,-1620.536,1569.732,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", -1);
- tmpobjid = CreateDynamicObject(1810,2439.828,-1617.466,1567.927,0.000,0.000,-114.499,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14665, "genintint711_1", "interiorwindowglow", -5658199);
- tmpobjid = CreateDynamicObject(2674,2436.605,-1621.198,1567.949,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(19573,2439.967,-1622.739,1567.927,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(2266,2436.751,-1622.536,1569.463,0.000,0.000,180.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 18065, "ab_sfammumain", "shelf_glas", 0);
- tmpobjid = CreateDynamicObject(2266,2436.751,-1622.535,1569.463,0.000,0.000,179.994,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 18065, "ab_sfammumain", "shelf_glas", 0);
- tmpobjid = CreateDynamicObject(2266,2436.751,-1622.535,1569.463,0.000,0.000,179.994,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 18065, "ab_sfammumain", "shelf_glas", 0);
- tmpobjid = CreateDynamicObject(19450,2431.091,-1613.566,1569.677,0.000,0.000,270.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14718, "lasmall1int2", "burglry_wall7", -1);
- tmpobjid = CreateDynamicObject(2356,2437.629,-1614.390,1567.927,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(2028,2438.961,-1613.891,1568.010,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(2559,2437.668,-1612.985,1569.254,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", 0);
- tmpobjid = CreateDynamicObject(2684,2436.107,-1617.938,1569.567,0.000,-6.899,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 15040, "cuntcuts", "csnewspaper02", -1);
- tmpobjid = CreateDynamicObject(19579,2436.306,-1614.349,1568.574,-0.000,-0.000,84.600,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -16777216);
- tmpobjid = CreateDynamicObject(19610,2436.306,-1614.351,1568.703,-89.999,89.999,-52.499,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "black64", 0);
- tmpobjid = CreateDynamicObject(2265,2436.757,-1614.768,1569.041,0.000,89.999,82.500,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "black64", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 18646, "matcolours", "grey-80-percent", 0);
- tmpobjid = CreateDynamicObject(2265,2435.869,-1613.925,1569.041,0.000,90.000,-97.499,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "black64", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "black64", 0);
- tmpobjid = CreateDynamicObject(19808,2436.676,-1614.223,1568.733,-0.000,-0.000,70.100,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(3014,2440.221,-1616.736,1568.088,0.000,0.000,115.800,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(19377,2435.695,-1610.655,1571.341,0.000,90.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14859, "gf1", "mp_cop_ceiling", -1);
- tmpobjid = CreateDynamicObject(19377,2446.198,-1610.656,1571.341,0.000,90.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14859, "gf1", "mp_cop_ceiling", -1);
- tmpobjid = CreateDynamicObject(19377,2435.687,-1620.286,1571.341,0.000,90.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14859, "gf1", "mp_cop_ceiling", -1);
- tmpobjid = CreateDynamicObject(19377,2446.187,-1620.290,1571.341,0.000,90.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14859, "gf1", "mp_cop_ceiling", -1);
- tmpobjid = CreateDynamicObject(2162,2436.126,-1613.968,1569.048,0.000,0.000,450.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 1730, "cj_furniture", "CJ_books", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 19962, "samproadsigns", "materialtext1", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 19962, "samproadsigns", "materialtext1", 0);
- tmpobjid = CreateDynamicObject(1486,2436.400,-1615.041,1568.848,0.000,0.000,171.900,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(1486,2436.470,-1615.182,1568.848,0.000,0.000,-146.899,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(1486,2436.318,-1615.186,1568.848,0.000,0.000,-37.999,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(1665,2436.624,-1615.045,1568.748,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(19896,2436.455,-1614.059,1568.737,0.000,0.000,47.399,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(1486,2436.501,-1615.291,1568.838,0.000,0.000,-37.999,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(1734,2437.981,-1618.239,1571.241,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(1734,2437.981,-1615.109,1571.241,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(2684,2436.107,-1617.549,1569.353,0.000,4.900,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 15040, "cuntcuts", "csnewspaper", -1);
- tmpobjid = CreateDynamicObject(1486,2436.902,-1615.523,1568.060,0.000,0.000,-51.100,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(1499,2436.700,-1619.987,1567.918,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14789, "ab_sfgymmain", "gym_floor6", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- tmpobjid = CreateDynamicObject(2266,2436.751,-1622.535,1569.463,0.000,0.000,179.994,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 18065, "ab_sfammumain", "shelf_glas", 0);
- tmpobjid = CreateDynamicObject(19807,2437.003,-1622.755,1569.137,0.000,0.000,152.499,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(2953,2436.887,-1622.461,1569.088,0.000,0.000,180.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(2894,2436.442,-1622.644,1569.067,0.000,0.000,176.300,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(1742,2433.761,-1619.981,1567.927,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 14652, "ab_trukstpa", "mp_diner_wood", 0);
- tmpobjid = CreateDynamicObject(927,2432.903,-1618.498,1569.568,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(19826,2435.923,-1623.018,1569.537,0.000,0.000,180.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(2256,2433.586,-1613.673,1569.833,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14789, "ab_sfgymmain", "gymwinodow3", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 14789, "ab_sfgymmain", "gymwinodow3", 0);
- tmpobjid = CreateDynamicObject(2559,2433.068,-1614.056,1569.254,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", 0);
- tmpobjid = CreateDynamicObject(2808,2434.661,-1614.102,1568.508,0.000,0.000,180.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 13003, "ce_racestart", "CJ_TARTAN", 0);
- tmpobjid = CreateDynamicObject(2808,2435.371,-1614.112,1568.512,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 13003, "ce_racestart", "CJ_TARTAN", 0);
- tmpobjid = CreateDynamicObject(2808,2435.369,-1616.244,1568.508,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 13003, "ce_racestart", "CJ_TARTAN", 0);
- tmpobjid = CreateDynamicObject(19922,2434.172,-1616.040,1567.927,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "CJ_WOOD6", -1);
- tmpobjid = CreateDynamicObject(1620,2431.543,-1618.471,1570.507,0.000,0.000,270.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(2136,2431.422,-1617.996,1567.927,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 3, 14652, "ab_trukstpa", "mp_diner_wood", 0);
- SetDynamicObjectMaterial(tmpobjid, 4, 14652, "ab_trukstpa", "mp_diner_wood", 0);
- tmpobjid = CreateDynamicObject(2135,2431.411,-1615.994,1567.927,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 3, 14652, "ab_trukstpa", "mp_diner_wood", 0);
- tmpobjid = CreateDynamicObject(1811,2433.621,-1615.428,1568.397,0.000,0.000,180.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", 0);
- tmpobjid = CreateDynamicObject(1811,2433.531,-1616.388,1568.397,0.000,0.000,-169.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", 0);
- tmpobjid = CreateDynamicObject(19585,2431.234,-1615.522,1569.198,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(2267,2435.818,-1615.677,1570.038,0.000,0.000,270.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", 0);
- tmpobjid = CreateDynamicObject(19173,2430.942,-1616.528,1569.338,0.000,360.000,270.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14584, "ab_abbatoir01", "ab_tiles", 0);
- tmpobjid = CreateDynamicObject(19173,2430.940,-1618.678,1569.338,0.000,360.000,270.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14584, "ab_abbatoir01", "ab_tiles", 0);
- tmpobjid = CreateDynamicObject(19826,2433.889,-1620.695,1569.567,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(19451,2430.885,-1623.400,1569.677,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14709, "lamidint2", "mp_apt1_bathtiles", -1);
- tmpobjid = CreateDynamicObject(19451,2428.914,-1623.090,1569.677,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14709, "lamidint2", "mp_apt1_bathtiles", -1);
- tmpobjid = CreateDynamicObject(19361,2432.133,-1619.379,1569.677,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14709, "lamidint2", "mp_apt1_bathtiles", -1);
- tmpobjid = CreateDynamicObject(19431,2433.602,-1619.303,1569.677,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14709, "lamidint2", "mp_apt1_bathtiles", -1);
- tmpobjid = CreateDynamicObject(19392,2433.605,-1621.713,1569.677,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14709, "lamidint2", "mp_apt1_bathtiles", -1);
- tmpobjid = CreateDynamicObject(2097,2431.968,-1620.089,1568.227,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14665, "genintint711_1", "interiorwindowglow", 0);
- tmpobjid = CreateDynamicObject(1208,2431.274,-1621.856,1567.927,0.000,0.000,270.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(19452,2428.917,-1621.296,1567.877,0.000,90.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 15041, "bigsfsave", "mp_carter_tilewall", 0);
- tmpobjid = CreateDynamicObject(11707,2431.651,-1622.938,1569.173,0.000,0.000,180.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(2751,2432.021,-1622.901,1567.963,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(1499,2433.750,-1622.448,1567.928,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14789, "ab_sfgymmain", "gym_floor6", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- tmpobjid = CreateDynamicObject(1734,2437.981,-1621.489,1571.241,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(1734,2434.419,-1616.319,1571.241,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(1734,2432.637,-1621.349,1571.241,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(1798,2442.329,-1622.253,1567.927,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "mp_diner_wood", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 14652, "ab_trukstpa", "mp_diner_wood", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 14652, "ab_trukstpa", "mp_diner_wood", 0);
- tmpobjid = CreateDynamicObject(2573,2444.938,-1619.566,1567.927,0.000,0.000,270.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19962, "samproadsigns", "materialtext1", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 19962, "samproadsigns", "materialtext1", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 19962, "samproadsigns", "materialtext1", 0);
- SetDynamicObjectMaterial(tmpobjid, 3, 14652, "ab_trukstpa", "mp_diner_wood", 0);
- tmpobjid = CreateDynamicObject(18870,2445.015,-1619.921,1568.808,0.000,0.000,-110.699,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(2670,2442.739,-1622.248,1568.018,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(1734,2443.351,-1620.918,1571.241,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(19826,2441.054,-1623.023,1569.567,0.000,0.000,180.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(1499,2440.612,-1622.162,1567.928,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14789, "ab_sfgymmain", "gym_floor6", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- tmpobjid = CreateDynamicObject(2259,2432.339,-1622.525,1569.593,0.000,0.000,180.000,-1,-1,-1,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- tmpobjid = CreateDynamicObject(19914,2436.122,-1619.786,1568.703,9.099,84.600,14.199,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(19825,2439.023,-1619.840,1570.570,0.000,0.000,180.000,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2843,2436.017,-1616.521,1568.431,0.000,0.000,-18.400,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(1666,2436.561,-1614.848,1568.818,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2849,2436.559,-1613.826,1568.728,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(371,2440.229,-1616.211,1568.137,-10.999,0.000,197.199,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(19610,2439.131,-1613.041,1568.478,0.000,0.000,33.099,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(348,2440.032,-1616.696,1569.604,90.000,71.399,0.000,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2392,2439.265,-1622.670,1569.728,0.000,0.000,89.299,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2386,2437.919,-1622.763,1568.958,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2386,2439.290,-1622.763,1568.428,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2147,2431.375,-1614.893,1567.927,0.000,0.000,91.000,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2613,2431.558,-1613.118,1567.927,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2838,2434.044,-1615.888,1568.747,0.000,0.000,-59.699,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2831,2434.150,-1615.138,1568.757,0.000,0.000,159.300,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2673,2432.503,-1616.308,1568.018,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2822,2431.128,-1618.061,1568.968,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(19563,2431.156,-1616.571,1568.998,0.000,0.000,7.099,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2823,2431.438,-1617.467,1569.008,0.000,0.000,80.099,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(1752,2431.096,-1614.811,1569.707,0.000,0.000,79.400,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2514,2431.571,-1621.121,1567.927,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2524,2432.796,-1622.466,1567.927,0.000,0.000,180.000,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2819,2432.591,-1622.258,1567.987,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2048,2430.955,-1617.493,1570.278,0.000,0.000,90.000,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2828,2445.061,-1620.497,1568.828,0.000,0.000,57.000,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2816,2442.663,-1620.397,1568.608,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2255,2442.778,-1619.301,1569.658,0.000,0.000,0.000,-1,-1,-1,300.000,300.000);
- tmpobjid = CreateDynamicObject(2103,2434.102,-1616.991,1568.697,0.000,0.000,61.399,-1,-1,-1,300.000,300.000);
- }
- stock LoadCustomHouse2() //by Symphony
- {
- CreateDynamicObject(19369, 1358.84998, -812.65002, 1093.09998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19379, 1364.00732, -825.45001, 1091.26404, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 1364.00684, -815.84998, 1091.26404, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 1374.50000, -815.84998, 1091.26404, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 1374.50000, -825.45001, 1091.26404, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19369, 1358.84998, -815.84998, 1093.09998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19369, 1358.84998, -819.04999, 1093.09998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19369, 1358.84998, -822.25000, 1093.09998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19369, 1358.84998, -825.45001, 1093.09998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19369, 1358.84998, -828.65002, 1093.09998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19369, 1360.50000, -830.15002, 1093.09998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19369, 1363.69995, -830.15002, 1093.09998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19369, 1366.90002, -830.15002, 1093.09998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19369, 1370.09998, -830.15002, 1093.09998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19369, 1373.30005, -830.15002, 1093.09998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19369, 1376.50000, -830.15002, 1093.09998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19369, 1379.69995, -830.15002, 1093.09998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19369, 1379.69995, -828.50000, 1093.09998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19369, 1379.69995, -825.29999, 1093.09998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19369, 1379.69995, -822.09998, 1093.09998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19369, 1379.69995, -818.90002, 1093.09998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19369, 1379.69995, -815.70001, 1093.09998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19369, 1379.69995, -812.50000, 1093.09998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19369, 1378.09998, -811.00000, 1093.09998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19369, 1374.90002, -811.00000, 1093.09998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19369, 1371.69995, -811.00000, 1093.09998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19369, 1368.50000, -811.00000, 1093.09998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19369, 1365.30005, -811.00000, 1093.09998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19369, 1362.09998, -811.00000, 1093.09998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19369, 1358.90002, -811.00000, 1093.09998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1569, 1379.66003, -821.89789, 1091.30005, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1569, 1379.66003, -818.90002, 1091.30005, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2001, 1379.50000, -822.00000, 1091.35083, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2001, 1379.50000, -818.79999, 1091.35083, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2013, 1378.09998, -811.59998, 1091.19995, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2014, 1377.09998, -811.59998, 1091.19995, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2015, 1376.13000, -811.59998, 1091.19995, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2016, 1375.13000, -811.59998, 1091.19995, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2131, 1379.09998, -816.50000, 1091.34998, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2133, 1379.09998, -815.50000, 1091.35059, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2747, 1375.74805, -813.96002, 1091.80005, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2747, 1376.73999, -813.96002, 1091.80005, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2747, 1376.73999, -815.53003, 1091.80005, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2747, 1375.74805, -815.53003, 1091.80005, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2079, 1374.80457, -815.53003, 1091.98999, 0.00000, 0.00000, 900.00000);
- CreateDynamicObject(2079, 1374.80457, -813.96002, 1091.98999, 0.00000, 0.00000, 900.00000);
- CreateDynamicObject(2079, 1377.80457, -815.53003, 1091.98999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2079, 1377.80457, -813.94012, 1091.98999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2010, 1374.47961, -811.26990, 1091.35046, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2010, 1379.46436, -814.85443, 1091.35046, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2864, 1374.91663, -811.29761, 1092.19983, 0.00000, 0.00000, -28.00000);
- CreateDynamicObject(2864, 1374.91663, -811.50000, 1092.19983, 0.00000, 0.00000, -28.00000);
- CreateDynamicObject(2864, 1374.91663, -811.70001, 1092.19983, 0.00000, 0.00000, -28.00000);
- CreateDynamicObject(2864, 1374.91663, -811.90002, 1092.19983, 0.00000, 0.00000, -28.00000);
- CreateDynamicObject(2865, 1375.62268, -811.36060, 1092.20996, 0.00000, 0.00000, 34.60000);
- CreateDynamicObject(2865, 1375.62268, -811.79999, 1092.20996, 0.00000, 0.00000, 34.60000);
- CreateDynamicObject(2863, 1376.45459, -811.39502, 1092.20056, 0.00000, 0.00000, 212.39999);
- CreateDynamicObject(2863, 1376.45459, -811.79999, 1092.20056, 0.00000, 0.00000, 212.39999);
- CreateDynamicObject(2270, 1379.10999, -819.65002, 1092.19995, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2270, 1379.10999, -821.15002, 1092.19995, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19369, 1378.00000, -822.40002, 1093.09998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19369, 1374.80005, -822.40002, 1093.09998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19369, 1370.07996, -824.09998, 1093.09998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19369, 1370.07996, -827.29999, 1093.09998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19369, 1370.07996, -830.50000, 1093.09998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1502, 1370.80005, -822.40002, 1091.34998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19397, 1371.59998, -822.40002, 1093.09998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2010, 1370.46326, -822.14398, 1091.35095, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2257, 1379.59998, -826.29999, 1093.50000, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2010, 1370.57300, -822.63892, 1091.35095, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1723, 1370.68005, -829.63208, 1091.35034, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1723, 1370.68005, -825.50000, 1091.35034, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1433, 1370.75000, -826.54999, 1091.55005, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2854, 1370.61914, -826.75079, 1092.05664, 0.00000, 0.00000, 129.53998);
- CreateDynamicObject(2855, 1371.08386, -826.73102, 1092.05762, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2855, 1371.08057, -826.29999, 1092.05762, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2249, 1370.35815, -826.22241, 1092.69995, 0.00000, 0.00000, 69.36000);
- CreateDynamicObject(19174, 1370.17041, -826.50000, 1093.80005, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19377, 1374.55908, -825.37708, 1094.85352, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 1374.55908, -815.76001, 1094.85352, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 1364.09998, -815.76001, 1094.85352, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 1364.09998, -825.40002, 1094.85352, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(14455, 1364.95093, -830.00000, 1092.84985, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14455, 1359.29004, -830.00000, 1092.84985, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1723, 1369.46997, -822.79382, 1091.35205, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1723, 1369.46997, -827.00000, 1091.35205, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1433, 1369.40002, -825.90002, 1091.50000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2249, 1369.72192, -826.26715, 1092.67004, 0.00000, 0.00000, -118.08004);
- CreateDynamicObject(2855, 1369.73999, -825.52869, 1092.00720, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2855, 1369.73999, -825.95001, 1092.00720, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2816, 1369.21130, -825.78577, 1092.00720, 0.00000, 0.00000, -96.54003);
- CreateDynamicObject(1723, 1359.46997, -829.00000, 1091.35205, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1433, 1359.50000, -825.90002, 1091.50000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1723, 1359.46997, -824.79382, 1091.35205, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2855, 1359.19995, -826.29999, 1092.00696, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2855, 1359.19995, -825.90002, 1092.00696, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2816, 1359.72754, -826.04486, 1092.00696, 0.00000, 0.00000, 81.71994);
- CreateDynamicObject(2249, 1359.17920, -825.53064, 1092.59998, 0.00000, 0.00000, 60.77998);
- CreateDynamicObject(19174, 1358.94006, -825.83087, 1093.80005, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19174, 1369.99023, -825.85168, 1093.80005, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1799, 1376.10315, -824.25000, 1091.35046, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1799, 1376.10315, -827.50000, 1091.35046, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(16780, 1364.30005, -825.79999, 1094.73999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16780, 1376.09998, -814.66998, 1094.76001, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16780, 1376.40002, -826.29999, 1094.76001, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2964, 1364.31287, -825.69141, 1091.35120, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(338, 1363.42285, -826.21021, 1092.39001, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(338, 1363.30005, -826.21021, 1092.39001, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(2965, 1364.31128, -825.66052, 1092.24805, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2995, 1364.18994, -825.65002, 1092.24805, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2996, 1364.25000, -825.69189, 1092.24805, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2997, 1364.25000, -825.62000, 1092.24805, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2998, 1364.31995, -825.57001, 1092.24829, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2999, 1364.32336, -825.65002, 1092.24829, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3000, 1364.32556, -825.72998, 1092.24829, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3001, 1364.40002, -825.53003, 1092.24829, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2995, 1364.40002, -825.60999, 1092.24829, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2996, 1364.40002, -825.69000, 1092.24829, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2998, 1364.40002, -825.77002, 1092.24829, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2999, 1364.47998, -825.48999, 1092.24829, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2996, 1364.47998, -825.57001, 1092.24829, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3003, 1364.47998, -825.65002, 1092.24829, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3000, 1364.47998, -825.72998, 1092.24829, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3001, 1364.47998, -825.81000, 1092.24841, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(338, 1365.30005, -826.21021, 1092.39001, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(338, 1365.19995, -826.21021, 1092.39001, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(2010, 1372.65002, -822.14398, 1091.35095, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2010, 1372.65002, -822.63892, 1091.35095, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2069, 1369.58423, -829.65009, 1091.40002, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2069, 1359.50000, -829.65009, 1091.40002, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2010, 1379.22998, -823.10999, 1091.34998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2010, 1379.22998, -829.56000, 1091.35046, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2296, 1362.07312, -811.29218, 1091.35266, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1788, 1364.18066, -811.31732, 1091.90002, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1788, 1364.18066, -811.31732, 1092.30005, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1788, 1364.18066, -811.31732, 1092.75000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1788, 1361.94995, -811.31732, 1092.75000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1788, 1361.94995, -811.31732, 1091.90002, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1788, 1361.94995, -811.31732, 1092.30005, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1788, 1364.18066, -811.31732, 1093.19995, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1788, 1361.94995, -811.31732, 1093.19995, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2028, 1363.24500, -812.21790, 1091.44995, 0.00000, 0.00000, 27.54000);
- CreateDynamicObject(2104, 1361.37610, -811.03162, 1091.35144, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2104, 1365.19995, -811.03162, 1091.35144, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2229, 1360.98071, -811.11951, 1091.35156, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2229, 1365.80005, -811.11951, 1091.35156, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1723, 1364.08899, -815.41748, 1091.35083, 0.00000, 0.00000, 900.00000);
- CreateDynamicObject(1827, 1363.06909, -813.65991, 1091.35107, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2247, 1363.66235, -813.11176, 1092.19995, 0.00000, 0.00000, -43.38000);
- CreateDynamicObject(2854, 1363.02405, -813.17792, 1091.77795, 0.00000, 0.00000, -2.16000);
- CreateDynamicObject(2855, 1363.55103, -813.74182, 1091.77795, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1510, 1363.09180, -813.70569, 1091.79004, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2816, 1362.58826, -813.66687, 1091.77783, 0.00000, 0.00000, -74.27999);
- CreateDynamicObject(2010, 1366.00793, -811.44507, 1091.35046, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2010, 1360.24805, -811.40228, 1091.35046, 0.00000, 0.00000, 0.00000);
- }
- stock LoadRestaurant() //by Rehasher
- {
- CreateDynamicObject(19457, -1801.19226, 1231.20813, 21.22890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, -1801.11365, 1230.10181, 21.22890, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19461, -1796.45679, 1245.58557, 21.22890, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, -1796.35193, 1231.20813, 21.22890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19394, -1799.50500, 1235.93457, 21.22890, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19438, -1797.10388, 1235.93457, 21.22890, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19397, -1799.50500, 1235.95459, 21.22890, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19442, -1797.10388, 1235.95459, 21.22890, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19397, -1794.64294, 1230.10181, 21.22890, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19461, -1796.33191, 1231.22705, 21.22890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19461, -1786.82495, 1245.58557, 21.22890, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19461, -1783.45068, 1234.03809, 21.22890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19397, -1783.45068, 1240.45117, 21.22890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19461, -1783.45068, 1246.86584, 21.22890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14463, -1810.68335, 1245.28125, 22.43120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19378, -1788.23889, 1240.27063, 19.58110, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19378, -1788.23889, 1229.77576, 19.58110, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19378, -1797.86865, 1229.77576, 19.58110, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19378, -1797.86865, 1240.27063, 19.58110, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19462, -1788.08655, 1240.45117, 19.58520, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19462, -1794.64294, 1237.38403, 19.58520, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19462, -1794.64294, 1227.75378, 19.58520, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(18020, -1771.98291, 1238.40234, 21.67300, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2515, -1777.87622, 1242.37268, 20.68620, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2515, -1776.16882, 1242.37268, 20.68620, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2515, -1774.48010, 1242.37268, 20.68620, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2515, -1772.83008, 1242.37268, 20.68620, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2742, -1781.80457, 1243.88171, 20.97550, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2742, -1781.80457, 1242.82166, 20.97550, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2738, -1776.93286, 1248.43665, 20.28840, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2738, -1772.95044, 1248.43665, 20.28840, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2686, -1778.70825, 1242.45081, 21.33460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2741, -1777.18091, 1241.99146, 21.33460, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2741, -1775.57166, 1241.99146, 21.33456, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2741, -1773.97180, 1241.99146, 21.33460, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2670, -1774.40515, 1246.66089, 19.78550, 0.00000, 0.00000, 257.00000);
- CreateDynamicObject(2685, -1774.76636, 1241.93103, 21.33460, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1535, -1781.32666, 1241.03491, 19.67370, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1535, -1783.41675, 1239.70361, 19.61990, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19461, -1801.19226, 1246.24121, 21.22890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1522, -1795.42285, 1230.11182, 19.57990, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3109, -1801.18677, 1232.89868, 20.84890, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19173, -1801.12842, 1238.66248, 21.99560, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(18002, -1801.07776, 1243.53918, 21.04080, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1744, -1801.33655, 1239.91101, 20.51460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18002, -1801.07776, 1244.43994, 21.04080, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1541, -1797.34387, 1237.97534, 20.93500, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2360, -1796.88416, 1234.63306, 19.66870, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2169, -1796.93152, 1233.65393, 20.29760, 0.00000, 90.00000, -90.00000);
- CreateDynamicObject(19442, -1792.89905, 1237.82336, 21.22890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19461, -1783.45068, 1234.03809, 21.22890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19442, -1792.18542, 1238.71423, 21.22890, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19442, -1792.89905, 1230.97058, 21.22890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19442, -1784.34351, 1238.71423, 21.22890, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19325, -1792.89905, 1234.36121, 20.94890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19461, -1791.60535, 1242.19885, 17.94390, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19461, -1796.33325, 1237.29773, 17.94390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19461, -1781.97571, 1242.19885, 17.94390, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19461, -1788.17188, 1238.71423, 17.94390, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19461, -1792.89905, 1233.96753, 17.94390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2257, -1796.22864, 1234.06567, 21.24340, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2267, -1783.56372, 1243.61401, 21.61090, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2270, -1800.60986, 1243.63477, 21.23240, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2270, -1800.60986, 1244.31482, 21.03240, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2027, -1786.09436, 1244.33325, 20.25200, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2027, -1790.17944, 1244.33325, 20.25200, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2027, -1794.25854, 1244.33325, 20.25200, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2311, -1792.20459, 1232.29089, 19.66820, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1726, -1790.43054, 1230.73474, 19.66830, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1726, -1792.44458, 1233.87207, 19.66830, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1726, -1790.43054, 1234.84656, 19.66830, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2311, -1792.20459, 1236.40637, 19.66820, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1726, -1792.44458, 1237.98352, 19.66830, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1428, -1796.77258, 1237.68115, 20.65730, -75.00000, 0.00000, 0.00000);
- CreateDynamicObject(1428, -1796.83606, 1240.40198, 20.65730, -75.00000, 0.00000, 6.00000);
- CreateDynamicObject(2311, -1798.22961, 1242.16101, 20.27970, 90.00000, 0.00000, -14.00000);
- CreateDynamicObject(2311, -1785.79834, 1235.11511, 19.66820, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2311, -1785.79834, 1231.97107, 19.66820, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1727, -1787.36401, 1231.60437, 19.66890, 0.00000, 0.00000, 92.00000);
- CreateDynamicObject(1727, -1787.42395, 1232.85876, 19.66890, 0.00000, 0.00000, 88.00000);
- CreateDynamicObject(1727, -1787.44397, 1234.70105, 19.66890, 0.00000, 0.00000, 91.00000);
- CreateDynamicObject(1727, -1787.42395, 1235.97290, 19.66890, 0.00000, 0.00000, 85.00000);
- CreateDynamicObject(1726, -1784.09839, 1236.89624, 19.66830, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1726, -1784.09839, 1233.75708, 19.66830, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1670, -1785.83655, 1232.26855, 20.19210, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1670, -1790.91101, 1236.33020, 20.19210, 0.00000, 0.00000, 139.00000);
- CreateDynamicObject(2204, -1801.24036, 1236.53137, 19.62930, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1520, -1791.62036, 1236.54529, 20.23230, 0.00000, 0.00000, 38.00000);
- CreateDynamicObject(2829, -1786.03699, 1244.36829, 20.47520, 0.00000, 0.00000, 113.00000);
- CreateDynamicObject(14384, -1800.26245, 1233.65869, 21.16370, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19457, -1797.21277, 1227.96216, 18.99180, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, -1801.13696, 1229.24622, 20.46890, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(2864, -1796.86511, 1231.58154, 20.78483, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2822, -1796.69714, 1230.89319, 20.78610, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2822, -1797.38562, 1230.52136, 20.78610, 0.00000, 0.00000, -222.00000);
- CreateDynamicObject(2829, -1800.69470, 1230.56677, 20.58320, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2131, -1800.64197, 1233.89600, 19.66910, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2249, -1785.79834, 1235.11511, 20.89970, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2249, -1785.79834, 1231.97107, 20.89970, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2249, -1792.20459, 1236.41638, 20.89970, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2249, -1792.20459, 1232.29089, 20.89970, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2100, -1788.82166, 1230.25537, 19.66890, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2108, -1783.93445, 1230.51001, 19.66830, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2108, -1783.93445, 1238.19666, 19.66830, 0.00000, 0.00000, 62.00000);
- CreateDynamicObject(2108, -1783.87439, 1245.11145, 19.66830, 0.00000, 0.00000, 120.00000);
- CreateDynamicObject(2828, -1796.59766, 1233.39063, 20.76600, 0.00000, 0.00000, 84.00000);
- CreateDynamicObject(2826, -1785.84912, 1235.87036, 19.73680, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2826, -1791.37524, 1232.28857, 19.73680, 0.00000, 0.00000, 69.00000);
- CreateDynamicObject(2771, -1796.80847, 1240.47217, 20.98300, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1548, -1796.57764, 1238.95227, 20.80600, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1549, -1783.78589, 1239.03345, 19.67350, 0.00000, 0.00000, 47.00000);
- CreateDynamicObject(1549, -1800.89893, 1233.21008, 19.67010, 0.00000, 0.00000, 56.00000);
- CreateDynamicObject(1893, -1798.87622, 1232.60608, 23.25640, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1502, -1800.29297, 1235.92029, 19.52980, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2690, -1800.93311, 1235.63989, 20.00880, -18.00000, 4.00000, 44.00000);
- CreateDynamicObject(2961, -1798.09900, 1236.06494, 21.42549, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19169, -1796.42847, 1245.49463, 21.51920, 90.00000, -90.00000, 90.00000);
- CreateDynamicObject(19168, -1797.92285, 1245.49463, 21.51870, 90.00000, 90.00000, -90.00000);
- CreateDynamicObject(19431, -1796.38464, 1247.21045, 22.28890, 0.00000, 90.00000, -90.00000);
- CreateDynamicObject(19431, -1797.98535, 1247.21045, 22.28890, 0.00000, 90.00000, -90.00000);
- CreateDynamicObject(19431, -1798.69434, 1247.20044, 21.55780, 90.00000, 90.00000, -90.00000);
- CreateDynamicObject(19431, -1795.66846, 1247.20044, 21.55780, 90.00000, 90.00000, -90.00000);
- CreateDynamicObject(19431, -1796.38464, 1247.21045, 20.84510, 0.00000, 90.00000, -90.00000);
- CreateDynamicObject(19431, -1796.38464, 1247.21045, 21.00510, 0.00000, 90.00000, -90.00000);
- CreateDynamicObject(19431, -1797.98535, 1247.21045, 20.84510, 0.00000, 90.00000, -90.00000);
- CreateDynamicObject(19431, -1797.98535, 1247.21045, 21.00510, 0.00000, 90.00000, -90.00000);
- CreateDynamicObject(1486, -1801.02026, 1238.51965, 20.81550, 0.00000, 0.00000, 193.00000);
- CreateDynamicObject(1486, -1801.02026, 1238.39966, 20.81550, 0.00000, 0.00000, 193.00000);
- CreateDynamicObject(1486, -1801.02026, 1238.61975, 20.81550, 0.00000, 0.00000, 135.00000);
- CreateDynamicObject(1486, -1801.06030, 1238.73975, 20.81550, 0.00000, 0.00000, 155.00000);
- CreateDynamicObject(1486, -1801.00024, 1238.85974, 20.81550, 0.00000, 0.00000, 155.00000);
- CreateDynamicObject(1543, -1801.00586, 1238.01697, 20.63590, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1543, -1801.08582, 1237.89697, 20.63590, 0.00000, 0.00000, -25.00000);
- CreateDynamicObject(1543, -1801.14575, 1237.81702, 20.63590, 0.00000, 0.00000, -25.00000);
- CreateDynamicObject(1543, -1801.08582, 1237.63696, 20.63590, 0.00000, 0.00000, -79.00000);
- CreateDynamicObject(1520, -1801.08337, 1238.03296, 21.03850, 90.00000, 90.00000, -4.00000);
- CreateDynamicObject(1520, -1801.08337, 1237.89294, 21.03850, 90.00000, 90.00000, 0.00000);
- CreateDynamicObject(1520, -1801.08337, 1237.75293, 21.03850, 90.00000, 90.00000, 2.00000);
- CreateDynamicObject(1520, -1801.08337, 1237.65295, 21.03850, 90.00000, 90.00000, 0.00000);
- CreateDynamicObject(1520, -1801.08337, 1237.51294, 21.03850, 90.00000, 90.00000, -5.00000);
- CreateDynamicObject(1664, -1801.06653, 1238.45410, 21.17850, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1664, -1801.10645, 1238.33411, 21.17850, 0.00000, 0.00000, -62.00000);
- CreateDynamicObject(1664, -1801.06641, 1238.59412, 21.17850, 0.00000, 0.00000, -40.00000);
- CreateDynamicObject(1664, -1801.06641, 1238.73413, 21.17850, 0.00000, 0.00000, -16.00000);
- CreateDynamicObject(1664, -1801.04639, 1238.87415, 21.17850, 0.00000, 0.00000, -62.00000);
- CreateDynamicObject(2596, -1800.38391, 1230.49365, 22.12090, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1575, -1796.98706, 1233.18481, 20.68600, 0.00000, 0.00000, 105.00000);
- CreateDynamicObject(19513, -1797.07275, 1233.56689, 20.77760, 0.00000, -156.00000, -84.00000);
- CreateDynamicObject(19513, -1797.11279, 1233.60693, 20.77760, 0.00000, -156.00000, -84.00000);
- CreateDynamicObject(18868, -1797.19739, 1233.83521, 20.78680, 0.00000, 0.00000, -113.00000);
- CreateDynamicObject(335, -1796.69238, 1233.37195, 20.75580, 90.00000, 90.00000, -236.00000);
- CreateDynamicObject(2001, -1800.66736, 1245.02795, 19.66720, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2001, -1793.32898, 1230.53918, 19.66720, 0.00000, 0.00000, -73.00000);
- CreateDynamicObject(2001, -1795.90918, 1230.53918, 19.66720, 0.00000, 0.00000, -33.00000);
- CreateDynamicObject(10060, -1813.74976, 1241.78162, 45.59150, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(2740, -1794.68335, 1242.18921, 22.79960, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2740, -1788.40076, 1242.18921, 22.79960, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2740, -1788.40076, 1236.96155, 22.79960, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2740, -1788.40076, 1231.81555, 22.79960, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2740, -1794.68335, 1236.96155, 22.79960, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2740, -1794.68335, 1231.81555, 22.79960, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3034, -1785.84045, 1230.15173, 21.68320, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2500, -1797.09656, 1236.13416, 20.78560, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2682, -1794.14929, 1244.74829, 20.66380, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2682, -1790.31360, 1245.04004, 20.66380, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2682, -1786.24243, 1244.95276, 20.66380, 0.00000, 0.00000, 12.00000);
- CreateDynamicObject(3034, -1790.53333, 1230.15173, 21.68320, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19442, -1792.96338, 1229.39038, 21.22890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2541, -1800.99854, 1238.40405, 18.86780, 0.00000, 0.00000, 69.00000);
- CreateDynamicObject(2880, -1786.12024, 1244.25403, 20.48290, -18.00000, -79.00000, 0.00000);
- CreateDynamicObject(2769, -1785.89417, 1244.67004, 20.47470, 0.00000, 0.00000, 84.00000);
- CreateDynamicObject(2713, -1798.06030, 1235.67017, 19.78940, 0.00000, 0.00000, 10.00000);
- CreateDynamicObject(2712, -1797.92224, 1235.70496, 20.27500, 0.00000, 0.00000, 4.00000);
- CreateDynamicObject(3119, -1794.18701, 1245.33643, 20.65480, 0.00000, 0.00000, -62.00000);
- CreateDynamicObject(2796, -1783.46021, 1240.67285, 22.33010, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2671, -1779.23523, 1245.83643, 19.67880, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2671, -1790.96204, 1244.27563, 19.66848, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2245, -1797.32800, 1241.81848, 21.04560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2421, -1798.93420, 1230.23877, 20.74570, 0.00000, 0.00000, 178.00000);
- CreateDynamicObject(2684, -1797.62170, 1236.08423, 21.84510, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2687, -1798.02588, 1236.08423, 21.93010, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1547, -1796.60828, 1237.62134, 20.78620, 0.00000, 0.00000, 91.00000);
- CreateDynamicObject(2453, -1798.41931, 1241.90125, 21.14540, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2587, -1796.50208, 1234.16089, 22.02850, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2688, -1798.10168, 1235.80481, 21.53411, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2769, -1800.99561, 1238.02844, 20.41180, 0.00000, 0.00000, -22.00000);
- CreateDynamicObject(2769, -1800.99561, 1237.90845, 20.41180, 0.00000, 0.00000, -24.00000);
- CreateDynamicObject(2769, -1800.99561, 1237.76843, 20.41180, 0.00000, 0.00000, -16.00000);
- CreateDynamicObject(2769, -1800.99561, 1237.64844, 20.41180, 0.00000, 0.00000, -16.00000);
- CreateDynamicObject(2769, -1800.99561, 1237.50842, 20.41180, 0.00000, 0.00000, -26.00000);
- }
- stock LoadCustomApartment() //by Alekseyka
- {
- new home;
- home = CreateObject(19376,1698.765,-1424.589,36.223,0.000,90.000,0.000,300.000);
- SetObjectMaterial(home, 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- home = CreateObject(3034,1703.915,-1425.682,38.071,0.000,0.000,270.000,300.000);
- SetObjectMaterial(home, 0, 4830, "airport2", "sanairtex3", 0);
- home = CreateObject(19449,1703.902,-1423.889,35.460,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 14534, "ab_wooziea", "walp72S", 0);
- home = CreateObject(3034,1703.915,-1420.487,38.071,0.000,0.000,269.994,300.000);
- SetObjectMaterial(home, 0, 4830, "airport2", "sanairtex3", 0);
- home = CreateObject(19430,1703.903,-1423.084,38.959,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 14534, "ab_wooziea", "walp72S", 0);
- home = CreateObject(19449,1703.902,-1423.189,40.659,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 14534, "ab_wooziea", "walp72S", 0);
- home = CreateObject(19449,1699.220,-1428.260,38.060,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 14534, "ab_wooziea", "walp72S", 0);
- home = CreateObject(19443,1703.817,-1427.709,36.860,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 8639, "chinatownmall", "ctmall10_64", 0);
- home = CreateObject(19443,1703.113,-1428.474,36.860,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 8639, "chinatownmall", "ctmall10_64", 0);
- home = CreateObject(19443,1702.192,-1427.709,39.409,90.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 8639, "chinatownmall", "ctmall10_64", 0);
- home = CreateObject(19443,1700.531,-1428.424,40.360,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 8639, "chinatownmall", "ctmall10_64", 0);
- home = CreateObject(19443,1702.192,-1428.424,38.693,0.000,90.000,0.000,300.000);
- SetObjectMaterial(home, 0, 8639, "chinatownmall", "ctmall10_64", 0);
- home = CreateObject(19443,1698.760,-1428.424,40.360,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 8639, "chinatownmall", "ctmall10_64", 0);
- home = CreateObject(19443,1697.097,-1428.424,38.698,0.000,90.000,0.000,300.000);
- SetObjectMaterial(home, 0, 8639, "chinatownmall", "ctmall10_64", 0);
- home = CreateObject(19443,1696.360,-1428.424,36.860,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 8639, "chinatownmall", "ctmall10_64", 0);
- home = CreateObject(19443,1695.645,-1427.709,36.860,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 8639, "chinatownmall", "ctmall10_64", 0);
- home = CreateObject(19443,1697.099,-1427.709,39.409,90.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 8639, "chinatownmall", "ctmall10_64", 0);
- home = CreateObject(18084,1702.963,-1427.813,37.791,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 8639, "chinatownmall", "ctmall10_64", 0);
- home = CreateObject(18084,1702.963,-1418.331,37.791,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 14534, "ab_wooziea", "walp72S", 0);
- home = CreateObject(19376,1698.765,-1414.959,36.223,0.000,90.000,0.000,300.000);
- SetObjectMaterial(home, 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- home = CreateObject(19449,1703.902,-1414.286,35.460,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 14534, "ab_wooziea", "walp72S", 0);
- home = CreateObject(19449,1703.903,-1413.857,38.959,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 14534, "ab_wooziea", "walp72S", 0);
- home = CreateObject(2836,1699.354,-1421.389,36.310,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 9494, "chinatownsfe", "chtown6_sf", 0);
- SetObjectMaterial(home, 1, 9494, "chinatownsfe", "chtown6_sf", 0);
- home = CreateObject(1744,1700.109,-1428.175,39.082,0.000,0.000,180.000,300.000);
- SetObjectMaterial(home, 0, 9583, "bigshap_sfw", "bridge_walls2_sfw", 0);
- SetObjectMaterial(home, 2, 9583, "bigshap_sfw", "bridge_walls2_sfw", 0);
- home = CreateObject(1744,1700.109,-1428.175,38.613,0.000,0.000,180.000,300.000);
- SetObjectMaterial(home, 0, 9583, "bigshap_sfw", "bridge_walls2_sfw", 0);
- home = CreateObject(1819,1699.340,-1421.968,36.310,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 3776, "ci_studio", "studioroof", 0);
- home = CreateObject(19172,1700.026,-1412.530,37.060,0.000,0.000,180.000,300.000);
- SetObjectMaterial(home, 0, 1677, "wshxrefhse2", "yellowbeige_128", 0);
- home = CreateObject(1727,1701.858,-1421.901,36.310,0.000,0.000,270.000,300.000);
- SetObjectMaterial(home, 1, 14407, "carter_block", "mp_carter_tramp", 0);
- home = CreateObject(1726,1698.772,-1419.366,36.310,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 1, 14407, "carter_block", "mp_carter_tramp", 0);
- home = CreateObject(2230,1701.666,-1428.126,36.310,0.000,0.000,180.000,300.000);
- SetObjectMaterial(home, 2, 9583, "bigshap_sfw", "bridge_walls2_sfw", 0);
- SetObjectMaterial(home, 3, 9583, "bigshap_sfw", "bridge_walls2_sfw", 0);
- home = CreateObject(2230,1697.025,-1428.082,36.310,0.000,0.000,180.000,300.000);
- SetObjectMaterial(home, 2, 9583, "bigshap_sfw", "bridge_walls2_sfw", 0);
- home = CreateObject(1727,1701.834,-1420.316,36.310,0.000,0.000,269.994,300.000);
- SetObjectMaterial(home, 1, 14407, "carter_block", "mp_carter_tramp", 0);
- home = CreateObject(2836,1699.357,-1422.484,36.310,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 1, 9494, "chinatownsfe", "chtown6_sf", 0);
- home = CreateObject(2281,1703.326,-1423.067,37.810,0.000,0.000,270.000,300.000);
- SetObjectMaterial(home, 0, 18029, "genintintsmallrest", "GB_restaursmll04", 0);
- SetObjectMaterial(home, 1, 14581, "ab_mafiasuitea", "walp45S", 0);
- home = CreateObject(2319,1703.383,-1426.427,36.310,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 18029, "genintintsmallrest", "GB_restaursmll04", 0);
- home = CreateObject(2267,1699.648,-1428.145,37.798,0.000,0.000,180.000,300.000);
- SetObjectMaterial(home, 1, 10370, "alleys_sfs", "ws_asphalt", 0);
- home = CreateObject(19375,1692.152,-1421.379,39.839,0.000,90.000,0.000,300.000);
- SetObjectMaterial(home, 0, 9525, "boigas_sfw", "GEwhite1_64", 0);
- home = CreateObject(19375,1699.893,-1428.174,39.837,0.000,90.000,0.000,300.000);
- SetObjectMaterial(home, 0, 9525, "boigas_sfw", "GEwhite1_64", 0);
- home = CreateObject(19356,1703.187,-1422.285,39.839,0.000,90.000,89.999,300.000);
- SetObjectMaterial(home, 0, 9525, "boigas_sfw", "GEwhite1_64", 0);
- home = CreateObject(19375,1699.243,-1414.079,39.837,0.000,90.000,0.000,300.000);
- SetObjectMaterial(home, 0, 9525, "boigas_sfw", "GEwhite1_64", 0);
- home = CreateObject(19378,1698.404,-1421.291,40.261,0.000,90.000,0.000,300.000);
- SetObjectMaterial(home, 0, 9525, "boigas_sfw", "GEwhite1_64", 0);
- home = CreateObject(19449,1699.175,-1416.943,38.060,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 14534, "ab_wooziea", "walp72S", 0);
- home = CreateObject(19449,1695.262,-1414.822,38.060,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 14534, "ab_wooziea", "walp72S", 0);
- home = CreateObject(19174,1695.344,-1424.875,38.247,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 14420, "dr_gsbits", "mp_apt1_pic7", 0);
- home = CreateObject(19172,1695.348,-1418.626,38.205,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 14420, "dr_gsbits", "mp_apt1_pic6", 0);
- home = CreateObject(19356,1703.187,-1418.787,39.839,0.000,90.000,90.000,300.000);
- SetObjectMaterial(home, 0, 9525, "boigas_sfw", "GEwhite1_64", 0);
- home = CreateObject(18075,1696.683,-1416.975,40.012,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 9525, "boigas_sfw", "GEwhite1_64", 0);
- home = CreateObject(19357,1695.262,-1427.624,38.060,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 14534, "ab_wooziea", "walp72S", 0);
- home = CreateObject(19357,1695.262,-1424.441,38.060,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 14534, "ab_wooziea", "walp72S", 0);
- home = CreateObject(19387,1695.262,-1421.230,38.060,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 14534, "ab_wooziea", "walp72S", 0);
- home = CreateObject(19376,1688.279,-1421.379,36.223,0.000,90.000,0.000,300.000);
- SetObjectMaterial(home, 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- home = CreateObject(19390,1695.230,-1421.234,38.061,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 5766, "capitol_lawn", "capitol3_LAwN", 0);
- home = CreateObject(19453,1695.230,-1427.604,38.060,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 5766, "capitol_lawn", "capitol3_LAwN", 0);
- home = CreateObject(19453,1690.383,-1426.125,38.060,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 5766, "capitol_lawn", "capitol3_LAwN", 0);
- home = CreateObject(19356,1693.584,-1422.907,35.560,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 5766, "capitol_lawn", "capitol3_LAwN", 0);
- home = CreateObject(19356,1690.376,-1422.907,35.560,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 5766, "capitol_lawn", "capitol3_LAwN", 0);
- home = CreateObject(19356,1691.520,-1424.430,35.560,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 5766, "capitol_lawn", "capitol3_LAwN", 0);
- home = CreateObject(19356,1693.584,-1423.073,35.560,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 5766, "capitol_lawn", "capitol3_LAwN", 0);
- home = CreateObject(19356,1690.376,-1423.073,35.560,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 5766, "capitol_lawn", "capitol3_LAwN", 0);
- home = CreateObject(19356,1691.694,-1424.430,35.560,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 5766, "capitol_lawn", "capitol3_LAwN", 0);
- home = CreateObject(19356,1695.055,-1424.769,35.560,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 5766, "capitol_lawn", "capitol3_LAwN", 0);
- home = CreateObject(19356,1694.881,-1424.769,35.560,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 5766, "capitol_lawn", "capitol3_LAwN", 0);
- home = CreateObject(19356,1693.387,-1425.968,35.560,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 5766, "capitol_lawn", "capitol3_LAwN", 0);
- home = CreateObject(19356,1693.389,-1425.790,35.560,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 5766, "capitol_lawn", "capitol3_LAwN", 0);
- home = CreateObject(19453,1691.343,-1421.300,38.060,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 5766, "capitol_lawn", "capitol3_LAwN", 0);
- home = CreateObject(19453,1695.230,-1414.850,38.060,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 5766, "capitol_lawn", "capitol3_LAwN", 0);
- home = CreateObject(19453,1690.428,-1416.980,38.060,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 5766, "capitol_lawn", "capitol3_LAwN", 0);
- SetObjectMaterial(home, 1, 15041, "bigsfsave", "AH_flroortile5", 0);
- home = CreateObject(1499,1695.286,-1421.973,36.310,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 14842, "genintintpolicea", "poldesk", 0);
- SetObjectMaterial(home, 1, 1730, "cj_furniture", "CJ_WOOD5", 0);
- home = CreateObject(19426,1694.796,-1423.965,35.558,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 9525, "boigas_sfw", "GEwhite1_64", 0);
- home = CreateObject(19426,1694.796,-1424.909,35.558,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 9525, "boigas_sfw", "GEwhite1_64", 0);
- home = CreateObject(19426,1693.911,-1425.708,35.558,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 9525, "boigas_sfw", "GEwhite1_64", 0);
- home = CreateObject(19426,1692.583,-1425.708,35.558,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 9525, "boigas_sfw", "GEwhite1_64", 0);
- home = CreateObject(19426,1691.781,-1424.821,35.558,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 9525, "boigas_sfw", "GEwhite1_64", 0);
- home = CreateObject(19426,1691.781,-1423.972,35.558,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 0, 9525, "boigas_sfw", "GEwhite1_64", 0);
- home = CreateObject(19426,1692.671,-1423.160,35.558,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 9525, "boigas_sfw", "GEwhite1_64", 0);
- home = CreateObject(19426,1693.904,-1423.160,35.558,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 9525, "boigas_sfw", "GEwhite1_64", 0);
- home = CreateObject(19357,1693.193,-1424.700,36.253,0.000,90.000,0.000,300.000);
- SetObjectMaterial(home, 0, 15041, "bigsfsave", "AH_flroortile5", 0);
- home = CreateObject(2136,1691.915,-1420.859,36.310,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 1, 6094, "canalsg_law", "ws_sheetwood_clean", 0);
- SetObjectMaterial(home, 2, 14476, "carlslounge", "AH_plnskirting", 0);
- SetObjectMaterial(home, 3, 9525, "boigas_sfw", "GEwhite1_64", 0);
- SetObjectMaterial(home, 4, 9525, "boigas_sfw", "GEwhite1_64", 0);
- SetObjectMaterial(home, 5, 9525, "boigas_sfw", "GEwhite1_64", 0);
- SetObjectMaterial(home, 6, 9525, "boigas_sfw", "GEwhite1_64", 0);
- SetObjectMaterial(home, 7, 9525, "boigas_sfw", "GEwhite1_64", 0);
- home = CreateObject(1495,1696.563,-1417.045,36.310,0.000,0.000,0.000,300.000);
- SetObjectMaterial(home, 1, 14581, "ab_mafiasuitea", "walp45S", 0);
- SetObjectMaterial(home, 2, 14842, "genintintpolicea", "poldesk", 0);
- home = CreateObject(3034,1691.428,-1420.380,38.457,0.000,0.000,90.000,300.000);
- SetObjectMaterial(home, 0, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- home = CreateObject(19430,1703.903,-1428.302,38.959,0.000,0.000,0.000,300.000);
- home = CreateObject(18084,1702.963,-1425.204,37.791,0.000,0.000,90.000,300.000);
- home = CreateObject(18084,1702.963,-1420.933,37.791,0.000,0.000,90.000,300.000);
- home = CreateObject(1960,1703.797,-1423.101,38.168,0.000,0.000,90.000,300.000);
- home = CreateObject(2315,1698.923,-1428.175,36.316,0.000,0.000,0.000,300.000);
- home = CreateObject(1788,1700.296,-1427.913,36.880,0.000,0.000,180.000,300.000);
- home = CreateObject(1785,1699.305,-1427.922,36.412,0.000,0.000,0.000,300.000);
- home = CreateObject(19143,1697.099,-1422.000,39.880,289.000,0.000,0.000,300.000);
- home = CreateObject(2252,1703.285,-1425.135,37.130,0.000,0.000,0.000,300.000);
- home = CreateObject(2245,1703.285,-1426.107,37.116,0.000,0.000,0.000,300.000);
- home = CreateObject(19380,1697.308,-1420.886,45.172,0.000,0.000,0.000,300.000);
- home = CreateObject(19380,1698.572,-1418.810,45.172,0.000,0.000,90.000,300.000);
- home = CreateObject(19380,1701.663,-1420.468,45.172,0.000,0.000,0.000,300.000);
- home = CreateObject(19380,1698.083,-1423.443,45.172,0.000,0.000,90.000,300.000);
- home = CreateObject(19143,1697.099,-1420.119,39.880,288.995,0.000,0.000,300.000);
- home = CreateObject(19143,1698.297,-1418.500,39.880,288.995,0.000,0.000,300.000);
- home = CreateObject(19143,1700.535,-1418.500,39.880,288.995,0.000,0.000,300.000);
- home = CreateObject(19143,1701.742,-1420.119,39.880,288.995,0.000,0.000,300.000);
- home = CreateObject(19143,1701.742,-1422.000,39.880,289.000,0.000,0.000,300.000);
- home = CreateObject(19143,1698.297,-1423.459,39.880,288.995,0.000,0.000,300.000);
- home = CreateObject(19143,1700.535,-1423.459,39.880,288.995,0.000,0.000,300.000);
- home = CreateObject(2001,1695.874,-1427.125,36.310,0.000,0.000,0.000,300.000);
- home = CreateObject(10444,1687.951,-1438.290,36.909,0.000,0.000,0.000,300.000);
- home = CreateObject(2528,1693.305,-1417.572,36.310,0.000,0.000,0.000,300.000);
- home = CreateObject(18075,1690.482,-1418.999,39.740,0.000,0.000,0.000,300.000);
- }
- stock LoadGhettoBar() //by Alekseyka
- {
- new tmpobjid;
- tmpobjid = CreateDynamicObjectEx(19378,2592.055,-1648.251,1357.323,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14771, "int_brothelint3", "GB_nastybar12", 0);
- tmpobjid = CreateDynamicObjectEx(19378,2581.555,-1648.251,1357.323,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14771, "int_brothelint3", "GB_nastybar12", 0);
- tmpobjid = CreateDynamicObjectEx(19378,2592.055,-1657.881,1357.323,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14771, "int_brothelint3", "GB_nastybar12", 0);
- tmpobjid = CreateDynamicObjectEx(19378,2602.555,-1657.881,1357.323,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14771, "int_brothelint3", "GB_nastybar12", 0);
- tmpobjid = CreateDynamicObjectEx(16151,2583.103,-1652.075,1357.729,0.000,0.000,270.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10101, "2notherbuildsfe", "Bow_Abpave_Gen", 0);
- SetDynamicObjectMaterial(tmpobjid, 3, 731, "gtatreeshi9", "bchamae", 0);
- SetDynamicObjectMaterial(tmpobjid, 7, 4849, "ground3_las", "floorboard256128", 0);
- SetDynamicObjectMaterial(tmpobjid, 8, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 9, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 10, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObjectEx(19449,2582.076,-1653.003,1359.160,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 5267, "lashops91_las2", "laspowrec2", 0);
- tmpobjid = CreateDynamicObjectEx(19449,2577.330,-1648.124,1359.160,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 5267, "lashops91_las2", "laspowrec2", 0);
- tmpobjid = CreateDynamicObjectEx(19449,2586.804,-1657.879,1359.160,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 5267, "lashops91_las2", "laspowrec2", 0);
- tmpobjid = CreateDynamicObjectEx(19449,2594.927,-1643.472,1359.160,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 5267, "lashops91_las2", "laspowrec2", 0);
- tmpobjid = CreateDynamicObjectEx(19449,2596.159,-1648.230,1359.160,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 5267, "lashops91_las2", "laspowrec2", 0);
- tmpobjid = CreateDynamicObjectEx(19449,2591.442,-1662.375,1359.160,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 5267, "lashops91_las2", "laspowrec2", 0);
- tmpobjid = CreateDynamicObjectEx(19449,2599.500,-1657.703,1359.160,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 5267, "lashops91_las2", "laspowrec2", 0);
- tmpobjid = CreateDynamicObjectEx(19449,2600.887,-1653.112,1359.160,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 5267, "lashops91_las2", "laspowrec2", 0);
- tmpobjid = CreateDynamicObjectEx(19449,2600.917,-1658.009,1359.160,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 5267, "lashops91_las2", "laspowrec2", 0);
- tmpobjid = CreateDynamicObjectEx(1712,2599.052,-1654.918,1357.410,0.000,0.000,270.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6404, "beafron1_law2", "comptwall31", 0);
- tmpobjid = CreateDynamicObjectEx(1712,2596.778,-1653.715,1357.410,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6404, "beafron1_law2", "comptwall31", 0);
- tmpobjid = CreateDynamicObjectEx(1712,2598.343,-1657.425,1357.410,0.000,0.000,180.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6404, "beafron1_law2", "comptwall31", 0);
- tmpobjid = CreateDynamicObjectEx(19449,2601.052,-1662.375,1359.160,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 5267, "lashops91_las2", "laspowrec2", 0);
- tmpobjid = CreateDynamicObjectEx(1712,2596.778,-1658.608,1357.410,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6404, "beafron1_law2", "comptwall31", 0);
- tmpobjid = CreateDynamicObjectEx(1712,2598.343,-1661.814,1357.410,0.000,0.000,179.994,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6404, "beafron1_law2", "comptwall31", 0);
- tmpobjid = CreateDynamicObjectEx(1712,2599.041,-1659.505,1357.410,0.000,0.000,269.994,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6404, "beafron1_law2", "comptwall31", 0);
- tmpobjid = CreateDynamicObjectEx(2747,2597.426,-1660.271,1357.822,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4830, "airport2", "brnstucco1", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObjectEx(2747,2597.440,-1655.281,1357.822,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4830, "airport2", "brnstucco1", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObjectEx(1495,2587.763,-1643.496,1357.410,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14709, "lamidint2", "mp_apt1_floor", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 14709, "lamidint2", "mp_apt1_floor", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 14777, "int_casinoint3", "GB_midbar05", 0);
- tmpobjid = CreateDynamicObjectEx(1522,2577.538,-1652.986,1357.416,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14581, "ab_mafiasuitea", "kit_door1", 0);
- tmpobjid = CreateDynamicObjectEx(19387,2588.538,-1643.472,1359.160,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 5267, "lashops91_las2", "laspowrec2", 0);
- tmpobjid = CreateDynamicObjectEx(19449,2582.125,-1643.471,1359.160,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 5267, "lashops91_las2", "laspowrec2", 0);
- tmpobjid = CreateDynamicObjectEx(19377,2581.555,-1641.651,1357.624,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14771, "int_brothelint3", "GB_nastybar12", 0);
- tmpobjid = CreateDynamicObjectEx(2638,2577.416,-1644.689,1358.369,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3819, "baseball_sfsx", "telepole128", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 4830, "airport2", "brnstucco1", 0);
- tmpobjid = CreateDynamicObjectEx(2639,2585.653,-1644.689,1358.338,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3819, "baseball_sfsx", "telepole128", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 4830, "airport2", "brnstucco1", 0);
- tmpobjid = CreateDynamicObjectEx(2639,2580.770,-1644.689,1358.338,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3819, "baseball_sfsx", "telepole128", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 4830, "airport2", "brnstucco1", 0);
- tmpobjid = CreateDynamicObjectEx(2639,2582.625,-1644.689,1358.338,0.000,0.000,270.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3819, "baseball_sfsx", "telepole128", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 4830, "airport2", "brnstucco1", 0);
- tmpobjid = CreateDynamicObjectEx(2747,2579.375,-1644.790,1358.123,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4830, "airport2", "brnstucco1", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObjectEx(2747,2584.174,-1644.720,1358.123,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4830, "airport2", "brnstucco1", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObjectEx(19452,2586.721,-1641.656,1355.960,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18202, "w_towncs_t", "hatwall256hi", 0);
- tmpobjid = CreateDynamicObjectEx(19452,2581.989,-1646.384,1355.960,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18202, "w_towncs_t", "hatwall256hi", 0);
- tmpobjid = CreateDynamicObjectEx(1432,2588.819,-1660.458,1357.410,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 9515, "bigboxtemp1", "board64_law", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 6404, "beafron1_law2", "melroran3_law", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 6404, "beafron1_law2", "melroran3_law", 0);
- tmpobjid = CreateDynamicObjectEx(1432,2588.605,-1655.344,1357.410,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 9515, "bigboxtemp1", "board64_law", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 6404, "beafron1_law2", "melroran3_law", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 6404, "beafron1_law2", "melroran3_law", 0);
- tmpobjid = CreateDynamicObjectEx(1432,2594.287,-1651.258,1357.410,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 9515, "bigboxtemp1", "board64_law", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 6404, "beafron1_law2", "melroran3_law", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 6404, "beafron1_law2", "melroran3_law", 0);
- tmpobjid = CreateDynamicObjectEx(3034,2592.501,-1643.604,1359.571,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3820, "boxhses_sfsx", "ws_boxhouse_wins5", 0);
- tmpobjid = CreateDynamicObjectEx(3034,2577.454,-1649.281,1359.571,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3820, "boxhses_sfsx", "ws_boxhouse_wins5", 0);
- tmpobjid = CreateDynamicObjectEx(630,2581.802,-1645.505,1358.734,0.000,0.000,-49.200,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3897, "libertyhi", "newtreea128", 0);
- tmpobjid = CreateDynamicObjectEx(630,2581.780,-1644.343,1358.734,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 716, "gta_tree_bevhills", "trunk3", 0);
- tmpobjid = CreateDynamicObjectEx(19449,2596.159,-1657.991,1362.160,0.000,180.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 5267, "lashops91_las2", "laspowrec2", 0);
- tmpobjid = CreateDynamicObjectEx(19379,2602.555,-1657.881,1360.989,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "walp72S", 0);
- tmpobjid = CreateDynamicObjectEx(19379,2592.055,-1657.881,1360.989,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "walp72S", 0);
- tmpobjid = CreateDynamicObjectEx(19379,2592.055,-1648.251,1360.989,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "walp72S", 0);
- tmpobjid = CreateDynamicObjectEx(19379,2581.555,-1648.251,1360.989,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "walp72S", 0);
- tmpobjid = CreateDynamicObjectEx(19449,2587.532,-1643.385,1359.167,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 5267, "lashops91_las2", "laspowrec2", 0);
- tmpobjid = CreateDynamicObjectEx(983,2592.328,-1642.962,1357.739,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 1220, "boxes", "crate128", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 1220, "boxes", "crate128", 0);
- SetDynamicObjectMaterial(tmpobjid, 5, 3820, "boxhses_sfsx", "ws_ irongate", 0);
- tmpobjid = CreateDynamicObjectEx(983,2596.519,-1646.144,1357.740,0.000,0.000,-89.700,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 1220, "boxes", "crate128", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 1220, "boxes", "crate128", 0);
- SetDynamicObjectMaterial(tmpobjid, 5, 3820, "boxhses_sfsx", "ws_ irongate", 0);
- tmpobjid = CreateDynamicObjectEx(1736,2587.189,-1657.912,1359.995,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2964,2591.893,-1657.750,1357.410,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(17969,2596.032,-1647.630,1358.685,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1531,2594.501,-1662.288,1359.270,0.000,0.000,270.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1529,2591.460,-1662.288,1359.284,0.000,0.000,270.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1490,2588.654,-1662.278,1359.306,0.000,0.000,270.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1440,2594.635,-1644.256,1357.928,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(355,2598.812,-1653.328,1357.660,350.000,270.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1664,2597.655,-1654.905,1358.411,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2332,2581.964,-1653.217,1357.822,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1279,2599.211,-1657.342,1357.342,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(338,2592.060,-1656.593,1357.660,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(338,2591.652,-1656.582,1357.660,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(3105,2592.441,-1657.728,1358.197,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(3105,2591.706,-1658.378,1358.339,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(3104,2591.482,-1658.036,1358.339,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(3101,2591.783,-1657.400,1358.339,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(3100,2591.946,-1657.921,1358.339,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(3000,2591.573,-1657.630,1358.339,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2998,2592.186,-1658.501,1358.339,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2980,2587.135,-1658.827,1358.198,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2980,2587.136,-1658.093,1358.198,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2980,2587.138,-1657.333,1358.198,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2837,2579.329,-1644.359,1358.545,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2857,2595.418,-1645.260,1357.410,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(3092,2590.070,-1662.088,1359.318,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1265,2592.801,-1643.987,1357.879,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(630,2599.196,-1661.760,1358.435,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(630,2598.983,-1658.744,1358.435,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2244,2579.757,-1651.711,1358.631,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2256,2586.929,-1655.409,1359.557,0.000,16.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2286,2599.543,-1655.583,1359.719,0.000,0.000,270.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2267,2599.593,-1660.228,1359.780,0.000,0.000,270.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1897,2590.084,-1662.288,1358.527,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2103,2586.472,-1652.338,1358.354,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1750,2599.363,-1653.418,1358.317,0.000,0.000,330.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1780,2599.570,-1653.239,1357.162,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2814,2583.985,-1644.646,1358.545,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2867,2579.364,-1645.064,1358.545,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19897,2597.229,-1655.885,1358.260,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2725,2592.076,-1655.030,1357.000,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2725,2592.076,-1655.029,1361.321,0.000,180.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(16101,2592.051,-1655.057,1350.076,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(18075,2600.585,-1655.624,1360.950,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(6874,2616.784,-1636.776,1350.727,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(6874,2586.460,-1628.516,1350.076,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(6874,2577.904,-1677.862,1350.181,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(6874,2614.909,-1677.463,1351.173,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(6874,2552.657,-1652.153,1350.551,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(18075,2581.101,-1649.793,1360.930,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(16779,2583.686,-1648.392,1361.037,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(18075,2591.267,-1654.229,1360.898,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1530,2599.413,-1660.321,1359.401,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1528,2599.414,-1655.629,1359.380,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(6874,2628.211,-1661.858,1351.193,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2280,2579.320,-1644.058,1359.244,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2281,2584.143,-1644.058,1359.244,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1526,2596.071,-1650.794,1359.349,0.000,0.000,0.000,300.000,300.000);
- }
- stock LoadCustomClub() //by TomF
- {
- CreateDynamicObject(19446, 1294.72021, -876.16333, 2004.17383, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1296.52783, -876.17664, 2002.36743, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1300.01294, -876.18982, 2002.36743, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1303.51147, -876.18518, 2002.36743, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1307.79980, -876.40106, 2004.17102, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1299.45703, -880.81299, 2004.17444, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1536, 1297.92261, -880.78143, 2002.43433, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1536, 1300.93152, -880.75635, 2002.43433, 0.00000, 0.00000, 180.05981);
- CreateDynamicObject(1892, 1297.45386, -881.34247, 2002.45337, 0.00000, 0.00000, 90.00002);
- CreateDynamicObject(1892, 1301.41870, -881.35138, 2002.45337, 0.00000, 0.00000, 90.00002);
- CreateDynamicObject(2165, 1297.23547, -876.53754, 2002.45361, 0.00000, 0.00000, 268.20029);
- CreateDynamicObject(1671, 1295.85742, -876.65924, 2002.88147, 0.00000, 0.00000, -303.54019);
- CreateDynamicObject(970, 1303.31653, -871.39850, 2003.00110, 0.00000, 0.00000, -0.36000);
- CreateDynamicObject(14407, 1299.25134, -869.45789, 1999.26855, 0.00000, 0.00000, 0.60000);
- CreateDynamicObject(19446, 1312.26172, -866.63995, 2004.16052, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1312.27087, -866.65009, 2000.83105, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1287.68091, -866.65710, 2000.84961, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1296.46191, -866.62897, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1299.96143, -866.63116, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1303.44019, -866.63422, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1299.40601, -871.42487, 2000.60950, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(970, 1295.23962, -871.36780, 2003.00110, 0.00000, 0.00000, -0.36000);
- CreateDynamicObject(19446, 1297.24512, -871.63647, 2000.59436, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1301.30139, -871.61169, 2000.59436, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1306.94043, -866.62396, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1310.43005, -866.61029, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1292.96545, -866.61676, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1289.46899, -866.62280, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1308.88940, -871.42938, 2000.60950, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1289.82312, -871.42352, 2000.60950, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1289.82312, -871.42352, 2004.03967, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19458, 1289.41370, -856.99255, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1292.90173, -857.00616, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1296.40125, -856.99402, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1299.89868, -856.99457, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1303.40112, -856.99335, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1306.89917, -856.99023, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1310.39954, -856.97205, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1312.21729, -857.07727, 2000.83105, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1312.28650, -857.04315, 2004.14185, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1293.57898, -852.52228, 1998.60498, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1303.03198, -852.44739, 1998.60498, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1298.30603, -857.26569, 1998.62781, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19458, 1298.29651, -855.58215, 2000.31091, 0.00000, 90.00000, 89.99998);
- CreateDynamicObject(19458, 1298.29626, -852.11780, 2000.31091, 0.00000, 90.00000, 89.99998);
- CreateDynamicObject(19458, 1298.29150, -848.63507, 2000.31091, 0.00000, 90.00000, 89.99998);
- CreateDynamicObject(19446, 1287.67078, -860.07562, 2000.84961, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1287.65955, -855.12079, 2004.04541, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1307.86426, -852.39874, 2000.60950, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1307.86426, -852.39874, 2004.07581, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1288.74829, -852.11841, 2000.64954, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1288.74902, -852.10614, 2003.93005, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19458, 1291.60498, -847.25397, 2005.58325, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1288.30396, -847.22516, 2005.58545, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1304.70569, -847.56842, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1308.20593, -847.56342, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1311.68823, -847.51337, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1312.72925, -847.51678, 2000.83105, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1286.66345, -847.28198, 2000.83105, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1298.28613, -846.79144, 2002.02820, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(14877, 1303.94153, -850.82776, 1998.27307, 0.00000, 0.00000, 180.00015);
- CreateDynamicObject(14877, 1286.79065, -853.75726, 1997.21106, 0.00000, 0.00000, 360.00012);
- CreateDynamicObject(14877, 1303.93494, -853.88049, 1998.27307, 0.00000, 0.00000, 180.48013);
- CreateDynamicObject(19608, 1298.14551, -844.69550, 2003.27478, 0.00000, 180.10001, 0.00000);
- CreateDynamicObject(19446, 1302.98767, -842.09485, 2001.99182, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1303.05493, -842.81946, 1998.60498, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1308.37720, -842.78888, 2000.91272, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1307.60742, -842.78772, 2000.91272, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1822, 1306.82288, -844.79242, 1999.24658, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2855, 1307.07385, -844.50525, 1999.73401, 0.00000, 0.00000, 37.38000);
- CreateDynamicObject(2853, 1307.44922, -844.13690, 1999.74231, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(11729, 1310.11157, -852.02069, 1999.27087, 0.00000, 0.00000, -180.00005);
- CreateDynamicObject(11729, 1310.78345, -852.02325, 1999.27087, 0.00000, 0.00000, -180.00005);
- CreateDynamicObject(11729, 1311.46484, -852.02130, 1999.27087, 0.00000, 0.00000, -180.00005);
- CreateDynamicObject(11729, 1312.36389, -851.20905, 1999.27087, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(11729, 1312.37122, -850.53839, 1999.27087, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(11729, 1312.39331, -849.87872, 1999.27087, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(11729, 1312.39673, -849.21619, 1999.27087, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2371, 1307.13086, -851.65204, 1999.29077, 0.00000, 0.00000, -90.00001);
- CreateDynamicObject(2371, 1312.60181, -845.98224, 1999.29077, 0.00000, 0.00000, -180.00029);
- CreateDynamicObject(2394, 1307.71838, -851.35828, 2000.00220, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2394, 1307.75977, -852.03143, 2000.00220, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2390, 1312.36609, -847.44360, 2000.01489, 0.00000, 0.00000, -87.30000);
- CreateDynamicObject(2390, 1312.38123, -846.63947, 2000.01489, 0.00000, 0.00000, -87.30000);
- CreateDynamicObject(2390, 1312.36621, -845.92175, 2000.01489, 0.00000, 0.00000, -87.30000);
- CreateDynamicObject(1811, 1305.30139, -843.33502, 1999.90173, 0.00000, 0.00000, 93.42000);
- CreateDynamicObject(1811, 1306.07397, -843.31952, 1999.90173, 0.00000, 0.00000, 93.42000);
- CreateDynamicObject(1811, 1304.55237, -843.36157, 1999.90173, 0.00000, 0.00000, 93.42000);
- CreateDynamicObject(19446, 1306.21899, -852.39056, 2000.60950, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1306.21814, -852.39142, 2004.07581, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1290.26929, -852.16742, 2000.64954, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1290.26990, -852.15497, 2003.93005, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1303.04907, -844.54016, 2001.99182, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1491, 1302.99023, -849.34833, 2000.39746, 0.00000, 0.00000, 270.00006);
- CreateDynamicObject(1491, 1303.01794, -852.36774, 2000.39746, 0.00000, 0.00000, 450.18039);
- CreateDynamicObject(19446, 1293.44421, -847.27502, 2001.99182, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19384, 1287.69202, -853.77332, 2000.87158, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1282.93176, -849.87689, 1996.04919, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1280.44897, -854.61371, 2000.21033, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1279.90894, -845.37213, 1997.80615, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1282.90430, -854.60516, 1996.80542, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19458, 1279.43774, -849.73486, 1996.04919, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1275.95483, -849.78375, 1996.04919, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1272.46667, -849.78717, 1996.04919, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1270.27356, -845.39331, 1997.80615, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1270.81909, -850.28113, 1997.87207, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1284.75867, -847.37915, 1997.80713, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1287.93994, -852.15515, 1997.32666, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(3498, 1307.82178, -857.95935, 1997.90808, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3498, 1308.10876, -865.97424, 1997.94727, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1310.41174, -866.61066, 2002.41968, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1306.94043, -866.62396, 2002.40393, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1306.89917, -856.99023, 2002.41650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1303.91956, -880.81610, 2004.17444, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19458, 1307.00989, -876.19550, 2002.36743, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(970, 1305.24475, -869.22925, 2003.00098, 0.00000, 0.00000, -90.00001);
- CreateDynamicObject(970, 1305.23621, -865.10156, 2003.00098, 0.00000, 0.00000, -90.00001);
- CreateDynamicObject(970, 1305.23352, -860.93445, 2003.00098, 0.00000, 0.00000, -90.00001);
- CreateDynamicObject(970, 1305.23560, -856.78497, 2003.00098, 0.00000, 0.00000, -90.00001);
- CreateDynamicObject(970, 1305.21716, -854.53271, 2003.00098, 0.00000, 0.00000, -90.00001);
- CreateDynamicObject(14651, 1274.47424, -852.84784, 1998.27539, 0.00000, 0.00000, -89.99995);
- CreateDynamicObject(1649, 1287.59070, -869.05652, 2004.26331, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(14877, 1286.12366, -859.21606, 2000.21838, 0.00000, 0.00000, 269.51978);
- CreateDynamicObject(19458, 1285.90601, -874.32227, 2002.23340, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1282.45007, -874.34863, 2002.23340, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1273.31165, -854.60577, 1996.80542, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1270.98999, -854.58966, 2000.21033, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1285.19128, -859.34863, 2000.19702, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1285.97571, -864.71021, 2002.23340, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1282.47839, -864.72388, 2002.23340, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1285.17712, -855.05719, 2003.62085, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1277.22925, -866.64142, 2004.04541, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1280.52661, -871.42755, 2004.03967, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19458, 1278.99182, -864.71869, 2002.23340, 0.00000, 90.00000, 0.06000);
- CreateDynamicObject(19458, 1278.97351, -874.33270, 2002.23340, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1277.21252, -862.97028, 2004.04541, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1278.73828, -859.86658, 2003.63867, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1649, 1287.58911, -864.68536, 2004.26331, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1649, 1287.59619, -860.27509, 2004.26331, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1671, 1281.47400, -867.05194, 2002.72278, 0.00000, 0.00000, 366.83972);
- CreateDynamicObject(1828, 1283.76624, -864.41406, 2002.30139, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(626, 1278.51404, -860.76349, 2004.28821, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1708, 1279.92456, -860.53741, 2002.28015, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1713, 1278.06860, -863.75903, 2002.31970, 0.00000, 0.00000, 90.06012);
- CreateDynamicObject(626, 1278.39221, -870.60931, 2004.28821, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2207, 1283.18359, -868.91504, 2002.31287, 0.00000, 0.00000, 152.09985);
- CreateDynamicObject(19474, 1278.42688, -866.65607, 2002.62012, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1930, 1278.09851, -866.43549, 2003.11853, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1930, 1278.08557, -866.58051, 2003.11853, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1930, 1278.13696, -866.53003, 2003.11853, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1930, 1278.07422, -866.52155, 2003.11853, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1930, 1278.02368, -866.47003, 2003.11853, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1930, 1278.02307, -866.57324, 2003.11853, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1932, 1278.62329, -866.11066, 2003.13831, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1932, 1278.62390, -866.03064, 2003.13831, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1932, 1278.68384, -866.05115, 2003.13831, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1932, 1278.70325, -866.13135, 2003.13831, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1932, 1278.66272, -866.19098, 2003.05823, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1932, 1278.58289, -866.15021, 2003.05823, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1933, 1278.46472, -867.37286, 2003.13843, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1933, 1278.41443, -867.34711, 2003.13843, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1933, 1278.39465, -867.41650, 2003.13843, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1933, 1278.35730, -867.36554, 2003.13843, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1933, 1278.46411, -867.43610, 2003.13843, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1933, 1278.53418, -867.39246, 2003.06226, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2165, 1282.56555, -850.66400, 1996.15198, 0.00000, 0.00000, 55.62001);
- CreateDynamicObject(1811, 1284.06030, -851.07709, 1996.65051, 0.00000, 0.00000, -31.73999);
- CreateDynamicObject(2315, 1271.41931, -847.25012, 1996.10425, 0.00000, 0.00000, -89.99998);
- CreateDynamicObject(2315, 1273.97839, -846.02966, 1996.09412, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2315, 1271.53687, -846.03503, 1996.10095, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1274.54480, -849.44696, 1997.80615, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1499, 1279.25916, -849.36200, 1996.11694, 0.00000, 0.00000, 89.99995);
- CreateDynamicObject(19446, 1279.23486, -843.06067, 1997.87207, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2005, 1274.94495, -845.83673, 1996.44080, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1550, 1276.24561, -845.65698, 1996.48071, 9.00000, 6.42000, -52.80000);
- CreateDynamicObject(1550, 1276.61218, -845.63007, 1996.48071, 9.00000, 6.42000, -52.80000);
- CreateDynamicObject(2005, 1274.29944, -845.72290, 1996.44080, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2005, 1273.67920, -845.71082, 1996.44788, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2468, 1271.05518, -848.79456, 1996.52209, 0.00000, 0.00000, 91.08002);
- CreateDynamicObject(19624, 1273.10071, -845.71051, 1996.95703, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19624, 1273.09619, -845.93182, 1996.95703, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19624, 1273.10669, -846.19214, 1996.95703, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19624, 1272.50427, -845.71399, 1996.95703, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19624, 1272.50696, -845.91785, 1996.95703, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19624, 1272.49866, -846.18066, 1996.95703, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1210, 1273.79919, -846.13770, 1996.54187, -92.16002, -0.60000, 179.69998);
- CreateDynamicObject(1210, 1273.79919, -846.13770, 1996.61133, -92.16002, -0.60000, 179.69998);
- CreateDynamicObject(1210, 1273.79919, -846.13770, 1996.68152, -92.16002, -0.60000, 179.69998);
- CreateDynamicObject(1210, 1273.79919, -846.13770, 1996.75171, -92.16002, -0.60000, 179.69998);
- CreateDynamicObject(1210, 1271.48792, -846.00458, 1996.51843, -92.16002, -0.60000, 217.13998);
- CreateDynamicObject(1210, 1271.48792, -846.00458, 1996.59021, -92.16002, -0.60000, 217.13998);
- CreateDynamicObject(1822, 1279.55688, -863.26880, 2002.32434, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14455, 1282.47754, -871.07678, 2003.85339, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2894, 1282.90198, -869.34497, 2003.08521, 0.00000, 0.00000, -71.04001);
- CreateDynamicObject(2332, 1280.08594, -871.60950, 2002.73547, 0.00000, 0.00000, 179.58011);
- CreateDynamicObject(2332, 1280.08594, -871.60950, 2003.57129, 0.00000, 0.00000, 179.58011);
- CreateDynamicObject(2332, 1279.28125, -871.59784, 2002.73547, 0.00000, 0.00000, 179.58011);
- CreateDynamicObject(2332, 1279.28125, -871.59784, 2003.56934, 0.00000, 0.00000, 179.58011);
- CreateDynamicObject(3015, 1272.06763, -849.04169, 1996.20691, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3015, 1272.50806, -849.03540, 1996.20691, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3015, 1272.94873, -849.04901, 1996.20691, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2912, 1279.74805, -845.93915, 1996.13574, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2912, 1280.44836, -845.92249, 1996.13574, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2912, 1281.16992, -845.92578, 1996.13574, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2912, 1281.17114, -845.90582, 1996.82849, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2912, 1280.44958, -845.90259, 1996.82849, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2912, 1279.74792, -845.90051, 1996.82849, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2912, 1279.75122, -846.64984, 1996.13574, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2912, 1280.45313, -846.60748, 1996.13574, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1670, 1279.97217, -862.59241, 2002.82166, 0.00000, 0.00000, 39.30000);
- CreateDynamicObject(19449, 1272.51160, -849.72083, 1999.61243, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1275.97925, -849.71637, 1999.61243, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1279.46716, -849.71008, 1999.61243, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1282.96802, -847.37085, 1999.60620, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1281.14172, -850.39001, 2001.27039, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2005, 1275.57507, -845.79730, 1996.44336, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2005, 1275.56262, -845.96771, 1996.44336, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2005, 1275.54016, -846.11169, 1996.44336, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2005, 1275.52747, -846.28223, 1996.44336, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2005, 1274.91516, -846.00513, 1996.44080, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2005, 1274.90149, -846.15015, 1996.44080, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2005, 1274.88782, -846.29517, 1996.44080, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2005, 1274.26672, -845.87555, 1996.44080, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2005, 1274.25305, -845.98785, 1996.44080, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2005, 1271.11450, -847.35852, 1996.44080, 0.00000, 0.00000, 90.00003);
- CreateDynamicObject(2005, 1271.29565, -847.34973, 1996.44080, 0.00000, 0.00000, 90.00003);
- CreateDynamicObject(2005, 1271.43726, -847.34729, 1996.44080, 0.00000, 0.00000, 90.00003);
- CreateDynamicObject(2005, 1271.57568, -847.32507, 1996.44080, 0.00000, 0.00000, 90.00003);
- CreateDynamicObject(1575, 1271.24036, -847.85492, 1996.55933, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1575, 1271.22241, -848.19519, 1996.55933, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1575, 1271.20654, -848.51550, 1996.55933, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1575, 1271.13049, -847.96606, 1996.69934, 0.00000, 0.00000, -48.18000);
- CreateDynamicObject(1575, 1271.11304, -848.40631, 1996.69934, 0.00000, 0.00000, -48.18000);
- CreateDynamicObject(1578, 1272.04114, -845.89856, 1996.57971, 0.00000, 0.00000, 89.88001);
- CreateDynamicObject(1578, 1272.05298, -845.85541, 1996.73376, 0.00000, 0.00000, 89.88001);
- CreateDynamicObject(1578, 1271.69788, -846.24182, 1996.09998, 0.00000, 0.00000, 89.88001);
- CreateDynamicObject(1578, 1271.99854, -846.23358, 1996.09998, 0.00000, 0.00000, 89.88001);
- CreateDynamicObject(1578, 1272.25854, -846.24377, 1996.09998, 0.00000, 0.00000, 89.88001);
- CreateDynamicObject(1578, 1272.53931, -846.23480, 1996.09998, 0.00000, 0.00000, 89.88001);
- CreateDynamicObject(1578, 1272.77917, -846.24414, 1996.09998, 0.00000, 0.00000, 89.88001);
- CreateDynamicObject(19446, 1279.22375, -844.64270, 2000.37500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 1287.74548, -869.12506, 2004.26331, 0.00000, 0.00000, -270.00000);
- CreateDynamicObject(1649, 1287.74084, -864.69904, 2004.26331, 0.00000, 0.00000, -270.00000);
- CreateDynamicObject(1649, 1287.73560, -860.35144, 2004.26331, 0.00000, 0.00000, -270.00000);
- CreateDynamicObject(19446, 1299.45703, -880.81299, 2007.61462, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1303.91956, -880.81610, 2007.62524, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1307.62012, -876.35425, 2007.55176, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1312.37402, -871.56610, 2007.57056, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1312.26172, -866.63995, 2007.60742, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1312.30249, -857.05524, 2007.62061, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1307.86426, -852.39874, 2007.55481, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1306.21814, -852.39142, 2007.54468, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1287.66772, -855.12201, 2007.49377, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1294.72021, -876.16333, 2007.60474, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1289.82312, -871.42352, 2007.44507, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1280.52661, -871.42755, 2007.44385, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1277.22925, -866.64142, 2007.48425, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1277.21252, -862.97028, 2007.48438, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1280.43982, -859.85425, 2007.06787, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1285.17712, -855.05719, 2006.99353, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1616, 1287.99231, -852.91443, 2008.13782, 0.00000, 0.00000, 158.28001);
- CreateDynamicObject(1616, 1295.09167, -871.73450, 2008.13782, 0.00000, 0.00000, 158.28001);
- CreateDynamicObject(1616, 1277.56641, -860.43439, 2008.13782, 0.00000, 0.00000, 170.99998);
- CreateDynamicObject(1616, 1290.66602, -871.05267, 2008.11926, 0.00000, 0.00000, 248.58006);
- CreateDynamicObject(19446, 1287.61292, -864.64899, 2007.65369, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1287.59863, -874.25220, 2007.65369, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1293.41858, -847.41400, 2005.47900, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1298.28613, -846.79144, 2005.47742, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1303.04907, -844.54016, 2005.43982, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19449, 1310.95508, -847.54681, 2002.97986, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1307.44897, -847.56415, 2002.98450, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1304.73572, -847.51172, 2002.97961, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1303.06250, -847.53418, 2004.63232, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1308.37720, -842.78888, 2004.39490, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1307.60742, -842.78772, 2004.37024, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1312.72925, -847.51678, 2004.31726, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19449, 1283.53918, -851.38654, 2001.77490, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1280.09839, -851.41193, 2001.77490, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(14877, 1283.70203, -859.78827, 2000.87659, 0.00000, 0.00000, 450.66013);
- CreateDynamicObject(19446, 1281.65332, -855.02179, 2003.62085, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1283.34460, -854.27490, 2002.87476, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(8614, 1285.78503, -843.43103, 2004.46167, 0.00000, 0.00000, 179.99986);
- CreateDynamicObject(19458, 1283.34497, -845.59296, 2002.87476, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1281.57983, -846.30273, 2003.62085, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1286.90173, -841.30762, 2003.83484, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1282.82422, -842.34412, 2003.86450, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1286.88049, -847.17267, 2003.84998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1285.20508, -847.24725, 2002.85864, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1285.20630, -837.82306, 2002.85864, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1291.71265, -842.53644, 2007.15906, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1293.41846, -847.41400, 2008.96069, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1286.60071, -849.02649, 2007.37427, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1281.78882, -852.12531, 2007.42944, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1649, 1291.25867, -852.24438, 2007.28760, 0.00000, 0.00000, -360.00000);
- CreateDynamicObject(1649, 1286.82178, -852.24396, 2007.28760, 0.00000, 0.00000, -360.00000);
- CreateDynamicObject(1649, 1291.16479, -852.18561, 2007.33118, 0.00000, 0.00000, -180.00000);
- CreateDynamicObject(1649, 1286.73108, -852.19092, 2007.33118, 0.00000, 0.00000, -180.00000);
- CreateDynamicObject(19446, 1282.82422, -842.34412, 2007.35291, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1282.88611, -859.84344, 2007.06787, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19458, 1285.99011, -854.42053, 2005.58447, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1282.92285, -850.37708, 2007.42944, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1892, 1301.41870, -881.35138, 2002.45337, 0.00000, 0.00000, 90.00002);
- CreateDynamicObject(19446, 1293.57898, -852.52228, 1998.60498, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1303.03198, -852.44739, 1998.60498, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1287.64124, -855.12891, 2004.04541, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1288.74829, -852.11841, 2000.64954, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19458, 1291.83289, -847.30798, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1288.34583, -847.29492, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1304.70569, -847.56842, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1308.20593, -847.56342, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1311.68823, -847.51337, 1999.21240, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1286.66345, -847.28198, 2000.83105, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14877, 1303.94153, -850.82776, 1998.27307, 0.00000, 0.00000, 180.00015);
- CreateDynamicObject(19446, 1302.98767, -842.09485, 2001.99182, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1303.05493, -842.81946, 1998.60498, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1308.37720, -842.78888, 2000.91272, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1307.60742, -842.78772, 2000.91272, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19458, 1282.93176, -849.87689, 1996.04919, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1270.27356, -845.39331, 1997.80615, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1284.75867, -847.37915, 1997.80713, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1303.90210, -880.82581, 2004.17444, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1649, 1287.71497, -869.06689, 2004.26331, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1273.31165, -854.60577, 1996.80542, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1285.19128, -859.34863, 2000.19702, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1277.22925, -866.64142, 2004.04541, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1280.52661, -871.42755, 2004.03967, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1277.21252, -862.97028, 2004.04541, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 1287.71167, -864.66876, 2004.26331, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1649, 1287.71338, -860.22650, 2004.26331, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2002, 1283.31836, -860.55206, 2002.28784, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1930, 1278.09851, -866.43549, 2003.11853, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1930, 1278.08557, -866.58051, 2003.11853, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1930, 1278.13696, -866.53003, 2003.11853, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1930, 1278.07422, -866.52155, 2003.11853, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1930, 1278.02368, -866.47003, 2003.11853, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1930, 1278.02307, -866.57324, 2003.11853, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1932, 1278.62329, -866.11066, 2003.13831, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1932, 1278.62390, -866.03064, 2003.13831, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1932, 1278.68384, -866.05115, 2003.13831, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1932, 1278.70325, -866.13135, 2003.13831, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1932, 1278.66272, -866.19098, 2003.05823, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1932, 1278.58289, -866.15021, 2003.05823, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1933, 1278.46472, -867.37286, 2003.13843, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1933, 1278.41443, -867.34711, 2003.13843, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1933, 1278.39465, -867.41650, 2003.13843, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1933, 1278.35730, -867.36554, 2003.13843, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1933, 1278.46411, -867.43610, 2003.13843, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1933, 1278.53418, -867.39246, 2003.06226, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2315, 1271.43884, -847.25433, 1996.04675, 0.00000, 0.00000, -89.99998);
- CreateDynamicObject(2315, 1273.97839, -846.02966, 1996.04675, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2315, 1271.53687, -846.03503, 1996.04675, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1274.54480, -849.44696, 1997.80615, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1499, 1279.25916, -849.36200, 1996.11694, 0.00000, 0.00000, 89.99995);
- CreateDynamicObject(19446, 1279.23486, -843.06067, 1997.87207, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1212, 1275.77905, -845.67987, 1996.54175, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1212, 1275.57324, -846.24011, 1996.54175, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1212, 1275.56909, -846.05054, 1996.54175, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1212, 1275.57715, -845.89063, 1996.54175, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1212, 1275.56360, -845.73010, 1996.54175, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1212, 1274.97546, -846.01489, 1996.49927, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1212, 1275.06812, -846.14056, 1996.48022, 0.00000, 0.00000, 35.82001);
- CreateDynamicObject(1212, 1274.86987, -846.20526, 1996.48975, 0.00000, 0.00000, -109.37997);
- CreateDynamicObject(1212, 1274.78210, -846.13214, 1996.50879, 0.00000, 0.00000, -109.37997);
- CreateDynamicObject(2005, 1275.09509, -845.67505, 1996.44080, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2005, 1274.44666, -845.71368, 1996.44080, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2005, 1273.79700, -845.73248, 1996.44080, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1212, 1271.40417, -847.60242, 1996.60876, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1212, 1271.40271, -847.52240, 1996.60876, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1212, 1271.40125, -847.44232, 1996.60876, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1212, 1271.39978, -847.36224, 1996.60876, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19624, 1273.10071, -845.71051, 1996.95703, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19624, 1273.09619, -845.93182, 1996.95703, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19624, 1273.10669, -846.19214, 1996.95703, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19624, 1272.50427, -845.71399, 1996.95703, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19624, 1272.50696, -845.91785, 1996.95703, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19624, 1272.49866, -846.18066, 1996.95703, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1210, 1273.79919, -846.13770, 1996.54187, -92.16002, -0.60000, 179.69998);
- CreateDynamicObject(1210, 1273.79919, -846.13770, 1996.61133, -92.16002, -0.60000, 179.69998);
- CreateDynamicObject(1210, 1273.79919, -846.13770, 1996.68152, -92.16002, -0.60000, 179.69998);
- CreateDynamicObject(1210, 1273.79919, -846.13770, 1996.75171, -92.16002, -0.60000, 179.69998);
- CreateDynamicObject(1210, 1271.48792, -846.00458, 1996.51843, -92.16002, -0.60000, 217.13998);
- CreateDynamicObject(1210, 1271.48792, -846.00458, 1996.59021, -92.16002, -0.60000, 217.13998);
- CreateDynamicObject(1212, 1274.74658, -846.33478, 1996.48340, 0.00000, 0.00000, -215.33998);
- CreateDynamicObject(2894, 1282.90198, -869.34497, 2003.08521, 0.00000, 0.00000, -71.04001);
- CreateDynamicObject(2912, 1279.74805, -845.93915, 1996.13574, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2912, 1280.44836, -845.92249, 1996.13574, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2912, 1281.16992, -845.92578, 1996.13574, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2912, 1281.17114, -845.90582, 1996.82849, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2912, 1280.44958, -845.90259, 1996.82849, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2912, 1279.74792, -845.90051, 1996.82849, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2912, 1279.75122, -846.64984, 1996.13574, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2912, 1280.45313, -846.60748, 1996.13574, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1279.23889, -852.12164, 2001.28674, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1281.14172, -850.39001, 2001.27039, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2606, 1291.68079, -842.41516, 2006.61829, 0.00000, 0.00000, 0.00001);
- CreateDynamicObject(2606, 1293.55396, -843.83795, 2007.33228, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1952, 1291.98120, -845.73999, 2006.63599, 82.56001, -95.82003, -68.82000);
- CreateDynamicObject(1892, 1286.73010, -842.84338, 2005.67102, 0.00000, 0.00000, -88.62001);
- CreateDynamicObject(2184, 1292.44666, -845.01624, 2005.67078, 0.00000, 0.00000, 164.09995);
- CreateDynamicObject(2315, 1287.21228, -851.27783, 2005.66077, 0.00000, 0.00000, 90.00005);
- CreateDynamicObject(2002, 1292.90149, -849.82117, 2005.67188, 0.00000, 0.00000, -90.00003);
- CreateDynamicObject(348, 1287.58337, -850.03296, 2006.15552, 88.07999, -222.18007, 97.26000);
- CreateDynamicObject(2332, 1287.17688, -850.57465, 2006.79443, 0.00000, 0.00000, 180.41995);
- CreateDynamicObject(348, 1287.37183, -849.96063, 2006.15552, 88.07999, -222.18007, 97.26000);
- CreateDynamicObject(348, 1287.12085, -849.89362, 2006.15552, 88.07999, -222.18007, 97.26000);
- CreateDynamicObject(2606, 1291.68079, -842.41516, 2007.07349, 0.00000, 0.00000, 0.00001);
- CreateDynamicObject(2606, 1291.68079, -842.41516, 2007.52087, 0.00000, 0.00000, 0.00001);
- CreateDynamicObject(2606, 1291.68079, -842.41516, 2007.96460, 0.00000, 0.00000, 0.00001);
- CreateDynamicObject(2606, 1293.55396, -843.83795, 2006.88135, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1714, 1291.55737, -846.73676, 2005.66003, 0.00000, 0.00000, 169.49995);
- CreateDynamicObject(1714, 1290.37219, -846.43768, 2005.66003, 0.00000, 0.00000, 159.00012);
- CreateDynamicObject(1952, 1290.35754, -845.38776, 2006.62122, 80.46001, 5.87996, -68.82000);
- CreateDynamicObject(1964, 1291.09460, -845.13904, 2006.57324, 0.00000, 0.00000, 159.95988);
- CreateDynamicObject(1985, 1284.40527, -849.86139, 2005.63647, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2596, 1290.26392, -842.89288, 2007.80701, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(11729, 1286.92419, -848.43854, 2005.67676, 0.00000, 0.00000, 90.00002);
- CreateDynamicObject(11729, 1286.93152, -847.77393, 2005.67676, 0.00000, 0.00000, 90.00002);
- CreateDynamicObject(11729, 1286.93835, -847.10944, 2005.67676, 0.00000, 0.00000, 90.00002);
- CreateDynamicObject(2629, 1285.67651, -847.74255, 2002.94556, 0.00000, 0.00000, -90.00004);
- CreateDynamicObject(2629, 1285.64905, -845.75800, 2002.94556, 0.00000, 0.00000, -90.00004);
- CreateDynamicObject(1491, 1280.96094, -852.16980, 2002.95837, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1491, 1283.98450, -852.14594, 2002.95837, 0.00000, 0.00000, 180.00012);
- CreateDynamicObject(2853, 1290.42847, -844.64862, 2006.43872, 0.00000, 0.00000, 196.98006);
- CreateDynamicObject(1713, 1292.85657, -847.47418, 2005.67139, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1702, 1296.52563, -867.68616, 1999.29968, 0.00000, 0.00000, -90.00006);
- CreateDynamicObject(1702, 1295.65625, -870.58600, 1999.29968, 0.00000, 0.00000, -180.00017);
- CreateDynamicObject(1825, 1309.60986, -854.93903, 1999.27856, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1825, 1309.75781, -860.15222, 1999.27856, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1825, 1309.87061, -864.49121, 1999.27856, 0.00000, 0.00000, 87.90001);
- CreateDynamicObject(1825, 1309.73157, -869.00848, 1999.27856, 0.00000, 0.00000, 65.69999);
- CreateDynamicObject(1702, 1301.94543, -869.97125, 1999.29968, 0.00000, 0.00000, -270.00034);
- CreateDynamicObject(1702, 1304.93188, -870.76184, 1999.29968, 0.00000, 0.00000, -180.00017);
- CreateDynamicObject(1827, 1303.93628, -869.01495, 1999.26013, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1825, 1305.83594, -866.12354, 1999.27856, 0.00000, 0.00000, 33.83998);
- CreateDynamicObject(1825, 1305.72681, -861.65796, 1999.27856, 0.00000, 0.00000, 160.43999);
- CreateDynamicObject(1702, 1289.97363, -870.40680, 1999.29968, 0.00000, 0.00000, -180.00017);
- CreateDynamicObject(1702, 1287.98767, -866.58990, 1999.29968, 0.00000, 0.00000, -360.00012);
- CreateDynamicObject(1827, 1294.69495, -868.77704, 1999.26013, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1705, 1290.98169, -868.04486, 1999.29871, 0.00000, 0.00000, -90.00002);
- CreateDynamicObject(1827, 1288.89758, -868.55780, 1999.26013, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1310.39954, -856.97205, 2002.41101, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(1702, 1309.22241, -853.07507, 2002.49646, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1702, 1306.69568, -853.10718, 2002.49646, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1702, 1311.68762, -854.45380, 2002.49646, 0.00000, 0.00000, -89.99996);
- CreateDynamicObject(1702, 1306.10535, -856.43854, 2002.81506, 0.00000, 0.00000, -270.00034);
- CreateDynamicObject(2315, 1308.12415, -854.68927, 2002.47241, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1670, 1309.48840, -854.75433, 2002.98596, 0.00000, 0.00000, -33.06000);
- CreateDynamicObject(1670, 1308.24731, -854.79272, 2002.98596, 0.00000, 0.00000, -140.94000);
- CreateDynamicObject(1670, 1308.19910, -855.69952, 2002.98596, 0.00000, 0.00000, -223.20003);
- CreateDynamicObject(1670, 1309.44922, -855.78076, 2002.98596, 0.00000, 0.00000, -165.18002);
- CreateDynamicObject(1705, 1310.02319, -857.25781, 2002.50488, 0.00000, 0.00000, -179.99994);
- CreateDynamicObject(1705, 1308.59009, -857.26715, 2002.50488, 0.00000, 0.00000, -179.99994);
- CreateDynamicObject(1670, 1305.77283, -861.71100, 2000.19836, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1670, 1305.66199, -866.21301, 2000.17834, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19821, 1288.40479, -868.75018, 1999.68762, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19821, 1288.40906, -868.43158, 1999.68762, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19819, 1288.58704, -868.46082, 1999.76721, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19819, 1288.60132, -868.64032, 1999.76721, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1670, 1289.19067, -868.69574, 1999.70007, 0.00000, 0.00000, 84.12001);
- CreateDynamicObject(19821, 1309.09363, -855.10419, 2002.96753, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19821, 1308.96021, -855.06195, 2002.96753, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2315, 1308.11914, -855.62970, 2002.47241, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19824, 1309.10022, -855.29224, 2002.96765, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19824, 1308.96094, -855.26904, 2002.96765, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19818, 1308.79639, -855.05737, 2003.04297, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19818, 1308.86987, -855.19519, 2003.04297, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19818, 1308.75439, -855.21332, 2003.04297, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19822, 1304.03345, -869.14136, 1999.69250, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19818, 1303.87781, -869.21661, 1999.76526, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19818, 1303.88733, -869.09052, 1999.76526, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19818, 1303.96484, -868.98877, 1999.76526, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19822, 1294.41760, -868.65015, 1999.68701, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19818, 1294.45764, -868.89764, 1999.77136, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19818, 1294.56897, -868.81274, 1999.77136, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19824, 1281.18787, -868.49475, 2003.08960, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19818, 1281.33081, -868.58478, 2003.16943, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19818, 1281.41064, -868.49506, 2003.16943, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2725, 1292.96863, -850.50739, 2006.06934, 0.00000, 0.00000, 29.34000);
- CreateDynamicObject(1546, 1293.13794, -850.54834, 2006.60425, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1546, 1293.14819, -850.42865, 2006.60425, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19818, 1281.42566, -868.35028, 2003.16943, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19823, 1281.21448, -868.33240, 2003.08972, 0.00000, 0.00000, -35.04000);
- CreateDynamicObject(1714, 1281.43408, -870.03723, 2002.27502, 0.00000, 0.00000, 148.86003);
- CreateDynamicObject(1671, 1282.93835, -867.25153, 2002.72278, 0.00000, 0.00000, 327.77985);
- CreateDynamicObject(1671, 1284.03369, -868.33459, 2002.72278, 0.00000, 0.00000, 290.57986);
- CreateDynamicObject(626, 1291.88293, -870.83289, 2001.27112, 0.00000, 0.00000, -37.02000);
- CreateDynamicObject(626, 1288.86780, -864.89905, 2001.27112, 0.00000, 0.00000, -37.02000);
- CreateDynamicObject(2855, 1280.32996, -862.69281, 2002.41443, 0.00000, 0.00000, -170.46004);
- CreateDynamicObject(2964, 1308.44666, -861.18304, 2002.49023, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2964, 1308.37891, -864.93573, 2002.49023, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19384, 1305.25977, -873.03290, 2004.16077, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1305.24951, -879.44281, 2004.06726, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1313.31555, -871.47986, 2004.09912, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19384, 1306.93811, -871.50745, 2004.15222, 0.00000, 0.00000, -90.00002);
- CreateDynamicObject(19446, 1310.00977, -873.84912, 2004.09070, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2773, 1303.96057, -871.95844, 2002.96545, 0.00000, 0.00000, -93.66004);
- CreateDynamicObject(2773, 1304.12842, -874.53491, 2002.96545, 0.00000, 0.00000, -62.70000);
- CreateDynamicObject(1702, 1311.93433, -870.87000, 2002.47461, 0.00000, 0.00000, -180.00017);
- CreateDynamicObject(1705, 1308.58325, -869.74744, 2002.50488, 0.00000, 0.00000, -269.03995);
- CreateDynamicObject(2315, 1310.22266, -869.23004, 2002.47241, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1702, 1309.77844, -867.43433, 2002.49646, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1670, 1311.30554, -869.23376, 2002.98596, 0.00000, 0.00000, -74.76001);
- CreateDynamicObject(1670, 1310.46155, -869.21130, 2002.98596, 0.00000, 0.00000, -74.76001);
- CreateDynamicObject(19446, 1306.92371, -876.25659, 2005.75696, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19449, 1291.73279, -847.44708, 2008.99219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1288.23462, -847.44092, 2008.99219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1285.12085, -847.16833, 2008.99219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1281.65881, -847.21259, 2008.99219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1281.57983, -846.30273, 2007.05042, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1281.65332, -855.02179, 2006.98853, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19449, 1285.88354, -855.01929, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1282.41174, -855.03540, 2008.88611, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1285.84717, -864.64362, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1282.40295, -864.66315, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1278.92065, -864.63995, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1278.92102, -874.27173, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1282.37903, -874.30499, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1285.87964, -874.27502, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1296.52979, -875.97894, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1300.01440, -875.97015, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1303.47937, -875.95300, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1306.92358, -875.94861, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19446, 1305.25549, -876.24646, 2007.45288, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 1310.01331, -871.49786, 2007.57056, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19449, 1289.43823, -866.57513, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1292.92041, -866.58002, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1296.41956, -866.58722, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1299.86707, -866.59064, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1303.32690, -866.60138, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1306.76660, -866.60889, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1310.24890, -866.60748, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1313.71387, -866.59290, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1310.56152, -856.99567, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1307.06091, -856.98871, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1303.56848, -856.96381, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1300.10938, -856.95905, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1296.61035, -856.94861, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1293.13062, -856.94733, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1289.70923, -856.96490, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1286.24707, -856.96143, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19608, 1298.30640, -854.34753, 1998.10657, -71.27995, 179.43980, 0.00000);
- CreateDynamicObject(19446, 1298.28613, -846.79144, 2008.96692, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19446, 1303.12598, -847.54108, 2008.02808, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19449, 1301.31860, -847.39020, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1297.86157, -847.41278, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19449, 1295.13806, -847.47137, 2008.86646, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(3015, 1286.86633, -849.04340, 2005.55371, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(334, 1287.13953, -849.46173, 2006.15540, 95.82002, -59.76000, 0.00000);
- CreateDynamicObject(334, 1287.13782, -849.86682, 2006.15540, 95.82002, -59.76000, -197.09993);
- CreateDynamicObject(2773, 1301.07190, -878.66626, 2002.96545, 0.00000, 0.00000, -145.92007);
- CreateDynamicObject(2773, 1297.39063, -879.02026, 2002.96545, 0.00000, 0.00000, -203.64009);
- CreateDynamicObject(2773, 1296.35315, -874.99982, 2002.96545, 0.00000, 0.00000, -141.96019);
- CreateDynamicObject(19159, 1301.33521, -859.94263, 2008.59595, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19159, 1301.61353, -863.34253, 2008.59595, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19159, 1301.58997, -866.27814, 2008.59595, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19159, 1298.23254, -865.98077, 2008.59595, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19159, 1298.30908, -863.08118, 2008.59595, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19159, 1298.36768, -860.00073, 2008.59595, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19159, 1294.70435, -865.89880, 2008.59595, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19159, 1294.59473, -862.63373, 2008.59595, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19159, 1294.69275, -859.67377, 2008.59595, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2707, 1302.74048, -857.21570, 2000.41260, -180.00000, 0.00000, 0.00000);
- CreateDynamicObject(2707, 1301.74976, -857.20862, 2000.41260, -180.00000, 0.00000, 0.00000);
- CreateDynamicObject(2707, 1300.78821, -857.21979, 2000.41260, -180.00000, 0.00000, 0.00000);
- CreateDynamicObject(2707, 1299.74695, -857.19830, 2000.41260, -180.00000, 0.00000, 0.00000);
- CreateDynamicObject(2707, 1296.77136, -857.22693, 2000.41260, -180.00000, 0.00000, 0.00000);
- CreateDynamicObject(2707, 1295.82214, -857.23346, 2000.41260, -180.00000, 0.00000, 0.00000);
- CreateDynamicObject(2707, 1294.94067, -857.22809, 2000.41260, -180.00000, 0.00000, 0.00000);
- CreateDynamicObject(2707, 1294.07898, -857.22412, 2000.41260, -180.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, 1297.31421, -869.21497, 2003.00110, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1301.23401, -869.19153, 2003.00110, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(16151, 1288.66492, -859.85052, 1999.61731, 0.00000, 0.00000, -179.64005);
- CreateDynamicObject(19821, 1287.88232, -863.19958, 2000.20801, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19821, 1287.83301, -863.32916, 2000.20801, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19821, 1287.83533, -863.48608, 2000.20801, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19821, 1288.02722, -863.51233, 2000.20801, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19821, 1288.03137, -863.34790, 2000.20801, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19821, 1288.04346, -863.18042, 2000.20801, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19822, 1288.25049, -863.26624, 2000.24487, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19822, 1288.21069, -863.38696, 2000.24487, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19822, 1288.18579, -863.52118, 2000.24487, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19822, 1288.35840, -863.52155, 2000.24487, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19822, 1288.38171, -863.39539, 2000.24487, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19822, 1288.40125, -863.28076, 2000.24487, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19823, 1287.93665, -863.03809, 2000.24500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19823, 1287.92310, -862.93695, 2000.24500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19823, 1288.12549, -863.03741, 2000.24500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19823, 1288.11267, -862.93610, 2000.24500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19823, 1288.29651, -863.16962, 2000.24500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19823, 1288.29004, -863.08728, 2000.24500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19823, 1288.30237, -862.99860, 2000.24500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19823, 1288.30225, -862.93512, 2000.24500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1825, 1293.07947, -865.16876, 1999.27856, 0.00000, 0.00000, 160.43999);
- CreateDynamicObject(19810, 1287.79517, -853.84521, 2001.86719, 0.00000, 0.00000, -89.63998);
- CreateDynamicObject(7666, 1298.13306, -846.93817, 2003.75574, 0.00000, 0.00000, -60.00000);
- CreateDynamicObject(7666, 1295.65308, -847.00415, 2006.73718, -201.18002, 16007.24512, -60.00000);
- CreateDynamicObject(7666, 1300.75000, -846.98145, 2006.73718, -201.18002, 16007.24512, -60.00000);
- CreateDynamicObject(338, 1307.84692, -860.62622, 2003.48657, -95.28001, 44.58001, -91.43999);
- CreateDynamicObject(338, 1307.82043, -861.59613, 2003.48657, -95.28001, 44.58001, -10.67998);
- CreateDynamicObject(338, 1308.13037, -865.36011, 2003.48657, -95.28001, 44.58001, -10.67998);
- CreateDynamicObject(338, 1308.04114, -865.31512, 2003.48657, -95.28001, 44.58001, -10.67998);
- CreateDynamicObject(2965, 1307.68396, -864.94202, 2003.40698, 0.00000, 0.00000, 179.52000);
- CreateDynamicObject(338, 1298.12085, -856.85895, 2001.29126, -537.12024, 5.22004, -115.80002);
- CreateDynamicObject(1955, 1298.06409, -856.71130, 2001.78235, 29.88002, -69.60001, 6.24000);
- }
- stock LoadSmallApartment() //by Alekseyka
- {
- new tmpobjid;
- tmpobjid = CreateObject(19376,1783.012,-1439.526,1358.506,0.000,90.000,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "woodfloor1", 0);
- tmpobjid = CreateObject(19171,1788.851,-1441.766,1361.292,0.000,0.000,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 4600, "theatrelan2", "sl_whitewash1", 0);
- tmpobjid = CreateObject(19446,1783.421,-1444.189,1360.343,0.000,0.000,90.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 6867, "vgnpwrmainbld", "sw_wallbrick_02", 0);
- tmpobjid = CreateObject(19445,1783.420,-1444.179,1363.042,0.000,180.000,90.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschapelwall01_64", 0);
- tmpobjid = CreateObject(19445,1788.179,-1439.322,1357.542,0.000,0.000,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschapelwall01_64", 0);
- tmpobjid = CreateObject(19427,1788.189,-1443.317,1360.343,0.000,0.000,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 6867, "vgnpwrmainbld", "sw_wallbrick_02", 0);
- tmpobjid = CreateObject(19171,1788.851,-1442.511,1360.035,90.000,180.000,180.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 4600, "theatrelan2", "sl_whitewash1", 0);
- tmpobjid = CreateObject(19171,1788.851,-1442.511,1361.535,90.000,180.000,180.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 4600, "theatrelan2", "sl_whitewash1", 0);
- tmpobjid = CreateObject(19171,1788.851,-1441.766,1359.312,0.000,179.994,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 4600, "theatrelan2", "sl_whitewash1", 0);
- tmpobjid = CreateObject(19171,1788.851,-1441.000,1360.035,90.000,179.994,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 4600, "theatrelan2", "sl_whitewash1", 0);
- tmpobjid = CreateObject(19171,1788.851,-1441.000,1361.535,90.000,179.994,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 4600, "theatrelan2", "sl_whitewash1", 0);
- tmpobjid = CreateObject(19171,1789.010,-1441.760,1360.035,90.000,179.994,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 4600, "theatrelan2", "sl_whitewash1", 0);
- tmpobjid = CreateObject(19171,1789.009,-1441.759,1361.535,90.000,180.005,359.983,300.000);
- SetObjectMaterial(tmpobjid, 0, 4600, "theatrelan2", "sl_whitewash1", 0);
- tmpobjid = CreateObject(19171,1789.009,-1441.766,1360.492,0.000,0.000,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 4600, "theatrelan2", "sl_whitewash1", 0);
- tmpobjid = CreateObject(19427,1788.189,-1440.182,1360.343,0.000,0.000,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 6867, "vgnpwrmainbld", "sw_wallbrick_02", 0);
- tmpobjid = CreateObject(19445,1783.440,-1444.179,1357.542,0.000,0.000,90.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschapelwall01_64", 0);
- tmpobjid = CreateObject(19445,1788.179,-1439.322,1363.042,0.000,180.000,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschapelwall01_64", 0);
- tmpobjid = CreateObject(19171,1788.851,-1438.636,1359.312,0.000,179.994,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 4600, "theatrelan2", "sl_whitewash1", 0);
- tmpobjid = CreateObject(19171,1788.851,-1439.361,1360.035,90.000,179.994,179.994,300.000);
- SetObjectMaterial(tmpobjid, 0, 4600, "theatrelan2", "sl_whitewash1", 0);
- tmpobjid = CreateObject(19171,1788.851,-1439.361,1361.535,90.000,180.005,179.983,300.000);
- SetObjectMaterial(tmpobjid, 0, 4600, "theatrelan2", "sl_whitewash1", 0);
- tmpobjid = CreateObject(19171,1788.851,-1438.636,1361.292,0.000,0.000,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 4600, "theatrelan2", "sl_whitewash1", 0);
- tmpobjid = CreateObject(19171,1788.851,-1437.900,1360.035,90.000,180.005,359.989,300.000);
- SetObjectMaterial(tmpobjid, 0, 4600, "theatrelan2", "sl_whitewash1", 0);
- tmpobjid = CreateObject(19171,1788.851,-1437.900,1361.535,90.000,180.005,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 4600, "theatrelan2", "sl_whitewash1", 0);
- tmpobjid = CreateObject(19171,1789.009,-1438.619,1360.035,90.000,179.994,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 4600, "theatrelan2", "sl_whitewash1", 0);
- tmpobjid = CreateObject(19171,1789.009,-1438.619,1361.535,90.000,179.994,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 4600, "theatrelan2", "sl_whitewash1", 0);
- tmpobjid = CreateObject(19171,1789.009,-1438.636,1360.492,0.000,0.000,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 4600, "theatrelan2", "sl_whitewash1", 0);
- tmpobjid = CreateObject(19446,1788.189,-1433.069,1360.343,0.000,0.000,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 6867, "vgnpwrmainbld", "sw_wallbrick_02", 0);
- tmpobjid = CreateObject(1768,1786.640,-1440.137,1358.593,0.000,0.000,270.000,300.000);
- SetObjectMaterial(tmpobjid, 2, 14385, "trailerkb", "tr_wood1", 0);
- tmpobjid = CreateObject(1768,1783.735,-1439.241,1358.593,0.000,0.000,0.000,300.000);
- SetObjectMaterial(tmpobjid, 1, 14385, "trailerkb", "tr_wood1", 0);
- SetObjectMaterial(tmpobjid, 2, 14385, "trailerkb", "tr_wood1", 0);
- tmpobjid = CreateObject(2029,1784.177,-1441.031,1358.393,0.000,0.000,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 14385, "trailerkb", "tr_kit_2ba", 0);
- tmpobjid = CreateObject(1742,1786.353,-1436.432,1358.593,0.000,0.000,0.000,300.000);
- SetObjectMaterial(tmpobjid, 2, 14385, "trailerkb", "tr_wall2", 0);
- tmpobjid = CreateObject(19445,1783.597,-1436.461,1357.542,0.000,0.000,90.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschapelwall01_64", 0);
- tmpobjid = CreateObject(1814,1784.194,-1444.143,1358.593,0.000,0.000,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 14385, "trailerkb", "tr_kit_2ba", 0);
- tmpobjid = CreateObject(1498,1780.079,-1444.145,1358.593,0.000,0.000,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 6056, "venice_law", "newlawdoor", 0);
- SetObjectMaterial(tmpobjid, 1, 10101, "2notherbuildsfe", "Bow_church_grass_alt", 0);
- SetObjectMaterial(tmpobjid, 3, 10101, "2notherbuildsfe", "flatdoor01_law", 0);
- tmpobjid = CreateObject(19446,1783.596,-1436.450,1360.343,0.000,0.000,90.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 6867, "vgnpwrmainbld", "sw_wallbrick_02", 0);
- tmpobjid = CreateObject(19445,1783.596,-1436.470,1363.042,0.000,180.000,90.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschapelwall01_64", 0);
- tmpobjid = CreateObject(19446,1778.874,-1440.041,1360.343,0.000,0.000,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 6867, "vgnpwrmainbld", "sw_wallbrick_02", 0);
- tmpobjid = CreateObject(19445,1778.894,-1440.041,1357.542,0.000,0.000,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschapelwall01_64", 0);
- tmpobjid = CreateObject(19445,1778.894,-1440.041,1363.042,0.000,180.000,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 8130, "vgsschurch", "vgschapelwall01_64", 0);
- tmpobjid = CreateObject(14455,1778.996,-1434.401,1360.265,0.000,0.000,270.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 14385, "trailerkb", "tr_kit_2ba", 0);
- tmpobjid = CreateObject(19376,1783.011,-1439.525,1362.106,0.000,90.000,0.000,300.000);
- SetObjectMaterial(tmpobjid, 0, 4860, "railway_las", "lasunion7", 0);
- tmpobjid = CreateObject(19893,1783.960,-1440.852,1359.182,0.000,0.000,166.100,300.000);
- SetObjectMaterial(tmpobjid, 1, 2602, "police_props_un", "GUS", 0);
- tmpobjid = CreateObject(19623,1779.125,-1442.196,1360.583,0.000,0.000,162.699,300.000);
- tmpobjid = CreateObject(19622,1780.912,-1436.672,1359.298,-12.100,0.000,0.000,300.000);
- tmpobjid = CreateObject(19325,1788.274,-1440.383,1361.355,0.000,0.000,0.000,300.000);
- tmpobjid = CreateObject(19325,1788.273,-1440.382,1361.355,0.000,0.000,0.000,300.000);
- tmpobjid = CreateObject(19325,1788.273,-1440.382,1361.355,0.000,0.000,0.000,300.000);
- tmpobjid = CreateObject(19325,1788.273,-1440.382,1361.355,0.000,0.000,0.000,300.000);
- tmpobjid = CreateObject(19325,1788.273,-1440.382,1361.355,0.000,0.000,0.000,300.000);
- tmpobjid = CreateObject(2069,1786.555,-1439.374,1358.623,0.000,0.000,0.000,300.000);
- tmpobjid = CreateObject(2277,1787.608,-1440.140,1360.192,0.000,0.000,270.000,300.000);
- tmpobjid = CreateObject(2114,1787.902,-1443.449,1358.739,0.000,0.000,0.000,300.000);
- tmpobjid = CreateObject(1734,1784.411,-1440.931,1362.007,0.000,0.000,0.000,300.000);
- tmpobjid = CreateObject(1816,1784.116,-1437.381,1358.593,0.000,0.000,0.000,300.000);
- tmpobjid = CreateObject(630,1787.699,-1443.758,1359.618,0.000,0.000,0.000,300.000);
- tmpobjid = CreateObject(2244,1784.712,-1436.829,1359.375,0.000,0.000,0.000,300.000);
- tmpobjid = CreateObject(2048,1781.156,-1436.555,1360.737,0.000,0.000,0.000,300.000);
- tmpobjid = CreateObject(1744,1778.799,-1443.140,1360.196,0.000,0.000,90.000,300.000);
- tmpobjid = CreateObject(2269,1783.412,-1437.025,1360.099,0.000,0.000,0.000,300.000);
- tmpobjid = CreateObject(2275,1779.462,-1440.298,1360.099,0.000,0.000,90.000,300.000);
- tmpobjid = CreateObject(1788,1785.009,-1443.645,1359.167,0.000,0.000,180.000,300.000);
- tmpobjid = CreateObject(2229,1785.809,-1444.099,1358.593,0.000,0.000,180.000,300.000);
- tmpobjid = CreateObject(2229,1782.959,-1444.093,1358.593,0.000,0.000,179.994,300.000);
- tmpobjid = CreateObject(2245,1779.195,-1442.697,1360.814,0.000,0.000,0.000,300.000);
- tmpobjid = CreateObject(19559,1779.751,-1443.957,1358.885,-17.599,0.000,-178.400,300.000);
- tmpobjid = CreateObject(19591,1782.475,-1444.093,1360.082,0.000,0.000,0.000,300.000);
- tmpobjid = CreateObject(19814,1782.885,-1444.090,1358.865,0.000,0.199,-178.200,300.000);
- tmpobjid = CreateObject(19822,1784.274,-1441.025,1359.193,0.000,0.000,0.000,300.000);
- tmpobjid = CreateObject(19829,1781.808,-1444.103,1359.843,0.000,0.000,178.900,300.000);
- tmpobjid = CreateObject(19897,1785.258,-1440.828,1359.213,0.000,0.000,-162.699,300.000);
- tmpobjid = CreateObject(19878,1779.165,-1441.947,1358.662,0.000,0.000,90.400,300.000);
- tmpobjid = CreateObject(19786,1784.698,-1444.151,1360.354,0.000,0.000,179.999,300.000);
- tmpobjid = CreateObject(19171,1788.449,-1441.720,1360.499,88.799,89.999,0.000,300.000);
- tmpobjid = CreateObject(19171,1788.441,-1438.564,1360.526,88.500,89.699,0.000,300.000);
- }
- stock LoadModernHouse1() //by DjordjevicTM
- {
- new housedjord;
- housedjord = CreateDynamicObjectEx(19378,247.573,-1848.020,3332.277,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_furn_floor", 0x00000000);
- housedjord = CreateDynamicObjectEx(19450,242.268,-1848.020,3334.100,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19450,245.822,-1852.807,3334.100,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19450,239.831,-1850.032,3331.182,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19378,239.384,-1854.778,3332.847,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_furn_floor", 0x00000000);
- housedjord = CreateDynamicObjectEx(19450,244.561,-1854.765,3331.182,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(1506,242.554,-1851.335,3332.903,0.000,0.000,-45.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0x00000000);
- housedjord = CreateDynamicObjectEx(19087,244.619,-1849.984,3333.808,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19089,244.619,-1849.984,3333.795,0.000,90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19089,244.619,-1849.984,3333.355,0.000,90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,243.878,-1849.986,3332.201,0.000,0.000,180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,243.876,-1850.141,3332.327,0.000,0.000,180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,243.864,-1850.227,3332.455,0.000,0.000,180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19450,238.399,-1846.203,3334.100,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19450,252.731,-1846.220,3334.100,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19450,247.701,-1846.209,3336.230,0.000,180.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19089,249.784,-1846.267,3332.365,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19089,247.899,-1846.278,3332.300,0.000,180.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19089,243.225,-1846.267,3332.300,0.000,180.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19089,249.784,-1846.267,3334.469,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19378,258.035,-1848.021,3332.277,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_furn_floor", 0x00000000);
- housedjord = CreateDynamicObjectEx(19451,250.592,-1857.532,3334.100,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 9524, "blokmodb", "lombard_build1_1", 0x00000000);
- housedjord = CreateDynamicObjectEx(18762,250.120,-1852.954,3331.890,0.000,90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 3820, "boxhses_sfsx", "stonewall_la", 0xFFFFFFFF);
- housedjord = CreateDynamicObjectEx(18762,250.102,-1849.967,3333.759,0.000,180.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 3820, "boxhses_sfsx", "stonewall_la", 0xFFFFFFFF);
- housedjord = CreateDynamicObjectEx(18762,250.138,-1853.204,3334.644,0.000,180.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 3820, "boxhses_sfsx", "stonewall_la", 0xFFFFFFFF);
- housedjord = CreateDynamicObjectEx(18762,250.121,-1852.000,3335.161,0.000,90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 3820, "boxhses_sfsx", "stonewall_la", 0xFFFFFFFF);
- housedjord = CreateDynamicObjectEx(19834,250.160,-1852.522,3333.546,0.000,90.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19834,250.155,-1852.181,3333.546,0.000,90.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19834,250.169,-1851.841,3333.546,0.000,90.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19834,250.164,-1851.501,3333.546,0.000,90.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19834,250.158,-1851.141,3333.546,0.000,90.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19834,250.152,-1850.761,3333.546,0.000,90.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19834,250.159,-1851.521,3334.367,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19834,250.159,-1851.521,3333.986,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19834,250.159,-1851.521,3333.626,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19834,250.159,-1851.521,3333.286,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19834,250.159,-1851.521,3332.906,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19834,250.159,-1851.521,3332.565,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19378,255.908,-1857.658,3332.277,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_furn_floor", 0x00000000);
- housedjord = CreateDynamicObjectEx(19451,255.274,-1854.889,3334.100,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 9524, "blokmodb", "lombard_build1_1", 0x00000000);
- housedjord = CreateDynamicObjectEx(19451,256.606,-1854.540,3334.100,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 9524, "blokmodb", "lombard_build1_1", 0x00000000);
- housedjord = CreateDynamicObjectEx(18762,253.064,-1849.967,3335.689,0.000,270.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 3820, "boxhses_sfsx", "stonewall_la", 0xFFFFFFFF);
- housedjord = CreateDynamicObjectEx(18762,254.314,-1849.955,3335.686,0.000,270.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 3820, "boxhses_sfsx", "stonewall_la", 0xFFFFFFFF);
- housedjord = CreateDynamicObjectEx(18762,256.654,-1849.932,3333.698,0.000,180.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 3820, "boxhses_sfsx", "stonewall_la", 0xFFFFFFFF);
- housedjord = CreateDynamicObjectEx(18762,250.121,-1852.000,3336.157,0.000,90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 3820, "boxhses_sfsx", "stonewall_la", 0xFFFFFFFF);
- housedjord = CreateDynamicObjectEx(1744,259.167,-1846.677,3332.184,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,259.362,-1846.719,3332.325,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,259.542,-1846.762,3332.473,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,259.782,-1846.759,3332.631,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,259.900,-1846.742,3332.829,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,260.080,-1846.742,3333.000,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,260.240,-1846.724,3333.161,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,260.479,-1846.696,3333.295,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,260.719,-1846.695,3333.416,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19358,260.194,-1848.149,3332.014,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19358,259.033,-1846.212,3334.095,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19378,265.669,-1843.339,3333.679,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_furn_floor", 0x00000000);
- housedjord = CreateDynamicObjectEx(19358,261.630,-1848.152,3332.014,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19358,262.206,-1846.223,3334.095,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19358,262.212,-1847.844,3334.095,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19358,262.206,-1850.981,3334.095,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(1744,261.850,-1848.556,3333.593,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,261.843,-1848.776,3333.794,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,261.845,-1848.936,3333.974,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,261.824,-1849.156,3334.174,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,261.794,-1849.415,3334.355,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,261.748,-1849.634,3334.496,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,261.735,-1849.861,3334.636,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,261.739,-1850.077,3334.823,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,261.752,-1850.265,3334.954,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19358,260.335,-1849.688,3332.366,0.000,0.000,180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19358,260.340,-1850.403,3333.601,35.000,0.000,180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(1744,261.753,-1850.565,3335.114,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,261.740,-1850.826,3335.347,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,261.758,-1851.130,3335.512,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19358,260.325,-1852.249,3334.118,0.000,0.000,180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19358,258.638,-1850.280,3334.062,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19378,257.038,-1855.792,3335.781,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14387, "dr_gsnew", "la_flair1", 0x00000000);
- housedjord = CreateDynamicObjectEx(19358,261.968,-1851.033,3334.095,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19450,262.227,-1851.081,3337.560,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19450,257.416,-1846.209,3337.560,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19358,256.319,-1847.918,3337.386,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19358,258.638,-1850.280,3337.562,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19358,257.563,-1850.279,3337.562,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19358,256.321,-1850.155,3337.391,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(18762,256.654,-1849.932,3338.585,0.000,180.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 3820, "boxhses_sfsx", "stonewall_la", 0xFFFFFFFF);
- housedjord = CreateDynamicObjectEx(19431,260.168,-1851.001,3337.548,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19449,255.437,-1851.734,3337.560,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 4828, "airport3_las", "brwall_128", 0x00000000);
- housedjord = CreateDynamicObjectEx(18762,256.666,-1847.297,3335.704,0.000,270.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 3820, "boxhses_sfsx", "stonewall_la", 0xFFFFFFFF);
- housedjord = CreateDynamicObjectEx(19325,245.939,-1846.247,3333.203,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, -1, "none", "none", 0xFF0AFC95);
- housedjord = CreateDynamicObjectEx(19089,244.974,-1846.270,3332.300,0.000,180.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19089,246.224,-1846.269,3332.300,0.000,180.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19449,262.182,-1856.623,3337.560,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 4828, "airport3_las", "brwall_128", 0x00000000);
- housedjord = CreateDynamicObjectEx(19388,261.268,-1851.713,3337.574,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(19387,261.265,-1851.753,3337.574,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 4828, "airport3_las", "brwall_128", 0x00000000);
- housedjord = CreateDynamicObjectEx(1502,260.459,-1851.716,3335.869,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- SetDynamicObjectMaterial(housedjord, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19449,252.928,-1856.612,3337.560,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 4828, "airport3_las", "brwall_128", 0x00000000);
- housedjord = CreateDynamicObjectEx(19449,260.049,-1858.091,3337.560,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 4828, "airport3_las", "brwall_128", 0x00000000);
- housedjord = CreateDynamicObjectEx(19387,254.399,-1858.104,3337.574,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 4828, "airport3_las", "brwall_128", 0x00000000);
- housedjord = CreateDynamicObjectEx(1502,253.630,-1858.087,3335.869,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- SetDynamicObjectMaterial(housedjord, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19834,247.062,-1852.716,3332.427,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19834,247.042,-1852.709,3333.111,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19834,245.941,-1852.717,3333.301,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19834,247.082,-1852.711,3334.396,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(2259,247.771,-1852.250,3333.761,0.000,90.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- SetDynamicObjectMaterial(housedjord, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- housedjord = CreateDynamicObjectEx(2259,247.261,-1852.245,3333.761,0.000,90.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- SetDynamicObjectMaterial(housedjord, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- housedjord = CreateDynamicObjectEx(19834,248.187,-1852.711,3333.301,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19834,247.044,-1852.712,3331.899,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(11682,247.468,-1850.094,3332.364,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 5986, "chateau_lawn", "chatwall01_law", 0xFFFFFFFF);
- SetDynamicObjectMaterial(housedjord, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(11684,246.676,-1850.106,3332.364,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 5986, "chateau_lawn", "chatwall01_law", 0xFFFFFFFF);
- SetDynamicObjectMaterial(housedjord, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19376,255.332,-1855.056,3332.283,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14577, "casinovault01", "vaultFloor", 0x00000000);
- housedjord = CreateDynamicObjectEx(19451,255.335,-1850.287,3330.628,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0x00000000);
- housedjord = CreateDynamicObjectEx(18762,247.067,-1851.706,3330.094,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(11682,248.547,-1851.992,3332.364,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 5986, "chateau_lawn", "chatwall01_law", 0xFFFFFFFF);
- SetDynamicObjectMaterial(housedjord, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(11684,248.534,-1851.156,3332.364,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 5986, "chateau_lawn", "chatwall01_law", 0xFFFFFFFF);
- SetDynamicObjectMaterial(housedjord, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1906,254.767,-1852.725,3333.203,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFFFF0000);
- housedjord = CreateDynamicObjectEx(1906,254.767,-1852.625,3333.203,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFFFF0000);
- housedjord = CreateDynamicObjectEx(1906,254.767,-1852.525,3333.203,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFFFF0000);
- housedjord = CreateDynamicObjectEx(18762,254.724,-1852.414,3330.709,180.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(2132,252.192,-1854.380,3332.349,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(2133,253.172,-1854.385,3332.349,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(2131,255.163,-1854.370,3332.349,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19920,247.242,-1851.503,3332.603,0.000,0.000,142.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, -1, "none", "none", 0xFFFFFFFF);
- housedjord = CreateDynamicObjectEx(19916,256.056,-1854.521,3332.318,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, -1, "none", "none", 0xFFFFFFFF);
- housedjord = CreateDynamicObjectEx(18762,253.739,-1852.415,3330.709,180.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19327,247.017,-1852.674,3333.321,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterialText(housedjord, 0, "SONY", 140, "Ariel", 20, 1, 0xFFFFFFFF, 0x00000000, 1);
- housedjord = CreateDynamicObjectEx(1906,246.327,-1852.701,3333.306,-90.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFFF00000);
- housedjord = CreateDynamicObjectEx(2255,254.637,-1852.465,3333.689,-90.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- SetDynamicObjectMaterial(housedjord, 1, -1, "none", "none", 0xFF000000);
- housedjord = CreateDynamicObjectEx(1906,254.767,-1852.825,3333.203,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFFFF0000);
- housedjord = CreateDynamicObjectEx(2613,254.806,-1851.735,3332.824,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFFFF0000);
- housedjord = CreateDynamicObjectEx(2613,254.368,-1851.743,3332.824,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFFFF0000);
- housedjord = CreateDynamicObjectEx(2613,254.358,-1851.418,3332.824,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFFFF0000);
- housedjord = CreateDynamicObjectEx(2613,254.810,-1851.424,3332.824,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFFFF0000);
- housedjord = CreateDynamicObjectEx(19386,254.421,-1858.212,3337.574,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14387, "dr_gsnew", "mp_gs_pooltiles", 0x00000000);
- housedjord = CreateDynamicObjectEx(19448,260.708,-1858.194,3337.560,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14387, "dr_gsnew", "mp_gs_pooltiles", 0x00000000);
- housedjord = CreateDynamicObjectEx(19448,252.984,-1862.986,3337.560,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14387, "dr_gsnew", "mp_gs_pooltiles", 0x00000000);
- housedjord = CreateDynamicObjectEx(19448,259.731,-1862.970,3337.560,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14387, "dr_gsnew", "mp_gs_pooltiles", 0x00000000);
- housedjord = CreateDynamicObjectEx(19448,256.953,-1865.135,3337.560,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14387, "dr_gsnew", "mp_gs_pooltiles", 0x00000000);
- housedjord = CreateDynamicObjectEx(19375,257.203,-1862.911,3335.783,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14387, "dr_gsnew", "mp_gs_pooltiles", 0x00000000);
- housedjord = CreateDynamicObjectEx(19450,243.308,-1852.147,3334.100,0.000,0.000,45.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_cloth_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(2006,242.720,-1851.356,3333.973,0.000,0.000,-45.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- housedjord = CreateDynamicObjectEx(14446,255.993,-1853.600,3336.227,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- SetDynamicObjectMaterial(housedjord, 1, 10765, "airportgnd_sfse", "white", 0x00000000);
- SetDynamicObjectMaterial(housedjord, 2, 14387, "dr_gsnew", "mp_gs_wall", 0x00000000);
- housedjord = CreateDynamicObjectEx(2082,253.134,-1852.897,3335.869,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(2082,257.839,-1852.839,3335.869,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19403,260.462,-1856.466,3336.939,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 4828, "airport3_las", "brwall_128", 0x00000000);
- housedjord = CreateDynamicObjectEx(19449,260.472,-1859.678,3339.812,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 4828, "airport3_las", "brwall_128", 0x00000000);
- housedjord = CreateDynamicObjectEx(19449,265.203,-1854.944,3337.560,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 4828, "airport3_las", "brwall_128", 0x00000000);
- housedjord = CreateDynamicObjectEx(1742,258.628,-1850.302,3332.364,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 2, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(19433,261.220,-1856.803,3336.308,0.000,90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- housedjord = CreateDynamicObjectEx(19433,261.223,-1855.499,3338.111,0.000,180.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- housedjord = CreateDynamicObjectEx(19433,261.210,-1857.424,3338.111,0.000,180.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- housedjord = CreateDynamicObjectEx(19433,261.818,-1856.349,3338.111,0.000,180.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- housedjord = CreateDynamicObjectEx(19433,261.817,-1856.610,3338.111,0.000,180.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- housedjord = CreateDynamicObjectEx(19381,244.609,-1846.128,3332.364,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 10765, "airportgnd_sfse", "white", 0x00000000);
- housedjord = CreateDynamicObjectEx(18980,268.430,-1861.463,3336.020,90.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14387, "dr_gsnew", "mp_gs_pooltiles", 0xFFFFFFFF);
- housedjord = CreateDynamicObjectEx(18980,256.426,-1873.610,3336.040,90.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14387, "dr_gsnew", "mp_gs_pooltiles", 0xFFFFFFFF);
- housedjord = CreateDynamicObjectEx(19360,258.228,-1863.487,3335.791,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14387, "dr_gsnew", "mp_gs_pooltiles", 0x00000000);
- housedjord = CreateDynamicObjectEx(18980,260.135,-1874.164,3336.020,90.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14387, "dr_gsnew", "mp_gs_pooltiles", 0xFFFFFFFF);
- housedjord = CreateDynamicObjectEx(18980,268.803,-1865.527,3336.020,90.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14387, "dr_gsnew", "mp_gs_pooltiles", 0xFFFFFFFF);
- housedjord = CreateDynamicObjectEx(1742,254.583,-1865.117,3334.234,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 2, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,254.828,-1865.194,3337.498,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,256.207,-1861.465,3335.972,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,256.107,-1861.470,3335.781,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,257.057,-1861.151,3335.781,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(1744,257.139,-1861.261,3335.972,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- housedjord = CreateDynamicObjectEx(14842,258.768,-1864.985,3337.463,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, -1, "none", "none", 0xFFFFFFFF);
- housedjord = CreateDynamicObjectEx(14842,259.018,-1863.466,3337.463,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, -1, "none", "none", 0xFFFFFFFF);
- housedjord = CreateDynamicObjectEx(2134,258.189,-1858.737,3335.870,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- SetDynamicObjectMaterial(housedjord, 1, 10765, "airportgnd_sfse", "white", 0xFF808080);
- SetDynamicObjectMaterial(housedjord, 2, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- SetDynamicObjectMaterial(housedjord, 4, -1, "none", "none", 0xFF808080);
- housedjord = CreateDynamicObjectEx(2134,259.170,-1858.734,3335.870,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- SetDynamicObjectMaterial(housedjord, 1, 10765, "airportgnd_sfse", "white", 0xFF808080);
- SetDynamicObjectMaterial(housedjord, 2, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- SetDynamicObjectMaterial(housedjord, 4, -1, "none", "none", 0xFF808080);
- housedjord = CreateDynamicObjectEx(2134,257.208,-1858.740,3335.870,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- SetDynamicObjectMaterial(housedjord, 1, 10765, "airportgnd_sfse", "white", 0xFF808080);
- SetDynamicObjectMaterial(housedjord, 2, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0xFF808080);
- SetDynamicObjectMaterial(housedjord, 4, -1, "none", "none", 0xFF808080);
- housedjord = CreateDynamicObjectEx(2515,258.163,-1858.513,3337.043,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, -1, "none", "none", 0xFFFFFFFF);
- housedjord = CreateDynamicObjectEx(2255,258.153,-1858.769,3337.549,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(housedjord, 0, 14581, "ab_mafiasuitea", "barbersmir1", 0x00000000);
- housedjord = CreateDynamicObjectEx(19327,256.037,-1854.004,3334.221,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterialText(housedjord, 0, "LG", 140, "Ariel", 35, 1, 0xFFFF0000, 0x00000000, 1);
- housedjord = CreateDynamicObjectEx(19327,256.037,-1854.014,3334.161,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterialText(housedjord, 0, "Freeze Tehnology", 140, "Ariel", 15, 1, 0xFF000000, 0x00000000, 1);
- housedjord = CreateDynamicObjectEx(19377,240.442,-1849.355,3335.705,0.000,90.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(19377,250.931,-1849.405,3335.705,0.000,90.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(19377,261.553,-1846.955,3339.202,0.000,90.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(19377,255.114,-1855.226,3335.579,0.000,90.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2816,247.052,-1851.808,3332.593,0.000,0.000,-16.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(19581,254.016,-1853.082,3333.215,0.000,0.000,171.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(19582,254.065,-1852.629,3333.227,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(19591,250.562,-1846.330,3333.943,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2267,252.472,-1846.354,3333.998,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2263,255.563,-1846.809,3333.819,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2264,261.605,-1847.535,3334.929,0.000,0.000,-90.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2254,242.399,-1848.129,3334.271,0.000,0.000,90.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2251,242.705,-1846.599,3333.202,0.000,0.000,90.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2241,259.855,-1848.608,3332.802,0.000,0.000,90.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2853,258.340,-1852.347,3336.364,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2828,253.510,-1852.215,3336.367,0.000,0.000,-164.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(19632,261.068,-1856.286,3336.375,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(19632,261.082,-1856.608,3336.375,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(19632,261.095,-1856.448,3336.495,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2406,257.188,-1857.926,3337.108,-6.000,0.000,-180.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2405,256.495,-1857.886,3337.108,-6.000,0.000,-180.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2286,256.009,-1851.839,3337.490,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(10444,263.638,-1876.892,3335.997,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(10444,263.638,-1876.892,3336.077,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(10444,263.638,-1876.892,3336.116,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2384,254.638,-1864.901,3336.001,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2384,254.009,-1864.902,3336.372,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2870,254.472,-1864.893,3337.837,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2749,256.519,-1864.418,3336.537,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2751,256.376,-1864.375,3336.582,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2752,256.497,-1864.195,3336.582,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2741,259.139,-1858.329,3337.283,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2751,257.153,-1858.631,3336.954,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2752,257.323,-1858.573,3336.954,0.000,0.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(2239,253.328,-1858.657,3335.869,0.000,0.000,52.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(19377,258.156,-1856.436,3339.202,0.000,90.000,0.000,300.000,300.000);
- housedjord = CreateDynamicObjectEx(19377,258.010,-1866.109,3339.202,0.000,90.000,0.000,300.000,300.000);
- }
- stock LoadModernHouse2() //by KristianBenne2
- {
- new door = CreateDynamicObject(1506, 1246.21533, -1119.26526, 3457.90112, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(door, 0, 19430, "all_walls", "wall6");
- door = CreateDynamicObject(1502, 1242.67285, -1112.59009, 3457.89868, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(door, 1, 2117, "cj_tables", "CJ_WOOD5");
- door = CreateDynamicObject(1502, 1242.67297, -1124.51331, 3457.89868, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(door, 1, 2117, "cj_tables", "CJ_WOOD5");
- door = CreateDynamicObject(1502, 1233.04150, -1124.51306, 3457.89868, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(door, 1, 2117, "cj_tables", "CJ_WOOD5");
-
- CreateDynamicObject(2193, 1246.60754, -1119.24915, 3458.35962, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(2193, 1246.60645, -1119.24719, 3458.96313, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(2193, 1246.60535, -1117.76624, 3459.38306, 270.00000, 0.00000, 0.00000);
- CreateDynamicObject(2193, 1246.60645, -1117.76624, 3459.98755, 270.00000, 0.00000, 0.00000);
- CreateDynamicObject(2193, 1246.59082, -1119.17456, 3460.39478, 0.00000, 0.00000, 270.00000);
- CreateDynamicObject(2193, 1246.58936, -1118.43811, 3460.39478, 0.00000, 0.00000, 270.00000);
- CreateDynamicObject(2193, 1246.58948, -1118.07642, 3460.39478, 0.00000, 0.00000, 270.00000);
- CreateDynamicObject(2006, 1246.08826, -1117.89526, 3459.05664, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1823, 1242.09058, -1125.70728, 3457.89160, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1823, 1239.09814, -1125.69946, 3457.89160, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1823, 1245.09094, -1119.68896, 3457.89160, 0.00000, 0.00000, 225.00000);
- CreateDynamicObject(1823, 1245.81604, -1116.65112, 3457.89160, 0.00000, 0.00000, 135.00000);
- CreateDynamicObject(2249, 1245.10327, -1116.62769, 3459.04419, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2250, 1244.98193, -1120.42627, 3458.80811, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2238, 1236.46497, -1127.65601, 3458.68848, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1520, 1236.46338, -1129.38599, 3459.97656, 0.00000, 0.00000, 30.67370);
- CreateDynamicObject(1512, 1236.47937, -1128.36621, 3460.12280, 0.00000, 0.00000, 270.00000);
- CreateDynamicObject(1664, 1236.48975, -1126.10168, 3460.09033, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1668, 1236.47363, -1126.22205, 3460.09033, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1520, 1236.48462, -1125.54272, 3459.97656, 0.00000, 0.00000, 30.67370);
- CreateDynamicObject(1668, 1236.56592, -1128.21997, 3460.09033, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2475, 1238.16797, -1124.37158, 3456.72340, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2475, 1240.33582, -1124.38367, 3456.72340, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2576, 1244.54260, -1126.27637, 3457.90845, 0.00000, 0.00000, 270.00000);
- CreateDynamicObject(2518, 1231.77844, -1127.78711, 3458.18188, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2247, 1231.40735, -1126.01270, 3459.41187, 0.00000, 0.00000, 80.00000);
- CreateDynamicObject(14842, 1232.84216, -1130.72058, 3460.10156, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2475, 1229.95154, -1118.58411, 3458.32324, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2475, 1230.46997, -1118.58325, 3458.32227, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2855, 1230.25537, -1118.30981, 3458.45410, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2816, 1229.50745, -1118.30591, 3458.45532, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1785, 1229.45081, -1118.45227, 3459.22852, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2238, 1222.93298, -1110.13940, 3458.68848, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1956, 1236.12939, -1121.27197, 3459.97437, 0.00000, 270.00000, 0.00000);
- CreateDynamicObject(1956, 1236.12939, -1122.26599, 3460.25854, 0.00000, 270.00000, 0.00000);
- CreateDynamicObject(1956, 1236.12939, -1123.40198, 3459.83252, 0.00000, 270.00000, 0.00000);
- CreateDynamicObject(19318, 1236.09875, -1122.22571, 3460.22534, 0.00000, 20.00000, 270.00000);
- CreateDynamicObject(19317, 1236.08167, -1121.26318, 3460.00317, 0.00000, 0.00000, 270.00000);
- CreateDynamicObject(2828, 1230.41931, -1118.40356, 3459.12988, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19424, 1236.19592, -1122.25916, 3460.26196, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19424, 1236.21484, -1121.25806, 3459.95288, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1956, 1222.80457, -1127.17090, 3459.83252, 0.00000, 270.00000, -135.00000);
- CreateDynamicObject(2344, 1223.33118, -1109.83850, 3458.28833, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19184, 1222.53845, -1110.80920, 3458.59961, 0.00000, 0.00000, 0.72140);
- CreateDynamicObject(2266, 1225.09448, -1127.23242, 3459.52393, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2026, 1227.84131, -1125.59888, 3461.30884, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2854, 1235.44458, -1113.39258, 3458.38818, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1520, 1223.91638, -1118.19727, 3460.17773, 0.00000, 0.00000, 30.67370);
- CreateDynamicObject(1520, 1223.84460, -1118.31909, 3460.17773, 0.00000, 0.00000, 30.67370);
- CreateDynamicObject(1520, 1223.88745, -1117.24255, 3460.17773, 0.00000, 0.00000, 30.67370);
- CreateDynamicObject(1517, 1223.99670, -1117.52209, 3460.32959, 0.00000, 0.00000, 30.67370);
- CreateDynamicObject(1517, 1223.93384, -1118.40649, 3460.32959, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2374, 1236.40088, -1115.18469, 3459.22070, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2475, 1236.27844, -1115.39966, 3456.52441, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2475, 1236.27844, -1113.93054, 3456.52441, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2475, 1236.27734, -1113.55725, 3456.52344, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2396, 1236.40088, -1114.70288, 3459.22070, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2372, 1236.79456, -1114.28552, 3461.36206, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(2689, 1237.00647, -1114.11853, 3459.88647, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2704, 1236.99829, -1113.90991, 3459.88647, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2706, 1237.02905, -1113.71899, 3459.88647, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2705, 1237.01123, -1113.51855, 3459.88647, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2843, 1236.41675, -1113.68140, 3457.90942, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2384, 1236.39307, -1112.96582, 3458.81860, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18634, 1237.02148, -1115.25061, 3457.92188, 0.00000, 90.00000, 16.78030);
- CreateDynamicObject(18636, 1236.53613, -1113.79907, 3458.75049, 0.00000, 0.00000, 20.00000);
- CreateDynamicObject(2741, 1231.28711, -1126.27026, 3459.69312, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2742, 1231.40771, -1125.14294, 3459.80396, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2868, 1235.91785, -1125.17993, 3460.42969, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2870, 1235.91602, -1129.55701, 3460.42944, 0.00000, 0.00000, 47.88939);
- CreateDynamicObject(1823, 1236.41724, -1111.21594, 3457.89160, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1823, 1236.40186, -1108.21143, 3457.89160, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2576, 1244.50024, -1108.90063, 3457.90869, 0.00000, 0.00000, 270.00000);
- CreateDynamicObject(2173, 1240.81177, -1111.97791, 3457.90894, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2249, 1236.39783, -1109.89685, 3460.56909, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1956, 1244.39978, -1105.59241, 3460.11279, 0.00000, 90.00000, -135.00000);
- CreateDynamicObject(2628, 1240.59375, -1105.98889, 3457.90918, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2854, 1236.77612, -1110.76672, 3458.38818, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19040, 1237.20386, -1107.91943, 3458.41504, 0.00000, 0.00000, 200.00000);
- CreateDynamicObject(2828, 1244.58228, -1111.19214, 3459.02881, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2196, 1240.60071, -1111.98010, 3458.70459, 0.00000, 0.00000, 100.00000);
- CreateDynamicObject(2894, 1239.65918, -1112.06995, 3458.71021, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2853, 1238.56238, -1125.13293, 3458.38818, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2250, 1240.78320, -1124.68921, 3460.31909, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19309, 1222.93726, -1120.24744, 3458.54297, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19309, 1222.93726, -1120.24744, 3458.43481, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19309, 1222.93726, -1120.24744, 3458.32666, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19309, 1222.93726, -1120.24744, 3458.21851, 0.00000, 90.00000, 0.00000);
-
- //Walls
- new wall = CreateDynamicObject(19450, 1236.21057, -1110.97375, 3459.65527, 0.00000, 0.00000, 0.00000); //LONG
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19450, 1236.21057, -1126.09290, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19450, 1231.17773, -1129.30664, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19450, 1231.17395, -1106.70154, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19450, 1223.99341, -1118.6929, 3457.39307, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19450, 1231.39771, -1130.78015, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19450, 1224.01794, -1117.91907, 3457.39307, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19358, 1245.07483, -1110.97217, 3459.65527, 0.00000, 0.00000, 0.00000); //MEDIUM
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19358, 1240.24756, -1112.56494, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19358, 1237.03674, -1112.56494, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19358, 1240.24902, -1124.49707, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19358, 1237.03918, -1124.49707, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19358, 1245.07483, -1126.08069, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19358, 1233.82495, -1112.56494, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19358, 1231.38867, -1109.32605, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19358, 1224.96753, -1127.82080, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19358, 1224.96619, -1109.32605, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19358, 1222.13782, -1124.99365, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19358, 1222.13782, -1112.15320, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19358, 1222.13782, -1118.57214, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
-
- wall = CreateDynamicObject(19431, 1245.61609, -1120.75916, 3459.65527, 0.00000, 0.00000, 135.00000); //SMALL
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1245.61816, -1116.29321, 3459.65527, 0.00000, 0.00000, -135.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1244.48035, -1105.52722, 3459.65527, 0.00000, 0.00000, -135.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1236.80322, -1105.52734, 3459.65527, 0.00000, 0.00000, 135.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1244.48035, -1131.52759, 3459.65527, 0.00000, 0.00000, 135.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1236.80237, -1131.52795, 3459.65527, 0.00000, 0.00000, -135.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1236.21143, -1120.93481, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1236.21143, -1116.12085, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1222.73083, -1127.22778, 3459.65527, 0.00000, 0.00000, -135.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1222.73035, -1109.91882, 3459.65527, 0.00000, 0.00000, 135.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1231.71545, -1112.02307, 3459.65527, 0.00000, 0.00000, -135.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1229.61426, -1118.69092, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1222.95032, -1118.69189, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1230.29309, -1118.69189, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1230.33057, -1127.82178, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1222.95032, -1117.18774, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1223.66431, -1117.93884, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1228.90039, -1117.90210, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1231.00745, -1117.81433, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1231.89087, -1124.49805, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19431, 1237.08301, -1115.91113, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
-
- wall = CreateDynamicObject(19404, 1245.07483, -1122.86975, 3459.65527, 0.00000, 0.00000, 0.00000); //WINDOW MEDIUM
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19404, 1245.07483, -1114.18359, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19404, 1245.07483, -1107.76123, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19404, 1239.03613, -1104.93481, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19404, 1242.24609, -1104.93481, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19404, 1245.07483, -1129.29187, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19404, 1242.24512, -1132.12134, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19404, 1239.03650, -1132.12134, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19404, 1228.17920, -1127.82080, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19404, 1228.17725, -1109.32605, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19404, 1222.13782, -1121.78235, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19404, 1222.13782, -1115.36292, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
-
- wall = CreateDynamicObject(19388, 1246.20984, -1118.52515, 3459.65527, 0.00000, 0.00000, 0.00000); //DOOR MEDIUM
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19388, 1243.45886, -1112.56494, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19388, 1243.45886, -1124.49707, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19388, 1236.21057, -1118.52795, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19388, 1233.82849, -1124.49707, 3459.65430, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
- wall = CreateDynamicObject(19388, 1237.79541, -1114.21899, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(wall, 0, 18008, "intclothesa", "mp_cloth_wall");
-
- //Walls bathroom //OR 18008, intclothesa, mp_cloth_vicfloor
- new bwall = CreateDynamicObject(19447, 1236.20862, -1129.30090, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(bwall, 0, 18008, "intclothesa", "mp_cloth_wall");
- bwall = CreateDynamicObject(19447, 1231.39771, -1130.77612, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(bwall, 0, 18008, "intclothesa", "mp_cloth_wall");
- bwall = CreateDynamicObject(19447, 1231.17969, -1129.30859, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(bwall, 0, 18008, "intclothesa", "mp_cloth_wall");
-
- bwall = CreateDynamicObject(19428, 1231.89294, -1124.50000, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(bwall, 0, 18008, "intclothesa", "mp_cloth_wall");
- bwall = CreateDynamicObject(19428, 1235.36145, -1124.49902, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(bwall, 0, 18008, "intclothesa", "mp_cloth_wall");
-
- bwall = CreateDynamicObject(19385, 1233.82947, -1124.49805, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(bwall, 0, 18008, "intclothesa", "mp_cloth_wall");
-
- bwall = CreateDynamicObject(19432, 1231.91223, -1128.88403, 3459.65527, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(bwall, 0, 18008, "intclothesa", "mp_cloth_wall");
- bwall = CreateDynamicObject(19432, 1233.68481, -1131.10461, 3459.65527, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(bwall, 0, 18008, "intclothesa", "mp_cloth_wall");
- CreateDynamicObject(19325, 1231.67371, -1128.83765, 3458.11572, 90.00000, 0.00000, 90.00000); //Window
- CreateDynamicObject(19325, 1233.69470, -1131.96960, 3458.11572, 90.00000, 0.00000, 0.00000); //Window
-
- //Floor
- new mainfloor = CreateDynamicObject(19379, 1241.08459, -1113.49292, 3457.82104, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(mainfloor, 0, 18030, "gap", "mp_furn_floor");
- mainfloor = CreateDynamicObject(19379, 1241.08459, -1123.12720, 3457.82104, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(mainfloor, 0, 18030, "gap", "mp_furn_floor");
- mainfloor = CreateDynamicObject(19379, 1230.58459, -1123.12720, 3457.82104, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(mainfloor, 0, 18030, "gap", "mp_furn_floor");
- mainfloor = CreateDynamicObject(19379, 1230.58459, -1113.49292, 3457.82104, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(mainfloor, 0, 18030, "gap", "mp_furn_floor");
- mainfloor = CreateDynamicObject(19379, 1241.08459, -1103.85852, 3457.82104, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(mainfloor, 0, 18030, "gap", "mp_furn_floor");
- mainfloor = CreateDynamicObject(19379, 1241.08459, -1132.76062, 3457.82104, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(mainfloor, 0, 18030, "gap", "mp_furn_floor");
- mainfloor = CreateDynamicObject(19379, 1220.08313, -1113.49292, 3457.82104, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(mainfloor, 0, 18030, "gap", "mp_furn_floor");
- mainfloor = CreateDynamicObject(19379, 1220.08313, -1123.12720, 3457.82104, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(mainfloor, 0, 18030, "gap", "mp_furn_floor");
- mainfloor = CreateDynamicObject(19379, 1230.58459, -1132.76062, 3457.82104, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(mainfloor, 0, 18030, "gap", "mp_furn_floor");
- new kfloor = CreateDynamicObject(19379, 1225.83801, -1123.43616, 3457.82300, 0.00000, 90.00000, 0.00000); //Kitchen
- SetDynamicObjectMaterial(kfloor, 0, 3961, "lee_kitch", "dinerfloor01_128");
-
- new carpet = CreateDynamicObject(19373, 1240.68408, -1118.56665, 3457.82690, 0.00000, 90.00000, 0.00000); //Carpets & Bathroom
- SetDynamicObjectMaterial(carpet, 0, 3781, "LSOffice1floors", "carpet12-256x256");
- carpet = CreateDynamicObject(19373, 1240.06555, -1126.51453, 3457.82690, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(carpet, 0, 3781, "LSOffice1floors", "carpet12-256x256");
- carpet = CreateDynamicObject(19373, 1240.06165, -1124.50261, 3459.28491, 90.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(carpet, 0, 3781, "LSOffice1floors", "carpet12-256x256");
- carpet = CreateDynamicObject(19373, 1224.79138, -1111.96497, 3457.82690, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(carpet, 0, 3781, "LSOffice1floors", "carpet12-256x256");
- carpet = CreateDynamicObject(19373, 1227.79626, -1125.67346, 3457.82690, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(carpet, 0, 3781, "LSOffice1floors", "carpet12-256x256");
- carpet = CreateDynamicObject(19373, 1238.14758, -1109.20227, 3457.82690, 0.00000, 90.00000, 90.00000);
- SetDynamicObjectMaterial(carpet, 0, 3781, "LSOffice1floors", "carpet12-256x256");
- carpet = CreateDynamicObject(19373, 1236.22595, -1109.17212, 3459.28491, 90.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(carpet, 0, 3781, "LSOffice1floors", "carpet12-256x256");
-
- carpet = CreateDynamicObject(19369, 1239.01990, -1118.56738, 3456.16919, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(carpet, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- carpet = CreateDynamicObject(19369, 1240.71265, -1120.08325, 3456.16821, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(carpet, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- carpet = CreateDynamicObject(19369, 1242.35291, -1118.56543, 3456.16919, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(carpet, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- carpet = CreateDynamicObject(19369, 1240.71265, -1117.04932, 3456.16821, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(carpet, 0, 3781, "LSOffice1floors", "carpet13-256x256");
-
- new shelf = CreateDynamicObject(2046, 1236.47803, -1122.27710, 3459.87939, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(shelf, 0, 2117, "cj_tables", "CJ_WOOD5");
- SetDynamicObjectMaterial(shelf, 1, 18008, "intclothesa", "mp_cloth_wall");
- shelf = CreateDynamicObject(2046, 1236.47803, -1120.77112, 3459.87939, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(shelf, 0, 2117, "cj_tables", "CJ_WOOD5");
- SetDynamicObjectMaterial(shelf, 1, 18008, "intclothesa", "mp_cloth_wall");
-
- new plant = CreateDynamicObject(2811, 1241.17957, -1113.01331, 3457.90869, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(plant, 1, 1786, "cj_tv", "CJ_Black_metal", 0xFF888888);
-
- new bathroomf = CreateDynamicObject(19375, 1230.88135, -1129.31702, 3457.82202, 0.00000, 90.00000, 0.00000); //Bathroom
- SetDynamicObjectMaterial(bathroomf, 0, 14706, "labig2int2", "ab_tile1");
-
- //Ceiling
- new ceiling = CreateDynamicObject(19377, 1241.08459, -1103.85852, 3461.39990, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(ceiling, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- ceiling = CreateDynamicObject(19377, 1241.08459, -1113.49292, 3461.39990, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(ceiling, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- ceiling = CreateDynamicObject(19377, 1241.08459, -1123.12720, 3461.39990, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(ceiling, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- ceiling = CreateDynamicObject(19377, 1241.08276, -1132.74072, 3461.39990, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(ceiling, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- ceiling = CreateDynamicObject(19377, 1230.58459, -1113.49292, 3461.39990, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(ceiling, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- ceiling = CreateDynamicObject(19377, 1220.08313, -1113.49292, 3461.39990, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(ceiling, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- ceiling = CreateDynamicObject(19377, 1230.58459, -1123.12720, 3461.39990, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(ceiling, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- ceiling = CreateDynamicObject(19377, 1220.08313, -1123.12720, 3461.39990, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(ceiling, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- ceiling = CreateDynamicObject(19377, 1230.58459, -1132.74072, 3461.39990, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(ceiling, 0, 3781, "LSOffice1floors", "carpet13-256x256");
-
- //Window top-list
- new windowl = CreateDynamicObject(637, 1245.22949, -1114.18799, 3460.66699, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(windowl, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- windowl = CreateDynamicObject(637, 1245.24109, -1122.85364, 3460.66699, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(windowl, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- windowl = CreateDynamicObject(637, 1245.23816, -1107.80835, 3460.66699, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(windowl, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- windowl = CreateDynamicObject(637, 1242.27600, -1104.71997, 3460.66699, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(windowl, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- windowl = CreateDynamicObject(637, 1239.03564, -1104.72644, 3460.66699, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(windowl, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- windowl = CreateDynamicObject(637, 1228.17163, -1109.12268, 3460.66699, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(windowl, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- windowl = CreateDynamicObject(637, 1221.94214, -1115.35889, 3460.66699, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(windowl, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- windowl = CreateDynamicObject(637, 1221.95227, -1121.78589, 3460.66699, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(windowl, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- windowl = CreateDynamicObject(637, 1228.20935, -1127.92944, 3460.66699, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(windowl, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- windowl = CreateDynamicObject(637, 1245.21082, -1129.23621, 3460.66699, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(windowl, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- windowl = CreateDynamicObject(637, 1242.21387, -1132.26953, 3460.66699, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(windowl, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- windowl = CreateDynamicObject(637, 1239.01306, -1132.31750, 3460.66699, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(windowl, 0, 3781, "LSOffice1floors", "carpet13-256x256");
-
- //Curtains
- new curtain = CreateDynamicObject(2559, 1227.67969, -1109.80530, 3459.24390, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(curtain, 1, 2527, "cj_bathroom", "CJ_PILLOWCASE");
- curtain = CreateDynamicObject(2559, 1238.54846, -1105.41455, 3459.24390, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(curtain, 1, 2527, "cj_bathroom", "CJ_PILLOWCASE");
- curtain = CreateDynamicObject(2559, 1244.56226, -1107.29358, 3459.24390, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(curtain, 1, 2527, "cj_bathroom", "CJ_PILLOWCASE");
- curtain = CreateDynamicObject(2559, 1244.58826, -1113.69043, 3459.24390, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(curtain, 1, 2527, "cj_bathroom", "CJ_PILLOWCASE");
- curtain = CreateDynamicObject(2559, 1244.57178, -1122.37305, 3459.24390, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(curtain, 1, 2527, "cj_bathroom", "CJ_PILLOWCASE");
- curtain = CreateDynamicObject(2559, 1244.54907, -1128.77380, 3459.24390, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(curtain, 1, 2527, "cj_bathroom", "CJ_PILLOWCASE");
- curtain = CreateDynamicObject(2559, 1242.71252, -1131.64478, 3459.24390, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(curtain, 1, 2527, "cj_bathroom", "CJ_PILLOWCASE");
- curtain = CreateDynamicObject(2559, 1228.67578, -1127.27429, 3459.24390, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(curtain, 1, 2527, "cj_bathroom", "CJ_PILLOWCASE");
- curtain = CreateDynamicObject(2559, 1222.62048, -1122.29211, 3459.24390, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(curtain, 1, 2527, "cj_bathroom", "CJ_PILLOWCASE");
- curtain = CreateDynamicObject(2559, 1222.61475, -1115.84875, 3459.24390, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(curtain, 1, 2527, "cj_bathroom", "CJ_PILLOWCASE");
- curtain = CreateDynamicObject(2558, 1241.75159, -1105.40515, 3459.24390, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(curtain, 1, 2527, "cj_bathroom", "CJ_PILLOWCASE");
- curtain = CreateDynamicObject(2558, 1239.50757, -1131.63757, 3459.24390, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(curtain, 1, 2527, "cj_bathroom", "CJ_PILLOWCASE");
-
- //Curtains 2527, cj_bathroom CJ_PILLOWCASE
-
- //Windows & TVs
- new windowf = CreateDynamicObject(2737, 1245.11121, -1123.05957, 3459.60889, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(windowf, 0, 18008, "intclothesa", "mp_cloth_wall");
- windowf = CreateDynamicObject(2737, 1245.13000, -1129.51282, 3459.60889, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(windowf, 0, 18008, "intclothesa", "mp_cloth_wall");
- windowf = CreateDynamicObject(2737, 1245.14404, -1114.41785, 3459.60889, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(windowf, 0, 18008, "intclothesa", "mp_cloth_wall");
- windowf = CreateDynamicObject(2737, 1245.13013, -1108.01636, 3459.60889, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(windowf, 0, 18008, "intclothesa", "mp_cloth_wall");
- windowf = CreateDynamicObject(2737, 1242.44543, -1104.87915, 3459.60889, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(windowf, 0, 18008, "intclothesa", "mp_cloth_wall");
- windowf = CreateDynamicObject(2737, 1239.19897, -1104.87415, 3459.60889, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(windowf, 0, 18008, "intclothesa", "mp_cloth_wall");
- windowf = CreateDynamicObject(2737, 1228.42957, -1109.28613, 3459.60889, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(windowf, 0, 18008, "intclothesa", "mp_cloth_wall");
- windowf = CreateDynamicObject(2737, 1222.14758, -1115.13599, 3459.60889, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(windowf, 0, 18008, "intclothesa", "mp_cloth_wall");
- windowf = CreateDynamicObject(2737, 1222.12622, -1121.60742, 3459.60889, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(windowf, 0, 18008, "intclothesa", "mp_cloth_wall");
- windowf = CreateDynamicObject(2737, 1227.97888, -1127.81824, 3459.60889, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(windowf, 0, 18008, "intclothesa", "mp_cloth_wall");
- windowf = CreateDynamicObject(2737, 1238.83643, -1132.19983, 3459.60889, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(windowf, 0, 18008, "intclothesa", "mp_cloth_wall");
- windowf = CreateDynamicObject(2737, 1242.01672, -1132.21985, 3459.60889, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(windowf, 0, 18008, "intclothesa", "mp_cloth_wall");
-
- //Lamps
- new lamp = CreateDynamicObject(1731, 1222.36926, -1120.19629, 3459.99268, 0.00000, 0.00000, 180.00000); //Wall
- SetDynamicObjectMaterial(lamp, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- lamp = CreateDynamicObject(1731, 1222.36926, -1123.19629, 3459.99268, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(lamp, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- lamp = CreateDynamicObject(1731, 1222.37976, -1113.46814, 3459.99268, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(lamp, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- lamp = CreateDynamicObject(1731, 1226.40759, -1109.56616, 3459.99268, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(lamp, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- lamp = CreateDynamicObject(1731, 1237.45435, -1112.79614, 3459.99268, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(lamp, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- lamp = CreateDynamicObject(1731, 1245.35083, -1120.66394, 3459.99268, 0.00000, 0.00000, 315.00000);
- SetDynamicObjectMaterial(lamp, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- lamp = CreateDynamicObject(1731, 1245.35913, -1116.37415, 3459.99268, 0.00000, 0.00000, -315.00000);
- SetDynamicObjectMaterial(lamp, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- lamp = CreateDynamicObject(1731, 1236.46680, -1110.87610, 3459.99268, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(lamp, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- lamp = CreateDynamicObject(1731, 1236.47217, -1107.45508, 3459.99268, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(lamp, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- lamp = CreateDynamicObject(1731, 1238.38623, -1124.75513, 3459.99268, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(lamp, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- lamp = CreateDynamicObject(1731, 1241.77124, -1124.74866, 3459.99268, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(lamp, 0, 3781, "LSOffice1floors", "carpet13-256x256");
-
- lamp = CreateDynamicObject(2069, 1236.60461, -1124.82288, 3457.92041, 0.00000, 0.00000, 0.00000); //Standing
- SetDynamicObjectMaterial(lamp, 1, 3781, "LSOffice1floors", "carpet13-256x256");
- lamp = CreateDynamicObject(2069, 1244.57910, -1124.95947, 3457.92041, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(lamp, 1, 3781, "LSOffice1floors", "carpet13-256x256");
- lamp = CreateDynamicObject(2069, 1236.59998, -1124.13025, 3457.92041, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(lamp, 1, 3781, "LSOffice1floors", "carpet13-256x256");
- lamp = CreateDynamicObject(2069, 1236.65588, -1116.45947, 3457.92041, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(lamp, 1, 3781, "LSOffice1floors", "carpet13-256x256");
- lamp = CreateDynamicObject(2069, 1232.72852, -1113.06738, 3457.92041, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(lamp, 1, 3781, "LSOffice1floors", "carpet13-256x256");
- lamp = CreateDynamicObject(2069, 1230.67444, -1109.69385, 3457.92041, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(lamp, 1, 3781, "LSOffice1floors", "carpet13-256x256");
- lamp = CreateDynamicObject(2069, 1243.70288, -1105.36133, 3457.92041, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(lamp, 1, 3781, "LSOffice1floors", "carpet13-256x256");
- //LIVING ROOM
-
- //Couch chair
- new couch = CreateDynamicObject(1708, 1235.42432, -1114.39282, 3457.90845, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(couch, 2, 1726, "mrk_couches2", "kb_sofa5_256");
- SetDynamicObjectMaterial(couch, 1, 3781, "LSOffice1floors", "carpet13-256x256");
- couch = CreateDynamicObject(1708, 1233.32446, -1113.32239, 3457.90845, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(couch, 2, 1726, "mrk_couches2", "kb_sofa5_256");
- SetDynamicObjectMaterial(couch, 1, 3781, "LSOffice1floors", "carpet13-256x256");
-
- //Couch
- couch = CreateDynamicObject(1713, 1225.67224, -1114.16638, 3457.90894, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(couch, 2, 1726, "mrk_couches2", "kb_sofa5_256");
- SetDynamicObjectMaterial(couch, 1, 3781, "LSOffice1floors", "carpet13-256x256");
- couch = CreateDynamicObject(1713, 1227.26563, -1111.12415, 3457.90894, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(couch, 2, 1726, "mrk_couches2", "kb_sofa5_256");
- SetDynamicObjectMaterial(couch, 1, 3781, "LSOffice1floors", "carpet13-256x256");
-
- //Pillows
- new pil = CreateDynamicObject(1563, 1224.08569, -1114.27051, 3458.55493, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(pil, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- pil = CreateDynamicObject(1563, 1225.62598, -1114.31506, 3458.55493, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(pil, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- pil = CreateDynamicObject(1563, 1227.38293, -1112.68372, 3458.55493, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(pil, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- pil = CreateDynamicObject(1563, 1227.40576, -1111.15710, 3458.55493, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(pil, 0, 3781, "LSOffice1floors", "carpet13-256x256");
-
- new lowtable = CreateDynamicObject(1818, 1225.33191, -1112.43201, 3457.89160, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(lowtable, 0, 2117, "cj_tables", "CJ_WOOD5");
-
- lowtable = CreateDynamicObject(1742, 1222.55054, -1110.06812, 3456.25000, 0.00000, 0.00000, 45.00000);
- SetDynamicObjectMaterial(lowtable, 2, 2117, "cj_tables", "CJ_WOOD5");
-
- //Speakers
- new speaker = CreateDynamicObject(2233, 1222.49390, -1110.70386, 3457.90869, 0.00000, 0.00000, 45.00000);
- SetDynamicObjectMaterial(speaker, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFF888888);
- speaker = CreateDynamicObject(2233, 1224.00830, -1109.13147, 3457.90869, 0.00000, 0.00000, 45.00000);
- SetDynamicObjectMaterial(speaker, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFF888888);
-
- //TV
- new TV = CreateDynamicObject(2737, 1223.18384, -1110.06140, 3459.08667, 0.00000, 0.00000, 45.00000);
- SetDynamicObjectMaterial(TV, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFF888888);
- SetDynamicObjectMaterial(TV, 1, 1786, "cj_tv", "CJ_Black_metal", 0xFF000000);
-
- TV = CreateDynamicObject(2737, 1236.65125, -1127.39771, 3459.08667, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(TV, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFF888888);
- SetDynamicObjectMaterial(TV, 1, 1786, "cj_tv", "CJ_Black_metal", 0xFF000000);
-
- new bookshelf = CreateDynamicObject(1744, 1236.32495, -1127.14294, 3458.07617, 270.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(bookshelf, 0, 2117, "cj_tables", "CJ_WOOD5");
- bookshelf = CreateDynamicObject(1744, 1235.96143, -1127.13049, 3457.70898, 270.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(bookshelf, 0, 2117, "cj_tables", "CJ_WOOD5");
- //Bookshelves
- bookshelf = CreateDynamicObject(1742, 1236.16394, -1129.51343, 3457.88794, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(bookshelf, 2, 2117, "cj_tables", "CJ_WOOD5");
- bookshelf = CreateDynamicObject(1742, 1236.16394, -1126.18188, 3457.88794, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(bookshelf, 2, 2117, "cj_tables", "CJ_WOOD5");
- bookshelf = CreateDynamicObject(1742, 1236.16394, -1127.87683, 3456.25000, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(bookshelf, 2, 2117, "cj_tables", "CJ_WOOD5");
- bookshelf = CreateDynamicObject(1742, 1236.22644, -1116.21069, 3457.89600, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(bookshelf, 2, 2117, "cj_tables", "CJ_WOOD5");
- bookshelf = CreateDynamicObject(1815, 1235.96387, -1113.86340, 3457.89160, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(bookshelf, 0, 2117, "cj_tables", "CJ_WOOD5");
-
- //Windows
- new window = CreateDynamicObject(19466, 1245.09290, -1123.05151, 3459.68604, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(window, 0, 18009, "genintrestrest1", "koen_win");
- window = CreateDynamicObject(19466, 1245.13159, -1114.29578, 3459.68604, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(window, 0, 18009, "genintrestrest1", "koen_win");
- window = CreateDynamicObject(19466, 1245.10168, -1107.97559, 3459.68604, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(window, 0, 18009, "genintrestrest1", "koen_win");
- window = CreateDynamicObject(19466, 1242.09937, -1104.89221, 3459.68604, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(window, 0, 18009, "genintrestrest1", "koen_win");
- window = CreateDynamicObject(19466, 1239.01501, -1104.88806, 3459.68604, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(window, 0, 18009, "genintrestrest1", "koen_win");
- window = CreateDynamicObject(19466, 1228.27124, -1109.29480, 3459.68604, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(window, 0, 18009, "genintrestrest1", "koen_win");
- window = CreateDynamicObject(19466, 1228.15210, -1127.77917, 3459.68604, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(window, 0, 18009, "genintrestrest1", "koen_win");
- window = CreateDynamicObject(19466, 1222.15100, -1121.96497, 3459.68604, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(window, 0, 18009, "genintrestrest1", "koen_win");
- window = CreateDynamicObject(19466, 1222.14563, -1115.53052, 3459.68604, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(window, 0, 18009, "genintrestrest1", "koen_win");
- window = CreateDynamicObject(19466, 1245.12170, -1129.24756, 3459.68604, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(window, 0, 18009, "genintrestrest1", "koen_win");
- window = CreateDynamicObject(19466, 1239.05408, -1132.17322, 3459.68604, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(window, 0, 18009, "genintrestrest1", "koen_win");
- window = CreateDynamicObject(19466, 1242.27502, -1132.20679, 3459.68604, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(window, 0, 18009, "genintrestrest1", "koen_win");
- window = CreateDynamicObject(2259, 1231.74341, -1127.28528, 3459.43921, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(window, 1, 18009, "genintrestrest1", "koen_win");
- SetDynamicObjectMaterial(window, 0,2143, "cj_kitchen", "CJ_Black_metal");
- window = CreateDynamicObject(2259, 1238.93652, -1113.51807, 3458.31348, -20.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(window, 1, 18009, "genintrestrest1", "koen_win");
- SetDynamicObjectMaterial(window, 0,2143, "cj_kitchen", "CJ_Black_metal");
-
- //Bar chairs
- CreateDynamicObject(2125, 1227.78796, -1117.20422, 3458.21973, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2125, 1226.20569, -1117.21887, 3458.21973, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2125, 1224.62463, -1117.21411, 3458.21973, 0.00000, 0.00000, 0.00000);
-
- //KITCHEN STUFF
- new k4 = CreateDynamicObject(2131, 1229.30383, -1119.28430, 3457.90845, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(k4, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k4, 2, 2143, "cj_kitchen", "CJ_Black_metal");
- new k1 = CreateDynamicObject(2133, 1226.20618, -1121.86255, 3457.92847, 0.00000, 0.00000, 180.00000); //Kogeplade
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal", 0xFF000000);
- SetDynamicObjectMaterial(k1, 2, 1956, "mixkb1", "blak_1", 0xFF000000);
- k1 = CreateDynamicObject(2133, 1222.72473, -1121.26672, 3457.90845, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
- k1 = CreateDynamicObject(2134, 1228.31470, -1119.27649, 3457.90845, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
- new k3 = CreateDynamicObject(2141, 1222.69958, -1124.23608, 3457.90845, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(k3, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k3, 2, 2143, "cj_kitchen", "CJ_Black_metal");
- k1 = CreateDynamicObject(2134, 1227.31604, -1119.27649, 3457.90845, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
- k1 = CreateDynamicObject(2134, 1224.31714, -1119.28455, 3457.90845, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
- k1 = CreateDynamicObject(2134, 1223.31726, -1119.28455, 3457.90845, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
- k1 = CreateDynamicObject(2134, 1222.71533, -1119.28076, 3457.90747, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
- k1 = CreateDynamicObject(2134, 1222.71472, -1120.25879, 3457.90747, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
- k1 = CreateDynamicObject(2133, 1222.72473, -1122.26575, 3457.90845, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
- k1 = CreateDynamicObject(2134, 1222.71545, -1123.25708, 3457.90747, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
- k1 = CreateDynamicObject(2133, 1227.17615, -1122.76343, 3457.90845, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
- k1 = CreateDynamicObject(2133, 1227.20508, -1121.74255, 3457.90845, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
- k1 = CreateDynamicObject(2133, 1226.17627, -1122.76343, 3457.90845, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
- k1 = CreateDynamicObject(2133, 1225.17786, -1122.76343, 3457.90845, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
- k1 = CreateDynamicObject(2133, 1226.20618, -1121.74255, 3457.90845, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
- k1 = CreateDynamicObject(2133, 1225.20593, -1121.74255, 3457.90845, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
- CreateDynamicObject(2134, 1228.31592, -1119.59436, 3458.55493, 270.00000, 0.00000, 0.00000); //Don't texture
- CreateDynamicObject(2134, 1228.31726, -1118.53894, 3458.24243, 90.00000, 0.00000, 0.00000); //Don't texture
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
- CreateDynamicObject(2134, 1221.98535, -1120.26172, 3458.24243, 90.00000, 0.00000, 90.00000); //Don't texture
- CreateDynamicObject(2134, 1223.04004, -1120.26184, 3458.55493, 270.00000, 0.00000, 90.00000); //Don't texture
- k1 = CreateDynamicObject(2134, 1226.31726, -1119.27649, 3457.90845, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
- k1 = CreateDynamicObject(2134, 1225.31702, -1119.27649, 3457.90845, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
-
- k1 = CreateDynamicObject(2117, 1223.44666, -1118.28955, 3458.34351, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(k1, 0, 2117, "cj_tables", "marble1");
- k1 = CreateDynamicObject(2117, 1225.43359, -1118.28955, 3458.34351, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(k1, 0, 2117, "cj_tables", "marble1");
- k1 = CreateDynamicObject(2117, 1227.42065, -1118.28955, 3458.34351, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(k1, 0, 2117, "cj_tables", "marble1");
-
- //Sink
- CreateDynamicObject(2518, 1225.80127, -1119.43396, 3458.15991, 0.00000, 0.00000, 0.00000);
-
- //Kogeplade
- new plate = CreateDynamicObject(2613, 1226.26282, -1120.96936, 3458.59106, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(plate, 0, 19184, "mapmarkers", "Red-2", 0xFFA60202);
- plate = CreateDynamicObject(2613, 1226.26282, -1121.30420, 3458.59106, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(plate, 0, 19184, "mapmarkers", "Red-2", 0xFFA60202);
- plate = CreateDynamicObject(2613, 1226.71619, -1121.30420, 3458.59106, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(plate, 0, 19184, "mapmarkers", "Red-2", 0xFFA60202);
- plate = CreateDynamicObject(2613, 1226.71619, -1120.96936, 3458.59106, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(plate, 0, 19184, "mapmarkers", "Red-2", 0xFFA60202);
-
- //Table/cahirs
- new table = CreateDynamicObject(2029, 1227.83997, -1126.19580, 3457.89526, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(table, 0, 2117, "cj_tables", "CJ_WOOD5");
- new chair = CreateDynamicObject(2124, 1229.00671, -1126.23657, 3458.73608, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(chair, 0, 2117, "cj_tables", "CJ_WOOD5");
- chair = CreateDynamicObject(2124, 1228.96082, -1125.17664, 3458.73608, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(chair, 0, 2117, "cj_tables", "CJ_WOOD5");
- chair = CreateDynamicObject(2124, 1226.66064, -1125.16650, 3458.73608, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(chair, 0, 2117, "cj_tables", "CJ_WOOD5");
- chair = CreateDynamicObject(2124, 1226.61340, -1126.22571, 3458.73608, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(chair, 0, 2117, "cj_tables", "CJ_WOOD5");
-
- //Bin
- new bin = CreateDynamicObject(2613, 1231.33569, -1118.27307, 3457.91504, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(bin, 0, 19184, "mapmarkers", "Red-2", 0xFF888888);
-
- //Buttons and clocklines
- new button = CreateDynamicObject(19348, 1222.96057, -1120.59570, 3458.83203, 90.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(button, 0, 19184, "mapmarkers", "Red-2", 0xFF000000);
- button = CreateDynamicObject(19348, 1222.96057, -1120.36169, 3458.83203, 90.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(button, 0, 19184, "mapmarkers", "Red-2", 0xFF000000);
- button = CreateDynamicObject(19348, 1222.96057, -1120.12769, 3458.83203, 90.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(button, 0, 19184, "mapmarkers", "Red-2", 0xFF000000);
- button = CreateDynamicObject(19348, 1222.96057, -1119.89368, 3458.83203, 90.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(button, 0, 19184, "mapmarkers", "Red-2", 0xFF000000);
- button = CreateDynamicObject(19348, 1227.95361, -1119.48767, 3458.83203, 90.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(button, 0, 19184, "mapmarkers", "Red-2", 0xFF000000);
- button = CreateDynamicObject(19348, 1228.03662, -1119.48767, 3458.83203, 90.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(button, 0, 19184, "mapmarkers", "Red-2", 0xFF000000);
- button = CreateDynamicObject(19348, 1226.59473, -1121.56860, 3458.90527, 180.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 19184, "mapmarkers", "Red-2", 0xFF000000);
- button = CreateDynamicObject(19348, 1226.52673, -1121.56860, 3458.90527, 180.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 19184, "mapmarkers", "Red-2", 0xFF000000);
- button = CreateDynamicObject(19348, 1226.45874, -1121.56860, 3458.90527, 180.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 19184, "mapmarkers", "Red-2", 0xFF000000);
- button = CreateDynamicObject(19348, 1226.39075, -1121.56860, 3458.90527, 180.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 19184, "mapmarkers", "Red-2", 0xFF000000);
-
- new clock = CreateDynamicObject(19348, 1222.77869, -1127.20044, 3459.83569, 90.00000, 0.00000, 315.00000);
- SetDynamicObjectMaterial(clock, 0, 19184, "mapmarkers", "Red-2", 0xFFFFFFFF);
- clock = CreateDynamicObject(19348, 1222.76770, -1127.21326, 3459.14233, -5.00000, 0.00000, 315.00000);
- SetDynamicObjectMaterial(clock, 0, 19184, "mapmarkers", "Red-2", 0xFFFFFFFF);
- clock = CreateDynamicObject(19348, 1222.23169, -1126.67078, 3459.83765, 0.00000, 90.00000, 319.15060);
- SetDynamicObjectMaterial(clock, 0, 19184, "mapmarkers", "Red-2", 0xFFFFFFFF);
-
- clock = CreateDynamicObject(19348, 1244.49707, -1105.51721, 3459.41455, 0.00000, -10.00000, 45.00000);
- SetDynamicObjectMaterial(clock, 0, 19184, "mapmarkers", "Red-2", 0xFFFFFFFF);
- clock = CreateDynamicObject(19348, 1245.05151, -1106.01587, 3460.12598, 90.00000, -10.00000, 247.39012);
- SetDynamicObjectMaterial(clock, 0, 19184, "mapmarkers", "Red-2", 0xFFFFFFFF);
- clock = CreateDynamicObject(19348, 1244.43994, -1105.57324, 3460.12500, 0.00000, 90.00000, 45.00000);
- SetDynamicObjectMaterial(clock, 0, 19184, "mapmarkers", "Red-2", 0xFFFFFFFF);
-
- //Shelves
- shelf = CreateDynamicObject(1744, 1236.15222, -1128.09521, 3459.58569, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(shelf, 0, 2117, "cj_tables", "CJ_WOOD5");
- shelf = CreateDynamicObject(1744, 1239.64795, -1124.43005, 3459.58569, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(shelf, 0, 2117, "cj_tables", "CJ_WOOD5");
- shelf = CreateDynamicObject(1744, 1223.60254, -1118.41553, 3459.79077, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(shelf, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- shelf = CreateDynamicObject(1744, 1228.96106, -1117.46558, 3459.79077, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(shelf, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- shelf = CreateDynamicObject(1744, 1236.13684, -1109.68835, 3459.58569, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(shelf, 0, 2117, "cj_tables", "CJ_WOOD5");
-
- //BATHROOM
- //Toilet
- new toilet = CreateDynamicObject(2528, 1235.61975, -1128.09949, 3457.90918, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(toilet, 0, 2117, "cj_tables", "CJ_WOOD5");
- SetDynamicObjectMaterial(toilet, 4, 3781, "LSOffice1floors", "carpet14-256x256");
-
- //Carpet
- carpet = CreateDynamicObject(2817, 1234.48120, -1130.32446, 3457.90991, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(carpet, 0, 3781, "LSOffice1floors", "carpet14-256x256");
-
- k1 = CreateDynamicObject(2134, 1231.75635, -1128.27161, 3457.90845, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
- k1 = CreateDynamicObject(2134, 1231.75635, -1127.27161, 3457.90845, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
- k1 = CreateDynamicObject(2134, 1231.75635, -1126.27260, 3457.90845, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(k1, 0, 2143, "cj_kitchen", "CJ_Black_metal");
- SetDynamicObjectMaterial(k1, 2, 2117, "cj_tables", "marble1");
-
- shelf = CreateDynamicObject(1742, 1236.23950, -1125.91174, 3456.25586, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(shelf, 2, 2117, "cj_tables", "CJ_WOOD5");
- shelf = CreateDynamicObject(1744, 1236.27563, -1125.09192, 3460.09009, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(shelf, 0, 2117, "cj_tables", "CJ_WOOD5");
- shelf = CreateDynamicObject(1744, 1236.27563, -1129.33069, 3460.09009, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(shelf, 0, 2117, "cj_tables", "CJ_WOOD5");
-
- new towel = CreateDynamicObject(2384, 1235.97876, -1125.66736, 3458.39868, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(towel, 0, 2527, "cj_bathroom", "CJ_PILLOWCASE");
- towel = CreateDynamicObject(2384, 1235.96497, -1126.49988, 3458.01538, 0.00000, 0.00000, 270.00000);
- SetDynamicObjectMaterial(towel, 0, 2527, "cj_bathroom", "CJ_PILLOWCASE");
-
- CreateDynamicObject(2475, 1231.20654, -1130.70398, 3457.02661, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2749, 1231.40979, -1130.59192, 3459.20630, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2752, 1231.41699, -1130.43640, 3459.21704, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2751, 1231.57275, -1130.48572, 3459.25903, 0.00000, 0.00000, 0.00000);
-
- carpet = CreateDynamicObject(19373, 1232.02087, -1130.40259, 3457.82690, 0.00000, 90.00000, 0.00000);
- SetDynamicObjectMaterial(carpet, 0, 2143, "cj_kitchen", "CJ_Black_metal");
-
-
- //Wallpaint
- new paint = CreateDynamicObject(2267, 1240.99976, -1124.37854, 3460.10791, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(paint, 0, 2117, "cj_tables", "CJ_WOOD5");
- paint = CreateDynamicObject(2270, 1238.25732, -1123.91919, 3459.70166, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(paint, 0, 2117, "cj_tables", "CJ_WOOD5");
- paint = CreateDynamicObject(2269, 1238.97156, -1111.98206, 3459.80469, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(paint, 1, 2117, "cj_tables", "CJ_WOOD5");
- paint = CreateDynamicObject(2268, 1241.62842, -1111.97949, 3459.70557, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(paint, 0, 2117, "cj_tables", "CJ_WOOD5");
- //Beds
- new bed = CreateDynamicObject(2299, 1239.58105, -1128.11060, 3457.90137, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(bed, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- SetDynamicObjectMaterial(bed, 2, 2117, "cj_tables", "CJ_WOOD5");
- SetDynamicObjectMaterial(bed, 3, 2117, "cj_tables", "CJ_WOOD5");
- bed = CreateDynamicObject(2299, 1239.82959, -1109.70886, 3457.90137, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(bed, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- SetDynamicObjectMaterial(bed, 2, 2117, "cj_tables", "CJ_WOOD5");
- SetDynamicObjectMaterial(bed, 3, 2117, "cj_tables", "CJ_WOOD5");
-
- //Computer
- new pc = CreateDynamicObject(2265, 1239.97144, -1111.77808, 3458.98511, -170.00000, 90.00000, 0.00000); //Screen
- SetDynamicObjectMaterial(pc, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFF888888);
- SetDynamicObjectMaterial(pc, 1, 1786, "cj_tv", "CJ_Black_metal", 0xFF000000);
- pc = CreateDynamicObject(2265, 1240.68994, -1112.02075, 3459.19531, 270.00000, 0.00000, 90.00000); //Keyboard
- SetDynamicObjectMaterial(pc, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFF888888);
- SetDynamicObjectMaterial(pc, 1, 1786, "cj_tv", "CJ_Black_metal", 0xFF000000);
-
- new mousepad = CreateDynamicObject(18874, 1240.40784, -1111.85876, 3458.72681, 0.00000, 180.00000, 90.00000);
- SetDynamicObjectMaterial(mousepad, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- SetDynamicObjectMaterial(mousepad, 1, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- SetDynamicObjectMaterial(mousepad, 2, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
-
- button = CreateDynamicObject(19208, 1240.53113, -1112.12732, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.49512, -1112.12732, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.45911, -1112.12732, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.42310, -1112.12732, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.38708, -1112.12732, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.35107, -1112.12732, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.31506, -1112.12732, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.27905, -1112.12732, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.24304, -1112.12732, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.20703, -1112.12732, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.21899, -1112.09131, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.25500, -1112.09131, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.29102, -1112.09131, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.32703, -1112.09131, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.36304, -1112.09131, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.39905, -1112.09131, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.43506, -1112.09131, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.47107, -1112.09131, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.50708, -1112.09131, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.54309, -1112.09131, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.54309, -1112.05530, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.54309, -1112.01929, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.54309, -1111.98328, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.50708, -1112.05530, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.47107, -1112.05530, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.43506, -1112.05530, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.39905, -1112.05530, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.36304, -1112.05530, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.32703, -1112.05530, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.29102, -1112.05530, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.25500, -1112.05530, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.21899, -1112.05530, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.50708, -1112.01929, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.47107, -1112.01929, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.43506, -1112.01929, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.39905, -1112.01929, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.36304, -1112.01929, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.32703, -1112.01929, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.29102, -1112.01929, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.25500, -1112.01929, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.21899, -1112.01929, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.50708, -1111.98328, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.47107, -1111.98328, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.43506, -1111.98328, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.39905, -1111.98328, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.36304, -1111.98328, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.32703, -1111.98328, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.29102, -1111.98328, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.25500, -1111.98328, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.21899, -1111.98328, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.17896, -1111.96790, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.15503, -1111.99194, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.15503, -1111.96790, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- button = CreateDynamicObject(19208, 1240.13098, -1111.96790, 3458.71460, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(button, 0, 1786, "cj_tv", "CJ_Black_metal", 0xFFFFFFFF);
- //Chair
- chair = CreateDynamicObject(1806, 1239.96997, -1111.01172, 3457.90942, 0.00000, 0.00000, 190.00000);
- SetDynamicObjectMaterial(chair, 0, 3781, "LSOffice1floors", "carpet13-256x256");
- SetDynamicObjectMaterial(chair, 1, 1806, "cj_office", "CJ_blackplastic");
-
- //Lists
- new list = CreateDynamicObject(19459, 1245.07349, -1126.08191, 3456.35938, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1246.17114, -1129.83008, 3456.35938, 0.00000, 0.00000, 135.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1239.10986, -1132.11206, 3456.35938, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1239.62952, -1134.34424, 3456.35938, 0.00000, 0.00000, -135.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1236.22375, -1127.34314, 3456.35938, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1248.45203, -1117.92163, 3456.35938, 0.00000, 0.00000, 135.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1246.20801, -1124.24353, 3456.35938, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1246.20801, -1112.77410, 3456.35938, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1248.45276, -1119.13086, 3456.35938, 0.00000, 0.00000, -135.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1245.07239, -1110.97229, 3456.35938, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1241.66394, -1102.71326, 3456.35938, 0.00000, 0.00000, -135.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1240.10583, -1104.94751, 3456.35938, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1239.58899, -1102.75098, 3456.35938, 0.00000, 0.00000, 135.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1236.22083, -1110.94592, 3456.35938, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1249.00623, -1124.49255, 3456.35938, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1249.00769, -1124.49866, 3456.35938, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1249.00586, -1112.56702, 3456.35938, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1249.00696, -1112.56299, 3456.35938, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1236.22253, -1124.07190, 3456.35840, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1236.22253, -1112.94849, 3456.35840, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1237.87366, -1112.56128, 3456.35938, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1237.87476, -1112.56726, 3456.35938, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19440, 1237.08618, -1115.91602, 3456.35840, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19395, 1237.79956, -1114.21777, 3456.35864, 0.00000, 180.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19395, 1237.79163, -1114.22180, 3456.35864, 0.00000, 180.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19395, 1237.79858, -1114.22083, 3456.35767, 0.00000, 180.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19395, 1237.79260, -1114.21875, 3456.35767, 0.00000, 180.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19440, 1237.07214, -1115.90601, 3456.35840, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1236.20837, -1112.94666, 3456.35742, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1236.20642, -1124.07288, 3456.35742, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1236.20642, -1133.70667, 3456.35742, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19367, 1241.08606, -1124.49268, 3456.35938, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19367, 1241.08411, -1124.50073, 3456.35840, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19367, 1237.87659, -1124.49268, 3456.35938, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19367, 1237.87659, -1124.49866, 3456.35938, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19440, 1235.36108, -1124.49329, 3456.35840, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19440, 1235.36011, -1124.50134, 3456.35840, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1231.33923, -1130.76318, 3456.35742, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1231.18579, -1129.36267, 3456.35742, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1231.17383, -1129.22266, 3456.35742, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19440, 1232.02832, -1124.50256, 3456.35840, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19440, 1232.25854, -1124.50269, 3456.35742, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19440, 1232.25745, -1124.49475, 3456.35742, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19440, 1232.06335, -1124.49585, 3456.35645, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1226.26929, -1127.81665, 3456.35742, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1224.35510, -1128.83936, 3456.35742, 0.00000, 0.00000, -135.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1222.14624, -1121.79956, 3456.35645, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1222.14734, -1112.16504, 3456.35645, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1222.65930, -1109.99585, 3456.35645, 0.00000, 0.00000, 135.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1228.09741, -1109.32820, 3456.35645, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1231.16760, -1106.70044, 3456.35645, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19440, 1231.70801, -1112.02185, 3456.35840, 0.00000, 0.00000, -135.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19440, 1231.71301, -1112.02893, 3456.35742, 0.00000, 0.00000, -135.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1237.03491, -1112.57056, 3456.35840, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19440, 1231.01160, -1117.81030, 3456.35742, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19440, 1230.29724, -1118.69824, 3456.35742, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1226.11536, -1118.67822, 3456.35645, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19440, 1231.00562, -1117.81128, 3456.35840, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19440, 1228.90552, -1117.89551, 3456.35840, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1223.99963, -1117.91040, 3456.35645, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19440, 1228.89954, -1117.89453, 3456.35742, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19440, 1223.66650, -1117.89832, 3456.35742, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- list = CreateDynamicObject(19459, 1218.93665, -1117.18506, 3456.35645, 0.00000, 0.00000, 90.00000);
- SetDynamicObjectMaterial(list, 0, 2193, "cj_office", "CJ_WOOD5");
- }
- stock LoadGovernmentInterior()
- {
- new tmpobjid;
- tmpobjid = CreateDynamicObject(19379,1475.113,-1779.231,1814.905,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8534, "tikimotel", "sa_wood01_128", 0);
- tmpobjid = CreateDynamicObject(19379,1464.686,-1779.231,1814.905,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8534, "tikimotel", "sa_wood01_128", 0);
- tmpobjid = CreateDynamicObject(19379,1464.686,-1788.836,1814.905,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8534, "tikimotel", "sa_wood01_128", 0);
- tmpobjid = CreateDynamicObject(19379,1485.601,-1779.231,1814.905,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8534, "tikimotel", "sa_wood01_128", 0);
- tmpobjid = CreateDynamicObject(19379,1464.594,-1769.610,1814.905,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8534, "tikimotel", "sa_wood01_128", 0);
- tmpobjid = CreateDynamicObject(19379,1454.286,-1788.836,1814.905,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8534, "tikimotel", "sa_wood01_128", 0);
- tmpobjid = CreateDynamicObject(19379,1454.286,-1779.231,1814.905,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8534, "tikimotel", "sa_wood01_128", 0);
- tmpobjid = CreateDynamicObject(19379,1454.286,-1769.610,1814.905,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8534, "tikimotel", "sa_wood01_128", 0);
- tmpobjid = CreateDynamicObject(19377,1464.686,-1761.000,1814.930,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8534, "tikimotel", "sa_wood01_128", 0);
- tmpobjid = CreateDynamicObject(19377,1464.686,-1751.618,1814.930,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8534, "tikimotel", "sa_wood01_128", 0);
- tmpobjid = CreateDynamicObject(19450,1460.027,-1760.710,1816.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1469.616,-1760.689,1816.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1469.617,-1751.083,1816.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1460.023,-1751.098,1816.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1464.822,-1751.133,1816.740,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(2256,1460.125,-1757.416,1817.338,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 15040, "cuntcuts", "GB_canvas18", 0);
- tmpobjid = CreateDynamicObject(1723,1458.734,-1766.376,1814.990,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 2692, "cj_banner2", "CJ_CARDBOARD", 0);
- tmpobjid = CreateDynamicObject(1723,1471.745,-1775.017,1814.990,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 2692, "cj_banner2", "CJ_CARDBOARD", 0);
- tmpobjid = CreateDynamicObject(1723,1477.219,-1775.017,1814.990,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 2692, "cj_banner2", "CJ_CARDBOARD", 0);
- tmpobjid = CreateDynamicObject(1723,1479.057,-1783.353,1814.990,0.000,0.000,179.994);
- SetDynamicObjectMaterial(tmpobjid, 1, 2692, "cj_banner2", "CJ_CARDBOARD", 0);
- tmpobjid = CreateDynamicObject(1723,1473.615,-1783.300,1814.990,0.000,0.000,179.994);
- SetDynamicObjectMaterial(tmpobjid, 1, 2692, "cj_banner2", "CJ_CARDBOARD", 0);
- tmpobjid = CreateDynamicObject(19377,1464.686,-1761.000,1818.441,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14526, "sweetsmain", "ah_whitpanelceil", 0);
- tmpobjid = CreateDynamicObject(19377,1464.686,-1751.618,1818.441,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14526, "sweetsmain", "ah_whitpanelceil", 0);
- tmpobjid = CreateDynamicObject(19355,1465.381,-1791.105,1816.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1465.381,-1794.260,1816.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1462.138,-1791.105,1816.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1462.135,-1794.293,1816.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1462.126,-1795.460,1816.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1465.371,-1797.461,1816.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1465.381,-1794.260,1820.240,0.000,180.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1465.371,-1797.460,1820.240,0.000,179.994,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1462.135,-1794.293,1820.240,0.000,180.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1465.371,-1800.614,1819.937,0.000,180.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19435,1463.800,-1790.291,1818.240,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 1595, "satdish", "wallwhitetinge256", 0);
- tmpobjid = CreateDynamicObject(19435,1463.799,-1791.464,1818.240,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 1595, "satdish", "wallwhitetinge256", 0);
- tmpobjid = CreateDynamicObject(19362,1463.800,-1793.708,1819.270,0.000,305.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 1595, "satdish", "wallwhitetinge256", 0);
- tmpobjid = CreateDynamicObject(19362,1463.799,-1796.522,1821.234,0.000,304.996,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 1595, "satdish", "wallwhitetinge256", 0);
- tmpobjid = CreateDynamicObject(19362,1463.661,-1798.614,1821.453,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 1595, "satdish", "wallwhitetinge256", 0);
- tmpobjid = CreateDynamicObject(19355,1462.126,-1795.461,1820.240,0.000,180.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1463.725,-1800.161,1819.953,0.000,180.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1460.560,-1800.166,1819.953,0.000,180.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1458.881,-1798.646,1819.953,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1458.875,-1795.489,1819.953,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19362,1460.414,-1798.614,1821.453,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 1595, "satdish", "wallwhitetinge256", 0);
- tmpobjid = CreateDynamicObject(19362,1460.589,-1795.662,1822.503,0.000,230.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 1595, "satdish", "wallwhitetinge256", 0);
- tmpobjid = CreateDynamicObject(19355,1458.889,-1792.399,1819.953,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1458.913,-1795.336,1823.453,0.000,180.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1458.905,-1792.128,1823.453,0.000,180.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1462.130,-1795.436,1823.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1462.135,-1792.230,1823.740,0.000,0.000,180.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19362,1460.589,-1792.982,1824.757,0.000,230.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 1595, "satdish", "wallwhitetinge256", 0);
- tmpobjid = CreateDynamicObject(19355,1462.139,-1789.111,1823.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1458.910,-1788.958,1823.740,0.000,180.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19362,1460.589,-1790.507,1826.846,0.000,230.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 1595, "satdish", "wallwhitetinge256", 0);
- tmpobjid = CreateDynamicObject(19362,1458.913,-1792.141,1826.953,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1462.139,-1789.111,1827.240,0.000,180.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19355,1458.911,-1788.953,1827.240,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(19379,1454.286,-1783.307,1823.684,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14623, "mafcasmain", "ab_MarbleDiamond", 0);
- tmpobjid = CreateDynamicObject(19362,1460.589,-1789.126,1827.312,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 1595, "satdish", "wallwhitetinge256", 0);
- tmpobjid = CreateDynamicObject(19362,1462.135,-1792.314,1827.240,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 6095, "shops01_law", "hotwall1_law", 0);
- tmpobjid = CreateDynamicObject(1491,1456.551,-1788.354,1814.990,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18027, "cj_barb2", "interiordoor1_256", 0);
- tmpobjid = CreateDynamicObject(1491,1456.528,-1767.575,1814.990,0.000,0.000,270.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18027, "cj_barb2", "interiordoor1_256", 0);
- tmpobjid = CreateDynamicObject(1491,1462.609,-1765.754,1814.990,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18027, "cj_barb2", "interiordoor1_256", 0);
- tmpobjid = CreateDynamicObject(19358,1468.981,-1764.146,1816.740,0.000,0.000,326.997);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19388,1463.396,-1765.378,1816.740,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19358,1466.542,-1765.378,1816.740,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19358,1460.187,-1765.378,1816.740,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19377,1485.601,-1779.231,1818.441,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14526, "sweetsmain", "ah_whitpanelceil", 0);
- tmpobjid = CreateDynamicObject(19377,1475.113,-1779.231,1818.441,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14526, "sweetsmain", "ah_whitpanelceil", 0);
- tmpobjid = CreateDynamicObject(19377,1464.686,-1769.599,1818.441,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14526, "sweetsmain", "ah_whitpanelceil", 0);
- tmpobjid = CreateDynamicObject(19377,1464.686,-1779.231,1818.441,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14526, "sweetsmain", "ah_whitpanelceil", 0);
- tmpobjid = CreateDynamicObject(19377,1464.686,-1785.136,1818.461,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14526, "sweetsmain", "ah_whitpanelceil", 0);
- tmpobjid = CreateDynamicObject(19377,1454.286,-1785.136,1818.461,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14526, "sweetsmain", "ah_whitpanelceil", 0);
- tmpobjid = CreateDynamicObject(19377,1454.186,-1769.589,1818.441,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14526, "sweetsmain", "ah_whitpanelceil", 0);
- tmpobjid = CreateDynamicObject(19377,1454.186,-1776.022,1818.441,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14526, "sweetsmain", "ah_whitpanelceil", 0);
- tmpobjid = CreateDynamicObject(2434,1458.749,-1784.450,1814.990,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- tmpobjid = CreateDynamicObject(2435,1458.916,-1783.322,1814.990,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- tmpobjid = CreateDynamicObject(2435,1458.910,-1782.394,1814.990,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- tmpobjid = CreateDynamicObject(2435,1458.910,-1781.462,1814.990,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- tmpobjid = CreateDynamicObject(2435,1458.910,-1780.548,1814.990,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- tmpobjid = CreateDynamicObject(2435,1458.910,-1779.639,1814.990,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- tmpobjid = CreateDynamicObject(2435,1458.910,-1778.715,1814.990,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- tmpobjid = CreateDynamicObject(2435,1458.910,-1777.784,1814.990,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- tmpobjid = CreateDynamicObject(2435,1458.910,-1776.863,1814.990,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- tmpobjid = CreateDynamicObject(2435,1458.910,-1775.936,1814.990,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- tmpobjid = CreateDynamicObject(2435,1458.910,-1775.019,1814.990,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- tmpobjid = CreateDynamicObject(2435,1458.910,-1774.094,1814.990,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- tmpobjid = CreateDynamicObject(2435,1458.910,-1773.168,1814.990,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- tmpobjid = CreateDynamicObject(2435,1458.910,-1772.238,1814.990,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- tmpobjid = CreateDynamicObject(2434,1458.916,-1771.321,1814.990,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0);
- tmpobjid = CreateDynamicObject(19893,1458.837,-1780.818,1816.031,0.000,0.000,-67.799);
- SetDynamicObjectMaterial(tmpobjid, 1, 8035, "vgsshospshop", "hosp_sign01b", 0);
- tmpobjid = CreateDynamicObject(19893,1458.955,-1779.179,1816.031,0.000,0.000,-91.899);
- SetDynamicObjectMaterial(tmpobjid, 1, 8035, "vgsshospshop", "hosp_sign01b", 0);
- tmpobjid = CreateDynamicObject(19893,1458.923,-1777.251,1816.031,0.000,0.000,-82.500);
- SetDynamicObjectMaterial(tmpobjid, 1, 8035, "vgsshospshop", "hosp_sign01b", 0);
- tmpobjid = CreateDynamicObject(19893,1458.949,-1775.622,1816.030,0.000,0.000,-85.899);
- SetDynamicObjectMaterial(tmpobjid, 1, 8035, "vgsshospshop", "hosp_sign01b", 0);
- tmpobjid = CreateDynamicObject(19893,1458.840,-1772.082,1816.050,0.000,0.000,-77.299);
- SetDynamicObjectMaterial(tmpobjid, 1, 8035, "vgsshospshop", "hosp_sign01b", 0);
- tmpobjid = CreateDynamicObject(19387,1456.160,-1787.620,1816.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "sphinxbody01_128", 0);
- tmpobjid = CreateDynamicObject(19357,1456.160,-1784.492,1816.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "sphinxbody01_128", 0);
- tmpobjid = CreateDynamicObject(19357,1454.588,-1789.285,1816.740,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "sphinxbody01_128", 0);
- tmpobjid = CreateDynamicObject(19357,1451.397,-1789.290,1816.740,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "sphinxbody01_128", 0);
- tmpobjid = CreateDynamicObject(19357,1449.883,-1789.099,1816.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "sphinxbody01_128", 0);
- tmpobjid = CreateDynamicObject(19357,1449.883,-1783.505,1816.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "sphinxbody01_128", 0);
- tmpobjid = CreateDynamicObject(19357,1449.883,-1781.411,1816.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "sphinxbody01_128", 0);
- tmpobjid = CreateDynamicObject(19357,1456.160,-1781.464,1816.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "sphinxbody01_128", 0);
- tmpobjid = CreateDynamicObject(19449,1451.350,-1780.940,1816.740,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "sphinxbody01_128", 0);
- tmpobjid = CreateDynamicObject(19449,1452.965,-1778.927,1816.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "sphinxbody01_128", 0);
- tmpobjid = CreateDynamicObject(19387,1451.439,-1783.663,1816.740,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "sphinxbody01_128", 0);
- tmpobjid = CreateDynamicObject(19387,1454.599,-1783.656,1816.740,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "sphinxbody01_128", 0);
- tmpobjid = CreateDynamicObject(19357,1449.875,-1786.208,1814.341,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "sphinxbody01_128", 0);
- tmpobjid = CreateDynamicObject(19357,1449.883,-1786.328,1819.740,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "sphinxbody01_128", 0);
- tmpobjid = CreateDynamicObject(638,1469.131,-1767.873,1815.686,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 1597, "centralresac1", "fuzzyplant256", 0);
- tmpobjid = CreateDynamicObject(638,1469.131,-1770.454,1815.686,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 1597, "centralresac1", "fuzzyplant256", 0);
- tmpobjid = CreateDynamicObject(638,1469.131,-1773.051,1815.686,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 1597, "centralresac1", "fuzzyplant256", 0);
- tmpobjid = CreateDynamicObject(638,1465.677,-1766.176,1815.686,0.000,0.000,270.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 1597, "centralresac1", "fuzzyplant256", 0);
- tmpobjid = CreateDynamicObject(638,1468.276,-1766.176,1815.686,0.000,0.000,270.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 1597, "centralresac1", "fuzzyplant256", 0);
- tmpobjid = CreateDynamicObject(19379,1464.686,-1783.307,1823.684,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14623, "mafcasmain", "ab_MarbleDiamond", 0);
- tmpobjid = CreateDynamicObject(19379,1475.084,-1783.307,1823.684,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14623, "mafcasmain", "ab_MarbleDiamond", 0);
- tmpobjid = CreateDynamicObject(19379,1485.535,-1783.307,1823.684,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14623, "mafcasmain", "ab_MarbleDiamond", 0);
- tmpobjid = CreateDynamicObject(19379,1454.286,-1773.897,1823.684,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14623, "mafcasmain", "ab_MarbleDiamond", 0);
- tmpobjid = CreateDynamicObject(19379,1464.716,-1773.897,1823.684,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14623, "mafcasmain", "ab_MarbleDiamond", 0);
- tmpobjid = CreateDynamicObject(19379,1475.084,-1773.897,1823.684,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14623, "mafcasmain", "ab_MarbleDiamond", 0);
- tmpobjid = CreateDynamicObject(19379,1485.535,-1773.897,1823.684,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14623, "mafcasmain", "ab_MarbleDiamond", 0);
- tmpobjid = CreateDynamicObject(19379,1454.286,-1764.289,1823.684,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14623, "mafcasmain", "ab_MarbleDiamond", 0);
- tmpobjid = CreateDynamicObject(19379,1464.686,-1764.289,1823.684,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14623, "mafcasmain", "ab_MarbleDiamond", 0);
- tmpobjid = CreateDynamicObject(19379,1475.084,-1764.289,1823.684,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14623, "mafcasmain", "ab_MarbleDiamond", 0);
- tmpobjid = CreateDynamicObject(19379,1485.535,-1764.289,1823.684,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14623, "mafcasmain", "ab_MarbleDiamond", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 17958, "burnsalpha", "plantb256", 0);
- tmpobjid = CreateDynamicObject(19358,1463.826,-1787.579,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19358,1457.209,-1787.441,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1464.895,-1788.165,1825.520,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1469.630,-1783.437,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1456.614,-1782.885,1825.520,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1456.614,-1773.357,1825.520,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1479.197,-1783.432,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1456.614,-1764.140,1825.520,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1488.770,-1783.443,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1464.896,-1780.762,1825.520,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1472.733,-1780.762,1825.520,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1480.116,-1780.762,1825.520,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1488.565,-1780.762,1825.520,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19388,1468.796,-1776.020,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19358,1466.416,-1776.012,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19358,1471.802,-1776.019,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19358,1473.614,-1776.020,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19388,1475.994,-1776.020,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19388,1484.134,-1776.020,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19358,1478.542,-1776.020,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19358,1481.262,-1776.020,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19358,1487.302,-1776.019,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19358,1488.548,-1776.612,1825.520,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19358,1488.548,-1773.519,1822.520,0.000,179.994,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1488.548,-1767.120,1825.520,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1488.770,-1770.761,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1479.197,-1770.754,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1469.630,-1770.753,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19388,1464.897,-1769.234,1825.520,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19358,1466.569,-1767.722,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19358,1468.262,-1766.206,1825.520,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1468.263,-1759.876,1825.520,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1488.548,-1759.537,1825.520,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1460.098,-1767.718,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19379,1464.686,-1754.778,1823.684,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14623, "mafcasmain", "ab_MarbleDiamond", 0);
- tmpobjid = CreateDynamicObject(19379,1475.084,-1754.778,1823.684,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14623, "mafcasmain", "ab_MarbleDiamond", 0);
- tmpobjid = CreateDynamicObject(19379,1485.535,-1754.778,1823.684,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14623, "mafcasmain", "ab_MarbleDiamond", 0);
- tmpobjid = CreateDynamicObject(19450,1473.100,-1756.199,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19450,1482.635,-1756.192,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19431,1488.114,-1756.188,1825.520,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19379,1489.909,-1765.961,1824.521,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14623, "mafcasmain", "ab_MarbleDiamond", 0);
- tmpobjid = CreateDynamicObject(19379,1489.908,-1756.873,1824.521,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14623, "mafcasmain", "ab_MarbleDiamond", 0);
- tmpobjid = CreateDynamicObject(19357,1484.739,-1760.133,1822.820,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19357,1485.280,-1758.501,1822.820,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19357,1484.739,-1763.338,1822.820,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19357,1484.740,-1766.520,1822.820,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19357,1484.734,-1769.093,1822.820,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObject(19173,1479.303,-1756.336,1825.845,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14581, "ab_mafiasuitea", "ab_pic_bridge", 0);
- tmpobjid = CreateDynamicObject(19174,1472.389,-1756.285,1825.897,0.000,0.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "ab_wuziwillow", 0);
- tmpobjid = CreateDynamicObject(19175,1468.349,-1762.640,1825.868,0.000,0.000,90.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3440, "airportpillar", "carfx1", 0);
- tmpobjid = CreateDynamicObject(19172,1471.113,-1770.666,1825.887,0.000,0.000,180.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14803, "bdupsnew", "Bdup2_poster", 0);
- tmpobjid = CreateDynamicObject(19174,1481.056,-1770.667,1825.876,0.000,0.000,180.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14489, "carlspics", "AH_landscap1", 0);
- tmpobjid = CreateDynamicObject(19377,1485.535,-1783.307,1827.322,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8591, "olympic01", "vgscityhwal1", 0);
- tmpobjid = CreateDynamicObject(19377,1485.535,-1773.897,1827.322,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8591, "olympic01", "vgscityhwal1", 0);
- tmpobjid = CreateDynamicObject(19377,1485.535,-1764.289,1827.322,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8591, "olympic01", "vgscityhwal1", 0);
- tmpobjid = CreateDynamicObject(19377,1485.535,-1754.778,1827.322,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8591, "olympic01", "vgscityhwal1", 0);
- tmpobjid = CreateDynamicObject(19377,1475.084,-1754.778,1827.322,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8591, "olympic01", "vgscityhwal1", 0);
- tmpobjid = CreateDynamicObject(19377,1475.084,-1764.289,1827.322,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8591, "olympic01", "vgscityhwal1", 0);
- tmpobjid = CreateDynamicObject(19377,1464.686,-1754.778,1827.322,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8591, "olympic01", "vgscityhwal1", 0);
- tmpobjid = CreateDynamicObject(19377,1464.686,-1764.289,1827.322,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8591, "olympic01", "vgscityhwal1", 0);
- tmpobjid = CreateDynamicObject(19377,1454.286,-1764.289,1827.322,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8591, "olympic01", "vgscityhwal1", 0);
- tmpobjid = CreateDynamicObject(19377,1454.286,-1773.897,1827.322,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8591, "olympic01", "vgscityhwal1", 0);
- tmpobjid = CreateDynamicObject(19377,1454.286,-1783.307,1827.322,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8591, "olympic01", "vgscityhwal1", 0);
- tmpobjid = CreateDynamicObject(19377,1464.686,-1783.307,1827.322,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8591, "olympic01", "vgscityhwal1", 0);
- tmpobjid = CreateDynamicObject(19377,1475.084,-1783.307,1827.322,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8591, "olympic01", "vgscityhwal1", 0);
- tmpobjid = CreateDynamicObject(19377,1475.084,-1773.897,1827.322,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8591, "olympic01", "vgscityhwal1", 0);
- tmpobjid = CreateDynamicObject(19377,1464.686,-1773.897,1827.322,0.000,90.000,0.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8591, "olympic01", "vgscityhwal1", 0);
- tmpobjid = CreateDynamicObject(19786,1469.584,-1769.999,1817.182,2.899,0.000,-89.900);
- SetDynamicObjectMaterial(tmpobjid, 1, 6354, "sunset03_law2", "SunBillB04", 0);
- tmpobjid = CreateDynamicObject(19786,1488.494,-1768.076,1826.148,0.000,0.000,-90.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 16644, "a51_detailstuff", "a51_map", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 16644, "a51_detailstuff", "a51_map", 0);
- tmpobjid = CreateDynamicObject(19893,1458.863,-1782.713,1816.030,0.000,0.000,-87.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 8035, "vgsshospshop", "hosp_sign01b", 0);
- tmpobjid = CreateDynamicObject(1569,1482.181,-1780.909,1815.000,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(1569,1482.181,-1777.916,1815.000,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(630,1460.749,-1751.887,1816.100,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(630,1469.125,-1751.735,1816.100,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2258,1465.994,-1765.270,1817.123,0.000,0.000,180.000);
- tmpobjid = CreateDynamicObject(2257,1469.489,-1756.673,1817.026,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(2267,1469.503,-1761.839,1817.238,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(2258,1475.525,-1774.583,1817.211,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2256,1475.176,-1783.721,1817.039,0.000,0.000,179.994);
- tmpobjid = CreateDynamicObject(1359,1481.644,-1775.048,1815.689,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(1359,1481.686,-1783.421,1815.689,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19377,1464.686,-1798.406,1814.905,0.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(2614,1488.397,-1763.901,1826.381,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(18608,1464.734,-1766.790,1819.927,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(18084,1450.717,-1786.338,1816.773,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(18084,1487.663,-1772.170,1825.152,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(19460,1482.236,-1779.067,1813.441,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19460,1482.236,-1779.067,1819.840,0.000,180.000,0.000);
- tmpobjid = CreateDynamicObject(19460,1477.538,-1774.469,1813.441,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(19368,1471.136,-1774.468,1813.441,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(19368,1471.136,-1774.469,1819.840,0.000,180.000,90.000);
- tmpobjid = CreateDynamicObject(19460,1477.538,-1774.469,1819.840,0.000,180.000,90.000);
- tmpobjid = CreateDynamicObject(19460,1477.538,-1783.912,1813.441,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(19460,1477.538,-1783.912,1819.840,0.000,180.000,90.000);
- tmpobjid = CreateDynamicObject(19368,1471.136,-1783.915,1819.840,0.000,180.000,90.000);
- tmpobjid = CreateDynamicObject(2885,1475.007,-1774.334,1821.702,0.000,0.000,179.994);
- tmpobjid = CreateDynamicObject(2885,1485.613,-1774.334,1821.702,0.000,0.000,179.994);
- tmpobjid = CreateDynamicObject(2885,1482.375,-1779.842,1821.702,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2885,1485.613,-1784.042,1821.702,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2885,1475.007,-1784.042,1821.702,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2885,1469.757,-1783.841,1813.702,0.000,90.000,90.000);
- tmpobjid = CreateDynamicObject(11435,1469.072,-1783.843,1819.052,0.000,0.000,179.994);
- tmpobjid = CreateDynamicObject(19368,1469.622,-1785.607,1819.840,0.000,180.000,0.000);
- tmpobjid = CreateDynamicObject(19368,1469.622,-1785.607,1813.441,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19368,1471.168,-1783.912,1813.441,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2885,1472.022,-1789.552,1816.656,0.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(19368,1469.622,-1788.748,1819.840,0.000,180.000,0.000);
- tmpobjid = CreateDynamicObject(19368,1469.622,-1788.748,1813.441,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19368,1466.899,-1789.420,1819.840,0.000,180.000,90.000);
- tmpobjid = CreateDynamicObject(19368,1466.899,-1789.420,1813.441,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(19368,1470.020,-1789.420,1819.840,0.000,180.000,90.000);
- tmpobjid = CreateDynamicObject(19368,1470.020,-1789.420,1813.441,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(14416,1463.857,-1794.969,1814.990,0.000,0.000,180.000);
- tmpobjid = CreateDynamicObject(19355,1465.381,-1791.105,1820.240,0.000,180.000,0.000);
- tmpobjid = CreateDynamicObject(19355,1462.139,-1791.105,1820.240,0.000,180.000,0.000);
- tmpobjid = CreateDynamicObject(19362,1463.661,-1798.614,1818.117,0.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(14416,1460.058,-1793.153,1818.990,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19362,1460.204,-1798.614,1818.117,0.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(19368,1463.690,-1789.420,1819.840,0.000,180.000,90.000);
- tmpobjid = CreateDynamicObject(14416,1460.058,-1790.931,1820.538,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19368,1460.640,-1789.420,1819.840,0.000,180.000,90.000);
- tmpobjid = CreateDynamicObject(19368,1460.640,-1789.420,1813.441,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(19368,1458.165,-1789.421,1813.441,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(19368,1458.165,-1789.410,1819.840,0.000,179.994,90.000);
- tmpobjid = CreateDynamicObject(11435,1464.894,-1789.423,1819.052,0.000,0.000,179.994);
- tmpobjid = CreateDynamicObject(11435,1461.701,-1789.417,1819.052,0.000,0.000,179.994);
- tmpobjid = CreateDynamicObject(2885,1462.099,-1789.552,1813.702,0.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(19368,1456.564,-1789.917,1813.441,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19368,1456.564,-1789.917,1819.840,0.000,180.000,0.000);
- tmpobjid = CreateDynamicObject(2885,1456.407,-1793.804,1821.702,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(11435,1456.614,-1787.947,1819.651,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(11435,1456.614,-1786.253,1819.651,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2885,1456.404,-1788.354,1824.181,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(19368,1456.567,-1786.890,1819.840,0.000,180.000,0.000);
- tmpobjid = CreateDynamicObject(19460,1456.546,-1781.916,1813.441,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19460,1456.546,-1781.916,1819.840,0.000,179.994,0.000);
- tmpobjid = CreateDynamicObject(2885,1456.404,-1775.802,1818.901,0.000,90.000,269.999);
- tmpobjid = CreateDynamicObject(19460,1456.546,-1773.900,1813.441,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19460,1456.546,-1773.899,1819.840,0.000,179.994,0.000);
- tmpobjid = CreateDynamicObject(2885,1456.405,-1762.120,1821.702,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(2885,1456.394,-1768.373,1824.181,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(11435,1456.608,-1768.713,1819.651,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(11435,1456.608,-1767.006,1819.651,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(19460,1456.546,-1764.308,1819.840,0.000,180.000,0.000);
- tmpobjid = CreateDynamicObject(19368,1456.546,-1765.874,1813.441,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2885,1457.199,-1765.617,1821.702,0.000,0.000,179.994);
- tmpobjid = CreateDynamicObject(2885,1469.591,-1765.617,1821.702,0.000,0.000,179.994);
- tmpobjid = CreateDynamicObject(2885,1469.716,-1769.000,1821.702,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(11435,1470.049,-1774.488,1819.651,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19460,1457.847,-1765.758,1813.441,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(19460,1459.848,-1765.759,1819.840,0.000,180.000,90.000);
- tmpobjid = CreateDynamicObject(19460,1468.916,-1765.759,1813.441,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(19460,1469.159,-1765.759,1819.840,0.000,180.000,90.000);
- tmpobjid = CreateDynamicObject(19460,1469.572,-1769.608,1813.441,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19460,1469.572,-1769.608,1819.840,0.000,180.000,0.000);
- tmpobjid = CreateDynamicObject(11435,1463.019,-1765.817,1819.651,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(11435,1464.724,-1765.825,1819.651,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2885,1462.649,-1765.611,1824.181,0.000,0.000,179.994);
- tmpobjid = CreateDynamicObject(2885,1456.404,-1781.211,1821.702,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(19377,1471.480,-1785.255,1820.241,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(19377,1470.733,-1788.796,1815.917,0.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(1649,1467.685,-1783.959,1816.656,0.000,0.000,180.000);
- tmpobjid = CreateDynamicObject(1649,1465.452,-1786.181,1816.656,0.000,0.000,269.994);
- tmpobjid = CreateDynamicObject(11435,1465.011,-1783.943,1819.651,0.000,0.000,180.000);
- tmpobjid = CreateDynamicObject(19377,1466.744,-1790.015,1820.241,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(1649,1465.452,-1790.556,1816.989,0.000,0.000,269.989);
- tmpobjid = CreateDynamicObject(11435,1465.512,-1788.873,1818.938,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(19377,1470.733,-1788.796,1815.917,0.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(19377,1470.685,-1788.808,1817.350,0.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(19377,1470.358,-1788.338,1821.255,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(19377,1469.545,-1788.741,1821.255,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19377,1470.313,-1789.396,1821.255,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(2885,1470.907,-1784.062,1816.002,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2885,1470.907,-1784.062,1823.980,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2885,1465.630,-1789.526,1816.002,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2885,1465.630,-1789.526,1823.980,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2885,1465.609,-1793.918,1821.702,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(19368,1467.913,-1783.930,1813.441,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(19368,1465.474,-1788.515,1813.441,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19441,1466.312,-1783.932,1813.441,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(19368,1465.494,-1785.543,1813.441,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19368,1467.887,-1783.912,1819.840,0.000,180.000,90.000);
- tmpobjid = CreateDynamicObject(19368,1465.494,-1785.629,1819.840,0.000,180.000,0.000);
- tmpobjid = CreateDynamicObject(19368,1465.474,-1788.566,1819.840,0.000,180.000,0.000);
- tmpobjid = CreateDynamicObject(2648,1458.675,-1772.578,1815.613,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(2648,1458.675,-1774.084,1815.613,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(2648,1458.675,-1775.939,1815.613,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(2648,1458.675,-1777.806,1815.613,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(19441,1466.410,-1783.912,1819.840,0.000,180.000,90.000);
- tmpobjid = CreateDynamicObject(2648,1458.675,-1779.656,1815.613,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(2648,1458.675,-1781.435,1815.613,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(2648,1458.675,-1783.337,1815.613,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(3920,1472.075,-1785.507,1816.966,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(3920,1466.974,-1791.543,1816.476,0.000,0.000,91.000);
- tmpobjid = CreateDynamicObject(19894,1458.979,-1773.653,1816.060,0.000,0.000,-88.800);
- tmpobjid = CreateDynamicObject(862,1466.113,-1787.233,1816.004,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19893,1468.837,-1758.626,1815.506,0.000,0.000,20.500);
- tmpobjid = CreateDynamicObject(862,1466.412,-1785.083,1816.004,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(862,1468.712,-1784.823,1816.004,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2168,1458.741,-1782.663,1816.240,180.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(677,1467.525,-1784.593,1816.004,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2168,1458.741,-1780.781,1816.258,179.994,0.000,270.000);
- tmpobjid = CreateDynamicObject(1599,1465.760,-1787.625,1816.188,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(1600,1465.951,-1785.718,1816.404,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2168,1458.741,-1779.026,1816.258,179.994,0.000,270.000);
- tmpobjid = CreateDynamicObject(1601,1467.121,-1784.723,1816.395,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(2168,1458.741,-1777.222,1816.258,179.994,0.000,270.000);
- tmpobjid = CreateDynamicObject(2168,1458.741,-1775.430,1816.258,179.994,0.000,270.000);
- tmpobjid = CreateDynamicObject(1602,1468.338,-1784.512,1817.192,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2168,1458.741,-1773.579,1816.258,179.994,0.000,270.000);
- tmpobjid = CreateDynamicObject(1605,1466.526,-1786.480,1816.416,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(1610,1465.838,-1784.588,1816.004,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(1611,1465.854,-1786.739,1816.004,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(1714,1457.807,-1772.379,1814.990,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(1714,1457.654,-1774.093,1814.990,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(1714,1457.832,-1776.067,1814.990,0.000,0.000,140.000);
- tmpobjid = CreateDynamicObject(1714,1457.126,-1777.667,1814.990,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(1714,1457.483,-1779.378,1814.990,0.000,0.000,76.000);
- tmpobjid = CreateDynamicObject(1714,1457.404,-1781.262,1814.990,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(1714,1457.293,-1783.405,1814.990,0.000,0.000,118.000);
- tmpobjid = CreateDynamicObject(1502,1450.662,-1783.698,1814.990,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2614,1456.666,-1777.676,1817.310,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(1502,1455.351,-1783.649,1814.990,0.000,0.000,180.000);
- tmpobjid = CreateDynamicObject(2523,1454.188,-1788.718,1814.990,0.000,0.000,180.000);
- tmpobjid = CreateDynamicObject(2523,1452.948,-1788.739,1814.990,0.000,0.000,180.000);
- tmpobjid = CreateDynamicObject(2162,1456.623,-1784.233,1816.566,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2162,1456.647,-1772.562,1816.566,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(1846,1452.960,-1788.204,1816.990,90.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2894,1458.883,-1772.774,1816.046,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2894,1458.884,-1774.482,1816.046,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2894,1458.843,-1776.292,1816.046,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2894,1458.816,-1778.092,1816.046,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2894,1458.858,-1779.918,1816.046,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2894,1458.848,-1781.719,1816.046,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2894,1458.843,-1783.494,1816.046,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(1726,1463.735,-1751.847,1815.015,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(1726,1468.904,-1755.692,1815.015,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1724,1461.288,-1751.869,1815.015,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19443,1448.230,-1786.720,1816.009,0.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(1724,1467.082,-1751.803,1815.015,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19443,1448.230,-1785.917,1816.009,0.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(1724,1469.040,-1759.151,1815.015,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1724,1469.015,-1753.250,1815.015,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1726,1460.698,-1758.305,1815.015,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(19443,1448.230,-1785.168,1816.720,90.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(19443,1448.230,-1785.168,1817.245,90.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(1724,1460.670,-1754.916,1815.015,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(1724,1460.693,-1760.770,1815.015,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(19443,1448.230,-1787.542,1816.720,90.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(2531,1468.348,-1763.984,1815.015,0.000,0.000,235.750);
- tmpobjid = CreateDynamicObject(19443,1448.230,-1787.542,1817.245,90.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(19443,1448.230,-1786.720,1817.955,0.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(19443,1448.230,-1785.917,1817.955,0.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(1815,1460.113,-1759.555,1815.021,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(1815,1460.131,-1756.025,1815.015,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(1815,1462.442,-1752.375,1815.015,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(1815,1465.980,-1752.421,1815.015,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(1815,1468.421,-1755.463,1815.015,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(1815,1468.430,-1758.963,1815.015,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19357,1449.515,-1786.280,1817.845,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2230,1460.223,-1750.850,1816.740,0.000,0.000,38.750);
- tmpobjid = CreateDynamicObject(2528,1451.441,-1781.515,1814.990,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2230,1469.864,-1751.235,1816.740,0.000,0.000,318.748);
- tmpobjid = CreateDynamicObject(2528,1454.572,-1781.516,1814.990,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2230,1459.784,-1765.313,1816.740,0.000,0.000,138.746);
- tmpobjid = CreateDynamicObject(18075,1475.304,-1781.595,1818.291,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19389,1456.151,-1768.354,1816.740,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19359,1456.151,-1771.505,1816.740,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19359,1456.151,-1774.647,1816.740,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19359,1454.715,-1774.123,1816.740,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(19359,1451.529,-1774.123,1816.740,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(19359,1449.901,-1772.521,1816.740,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19359,1449.895,-1769.327,1816.740,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19359,1449.889,-1766.125,1816.740,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19359,1456.151,-1765.714,1816.740,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19359,1454.598,-1766.633,1816.740,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(19359,1451.411,-1766.625,1816.740,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2387,1450.475,-1773.564,1814.990,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(630,1468.970,-1760.796,1816.041,0.000,0.000,159.999);
- tmpobjid = CreateDynamicObject(630,1460.630,-1764.102,1816.041,0.000,0.000,9.997);
- tmpobjid = CreateDynamicObject(2846,1451.842,-1773.404,1814.990,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2843,1450.432,-1771.739,1814.990,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(14782,1450.410,-1767.277,1816.006,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(14782,1455.723,-1773.336,1816.006,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(2372,1453.842,-1773.569,1814.990,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2382,1453.292,-1773.647,1815.723,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(1846,1453.503,-1767.692,1816.875,90.000,0.000,180.000);
- tmpobjid = CreateDynamicObject(19370,1490.177,-1773.464,1824.220,0.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(19370,1490.177,-1771.882,1825.737,90.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(19370,1490.177,-1774.988,1825.737,90.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(19370,1490.177,-1773.464,1827.199,0.000,90.000,0.000);
- tmpobjid = CreateDynamicObject(18084,1487.663,-1774.773,1825.152,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(18084,1487.663,-1773.270,1827.453,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(18084,1487.663,-1775.843,1827.453,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2885,1488.899,-1772.739,1831.017,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(1491,1483.358,-1776.021,1823.770,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(1491,1475.202,-1776.016,1823.770,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(1491,1468.019,-1776.036,1823.770,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(1714,1486.713,-1783.042,1823.770,0.000,0.000,150.000);
- tmpobjid = CreateDynamicObject(1723,1487.983,-1777.059,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1724,1485.421,-1776.584,1823.770,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(1998,1487.002,-1781.858,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(2174,1480.706,-1782.864,1823.770,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2310,1487.340,-1780.840,1824.270,0.000,0.000,45.000);
- tmpobjid = CreateDynamicObject(2310,1480.937,-1782.136,1824.270,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2161,1480.219,-1779.647,1823.770,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2164,1481.564,-1776.109,1823.770,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2167,1480.657,-1776.105,1823.776,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(630,1480.621,-1780.680,1824.796,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(630,1480.609,-1778.339,1824.796,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2245,1488.072,-1781.635,1824.891,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2252,1479.495,-1779.431,1824.590,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2287,1487.104,-1776.578,1825.470,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2286,1488.462,-1780.338,1825.870,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(2284,1483.969,-1782.848,1825.470,0.000,0.000,180.000);
- tmpobjid = CreateDynamicObject(2282,1480.683,-1779.438,1825.429,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(14416,1482.800,-1756.579,1821.354,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1482.020,-1759.942,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1482.020,-1761.202,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1482.020,-1762.409,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1482.020,-1763.666,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1482.020,-1764.785,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1482.020,-1765.943,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1482.020,-1767.081,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1482.020,-1768.326,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1480.635,-1759.942,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1480.635,-1761.202,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1480.635,-1762.409,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1480.634,-1763.666,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1480.634,-1764.785,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1480.635,-1765.943,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1480.634,-1767.081,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1480.635,-1768.327,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1479.381,-1759.941,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1479.381,-1761.201,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1479.381,-1762.408,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1479.381,-1763.666,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1479.381,-1764.785,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1479.381,-1765.943,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1479.381,-1767.081,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1479.381,-1768.326,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1478.065,-1759.941,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1478.065,-1761.201,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1478.065,-1762.408,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1478.065,-1763.666,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1478.065,-1764.785,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1478.065,-1765.943,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1478.065,-1767.081,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1478.065,-1768.326,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1476.587,-1759.941,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1476.587,-1761.201,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1476.587,-1762.408,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1476.587,-1763.666,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1476.587,-1764.785,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1476.587,-1765.943,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1476.587,-1767.081,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1476.587,-1768.326,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1475.065,-1759.941,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1475.065,-1761.201,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1475.065,-1762.408,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1475.065,-1763.666,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1475.065,-1764.785,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1475.065,-1765.943,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1475.065,-1767.081,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1475.065,-1768.326,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1473.556,-1759.941,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1473.556,-1761.201,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1473.556,-1762.408,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1473.556,-1763.666,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1473.556,-1764.785,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1473.556,-1765.943,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1473.556,-1767.081,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1473.556,-1768.326,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1472.201,-1759.941,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1472.201,-1761.201,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1472.201,-1762.408,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1472.201,-1763.666,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1472.201,-1764.785,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1472.201,-1765.943,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1472.201,-1767.081,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1721,1472.201,-1768.326,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(2184,1485.395,-1762.953,1824.608,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(630,1488.130,-1770.389,1825.633,0.000,0.000,180.000);
- tmpobjid = CreateDynamicObject(630,1487.913,-1756.687,1825.633,0.000,0.000,180.000);
- tmpobjid = CreateDynamicObject(2961,1462.344,-1787.493,1825.392,0.000,0.000,180.000);
- tmpobjid = CreateDynamicObject(2205,1475.730,-1781.572,1823.770,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2162,1479.547,-1783.334,1823.770,0.000,0.000,180.000);
- tmpobjid = CreateDynamicObject(2164,1478.064,-1776.142,1823.770,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2167,1472.843,-1777.994,1823.770,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2162,1473.615,-1776.105,1825.142,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(630,1473.334,-1777.228,1824.796,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(630,1473.348,-1782.923,1824.796,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2319,1479.572,-1780.192,1823.770,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2894,1485.526,-1763.972,1825.384,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2289,1479.987,-1779.455,1825.805,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(2267,1476.307,-1783.317,1825.718,0.000,0.000,180.000);
- tmpobjid = CreateDynamicObject(2266,1473.326,-1780.474,1825.571,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(14455,1466.880,-1783.327,1825.442,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2608,1465.203,-1779.989,1825.882,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2205,1470.834,-1779.912,1823.770,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2163,1466.115,-1776.102,1823.770,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2164,1470.727,-1776.129,1823.770,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2162,1472.646,-1781.557,1825.332,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1714,1476.349,-1783.109,1823.770,0.000,0.000,180.000);
- tmpobjid = CreateDynamicObject(1714,1472.250,-1779.270,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1714,1487.526,-1764.015,1824.608,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(2264,1465.511,-1778.114,1825.370,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(2258,1472.619,-1779.346,1825.791,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1491,1464.869,-1768.453,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(18075,1462.766,-1777.385,1818.340,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19172,1485.288,-1770.848,1825.890,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19174,1475.813,-1770.839,1825.853,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19173,1467.624,-1770.848,1825.853,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(1723,1465.482,-1782.822,1823.770,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(1723,1481.198,-1775.449,1823.770,0.000,0.000,180.000);
- tmpobjid = CreateDynamicObject(1723,1473.336,-1775.438,1823.770,0.000,0.000,180.000);
- tmpobjid = CreateDynamicObject(1723,1464.275,-1780.904,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1724,1464.301,-1778.727,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1724,1464.284,-1783.983,1823.770,0.000,0.000,270.000);
- tmpobjid = CreateDynamicObject(1726,1457.250,-1783.956,1823.770,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(1726,1459.318,-1768.281,1823.770,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(1726,1457.180,-1776.038,1823.770,0.000,0.000,90.000);
- tmpobjid = CreateDynamicObject(630,1457.360,-1785.916,1824.796,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(630,1457.352,-1778.931,1824.796,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(630,1457.438,-1771.009,1824.796,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2319,1470.588,-1771.302,1823.770,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2319,1479.832,-1771.364,1823.770,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2241,1471.990,-1771.264,1824.771,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2245,1470.793,-1771.313,1824.577,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2252,1480.043,-1771.392,1824.590,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(2253,1481.067,-1771.359,1824.548,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(18075,1464.941,-1757.875,1818.316,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(18075,1457.878,-1777.862,1827.190,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(18075,1473.115,-1763.487,1827.161,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(18075,1482.666,-1763.477,1827.170,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(18075,1468.559,-1777.730,1827.240,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(18075,1480.103,-1773.598,1827.200,0.000,0.000,0.000);
- tmpobjid = CreateDynamicObject(19807,1458.729,-1784.243,1816.080,0.000,0.000,-121.399);
- tmpobjid = CreateDynamicObject(19814,1456.625,-1785.221,1815.311,0.000,0.000,90.399);
- }
- stock LoadPoliceDepartment1() //by peks97
- {
- CreateDynamicObject(945, 2594.6999511719, -1201.5, 1525.5, 0, 0, 0);
- CreateDynamicObject(2196, 2611.7998046875, -1195.7998046875, 1516, 0, 0, 269.97802734375);
- CreateDynamicObject(2164, 2593.3999023438, -1192.4000244141, 1515.1999511719, 0, 0, 0);
- CreateDynamicObject(2199, 2592.8000488281, -1207.4000244141, 1515.1999511719, 0, 0, 90);
- CreateDynamicObject(2608, 2593.8999023438, -1205.3000488281, 1515.9000244141, 0, 0, 0);
- CreateDynamicObject(2606, 2593.7998046875, -1192.3994140625, 1517.3000488281, 0, 0, 0);
- CreateDynamicObject(2737, 2606.2998046875, -1212.099609375, 1516.6999511719, 0, 0, 270);
- CreateDynamicObject(2954, 2597.19921875, -1203.099609375, 1515.1999511719, 0, 0, 179.99450683594);
- CreateDynamicObject(1502, 2597.1999511719, -1193.8000488281, 1515.1999511719, 0, 0, 90);
- CreateDynamicObject(2680, 2605.7998046875, -1197.7998046875, 1516.1999511719, 0, 0, 0);
- CreateDynamicObject(2616, 2596.8994140625, -1210.69921875, 1517.1999511719, 0, 0, 270);
- CreateDynamicObject(2614, 2592.7998046875, -1195.2998046875, 1517.1999511719, 0, 0, 90);
- CreateDynamicObject(2612, 2592.7998046875, -1211.5, 1517.0999755859, 0, 0, 91.983032226563);
- CreateDynamicObject(2611, 2596, -1205.099609375, 1517.0999755859, 0, 0, 0);
- CreateDynamicObject(1616, 2592.8999023438, -1198.1999511719, 1517.9000244141, 0, 0, 187.99255371094);
- CreateDynamicObject(1778, 2601.5, -1201.69921875, 1515.1999511719, 0, 0, 0);
- CreateDynamicObject(1808, 2595, -1192.5, 1515.1999511719, 0, 0, 0);
- CreateDynamicObject(2186, 2596.3994140625, -1207.5, 1515.1999511719, 0, 0, 270);
- CreateDynamicObject(2190, 2608.6000976563, -1211, 1516.0999755859, 0, 0, 0);
- CreateDynamicObject(2332, 2609.6999511719, -1213.3000488281, 1517.5, 0, 0, 179.99450683594);
- CreateDynamicObject(1714, 2608.6999511719, -1212.6999511719, 1515.1999511719, 0, 0, 169.99145507813);
- CreateDynamicObject(2310, 2594.3000488281, -1194.8000488281, 1515.6999511719, 0, 0, 75.997924804688);
- CreateDynamicObject(2009, 2595.5, -1205.3994140625, 1515.1999511719, 0, 0, 270);
- CreateDynamicObject(2165, 2594.8994140625, -1195.7998046875, 1515.1999511719, 0, 0, 179.99450683594);
- CreateDynamicObject(1535, 2592.6999511719, -1200.4000244141, 1515.0999755859, 0, 0, 270);
- CreateDynamicObject(1649, 2594.8994140625, -1197.69921875, 1518.5999755859, 0, 0, 179.99450683594);
- CreateDynamicObject(1808, 2596.7998046875, -1204.19921875, 1515.1999511719, 0, 0, 270);
- CreateDynamicObject(2001, 2596.3994140625, -1196.8994140625, 1515.1999511719, 0, 0, 0);
- CreateDynamicObject(1722, 2596.8994140625, -1198.2998046875, 1515.3000488281, 0, 0, 90);
- CreateDynamicObject(1722, 2596.8994140625, -1199.099609375, 1515.3000488281, 0, 0, 90);
- CreateDynamicObject(1722, 2596.8999023438, -1199.9000244141, 1515.3000488281, 0, 0, 90);
- CreateDynamicObject(1502, 2597.19921875, -1211.599609375, 1515.1999511719, 0, 0, 269.98901367188);
- CreateDynamicObject(2066, 2594.3999023438, -1212.8000488281, 1515.3000488281, 0, 0, 179.99450683594);
- CreateDynamicObject(2065, 2593.6999511719, -1212.8000488281, 1515.3000488281, 0, 0, 179.99450683594);
- CreateDynamicObject(2067, 2593, -1212.8000488281, 1515.3000488281, 0, 0, 179.99450683594);
- CreateDynamicObject(1806, 2595.3000488281, -1206.3000488281, 1515.3000488281, 0, 0, 257.99255371094);
- CreateDynamicObject(2241, 2595.099609375, -1212.8994140625, 1515.6999511719, 0, 0, 0);
- CreateDynamicObject(1502, 2604.8000488281, -1206.1999511719, 1515.1999511719, 0, 0, 359.98352050781);
- CreateDynamicObject(1892, 2605, -1207, 1515.1999511719, 0, 0, 0);
- CreateDynamicObject(1737, 2605, -1212.9000244141, 1514.8000488281, 0, 0, 0);
- CreateDynamicObject(1737, 2605, -1212, 1514.8000488281, 0, 0, 0);
- CreateDynamicObject(1737, 2605, -1211.099609375, 1514.8000488281, 0, 0, 0);
- CreateDynamicObject(1737, 2605, -1211.3994140625, 1515.0999755859, 270, 270, 270);
- CreateDynamicObject(1737, 2605.2998046875, -1212.8994140625, 1515.0999755859, 90, 0, 270);
- CreateDynamicObject(1737, 2605.3000488281, -1211.0999755859, 1515.0999755859, 90, 0, 270);
- CreateDynamicObject(3384, 2621.69921875, -1211, 1516.6999511719, 0, 0, 0);
- CreateDynamicObject(2715, 2597, -1208.3994140625, 1517.3000488281, 0, 0, 90);
- CreateDynamicObject(2289, 2597, -1199.099609375, 1517.5999755859, 0, 0, 270);
- CreateDynamicObject(2161, 2616.2998046875, -1194.2998046875, 1515.4000244141, 0, 0, 268);
- CreateDynamicObject(2162, 2616.3000488281, -1195.6999511719, 1515.4000244141, 0, 0, 270);
- CreateDynamicObject(2163, 2614.6999511719, -1192.4000244141, 1515.3000488281, 0, 0, 0);
- CreateDynamicObject(2164, 2612.8999023438, -1192.4000244141, 1515.3000488281, 0, 0, 0);
- CreateDynamicObject(2708, 2593, -1210.099609375, 1515.1999511719, 0, 0, 90);
- CreateDynamicObject(2966, 2595.2998046875, -1205.5, 1516.0999755859, 0, 0, 0);
- CreateDynamicObject(2055, 2595.7998046875, -1213.099609375, 1517.5999755859, 0, 0, 179.99450683594);
- CreateDynamicObject(2384, 2593.099609375, -1210.099609375, 1515.8000488281, 0, 0, 179.99450683594);
- CreateDynamicObject(2392, 2593.099609375, -1209.7998046875, 1517, 0, 0, 0);
- CreateDynamicObject(2700, 2596.7998046875, -1195.2998046875, 1517.8000488281, 0, 0, 179.99450683594);
- CreateDynamicObject(1806, 2610.19921875, -1195.599609375, 1515.1999511719, 0, 0, 247.24182128906);
- CreateDynamicObject(1998, 2611.2998046875, -1195.69921875, 1515.1999511719, 0, 0, 179.99450683594);
- CreateDynamicObject(1216, 2593.19921875, -1204.099609375, 1516, 0, 0, 179.99450683594);
- CreateDynamicObject(3386, 2619.3994140625, -1207.599609375, 1515.1999511719, 0, 0, 90);
- CreateDynamicObject(3390, 2620.599609375, -1212.3994140625, 1515.1999511719, 0, 0, 270);
- CreateDynamicObject(1502, 2608.5, -1202.5999755859, 1515.1999511719, 0, 0, 0);
- CreateDynamicObject(1502, 2610.8000488281, -1207, 1515.0999755859, 0, 0, 359.99450683594);
- CreateDynamicObject(14856, 2612, -1189.2998046875, 1517.0999755859, 0, 0, 0);
- CreateDynamicObject(2606, 2604.7998046875, -1212, 1515.6999511719, 0, 90, 0);
- CreateDynamicObject(2606, 2604.8000488281, -1212, 1515.6999511719, 0, 90, 180);
- CreateDynamicObject(1502, 2613.3999023438, -1197.8000488281, 1515.0999755859, 0, 0, 0);
- CreateDynamicObject(1649, 2594.8994140625, -1197.69921875, 1518.5999755859, 0, 0, 0);
- CreateDynamicObject(2680, 2601.6000976563, -1197.8000488281, 1516.1999511719, 0, 0, 0);
- CreateDynamicObject(1776, 2596.69921875, -1201, 1516.3000488281, 0, 0, 270);
- CreateDynamicObject(2425, 2595.1000976563, -1204.4000244141, 1516.5, 0, 0, 180);
- CreateDynamicObject(2223, 2593.6000976563, -1195.5999755859, 1516.0999755859, 0, 0, 122.5);
- CreateDynamicObject(1549, 2592.8999023438, -1198, 1515.1999511719, 0, 0, 54);
- CreateDynamicObject(3113, 2599.599609375, -1203.099609375, 1514.5999755859, 0, 284.99084472656, 0);
- CreateDynamicObject(3095, 2605.1000976563, -1193.1999511719, 1514.8000488281, 0, 0, 0);
- CreateDynamicObject(2886, 2597.099609375, -1203.5, 1516.6999511719, 0, 0, 270);
- CreateDynamicObject(1210, 2608.1999511719, -1210.5999755859, 1516.1999511719, 0, 0, 91.246948242188);
- CreateDynamicObject(2061, 2593, -1212.9000244141, 1516.9000244141, 0, 0, 0);
- CreateDynamicObject(2690, 2595.5, -1192.5999755859, 1515.5999755859, 0, 0, 0);
- CreateDynamicObject(5152, 2597.1999511719, -1200, 1516.3000488281, 270, 350, 56);
- CreateDynamicObject(2684, 2596.1999511719, -1192.4000244141, 1517.0999755859, 0, 0, 0);
- CreateDynamicObject(2765, 2594.6999511719, -1212.6999511719, 1515.1999511719, 0, 0, 0);
- CreateDynamicObject(3113, 2607.7998046875, -1203.099609375, 1514.5999755859, 0, 284.99084472656, 179.99450683594);
- CreateDynamicObject(3113, 2622.099609375, -1203.099609375, 1514.5999755859, 0, 284.99084472656, 0);
- CreateDynamicObject(5152, 2597.19921875, -1196, 1516.3000488281, 270, 349.99694824219, 56.9970703125);
- CreateDynamicObject(5152, 2597.19921875, -1196, 1518.4000244141, 270, 349.99694824219, 56.9970703125);
- CreateDynamicObject(5152, 2597.19921875, -1200, 1518.4000244141, 270, 349.99694824219, 55.997314453125);
- CreateDynamicObject(5152, 2594.8994140625, -1197.69921875, 1515.5999755859, 270, 349.99694824219, 146.9970703125);
- CreateDynamicObject(5152, 2595, -1192.1999511719, 1516.3000488281, 270, 350, 147);
- CreateDynamicObject(5152, 2595, -1192.19921875, 1518.4000244141, 270, 349.99145507813, 146.99157714844);
- CreateDynamicObject(5152, 2592.6000976563, -1193.5999755859, 1518.4000244141, 270, 350, 237);
- CreateDynamicObject(5152, 2592.6000976563, -1193.6999511719, 1516.3000488281, 270, 350, 237);
- CreateDynamicObject(5152, 2592.599609375, -1198, 1516.3000488281, 270, 349.99694824219, 235.99731445313);
- CreateDynamicObject(5152, 2592.6000976563, -1198, 1518.4000244141, 270, 350, 236);
- CreateDynamicObject(5152, 2594.8999023438, -1197.5999755859, 1515.5999755859, 270, 350, 327);
- CreateDynamicObject(5152, 2592.599609375, -1202.3994140625, 1516.3000488281, 270, 349.99694824219, 236.9970703125);
- CreateDynamicObject(5152, 2592.599609375, -1202.3994140625, 1518.4000244141, 270, 349.99145507813, 236.9970703125);
- CreateDynamicObject(5152, 2597.1999511719, -1205.4000244141, 1516.3000488281, 270, 350, 56.75);
- CreateDynamicObject(5152, 2597.19921875, -1204.2998046875, 1518.4000244141, 270, 349.99694824219, 56.749877929688);
- CreateDynamicObject(5152, 2597.1000976563, -1191.6999511719, 1518.8000488281, 90, 185.63049316406, 110.36315917969);
- CreateDynamicObject(5152, 2597.19921875, -1209.5, 1516.3000488281, 270, 349.99145507813, 55.986328125);
- CreateDynamicObject(5152, 2597.19921875, -1209.5, 1518.4000244141, 270, 349.99694824219, 55.997314453125);
- CreateDynamicObject(5152, 2597.19921875, -1205.2998046875, 1518.4000244141, 270, 349.99694824219, 56.749877929688);
- CreateDynamicObject(5152, 2597.19921875, -1213.8994140625, 1518.8000488281, 270, 349.99145507813, 55.991821289063);
- CreateDynamicObject(2765, 2594.69921875, -1212.69921875, 1516.3000488281, 0, 0, 0);
- CreateDynamicObject(2765, 2594.69921875, -1212.69921875, 1517.4000244141, 0, 0, 0);
- CreateDynamicObject(2765, 2591.8000488281, -1212.6999511719, 1517.4000244141, 0, 0, 0);
- CreateDynamicObject(2765, 2591.8000488281, -1212.6999511719, 1516.3000488281, 0, 0, 0);
- CreateDynamicObject(2765, 2591.7998046875, -1212.69921875, 1515.3000488281, 0, 0, 0);
- CreateDynamicObject(2765, 2593.099609375, -1210.7998046875, 1517.4000244141, 0, 0, 270);
- CreateDynamicObject(2765, 2593.1000976563, -1210.8000488281, 1516.3000488281, 0, 0, 270);
- CreateDynamicObject(2765, 2593.1000976563, -1210.8000488281, 1515.1999511719, 0, 0, 270);
- CreateDynamicObject(2765, 2593.1000976563, -1207.9000244141, 1515.1999511719, 0, 0, 270);
- CreateDynamicObject(2765, 2593.1000976563, -1205.3000488281, 1515.1999511719, 0, 0, 270);
- CreateDynamicObject(2765, 2593.099609375, -1207.8994140625, 1517.4000244141, 0, 0, 270);
- CreateDynamicObject(2765, 2593.099609375, -1207.8994140625, 1516.3000488281, 0, 0, 270);
- CreateDynamicObject(2765, 2593.1000976563, -1205.3000488281, 1516.3000488281, 0, 0, 270);
- CreateDynamicObject(2765, 2593.099609375, -1205.2998046875, 1517.4000244141, 0, 0, 270);
- CreateDynamicObject(2765, 2596.599609375, -1205.3994140625, 1517.4000244141, 0, 0, 179.99450683594);
- CreateDynamicObject(2765, 2596.599609375, -1205.3994140625, 1516.3000488281, 0, 0, 179.99450683594);
- CreateDynamicObject(2765, 2596.6000976563, -1205.4000244141, 1515.1999511719, 0, 0, 179.99450683594);
- CreateDynamicObject(2765, 2593.6999511719, -1205.4000244141, 1515.3000488281, 0, 0, 179.99450683594);
- CreateDynamicObject(2765, 2593.6999511719, -1205.4000244141, 1516.3000488281, 0, 0, 179.99450683594);
- CreateDynamicObject(2765, 2593.69921875, -1205.3994140625, 1517.4000244141, 0, 0, 179.99450683594);
- CreateDynamicObject(2765, 2596.599609375, -1211.2998046875, 1517.4000244141, 0, 0, 89.994506835938);
- CreateDynamicObject(2765, 2596.6000976563, -1211.3000488281, 1516.3000488281, 0, 0, 89.994506835938);
- CreateDynamicObject(2765, 2596.6000976563, -1211.3000488281, 1515.1999511719, 0, 0, 89.994506835938);
- CreateDynamicObject(2765, 2596.6000976563, -1207.4000244141, 1515.1999511719, 0, 0, 89.994506835938);
- CreateDynamicObject(2765, 2596.6000976563, -1208.9000244141, 1515.1999511719, 0, 0, 89.994506835938);
- CreateDynamicObject(2765, 2596.6000976563, -1208.9000244141, 1516.3000488281, 0, 0, 89.994506835938);
- CreateDynamicObject(2765, 2596.599609375, -1208.8994140625, 1517.4000244141, 0, 0, 89.994506835938);
- CreateDynamicObject(2765, 2596.6000976563, -1207.4000244141, 1517.4000244141, 0, 0, 89.994506835938);
- CreateDynamicObject(2765, 2596.6000976563, -1207.4000244141, 1516.3000488281, 0, 0, 89.994506835938);
- CreateDynamicObject(2765, 2596.6000976563, -1212.1999511719, 1518.8000488281, 0, 180, 90);
- CreateDynamicObject(5152, 2594.8994140625, -1204.69921875, 1516.3000488281, 270, 349.99145507813, 326.98608398438);
- CreateDynamicObject(5152, 2600.5, -1212.19921875, 1518.4000244141, 270, 349.99145507813, 235.99731445313);
- CreateDynamicObject(5152, 2600.5, -1208.3994140625, 1516.3000488281, 270, 349.99145507813, 236.9970703125);
- CreateDynamicObject(5152, 2600.5, -1194.4000244141, 1516.3000488281, 270, 350, 237.25);
- CreateDynamicObject(5152, 2600.5, -1212.19921875, 1516.3000488281, 270, 349.99145507813, 235.99731445313);
- CreateDynamicObject(5152, 2602.599609375, -1206.19921875, 1516.3000488281, 270, 349.99694824219, 146.9970703125);
- CreateDynamicObject(5152, 2602.599609375, -1206.19921875, 1518.4000244141, 270, 349.99145507813, 146.99157714844);
- CreateDynamicObject(5152, 2599, -1213.3000488281, 1516.3000488281, 270, 349.99694824219, 146.9970703125);
- CreateDynamicObject(5152, 2599, -1213.3000488281, 1518.4000244141, 270, 349.99694824219, 146.9970703125);
- CreateDynamicObject(5152, 2599.2998046875, -1192.19921875, 1516.3000488281, 270, 177.49816894531, 154.49279785156);
- CreateDynamicObject(5152, 2606.2998046875, -1202.69921875, 1516.3000488281, 270, 349.99145507813, 325.73364257813);
- CreateDynamicObject(5152, 2600.5, -1208.3994140625, 1518.4000244141, 270, 349.99145507813, 236.9970703125);
- CreateDynamicObject(5152, 2600.5, -1197.5, 1516.3000488281, 270, 350, 236);
- CreateDynamicObject(5152, 2600.5, -1200.5, 1516.3000488281, 270, 182.63729858398, 69.390258789063);
- CreateDynamicObject(5152, 2600.5, -1194.4000244141, 1518.4000244141, 270, 349.99694824219, 236.9970703125);
- CreateDynamicObject(5152, 2600.5, -1197.5, 1518.4000244141, 270, 349.99694824219, 235.99731445313);
- CreateDynamicObject(5152, 2600.5, -1200.5, 1518.4000244141, 270, 349.99145507813, 236.73889160156);
- CreateDynamicObject(5152, 2599.3000488281, -1192.1999511719, 1518.4000244141, 270, 349.99145507813, 326.98608398438);
- CreateDynamicObject(5152, 2602.6999511719, -1202.6999511719, 1516.3000488281, 270, 349.99145507813, 326.99157714844);
- CreateDynamicObject(5152, 2602.6999511719, -1202.6999511719, 1518.4000244141, 270, 349.99145507813, 326.99157714844);
- CreateDynamicObject(5152, 2606.2998046875, -1202.69921875, 1518.4000244141, 270, 349.99145507813, 325.73364257813);
- CreateDynamicObject(3095, 2605.099609375, -1192.3994140625, 1519.5999755859, 0, 270, 270);
- CreateDynamicObject(3095, 2604.8000488281, -1193.1999511719, 1519.5999755859, 0, 270, 179.99450683594);
- CreateDynamicObject(3095, 2605.6999511719, -1193.1999511719, 1519.5999755859, 0, 270, 359.98901367188);
- CreateDynamicObject(3095, 2601.5, -1193.1999511719, 1519.5999755859, 0, 270, 359.98352050781);
- CreateDynamicObject(3095, 2609.1000976563, -1193.1999511719, 1519.5999755859, 0, 270, 179.99450683594);
- CreateDynamicObject(1738, 2601.1999511719, -1199.6999511719, 1515.8000488281, 0, 359.75, 90);
- CreateDynamicObject(2091, 2604.6000976563, -1194.5, 1515.4000244141, 0, 0, 270);
- CreateDynamicObject(2103, 2604.3999023438, -1195.9000244141, 1517.4000244141, 0, 0, 270);
- CreateDynamicObject(2344, 2604.3000488281, -1194.3000488281, 1517.4000244141, 0, 0, 0);
- CreateDynamicObject(2514, 2603.3999023438, -1193, 1515.4000244141, 0, 0, 0);
- CreateDynamicObject(2523, 2604, -1192.9000244141, 1515.4000244141, 0, 0, 0);
- CreateDynamicObject(2527, 2602, -1193.9000244141, 1515.4000244141, 0, 0, 0);
- CreateDynamicObject(2829, 2604.3999023438, -1194.4000244141, 1517, 0, 0, 270);
- CreateDynamicObject(2894, 2604.8000488281, -1212, 1516.6999511719, 0, 0, 90);
- CreateDynamicObject(2523, 2608.3000488281, -1192.9000244141, 1515.4000244141, 0, 0, 0);
- CreateDynamicObject(2527, 2606.3000488281, -1193.9000244141, 1515.4000244141, 0, 0, 0);
- CreateDynamicObject(2514, 2607.6000976563, -1192.9000244141, 1515.4000244141, 0, 0, 0);
- CreateDynamicObject(2091, 2608.8999023438, -1194.5, 1515.4000244141, 0, 0, 270);
- CreateDynamicObject(2103, 2608.6000976563, -1195.9000244141, 1517.4000244141, 0, 0, 270);
- CreateDynamicObject(2829, 2608.6999511719, -1194.4000244141, 1517, 0, 0, 290.5);
- CreateDynamicObject(2344, 2608.6000976563, -1194.3000488281, 1517.4000244141, 0, 0, 0);
- CreateDynamicObject(5152, 2612.1999511719, -1202.6999511719, 1516.4000244141, 270, 349.99145507813, 325.73913574219);
- CreateDynamicObject(5152, 2616.2998046875, -1202.7998046875, 1516.4000244141, 270, 349.99145507813, 324.23400878906);
- CreateDynamicObject(5152, 2616.2998046875, -1202.7998046875, 1518.5, 270, 349.99145507813, 324.73400878906);
- CreateDynamicObject(5152, 2612.19921875, -1202.69921875, 1518.5, 270, 349.99145507813, 325.73364257813);
- CreateDynamicObject(5152, 2610.099609375, -1202.69921875, 1518.8000488281, 270, 349.99145507813, 326.73376464844);
- CreateDynamicObject(8136, 2609.5, -1199.3994140625, 1523, 179.99450683594, 0, 0);
- CreateDynamicObject(2828, 2610.1999511719, -1211.9000244141, 1516.0999755859, 0, 0, 27.248901367188);
- CreateDynamicObject(1665, 2613.69921875, -1209.2998046875, 1515.6999511719, 0, 0, 89.5);
- CreateDynamicObject(1800, 2606.3000488281, -1197.9000244141, 1515.1999511719, 0, 0, 359);
- CreateDynamicObject(1361, 2614.3999023438, -1212.5, 1516, 0, 0, 0);
- CreateDynamicObject(2245, 2614, -1210.099609375, 1515.9000244141, 0, 0, 0);
- CreateDynamicObject(2194, 2610.5, -1211.4000244141, 1516.4000244141, 0, 0, 0);
- CreateDynamicObject(1800, 2602, -1197.8994140625, 1515.1999511719, 0, 0, 358.99475097656);
- CreateDynamicObject(5152, 2604.3999023438, -1206.1999511719, 1518.8000488281, 270, 349.99145507813, 145.74157714844);
- CreateDynamicObject(2836, 2610.6999511719, -1208.0999755859, 1515.1999511719, 0, 0, 0);
- CreateDynamicObject(2962, 2612.8000488281, -1207.6999511719, 1516.8000488281, 0, 0, 357.74780273438);
- CreateDynamicObject(2509, 2610.6000976563, -1192.3000488281, 1515.9000244141, 0, 90, 0);
- CreateDynamicObject(2509, 2612.5, -1192.3000488281, 1515.9000244141, 0, 90, 0);
- CreateDynamicObject(2509, 2614.3999023438, -1192.3000488281, 1515.9000244141, 0, 90, 0);
- CreateDynamicObject(2509, 2616.3000488281, -1192.3000488281, 1515.9000244141, 0, 90, 0);
- CreateDynamicObject(2509, 2616.3000488281, -1192.3000488281, 1517.1999511719, 0, 90, 0);
- CreateDynamicObject(2509, 2614.3999023438, -1192.3000488281, 1517.1999511719, 0, 90, 0);
- CreateDynamicObject(2509, 2612.5, -1192.2998046875, 1517.1999511719, 0, 90, 0);
- CreateDynamicObject(2509, 2610.6000976563, -1192.3000488281, 1517.1999511719, 0, 90, 0);
- CreateDynamicObject(2509, 2610.599609375, -1192.2998046875, 1518.5, 0, 90, 0);
- CreateDynamicObject(2509, 2612.5, -1192.2998046875, 1518.5, 0, 90, 0);
- CreateDynamicObject(2509, 2614.3999023438, -1192.3000488281, 1518.5, 0, 90, 0);
- CreateDynamicObject(2509, 2616.3000488281, -1192.3000488281, 1518.5, 0, 90, 0);
- CreateDynamicObject(2509, 2616.5, -1196.5, 1515.9000244141, 0, 90, 270);
- CreateDynamicObject(2509, 2616.5, -1194.599609375, 1515.9000244141, 0, 90, 270);
- CreateDynamicObject(2509, 2616.5, -1192.6999511719, 1515.9000244141, 0, 90, 270);
- CreateDynamicObject(2509, 2616.5, -1192.69921875, 1517.1999511719, 0, 90, 270);
- CreateDynamicObject(2509, 2616.5, -1192.6999511719, 1518.5, 0, 90, 270);
- CreateDynamicObject(2509, 2616.5, -1194.599609375, 1518.5, 0, 90, 270);
- CreateDynamicObject(2509, 2616.5, -1194.599609375, 1517.1999511719, 0, 90, 270);
- CreateDynamicObject(2509, 2616.5, -1196.5, 1517.1999511719, 0, 90, 270);
- CreateDynamicObject(2509, 2616.5, -1196.5, 1518.5, 0, 90, 270);
- CreateDynamicObject(2509, 2615.8999023438, -1197.1999511719, 1518.5, 0, 90, 179.99450683594);
- CreateDynamicObject(2509, 2615.8999023438, -1197.1999511719, 1517.1999511719, 0, 90, 179.99450683594);
- CreateDynamicObject(2509, 2615.8999023438, -1197.1999511719, 1515.9000244141, 0, 90, 179.99450683594);
- CreateDynamicObject(2509, 2612.5, -1197.1999511719, 1515.9000244141, 0, 90, 179.99450683594);
- CreateDynamicObject(2509, 2610.6000976563, -1197.1999511719, 1515.9000244141, 0, 90, 179.99450683594);
- CreateDynamicObject(2509, 2610.6000976563, -1197.1999511719, 1517.1999511719, 0, 90, 179.99450683594);
- CreateDynamicObject(2509, 2612.5, -1197.1999511719, 1517.1999511719, 0, 90, 179.99450683594);
- CreateDynamicObject(2509, 2610.6000976563, -1197.1999511719, 1518.5, 0, 90, 179.99450683594);
- CreateDynamicObject(2509, 2612.5, -1197.1999511719, 1518.5, 0, 90, 179.99450683594);
- CreateDynamicObject(2509, 2614.1999511719, -1197.1999511719, 1518.3000488281, 0, 90, 179.99450683594);
- CreateDynamicObject(2509, 2609.69921875, -1196.599609375, 1515.9000244141, 0, 90, 89.994506835938);
- CreateDynamicObject(2509, 2609.69921875, -1196.599609375, 1517.1999511719, 0, 90, 89.994506835938);
- CreateDynamicObject(2509, 2609.69921875, -1196.599609375, 1518.5, 0, 90, 89.994506835938);
- CreateDynamicObject(2509, 2609.6999511719, -1194.6999511719, 1518.5, 0, 90, 89.994506835938);
- CreateDynamicObject(2509, 2609.6999511719, -1194.6999511719, 1517.1999511719, 0, 90, 89.994506835938);
- CreateDynamicObject(2509, 2609.69921875, -1194.69921875, 1515.9000244141, 0, 90, 89.994506835938);
- CreateDynamicObject(2509, 2609.6999511719, -1192.8000488281, 1517.1999511719, 0, 90, 89.994506835938);
- CreateDynamicObject(2509, 2609.6999511719, -1192.8000488281, 1515.9000244141, 0, 90, 89.994506835938);
- CreateDynamicObject(2509, 2609.6999511719, -1192.8000488281, 1518.5, 0, 90, 89.994506835938);
- CreateDynamicObject(18066, 2606.3999023438, -1212.5, 1515.4000244141, 0, 0, 90);
- CreateDynamicObject(18066, 2605.6999511719, -1213.0999755859, 1515.4000244141, 0, 0, 0);
- CreateDynamicObject(2595, 2605.6000976563, -1209.0999755859, 1516.3000488281, 0, 0, 220);
- CreateDynamicObject(1516, 2605.6999511719, -1209.0999755859, 1515.4000244141, 0, 0, 0);
- CreateDynamicObject(2894, 2611.3999023438, -1195.9000244141, 1516, 0, 0, 270);
- CreateDynamicObject(2204, 2601.3000488281, -1202.3000488281, 1515.1999511719, 0, 0, 359.75);
- CreateDynamicObject(2204, 2604.1999511719, -1202.3000488281, 1515.1999511719, 0, 0, 359.75);
- CreateDynamicObject(2204, 2606, -1202.3000488281, 1515.1999511719, 0, 0, 359.25);
- CreateDynamicObject(2204, 2606, -1202.2998046875, 1516.9000244141, 0, 0, 359.24194335938);
- CreateDynamicObject(2204, 2604.1999511719, -1202.3000488281, 1516.9000244141, 0, 0, 0.25);
- CreateDynamicObject(2204, 2601.3000488281, -1202.3000488281, 1516.9000244141, 0, 0, 0.25);
- CreateDynamicObject(2204, 2600.8999023438, -1199.8000488281, 1515.1999511719, 0, 0, 269.75);
- CreateDynamicObject(2204, 2600.8999023438, -1199.8000488281, 1516.9000244141, 0, 0, 270.25);
- CreateDynamicObject(2204, 2600.8999023438, -1196.9000244141, 1516.9000244141, 0, 0, 270.25);
- CreateDynamicObject(2204, 2600.8999023438, -1196.9000244141, 1515.1999511719, 0, 0, 269.75);
- CreateDynamicObject(2204, 2611.6000976563, -1198, 1515.1999511719, 0, 0, 180.25);
- CreateDynamicObject(2204, 2611.599609375, -1198, 1516.9000244141, 0, 0, 180.24169921875);
- CreateDynamicObject(2204, 2612.8999023438, -1198, 1516.9000244141, 0, 0, 179.74450683594);
- CreateDynamicObject(2204, 2612.8999023438, -1198, 1515.1999511719, 0, 0, 179.99450683594);
- CreateDynamicObject(2204, 2617.3999023438, -1198, 1515.1999511719, 0, 0, 179.99450683594);
- CreateDynamicObject(2204, 2617.3999023438, -1198, 1516.9000244141, 0, 0, 180.24169921875);
- CreateDynamicObject(2204, 2616.6000976563, -1202.1999511719, 1515.1999511719, 0, 0, 89.994506835938);
- CreateDynamicObject(2204, 2616.6000976563, -1200.1999511719, 1515.1999511719, 0, 0, 90.244506835938);
- CreateDynamicObject(2204, 2616.6000976563, -1200.1999511719, 1516.9000244141, 0, 0, 90.494506835938);
- CreateDynamicObject(2204, 2616.599609375, -1202.19921875, 1516.9000244141, 0, 0, 90.24169921875);
- CreateDynamicObject(2204, 2605.1999511719, -1197.3000488281, 1515.1999511719, 0, 0, 89.744506835938);
- CreateDynamicObject(2204, 2604.8999023438, -1197.3000488281, 1515.1999511719, 0, 0, 89.994506835938);
- CreateDynamicObject(2204, 2604.8999023438, -1197.3000488281, 1516.9000244141, 0, 0, 89.994506835938);
- CreateDynamicObject(2204, 2605.19921875, -1197.2998046875, 1516.9000244141, 0, 0, 89.994506835938);
- CreateDynamicObject(2204, 2601, -1197.3000488281, 1516.9000244141, 0, 0, 89.994506835938);
- CreateDynamicObject(2204, 2601, -1197.3000488281, 1515.1999511719, 0, 0, 89.741821289063);
- CreateDynamicObject(2204, 2610.5, -1202.3000488281, 1515.3000488281, 0, 0, 359.74450683594);
- CreateDynamicObject(2204, 2613.3999023438, -1202.3000488281, 1515.3000488281, 0, 0, 359.98901367188);
- CreateDynamicObject(2204, 2614.1000976563, -1202.3000488281, 1515.3000488281, 0, 0, 359.98901367188);
- CreateDynamicObject(2204, 2614.1000976563, -1202.3000488281, 1517, 0, 0, 359.73901367188);
- CreateDynamicObject(2204, 2612.1999511719, -1202.3000488281, 1517, 0, 0, 0.239013671875);
- CreateDynamicObject(2204, 2610.5, -1202.3000488281, 1517, 0, 0, 0.239013671875);
- CreateDynamicObject(2204, 2608.3994140625, -1202.2998046875, 1517.6999511719, 0, 0, 359.736328125);
- CreateDynamicObject(2204, 2615, -1198, 1517.5999755859, 0, 0, 180);
- CreateDynamicObject(2204, 2617.3999023438, -1197.6999511719, 1515.1999511719, 0, 0, 180.24169921875);
- CreateDynamicObject(2204, 2617.3999023438, -1197.6999511719, 1516.0999755859, 0, 0, 180.49169921875);
- CreateDynamicObject(2204, 2612.8999023438, -1197.6999511719, 1516.0999755859, 0, 0, 180.48889160156);
- CreateDynamicObject(2204, 2612.8999023438, -1197.6999511719, 1515.1999511719, 0, 0, 180.73889160156);
- CreateDynamicObject(2204, 2613.3000488281, -1197.4000244141, 1520.0999755859, 0, 90, 0);
- CreateDynamicObject(2204, 2608.3000488281, -1202.3000488281, 1520.1999511719, 0, 90, 359.75);
- CreateDynamicObject(2204, 2615, -1198, 1520.0999755859, 0, 90, 179.74731445313);
- CreateDynamicObject(2197, 2615.3994140625, -1193.3994140625, 1515.1999511719, 0, 0, 270);
- CreateDynamicObject(2173, 2611.3000488281, -1193.6999511719, 1515.1999511719, 0, 0, 270);
- CreateDynamicObject(1703, 2612.6999511719, -1208.1999511719, 1515.1999511719, 0, 0, 0);
- CreateDynamicObject(1704, 2608.5, -1209.5999755859, 1515.1999511719, 0, 0, 358.49487304688);
- CreateDynamicObject(1827, 2613.7998046875, -1209.7998046875, 1515.1999511719, 0, 0, 0);
- CreateDynamicObject(2184, 2610.5, -1211.1999511719, 1515.3000488281, 0, 0, 159.49951171875);
- CreateDynamicObject(11631, 2617.7998046875, -1212.099609375, 1516.5, 0, 0, 90);
- CreateDynamicObject(2094, 2601.6000976563, -1205.3000488281, 1516.6999511719, 0, 90, 179.74731445313);
- CreateDynamicObject(2094, 2602.3999023438, -1205.3000488281, 1516.6999511719, 0, 90, 179.74731445313);
- CreateDynamicObject(2094, 2603.1999511719, -1205.3000488281, 1516.6999511719, 0, 90, 179.74731445313);
- CreateDynamicObject(2094, 2604, -1205.2998046875, 1516.6999511719, 0, 90, 179.74731445313);
- CreateDynamicObject(2094, 2604.8000488281, -1205.3000488281, 1516.6999511719, 0, 90, 179.74731445313);
- CreateDynamicObject(2094, 2603.8000488281, -1205.3000488281, 1515.6999511719, 0, 270, 179.99450683594);
- CreateDynamicObject(2094, 2607.8999023438, -1207.3000488281, 1516.6999511719, 0, 90, 90);
- CreateDynamicObject(2094, 2607.8999023438, -1208.0999755859, 1516.6999511719, 0, 90, 90);
- CreateDynamicObject(2094, 2607.8999023438, -1208.9000244141, 1516.6999511719, 0, 90, 90);
- CreateDynamicObject(2094, 2607.8994140625, -1209.69921875, 1516.6999511719, 0, 90, 90);
- CreateDynamicObject(2094, 2607.8994140625, -1210.5, 1516.6999511719, 0, 90, 90);
- CreateDynamicObject(2094, 2607.8999023438, -1211.3000488281, 1516.6999511719, 0, 90, 90);
- CreateDynamicObject(2094, 2607.8999023438, -1212.0999755859, 1516.6999511719, 0, 90, 90);
- CreateDynamicObject(2094, 2607.8999023438, -1212.9000244141, 1516.6999511719, 0, 90, 90);
- CreateDynamicObject(2094, 2607.8999023438, -1213.6999511719, 1516.6999511719, 0, 90, 90);
- CreateDynamicObject(2094, 2607.8999023438, -1207.3000488281, 1518.5999755859, 0, 90, 90);
- CreateDynamicObject(2094, 2607.8999023438, -1208.0999755859, 1518.5999755859, 0, 90, 90);
- CreateDynamicObject(2094, 2607.8999023438, -1208.9000244141, 1518.5999755859, 0, 90, 90);
- CreateDynamicObject(2094, 2607.8999023438, -1209.6999511719, 1518.5999755859, 0, 90, 90);
- CreateDynamicObject(2094, 2607.8999023438, -1210.5, 1518.5999755859, 0, 90, 90);
- CreateDynamicObject(2094, 2607.8994140625, -1211.2998046875, 1518.5999755859, 0, 90, 90);
- CreateDynamicObject(2094, 2607.8999023438, -1212.0999755859, 1518.5999755859, 0, 90, 90);
- CreateDynamicObject(2094, 2607.8999023438, -1212.9000244141, 1518.5999755859, 0, 90, 90);
- CreateDynamicObject(2094, 2607.8999023438, -1213.6999511719, 1518.5999755859, 0, 90, 90);
- CreateDynamicObject(2094, 2605.5, -1214.5, 1518.5999755859, 0, 90, 0);
- CreateDynamicObject(2094, 2604.6999511719, -1214.5, 1518.5999755859, 0, 90, 0);
- CreateDynamicObject(2094, 2603.8999023438, -1214.5, 1518.5999755859, 0, 90, 0);
- CreateDynamicObject(2094, 2603.1000976563, -1214.5, 1518.5999755859, 0, 90, 0);
- CreateDynamicObject(2094, 2602.3000488281, -1214.5, 1518.5999755859, 0, 90, 0);
- CreateDynamicObject(2094, 2601.5, -1214.5, 1518.5999755859, 0, 90, 0);
- CreateDynamicObject(2094, 2600.6999511719, -1214.5, 1518.5999755859, 0, 90, 0);
- CreateDynamicObject(2094, 2600.3999023438, -1214.5, 1518.5999755859, 0, 90, 0);
- CreateDynamicObject(2094, 2600.3999023438, -1214.5, 1516.6999511719, 0, 90, 0);
- CreateDynamicObject(2094, 2601.1999511719, -1214.5, 1516.6999511719, 0, 90, 0);
- CreateDynamicObject(2094, 2602, -1214.5, 1516.6999511719, 0, 90, 0);
- CreateDynamicObject(2094, 2602.8000488281, -1214.5, 1516.6999511719, 0, 90, 0);
- CreateDynamicObject(2094, 2603.6000976563, -1214.5, 1516.6999511719, 0, 90, 0);
- CreateDynamicObject(2094, 2604.3999023438, -1214.5, 1516.6999511719, 0, 90, 0);
- CreateDynamicObject(2094, 2605.1999511719, -1214.5, 1516.6999511719, 0, 90, 0);
- CreateDynamicObject(2094, 2606, -1214.5, 1516.6999511719, 0, 90, 0);
- CreateDynamicObject(2094, 2599.6000976563, -1206.0999755859, 1518.5999755859, 0, 90, 270);
- CreateDynamicObject(2094, 2599.6000976563, -1206.9000244141, 1518.5999755859, 0, 90, 270);
- CreateDynamicObject(2094, 2599.6000976563, -1207.6999511719, 1518.5999755859, 0, 90, 270);
- CreateDynamicObject(2094, 2599.6000976563, -1208.5, 1518.5999755859, 0, 90, 270);
- CreateDynamicObject(2094, 2599.6000976563, -1209.3000488281, 1518.5999755859, 0, 90, 270);
- CreateDynamicObject(2094, 2599.6000976563, -1210.0999755859, 1518.5999755859, 0, 90, 270);
- CreateDynamicObject(2094, 2599.6000976563, -1210.9000244141, 1518.5999755859, 0, 90, 270);
- CreateDynamicObject(2094, 2599.6000976563, -1211.6999511719, 1518.5999755859, 0, 90, 270);
- CreateDynamicObject(2094, 2599.6000976563, -1212.5, 1518.5999755859, 0, 90, 270);
- CreateDynamicObject(2094, 2599.6000976563, -1210.9000244141, 1516.6999511719, 0, 90, 270);
- CreateDynamicObject(2094, 2599.6000976563, -1211.6999511719, 1516.6999511719, 0, 90, 270);
- CreateDynamicObject(2094, 2599.6000976563, -1212.5, 1516.6999511719, 0, 90, 270);
- CreateDynamicObject(2094, 2599.6000976563, -1210.0999755859, 1516.6999511719, 0, 90, 270);
- CreateDynamicObject(2094, 2599.6000976563, -1209.3000488281, 1516.6999511719, 0, 90, 270);
- CreateDynamicObject(2094, 2599.6000976563, -1208.5, 1516.6999511719, 0, 90, 270);
- CreateDynamicObject(2094, 2599.6000976563, -1207.6999511719, 1516.6999511719, 0, 90, 270);
- CreateDynamicObject(2094, 2599.6000976563, -1206.9000244141, 1516.6999511719, 0, 90, 270);
- CreateDynamicObject(2094, 2599.6000976563, -1206.0999755859, 1516.6999511719, 0, 90, 270);
- CreateDynamicObject(2094, 2604, -1205.3000488281, 1518.5999755859, 0, 90, 179.74731445313);
- CreateDynamicObject(2094, 2604.8000488281, -1205.3000488281, 1518.5999755859, 0, 90, 179.74731445313);
- CreateDynamicObject(2094, 2603.1999511719, -1205.3000488281, 1518.5999755859, 0, 90, 179.74731445313);
- CreateDynamicObject(2094, 2602.3999023438, -1205.3000488281, 1518.5999755859, 0, 90, 179.74731445313);
- CreateDynamicObject(2094, 2601.8999023438, -1205.3000488281, 1518.5999755859, 0, 90, 179.74731445313);
- CreateDynamicObject(2094, 2603.8000488281, -1205.3000488281, 1517.5999755859, 0, 270, 179.99450683594);
- CreateDynamicObject(2094, 2605.7998046875, -1205.2998046875, 1519.1999511719, 0, 90, 179.74731445313);
- CreateDynamicObject(2094, 2606.599609375, -1205.2998046875, 1519.1999511719, 0, 90, 179.74731445313);
- CreateDynamicObject(1368, 2602.3994140625, -1207.19921875, 1515.9000244141, 0, 0, 0);
- CreateDynamicObject(2311, 2616.599609375, -1211.2998046875, 1517.1999511719, 0, 90, 0);
- CreateDynamicObject(2222, 2610.1999511719, -1211.3000488281, 1516.1999511719, 0, 0, 0);
- CreateDynamicObject(2953, 2609.8000488281, -1211.9000244141, 1516.0999755859, 0, 0, 299.25);
- CreateDynamicObject(11472, 2607.1999511719, -1213.0999755859, 1521, 270, 270, 270);
- CreateDynamicObject(11472, 2607.1999511719, -1209.1999511719, 1521, 270, 179.92864990234, 180.1787109375);
- CreateDynamicObject(11472, 2607.19921875, -1211.099609375, 1521, 270, 179.92309570313, 179.66491699219);
- CreateDynamicObject(11472, 2607.7998046875, -1206.8994140625, 1521, 270, 179.99450683594, 90);
- CreateDynamicObject(11472, 2615.3000488281, -1206.9000244141, 1521, 270, 179.99450683594, 270);
- CreateDynamicObject(11472, 2612.6000976563, -1206.9000244141, 1521, 270, 179.99450683594, 90);
- CreateDynamicObject(11472, 2615.7998046875, -1207.5, 1521, 270, 179.99450683594, 0);
- CreateDynamicObject(11472, 2615.7998046875, -1210.69921875, 1521, 270, 179.99450683594, 0);
- CreateDynamicObject(11472, 2614.8999023438, -1213.9000244141, 1521, 270, 180, 270.00549316406);
- CreateDynamicObject(11472, 2613, -1213.9000244141, 1521, 270, 179.99450683594, 269.74182128906);
- CreateDynamicObject(11472, 2610, -1213.9000244141, 1521, 270, 179.99450683594, 269.74182128906);
- CreateDynamicObject(11472, 2610.2998046875, -1206.8994140625, 1523.5999755859, 270, 179.99450683594, 89.997192382813);
- CreateDynamicObject(1704, 2610.1000976563, -1209.6999511719, 1515.1999511719, 0, 0, 324.4921875);
- CreateDynamicObject(2382, 2593.1000976563, -1208.9000244141, 1517, 0, 0, 0);
- CreateDynamicObject(2384, 2593.1000976563, -1209.5999755859, 1515.8000488281, 0, 0, 179.99450683594);
- CreateDynamicObject(2384, 2593.1000976563, -1208.5999755859, 1515.8000488281, 0, 0, 179.99450683594);
- CreateDynamicObject(2384, 2593.1000976563, -1209.0999755859, 1515.8000488281, 0, 0, 179.99450683594);
- CreateDynamicObject(2311, 2616.6000976563, -1210.4000244141, 1517.1999511719, 0, 90, 0);
- CreateDynamicObject(2311, 2616.6000976563, -1209.5, 1517.1999511719, 0, 90, 0);
- CreateDynamicObject(2311, 2616.6000976563, -1208.5999755859, 1517.1999511719, 0, 90, 0);
- CreateDynamicObject(2311, 2616.6000976563, -1207.6999511719, 1517.1999511719, 0, 90, 0);
- CreateDynamicObject(2311, 2616.6000976563, -1206.8000488281, 1517.1999511719, 0, 90, 0);
- CreateDynamicObject(5152, 2608.5, -1206.1999511719, 1516.3000488281, 270, 349.99145507813, 146.99157714844);
- CreateDynamicObject(5152, 2608.5, -1206.1999511719, 1518.4000244141, 270, 349.99145507813, 146.99157714844);
- CreateDynamicObject(5152, 2611.1999511719, -1206.1999511719, 1518.6999511719, 270, 349.99145507813, 146.99157714844);
- CreateDynamicObject(5152, 2614.5, -1206.1999511719, 1516.3000488281, 270, 349.99145507813, 144.49157714844);
- CreateDynamicObject(5152, 2614.5, -1206.1999511719, 1518.4000244141, 270, 349.99145507813, 144.48669433594);
- CreateDynamicObject(5152, 2618.7998046875, -1206.2998046875, 1518.4000244141, 270, 349.99145507813, 145.73364257813);
- CreateDynamicObject(2311, 2616.6000976563, -1212.1999511719, 1517.1999511719, 0, 90, 0);
- CreateDynamicObject(2311, 2616.6000976563, -1213.0999755859, 1517.1999511719, 0, 90, 0);
- CreateDynamicObject(2311, 2616.6000976563, -1213.0999755859, 1519.5999755859, 0, 90, 0);
- CreateDynamicObject(2311, 2616.6000976563, -1212.1999511719, 1519.5999755859, 0, 90, 0);
- CreateDynamicObject(2311, 2616.6000976563, -1211.3000488281, 1519.5999755859, 0, 90, 0);
- CreateDynamicObject(2311, 2616.6000976563, -1210.4000244141, 1519.5999755859, 0, 90, 0);
- CreateDynamicObject(2311, 2616.6000976563, -1209.5, 1519.5999755859, 0, 90, 0);
- CreateDynamicObject(2311, 2616.6000976563, -1208.5999755859, 1519.5999755859, 0, 90, 0);
- CreateDynamicObject(2311, 2616.6000976563, -1207.6999511719, 1519.5999755859, 0, 90, 0);
- CreateDynamicObject(2311, 2616.6000976563, -1206.8000488281, 1519.5999755859, 0, 90, 0);
- CreateDynamicObject(2311, 2617.5, -1213.5999755859, 1517.1999511719, 0, 90, 90);
- CreateDynamicObject(2311, 2618.3999023438, -1213.5999755859, 1517.1999511719, 0, 90, 90);
- CreateDynamicObject(2311, 2619.3000488281, -1213.5999755859, 1517.1999511719, 0, 90, 90);
- CreateDynamicObject(2311, 2620.1999511719, -1213.5999755859, 1517.1999511719, 0, 90, 90);
- CreateDynamicObject(2311, 2621.1000976563, -1213.5999755859, 1517.1999511719, 0, 90, 90);
- CreateDynamicObject(2311, 2622, -1213.5999755859, 1517.1999511719, 0, 90, 90);
- CreateDynamicObject(2311, 2622, -1213.5999755859, 1519.5999755859, 0, 90, 90);
- CreateDynamicObject(2311, 2621.1000976563, -1213.5999755859, 1519.5999755859, 0, 90, 90);
- CreateDynamicObject(2311, 2620.1999511719, -1213.5999755859, 1519.5999755859, 0, 90, 90);
- CreateDynamicObject(2311, 2619.3000488281, -1213.5999755859, 1519.5999755859, 0, 90, 90);
- CreateDynamicObject(2311, 2618.3999023438, -1213.5999755859, 1519.5999755859, 0, 90, 90);
- CreateDynamicObject(2311, 2617.5, -1213.5999755859, 1519.5999755859, 0, 90, 90);
- CreateDynamicObject(1502, 2621, -1206.8000488281, 1515.1999511719, 0, 0, 359.97802734375);
- CreateDynamicObject(5152, 2618.7998046875, -1206.2998046875, 1516.3000488281, 270, 349.99145507813, 145.98083496094);
- CreateDynamicObject(2311, 2617.8000488281, -1206.6999511719, 1517.1999511719, 0, 90, 270);
- CreateDynamicObject(2311, 2618.69921875, -1206.69921875, 1517.1999511719, 0, 90, 270);
- CreateDynamicObject(2311, 2619.6000976563, -1206.6999511719, 1517.1999511719, 0, 90, 270);
- CreateDynamicObject(2311, 2620.5, -1206.6999511719, 1517.1999511719, 0, 90, 270);
- CreateDynamicObject(2311, 2620.5, -1206.69921875, 1517.1999511719, 0, 90, 0);
- CreateDynamicObject(2311, 2617, -1206.6999511719, 1517.1999511719, 0, 90, 270);
- CreateDynamicObject(2311, 2618.6999511719, -1206.6999511719, 1519.5, 0, 90, 270);
- CreateDynamicObject(2311, 2617.8000488281, -1206.6999511719, 1519.5, 0, 90, 270);
- CreateDynamicObject(2311, 2616.8999023438, -1206.8000488281, 1519.5, 0, 90, 270);
- CreateDynamicObject(2311, 2619.6000976563, -1206.6999511719, 1519.4000244141, 0, 90, 270);
- CreateDynamicObject(2311, 2620.5, -1206.6999511719, 1519.4000244141, 0, 90, 270);
- CreateDynamicObject(2311, 2620.5, -1206.6999511719, 1519.4000244141, 0, 90, 0);
- CreateDynamicObject(2311, 2623, -1206.69921875, 1517.1999511719, 0, 90, 179.99450683594);
- CreateDynamicObject(2311, 2623, -1207.5999755859, 1517.1999511719, 0, 90, 179.99450683594);
- CreateDynamicObject(2311, 2623, -1208.5, 1517.1999511719, 0, 90, 179.99450683594);
- CreateDynamicObject(2311, 2623, -1209.4000244141, 1517.1999511719, 0, 90, 179.99450683594);
- CreateDynamicObject(2311, 2623, -1210.3000488281, 1517.1999511719, 0, 90, 179.99450683594);
- CreateDynamicObject(2311, 2623, -1211.1999511719, 1517.1999511719, 0, 90, 179.99450683594);
- CreateDynamicObject(2311, 2623, -1212.0999755859, 1517.1999511719, 0, 90, 179.99450683594);
- CreateDynamicObject(2311, 2623, -1213, 1517.1999511719, 0, 90, 179.99450683594);
- CreateDynamicObject(2311, 2622.8999023438, -1213.5999755859, 1517.1999511719, 0, 90, 90);
- CreateDynamicObject(2311, 2622.8999023438, -1213.5999755859, 1519.5999755859, 0, 90, 90);
- CreateDynamicObject(2311, 2623, -1207.5999755859, 1519.5999755859, 0, 90, 179.99450683594);
- CreateDynamicObject(2311, 2623, -1206.6999511719, 1519.5999755859, 0, 90, 179.99450683594);
- CreateDynamicObject(2311, 2623, -1208.5, 1519.5999755859, 0, 90, 179.99450683594);
- CreateDynamicObject(2311, 2623, -1209.4000244141, 1519.5999755859, 0, 90, 179.99450683594);
- CreateDynamicObject(2311, 2623, -1210.3000488281, 1519.5999755859, 0, 90, 179.99450683594);
- CreateDynamicObject(2311, 2623, -1211.1999511719, 1519.5999755859, 0, 90, 179.99450683594);
- CreateDynamicObject(2311, 2623, -1212.0999755859, 1519.5999755859, 0, 90, 179.99450683594);
- CreateDynamicObject(2311, 2623, -1213, 1519.5999755859, 0, 90, 179.99450683594);
- CreateDynamicObject(3391, 2617.8000488281, -1208.9000244141, 1515.3000488281, 0, 0, 180);
- CreateDynamicObject(5152, 2623.099609375, -1204.5, 1518.4000244141, 270, 181.02722167969, 66.264038085938);
- CreateDynamicObject(5152, 2624.8000488281, -1206.3000488281, 1518.4000244141, 270, 349.99145507813, 146.22827148438);
- CreateDynamicObject(5152, 2624.8000488281, -1206.3000488281, 1516.3000488281, 270, 349.99145507813, 145.98083496094);
- CreateDynamicObject(5152, 2622, -1206.19921875, 1518.8000488281, 270, 349.99145507813, 149.47998046875);
- CreateDynamicObject(2311, 2621.3000488281, -1206.6999511719, 1519.6999511719, 0, 90, 270);
- CreateDynamicObject(2311, 2622.1000976563, -1206.6999511719, 1519.6999511719, 0, 90, 270);
- CreateDynamicObject(2311, 2622.8999023438, -1206.5999755859, 1518.1999511719, 0, 180, 0);
- CreateDynamicObject(5152, 2623.1000976563, -1204.5, 1516.3000488281, 270, 181.02722167969, 66.264038085938);
- CreateDynamicObject(2949, 2618.5, -1202.8994140625, 1515.3000488281, 0, 0, 90);
- CreateDynamicObject(5152, 2622.1000976563, -1202.8000488281, 1516.4000244141, 270, 349.99145507813, 326.73400878906);
- CreateDynamicObject(5152, 2622.1000976563, -1202.8000488281, 1518.5, 270, 349.99145507813, 326.7333984375);
- CreateDynamicObject(5152, 2619.6000976563, -1202.8000488281, 1518.8000488281, 270, 349.99145507813, 326.5);
- CreateDynamicObject(2196, 2593.8994140625, -1195.3994140625, 1516, 0, 0, 19.978637695313);
- CreateDynamicObject(2955, 2623, -1203.9000244141, 1516.4000244141, 0, 0, 0);
- CreateDynamicObject(5152, 2622.6000976563, -1200.5999755859, 1516.4000244141, 270, 349.99145507813, 56.7333984375);
- CreateDynamicObject(5152, 2622.6000976563, -1196.3000488281, 1516.4000244141, 270, 349.99145507813, 56.2333984375);
- CreateDynamicObject(5152, 2622.6000976563, -1200.5999755859, 1518.5, 270, 349.99145507813, 56.7333984375);
- CreateDynamicObject(5152, 2622.6000976563, -1196.3000488281, 1518.5, 270, 349.99145507813, 56.7333984375);
- CreateDynamicObject(5152, 2622.6000976563, -1192, 1518.5, 270, 349.99145507813, 56.2333984375);
- CreateDynamicObject(5152, 2622.6000976563, -1192, 1516.4000244141, 270, 180.61651611328, 246.85275268555);
- CreateDynamicObject(5152, 2619, -1192.1999511719, 1516.3000488281, 271.00012207031, 269.99987792969, 67.986480712891);
- CreateDynamicObject(5152, 2619.1000976563, -1192.1999511719, 1518.4000244141, 270.99975585938, 269.99450683594, 67.9833984375);
- CreateDynamicObject(5152, 2621.6999511719, -1192.1999511719, 1518.4000244141, 270.99975585938, 269.99450683594, 66.2333984375);
- CreateDynamicObject(5152, 2621.6999511719, -1192.1999511719, 1516.3000488281, 270.99426269531, 269.98901367188, 66.231079101563);
- CreateDynamicObject(5152, 2616.8000488281, -1195.4000244141, 1516.3000488281, 270, 349.99145507813, 236.7333984375);
- CreateDynamicObject(5152, 2616.8000488281, -1195.4000244141, 1518.4000244141, 270, 349.99145507813, 236.72790527344);
- CreateDynamicObject(5152, 2616.8000488281, -1191, 1518.4000244141, 270, 349.99145507813, 236.22790527344);
- CreateDynamicObject(5152, 2616.8000488281, -1191, 1516.3000488281, 270, 349.99145507813, 236.22790527344);
- CreateDynamicObject(2197, 2619.3999023438, -1197.6999511719, 1515.1999511719, 0, 0, 90);
- CreateDynamicObject(2197, 2619.3999023438, -1197.6999511719, 1516.9000244141, 0, 0, 90);
- CreateDynamicObject(5152, 2594.8999023438, -1204.6999511719, 1518.4000244141, 270, 349.99145507813, 326.98608398438);
- CreateDynamicObject(3095, 2605.099609375, -1192.3994140625, 1519.5999755859, 0, 270, 270);
- CreateDynamicObject(10558, 2612.6999511719, -1192.3000488281, 1517.0999755859, 0, 0, 270);
- CreateDynamicObject(1806, 2618.6000976563, -1211.9000244141, 1515.1999511719, 0, 0, 47.241821289063);
- CreateDynamicObject(2639, 2601.5, -1211.6999511719, 1515.6999511719, 0, 0, 270);
- CreateDynamicObject(2639, 2603, -1211.6999511719, 1515.6999511719, 0, 0, 270);
- CreateDynamicObject(2310, 2593.3999023438, -1193.4000244141, 1515.6999511719, 0, 0, 177.99792480469);
- CreateDynamicObject(1721, 2612.8999023438, -1196.4000244141, 1515.3000488281, 0, 0, 90);
- CreateDynamicObject(1721, 2612.8999023438, -1195.5, 1515.3000488281, 0, 0, 90);
- CreateDynamicObject(1721, 2612.8999023438, -1194.5999755859, 1515.3000488281, 0, 0, 90);
- CreateDynamicObject(1715, 2610.5, -1194.1999511719, 1515.1999511719, 0, 0, 90);
- CreateDynamicObject(1368, 2616.1000976563, -1200.1999511719, 1515.9000244141, 0, 0, 270);
- CreateDynamicObject(2955, 2598.6000976563, -1192.3000488281, 1516.4000244141, 0, 0, 90);
- }
- stock LoadPoliceDepartment2() //by Naylor
- {
- CreateDynamicObject(19454, 220.88, 75.03, 1042.15, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 224.24, 75.03, 1042.19, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 227.23, 75.03, 1042.23, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 230.52, 75.03, 1042.27, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 233.66, 75.03, 1042.31, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 236.84, 75.03, 1042.35, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 228.22, 66.60, 1042.17, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 228.23, 57.98, 1042.09, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 228.23, 52.69, 1042.03, 0.54, -90.72, 0.00);
- CreateDynamicObject(19465, 228.27, 70.13, 1044.56, 0.00, 0.00, -90.12);
- CreateDynamicObject(19465, 222.40, 70.17, 1044.56, 0.00, 0.00, -90.48);
- CreateDynamicObject(19464, 219.43, 72.94, 1044.56, 0.00, 0.00, 0.00);
- CreateDynamicObject(19464, 219.44, 77.96, 1044.55, 0.00, 0.00, 0.00);
- CreateDynamicObject(19464, 222.07, 79.81, 1044.56, 0.00, 0.00, -89.58);
- CreateDynamicObject(19464, 227.22, 79.85, 1044.55, 0.00, 0.00, -90.18);
- CreateDynamicObject(19465, 230.87, 79.87, 1044.61, 0.00, 0.00, -89.76);
- CreateDynamicObject(19464, 236.56, 79.88, 1044.60, 0.00, 0.00, -90.12);
- CreateDynamicObject(19464, 235.99, 78.44, 1044.59, 0.00, 0.00, 0.06);
- CreateDynamicObject(19464, 236.01, 73.17, 1044.57, 0.00, 0.00, 0.00);
- CreateDynamicObject(19464, 233.58, 70.10, 1044.55, 0.00, 0.00, -90.60);
- CreateDynamicObject(19464, 225.17, 73.18, 1040.81, 0.00, 0.00, 0.00);
- CreateDynamicObject(19464, 225.18, 78.96, 1040.80, 0.00, 0.00, 0.00);
- CreateDynamicObject(2604, 224.75, 72.12, 1042.78, 0.00, 0.00, -89.82);
- CreateDynamicObject(2604, 224.76, 75.80, 1042.76, 0.00, 0.00, -89.82);
- CreateDynamicObject(2604, 224.76, 79.48, 1042.72, 0.00, 0.00, -89.82);
- CreateDynamicObject(2608, 219.79, 78.67, 1042.93, 0.00, 0.00, 89.52);
- CreateDynamicObject(2610, 219.67, 77.49, 1043.08, 0.00, 0.00, -272.40);
- CreateDynamicObject(2610, 219.64, 76.99, 1042.65, 0.00, 0.00, -272.40);
- CreateDynamicObject(2610, 219.62, 76.51, 1043.07, 0.00, 0.00, -272.40);
- CreateDynamicObject(2610, 219.60, 76.04, 1043.08, 0.00, 0.00, -272.40);
- CreateDynamicObject(2608, 219.66, 74.84, 1042.81, 0.00, 0.00, 90.12);
- CreateDynamicObject(2610, 219.58, 73.63, 1043.00, 0.00, 0.00, -269.82);
- CreateDynamicObject(2610, 219.58, 73.12, 1042.61, 0.00, 0.00, -268.32);
- CreateDynamicObject(2737, 219.61, 71.95, 1043.46, 0.00, 0.00, 89.88);
- CreateDynamicObject(2356, 223.23, 78.07, 1042.28, 0.00, 0.00, -75.00);
- CreateDynamicObject(2356, 223.41, 76.34, 1042.23, 0.00, 0.00, -81.06);
- CreateDynamicObject(2356, 223.30, 74.73, 1042.23, 0.00, 0.00, -107.46);
- CreateDynamicObject(2356, 223.25, 72.74, 1042.20, 0.00, 0.00, -89.40);
- CreateDynamicObject(2356, 223.49, 70.57, 1042.20, 0.00, 0.00, -46.80);
- CreateDynamicObject(2614, 219.62, 75.08, 1044.25, 0.00, 0.00, 90.42);
- CreateDynamicObject(1721, 233.07, 79.66, 1042.40, 0.00, 0.00, 180.12);
- CreateDynamicObject(1721, 233.87, 79.66, 1042.39, 0.00, 0.00, 181.50);
- CreateDynamicObject(1721, 234.61, 79.64, 1042.41, 0.00, 0.00, 181.62);
- CreateDynamicObject(1721, 235.66, 78.44, 1042.43, 0.00, 0.00, 89.22);
- CreateDynamicObject(1721, 235.65, 77.63, 1042.44, 0.00, 0.00, 89.22);
- CreateDynamicObject(1721, 235.69, 76.87, 1042.43, 0.00, 0.00, 89.94);
- CreateDynamicObject(1721, 235.71, 76.12, 1042.42, 0.00, 0.00, 89.34);
- CreateDynamicObject(1721, 235.71, 71.59, 1042.40, 0.00, 0.00, 89.34);
- CreateDynamicObject(1721, 235.72, 72.35, 1042.39, 0.00, 0.00, 89.34);
- CreateDynamicObject(1721, 235.74, 73.13, 1042.39, 0.00, 0.00, 89.34);
- CreateDynamicObject(1721, 235.76, 73.90, 1042.38, 0.00, 0.00, 89.34);
- CreateDynamicObject(1721, 234.43, 70.46, 1042.35, 0.00, 0.00, 0.00);
- CreateDynamicObject(1721, 233.64, 70.48, 1042.34, 0.00, 0.00, 0.00);
- CreateDynamicObject(1721, 232.86, 70.47, 1042.33, 0.00, 0.00, 0.00);
- CreateDynamicObject(1721, 232.04, 70.46, 1042.33, 0.00, 0.00, 0.00);
- CreateDynamicObject(1516, 233.19, 72.75, 1042.28, 0.00, 0.00, 0.00);
- CreateDynamicObject(1516, 233.87, 77.42, 1042.30, 0.00, 0.00, 0.00);
- CreateDynamicObject(948, 235.62, 74.98, 1042.37, 0.00, 0.00, 0.00);
- CreateDynamicObject(948, 235.46, 70.64, 1042.35, 0.00, 0.00, -40.26);
- CreateDynamicObject(948, 235.49, 79.36, 1042.35, 0.00, 0.00, -81.12);
- CreateDynamicObject(948, 231.15, 70.60, 1042.23, 0.00, 0.00, 0.00);
- CreateDynamicObject(2001, 232.20, 79.36, 1042.36, 0.00, 0.00, 0.00);
- CreateDynamicObject(2001, 229.79, 79.39, 1042.35, 0.00, 0.00, 0.00);
- CreateDynamicObject(1538, 230.16, 79.85, 1042.20, 0.00, 0.00, 1.56);
- CreateDynamicObject(19454, 225.19, 65.41, 1042.11, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 222.83, 65.40, 1042.07, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 220.83, 65.40, 1042.04, 0.54, -90.72, 0.00);
- CreateDynamicObject(19464, 219.40, 67.04, 1044.57, 0.00, 0.00, 0.00);
- CreateDynamicObject(19464, 219.38, 63.40, 1044.56, 0.00, 0.00, 0.00);
- CreateDynamicObject(19464, 226.37, 67.12, 1044.55, 0.00, 0.00, 0.00);
- CreateDynamicObject(19465, 226.38, 63.34, 1044.55, 0.00, 0.00, 0.00);
- CreateDynamicObject(19464, 223.49, 60.71, 1044.53, 0.00, 0.00, -89.70);
- CreateDynamicObject(19464, 218.26, 60.70, 1044.53, 0.00, 0.00, -89.88);
- CreateDynamicObject(19454, 231.64, 65.39, 1042.20, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 235.08, 65.38, 1042.25, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 231.61, 55.99, 1042.11, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 235.08, 56.03, 1042.15, 0.54, -90.72, 0.00);
- CreateDynamicObject(19464, 229.84, 63.37, 1044.55, 0.00, 0.00, 0.06);
- CreateDynamicObject(19465, 229.84, 67.13, 1044.55, 0.00, 0.00, 0.00);
- CreateDynamicObject(19464, 236.70, 67.38, 1044.55, 0.00, 0.00, 0.00);
- CreateDynamicObject(19464, 236.71, 63.47, 1044.52, 0.00, 0.00, 0.00);
- CreateDynamicObject(19464, 232.69, 60.34, 1044.54, 0.00, 0.00, -89.28);
- CreateDynamicObject(19464, 237.66, 60.40, 1044.53, 0.00, 0.00, -89.28);
- CreateDynamicObject(19454, 237.85, 56.05, 1042.15, 0.54, -90.72, 0.00);
- CreateDynamicObject(19390, 234.46, 51.10, 1043.84, 0.00, 0.00, -89.28);
- CreateDynamicObject(19453, 229.82, 55.78, 1043.84, 0.00, 0.00, 0.00);
- CreateDynamicObject(19361, 231.34, 51.06, 1043.84, 0.00, 0.00, -89.58);
- CreateDynamicObject(19454, 231.72, 46.43, 1042.02, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 235.19, 46.43, 1042.06, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 238.61, 46.44, 1042.10, 0.54, -90.72, 0.00);
- CreateDynamicObject(19361, 237.63, 51.15, 1043.84, 0.00, 0.00, -88.62);
- CreateDynamicObject(19361, 239.15, 52.72, 1043.83, 0.00, 0.00, 0.00);
- CreateDynamicObject(19361, 239.17, 55.72, 1043.84, 0.00, 0.00, 0.00);
- CreateDynamicObject(19361, 239.16, 58.83, 1043.85, 0.00, 0.00, 0.00);
- CreateDynamicObject(19361, 237.86, 60.19, 1043.85, 0.00, 0.00, -89.40);
- CreateDynamicObject(19361, 231.48, 60.10, 1043.85, 0.00, 0.00, -89.40);
- CreateDynamicObject(19361, 234.69, 60.15, 1043.85, 0.00, 0.00, -89.40);
- CreateDynamicObject(1491, 229.66, 60.16, 1042.16, 0.00, 0.00, -180.84);
- CreateDynamicObject(1491, 226.65, 60.17, 1042.16, 0.00, 0.00, -0.36);
- CreateDynamicObject(19464, 232.59, 60.27, 1044.54, 0.00, 0.00, -89.28);
- CreateDynamicObject(19464, 223.71, 60.30, 1044.56, 0.00, 0.00, -90.30);
- CreateDynamicObject(19434, 230.45, 60.11, 1043.84, 0.00, 0.00, 88.32);
- CreateDynamicObject(19434, 225.85, 60.16, 1043.81, 0.00, 0.00, 90.00);
- CreateDynamicObject(19464, 227.38, 60.30, 1047.16, 0.00, 0.00, -90.36);
- CreateDynamicObject(19361, 228.24, 60.14, 1046.39, 0.00, 0.00, -90.54);
- CreateDynamicObject(19454, 224.79, 57.59, 1042.04, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 221.39, 57.60, 1041.99, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 218.61, 57.59, 1041.96, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 224.84, 48.86, 1041.95, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 221.35, 48.86, 1041.90, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 218.62, 48.85, 1041.85, 0.54, -90.72, 0.00);
- CreateDynamicObject(19390, 225.14, 55.63, 1043.73, 0.00, 0.00, 0.00);
- CreateDynamicObject(19361, 225.13, 58.76, 1043.74, 0.00, 0.00, 0.00);
- CreateDynamicObject(19361, 225.14, 52.61, 1043.74, 0.00, 0.00, 0.00);
- CreateDynamicObject(19453, 220.40, 51.08, 1043.63, 0.00, 0.00, -89.88);
- CreateDynamicObject(19453, 217.01, 55.96, 1043.74, 0.00, 0.00, 0.00);
- CreateDynamicObject(19453, 220.46, 60.12, 1043.73, 0.00, 0.00, -89.16);
- CreateDynamicObject(1502, 226.34, 64.12, 1042.11, 0.00, 0.00, -91.20);
- CreateDynamicObject(1502, 229.81, 67.90, 1042.11, 0.00, 0.00, -90.60);
- CreateDynamicObject(2172, 222.98, 61.28, 1042.10, 0.00, 0.00, 179.94);
- CreateDynamicObject(2193, 221.03, 61.28, 1042.09, 0.00, 0.00, 90.54);
- CreateDynamicObject(2198, 219.97, 65.08, 1041.98, 0.00, 0.00, 0.00);
- CreateDynamicObject(2198, 220.99, 66.13, 1041.99, 0.00, 0.00, -179.46);
- CreateDynamicObject(2198, 225.72, 67.43, 1042.08, 0.00, 0.00, -89.16);
- CreateDynamicObject(2198, 225.69, 69.45, 1042.07, 0.00, 0.00, -89.70);
- CreateDynamicObject(2186, 224.94, 61.34, 1042.05, 0.00, 0.00, -179.04);
- CreateDynamicObject(2610, 219.80, 69.71, 1042.94, 0.00, 0.00, 0.00);
- CreateDynamicObject(2610, 220.34, 69.73, 1042.95, 0.00, 0.00, 0.00);
- CreateDynamicObject(2610, 220.88, 69.74, 1042.96, 0.00, 0.00, 1.56);
- CreateDynamicObject(2356, 224.93, 68.31, 1042.19, 0.00, 0.00, -50.52);
- CreateDynamicObject(2356, 225.17, 66.58, 1042.13, 0.00, 0.00, -83.04);
- CreateDynamicObject(2356, 220.33, 66.67, 1042.12, 0.00, 0.00, -177.78);
- CreateDynamicObject(2356, 220.74, 64.38, 1042.08, 0.00, 0.00, 0.00);
- CreateDynamicObject(2356, 220.58, 61.87, 1042.10, 0.00, 0.00, 0.00);
- CreateDynamicObject(2356, 221.80, 61.93, 1042.10, 0.00, 0.00, -112.02);
- CreateDynamicObject(2606, 219.56, 65.52, 1043.96, 0.00, 0.00, 90.78);
- CreateDynamicObject(2185, 234.02, 69.77, 1042.32, 0.00, 0.00, -88.08);
- CreateDynamicObject(2185, 234.17, 62.33, 1042.27, 0.00, 0.00, -90.30);
- CreateDynamicObject(2185, 234.04, 66.11, 1042.29, 0.00, 0.00, -90.36);
- CreateDynamicObject(2356, 235.66, 61.68, 1042.27, 0.00, 0.00, 89.46);
- CreateDynamicObject(2356, 235.52, 65.55, 1042.25, 0.00, 0.00, 113.46);
- CreateDynamicObject(2356, 235.40, 69.55, 1042.35, 0.00, 0.00, 147.24);
- CreateDynamicObject(1721, 232.68, 69.27, 1042.31, 0.00, 0.00, -109.80);
- CreateDynamicObject(1721, 232.59, 65.36, 1042.29, 0.00, 0.00, -79.56);
- CreateDynamicObject(1721, 232.57, 61.70, 1042.26, 0.00, 0.00, -92.88);
- CreateDynamicObject(1721, 230.12, 63.18, 1042.24, 0.00, 0.00, -89.88);
- CreateDynamicObject(1721, 230.13, 64.04, 1042.24, 0.00, 0.00, -91.44);
- CreateDynamicObject(1721, 230.23, 62.39, 1042.28, 0.00, 0.00, -76.14);
- CreateDynamicObject(2185, 217.38, 51.80, 1042.03, 0.00, 0.00, 0.00);
- CreateDynamicObject(2185, 217.25, 55.33, 1042.02, 0.00, 0.00, 0.00);
- CreateDynamicObject(2185, 217.25, 58.37, 1042.05, 0.00, 0.00, 0.00);
- CreateDynamicObject(2185, 220.97, 51.63, 1042.03, 0.00, 0.00, 0.00);
- CreateDynamicObject(2185, 220.97, 55.30, 1042.06, 0.00, 0.00, 0.00);
- CreateDynamicObject(2185, 221.02, 58.34, 1042.12, 0.00, 0.00, 0.00);
- CreateDynamicObject(2356, 221.60, 59.75, 1042.05, 0.00, 0.00, -154.08);
- CreateDynamicObject(2356, 221.62, 56.00, 1042.02, 0.00, 0.00, -151.50);
- CreateDynamicObject(2356, 221.13, 52.94, 1042.02, 0.00, 0.00, -141.24);
- CreateDynamicObject(2356, 217.84, 53.01, 1041.99, 0.00, 0.00, -152.22);
- CreateDynamicObject(2356, 218.02, 56.89, 1041.97, 0.00, 0.00, -175.62);
- CreateDynamicObject(2356, 218.05, 59.05, 1041.98, 0.00, 0.00, -170.70);
- CreateDynamicObject(2610, 223.43, 51.56, 1042.82, 0.00, 0.00, -171.00);
- CreateDynamicObject(2610, 224.06, 51.52, 1042.85, 0.00, 0.00, -179.88);
- CreateDynamicObject(2610, 224.72, 51.58, 1042.82, 0.00, 0.00, -175.26);
- CreateDynamicObject(2186, 224.65, 59.33, 1041.97, 0.00, 0.00, -89.76);
- CreateDynamicObject(2169, 235.14, 57.99, 1042.25, 0.00, 0.00, -179.04);
- CreateDynamicObject(2894, 234.72, 57.98, 1043.03, 0.00, 0.00, -179.46);
- CreateDynamicObject(2616, 234.93, 60.01, 1043.92, 0.00, 0.00, 1.50);
- CreateDynamicObject(14532, 231.95, 59.54, 1043.18, 0.00, 0.00, -152.64);
- CreateDynamicObject(1721, 231.16, 54.79, 1042.19, 0.00, 0.00, 1.80);
- CreateDynamicObject(1721, 232.00, 54.78, 1042.18, 0.00, 0.00, -7.86);
- CreateDynamicObject(1721, 232.81, 54.71, 1042.20, 0.00, 0.00, 0.78);
- CreateDynamicObject(1721, 233.69, 54.69, 1042.21, 0.00, 0.00, -10.44);
- CreateDynamicObject(1721, 235.45, 54.68, 1042.20, 0.00, 0.00, 0.00);
- CreateDynamicObject(1721, 236.21, 54.68, 1042.22, 0.00, 0.00, -3.30);
- CreateDynamicObject(1721, 236.99, 54.70, 1042.23, 0.00, 0.00, 1.08);
- CreateDynamicObject(1721, 237.80, 54.73, 1042.26, 0.00, 0.00, 12.06);
- CreateDynamicObject(1721, 237.98, 53.06, 1042.23, 0.00, 0.00, 0.00);
- CreateDynamicObject(1721, 237.15, 53.01, 1042.22, 0.00, 0.00, -5.88);
- CreateDynamicObject(1721, 236.28, 52.98, 1042.19, 0.00, 0.00, 2.34);
- CreateDynamicObject(1721, 235.33, 53.04, 1042.20, 0.00, 0.00, -11.40);
- CreateDynamicObject(1721, 233.41, 52.96, 1042.16, 0.00, 0.00, 0.00);
- CreateDynamicObject(1721, 232.56, 53.00, 1042.17, 0.00, 0.00, 5.10);
- CreateDynamicObject(1721, 231.80, 52.97, 1042.16, 0.00, 0.00, -4.38);
- CreateDynamicObject(1721, 230.93, 52.93, 1042.15, 0.00, 0.00, 3.24);
- CreateDynamicObject(1502, 233.71, 51.08, 1042.08, 0.00, 0.00, 0.42);
- CreateDynamicObject(1502, 225.14, 54.88, 1041.98, 0.00, 0.00, 89.76);
- CreateDynamicObject(18755, 227.28, 45.84, 1043.93, 0.00, 0.00, -89.58);
- CreateDynamicObject(18756, 227.19, 45.88, 1043.91, 0.00, 0.00, -89.70);
- CreateDynamicObject(18757, 227.18, 45.87, 1043.95, 0.00, 0.00, -89.58);
- CreateDynamicObject(19361, 230.84, 47.85, 1043.75, 0.00, 0.00, 90.36);
- CreateDynamicObject(19390, 233.93, 47.86, 1043.75, 0.00, 0.00, 90.42);
- CreateDynamicObject(19453, 240.28, 47.87, 1043.76, 0.00, 0.00, -90.06);
- CreateDynamicObject(19453, 230.10, 43.09, 1043.71, 0.00, 0.00, 0.00);
- CreateDynamicObject(19454, 231.70, 37.70, 1041.93, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 235.11, 37.68, 1041.97, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 238.61, 37.67, 1042.01, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 241.95, 46.54, 1042.14, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 241.94, 37.65, 1042.07, 0.54, -90.72, 0.00);
- CreateDynamicObject(19390, 243.41, 46.21, 1043.76, 0.00, 0.00, 0.00);
- CreateDynamicObject(19453, 243.43, 39.87, 1043.75, 0.00, 0.00, 0.00);
- CreateDynamicObject(19453, 230.13, 34.91, 1043.72, 0.00, 0.00, 0.00);
- CreateDynamicObject(19453, 231.89, 32.93, 1043.70, 0.00, 0.00, -89.76);
- CreateDynamicObject(19453, 243.42, 33.76, 1043.76, 0.00, 0.00, 0.00);
- CreateDynamicObject(19453, 241.37, 33.13, 1043.73, 0.00, 0.00, -89.64);
- CreateDynamicObject(19390, 241.84, 38.68, 1043.75, 0.00, 0.00, -89.58);
- CreateDynamicObject(19390, 231.79, 38.61, 1043.73, 0.00, 0.00, -89.94);
- CreateDynamicObject(19453, 236.63, 37.86, 1043.71, 0.00, 0.00, 0.00);
- CreateDynamicObject(19361, 236.64, 43.82, 1043.70, 0.00, 0.00, 0.00);
- CreateDynamicObject(19361, 238.85, 38.66, 1043.75, 0.00, 0.00, -89.46);
- CreateDynamicObject(19361, 234.93, 38.63, 1043.73, 0.00, 0.00, -89.46);
- CreateDynamicObject(19434, 237.39, 38.65, 1043.75, 0.00, 0.00, -89.52);
- CreateDynamicObject(14782, 236.23, 42.04, 1043.14, 0.00, 0.00, -89.34);
- CreateDynamicObject(14782, 237.08, 41.96, 1043.11, 0.00, 0.00, 88.86);
- CreateDynamicObject(14782, 242.92, 42.14, 1043.21, 0.00, 0.00, -90.54);
- CreateDynamicObject(14782, 230.53, 41.98, 1043.07, 0.00, 0.00, 88.44);
- CreateDynamicObject(14842, 235.67, 34.60, 1043.88, 0.00, 0.00, 180.24);
- CreateDynamicObject(14842, 237.66, 37.00, 1043.86, 0.00, 0.00, 0.00);
- CreateDynamicObject(2523, 242.83, 34.20, 1042.10, 0.00, 0.00, -90.96);
- CreateDynamicObject(2523, 242.85, 35.82, 1042.11, 0.00, 0.00, -90.54);
- CreateDynamicObject(2523, 242.82, 36.53, 1042.11, 0.00, 0.00, -89.64);
- CreateDynamicObject(2523, 242.82, 34.98, 1042.10, 0.00, 0.00, -90.60);
- CreateDynamicObject(2523, 230.73, 35.76, 1041.93, 0.00, 0.00, 87.24);
- CreateDynamicObject(2523, 230.70, 34.04, 1041.92, 0.00, 0.00, 87.84);
- CreateDynamicObject(2523, 230.75, 34.93, 1041.94, 0.00, 0.00, 89.04);
- CreateDynamicObject(2523, 230.73, 33.18, 1041.94, 0.00, 0.00, 90.06);
- CreateDynamicObject(2208, 233.84, 43.42, 1041.84, 0.00, 0.00, -90.42);
- CreateDynamicObject(2208, 239.15, 43.64, 1041.86, 0.00, 0.00, -89.58);
- CreateDynamicObject(1502, 233.14, 47.81, 1042.04, 0.00, 0.00, 0.30);
- CreateDynamicObject(1502, 243.39, 47.00, 1042.07, 0.00, 0.00, -90.48);
- CreateDynamicObject(19454, 240.84, 55.96, 1042.18, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 244.23, 55.97, 1042.22, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 245.30, 46.43, 1042.19, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 248.73, 46.42, 1042.22, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 247.68, 56.05, 1042.28, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 250.73, 56.03, 1042.35, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 250.79, 46.45, 1042.26, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 254.04, 56.05, 1042.38, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 254.04, 46.45, 1042.29, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 257.48, 46.46, 1042.33, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 257.47, 56.06, 1042.42, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 260.66, 46.46, 1042.33, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 260.65, 56.05, 1042.43, 0.54, -90.72, 0.00);
- CreateDynamicObject(19390, 246.70, 47.89, 1043.76, 0.00, 0.00, -89.52);
- CreateDynamicObject(19361, 249.89, 47.91, 1043.76, 0.00, 0.00, -89.28);
- CreateDynamicObject(19361, 251.46, 46.40, 1043.76, 0.00, 0.00, 1.80);
- CreateDynamicObject(19361, 251.55, 43.31, 1043.76, 0.00, 0.00, 1.62);
- CreateDynamicObject(19453, 248.22, 41.78, 1043.74, 0.00, 0.00, -90.42);
- CreateDynamicObject(1502, 245.96, 47.85, 1042.00, 0.00, 0.00, 0.42);
- CreateDynamicObject(19453, 225.23, 47.78, 1043.62, 0.00, 0.00, -89.58);
- CreateDynamicObject(18070, 247.53, 40.10, 1042.68, 0.00, 0.00, -180.06);
- CreateDynamicObject(1968, 250.22, 44.14, 1042.85, 0.00, 0.00, 1.80);
- CreateDynamicObject(1968, 250.14, 46.51, 1042.84, 0.00, 0.00, 1.98);
- CreateDynamicObject(1969, 244.83, 44.23, 1042.78, 0.00, 0.00, 0.00);
- CreateDynamicObject(1969, 247.29, 45.31, 1042.79, 0.00, 0.00, -88.74);
- CreateDynamicObject(2453, 249.64, 42.15, 1043.53, 0.00, 0.00, 0.00);
- CreateDynamicObject(2355, 248.94, 41.93, 1043.24, -25.80, 23.10, 0.00);
- CreateDynamicObject(1775, 244.74, 47.32, 1043.32, 0.00, 0.00, 0.00);
- CreateDynamicObject(19390, 240.69, 51.21, 1043.84, 0.00, 0.00, -88.86);
- CreateDynamicObject(19434, 243.07, 51.26, 1043.84, 0.00, 0.00, -88.86);
- CreateDynamicObject(19407, 243.76, 52.81, 1043.83, 0.00, 0.00, -0.12);
- CreateDynamicObject(19407, 243.76, 56.00, 1043.83, 0.00, 0.00, 0.00);
- CreateDynamicObject(19361, 243.76, 59.16, 1043.82, 0.00, 0.00, 0.00);
- CreateDynamicObject(19453, 243.91, 57.65, 1043.84, 0.00, 0.00, -89.10);
- CreateDynamicObject(19390, 245.46, 51.31, 1043.84, 0.00, 0.00, -88.86);
- CreateDynamicObject(19453, 246.95, 56.08, 1043.85, 0.00, 0.00, 0.72);
- CreateDynamicObject(2169, 240.83, 54.80, 1042.17, 0.00, 0.00, 0.72);
- CreateDynamicObject(1721, 241.39, 53.40, 1042.25, 0.00, 0.00, 0.00);
- CreateDynamicObject(1721, 241.32, 56.57, 1042.27, 0.00, 0.00, -177.78);
- CreateDynamicObject(1651, 243.73, 52.86, 1043.63, 0.00, 0.00, -179.46);
- CreateDynamicObject(19466, 243.75, 52.90, 1043.86, 0.00, 0.00, 0.00);
- CreateDynamicObject(19466, 243.82, 55.96, 1043.83, 0.00, 0.00, 0.00);
- CreateDynamicObject(1651, 243.76, 56.02, 1044.13, 0.00, 0.00, -180.36);
- CreateDynamicObject(2198, 244.31, 55.49, 1042.21, 0.00, 0.00, 90.00);
- CreateDynamicObject(2356, 245.59, 56.30, 1042.30, 0.00, 0.00, 103.86);
- CreateDynamicObject(2737, 245.62, 57.51, 1044.04, 0.00, 0.00, 0.00);
- CreateDynamicObject(2606, 246.60, 55.33, 1044.65, 0.00, 0.00, -89.64);
- CreateDynamicObject(1721, 244.34, 54.74, 1042.30, 0.00, 0.00, 194.52);
- CreateDynamicObject(1721, 246.58, 53.96, 1042.32, 0.00, 0.00, 96.72);
- CreateDynamicObject(2608, 246.66, 52.43, 1042.93, 0.00, 0.00, -89.88);
- CreateDynamicObject(1491, 244.71, 51.28, 1042.13, 0.00, 0.00, 1.38);
- CreateDynamicObject(1491, 239.95, 51.18, 1042.12, 0.00, 0.00, 0.90);
- CreateDynamicObject(19365, 248.57, 51.37, 1043.91, 0.00, 0.00, -88.86);
- CreateDynamicObject(19365, 250.25, 52.93, 1043.91, 0.00, 0.00, 0.54);
- CreateDynamicObject(19365, 251.65, 54.60, 1043.91, 0.00, 0.00, -88.44);
- CreateDynamicObject(19365, 253.26, 53.03, 1043.90, 0.00, 0.00, 1.32);
- CreateDynamicObject(19365, 254.84, 54.66, 1043.90, 0.00, 0.00, -88.44);
- CreateDynamicObject(19365, 256.55, 53.04, 1043.90, 0.00, 0.00, 1.32);
- CreateDynamicObject(19365, 251.56, 46.40, 1043.89, 0.00, 0.00, 1.26);
- CreateDynamicObject(19365, 253.21, 44.77, 1043.87, 0.00, 0.00, -88.68);
- CreateDynamicObject(19365, 254.81, 46.44, 1043.89, 0.00, 0.00, 1.26);
- CreateDynamicObject(19365, 250.01, 47.92, 1043.90, 0.00, 0.00, -88.98);
- CreateDynamicObject(19365, 256.64, 49.85, 1043.90, 0.00, 0.00, 1.80);
- CreateDynamicObject(19365, 256.73, 47.14, 1043.90, 0.00, 0.00, 1.80);
- CreateDynamicObject(19365, 256.29, 48.07, 1043.90, 0.00, 0.00, -88.68);
- CreateDynamicObject(19302, 252.34, 48.02, 1043.62, 0.00, 0.00, 1.14);
- CreateDynamicObject(19303, 254.09, 48.05, 1043.62, 0.00, 0.00, 1.14);
- CreateDynamicObject(19302, 254.20, 51.50, 1043.66, 0.00, 0.00, 1.14);
- CreateDynamicObject(19303, 255.95, 51.54, 1043.66, 0.00, 0.00, 1.14);
- CreateDynamicObject(19303, 252.50, 51.45, 1043.66, 0.00, 0.00, 1.14);
- CreateDynamicObject(19302, 250.75, 51.42, 1043.66, 0.00, 0.00, 1.14);
- CreateDynamicObject(19304, 253.17, 48.02, 1045.45, 0.00, 0.00, 1.14);
- CreateDynamicObject(19304, 255.08, 51.53, 1045.50, 0.00, 0.00, 1.14);
- CreateDynamicObject(19304, 251.61, 51.45, 1045.51, 0.00, 0.00, 1.14);
- CreateDynamicObject(19454, 215.40, 46.22, 1041.80, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 218.88, 46.17, 1041.84, 0.54, -90.72, 0.00);
- CreateDynamicObject(19453, 220.49, 42.99, 1043.62, 0.00, 0.00, 0.00);
- CreateDynamicObject(19453, 217.24, 41.47, 1043.62, 0.00, 0.00, -91.26);
- CreateDynamicObject(19453, 215.51, 46.29, 1043.62, 0.00, 0.00, 0.00);
- CreateDynamicObject(19390, 218.85, 47.74, 1043.62, 0.00, 0.00, -89.76);
- CreateDynamicObject(19453, 212.56, 47.72, 1043.62, 0.00, 0.00, -89.76);
- CreateDynamicObject(2206, 217.01, 43.85, 1041.87, 0.00, 0.00, 0.00);
- CreateDynamicObject(1663, 217.87, 42.34, 1042.30, 0.00, 0.00, -180.06);
- CreateDynamicObject(2190, 217.48, 44.13, 1042.76, 0.00, 0.00, 0.00);
- CreateDynamicObject(2776, 218.88, 45.64, 1042.34, 0.00, 0.00, -27.54);
- CreateDynamicObject(2776, 217.18, 45.63, 1042.25, 0.00, 0.00, 16.50);
- CreateDynamicObject(2001, 220.22, 41.74, 1041.85, 0.00, 0.00, 0.00);
- CreateDynamicObject(2001, 215.90, 41.83, 1041.79, 0.00, 0.00, 0.00);
- CreateDynamicObject(2614, 217.81, 41.60, 1044.07, 0.00, 0.00, -180.54);
- CreateDynamicObject(1491, 218.10, 47.72, 1041.85, 0.00, 0.00, 0.72);
- CreateDynamicObject(2602, 252.26, 45.16, 1042.81, 0.00, 0.00, -178.44);
- CreateDynamicObject(1800, 253.96, 43.82, 1042.17, 0.00, 0.00, 0.00);
- CreateDynamicObject(1800, 255.67, 51.13, 1042.30, 0.00, 0.00, 0.00);
- CreateDynamicObject(1800, 252.39, 51.02, 1042.24, 0.00, 0.00, 0.00);
- CreateDynamicObject(2602, 250.69, 54.01, 1042.87, 0.00, 0.00, 90.00);
- CreateDynamicObject(2602, 253.70, 53.69, 1042.91, 0.00, 0.00, 91.14);
- CreateDynamicObject(19454, 254.95, 52.87, 1045.43, 0.54, -90.72, 1.62);
- CreateDynamicObject(19454, 251.58, 52.83, 1045.38, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 253.29, 43.55, 1045.32, 0.54, -90.72, 0.90);
- CreateDynamicObject(19454, 251.27, 43.05, 1045.30, 0.54, -90.72, 1.02);
- CreateDynamicObject(19454, 248.52, 52.77, 1045.35, 0.54, -90.72, 0.54);
- CreateDynamicObject(19454, 248.59, 43.21, 1045.27, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 245.10, 43.07, 1045.23, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 241.66, 42.96, 1045.16, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 238.23, 42.96, 1045.12, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 234.75, 42.96, 1045.07, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 231.42, 42.94, 1045.04, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 231.68, 33.74, 1044.95, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 234.94, 33.73, 1044.99, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 238.42, 33.73, 1045.03, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 241.71, 33.49, 1045.06, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 219.57, 42.91, 1045.00, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 216.28, 42.89, 1044.96, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 245.47, 52.76, 1045.31, 0.54, -90.72, 0.36);
- CreateDynamicObject(19454, 242.01, 52.66, 1045.26, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 238.65, 52.63, 1045.22, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 235.88, 52.63, 1045.18, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 232.56, 52.64, 1045.13, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 229.17, 52.66, 1045.09, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 225.87, 52.66, 1045.05, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 222.47, 52.65, 1045.01, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 219.09, 52.63, 1044.97, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 215.64, 52.40, 1044.94, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 218.80, 61.87, 1045.06, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 222.27, 62.11, 1045.10, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 225.54, 62.10, 1045.13, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 228.97, 62.10, 1045.18, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 232.38, 62.09, 1045.21, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 235.65, 62.08, 1045.24, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 238.69, 61.99, 1045.29, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 235.02, 71.52, 1045.32, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 231.61, 71.52, 1045.28, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 228.24, 71.52, 1045.24, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 224.75, 71.50, 1045.20, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 221.26, 71.53, 1045.16, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 221.29, 80.83, 1045.24, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 223.90, 80.87, 1045.28, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 226.63, 81.03, 1045.31, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 228.77, 80.66, 1045.33, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 232.11, 80.73, 1045.36, 0.54, -90.72, 0.00);
- CreateDynamicObject(19454, 235.38, 81.06, 1045.42, 0.54, -90.72, 0.00);
- CreateDynamicObject(1495, 227.51, 70.15, 1042.15, 0.00, 0.00, -0.30);
- CreateDynamicObject(1495, 221.64, 70.18, 1042.09, 0.00, 0.00, -0.72);
- }
- stock LoadSmallHouse() //by Colm692
- {
- new retexture;
- CreateDynamicObject(2153, 667.57, -1684.16, -26.76, 0.00, 0.00, 0.00);
- CreateDynamicObject(2154, 665.50, -1684.16, -26.76, 0.00, 0.00, 0.00);
- CreateDynamicObject(2151, 664.13, -1684.16, -26.76, 0.00, 0.00, 0.00);
- CreateDynamicObject(2153, 666.87, -1684.16, -26.76, 0.00, 0.00, 0.00);
- CreateDynamicObject(2151, 662.76, -1684.16, -26.76, 0.00, 0.00, 0.00);
- CreateDynamicObject(2151, 662.44, -1685.18, -26.77, 0.00, 0.00, 90.00);
- retexture = CreateDynamicObject(19450, 671.00, -1692.57, -25.00, 0.00, 0.00, 0.00);
- SetDynamicObjectMaterial(retexture, 0, 13727, "lahillsland", "studwalltop_law", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19450, 672.72, -1690.49, -25.00, 0.00, 0.00, 90.00);
- SetDynamicObjectMaterial(retexture, 0, 13727, "lahillsland", "studwalltop_law", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19450, 667.82, -1685.76, -25.00, 0.00, 0.00, 0.00);
- SetDynamicObjectMaterial(retexture, 0, 13727, "lahillsland", "studwalltop_law", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19450, 666.20, -1696.57, -25.00, 0.00, 0.00, 90.00);
- SetDynamicObjectMaterial(retexture, 0, 13727, "lahillsland", "studwalltop_law", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19450, 664.00, -1683.86, -25.00, 0.00, 0.00, 90.00);
- SetDynamicObjectMaterial(retexture, 0, 13727, "lahillsland", "studwalltop_law", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19450, 662.23, -1683.36, -25.00, 0.00, 0.00, 0.00);
- SetDynamicObjectMaterial(retexture, 0, 13727, "lahillsland", "studwalltop_law", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19388, 662.22, -1689.77, -25.00, 0.00, 0.00, 0.00);
- SetDynamicObjectMaterial(retexture, 0, 13727, "lahillsland", "studwalltop_law", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19388, 662.22, -1694.58, -25.00, 0.00, 0.00, 0.00);
- SetDynamicObjectMaterial(retexture, 0, 13727, "lahillsland", "studwalltop_law", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19431, 662.22, -1692.18, -25.00, 0.00, 0.00, 0.00);
- SetDynamicObjectMaterial(retexture, 0, 13727, "lahillsland", "studwalltop_law", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19431, 662.22, -1696.99, -25.00, 0.00, 0.00, 0.00);
- SetDynamicObjectMaterial(retexture, 0, 13727, "lahillsland", "studwalltop_law", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19378, 667.04, -1683.30, -26.83, 0.00, 90.00, 90.00);
- SetDynamicObjectMaterial(retexture, 0, 6102, "gazlaw1", "law_gazwhitefloor", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19379, 667.42, -1693.38, -26.83, 0.00, 90.00, 0.00);
- SetDynamicObjectMaterial(retexture, 0, 6102, "gazlaw1", "law_gazwhitefloor", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19389, 662.10, -1694.59, -25.00, 0.00, 0.00, 0.00);
- SetDynamicObjectMaterial(retexture, 0, 8486, "ballys02", "walltiles_128", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19451, 657.41, -1691.60, -25.00, 0.00, 0.00, 90.00);
- SetDynamicObjectMaterial(retexture, 0, 8486, "ballys02", "walltiles_128", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19451, 657.31, -1696.20, -25.00, 0.00, 0.00, 90.00);
- SetDynamicObjectMaterial(retexture, 0, 8486, "ballys02", "walltiles_128", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19451, 656.98, -1696.34, -25.00, 0.00, 0.00, 0.00);
- SetDynamicObjectMaterial(retexture, 0, 8486, "ballys02", "walltiles_128", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19432, 662.12, -1692.39, -25.00, 0.00, 0.00, 0.00);
- SetDynamicObjectMaterial(retexture, 0, 8486, "ballys02", "walltiles_128", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19377, 656.93, -1696.45, -26.83, 0.00, 90.00, 0.00);
- SetDynamicObjectMaterial(retexture, 0, 3961, "lee_kitch", "dinerfloor01_128", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19385, 662.05, -1689.77, -25.00, 0.00, 0.00, 0.00);
- SetDynamicObjectMaterial(retexture, 0, 8401, "vgshpground", "vegaspawnwall02_128", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19454, 662.05, -1683.35, -25.00, 0.00, 0.00, 0.00);
- SetDynamicObjectMaterial(retexture, 0, 8401, "vgshpground", "vegaspawnwall02_128", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19454, 657.31, -1691.36, -25.00, 0.00, 0.00, 90.00);
- SetDynamicObjectMaterial(retexture, 0, 8401, "vgshpground", "vegaspawnwall02_128", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19454, 655.76, -1687.93, -25.00, 0.00, 0.00, 0.00);
- SetDynamicObjectMaterial(retexture, 0, 8401, "vgshpground", "vegaspawnwall02_128", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19454, 657.27, -1683.95, -25.00, 0.00, 0.00, 90.00);
- SetDynamicObjectMaterial(retexture, 0, 8401, "vgshpground", "vegaspawnwall02_128", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19377, 656.93, -1686.45, -26.83, 0.00, 90.00, 0.00);
- SetDynamicObjectMaterial(retexture, 0, 13007, "sw_bankint", "woodfloor1", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19377, 666.92, -1695.61, -23.37, 0.00, 90.00, 90.00);
- SetDynamicObjectMaterial(retexture, 0, 6102, "gazlaw1", "law_gazwhitefloor", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19377, 666.92, -1685.12, -23.37, 0.00, 90.00, 90.00);
- SetDynamicObjectMaterial(retexture, 0, 6102, "gazlaw1", "law_gazwhitefloor", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19377, 657.20, -1686.11, -23.37, 0.00, 90.00, 90.00);
- SetDynamicObjectMaterial(retexture, 0, 6102, "gazlaw1", "law_gazwhitefloor", 0xFFFFFFFF);
- retexture = CreateDynamicObject(19377, 657.21, -1696.86, -23.37, 0.00, 90.00, 90.00);
- SetDynamicObjectMaterial(retexture, 0, 6102, "gazlaw1", "law_gazwhitefloor", 0xFFFFFFFF);
- CreateDynamicObject(2153, 667.57, -1684.16, -26.76, 0.00, 0.00, 0.00);
- CreateDynamicObject(2154, 665.50, -1684.16, -26.76, 0.00, 0.00, 0.00);
- CreateDynamicObject(2151, 664.13, -1684.16, -26.76, 0.00, 0.00, 0.00);
- CreateDynamicObject(2153, 666.87, -1684.16, -26.76, 0.00, 0.00, 0.00);
- CreateDynamicObject(2151, 662.76, -1684.16, -26.76, 0.00, 0.00, 0.00);
- CreateDynamicObject(2151, 662.44, -1685.18, -26.77, 0.00, 0.00, 90.00);
- CreateDynamicObject(1825, 665.22, -1687.24, -26.75, 0.00, 0.00, 0.00);
- CreateDynamicObject(1506, 668.73, -1690.57, -26.88, 0.00, 0.00, 0.00);
- CreateDynamicObject(1502, 662.22, -1690.52, -26.78, 0.00, 0.00, 90.00);
- CreateDynamicObject(3034, 670.91, -1693.58, -25.06, 0.00, 0.00, -90.00);
- CreateDynamicObject(3034, 667.72, -1687.42, -25.06, 0.00, 0.00, -90.00);
- CreateDynamicObject(3034, 655.85, -1687.72, -25.06, 0.00, 0.00, 90.00);
- CreateDynamicObject(1780, 662.72, -1686.25, -25.64, 0.00, 0.00, 90.00);
- CreateDynamicObject(2812, 664.62, -1684.26, -25.71, 0.00, 0.00, 0.00);
- CreateDynamicObject(2740, 666.84, -1693.82, -23.62, 0.00, 0.00, 0.00);
- CreateDynamicObject(2239, 670.48, -1696.04, -26.69, 0.00, 0.00, -135.00);
- CreateDynamicObject(2292, 664.97, -1692.57, -26.74, 0.00, 0.00, 0.00);
- CreateDynamicObject(2291, 665.45, -1692.57, -26.74, 0.00, 0.00, 0.00);
- CreateDynamicObject(2291, 666.41, -1692.57, -26.74, 0.00, 0.00, 0.00);
- CreateDynamicObject(2291, 667.36, -1692.57, -26.74, 0.00, 0.00, 0.00);
- CreateDynamicObject(2292, 668.83, -1692.55, -26.74, 0.00, 0.00, -90.00);
- CreateDynamicObject(2291, 664.98, -1694.02, -26.74, 0.00, 0.00, 90.00);
- CreateDynamicObject(2291, 668.83, -1693.00, -26.74, 0.00, 0.00, -90.00);
- CreateDynamicObject(1792, 666.89, -1696.88, -26.24, 0.00, 0.00, 180.00);
- CreateDynamicObject(2233, 667.40, -1696.65, -26.72, 0.00, 0.00, 180.00);
- CreateDynamicObject(2233, 665.53, -1696.65, -26.72, 0.00, 0.00, 180.00);
- CreateDynamicObject(2126, 666.41, -1694.71, -26.67, 0.00, 0.00, 0.00);
- CreateDynamicObject(2855, 666.39, -1694.13, -26.17, 0.00, 0.00, -70.00);
- CreateDynamicObject(3962, 662.35, -1692.16, -24.99, 0.00, 0.00, 178.50);
- CreateDynamicObject(2707, 662.77, -1693.32, -23.47, 0.00, 0.00, 0.00);
- CreateDynamicObject(2707, 662.77, -1692.25, -23.47, 0.00, 0.00, 0.00);
- CreateDynamicObject(2707, 662.77, -1691.12, -23.47, 0.00, 0.00, 0.00);
- CreateDynamicObject(2269, 664.11, -1695.99, -25.33, 0.00, 0.00, 180.00);
- CreateDynamicObject(2270, 662.82, -1687.91, -25.31, 0.00, 0.00, 90.00);
- CreateDynamicObject(2258, 661.93, -1686.24, -24.74, 0.00, 0.00, -90.00);
- CreateDynamicObject(2256, 658.92, -1691.24, -24.93, 0.00, 0.00, 180.00);
- CreateDynamicObject(2026, 659.55, -1693.84, -23.47, 0.00, 0.00, 0.00);
- CreateDynamicObject(2026, 658.88, -1688.25, -23.47, 0.00, 0.00, 0.00);
- CreateDynamicObject(1502, 662.22, -1695.34, -26.78, 0.00, 0.00, 90.00);
- CreateDynamicObject(2521, 660.79, -1692.27, -26.71, 0.00, 0.00, 0.00);
- CreateDynamicObject(2517, 658.17, -1693.15, -26.77, 0.00, 0.00, 0.00);
- CreateDynamicObject(2522, 658.89, -1695.61, -26.75, 0.00, 0.00, 180.00);
- CreateDynamicObject(2524, 661.19, -1695.64, -26.71, 0.00, 0.00, 180.00);
- CreateDynamicObject(14527, 665.12, -1687.26, -25.91, 0.00, 0.00, 0.00);
- CreateDynamicObject(2566, 657.43, -1686.62, -26.23, 0.00, 0.00, 0.00);
- CreateDynamicObject(2844, 656.06, -1685.22, -26.74, 0.00, 0.00, 0.00);
- CreateDynamicObject(2845, 657.11, -1685.91, -26.74, 0.00, 0.00, 0.00);
- CreateDynamicObject(2205, 659.63, -1690.70, -26.77, 0.00, 0.00, 180.00);
- CreateDynamicObject(1671, 658.89, -1689.51, -26.28, 0.00, 0.00, 0.00);
- CreateDynamicObject(2190, 659.33, -1691.05, -25.90, 0.00, 0.00, -156.00);
- CreateDynamicObject(2894, 658.46, -1690.57, -25.81, 0.00, 0.00, -185.00);
- CreateDynamicObject(2239, 657.16, -1690.80, -26.78, 0.00, 0.00, 178.00);
- }
- stock LoadPoliceStations()
- {
- new gerbeshi;
- gerbeshi = CreateDynamicObject(4638,2315.358,-1336.908,24.671,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 16640, "a51", "redmetal", 0x00000000);
- SetDynamicObjectMaterial(gerbeshi, 1, 969, "electricgate", "notice01", 0x00000000);
- SetDynamicObjectMaterial(gerbeshi, 2, 10765, "airportgnd_sfse", "black64", 0x00000000);
- SetDynamicObjectMaterial(gerbeshi, 5, 10765, "airportgnd_sfse", "black64", 0x00000000);
- SetDynamicObjectMaterial(gerbeshi, 6, 10765, "airportgnd_sfse", "black64", 0x00000000);
- SetDynamicObjectMaterial(gerbeshi, 7, 10765, "airportgnd_sfse", "black64", 0x00000000);
- gerbeshi = CreateDynamicObject(19443,2313.669,-1337.227,24.547,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "LSPD", 60, "Ariel", 18, 1, 0xFFFFFFFF, 0x00000000, 0);
- gerbeshi = CreateDynamicObject(19428,2316.263,-1337.877,24.366,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "NO ENTRANCE", 130, "Ariel", 30, 1, 0xFFFFFFFF, 0x00000000, 0);
- gerbeshi = CreateDynamicObject(19791,2319.708,-1367.515,21.006,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 16093, "a51_ext", "block2_high", 0x00000000);
- gerbeshi = CreateDynamicObject(19741,2317.147,-1370.040,28.251,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0x00000000);
- gerbeshi = CreateDynamicObject(19463,2314.770,-1367.709,22.510,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 3314, "ce_burbhouse", "sw_wallbrick_06", 0x00000000);
- gerbeshi = CreateDynamicObject(19463,2317.671,-1364.253,22.510,0.000,0.000,-89.400,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 3314, "ce_burbhouse", "sw_wallbrick_06", 0x00000000);
- gerbeshi = CreateDynamicObject(19791,2317.879,-1369.216,16.026,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 16093, "a51_ext", "block2_high", 0x00000000);
- gerbeshi = CreateDynamicObject(19791,2319.708,-1357.685,19.946,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 16093, "a51_ext", "block2_high", 0x00000000);
- gerbeshi = CreateDynamicObject(19463,2312.948,-1369.019,22.510,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 3314, "ce_burbhouse", "sw_wallbrick_06", 0x00000000);
- gerbeshi = CreateDynamicObject(19463,2312.938,-1369.469,22.510,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 3314, "ce_burbhouse", "sw_wallbrick_06", 0x00000000);
- gerbeshi = CreateDynamicObject(19463,2317.775,-1374.193,22.510,0.000,0.000,-90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 3314, "ce_burbhouse", "sw_wallbrick_06", 0x00000000);
- gerbeshi = CreateDynamicObject(19463,2318.105,-1374.203,22.510,0.000,0.000,-90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 3314, "ce_burbhouse", "sw_wallbrick_06", 0x00000000);
- gerbeshi = CreateDynamicObject(19463,2322.817,-1369.379,22.510,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 3314, "ce_burbhouse", "sw_wallbrick_06", 0x00000000);
- gerbeshi = CreateDynamicObject(19791,2326.968,-1367.475,18.626,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 16093, "a51_ext", "block2_high", 0x00000000);
- gerbeshi = CreateDynamicObject(19463,2327.157,-1372.433,22.510,0.000,0.000,-90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 3314, "ce_burbhouse", "sw_wallbrick_06", 0x00000000);
- gerbeshi = CreateDynamicObject(19463,2331.907,-1367.549,22.510,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 3314, "ce_burbhouse", "sw_wallbrick_06", 0x00000000);
- gerbeshi = CreateDynamicObject(19463,2331.917,-1357.939,22.510,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 3314, "ce_burbhouse", "sw_wallbrick_06", 0x00000000);
- gerbeshi = CreateDynamicObject(19791, 2326.94995, -1357.70508, 18.63600,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 16093, "a51_ext", "block2_high", 0x00000000);
- gerbeshi = CreateDynamicObject(19463,2331.927,-1357.458,22.510,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 3314, "ce_burbhouse", "sw_wallbrick_06", 0x00000000);
- gerbeshi = CreateDynamicObject(19463,2314.778,-1358.209,22.510,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 3314, "ce_burbhouse", "sw_wallbrick_06", 0x00000000);
- gerbeshi = CreateDynamicObject(19463,2314.768,-1357.439,22.510,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 3314, "ce_burbhouse", "sw_wallbrick_06", 0x00000000);
- gerbeshi = CreateDynamicObject(19463,2319.660,-1352.713,22.510,0.000,0.000,-90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 3314, "ce_burbhouse", "sw_wallbrick_06", 0x00000000);
- gerbeshi = CreateDynamicObject(19463,2327.200,-1352.703,22.510,0.000,0.000,-90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 3314, "ce_burbhouse", "sw_wallbrick_06", 0x00000000);
- gerbeshi = CreateDynamicObject(19447,2313.525,-1363.994,24.334,90.600,-13.699,-78.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 16640, "a51", "sw_olddrum1", 0x00000000);
- gerbeshi = CreateDynamicObject(19447,2313.527,-1363.924,24.334,90.600,-13.699,-78.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 16640, "a51", "sw_olddrum1", 0x00000000);
- gerbeshi = CreateDynamicObject(19741,2315.127,-1367.100,25.371,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0x00000000);
- gerbeshi = CreateDynamicObject(19741,2315.127,-1371.559,25.371,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0x00000000);
- gerbeshi = CreateDynamicObject(19741,2319.937,-1371.559,25.371,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0x00000000);
- gerbeshi = CreateDynamicObject(18763,2314.319,-1366.539,22.845,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14577, "casinovault01", "ab_shutter1", 0x00000000);
- gerbeshi = CreateDynamicObject(18763,2314.319,-1369.539,22.845,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14577, "casinovault01", "ab_shutter1", 0x00000000);
- gerbeshi = CreateDynamicObject(18763,2314.319,-1372.539,22.845,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14577, "casinovault01", "ab_shutter1", 0x00000000);
- gerbeshi = CreateDynamicObject(18763,2314.308,-1373.039,22.845,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14577, "casinovault01", "ab_shutter1", 0x00000000);
- gerbeshi = CreateDynamicObject(18763,2317.298,-1373.039,22.845,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14577, "casinovault01", "ab_shutter1", 0x00000000);
- gerbeshi = CreateDynamicObject(18763,2320.278,-1373.039,22.845,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14577, "casinovault01", "ab_shutter1", 0x00000000);
- gerbeshi = CreateDynamicObject(18763,2321.428,-1373.049,22.845,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14577, "casinovault01", "ab_shutter1", 0x00000000);
- gerbeshi = CreateDynamicObject(18763,2316.197,-1370.047,28.183,89.899,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 7088, "casinoshops1", "inwindow1shdw64", 0x00000000);
- gerbeshi = CreateDynamicObject(18763,2323.237,-1370.047,28.183,89.899,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 7088, "casinoshops1", "inwindow1shdw64", 0x00000000);
- gerbeshi = CreateDynamicObject(19741,2321.847,-1370.040,28.251,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0x00000000);
- gerbeshi = CreateDynamicObject(18763,2317.816,-1370.077,28.183,89.899,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 7088, "casinoshops1", "inwindow1shdw64", 0x00000000);
- gerbeshi = CreateDynamicObject(18763,2330.487,-1370.050,26.803,89.899,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 7088, "casinoshops1", "inwindow1shdw64", 0x00000000);
- gerbeshi = CreateDynamicObject(19741,2329.197,-1369.690,27.281,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0x00000000);
- gerbeshi = CreateDynamicObject(18763,2330.487,-1355.180,26.847,89.899,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 7088, "casinoshops1", "inwindow1shdw64", 0x00000000);
- gerbeshi = CreateDynamicObject(19741,2329.197,-1363.520,27.281,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0x00000000);
- gerbeshi = CreateDynamicObject(19741,2329.197,-1357.310,27.281,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0x00000000);
- gerbeshi = CreateDynamicObject(19741,2329.197,-1355.630,27.281,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0x00000000);
- gerbeshi = CreateDynamicObject(18763,2316.197,-1355.148,27.227,89.899,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 7088, "casinoshops1", "inwindow1shdw64", 0x00000000);
- gerbeshi = CreateDynamicObject(19741,2323.038,-1355.629,27.281,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0x00000000);
- gerbeshi = CreateDynamicObject(19741,2317.668,-1355.629,27.281,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0x00000000);
- gerbeshi = CreateDynamicObject(19741,2316.997,-1360.819,27.281,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0x00000000);
- gerbeshi = CreateDynamicObject(18763,2316.207,-1361.448,27.238,89.899,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 7088, "casinoshops1", "inwindow1shdw64", 0x00000000);
- gerbeshi = CreateDynamicObject(19741,2316.997,-1354.909,27.281,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0x00000000);
- gerbeshi = CreateDynamicObject(19741,2323.227,-1354.909,27.281,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0x00000000);
- gerbeshi = CreateDynamicObject(19741,2329.448,-1354.909,27.281,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0x00000000);
- gerbeshi = CreateDynamicObject(19741,2329.448,-1361.139,27.281,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0x00000000);
- gerbeshi = CreateDynamicObject(19741,2329.448,-1367.268,27.281,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0x00000000);
- gerbeshi = CreateDynamicObject(19741,2329.448,-1369.848,27.281,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0x00000000);
- gerbeshi = CreateDynamicObject(19741,2328.887,-1369.858,27.281,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0x00000000);
- gerbeshi = CreateDynamicObject(18763,2314.319,-1365.509,22.845,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14577, "casinovault01", "ab_shutter1", 0x00000000);
- gerbeshi = CreateDynamicObject(18663,2311.981,-1369.473,24.454,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "POLICE DEPARTMENT", 130, "courier", 20, 1, 0xFFFFFFFF, 0x00000000, 0);
- gerbeshi = CreateDynamicObject(18667,2326.483,-1372.488,24.645,0.000,0.000,89.800,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10871, "blacksky_sfse", "ws_blackmarble", 0x00000000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "54", 30, "Ariel", 40, 1, 0xFFFFFFFF, 0x00000000, 0);
- gerbeshi = CreateDynamicObject(18667,2327.703,-1372.492,24.525,0.000,0.000,89.800,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10871, "blacksky_sfse", "ws_blackmarble", 0x00000000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "TH", 30, "Ariel", 15, 1, 0xFFFFFFFF, 0x00000000, 0);
- gerbeshi = CreateDynamicObject(18667,2326.394,-1372.488,24.955,0.000,0.000,89.800,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10871, "blacksky_sfse", "ws_blackmarble", 0x00000000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "_____________", 30, "Ariel", 15, 1, 0xFFFFFFFF, 0x00000000, 0);
- gerbeshi = CreateDynamicObject(18667,2326.394,-1372.488,23.925,0.000,0.000,89.800,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10871, "blacksky_sfse", "ws_blackmarble", 0x00000000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "_____________", 30, "Ariel", 15, 1, 0xFFFFFFFF, 0x00000000, 0);
- gerbeshi = CreateDynamicObject(18667,2326.624,-1372.489,24.835,0.000,0.000,89.800,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10871, "blacksky_sfse", "ws_blackmarble", 0x00000000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "POLICE DEPARTMENT", 90, "Ariel", 20, 1, 0xFFFFFFFF, 0x00000000, 0);
- /*gerbeshi = CreateDynamicObject(18667,2326.434,-1372.488,23.495,0.000,0.000,89.800,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10871, "blacksky_sfse", "ws_blackmarble", 0x00000000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "To protect and serve", 90, "Ariel", 17, 1, 0xFFFFFFFF, 0x00000000, 0);*/
- gerbeshi = CreateDynamicObject(18763,2330.487,-1362.669,26.800,89.899,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 7088, "casinoshops1", "inwindow1shdw64", 0x00000000);
- gerbeshi = CreateDynamicObject(19866,2309.327,-1352.864,22.963,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10871, "blacksky_sfse", "ws_blackmarble", 0x00000000);
- gerbeshi = CreateDynamicObject(19866,2309.478,-1352.864,22.963,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10871, "blacksky_sfse", "ws_blackmarble", 0x00000000);
- gerbeshi = CreateDynamicObject(19866,2309.598,-1352.864,22.963,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10871, "blacksky_sfse", "ws_blackmarble", 0x00000000);
- gerbeshi = CreateDynamicObject(19866,2309.598,-1352.864,23.653,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10871, "blacksky_sfse", "ws_blackmarble", 0x00000000);
- gerbeshi = CreateDynamicObject(19866,2309.478,-1352.864,23.653,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10871, "blacksky_sfse", "ws_blackmarble", 0x00000000);
- gerbeshi = CreateDynamicObject(19866,2309.327,-1352.864,23.653,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10871, "blacksky_sfse", "ws_blackmarble", 0x00000000);
- gerbeshi = CreateDynamicObject(18667,2309.218,-1352.894,23.298,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10871, "blacksky_sfse", "ws_blackmarble", 0x00000000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "POLICE DEPARTMENT", 90, "Ariel", 25, 1, 0xFFFFFFFF, 0x00000000, 0);
- gerbeshi = CreateDynamicObject(18667,2309.218,-1352.864,23.298,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10871, "blacksky_sfse", "ws_blackmarble", 0x00000000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "_______________________", 90, "Ariel", 25, 1, 0xFFFFFFFF, 0x00000000, 0);
- gerbeshi = CreateDynamicObject(18667,2309.218,-1352.854,22.918,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10871, "blacksky_sfse", "ws_blackmarble", 0x00000000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "____________________", 100, "Ariel", 30, 1, 0xFFFFFFFF, 0x00000000, 0);
- gerbeshi = CreateDynamicObject(18667,2309.218,-1352.994,22.638,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10871, "blacksky_sfse", "ws_blackmarble", 0x00000000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "> East Los Santos Police Station", 140, "Ariel", 30, 1, 0xFFFFFFFF, 0x00000000, 0);
- gerbeshi = CreateDynamicObject(19791,2333.672,-1347.897,16.245,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 16093, "a51_ext", "block2_high", 0x00000000);
- gerbeshi = CreateDynamicObject(19791,2333.672,-1338.137,16.245,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 16093, "a51_ext", "block2_high", 0x00000000);
- gerbeshi = CreateDynamicObject(19791,2328.111,-1338.137,15.835,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 16093, "a51_ext", "block2_high", 0x00000000);
- gerbeshi = CreateDynamicObject(1409,910.875,-836.695,91.125,0.000,0.000,19.999,-1,-1,-1,1000.000);
- gerbeshi = CreateDynamicObject(19966,2313.627,-1336.940,21.208,0.000,0.000,-89.999,-1,-1,-1,1000.000);
- gerbeshi = CreateDynamicObject(19467,2314.029,-1340.444,22.426,-124.800,0.000,-90.500,-1,-1,-1,1000.000);
- gerbeshi = CreateDynamicObject(19467,2313.992,-1344.674,22.426,-124.800,0.000,-90.500,-1,-1,-1,1000.000);
- gerbeshi = CreateDynamicObject(19467,2313.955,-1348.934,22.426,-124.800,0.000,-90.500,-1,-1,-1,1000.000);
- gerbeshi = CreateDynamicObject(1569,2312.973,-1367.416,23.017,0.000,0.000,0.000,-1,-1,-1,1000.000);
- gerbeshi = CreateDynamicObject(1569,2312.973,-1367.416,23.017,0.000,0.000,0.000,-1,-1,-1,1000.000);
- gerbeshi = CreateDynamicObject(1569,2312.863,-1370.900,22.859,0.000,0.000,89.799,-1,-1,-1,1000.000);
- gerbeshi = CreateDynamicObject(1569,2312.869,-1367.930,22.859,0.000,0.000,-90.500,-1,-1,-1,1000.000);
- gerbeshi = CreateDynamicObject(1616,2312.702,-1364.316,25.187,0.000,0.000,83.700,-1,-1,-1,1000.000);
- gerbeshi = CreateDynamicObject(1616,2327.966,-1372.684,28.357,0.000,0.000,59.200,-1,-1,-1,1000.000);
- gerbeshi = CreateDynamicObject(1502,2318.236,-1373.351,23.032,0.000,0.000,0.000,-1,-1,-1,1000.000);
- gerbeshi = CreateDynamicObject(19859,2317.286,-1374.520,24.191,0.000,0.000,0.000,-1,-1,-1,1000.000);
- gerbeshi = CreateDynamicObject(19859,2320.245,-1374.540,24.191,0.000,0.000,179.100,-1,-1,-1,1000.000);
- gerbeshi = CreateDynamicObject(17951,2323.147,-1339.723,23.897,0.000,0.000,-0.499,-1,-1,-1,1000.000);
- gerbeshi = CreateDynamicObject(1569,2328.726,-1349.578,22.989,0.000,0.000,90.000,-1,-1,-1,1000.000);
- gerbeshi = CreateDynamicObject(19791,1831.609,-1444.466,10.712,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "ws_rooftarmac1", 0);
- gerbeshi = CreateDynamicObject(19791,1831.609,-1434.476,10.712,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "ws_rooftarmac1", 0);
- gerbeshi = CreateDynamicObject(19791,1821.719,-1424.497,10.712,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "ws_rooftarmac1", 0);
- gerbeshi = CreateDynamicObject(19791,1821.729,-1444.466,10.712,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "ws_rooftarmac1", 0);
- gerbeshi = CreateDynamicObject(19791,1821.729,-1434.476,10.712,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "ws_rooftarmac1", 0);
- gerbeshi = CreateDynamicObject(19791,1831.609,-1424.497,10.712,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "ws_rooftarmac1", 0);
- gerbeshi = CreateDynamicObject(19379,1836.565,-1433.894,10.780,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 6944, "vgnshopnmall", "vgnmetalwall3_256", 0);
- gerbeshi = CreateDynamicObject(19379,1836.565,-1443.525,10.770,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 6944, "vgnshopnmall", "vgnmetalwall3_256", 0);
- gerbeshi = CreateDynamicObject(19379,1836.575,-1444.735,10.730,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 6944, "vgnshopnmall", "vgnmetalwall3_256", 0);
- gerbeshi = CreateDynamicObject(19379,1836.295,-1424.294,16.310,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1816.764,-1424.314,11.930,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1816.764,-1433.914,11.930,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1816.764,-1443.524,11.930,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1816.754,-1444.724,11.930,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1821.484,-1449.614,11.930,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1826.354,-1449.614,11.930,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1831.834,-1449.464,10.430,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 6944, "vgnshopnmall", "vgnmetalwall3_256", 0);
- gerbeshi = CreateDynamicObject(19379,1821.474,-1419.555,11.930,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1831.094,-1419.555,11.930,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1831.834,-1419.565,11.930,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(3034,1818.498,-1450.169,14.911,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(3034,1822.118,-1450.169,14.911,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(3034,1825.738,-1450.169,14.911,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(3034,1828.617,-1450.179,14.911,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(3034,1832.978,-1449.599,16.321,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(3034,1834.858,-1449.609,16.321,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(3034,1836.679,-1447.808,16.321,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(3034,1836.689,-1444.419,16.321,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(3034,1836.689,-1440.799,16.321,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(3034,1836.689,-1437.179,16.321,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(3034,1836.689,-1433.559,16.321,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(3034,1836.699,-1431.749,16.321,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1821.484,-1449.454,11.930,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1821.484,-1449.454,11.930,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1831.104,-1449.454,11.930,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1821.484,-1449.454,11.930,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1821.484,-1449.764,11.930,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1826.354,-1449.764,11.930,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1821.484,-1449.914,11.930,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1826.354,-1449.914,11.930,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1821.484,-1450.064,11.930,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1826.354,-1450.064,11.930,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(4100,1823.848,-1450.198,15.204,0.000,0.000,-39.899,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 17555, "eastbeach3c_lae2", "compfence3_LAe", 0);
- gerbeshi = CreateDynamicObject(19379,1836.435,-1424.294,16.310,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1836.565,-1424.294,16.310,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1837.015,-1424.294,11.930,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1836.735,-1424.294,16.310,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1836.905,-1424.294,16.310,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1837.055,-1424.294,16.310,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1837.155,-1424.294,16.310,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1837.295,-1424.294,16.310,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1837.425,-1424.294,16.310,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1837.595,-1424.294,16.310,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1837.765,-1424.294,16.310,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19379,1837.915,-1424.294,16.310,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(3034,1836.699,-1428.139,16.321,0.000,0.000,89.999,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(19790,1834.698,-1447.786,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1829.749,-1447.786,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1824.788,-1447.786,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1819.838,-1447.786,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1818.759,-1447.796,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1834.698,-1442.827,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1829.749,-1442.827,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1824.788,-1442.827,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1819.838,-1442.827,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1818.759,-1442.837,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1834.698,-1437.846,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1829.749,-1437.846,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1824.788,-1437.846,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1819.838,-1437.846,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1818.759,-1437.856,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1834.698,-1432.887,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1829.749,-1432.887,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1824.788,-1432.887,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1819.838,-1432.887,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1818.759,-1432.897,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1834.698,-1427.906,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1829.749,-1427.906,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1824.788,-1427.906,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1819.838,-1427.906,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1818.759,-1427.916,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1834.698,-1422.947,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1829.749,-1422.947,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1824.788,-1422.947,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1819.838,-1422.947,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(19790,1818.759,-1422.957,16.463,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- gerbeshi = CreateDynamicObject(3034,1825.248,-1450.299,18.871,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(3034,1828.868,-1450.299,18.871,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(3034,1832.488,-1450.299,18.871,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(3034,1835.427,-1450.309,18.871,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(4100,1830.644,-1450.362,19.234,0.000,0.000,-39.899,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 17555, "eastbeach3c_lae2", "compfence3_LAe", 0);
- gerbeshi = CreateDynamicObject(3034,1837.197,-1448.479,18.871,0.000,0.000,90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(3034,1837.197,-1442.789,18.871,0.000,0.000,90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(3034,1837.197,-1437.769,18.871,0.000,0.000,90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(3034,1837.197,-1432.249,18.871,0.000,0.000,90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(4100,1837.252,-1443.191,19.234,0.000,0.000,50.100,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 17555, "eastbeach3c_lae2", "compfence3_LAe", 0);
- gerbeshi = CreateDynamicObject(4100,1837.268,-1429.452,19.244,0.000,0.000,50.100,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 17555, "eastbeach3c_lae2", "compfence3_LAe", 0);
- gerbeshi = CreateDynamicObject(3034,1818.058,-1450.299,18.871,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(3034,1816.248,-1448.489,18.871,0.000,0.000,-90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(3034,1816.248,-1444.859,18.871,0.000,0.000,-90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(3034,1816.248,-1437.288,18.871,0.000,0.000,-90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(3034,1816.248,-1433.649,18.871,0.000,0.000,-90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(3034,1816.248,-1426.418,18.871,0.000,0.000,-90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(4100,1823.355,-1450.306,19.234,0.000,0.000,-39.899,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 17555, "eastbeach3c_lae2", "compfence3_LAe", 0);
- gerbeshi = CreateDynamicObject(4100,1816.214,-1443.631,19.234,0.000,0.000,-129.899,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 17555, "eastbeach3c_lae2", "compfence3_LAe", 0);
- gerbeshi = CreateDynamicObject(4100,1816.189,-1429.976,19.234,0.000,0.000,-129.899,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 17555, "eastbeach3c_lae2", "compfence3_LAe", 0);
- gerbeshi = CreateDynamicObject(19358,1837.771,-1438.880,15.539,0.000,90.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0);
- gerbeshi = CreateDynamicObject(19358,1837.771,-1435.700,15.539,0.000,90.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "coasty_bit3_sfe", 0);
- gerbeshi = CreateDynamicObject(18648,1837.640,-1439.955,16.248,49.100,11.099,92.199,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "ws_bridgepavement2", 0);
- gerbeshi = CreateDynamicObject(18648,1837.633,-1439.916,16.243,49.100,11.099,92.199,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "ws_bridgepavement2", 0);
- gerbeshi = CreateDynamicObject(18648,1837.522,-1434.542,16.326,49.100,11.099,92.199,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "ws_bridgepavement2", 0);
- gerbeshi = CreateDynamicObject(18648,1837.530,-1434.581,16.331,49.100,11.099,92.199,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "ws_bridgepavement2", 0);
- gerbeshi = CreateDynamicObject(921,1837.904,-1437.307,15.336,89.799,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "Bow_Abpave_Gen", 0);
- gerbeshi = CreateDynamicObject(2314,1836.541,-1450.087,17.029,-89.899,-179.999,89.400,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 3077, "blkbrdx", "nf_blackbrd", 0);
- gerbeshi = CreateDynamicObject(2314,1836.685,-1451.619,17.040,-89.899,179.999,-90.600,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 3077, "blkbrdx", "nf_blackbrd", 0);
- gerbeshi = CreateDynamicObject(18666,1837.052,-1450.803,16.248,0.000,0.000,180.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 18996, "mattextures", "policeshield", 0);
- SetDynamicObjectMaterialText(gerbeshi, 0, "LSPD", 30, "Ariel", 20, 1, -1, 0, 0);
- gerbeshi = CreateDynamicObject(18666,1836.171,-1451.514,16.258,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "LSPD", 30, "Ariel", 20, 1, -1, 0, 0);
- gerbeshi = CreateDynamicObject(19354,1836.290,-1427.341,14.480,0.000,90.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10765, "airportgnd_sfse", "black64", 0);
- gerbeshi = CreateDynamicObject(18663,1838.051,-1427.259,13.600,0.000,0.000,180.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "LOS SANTOS POLICE DEPARTMENT", 90, "Ariel", 17, 1, -1, 0, 0);
- gerbeshi = CreateDynamicObject(19356,1837.924,-1426.019,18.730,0.000,0.000,0.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 19784, "matpoliceinsignias", "detective1", 0);
- gerbeshi = CreateDynamicObject(18667,1838.007,-1426.084,15.880,0.000,0.000,180.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "POLICE", 50, "Ariel", 40, 1, -16777216, 0, 0);
- gerbeshi = CreateDynamicObject(18667,1838.007,-1426.084,15.880,0.000,0.000,180.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "_______________________", 50, "Ariel", 40, 1, -16777216, 0, 0);
- gerbeshi = CreateDynamicObject(18667,1838.047,-1424.974,14.640,0.000,0.000,180.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "\"To protect and serve\"", 130, "Comic Sans MS", 50, 1, -16777216, 0, 0);
- gerbeshi = CreateDynamicObject(18667,1838.007,-1425.074,15.330,0.000,0.000,180.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "_______________________", 50, "Ariel", 40, 1, -16777216, 0, 0);
- gerbeshi = CreateDynamicObject(19379,1833.186,-1429.035,15.960,0.000,0.000,-90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 14846, "genintintpoliceb", "cop_cellwall", 0);
- gerbeshi = CreateDynamicObject(987,1785.162,-1441.635,10.079,0.000,0.000,-18.899,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 1, 5114, "beach_las2", "Bow_meshfence", 0);
- SetDynamicObjectMaterial(gerbeshi, 2, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 3, 3715, "archlax", "ws_greymetal", 0);
- SetDynamicObjectMaterial(gerbeshi, 4, 3715, "archlax", "ws_greymetal", 0);
- gerbeshi = CreateDynamicObject(987,1796.528,-1445.304,10.079,0.000,0.000,-198.899,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 1, 5114, "beach_las2", "Bow_meshfence", 0);
- SetDynamicObjectMaterial(gerbeshi, 2, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 3, 3715, "archlax", "ws_greymetal", 0);
- SetDynamicObjectMaterial(gerbeshi, 4, 3715, "archlax", "ws_greymetal", 0);
- gerbeshi = CreateDynamicObject(987,1793.423,-1444.426,10.079,-0.000,0.000,-18.899,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 1, 5114, "beach_las2", "Bow_meshfence", 0);
- SetDynamicObjectMaterial(gerbeshi, 2, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 3, 3715, "archlax", "ws_greymetal", 0);
- SetDynamicObjectMaterial(gerbeshi, 4, 3715, "archlax", "ws_greymetal", 0);
- gerbeshi = CreateDynamicObject(987,1804.789,-1448.095,10.079,0.000,-0.000,161.099,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 1, 5114, "beach_las2", "Bow_meshfence", 0);
- SetDynamicObjectMaterial(gerbeshi, 2, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 3, 3715, "archlax", "ws_greymetal", 0);
- SetDynamicObjectMaterial(gerbeshi, 4, 3715, "archlax", "ws_greymetal", 0);
- gerbeshi = CreateDynamicObject(987,1785.408,-1441.730,10.079,0.000,0.000,46.099,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 1, 5114, "beach_las2", "Bow_meshfence", 0);
- SetDynamicObjectMaterial(gerbeshi, 2, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 3, 3715, "archlax", "ws_greymetal", 0);
- SetDynamicObjectMaterial(gerbeshi, 4, 3715, "archlax", "ws_greymetal", 0);
- gerbeshi = CreateDynamicObject(987,1793.537,-1432.980,10.079,-0.000,-0.000,-133.899,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 1, 5114, "beach_las2", "Bow_meshfence", 0);
- SetDynamicObjectMaterial(gerbeshi, 2, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 3, 3715, "archlax", "ws_greymetal", 0);
- SetDynamicObjectMaterial(gerbeshi, 4, 3715, "archlax", "ws_greymetal", 0);
- gerbeshi = CreateDynamicObject(987,1793.708,-1433.090,10.079,0.000,0.000,46.099,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 1, 5114, "beach_las2", "Bow_meshfence", 0);
- SetDynamicObjectMaterial(gerbeshi, 2, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 3, 3715, "archlax", "ws_greymetal", 0);
- SetDynamicObjectMaterial(gerbeshi, 4, 3715, "archlax", "ws_greymetal", 0);
- gerbeshi = CreateDynamicObject(987,1801.837,-1424.340,10.079,-0.000,-0.000,-133.899,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 1, 5114, "beach_las2", "Bow_meshfence", 0);
- SetDynamicObjectMaterial(gerbeshi, 2, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 3, 3715, "archlax", "ws_greymetal", 0);
- SetDynamicObjectMaterial(gerbeshi, 4, 3715, "archlax", "ws_greymetal", 0);
- gerbeshi = CreateDynamicObject(987,1797.469,-1429.210,10.079,0.000,0.000,46.099,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 1, 5114, "beach_las2", "Bow_meshfence", 0);
- SetDynamicObjectMaterial(gerbeshi, 2, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 3, 3715, "archlax", "ws_greymetal", 0);
- SetDynamicObjectMaterial(gerbeshi, 4, 3715, "archlax", "ws_greymetal", 0);
- gerbeshi = CreateDynamicObject(987,1805.597,-1420.459,10.079,-0.000,-0.000,-133.899,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 1, 5114, "beach_las2", "Bow_meshfence", 0);
- SetDynamicObjectMaterial(gerbeshi, 2, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0);
- SetDynamicObjectMaterial(gerbeshi, 3, 3715, "archlax", "ws_greymetal", 0);
- SetDynamicObjectMaterial(gerbeshi, 4, 3715, "archlax", "ws_greymetal", 0);
- gerbeshi = CreateDynamicObject(3034,1816.248,-1437.288,14.821,0.000,0.000,-90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(3034,1816.248,-1433.669,14.821,0.000,0.000,-90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(3034,1816.248,-1425.778,14.821,0.000,0.000,-90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(3034,1816.667,-1448.369,14.911,0.000,0.000,-90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(3034,1816.667,-1444.728,14.911,0.000,0.000,-90.000,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10842, "docks2refl_sfse", "ws_corr_2_blu", 0);
- gerbeshi = CreateDynamicObject(967,1805.715,-1448.096,12.352,0.000,0.000,-104.399,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 3603, "bevmans01_la", "genroof01_128", 0);
- SetDynamicObjectMaterial(gerbeshi, 1, 3603, "bevmans01_la", "cemebuild03_law", 0);
- gerbeshi = CreateDynamicObject(966,1806.552,-1448.825,12.500,0.000,0.000,170.100,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 3603, "bevmans01_la", "cemebuild03_law", 0);
- SetDynamicObjectMaterial(gerbeshi, 1, 3603, "bevmans01_la", "sjmlahus29", 0);
- gerbeshi = CreateDynamicObject(3467,1813.975,-1449.956,13.208,0.000,0.000,-8.299,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "Bow_Abpave_Gen", 0);
- gerbeshi = CreateDynamicObject(3467,1814.697,-1450.061,13.208,0.000,0.000,-8.299,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "Bow_Abpave_Gen", 0);
- gerbeshi = CreateDynamicObject(3467,1815.430,-1450.167,13.208,0.000,0.000,-8.299,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "Bow_Abpave_Gen", 0);
- gerbeshi = CreateDynamicObject(3467,1816.122,-1450.269,13.208,0.000,0.000,-8.299,-1,-1,-1,1000.000);
- SetDynamicObjectMaterial(gerbeshi, 0, 10101, "2notherbuildsfe", "Bow_Abpave_Gen", 0);
- SetDynamicObjectMaterial(gerbeshi, 1, 10101, "2notherbuildsfe", "Bow_Abpave_Gen", 0);
- gerbeshi = CreateDynamicObject(18665,1815.194,-1450.172,12.635,0.000,0.000,81.599,-1,-1,-1,1000.000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "LOS SANTOS POLICE DEPARTMENT", 80, "Ariel", 16, 1, -16777216, 0, 0);
- gerbeshi = CreateDynamicObject(18665,1815.115,-1450.160,12.635,0.000,0.000,81.599,-1,-1,-1,1000.000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "____________________________________-", 80, "Ariel", 16, 1, -16777216, 0, 0);
- gerbeshi = CreateDynamicObject(18665,1815.115,-1450.160,13.065,0.000,0.000,81.599,-1,-1,-1,1000.000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "____________________________________-", 80, "Ariel", 16, 1, -16777216, 0, 0);
- gerbeshi = CreateDynamicObject(18665,1816.015,-1450.293,12.145,0.000,0.000,81.599,-1,-1,-1,1000.000);
- SetDynamicObjectMaterialText(gerbeshi, 0, "DAVIS STATION 47TH", 90, "Ariel", 16, 1, -16777216, 0, 0);
- gerbeshi = CreateDynamicObject(6874,1818.326,-1410.914,12.249,0.000,0.000,0.000,-1,-1,-1,1000.000);
- //dvsgate = CreateDynamicObject(968,1806.355,-1448.792,13.400,0.000,90.000,-9.900,-1,-1,-1,1000.000);
-
- //PD INT
- CreateDynamicObject(19379,1569.4799800,-1653.7700200,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1569.4720500,-1663.3800000,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1579.9799800,-1653.7500000,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1579.9799800,-1663.3599900,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1559.0000000,-1673.0100100,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1579.9799800,-1672.9799800,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1558.9809600,-1682.6099900,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1569.4599600,-1682.6099900,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1579.9599600,-1682.6099900,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19435,1565.3199500,-1669.5700700,-42.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19435,1567.7099600,-1668.8599900,-42.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19435,1569.3112800,-1668.8599900,-42.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19435,1566.1099900,-1668.8599900,-42.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19435,1565.3199500,-1671.1601600,-42.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19435,1565.3199500,-1672.7600100,-42.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19435,1565.3199500,-1674.3499800,-42.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19379,1569.4818100,-1672.9718000,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19435,1565.3199500,-1675.5699500,-42.2000000,-0.0400000,0.0000000,0.0000000);
- CreateDynamicObject(19435,1566.1500200,-1676.2800300,-42.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19435,1567.7600100,-1676.2800300,-42.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19435,1569.3599900,-1676.2800300,-42.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2008,1566.1600300,-1672.0899700,-41.4100000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2008,1566.1500200,-1674.1300000,-41.4100000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2162,1565.9541000,-1670.3720700,-41.5200000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2162,1567.9100300,-1669.9000200,-41.5200000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2162,1568.1200000,-1675.4200400,-41.5200000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2162,1566.4499500,-1675.5400400,-41.5200000,0.0000000,0.0000000,134.0200000);
- CreateDynamicObject(1714,1567.9000200,-1671.3000500,-41.6200000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(1714,1567.9000200,-1673.4200400,-41.6200000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(18070,1567.7600100,-1672.6500200,-38.5600000,-180.0000000,0.0000000,90.1400000);
- CreateDynamicObject(19435,1565.3199500,-1671.1601600,-37.4400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19435,1565.3199500,-1669.5700700,-37.4400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19435,1566.1500200,-1676.2800300,-37.4400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19435,1567.7600100,-1676.2800300,-37.4400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19435,1569.3599900,-1676.2800300,-37.4400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19435,1566.1099900,-1668.8599900,-37.4400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19435,1567.7099600,-1668.8599900,-37.4400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19435,1569.3000500,-1668.8599900,-37.4400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2607,1569.0999800,-1675.7800300,-41.2200000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2606,1566.4499500,-1673.7099600,-38.8300000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2606,1566.4499500,-1671.7299800,-38.8300000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1553.6700400,-1678.1300000,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1553.6700400,-1668.5000000,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1553.6700400,-1687.7600100,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1536,1553.7299800,-1674.0600600,-41.6300000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1536,1553.6899400,-1671.0400400,-41.6300000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(1892,1554.3000500,-1673.8499800,-41.5900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1892,1554.3000500,-1672.2500000,-41.5900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19435,1565.3199500,-1672.7399900,-37.4400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19435,1565.3199500,-1674.3499800,-37.4400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19435,1565.3199500,-1675.5699500,-37.4400000,-0.0400000,0.0000000,0.0000000);
- CreateDynamicObject(2816,1556.1330600,-1664.5841100,-41.0800000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1886,1569.6700400,-1661.9899900,-37.9600000,12.0100000,0.0000000,-52.1400000);
- CreateDynamicObject(1886,1579.0932600,-1692.9338400,-37.9500000,12.0000000,0.0000000,-149.0000000);
- CreateDynamicObject(1886,1569.7700200,-1674.1700400,-38.0600000,13.3700000,-6.3000000,-115.6200000);
- CreateDynamicObject(19379,1590.4397000,-1682.6099900,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1590.4699700,-1663.3800000,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1600.9799800,-1653.7500000,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1600.9599600,-1663.3800000,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1600.9599600,-1672.9799800,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1600.9799800,-1682.6099900,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19450,1575.0400400,-1683.8700000,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1571.8700000,-1661.5899700,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1578.2900400,-1661.5899700,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1575.0300300,-1651.7800300,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1584.5500500,-1651.7800300,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(14782,1574.6099900,-1652.1899400,-40.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(14782,1579.2152100,-1658.3364300,-40.5000000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2846,1577.6976300,-1660.8128700,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2846,1570.4499500,-1653.1500200,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2846,1573.3762200,-1654.0268600,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2400,1570.4177200,-1657.1063200,-40.8300000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2689,1570.8951400,-1654.8488800,-39.4900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2689,1570.8951400,-1657.2078900,-39.4900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2689,1570.8951400,-1656.0030500,-39.4900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2704,1570.8762200,-1655.4298100,-40.3100000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2704,1570.8762200,-1656.6164600,-40.3100000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2704,1570.8762200,-1654.2407200,-40.3100000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19141,1570.7961400,-1655.4303000,-38.7700000,0.0000000,-90.0000000,-90.0000000);
- CreateDynamicObject(19141,1570.7961400,-1654.8569300,-38.7700000,0.0000000,-90.0000000,-90.0000000);
- CreateDynamicObject(19141,1570.7961400,-1654.2248500,-38.7700000,0.0000000,-90.0000000,-90.0000000);
- CreateDynamicObject(19141,1570.7961400,-1657.1804200,-38.7700000,0.0000000,-90.0000000,-90.0000000);
- CreateDynamicObject(19141,1570.7961400,-1656.5832500,-38.7700000,0.0000000,-90.0000000,-90.0000000);
- CreateDynamicObject(19141,1570.7961400,-1655.9887700,-38.7700000,0.0000000,-90.0000000,-90.0000000);
- CreateDynamicObject(19142,1570.7982200,-1653.8885500,-41.3500000,0.0000000,-90.0000000,-90.0000000);
- CreateDynamicObject(19142,1570.7895500,-1657.0673800,-41.3500000,0.0000000,-90.0000000,-90.0000000);
- CreateDynamicObject(19142,1570.8206800,-1656.2821000,-41.3500000,0.0000000,-90.0000000,-90.0000000);
- CreateDynamicObject(19142,1570.7379200,-1655.4675300,-41.3500000,0.0000000,-90.0000000,-90.0000000);
- CreateDynamicObject(19142,1570.8016400,-1654.6700400,-41.3500000,0.0000000,-90.0000000,-90.0000000);
- CreateDynamicObject(19141,1571.1099900,-1652.7600100,-41.4700000,0.0000000,0.0000000,-108.1500000);
- CreateDynamicObject(19450,1584.6201200,-1661.5899700,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1590.8641400,-1650.3618200,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19379,1590.4530000,-1672.9603300,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19355,1605.4599600,-1650.0565200,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19355,1603.9599600,-1683.7099600,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19447,1605.4599600,-1678.9399400,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19447,1605.4599600,-1669.3100600,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19447,1605.4599600,-1659.6800500,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19355,1605.4599600,-1653.2600100,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19447,1605.6500200,-1680.3299600,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19385,1600.9641100,-1682.0200200,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19303,1600.9399400,-1681.8800000,-40.3500000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19385,1600.9200400,-1678.6300000,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19303,1600.9399400,-1678.5000000,-40.3500000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19447,1605.6500200,-1676.9599600,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19385,1600.9200400,-1675.2900400,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19303,1600.9399400,-1675.1500200,-40.3500000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19447,1605.6500200,-1673.5999800,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19385,1600.9200400,-1671.9200400,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19447,1605.6500200,-1670.2299800,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19385,1600.9200400,-1668.5500500,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19447,1605.6500200,-1666.8599900,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19385,1600.9200400,-1665.1899400,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19447,1605.6500200,-1663.5000000,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19385,1600.9200400,-1661.8199500,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19447,1605.6500200,-1660.1300000,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19385,1600.9200400,-1658.4499500,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19447,1605.6500200,-1656.7600100,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19303,1600.9399400,-1671.7800300,-40.3500000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19303,1600.9399400,-1668.4100300,-40.3500000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19303,1600.9399400,-1665.0500500,-40.3500000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19303,1600.9399400,-1661.6800500,-40.3500000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19303,1600.9399400,-1658.3100600,-40.3500000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19303,1599.6367200,-1650.3160400,-40.3500000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2602,1604.8100600,-1680.7900400,-40.9100000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2602,1604.8100600,-1677.3900100,-40.9100000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2602,1604.8100600,-1674.0799600,-40.9100000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2602,1604.8100600,-1670.7600100,-40.9100000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2602,1604.8100600,-1667.2800300,-40.9100000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2602,1604.7900400,-1663.9599600,-40.9100000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(14401,1577.6868900,-1657.6147500,-41.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2602,1604.7900400,-1660.5600600,-40.9100000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2602,1604.7900400,-1657.2500000,-40.9100000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1800,1606.3700000,-1683.0799600,-41.5900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1800,1606.3700000,-1679.5999800,-41.5900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1800,1606.3700000,-1676.2800300,-41.5900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1800,1606.3700000,-1672.8800000,-41.5900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1800,1606.3700000,-1669.4799800,-41.5900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1800,1606.3700000,-1666.0799600,-41.5900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1800,1606.3700000,-1662.7700200,-41.5900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1800,1606.3700000,-1659.3700000,-41.5900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2165,1602.0166000,-1654.2836900,-41.5900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2166,1603.0120800,-1656.2144800,-41.5900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1671,1603.6530800,-1654.7641600,-41.1600000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(19379,1558.9799800,-1653.7700200,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1600.9499500,-1682.5899700,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(2172,1575.4397000,-1680.3420400,-41.6000000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2172,1576.4952400,-1674.9021000,-41.6000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2172,1574.5871600,-1674.9021000,-41.6000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2172,1583.4665500,-1670.4017300,-41.6000000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2172,1575.8386200,-1670.4017300,-41.6000000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2172,1577.3610800,-1680.3377700,-41.6000000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2172,1578.4117400,-1674.9021000,-41.6000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2172,1581.5665300,-1670.4017300,-41.6000000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2172,1577.7680700,-1670.4017300,-41.6000000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2172,1579.6702900,-1670.4017300,-41.6000000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1714,1574.9160200,-1679.1971400,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1578.7353500,-1675.7907700,-41.5900000,0.0000000,0.0000000,120.0000000);
- CreateDynamicObject(1714,1579.3883100,-1669.5835000,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1580.8925800,-1667.6417200,-41.5900000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1714,1582.9335900,-1669.3886700,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1585.0576200,-1669.3028600,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1582.9075900,-1667.5893600,-41.5900000,0.0000000,0.0000000,190.0000000);
- CreateDynamicObject(1714,1581.2354700,-1669.4923100,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1584.7464600,-1675.3377700,-41.5900000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1714,1581.0141600,-1679.5096400,-41.5900000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2611,1589.2265600,-1674.8802500,-39.5600000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2612,1589.2246100,-1673.3388700,-39.5600000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(19450,1594.2900400,-1674.7099600,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1584.6600300,-1674.7099600,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1581.5200200,-1661.5899700,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1570.3399700,-1679.0500500,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1570.3399700,-1659.7900400,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19388,1575.0999800,-1661.5899700,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1579.9499500,-1656.6899400,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1570.3399700,-1650.1600300,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1579.9499500,-1647.0500500,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19388,1587.9399400,-1661.5899700,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1591.1400100,-1661.5899700,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1590.4200400,-1656.6899400,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1590.4200400,-1647.0500500,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1594.3499800,-1661.5899700,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19388,1597.5600600,-1661.5899700,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1600.7700200,-1661.5899700,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1600.7700200,-1656.6899400,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1600.7700200,-1647.0500500,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1607.1899400,-1661.5899700,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1575.1899400,-1650.1600300,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1584.6400100,-1650.1600300,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1594.2700200,-1650.1600300,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1603.9000200,-1650.1600300,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19388,1600.7099600,-1674.7099600,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1607.1300000,-1674.7099600,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1571.8199500,-1674.7099600,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1585.1899400,-1679.5899700,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1575.0899700,-1687.2600100,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1584.7199700,-1687.2600100,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2607,1578.1099900,-1684.5899700,-37.5300000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2357,1581.9399400,-1676.9399400,-37.5300000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2357,1581.9399400,-1679.9200400,-37.5300000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2357,1574.0999800,-1676.9399400,-37.5300000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2357,1574.0999800,-1679.9200400,-37.5300000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1581.5725100,-1702.6069300,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1585.1899400,-1689.2199700,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2357,1581.9399400,-1682.7600100,-37.5300000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2357,1574.0999800,-1682.7600100,-37.5300000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1572.7199700,-1675.2399900,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2611,1579.1099900,-1687.1300000,-35.7000000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2612,1577.4799800,-1687.1300000,-35.7000000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(14532,1580.2800300,-1685.9599600,-36.9600000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1574.2500000,-1675.2399900,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1575.7700200,-1675.2399900,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1583.5699500,-1675.2399900,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1582.1099900,-1675.2399900,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1580.4499500,-1675.2399900,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1572.7199700,-1678.0500500,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1574.2500000,-1678.0500500,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1575.7700200,-1678.0500500,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1580.4499500,-1678.0500500,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1582.1099900,-1678.0500500,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1583.5699500,-1678.0500500,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1572.7199700,-1681.0699500,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1574.2500000,-1681.0699500,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1575.7700200,-1681.0699500,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1580.4499500,-1681.0699500,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1582.1099900,-1681.0699500,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1583.5699500,-1681.0699500,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1578.0400400,-1686.1200000,-37.9700000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1502,1577.4499500,-1674.7299800,-37.9400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2357,1596.2952900,-1679.1953100,-37.5300000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1590.2399900,-1679.5899700,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1590.2399900,-1689.2199700,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2357,1600.5562700,-1679.1953100,-37.5300000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2357,1604.8173800,-1679.1953100,-37.5300000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19379,1611.4599600,-1672.9799800,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1611.4499500,-1682.5899700,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(1714,1591.7092300,-1681.4812000,-37.9500000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2357,1604.8173800,-1682.1303700,-37.5300000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2357,1600.5562700,-1682.1303700,-37.5300000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2357,1596.2952900,-1682.1303700,-37.5300000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1591.7092300,-1679.8092000,-37.9500000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19379,1590.4799800,-1682.5899700,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(1671,1594.4643600,-1683.6960400,-37.4700000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1671,1596.2552500,-1683.6960400,-37.4700000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1671,1597.9704600,-1683.6960400,-37.4700000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1671,1599.9068600,-1683.6960400,-37.4700000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1671,1601.8564500,-1683.6960400,-37.4700000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1671,1603.7121600,-1683.6960400,-37.4700000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1671,1605.5618900,-1683.6960400,-37.4700000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1671,1607.4831500,-1683.6960400,-37.4700000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1671,1607.4831500,-1677.6300000,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1605.5618900,-1677.6300000,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1603.7121600,-1677.6300000,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1599.9068600,-1677.6300000,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1601.8564500,-1677.6300000,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1597.9704600,-1677.6300000,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1596.2552500,-1677.6300000,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1594.4643600,-1677.6300000,-37.4700000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1613.8767100,-1673.1792000,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19379,1611.4599600,-1663.3800000,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19450,1613.8767100,-1682.7941900,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1613.8767100,-1663.6554000,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1594.9200400,-1687.2600100,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1604.5500500,-1687.2600100,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(14532,1591.5383300,-1686.0210000,-36.9600000,0.0000000,0.0000000,-47.0000000);
- CreateDynamicObject(2007,1593.0200200,-1686.8199500,-37.9800000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2007,1594.0200200,-1686.8199500,-37.9800000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2007,1595.0200200,-1686.8199500,-37.9800000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2007,1596.0200200,-1686.8199500,-37.9800000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1502,1599.9200400,-1674.7299800,-37.9400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1502,1574.3100600,-1661.6200000,-37.9400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1502,1587.1600300,-1661.6200000,-37.9400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1502,1596.7700200,-1661.6200000,-37.9400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1575.0000000,-1652.1500200,-37.9400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1704,1575.7199700,-1656.0100100,-37.9400000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1704,1574.0200200,-1656.0100100,-37.9400000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2611,1574.4300500,-1650.2900400,-35.8100000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2612,1576.2500000,-1650.2900400,-35.8100000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2165,1575.5600600,-1653.6300000,-37.9400000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2166,1573.6099900,-1653.4200400,-37.9400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2186,1577.4899900,-1653.6600300,-37.9400000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2007,1579.4599600,-1655.8499800,-37.9800000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2007,1579.4599600,-1656.8499800,-37.9800000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2007,1579.4599600,-1657.8499800,-37.9800000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2007,1589.9000200,-1655.8499800,-37.9800000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2007,1589.9000200,-1656.8499800,-37.9800000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2007,1589.9000200,-1657.8499800,-37.9800000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(1704,1584.2399900,-1656.0100100,-37.9400000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1704,1585.9399400,-1656.0100100,-37.9400000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2186,1587.5100100,-1653.6600300,-37.9400000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2165,1585.5799600,-1653.6300000,-37.9400000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2166,1583.6200000,-1653.4200400,-37.9400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1714,1585.2199700,-1652.1500200,-37.9400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2612,1586.0500500,-1650.2900400,-35.8100000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2611,1584.2299800,-1650.2900400,-35.8100000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2612,1596.6999500,-1650.2900400,-35.8100000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2611,1594.8800000,-1650.2900400,-35.8100000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2186,1598.1600300,-1653.6600300,-37.9400000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2165,1596.2299800,-1653.6300000,-37.9400000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2166,1594.2700200,-1653.4200400,-37.9400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1714,1595.6600300,-1652.1500200,-37.9400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1704,1596.5899700,-1656.0100100,-37.9400000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1704,1594.8900100,-1656.0100100,-37.9400000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2007,1600.3399700,-1655.8499800,-37.9800000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2007,1600.3399700,-1656.8499800,-37.9800000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2007,1600.3399700,-1657.8499800,-37.9800000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(19450,1579.6622300,-1688.7652600,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19379,1579.9627700,-1701.8698700,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19450,1582.2800300,-1695.2257100,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1579.6622300,-1698.3922100,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19379,1579.9799800,-1711.5100100,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19388,1579.6622300,-1704.8100600,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1582.2800300,-1704.7868700,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19388,1582.2800300,-1714.3999000,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1579.6622300,-1708.0200200,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19388,1579.6622300,-1711.2299800,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1579.6622300,-1714.4399400,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19379,1569.4799800,-1701.8599900,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1569.4799800,-1711.4899900,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1590.4599600,-1701.8595000,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1590.4599600,-1711.5100100,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19450,1574.8178700,-1703.2415800,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1571.1503900,-1715.9499500,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1585.5000000,-1715.9499500,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1590.3800000,-1711.2199700,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1590.3800000,-1701.5899700,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1590.3800000,-1691.9599600,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1587.0491900,-1687.2471900,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2297,1585.7099600,-1687.6400100,-41.5900000,0.0000000,0.0000000,-44.0000000);
- CreateDynamicObject(2229,1588.0899700,-1687.3599900,-41.6000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2229,1588.6200000,-1687.3599900,-41.6000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2229,1585.3599900,-1687.3599900,-41.6000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2229,1584.8100600,-1687.3599900,-41.6000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1703,1587.2900400,-1694.2500000,-41.5900000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1703,1583.7500000,-1692.5999800,-41.5900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1703,1588.8900100,-1690.5400400,-41.5900000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2111,1586.3900100,-1691.7099600,-41.2200000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2816,1586.3499800,-1691.7099600,-40.8100000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1742,1582.2299800,-1697.5699500,-41.6000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2014,1589.8900100,-1715.3900100,-41.7600000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2017,1589.8900100,-1714.3900100,-41.7600000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2014,1589.8900100,-1713.3900100,-41.7600000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2013,1589.8900100,-1711.4000200,-41.7600000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2016,1589.8900100,-1710.4000200,-41.7600000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2147,1589.7900400,-1708.3499800,-41.5900000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2631,1586.7800300,-1703.4699700,-41.6000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2628,1587.7700200,-1703.6999500,-41.5500000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2628,1585.8399700,-1703.6999500,-41.5500000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2630,1585.9599600,-1700.7099600,-41.5900000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2627,1587.3599900,-1700.7900400,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2627,1588.8499800,-1700.7900400,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2637,1584.3800000,-1709.4499500,-41.1600000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1671,1582.8299600,-1709.3700000,-41.1600000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1671,1584.3399700,-1707.4300500,-41.1600000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,1585.8100600,-1709.3700000,-41.1600000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(1671,1584.3399700,-1711.5500500,-41.1600000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1502,1579.6622300,-1705.5600600,-41.5900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1502,1579.6622300,-1711.9799800,-41.5900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1502,1582.2900400,-1715.1699200,-41.5900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1574.8061500,-1693.5892300,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19379,1590.4799800,-1711.5100100,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1579.9954800,-1711.5100100,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19450,1570.2800300,-1666.2235100,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1559.8435100,-1686.5419900,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(18070,1567.8862300,-1672.5781300,-41.0921000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(19450,1570.2800300,-1679.0699500,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1569.4720500,-1686.5419900,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19388,1570.2800300,-1672.6422100,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1552.5732400,-1661.5991200,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1568.5899700,-1661.5899700,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1565.3640100,-1661.5899700,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1562.1899400,-1661.5899700,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19388,1558.9771700,-1661.5899700,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1553.6656500,-1649.2708700,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1553.6700400,-1662.1041300,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1553.6700400,-1658.9041700,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19388,1553.6700400,-1655.6949500,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19379,1548.4848600,-1663.3800000,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1548.4848600,-1653.7700200,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1548.4821800,-1644.1501500,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,15.6449000,-1644.1500200,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1558.9799800,-1644.1301300,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1569.4799800,-1644.1301300,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1579.9799800,-1644.1302500,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1590.4799800,-1644.1302500,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1600.9809600,-1644.1102300,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(1495,1556.8391100,-1661.6097400,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19379,1580.0260000,-1682.6200000,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19450,1564.2701400,-1701.7257100,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,-1656.6899400,-39.8400000,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1579.6398900,-1656.7022700,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1579.6398900,-1659.8957500,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1575.0767800,-1661.5899700,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19388,1570.3000500,-1659.8891600,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1570.3000500,-1656.6794400,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1570.3000500,-1653.4774200,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1543.1572300,-1656.7255900,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1542.9696000,-1661.6015600,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1543.1572300,-1647.0914300,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1543.1572300,-1637.4809600,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1553.6700400,-1639.6809100,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1539.1638200,-1639.2740500,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1589.3491200,-1655.2552500,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2400,1579.7554900,-1659.0372300,-41.1700000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2400,1585.4649700,-1661.4632600,-41.1700000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2985,1580.2564700,-1660.9952400,-41.5930000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2985,1581.4713100,-1661.0399200,-41.5930000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(18885,1580.2839400,-1655.1882300,-40.4936000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19388,1579.6398900,-1653.4902300,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2886,1579.5416300,-1654.5808100,-40.0498000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(356,1585.3444800,-1661.2569600,-41.3304000,25.0000000,-90.0000000,0.0000000);
- CreateDynamicObject(372,1583.0549300,-1661.4670400,-40.2369000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(360,1579.8780500,-1656.3698700,-40.3062000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(353,1584.2557400,-1661.4348100,-40.2862000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(356,1583.6744400,-1661.1533200,-41.3304000,25.0000000,-90.0000000,0.0000000);
- CreateDynamicObject(356,1583.3446000,-1661.1599100,-41.3304000,25.0000000,-90.0000000,0.0000000);
- CreateDynamicObject(356,1583.0235600,-1661.1274400,-41.3304000,25.0000000,-90.0000000,0.0000000);
- CreateDynamicObject(353,1584.2557400,-1661.1948200,-40.2862000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(353,1584.2557400,-1660.9748500,-40.2862000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(353,1584.2557400,-1660.7547600,-40.2862000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(372,1583.0549300,-1661.2869900,-40.2369000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(372,1583.0549300,-1661.1070600,-40.2369000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(372,1583.0549300,-1660.9470200,-40.2369000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(360,1580.2181400,-1656.3698700,-40.3062000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(360,1580.2580600,-1658.3299600,-40.3062000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(360,1579.9581300,-1658.3299600,-40.3062000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(358,1585.2015400,-1661.2827100,-39.2319000,69.0000000,-4.0000000,11.0000000);
- CreateDynamicObject(358,1583.9075900,-1661.3398400,-39.2319000,69.0000000,-4.0000000,11.0000000);
- CreateDynamicObject(358,1582.6627200,-1661.2434100,-39.2319000,69.0000000,-4.0000000,11.0000000);
- CreateDynamicObject(358,1580.1762700,-1658.4565400,-39.2319000,85.0000000,-98.0000000,11.0000000);
- CreateDynamicObject(358,1579.9294400,-1657.3389900,-39.2319000,85.0000000,-98.0000000,11.0000000);
- CreateDynamicObject(358,1579.9233400,-1656.2691700,-39.2319000,85.0000000,-98.0000000,11.0000000);
- CreateDynamicObject(1722,1570.1010700,-1663.3852500,-41.5967000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(950,1569.9710700,-1662.3358200,-41.0378000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1722,1570.1010700,-1664.0452900,-41.5967000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1722,1570.1010700,-1664.7053200,-41.5967000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1722,1570.1010700,-1665.3653600,-41.5967000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1722,1570.1010700,-1666.0252700,-41.5967000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1722,1570.1010700,-1666.6853000,-41.5967000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1722,1570.1010700,-1667.3653600,-41.5967000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(950,1569.9710700,-1668.2480500,-41.0378000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(3963,1562.9477500,-1661.6988500,-39.5412000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(3962,1570.1348900,-1665.3575400,-39.5480000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(3964,1553.7716100,-1664.5623800,-39.4205000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1706,1554.3294700,-1664.9644800,-41.5958000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1822,1555.6656500,-1665.0461400,-41.5954000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2295,1556.1540500,-1662.7387700,-41.5755000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2295,1556.1540500,-1666.3819600,-41.5755000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(19379,1559.0000000,-1663.3800000,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(2241,1554.4553200,-1662.3375200,-41.0737000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1706,1562.4766800,-1662.1578400,-41.5958000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2126,1564.8059100,-1662.6469700,-41.5944000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1706,1567.1251200,-1662.1578400,-41.5958000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2816,1565.3475300,-1662.1662600,-41.0800000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1706,1551.1101100,-1660.9486100,-41.5958000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2816,1548.1578400,-1661.1754200,-41.0800000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2126,1547.7270500,-1661.4488500,-41.5944000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1706,1546.5196500,-1660.9486100,-41.5958000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(14598,1513.0571300,-1654.0571300,-53.1771200,180.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1540.2359600,-1653.8831800,-42.1200000,180.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2162,1552.2226600,-1653.7840600,-41.5963000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2162,1550.4414100,-1653.7840600,-41.5963000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(19358,1548.9438500,-1653.8831800,-42.1200000,180.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1552.1450200,-1653.8831800,-42.1200000,180.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1548.7827100,-1653.8831800,-36.6200000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1542.4307900,-1653.8831800,-36.6200000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(9131,1545.0505400,-1653.8831800,-40.4784000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(9131,1547.3116500,-1653.8831800,-40.4784000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(9131,1547.3116500,-1653.8831800,-38.2184000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(9131,1545.0505400,-1653.8831800,-38.2184000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(9131,1546.1804200,-1653.9032000,-38.7096000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(1569,1545.4356700,-1653.8831800,-41.5962000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1568.1345200,-1643.9495800,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1577.7301000,-1643.9495800,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19447,1603.9180900,-1683.8700000,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19447,1604.7995600,-1650.3618200,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19385,1598.3737800,-1650.3618200,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19388,1594.0596900,-1650.3618200,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1595.7109400,-1655.0825200,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1595.7081300,-1664.5578600,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19447,1595.8795200,-1655.0810500,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19447,1595.8795200,-1664.7010500,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19447,1595.8795200,-1674.3210400,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19447,1595.8795200,-1683.9610600,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19355,1600.7128900,-1683.7099600,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19355,1597.4929200,-1683.7099600,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1595.7081300,-1674.1810300,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1595.7081300,-1680.6065700,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1595.7081300,-1683.8297100,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1589.3491200,-1664.8951400,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19379,1579.9799800,-1692.2399900,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1590.4599600,-1692.2399900,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1569.4799800,-1692.2399900,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19388,1570.3399700,-1666.2022700,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19388,1589.3491200,-1671.3164100,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1589.3491200,-1677.7351100,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1581.4517800,-1683.8700000,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1584.5896000,-1683.8700000,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1587.7879600,-1683.8700000,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1589.3491200,-1682.9412800,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1593.4453100,-1687.2471900,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1596.6391600,-1687.2471900,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1595.7081300,-1687.0378400,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19428,1596.6230500,-1650.3618200,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19388,1593.7700200,-1643.9404300,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1596.9660600,-1643.9404300,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1600.1640600,-1643.9404300,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19388,1603.3668200,-1643.9404300,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19379,1600.9809600,-1634.5102500,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1590.4799800,-1634.5102500,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1579.9799800,-1634.5102500,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1569.4799800,-1634.5102500,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1558.9799800,-1634.4902300,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19450,1605.0544400,-1645.4030800,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1605.0544400,-1635.7799100,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1597.4842500,-1642.2876000,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19404,1597.4842500,-1639.0821500,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1502,1592.9971900,-1643.9477500,-41.5964000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1502,1602.5726300,-1643.9477500,-41.5964000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2607,1597.0092800,-1638.9470200,-41.1920000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2008,1596.9342000,-1640.3778100,-41.5920000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(1714,1595.5362500,-1639.1613800,-41.5942000,0.0000000,0.0000000,100.0000000);
- CreateDynamicObject(1651,1597.5550500,-1639.1400100,-40.0270000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1595.7283900,-1641.2448700,-41.5942000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1597.4842500,-1635.8845200,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2008,1596.8905000,-1636.4440900,-41.5920000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(19450,1600.1422100,-1634.1890900,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1590.5222200,-1634.1890900,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1590.4200400,-1639.0378400,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1886,1597.8514400,-1634.5485800,-38.1089000,10.0000000,0.0000000,45.0000000);
- CreateDynamicObject(2180,1600.8579100,-1638.9397000,-41.5957000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2007,1591.0841100,-1642.4617900,-41.5861000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2007,1591.0841100,-1641.4838900,-41.5861000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2007,1591.0841100,-1639.5191700,-41.5861000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2949,1579.6320800,-1652.7838100,-41.6121000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1502,1570.3147000,-1660.6395300,-41.6021000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1714,1601.2833300,-1637.6451400,-41.5942000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1601.2364500,-1640.3859900,-41.5942000,0.0000000,0.0000000,160.0000000);
- CreateDynamicObject(2007,1591.0841100,-1640.5039100,-41.5861000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2007,1591.0841100,-1638.5391800,-41.5861000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2007,1591.0841100,-1637.5592000,-41.5861000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2007,1591.0841100,-1636.5592000,-41.5861000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2007,1591.0841100,-1635.5792200,-41.5861000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2608,1592.2542700,-1634.5041500,-40.9552000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2608,1594.1342800,-1634.5041500,-40.9552000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2608,1596.0142800,-1634.5041500,-40.9552000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1595.6335400,-1636.8757300,-41.5942000,0.0000000,0.0000000,60.0000000);
- CreateDynamicObject(2001,1590.9433600,-1634.5881300,-41.5943900,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2001,1590.9019800,-1643.5111100,-41.5943900,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2001,1597.0551800,-1643.4782700,-41.5944000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1580.8822000,-1634.1890900,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1571.2622100,-1634.1890900,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1561.6422100,-1634.1890900,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1553.6700400,-1630.0609100,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19388,1558.5772700,-1643.9495800,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1561.7392600,-1643.9495800,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1555.3783000,-1643.9495800,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1590.5618900,-1643.9404300,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19388,1587.3520500,-1643.9404300,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1584.1474600,-1643.9404300,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1573.1651600,-1639.0699500,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1502,1586.5570100,-1643.9593500,-41.5964000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1502,1557.7872300,-1643.9560500,-41.5964000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(3077,1574.4757100,-1636.2789300,-41.5967000,0.0000000,0.0000000,70.0000000);
- CreateDynamicObject(3077,1571.9091800,-1636.1554000,-41.5967000,0.0000000,0.0000000,-70.0000000);
- CreateDynamicObject(2095,1576.4265100,-1639.1568600,-41.5977000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2095,1569.8844000,-1639.1568600,-41.5977000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1502,1553.6917700,-1656.4458000,-41.5964000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2185,1580.5141600,-1640.7164300,-41.6021000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2185,1580.5047600,-1637.5087900,-41.6021000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2185,1580.5047600,-1634.5120800,-41.6021000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2185,1582.8142100,-1640.7238800,-41.6021000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2185,1582.8142100,-1637.5087900,-41.6021000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2185,1582.8142100,-1634.5120800,-41.6021000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2185,1585.1142600,-1640.7426800,-41.6021000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2185,1587.4141800,-1640.7426800,-41.6021000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2185,1585.1142600,-1637.5087900,-41.6021000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2185,1585.1142600,-1634.5120800,-41.6021000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2185,1587.4141800,-1637.5087900,-41.6021000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2185,1587.4141800,-1634.5120800,-41.6021000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2309,1582.1361100,-1641.5402800,-41.5793000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2309,1582.0476100,-1638.3690200,-41.5793000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2309,1582.0618900,-1635.2548800,-41.5793000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2309,1584.4674100,-1641.5656700,-41.5793000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2309,1588.9790000,-1641.6145000,-41.5793000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2309,1584.4674100,-1638.3690200,-41.5793000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2309,1584.4674100,-1635.2548800,-41.5793000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2309,1586.7965100,-1641.5472400,-41.5793000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2309,1586.7965100,-1638.3690200,-41.5793000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2309,1586.7965100,-1635.2548800,-41.5793000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2309,1588.9790000,-1638.3690200,-41.5793000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2309,1588.9790000,-1635.2548800,-41.5793000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1746,1573.8603500,-1642.4333500,-41.5975000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1746,1573.8606000,-1641.5075700,-41.5975000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1746,1573.8588900,-1640.5617700,-41.5975000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1746,1573.8570600,-1639.6158400,-41.5975000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(14401,1568.4818100,-1629.1151100,-41.5000000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1746,1572.4808300,-1642.4923100,-41.5975000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2185,1565.7616000,-1636.1167000,-41.6021000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2309,1564.0982700,-1635.3243400,-41.5793000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2185,1563.4376200,-1636.1167000,-41.6021000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2185,1561.1066900,-1636.1167000,-41.6021000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2185,1558.6980000,-1636.1167000,-41.6021000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2185,1556.3430200,-1636.1167000,-41.6021000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2185,1565.7616000,-1639.4622800,-41.6021000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2185,1565.7616000,-1642.5413800,-41.6021000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2185,1563.4376200,-1639.4622800,-41.6021000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2185,1563.4376200,-1642.5413800,-41.6021000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2185,1561.1066900,-1639.4622800,-41.6021000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2185,1561.1066900,-1642.5413800,-41.6021000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2185,1558.6980000,-1639.4622800,-41.6021000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2185,1556.3430200,-1639.4622800,-41.6021000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2185,1556.3430200,-1642.5413800,-41.6021000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2185,1558.6980000,-1642.5413800,-41.6021000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2309,1564.1208500,-1638.6263400,-41.5793000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2309,1564.0636000,-1641.7515900,-41.5793000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2309,1561.7373000,-1635.2828400,-41.5793000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2309,1559.3375200,-1635.2580600,-41.5793000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2309,1556.9930400,-1635.3259300,-41.5793000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2309,1554.7020300,-1635.2889400,-41.5793000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2309,1561.7373000,-1638.6263400,-41.5793000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2309,1561.7373000,-1641.7515900,-41.5793000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2309,1559.3375200,-1638.6263400,-41.5793000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2309,1559.3375200,-1641.7515900,-41.5793000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2309,1556.9930400,-1638.6263400,-41.5793000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2309,1556.9930400,-1641.7515900,-41.5793000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2309,1554.7020300,-1638.6263400,-41.5793000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2309,1554.7020300,-1641.7515900,-41.5793000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(1746,1572.4808300,-1641.5518800,-41.5975000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1746,1572.4808300,-1640.6186500,-41.5975000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1746,1572.4808300,-1639.6887200,-41.5975000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2001,1573.7847900,-1643.4409200,-41.5943900,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2001,1572.4783900,-1643.5008500,-41.5943900,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19388,1595.8717000,-1645.6265900,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1595.8717000,-1648.8065200,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1548.2694100,-1641.8024900,-41.5942000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2207,1547.2869900,-1643.8120100,-41.5980000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19379,1548.4625200,-1634.5065900,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19358,1555.2219200,-1634.1890900,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1545.5892300,-1639.2708700,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1548.7801500,-1639.2708700,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19388,1551.9821800,-1639.2708700,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1550.2126500,-1686.5419900,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(18757,1559.9865700,-1684.6320800,-39.5962000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(18756,1559.9681400,-1684.6320800,-39.5962000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2204,1586.5921600,-1661.8629200,-41.5969500,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2197,1579.0449200,-1663.2346200,-41.5934000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1742,1572.2724600,-1661.8308100,-41.6126000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2197,1579.7707500,-1663.2287600,-41.5934000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2197,1580.4802200,-1663.2072800,-41.5934000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2161,1576.4303000,-1661.8258100,-41.5877000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2162,1574.6341600,-1661.8258100,-41.5077000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2163,1574.6057100,-1661.8452100,-41.5998000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2164,1570.4112500,-1666.0510300,-41.6077000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2167,1570.3734100,-1664.2380400,-41.5995000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2200,1584.3813500,-1661.8692600,-41.6094000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2204,1581.3902600,-1661.8787800,-41.5993200,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2193,1570.9123500,-1675.8217800,-41.5989000,0.0000000,0.0000000,1.0000000);
- CreateDynamicObject(2198,1584.3363000,-1666.5679900,-41.5902000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2181,1570.8084700,-1668.4362800,-41.6016000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2182,1571.8087200,-1670.4344500,-41.6016000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2197,1578.3646200,-1663.2437700,-41.5934000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2197,1577.7042200,-1663.2735600,-41.5934000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2167,1570.3748800,-1663.3575400,-41.5995000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2181,1570.9995100,-1677.7641600,-41.6016000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2167,1573.6590600,-1661.8148200,-41.5995000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2172,1585.4189500,-1670.4017300,-41.6000000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2198,1585.3516800,-1665.5839800,-41.5902000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2198,1582.3422900,-1666.5679900,-41.5902000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2198,1580.4348100,-1666.5679900,-41.5902000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2198,1578.4741200,-1666.5679900,-41.5902000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2198,1576.5137900,-1666.5679900,-41.5902000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2198,1574.4934100,-1666.5679900,-41.5902000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1584.9323700,-1667.1060800,-41.5900000,0.0000000,0.0000000,170.0000000);
- CreateDynamicObject(1714,1577.5914300,-1669.5599400,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1575.6881100,-1669.5968000,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1579.0034200,-1667.6165800,-41.5900000,0.0000000,0.0000000,190.0000000);
- CreateDynamicObject(1714,1576.9427500,-1667.8441200,-41.5900000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1714,1574.7856400,-1667.9981700,-41.5900000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2198,1583.4139400,-1665.5383300,-41.5902000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2198,1581.4375000,-1665.5372300,-41.5902000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2198,1579.4582500,-1665.5379600,-41.5902000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2198,1577.5360100,-1665.5791000,-41.5902000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2198,1575.5739700,-1665.5711700,-41.5902000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2172,1580.3260500,-1674.9021000,-41.6000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2172,1582.2513400,-1674.9021000,-41.6000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2172,1584.1710200,-1674.9021000,-41.6000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(14598,1584.1059600,-1665.7177700,-43.6771000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1578.5231900,-1680.8435100,-42.1200000,180.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2193,1572.2209500,-1680.3167700,-41.5989000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1575.6680900,-1674.2407200,-42.1200000,180.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1578.8271500,-1674.2407200,-42.1200000,180.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1581.8366700,-1674.2407200,-42.1200000,180.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1584.3098100,-1674.2407200,-42.1200000,180.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2172,1579.2811300,-1680.3289800,-41.6000000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2172,1581.1822500,-1680.3209200,-41.6000000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2172,1583.0792200,-1680.3079800,-41.6000000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2172,1584.9794900,-1680.3167700,-41.6000000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(19358,1584.9322500,-1680.8435100,-42.1200000,180.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1714,1582.6894500,-1675.9476300,-41.5900000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1714,1580.6264600,-1675.8466800,-41.5900000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1714,1577.0037800,-1675.3524200,-41.5900000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1714,1574.9187000,-1676.1486800,-41.5900000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1714,1572.3651100,-1679.2547600,-41.5900000,0.0000000,0.0000000,-40.0000000);
- CreateDynamicObject(1714,1572.0722700,-1677.5593300,-41.5900000,0.0000000,0.0000000,-91.0000000);
- CreateDynamicObject(1714,1571.8990500,-1676.2683100,-41.5900000,0.0000000,0.0000000,-156.0000000);
- CreateDynamicObject(1714,1576.9210200,-1679.2915000,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1578.8785400,-1679.1754200,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1582.6032700,-1679.4447000,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1584.5026900,-1679.3659700,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2200,1589.2850300,-1679.3619400,-41.6094000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2204,1589.2611100,-1676.4146700,-41.5970000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2200,1585.7879600,-1683.6297600,-41.6094000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2200,1583.5437000,-1683.6224400,-41.6094000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2200,1581.3081100,-1683.6297600,-41.6094000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2200,1579.0531000,-1683.6297600,-41.6094000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2200,1576.8619400,-1683.6297600,-41.6094000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2200,1574.6367200,-1683.6297600,-41.6094000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2200,1572.4439700,-1683.6297600,-41.6094000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1714,1584.7186300,-1665.1064500,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1582.8317900,-1665.0752000,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1580.8637700,-1665.0839800,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1578.9102800,-1665.0285600,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1576.8975800,-1665.1547900,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1714,1574.9600800,-1665.1428200,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1570.3399700,-1672.5244100,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1570.3399700,-1698.1097400,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1502,1589.3725600,-1672.0583500,-41.5964000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2962,1570.1810300,-1671.3637700,-39.9933000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(1649,1568.0564000,-1676.2197300,-38.3906000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1649,1568.0507800,-1668.8713400,-38.3906000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(19325,1565.2675800,-1672.5330800,-37.9906000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(9131,1565.6385500,-1669.1978800,-40.3125000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(9131,1565.6385500,-1675.9101600,-40.3125000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1565.5030500,-1661.5899700,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1555.9012500,-1661.5899700,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1564.4237100,-1691.3050500,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1564.4237100,-1710.3717000,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19388,1564.8101800,-1695.2082500,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19388,1570.0776400,-1701.5955800,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1570.0776400,-1695.2799100,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19355,1570.2425500,-1695.3305700,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19355,1570.2425500,-1698.4403100,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19355,1572.8006600,-1695.3907500,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19355,1576.0191700,-1695.3907500,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19385,1574.3127400,-1697.0708000,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19385,1577.5307600,-1697.0708000,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19447,1579.2421900,-1698.3983200,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1570.0776400,-1698.4909700,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19447,1574.8549800,-1693.6897000,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19447,1574.8515600,-1703.1473400,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19385,1570.2310800,-1701.5955800,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2528,1577.5513900,-1694.2876000,-41.5873000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2528,1574.4807100,-1694.2764900,-41.5873000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2518,1570.3205600,-1694.3366700,-41.4576000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2524,1575.6474600,-1702.6214600,-41.9125000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2524,1574.1507600,-1702.6134000,-41.9125000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(19428,1572.8000500,-1702.6446500,-41.4533000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19428,1574.4298100,-1702.6446500,-41.4533000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19428,1576.0509000,-1702.6446500,-41.4533000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19428,1577.6095000,-1702.6446500,-41.4533000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2524,1578.8625500,-1702.6153600,-41.9125000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2524,1577.3206800,-1702.6095000,-41.9125000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1499,1570.1503900,-1702.3453400,-41.6206000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1523,1576.7419400,-1697.1283000,-41.6168000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1523,1573.5228300,-1697.1283000,-41.6168000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2518,1570.9803500,-1694.3366700,-41.4576000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2518,1571.6411100,-1694.3366700,-41.4576000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1651,1571.3892800,-1693.8104200,-39.3670000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2796,1569.5074500,-1700.8090800,-38.5995000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1706,1567.0606700,-1661.0108600,-41.5958000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2126,1563.9245600,-1661.5086700,-41.5944000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1706,1562.8288600,-1660.9519000,-41.5958000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1706,1556.6297600,-1660.9300500,-41.5958000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2241,1554.3679200,-1660.9215100,-40.6337000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1822,1553.9094200,-1661.4663100,-41.5954000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1706,1554.2637900,-1659.6928700,-41.5958000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1709,1555.4343300,-1650.1862800,-41.5913000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2241,1554.0367400,-1651.0304000,-41.0737000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1703,1587.2718500,-1651.1203600,-41.5954000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1703,1582.9205300,-1651.1038800,-41.5954000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1822,1583.6389200,-1651.5565200,-41.5954000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19379,1590.4799800,-1653.7500000,-41.6800000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(2010,1588.9300500,-1651.3676800,-41.6003000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2010,1579.1302500,-1651.1224400,-41.6003000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2010,1595.3837900,-1649.9925500,-41.6003000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2010,1580.2358400,-1684.4057600,-41.6003000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2616,1589.2122800,-1669.4477500,-39.7224000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(14600,1585.2742900,-1652.7071500,-40.1000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(358,1580.1292700,-1656.2755100,-39.2319000,85.0000000,-98.0000000,11.0000000);
- CreateDynamicObject(358,1580.1709000,-1657.3297100,-39.2319000,85.0000000,-98.0000000,11.0000000);
- CreateDynamicObject(358,1579.9169900,-1658.4295700,-39.2319000,85.0000000,-98.0000000,11.0000000);
- CreateDynamicObject(3794,1580.5485800,-1658.7338900,-41.0869000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(356,1584.0148900,-1661.1904300,-41.3304000,25.0000000,-90.0000000,0.0000000);
- CreateDynamicObject(356,1584.3266600,-1661.2060500,-41.3304000,25.0000000,-90.0000000,0.0000000);
- CreateDynamicObject(356,1584.6302500,-1661.2211900,-41.3304000,25.0000000,-90.0000000,0.0000000);
- CreateDynamicObject(356,1585.0357700,-1661.2414600,-41.3304000,25.0000000,-90.0000000,0.0000000);
- CreateDynamicObject(3388,1586.5933800,-1661.0087900,-41.5745000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(3387,1588.6086400,-1661.0116000,-41.5745000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(3389,1587.5966800,-1661.0072000,-41.5753000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(3390,1588.5245400,-1658.3034700,-41.5945300,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(3392,1588.5390600,-1654.8156700,-41.5946300,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1703,1590.9860800,-1651.0881300,-41.5954000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1822,1594.4831500,-1687.1165800,-41.5954000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1703,1590.0406500,-1653.9376200,-41.5954000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1703,1590.0013400,-1665.8905000,-41.5954000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1703,1589.9965800,-1662.5188000,-41.5954000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1703,1590.0106200,-1679.9089400,-41.5954000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1703,1589.9762000,-1676.5289300,-41.5954000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1703,1594.0147700,-1686.5634800,-41.5954000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1822,1589.4990200,-1651.5419900,-41.5954000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1703,1595.0925300,-1683.5642100,-41.5954000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2010,1595.3288600,-1644.3772000,-41.6003000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2010,1595.3790300,-1650.8247100,-41.6003000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2010,1590.0428500,-1663.2221700,-41.6003000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2010,1590.0545700,-1677.2430400,-41.6003000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19388,1582.2800300,-1688.8420400,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1582.2800300,-1711.2050800,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1574.8643800,-1703.4251700,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1565.3857400,-1703.4251700,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1579.0798300,-1715.9499500,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1561.5061000,-1715.9499500,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1564.4237100,-1714.5014600,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1584,1573.5036600,-1735.8280000,-41.5870600,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1583,1572.1159700,-1730.3961200,-41.5829200,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1586,1570.3658400,-1737.8957500,-41.5832300,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(18036,1570.7288800,-1727.5898400,-39.5821000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1585,1568.8107900,-1730.3955100,-41.5832900,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1583,1565.8811000,-1730.4299300,-41.5824700,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1585,1567.3081100,-1736.9595900,-41.5832900,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1586,1564.3803700,-1727.4108900,-41.5832300,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1584,1575.3748800,-1733.2905300,-41.5870600,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2036,1566.7071500,-1716.6462400,-41.5428000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16770,1564.8542500,-1716.9113800,-39.9887000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(1502,1575.9476300,-1715.9842500,-41.5900000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1576.6662600,-1715.9300500,-37.3400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19379,1569.5249000,-1711.5100100,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1590.4694800,-1701.8660900,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1590.4592300,-1692.2542700,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1590.4799800,-1672.9689900,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1580.0260000,-1701.8660900,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1580.0260000,-1692.2542700,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1569.5249000,-1682.6200000,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1600.9499500,-1672.9799800,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1600.9499500,-1663.3800000,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1580.0260000,-1672.9689900,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1611.4569100,-1653.7644000,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1611.4775400,-1634.5745800,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1600.9499500,-1653.7644000,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1600.9499500,-1644.1490500,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1600.9499500,-1634.5745800,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1590.4799800,-1663.3800000,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1590.4799800,-1653.7644000,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1590.4799800,-1644.1490500,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1590.4799800,-1634.5745800,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1580.0260000,-1663.3800000,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1580.0260000,-1653.7644000,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1580.0260000,-1644.1490500,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1580.0260000,-1634.5745800,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1569.5249000,-1663.3800000,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1569.5249000,-1653.7644000,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1569.5249000,-1644.1490500,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1569.5249000,-1634.5745800,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1559.0345500,-1711.5100100,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1548.6110800,-1711.5100100,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1559.0345500,-1692.2542700,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1559.0345500,-1673.0090300,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1559.0345500,-1663.3800000,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1559.0345500,-1653.7644000,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1559.0345500,-1644.1490500,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1559.0345500,-1634.5745800,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1548.6110800,-1701.8660900,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1548.6110800,-1692.2542700,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1548.6110800,-1682.6397700,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1548.6110800,-1673.0090300,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1548.6110800,-1663.3800000,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1548.6110800,-1653.7644000,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(14410,1561.2694100,-1699.0466300,-41.1547000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19379,1559.0545700,-1705.7031300,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19450,1559.6804200,-1701.0423600,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1564.4237100,-1705.7791700,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1559.6804200,-1696.9335900,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1564.4237100,-1695.4071000,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19379,1569.5249000,-1701.8660900,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1569.5249000,-1692.2542700,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19450,1559.4715600,-1700.9556900,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1554.5918000,-1696.2398700,-36.2200000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1554.5918000,-1658.2087400,-36.2200000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1554.5918000,-1686.7214400,-36.2200000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1554.5918000,-1677.0994900,-36.2200000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1554.5918000,-1667.5865500,-36.2200000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1564.2111800,-1696.9168700,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1564.4143100,-1672.9377400,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19358,1565.9332300,-1677.6665000,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1568.7959000,-1668.2054400,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1559.9034400,-1685.0119600,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(18756,1559.9681400,-1683.0920400,-35.9200000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(18757,1559.9865700,-1683.0920400,-35.9200000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1550.4610600,-1693.5339400,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1571.8900100,-1661.5899700,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1564.7991900,-1689.7330300,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19388,1578.2348600,-1674.7292500,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1560.0827600,-1693.5339400,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19379,1559.0345500,-1682.6200000,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19450,1550.2926000,-1685.0119600,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1570.3399700,-1688.5518800,-36.2000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1573.7924800,-1696.9168700,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1565.9332300,-1668.2054400,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19358,1568.7618400,-1677.6665000,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1502,1570.3179900,-1673.3901400,-41.5900000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1495,1570.3454600,-1668.2426800,-37.9600000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1616.5845900,-1661.5899700,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2357,1593.5172100,-1680.6649200,-37.5300000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2357,1607.6055900,-1680.6649200,-37.5300000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2095,1612.2347400,-1683.1827400,-37.9457000,0.0000000,0.0000000,69.0000000);
- CreateDynamicObject(2200,1601.7869900,-1687.0263700,-37.9457000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2010,1613.4150400,-1683.1146200,-37.9459000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(3077,1612.7752700,-1685.3399700,-37.9459000,0.0000000,0.0000000,76.0000000);
- CreateDynamicObject(1651,1613.7769800,-1680.3188500,-35.8059000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(19450,1613.7867400,-1687.2600100,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2010,1613.4150400,-1678.0335700,-37.9458900,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2200,1607.1480700,-1674.9364000,-37.9457000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2200,1599.5297900,-1687.0263700,-37.9457000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2200,1604.0411400,-1687.0263700,-37.9457000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2200,1606.2851600,-1687.0263700,-37.9457000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2200,1608.5363800,-1687.0263700,-37.9457000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2200,1609.4105200,-1674.9364000,-37.9457000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(14455,1570.6473400,-1654.0358900,-36.2680000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2010,1570.7603800,-1650.5922900,-37.9466600,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2200,1571.6521000,-1650.3454600,-37.9470200,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2200,1598.1589400,-1650.3560800,-37.9470200,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2010,1590.7359600,-1650.5828900,-37.9466600,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(14455,1590.6534400,-1653.8851300,-36.2680000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2010,1600.2847900,-1650.6481900,-37.9466600,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2010,1590.0728800,-1650.4691200,-37.9466600,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2200,1592.1064500,-1650.3461900,-37.9470200,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2200,1587.3386200,-1650.4052700,-37.9470200,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2010,1591.0627400,-1661.3148200,-37.9466600,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2010,1579.5293000,-1650.5383300,-37.9466600,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2200,1581.5190400,-1650.3981900,-37.9470200,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2200,1577.4421400,-1650.4537400,-37.9470200,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(14455,1580.1906700,-1654.4807100,-36.2680000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2010,1580.4052700,-1650.5771500,-37.9466600,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2010,1570.8288600,-1661.2977300,-37.9466600,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2010,1580.4500700,-1661.2030000,-37.9466600,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2164,1579.8538800,-1653.2137500,-37.9456000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2164,1600.6512500,-1653.0716600,-37.9456000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2164,1590.2652600,-1653.4047900,-37.9456000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(19450,1616.6077900,-1674.7099600,-36.2000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(16378,1572.1811500,-1672.3878200,-37.1705000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2166,1571.2653800,-1668.6314700,-37.9441000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2165,1572.2740500,-1672.5556600,-37.9445000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(1722,1571.0343000,-1673.2097200,-37.9458000,0.0000000,0.0000000,-55.0000000);
- CreateDynamicObject(1721,1573.9488500,-1672.3136000,-37.9453000,0.0000000,0.0000000,76.0000000);
- CreateDynamicObject(2617,1571.6715100,-1665.2202100,-37.3257000,0.0000000,0.0000000,50.0000000);
- CreateDynamicObject(1710,1579.2319300,-1662.3703600,-37.9504400,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1710,1591.1353800,-1662.2974900,-37.9504400,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1710,1600.5932600,-1662.1577100,-37.9504400,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1709,1612.2397500,-1668.4499500,-37.9572000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(1709,1607.6475800,-1663.2434100,-37.9571900,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1710,1596.9658200,-1674.1523400,-37.9504000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1710,1607.9400600,-1674.1344000,-37.9504000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1710,1584.7023900,-1674.2235100,-37.9504000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1710,1590.7334000,-1674.1569800,-37.9504000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1823,1610.1163300,-1674.4962200,-37.9559700,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1823,1602.4277300,-1674.5944800,-37.9559700,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1823,1597.7421900,-1674.7058100,-37.9559700,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1823,1591.4024700,-1674.5931400,-37.9559700,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1823,1585.3763400,-1674.7434100,-37.9559700,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1823,1579.2866200,-1674.6706500,-37.9559700,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1823,1589.4669200,-1662.7042200,-37.9559700,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1823,1577.3448500,-1662.7325400,-37.9559700,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1823,1583.5532200,-1662.7995600,-37.9559700,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1823,1595.5100100,-1662.7712400,-37.9559700,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1823,1598.7231400,-1662.7836900,-37.9559700,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1823,1605.3798800,-1662.8325200,-37.9559700,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1823,1613.6644300,-1666.1535600,-37.9560000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(3963,1570.2371800,-1687.5054900,-35.9467000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(3963,1594.4146700,-1674.8153100,-35.9467000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(3963,1554.6927500,-1667.4762000,-35.9467000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(3963,1562.7587900,-1661.6950700,-35.9467000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(3964,1557.8436300,-1661.7183800,-35.8791000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(3964,1554.7032500,-1680.2307100,-35.8791000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(3962,1590.3762200,-1680.5889900,-35.8778000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(3962,1564.2747800,-1672.5673800,-35.8778000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(3963,1570.2370600,-1680.9052700,-35.9467000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(3964,1554.7099600,-1672.3886700,-35.8791000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(3963,1567.0459000,-1661.7125200,-35.9467000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(3963,1598.1682100,-1674.8221400,-35.9467000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(3963,1602.3811000,-1672.9732700,-35.9467000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(3963,1579.8394800,-1656.8426500,-35.9467000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(3963,1603.8409400,-1674.8291000,-35.9467000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(3963,1600.6591800,-1656.8364300,-35.9467000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(3963,1590.3148200,-1656.8789100,-35.9467000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(3964,1545.9827900,-1639.3859900,-39.4982000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(14455,1552.7927200,-1639.4592300,-39.9430000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2010,1543.7680700,-1661.1047400,-41.5966600,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2200,1543.4050300,-1648.2744100,-41.5956000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2200,1543.4090600,-1643.7279100,-41.5956000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2200,1543.4134500,-1646.0267300,-41.5956000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2200,1543.4106400,-1650.5192900,-41.5956000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2204,1553.3975800,-1643.2824700,-41.5954000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2204,1553.4848600,-1646.3039600,-41.5954000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2186,1553.1611300,-1641.7972400,-41.5977000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2010,1543.6189000,-1639.9555700,-41.5966600,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2010,1543.7738000,-1653.2346200,-41.5966600,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2010,1553.1286600,-1653.3299600,-41.5966600,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2010,1553.2320600,-1660.8658400,-41.5966600,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1808,1543.5037800,-1635.4019800,-41.5958000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1502,1551.1951900,-1639.2835700,-41.5922000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2013,1545.8155500,-1638.7108200,-41.7353000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2017,1547.7503700,-1638.7353500,-41.7353000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2016,1546.7756300,-1638.7353500,-41.7403000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2016,1543.8210400,-1638.7353500,-41.7403000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2016,1548.7419400,-1638.7353500,-41.7403000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1780,1543.7663600,-1636.7310800,-40.5801000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(19450,1548.9088100,-1630.1193800,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19450,1543.1572300,-1627.9405500,-39.8400000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19450,1539.4791300,-1630.1193800,-39.8400000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2298,1549.5966800,-1631.6348900,-41.5929000,0.0000000,0.0000000,-90.0000000);
- CreateDynamicObject(2091,1543.3784200,-1633.6562500,-41.5938000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2104,1543.2430400,-1631.1275600,-41.5937000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2104,1543.2014200,-1634.2481700,-41.5937000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(18608,1548.2729500,-1642.8491200,-37.3889000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19379,1548.6110800,-1634.5745800,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(1649,1568.0564000,-1676.2197300,-38.3906000,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1649,1568.0507800,-1668.8713400,-38.3906000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19379,1611.4499500,-1682.5899700,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1600.9499500,-1682.5899700,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1590.4843800,-1682.5899700,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1580.0260000,-1682.5899700,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1569.5249000,-1682.5899700,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1559.0345500,-1682.5899700,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1559.0345500,1559.0345500,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1569.5249000,-1692.2143600,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1559.0345500,-1692.2143600,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1569.5249000,-1701.8660900,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1559.0345500,-1701.8660900,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1611.4499500,-1672.9799800,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1611.4499500,-1663.3800000,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1611.4499500,-1653.7644000,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1611.4668000,-1644.1490500,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1611.4499500,-1644.1490500,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1600.9499500,-1672.9799800,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1600.9499500,-1663.3800000,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1600.9499500,-1653.7644000,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1590.4843800,-1672.9799800,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1590.4843800,-1663.3800000,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1590.4843800,-1653.7644000,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1580.0260000,-1672.9799800,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1580.0260000,-1663.3800000,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1580.0260000,-1653.7644000,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1569.5249000,-1663.3800000,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1569.5249000,-1653.7644000,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1559.0345500,-1672.9799800,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1559.0345500,-1663.3800000,-34.3862000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1548.6110800,-1644.1490500,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1569.5249000,-1672.9689900,-38.0300000,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(19379,1569.5249000,-1672.9799800,-34.3862000,0.0000000,90.0000000,0.0000000);
- }
- /*stock LoadTollBooths()
- {
- printf("Loading - Mapping for Toll Booths were loaded.");
-
- // LS-LV
- CreateDynamicObject(8168, 1789.83203125, 703.189453125, 15.846367835999, 0.000000, 3, 99.24951171875, -1);
- CreateDynamicObject(8168, 1784.8334960938, 703.94799804688, 16.070636749268, 0.000000, 357, 278.61096191406, -1);
- CreateDynamicObject(966, 1781.4122314453, 697.32531738281, 14.636913299561, 0.000000, 0.000000, 348.09008789063, -1);
- CreateDynamicObject(996, 1767.3087158203, 700.50506591797, 15.281567573547, 0.000000, 0.000000, 346.10510253906, -1);
- CreateDynamicObject(997, 1781.6832275391, 697.34796142578, 14.698781013489, 0.000000, 3, 77.41455078125, -1);
- CreateDynamicObject(997, 1792.7745361328, 706.38543701172, 13.948781013489, 0.000000, 2.999267578125, 81.379638671875, -1);
- CreateDynamicObject(966, 1793.4289550781, 709.87982177734, 13.636913299561, 0.000000, 0.000000, 169.43664550781, -1);
- CreateDynamicObject(996, 1800.8060302734, 708.38299560547, 14.281567573547, 0.000000, 0.000000, 346.10229492188, -1);
- tollObject2 = CreateDynamicObject(968, 1781.4133300781, 697.31750488281, 15.420023918152, 0.000000, -90.000000, 348.10229492188, -1);
- tollObject1 = CreateDynamicObject(968, 1793.6700439453, 709.84631347656, 14.405718803406, 0.000000, -90.000000, 169.43664550781, -1);
-
- //Richman
- CreateDynamicObject( 8168, 612.73895263672, -1191.4602050781, 20.294105529785, 0.000000, 5, 318.31237792969, -1 );
- CreateDynamicObject( 8168, 620.47265625, -1188.49609375, 20.044105529785, 0.000000, 352.99621582031, 138.94409179688, -1 );
- CreateDynamicObject( 966, 613.97229003906, -1197.7174072266, 17.475030899048, 0.000000, 0.000000, 23.81982421875, -1 );
- CreateDynamicObject( 997, 614.33209228516, -1194.3870849609, 17.709369659424, 0.000000, 0.000000, 266.70568847656, -1 );
- CreateDynamicObject( 973, 602.98425292969, -1202.1643066406, 18.000516891479, 0.000000, 0.000000, 19.849853515625, -1 );
- tollObject3 = CreateDynamicObject( 968, 613.8935546875, -1197.7329101563, 18.109180450439, 0.000000, -90.000000, 23.81982421875, -1 );
- CreateDynamicObject( 966, 619.42913818359, -1181.6597900391, 18.725030899048, 0.000000, 0.000000, 214.37744140625, -1 );
- CreateDynamicObject( 973, 629.68823242188, -1176.0551757813, 19.500516891479, 0.000000, 0.000000, 21.831787109375, -1 );
- CreateDynamicObject( 997, 619.26574707031, -1181.6518554688, 18.709369659424, 0.000000, 0.000000, 268.68908691406, -1 );
- tollObject4 = CreateDynamicObject( 968, 619.44201660156, -1181.6903076172, 19.525806427002, 0.000000, -90.000000, 214.37744140625, -1 );
-
- //Flint
- CreateDynamicObject( 8168, 61.256042480469, -1533.3946533203, 6.1042537689209, 0.000000, 0.000000, 9.9252624511719, -1 );
- CreateDynamicObject( 8168, 40.966598510742, -1529.5725097656, 6.1042537689209, 0.000000, 0.000000, 188.5712890625, -1 );
- tollObject5 = CreateDynamicObject( 968, 35.838928222656, -1525.9034423828, 5.0012145042419, 0.000000, -90.000000, 270.67565917969, -1 );
- CreateDynamicObject( 966, 35.889751434326, -1526.0096435547, 4.2410612106323, 0.000000, 0.000000, 270.67565917969, -1 );
- CreateDynamicObject( 966, 67.093727111816, -1536.8275146484, 3.9910612106323, 0.000000, 0.000000, 87.337799072266, -1 );
- tollObject6 = CreateDynamicObject( 968, 67.116600036621, -1536.8218994141, 4.7504549026489, 0.000000, -90.000000, 87.337799072266, -1 );
- CreateDynamicObject( 973, 52.9794921875, -1531.9252929688, 5.090488910675, 0.000000, 0.000000, 352.06005859375, -1 );
- CreateDynamicObject( 973, 49.042072296143, -1531.5065917969, 5.1758694648743, 0.000000, 0.000000, 352.05688476563, -1 );
- CreateDynamicObject( 997, 68.289916992188, -1546.6020507813, 4.0626411437988, 0.000000, 0.000000, 119.09942626953, -1 );
- CreateDynamicObject( 997, 34.5198097229, -1516.1402587891, 4.0626411437988, 0.000000, 0.000000, 292.50622558594, -1 );
- CreateDynamicObject( 997, 35.903915405273, -1525.8717041016, 4.0626411437988, 0.000000, 0.000000, 342.13012695313, -1 );
- CreateDynamicObject( 997, 63.914081573486, -1535.7126464844, 4.0626411437988, 0.000000, 0.000000, 342.130859375, -1 );
-
- return true;
- }*/
- stock LoadPrisonMapping()
- {
- CreateDynamicObject(4079, -333.91153, 1529.67932, 86.99270, 0.00000, 0.00000, 50.27999);
- CreateDynamicObject(19913, -343.56723, 1556.44446, 60.04720, 0.00000, 90.00000, -44.94000);
- CreateDynamicObject(987, -295.63504, 1507.08521, 74.07851, 0.00000, 0.00000, -314.94000);
- CreateDynamicObject(987, -287.18655, 1515.55664, 74.07851, 0.00000, 0.00000, -314.94000);
- CreateDynamicObject(987, -278.68756, 1523.96985, 74.07851, 0.00000, 0.00000, -319.38007);
- CreateDynamicObject(987, -269.58188, 1531.76257, 74.07851, 0.00000, 0.00000, -317.52014);
- CreateDynamicObject(987, -265.21896, 1535.73901, 74.07851, 0.00000, 0.00000, -317.52014);
- CreateDynamicObject(987, -256.37875, 1543.70361, 74.07851, 0.00000, 0.00000, -227.64012);
- CreateDynamicObject(987, -264.37643, 1552.55457, 74.07851, 0.00000, 0.00000, -227.64012);
- CreateDynamicObject(987, -272.44910, 1561.39832, 74.07851, 0.00000, 0.00000, -219.42012);
- CreateDynamicObject(987, -281.67026, 1568.97571, 74.07851, 0.00000, 0.00000, -224.04004);
- CreateDynamicObject(987, -290.26233, 1577.29163, 74.07851, 0.00000, 0.00000, -224.04004);
- CreateDynamicObject(987, -294.57056, 1581.44812, 74.07851, 0.00000, 0.00000, -224.04004);
- CreateDynamicObject(987, -303.08661, 1589.77502, 74.07851, 0.00000, 0.00000, -135.66002);
- CreateDynamicObject(987, -311.64777, 1581.44104, 74.07851, 0.00000, 0.00000, -135.66002);
- CreateDynamicObject(987, -320.19189, 1573.14722, 74.07851, 0.00000, 0.00000, -135.66002);
- CreateDynamicObject(987, -328.68732, 1564.88818, 74.07851, 0.00000, 0.00000, -135.66002);
- CreateDynamicObject(19447, -333.43536, 1566.32483, 76.17900, 90.00000, 0.00000, 96.96002);
- CreateDynamicObject(19447, -336.87286, 1565.89600, 76.17900, 90.00000, 0.00000, 96.96002);
- CreateDynamicObject(19447, -337.35916, 1565.44104, 76.17900, 90.00000, 0.00000, 62.46003);
- CreateDynamicObject(19313, -342.50076, 1565.28345, 77.79948, 0.00000, 0.00000, -134.82004);
- CreateDynamicObject(19313, -332.61157, 1575.21350, 77.79948, 0.00000, 0.00000, -134.82004);
- CreateDynamicObject(19313, -322.71588, 1585.10205, 77.79948, 0.00000, 0.00000, -135.06004);
- CreateDynamicObject(19313, -317.13977, 1590.72986, 77.79948, 0.00000, 0.00000, -135.06004);
- CreateDynamicObject(19313, -317.06528, 1600.58801, 77.79948, 0.00000, 0.00000, -45.06005);
- CreateDynamicObject(19313, -326.87451, 1610.48865, 77.79948, 0.00000, 0.00000, -45.06005);
- CreateDynamicObject(19313, -336.74527, 1620.40906, 77.79948, 0.00000, 0.00000, -45.06005);
- CreateDynamicObject(19313, -342.44379, 1626.05664, 77.79948, 0.00000, 0.00000, -45.06005);
- CreateDynamicObject(19313, -352.39557, 1626.09082, 78.02879, 0.00000, 0.00000, 44.87995);
- CreateDynamicObject(19313, -362.28955, 1616.21863, 78.02879, 0.00000, 0.00000, 44.87995);
- CreateDynamicObject(19313, -372.15689, 1606.38672, 78.02879, 0.00000, 0.00000, 44.87995);
- CreateDynamicObject(19313, -377.79404, 1600.66956, 78.02879, 0.00000, 0.00000, 44.87995);
- CreateDynamicObject(19313, -377.80908, 1590.76355, 77.79948, 0.00000, 0.00000, -45.06005);
- CreateDynamicObject(19313, -352.45721, 1565.26587, 77.79948, 0.00000, 0.00000, -45.06005);
- CreateDynamicObject(19313, -360.12531, 1573.00623, 77.79948, 0.00000, 0.00000, -45.06005);
- CreateDynamicObject(19313, -375.92673, 1588.91614, 77.79948, 0.00000, 0.00000, -45.06005);
- CreateDynamicObject(10575, -328.13745, 1493.14221, 76.18545, 0.00000, 0.00000, 94.85999);
- CreateDynamicObject(19859, -359.64038, 1534.90894, 75.54964, 0.00000, 0.00000, -84.66000);
- CreateDynamicObject(19859, -359.34958, 1531.95178, 75.54964, 0.00000, 0.00000, -263.93994);
- CreateDynamicObject(19313, -347.21860, 1507.27588, 77.79720, 0.00000, 0.00000, -182.04010);
- CreateDynamicObject(19313, -361.20239, 1507.19763, 77.79720, 0.00000, 0.00000, -177.72009);
- CreateDynamicObject(19313, -375.16547, 1506.98840, 77.79723, 0.00000, 0.00000, -180.60008);
- CreateDynamicObject(19313, -389.16800, 1507.08655, 77.79720, 0.00000, 0.00000, -180.60010);
- CreateDynamicObject(19313, -403.12921, 1507.17737, 77.79720, 0.00000, 0.00000, -180.60010);
- CreateDynamicObject(19313, -409.86459, 1514.09216, 77.79720, 0.00000, 0.00000, -271.62009);
- CreateDynamicObject(19313, -409.48611, 1528.09485, 77.79720, 0.00000, 0.00000, -271.62009);
- CreateDynamicObject(19313, -409.12909, 1542.01306, 77.77979, 0.00000, 0.00000, -271.62009);
- CreateDynamicObject(19313, -408.77316, 1555.95996, 77.77979, 0.00000, 0.00000, -271.62009);
- CreateDynamicObject(19313, -408.34433, 1569.92822, 77.77979, 0.00000, 0.00000, -271.62009);
- CreateDynamicObject(19313, -407.99338, 1583.93030, 77.77979, 0.00000, 0.00000, -271.62009);
- CreateDynamicObject(19313, -403.25830, 1596.22192, 77.77979, 0.00000, 0.00000, -310.20010);
- CreateDynamicObject(19313, -394.24344, 1606.91235, 77.77979, 0.00000, 0.00000, -310.20010);
- CreateDynamicObject(19313, -384.36270, 1616.65430, 77.77979, 0.00000, 0.00000, -320.70013);
- CreateDynamicObject(19313, -373.56219, 1625.50647, 77.77979, 0.00000, 0.00000, -320.70013);
- CreateDynamicObject(19313, -362.96750, 1634.61816, 77.77979, 0.00000, 0.00000, -318.36020);
- CreateDynamicObject(19313, -352.62131, 1643.93567, 77.77979, 0.00000, 0.00000, -318.36020);
- CreateDynamicObject(19313, -342.97171, 1643.24390, 77.77979, 0.00000, 0.00000, -409.98010);
- CreateDynamicObject(19313, -333.97900, 1632.53503, 77.77979, 0.00000, 0.00000, -409.98010);
- CreateDynamicObject(19313, -324.94760, 1621.87231, 77.77979, 0.00000, 0.00000, -409.98010);
- CreateDynamicObject(19313, -315.93204, 1611.27441, 77.77979, 0.00000, 0.00000, -409.98010);
- CreateDynamicObject(19313, -308.30704, 1599.63623, 77.77979, 0.00000, 0.00000, -423.72006);
- CreateDynamicObject(19313, -306.49167, 1595.94641, 77.77979, 0.00000, 0.00000, -423.72006);
- CreateDynamicObject(19313, -364.57062, 1517.54224, 77.79720, 0.00000, 0.00000, -180.60010);
- CreateDynamicObject(19313, -378.48410, 1517.69995, 77.79720, 0.00000, 0.00000, -180.60010);
- CreateDynamicObject(19313, -392.44077, 1517.85364, 77.79720, 0.00000, 0.00000, -180.60010);
- CreateDynamicObject(19313, -399.11136, 1525.08850, 77.79720, 0.00000, 0.00000, -271.62009);
- CreateDynamicObject(19313, -398.69754, 1539.12024, 77.79720, 0.00000, 0.00000, -271.62009);
- CreateDynamicObject(985, -398.41510, 1550.05298, 75.61630, 0.00000, 0.00000, -90.90000);
- CreateDynamicObject(985, -398.30252, 1557.93750, 75.61635, 0.00000, 0.00000, -270.96005);
- CreateDynamicObject(19313, -398.06290, 1568.85571, 77.79720, 0.00000, 0.00000, -271.62009);
- CreateDynamicObject(19313, -394.06058, 1581.78418, 77.79720, 0.00000, 0.00000, -302.40009);
- CreateDynamicObject(19313, -385.52231, 1592.84363, 77.79720, 0.00000, 0.00000, -313.38004);
- CreateDynamicObject(19313, -308.30704, 1599.63623, 71.25690, 0.00000, 0.00000, -423.72006);
- CreateDynamicObject(19313, -315.93204, 1611.27441, 71.19181, 0.00000, 0.00000, -409.98010);
- CreateDynamicObject(19313, -324.94760, 1621.87231, 71.19425, 0.00000, 0.00000, -409.98010);
- CreateDynamicObject(19313, -333.97900, 1632.53503, 71.17497, 0.00000, 0.00000, -409.98010);
- CreateDynamicObject(19313, -342.97171, 1643.24390, 71.17102, 0.00000, 0.00000, -409.98010);
- CreateDynamicObject(19313, -352.62131, 1643.93567, 71.18545, 0.00000, 0.00000, -318.36020);
- CreateDynamicObject(19313, -362.96750, 1634.61816, 71.19102, 0.00000, 0.00000, -318.36020);
- CreateDynamicObject(19313, -373.56219, 1625.50647, 71.16590, 0.00000, 0.00000, -320.70013);
- CreateDynamicObject(19313, -384.36270, 1616.65430, 71.16825, 0.00000, 0.00000, -320.70013);
- CreateDynamicObject(19313, -394.24344, 1606.91235, 71.18106, 0.00000, 0.00000, -310.20010);
- CreateDynamicObject(19313, -403.25830, 1596.22192, 71.11817, 0.00000, 0.00000, -310.20010);
- CreateDynamicObject(19313, -407.99338, 1583.93030, 71.17803, 0.00000, 0.00000, -271.62009);
- CreateDynamicObject(19313, -408.34433, 1569.92822, 71.24378, 0.00000, 0.00000, -271.62009);
- CreateDynamicObject(19313, -408.77316, 1555.95996, 71.19431, 0.00000, 0.00000, -271.62009);
- CreateDynamicObject(19313, -409.12909, 1542.01306, 71.24368, 0.00000, 0.00000, -271.62009);
- CreateDynamicObject(19313, -409.48611, 1528.09485, 71.23761, 0.00000, 0.00000, -271.62009);
- CreateDynamicObject(19313, -409.86459, 1514.09216, 71.22744, 0.00000, 0.00000, -271.62009);
- CreateDynamicObject(19313, -403.12921, 1507.17737, 71.22330, 0.00000, 0.00000, -180.60010);
- CreateDynamicObject(19313, -389.16800, 1507.08655, 71.29904, 0.00000, 0.00000, -180.60010);
- CreateDynamicObject(8168, -293.34879, 1503.24023, 76.56230, 0.00000, 0.00000, -69.78000);
- CreateDynamicObject(3279, -405.23773, 1512.32983, 73.11200, 0.00000, 0.00000, -0.30000);
- CreateDynamicObject(3279, -401.63965, 1589.38147, 71.35230, 0.00000, 0.00000, -36.36000);
- CreateDynamicObject(3279, -349.64987, 1638.10596, 71.35230, 0.00000, 0.00000, -135.59999);
- CreateDynamicObject(967, -309.42172, 1504.56360, 74.63560, 0.00000, 0.00000, -89.16001);
- CreateDynamicObject(966, -309.03381, 1506.07141, 74.63560, 0.00000, 0.00000, -178.08009);
- CreateDynamicObject(966, -295.34637, 1506.60901, 74.63560, 0.00000, 0.00000, -357.06003);
- CreateDynamicObject(970, -314.95313, 1507.39246, 75.02563, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, -310.79062, 1507.39258, 75.02563, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19859, -354.30200, 1510.98267, 75.81992, 0.00000, 0.00000, -40.44000);
- CreateDynamicObject(1372, -359.16663, 1525.14343, 74.55180, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1328, -359.34448, 1526.52185, 74.98618, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1328, -359.28369, 1523.53748, 74.98618, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1968, -377.86902, 1560.79187, 75.08837, 0.00000, 0.00000, 58.26003);
- CreateDynamicObject(1968, -375.17935, 1559.20947, 75.08837, 0.00000, 0.00000, 58.26003);
- CreateDynamicObject(1969, -379.73383, 1554.54346, 75.08840, 0.00000, 0.00000, -2.52000);
- CreateDynamicObject(1969, -379.61963, 1552.24121, 75.08840, 0.00000, 0.00000, -2.52000);
- CreateDynamicObject(3496, -336.08676, 1583.79504, 75.18821, 0.00000, 0.00000, 46.19998);
- CreateDynamicObject(3496, -357.50641, 1605.56665, 75.18821, 0.00000, 0.00000, -132.60002);
- CreateDynamicObject(1368, -347.53751, 1575.38293, 76.24530, 0.00000, 0.00000, 133.50000);
- CreateDynamicObject(1368, -350.45041, 1578.41052, 76.24530, 0.00000, 0.00000, 133.50000);
- CreateDynamicObject(1368, -353.75433, 1581.75061, 76.24525, 0.00000, 0.00000, 133.50002);
- CreateDynamicObject(1330, -356.16782, 1583.35999, 76.09590, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1968, -368.11209, 1545.16394, 75.08837, 0.00000, 0.00000, -7.97996);
- CreateDynamicObject(1968, -368.71762, 1541.04651, 75.08837, 0.00000, 0.00000, -7.97996);
- CreateDynamicObject(1968, -375.05832, 1546.31848, 75.08837, 0.00000, 0.00000, -7.97996);
- CreateDynamicObject(1968, -375.64215, 1542.15417, 75.08837, 0.00000, 0.00000, -7.97996);
- CreateDynamicObject(2628, -374.77039, 1586.22363, 75.07298, 0.00000, 0.00000, -44.76003);
- CreateDynamicObject(2628, -377.21310, 1588.60376, 75.10690, 0.00000, 0.00000, -44.76003);
- CreateDynamicObject(2628, -380.12967, 1591.55273, 75.10366, 0.00000, 0.00000, -44.76003);
- CreateDynamicObject(2630, -382.80664, 1591.68933, 74.93771, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2630, -385.41760, 1589.45740, 74.93771, 0.00000, 0.00000, 35.22000);
- CreateDynamicObject(2629, -386.83823, 1581.94019, 74.98808, 0.00000, 0.00000, 134.93991);
- CreateDynamicObject(2630, -388.00320, 1585.90161, 74.93771, 0.00000, 0.00000, 35.22000);
- CreateDynamicObject(2629, -384.66931, 1579.77856, 74.97125, 0.00000, 0.00000, 134.93991);
- CreateDynamicObject(2629, -382.51233, 1577.68884, 74.95450, 0.00000, 0.00000, 134.93991);
- CreateDynamicObject(2632, -386.07544, 1581.12915, 74.93770, 0.00000, 0.00000, 134.93990);
- CreateDynamicObject(2632, -383.24139, 1578.29260, 74.93770, 0.00000, 0.00000, 134.93990);
- CreateDynamicObject(2631, -375.17770, 1586.77026, 75.06235, 0.00000, 0.00000, 134.93990);
- CreateDynamicObject(2631, -377.94199, 1589.55664, 75.06235, 0.00000, 0.00000, 134.93990);
- CreateDynamicObject(2631, -380.75107, 1592.36829, 75.06235, 0.00000, 0.00000, 134.93990);
- CreateDynamicObject(1969, -368.13950, 1552.94690, 75.08840, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1969, -372.89301, 1552.79138, 75.08840, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3864, -400.17612, 1543.99231, 80.27838, 0.00000, 0.00000, -179.63997);
- CreateDynamicObject(3864, -399.93124, 1563.95361, 80.27838, 0.00000, 0.00000, -179.63997);
- CreateDynamicObject(1330, -362.15601, 1589.06836, 76.27642, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1368, -363.33871, 1590.31775, 76.59116, 0.00000, 0.00000, 133.50002);
- CreateDynamicObject(1368, -366.38580, 1593.55054, 76.59116, 0.00000, 0.00000, 133.50002);
- CreateDynamicObject(3496, -336.48190, 1604.53430, 75.18820, 0.00000, 0.00000, -224.10005);
- CreateDynamicObject(2945, -381.17838, 1526.12207, 75.83885, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -384.82599, 1526.12732, 75.83890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -388.45441, 1526.12817, 75.83890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -392.15570, 1526.13806, 75.83890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -394.24631, 1524.10669, 75.83890, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2945, -394.23669, 1520.60095, 75.83890, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2945, -394.22891, 1519.63940, 75.83890, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2945, -379.58130, 1524.47351, 75.83890, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2945, -379.61227, 1520.89380, 75.81950, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2945, -381.17838, 1526.12207, 79.07317, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -384.82599, 1526.12732, 79.07320, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -388.45441, 1526.12817, 79.07320, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -392.15570, 1526.13806, 79.07320, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -394.24631, 1524.10669, 79.07320, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2945, -394.23669, 1520.60095, 79.07320, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2945, -394.22891, 1519.63940, 79.07320, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2945, -379.58130, 1524.47351, 79.07320, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2945, -379.58691, 1521.77661, 79.07320, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1495, -379.65561, 1517.75781, 74.55830, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2945, -379.61230, 1520.89380, 79.07320, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2945, -379.63745, 1519.33337, 78.45717, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2945, -381.16946, 1524.86096, 80.69999, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -381.18732, 1521.79285, 80.69999, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -381.21219, 1519.70715, 80.69999, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -384.74240, 1519.69556, 80.69999, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -384.72592, 1522.76990, 80.69999, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -384.68033, 1524.85583, 80.69999, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -388.16513, 1524.80200, 80.69999, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -391.69434, 1524.87537, 80.69999, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -392.31027, 1524.83411, 80.69999, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -392.31311, 1521.59814, 80.69999, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -392.06485, 1519.66760, 80.69999, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -388.32480, 1519.70715, 80.69999, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(2945, -388.41217, 1522.18945, 80.65165, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19313, -352.17545, 1555.18457, 77.79948, 0.00000, 0.00000, -134.82004);
- CreateDynamicObject(19313, -355.51172, 1543.40503, 77.79948, 0.00000, 0.00000, -77.04003);
- CreateDynamicObject(14781, -363.84396, 1563.43518, 75.73116, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1361, -313.04962, 1535.06702, 75.30195, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1361, -317.62244, 1536.89014, 75.30195, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1364, -309.74130, 1535.95691, 75.30190, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1364, -304.38983, 1535.91406, 75.30190, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1361, -300.72272, 1535.52026, 75.30195, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, -298.03091, 1534.84302, 75.02563, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, -293.85934, 1534.84058, 75.02563, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, -292.11826, 1534.83142, 75.02563, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, -290.77011, 1538.64819, 75.02563, 0.00000, 0.00000, -44.52000);
- CreateDynamicObject(970, -293.23486, 1541.05957, 75.02563, 0.00000, 0.00000, -44.52000);
- CreateDynamicObject(970, -296.18173, 1543.93616, 75.02563, 0.00000, 0.00000, -44.52000);
- CreateDynamicObject(11489, -314.34119, 1554.66003, 74.55460, 0.00000, 0.00000, 35.04000);
- CreateDynamicObject(3515, -317.91171, 1561.25342, 75.34583, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3515, -317.88519, 1560.47351, 75.34580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18739, -316.54514, 1561.07690, 76.24482, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1361, -298.47177, 1545.67395, 75.30195, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1364, -300.91074, 1547.86365, 75.30190, 0.00000, 0.00000, -42.65998);
- CreateDynamicObject(1364, -304.39246, 1551.23413, 75.30190, 0.00000, 0.00000, -42.65998);
- CreateDynamicObject(1361, -307.49844, 1554.55371, 75.30195, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1361, -317.90158, 1547.91467, 75.30195, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1214, -288.85190, 1535.48962, 74.40253, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1290, -310.37170, 1498.70935, 80.18443, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1290, -295.30878, 1498.57190, 80.18443, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1290, -265.71127, 1549.66821, 80.18443, 0.00000, 0.00000, 145.20006);
- CreateDynamicObject(1290, -278.06354, 1562.21924, 80.18443, 0.00000, 0.00000, 145.20006);
- CreateDynamicObject(1290, -290.41281, 1574.45020, 80.18443, 0.00000, 0.00000, 145.20006);
- CreateDynamicObject(1290, -303.12936, 1587.01892, 80.18443, 0.00000, 0.00000, 145.20006);
- return 1;
- }
- stock LoadPrisonInterior() //by ElDema
- {
- PDDoor[0] = CreateDynamicObject(1500, 2577.50000, -1484.82642, -49.92000, 0.00000, 0.00000, -90.00000);
- PDDoor[2] = CreateDynamicObject(1500, 2595.95532, -1487.13977, -49.92000, 0.00000, 0.00000, 180.00000);
- PDDoor[4] = CreateDynamicObject(2930, 2571.82983, -1532.14771, -47.34000, 0.00000, 0.00000, 90.00000);
- PDDoor[6] = CreateDynamicObject(2930, 2578.28296, -1496.61218, -47.34000, 0.00000, 0.00000, 90.00000);
- PDDoor[8] = CreateDynamicObject(2930, 2587.85669, -1496.61206, -47.34000, 0.00000, 0.00000, 90.00000);
- PDDoor[10] = CreateDynamicObject(2930, 2593.54297, -1497.40930, -47.34000, 0.00000, 0.00000, 0.00000);
- PDDoor[12] = CreateDynamicObject(2930, 2580.86865, -1535.06982, -47.34000, 0.00000, 0.00000, 90.00000);
- PDDoor[14] = CreateDynamicObject(2930, 2587.29785, -1535.08044, -47.34000, 0.00000, 0.00000, 90.00000);
-
- CreateDynamicObject(19377, 2604.69556, -1479.21655, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2594.24170, -1479.19153, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2583.75342, -1479.20496, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2573.25171, -1479.20496, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2604.73657, -1488.83032, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2604.73657, -1498.44824, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2604.73413, -1508.06628, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2604.73657, -1517.68286, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2604.71655, -1527.30066, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2594.23755, -1488.83032, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2594.23755, -1498.44824, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2594.23755, -1508.07593, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2594.23755, -1517.70288, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2594.22144, -1527.33264, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2583.75342, -1488.83032, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2583.75342, -1498.44824, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2583.75342, -1508.07593, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2583.75342, -1517.70288, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2583.75342, -1527.31873, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2573.25171, -1488.83032, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2573.25171, -1498.44824, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2573.25171, -1508.07593, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2573.25171, -1517.70288, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2573.25171, -1527.32068, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19457, 2567.98242, -1488.84753, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2567.98242, -1498.46826, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2567.98242, -1508.08655, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2567.98242, -1517.71619, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2567.98242, -1527.34375, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19377, 2573.23828, -1536.92749, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2583.75342, -1536.94226, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2594.23755, -1536.94226, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2604.73657, -1536.92224, -50.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19457, 2567.98242, -1536.97681, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2572.73511, -1541.61340, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2582.35132, -1541.61340, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2591.98022, -1541.61340, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2601.59912, -1541.61340, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2611.22363, -1541.61340, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2609.64673, -1536.97681, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2609.64673, -1527.34375, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2609.64673, -1517.71619, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2609.64673, -1508.08655, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2609.64673, -1498.46826, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2609.64673, -1488.84753, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19394, 2577.53418, -1485.62036, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19438, 2578.33325, -1491.93372, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19411, 2580.72949, -1491.93372, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19394, 2582.39258, -1487.15344, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2588.80151, -1487.15344, -48.15700, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19365, 2579.20117, -1487.15344, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19394, 2595.20630, -1487.15344, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2601.62769, -1487.15344, -48.15700, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19457, 2585.52222, -1491.90063, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2596.73438, -1491.96057, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2585.53613, -1483.94971, -48.15700, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19394, 2579.12988, -1483.94971, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19394, 2591.95581, -1483.94971, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2598.36108, -1483.94971, -48.15700, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19394, 2607.97900, -1483.94971, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2604.77515, -1483.94971, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2606.36792, -1491.89099, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2596.73438, -1501.58716, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19365, 2583.94214, -1491.93372, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19411, 2575.93896, -1491.93372, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19438, 2573.54858, -1491.93372, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19411, 2571.15869, -1491.93372, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19438, 2568.76416, -1491.93372, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19394, 2588.71118, -1496.64905, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19394, 2606.36792, -1498.30066, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19365, 2595.12354, -1496.64905, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19394, 2593.50073, -1498.25647, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19365, 2591.92236, -1496.64905, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19394, 2579.10840, -1496.64905, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2572.69751, -1496.64905, -48.15700, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19457, 2593.50073, -1504.66357, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2606.36792, -1504.71655, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2596.73438, -1536.85156, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19394, 2596.73438, -1511.19775, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2579.10498, -1532.16663, -48.15700, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19394, 2572.68799, -1532.16663, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2593.50073, -1514.29639, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2593.50073, -1523.92566, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2580.17871, -1537.02161, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19394, 2592.84033, -1533.52258, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2588.73242, -1532.16663, -48.15700, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19365, 2569.49292, -1532.16663, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2593.50073, -1530.33081, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19365, 2592.84058, -1536.72754, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19365, 2592.84058, -1539.92944, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2606.36792, -1514.33423, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19394, 2581.71582, -1535.09802, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19394, 2588.12769, -1535.09802, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2591.31812, -1535.10168, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2586.59912, -1539.92896, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2596.73438, -1527.22974, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2596.73438, -1517.60791, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19365, 2596.73438, -1508.00098, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2601.62329, -1538.23767, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19394, 2606.36792, -1523.92163, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14410, 2603.18066, -1540.22668, -49.42110, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2606.36792, -1533.50403, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2601.46436, -1522.82019, -48.15700, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19365, 2606.36792, -1527.10815, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19365, 2606.36792, -1520.74219, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19377, 2580.90771, -1537.05920, -46.32280, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19457, 2567.98242, -1527.34375, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2567.98242, -1517.71619, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2567.98242, -1508.08655, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2567.98242, -1498.46826, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2579.10498, -1532.16663, -44.66560, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19457, 2588.73242, -1532.16663, -44.66560, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19365, 2569.49292, -1532.16663, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2569.50122, -1496.64905, -44.66560, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19365, 2591.92236, -1496.64905, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2588.72119, -1496.64905, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2575.88525, -1496.64905, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2572.67749, -1532.16663, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2611.22363, -1541.61340, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2601.59912, -1541.61340, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2591.98022, -1541.61340, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2609.64673, -1536.97681, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2601.46338, -1538.23767, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2593.46069, -1536.82861, -44.64560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19303, 2588.88403, -1517.11194, -48.66390, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2588.82397, -1518.85535, -48.66390, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1499, 2592.84473, -1534.26465, -49.92010, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14410, 2574.25952, -1498.61865, -49.42110, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2572.72388, -1504.14124, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2585.51172, -1496.64905, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2582.30908, -1496.64905, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14410, 2591.63647, -1525.89551, -49.42110, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19457, 2589.66089, -1527.42822, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19365, 2590.38696, -1519.81201, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19438, 2592.78369, -1519.81201, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2590.38696, -1516.14624, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2588.82397, -1515.19543, -48.66390, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19303, 2588.88403, -1513.45361, -48.66390, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2590.38696, -1512.49951, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2588.82397, -1511.55188, -48.66390, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19303, 2588.88403, -1509.80188, -48.66390, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2590.38696, -1508.83838, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2588.82397, -1507.86768, -48.66390, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19303, 2588.88403, -1506.13000, -48.66390, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2590.38696, -1505.17712, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2588.82397, -1504.22510, -48.66390, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19303, 2588.88403, -1502.47522, -48.66390, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2590.38696, -1501.50879, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19438, 2592.78369, -1516.14624, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19438, 2592.78369, -1508.83838, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19438, 2592.78369, -1512.49951, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19438, 2592.78369, -1505.17712, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19438, 2592.78369, -1501.50879, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19438, 2592.78369, -1501.50879, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2590.38696, -1501.50879, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2590.38696, -1519.81201, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19438, 2592.78369, -1519.81201, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2577.49097, -1501.45276, -48.66390, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2577.43091, -1503.18945, -48.66390, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19457, 2572.72388, -1500.48474, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2577.49097, -1505.09802, -48.66390, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2577.43091, -1506.82947, -48.66390, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19457, 2572.72388, -1507.78198, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2577.49097, -1508.74573, -48.66390, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2577.43091, -1510.49683, -48.66390, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19457, 2572.72388, -1511.46228, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2577.49097, -1512.40625, -48.66390, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2577.41772, -1514.14026, -48.66390, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19457, 2572.72388, -1515.10449, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2577.49097, -1516.07214, -48.66390, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2577.43091, -1517.80591, -48.66390, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19457, 2572.72388, -1518.77844, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2588.69189, -1522.68372, -48.66390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19303, 2586.95972, -1522.64368, -48.66390, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19457, 2585.99341, -1527.42822, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19303, 2585.02905, -1522.68372, -48.66390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19303, 2583.27686, -1522.64368, -48.66390, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19457, 2582.31201, -1527.42822, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19303, 2581.36182, -1522.70374, -48.66390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19303, 2579.62646, -1522.64368, -48.66390, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19365, 2584.92163, -1535.09802, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2578.66724, -1527.42822, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2583.44385, -1529.08032, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2589.85205, -1529.08032, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2571.35767, -1513.92432, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2571.35767, -1504.30652, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1533, 2596.31348, -1541.49646, -49.91540, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1537, 2593.30347, -1541.50256, -49.91520, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19365, 2593.49902, -1530.65002, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19273, 2587.68384, -1496.70154, -48.57370, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1800, 2579.30176, -1529.71985, -49.93800, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2819, 2572.33154, -1515.02246, -46.24090, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2843, 2571.78833, -1507.56091, -46.24090, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2844, 2573.01489, -1517.60657, -46.24090, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2852, 2569.12988, -1519.36218, -49.91600, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2855, 2568.41553, -1519.85400, -49.91580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2591.57056, -1500.70532, -49.51590, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1369, 2572.51929, -1508.48364, -45.63970, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1810, 2592.69019, -1500.98840, -49.91660, 0.00000, 0.00000, -120.00000);
- CreateDynamicObject(1712, 2575.10474, -1521.60791, -49.91530, 0.00000, 0.00000, 220.00000);
- CreateDynamicObject(1710, 2572.42480, -1522.98169, -49.91550, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2202, 2568.61523, -1485.09546, -49.91860, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2602, 2572.80518, -1503.66809, -49.35030, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2718, 2583.29663, -1496.86487, -47.33910, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2713, 2586.62939, -1496.74292, -47.07579, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2670, 2588.79297, -1505.17224, -49.81600, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2671, 2577.37207, -1511.55420, -49.89690, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2673, 2585.87183, -1522.61853, -49.81540, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1800, 2586.58960, -1529.61963, -49.93800, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1800, 2585.10864, -1528.30640, -49.93800, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1800, 2593.82910, -1519.16614, -49.93800, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1800, 2594.43774, -1502.44714, -49.93800, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1800, 2594.09326, -1508.22900, -49.93800, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1800, 2594.49976, -1515.55029, -49.93800, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1800, 2593.84644, -1509.71021, -49.93800, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1800, 2576.26758, -1501.41138, -49.93800, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1800, 2575.28101, -1517.93799, -49.93800, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1800, 2576.25122, -1514.52551, -49.93800, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1800, 2576.31226, -1508.65601, -49.93800, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1800, 2575.98706, -1507.13489, -49.93800, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19394, 2604.76782, -1530.64587, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1800, 2591.71436, -1542.23181, -49.93800, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1800, 2585.56396, -1542.43237, -49.93800, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1533, 2578.80688, -1541.49841, -49.91540, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1537, 2575.82056, -1541.48950, -49.91520, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19457, 2596.73291, -1501.50732, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19438, 2593.50073, -1500.78638, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19438, 2593.50073, -1496.67261, -44.64560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19438, 2588.86792, -1503.19250, -46.60810, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(3278, -1502.87170, -44.73340, -44.73340, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2578.66724, -1527.42786, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2572.72388, -1518.77844, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2580.88477, -1491.93469, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2575.99390, -1491.95569, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2571.26660, -1491.93286, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2571.26660, -1491.93286, -48.07390, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1649, 2575.99390, -1491.95569, -48.07390, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1649, 2580.88477, -1491.93469, -48.07390, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19438, 2578.31860, -1492.65125, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19438, 2573.61475, -1492.65125, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19438, 2597.53979, -1530.64587, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19438, 2602.35913, -1530.64502, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19365, 2599.94849, -1530.64502, -50.79670, 0.00000, 180.00000, 90.00000);
- CreateDynamicObject(19450, 2572.74170, -1487.11389, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19388, 2577.52100, -1485.62708, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 2577.52100, -1479.22351, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 2568.04858, -1482.28113, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 2568.04858, -1472.68555, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 2572.70215, -1474.37366, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19376, 2572.30908, -1482.24805, -49.98540, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 2572.29688, -1472.63074, -49.98540, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 2585.49756, -1479.14197, -49.98540, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 2582.85132, -1479.14355, -49.98600, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(1491, 2581.60938, -1487.16541, -49.92915, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1491, 2578.34424, -1483.96143, -49.92915, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1491, 2591.17407, -1483.97058, -49.92915, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1491, 2607.19409, -1483.95923, -49.92915, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1491, 2606.38599, -1499.04651, -49.92910, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1491, 2606.36719, -1524.65271, -49.92910, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1491, 2596.74072, -1511.93921, -49.92910, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1491, 2603.99561, -1530.66272, -49.92910, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19394, 2596.73438, -1535.11438, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19438, 2596.73438, -1537.50696, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2596.71509, -1528.70300, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19394, 2596.73438, -1522.29004, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2596.73438, -1515.88171, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19394, 2596.73438, -1507.94800, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19438, 2596.73633, -1510.28113, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1491, 2596.74634, -1508.70105, -46.41220, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1491, 2596.74268, -1523.02856, -46.39220, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1491, 2596.73853, -1535.85486, -46.41220, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19383, 2596.74243, -1511.18933, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19389, 2607.98511, -1483.93140, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19451, 2600.04883, -1479.17151, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19459, 2568.00049, -1487.06604, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19413, 2580.72876, -1491.91785, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19395, 2582.39893, -1487.16382, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19440, 2578.33716, -1491.91785, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19445, 2601.62573, -1519.32007, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19390, 2596.74512, -1522.29639, -44.64560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19453, 2596.74512, -1515.88208, -44.64560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 2601.57861, -1503.61792, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19384, 2606.36426, -1498.30371, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19453, 2577.64526, -1479.12122, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19390, 2579.13159, -1483.94873, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19453, 2590.37671, -1479.16846, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19451, 2590.70972, -1479.03870, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19451, 2595.59399, -1474.44043, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19451, 2604.87866, -1476.27332, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19451, 2609.63794, -1479.12170, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19453, 2585.53589, -1483.94873, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19453, 2586.36011, -1474.33655, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19453, 2576.73926, -1474.33655, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19445, 2606.31226, -1514.43140, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19445, 2601.52612, -1509.52893, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19445, 2596.74243, -1517.60657, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19451, 2601.56958, -1483.93140, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19446, 2606.36426, -1491.89954, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 2601.50659, -1487.19727, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19446, 2596.81445, -1492.05701, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 2596.81396, -1501.69055, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19446, 2606.36426, -1504.71265, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19460, 2605.17773, -1523.80847, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19396, 2596.74243, -1507.93945, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19441, 2596.75220, -1537.48865, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19459, 2575.99341, -1487.16382, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19459, 2566.37207, -1487.16382, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19367, 2585.52173, -1490.38965, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19440, 2584.78125, -1487.16980, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19440, 2585.52173, -1488.00598, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19367, 2583.93018, -1491.91785, -48.15700, 0.00000, 0.00000, 990.00000);
- CreateDynamicObject(19413, 2575.94653, -1491.91785, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19440, 2573.53979, -1491.91785, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19413, 2571.15576, -1491.91785, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19440, 2568.75244, -1491.91785, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19440, 2573.61475, -1491.23413, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19440, 2578.31860, -1491.23413, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19453, 2601.49902, -1523.92810, -44.64560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19453, 2604.40186, -1519.21802, -44.64560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19453, 2604.40723, -1514.36414, -44.64560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19453, 2601.52881, -1509.55347, -44.64560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19460, 2605.18359, -1533.41101, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19460, 2601.54688, -1538.22644, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19460, 2606.34937, -1504.71692, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19460, 2601.61230, -1499.81580, -44.64560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19460, 2601.56616, -1509.53284, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19460, 2596.74243, -1501.52954, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19460, 2596.75220, -1528.67676, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19396, 2596.75220, -1535.09338, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19460, 2601.58057, -1524.01147, -44.64560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19434, 2596.74512, -1510.27942, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19389, 2591.95532, -1483.93140, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19359, 2595.14453, -1483.93140, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2583.40991, -1522.69897, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19438, 2588.94702, -1522.69946, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2577.47266, -1505.22424, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19365, 2589.66089, -1527.40613, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19365, 2589.66089, -1524.21826, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19365, 2585.99341, -1527.40613, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19365, 2585.99341, -1524.21826, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19365, 2582.31201, -1524.21826, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19365, 2582.31201, -1527.40613, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19365, 2575.94946, -1500.48474, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2572.75977, -1500.48474, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2572.75977, -1504.14124, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2575.94946, -1504.14124, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2572.75977, -1507.78198, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2575.94946, -1507.78198, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2572.75977, -1511.46228, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2575.94946, -1511.46228, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2572.75977, -1515.10449, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2575.94946, -1515.10449, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2583.40991, -1522.69995, -45.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19438, 2588.94702, -1522.70020, -45.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2577.46680, -1514.04822, -45.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2577.46289, -1505.22412, -45.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19377, 2584.49292, -1527.44690, -46.32280, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2583.97290, -1527.44690, -46.32320, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2604.39526, -1533.42480, -46.34320, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2604.37622, -1523.79626, -46.34320, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2604.37622, -1514.20166, -46.32320, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2604.37622, -1504.58643, -46.32320, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2591.38745, -1536.89417, -46.32320, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19457, 2611.08936, -1538.23767, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19377, 2572.18408, -1513.94531, -46.32320, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2572.18408, -1505.22791, -46.32280, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19303, 2571.18823, -1503.19775, -44.98580, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19303, 2571.22827, -1501.44617, -44.98580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2571.18823, -1506.85437, -44.98580, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19303, 2571.24829, -1505.10486, -44.98580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2571.18823, -1510.49536, -44.98580, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19303, 2571.24829, -1508.74658, -44.98580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2571.18823, -1514.13904, -44.98580, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19303, 2571.24829, -1512.41980, -44.98580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2571.24829, -1516.06641, -44.98580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2571.18823, -1517.80603, -44.98580, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19457, 2571.22729, -1505.22424, -41.98680, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2571.22754, -1514.04822, -41.98680, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19303, 2581.35059, -1528.97156, -44.98580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2583.40991, -1528.94238, -41.98680, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19303, 2579.60327, -1528.91162, -44.98580, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19303, 2583.28394, -1528.91162, -44.98580, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19303, 2585.03296, -1528.97156, -44.98580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19303, 2588.69336, -1528.97156, -44.98580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19303, 2586.94556, -1528.91162, -44.98580, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19438, 2588.94702, -1528.94202, -41.98680, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1800, 2579.32202, -1527.93164, -46.27398, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1800, 2582.93384, -1526.51917, -46.27398, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1800, 2588.66797, -1527.36243, -46.27398, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1800, 2577.43042, -1501.41919, -46.27400, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1800, 2577.11499, -1505.10083, -46.27400, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1800, 2577.59204, -1510.85632, -46.27400, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1800, 2577.44751, -1512.31799, -46.27400, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1800, 2577.47534, -1516.01294, -46.27400, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19438, 2588.86646, -1506.45715, -46.60810, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19438, 2588.86597, -1509.73706, -46.60810, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19438, 2588.86548, -1513.03381, -46.60810, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19438, 2588.86499, -1516.33594, -46.60810, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19438, 2588.86548, -1518.14807, -46.60810, 90.00000, 0.00000, 180.00000);
- CreateDynamicObject(19438, 2588.86646, -1516.41406, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19438, 2588.88135, -1504.90344, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19438, 2588.86646, -1508.99731, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19438, 2588.87012, -1512.33447, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1810, 2590.42920, -1500.51331, -49.91660, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1810, 2586.68237, -1497.30750, -49.91660, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2602, 2572.14648, -1504.59937, -49.35030, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2602, 2573.22412, -1511.01282, -49.35030, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2602, 2573.22266, -1511.92688, -49.35030, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2602, 2572.79858, -1515.56519, -49.35030, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2602, 2591.27979, -1516.63000, -49.35030, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2602, 2591.74487, -1512.97473, -49.35030, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2602, 2592.38574, -1512.03723, -49.35030, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2602, 2591.84839, -1505.66943, -49.35030, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2602, 2591.37744, -1504.71008, -49.35030, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2602, 2582.76782, -1527.49097, -49.35030, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2602, 2589.18628, -1526.14258, -49.35030, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2602, 2581.86279, -1526.67358, -49.35030, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2602, 2581.86060, -1523.89819, -45.61610, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2602, 2585.52637, -1524.74927, -45.61610, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2602, 2586.44727, -1524.84241, -45.61610, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2602, 2576.57471, -1518.32629, -45.61610, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2602, 2576.43530, -1514.63892, -45.61610, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2602, 2575.47778, -1508.23962, -45.61610, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2602, 2576.33154, -1507.31702, -45.61610, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2602, 2576.11206, -1503.66699, -45.61610, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2718, 2568.19434, -1527.00000, -47.33910, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1711, 2578.03882, -1529.53357, -49.91520, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1711, 2576.34570, -1531.33813, -49.91520, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2635, 2569.77515, -1530.23474, -49.51590, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1810, 2569.92432, -1529.15881, -49.91660, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1810, 2569.37134, -1531.29395, -49.91660, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1810, 2568.62671, -1530.01941, -49.91660, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1810, 2570.78198, -1530.48633, -49.91660, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1810, 2576.96851, -1519.39624, -49.91660, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19273, 2594.08350, -1487.19788, -48.57370, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19273, 2594.18018, -1487.10999, -48.57370, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19273, 2589.69604, -1496.60120, -48.57370, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19273, 2573.71143, -1532.06836, -48.57370, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19273, 2571.60864, -1532.21521, -48.57370, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19273, 2593.41919, -1497.23035, -48.57370, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19273, 2593.55542, -1499.23413, -48.57370, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19273, 2577.58984, -1486.57471, -48.57370, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19273, 2577.44214, -1484.65076, -48.57370, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2602, 2587.07300, -1539.93286, -49.35030, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2602, 2580.64624, -1539.87231, -49.35030, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19377, 2598.66260, -1533.35229, -46.32270, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2598.66260, -1523.75049, -46.32270, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2598.66260, -1514.12561, -46.32270, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2598.66260, -1504.50085, -46.32270, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2598.66260, -1494.88330, -46.32270, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2593.63184, -1506.68372, -46.32320, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19377, 2593.63184, -1514.64746, -46.32230, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(638, 2568.48364, -1477.85156, -49.19830, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2245, 2572.41943, -1481.87903, -48.68350, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2252, 2572.42139, -1485.11365, -48.68350, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2253, 2568.62402, -1481.60767, -48.72350, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19175, 2585.85278, -1474.42944, -47.35350, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19174, 2574.56104, -1487.03320, -47.61350, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19173, 2570.72852, -1474.47534, -47.60280, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19172, 2568.13721, -1479.89917, -47.61350, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18070, 2569.50610, -1483.44165, -49.47186, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1806, 2586.90967, -1488.75354, -49.91704, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2161, 2596.98218, -1492.31104, -49.91700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2162, 2596.87769, -1490.86902, -48.72180, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2163, 2606.37378, -1499.91345, -48.52203, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2164, 2602.21899, -1487.31799, -49.91704, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2165, 2605.77466, -1496.28833, -49.91700, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2167, 2596.95679, -1493.40100, -49.91700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2169, 2597.33545, -1490.92798, -49.91700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2172, 2597.42065, -1500.96277, -49.91700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2174, 2599.37720, -1487.76538, -49.91704, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2181, 2603.72656, -1502.96973, -49.91700, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2182, 2605.72803, -1502.02673, -49.91700, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2183, 2601.35400, -1497.89331, -49.91700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2184, 2599.82764, -1527.04395, -46.25660, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2185, 2602.97461, -1531.84851, -46.23660, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2193, 2598.41455, -1503.01685, -49.91700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2198, 2601.69312, -1503.04260, -49.91700, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2199, 2597.56201, -1524.18323, -46.25660, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2200, 2604.13843, -1487.38721, -49.91704, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2204, 2604.62842, -1509.37769, -46.25660, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2205, 2597.36426, -1502.96680, -46.25660, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2206, 2603.71655, -1505.10828, -46.25660, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2308, 2597.39551, -1488.77307, -49.91704, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1714, 2605.20947, -1504.24695, -46.21650, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1721, 2569.63257, -1474.60681, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2611, 2591.42407, -1487.29639, -48.26870, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2606, 2591.78906, -1496.30676, -47.69410, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2604, 2596.13354, -1494.63843, -49.11350, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2616, 2574.79102, -1518.92114, -48.60635, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1742, 2598.48486, -1538.24622, -46.25660, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1671, 2600.98779, -1524.89697, -45.79235, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2894, 2591.63574, -1500.69678, -49.08870, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1998, 2586.08789, -1488.74377, -49.91875, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1523, 2600.10474, -1479.13501, -49.92952, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2742, 2600.31421, -1482.18481, -48.60370, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2741, 2605.64014, -1483.76282, -48.46370, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1775, 2579.58594, -1474.87830, -48.82513, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(956, 2580.95557, -1474.80444, -49.49685, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1789, 2588.80957, -1486.76392, -49.35120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2146, 2596.20996, -1508.98181, -49.43050, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2628, 2574.28003, -1540.58179, -49.92200, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2627, 2572.58423, -1540.41638, -49.91840, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2629, 2575.20313, -1533.17505, -49.91780, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2630, 2568.96802, -1537.28748, -49.91880, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2631, 2577.87817, -1534.40308, -49.91780, 0.00000, 0.00000, 15.00000);
- CreateDynamicObject(2632, 2569.96753, -1534.49731, -49.91730, 0.00000, 0.00000, 100.00000);
- CreateDynamicObject(1363, 2583.87109, -1493.30212, -49.08421, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2596, 2571.47485, -1519.17908, -48.30616, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1713, 2584.90649, -1481.50220, -49.90458, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2000, 2586.11768, -1494.90564, -49.91420, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2523, 2601.54858, -1483.32410, -49.81460, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2525, 2607.53931, -1476.88062, -49.91460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3072, 2570.91357, -1532.60449, -49.71390, 0.00000, 90.00000, 50.00000);
- CreateDynamicObject(3004, 2578.01782, -1537.85706, -49.01550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2995, 2578.33276, -1537.65479, -48.99400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2996, 2578.62646, -1537.23999, -48.99400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2997, 2578.38940, -1538.05322, -48.99400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2998, 2578.55835, -1538.38879, -48.99400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2999, 2578.71729, -1537.82056, -48.99400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3000, 2577.95215, -1538.75720, -48.99400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2995, 2577.85596, -1538.33630, -48.99400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2964, 2578.29688, -1537.96448, -49.91370, 0.00000, 0.00000, 80.00000);
- CreateDynamicObject(14401, 2587.76660, -1469.15039, -49.62430, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1363, 2582.29395, -1495.10706, -49.08421, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14455, 2577.31763, -1481.97693, -48.38499, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14455, 2590.16699, -1481.47791, -48.38499, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2146, 2605.76953, -1516.00061, -49.43050, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2611, 2603.20459, -1524.15088, -44.87059, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14455, 2604.03296, -1509.76282, -48.28500, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2165, 2569.67407, -1481.68408, -49.75700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14455, 2598.97168, -1535.75232, -48.28500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14455, 2598.63550, -1523.78687, -44.68180, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14455, 2603.71631, -1500.01074, -44.70180, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1806, 2600.41162, -1488.70020, -49.91704, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2010, 2568.52417, -1486.66736, -49.90100, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2010, 2577.07935, -1474.77063, -49.90100, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2946, 2576.44922, -1474.44080, -49.90040, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2946, 2573.27051, -1474.41724, -49.90040, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2614, 2570.66675, -1486.98413, -47.63040, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2010, 2568.47461, -1474.89624, -49.90100, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1721, 2570.24854, -1474.60681, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2570.86060, -1474.60681, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2571.47290, -1474.60681, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2583.87866, -1474.54224, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2585.25098, -1488.88098, -49.90590, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1806, 2570.82275, -1490.87329, -49.91700, 0.00000, 0.00000, 200.00000);
- CreateDynamicObject(3004, 2578.15698, -1538.35229, -49.01550, 0.00000, 0.00000, -150.00000);
- CreateDynamicObject(3072, 2568.93994, -1535.83972, -49.71390, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(3072, 2569.24634, -1533.01208, -49.67390, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(3072, 2579.19116, -1533.47083, -49.67390, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(3072, 2579.59277, -1535.24817, -49.71390, 0.00000, 90.00000, -15.00000);
- CreateDynamicObject(2819, 2575.37158, -1504.00977, -49.91674, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2844, 2574.35718, -1511.12402, -49.91626, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2852, 2576.17847, -1504.80542, -49.91603, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2852, 2589.46997, -1511.89709, -49.91603, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2855, 2575.18433, -1511.84570, -49.91580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2843, 2575.69604, -1518.78784, -49.91651, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1369, 2575.72192, -1515.83301, -49.31600, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2855, 2589.40991, -1501.91907, -49.91580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2843, 2588.94653, -1508.74988, -49.91651, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2819, 2589.46948, -1513.59839, -49.91674, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2855, 2589.45874, -1519.40405, -49.91580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2852, 2578.05347, -1531.53015, -49.91600, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1369, 2597.63550, -1513.57092, -49.31600, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2146, 2602.29590, -1518.70361, -49.43050, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14455, 2596.43384, -1517.47253, -44.72180, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2606, 2578.67944, -1490.76758, -43.61390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2606, 2597.10278, -1505.08801, -44.05260, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2819, 2599.03271, -1480.38318, -49.29670, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2596, 2585.77661, -1483.56042, -47.88430, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1806, 2594.95313, -1495.69495, -49.91700, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1806, 2580.77637, -1490.76599, -49.91700, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1806, 2576.08960, -1490.74622, -49.91700, 0.00000, 0.00000, 170.00000);
- CreateDynamicObject(14401, 2613.71362, -1470.69446, -49.62430, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14401, 2596.19336, -1474.96106, -49.62430, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(14782, 2591.12061, -1478.68481, -48.91040, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19359, 2601.70410, -1477.57898, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1523, 2601.76587, -1479.13501, -49.92950, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19359, 2603.36670, -1477.57898, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1523, 2603.43408, -1479.13501, -49.92950, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19359, 2605.05103, -1477.57898, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1523, 2605.11182, -1479.13501, -49.92950, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19359, 2606.72070, -1477.57898, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1523, 2606.78003, -1479.13501, -49.92950, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19359, 2608.38110, -1477.57898, -48.15700, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19359, 2609.90601, -1479.10535, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19379, 2605.34692, -1479.18799, -49.91380, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(2525, 2605.91382, -1476.88062, -49.91460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2525, 2604.16821, -1476.88062, -49.91460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2525, 2602.54395, -1476.88062, -49.91460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2525, 2600.89771, -1476.88062, -49.91460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2523, 2603.16846, -1483.32410, -49.81460, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2523, 2606.63232, -1483.32410, -49.81460, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2523, 2604.84888, -1483.32410, -49.81460, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2741, 2603.85864, -1483.76282, -48.46370, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2741, 2600.60522, -1483.76282, -48.46370, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2741, 2602.20996, -1483.76282, -48.46370, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2742, 2600.31421, -1480.62231, -48.60370, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2742, 2609.43042, -1480.52808, -48.60370, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2742, 2609.43042, -1482.34863, -48.60370, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1789, 2609.24829, -1492.59570, -49.35120, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1789, 2609.24463, -1510.89917, -49.35120, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2185, 2598.71509, -1529.34131, -46.23660, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2185, 2598.69971, -1531.77185, -46.23660, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2185, 2604.92847, -1529.39124, -46.23660, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2185, 2604.92847, -1534.41040, -46.23660, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2180, 2604.58057, -1526.72522, -46.23660, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2185, 2604.92847, -1531.84851, -46.23660, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2185, 2602.97461, -1534.41040, -46.23660, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2185, 2602.97461, -1529.39294, -46.23660, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2844, 2594.80347, -1475.47400, -49.29630, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2843, 2593.65186, -1483.94617, -49.27650, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2852, 2599.43823, -1483.13098, -49.91600, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2855, 2593.16162, -1474.95178, -49.91580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1789, 2593.90356, -1529.38184, -49.35120, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1369, 2583.47314, -1535.81604, -49.31600, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3072, 2582.31519, -1540.82629, -49.71390, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(2852, 2590.54321, -1541.08350, -49.91600, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2590.40771, -1535.82129, -49.51590, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2819, 2591.74268, -1536.52283, -49.91670, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2844, 2583.94360, -1538.20215, -49.91626, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2671, 2586.97827, -1535.93213, -49.89690, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1810, 2580.68408, -1536.78333, -49.91660, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1810, 2588.70215, -1541.01331, -49.91660, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1810, 2591.71729, -1536.16455, -49.91660, 0.00000, 0.00000, -100.00000);
- CreateDynamicObject(1713, 2600.71387, -1508.91553, -46.28670, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2010, 2578.33032, -1475.01855, -49.90100, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2010, 2589.80762, -1475.05420, -49.90100, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2010, 2589.81470, -1483.41736, -49.90100, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2010, 2580.66528, -1483.34033, -49.90100, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1721, 2584.48218, -1474.54224, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2585.08569, -1474.54224, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2585.70093, -1474.54224, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2586.31104, -1474.54224, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2586.93262, -1474.54224, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2587.53809, -1474.54224, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2587.53809, -1478.06799, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2586.93262, -1478.06799, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2586.31104, -1478.06799, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2585.70093, -1478.06799, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2585.08569, -1478.06799, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2584.48218, -1478.06799, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2583.87866, -1478.06799, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2587.53809, -1477.80798, -49.90590, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1721, 2586.93262, -1477.80798, -49.90590, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1721, 2586.31104, -1477.80798, -49.90590, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1721, 2585.70093, -1477.80798, -49.90590, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1721, 2585.08569, -1477.80798, -49.90590, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1721, 2584.48218, -1477.80798, -49.90590, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1721, 2583.87866, -1477.80798, -49.90590, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1721, 2577.85864, -1477.00391, -49.90590, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1721, 2577.85864, -1477.61597, -49.90590, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1721, 2577.85864, -1478.22400, -49.90590, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1721, 2577.85864, -1478.83960, -49.90590, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1721, 2577.85864, -1479.44983, -49.90590, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1721, 2577.85864, -1480.05359, -49.90590, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1721, 2577.85864, -1480.66565, -49.90590, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19173, 2577.74170, -1478.78918, -47.34280, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1721, 2568.24292, -1488.48950, -49.90590, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1721, 2568.25806, -1489.10095, -49.90590, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1721, 2572.55347, -1487.33875, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2573.16187, -1487.34607, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2573.76978, -1487.35364, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2577.89258, -1487.38855, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2578.49341, -1487.37585, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2579.09424, -1487.36316, -49.90590, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1721, 2585.25098, -1489.48145, -49.90590, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1721, 2585.25098, -1490.08191, -49.90590, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1810, 2580.52197, -1492.96436, -49.91660, 0.00000, 0.00000, 190.00000);
- CreateDynamicObject(1810, 2575.77637, -1492.75854, -49.91660, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1810, 2570.69043, -1492.83032, -49.91660, 0.00000, 0.00000, 160.00000);
- CreateDynamicObject(1363, 2569.69702, -1494.92078, -49.08421, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2000, 2586.11768, -1494.39185, -49.91420, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2000, 2586.11768, -1493.86658, -49.91420, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2000, 2605.48438, -1518.76184, -49.91420, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2000, 2605.00439, -1518.75061, -49.91420, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2615, 2588.26880, -1487.28296, -48.52640, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2615, 2574.38354, -1518.93274, -48.44710, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2615, 2601.38721, -1538.09265, -44.93370, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2184, 2599.55859, -1512.51917, -46.25660, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2852, 2582.84888, -1527.43164, -46.24090, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2852, 2572.39941, -1501.08386, -46.24090, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2852, 2568.61255, -1497.22864, -46.24090, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2855, 2577.09937, -1505.96021, -46.24090, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2819, 2582.33325, -1527.63440, -46.24090, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2844, 2586.07373, -1526.79089, -46.24090, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1810, 2573.23657, -1503.49475, -46.24090, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1810, 2585.36938, -1526.96338, -46.24090, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2165, 2605.77905, -1493.67004, -49.91700, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2165, 2605.81689, -1491.15540, -49.91700, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2183, 2601.35352, -1493.96692, -49.91700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1806, 2598.38501, -1488.60022, -49.91704, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1806, 2600.89673, -1502.00037, -49.91700, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1806, 2603.20557, -1502.23035, -49.91700, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1806, 2598.52271, -1502.08582, -49.91700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1806, 2598.15820, -1500.15710, -49.91700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1806, 2605.02002, -1502.13989, -49.91700, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1806, 2604.91797, -1495.18140, -49.91700, 0.00000, 0.00000, 190.00000);
- CreateDynamicObject(1806, 2605.14307, -1492.21313, -49.91700, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1806, 2605.41919, -1490.08899, -49.91700, 0.00000, 0.00000, 160.00000);
- CreateDynamicObject(1806, 2601.67261, -1497.34338, -49.91700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1806, 2602.03223, -1491.72705, -49.91700, 0.00000, 0.00000, 100.00000);
- CreateDynamicObject(1806, 2601.80176, -1495.71045, -49.91700, 0.00000, 0.00000, 100.00000);
- CreateDynamicObject(1806, 2601.73486, -1493.26978, -49.91700, 0.00000, 0.00000, 80.00000);
- CreateDynamicObject(1806, 2599.17505, -1491.63220, -49.91700, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1806, 2599.11133, -1497.35950, -49.91700, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1806, 2599.21216, -1493.34729, -49.91700, 0.00000, 0.00000, -80.00000);
- CreateDynamicObject(1806, 2599.11914, -1494.95374, -49.91700, 0.00000, 0.00000, -860.00000);
- CreateDynamicObject(2202, 2597.38647, -1497.29321, -49.91860, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2202, 2605.84692, -1501.26392, -46.25660, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2202, 2604.26831, -1537.74451, -46.25660, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2635, 2601.48755, -1515.65649, -45.81770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2199, 2599.06812, -1509.67236, -46.25660, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1742, 2597.60156, -1509.65869, -46.25660, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2611, 2602.52026, -1509.70483, -44.87059, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1714, 2600.68555, -1510.39087, -46.21650, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2600.59888, -1515.65698, -45.81770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2599.71069, -1515.65796, -45.81770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2599.71240, -1516.58228, -45.81770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2599.71802, -1517.51526, -45.81770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2599.71387, -1518.43994, -45.81770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2599.71118, -1519.36511, -45.81770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2599.70850, -1520.29028, -45.81770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2600.58838, -1520.28259, -45.81770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2601.47729, -1520.28918, -45.81770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2601.47974, -1519.36768, -45.81770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2601.47559, -1518.44104, -45.81770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2601.47559, -1517.51526, -45.81770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2601.47559, -1516.58228, -45.81770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2600.59888, -1516.58228, -45.81770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2600.59888, -1517.51526, -45.81770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2600.59888, -1518.43994, -45.81770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2600.59888, -1519.36511, -45.81770, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1806, 2601.18921, -1521.74365, -46.23790, 0.00000, 0.00000, 10.00000);
- CreateDynamicObject(1806, 2604.15088, -1530.79492, -46.23790, 0.00000, 0.00000, 15.00000);
- CreateDynamicObject(1806, 2604.09448, -1535.74048, -46.23790, 0.00000, 0.00000, 15.00000);
- CreateDynamicObject(1806, 2603.93750, -1533.27576, -46.23790, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1806, 2602.18140, -1530.70654, -46.23790, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1806, 2601.81592, -1535.80945, -46.23790, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1806, 2602.22144, -1533.18469, -46.23790, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1806, 2598.36084, -1530.76440, -46.23790, 0.00000, 0.00000, 15.00000);
- CreateDynamicObject(1806, 2597.86426, -1533.26538, -46.23790, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1806, 2599.85864, -1521.53955, -46.23790, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1806, 2602.92407, -1518.60632, -46.23790, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1806, 2602.81445, -1516.00598, -46.23790, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1806, 2602.81958, -1517.30981, -46.23790, 0.00000, 0.00000, 100.00000);
- CreateDynamicObject(1806, 2602.77197, -1520.11450, -46.23790, 0.00000, 0.00000, 80.00000);
- CreateDynamicObject(1806, 2598.47681, -1517.20923, -46.23790, 0.00000, 0.00000, 270.00000);
- CreateDynamicObject(1806, 2598.59570, -1520.40613, -46.23790, 0.00000, 0.00000, 290.00000);
- CreateDynamicObject(1806, 2598.32495, -1515.85583, -46.23790, 0.00000, 0.00000, 260.00000);
- CreateDynamicObject(1806, 2598.46143, -1518.56140, -46.23790, 0.00000, 0.00000, 270.00000);
- CreateDynamicObject(2894, 2600.37036, -1512.12280, -45.48580, 0.00000, 0.00000, -10.00000);
- CreateDynamicObject(2894, 2603.79810, -1504.21948, -45.32550, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2894, 2598.10400, -1529.46814, -45.42781, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2894, 2604.37891, -1531.95337, -45.43073, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2894, 2602.46851, -1534.55371, -45.43033, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2001, 2597.29370, -1500.36682, -46.23613, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2001, 2605.67236, -1500.43628, -46.23713, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2001, 2605.86353, -1509.00757, -46.23719, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2001, 2597.51782, -1509.20056, -46.23853, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2245, 2597.29150, -1501.55530, -45.10540, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2252, 2600.58569, -1519.09448, -45.10540, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2252, 2600.63550, -1516.62964, -45.10540, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2253, 2601.65112, -1512.40173, -45.12540, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2894, 2600.86157, -1526.71851, -45.48580, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2008, 2605.73901, -1512.52026, -49.91470, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2009, 2598.35034, -1518.66821, -49.91380, 0.00000, 0.00000, 18090.00000);
- CreateDynamicObject(1806, 2598.55957, -1517.70276, -49.91330, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1806, 2604.53857, -1513.04248, -49.91330, 0.00000, 0.00000, -120.00000);
- CreateDynamicObject(1999, 2597.33716, -1516.68750, -49.91330, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1806, 2598.66626, -1515.95056, -49.91330, 0.00000, 0.00000, 80.00000);
- CreateDynamicObject(1806, 2601.09863, -1529.57886, -49.91330, 0.00000, 0.00000, 170.00000);
- CreateDynamicObject(1806, 2599.12573, -1529.55432, -49.91330, 0.00000, 0.00000, 210.00000);
- CreateDynamicObject(2635, 2599.46484, -1532.53149, -49.53300, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2600.33936, -1532.53198, -49.53300, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2599.46265, -1533.45850, -49.53300, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2600.34717, -1533.46289, -49.53300, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2601.21802, -1533.46277, -49.53300, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2635, 2601.22827, -1532.52905, -49.53300, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2601.50391, -1535.96143, -48.15700, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1806, 2602.64160, -1532.93860, -49.91330, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1806, 2597.96924, -1532.92883, -49.91330, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1808, 2606.14307, -1532.02734, -49.91390, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2611, 2606.21655, -1534.06055, -48.50110, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2615, 2596.87427, -1534.12744, -48.26969, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2604, 2598.77588, -1523.37158, -49.16039, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1742, 2606.38892, -1527.54590, -49.91400, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2894, 2601.38232, -1533.00220, -49.09920, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2245, 2600.28979, -1532.98804, -48.92830, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1806, 2599.87769, -1524.60071, -49.91330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2008, 2601.19189, -1523.51062, -49.91369, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1806, 2602.09302, -1524.65088, -49.91330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2289, 2602.73682, -1530.51477, -48.19218, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2287, 2597.32715, -1528.70410, -48.49450, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19173, 2606.26440, -1505.40930, -44.33310, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19174, 2604.31934, -1516.84656, -44.20910, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19377, 2570.48438, -1536.98816, -46.32280, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2609.05151, -1495.01025, -46.32280, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2588.26196, -1491.91650, -46.32280, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2577.76514, -1491.91650, -46.32280, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2567.30249, -1491.85706, -46.32280, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2609.04883, -1485.38208, -46.32280, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2609.05371, -1475.81421, -46.32280, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2598.59033, -1485.25952, -46.32280, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2598.60522, -1475.78210, -46.32280, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2588.22559, -1482.30920, -46.32280, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2577.75000, -1482.28381, -46.32280, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2567.30493, -1482.27686, -46.32280, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2588.32837, -1472.82227, -46.32280, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2577.97363, -1472.76172, -46.32280, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2567.49756, -1472.73145, -46.32280, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2573.06641, -1501.30261, -43.14140, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2583.55322, -1501.27698, -43.14140, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2593.98682, -1501.26221, -43.14140, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2604.46899, -1501.23511, -43.14140, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2573.21289, -1510.93457, -43.14140, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2573.19482, -1520.48315, -43.14140, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2573.17261, -1530.09070, -43.14140, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2604.78564, -1539.13416, -43.14140, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2594.33789, -1539.16272, -43.14140, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2583.61108, -1527.38879, -43.14140, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2583.59595, -1517.81982, -43.14140, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2583.57471, -1508.38232, -43.14100, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2594.01123, -1510.68335, -43.14100, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2604.43481, -1510.66492, -43.14100, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2593.84204, -1520.25879, -43.14100, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2593.91895, -1529.78552, -43.14100, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2604.27930, -1520.22876, -43.14100, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2604.24341, -1529.55286, -43.14100, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(16779, 2573.03149, -1480.88623, -46.41247, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16779, 2583.56738, -1479.21240, -46.41266, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16779, 2602.03760, -1504.97571, -43.23161, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16779, 2600.71997, -1519.15662, -43.23109, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16779, 2600.74341, -1513.91467, -43.23240, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2597.88989, -1481.67188, -48.01162, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2607.06226, -1479.55444, -48.01160, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14680, 2587.03491, -1483.66406, -48.01160, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14680, 2606.71167, -1483.48694, -48.01160, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14680, 2594.33618, -1494.36743, -48.01160, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2590.17407, -1494.06519, -48.01160, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2602.65259, -1530.03674, -44.77839, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2602.65381, -1536.29956, -44.77840, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2594.78369, -1517.27771, -44.77840, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2594.73267, -1510.18250, -44.77840, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2576.17236, -1487.53223, -48.01160, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14680, 2580.87866, -1487.46729, -48.01160, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14680, 2580.84375, -1492.36255, -48.01160, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14680, 2576.27808, -1492.71997, -48.01160, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14680, 2573.37939, -1539.67676, -48.01160, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2578.07520, -1539.60449, -48.01160, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2585.70508, -1536.43091, -48.01160, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14680, 2591.81128, -1536.13403, -48.01160, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14680, 2587.90649, -1531.57642, -48.01160, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14680, 2596.62573, -1538.75452, -48.01160, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2596.89502, -1525.88184, -48.01160, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2596.87769, -1517.50830, -48.01160, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2596.88208, -1508.79663, -48.01160, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2602.65771, -1516.59473, -48.01160, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2603.02002, -1529.10193, -48.01160, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2603.24658, -1535.49536, -48.01160, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2602.77759, -1501.35938, -48.01160, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2602.91504, -1494.98413, -48.01160, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2609.90112, -1492.45386, -48.01160, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2597.30737, -1483.54065, -48.01160, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14680, 2597.30737, -1483.54065, -48.01160, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14680, 2610.06348, -1504.14380, -48.01160, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2609.78418, -1530.53442, -48.01160, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2609.78125, -1516.39758, -48.01160, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2603.16992, -1542.31421, -44.77840, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2596.68042, -1535.33899, -44.77840, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14438, 2582.89795, -1509.68689, -41.55914, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14680, 2574.86792, -1527.99976, -44.85020, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2615, 2591.48560, -1501.63916, -44.87640, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2604, 2596.16553, -1503.93079, -45.48770, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(14685, 2569.72339, -1541.74365, -49.17550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14686, 2569.99048, -1539.16528, -49.49780, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19430, 2569.26294, -1541.66345, -49.19740, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19394, 2595.02148, -1495.94958, -44.64560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2596.73291, -1495.08789, -44.64560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19365, 2579.09326, -1496.64905, -44.66560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2595.20044, -1493.53894, -44.64560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2588.92554, -1490.47449, -44.64560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19365, 2593.66895, -1492.01538, -44.64560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2579.29199, -1490.47449, -44.64560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19457, 2574.54614, -1491.76636, -44.64560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1494, 2595.76807, -1495.93347, -46.39760, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3394, 2591.60400, -1491.15332, -46.23640, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3395, 2578.17749, -1496.01196, -46.23630, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(3389, 2575.11060, -1492.32385, -46.23840, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3388, 2575.11060, -1491.28015, -46.23840, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3387, 2575.11060, -1493.35913, -46.23840, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3386, 2575.11060, -1494.40210, -46.23840, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2606, 2578.67944, -1490.76758, -44.06360, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2606, 2578.67944, -1490.76758, -44.51390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14391, 2583.95825, -1491.39612, -45.28270, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1671, 2585.79834, -1493.32935, -45.79240, 0.00000, 0.00000, 200.00000);
- CreateDynamicObject(1671, 2583.03809, -1493.37903, -45.79240, 0.00000, 0.00000, 170.00000);
- CreateDynamicObject(1671, 2591.25732, -1491.89514, -45.79240, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1671, 2578.37451, -1495.59460, -45.79240, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2606, 2589.80542, -1496.32996, -43.81910, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2606, 2589.80542, -1496.32996, -44.25910, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19377, 2592.14258, -1491.71265, -43.14140, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2581.76343, -1491.67957, -43.14140, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 2571.33789, -1491.62769, -43.14140, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(14680, 2590.65576, -1496.53162, -44.77840, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14680, 2583.76318, -1496.50903, -44.77840, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19438, 2593.46069, -1523.85315, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19438, 2593.46069, -1528.16846, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19438, 2593.46069, -1526.56458, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19438, 2593.45996, -1525.10400, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2855, 2589.30444, -1523.53430, -49.91580, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2852, 2579.39990, -1523.78247, -49.91603, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2819, 2582.60229, -1524.50977, -49.91674, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19325, 2583.98071, -1496.63440, -44.22130, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19325, 2593.47339, -1521.86755, -43.01513, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19325, 2593.50684, -1530.39648, -42.97044, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19325, 2588.88647, -1517.69177, -42.50720, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19325, 2588.88647, -1514.42761, -42.50720, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19325, 2588.88647, -1510.71814, -42.50720, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19325, 2588.88647, -1506.75598, -42.50720, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19325, 2588.88647, -1503.50513, -42.50720, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19325, 2593.45288, -1499.01685, -43.11288, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19457, 2577.48267, -1514.06824, -44.66560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 2600.22559, -1530.64111, -48.07390, 0.00000, 0.00000, 0.00000);
- }
- stock LoadHospital() //from SC:RP
- {
- CreateDynamicObject(19449,-207.3999939,-1739.6999512,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(17038,-205.8994141,-1747.6992188,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-204.3994141,-1747.6992188,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-202.8999939,-1747.6999512,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-201.3994141,-1747.6992188,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(19460,-207.3990021,-1739.6999512,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19449,-202.6000061,-1734.8000488,676.5000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19460,-206.1999969,-1734.8010254,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1569,-206.0000000,-1734.9000244,674.7999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1569,-203.0000000,-1734.9000244,674.7999878,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(19387,-196.6992188,-1744.5000000,676.5000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19357,-201.3994141,-1736.5000000,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19368,-201.4003906,-1736.5000000,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2885,-211.7998047,-1734.7998047,678.4000244,270.0000000,180.0000000,180.0000000);
- CreateDynamicObject(17038,-199.8994141,-1747.6992188,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-198.3999939,-1747.6999512,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-196.8994141,-1747.6992188,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(19449,-196.6000061,-1738.0159912,676.5000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19460,-196.6719971,-1738.0169678,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19449,-195.3994141,-1742.8994141,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(17038,-195.3994141,-1747.6992188,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(19460,-195.4010010,-1742.9000244,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19449,-201.1000061,-1739.6999512,674.0999756,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19460,-201.1005859,-1739.6992188,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19357,-199.8837891,-1744.5000000,676.5000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19460,-191.1503906,-1744.4990234,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19460,-191.1503906,-1744.5009766,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19368,-199.0749969,-1744.4990234,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19368,-199.0749969,-1744.5009766,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19368,-199.8849945,-1744.4980469,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19460,-201.0989990,-1739.5999756,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19357,-201.3994141,-1746.0996094,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19387,-201.3994141,-1749.2998047,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19357,-201.3999939,-1752.5000000,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19387,-201.3999939,-1755.6999512,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19357,-201.3999939,-1758.9000244,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(17038,-205.8994141,-1768.3994141,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-204.3999939,-1768.4000244,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-202.8999939,-1768.4000244,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-201.3999939,-1768.4000244,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-199.8994141,-1768.3994141,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-198.3994141,-1768.3994141,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-196.8999939,-1768.4000244,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-195.3994141,-1768.3994141,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(19368,-201.4019928,-1746.0999756,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19368,-201.4010010,-1746.9250488,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19387,-201.3994141,-1762.0996094,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19449,-206.1999969,-1763.6999512,676.5000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19368,-201.4010010,-1751.6369629,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19368,-201.4019928,-1753.3249512,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19368,-201.4010010,-1758.0369873,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19368,-201.4019928,-1759.7249756,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19368,-201.4010010,-1764.4370117,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19460,-206.3000031,-1763.6989746,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19387,-207.3994141,-1746.0996094,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19387,-207.3994141,-1758.8994141,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19357,-207.3999939,-1762.0999756,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19449,-195.3994141,-1752.5000000,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19449,-195.3994141,-1762.0996094,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19449,-196.5996094,-1758.7998047,676.5000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19460,-206.0000000,-1733.2998047,672.5999756,270.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19460,-203.0000000,-1733.3000488,672.5999756,270.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19441,-203.7140045,-1733.3010254,677.3980244,0.0000000,270.0000000,90.0000000);
- CreateDynamicObject(19441,-205.2870026,-1733.3010254,677.3970244,0.0000000,270.0000000,90.0000000);
- CreateDynamicObject(2885,-200.8994141,-1734.7998047,678.4000244,270.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2885,-200.8994141,-1741.5000000,678.4000244,270.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2885,-211.7998047,-1741.5000000,678.4000244,270.0000000,179.9945068,179.9945068);
- CreateDynamicObject(2885,-211.7998047,-1748.1992188,678.4000244,270.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2885,-200.8999939,-1748.1999512,678.4000244,270.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2885,-200.8994141,-1754.8994141,678.4000244,270.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2885,-200.8994141,-1761.5996094,678.4000244,270.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2885,-211.7998047,-1761.5996094,678.4000244,270.0000000,0.0000000,0.0000000);
- CreateDynamicObject(17038,-207.3994141,-1747.6992188,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-208.8994141,-1747.6992188,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-210.3999939,-1747.6999512,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-211.8999939,-1747.6999512,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-213.3994141,-1747.6992188,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-213.3994141,-1768.3994141,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-211.8999939,-1768.4000244,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-210.3994141,-1768.3994141,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-208.8994141,-1768.3994141,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(17038,-207.3999939,-1768.4000244,668.2999878,0.0000000,270.0000000,0.0000000);
- CreateDynamicObject(19449,-214.6000061,-1758.9000244,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19449,-214.5996094,-1749.2998047,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19449,-214.6000061,-1739.6999512,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19449,-212.1992188,-1734.7998047,676.5000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19368,-199.8000031,-1744.5010986,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19368,-201.3979950,-1746.0999756,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19368,-201.3990021,-1746.9250488,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19368,-201.3990021,-1751.6369629,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19368,-201.3970032,-1753.3242188,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19368,-201.3990021,-1758.0369873,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19368,-201.3979950,-1759.7249756,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19460,-195.4010010,-1752.5000000,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19460,-195.4003906,-1762.0996094,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19460,-196.6494141,-1758.7988281,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19460,-196.6494141,-1758.8007812,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19460,-207.3979950,-1740.5140381,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19368,-207.3990021,-1761.2370605,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19368,-207.3979950,-1764.4000244,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19460,-214.5989990,-1758.8000488,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19460,-214.5980072,-1749.1999512,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19460,-214.5989990,-1739.5999756,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19460,-215.8000031,-1734.8011475,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19460,-207.4010010,-1739.6999512,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19460,-207.4013672,-1740.5136719,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19368,-207.4011993,-1761.2370605,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19368,-207.4010010,-1764.3994141,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(3034,-204.3994141,-1763.5996094,676.7000122,0.0000000,0.0000000,179.9945068);
- CreateDynamicObject(1523,-201.3699951,-1756.4499512,674.7399902,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1523,-201.3691406,-1750.0498047,674.7399902,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1523,-201.3699951,-1762.8499756,674.7399902,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2686,-201.5130005,-1744.9000244,676.4000244,0.0000000,0.0000000,270.0000000);
- CreateDynamicObject(2685,-201.5130005,-1745.4000244,676.4000244,0.0000000,0.0000000,270.0000000);
- CreateDynamicObject(2688,-207.2998047,-1747.5996094,676.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(16101,-201.5000000,-1748.5000000,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-201.5000000,-1750.0000000,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-201.5000000,-1754.9000244,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-201.5000000,-1756.4000244,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-201.5000000,-1761.3000488,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-201.5000000,-1762.8000488,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-201.3291016,-1748.5000000,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-201.3300018,-1750.0000000,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-201.3300018,-1754.9000244,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-201.3300018,-1756.4000244,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-201.3300018,-1761.3000488,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-201.3300018,-1762.8000488,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(14487,-211.8000031,-1751.5000000,678.0999756,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(14487,-211.7998047,-1729.5996094,678.0999756,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(14487,-218.5996094,-1729.5996094,678.0999756,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(14487,-218.6000061,-1754.3000488,678.0999756,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(14487,-190.8994141,-1753.5996094,678.0999756,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(14487,-190.8999939,-1735.1999512,678.0999756,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(14487,-190.8994141,-1731.6992188,678.0999756,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1523,-207.3691406,-1746.8496094,674.7399902,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1523,-207.3699951,-1759.6500244,674.7399902,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(16101,-207.3291016,-1745.2998047,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-207.3300018,-1746.8199463,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-207.3300018,-1758.0999756,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-207.3300018,-1759.6199951,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-207.5000000,-1759.5999756,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-207.5000000,-1758.0999756,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-207.5000000,-1746.8000488,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-207.5000000,-1745.2998047,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1999,-200.5000000,-1740.3994141,674.7999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2009,-199.5000000,-1743.7998047,674.7999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1671,-199.5000000,-1739.3000488,675.2000122,0.0000000,0.0000000,270.0000000);
- CreateDynamicObject(1671,-199.2998047,-1743.0000000,675.2000122,0.0000000,0.0000000,270.0000000);
- CreateDynamicObject(19387,-213.0000000,-1742.6992188,676.5000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19357,-209.7998047,-1742.6992188,673.9010010,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19357,-209.0000000,-1742.7001953,673.9000244,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19449,-212.1999969,-1742.6989746,679.0000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19466,-208.5000000,-1742.6999512,676.4000244,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19466,-210.7402344,-1742.6992188,676.4000244,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19368,-209.0000000,-1742.6989746,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19368,-210.6640015,-1742.6979980,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19368,-215.3739929,-1742.6989746,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19368,-215.3750000,-1742.7001953,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19368,-209.0000000,-1742.7011719,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19368,-210.6640015,-1742.7021484,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1523,-213.7890625,-1742.7294922,674.7399902,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-212.2998047,-1742.7998047,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-213.8000031,-1742.8000488,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-213.8000031,-1742.5999756,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-212.3000031,-1742.5999756,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-207.5000000,-1742.6992188,666.9000244,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(3657,-213.8999939,-1745.6999512,675.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(3394,-213.7998047,-1739.0000000,674.7999878,0.0000000,0.0000000,179.9945068);
- CreateDynamicObject(3396,-208.1992188,-1737.0000000,674.7999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(3397,-208.1992188,-1740.8994141,674.7999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(14487,-218.6000061,-1731.8000488,678.0999756,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2007,-213.6992188,-1735.3994141,674.7999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2007,-212.6992188,-1735.3994141,674.7999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2132,-211.0996094,-1735.3994141,674.7999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(14532,-211.3994141,-1737.0996094,675.7800293,0.0000000,0.0000000,194.7491455);
- CreateDynamicObject(2146,-211.0996094,-1738.7998047,675.2700195,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(3657,-206.8999939,-1754.5999756,675.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2811,-201.8994141,-1735.3994141,674.7999878,0.0000000,0.0000000,139.9932861);
- CreateDynamicObject(2811,-201.8999939,-1763.1999512,674.7999878,0.0000000,0.0000000,219.9957275);
- CreateDynamicObject(2811,-206.8999939,-1763.1999512,674.7999878,0.0000000,0.0000000,149.9957275);
- CreateDynamicObject(3657,-206.8999939,-1739.5999756,675.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2811,-206.8994141,-1735.3994141,674.7999878,0.0000000,0.0000000,221.9897461);
- CreateDynamicObject(2688,-201.5000000,-1760.5000000,676.4000244,0.0000000,0.0000000,270.0000000);
- CreateDynamicObject(19460,-201.5000000,-1739.6999512,679.9000244,0.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19460,-207.3000031,-1739.6999512,679.9000244,0.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19460,-207.3000031,-1749.3000488,679.9000244,0.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19460,-207.3000031,-1758.9000244,679.9000244,0.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19460,-201.5000000,-1749.3000488,679.9000244,0.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19460,-201.5000000,-1758.9000244,679.9000244,0.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19460,-204.8000031,-1734.9000244,679.9000244,0.0000000,179.9945068,90.0000000);
- CreateDynamicObject(19460,-206.3999939,-1763.5999756,679.9000244,0.0000000,179.9945068,90.0000000);
- CreateDynamicObject(19460,-214.5000000,-1758.9000244,679.9000244,0.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19460,-214.5000000,-1749.3000488,679.9000244,0.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19460,-214.5000000,-1739.6999512,679.9000244,0.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19460,-207.5000000,-1758.9000244,679.9000244,0.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19460,-207.5000000,-1749.3000488,679.9000244,0.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19460,-207.5000000,-1739.6999512,679.9000244,0.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19460,-214.3999939,-1734.9000244,679.9000244,0.0000000,179.9945068,90.0000000);
- CreateDynamicObject(19460,-212.1999969,-1742.8000488,679.9000244,0.0000000,179.9945068,90.0000000);
- CreateDynamicObject(19460,-212.1999969,-1742.5999756,679.9000244,0.0000000,179.9945068,90.0000000);
- CreateDynamicObject(19460,-196.6000061,-1744.4000244,679.9000244,0.0000000,179.9945068,90.0000000);
- CreateDynamicObject(19460,-196.6000061,-1738.0999756,679.9000244,0.0000000,179.9945068,90.0000000);
- CreateDynamicObject(19460,-196.6000061,-1744.5999756,679.9000244,0.0000000,179.9945068,90.0000000);
- CreateDynamicObject(19460,-196.6000061,-1758.6999512,679.9000244,0.0000000,179.9945068,90.0000000);
- CreateDynamicObject(19460,-196.6000061,-1758.9000244,679.9000244,0.0000000,179.9945068,90.0000000);
- CreateDynamicObject(19460,-195.5000000,-1758.9000244,679.9000244,0.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19460,-195.5000000,-1749.3000488,679.9000244,0.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19460,-195.5000000,-1739.6999512,679.9000244,0.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19357,-209.0000000,-1748.8010254,673.9010010,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19449,-207.3999939,-1752.5000000,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19460,-207.4010010,-1751.5999756,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19460,-207.3990021,-1751.5999756,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19460,-207.4019928,-1753.3000488,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19460,-207.3979950,-1753.3000488,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(3657,-206.8999939,-1750.4000244,675.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19387,-213.0000000,-1748.8000488,676.5000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19449,-212.1999969,-1748.8010254,679.0000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19357,-209.8000031,-1748.8000488,673.9000244,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19466,-208.6000061,-1748.8000488,676.4000244,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19466,-210.8404999,-1748.8000488,676.4000244,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19449,-212.1999969,-1756.1999512,676.5000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1523,-213.7890015,-1748.8299561,674.7399902,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19460,-212.1999969,-1748.6999512,679.9000244,0.0000000,179.9945068,90.0000000);
- CreateDynamicObject(19460,-212.1999969,-1748.9000244,679.9000244,0.0000000,179.9945068,90.0000000);
- CreateDynamicObject(19460,-212.1999969,-1756.0999756,679.9000244,0.0000000,179.9945068,90.0000000);
- CreateDynamicObject(19460,-212.3000031,-1756.1989746,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19368,-209.0000000,-1748.7990000,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19368,-210.6629944,-1748.7980000,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19368,-210.6621094,-1748.8027344,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19368,-209.0000000,-1748.8017578,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19368,-215.3750000,-1748.7989502,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19368,-215.3750000,-1748.8007812,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(3397,-208.1999969,-1750.8000488,674.7999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(3396,-208.1999969,-1754.4000244,674.7999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19460,-212.1999969,-1756.3000488,679.9000244,0.0000000,179.9945068,90.0000000);
- CreateDynamicObject(2132,-209.8999939,-1755.5999756,674.7999878,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2007,-212.3000031,-1755.5999756,674.7999878,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2007,-213.3000031,-1755.5999756,674.7999878,0.0000000,0.0000000,179.9945068);
- CreateDynamicObject(3394,-213.8000031,-1752.1999512,674.7999878,0.0000000,0.0000000,179.9945068);
- CreateDynamicObject(2146,-211.1000061,-1751.9000244,675.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(14532,-210.6999969,-1753.5000000,675.7999878,0.0000000,0.0000000,14.0000000);
- CreateDynamicObject(19460,-212.2998047,-1756.2001953,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(3657,-201.8994141,-1746.5000000,675.2999878,0.0000000,0.0000000,270.0000000);
- CreateDynamicObject(2811,-214.0000000,-1743.4000244,674.7999878,0.0000000,0.0000000,251.9897461);
- CreateDynamicObject(2811,-214.0000000,-1748.0999756,674.7999878,0.0000000,0.0000000,295.9879761);
- CreateDynamicObject(16101,-207.5000000,-1748.8000488,666.9000244,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(3394,-213.8000031,-1761.5000000,674.7999878,0.0000000,0.0000000,179.9945068);
- CreateDynamicObject(2007,-214.0000000,-1758.5999756,674.7999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2007,-214.0000000,-1757.5999756,674.7999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2132,-210.1000061,-1763.0999756,674.7999878,0.0000000,0.0000000,179.9945068);
- CreateDynamicObject(3396,-208.1999969,-1761.6999512,674.7999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(3397,-210.8000031,-1756.6999512,674.7999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2146,-211.1999969,-1759.9000244,675.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(11237,-230.0000000,-1760.4000244,698.9000244,0.0000000,180.0000000,180.0000000);
- CreateDynamicObject(3053,-211.1999969,-1760.4000244,678.4000244,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-211.1999969,-1760.4000244,688.0999756,0.0000000,180.0000000,0.0000000);
- CreateDynamicObject(2596,-214.3000031,-1760.0999756,676.7000122,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2885,-211.8000031,-1754.9000244,678.4000244,270.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2596,-214.3000031,-1760.8000488,676.7000122,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2596,-214.3000031,-1760.8000488,677.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(2596,-214.3000031,-1760.0999756,677.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(16101,-222.6000061,-1760.4000244,677.9000244,0.0000000,90.0000000,0.0000000);
- CreateDynamicObject(16101,-214.5000000,-1760.4000244,666.19387220,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(3808,-207.2500000,-1757.8000488,676.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(3808,-212.0000000,-1742.8499756,676.2999878,0.0000000,0.0000000,270.0000000);
- CreateDynamicObject(3808,-212.0000000,-1748.6600342,676.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19460,-201.3000031,-1749.5000000,679.9000244,0.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19460,-201.3000031,-1759.0999756,679.9000244,0.0000000,179.9945068,0.0000000);
- CreateDynamicObject(2009,-199.5000000,-1747.8000488,674.7999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1999,-200.5000000,-1746.0999756,674.8010254,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1671,-199.3999939,-1746.9000244,675.2000122,0.0000000,0.0000000,264.0000000);
- CreateDynamicObject(1671,-199.3999939,-1745.0999756,675.2000122,0.0000000,0.0000000,278.0000000);
- CreateDynamicObject(2009,-196.8000031,-1753.8000488,674.8010254,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1999,-197.8000031,-1752.0999756,674.7999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1999,-198.6999969,-1752.8000488,674.7999878,0.0000000,0.0000000,270.0000000);
- CreateDynamicObject(2009,-199.6999969,-1751.0999756,674.8010254,0.0000000,0.0000000,270.0000000);
- CreateDynamicObject(1671,-197.6000061,-1753.0000000,675.2000122,0.0000000,0.0000000,282.0000000);
- CreateDynamicObject(1671,-196.8000031,-1751.3000488,675.2000122,0.0000000,0.0000000,260.0000000);
- CreateDynamicObject(1671,-199.8000031,-1752.0999756,675.2000122,0.0000000,0.0000000,84.0000000);
- CreateDynamicObject(1671,-199.8000031,-1753.8000488,675.2000122,0.0000000,0.0000000,104.0000000);
- CreateDynamicObject(2009,-196.0000000,-1757.1999512,674.7999878,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1999,-197.6999969,-1758.1999512,674.8010254,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1671,-196.8999939,-1757.3000488,675.2000122,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1671,-198.6999969,-1758.0000000,675.2000122,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2202,-196.0000000,-1746.1999512,674.7800293,0.0000000,0.0000000,270.0000000);
- CreateDynamicObject(2811,-195.8999939,-1745.0999756,674.7999878,0.0000000,0.0000000,115.9932861);
- CreateDynamicObject(2007,-196.0000000,-1748.3000488,674.7999878,0.0000000,0.0000000,270.0000000);
- CreateDynamicObject(2007,-196.0000000,-1749.3000488,674.7999878,0.0000000,0.0000000,270.0000000);
- CreateDynamicObject(2811,-200.8999939,-1758.3000488,674.7999878,0.0000000,0.0000000,141.9881592);
- CreateDynamicObject(2611,-198.1999969,-1758.6700439,676.7999878,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(2611,-201.2700043,-1746.4000244,676.5999756,0.0000000,0.0000000,89.9945068);
- CreateDynamicObject(19449,-215.8000031,-1763.6999512,676.5000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19449,-201.3999939,-1768.5000000,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19449,-195.3999939,-1771.6999512,676.5000000,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2885,-200.8999939,-1768.3000488,678.4000244,270.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19460,-201.3990021,-1767.5799561,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19460,-195.4010010,-1771.6999512,673.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(19460,-195.5000000,-1768.5000000,679.9000244,0.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19460,-201.3000031,-1768.6999512,679.9000244,0.0000000,179.9945068,0.0000000);
- CreateDynamicObject(19449,-196.6000061,-1772.4000244,676.5000000,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19460,-196.6000061,-1772.3990479,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(19460,-196.6000061,-1772.3000488,679.9000244,0.0000000,179.9945068,90.0000000);
- CreateDynamicObject(14487,-190.8999939,-1778.1999512,678.0999756,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1789,-211.8000031,-1753.0999756,675.2999878,0.0000000,0.0000000,290.0000000);
- CreateDynamicObject(1789,-211.8994141,-1759.1992188,675.2999878,0.0000000,0.0000000,270.0000000);
- CreateDynamicObject(1789,-210.1999969,-1737.6999512,675.2999878,0.0000000,0.0000000,99.9951172);
- CreateDynamicObject(1800,-199.0000000,-1759.5000000,674.7000122,0.0000000,0.0000000,270.0000000);
- CreateDynamicObject(1800,-199.0000000,-1771.5000000,674.7000122,0.0000000,0.0000000,270.0000000);
- CreateDynamicObject(1800,-199.0000000,-1767.5999756,674.7000122,0.0000000,0.0000000,270.0000000);
- CreateDynamicObject(1800,-199.0000000,-1763.6999512,674.7000122,0.0000000,0.0000000,270.0000000);
- CreateDynamicObject(1800,-200.6999969,-1766.9000244,674.7000122,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1800,-200.6999969,-1773.3000488,674.7000122,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1789,-196.1999969,-1770.6999512,675.2999878,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(1789,-196.1999969,-1766.6999512,675.2999878,0.0000000,0.0000000,179.9945068);
- CreateDynamicObject(1789,-196.1999969,-1762.9000244,675.2999878,0.0000000,0.0000000,179.9945068);
- CreateDynamicObject(1789,-196.3000031,-1760.6999512,675.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1789,-200.5000000,-1766.1999512,675.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(1789,-200.5000000,-1769.4000244,675.2999878,0.0000000,0.0000000,180.0000000);
- CreateDynamicObject(19460,-216.0000000,-1763.5999756,679.9000244,0.0000000,179.9945068,90.0000000);
- CreateDynamicObject(1999,-197.5000000,-1740.4000244,674.7999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(1671,-196.5000000,-1739.3000488,675.2000122,0.0000000,0.0000000,270.0000000);
- CreateDynamicObject(19460,-215.8999939,-1763.6989746,673.2999878,0.0000000,0.0000000,90.0000000);
- CreateDynamicObject(16101,-212.3000031,-1748.6999512,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-213.8000031,-1748.6999512,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-213.8000031,-1748.9000244,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(16101,-212.3000031,-1748.9000244,666.2999878,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2852,-206.8000031,-1742.8000488,675.2800293,0.0000000,0.0000000,0.0000000);
- CreateDynamicObject(2315,-206.8000031,-1742.4000244,674.7999878,0.0000000,0.0000000,270.0000000);
- CreateDynamicObject(2855,-206.6999969,-1743.6999512,675.2999878,0.0000000,0.0000000,0.0000000);
- SetDynamicObjectMaterial(CreateDynamicObject(11435,-204.3999939,-1745.0999756,679.4000244,0.0000000,0.0000000,270.0000000), 1, 14532, "drivingbit", "blak_1");
- SetDynamicObjectMaterial(CreateDynamicObject(11435,-204.3999939,-1752.0000000,679.4000244,0.0000000,0.0000000,270.0000000), 1, 14532, "drivingbit", "blak_1");
- SetDynamicObjectMaterial(CreateDynamicObject(11435,-204.3999939,-1758.8000488,679.4000244,0.0000000,0.0000000,270.0000000), 1, 14532, "drivingbit", "blak_1");
- SetDynamicObjectMaterial(CreateDynamicObject(11435,-198.6000061,-1764.0000000,679.4000244,0.0000000,0.0000000,270.0000000), 1, 14532, "drivingbit", "blak_1");
- SetDynamicObjectMaterial(CreateDynamicObject(11435,-198.6000061,-1769.1999512,679.4000244,0.0000000,0.0000000,270.0000000), 1, 14532, "drivingbit", "blak_1");
- SetDynamicObjectMaterial(CreateDynamicObject(11435,-198.6000061,-1756.3000488,679.4000244,0.0000000,0.0000000,270.0000000), 1, 14532, "drivingbit", "blak_1");
- SetDynamicObjectMaterial(CreateDynamicObject(11435,-198.6000061,-1749.9000244,679.4000244,0.0000000,0.0000000,270.0000000), 1, 14532, "drivingbit", "blak_1");
- // Bank interior
- CreateDynamicObject(14602, 1443.33521, -985.86328, 1000.47083, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 1420.34436, -987.59058, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 1420.34436, -997.22662, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 1420.34436, -977.94659, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 1420.34436, -968.31262, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19377, 1425.39563, -997.23810, 998.69531, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19379, 1425.52917, -996.80780, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19377, 1425.39563, -987.59912, 998.69928, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19377, 1425.39563, -977.97009, 998.69531, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19377, 1425.39563, -968.33612, 998.69531, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19450, 1425.15210, -1001.58301, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateDynamicObject(19450, 1444.42175, -992.99921, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateDynamicObject(19450, 1425.24097, -1001.64844, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateDynamicObject(19450, 1435.60022, -997.79559, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 1430.77246, -1001.59528, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateDynamicObject(1569, 1432.61536, -1001.55011, 995.10773, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19388, 1438.83838, -993.01642, 996.85449, 0.00000, 0.00000, 90.90000);
- CreateDynamicObject(19431, 1436.57031, -993.03369, 996.85193, 0.00000, 0.00000, 89.95040);
- CreateDynamicObject(19431, 1436.32031, -993.03369, 996.85388, 0.00000, 0.00000, 89.95040);
- CreateDynamicObject(19450, 1425.15210, -970.08197, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateDynamicObject(19450, 1427.71814, -970.08197, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateDynamicObject(19450, 1439.00610, -970.08197, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateDynamicObject(19450, 1448.52612, -970.08197, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateDynamicObject(19388, 1433.38245, -970.08441, 996.86249, 0.00000, 0.00000, 89.78290);
- CreateDynamicObject(19450, 1444.40637, -976.56262, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 1444.40637, -966.93060, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 1444.40637, -994.98560, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19377, 1435.89355, -997.23810, 998.69531, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19377, 1435.89355, -987.59912, 998.70532, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19377, 1435.89355, -977.97009, 998.70532, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19377, 1435.89355, -968.33612, 998.69531, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19377, 1446.39160, -968.33612, 998.69531, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19377, 1446.39160, -977.97009, 998.69733, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19377, 1446.39160, -987.59912, 998.69733, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19450, 1444.40637, -986.19659, 1000.16260, -180.00000, 0.00000, 0.00000);
- CreateDynamicObject(1569, 1457.74744, -985.02881, 995.10431, 0.00000, 0.00000, -90.06000);
- CreateDynamicObject(19377, 1446.35864, -997.23810, 998.69531, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(16101, 1424.50464, -988.71008, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16101, 1424.50464, -990.89410, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16101, 1424.50464, -993.07813, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16101, 1424.50464, -995.26208, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16101, 1424.50464, -997.44611, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16101, 1424.50464, -999.63013, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16101, 1424.50464, -983.33411, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16101, 1424.50464, -981.15009, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16101, 1424.50464, -978.96613, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16101, 1424.50464, -976.78210, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16101, 1424.50464, -974.59808, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16101, 1424.50464, -972.41412, 990.73462, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19325, 1424.51428, -991.97479, 999.00391, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19325, 1424.51428, -998.45477, 999.00391, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19325, 1424.51428, -980.05078, 999.00391, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19325, 1424.51428, -973.42279, 999.00391, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2190, 1426.35876, -983.58972, 995.82874, 0.00000, 0.00000, -39.84000);
- CreateDynamicObject(2190, 1427.57007, -986.54395, 995.82874, 0.00000, 0.00000, -102.06001);
- CreateDynamicObject(2190, 1425.72351, -988.86444, 995.82874, 0.00000, 0.00000, -154.73996);
- CreateDynamicObject(1715, 1425.98022, -986.25348, 995.10559, 0.00000, 0.00000, 81.60000);
- CreateDynamicObject(1715, 1425.09607, -984.83795, 995.10559, 0.00000, 0.00000, 148.67998);
- CreateDynamicObject(1715, 1424.76306, -987.25067, 995.10559, 0.00000, 0.00000, 29.09999);
- CreateDynamicObject(2244, 1427.16125, -984.70050, 996.06403, 0.00000, 0.00000, 27.72000);
- CreateDynamicObject(2244, 1426.93335, -987.59070, 996.06403, 0.00000, 0.00000, -24.42000);
- CreateDynamicObject(2165, 1420.89612, -986.00458, 995.10638, 0.00000, 0.00000, 89.57999);
- CreateDynamicObject(1715, 1422.16272, -985.46423, 995.10559, 0.00000, 0.00000, -105.06001);
- CreateDynamicObject(2164, 1420.47449, -980.71246, 995.10602, 0.00000, 0.00000, 87.65998);
- CreateDynamicObject(2773, 1426.07617, -993.09894, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateDynamicObject(2773, 1426.07690, -990.98590, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateDynamicObject(2773, 1426.07617, -995.23187, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateDynamicObject(2773, 1426.07617, -997.52289, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateDynamicObject(2773, 1426.07617, -999.65588, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateDynamicObject(2773, 1426.07690, -981.18988, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateDynamicObject(2773, 1426.07690, -979.05688, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateDynamicObject(2773, 1426.07690, -976.84491, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateDynamicObject(2773, 1426.07690, -974.63287, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateDynamicObject(2773, 1426.07690, -972.42090, 995.65790, 0.00000, 0.00000, 89.16010);
- CreateDynamicObject(1514, 1424.18726, -992.59534, 996.20605, 0.00000, 0.00000, 89.58002);
- CreateDynamicObject(1514, 1424.18726, -994.72827, 996.20612, 0.00000, 0.00000, 89.58000);
- CreateDynamicObject(1514, 1424.18726, -996.94031, 996.20612, 0.00000, 0.00000, 89.58000);
- CreateDynamicObject(1514, 1424.18726, -999.23132, 996.20612, 0.00000, 0.00000, 89.58000);
- CreateDynamicObject(1514, 1424.18726, -980.66632, 996.20612, 0.00000, 0.00000, 89.58000);
- CreateDynamicObject(1514, 1424.18726, -978.53333, 996.20612, 0.00000, 0.00000, 89.58000);
- CreateDynamicObject(1514, 1424.18726, -976.32129, 996.20612, 0.00000, 0.00000, 89.58000);
- CreateDynamicObject(1514, 1424.18726, -974.18829, 996.20612, 0.00000, 0.00000, 89.58000);
- CreateDynamicObject(1514, 1424.18726, -971.97632, 996.20612, 0.00000, 0.00000, 89.58000);
- CreateDynamicObject(1514, 1424.18726, -1001.12732, 996.20612, 0.00000, 0.00000, 89.58000);
- CreateDynamicObject(2599, 1426.01086, -1000.61847, 995.50098, 0.00000, 0.00000, -90.78001);
- CreateDynamicObject(2599, 1425.84473, -973.51959, 995.50061, 0.00000, 0.00000, -89.88000);
- CreateDynamicObject(2007, 1420.94165, -999.54968, 995.10248, 0.00000, 0.00000, 89.76000);
- CreateDynamicObject(2007, 1420.94165, -998.60168, 995.10248, 0.00000, 0.00000, 89.76000);
- CreateDynamicObject(2007, 1420.94165, -997.65369, 995.10248, 0.00000, 0.00000, 89.76000);
- CreateDynamicObject(2007, 1420.94165, -996.70569, 995.10248, 0.00000, 0.00000, 89.76000);
- CreateDynamicObject(2007, 1420.94165, -995.75769, 995.10248, 0.00000, 0.00000, 89.76000);
- CreateDynamicObject(1806, 1422.44788, -971.87213, 995.10742, 0.00000, 0.00000, -78.18002);
- CreateDynamicObject(1806, 1422.44788, -973.37311, 995.10742, 0.00000, 0.00000, -86.22002);
- CreateDynamicObject(1806, 1422.44788, -975.50610, 995.10742, 0.00000, 0.00000, -94.20003);
- CreateDynamicObject(1806, 1422.44788, -977.63910, 995.10742, 0.00000, 0.00000, -93.60002);
- CreateDynamicObject(1806, 1422.44788, -979.93011, 995.10742, 0.00000, 0.00000, -83.64001);
- CreateDynamicObject(1806, 1422.44788, -991.78009, 995.10742, 0.00000, 0.00000, -87.24001);
- CreateDynamicObject(1806, 1422.44788, -993.75513, 995.10742, 0.00000, 0.00000, -101.16003);
- CreateDynamicObject(1806, 1422.44788, -996.04608, 995.10742, 0.00000, 0.00000, -91.26003);
- CreateDynamicObject(1806, 1422.44788, -998.33710, 995.10742, 0.00000, 0.00000, -89.94003);
- CreateDynamicObject(1806, 1422.44788, -1000.23309, 995.10742, 0.00000, 0.00000, -78.18000);
- CreateDynamicObject(19379, 1425.52917, -987.17383, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19379, 1425.52917, -977.54077, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19379, 1425.52917, -967.90881, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19379, 1436.03015, -996.80780, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19379, 1436.03015, -987.17383, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19379, 1436.03015, -977.53979, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19379, 1436.03015, -967.90778, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19379, 1446.53076, -987.19177, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19379, 1457.03186, -987.19177, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19379, 1457.03186, -977.55780, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19379, 1446.53186, -977.55780, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19379, 1446.53186, -967.92480, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19379, 1446.53223, -996.81183, 995.01910, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19450, 1449.15112, -981.53003, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateDynamicObject(19450, 1458.76709, -981.53003, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateDynamicObject(19450, 1449.15210, -990.17499, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateDynamicObject(19450, 1458.78308, -990.17499, 996.85638, 0.00000, 0.00000, 89.99190);
- CreateDynamicObject(19377, 1449.57959, -985.77112, 998.29529, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19377, 1459.64563, -985.73309, 998.27332, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19450, 1457.40637, -985.67657, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1569, 1457.37061, -982.48169, 995.10571, 0.00000, 0.00000, 269.37631);
- CreateDynamicObject(1569, 1457.37549, -985.46259, 995.10571, 0.00000, 0.00000, 89.99800);
- CreateDynamicObject(1569, 1457.36865, -986.57483, 995.10571, 0.00000, 0.00000, 269.37631);
- CreateDynamicObject(1569, 1457.37585, -989.57758, 995.10571, 0.00000, 0.00000, 89.99800);
- CreateDynamicObject(19431, 1440.70752, -982.46478, 996.86212, 0.00000, 0.00000, -91.56000);
- CreateDynamicObject(19431, 1440.70752, -981.04077, 996.86212, 0.00000, 0.00000, -91.14001);
- CreateDynamicObject(19431, 1439.91956, -981.72931, 996.86212, 0.00000, 0.00000, -183.05991);
- CreateDynamicObject(19431, 1441.44763, -981.76929, 996.86212, 0.00000, 0.00000, -181.92000);
- CreateDynamicObject(19431, 1441.44763, -989.43732, 996.86212, 0.00000, 0.00000, -181.92000);
- CreateDynamicObject(19431, 1440.70752, -988.71283, 996.86212, 0.00000, 0.00000, -91.56000);
- CreateDynamicObject(19431, 1440.70752, -990.13281, 996.86212, 0.00000, 0.00000, -91.56000);
- CreateDynamicObject(19431, 1439.88562, -989.40332, 996.86212, 0.00000, 0.00000, -181.92000);
- CreateDynamicObject(19431, 1431.84351, -988.67279, 996.86212, 0.00000, 0.00000, -91.56000);
- CreateDynamicObject(19431, 1431.10046, -989.40332, 996.86212, 0.00000, 0.00000, -181.92000);
- CreateDynamicObject(19431, 1431.84351, -990.13580, 996.86212, 0.00000, 0.00000, -91.56000);
- CreateDynamicObject(19431, 1432.58154, -989.40332, 996.86212, 0.00000, 0.00000, -181.92000);
- CreateDynamicObject(19431, 1432.58154, -982.06531, 996.86212, 0.00000, 0.00000, -181.92000);
- CreateDynamicObject(19431, 1431.02148, -982.01929, 996.86212, 0.00000, 0.00000, -181.92000);
- CreateDynamicObject(19431, 1431.84351, -982.75677, 996.86212, 0.00000, 0.00000, -91.56000);
- CreateDynamicObject(19431, 1431.84351, -981.32483, 996.86212, 0.00000, 0.00000, -91.56000);
- CreateDynamicObject(1569, 1432.61133, -970.15210, 995.10773, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14576, 1435.29407, -987.92871, 990.71588, 0.00000, 0.00000, -0.36000);
- CreateDynamicObject(19379, 1436.03015, -1001.03583, 995.02307, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(19388, 1438.86841, -1002.63641, 996.85449, 0.00000, 0.00000, 90.90000);
- CreateDynamicObject(19450, 1440.54065, -997.84619, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 1437.23877, -997.84979, 996.85638, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19377, 1440.83362, -1004.66913, 998.26831, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(2634, 1441.06909, -1004.53168, 992.32001, 0.00000, 0.00000, 270.07040);
- CreateDynamicObject(2198, 1433.27332, -996.86798, 989.92047, 0.00000, 0.00000, 178.63960);
- CreateDynamicObject(2198, 1433.27332, -994.02600, 989.92047, 0.00000, 0.00000, 178.63960);
- CreateDynamicObject(2198, 1433.27332, -990.89001, 989.92047, 0.00000, 0.00000, 178.63960);
- CreateDynamicObject(2198, 1433.27332, -1000.00403, 989.92047, 0.00000, 0.00000, 178.63960);
- CreateDynamicObject(1806, 1432.72278, -998.97363, 989.91901, 0.00000, 0.00000, -167.28003);
- CreateDynamicObject(1806, 1432.60571, -995.73785, 989.91901, 0.00000, 0.00000, 175.12816);
- CreateDynamicObject(1806, 1432.60571, -992.79791, 989.91901, 0.00000, 0.00000, 194.12750);
- CreateDynamicObject(1806, 1432.60571, -989.75989, 989.91901, 0.00000, 0.00000, 186.49478);
- CreateDynamicObject(16782, 1443.08545, -993.57495, 992.76324, 0.00000, 0.00000, 179.01819);
- CreateDynamicObject(3397, 1442.95642, -993.62469, 989.94727, 0.00000, 0.00000, 357.18283);
- CreateDynamicObject(3386, 1442.72241, -996.43250, 989.89600, 0.00000, 0.00000, 176.06250);
- CreateDynamicObject(3386, 1442.72241, -997.60852, 989.91400, 0.00000, 0.00000, 176.06250);
- CreateDynamicObject(3386, 1442.87439, -990.38049, 989.91400, 0.00000, 0.00000, 356.84091);
- CreateDynamicObject(3386, 1442.87439, -989.24652, 989.91400, 0.00000, 0.00000, 356.84091);
- CreateDynamicObject(18643, 1427.60217, -995.31152, 984.01813, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18643, 1418.20618, -995.31152, 984.01813, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18643, 1418.20618, -990.12750, 984.01813, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18643, 1427.60217, -990.12750, 984.01813, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18643, 1427.60217, -984.45752, 984.45007, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18643, 1418.04419, -984.45752, 984.45007, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14598, 1431.54688, -985.73328, 1010.65839, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1723, 1439.22668, -972.44214, 995.05151, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1723, 1442.60986, -973.58191, 995.05151, 0.00000, 0.00000, 269.47330);
- CreateDynamicObject(1723, 1441.65991, -976.88171, 995.05151, 0.00000, 0.00000, 179.19260);
- CreateDynamicObject(1723, 1438.09546, -975.58490, 995.05151, 0.00000, 0.00000, 86.82700);
- CreateDynamicObject(1817, 1439.95251, -975.20856, 995.11218, 0.00000, 0.00000, -0.36000);
- CreateDynamicObject(2011, 1437.90637, -970.72211, 995.11951, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2002, 1439.03247, -970.70801, 995.11951, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1776, 1440.21924, -970.60382, 996.18219, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2816, 1439.91479, -974.76520, 995.62378, 0.00000, 0.00000, -66.18000);
- CreateDynamicObject(2245, 1440.35779, -974.71698, 995.85413, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1549, 1441.38904, -970.58020, 995.07281, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2961, 1436.19360, -992.91449, 996.43372, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2690, 1436.22546, -992.86798, 996.92572, 0.00000, 0.00000, 169.80000);
- CreateDynamicObject(1999, 1435.73157, -1005.59863, 995.12238, 0.00000, 0.00000, 177.89998);
- CreateDynamicObject(1806, 1435.42896, -1003.91840, 995.12079, 0.00000, 0.00000, 146.81998);
- CreateDynamicObject(2606, 1433.61072, -1004.31232, 996.30280, 0.00000, 0.00000, 89.94000);
- CreateDynamicObject(2606, 1433.61072, -1004.31232, 996.73480, 0.00000, 0.00000, 89.94000);
- CreateDynamicObject(2606, 1433.61072, -1004.31232, 997.16681, 0.00000, 0.00000, 89.94000);
- CreateDynamicObject(2894, 1435.51477, -1005.65875, 995.93512, 0.00000, 0.00000, -156.29988);
- CreateDynamicObject(348, 1435.81042, -1005.49841, 995.93518, 91.00000, 0.00000, 38.22002);
- CreateDynamicObject(2839, 1434.89624, -1005.61493, 995.12347, 0.00000, 0.00000, 28.74000);
- CreateDynamicObject(1235, 1436.75586, -1005.67822, 995.63458, 0.00000, 0.00000, 4.14000);
- CreateDynamicObject(2881, 1436.83350, -1005.81738, 995.13568, -2.00000, -69.00000, 28.00000);
- CreateDynamicObject(2881, 1436.72742, -1005.73517, 995.13568, -2.00000, -69.00000, -15.20001);
- CreateDynamicObject(2007, 1420.94165, -995.75769, 996.49847, 0.00000, 0.00000, 89.76000);
- CreateDynamicObject(2007, 1420.94165, -996.70569, 996.50250, 0.00000, 0.00000, 89.76000);
- CreateDynamicObject(2007, 1420.94165, -997.65369, 996.50250, 0.00000, 0.00000, 89.76000);
- CreateDynamicObject(2007, 1420.94165, -998.60168, 996.50250, 0.00000, 0.00000, 89.76000);
- CreateDynamicObject(2007, 1420.94165, -999.54968, 996.50250, 0.00000, 0.00000, 89.76000);
- CreateDynamicObject(2942, 1446.68677, -989.58667, 995.71686, 0.00000, 0.00000, 179.99986);
- CreateDynamicObject(2942, 1448.42285, -989.58667, 995.71692, 0.00000, 0.00000, 179.99989);
- CreateDynamicObject(2942, 1450.13086, -989.58667, 995.71692, 0.00000, 0.00000, 179.99989);
- CreateDynamicObject(2690, 1434.28040, -1002.78546, 996.38782, 0.00000, 0.00000, -4.26000);
- CreateDynamicObject(1892, 1456.52942, -986.43781, 995.14093, 0.00000, 0.00000, 86.76000);
- CreateDynamicObject(1892, 1456.52942, -990.61377, 995.14093, 0.00000, 0.00000, 86.76000);
- CreateDynamicObject(1892, 1456.52942, -982.26178, 995.14093, 0.00000, 0.00000, 86.76000);
- CreateDynamicObject(14633, 1426.06604, -979.43066, 996.56683, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1456.85181, -986.05109, 995.10602, 0.00000, 0.00000, 78.96002);
- CreateDynamicObject(3386, 1442.87439, -988.14252, 989.91400, 0.00000, 0.00000, 356.84091);
- CreateDynamicObject(3386, 1442.87439, -987.03851, 989.91400, 0.00000, 0.00000, 356.84091);
- CreateDynamicObject(3386, 1442.72241, -998.80847, 989.91400, 0.00000, 0.00000, 176.06250);
- CreateDynamicObject(3386, 1442.72241, -1000.00848, 989.91400, 0.00000, 0.00000, 176.06250);
- CreateDynamicObject(3391, 1440.51379, -987.03638, 989.89600, 0.00000, 0.00000, 89.76003);
- CreateDynamicObject(3392, 1436.92480, -987.02655, 989.89398, 0.00000, 0.00000, 89.81998);
- CreateDynamicObject(1806, 1441.29553, -993.01025, 989.92133, 0.00000, 0.00000, -119.94001);
- CreateDynamicObject(2634, 1435.35193, -980.29688, 984.21887, 0.00000, 0.00000, 179.04001);
- CreateDynamicObject(1502, 1438.05847, -992.99011, 995.10675, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1499, 1438.53723, -1002.59253, 990.92316, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2690, 1440.72217, -1010.17639, 994.91425, 0.00000, 0.00000, -90.41999);
- CreateDynamicObject(2690, 1433.67712, -1004.35260, 992.91760, 0.00000, 0.00000, 83.58002);
- CreateDynamicObject(2690, 1440.74304, -1010.16492, 991.04169, 0.00000, 0.00000, -88.08002);
- CreateDynamicObject(2690, 1433.68909, -1004.27728, 988.57770, 0.00000, 0.00000, 83.94003);
- CreateDynamicObject(2690, 1433.56665, -1009.76007, 986.42206, 0.00000, 0.00000, 83.70004);
- CreateDynamicObject(18643, 1441.46216, -995.31152, 984.01813, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18643, 1441.64221, -990.12750, 984.01813, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18643, 1441.54224, -984.45752, 984.45007, 0.00000, 0.00000, 0.00000);
- }
- stock LoadApartmentInterior()
- {
- print("Loading - Mapping for apartment interior was loaded.");
- SetDynamicObjectMaterial(CreateDynamicObject(19378, 282.62299, 2037.47302, 8502.38281, 0.00000, -90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19378, 298.28201, 2032.89697, 8500.61719, 0.00000, -90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19378, 295.98499, 2042.47009, 8503.90332, 0.00000, -90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19378, 308.77301, 2037.44897, 8500.61621, 0.00000, -90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 301.31299, 2054.02588, 8502.28125, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 293.14401, 2047.18005, 8502.28125, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 293.14401, 2027.88904, 8502.28125, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 288.41800, 2042.28101, 8502.28125, 0.00000, 0.00000, 270.13599), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 288.41800, 2032.74402, 8502.28125, 0.00000, 0.00000, 270.13599), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 283.58499, 2037.44897, 8502.28125, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 293.14401, 2056.81299, 8502.28125, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 293.14401, 2018.27905, 8502.28125, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 298.01001, 2056.76709, 8502.28125, 0.00000, 0.00000, 270.13599), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 306.05600, 2039.69104, 8502.28125, 0.00000, 0.00000, 270.13599), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 301.31299, 2018.25403, 8502.28125, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 301.31299, 2027.88904, 8502.28125, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 306.04401, 2032.71704, 8502.28125, 0.00000, 0.00000, 270.13599), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 309.86899, 2037.41895, 8502.28125, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 288.39801, 2042.28003, 8505.74805, 0.00000, 0.00000, 270.13599), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 301.31299, 2044.40698, 8502.28125, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19378, 287.84201, 2037.44897, 8500.61035, 0.00000, -90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19435, 287.89301, 2035.86597, 8501.28027, 25.00000, 0.00000, 89.50700), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19435, 289.37500, 2035.86902, 8500.79102, 0.00000, 0.00000, 89.61400), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19435, 287.83301, 2036.70203, 8501.40625, 0.00000, 0.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19435, 287.07599, 2037.50000, 8503.22559, 0.00000, -91.00000, 90.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19435, 288.56900, 2039.14697, 8501.38672, 0.00000, 0.00000, 89.61400), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19435, 287.80399, 2038.30701, 8501.40625, 0.00000, 0.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19435, 289.42401, 2039.16699, 8502.79102, -50.00000, 0.00000, 90.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19435, 289.69601, 2039.15698, 8500.46680, 0.00000, 0.00000, 89.61400), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19435, 291.83899, 2039.86499, 8502.23438, 0.00000, 0.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19435, 290.96201, 2039.14697, 8503.00293, 0.00000, 0.00000, 89.61400), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19435, 291.12701, 2039.15601, 8499.58008, 0.00000, 0.00000, 89.61400), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19435, 289.39001, 2039.15698, 8503.00195, 0.00000, 0.00000, 89.61400), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19435, 291.83899, 2041.35901, 234.00000, 0.00000, 0.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19435, 287.12701, 2035.88501, 8501.38672, -2.00000, 0.00000, 90.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19435, 286.32001, 2037.51501, 8502.49316, -89.00000, 0.00000, 0.31200), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19435, 287.04999, 2039.15698, 8501.58301, 0.00000, 0.00000, 89.61400), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19378, 298.28201, 2023.29504, 8500.61621, 0.00000, -90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 283.58600, 2037.44897, 8505.74805, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 288.41956, 2032.74841, 8505.74805, 0.00000, 0.00000, 270.13599), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19378, 306.39999, 2035.06702, 8503.90234, 0.00000, -90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19378, 295.97501, 2032.85999, 8503.90039, 0.00000, -90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19378, 298.28201, 2042.52600, 8500.61719, 0.00000, -90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19378, 298.28201, 2052.07690, 8500.61621, 0.00000, -90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19378, 298.28201, 2023.29504, 8503.90332, 0.00000, -90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19378, 298.28201, 2052.10400, 8503.90332, 0.00000, -90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- CreateDynamicObject(19456, 293.14401, 2056.81299, 8505.78125, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 297.49301, 2019.21497, 8505.73828, 0.00000, 0.00000, 270.13599), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 293.14401, 2018.27905, 8505.78125, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 301.31299, 2018.25403, 8505.78125, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 293.14401, 2027.88904, 8505.78125, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 301.31299, 2027.88904, 8505.78125, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 306.03400, 2032.71704, 8505.74805, 0.00000, 0.00000, 270.13599), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 309.86899, 2037.41895, 8505.74805, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 306.05600, 2039.69104, 8505.78125, 0.00000, 0.00000, 270.13599), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 301.31299, 2044.40698, 8505.78125, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 301.31299, 2054.02588, 8505.78125, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19455, 298.01080, 2056.76782, 8505.78125, 0.00000, 0.00000, 270.13599), 0, 18246, "cw_junkyard2cs_t", "Was_scrpyd_door_dbl_grey", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 293.14401, 2047.18005, 8505.78125, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19435, 291.81900, 2041.43103, 8502.07129, 0.00000, 0.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19455, 297.11700, 2018.64404, 8502.28125, 0.00000, 0.00000, 270.13599), 0, 18246, "cw_junkyard2cs_t", "Was_scrpyd_door_dbl_grey", 0xFFFFFFFF);
- CreateDynamicObject(14407, 288.23001, 2041.04797, 8500.79785, 0.00000, 0.00000, 90.06500);
- CreateDynamicObject(14407, 289.73901, 2033.95105, 8499.21973, 0.00000, 0.00000, 271.08801);
- CreateDynamicObject(1535, 301.24399, 2021.62402, 8503.97461, 0.00000, 0.00000, -90.19900);
- CreateDynamicObject(1535, 301.24399, 2032.00305, 8500.69238, 0.00000, 0.00000, -89.99900);
- CreateDynamicObject(1535, 293.22000, 2020.19202, 8500.70215, 0.00000, 0.00000, 90.69800);
- CreateDynamicObject(1535, 293.19901, 2025.48499, 8500.70215, 0.00000, 0.00000, 89.59800);
- CreateDynamicObject(1535, 293.22501, 2030.30701, 8500.70215, 0.00000, 0.00000, 91.00000);
- CreateDynamicObject(1566, 309.77499, 2037.50403, 8502.08301, 0.00000, 0.00000, -89.79900);
- CreateDynamicObject(1535, 301.24399, 2044.86304, 8500.70215, 0.00000, 0.00000, -89.69800);
- CreateDynamicObject(1535, 293.20999, 2043.32898, 8500.70215, 0.00000, 0.00000, 90.09900);
- CreateDynamicObject(1535, 301.24399, 2049.84399, 8500.70215, 0.00000, 0.00000, -89.90000);
- CreateDynamicObject(1535, 301.24399, 2054.28101, 8500.70215, 0.00000, 0.00000, -89.59900);
- CreateDynamicObject(1535, 293.22000, 2048.28491, 8500.70215, 0.00000, 0.00000, 90.89900);
- CreateDynamicObject(1535, 293.21301, 2053.15601, 8500.70215, 0.00000, 0.00000, 90.50000);
- CreateDynamicObject(1436, -2200.58105, 12487.57715, 10023.44434, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1535, 301.24399, 2021.62402, 8500.69238, 0.00000, 0.00000, -90.19900);
- CreateDynamicObject(1535, 301.24399, 2026.98999, 8500.69238, 0.00000, 0.00000, -90.09800);
- CreateDynamicObject(1535, 301.24399, 2026.98999, 8503.97461, 0.00000, 0.00000, -90.09800);
- CreateDynamicObject(1535, 301.24399, 2032.00305, 8503.97461, 0.00000, 0.00000, -89.99900);
- CreateDynamicObject(1535, 293.22501, 2030.30701, 8503.97461, 0.00000, 0.00000, 91.00000);
- CreateDynamicObject(1535, 293.19901, 2025.48499, 8503.97461, 0.00000, 0.00000, 89.59800);
- CreateDynamicObject(1535, 293.22000, 2020.19202, 8503.97461, 0.00000, 0.00000, 90.69800);
- CreateDynamicObject(1535, 301.24399, 2049.84399, 8503.97461, 0.00000, 0.00000, -89.90000);
- CreateDynamicObject(1535, 301.24399, 2054.28101, 8503.97461, 0.00000, 0.00000, -89.59900);
- CreateDynamicObject(1535, 293.21301, 2053.15601, 8503.97461, 0.00000, 0.00000, 90.50000);
- CreateDynamicObject(1535, 293.22000, 2048.28491, 8503.97461, 0.00000, 0.00000, 90.89900);
- CreateDynamicObject(1535, 301.24399, 2044.86304, 8503.97461, 0.00000, 0.00000, -89.69800);
- CreateDynamicObject(1535, 293.20999, 2043.32898, 8503.97461, 0.00000, 0.00000, 90.09900);
- SetDynamicObjectMaterial(CreateDynamicObject(19377, 306.85968, 2036.15454, 8507.21680, 0.00000, -90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19377, 296.35971, 2023.25049, 8507.21582, 0.00000, -90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19377, 285.86722, 2037.45581, 8507.21680, 0.00000, -90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19377, 296.35971, 2032.85999, 8507.21680, 0.00000, -90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19377, 296.35861, 2042.48486, 8507.21680, 0.00000, -90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19377, 296.35861, 2052.07690, 8507.21680, 0.00000, -90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- CreateDynamicObject(17969, 305.66919, 2039.56494, 8502.68848, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18661, 309.77731, 2038.60425, 8502.35840, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1291, 308.53577, 2038.66992, 8500.98145, 90.00000, 990.00000, 117.53999);
- CreateDynamicObject(1493, 303.93939, 2034.79590, 8503.99121, 10.00000, 0.00000, 90.00000);
- CreateDynamicObject(2847, 308.04349, 2036.06909, 8500.70996, 0.00000, 0.00000, 5.34000);
- CreateDynamicObject(14782, 307.97562, 2033.24329, 8501.71094, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2610, 309.77911, 2035.37366, 8502.67676, 0.00000, 0.00000, 990.00000);
- CreateDynamicObject(2610, 309.77911, 2034.88000, 8502.67676, 0.00000, 0.00000, 990.00000);
- CreateDynamicObject(2610, 309.77911, 2034.38550, 8502.67676, 0.00000, 0.00000, 990.00000);
- CreateDynamicObject(1812, 304.64130, 2039.29651, 8500.93359, 0.00000, 40.00000, 990.00000);
- CreateDynamicObject(1735, 302.04453, 2039.10046, 8500.69238, 0.00000, 0.00000, 2.22000);
- CreateDynamicObject(1344, 303.20349, 2033.60742, 8501.64844, -140.00000, 0.00000, 0.00000);
- CreateDynamicObject(1440, 303.21259, 2034.78345, 8501.15137, 0.00000, 0.00000, 178.73981);
- CreateDynamicObject(1440, 300.44937, 2039.97742, 8501.15137, 0.00000, 0.00000, 272.33997);
- CreateDynamicObject(2692, 300.99060, 2033.01953, 8501.44531, 0.00000, 0.00000, -117.90001);
- CreateDynamicObject(2671, 307.10651, 2036.48535, 8500.71094, 0.00000, 0.00000, 4.43998);
- CreateDynamicObject(2675, 301.19174, 2036.80688, 8500.77246, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2671, 304.09482, 2037.36414, 8500.71094, 0.00000, 0.00000, -1.98002);
- CreateDynamicObject(2674, 304.48569, 2035.85132, 8500.72168, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2670, 307.29416, 2037.92090, 8500.79199, 0.00000, 0.00000, -0.96002);
- CreateDynamicObject(2599, 299.91812, 2046.25269, 8501.15527, 0.00000, 0.00000, 25.02000);
- CreateDynamicObject(1436, 293.92563, 2046.50940, 8500.48633, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1300, 293.71475, 2042.07239, 8501.07422, 0.00000, 0.00000, -88.74000);
- CreateDynamicObject(3034, 295.88269, 2056.66919, 8502.64355, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2558, 294.44479, 2056.28467, 8502.17676, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2558, 296.33481, 2056.28467, 8502.17676, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2069, 293.75760, 2045.75000, 8500.73926, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2718, 293.35461, 2046.56641, 8503.11914, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2611, 293.65619, 2046.87036, 8501.15723, -40.00000, 0.00000, 90.00000);
- CreateDynamicObject(2630, 300.44873, 2051.26929, 8500.70410, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1415, 300.03369, 2055.28394, 8500.69336, 0.00000, 0.00000, -25.08000);
- CreateDynamicObject(1761, 294.39059, 2056.06641, 8500.70215, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1985, 296.63293, 2056.61328, 8500.98828, 90.00000, 0.00000, -107.04002);
- CreateDynamicObject(2673, 295.10684, 2042.74695, 8500.79492, 0.00000, 0.00000, 30.23999);
- CreateDynamicObject(2670, 298.25299, 2043.25732, 8500.79492, 0.00000, 0.00000, -8.88000);
- CreateDynamicObject(2676, 297.32709, 2046.57544, 8500.81250, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2670, 298.73022, 2050.14038, 8500.79492, 0.00000, 0.00000, -8.88000);
- CreateDynamicObject(2676, 298.02194, 2054.12231, 8500.81250, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1793, 293.65460, 2049.58008, 8500.70313, 0.00000, 20.00000, 0.00000);
- CreateDynamicObject(1793, 293.60461, 2049.59009, 8501.70703, 0.00000, 30.00000, 0.00000);
- CreateDynamicObject(2673, 295.73227, 2049.26245, 8500.79492, 0.00000, 0.00000, 30.23999);
- CreateDynamicObject(2930, 293.30020, 2044.96008, 8503.29102, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2676, 296.01974, 2034.79468, 8500.81250, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1442, 293.60516, 2033.26440, 8501.29785, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1439, 292.44925, 2040.15527, 8500.69531, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1793, 290.54019, 2036.99915, 8500.11914, 40.00000, 0.00000, 92.40000);
- CreateDynamicObject(1369, 292.05811, 2037.55994, 8501.30273, 0.00000, 0.00000, 74.63999);
- CreateDynamicObject(1493, 290.38791, 2038.55701, 8500.69629, -10.00000, 0.00000, 0.00000);
- CreateDynamicObject(2671, 290.62796, 2036.44800, 8500.71094, 0.00000, 0.00000, -14.70002);
- CreateDynamicObject(2930, 301.21939, 2032.11389, 8503.29102, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2930, 293.31451, 2021.80566, 8503.29102, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1498, 296.48456, 2030.14600, 8500.74121, 990.00000, 0.00000, 364.80020);
- CreateDynamicObject(2671, 298.77560, 2033.98010, 8500.71094, 0.00000, 0.00000, 169.19995);
- CreateDynamicObject(2676, 297.06818, 2030.95203, 8500.81250, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1800, 295.57288, 2025.95349, 8500.68848, 0.00000, 0.00000, -32.82000);
- CreateDynamicObject(2103, 296.88257, 2027.80835, 8501.45605, 0.00000, 0.00000, -156.77994);
- CreateDynamicObject(1748, 297.28729, 2030.29968, 8500.70605, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1300, 293.88199, 2027.69958, 8501.07422, 0.00000, 0.00000, -88.74000);
- CreateDynamicObject(1302, 293.52319, 2029.21838, 8500.70410, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19996, 300.69617, 2028.75891, 8500.70410, 0.00000, 0.00000, -68.58000);
- SetDynamicObjectMaterial(CreateDynamicObject(19453, 283.59601, 2037.44897, 8505.22266, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_dickgoblinmural", 0xFFFFFFFF);
- CreateDynamicObject(2675, 298.79446, 2026.91235, 8500.77246, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2676, 298.20523, 2022.98035, 8500.81250, 0.00000, 0.00000, 6.84000);
- CreateDynamicObject(2670, 294.95981, 2022.11218, 8500.79492, 0.00000, 0.00000, -8.88000);
- CreateDynamicObject(2671, 295.66064, 2025.65405, 8500.71094, 0.00000, 0.00000, 113.75997);
- CreateDynamicObject(2048, 299.02029, 2024.68298, 8500.71387, 990.00000, 0.00000, 501.00009);
- CreateDynamicObject(2619, 293.24820, 2019.42175, 8502.69043, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(4227, 290.27621, 2018.65002, 8500.55273, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(4227, 296.34769, 2018.66199, 8504.29883, 0.00000, 180.00000, 180.00000);
- CreateDynamicObject(4227, 295.74619, 2018.65125, 8500.55273, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(4227, 301.69769, 2018.66406, 8504.29883, 0.00000, 180.00000, 180.00000);
- SetDynamicObjectMaterial(CreateDynamicObject(19444, 305.24490, 2035.55212, 8505.67285, 0.00000, 0.00000, 90.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19444, 304.52420, 2036.27356, 8505.67285, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19444, 305.24493, 2036.99207, 8505.67285, 0.00000, 0.00000, 90.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19444, 305.97089, 2036.27063, 8505.67285, 0.00000, 0.00000, 0.00000), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19456, 310.84299, 2036.30542, 8505.74805, 0.00000, 0.00000, 270.13599), 0, 10856, "bakerybit_sfse", "ws_oldwarehouse10a", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19369, 309.86630, 2034.49768, 8505.73340, 0.00000, 0.00000, 0.00000), 0, 4849, "ground3_las", "mural01_LA", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19369, 309.86539, 2037.99231, 8505.73340, 0.00000, 0.00000, 0.00000), 0, 4849, "ground3_las", "mural01_LA", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19369, 307.83160, 2036.29028, 8505.73340, 0.00000, 0.00000, 90.00000), 0, 17504, "eastlstr_lae2", "mural07_LA", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19369, 307.83160, 2036.31030, 8505.73340, 0.00000, 0.00000, 90.00000), 0, 8399, "vgs_shops", "vegasclubmural_128", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19369, 304.84000, 2039.68506, 8505.73340, 0.00000, 0.00000, 90.24000), 0, 17504, "eastlstr_lae2", "mural07_LA", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19369, 304.84000, 2032.75330, 8505.73340, 0.00000, 0.00000, 90.00000), 0, 10856, "bakerybit_sfse", "ws_dickgoblinmural", 0xFFFFFFFF);
- CreateDynamicObject(1709, 303.61633, 2037.95142, 8503.98730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19997, 307.66483, 2034.43762, 8503.99023, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19996, 307.53067, 2035.91382, 8503.99121, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19996, 309.27890, 2034.45142, 8503.99121, 0.00000, 0.00000, 990.00000);
- CreateDynamicObject(2846, 294.90164, 2028.26941, 8500.70410, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2846, 307.16077, 2034.11108, 8500.70410, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2832, 297.16260, 2038.55823, 8500.71289, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19996, 306.17435, 2034.46997, 8503.99121, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1486, 307.20392, 2034.13904, 8504.97461, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1486, 308.02203, 2034.46619, 8504.97461, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1486, 307.33618, 2034.79626, 8504.97461, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(911, 307.27539, 2036.83447, 8504.52246, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1429, 307.15991, 2036.70776, 8505.34766, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1486, 307.72589, 2036.73120, 8505.24316, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1300, 301.82193, 2039.13953, 8504.32910, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2692, 300.66159, 2041.18921, 8504.71875, 0.00000, 0.00000, -76.80000);
- CreateDynamicObject(1450, 300.81299, 2038.86377, 8504.56152, 0.00000, 0.00000, -87.18000);
- CreateDynamicObject(2930, 293.30621, 2049.89258, 8506.56445, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 291.54099, 2038.23010, 8504.74219, 0.00000, 0.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 290.75211, 2032.09387, 8504.09473, 0.00000, 90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 290.75211, 2034.09387, 8504.09473, 0.00000, 90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 290.75211, 2036.09387, 8504.09473, 0.00000, 90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 290.75211, 2032.09387, 8504.53320, 0.00000, 90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 290.75211, 2034.09387, 8504.53320, 0.00000, 90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 290.75211, 2036.09387, 8504.53320, 0.00000, 90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 290.75211, 2038.09387, 8504.09473, 0.00000, 90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 290.75211, 2038.09387, 8504.53320, 0.00000, 90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 291.74210, 2032.09387, 8504.09473, 0.00000, 90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 291.74210, 2034.09387, 8504.09473, 0.00000, 90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 291.74210, 2036.09387, 8504.09473, 0.00000, 90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 291.74210, 2032.09387, 8504.53320, 0.00000, 90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 291.74210, 2034.09387, 8504.53320, 0.00000, 90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 291.74210, 2036.09387, 8504.53320, 0.00000, 90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 291.74210, 2038.09387, 8504.09473, 0.00000, 90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 291.74210, 2038.09387, 8504.53320, 0.00000, 90.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- CreateDynamicObject(2629, 295.25989, 2020.56152, 8503.99121, 0.00000, 0.00000, 149.76001);
- CreateDynamicObject(1710, 300.18188, 2020.25269, 8503.98730, 0.00000, 0.00000, 180.00000);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 290.95099, 2032.23010, 8504.74023, 0.00000, 0.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 290.95099, 2034.23010, 8504.74023, 0.00000, 0.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 290.95099, 2036.23010, 8504.74023, 0.00000, 0.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 291.10101, 2032.23010, 8504.74219, 0.00000, 0.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 291.10101, 2034.23010, 8504.74219, 0.00000, 0.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 291.10101, 2036.23010, 8504.74219, 0.00000, 0.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 291.54099, 2032.23010, 8504.74219, 0.00000, 0.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 291.54099, 2034.23010, 8504.74219, 0.00000, 0.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 291.54099, 2036.23010, 8504.74219, 0.00000, 0.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 290.95099, 2038.23010, 8504.74023, 0.00000, 0.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 291.10101, 2038.23010, 8504.74219, 0.00000, 0.00000, 0.00000), 0, 17075, "cuntwlandwest", "ws_carparknew2", 0xFFFFFFFF);
- CreateDynamicObject(2930, 301.20859, 2032.10779, 8506.56445, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2048, 298.36328, 2019.32751, 8506.11816, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(17969, 290.21390, 2042.15930, 8505.76367, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3034, 295.30969, 2019.30530, 8506.03320, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1439, 300.44412, 2023.97888, 8503.99023, 0.00000, 0.00000, -102.29999);
- CreateDynamicObject(1442, 293.83542, 2024.64502, 8504.58496, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19996, 293.98730, 2029.31702, 8503.98828, 0.00000, 0.00000, 60.72000);
- CreateDynamicObject(19996, 293.94977, 2028.18579, 8503.98828, 0.00000, 0.00000, 124.44003);
- CreateDynamicObject(1327, 294.15948, 2046.29297, 8504.94043, 0.00000, -20.00000, 0.00000);
- CreateDynamicObject(1735, 294.19568, 2052.08350, 8503.99023, 0.00000, 0.00000, 21.30000);
- CreateDynamicObject(1735, 293.76523, 2050.34082, 8503.99023, 0.00000, 0.00000, 102.18001);
- CreateDynamicObject(1338, 300.20053, 2029.11755, 8504.66797, 0.00000, 0.00000, 60.90000);
- CreateDynamicObject(1793, 298.72330, 2043.53857, 8503.88477, 0.00000, 0.00000, 39.36000);
- CreateDynamicObject(2069, 292.65689, 2033.25183, 8504.00293, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1438, 299.77051, 2051.32983, 8503.99023, 0.00000, 0.00000, -98.04000);
- CreateDynamicObject(1448, 296.84930, 2028.10144, 8504.04980, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1448, 296.84930, 2028.10144, 8504.18945, 0.00000, 0.00000, 55.92000);
- CreateDynamicObject(1355, 296.83099, 2029.19580, 8504.18750, 0.00000, 0.00000, -7.62000);
- CreateDynamicObject(17969, 297.35889, 2056.64551, 8506.11621, 20.00000, 0.00000, 90.00000);
- CreateDynamicObject(1985, 300.64664, 2047.44226, 8507.12500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2676, 296.51337, 2039.01782, 8504.09375, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(933, 296.25812, 2035.99719, 8503.81738, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19996, 294.52750, 2036.05249, 8503.99121, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19996, 295.55600, 2037.53711, 8503.99121, 0.00000, 0.00000, 35.46000);
- CreateDynamicObject(19996, 297.24188, 2037.49683, 8503.99121, 0.00000, 0.00000, -31.02000);
- CreateDynamicObject(19996, 298.00610, 2035.92358, 8503.99121, 0.00000, 0.00000, -81.05997);
- CreateDynamicObject(19996, 297.03482, 2034.55444, 8503.99121, 0.00000, 0.00000, -139.07996);
- CreateDynamicObject(19996, 295.41779, 2034.46265, 8503.99121, 0.00000, 0.00000, -205.25990);
- CreateDynamicObject(1486, 295.77307, 2035.93994, 8504.93555, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1486, 296.35901, 2035.53955, 8504.93555, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1486, 296.54059, 2036.49060, 8504.83496, 90.00000, 0.00000, 29.94000);
- CreateDynamicObject(2718, 293.34399, 2023.12964, 8505.79395, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1442, 293.73026, 2042.07129, 8504.58496, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1495, 300.74170, 2045.09131, 8503.99121, 10.00000, 0.00000, 90.00000);
- CreateDynamicObject(2632, 297.00671, 2054.04028, 8503.99121, 0.00000, 0.00000, 149.75999);
- CreateDynamicObject(2676, 296.87778, 2048.23389, 8504.09375, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2677, 295.63983, 2051.89185, 8504.27148, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2675, 299.73462, 2047.81726, 8504.07129, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2674, 296.71893, 2034.31470, 8504.01172, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2675, 297.82111, 2028.34143, 8504.06152, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2676, 298.41815, 2032.54077, 8504.09180, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2676, 295.24661, 2023.28467, 8504.09180, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2675, 294.46332, 2031.42139, 8504.05176, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2671, 295.25900, 2044.18530, 8504.00195, 0.00000, 0.00000, -74.64000);
- CreateDynamicObject(2673, 294.84540, 2026.95374, 8504.08105, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2671, 298.74005, 2025.68298, 8504.00195, 0.00000, 0.00000, -74.64000);
- CreateDynamicObject(2671, 299.76910, 2043.23682, 8504.00195, 0.00000, 0.00000, -114.83998);
- CreateDynamicObject(2676, 301.59372, 2036.55273, 8504.09180, 0.00000, 0.00000, -36.72001);
- CreateDynamicObject(2675, 305.69220, 2038.01038, 8504.06152, 0.00000, 0.00000, -63.41999);
- CreateDynamicObject(2671, 306.25790, 2034.07605, 8504.00195, 0.00000, 0.00000, -8.76001);
- CreateDynamicObject(1893, 303.79642, 2035.58862, 8503.80859, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1893, 297.03201, 2025.50500, 8503.80859, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1893, 297.03204, 2035.45044, 8503.80859, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1893, 297.03201, 2048.35571, 8503.80859, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2073, 285.79459, 2039.75488, 8506.39844, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2073, 285.79459, 2034.98450, 8506.39844, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1893, 297.20050, 2035.62720, 8507.12500, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1893, 297.20050, 2048.48389, 8507.12500, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1893, 297.20050, 2025.78345, 8507.12500, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(16779, 307.76984, 2038.03394, 8507.24609, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16779, 307.61618, 2034.33398, 8507.24609, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(CreateDynamicObject(19369, 301.30820, 2041.42957, 8505.73340, 0.00000, 0.00000, 0.00000), 0, 10439, "hashblock3_sfs", "ws_mural1", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19369, 301.31180, 2028.64795, 8505.73340, 0.00000, 0.00000, 0.00000), 0, 10434, "hashblock2b_sfs", "ws_mural2", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19442, 293.16049, 2028.65979, 8505.72949, 0.00000, 0.00000, 0.00000), 0, 10439, "hashblock3_sfs", "ws_mural1", 0xFFFFFFFF);
- CreateDynamicObject(2256, 260.68820, 2034.41614, 8503.25781, 0.00000, 0.00000, 0.00000);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 295.16550, 2022.79602, 8500.61426, 90.00000, 0.00000, 90.00000), 0, 11391, "hubprops2_sfse", "blackmetal", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 295.16550, 2022.35596, 8500.61426, 90.00000, 0.00000, 90.00000), 0, 11391, "hubprops2_sfse", "blackmetal", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 294.17551, 2022.14661, 8500.51465, 0.00000, 90.00000, 90.00000), 0, 11391, "hubprops2_sfse", "blackmetal", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 294.17551, 2022.14661, 8500.95508, 0.00000, 90.00000, 90.00000), 0, 11391, "hubprops2_sfse", "blackmetal", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 294.17401, 2022.14600, 8501.39355, 0.00000, 90.00000, 90.00000), 0, 11391, "hubprops2_sfse", "blackmetal", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 294.17551, 2023.00659, 8500.51465, 0.00000, 90.00000, 90.00000), 0, 11391, "hubprops2_sfse", "blackmetal", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 294.17551, 2023.00659, 8500.95508, 0.00000, 90.00000, 90.00000), 0, 11391, "hubprops2_sfse", "blackmetal", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 294.17401, 2023.00659, 8501.39355, 0.00000, 90.00000, 90.00000), 0, 11391, "hubprops2_sfse", "blackmetal", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 294.17551, 2022.79663, 8501.60352, 0.00000, 0.00000, 90.00000), 0, 11391, "hubprops2_sfse", "blackmetal", 0xFFFFFFFF);
- SetDynamicObjectMaterial(CreateDynamicObject(19940, 294.17551, 2022.35657, 8501.60352, 0.00000, 0.00000, 90.00000), 0, 11391, "hubprops2_sfse", "blackmetal", 0xFFFFFFFF);
- CreateDynamicObject(2826, 293.72784, 2022.55542, 8501.61523, 0.00000, 0.00000, 100.79999);
- CreateDynamicObject(2826, 294.68497, 2022.56165, 8501.61523, 0.00000, 0.00000, 235.43999);
- CreateDynamicObject(1486, 294.17490, 2022.91040, 8501.75879, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1486, 294.32834, 2022.83801, 8501.75879, 0.00000, 0.00000, 0.00000);
-
- return true;
- }
- //Stocks and other functions
- stock PreloadAnimations(playerid)
- {
- for (new i = 0; i < sizeof(g_aPreloadLibs); i ++) {
- ApplyAnimation(playerid, g_aPreloadLibs[i], "null", 4.0, 0, 0, 0, 0, 0, 1);
- }
- return 1;
- }
- stock CountRegister()
- {
- new count;
-
- new Cache:result = mysql_query(m_Handle, "SELECT COUNT(*) FROM players WHERE id != 0");
- cache_get_value_index_int(0, 0, count);
- cache_delete(result);
- return count;
- }
- stock CountFactionMembers(factionid)
- {
- new query[60], count;
- mysql_format(m_Handle, query, sizeof(query), "SELECT COUNT(*) FROM players WHERE Faction = %i", factionid);
- new Cache:result = mysql_query(m_Handle, query);
- cache_get_value_index_int(0, 0, count);
- cache_delete(result);
- return count;
- }
- stock LoadOwnedCars(playerid, slotid)
- {
- new query[60];
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM ownedcars WHERE id = %i LIMIT 1", PlayerData[playerid][pOwnedCar][slotid - 1]);
- mysql_tquery(m_Handle, query, "SQL_LoadOwnedCars", "i", playerid);
- DeletePVar(playerid, "Viewing_OwnedCarList");
- return true;
- }
- stock ShowBusinessEmployees(playerid, bizid)
- {
- new query[60];
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM players WHERE WorkOn = %i LIMIT 20", bizid);
- mysql_tquery(m_Handle, query, "SQL_ShowBusinessEmployees", "i", playerid);
- return true;
- }
- stock ShowTenantNames(playerid, houseid)
- {
- new query[60];
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM players WHERE Renting = %i LIMIT 20", houseid);
- mysql_tquery(m_Handle, query, "SQL_ShowTenantNames", "i", playerid);
- return true;
- }
- stock EvictAllTenants(playerid, houseid)
- {
- new query[60];
- mysql_format(m_Handle, query, sizeof(query), "SELECT Renting FROM players WHERE Renting = %i LIMIT 20", houseid);
- mysql_tquery(m_Handle, query, "SQL_EvictAllTenants", "i", playerid);
- return true;
- }
- stock RefreshFactionCar(vehicleid)
- {
- new query[60];
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM `factioncars` WHERE id = %i", FactionCar[vehicleid][carID]);
- mysql_tquery(m_Handle, query, "SQL_RefreshFactionCar", "i", vehicleid);
- return true;
- }
- Server:LoadFurnitures()
- {
- return mysql_tquery(m_Handle, "SELECT * FROM furniture ORDER BY id ASC", "SQL_LoadFurniture");
- }
- stock SaveProperties()
- {
- new count;
- for(new i = 0; i < TotalPropertyMade; i++){
- SaveProperty(i);
- count++;
- }
- printf("Saving - %d properties were saved to MySQL database.", count);
- return true;
- }
- stock SaveBusinesses()
- {
- new count;
-
- for(new i = 0; i < TotalBusinessesLoaded; i++){
- SaveBusiness(i);
-
- count++;
- }
-
- printf("Saving - %d businesses were saved to MySQL database.", count);
- return true;
- }
- stock SavePaynSprays()
- {
- new count;
-
- for(new i = 0; i < TotalPaynSpraysLoaded; i++){
- SavePaynSpray(i);
-
- count++;
- }
-
- printf("Saving - %d Pay n Sprays were saved to MySQL database.", count);
- return true;
- }
- stock SaveTolls()
- {
- new count;
-
- for(new i = 0; i < TotalTollsLoaded; i++) {
- SaveToll(i);
- count++;
- }
- printf("Saving - %d tolls were saved to MySQL database.", count);
- return true;
- }
- stock SavePropertyGarages()
- {
- new count;
-
- for(new i = 0; i < TotalPropertyGaragesMade; i++){
- SavePropertyGarage(i);
- count++;
- }
- printf("Saving - %d property garages were saved to MySQL database.", count);
- return true;
- }
- stock SaveDoors()
- {
- new count;
-
- for(new i = 0; i < TotalDoorsLoaded; i++){
- SaveDoor(i);
-
- count++;
- }
- printf("Saving - %d doors were saved to MySQL database.", count);
- return true;
- }
- stock SaveFactions()
- {
- new count;
- for(new i = 0; i < TotalFactionsLoaded; i++) {
- SaveFaction(i);
- count++;
- }
- printf("Saving - %d factions were saved to MySQL database.", count);
- }
- stock CountPlayerHouses(playerid)
- {
- new count = 0;
- for(new i = 0; i < MAX_PROPERTY; i++){
- if(PropertyData[i][propertyid] != 0){
- if(PropertyData[i][propertyOwnerSQL] == PlayerData[playerid][pSQLID]){
- count++;
- }
- }
- }
- return count;
- }
- stock CountPlayerBusinesses(playerid)
- {
- new count = 0;
- for(new i = 0; i < MAX_BUSINESS; i++){
- if(BusinessData[i][businessID] != 0){
- if(BusinessData[i][businessOwnerSQL] == PlayerData[playerid][pSQLID]){
- count++;
- }
- }
- }
- return count;
- }
- stock strmatch(const String1[], const String2[])
- {
- if ((strcmp(String1, String2, true, strlen(String2)) == 0) && (strlen(String2) == strlen(String1)))
- {
- return true;
- }
- else
- {
- return false;
- }
- }
- stock ReturnIP(playerid)
- {
- new ip[20];
- GetPlayerIp(playerid, ip, sizeof(ip));
- return ip;
- }
- stock ReturnName(playerid, underscore=1)
- {
- new name[90], oocname[MAX_PLAYER_NAME], icname[MAX_PLAYER_NAME];
- if(underscore == 1) {
- GetPlayerName(playerid, oocname, sizeof(oocname));
- name = oocname;
- }
- else if(underscore == 0) {
- if(PlayerData[playerid][pMasked])
- format(name, sizeof(name), "[Mask %d_%d]", PlayerData[playerid][pMaskID], PlayerData[playerid][pMaskIDEx]);
- else{
- GetPlayerName(playerid, icname, sizeof(icname));
- strreplace(icname, "_", " ");
- name = icname;
- }
- }
- return name;
- }
- stock ReturnLocation(playerid)
- {
- new playerLocation[MAX_ZONE_NAME];
- GetPlayer2DZone(playerid, playerLocation, MAX_ZONE_NAME);
-
- return playerLocation;
- }
- stock ReturnHour()
- {
- new time[36];
-
- gettime(time[0], time[1], time[2]);
-
- format(time, sizeof(time), "%02d:%02d", time[0], time[1]);
- return time;
- }
- stock ReturnDate()
- {
- new sendString[90], MonthStr[40], month, day, year;
- new hour, minute, second;
-
- gettime(hour, minute, second);
- getdate(year, month, day);
- switch(month)
- {
- case 1: MonthStr = "January";
- case 2: MonthStr = "February";
- case 3: MonthStr = "March";
- case 4: MonthStr = "April";
- case 5: MonthStr = "May";
- case 6: MonthStr = "June";
- case 7: MonthStr = "July";
- case 8: MonthStr = "August";
- case 9: MonthStr = "September";
- case 10: MonthStr = "October";
- case 11: MonthStr = "November";
- case 12: MonthStr = "December";
- }
-
- format(sendString, 90, "%s %d, %d %02d:%02d:%02d", MonthStr, day, year, hour, minute, second);
- return sendString;
- }
- stock ReturnDateLog()
- {
- new month, day, year,
- hour, minute, second,
- datestr[90];
-
- gettime(hour, minute, second);
- getdate(year, month, day);
-
- format(datestr, 90, "%d-%d-%d %02d:%02d:%02d", year, month, day, hour, minute, second);
- return datestr;
- }
- stock ReturnMonthAndDay()
- {
- new sendString[90], MonthStr[40], month, day, year;
- getdate(year, month, day);
-
- switch(month)
- {
- case 1: MonthStr = "January";
- case 2: MonthStr = "February";
- case 3: MonthStr = "March";
- case 4: MonthStr = "April";
- case 5: MonthStr = "May";
- case 6: MonthStr = "June";
- case 7: MonthStr = "July";
- case 8: MonthStr = "August";
- case 9: MonthStr = "September";
- case 10: MonthStr = "October";
- case 11: MonthStr = "November";
- case 12: MonthStr = "December";
- }
-
- format(sendString, 90, "%s %d", MonthStr, day);
- return sendString;
- }
- stock ReturnDateEx()
- {
- new sendString[90], MonthStr[40], month, day, year;
- getdate(year, month, day);
-
- switch(month)
- {
- case 1: MonthStr = "January";
- case 2: MonthStr = "February";
- case 3: MonthStr = "March";
- case 4: MonthStr = "April";
- case 5: MonthStr = "May";
- case 6: MonthStr = "June";
- case 7: MonthStr = "July";
- case 8: MonthStr = "August";
- case 9: MonthStr = "September";
- case 10: MonthStr = "October";
- case 11: MonthStr = "November";
- case 12: MonthStr = "December";
- }
-
- format(sendString, 90, "%s %d, %d", MonthStr, day, year);
- return sendString;
- }
- ReturnStatistics(playerid, playerb, admin = 0)
- {
- // playerid - player we're checking statistics.
- // playerb - player we're sending too.
- GetPlayerHealth(playerid, PlayerData[playerid][pLastHealth]);
- GetPlayerArmour(playerid, PlayerData[playerid][pLastArmor]);
- new vehicle_key[32], work_on[32], exp;
- if(!_has_vehicle_spawned[playerid]) vehicle_key = "None";
- else format(vehicle_key, 32, "%d", _has_spawned_vehicleid[playerid]);
- if(PlayerData[playerid][pWorkOn] == -1 || PlayerData[playerid][pWorkOn] == 0) {
- format(work_on, sizeof work_on, "None");
- }
- else {
- format(work_on, sizeof work_on, "%s", BusinessData[PlayerData[playerid][pWorkOn]][businessName]);
- }
- exp = ((PlayerData[playerid][pLevel]) * 4 + 2);
-
- Message(playerb, COLOR_DARKGREEN, "|__________________%s [%s]__________________|", ReturnDate(), ReturnName(playerid));
- Message(playerb, COLOR_GRAD1, "CHARACTER: Level:[%d] Faction:[%d][%s] Rank:[%s] Job:[%s]", PlayerData[playerid][pLevel], PlayerData[playerid][pFaction], ReturnFaction(playerid), ReturnRank(playerid), ReturnJobName(PlayerData[playerid][pJob]));
- Message(playerb, COLOR_GRAD2, "INVENTORY: Phone:[%d] Radio:[%s] Channel:[%d] Mask:[%s] Melee:[%s]", ReturnPhoneNumber(playerid), (PlayerData[playerid][pHasRadio] != 1) ? ("No") : ("Yes"), PlayerData[playerid][pRadio][PlayerData[playerid][pMainSlot]], (PlayerData[playerid][pMask] != 1) ? ("No") : ("Yes"), ReturnWeaponIndex(playerid, 0));
- Message(playerb, COLOR_GRAD1, "SKILLS: Health:[%.1f/%d.0] Armor:[%.1f] Timeplayed:[%i Hours] EXP:[%d/%d]", PlayerData[playerid][pLastHealth], PlayerData[playerid][pMaxHealth], PlayerData[playerid][pLastArmor], PlayerData[playerid][pHoursPlayed], PlayerData[playerid][pExp], exp);
- Message(playerb, COLOR_GRAD2, "WEAPONS: Primary weapon:[%s] Ammo:[%d] Secondary weapon:[%s] Ammo:[%d]", ReturnWeaponIndex(playerid, 3), Weapon[playerid][3][eWeaponAmmo], ReturnWeaponIndex(playerid, 2), Weapon[playerid][2][eWeaponAmmo]);
- Message(playerb, COLOR_GRAD1, "MONEY: Cash:[$%s] Bank:[$%s] Savings:[$%s] Paycheck:[$%s]", MoneyFormat(PlayerData[playerid][pMoney]), MoneyFormat(PlayerData[playerid][pBank]), MoneyFormat(PlayerData[playerid][pSavings]), MoneyFormat(PlayerData[playerid][pPaycheck]));
- Message(playerb, COLOR_GRAD2, "OTHER: VehicleKey(s):[%s] DonatorLevel:[%s] WorkOn:[%s] Sidejob:[%s]", vehicle_key, ReturnDonatorLevel(playerid), work_on, ReturnJobName(PlayerData[playerid][pSidejob]));
- if(PlayerData[playerb][pAdmin] && admin == 1)
- {
- new
- business_key = 0,
- house_key[3] = 0,
- playerTime,
- minuteConnection;
-
- for(new i = 1; i < MAX_BUSINESS; i++) if(BusinessData[i][businessOwnerSQL] == PlayerData[playerid][pSQLID])
- business_key = i;
-
- for(new i = 1, j = 0; i < MAX_PROPERTY; i++) if(PropertyData[i][propertyOwnerSQL] == PlayerData[playerid][pSQLID])
- {
- house_key[j] = i;
- j++;
-
- if(j > 2) {
- break;
- }
- }
-
- playerTime = NetStats_GetConnectedTime(playerid);
- minuteConnection = ((playerTime % (1000*60*60)) % (1000*60)) / 1000;
-
- Message(playerb, COLOR_GRAD1, "FOR ADMIN: BusinessKey:[%d] HouseKeys:[%d][%d][%d] Renting:[%d] Interior:[%d] Local:[%d]", business_key, house_key[0], house_key[1], house_key[2], PlayerData[playerid][pRenting], GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid));
- Message(playerb, COLOR_GRAD2, "CONNECTION: Packetloss:[%.2f] Ping:[%i] IP:[%s] Onlinetime:[%d minutes]", NetStats_PacketLossPercent(playerid), GetPlayerPing(playerid), ReturnIP(playerid), minuteConnection);
- Message(playerb, COLOR_GRAD1, "MISC: InsideBusiness:[%d] InsideProperty:[%d] InsideGarage:[%d] Player state:[%s] Alive state:[%s]", IsPlayerInBusiness(playerid), IsPlayerInProperty(playerid), PlayerData[playerid][pInsideGarage], ReturnPlayerState(playerid), ReturnAliveState(playerid));
- Message(playerb, COLOR_GRAD2, "MISC: Radios:[%d][%d][%d][%d][%d] Inside vehicle:[%i]", PlayerData[playerid][pRadio][1], PlayerData[playerid][pRadio][2], PlayerData[playerid][pRadio][3], PlayerData[playerid][pRadio][4], PlayerData[playerid][pRadio][5], GetPlayerVehicleID(playerid));
- }
-
- Message(playerb, COLOR_DARKGREEN, "|__________________%s [%s]__________________|", ReturnDate(), ReturnName(playerid));
- return 1;
- }
- stock SendPlayer(playerid, Float: posx, Float: posy, Float: posz, interior, virtualworld)
- {
- if(GetPlayerState(playerid) == 2) {
- SetPlayerVirtualWorld(playerid, virtualworld);
- SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), virtualworld);
- SetPlayerInterior(playerid, interior);
- LinkVehicleToInterior(GetPlayerVehicleID(playerid), interior);
- SetVehiclePos(GetPlayerVehicleID(playerid), posx, posy, posz);
- }
- else {
- SetPlayerVirtualWorld(playerid, virtualworld);
- SetPlayerInterior(playerid, interior);
- SetPlayerPos(playerid, posx, posy, posz);
- }
- return true;
- }
- stock IsPlayerNearPlayer(playerid, targetid, Float:radius)
- {
- static
- Float:fX,
- Float:fY,
- Float:fZ;
- GetPlayerPos(targetid, fX, fY, fZ);
- return (GetPlayerInterior(playerid) == GetPlayerInterior(targetid) && GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(targetid)) && IsPlayerInRangeOfPoint(playerid, radius, fX, fY, fZ);
- }
- adminWarn(aLevel, aWarning[])
- {
- new myString[128];
- format(myString, sizeof(myString), "AdmWarn(%d): %s", aLevel, aWarning);
-
- foreach(new i : Player)
- {
- if(AdmWarmToggle[i] == 1)
- {
- if(PlayerData[i][pAdmin] >= aLevel)
- {
- SendClientMessage(i, COLOR_YELLOW, myString);
- printf("[Admin warn] %s", myString);
- }
- }
- }
- }
- MoneyFormat(integer)
- {
- new value[20], string[20];
- valstr(value, integer);
- new charcount;
- for(new i = strlen(value); i >= 0; i --)
- {
- format(string, sizeof(string), "%c%s", value[i], string);
- if(charcount == 3)
- {
- if(i != 0)
- format(string, sizeof(string), ",%s", string);
- charcount = 0;
- }
- charcount ++;
- }
- return string;
- }
- stock WriteLog(const path[], const str[], {Float,_}:...) // Credit Emmet
- {
- static
- args,
- start,
- end,
- File:file,
- string[1024];
- if ((start = strfind(path, "/")) != -1) {
- strmid(string, path, 0, start + 1);
- if (!fexist(string))
- return printf("** Warning: Directory \"%s\" doesn't exist.", string);
- }
- #emit LOAD.S.pri 8
- #emit STOR.pri args
- file = fopen(path, io_append);
- if (!file)
- return 0;
- if (args > 8)
- {
- #emit ADDR.pri str
- #emit STOR.pri start
- for (end = start + (args - 8); end > start; end -= 4)
- {
- #emit LREF.pri end
- #emit PUSH.pri
- }
- #emit PUSH.S str
- #emit PUSH.C 1024
- #emit PUSH.C string
- #emit PUSH.C args
- #emit SYSREQ.C format
- fwrite(file, string);
- fwrite(file, "\r\n");
- fclose(file);
- #emit LCTRL 5
- #emit SCTRL 4
- #emit RETN
- }
- fwrite(file, str);
- fwrite(file, "\r\n");
- fclose(file);
- return 1;
- }
- RemovePlayerWeapon(playerid, weaponid)
- {
- if(!IsPlayerConnected(playerid) || weaponid < 0 || weaponid > 50)
- return;
- new saveweapon[13], saveammo[13];
- for(new slot = 0; slot < 13; slot++)
- GetPlayerWeaponData(playerid, slot, saveweapon[slot], saveammo[slot]);
- ResetPlayerWeapons(playerid);
- for(new slot; slot < 13; slot++)
- {
- if(saveweapon[slot] == weaponid || saveammo[slot] == 0)
- continue;
- GivePlayerWeapon(playerid, saveweapon[slot], saveammo[slot]);
- }
- GivePlayerWeapon(playerid, 0, 1);
- }
- IsNumeric(const str[])
- {
- for (new i = 0, l = strlen(str); i != l; i ++)
- {
- if (i == 0 && str[0] == '-')
- continue;
- else if (str[i] < '0' || str[i] > '9')
- return 0;
- }
- return 1;
- }
- static stock g_arrVehicleNames[][] = {
- "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel", "Dumper", "Firetruck", "Trashmaster",
- "Stretch", "Manana", "Infernus", "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam",
- "Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection", "Hunter", "Premier", "Enforcer",
- "Securicar", "Banshee", "Predator", "Bus", "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach",
- "Cabbie", "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral", "Squalo", "Seasparrow",
- "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder", "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair",
- "Berkley's RC Van", "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale", "Oceanic",
- "Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy", "Hermes", "Sabre", "Rustler", "ZR-350", "Walton",
- "Regina", "Comet", "BMX", "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper", "Rancher",
- "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking", "Blista Compact", "Police Maverick",
- "Boxville", "Benson", "Mesa", "RC Goblin", "Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher",
- "Super GT", "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "Stunt", "Tanker", "Roadtrain",
- "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra", "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck",
- "Fortune", "Cadrona", "SWAT Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer", "Remington", "Slamvan",
- "Blade", "Streak", "Freight", "Vortex", "Vincent", "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder",
- "Primo", "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite", "Windsor", "Monster", "Monster",
- "Uranus", "Jester", "Sultan", "Stratum", "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito",
- "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper", "Broadway", "Tornado", "AT-400", "DFT-30",
- "Huntley", "Stafford", "BF-400", "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",
- "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "LSPD Cruiser", "SFPD Cruiser", "LVPD Cruiser",
- "Police Rancher", "Picador", "S.W.A.T", "Alpha", "Phoenix", "Greenwood", "Jetmax", "Hotring", "Sandking", "Blista Compact", "Police Maverick",
- "Boxville", "Benson", "Mesa", "RC Goblin", "Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher",
- "Super GT", "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "Stunt", "Tanker", "Roadtrain",
- "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra", "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck",
- "Fortune", "Cadrona", "SWAT Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer", "Remington", "Slamvan",
- "Blade", "Streak", "Freight", "Vortex", "Vincent", "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder",
- "Primo", "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite", "Windsor", "Monster", "Monster",
- "Uranus", "Jester", "Sultan", "Stratum", "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito",
- "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper", "Broadway", "Tornado", "AT-400", "DFT-30",
- "Huntley", "Stafford", "BF-400", "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",
- "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "LSPD Cruiser", "SFPD Cruiser", "LVPD Cruiser",
- "Police Rancher", "Picador", "S.W.A.T", "Alpha", "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs",
- "Boxville", "Tiller", "Utility Trailer"
- };
- stock GetVehicleModelByName(const name[])
- {
- if (IsNumeric(name) && (strval(name) >= 400 && strval(name) <= 611))
- return strval(name);
- for (new i = 0; i < sizeof(g_arrVehicleNames); i ++)
- {
- if (strfind(g_arrVehicleNames[i], name, true) != -1)
- {
- return i + 400;
- }
- }
- return 0;
- }
- ReturnBodypartName(bodypart)
- {
- new bodyname[20] = EOS;
-
- switch(bodypart)
- {
- case BODY_PART_CHEST: bodyname = "CHEST";
- case BODY_PART_GROIN: bodyname = "GROIN";
- case BODY_PART_LEFT_ARM: bodyname = "LEFT ARM";
- case BODY_PART_RIGHT_ARM: bodyname = "RIGHT ARM";
- case BODY_PART_LEFT_LEG: bodyname = "LEFT LEG";
- case BODY_PART_RIGHT_LEG: bodyname = "RIGHT LEG";
- case BODY_PART_HEAD: bodyname = "HEAD";
- }
-
- return bodyname;
- }
- stock ReturnWeaponName(weaponid)
- {
- new weapon[22];
- switch(weaponid)
- {
- case 0: weapon = "Fists";
- case 18: weapon = "Molotov Cocktail";
- case 44: weapon = "Night Vision Goggles";
- case 45: weapon = "Thermal Goggles";
- case 54: weapon = "Fall";
- default: GetWeaponName(weaponid, weapon, sizeof(weapon));
- }
- return weapon;
- }
- stock ReturnVehicleName(vehicleid)
- {
- new
- model = GetVehicleModel(vehicleid),
- name[32] = "None";
- if (model < 400 || model > 611) return name;
- format(name, sizeof(name), g_arrVehicleNames[model - 400]);
- return name;
- }
- stock ReturnVehicleModelName(model)
- {
- new name[32] = "None";
- if (model < 400 || model > 611)
- return name;
- format(name, sizeof(name), g_arrVehicleNames[model - 400]);
- return name;
- }
- stock SendNearbyMessage(playerid, Float:radius, color, const str[], {Float,_}:...)
- {
- static
- args,
- start,
- end,
- string[144];
- #emit LOAD.S.pri 8
- #emit STOR.pri args
- if (args > 16)
- {
- #emit ADDR.pri str
- #emit STOR.pri start
- for (end = start + (args - 16); end > start; end -= 4)
- {
- #emit LREF.pri end
- #emit PUSH.pri
- }
- #emit PUSH.S str
- #emit PUSH.C 144
- #emit PUSH.C string
- #emit LOAD.S.pri 8
- #emit CONST.alt 4
- #emit SUB
- #emit PUSH.pri
- #emit SYSREQ.C format
- #emit LCTRL 5
- #emit SCTRL 4
- foreach (new i : Player)
- {
- if (IsPlayerNearPlayer(i, playerid, radius)) {
- SendClientMessage(i, color, string);
- }
- }
- return 1;
- }
- foreach (new i : Player)
- {
- if (IsPlayerNearPlayer(i, playerid, radius)) {
- SendClientMessage(i, color, str);
- }
- }
- return 1;
- }
- stock SendAdminMessage(color, const str[])
- {
- foreach(new i : Player) if(PlayerData[i][pAdmin])
- SendClientMessage(i, color, str);
-
- return 1;
- }
- SendHelperMessage(color, const str[], {Float,_}:...)
- {
- static
- args,
- start,
- end,
- string[144]
- ;
- #emit LOAD.S.pri 8
- #emit STOR.pri args
- if (args > 8)
- {
- #emit ADDR.pri str
- #emit STOR.pri start
- for (end = start + (args - 8); end > start; end -= 4)
- {
- #emit LREF.pri end
- #emit PUSH.pri
- }
- #emit PUSH.S str
- #emit PUSH.C 144
- #emit PUSH.C string
- #emit LOAD.S.pri 8
- #emit ADD.C 4
- #emit PUSH.pri
- #emit SYSREQ.C format
- #emit LCTRL 5
- #emit SCTRL 4
- foreach (new i : Player)
- {
- if (PlayerData[i][pHelper]) {
- SendClientMessage(i, color, string);
- }
- }
- return 1;
- }
- foreach (new i : Player)
- {
- if (PlayerData[i][pHelper]) {
- SendClientMessage(i, color, str);
- }
- }
- return 1;
- }
- stock SendStaffMessage(color, const str[], {Float,_}:...)
- {
- static
- args,
- start,
- end,
- string[144];
- #emit LOAD.S.pri 8
- #emit STOR.pri args
- if (args > 8)
- {
- #emit ADDR.pri str
- #emit STOR.pri start
- for (end = start + (args - 8); end > start; end -= 4)
- {
- #emit LREF.pri end
- #emit PUSH.pri
- }
- #emit PUSH.S str
- #emit PUSH.C 144
- #emit PUSH.C string
- #emit LOAD.S.pri 8
- #emit ADD.C 4
- #emit PUSH.pri
- #emit SYSREQ.C format
- #emit LCTRL 5
- #emit SCTRL 4
- foreach (new i : Player)
- {
- if (PlayerData[i][pHelper] || PlayerData[i][pAdmin]) {
- SendClientMessage(i, color, string);
- }
- }
- return 1;
- }
- foreach (new i : Player)
- {
- if (PlayerData[i][pHelper] || PlayerData[i][pAdmin]) {
- SendClientMessage(i, color, str);
- }
- }
- return 1;
- }
- stock SendMessageToAll(color, const str[], {Float,_}:...)
- {
- static
- args,
- start,
- end,
- string[144];
- #emit LOAD.S.pri 8
- #emit STOR.pri args
- if (args > 8)
- {
- #emit ADDR.pri str
- #emit STOR.pri start
- for (end = start + (args - 8); end > start; end -= 4)
- {
- #emit LREF.pri end
- #emit PUSH.pri
- }
- #emit PUSH.S str
- #emit PUSH.C 144
- #emit PUSH.C string
- #emit LOAD.S.pri 8
- #emit ADD.C 4
- #emit PUSH.pri
- #emit SYSREQ.C format
- #emit LCTRL 5
- #emit SCTRL 4
- foreach (new i : Player)
- {
- SendClientMessage(i, color, string);
- }
- return 1;
- }
- foreach (new i : Player)
- {
- SendClientMessage(i, color, str);
- }
- return 1;
- }
- stock IsCaps(text[])
- {
- for( new i, j = strlen( text )-1; i < j; i ++ )
- {
- if( ( 'A' <= text[ i ] <= 'Z' ) && ( 'A' <= text[ i+1 ] <= 'Z' ) )
- return true;
- }
- return false;
- }
- KickEx(playerid)
- {
- SetTimerEx("KickTimer", 300, false, "d", playerid);
-
- if(PlayerData[playerid][pSQLID] != 0){
- GetPlayerIp(playerid, PlayerData[playerid][pIP], 20);
- SaveSQLInt(PlayerData[playerid][pSQLID], "players", "IP", PlayerData[playerid][pIP]);
- }
- return true;
- }
- UnAuthMessage(playerid)
- {
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} You are not authorized to use this.");
- }
- stock ToggleVehicleLock(vehicleid, bool:lockstate)
- {
- new engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(vehicleid, engine, lights, alarm, lockstate, bonnet, boot, objective);
- return true;
- }
- stock ToggleVehicleAlarms(vehicleid, bool:alarmstate, time = 5000)
- {
- new engine, lights, alarm, doors, bonnet, boot, objective;
-
- GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(vehicleid, engine, lights, alarmstate, doors, bonnet, boot, alarmstate);
-
- if(alarmstate) SetTimerEx("OnVehicleAlarm", time, false, "i", vehicleid);
- return 1;
- }
- stock ToggleVehicleEngine(vehicleid, bool:enginestate)
- {
- new engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(vehicleid, enginestate, lights, alarm, doors, bonnet, boot, objective);
- return true;
- }
- stock ToggleVehicleLights(vehicleid, bool:lightstate)
- {
- new engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(vehicleid, engine, lightstate, alarm, doors, bonnet, boot, objective);
- return true;
- }
- stock ToggleHouseLock(playerid, houseid, bool:lockstate)
- {
- if(lockstate == true){
- PropertyData[houseid][propertyLocked] = true;
- SaveSQLInt(PropertyData[houseid][propertyid], "properties", "Locked", 1);
- GameTextForPlayer(playerid, "~w~DOOR ~r~LOCKED", 3000, 6);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- else{
- PropertyData[houseid][propertyLocked] = false;
- SaveSQLInt(PropertyData[houseid][propertyid], "properties", "Locked", 0);
- GameTextForPlayer(playerid, "~w~DOOR ~g~UNLOCKED", 1000, 6);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- return true;
- }
- stock NoEngineCar(vehicleid)
- {
- switch(GetVehicleModel(vehicleid)) {
- case 481, 509, 510: return true;
- }
- return false;
- }
- stock IsHelicopter(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 417, 425, 447, 460, 469, 476, 487, 488, 497, 511, 512, 513, 519, 520, 548, 553, 563, 577, 592, 593: return 1;
- }
- return 0;
- }
- stock PaintjobCar(vehicleid)
- {
- switch(GetVehicleModel(vehicleid)){
- case 483, 534, 535, 536, 558, 559, 560, 561, 562, 565, 567, 575, 576: return true;
- }
- return false;
- }
- stock House_ReturnWeaponSlot(houseid)
- {
- if(houseid == 0)
- return 0;
- for(new i = 0; i < 21; i ++)
- {
- if(!PropertyData[houseid][propertyWeapons][i])
- return i;
- }
- return -1;
- }
- stock Car_ReturnWeaponSlot(carid)
- {
- if(carid == 0)
- return false;
-
- for(new i = 1; i < 5; i ++){
- if(!CarData[carid][carWeapons][i])
- return i;
- }
-
- return -1;
- }
- stock ReturnWeapon(playerid)
- {
- new weaponid = GetPlayerWeapon(playerid);
- if(PlayerHasWeapon(playerid, weaponid) && weaponid != 0)
- return weaponid;
-
- return -1;
- }
- stock ReturnFaction(playerid)
- {
- new string[128];
-
- if (!PlayerData[playerid][pFaction])
- string = "Civilian";
-
- else
- format(string, sizeof(string), "%s", FactionData[PlayerData[playerid][pFaction]][factionName]);
-
- return string;
- }
- stock ReturnRank(playerid)
- {
- new string[128];
- if(!PlayerData[playerid][pFaction])
- string = "No Rank";
- else format(string, sizeof(string), "%s", FactionRanks[PlayerData[playerid][pFaction]][PlayerData[playerid][pFactionRank]]);
- return string;
- }
- stock ClearDamages(playerid)
- {
- for(new id = 0; id < MAX_DAMAGES; id++)
- {
- if(DamageData[playerid][id][damageTaken] != 0){
- DamageData[playerid][id][damageTaken] = 0;
- DamageData[playerid][id][damageBodypart] = 0;
- DamageData[playerid][id][damageTime] = 0;
- DamageData[playerid][id][damageWeapon] = -1;
- DamageData[playerid][id][damageBy] = -1;
- }
- }
-
- totalDamages[playerid] = 0;
- PlayerData[playerid][pLegShot] = false;
-
- return true;
- }
- stock ReturnDamages(damaged, playerid)
- {
- new str[400], longstr[2500], title[90], count = 0;
-
- format(title, sizeof(title), "%s", ReturnName(damaged, 1));
-
- for(new id = 0; id < MAX_DAMAGES; id++) {
- if(DamageData[damaged][id][damageTaken] != 0) count++;
- }
- if(!count)
- return ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_LIST, title, "There are no damages to show.", ">>>", "");
- else if(count > 0) {
- for(new id = 0; id < MAX_DAMAGES; id++) {
- if(DamageData[damaged][id][damageTaken] >= 1) {
- format(str, sizeof(str), "%d dmg from %s to %s (Kevlarhit: %d) %d s ago\n", DamageData[damaged][id][damageTaken], ReturnWeaponName(DamageData[damaged][id][damageWeapon]), ReturnBodypartName(DamageData[damaged][id][damageBodypart]), DamageData[damaged][id][damageArmor], gettime() - DamageData[damaged][id][damageTime]);
- strcat(longstr, str);
- }
- }
-
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_LIST, title, longstr, ">>>", "");
- }
-
- return true;
- }
- stock ReturnDamagesAdmin(damaged, playerid)
- {
- new str[400], longstr[2500], title[90], count = 0;
-
- format(title, sizeof(title), "%s", ReturnName(damaged, 1));
-
- for(new id = 0; id < MAX_DAMAGES; id++) {
- if(DamageData[damaged][id][damageTaken] != 0) count++;
- }
- if(!count)
- return ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_LIST, title, "There are no damages to show.", ">>>", "");
- else if(count > 0) {
- for(new id = 0; id < MAX_DAMAGES; id++) {
- if(DamageData[damaged][id][damageTaken] != 0){
- format(str, sizeof(str), "{FF6346}(%s){FFFFFF} %d dmg from %s to %s (Kevlarhit: %d) %d s ago\n", DamageData[damaged][id][damageBy], DamageData[damaged][id][damageTaken], ReturnWeaponName(DamageData[damaged][id][damageWeapon]), ReturnBodypartName(DamageData[damaged][id][damageBodypart]), DamageData[damaged][id][damageArmor], gettime() - DamageData[damaged][id][damageTime]);
- strcat(longstr, str);
- }
- }
-
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_LIST, title, longstr, ">>>", "");
- }
-
- return true;
- }
- stock AddDamages(playerid, issuerid, weaponid, bodypart, Float:amount)
- {
- new id;
- totalDamages[playerid]++;
-
- for(new i = 0; i < MAX_DAMAGES; i++)
- {
- if(!DamageData[playerid][i][damageTaken]) {
- id = i;
- break;
- }
- }
-
- new Float: Armour;
- GetPlayerArmour(playerid, Armour);
-
- if(Armour > 1 && bodypart == BODY_PART_CHEST){
- DamageData[playerid][id][damageArmor] = 1;
- }
- else {
- DamageData[playerid][id][damageArmor] = 0;
- }
-
- DamageData[playerid][id][damageTaken] = floatround(amount, floatround_round);
- DamageData[playerid][id][damageWeapon] = weaponid;
- DamageData[playerid][id][damageBodypart] = bodypart;
- DamageData[playerid][id][damageTime] = gettime();
- format(DamageData[playerid][id][damageBy], 90, "%s", ReturnName(issuerid, 1));
- WriteLog("damage_logs/damages_log.txt", "[%s] %s took %i damage from %s", ReturnDateLog(), ReturnName(playerid), DamageData[playerid][id][damageTaken], ReturnName(issuerid));
- return true;
- }
- stock SetBrutallyWounded(playerid, killerid, weaponid)
- {
- new string[128];
-
- PauseAntiCheat(playerid);
- if(killerid != -1 && weaponid != -1) SavePlayerPos(playerid, true);
-
- PlayerData[playerid][pExecuteTime] = 1;
- PlayerData[playerid][pBrutallyWounded] = 1;
-
- if(!PlayerData[playerid][pHandcuff]) SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- ClearAnimations(playerid);
-
- ApplyAnimation(playerid, "WUZI", "CS_Dead_Guy", 4.1, 0, 0, 0, 1, 1);
- ApplyAnimation(playerid, "WUZI", "CS_Dead_Guy", 4.1, 0, 0, 0, 1, 1);
- GameTextForPlayer(playerid, "~b~BRUTALLY WOUNDED", 5000, 3);
-
- SendClientMessage(playerid, COLOR_ADM, "INFO: You were brutally wounded, now if a medic or anyone else doesn't save you, you will die.");
- SendClientMessage(playerid, COLOR_ADM, "INFO: To accept death type /acceptdeath.");
-
- format(string, sizeof(string), "(( You were injured %d times. Do /damages %d to see your injuries. ))", totalDamages[playerid], playerid);
- SendClientMessage(playerid, COLOR_ADM, string);
-
- SetPlayerHealth(playerid, 29);
-
- for (new i = 0; i < 10; i++)
- RemoveDrugPackage(playerid, i);
-
- if (sprayingGraffiti[playerid])
- {
- KillTimer(graffitiTimer[playerid]);
- KillTimer(graffitiTimerEx[playerid]);
-
- graffitiTimerEx_Confirm[playerid] = false;
- sprayingGraffiti[playerid] = false;
- sprayingGraffitiTime[playerid] = saveSprayingTime[playerid];
- }
-
- if (PlayerData[playerid][pAddingFurniture])
- {
- DestroyDynamicObject(PlayerData[playerid][pFurnitureObject]);
- PlayerData[playerid][pFurnitureObject] = false;
- CancelEdit(playerid);
- }
-
- if (PlayerData[playerid][pEditingFurniture])
- {
- CancelEdit(playerid);
- PlayerData[playerid][pEditingFurniture] = false;
- }
-
- if (PlayerData[playerid][pEditingDuplicate])
- {
- DestroyDynamicObject(PlayerData[playerid][pFurnitureDuplicate]);
- PlayerData[playerid][pEditingDuplicate] = false;
- CancelEdit(playerid);
- }
-
- if(PlayerData[playerid][pAddingRoadblock])
- {
- PlayerData[playerid][pAddingRoadblock] = 0;
- DestroyDynamicObject(PlayerData[playerid][pRoadblockObject]);
- }
-
- if(PlayerPlacingWeapon[playerid])
- {
- PlayerPlacingWeapon[playerid] = 0; PlayerPlacingWeaponID[playerid] = 0;
- PlayerPlacingWeaponAmmo[playerid] = 0;
-
- SlotBeingUsed[ PlayerPlacingInVehicle[playerid] ][ PlayerPlacingWeaponSlot[playerid] ] = 0;
- PlayerPlacingWeaponSlot[playerid] = 0; PlayerPlacingInVehicle[playerid] = 0;
-
- DestroyDynamicObject(CarData[ PlayerPlacingInVehicle[playerid] ][carWeaponObject][ PlayerPlacingWeaponSlot[playerid] ]);
- }
- if(PlayerEditingWeapon[playerid])
- {
- CancelEdit(playerid);
- }
- if (PlayerData[playerid][pAdjustPackage] != -1)
- {
- PlayerData[playerid][pAdjustPackage] = -1;
- CancelEdit(playerid);
- }
- if (PlayerData[playerid][pDrugEffect] != -1)
- {
- PlayerData[playerid][pDrugEffect] = -1;
- PlayerData[playerid][pDrugTime] = 0;
- PlayerData[playerid][pDrugStrength] = 0;
- }
- if(killerid == -1 && weaponid == -1) {
- PlayerData[playerid][pBrutallyWounded] = 1;
- SetPlayerTeam(playerid, STATE_WOUNDED);
-
- format(string, sizeof(string), "%s spawned while brutally wounded.", ReturnName(playerid, 1));
- adminWarn(1, string);
-
- SetPlayerPos(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]);
- SetPlayerFacingAngle(playerid, PlayerData[playerid][pPos][3]);
-
- SetPlayerInterior(playerid, PlayerData[playerid][pInterior]);
- SetPlayerVirtualWorld(playerid, PlayerData[playerid][pWorld]);
- }
- else {
- format(string, sizeof(string), "Killed %s with %s", ReturnName(playerid), ReturnWeaponName(weaponid));
- LogPlayerAction(killerid, string);
-
- format(string, sizeof(string), "Killed by %s with %s", ReturnName(killerid), ReturnWeaponName(weaponid));
- LogPlayerAction(playerid, string);
-
- foreach(new i : Player)
- {
- if(PlayerData[i][pAdmin])
- {
- if(PlayerData[i][pTogDeath])
- {
- format(string, sizeof(string), "%s has been killed by %s. (%s)", ReturnName(playerid, 1), ReturnName(killerid, 1), ReturnWeaponName(weaponid));
- SendClientMessage(i, COLOR_RED, string);
- }
- }
- }
- }
-
- WriteLog("player_logs/death_log.txt", "[%s] %s brutally wounded %s with a %s", ReturnDate(), ReturnName(killerid, 1), ReturnName(playerid, 1), ReturnWeaponName(weaponid));
- return true;
- }
- stock SetDead(playerid)
- {
- _respawn_timer[playerid] = gettime();
-
- PlayerData[playerid][pBrutallyWounded] = 2;
- SendClientMessage(playerid, COLOR_YELLOW, "-> You're now dead. You need to wait 60 seconds until you can /respawnme.");
-
- PlayerData[playerid][pLegShot] = false;
- SetPlayerTeam(playerid, STATE_DEAD);
-
- TogglePlayerControllable(playerid, false);
- ApplyAnimation(playerid, "WUZI", "CS_Dead_Guy", 4.1, 0, 1, 1, 1, 0, 1);
- ResetPlayerWeapons(playerid);
- ClearPlayerWeapons(playerid, 2);
- return true;
- }
- stock GetVehicleInterior(vehicleid)
- {
- if(!IsValidFactionCar(vehicleid) && !IsValidPlayerCar(vehicleid))
- return false;
-
- if(IsValidFactionCar(vehicleid)) {
- return FactionCar[vehicleid][carInterior];
- }
- else if(IsValidPlayerCar(vehicleid)) {
- return CarData[vehicleid][carInterior];
- }
-
- return false;
- }
- stock GetChannelSlot(playerid, channel)
- {
- if(channel == PlayerData[playerid][pRadio][0]) return 1;
- if(channel == PlayerData[playerid][pRadio][1]) return 2;
- if(channel == PlayerData[playerid][pRadio][2]) return 3;
- if(channel == PlayerData[playerid][pRadio][3]) return 4;
- if(channel == PlayerData[playerid][pRadio][4]) return 5;
- return false;
- }
- stock CheckPlayerBans(playerid)
- {
- new query[256];
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM `bans` WHERE `Name` = '%e' OR IP = '%e' OR HWID = '%e'", ReturnName(playerid), ReturnIP(playerid), ReturnGPCI(playerid));
- mysql_pquery(m_Handle, query, "SQL_CheckPlayerBans", "i", playerid);
-
- return true;
- }
- stock ToggleHandcuffs(playerid, bool:cuffstate)
- {
- if(cuffstate == true) {
- PlayerData[playerid][pHandcuff] = true;
- SetPlayerAttachedObject(playerid, 9, 19418,6,-0.031999,0.024000,-0.024000,-7.900000,-32.000011,-72.299987,1.115998,1.322000,1.406000);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
- }
- else {
- PlayerData[playerid][pHandcuff] = false;
- RemovePlayerAttachedObject(playerid, 9);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- }
- return true;
- }
- stock ReturnFriskData(receiver, searching)
- {
- new str[128];
-
- SendClientMessage(receiver, COLOR_COP, "______Illegal items______");
-
- format(str, sizeof(str), "Name: %s", ReturnName(searching, 0));
- SendClientMessage(receiver, COLOR_WHITE, str);
-
- if(PlayerData[searching][pMoney] > 500)
- SendClientMessage(receiver, COLOR_WHITE, "Money: Has more than $500");
-
- else
- {
- format(str, sizeof(str), "Money: $%d", PlayerData[searching][pMoney]);
- SendClientMessage(receiver, COLOR_WHITE, str);
- }
-
- for(new i = 0; i < MAX_POSSIBLE_WEAPONS; i++) if(Weapon[searching][i][eWeaponAmmo] > 0)
- {
- format(str, sizeof(str), "- %s", ReturnWeaponName(Weapon[searching][i][eWeaponID]));
- SendClientMessage(receiver, COLOR_WHITE, str);
- }
-
- SendClientMessage(receiver, COLOR_COP, "__________________________");
- format(str, sizeof(str), "%s's Drugs:", ReturnName(searching, 0));
- SendClientMessage(receiver, COLOR_ADM, str);
-
- for (new i = 0; i < 10; i++) if (DrugData[searching][i][drugQuantity] > 0)
- {
- format(str, sizeof(str), "[{FFFFFF} %d. %s (%s: %.1f%s/%.1f%s) (Strength: %d) {FF6347}]",
- i, GetPackageType(DrugData[searching][i][drugPackage]), ReturnDrugsName(DrugData[searching][i][drugType]), DrugData[searching][i][drugQuantity], (IsPill(DrugData[searching][i][drugType]) == 1) ? (" Pills") : ("g"),
- GetPackageCapacity(DrugData[searching][i][drugPackage], DrugData[searching][i][drugType]), (IsPill(DrugData[searching][i][drugType]) == 1) ? (" Pills") : ("g"), DrugData[searching][i][drugStrength]);
- SendClientMessage(receiver, COLOR_ADM, str);
- }
-
- DisplayWeaponPackages(searching, receiver);
- return 1;
- }
- stock GetGunObjectID(weaponid)
- {
- if (weaponid < 0 || weaponid > 64)
- {
- return 1575;
- }
- return GunObjectIDs[weaponid];
- }
- stock IsValidNumber(number)
- {
- foreach (new i : Player) if (PlayerData[i][pPhone] == number){
- return i;
- }
-
- foreach(new i : Player) if (PlayerData[i][pBurnerPhoneNumber] == number && PlayerData[i][pHasBurnerPhone]){
- return i;
- }
- return INVALID_PLAYER_ID;
- }
- stock PlayNearbySound(playerid, sound)
- {
- static
- Float:x,
- Float:y,
- Float:z;
- GetPlayerPos(playerid, x, y, z);
- foreach (new i : Player) if (IsPlayerInRangeOfPoint(i, 20.0, x, y, z)) {
- PlayerPlaySound(i, sound, x, y, z);
- }
- return 1;
- }
- stock IsPlayerInProperty(playerid)
- {
- new apt = PlayerData[playerid][pInsideApartment], house = PlayerData[playerid][pInsideHouse];
- new complex = PlayerData[playerid][pInsideComplex];
- if (!apt && !complex && house)return house;
- if (!house && !complex && apt)return apt;
- if (!apt && !house && complex)return complex;
-
- return false;
- }
- stock InFactionProperty(playerid)
- {
- new
- complex = PlayerData[playerid][pInsideComplex],
- apartment = PlayerData[playerid][pInsideApartment];
-
- if(complex)
- {
- if(PlayerData[playerid][pFaction] == PropertyData[complex][propertyFaction])
- return true;
- }
- else if(apartment)
- {
- if(PlayerData[playerid][pFaction] == PropertyData[complex][propertyFaction])
- return true;
- }
- return false;
- }
- stock IsPlayerInBusiness(playerid)
- {
- new biz = PlayerData[playerid][pInsideBusiness];
-
- if (!biz)
- return false;
-
- else
- return biz;
- }
- stock CountHouseWeapons(houseid)
- {
- if(houseid == 0)
- return false;
-
- new count = 0;
- for(new i = 0; i < 21; i++){
- if(PropertyData[houseid][propertyWeapons][i] != 0){
- count++;
- }
- }
-
- return count;
- }
- stock BusinessTypeMessage(playerid, id)
- {
- if (BusinessData[id][businessID] == 0)
- return false;
-
- if (BusinessData[id][businessType] == BIZ_PAWNSHOP) {
- SendClientMessage(playerid, COLOR_DARKGREEN, "Pawnshop /withdraw /balance /buy /buyphone");
- }
-
- if (BusinessData[id][businessType] == BIZ_RESTAURANT) {
- SendClientMessage(playerid, COLOR_WHITE, "This is a {FF6347}fast food restaurant.{FFFFFF} /eat to buy food.");
- }
-
- if (BusinessData[id][businessType] == BIZ_AMMUNATION) {
- SendClientMessage(playerid, COLOR_DARKGREEN, "Ammunation /buygun /buyammo");
- }
-
- if (BusinessData[id][businessType] == BIZ_STORE) {
- SendClientMessage(playerid, COLOR_DARKGREEN, "24/7 Supermarket /withdraw /balance /buy");
- }
-
- if(BusinessData[id][businessType] == BIZ_CLUB) {
- SendClientMessage(playerid, COLOR_DARKGREEN, "Club /buydrink");
- }
-
- if(BusinessData[id][businessType] == BIZ_GENERAL) {
- SendClientMessage(playerid, COLOR_DARKGREEN, "General /withdraw /balance");
- }
-
- if(BusinessData[id][businessType] == BIZ_BANK) {
- SendClientMessage(playerid, COLOR_DARKGREEN, "Bank: /deposit /withdraw /balance /savings");
- }
- return true;
- }
- stock ConfirmDialog(playerid, caption[], info[], callback[], ...){
- new n = numargs(), // number of arguments, static + optional
- szParamHash[64]; // variable where the passed arguments will be stored
- for(new arg = 4; arg < n; arg++) { // loop all additional arguments
- format(szParamHash, sizeof(szParamHash), "%s%d|", szParamHash, getarg(arg)); // store them in szParamHash
- }
- SetPVarInt(playerid, "confDialogArgs", n -4); // store the amount of additional arguments
- SetPVarString(playerid, "confDialCallback", callback); // store the callback that needs to be called after response
- SetPVarString(playerid, "confDialog_arg", szParamHash); // store the additional arguments
-
- ShowPlayerDialog(playerid, DIALOG_CONFIRM_SYS, DIALOG_STYLE_MSGBOX, caption, info, "Yes", "No"); // display the dialog message itself
- return;
- }
- stock ConfirmDialog_Response(playerid, response){
- new szCallback[33], // variable to fetch our callback to
- szParamHash[64], // variable to check raw compressed argument string
- n, // variable to fetch the amount of additional arguments
- szForm[12]; // variable to generate the CallLocalFunction() "format" argument
-
- n = GetPVarInt(playerid, "confDialogArgs"); // Fetch the amount of additional arguments
- GetPVarString(playerid, "confDialCallback", szCallback, sizeof(szCallback)); // fetch the callback
- GetPVarString(playerid, "confDialog_arg", szParamHash, sizeof(szParamHash)); // fetch the raw compressed additional arguments
-
- new hashDecoded[12]; // variable to store extracted additional arguments from the ConfirmDialog() generated string
-
- sscanf(szParamHash, "p<|>A<d>(0)[12]", hashDecoded); // extraction of the additional arguments
-
- new args, // amount of cells passed to CallLocalFunction
- addr, // pointer address variable for later use
- i; // i
-
- format(szForm, sizeof(szForm), "dd"); // static parameters for the callback, "playerid" and "response"
-
- #emit ADDR.pri hashDecoded // get pointer address of the extracted additional arguments
- #emit STOR.S.pri addr // store the pointer address in variable 'addr'
- if(n) { // if there's any additional arguments
- for(i = addr + ((n-1) * 4); i >= addr; i-=4) { // loops all additional arguments by their addresses
- format(szForm, sizeof(szForm), "%sd", szForm); // adds an aditional specifier to the "format" parameter of CallLocalFunction
- #emit load.s.pri i // load the argument at the current address
- #emit push.pri // push it to the CallLocalFunction argument list
- args+=4; // increase used cell number by 4
- }
- }
-
-
- args+=16; // preserve 4 more arguments for CallLocalFunction (16 cause 4 args by 4 cells (4*4))
-
- #emit ADDR.pri response // fetch "response" pointer address to the primary buffer
- #emit push.pri // push it to the argument list
-
- #emit ADDR.pri playerid // fetch "playerid" pointer address to the primary buffer
- #emit push.pri // push it to the argument list
-
- #emit push.adr szForm // push the szForm ("format") to the argument list by its referenced address
- #emit push.adr szCallback // push the szCallback (custom callback) to the argument list by its referenced address
- #emit push.s args // push the amount of arguments
- #emit sysreq.c CallLocalFunction // call the function
-
- // Clear used data
- #emit LCTRL 4
- #emit LOAD.S.ALT args
- #emit ADD.C 4
- #emit ADD
- #emit SCTRL 4
-
- // Clear used PVars
- DeletePVar(playerid, "confDialCallback");
- DeletePVar(playerid, "confDialog_arg");
- DeletePVar(playerid, "confDialogArgs");
-
- return;
- }
- stock DisplayFurnitureMessage(playerid)
- {
- for(new i = 0; i < 9; i++) {
- TextDrawShowForPlayer(playerid, furnitureadd_TD[i]);
- }
-
- SetTimerEx("TIMER_HideTextdraw", 5000, false, "i", playerid);
- return true;
- }
- stock DisplayBuyMenu(playerid)
- {
- new string[128], biz = IsPlayerInBusiness(playerid);
- for(new i = 0; i < 37; i++) {
- TextDrawShowForPlayer(playerid, Buymenu_TD[i]);
- }
- format(string, sizeof(string), "%s", BusinessData[biz][businessName]);
- TextDrawSetString(Buymenu_TD[2], string);
- SelectTextDraw(playerid, 0xA3B4C5FF);
- return true;
- }
- stock ReturnTollsOpened()
- {
- new count = 0;
-
- for(new i = 0; i < MAX_TOLLS; i++) {
- if(TollsData[i][tollID] != 0) {
- if(TollsData[i][tollStatus] == 1) {
- count++;
- }
- }
- }
- return count;
- }
- stock OnVehicleToPoint(Float:radi, vehicleid, Float:x, Float:y, Float:z)
- {
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetVehiclePos(vehicleid, oldposx, oldposy, oldposz);
- tempposx = (oldposx -x);
- tempposy = (oldposy -y);
- tempposz = (oldposz -z);
- if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) {
- return 1;
- }
- return 0;
- }
- stock IsValidPlayerCar(vehicleid)
- {
- if(vehicleid == 0)
- return false;
-
- if(CarData[vehicleid][carID] != 0)
- return CarData[vehicleid][carID];
-
- return false;
- }
- stock IsValidFactionCar(vehicleid)
- {
- if(vehicleid == 0)
- return false;
-
- if(FactionCar[vehicleid][carID] != 0)
- return FactionCar[vehicleid][carID];
-
- return false;
- }
- stock IsValidRentalCar(vehicleid)
- {
- if(vehicleid == 0)
- return false;
-
- if(RentalData[vehicleid][rentalcarSQLID] != 0)
- return RentalData[vehicleid][rentalcarSQLID];
-
- return false;
- }
- stock AnimationCheck(playerid)
- {
- return (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && !PlayerData[playerid][pBrutallyWounded] && !PlayerIsTased[playerid]);
- }
- stock GiveMoney(playerid, amount)
- {
- PauseAntiCheat(playerid);
- PlayerData[playerid][pMoney] += amount;
- GivePlayerMoney(playerid, amount);
-
- new string[128];
-
- if(amount < 0) {
- format(string, sizeof(string), "~r~$%d", amount);
- GameTextForPlayer(playerid, string, 2000, 1);
- }
- else {
- format(string, sizeof(string), "~g~$%d", amount);
- GameTextForPlayer(playerid, string, 2000, 1);
- }
-
- WriteLog("money_logs/function_log.txt", "[%s] %s %s $%s [On hand: $%s]", ReturnDate(), ReturnName(playerid), (amount < 1) ? ("lost") : ("received"), MoneyFormat(amount), MoneyFormat(PlayerData[playerid][pMoney]));
- return true;
- }
- IsPlayerInDMVCar(playerid) {
- if(IsPlayerInVehicle(playerid, dmvCar1) || IsPlayerInVehicle(playerid, dmvCar2) || IsPlayerInVehicle(playerid, dmvCar3) || IsPlayerInVehicle(playerid, dmvCar4)) {
- return true;
- }
-
- return false;
- }
- stock QuitLicenseSession(playerid)
- {
- GameTextForPlayer(playerid, "~w~License Session Quitted", 4000, 1);
- SetVehicleToRespawn(_taking_license_vehicle[playerid]);
-
- _taking_license_point[playerid] = 0;
- _taking_license_test[playerid] = false;
- _taking_license_vehicle[playerid] = 0;
-
- return true;
- }
- stock IsStaticVehicle(vehicleid)
- {
- #define MAX_STATIC_CARS 30
- new staticCar[MAX_STATIC_CARS] =
- {
- 1, 2, 3, 4
- };
- for(new i = 0; i < MAX_STATIC_CARS; i++)
- {
- if(vehicleid == staticCar[i]) return true;
- }
- return false;
- }
- stock IsTruckerVehicle(vehicleid)
- {
- for(new i = 0; i < sizeof TruckerVehicles; i++) if(TruckerVehicles[i] == vehicleid)
- return 1;
-
- return 0;
- }
- stock IsRoadTrain(vehicleid)
- {
- if(GetVehicleModel(vehicleid) == 515)
- return 1;
-
- return 0;
- }
- stock IsSadler(vehicleid)
- {
- if(GetVehicleModel(vehicleid) == 543 || GetVehicleModel(vehicleid) == 605)
- return 1;
-
- return 0;
- }
- stock ReturnLicenses(playerid, playerb)
- {
- new string[128], driversLicense[128], weaponsLicense[128];
-
- if(!PlayerData[playerid][pDriversLicense]) {
- format(driversLicense, sizeof(driversLicense), "{FF6346}Driving License: No");
- }
- else {
- format(driversLicense, sizeof(driversLicense), "{E2FFFF}Driving License: Yes");
- }
-
- if(!PlayerData[playerid][pWeaponsLicense]) {
- format(weaponsLicense, sizeof(weaponsLicense), "{FF6346}Weapons License: No");
- }
- else {
- format(weaponsLicense, sizeof(weaponsLicense), "{E2FFFF}Weapons License: Yes");
- }
-
- new Name[60];
- format(Name, sizeof(Name), "%s", ReturnName(playerid));
-
- for(new i = 0; i < strlen(Name); i++)
- {
- if(Name[i] == '_')
- {
- Name[i] = ' ';
- }
- }
-
- SendClientMessage(playerb, COLOR_DARKGREEN, "______Identification_______");
-
- format(string, sizeof(string), "Name: %s", Name);
- SendClientMessage(playerb, COLOR_GRAD2, string);
-
- format(string, sizeof(string), "%s", driversLicense);
- SendClientMessage(playerb, COLOR_GRAD2, string);
-
- format(string, sizeof(string), "%s", weaponsLicense);
- SendClientMessage(playerb, COLOR_GRAD2, string);
-
- SendClientMessage(playerb, COLOR_DARKGREEN, "___________________________");
- return true;
- }
- stock IsMeleeWeapon(weaponid)
- {
- switch(weaponid) {
- case 0 .. 15: return true;
- }
- return false;
- }
- stock IsBulletWeapon(weaponid)
- {
- switch(weaponid) {
- case 16, 18, 22 .. 34: return true;
- }
- return false;
- }
- stock IsVehicleOccupied(vehicleid)
- {
- foreach(new i : Player) {
- if(IsPlayerInVehicle(i, vehicleid))return true;
- }
- return false;
- }
- stock ReturnVehicleDBID(vehicleid)
- {
- if(!IsValidFactionCar(vehicleid) && !IsValidPlayerCar(vehicleid))
- return false;
-
- if(IsValidFactionCar(vehicleid)) {
- return FactionCar[vehicleid][carID];
- }
- else if(IsValidPlayerCar(vehicleid)) {
- return CarData[vehicleid][carID];
- }
-
- return false;
- }
- stock FreeFurnitureID()
- {
- for (new i = 0; i != MAX_FURNITURE; i ++) if (!FurnitureData[i][furnitureExists]) {
- return i;
- }
- return -1;
- }
- stock LoadFurnitureObjects(specificid)
- {
- if(FurnitureData[specificid][furnitureSQLID] != 0 && FurnitureData[specificid][furnitureExists]) {
-
- if( IsValidDynamicObject(FurnitureData[specificid][furnitureObject] )) {
- DestroyDynamicObject( FurnitureData[specificid][furnitureObject] );
- }
-
- FurnitureData[specificid][furnitureObject] = CreateDynamicObject(FurnitureData[specificid][furnituresModel], FurnitureData[specificid][furniturePos][0], FurnitureData[specificid][furniturePos][1], FurnitureData[specificid][furniturePos][2], FurnitureData[specificid][furnitureRot][0],
- FurnitureData[specificid][furnitureRot][1], FurnitureData[specificid][furnitureRot][2], PropertyData[FurnitureData[specificid][furniturePropertyID]][propertyInteriorWorld], PropertyData[FurnitureData[specificid][furniturePropertyID]][propertyInteriorID]);
-
- printf("Loading - Furniture object %d (SQL ID: %d) was loaded. (Property ID: %d)", specificid, FurnitureData[specificid][furnitureSQLID], FurnitureData[specificid][furniturePropertyID]);
- }
- else printf("Loading - Failed to `LoadFurnitureObjects` ID: %d. (SQL ID: %d)", specificid, FurnitureData[specificid][furnitureSQLID]);
- return true;
- }
- stock ReturnFactionName(factionid)
- {
- new string[128];
-
- format(string, sizeof(string), "%s", FactionData[factionid][factionName]);
- return string;
- }
- stock AddFurniture(playerid, propid, furnname[], modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
- {
- new query[128], id = -1;
-
- if(propertyid && !PropertyData[propid][propertyid])
- return false;
-
- if ((id = FreeFurnitureID()) != -1){
- FurnitureData[id][furnitureExists] = true;
- FurnitureData[id][furnituresModel] = modelid;
- FurnitureData[id][furniturePropertyID] = propid;
- format(FurnitureData[id][furnituresName], 32, furnname);
-
- FurnitureData[id][furniturePos][0] = x;
- FurnitureData[id][furniturePos][1] = y;
- FurnitureData[id][furniturePos][2] = z;
-
- FurnitureData[id][furnitureRot][0] = rx;
- FurnitureData[id][furnitureRot][1] = ry;
- FurnitureData[id][furnitureRot][2] = rz;
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO `furniture` (`propertyid`) VALUES(%i)", PropertyData[propid][propertyid]);
- mysql_pquery(m_Handle, query, "SQL_AddFurniture", "d", id);
-
- return id;
- }
- else Message(playerid, COLOR_ADM, "System error. Contact a developer with this message.");
- return -1;
- }
- stock CountPropertyFurniture(id)
- {
- new count = 0;
- for(new i = 0; i < MAX_FURNITURE; i++)
- {
- if(FurnitureData[i][furnitureSQLID] != 0)
- {
- if(FurnitureData[i][furnitureExists])
- {
- if(FurnitureData[i][furniturePropertyID] == id)
- {
- count++;
- }
- }
- }
- }
- return count;
- }
- stock IsKeyJustDown(key, newkeys, oldkeys)
- {
- if((newkeys & key) && !(oldkeys & key)) return 1;
- return 0;
- }
- stock GetPlayer2DZone(playerid, zone[], len)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- for(new i = 0; i != sizeof(gSAZones); i++ )
- {
- if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4])
- {
- return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
- }
- }
- return 0;
- }
- stock CountAllBulletins()
- {
- new count = 0;
-
- for(new i = 1; i < MAX_APBS; i++)
- {
- if(APBData[i][bulletinExists])
- {
- count++;
- }
- }
- return count;
- }
- /*FreePlayerCarID(playerid)
- {
- for(new i = 0; i < (MAX_OWNED_CARS - 1); i++)
- {
- printf("player veh slot %d: %d", i, PlayerData[playerid][pOwnedCar][i]);
- if(!PlayerData[playerid][pOwnedCar][i]) {
- print(PlayerData[playerid][pOwnedCar][i]);
- printf("(freeplayercarid loop) player %s (%d) owns vehicle id %d", ReturnName(playerid, 1), playerid, i);
- } else {
- print(PlayerData[playerid][pOwnedCar][i]);
- printf("(freeplayercarid loop) player %s (%d) does not own vehicle id %d", ReturnName(playerid, 1), playerid, i);
- return i;
- }
- }
- return -1;
- }*/
- FreePlayerCarID(playerid) {
- for (new i = 0; i < 9; i++) {
- if (PlayerData[playerid][pOwnedCar][i] == 0 || PlayerData[playerid][pOwnedCar][i] == -1) {
- return i;
- }
- }
- return -1;
- }
- stock FreeReportID()
- {
- for(new i = 1; i < MAX_REPORTS; i++)
- {
- if(!ReportData[i][reportExists])
- return i;
- }
- return -1;
- }
- stock ReturnSQLName(id)
- {
- new playerName[32], query[90];
- mysql_format(m_Handle, query, sizeof(query), "SELECT Name FROM players WHERE id = %i LIMIT 1", id);
- new Cache:cache = mysql_query(m_Handle, query);
-
- cache_get_value_name(0, "Name", playerName);
- cache_delete(cache);
-
- return playerName;
- }
- stock ReturnSQLFromName(user[])
- {
- new
- query[90], dbid;
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT id FROM players WHERE Name = '%e'", user);
- new Cache:cache = mysql_query(m_Handle, query);
-
- if(!cache_num_rows())
- {
- cache_delete(cache);
- return 0;
- }
-
- cache_get_value_name_int(0, "id", dbid);
- cache_delete(cache);
- return dbid;
- }
- stock DoesIPExist(ip[])
- {
- new
- query[90];
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT id FROM players WHERE IP = '%e' OR RegisterIP = '%e'", ip, ip);
- new Cache:cache = mysql_query(m_Handle, query);
-
- if(!cache_num_rows())
- {
- cache_delete(cache);
- return 0;
- }
-
- cache_delete(cache);
- return 1;
- }
- stock ClearDealershipVar(playerid)
- {
- g_aTotalAmount[playerid] = 0;
- g_aXMR[playerid] = 0;
- g_aLockLevel[playerid] = 0;
- g_aAlarmLevel[playerid] = 0;
- g_aImmobLevel[playerid] = 1;
- g_aVehicleSpawned[playerid] = 0;
-
- return true;
- }
- stock ShowPlayerPlateSet(playerid, plate[])
- {
- for(new i = 0; i < 2; i++)
- {
- PlayerTextDrawShow(playerid, CarBought_PTD[playerid][i]);
- }
-
- PlayerTextDrawSetString(playerid, CarBought_PTD[playerid][1], plate);
-
- SetTimerEx("TIMER_StopPlateShow", 4000, false, "i", playerid);
- return true;
- }
- stock GetFreeBuildSlot(playerid)
- {
- for(new i = 0; i < MAX_GRANT_BUILD; i++)
- {
- if(!BuildData[playerid][i][GrantedSQLID])
- return i;
- }
- return -1;
- }
- stock ShowClothingList(playerid, page)
- {
- new str[1250];
-
- PlayerClothingPage[playerid] = page;
-
- if(page == 1)
- str = "{FFFF00}List 1\n";
- else
- format(str, sizeof(str), "%s{FFFF00}<< List %d\n", str, page-1);
-
- page--;
-
- new counter = 0;
-
- for(new i = 0; i < sizeof(g_aClothingData); i++)
- {
- counter++;
- }
-
- new bool:toSecondPage = false, countItems = 0;
-
- for(new i = page*MAX_CLOTHING_SHOW; i < counter; i++)
- {
- countItems++;
-
- if(countItems == MAX_CLOTHING_SHOW+1){
- toSecondPage = true;
- break;
- }
- else {
- format(str, sizeof(str), "%s{FFFFFF}%s\t-\t{33AA33}$%d\n", str, g_aClothingData[i][clothingName], g_aClothingData[i][clothingPrice]);
-
- ClothingItemSelector[playerid][countItems-1] = i;
- }
- }
- if(toSecondPage){
- format(str, sizeof(str), "%s{FFFF00}List %d >>\n", str, (page+1)+1);
- }
- ShowPlayerDialog(playerid, DIALOG_BUY_CLOTHING, DIALOG_STYLE_LIST, "Clothing Available:", str, "Buy", "<<<");
- return true;
- }
- stock ShowPlayerFurniture(playerid, page)
- {
- new str[1250], query[90], prop_id = IsPlayerInProperty(playerid);
-
- PlayerFurniturePage[playerid] = page;
-
- if(page == 1)
- str = "{FFFF00}Page 1\n";
- else
- format(str, sizeof(str), "%s{FFFF00}<< Page %d\n", str, page-1);
-
- page--;
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM furniture WHERE propertyid = %i", prop_id);
- new Cache:cache = mysql_query(m_Handle, query);
-
- new objectName[90], object_id;
- new rows = cache_num_rows();
-
- new bool:toSecondPage = false, furnCount = 0, title[90];
-
- if(!rows)
- {
- str = "{FFFF00}You don't have any furniture.";
- cache_delete(cache);
- }
- else
- {
- for(new i = page*MAX_SHOWING_FURNITURE; i < rows; i++)
- {
- furnCount++;
-
- if(furnCount == MAX_SHOWING_FURNITURE+1)
- {
- toSecondPage = true;
- break;
- }
- else
- {
- cache_get_value_name(i, "name", objectName);
- cache_get_value_name_int(i, "id", object_id);
-
- format(str, sizeof(str), "%sSlot %d: %s\n", str, i, objectName);
- FurnitureSelectHolder[playerid][furnCount-1] = object_id;
- }
- }
- }
- if(toSecondPage)
- {
- format(str, sizeof(str), "%s{FFFF00}Page %d >>\n", str, (page+1)+1);
- }
-
- cache_delete(cache);
-
- format(title, sizeof(title), "Current Furniture({33AA33}%d{FFFFFF})", CountPropertyFurniture(prop_id));
- ShowPlayerDialog(playerid, DIALOG_EDIT_FURNITURE, DIALOG_STYLE_LIST, title, str, "Select", "<<<");
- return true;
- }
- stock CountAdminNotes(playerid)
- {
- new count = 0;
-
- for(new i = 1; i < MAX_ADMIN_NOTES; i++)
- {
- if(aNotesData[playerid][i][anote_SQLID] != 0)
- {
- count++;
- }
- }
- return count;
- }
- stock ReturnANoteSlot(playerid)
- {
- for(new i = 1; i < MAX_ADMIN_NOTES; i++)
- {
- if(!aNotesData[playerid][i][anote_SQLID])
- return i;
- }
- return -1;
- }
- stock AddAdminNote(playerid, addingid, reason[])
- {
- if(addingid != INVALID_PLAYER_ID)
- {
- new query[400], id;
-
- for(new i = 1; i < MAX_ADMIN_NOTES; i++)
- {
- if(!aNotesData[addingid][i][anote_SQLID])
- {
- id = i;
- break;
- }
- }
-
- for(new i = 1; i < MAX_ADMIN_NOTES; i++)
- {
- if(aNotesData[addingid][i][anote_SQLID] != 0)
- {
- aNotesData[addingid][i][anote_active] = false;
- }
- }
-
- anote_idsave[addingid] = id;
-
- format(aNotesData[addingid][id][anote_reason], 128, "%s", reason);
- format(aNotesData[addingid][id][anote_date], 90, "%s", ReturnDate());
- format(aNotesData[addingid][id][anote_issuer], 60, "%s", ReturnName(playerid, 1));
-
- aNotesData[addingid][id][anote_playerDBID] = PlayerData[addingid][pSQLID];
-
- aNotesData[addingid][id][anote_active] = true;
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE player_anotes SET anote_active = 0 WHERE player_dbid = %i", PlayerData[addingid][pSQLID]);
- mysql_tquery(m_Handle, query);
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO player_anotes (`player_dbid`, `anote_reason`, `anote_issuer`, `anote_date`, `anote_active`) VALUES(%i, '%e', '%e', '%e', 1)", PlayerData[addingid][pSQLID],
- reason, ReturnName(playerid, 1), ReturnDate());
- mysql_pquery(m_Handle, query, "SQL_AddPlayerAdminNote", "i", addingid);
-
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO log_anotes (`Name`, `Reason`, `Date`, `IP`, `AddedBy`) VALUES('%e', '%e', '%e', '%e', '%e')", ReturnName(addingid, 1), reason, ReturnDateLog(), ReturnIP(addingid), ReturnName(playerid, 1));
- mysql_pquery(m_Handle, query);
-
- }
- return true;
- }
- Server:SQL_AddPlayerAdminNote(playerid)
- {
- aNotesData[playerid][anote_idsave[playerid]][anote_SQLID] = cache_insert_id();
- return true;
- }
- stock FreeAttachmentSlot(playerid)
- {
- for(new i = 1; i < MAX_PLAYER_ATTACHED_OBJECTS; i++)
- {
- if(!IsPlayerAttachedObjectSlotUsed(playerid, i))
- return i;
- }
- return -1;
- }
- stock FreeClothingSlot(playerid)
- {
- for(new i = 1; i < MAX_CLOTHING_ITEMS; i++)
- {
- if(!ClothingData[playerid][i][attachment_SQLID])
- return i;
- }
- return -1;
- }
- stock PlayAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync = 0)
- {
- ApplyAnimation(playerid, animlib, animname, fDelta, loop, lockx, locky, freeze, time, forcesync);
- PlayerData[playerid][pPlayingAnimation] = true;
-
- if (time != 0) {
- SetTimerEx("TIMER_EndAnimationVar", time, false, "i", playerid);
- }
- return true;
- }
- Server:TIMER_EndAnimationVar(playerid)
- {
- PlayerData[playerid][pPlayingAnimation] = false;
- }
- stock DisplayVehiclePackages(playerid, vehicleid, header = 1)
- {
- new string[256], string2[256], string3[256], string4[256], string5[256], string6[256], string7[256];
- if(header == 1)SendClientMessage(playerid, COLOR_DARKGREEN, "_________Vehicle Weapon Packages:_________");
-
- for (new i = 1; i <= 3; i++){
- if (CarData[vehicleid][carPackages][i])
- format(string, sizeof(string), "%s[ %d. %s (%d/500) ]", string, i, ReturnWeaponName(CarData[vehicleid][carPackages][i]), CarData[vehicleid][carPackagesAmmo][i]);
-
- else
- format(string, sizeof(string), "%s[ %d. Empty ]", string, i);
- }
- SendClientMessage(playerid, COLOR_WHITE, string);
-
- for (new i = 4; i <= 6; i++){
- if (CarData[vehicleid][carPackages][i])
- format(string2, sizeof(string2), "%s[ %d. %s (%d/500) ]", string2, i, ReturnWeaponName(CarData[vehicleid][carPackages][i]), CarData[vehicleid][carPackagesAmmo][i]);
-
- else
- format(string2, sizeof(string2), "%s[ %d. Empty ]", string2, i);
- }
- SendClientMessage(playerid, COLOR_WHITE, string2);
-
- for (new i = 7; i <= 9; i++){
- if (CarData[vehicleid][carPackages][i])
- format(string3, sizeof(string3), "%s[ %d. %s (%d/500) ]", string3, i, ReturnWeaponName(CarData[vehicleid][carPackages][i]), CarData[vehicleid][carPackagesAmmo][i]);
-
- else
- format(string3, sizeof(string3), "%s[ %d. Empty ]", string3, i);
- }
- SendClientMessage(playerid, COLOR_WHITE, string3);
-
- for (new i = 10; i <= 12; i++){
- if (CarData[vehicleid][carPackages][i])
- format(string4, sizeof(string4), "%s[ %d. %s (%d/500) ]", string4, i, ReturnWeaponName(CarData[vehicleid][carPackages][i]), CarData[vehicleid][carPackagesAmmo][i]);
-
- else
- format(string4, sizeof(string4), "%s[ %d. Empty ]", string4, i);
- }
- SendClientMessage(playerid, COLOR_WHITE, string4);
-
- for (new i = 13; i <= 15; i++){
- if (CarData[vehicleid][carPackages][i])
- format(string5, sizeof(string5), "%s[ %d. %s (%d/500) ]", string5, i, ReturnWeaponName(CarData[vehicleid][carPackages][i]), CarData[vehicleid][carPackagesAmmo][i]);
-
- else
- format(string5, sizeof(string5), "%s[ %d. Empty ]", string5, i);
- }
- SendClientMessage(playerid, COLOR_WHITE, string5);
-
- for (new i = 16; i <= 18; i++){
- if (CarData[vehicleid][carPackages][i])
- format(string6, sizeof(string6), "%s[ %d. %s (%d/500) ]", string6, i, ReturnWeaponName(CarData[vehicleid][carPackages][i]), CarData[vehicleid][carPackagesAmmo][i]);
-
- else
- format(string6, sizeof(string6), "%s[ %d. Empty ]", string6, i);
- }
- SendClientMessage(playerid, COLOR_WHITE, string6);
-
- for (new i = 19; i <= 20; i++){
- if (CarData[vehicleid][carPackages][i])
- format(string7, sizeof(string7), "%s[ %d. %s (%d/500) ]", string7, i, ReturnWeaponName(CarData[vehicleid][carPackages][i]), CarData[vehicleid][carPackagesAmmo][i]);
-
- else
- format(string7, sizeof(string7), "%s[ %d. Empty ]", string7, i);
- }
- SendClientMessage(playerid, COLOR_WHITE, string7);
-
- return true;
- }
- stock DisplayWeaponPackages(playerid, playerb)
- {
- new
- str[128],
- string[128]
- ;
-
- format(str, sizeof(str), "___________%s's Weapon Packages___________", ReturnName(playerid, 0));
- SendClientMessage(playerb, COLOR_DARKGREEN, str);
-
- for(new i = 1; i < MAX_WEAPON_PACKAGES; i++)
- {
- if(PackageData[playerid][packageWeapon][i])
- format(string, sizeof(string), "%s[ %d. %s (%d/500) ]", string, i, ReturnWeaponName(PackageData[playerid][packageWeapon][i]), PackageData[playerid][packageAmmo][i]);
-
- else format(string, sizeof(string), "%s[ %d. Empty ]", string, i);
-
- if(i % 3 == 0 && i != 0 || i == 21-1)
- {
- SendClientMessage(playerb, COLOR_WHITE, string);
- string[0] = 0;
- }
- }
- return 1;
- }
- stock ReturnJobName(jobid)
- {
- new string[60];
-
- switch (jobid)
- {
- case 1: string = "Mechanic";
- case 2: string = "Fisherman";
- case 3: string = "Taxi Driver";
- case 4: string = "Trucker";
- default: string = "Unemployed";
- }
- return string;
- }
- stock JobGetMessage(playerid)
- {
- for(new i = 0; i < 4; i++) {
- PlayerTextDrawShow(playerid, Getjob_PTD[playerid][i]);
- }
-
- new string[128];
- format(string, sizeof(string), "%s.", ReturnJobName(PlayerData[playerid][pJob]));
-
- PlayerTextDrawSetString(playerid, Getjob_PTD[playerid][1], string);
- SetTimerEx("TIMER_StopJobTextdraw", 4000, false, "i", playerid);
- return true;
- }
- Server:TIMER_StopJobTextdraw(playerid)
- {
- for(new i = 0; i < 4; i++) {
- PlayerTextDrawHide(playerid, Getjob_PTD[playerid][i]);
- }
- return true;
- }
- stock ReturnFreePackage(playerid)
- {
- for (new i = 1; i < MAX_WEAPON_PACKAGES; i++)
- {
- if (!PackageData[playerid][packageWeapon][i])
- return i;
- }
- return -1;
- }
- stock ReturnCarFreePackage(vehicleid)
- {
- for (new i = 1; i < 21; i++)
- {
- if (!CarData[vehicleid][carPackages][i])
- return i;
- }
- return -1;
- }
- stock CountPlayerPackages(playerid)
- {
- new count = 0;
-
- for (new i = 1; i < MAX_WEAPON_PACKAGES; i++) {
- if (PackageData[playerid][packageWeapon][i]) {
- count++;
- }
- }
- return count;
- }
- ReturnDrugsName(type)
- {
- new string[60];
- switch (type)
- {
- case 0: string = "Marijuana";
- case 1: string = "Crack";
- case 2: string = "Cocaine";
- case 3: string = "Ecstasy";
- case 4: string = "LSD";
- case 5: string = "Methamphetamine";
- case 6: string = "PCP";
- case 7: string = "Heroin";
- case 8: string = "Aspirin";
- case 9: string = "Haloperidol";
- case 10: string = "Morphine";
- case 11: string = "Xanax";
- case 12: string = "MDMA";
- case 13: string = "Fentanyl";
- case 14: string = "Anabolic Steroid";
- }
- return string;
- }
- stock ReturnDonatorType(type)
- {
- new string[90];
-
- switch (type)
- {
- case 0: string = "None";
- case 1: string = "Bronze User";
- case 2: string = "Silver User";
- case 3: string = "Gold User";
- case 4: string = "Platinum User";
- }
- return string;
- }
- stock ReturnGPCI(playerid)
- {
- new szSerial[41]; // 40 + \0
-
- gpci(playerid, szSerial, sizeof(szSerial));
- return szSerial;
- }
- stock CountPlayerCars(playerid)
- {
- new count = 0;
-
- for (new i = 0; i < (MAX_OWNED_CARS - 1); i++)
- {
- if (PlayerData[playerid][pOwnedCar][i])
- {
- count++;
- }
- }
- return count;
- }
- stock ReturnVehicleSpeed(vehicleid)
- {
- new Float:xPos[3];
- GetVehicleVelocity(vehicleid, xPos[0], xPos[1], xPos[2]);
- return floatround(floatsqroot(xPos[0] * xPos[0] + xPos[1] * xPos[1] + xPos[2] * xPos[2]) * 170.00);
- }
- stock LogPlayerChat(playerid, chat[])
- {
- new
- id = -1;
-
- for(new i = 0; i < 30; i++)
- {
- if(isnull(PlayerChatLogs[playerid][i]))
- {
- id = i;
- break;
- }
- }
- if (id == -1)
- {
- id = 0;
-
- for(new i = 0; i < 30; i++)
- {
- PlayerChatLogs[playerid][i] = "";
- }
- }
-
- new date[30];
- gettime(date[3], date[4], date[5]);
-
- format (PlayerChatLogs[playerid][id], 128, "%02d:%02d:%02d %s", date[3], date[4], date[5], chat);
- return 1;
- }
- stock LogPlayerCommand(playerid, command[])
- {
- new
- id = -1;
-
- for(new i = 0; i < 30; i++)
- {
- if(isnull(PlayerCommandLogs[playerid][i]))
- {
- id = i;
- break;
- }
- }
- if (id == -1)
- {
- id = 0;
-
- for(new i = 0; i < 30; i++)
- {
- PlayerCommandLogs[playerid][i] = "";
- }
- }
-
- new date[30];
- gettime(date[3], date[4], date[5]);
-
- format (PlayerCommandLogs[playerid][id], 128, "%02d:%02d:%02d %s", date[3], date[4], date[5], command);
- return 1;
- }
- stock ReturnWeaponsSlot(weaponid)
- {
- new slot;
-
- switch (weaponid)
- {
- case 3, 4, 5, 6, 8: slot = 0;
- case 15: slot = 6;
- case 22 .. 24: slot = 7;
- case 25 .. 34: slot = 8;
- }
- return slot;
- }
- stock IsWeaponShowable(weaponid)
- {
- switch (weaponid)
- {
- case 3, 4, 5, 6, 8, 15, 22 .. 24, 25, 27, 28, 29, 30, 31, 32, 33, 34: return true;
- }
- return false;
- }
- stock ResetDisplayPositions(playerid)
- {
- for (new i = 3; i < 35; i++)
- {
- WeaponDisplay[playerid][i][weaponPos][0] = -0.115999;
- WeaponDisplay[playerid][i][weaponPos][1] = 0.189000;
- WeaponDisplay[playerid][i][weaponPos][2] = 0.087999;
- WeaponDisplay[playerid][i][weaponRot][0] = 0.000000;
- WeaponDisplay[playerid][i][weaponRot][1] = 44.500007;
- WeaponDisplay[playerid][i][weaponRot][2] = 0.000000;
- WeaponDisplay[playerid][i][weaponBone] = 1;
- WeaponDisplay[playerid][i][weaponHidden] = false;
- }
- EditingDisplay[playerid] = false;
- return true;
- }
- stock IsValidDisplayWeapon(weaponid)
- {
- switch (weaponid)
- {
- case 3 .. 6, 8, 15, 22 .. 24, 25 .. 34: return true;
- }
- return false;
- }
- stock NotHideableWeapon(weaponid)
- {
- switch (weaponid)
- {
- case 5, 25, 27, 29, 30, 31, 33, 34: return true;
- }
- return false;
- }
- stock ReturnWeaponsModel(weaponid)
- {
- new WeaponModels[] =
- {
- 0, 331, 333, 334, 335, 336, 337, 338, 339, 341, 321, 322, 323, 324,
- 325, 326, 342, 343, 344, 0, 0, 0, 346, 347, 348, 349, 350, 351, 352,
- 353, 355, 356, 372, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366,
- 367, 368, 368, 371
- };
- return WeaponModels[weaponid];
- }
- stock WeaponDataSlot(weaponid)
- {
- new slot;
-
- switch (weaponid)
- {
- case 1: slot = 0;
- case 2 .. 9: slot = 1;
- case 10 .. 15: slot = 10;
- case 16 .. 18: slot = 8;
- case 41, 43: slot = 9;
- case 24: slot = 2;
- case 25: slot = 3;
- case 28, 29, 32: slot = 4;
- case 30, 31: slot = 5;
- case 33, 34: slot = 6;
- }
- return slot;
- }
- stock FreeBoomboxID()
- {
- for (new i = 1; i < MAX_BOOMBOXS; i++)
- {
- if (!BoomboxData[i][boomboxExists])
- return i;
- }
- return -1;
- }
- stock RemoveBoombox(id)
- {
- if (id == 0)
- return false;
-
- BoomboxData[id][boomboxExists] = false;
- BoomboxData[id][boomboxPlayerID] = 0;
- BoomboxData[id][boomboxOn] = false;
-
- if(IsValidDynamicArea(BoomboxData[id][boomboxArea]))
- DestroyDynamicArea(BoomboxData[id][boomboxArea]);
-
- return true;
- }
- stock IsNearBoombox(playerid)
- {
- for (new i = 1; i < MAX_BOOMBOXS; i++)
- {
- if (BoomboxData[i][boomboxExists])
- {
- if (IsPlayerInRangeOfPoint(playerid, 4.0, BoomboxData[i][boomboxPos][0], BoomboxData[i][boomboxPos][1], BoomboxData[i][boomboxPos][2]))
- return i;
- }
- }
- return false;
- }
- stock ShowXMRDialog(playerid)
- {
- new string[500];
- for(new i = 1; i < MAX_XMR_CATEGORIES; i++)
- {
- if (XMRCategoryData[i][XMRCategory])
- {
- format(string, sizeof(string), "%s%s\n", string, XMRCategoryData[i][XMRCategoryName]);
- ShowPlayerDialog(playerid, DIALOG_XMR, DIALOG_STYLE_LIST, "Genres:", string, "Select", "Cancel");
- }
- }
- return true;
- }
- stock ReturnNameLetter(playerid)
- {
- new playersName[MAX_PLAYER_NAME];
-
- GetPlayerName(playerid, playersName, sizeof(playersName));
-
- format(playersName, sizeof(playersName), "%c. %s", playersName[0], playersName[strfind(playersName, "_") + 1]);
- return playersName;
- }
- stock strreplace2(string[], const search[], const replacement[], bool:ignorecase = false, pos = 0, limit = -1, maxlength = sizeof(string)) {
- // No need to do anything if the limit is 0.
- if (limit == 0)
- return 0;
-
- new
- sublen = strlen(search),
- replen = strlen(replacement),
- bool:packed = ispacked(string),
- maxlen = maxlength,
- len = strlen(string),
- count = 0;
-
-
- // "maxlen" holds the max string length (not to be confused with "maxlength", which holds the max. array size).
- // Since packed strings hold 4 characters per array slot, we multiply "maxlen" by 4.
- if (packed) maxlen *= 4;
-
- // If the length of the substring is 0, we have nothing to look for..
- if (!sublen)
- return 0;
-
- // In this line we both assign the return value from "strfind" to "pos" then check if it's -1.
- while (-1 != (pos = strfind(string, search, ignorecase, pos))) {
- // Delete the string we found
- strdel(string, pos, pos + sublen);
-
- len -= sublen;
-
- // If there's anything to put as replacement, insert it. Make sure there's enough room first.
- if (replen && len + replen < maxlen) {
- strins(string, replacement, pos, maxlength);
-
- pos += replen;
- len += replen;
- }
-
- // Is there a limit of number of replacements, if so, did we break it?
- if (limit != -1 && ++count >= limit)
- break;
- }
-
- return count;
- }
- stock ShowMealMenu(playerid, bool:displayed = true)
- {
- new string[90] ;
- if (displayed == true)
- {
- SelectTextDraw(playerid, 0xA3B4C5FF);
-
- format (string, sizeof(string), "%s", BusinessData[IsPlayerInBusiness(playerid)][businessName]);
- TextDrawSetString(TD_mealMenu[1], string);
-
- for (new i = 0; i < 17; i++)
- {
- TextDrawShowForPlayer(playerid, TD_mealMenu[i]);
- }
- }
- else
- {
- for (new i = 0; i < 17; i++)
- {
- TextDrawHideForPlayer(playerid, TD_mealMenu[i]);
- }
- }
- return true;
- }
- IsIllegalFaction(playerid)
- {
- if(!PlayerData[playerid][pFaction])
- return 0;
-
- new factionid = PlayerData[playerid][pFaction];
-
- if(!FactionData[factionid][factionCopPerms] && !FactionData[factionid][factionMedPerms] && !FactionData[factionid][factionNewsPerms])
- return 1;
-
- return 0;
- }
- IsPoliceFaction(playerid)
- {
- if (!PlayerData[playerid][pFaction])
- return false;
-
- new factionid = PlayerData[playerid][pFaction];
-
- if (FactionData[factionid][factionCopPerms])
- return true;
-
- return false;
- }
- IsMedicFaction(playerid)
- {
- if (!PlayerData[playerid][pFaction])
- return false;
-
- new factionid = PlayerData[playerid][pFaction];
-
- if (FactionData[factionid][factionMedPerms])
- return true;
-
- return false;
- }
- IsNewsFaction(playerid) {
- if (playerid == INVALID_PLAYER_ID)
- return false;
- if (!PlayerData[playerid][pFaction])
- return false;
-
- new factionid = PlayerData[playerid][pFaction];
-
- if (FactionData[factionid][factionNewsPerms])
- return true;
-
- return false;
- }
- IsLAWFaction(playerid)
- {
- if (playerid == INVALID_PLAYER_ID)
- return false;
- if (!PlayerData[playerid][pFaction])
- return false;
-
- new factionid = PlayerData[playerid][pFaction];
-
- if (FactionData[factionid][factionMedPerms] || FactionData[factionid][factionCopPerms])
- return true;
-
- return false;
- }
- stock GetNearestVehicle(playerid)
- {
- new
- Float:fX,
- Float:fY,
- Float:fZ,
- Float:fSX,
- Float:fSY,
- Float:fSZ,
- Float:fRadius;
- for (new i = 1, j = GetVehiclePoolSize(); i <= j; i ++)
- {
- if (!IsVehicleStreamedIn(i, playerid))
- {
- continue;
- }
- else
- {
- GetVehiclePos(i, fX, fY, fZ);
- GetVehicleModelInfo(GetVehicleModel(i), VEHICLE_MODEL_INFO_SIZE, fSX, fSY, fSZ);
- fRadius = floatsqroot((fSX + fSX) + (fSY + fSY));
- if (IsPlayerInRangeOfPoint(playerid, fRadius, fX, fY, fZ) && GetPlayerVirtualWorld(playerid) == GetVehicleVirtualWorld(i))
- {
- return i;
- }
- }
- }
- return INVALID_VEHICLE_ID;
- }
- stock GetVehicleBoot(vehicleid, &Float:x, &Float:y, &Float:z)
- {
- if (!GetVehicleModel(vehicleid) || vehicleid == INVALID_VEHICLE_ID)
- return (x = 0.0, y = 0.0, z = 0.0), 0;
- static
- Float:pos[7];
-
- GetVehicleModelInfo(GetVehicleModel(vehicleid), VEHICLE_MODEL_INFO_SIZE, pos[0], pos[1], pos[2]);
- GetVehiclePos(vehicleid, pos[3], pos[4], pos[5]);
- GetVehicleZAngle(vehicleid, pos[6]);
- x = pos[3] - (floatsqroot(pos[1] + pos[1]) * floatsin(-pos[6], degrees));
- y = pos[4] - (floatsqroot(pos[1] + pos[1]) * floatcos(-pos[6], degrees));
- z = pos[5];
- return 1;
- }
- stock GetVehicleHood(vehicleid, &Float:x, &Float:y, &Float:z)
- {
- if (!GetVehicleModel(vehicleid) || vehicleid == INVALID_VEHICLE_ID)
- return (x = 0.0, y = 0.0, z = 0.0), 0;
- static
- Float:pos[7];
- GetVehicleModelInfo(GetVehicleModel(vehicleid), VEHICLE_MODEL_INFO_SIZE, pos[0], pos[1], pos[2]);
- GetVehiclePos(vehicleid, pos[3], pos[4], pos[5]);
- GetVehicleZAngle(vehicleid, pos[6]);
- x = pos[3] + (floatsqroot(pos[1] + pos[1]) * floatsin(-pos[6], degrees));
- y = pos[4] + (floatsqroot(pos[1] + pos[1]) * floatcos(-pos[6], degrees));
- z = pos[5];
- return 1;
- }
- stock Send911Message(playerid, type)
- {
- new string[128];
- switch(type)
- {
- case 1:
- {
- SendLawMessage(COLOR_NINER, "|____________Emergency Call____________|");
- format(string, sizeof(string), "Caller: %s, Phone: %d, Trace: %s", ReturnName(playerid, 0), ReturnPhoneNumber(playerid), ReturnLocation(playerid));
- SendLawMessage(COLOR_NINER, string);
- SendLawMessage(COLOR_NINER, "Services Required: Police");
- format(string, sizeof(string), "Situation: %s", PlayerData[playerid][p911Text]);
- SendLawMessage(COLOR_NINER, string);
- format(string, sizeof(string), "Location: %s", PlayerData[playerid][p911Location]);
- SendLawMessage(COLOR_NINER, string);
- }
- case 2:
- {
- SendFDMessage(COLOR_EMT, "|____________ Emergency Call ____________|");
- format(string, sizeof(string), "Caller: %s, Phone: %d, Trace: %s", ReturnName(playerid, 0), ReturnPhoneNumber(playerid), ReturnLocation(playerid));
- SendFDMessage(COLOR_EMT, string);
- SendFDMessage(COLOR_EMT, "Services Required: Fire");
- format(string, sizeof(string), "Situation: %s", PlayerData[playerid][p911Text]);
- SendFDMessage(COLOR_EMT, string);
- format(string, sizeof(string), "Location: %s", PlayerData[playerid][p911Location]);
- SendFDMessage(COLOR_EMT, string);
- }
- }
-
- PlayerData[playerid][p911Steps] = 0;
- cmd_hangup(playerid, "");
- return 1;
- }
- stock VehicleHasDrugs(vehicleid)
- {
- new
- count = 0;
-
- for(new i = 0; i < 10; i++)
- {
- if(!CarDrugData[vehicleid][i][drugQuantity])
- continue;
-
- count++;
- }
- return count;
- }
- stock DisplayClothingMenu(playerid, bool:hide = false, bool:reset = true)
- {
- if(!hide)
- {
- if(reset)
- {
- PlayerData[playerid][pSkinMenuOn] = true;
- PlayerData[playerid][pSkinMenu] = 1;
-
- PlayerTextDrawSetPreviewModel(playerid, Skinmenu_PTD[playerid][2], 1);
-
- SendClientMessage(playerid, COLOR_ACTION, "You're now seeing the skin selection menu.");
- SendClientMessage(playerid, COLOR_ACTION, "Use the arrows to navigate through the skins. You can press the model to purchase.");
- }
-
- SelectTextDraw(playerid, 0x078A07FF);
-
- for(new i = 0; i < 3; i++)
- PlayerTextDrawShow(playerid, Skinmenu_PTD[playerid][i]);
- }
- else
- {
- PlayerData[playerid][pSkinMenuOn] = false;
- PlayerData[playerid][pSkinMenu] = 1;
-
- for(new i = 0; i < 3; i++)
- PlayerTextDrawHide(playerid, Skinmenu_PTD[playerid][i]);
- }
- return 1;
- }
- /*
- stock ShowPlayerMDC(playerid)
- {
- new list_str[128];
- strcat(list_str, "Name Search\n");
- strcat(list_str, "Plate Search\n");
-
- ShowPlayerDialog(playerid, DIALOG_MDC, DIALOG_STYLE_LIST, "Mobile Database Computer", list_str, "Select", "Exit");
- return 1;
- }
- */
- stock ShowPlayerMDC(playerid)
- {
- new
- mdc_str[128]
- ;
-
- PlayNearbySound(playerid, MDC_OPEN);
-
- strcat(mdc_str, "Name Search\n"); //case 0;
- strcat(mdc_str, " \n");
- strcat(mdc_str, "Plate Search\n"); //case 2;
- strcat(mdc_str, "Partial Plate Search\n"); //case 3;
- strcat(mdc_str, " \n");
- strcat(mdc_str, "Prisoners List\n"); //case 5;
- strcat(mdc_str, "Stolen Vehicles\n"); //case 6;
- strcat(mdc_str, " \n");
- strcat(mdc_str, "Search Phone\n"); //case 8;
- strcat(mdc_str, "Duty Roster\n"); //case 9;
- ShowPlayerDialog(playerid, DIALOG_MDC, DIALOG_STYLE_LIST, "Mobile Database Computer", mdc_str, "Select", "Exit");
- return 1;
- }
- stock ShowVehicleList(playerid)
- {
- new string[128];
-
- format(string, sizeof(string), "_________________Your vehicles(%i)_________________", CountPlayerCars(playerid));
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
-
- for(new i = 0; i < (MAX_OWNED_CARS - 1); i++)
- {
- if(PlayerData[playerid][pOwnedCar][i])
- {
- mysql_format(m_Handle, string, sizeof(string), "SELECT * FROM ownedcars WHERE id = %i", PlayerData[playerid][pOwnedCar][i]);
- mysql_tquery(m_Handle, string, "OnShowVehicleList", "ii", playerid, (i + 1));
- }
- }
- return 1;
- }
- stock VehicleHasPackages(vehicleid)
- {
- for(new i = 1; i < MAX_WEAPON_PACKAGES; i++)
- {
- if(CarData[vehicleid][carPackages][i])
- return 1;
- }
-
- return 0;
- }
- stock IsPlayerNearProperty(playerid)
- {
- for(new i = 1; i < MAX_PROPERTY; i++)
- {
- if(!PropertyData[i][propertyid])
- continue;
-
- if(IsPlayerInRangeOfPoint(playerid, 4.0, PropertyData[i][propertyExterior][0], PropertyData[i][propertyExterior][1], PropertyData[i][propertyExterior][2]) && GetPlayerVirtualWorld(playerid) == PropertyData[i][propertyExteriorWorld])
- return i;
- }
- return 0;
- }
- stock IsPlayerNearBusiness(playerid)
- {
- for(new i = 1; i < MAX_BUSINESS; i++)
- {
- if(!BusinessData[i][businessID])
- continue;
-
- if(IsPlayerInRangeOfPoint(playerid, 4.0, BusinessData[i][businessExt][0], BusinessData[i][businessExt][1], BusinessData[i][businessExt][2]) && GetPlayerVirtualWorld(playerid) == 0)
- return i;
- }
- return 0;
- }
- stock IsPlayerNearFuelStation(playerid)
- {
- for(new i = 0; i < sizeof g_FuelStations; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 7.0, g_FuelStations[i][PosX], g_FuelStations[i][PosY], g_FuelStations[i][PosZ]))
- return i;
- }
- return -1;
- }
- stock ReturnPlayerMask(playerid)
- {
- new
- string[128];
-
- format(string, sizeof(string), "[Mask %d_%d]", PlayerData[playerid][pMaskID], PlayerData[playerid][pMaskIDEx]);
- return string;
- }
- stock ShowUnscrambleTextdraw(playerid, bool:showTextdraw = true)
- {
- if(showTextdraw)
- {
- for(new i = 0; i < 7; i++)
- {
- PlayerTextDrawShow(playerid, Unscrambler_PTD[playerid][i]);
- }
- }
- else
- {
- for(new i = 0; i < 7; i++)
- {
- PlayerTextDrawHide(playerid, Unscrambler_PTD[playerid][i]);
- }
- }
- return 1;
- }
- stock NotifyVehicleOwner(vehicleid)
- {
- new playerid = INVALID_PLAYER_ID;
- foreach(new i : Player)
- {
- if(PlayerData[i][pSQLID] == CarData[vehicleid][carOwnerID])
- {
- playerid = i;
- }
- }
- if(playerid != INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "SMS: Your vehicle alarm has been set off, Sender: Vehicle Alarm (Unknown)");
- }
- else return 1;
- return 1;
- }
- stock Message(playerid, color, const str[], {Float,_}:...)
- {
- static
- args,
- start,
- end,
- string[144];
- #emit LOAD.S.pri 8
- #emit STOR.pri args
- if (args > 8)
- {
- #emit ADDR.pri str
- #emit STOR.pri start
- for (end = start + (args - 8); end > start; end -= 4)
- {
- #emit LREF.pri end
- #emit PUSH.pri
- }
- #emit PUSH.S str
- #emit PUSH.C 144
- #emit PUSH.C string
- #emit LOAD.S.pri 8
- #emit ADD.C 4
- #emit PUSH.pri
- #emit SYSREQ.C format
- #emit LCTRL 5
- #emit SCTRL 4
- SendClientMessage(playerid, color, string);
- return 1;
- }
- SendClientMessage(playerid, color, str);
- return 1;
- }
- // Weapon:
- GetWeaponIndex(weapon_id, playerid = INVALID_PLAYER_ID)
- {
- switch(weapon_id)
- {
- case 1 .. 10, 45: return 0;
- case 11 .. 18, 41, 43: return 1;
- case 22 .. 24: return 2;
- case 25, 27 .. 34: return 3;
- default: {
- if (playerid == INVALID_PLAYER_ID) {
- adminWarn(4, "[DEBUG] An error occurred with GetWeaponIndex.");
- } else {
- adminWarn(1, sprintf("%s(ID: %i) may be WEAPON HACKING. (Weapon: %s)", ReturnName(playerid), playerid, ReturnWeaponName(weapon_id)));
- }
- }
- }
- return -1;
- }
- Server:ReturnSlotNames(playerid, weaponid)
- {
- new string[128];
- switch(weaponid){
- case 1 .. 18:
- {
- format(string, sizeof(string), "[Melee] You will now spawn with %s", ReturnWeaponName(weaponid));
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
- }
- case 22 .. 24:
- {
- format(string, sizeof(string), "[Secondary weapon] You will now spawn with %s", ReturnWeaponName(weaponid));
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
- }
- case 25, 27 .. 34:
- {
- format(string, sizeof(string), "[Primary weapon] You will now spawn with %s", ReturnWeaponName(weaponid));
- SendClientMessage(playerid, COLOR_DARKGREEN, string);
- }
- }
- return 1;
- }
- stock GivePlayerGun(playerid, weapon_id, ammo, given_by = WEAPON_SERVER_GIVEN)
- {
- new index;
-
- index = GetWeaponIndex(weapon_id);
-
- if(index == -1)
- return 0;
-
- if(Weapon[playerid][index][eWeaponID] > 0)
- RemovePlayerWeapon(playerid, Weapon[playerid][index][eWeaponID]);
-
- GivePlayerWeapon(playerid, weapon_id, ammo);
-
- PauseAntiCheat(playerid);
- PlayerData[playerid][pPauseWepAC] = gettime();
-
- Weapon[playerid][index][eWeaponID] = weapon_id;
- Weapon[playerid][index][eWeaponAmmo] = ammo;
-
- Weapon[playerid][index][eWeaponGivenBy] = given_by;
-
- if (given_by == WEAPON_AMMUNATION_GIVEN) Weapon[playerid][index][eWeaponCCW] = true;
- else Weapon[playerid][index][eWeaponCCW] = false;
- if(given_by == WEAPON_SERVER_GIVEN)
- Weapon[playerid][index][eWeaponSaveable] = false;
-
- else Weapon[playerid][index][eWeaponSaveable] = true;
-
- if(given_by != WEAPON_SERVER_GIVEN)
- ReturnSlotNames(playerid, weapon_id);
- SavePlayerWeapons(playerid);
- WriteLog("admin_logs/function_log.txt", "[%s] %s received a %s and %d Ammo (Givenby: %d)", ReturnDate(), ReturnName(playerid), ReturnWeaponName(weapon_id), ammo, given_by);
- return 1;
- }
- Server:SavePlayerWeapons(playerid)
- {
- new
- saveQuery[230];
-
- for(new i = 0; i < MAX_POSSIBLE_WEAPONS; i++)
- {
- if(!Weapon[playerid][i][eWeaponSaveable])
- continue;
-
- if(Weapon[playerid][i][eWeaponID] && Weapon[playerid][i][eWeaponAmmo] < 1)
- {
- mysql_format(m_Handle, saveQuery, sizeof(saveQuery), "DELETE FROM player_weapons WHERE weapon_id = %i AND player_dbid = %i", Weapon[playerid][i][eWeaponID], PlayerData[playerid][pSQLID]);
- mysql_pquery(m_Handle, saveQuery);
- }
-
- mysql_format(m_Handle, saveQuery, sizeof(saveQuery), "INSERT INTO player_weapons (player_dbid, weapon_id, ammo, given_by, ccw) VALUES (%i, %i, %i, %i, %i) ON DUPLICATE KEY UPDATE ammo = %i",
- PlayerData[playerid][pSQLID], Weapon[playerid][i][eWeaponID], Weapon[playerid][i][eWeaponAmmo], Weapon[playerid][i][eWeaponGivenBy], Weapon[playerid][i][eWeaponCCW], Weapon[playerid][i][eWeaponAmmo]);
-
- mysql_pquery(m_Handle, saveQuery);
- }
- return 1;
- }
- Server:OnLoadPlayerWeapons(playerid)
- {
- if(!cache_num_rows())
- {
- printf("[DEBUG][OnLoadPlayerWeapons] Player has no weapons. (%s)", ReturnName(playerid));
- return 1;
- }
- new
- rows, fields, weapon_id, ammo, given_by, bool:ccw;
-
- cache_get_row_count(rows), cache_get_field_count(fields);
-
- for(new i = 0; i < rows; i++)
- {
- cache_get_value_name_int(i, "weapon_id", weapon_id);
- cache_get_value_name_int(i, "ammo", ammo);
- cache_get_value_name_int(i, "given_by", given_by);
- cache_get_value_name_bool(i, "ccw", ccw);
- if(!weapon_id)
- continue;
-
- GivePlayerWeapon(playerid, weapon_id, ammo);
-
- Weapon[playerid][GetWeaponIndex(weapon_id)][eWeaponID] = weapon_id;
- Weapon[playerid][GetWeaponIndex(weapon_id)][eWeaponAmmo] = ammo;
- Weapon[playerid][GetWeaponIndex(weapon_id)][eWeaponGivenBy] = given_by;
- Weapon[playerid][GetWeaponIndex(weapon_id)][eWeaponSaveable] = true;
- Weapon[playerid][GetWeaponIndex(weapon_id)][eWeaponCCW] = ccw;
- if (ccw)
- Weapon[playerid][GetWeaponIndex(weapon_id)][eWeaponSerial] = PlayerData[playerid][pSQLID];
- else
- Weapon[playerid][GetWeaponIndex(weapon_id)][eWeaponSerial] = -1;
-
- printf("[DEBUG][OnLoadPlayerWeapons] %s was given %s and %d Ammo.", ReturnName(playerid), ReturnWeaponName(weapon_id), ammo);
- }
- return 1;
- }
- stock ReturnPlayerWeapons(playerid)
- {
- for(new i = 0; i < MAX_POSSIBLE_WEAPONS; i++) if(Weapon[playerid][i][eWeaponAmmo] > 0)
- GivePlayerWeapon(playerid, Weapon[playerid][i][eWeaponID], Weapon[playerid][i][eWeaponAmmo]);
-
- PlayerData[playerid][pPauseWepAC] = gettime();
- return 1;
- }
- stock ClearPlayerWeapons(playerid, type = 0)
- {
- //type 0 = all weapons;
- //type 1 = unsaveable weapons only;
-
- PauseAntiCheat(playerid);
-
- switch(type)
- {
- case 0:
- {
- for(new i = 0; i < MAX_POSSIBLE_WEAPONS; i++) if(Weapon[playerid][i][eWeaponAmmo] > 0)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid, ReturnWeaponsSlot(Weapon[playerid][i][eWeaponID])))
- RemovePlayerAttachedObject(playerid, ReturnWeaponsSlot(Weapon[playerid][i][eWeaponID]));
-
- new str[128];
-
- format(str, sizeof(str), "Lost %s and %d Ammo", ReturnWeaponName(Weapon[playerid][i][eWeaponID]), Weapon[playerid][i][eWeaponAmmo]);
- LogPlayerAction(playerid, str);
-
- TakePlayerWeapon(playerid, Weapon[playerid][i][eWeaponID]);
- }
-
- SavePlayerWeapons(playerid);
- }
- case 1:
- {
- for(new i = 0; i < MAX_POSSIBLE_WEAPONS; i++)
- {
- if(Weapon[playerid][i][eWeaponAmmo] > 0 && !Weapon[playerid][i][eWeaponSaveable])
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid, ReturnWeaponsSlot(Weapon[playerid][i][eWeaponID])))
- RemovePlayerAttachedObject(playerid, ReturnWeaponsSlot(Weapon[playerid][i][eWeaponID]));
-
- RemovePlayerWeapon(playerid, Weapon[playerid][i][eWeaponID]);
-
- Weapon[playerid][i][eWeaponAmmo] = 0;
- Weapon[playerid][i][eWeaponID] = 0;
- Weapon[playerid][i][eWeaponSaveable] = false;
- Weapon[playerid][i][eWeaponGivenBy] = 0;
- }
- }
-
- SavePlayerWeapons(playerid);
- }
- case 2:
- {
- for(new i = 0; i < MAX_POSSIBLE_WEAPONS; i++) if(Weapon[playerid][i][eWeaponAmmo] > 0)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid, ReturnWeaponsSlot(Weapon[playerid][i][eWeaponID])))
- RemovePlayerAttachedObject(playerid, ReturnWeaponsSlot(Weapon[playerid][i][eWeaponID]));
-
- new str[128];
-
- format(str, sizeof(str), "Lost %s and %d Ammo", ReturnWeaponName(Weapon[playerid][i][eWeaponID]), Weapon[playerid][i][eWeaponAmmo]);
- LogPlayerAction(playerid, str);
-
- TakePlayerWeapon(playerid, Weapon[playerid][i][eWeaponID]);
- }
-
- ResetPlayerWeapons(playerid);
- SavePlayerWeapons(playerid);
- }
- }
- return 1;
- }
- stock PlayerHasWeapon(playerid, weapon_id)
- {
- new
- index;
-
- index = GetWeaponIndex(weapon_id);
-
- if(Weapon[playerid][index][eWeaponID] != weapon_id)
- return 0;
-
- return 1;
- }
- stock TakePlayerWeapon(playerid, weapon_id)
- {
- new
- index,
- remove_query[128];
-
- PauseAntiCheat(playerid);
-
- index = GetWeaponIndex(weapon_id);
-
- if(!PlayerHasWeapon(playerid, weapon_id))
- return 0 && printf("[DEBUG][TakePlayerWeapon] An error occurred. Player doesn't have weapon.");
-
- if(Weapon[playerid][index][eWeaponSaveable])
- {
- mysql_format(m_Handle, remove_query, sizeof(remove_query), "DELETE FROM player_weapons WHERE player_dbid = %i AND weapon_id = %i", PlayerData[playerid][pSQLID], weapon_id);
- mysql_tquery(m_Handle, remove_query);
- }
-
- if(IsPlayerAttachedObjectSlotUsed(playerid, ReturnWeaponsSlot(Weapon[playerid][index][eWeaponID])))
- RemovePlayerAttachedObject(playerid, ReturnWeaponsSlot(Weapon[playerid][index][eWeaponID]));
-
- RemovePlayerWeapon(playerid, weapon_id);
-
- Weapon[playerid][index][eWeaponID] = 0;
- Weapon[playerid][index][eWeaponAmmo] = 0;
-
- Weapon[playerid][index][eWeaponGivenBy] = 0;
- Weapon[playerid][index][eWeaponSaveable] = false;
- return 1;
- }
- stock ReturnWeaponAmmo(playerid, weapon_id)
- {
- new
- index;
-
- index = GetWeaponIndex(weapon_id);
-
- if(!PlayerHasWeapon(playerid, weapon_id))
- return 0;
-
- return Weapon[playerid][index][eWeaponAmmo];
- }
- stock IsSaveableWeapon(playerid, weapon_id)
- {
- new
- index;
-
- index = GetWeaponIndex(weapon_id);
-
- if(!PlayerHasWeapon(playerid, weapon_id))
- return 0;
-
-
- if(Weapon[playerid][index][eWeaponSaveable])
- return 1;
-
- return 0;
- }
- stock ReturnWeaponReceiveType(playerid, weapon_id)
- {
- new
- index;
-
- index = GetWeaponIndex(weapon_id);
-
- if(!PlayerHasWeapon(playerid, weapon_id))
- return -1;
-
- return Weapon[playerid][index][eWeaponGivenBy];
- }
- stock ReturnWeaponReceiveString(playerid, weapon_id)
- {
- new
- index,
- showStr[128]
- ;
-
- index = GetWeaponIndex(weapon_id);
-
- switch(Weapon[playerid][index][eWeaponGivenBy])
- {
- case WEAPON_SERVER_GIVEN: showStr = "SYSTEM";
- case WEAPON_AMMUNATION_GIVEN: showStr = "AMMUNATION";
- case WEAPON_UNKNOWN_GIVEN: showStr = "24/7 or Property/Vehicle Placed";
- case -1: showStr = "INVALID / NONEXISTENT";
- default: format(showStr, 128, "Player DBID %d", Weapon[playerid][index][eWeaponGivenBy]);
- }
-
- return showStr;
- }
- stock ReturnWeaponIndex(playerid, index)
- {
- new
- showStr[60];
-
- switch(index)
- {
- case 0:
- {
- if(!Weapon[playerid][index][eWeaponID])
- showStr = "None";
-
- else format(showStr, 60, "%s", ReturnWeaponName(Weapon[playerid][index][eWeaponID]));
- }
- case 1:
- {
- if(!Weapon[playerid][index][eWeaponID])
- showStr = "None";
-
- else format(showStr, 60, "%s", ReturnWeaponName(Weapon[playerid][index][eWeaponID]));
- }
- case 2:
- {
- if(!Weapon[playerid][index][eWeaponID])
- showStr = "None";
-
- else format(showStr, 60, "%s", ReturnWeaponName(Weapon[playerid][index][eWeaponID]));
- }
- case 3:
- {
- if(!Weapon[playerid][index][eWeaponID])
- showStr = "None";
-
- else format(showStr, 60, "%s", ReturnWeaponName(Weapon[playerid][index][eWeaponID]));
- }
- }
- return showStr;
- }
- Server:UpdatePlayerWeapon(playerid, weapon_id)
- {
- new
- index,
- str[128]
- ;
-
- index = GetWeaponIndex(weapon_id);
-
- if(-- Weapon[playerid][index][eWeaponAmmo] < 1)
- {
- TakePlayerWeapon(playerid, weapon_id);
- SetPlayerArmedWeapon(playerid, 0);
-
- format(str, sizeof(str), "%s runs out of ammo and clicks.", ReturnWeaponName(weapon_id));
- cmd_amy(playerid, str);
- }
- return 1;
- }
- Server:UpdatePlayerAmmo(playerid, weapon_id, ammo)
- {
- new
- index;
-
- PauseAntiCheat(playerid);
-
- index = GetWeaponIndex(weapon_id);
-
- Weapon[playerid][index][eWeaponAmmo] = ammo;
- return 1;
- }
- //
- stock IsPlayerNearDroppedWeapon(playerid)
- {
- for(new i = 0; i < sizeof DropData; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, DropData[i][eWeaponPos][0], DropData[i][eWeaponPos][1], DropData[i][eWeaponPos][2]) && GetPlayerVirtualWorld(playerid) == DropData[i][eWeaponWorld])
- return i;
- }
- return -1;
- }
- stock ClearDroppedWeapon(index)
- {
- if(IsValidDynamicObject(DropData[index][eWeaponObject]))
- DestroyDynamicObject(DropData[index][eWeaponObject]);
-
- KillTimer(DropData[index][eWeaponTimer]);
-
- DropData[index][eDropWeaponAmmo] = 0;
- DropData[index][eDropWeaponID] = 0;
-
- DropData[index][eWeaponDropped] = false;
-
- for(new i = 0; i < 3; i++)
- DropData[index][eWeaponPos][i] = 0.0;
-
- DropData[index][eWeaponInterior] = 0;
- DropData[index][eWeaponWorld] = 0;
- printf("[DEBUG] Dropped weapon index %i has been cleared. (Previously dropped by: %s)", index, ReturnSQLName(DropData[index][eWeaponDroppedBy]));
- DropData[index][eWeaponDroppedBy] = 0;
-
- return 1;
- }
- stock ReturnDonatorLevel(playerid)
- {
- new
- levelStr[30];
-
- if(!PlayerData[playerid][pDonator])
- levelStr = "None";
-
- else format(levelStr, 30, "Level %d", PlayerData[playerid][pDonator]);
- return levelStr;
- }
- stock ReturnPlayerState(playerid)
- {
- new
- statestr[90];
- switch(GetPlayerState(playerid))
- {
- case 0: statestr = "Empty (Initializing)";
- case 1: statestr = "On foot";
- case 2: statestr = "Driver";
- case 3: statestr = "Passenger";
- case 7: statestr = "Wasted/Dead";
- case 8: statestr = "Spawned";
- case 9: statestr = "Spectating";
- default: statestr = "///";
- }
-
- return statestr;
- }
- stock ReturnAliveState(playerid)
- {
- new
- statestr[90];
-
- switch(GetPlayerTeam(playerid))
- {
- case STATE_ALIVE: statestr = "Alive";
- case STATE_WOUNDED:
- {
- if(!PlayerData[playerid][pInsideAmbulance])
- statestr = "Brutally wounded";
-
- else statestr = "Brutally wounded (Ambulance)";
- }
- case STATE_DEAD: statestr = "Death screen";
- }
- return statestr;
- }
- //Tutorial
- stock ClearLines(playerid, lines)
- {
- if(lines > 20)
- lines = 20;
-
- for(new i = 0; i < lines; i++)
- SendClientMessage(playerid, -1, " ");
-
- return 1;
- }
- Server:StartPlayerTutorial(playerid)
- {
- return SetTutorial(playerid);
- }
- Server:SetTutorial(playerid)
- {
- switch( PlayerTutorialStep[playerid] )
- {
- case 0:
- {
- ClearLines(playerid, 20);
-
- InterpolateCameraPos(playerid, 1642.006591, -2323.820068, 19.565198, 1517.335327, -2249.605712, 90.603210, 4000);
- InterpolateCameraLookAt(playerid, 1642.132080, -2328.817871, 19.492977, 1521.054931, -2252.214843, 88.515640, 4000);
-
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorialText", 6000, false, "ii", playerid, 0);
- }
- case 1:
- {
- ClearLines(playerid, 20);
-
- InterpolateCameraPos(playerid, 1517.336914, -2249.606689, 90.602317, 2236.985595, -1640.724365, 24.984189, 4000);
- InterpolateCameraLookAt(playerid, 1521.322387, -2251.805175, 88.532974, 2238.107666, -1645.189086, 23.032962, 4000);
-
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorialText", 3000, false, "ii", playerid, 1);
- }
- case 2:
- {
- ClearLines(playerid, 20);
-
- InterpolateCameraPos(playerid, 2236.984619, -1640.725219, 24.984283, 502.248626, -1273.707641, 33.276378, 4000);
- InterpolateCameraLookAt(playerid, 2238.046875, -1645.079101, 22.767311, 506.480499, -1275.640380, 31.444562, 4000);
-
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorialText", 4000, false, "ii", playerid, 2);
- }
- case 3:
- {
- ClearLines(playerid, 20);
-
- InterpolateCameraPos(playerid, 502.248657, -1273.707641, 33.276378, 1512.892822, -1699.998901, 32.607910, 4000);
- InterpolateCameraLookAt(playerid, 506.149597, -1276.139404, 31.309322, 1516.825317, -1697.567504, 30.704294, 4000);
-
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorialText", 4000, false, "ii", playerid, 3);
- }
- case 4:
- {
- ClearLines(playerid, 20);
-
- InterpolateCameraPos(playerid, 1512.890380, -1699.997802, 32.607910, 1158.465087, -1367.698974, 47.198616, 4000);
- InterpolateCameraLookAt(playerid, 1516.822143, -1697.642700, 30.609272, 1156.440673, -1371.921997, 45.447090, 4000);
-
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorialText", 4000, false, "ii", playerid, 4);
- }
- case 5:
- {
- InterpolateCameraPos(playerid, 1158.469482, -1367.703125, 47.198432, 1114.197021, -1453.435546, 20.567090, 4000);
- InterpolateCameraLookAt(playerid, 1156.358154, -1371.845214, 45.358615, 1111.008544, -1449.909057, 19.018510, 4000);
-
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorialText", 3000, false, "ii", playerid, 5);
- }
- case 6:
- {
- ClearLines(playerid, 20);
-
- InterpolateCameraPos(playerid, 1114.197753, -1453.434204, 20.567502, 2076.908203, -1834.856689, 25.048641, 4000);
- InterpolateCameraLookAt(playerid, 1110.964843, -1449.909790, 19.109148, 2080.290283, -1831.587402, 23.353630, 4000);
-
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorialText", 5000, false, "ii", playerid, 6);
- }
- case 7:
- {
- ClearLines(playerid, 20);
-
- InterpolateCameraPos(playerid, 2076.896240, -1834.851928, 25.048583, 1331.917846, -1269.041992, 27.682603, 4000);
- InterpolateCameraLookAt(playerid, 2080.365234, -1831.601074, 23.500003, 1336.289550, -1270.704345, 25.914978, 4000);
-
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorialText", 4000, false, "ii", playerid, 7);
- }
- case 8:
- {
- ClearLines(playerid, 20);
-
- InterpolateCameraPos(playerid, 1331.920654, -1269.044189, 27.682594, 2138.295166, -1211.320068, 37.867397, 4000);
- InterpolateCameraLookAt(playerid, 1336.011474, -1271.103027, 25.676076, 2140.643554, -1207.649902, 35.414718, 4000);
-
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorialText", 4000, false, "ii", playerid, 8);
- }
- case 9:
- {
- ClearLines(playerid, 20);
-
- InterpolateCameraPos(playerid, 2138.291992, -1211.320312, 37.867359, 2414.203857, -2020.619262, 165.761154, 4000);
- InterpolateCameraLookAt(playerid, 2140.738769, -1207.815185, 35.273612, 2411.617187, -2016.997314, 163.482727, 4000);
-
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorialText", 4000, false, "ii", playerid, 9);
- }
- case 10:
- {
- ClearLines(playerid, 20);
-
- InterpolateCameraPos(playerid, 2414.203857, -2020.619140, 165.761138, 1516.443847, -2267.449951, 89.827415, 4000);
- InterpolateCameraLookAt(playerid, 2411.346191, -2017.090209, 163.668334, 1520.704956, -2269.008789, 87.726799, 4000);
-
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorialText", 4000, false, "ii", playerid, 10);
- }
- case 11:
- {
- ClearLines(playerid, 15);
-
- InterpolateCameraPos(playerid, 1516.455078, -2267.446777, 89.828369, 1685.555786, -2325.102783, -1.520478, 4000);
- InterpolateCameraLookAt(playerid, 1520.600830, -2269.254638, 87.696586, 1685.531127, -2330.092529, -1.839066, 4000);
- SendClientMessage(playerid, COLOR_GOLD, "* The San Andreas '92 staff team thanks you for your time on our server.");
- SendClientMessage(playerid, COLOR_GOLD, "* Please wait while we create and load your new account data.");
-
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorialText", 5000, false, "ii", playerid, 11);
- }
- }
- return 1;
- }
- Server:SetTutorialText(playerid, partid)
- {
- switch( partid )
- {
- case 0: // Introduction;
- {
- SendClientMessage(playerid, -1, "* Please take a moment to read through the entirety of this part."); ClearLines(playerid, 1);
-
- SendClientMessage(playerid, COLOR_GRAD2, " San Andreas '92 was created to provide quality roleplay and to enjoy the 90s");
- SendClientMessage(playerid, COLOR_GRAD2, " Our server is based on the story mode of GTA SA"); ClearLines(playerid, 1);
-
- SendClientMessage(playerid, COLOR_GRAD2, " We hope you all have fun and enjoy yourselves as we roleplay the SP mode of GTA and live them 90s vibes.");
-
- SendClientMessage(playerid, COLOR_GRAD2, " This is an heavy rp server, we are strict on our rules.");
- SendClientMessage(playerid, COLOR_GRAD2, " Following rules is what ensures all players have a fair and fun time.");
-
- SendClientMessage(playerid, COLOR_GRAD2, " The next introduction sequences should last at least 6 seconds. Enjoy.");
-
- PlayerTutorialStep[playerid] = 1;
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorial", 8000, false, "i", playerid);
- }
- case 1: // Binco-Clothing;
- {
- SendClientMessage(playerid, COLOR_GRAD2, " When you spawn, you might want to change your skin. ");
- SendClientMessage(playerid, COLOR_GRAD2, " There are multiple clothing businesses that provide you with the option of a new skin.");
-
- SendClientMessage(playerid, COLOR_GRAD2, " When going to one, you simply use the \"/buy\" command to bring up the skin GUI.");
-
- PlayerTutorialStep[playerid] = 2;
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorial", 4000, false, "i", playerid);
- }
- case 2: //Dealership;
- {
- SendClientMessage(playerid, COLOR_GRAD2, "* Vehicles!");
- SendClientMessage(playerid, COLOR_GRAD2, " There are currently two (2) vehicle dealerships available to players.");
-
- ClearLines(playerid, 1);
- SendClientMessage(playerid, COLOR_GRAD2, " There's one in Commerce which you're looking at now and Rodeo!");
- SendClientMessage(playerid, COLOR_GRAD2, " The entire vehicle system is bundled up into one simple command: \"/vehicle\" for your convenience.");
-
- ClearLines(playerid, 1);
- SendClientMessage(playerid, COLOR_GRAD2, " Vehicles cost almost nothing and are affordable to any new player!");
-
- PlayerTutorialStep[playerid] = 3;
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorial", 5000, false, "i", playerid);
- }
- case 3: //Factions;
- {
- SendClientMessage(playerid, COLOR_GRAD2, "* Factions!");
- SendClientMessage(playerid, COLOR_GRAD2, " A faction could either be illegal or legal. There are multiple possibilities.");
- SendClientMessage(playerid, COLOR_GRAD2, " There are unofficial and official factions.");
-
- ClearLines(playerid, 1);
- SendClientMessage(playerid, COLOR_GRAD2, " Official factions are listed in the /factions menu.");
- SendClientMessage(playerid, COLOR_GRAD2, " If you're willing to start a faction, visit our factions forum at: sols-lsb.com!");
-
- PlayerTutorialStep[playerid] = 4;
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorial", 6000, false, "i", playerid);
- }
- case 4: //Mall;
- {
- SendClientMessage(playerid, COLOR_GRAD2, "* Mall!");
- SendClientMessage(playerid, COLOR_GRAD2, " The Market mall is a prime location for players to purchase items.");
- SendClientMessage(playerid, COLOR_GRAD2, " At the mall, you could buy player clothing items and place an advertisement.");
-
- ClearLines(playerid, 1);
- SendClientMessage(playerid, COLOR_GRAD2, " There are pages of clothing items players could choose from and buy!");
- SendClientMessage(playerid, COLOR_GRAD2, " These clothing items are kept and could be wore at any time!");
- ClearLines(playerid, 1);
- SendClientMessage(playerid, COLOR_GRAD2, " Advertisements are broadcasted to all players! You could look to sell, buy and more!");
-
- PlayerTutorialStep[playerid] = 5;
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorial", 4000, false, "i", playerid);
- }
- case 5: //Mall 2;
- {
- ClearLines(playerid, 1);
- SendClientMessage(playerid, COLOR_GRAD2, " This is where you could use \"/buy\" to buy new clothing items!");
-
- PlayerTutorialStep[playerid] = 6;
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorial", 5000, false, "i", playerid);
- }
- case 6: //Bizzness;
- {
- SendClientMessage(playerid, COLOR_GRAD2, "* Businesses!");
- SendClientMessage(playerid, COLOR_GRAD2, " There are a variaty of businesses that are available to players.");
- SendClientMessage(playerid, COLOR_GRAD2, " Not only can you buy from them but you could also purchase and own them!");
-
- ClearLines(playerid, 1);
- SendClientMessage(playerid, COLOR_GRAD2, " There are variaty of business types. You could own a: ammunation, general store, restaurant...");
- SendClientMessage(playerid, COLOR_GRAD2, " ...and a whole lot more! Business owners make revenue from players who enter their business. ");
- ClearLines(playerid, 1);
-
- SendClientMessage(playerid, COLOR_GRAD2, " Available commands inside a business differ from their type. The most used however stands to be \"/buy\". ");
- SendClientMessage(playerid, COLOR_GRAD2, " Inside a general store, you could purchase mask's, boombox's and more.");
-
- PlayerTutorialStep[playerid] = 7;
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorial", 7000, false, "i", playerid);
- }
- case 7: //Ammunation;
- {
- SendClientMessage(playerid, COLOR_GRAD2, "* Ammunation!");
- SendClientMessage(playerid, COLOR_GRAD2, " As mentioned, the ammunation is one of the business types available for players to own.");
- SendClientMessage(playerid, COLOR_GRAD2, " Players could legally purchase weapons inside ammunations.");
-
- ClearLines(playerid, 1);
- SendClientMessage(playerid, COLOR_GRAD2, " In order to purchase a weapon, you must possess a weapon's license.");
- SendClientMessage(playerid, COLOR_GRAD2, " The {8D8DFF}Los Santos Police Department{E2FFFF} distributes weapon's license to players who apply.");
-
- ClearLines(playerid, 1);
- SendClientMessage(playerid, COLOR_GRAD2, " It's fast, easy and legal!");
-
- PlayerTutorialStep[playerid] = 8;
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorial", 7000, false, "i", playerid);
- }
- case 8: //Rentals;
- {
- SendClientMessage(playerid, COLOR_GRAD2, "* Rentals!");
- SendClientMessage(playerid, COLOR_GRAD2, " When you spawn, you'll also need transportation.");
- SendClientMessage(playerid, COLOR_GRAD2, " Rental vehicles are all around the city, including the airport."); ClearLines(playerid, 1);
-
- SendClientMessage(playerid, COLOR_GRAD2, " Don't forget to return them or /unrentvehicle when you're finished with them!");
-
- PlayerTutorialStep[playerid] = 9;
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorial", 7000, false, "i", playerid);
- }
- case 9: //Property;
- {
- SendClientMessage(playerid, COLOR_GRAD2, "* Properties!");
- SendClientMessage(playerid, COLOR_GRAD2, " Our server has over 500 properties available for purchase by players!");
- SendClientMessage(playerid, COLOR_GRAD2, " They are all over the city and also affordable by newer players."); ClearLines(playerid, 1);
-
- SendClientMessage(playerid, COLOR_GRAD2, " Our property system has a variaty of features available to players.");
- SendClientMessage(playerid, COLOR_GRAD2, " You can check them out by viewing the Feature Documentation thread on it on our forums.");
-
- PlayerTutorialStep[playerid] = 10;
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorial", 4000, false, "i", playerid);
- return 1;
- }
- case 10: //Conclusion;
- {
- SendClientMessage(playerid, COLOR_GRAD2, "* Conclusion!");
- SendClientMessage(playerid, COLOR_GRAD2, " That concludes our short introduction to San Andreas '92 Singleplayer Roleplay.");
- ClearLines(playerid, 1);
-
- SendClientMessage(playerid, COLOR_GRAD2, " If you had or have any questions and concerns, you could use /helpme for a Helper to contact you.");
- SendClientMessage(playerid, COLOR_GRAD2, " The staff teams priority is to ensure you receive all the help you need and have a fun time.");
- ClearLines(playerid, 1);
-
- SendClientMessage(playerid, COLOR_GRAD2, " At the beginning, you could roam around our server and check out whats available.");
- SendClientMessage(playerid, COLOR_GRAD2, " If you get bored, lost, or just need anything in general, you're free to ask a staff member for direction!");
-
- ClearLines(playerid, 1);
- SendClientMessage(playerid, COLOR_GRAD2, " We truly hope you enjoy your time here.");
-
- PlayerTutorialStep[playerid] = 11;
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorial", 7000, false, "i", playerid);
- }
- case 11: //Create;
- {
- /*generateRandomRegQuestions(playerid);
- SendClientMessage(playerid, COLOR_YELLOW, "You will now be required to go through a short in-game quiz. If you quit, you will have to re-do the quiz.");
- ShowPlayerDialog(playerid, DIALOG_REG1, DIALOG_STYLE_INPUT, "Question 1", PlayerRegQuestion[playerid][playerRegQuestion][0], "Submit", "Exit");*/
- new
- query[240];
-
- ClearLines(playerid, 20);
-
- if(pLoggedIn[playerid] == true)
- {
- new
- str[128];
-
- format(str, sizeof(str), "%s was kicked for possibly exploiting account data.", ReturnName(playerid));
- adminWarn(1, str);
-
- printf("[DEBUG] %s was kicked with login error in registration.", ReturnName(playerid));
-
- SendClientMessage(playerid, COLOR_ADM, "-> An error occurred with your account. Contact a developer with this message.");
- KickEx(playerid);
-
- return 1;
- }
- mysql_format(m_Handle, query, sizeof(query), "INSERT INTO players (Name, Password, RegisterIP) VALUES('%e', sha1('%e'), '%e')", ReturnName(playerid, 1), PlayerPassword[playerid], ReturnIP(playerid));
- mysql_tquery(m_Handle, query, "SQL_OnAccountRegister", "i", playerid);
- }
- }
- return 1;
- }
- /*Server:StartTutorialFlash(playerid)
- {
- PlayerTutorialTimer[playerid] = SetTimerEx("TutorialFlash", 1000, true, "i", playerid);
- return 1;
- }*/
- /*Server:TutorialFlash(playerid)
- {
- switch(PlayerTutorialFlash[playerid])
- {
- case 0:
- {
- for(new i = 0; i < 3; i++)
- PlayerTextDrawShow(playerid, Skinmenu_PTD[playerid][i]);
-
- }
- case 1:
- {
- for(new i = 0; i < 3; i++)
- PlayerTextDrawHide(playerid, Skinmenu_PTD[playerid][i]);
- }
- case 2:
- {
- for(new i = 0; i < 3; i++)
- PlayerTextDrawShow(playerid, Skinmenu_PTD[playerid][i]);
- }
- case 3:
- {
- for(new i = 0; i < 3; i++)
- PlayerTextDrawHide(playerid, Skinmenu_PTD[playerid][i]);
-
- KillTimer(PlayerTutorialTimer[playerid]);
-
- PlayerTutorialStep[playerid] = 2;
- PlayerTutorialTimer[playerid] = SetTimerEx("SetTutorial", 4000, false, "i", playerid);
- }
- }
-
- PlayerTutorialFlash[playerid]++;
- return 1;
- }*/
- //Support
- stock OnSupportRequest(playerid, text[])
- {
- new
- id = -1;
-
- for(new i = 1; i < sizeof SupportData; i++) if(!SupportData[i][SupportExists])
- {
- id = i;
- break;
- }
-
- if(id == -1)
- return SendClientMessage(playerid, COLOR_ADM, "** An error occurred. Please /PM a Helper for support instead.");
-
- SupportData[id][SupportExists] = true;
- SupportData[id][SupportRequester] = PlayerData[playerid][pSQLID];
- format(SupportData[id][SupportReason], 128, "%s", text);
- SupportData[id][SupportTime] = gettime();
-
- foreach(new i : Player) if(PlayerData[i][pHelperDuty])
- {
- if(strlen(text) > 85)
- {
- Message(i, COLOR_ADM, "[SUPPORT: %i] {FFFFFF}%s said: %.85s", id, ReturnName(playerid), text);
- Message(i, COLOR_ADM, "[SUPPORT: %i] {FFFFFF}%s said: ...%s", id, ReturnName(playerid), text[85]);
- }
- else Message(i, COLOR_ADM, "[SUPPORT: %i] {FFFFFF}%s said: %s", id, ReturnName(playerid), text);
- }
-
-
- Message(playerid, COLOR_GOLD, "** Your Support Request was sent to online Helpers. You are the %s in queue.", ConvertNumber(id));
- Message(playerid, COLOR_GOLD, "** You said: %s", text);
- return 1;
- }
- stock ClearSupportRequest(id)
- {
- SupportData[id][SupportExists] = false;
- SupportData[id][SupportRequester] = 0;
-
- format(SupportData[id][SupportReason], 128, " ");
- SupportData[id][SupportTime] = 0;
- return 1;
- }
- stock ClearReport(id)
- {
- ReportData[id][reportExists] = false;
- ReportData[id][reportBy] = 0;
-
- ReportData[id][reportTime] = 0;
- format(ReportData[id][reportReason], 128, " ");
- return 1;
- }
- stock ClearPlayerOrder(playerid)
- {
- OrderedWeapon[playerid] = false;
- //OrderWeaponTime[playerid] = 0;
-
- WeaponOrderPrompt[playerid] = 0;
- WeaponOrderDoneTime[playerid] = 0;
- WeaponOrderPrice[playerid] = 0;
- WeaponOrderSpot[playerid] = 0;
-
- for(new i = 0; i < 2; i++)
- {
- WeaponOrdered[i][playerid] = 0;
- WeaponOrderedName[i][playerid] = " ";
- }
- WeaponOrderArea[playerid] = 0;
-
- KillTimer(WeaponOrderTimer[playerid]);
-
- if(IsValidDynamicObject(WeaponOrderObject[playerid]))
- DestroyDynamicObject(WeaponOrderObject[playerid]);
-
- if(IsValidDynamicArea(WeaponOrderArea[playerid]))
- DestroyDynamicArea(WeaponOrderObject[playerid]);
- return 1;
- }
- //
- stock SecondsToMinute(seconds)
- {
- new
- minutes = 0;
- if(seconds >= 60)
- {
- minutes++;
- seconds-= 60;
- }
-
- return minutes;
- }
- stock ConvertNumber(number)
- {
- new
- thstndrd[10],
- str[60]
- ;
-
- switch(number)
- {
- case 1,21,31: format(thstndrd, sizeof(thstndrd), "st");
- case 2,22: format(thstndrd, sizeof(thstndrd), "nd");
- case 3,23: format(thstndrd, sizeof(thstndrd), "rd");
- default: format(thstndrd, sizeof(thstndrd), "th");
- }
-
- format(str, 60, "%d%s", number, thstndrd);
- return str;
- }
- stock GetOffsetFromVehicle(Float:posX, Float:posY, Float:posZ, vehicleid, &Float:X, &Float:Y, &Float:Z)
- {
- new
- Float:pos[3], Float:rotZ, Float:off[2];
-
- GetVehiclePos(vehicleid, pos[0], pos[1], pos[2]);
- GetVehicleZAngle(vehicleid, rotZ);
-
- off[0] = posX - pos[0];
- off[1] = posY - pos[1];
-
- X = off[0]*floatcos(rotZ, degrees)+off[1]*floatsin(rotZ, degrees);
- Y = -off[0]*floatsin(rotZ, degrees)+off[1]*floatcos(rotZ, degrees);
- Z = posZ - pos[2];
- return 1;
- }
- /*stock GetOffsetFromVehicle(vehicle, &Float: x, &Float: y, &Float: z, &Float: rotz)
- {
- new Float:ofx, Float:ofy, Float:ofz, Float:ofaz, Float:finalx, Float:finaly, Float:px, Float:py, Float:pz, Float:roz;
- GetVehiclePos(vehicle, px, py, pz);
- GetVehicleZAngle(vehicle, roz);
- ofx = x-px;
- ofy = y-py;
- ofz = z-pz;
- ofaz = rz-roz;
- finalx = ofxfloatcos(roz, degrees)+ofyfloatsin(roz, degrees);
- finaly = -ofxfloatsin(roz, degrees)+ofyfloatcos(roz, degrees);
- offsetX = finalx;
- offsetY = finaly;
- offsetZ = ofz;
- offRotX = rx;
- offRotY = ry;
- offRotZ = ofaz;
- return 1;
- }*/
- //Trucker
- Server:UpdateTruckerEarnings(playerid)
- {
- new
- str[30];
- if(TruckerJobEarnings[playerid] < 1)
- {
- PlayerTextDrawColor(playerid, TruckerEarning_PTD[playerid][1], -1523963137);
-
- for(new i = 0; i < 2; i++)
- PlayerTextDrawShow(playerid, TruckerEarning_PTD[playerid][i]);
- }
- else
- {
- PlayerTextDrawColor(playerid, TruckerEarning_PTD[playerid][1], 8388863);
-
- format(str, sizeof(str), "$%s", MoneyFormat(TruckerJobEarnings[playerid]));
- PlayerTextDrawSetString(playerid, TruckerEarning_PTD[playerid][1], str);
-
- for(new i = 0; i < 2; i++)
- PlayerTextDrawShow(playerid, TruckerEarning_PTD[playerid][i]);
- }
- return 1;
- }
- CMD:truckerjob(playerid, params[])
- {
- if(PlayerData[playerid][pJob])
- return SendClientMessage(playerid, COLOR_ADM, "[ ! ] You need to quit your job first.");
-
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, -516.1585, -539.9711, 25.5234))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near the trucker job.");
-
- PlayerData[playerid][pJob] = TRUCKER_JOB;
- JobGetMessage(playerid);
- return 1;
- }
- CMD:renttruck(playerid, params[])
- {
- if(PlayerData[playerid][pJob] != TRUCKER_JOB && PlayerData[playerid][pSidejob] != TRUCKER_JOB)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't a Trucker. /truckerjob");
- if(StartedTruckerMission[playerid])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You're already doing the Trucker mission.");
-
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't driving a vehicle.");
-
- new
- vehicleid = GetPlayerVehicleID(playerid);
-
- if(!IsTruckerVehicle(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "** You aren't in a trucker mission vehicle.");
- if (!PlayerData[playerid][pDriversLicense])
- return SendClientMessage(playerid, COLOR_ADM, "** You do not have a drivers license.");
- if (TruckerVehicleRentedBy[vehicleid] == PlayerData[playerid][pSQLID])
- return SendClientMessage(playerid, COLOR_ADM, "** You're already renting a trucker vehicle.");
-
- if(TruckerVehicleRentedBy[playerid] != 0)
- return SendClientMessage(playerid, COLOR_ADM, "** Sorry, this has already been rented.");
- if(PlayerData[playerid][pMoney] < 2000)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: Insufficient Funds.");
-
- TruckerVehicleRentedBy[vehicleid] = PlayerData[playerid][pSQLID];
- SendClientMessage(playerid, COLOR_ADM, "** You're now renting this truck!");
- GiveMoney(playerid, -2000);
- return 1;
- }
- CMD:endmission(playerid, params[])
- {
- if(!StartedTruckerMission[playerid])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You haven't started the truckers mission to end.");
-
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't driving a vehicle.");
-
- new
- vehicleid = GetPlayerVehicleID(playerid),
- str[128]
- ;
-
- if(vehicleid != TruckerMissionVehicle[playerid])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You need to be in the vehicle you started with.");
-
- if(isnull(params))
- {
- format(str, sizeof(str), "** Are you sure you want to end? You'll make a total earning of $%s. Type \"/endmission yes\".", MoneyFormat(TruckerJobEarnings[playerid]));
- SendClientMessage(playerid, COLOR_ADM, str);
-
- if(IsTruckerVehicle(vehicleid))
- {
- SendClientMessage(playerid, COLOR_ADM, "** Since you're in a trucker vehicle, it'll respawn when you end.");
- }
-
- return 1;
- }
-
- if(!strcmp(params, "yes"))
- {
- if(IsTruckerVehicle(vehicleid))
- {
- if(SpawnedTrailer[playerid])
- {
- DestroyVehicle(TrailerID[playerid]);
-
- KillTimer(TrailerTimer[playerid]);
- SpawnedTrailer[playerid] = false;
- }
-
- CarEngine[vehicleid] = false;
- ToggleVehicleEngine(vehicleid, false);
-
- SetVehicleToRespawn(vehicleid);
-
- TruckerVehicleRentedBy[vehicleid] = 0;
- TruckerMissionVehicle[playerid] = 0;
- }
-
- GiveMoney(playerid, TruckerJobEarnings[playerid]);
-
- format(str, sizeof(str), "** You ended and received $%s from earnings.", MoneyFormat(TruckerJobEarnings[playerid]));
- SendClientMessage(playerid, COLOR_ADM, str);
-
- StartedTruckerMission[playerid] = false;
- KillTimer(TruckerJobTimer[playerid]);
-
- if(TruckerMissionStep[playerid] == 2)
- {
- TogglePlayerControllable(playerid, 1);
- KillTimer(TruckerJobDeliverTimer[playerid]);
- }
-
- for(new i = 0; i < 2; i++)
- PlayerTextDrawHide(playerid, TruckerEarning_PTD[playerid][i]);
-
- DisablePlayerCheckpoint(playerid);
- }
- return 1;
- }
- CMD:usetrailer(playerid, params[])
- {
- if(PlayerData[playerid][pJob] != TRUCKER_JOB && PlayerData[playerid][pSidejob] != TRUCKER_JOB)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't a Trucker. /truckerjob");
- if(!IsPlayerInRangeOfPoint(playerid, 8.0, 96.6237, -290.1677, 1.5781))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't near the trailer pickup site.");
-
- if(StartedTruckerMission[playerid])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You're already doing the Trucker mission. End it first.");
-
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't driving a vehicle.");
-
- if(!IsRoadTrain(GetPlayerVehicleID(playerid)))
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You don't have a Roadtrain.");
-
- if(SpawnedTrailer[playerid])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You already spawned a trailer.");
-
- TrailerAttachTime[playerid] = 0;
-
- SpawnedTrailer[playerid] = true;
- TruckerMissionVehicle[playerid] = GetPlayerVehicleID(playerid);
-
- TrailerID[playerid] = CreateVehicle(435, 59.7877, -246.2915, 1.5781, 358, 0, 0, -1);
- TrailerTimer[playerid] = SetTimerEx("UpdateTrailerStatus", 1000, true, "ii", playerid, TrailerID[playerid]);
-
- SendClientMessage(playerid, COLOR_ADM, "** Your trailer has spawned. You have (60) seconds to attach it to your vehicle.");
- DisablePlayerCheckpoint(playerid);
- return 1;
- }
- CMD:truckermission(playerid, params[])
- {
- if(PlayerData[playerid][pJob] != TRUCKER_JOB && PlayerData[playerid][pSidejob] != TRUCKER_JOB)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't a Trucker. /truckerjob");
-
- if(StartedTruckerMission[playerid])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You're already doing the Trucker mission.");
-
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't driving a vehicle.");
-
- new
- vehicleid = GetPlayerVehicleID(playerid);
-
- if(!IsTruckerVehicle(vehicleid) && !IsRoadTrain(vehicleid) && !IsSadler(vehicleid))
- return SendClientMessage(playerid, COLOR_ADM, "** You need to be in a Roadtrain or Sadler to start.");
-
- if(IsTruckerVehicle(vehicleid) && TruckerVehicleRentedBy[vehicleid] != PlayerData[playerid][pSQLID])
- {
- SendClientMessage(playerid, COLOR_ADM, "** You haven't rented this yet. Use /renttruck!");
- return 1;
- }
-
- if(IsRoadTrain(vehicleid))
- {
- if(!IsTrailerAttachedToVehicle(vehicleid))
- {
- SetPlayerCheckpoint(playerid, 96.6237, -290.1677, 1.5781, 1.0);
-
- SendClientMessage(playerid, COLOR_ADM, "** It looks like you don't have a trailer for your Roadtrain.");
- SendClientMessage(playerid, COLOR_ADM, "** Head to the Blueberry factories and grab a trailer.");
-
- if(CarEngine[vehicleid] != 1)
- {
- CarEngine[vehicleid] = true;
- ToggleVehicleEngine(vehicleid, true);
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s started the engine of the %s.", ReturnName(playerid, 0), ReturnVehicleName(vehicleid));
- GameTextForPlayer(playerid, "~g~ENGINE ON", 2000, 4);
- }
- return 1;
- }
- else
- {
- new
- vehicle;
-
- vehicle = GetVehicleTrailer(vehicleid);
-
- if(GetVehicleModel(vehicle) != 435)
- {
- SetPlayerCheckpoint(playerid, 96.6237, -290.1677, 1.5781, 1.0);
-
- SendClientMessage(playerid, COLOR_ADM, "** You have the wrong trailer on your Roadtrain.");
- SendClientMessage(playerid, COLOR_ADM, "** Head to the Blueberry factories and grab a trailer.");
-
- if(CarEngine[vehicleid] != 1)
- {
- CarEngine[vehicleid] = true;
- ToggleVehicleEngine(vehicleid, true);
-
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s started the engine of the %s.", ReturnName(playerid, 0), ReturnVehicleName(vehicleid));
- GameTextForPlayer(playerid, "~g~ENGINE ON", 2000, 4);
- }
- }
- else
- {
- TrailerTimer[playerid] = SetTimerEx("UpdateTrailerDetails", 1000, true, "ii", playerid, TrailerID[playerid]);
- }
- }
- }
-
- if(IsTruckerVehicle(vehicleid))
- {
- if(!CarEngine[vehicleid])
- {
- CarEngine[vehicleid] = true;
- ToggleVehicleEngine(vehicleid, true);
- SendNearbyMessage(playerid, 20.0, COLOR_EMOTE, "* %s started the engine of the %s.", ReturnName(playerid, 0), ReturnVehicleName(vehicleid));
- GameTextForPlayer(playerid, "~g~ENGINE ON", 2000, 4);
- }
- }
-
- StartedTruckerMission[playerid] = true;
- TruckerMissionVehicle[playerid] = vehicleid;
-
- TruckerMissionStep[playerid] = 1;
- // 1 - delivering;
- // 2 - on scene, go out
-
- TruckerMissionPoint[playerid] = GetRandomBusiness();
- PlayerTextDrawSetString(playerid, TruckerEarning_PTD[playerid][1], "$0");
-
- TruckerJobEarnings[playerid] = 0;
- SetPlayerCheckpoint(playerid, BusinessData[TruckerMissionPoint[playerid]][businessExt][0], BusinessData[TruckerMissionPoint[playerid]][businessExt][1], BusinessData[TruckerMissionPoint[playerid]][businessExt][2], 1.0);
-
- TruckerJobTimer[playerid] = SetTimerEx("TruckerJobMessage", 3000, false, "i", playerid);
-
- for(new i = 0; i < 2; i++)
- PlayerTextDrawShow(playerid, TruckerJob_PTD[playerid][i]);
-
- SendClientMessage(playerid, COLOR_ADM, "** You started a Trucker mission.");
- SendClientMessage(playerid, COLOR_WHITE, "Objective: Follow your GPS to the business coordinates provided.");
- SendClientMessage(playerid, COLOR_WHITE, "Objective: Once your there, you need to get out and deliver the products.");
- return 1;
- }
- /*CMD:gps(playerid, params[]) {
- if (!pLoggedIn[playerid])
- return true;
- return ShowPlayerDialog(playerid, DIALOG_GPS1, DIALOG_STYLE_LIST, "GPS", "24/7\nDealerships\nBanks\nJobs", "Select", "Exit");
- }*/
- Server:TruckerJobMessage(playerid)
- {
- for(new i = 0; i < 2; i++)
- PlayerTextDrawHide(playerid, TruckerJob_PTD[playerid][i]);
- for(new i = 0; i < 2; i++)
- PlayerTextDrawShow(playerid, TruckerEarning_PTD[playerid][i]);
-
- TruckerJobTimer[playerid] = SetTimerEx("UpdateTruckerEarnings", 1000, true, "i", playerid);
- return 1;
- }
- Server:OnTruckerDelivery(playerid)
- {
- new
- str[90];
-
- TruckerJobDeliveryCount[playerid]++;
-
- format(str, sizeof(str), "(%d/30)", TruckerJobDeliveryCount[playerid]);
- GameTextForPlayer(playerid, str, 3000, 6);
-
- format(str, sizeof(str), "* %s is delivering.", ReturnName(playerid, 0));
- SetPlayerChatBubble(playerid, str, COLOR_EMOTE, 10.0, 2000);
-
- if(TruckerJobDeliveryCount[playerid] >= 30)
- {
- KillTimer(TruckerJobDeliverTimer[playerid]);
- TogglePlayerControllable(playerid, 1);
-
- for(new i = 0; i < 2; i++)
- PlayerTextDrawShow(playerid, TruckerWarning_PTD[playerid][i]);
-
- TruckerJobExitTimer[playerid] = SetTimerEx("OnExitTrucker", 1000, true, "i", playerid);
- TruckerJobExitCount[playerid] = 60;
-
- format(str, sizeof(str), "* %s finishes their delivery.", ReturnName(playerid, 0));
- SetPlayerChatBubble(playerid, str, COLOR_EMOTE, 10.0, 2000);
-
- TruckerMissionStep[playerid] = 3;
- SendClientMessage(playerid, COLOR_ADM, "** You finished your delivery. Return back to your truck.");
- }
-
- return 1;
- }
- Server:UpdateTrailerStatus(playerid, trailerid)
- {
- new
- str[128];
-
- TrailerAttachTime[playerid]++;
-
- format(str, sizeof(str), "~r~(%d/60)", TrailerAttachTime[playerid]);
- GameTextForPlayer(playerid, str, 3000, 6);
- if(TrailerAttachTime[playerid] >= 60)
- {
- KillTimer(TrailerTimer[playerid]);
-
- TrailerAttachTime[playerid] = 0;
-
- SpawnedTrailer[playerid] = false;
- TruckerMissionVehicle[playerid] = 0;
-
- DestroyVehicle(TrailerID[playerid]);
- return 1;
- }
-
- if(IsTrailerAttachedToVehicle(TruckerMissionVehicle[playerid]))
- {
- new
- trailer_id;
-
- trailer_id = GetVehicleTrailer(TruckerMissionVehicle[playerid]);
-
- if(trailer_id == trailerid)
- {
- GameTextForPlayer(playerid, "You can now~n~~r~/truckermission!", 3000, 4);
- TrailerAttachTime[playerid] = 0;
-
- KillTimer(TrailerTimer[playerid]);
- }
- }
- return 1;
- }
- Server:UpdateTrailerDetails(playerid, trailerid)
- {
- new
- vehicleid = GetPlayerVehicleID(playerid),
- othervehicle = GetVehicleTrailer(TruckerMissionVehicle[playerid]);
- if(!IsTrailerAttachedToVehicle(TruckerMissionVehicle[playerid]) || othervehicle != trailerid)
- {
- new
- str[128];
-
- TrailerAttachTime[playerid]++;
-
- format(str, sizeof(str), "Return your trailer!~n~~b~(%d/60)", TrailerAttachTime[playerid]);
- GameTextForPlayer(playerid, str, 3000, 3);
-
- if(TrailerAttachTime[playerid] >= 60)
- {
- if(IsTruckerVehicle(vehicleid))
- {
- if(IsRoadTrain(vehicleid))
- {
- DestroyVehicle(TrailerID[playerid]);
-
- KillTimer(TrailerTimer[playerid]);
- SpawnedTrailer[playerid] = false;
- }
-
- CarEngine[vehicleid] = false;
- ToggleVehicleEngine(vehicleid, false);
-
- SetVehicleToRespawn(vehicleid);
-
- TruckerVehicleRentedBy[vehicleid] = 0;
- TruckerMissionVehicle[playerid] = 0;
- }
-
- GiveMoney(playerid, TruckerJobEarnings[playerid]);
-
- format(str, sizeof(str), "** We ended your mission with your $%s earnings.", MoneyFormat(TruckerJobEarnings[playerid]));
- SendClientMessage(playerid, COLOR_ADM, str);
-
- StartedTruckerMission[playerid] = false;
-
- KillTimer(TruckerJobTimer[playerid]);
- KillTimer(TrailerTimer[playerid]);
-
- if(TruckerMissionStep[playerid] == 2)
- {
- TogglePlayerControllable(playerid, 1);
- KillTimer(TruckerJobDeliverTimer[playerid]);
- }
-
- for(new i = 0; i < 2; i++)
- PlayerTextDrawHide(playerid, TruckerEarning_PTD[playerid][i]);
-
- DisablePlayerCheckpoint(playerid);
- return 1;
- }
- }
- else TrailerAttachTime[playerid] = 0;
- return 1;
- }
- stock RewardTruckerMission(playerid)
- {
- new
- str[128],
- tip_amount;
-
- TruckerMissionStep[playerid] = 1;
-
- if(IsSadler(GetPlayerVehicleID(playerid)))
- TruckerJobEarnings[playerid] += random(200)+500;
-
- else if(IsRoadTrain(GetPlayerVehicleID(playerid)))
- TruckerJobEarnings[playerid] += random(1000)+500;
-
- tip_amount = random(100)+100;
-
- switch(random(20))
- {
- case 2, 4, 6, 8, 10, 12:
- {
- format(str, sizeof(str), "* %s's generous owner gave you a $%s tip for the distribution.", BusinessData[TruckerMissionPoint[playerid]][businessName], MoneyFormat(tip_amount));
- SendClientMessage(playerid, COLOR_EMOTE, str);
-
- TruckerJobEarnings[playerid]+= tip_amount;
- }
- }
-
- TruckerMissionPoint[playerid] = GetRandomBusiness();
-
- SetPlayerCheckpoint(playerid, BusinessData[TruckerMissionPoint[playerid]][businessExt][0], BusinessData[TruckerMissionPoint[playerid]][businessExt][1], BusinessData[TruckerMissionPoint[playerid]][businessExt][2], 1.0);
- SendClientMessage(playerid, COLOR_ADM, "** Your objective has been updated. Follow to the new coordinates.");
- return 1;
- }
- stock EndTruckerMission(playerid)
- {
- StartedTruckerMission[playerid] = false;
-
- TruckerJobEarnings[playerid] = 0;
- TruckerJobDeliveryCount[playerid] = 0;
- if(SpawnedTrailer[playerid])
- {
- SpawnedTrailer[playerid] = false;
- DestroyVehicle(TrailerID[playerid]);
- }
-
- if(IsTruckerVehicle(TruckerMissionVehicle[playerid]))
- {
- SetVehicleToRespawn(TruckerMissionVehicle[playerid]);
- TruckerMissionVehicle[playerid] = 0;
- }
-
- if(TruckerMissionStep[playerid] == 2)
- {
- TogglePlayerControllable(playerid, 1);
- KillTimer(TruckerJobDeliverTimer[playerid]);
- }
-
- for(new i = 0; i < 2; i++)
- PlayerTextDrawHide(playerid, TruckerEarning_PTD[playerid][i]);
-
- for(new i = 0; i < 2; i++)
- PlayerTextDrawHide(playerid, TruckerWarning_PTD[playerid][i]);
-
- DisablePlayerCheckpoint(playerid);
-
- TruckerMissionPoint[playerid] = 0;
- TruckerMissionStep[playerid] = 0;
-
- KillTimer(TrailerTimer[playerid]);
- KillTimer(TruckerJobTimer[playerid]);
- return 1;
- }
- Server:OnExitTrucker(playerid)
- {
- new
- count_str[90];
-
- TruckerJobExitCount[playerid]--;
-
- format(count_str, 90, "TIME LEFT: %i Seconds", TruckerJobExitCount[playerid]);
- PlayerTextDrawSetString(playerid, TruckerWarning_PTD[playerid][1], count_str);
-
- for(new i = 0; i < 2; i++)
- PlayerTextDrawShow(playerid, TruckerWarning_PTD[playerid][i]);
-
- if(TruckerJobExitCount[playerid] <= 1)
- {
- for(new i = 0; i < 2; i++)
- PlayerTextDrawHide(playerid, TruckerWarning_PTD[playerid][i]);
-
- TruckerJobExitCount[playerid] = 0;
- KillTimer(TruckerJobExitTimer[playerid]);
-
- if(TruckerJobEarnings[playerid] != 0)
- {
- format(count_str, sizeof(count_str), "You got your $%s earnings and stopped.", MoneyFormat(TruckerJobEarnings[playerid]));
- SendClientMessage(playerid, COLOR_ADM, count_str);
-
- GiveMoney(playerid, TruckerJobEarnings[playerid]);
- }
- EndTruckerMission(playerid);
- }
- return 1;
- }
- stock GetRandomBusiness()
- {
- new
- value;
-
- for(new i = 1; i < sizeof(BusinessData); i++)
- {
- if(!BusinessData[i][businessID])
- continue;
-
- value = random(i);
- }
- if(value == 0 || value > MAX_BUSINESS) return GetRandomBusiness();
- return value;
- }
- //
- stock ShowPlayerFines(receiver, viewing)
- {
- new
- caption[90], primary_str[800], sub_str[128], hasFines = 0;
-
- CheckingPlayerFine[receiver] = viewing;
-
- for (new i = 0; i < 30; i++)
- {
- if(!Fines[viewing][i][Fine_ID])
- continue;
-
- hasFines++;
-
- format(sub_str, sizeof(sub_str), "{FFFFFF}Fine {ADC3E7}[%i]{FFFFFF} $%s by '%s'\n", Fines[viewing][i][Fine_ID], MoneyFormat(Fines[viewing][i][Fine_Amount]), Fines[viewing][i][Fine_Issuer]);
- strcat(primary_str, sub_str);
- }
-
- format(caption, sizeof(caption), "{ADC3E7}%s' fines:", ReturnName(viewing, 1), hasFines);
-
- if(!hasFines)
- {
- strcat(primary_str, "There are no fines to list.\n");
- if(IsPoliceFaction(receiver) && PlayerData[receiver][pLAWduty]) strcat(primary_str, "{FFFF00}**Click here to clear a fine.\n");
- return ShowPlayerDialog(receiver, DIALOG_FINES, DIALOG_STYLE_LIST, caption, primary_str, ">>", "<<");
- }
-
- if(IsPoliceFaction(receiver) && PlayerData[receiver][pLAWduty]) strcat(primary_str, "{FFFF00}**Click here to clear a fine.\n");
- ShowPlayerDialog(receiver, DIALOG_FINES, DIALOG_STYLE_LIST, caption, primary_str, "Select", "<<");
- return 1;
- }
- Server:OnDeletePlayerFine(playerid, id)
- {
- new
- str[128];
-
- format(str, sizeof(str), "** HQ: %s %s removed Fine #%s!", ReturnRank(playerid), ReturnName(playerid, 0), MoneyFormat(id));
- SendLawMessage(COLOR_COP, str);
-
- foreach(new i : Player)
- {
- for(new f = 0; f < sizeof(Fines); f++)
- {
- if(Fines[i][f][Fine_ID] == id)
- {
- format(str, sizeof(str), "[ ! ] Your fine (Fine #%s) was removed by %s %s!", MoneyFormat(id), ReturnRank(playerid), ReturnName(playerid, 0));
- SendClientMessage(i, 0x105289FF, str);
-
- Fines[i][f][Fine_ID] = 0;
- Fines[i][f][Fine_Amount] = 0;
- }
- }
- }
-
- ShowPlayerDialog(playerid, DIALOG_USE, DIALOG_STYLE_MSGBOX, "Fines:", "{105289}You successfully removed a fine.", ">>", "<<");
- return 1;
- }
- stock CountVehicleFines(vehicleid)
- {
- new
- fineCount = 0;
-
- for(new i = 0; i < 30; i++) if(VehicleFines[vehicleid][i][Fine_ID])
- fineCount++;
-
- return fineCount;
- }
- stock CountVehicleFinesTotal(vehicleid)
- {
- new
- totalCount;
-
- for(new i = 0; i < 30; i++) if(VehicleFines[vehicleid][i][Fine_ID])
- totalCount+= VehicleFines[vehicleid][i][Fine_Amount];
-
- return totalCount;
- }
- stock ClearVehicleFines(vehicleid)
- {
- new
- clearQuery[128];
-
- mysql_format(m_Handle, clearQuery, sizeof(clearQuery), "DELETE FROM vehicle_fines WHERE vehicle_dbid = %i", CarData[vehicleid][carID]);
- mysql_tquery(m_Handle, clearQuery, "OnVehicleFinesCleared", "i", vehicleid);
- return 1;
- }
- Server:OnVehicleFinesCleared(vehicleid)
- {
- for(new i = 0; i < 30; i++)
- {
- if(VehicleFines[vehicleid][i][Fine_ID])
- {
- VehicleFines[vehicleid][i][Fine_ID] = 0;
- VehicleFines[vehicleid][i][Fine_Amount] = 0;
- }
- }
- return printf("[DEBUG] Vehicle DBID (%d) fines were cleared.", vehicleid);
- }
- //Taxi:
- CMD:taxijob(playerid, params[])
- {
- if(PlayerData[playerid][pJob])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You already have a job.");
-
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't in a vehicle.");
-
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 420 && GetVehicleModel(GetPlayerVehicleID(playerid)) != 438)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't in a Taxi.");
-
- PlayerData[playerid][pJob] = TAXI_JOB;
- JobGetMessage(playerid);
- return 1;
- }
- CMD:taxi(playerid, params[])
- {
- if(PlayerData[playerid][pJob] != TAXI_JOB && PlayerData[playerid][pSidejob] != TAXI_JOB)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't a taxi driver. Use /taxijob inside a taxi. ");
-
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You aren't in a vehicle.");
-
- new
- str_a[30], str_b[30], str[128], vehicleid = GetPlayerVehicleID(playerid);
-
- if(sscanf(params, "s[30]S()[30]", str_a, str_b))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE: /taxi [params]");
- SendClientMessage(playerid, COLOR_ADM, "-> \"start\" - starts the taxi fare if someones in your taxi.");
- SendClientMessage(playerid, COLOR_ADM, "-> \"stop\" - stop the taxi fare.");
- SendClientMessage(playerid, COLOR_ADM, "-> \"fare\" - sets the price of your fare also displays current fare.");
- SendClientMessage(playerid, COLOR_ADM, "-> \"duty\" - go on taxi duty with a yellow name.");
- return 1;
- }
-
- if(!strcmp(str_a, "start"))
- {
- new anyPlayers = 0;
-
- if(!StartedTaxiJob[playerid])
- return SendClientMessage(playerid, COLOR_YELLOW, "-> You need to go on taxi duty first.");
-
- if(TaxiFairStarted[playerid])
- return SendClientMessage(playerid, COLOR_YELLOW, "-> Your fare is active. Stop it first.");
-
- foreach (new i : Player)
- {
- if(i == playerid)
- continue;
-
- if(IsPlayerInVehicle(i, vehicleid))
- {
- anyPlayers++;
-
- InTaxiRide[i] = 1;
- TaxiDriver[i] = PlayerData[playerid][pSQLID];
-
- TaxiDuration[i] = gettime();
- TaxiPrice[i] = 0;
-
- for(new c = 0; c < 5; c++)
- PlayerTextDrawShow(i, TaxiFair_PTD[playerid][c]);
-
- TaxiDurationTimer[i] = SetTimerEx("UpdateTaxiDuration", 1000, true, "i", i);
- TaxiFairTimer[i] = SetTimerEx("UpdateTaxiFair", 3000, true, "i",i);
-
- format(str, sizeof(str), "-> Taxi Driver %s started your ride. (Fare: $%d)", ReturnName(playerid, 0), TaxiFair[playerid]);
- SendClientMessage(i, COLOR_YELLOW, str);
- }
- }
-
- if(!anyPlayers)
- return SendClientMessage(playerid, COLOR_YELLOW, "-> There's nobody in your taxi. You can't start a fare.");
- TaxiDriverTimer[playerid] = SetTimerEx("OnTaxiFair", 1000, true, "i", playerid);
-
- TaxiFairStarted[playerid] = 1;
- TaxiDuration[playerid] = gettime();
- TaxiTotalFair[playerid] = 0;
-
- for(new f = 0; f < 5; f++)
- PlayerTextDrawShow(playerid, TaxiFair_PTD[playerid][f]);
- }
- else if(!strcmp(str_a, "stop"))
- {
- if(!TaxiFairStarted[playerid])
- return SendClientMessage(playerid, COLOR_YELLOW, "-> You haven't started a fare yet.");
-
- foreach(new i : Player)
- {
- if(InTaxiRide[i] && TaxiDriver[i] == PlayerData[playerid][pSQLID])
- {
- EndTaxiFair(i);
- SendClientMessage(i, COLOR_YELLOW, "-> Your taxi driver ended the fare.");
- }
- }
-
- EndTaxiFairDriver(playerid);
- SendClientMessage(playerid, COLOR_YELLOW, "-> You ended the fare.");
- }
- else if(!strcmp(str_a, "fare"))
- {
- new
- price;
-
- if(sscanf(str_b, "i", price))
- {
- SendClientMessage(playerid, COLOR_ADM, "USAGE: /taxi fare [price $10-$25]");
-
- format(str, sizeof(str), "[ ! ] Current fare: $%d", TaxiFair[playerid]);
- SendClientMessage(playerid, COLOR_ADM, str);
- return 1;
- }
-
- if(price < 10 || price > 25)
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: The price has to be between $10 - $25.");
-
- if(TaxiFairStarted[playerid])
- return SendClientMessage(playerid, COLOR_ADM, "SERVER: You end your active fare first.");
-
- TaxiFair[playerid] = price;
-
- format(str, sizeof(str), "-> You set your taxi's fair to: $%d", price);
- SendClientMessage(playerid, COLOR_YELLOW, str);
- }
- else if(!strcmp(str_a, "duty"))
- {
- if(StartedTaxiJob[playerid])
- {
- if(!PlayerData[playerid][pHelperDuty] && !PlayerData[playerid][pAdminDuty])
- SetPlayerColor(playerid, COLOR_WHITE);
-
- StartedTaxiJob[playerid] = false;
- SendClientMessage(playerid, COLOR_YELLOW, "-> You went off taxi duty.");
- }
- else
- {
- if(!PlayerData[playerid][pHelperDuty] && !PlayerData[playerid][pAdminDuty])
- SetPlayerColor(playerid, COLOR_YELLOW);
-
- StartedTaxiJob[playerid] = true;
-
- format(str, sizeof(str), "-> You went on taxi duty. (Fare: $%d)", TaxiFair[playerid]);
- SendClientMessage(playerid, COLOR_YELLOW, str);
- }
- }
- else return SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Invalid Parameter.");
- return 1;
- }
- Server:UpdateTaxiDuration(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid))
- EndTaxiFair(playerid);
-
- else
- {
- new
- updateStr[90];
-
- format(updateStr, 90, "%i Seconds", gettime() - TaxiDuration[playerid]);
- PlayerTextDrawSetString(playerid, TaxiFair_PTD[playerid][2], updateStr);
-
- format(updateStr, 90, "$%s", MoneyFormat(TaxiPrice[playerid]));
- PlayerTextDrawSetString(playerid, TaxiFair_PTD[playerid][4], updateStr);
-
- for(new i = 0; i < 5; i++)
- PlayerTextDrawShow(playerid, TaxiFair_PTD[playerid][i]);
- }
- return 1;
- }
- Server:UpdateTaxiFair(playerid)
- {
- new
- driver;
-
- foreach(new i : Player) if(PlayerData[i][pSQLID] == TaxiDriver[playerid])
- driver = i;
-
- TaxiPrice[playerid]+= TaxiFair[driver];
- TaxiTotalFair[driver]+= TaxiFair[driver];
- return 1;
- }
- Server:OnTaxiFair(playerid)
- {
- new
- updateStr[90],
- hasRiders;
-
- foreach(new i : Player)
- {
- if(i == playerid)
- continue;
-
- if(IsPlayerInVehicle(i, GetPlayerVehicleID(playerid)) && TaxiDriver[i] == PlayerData[playerid][pSQLID])
- {
- hasRiders = true;
- }
- }
- if(!hasRiders)
- {
- EndTaxiFairDriver(playerid);
- return 1;
- }
-
- if(!IsPlayerInAnyVehicle(playerid))
- {
- foreach(new i : Player) if(TaxiDriver[i] == PlayerData[playerid][pSQLID])
- {
- SendClientMessage(i, COLOR_YELLOW, "-> Your taxi driver left their vehicle. The fare ended.");
- EndTaxiFair(i);
- }
-
- SendClientMessage(playerid, COLOR_YELLOW, "-> You ended your fares by exiting.");
- EndTaxiFairDriver(playerid);
- return 1;
- }
-
- format(updateStr, 90, "%i Seconds", gettime() - TaxiDuration[playerid]);
- PlayerTextDrawSetString(playerid, TaxiFair_PTD[playerid][2], updateStr);
-
- format(updateStr, 90, "$%s", MoneyFormat(TaxiTotalFair[playerid]));
- PlayerTextDrawSetString(playerid, TaxiFair_PTD[playerid][4], updateStr);
- for(new i = 0; i < 5; i++)
- PlayerTextDrawShow(playerid, TaxiFair_PTD[playerid][i]);
- return 1;
- }
- stock EndTaxiFairDriver(playerid)
- {
- for(new i = 0; i < 5; i++)
- PlayerTextDrawHide(playerid, TaxiFair_PTD[playerid][i]);
-
- KillTimer(TaxiDriverTimer[playerid]);
-
- TaxiFairStarted[playerid] = 0;
- TaxiDuration[playerid] = 0;
- TaxiTotalFair[playerid] = 0;
- return 1;
- }
- stock EndTaxiFair(playerid)
- {
- for(new i = 0; i < 5; i++)
- PlayerTextDrawHide(playerid, TaxiFair_PTD[playerid][i]);
- InTaxiRide[playerid] = 0;
- TaxiDuration[playerid] = 0;
-
- new foundDriver;
-
- foreach(new i : Player)
- {
- if(PlayerData[i][pSQLID] == TaxiDriver[playerid])
- {
- foundDriver = 1;
- GiveMoney(i, TaxiPrice[playerid]);
- GiveMoney(playerid, -TaxiPrice[playerid]);
- }
- }
-
- if(!foundDriver)
- GiveMoney(playerid, -TaxiPrice[playerid]);
-
- KillTimer(TaxiDurationTimer[playerid]);
- KillTimer(TaxiFairTimer[playerid]);
-
- TaxiDriver[playerid] = 0;
- TaxiPrice[playerid] = 0;
- return 1;
- }
- //
- stock GetRoadblockNameFromModel(model_id)
- {
- new
- modelname[30] = "None";
-
- for(new i = 0; i < sizeof(g_aRoadblocks); i++)
- {
- if(model_id == g_aRoadblocks[i][RoadblockModel])
- {
- format(modelname, 30, "%s", g_aRoadblocks[i][RoadblockName]);
- }
- }
- return modelname;
- }
- stock IsPlayerNearRoadblock(playerid)
- {
- for(new i = 0; i < sizeof(Roadblocks); i++)
- {
- if(!Roadblocks[i][RoadblockExists])
- continue;
-
- if(IsPlayerInRangeOfPoint(playerid, 5.0, Roadblocks[i][RoadblockPos][0], Roadblocks[i][RoadblockPos][1], Roadblocks[i][RoadblockPos][2]) && GetPlayerVirtualWorld(playerid) == Roadblocks[i][RoadblockWorld])
- return i;
- }
- return -1;
- }
- //
- stock GetVehicleMass(vehicleid, &Float:mass)
- {
- new model = GetVehicleModel(vehicleid);
-
- mass = GetVehicleModelInfoAsFloat(model, "fMass");
- return 1;
- }
- stock GetVehicleSpeed(vehicleid)
- {
- new
- Float:x,
- Float:y,
- Float:z,
- Float:Speed;
-
- GetVehicleVelocity(vehicleid, x, y, z);
- Speed = floatmul(floatsqroot(floatadd(floatadd(floatpower(x, 2), floatpower(y, 2)), floatpower(z, 2))), 200.0);
- return floatround(floatdiv(Speed, 1.609344), floatround_floor);
- }
- stock VehicleToPoint(Float:radi, vehicleid, Float:x, Float:y, Float:z)
- {
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetVehiclePos(vehicleid, oldposx, oldposy, oldposz);
- tempposx = (oldposx -x);
- tempposy = (oldposy -y);
- tempposz = (oldposz -z);
- if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- return 1;
- }
- return 0;
- }
- stock PauseAntiCheat(playerid)
- {
- ACPausedForPlayer[playerid] = 5;
- return 1;
- }
- stock GetFuelTypeAsString(type)
- {
- new typestring[60];
-
- switch(type)
- {
- case FUEL_TYPE_PETROL: typestring = "Petrol";
- case FUEL_TYPE_DIESEL: typestring = "Diesel";
- case FUEL_TYPE_ELECTRIC: typestring = "Electric";
- default: typestring = "NONE";
- }
- return typestring;
- }
- stock GetVehicleTypeString(vehicleid)
- {
- new
- typestring[32];
-
- if(IsValidPlayerCar(vehicleid))
- typestring = "Player";
-
- else if(IsValidFactionCar(vehicleid))
- typestring = "Faction";
-
- else if(IsValidRentalCar(vehicleid))
- typestring = "Rental";
-
- else typestring = "Static";
- return typestring;
- }
- //Spectator TDs
- stock ShowSpectatorTextdraw(playerid, bool:disable = false)
- {
- if(disable)
- {
- for(new i = 0; i < 6; i++)
- {
- PlayerTextDrawHide(playerid, SpectatorTD[playerid][i]);
- }
- }
- else
- {
- for(new i = 0; i < 6; i++)
- {
- PlayerTextDrawShow(playerid, SpectatorTD[playerid][i]);
- }
- }
- return 1;
- }
- stock UpdateSpectatorTextdraw(playerid)
- {
- new
- updater[90],
- targetid = PlayerData[playerid][pSpectator];
-
- format(updater, 90, "%s (%d)", ReturnName(targetid), targetid);
- PlayerTextDrawSetString(playerid, SpectatorTD[playerid][1], updater);
-
- format(updater, 90, "%d", GetPlayerPing(targetid));
- PlayerTextDrawSetString(playerid, SpectatorTD[playerid][3], updater);
-
- format(updater, 90, "%f", NetStats_PacketLossPercent(targetid));
- PlayerTextDrawSetString(playerid, SpectatorTD[playerid][5], updater);
-
- for(new i = 0; i < 6; i++)
- {
- PlayerTextDrawShow(playerid, SpectatorTD[playerid][i]);
- }
- return 1;
- }
- //Faction memeber list
- stock ShowFactionMembers(playerid, page = 1)
- {
- new lookupQuery[200];
- mysql_format(m_Handle, lookupQuery, sizeof lookupQuery, "SELECT Name, LastConnection, FactionRank FROM players WHERE Faction = %i ORDER BY FactionRank ASC", PlayerData[playerid][pFaction]);
- mysql_tquery(m_Handle, lookupQuery, "OnFactionLookup", "ii", playerid, page);
- return 1;
- }
- //Player Logs
- stock LogPlayerAction(playerid, action[])
- {
- if(!pLoggedIn[playerid])
- {
- printf("[DEBUG] Error occurred with LogPlayerAction - Player not logged in - Name: %s - Action: %s", ReturnName(playerid), action);
- return 0;
- }
-
- new
- insertQuery[340],
- addDate[200];
-
- format(addDate, 200, "%s %s", ReturnDateLog(), action);
-
- mysql_format(m_Handle, insertQuery, sizeof(insertQuery), "INSERT INTO player_logs (player_dbid, log_detail) VALUES(%i, '%e')", PlayerData[playerid][pSQLID], addDate);
- mysql_tquery(m_Handle, insertQuery, "OnPlayerActionLog", "is", playerid, addDate);
- return 1;
- }
- Server:OnPlayerActionLog(playerid, action[])
- {
- printf("[LogPlayerAction] Logged '%s' for Player DBID %i", action, PlayerData[playerid][pSQLID]);
- return 1;
- }
- stock ShowPlayerLogs(playerid, targetid, page)
- {
- new searchQuery[128];
-
- mysql_format(m_Handle, searchQuery, sizeof(searchQuery), "SELECT * FROM player_logs WHERE player_dbid = %i ORDER BY log_id DESC", PlayerData[targetid][pSQLID]);
- mysql_tquery(m_Handle, searchQuery, "OnShowPlayerLogs", "iii", playerid, targetid, page);
- return 1;
- }
- Server:OnFactionLookup(playerid, page)
- {
- if(!cache_num_rows())
- return SendClientMessage(playerid, COLOR_ADM, "-> An error occurred.");
-
- new rows, fields;
- cache_get_row_count(rows), cache_get_field_count(fields);
-
- new primary_str[1400], sub_str[400];
- new bool:secondPage, count;
-
- new faction_rank, Name[MAX_PLAYER_NAME + 2], lastConnection[90];
- new bool:isOnline = true;
-
- new secPage = page;
- SetPVarInt(playerid, "MemberPage", page);
-
- page--;
-
- strcat(primary_str, "Name\tRank\tLast Online\tStatus\n");
-
- for(new i = page*MAX_PLAYER_PER_PAGE; i < rows; i++)
- {
- count++;
-
- if(count == MAX_PLAYER_PER_PAGE + 1)
- {
- secondPage = true;
- break;
- }
- else
- {
- cache_get_value_name(i, "Name", Name, MAX_PLAYER_NAME + 2);
- cache_get_value_name(i, "LastConnection", lastConnection, 90);
- cache_get_value_name_int(i, "FactionRank", faction_rank);
-
- foreach(new g : Player)
- {
- if(strcmp(ReturnName(g), Name, true))
- {
- isOnline = false;
- }
- }
-
- format(sub_str, sizeof(sub_str), "{FFFFFF}%s\t%s\t%s\t%s\n{FFFFFF}", Name, FactionRanks[PlayerData[playerid][pFaction]][faction_rank], lastConnection, (isOnline != true) ? ("{F81414}Offline") : ("{33AA33}Online"));
- strcat(primary_str, sub_str);
- }
- }
- if(secPage != 1)
- format(primary_str, 1110, "%s{FFFF00}Previous Page <<\n", primary_str);
-
- if(secondPage)
- format(primary_str, 1110, "%s{FFFF00}Next Page >>\n", primary_str);
-
- ShowPlayerDialog(playerid, DIALOG_FACTIONMEMBERS, DIALOG_STYLE_TABLIST_HEADERS, "Faction members:", primary_str, "Cool", "<<");
- return 1;
- }
- Server:OnShowPlayerLogs(playerid, targetid, page)
- {
- new
- rows, fields;
- cache_get_row_count(rows), cache_get_field_count(fields);
-
- if(!rows)
- return SendClientMessage(playerid, COLOR_ADM, "This player hasn't been logged yet.");
-
- new fulllist[1450],
- logStr[256],
- caption[60],
- bool:secondPage,
- count;
-
- PlayerLogPage[playerid] = page;
- format(caption, 60, "%s (playerid: %i, DBID: %i)", ReturnName(targetid), targetid, PlayerData[targetid][pSQLID]);
-
- if(page == 1)
- fulllist = "{FFFF00}Page 1\n";
-
- else format(fulllist, sizeof(fulllist), "%s{FFFF00}<< Page %d\n", fulllist, page-1);
- page--;
-
- for(new i = page*MAX_PLOG_PER_PAGE; i < rows; i++)
- {
- count++;
-
- if(count == MAX_PLOG_PER_PAGE + 1)
- {
- secondPage = true;
- break;
- }
- else
- {
- cache_get_value_name(i, "log_detail", logStr, 256);
-
- format(fulllist, sizeof(fulllist), "%s%s\n", fulllist, logStr);
- }
- }
- if(secondPage)
- format(fulllist, sizeof(fulllist), "%s{FFFF00}Page %d >>\n", fulllist, (page+1)+1);
- ShowPlayerDialog(playerid, DIALOG_PLOG_LIST, DIALOG_STYLE_LIST, caption, fulllist, ">>", "<<");
- return 1;
- }
- //Vehicle Logs
- stock LogVehicleAction(vehicleid, action[])
- {
- if(!IsValidPlayerCar(vehicleid))
- {
- printf("[DEBUG] Error occured with LogVehicleAction - VehicleID: %i Action: %s", vehicleid, action);
- return 0;
- }
- new
- insertQuery[340],
- addDate[200];
-
- format(addDate, 200, "%s %s", ReturnDateLog(), action);
-
- mysql_format(m_Handle, insertQuery, sizeof(insertQuery), "INSERT INTO vehicle_logs (vehicle_dbid, log_detail) VALUES(%i, '%e')", CarData[vehicleid][carID], addDate);
- mysql_tquery(m_Handle, insertQuery, "OnVehicleActionLog", "is", vehicleid, addDate);
- return 1;
- }
- Server:OnVehicleActionLog(vehicleid, action[])
- {
- printf("[LogVehicleAction] Logged '%s' for Vehicle DBID %i (IG: %i)", action, CarData[vehicleid][carID], vehicleid);
- return 1;
- }
- stock ShowVehicleLogs(playerid, vehicleid, page)
- {
- new searchQuery[128];
-
- mysql_format(m_Handle, searchQuery, sizeof(searchQuery), "SELECT * FROM vehicle_logs WHERE vehicle_dbid = %i ORDER BY log_id DESC", CarData[vehicleid][carID]);
- mysql_tquery(m_Handle, searchQuery, "OnShowVehicleLogs", "iii", playerid, vehicleid, page);
- return 1;
- }
- Server:OnShowVehicleLogs(playerid, vehicleid, page)
- {
- new rows, fields;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- if(!rows)
- return SendClientMessage(playerid, COLOR_ADM, "This vehicle hasn't been logged yet.");
-
- new fulllist[1200],
- logStr[256],
- caption[60],
- bool:secondPage,
- count;
-
- PlayerVlogPage[playerid] = page;
- format(caption, 60, "%s (vehicleid: %i, dbid: %i)", ReturnVehicleName(vehicleid), vehicleid, CarData[vehicleid][carID]);
-
- if(page == 1)
- fulllist = "{FFFF00}Page 1\n";
-
- else format(fulllist, sizeof(fulllist), "%s{FFFF00}<< Page %d\n", fulllist, page-1);
- page--;
-
- for(new i = page*MAX_VLOG_PER_PAGE; i < rows; i++)
- {
- count++;
-
- if(count == MAX_VLOG_PER_PAGE + 1)
- {
- secondPage = true;
- break;
- }
- else
- {
- cache_get_value_name(i, "log_detail", logStr, 256);
-
- format(fulllist, sizeof(fulllist), "%s%s\n", fulllist, logStr);
- }
- }
- if(secondPage)
- format(fulllist, sizeof(fulllist), "%s{FFFF00}Page %d >>\n", fulllist, (page+1)+1);
- ShowPlayerDialog(playerid, DIALOG_VLOG_LIST, DIALOG_STYLE_LIST, caption, fulllist, ">>", "<<");
- return 1;
- }
- //
- stock IsUserBanned(user[])
- {
- new qz[250];
-
- mysql_format(m_Handle, qz, sizeof(qz), "SELECT id FROM bans WHERE Name = '%e'", user);
- new Cache:cache = mysql_query(m_Handle, qz);
-
- if(!cache_num_rows())
- {
- cache_delete(cache);
- return 0;
- }
-
- cache_delete(cache);
- return 1;
- }
- // Admin Panel
- stock ShowAdminPanel(playerid)
- {
- new list[350];
-
- strcat(list, "1.\tBan offline player\n");
- strcat(list, "2.\tAjail offline player\n");
- strcat(list, "3.\tUnban player\n");
- strcat(list, "4.\tLookup users adminjails\n");
- strcat(list, "5.\tLookup users kicks\n");
- strcat(list, "6.\tLookup users bans\n");
- strcat(list, "7.\tDecrypt mask\n");
- strcat(list, "8.\tFind mask\n");
- strcat(list, "9.\tSkin search\n");
- strcat(list, "10.\tAdmin Notes Lookup\n");
- strcat(list, "11.\tAdmin Notes Edit\n");
- strcat(list, "12.\tAdmin Notes Add\n");
- strcat(list, "13.\tAdmin Notes Delete\n");
-
- ShowPlayerDialog(playerid, DIALOG_ADMINSYS, DIALOG_STYLE_LIST, "Administration system", list, "Select", "<<");
- return 1;
- }
- stock ShowAdminSys(playerid, panel, error[] = "")
- {
- new string[330];
-
- switch(panel)
- {
- case 0: //offline ban
- {
- if(isnull(error))
- string = "Input the name of the player you want to ban:";
-
- else format(string, sizeof(string), "%s\n\nInput the name of the player you want to ban:", error);
-
- ShowPlayerDialog(playerid, DIALOG_ASYS_OFFLINEBAN, DIALOG_STYLE_INPUT, "Administrator panel", string, "Select", "<<");
- return 1;
- }
- case 1: //offline ajail
- {
- if(isnull(error))
- string = "Input the name of the player you want to admin jail:";
-
- else format(string, sizeof(string), "%s\n\nInput the name of the player you want to admin jail:", error);
-
- ShowPlayerDialog(playerid, DIALOG_ASYS_OFFLINEAJAIL, DIALOG_STYLE_INPUT, "Administrator panel", string, "Select", "<<");
- return 1;
- }
- case 2: //unban
- {
- if(isnull(error))
- string = "Input the name of the player you want to unban:";
-
- else format(string, sizeof(string), "%s\n\nInput the name of the player you want to unban:", error);
-
- ShowPlayerDialog(playerid, DIALOG_ASYS_UNBAN, DIALOG_STYLE_INPUT, "Administrator panel", string, "Select", "<<");
- return 1;
- }
- case 3: //ajail lookup
- {
- if(isnull(error))
- string = "Input the name of the player to look up their admin jails:";
-
- else format(string, sizeof(string), "%s\n\nInput the name of the player to look up their admin jails:", error);
-
- ShowPlayerDialog(playerid, DIALOG_LOOKUP_JAILS, DIALOG_STYLE_INPUT, "Administrator panel", string, "Select", "<<");
- return 1;
- }
- case 4: //kick lookup
- {
- if(isnull(error))
- string = "Input the name of the player to look up their kicks:";
-
- else format(string, sizeof(string), "%s\n\nInput the name of the player to look up their kicks:", error);
-
- ShowPlayerDialog(playerid, DIALOG_LOOKUP_KICKS, DIALOG_STYLE_INPUT, "Administrator panel", string, "Select", "<<");
- return 1;
- }
- case 5: //kick lookup
- {
- if(isnull(error))
- string = "Input the name of the player to look up their bans:";
-
- else format(string, sizeof(string), "%s\n\nInput the name of the player to look up their bans:", error);
-
- ShowPlayerDialog(playerid, DIALOG_LOOKUP_BANS, DIALOG_STYLE_INPUT, "Administrator panel", string, "Select", "<<");
- return 1;
- }
- case 6: //mask decrypt
- {
- if(isnull(error))
- string = "Input the Mask ID you want to look up as (100000_00):";
-
- else format(string, sizeof(string), "%s\n\nInput the Mask ID you want to look up as (100000_00):", error);
-
- ShowPlayerDialog(playerid, DIALOG_DECRYPTMASK, DIALOG_STYLE_INPUT, "Administrator panel", string, "Select", "<<");
- return 1;
- }
- case 7: //find mask
- {
- new
- ListString[800],
- count;
-
- strcat(ListString, "Online masked players:\n\n");
-
- foreach(new i : Player) if(PlayerData[i][pMasked])
- {
- format(string, sizeof(string), "\t%s (ID: %i) - %s\n", ReturnName(i), i, ReturnPlayerMask(i));
- strcat(ListString, string);
-
- count++;
- }
- if(!count)
- return ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", "There are no Masked players in the server.", "Okay!", "");
-
- ShowPlayerDialog(playerid, DIALOG_APANEL, DIALOG_STYLE_MSGBOX, "Administration panel", ListString, "Okay!", "");
- return 1;
- }
- case 8: //skin search
- {
- if(isnull(error))
- string = "Input the Skin ID you want to search for:";
-
- else format(string, sizeof(string), "%s\n\nInput the Skin ID you want to search for:", error);
-
- ShowPlayerDialog(playerid, DIALOG_SKINSEARCH, DIALOG_STYLE_INPUT, "Administrator panel", string, "Select", "<<");
- return 1;
- }
- case 9: // admin note lookup
- {
- if(isnull(error))
- string = "Input the players name to lookup their admin notes:";
-
- else format(string, sizeof(string), "%s\n\nInput the players name to lookup their admin notes:", error);
-
- ShowPlayerDialog(playerid, DIALOG_ANOTE_LOOKUP, DIALOG_STYLE_INPUT, "Administrator panel", string, "Select", "<<");
- return 1;
- }
- case 10: // admin note edit
- {
- if(isnull(error))
- string = "Input the players name to edit their admin notes:";
-
- else format(string, sizeof(string), "%s\n\nInput the players name to edit their admin notes:", error);
-
- ShowPlayerDialog(playerid, DIALOG_ANOTE_EDIT, DIALOG_STYLE_INPUT, "Administrator panel", string, "Select", "<<");
- return 1;
- }
- case 11: // admin note add
- {
- if(isnull(error))
- string = "Input the players name to add a new admin note:";
-
- else format(string, sizeof(string), "%s\n\nInput the players name to add a new admin note:", error);
-
- ShowPlayerDialog(playerid, DIALOG_ANOTE_ADD, DIALOG_STYLE_INPUT, "Administrator panel", string, "Select", "<<");
- return 1;
- }
- case 12: // admin note delete
- {
- if(isnull(error))
- string = "Input the players name to delete an admin note:";
-
- else format(string, sizeof(string), "%s\n\nInput the players name to delete an admin note:", error);
-
- ShowPlayerDialog(playerid, DIALOG_ANOTE_DELETE, DIALOG_STYLE_INPUT, "Administrator panel", string, "Select", "<<");
- return 1;
- }
- }
- return 1;
- }
- stock GetVehicleRelativePos(vehicleid, &Float:x, &Float:y, &Float:z, Float:xoff=0.0, Float:yoff=0.0, Float:zoff=0.0)
- {
- new Float:rot;
- GetVehicleZAngle(vehicleid, rot);
- rot = 360 - rot; // Making the vehicle rotation compatible with pawns sin/cos
- GetVehiclePos(vehicleid, x, y, z);
- x = floatsin(rot,degrees) * yoff + floatcos(rot,degrees) * xoff + x;
- y = floatcos(rot,degrees) * yoff - floatsin(rot,degrees) * xoff + y;
- z = zoff + z;
- /*
- where xoff/yoff/zoff are the offsets relative to the vehicle
- x/y/z then are the coordinates of the point with the given offset to the vehicle
- xoff = 1.0 would e.g. point to the right side of the vehicle, -1.0 to the left, etc.
- */
- }
- stock encode_doors(bonnet, boot, driver_door, passenger_door, behind_driver_door, behind_passenger_door)
- {
- #pragma unused behind_driver_door
- #pragma unused behind_passenger_door
- return bonnet | (boot << 8) | (driver_door << 16) | (passenger_door << 24);
- }
- //General Interiors System
- stock IsPlayerNearEntrance(playerid)
- {
- for(new i = 1; i < 30; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, Entrances[i][Entrance][0], Entrances[i][Entrance][1], Entrances[i][Entrance][2]) && GetPlayerVirtualWorld(playerid) == Entrances[i][EntranceWorld])
- return i;
- }
- return -1;
- }
- stock IsPlayerInsideEntrance(playerid)
- {
- for(new i = 1; i < 30; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, Entrances[i][Exit][0], Entrances[i][Exit][1], Entrances[i][Exit][2]) && GetPlayerVirtualWorld(playerid) == Entrances[i][ExitWorld])
- return i;
- }
- return -1;
- }
- stock EnterEntrance(playerid, entrance)
- {
- ResetHouseVar(playerid);
- gPlayerInsideEntrance[playerid] = entrance;
-
- SetPlayerInterior(playerid, Entrances[entrance][ExitInteriorID]);
- SetPlayerVirtualWorld(playerid, Entrances[entrance][ExitWorld]);
-
- SetPlayerPos(playerid, Entrances[entrance][Exit][0], Entrances[entrance][Exit][1], Entrances[entrance][Exit][2]);
- if(Entrances[entrance][IsWarehouse]) SendClientMessage(playerid, COLOR_WHITE, "Welcome to the warehouse.");
- if(Entrances[entrance][IsBlackMarket]) SendClientMessage(playerid, COLOR_WHITE, "Welcome to the black market.");
- return 1;
- }
- stock ExitEntrance(playerid, entrance)
- {
- SetPlayerInterior(playerid, Entrances[entrance][EntranceInteriorID]);
- SetPlayerVirtualWorld(playerid, Entrances[entrance][EntranceWorld]);
-
- SetPlayerPos(playerid, Entrances[entrance][Entrance][0], Entrances[entrance][Entrance][1], Entrances[entrance][Entrance][2]);
- gPlayerInsideEntrance[playerid] = -1;
- return 1;
- }
- stock LockEntrance(playerid, entrance)
- {
- if(!Entrances[entrance][Locked])
- {
- GameTextForPlayer(playerid, "~w~DOOR ~r~LOCKED", 3000, 6);
- Entrances[entrance][Locked] = true;
- }
- else
- {
- GameTextForPlayer(playerid, "~w~DOOR ~g~UNLOCKED", 3000, 6);
- Entrances[entrance][Locked] = false;
- }
- return 1;
- }
- stock IsEntranceLocked(entrance)
- {
- if(Entrances[entrance][Locked])
- return 1;
-
- return 0;
- }
- stock CountEntrances()
- {
- new
- count;
-
- for(new i = 1; i < 30; i++) if(Entrances[i][InteriorDBID])
- count++;
-
- return count;
- }
- Server:OnEntranceCreated(playerid, factionid, warehouse, blackmarket)
- {
- new
- idx,
- string[128];
-
- for(new i = 1; i < 30; i++) if(!Entrances[i][InteriorDBID])
- {
- idx = i;
- break;
- }
-
- Entrances[idx][InteriorDBID] = cache_insert_id();
-
- Entrances[idx][FactionOwner] = factionid;
- Entrances[idx][IsWarehouse] = warehouse; Entrances[idx][IsBlackMarket] = blackmarket;
-
- Entrances[idx][Locked] = true;
- for(new i = 0; i < 3; i++)
- {
- Entrances[idx][Entrance][i] = 0.0;
- Entrances[idx][Exit][i] = 0.0;
- }
-
- Message(playerid, COLOR_YELLOW, "SERVER: Created entrance ID %i. Configure it through: /editentrance.", idx);
-
- format(string, sizeof(string), "%s created Entrance ID %i", ReturnName(playerid), idx);
- adminWarn(4, string);
- return 1;
- }
- Server:OnEntranceFactionChange(playerid, entranceid, factionid)
- {
- Message(playerid, COLOR_YELLOW, "SERVER: Successfully changed entrance %i's faction to: %s (%i)", entranceid, ReturnFactionName(factionid), factionid);
- Entrances[entranceid][FactionOwner] = factionid;
- return 1;
- }
- Server:OnEntranceWarehouseChange(playerid, entranceid, warehouse)
- {
- Message(playerid, COLOR_YELLOW, "SERVER: Entrance %i %s", entranceid, (warehouse != 1) ? ("is longer has a warehouse.") : ("is now a warehouse."));
- Entrances[entranceid][IsWarehouse] = warehouse;
- return 1;
- }
- Server:OnEntranceBlackmarketChange(playerid, entranceid, blackmarket)
- {
- Message(playerid, COLOR_YELLOW, "SERVER: Entrance %i %s", entranceid, (blackmarket != 1) ? ("is longer has a black market.") : ("is now a black market."));
- Entrances[entranceid][IsBlackMarket] = blackmarket;
- return 1;
- }
- Server:OnEntrancesEntranceChange(playerid, response, entranceid)
- {
- if(response)
- {
- new
- query[340];
-
- GetPlayerPos(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE entrances SET EntranceX = %f, EntranceY = %f, EntranceZ = %f, EntranceInteriorID = %i, EntranceWorld = %i WHERE InteriorDBID = %i ",
- PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2], GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid), Entrances[entranceid][InteriorDBID]);
- mysql_tquery(m_Handle, query, "OnEntrancesEntranceChanged", "ii", playerid, entranceid);
- }
- return 1;
- }
- Server:OnEntrancesEntranceChanged(playerid, entranceid)
- {
- GetPlayerPos(playerid, Entrances[entranceid][Entrance][0], Entrances[entranceid][Entrance][1], Entrances[entranceid][Entrance][2]);
-
- Entrances[entranceid][EntranceWorld] = GetPlayerVirtualWorld(playerid);
- Entrances[entranceid][EntranceInteriorID] = GetPlayerInterior(playerid);
- Message(playerid, COLOR_YELLOW, "SERVER: Successfully changed entrance %i's entrance position.", entranceid);
- return 1;
- }
- Server:OnEntrancesInteriorChange(playerid, response, entranceid)
- {
- if(response)
- {
- new query[340];
-
- GetPlayerPos(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]);
-
- mysql_format(m_Handle, query, sizeof(query), "UPDATE entrances SET ExitX = %f, ExitY = %f, ExitZ = %f, ExitInteriorID = %i, ExitWorld = %i WHERE InteriorDBID = %i",
- PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2], GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid), Entrances[entranceid][InteriorDBID]);
- mysql_tquery(m_Handle, query, "OnEntrancesInteriorChanged", "ii", playerid, entranceid);
- }
- return 1;
- }
- Server:OnEntrancesInteriorChanged(playerid, entranceid)
- {
- GetPlayerPos(playerid, Entrances[entranceid][Exit][0], Entrances[entranceid][Exit][1], Entrances[entranceid][Exit][2]);
- Entrances[entranceid][ExitWorld] = GetPlayerVirtualWorld(playerid);
- Entrances[entranceid][ExitInteriorID] = GetPlayerInterior(playerid);
-
- Message(playerid, COLOR_YELLOW, "SERVER: Successfully changed entrance %i's interior position.", entranceid);
- return 1;
- }
- //Illegal factions
- stock IsPlayerInTheirBlackMarket(playerid)
- {
- new idx;
- for(new i = 1; i < 30; i++) if(Entrances[i][FactionOwner] == PlayerData[playerid][pFaction] && Entrances[i][IsBlackMarket])
- {
- idx = i;
- }
-
- if(IsPlayerInRangeOfPoint(playerid, 20.0, Entrances[idx][Exit][0], Entrances[idx][Exit][1], Entrances[idx][Exit][2]) && GetPlayerVirtualWorld(playerid) == Entrances[idx][ExitWorld])
- return 1;
-
- return 0;
- }
- stock ReturnFactionProducts(factionid)
- {
- return FactionData[factionid][factionProducts];
- }
- stock ShowWarehouseMenu(playerid)
- {
- new infoString[200];
-
- format(infoString, sizeof infoString, "%s", ReturnFactionName(PlayerData[playerid][pFaction]));
- PlayerTextDrawSetString(playerid, WarehouseMenu_P[playerid][0], infoString);
-
- format(infoString, sizeof infoString, "Welcome to your warehouse menu,~n~%s.", ReturnName(playerid, 0));
- PlayerTextDrawSetString(playerid, WarehouseMenu_P[playerid][1], infoString);
-
- //Cart:
- PlayerTextDrawSetString(playerid, WarehouseMenu_P[playerid][2], "~r~Empty");
-
- for(new i; i < 36; i++)
- TextDrawShowForPlayer(playerid, WarehouseMenu[i]);
-
- for(new i; i < 3; i++)
- PlayerTextDrawShow(playerid, WarehouseMenu_P[playerid][i]);
-
- SetPVarInt(playerid, "ViewingWarehouseMenu", 1);
- SetPVarInt(playerid, "WarehouseCart", 0);
-
- for(new i; i < 21; i++)
- {
- WarehouseWeapons[playerid][i] = 0;
- }
-
- SelectTextDraw(playerid, COLOR_GREY);
-
- printf("[Debug menu] %s is viewing warehouse menu.", ReturnName(playerid));
- return 1;
- }
- stock HideWarehouseMenu(playerid, trashvars = 1)
- {
- for(new i; i < 36; i++)
- TextDrawHideForPlayer(playerid, WarehouseMenu[i]);
-
- for(new i; i < 3; i++)
- PlayerTextDrawHide(playerid, WarehouseMenu_P[playerid][i]);
-
- if(trashvars == 1)
- {
- DeletePVar(playerid, "WarehouseCart");
-
- for(new i; i < 21; i++)
- {
- WarehouseWeapons[playerid][i] = 0;
- }
- printf("[Debug menu] %s's warehouse menu vars were trashed when hidden.", ReturnName(playerid));
- }
- DeletePVar(playerid, "ViewingWarehouseMenu");
- printf("[Debug menu] %s is no longer viewing the warehouse menu.", ReturnName(playerid));
- return 1;
- }
- stock GetWeaponProductCost(weaponid, &amount)
- {
- switch(weaponid)
- {
- case 24: amount = 300;
- case 22: amount = 150;
- case 4: amount = 90;
- case 25: amount = 450;
- case 30: amount = 600;
- case 31: amount = 666;
- case 34: amount = 4000;
- default: amount = 0;
- }
- return 1;
- }
- stock UpdateWarehouseMenu(playerid, index)
- {
- new weapon_id, productCost, cart;
- new updater[60], available;
- switch( index )
- {
- case 1: weapon_id = 24;
- case 4: weapon_id = 22;
- case 10: weapon_id = 4;
- case 13: weapon_id = 25;
- case 16: weapon_id = 30;
- case 20: weapon_id = 31;
- case 24: weapon_id = 34;
- case 19: return OrderWarehouseItems(playerid);
- case 23: return EmptyWarehouseItems(playerid);
- }
- UpdateWeaponsForPlayer(playerid, weapon_id, available);
- if(available == -1) return 1;
-
- GetWeaponProductCost(weapon_id, productCost);
- cart = GetPVarInt(playerid, "WarehouseCart");
-
- if(cart < 1) format(updater, sizeof updater, "~g~%d", (cart + productCost));
- else format(updater, sizeof updater, "%d", (cart + productCost));
-
- PlayerTextDrawSetString(playerid, WarehouseMenu_P[playerid][2], updater);
- SetPVarInt(playerid, "WarehouseCart", (cart + productCost));
- return 1;
- }
- stock UpdateWeaponsForPlayer(playerid, weaponid, &available)
- {
- new
- slot = -1;
-
- for(new i = 1; i < 21; i++)
- {
- if(!WarehouseWeapons[playerid][i])
- {
- slot = i;
- break;
- }
- }
- available = slot;
- if(slot == -1)
- return SendClientMessage(playerid, COLOR_ADM, "ORDER:{FFFFFF} You've exceeded the amount of weapons possible.");
-
- WarehouseWeapons[playerid][slot] = weaponid;
- printf("[Debug menu] %s had a %s added to their Warehouse weapons slot", ReturnName(playerid), ReturnWeaponName(weaponid));
- return 1;
- }
- stock OrderWarehouseItems(playerid)
- {
- if(GetPVarInt(playerid, "WarehouseCart") == 0)
- return ShowTextdrawInfo(playerid, "~y~Your cart is empty right now.");
-
- if(PlayerData[playerid][pPhoneOff])
- return ShowTextdrawInfo(playerid, "~y~Your phone needs to be on to order.");
-
- if(PlayerData[playerid][pPhoneline] != INVALID_PLAYER_ID)
- return ShowTextdrawInfo(playerid, "~y~Your phone line is busy right now.");
-
- if(GetPVarInt(playerid, "WarehouseCart") > ReturnFactionProducts(PlayerData[playerid][pFaction]))
- return ShowTextdrawInfo(playerid, "~y~You don't have enough products for this order.");
-
- PlayerData[playerid][pPhoneline] = GUN_SHOP_NUMBER;
- PlayerData[playerid][pCalling] = 2;
-
- CancelSelectTextDraw(playerid);
- new string[128];
- format(string, sizeof(string), "* %s dials a number on their phone.", ReturnName(playerid, 0));
- SendClientMessage(playerid, COLOR_EMOTE, string);
- SetPlayerChatBubble(playerid, string, COLOR_EMOTE, 20.0, 3000);
-
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
- PlayerPlaySound(playerid, 3600, 0.0, 0.0, 0.0);
-
- WarehouseCallTimer[playerid] = SetTimerEx("CallingWarehouse", 2000, false, "i", playerid);
- WarehouseCallStep[playerid] = 1;
- return 1;
- }
- //Calling Warehouse
- Server:CallingWarehouse(playerid)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "A person says (phone): Greetings from the factory.");
- WarehouseCallTimer[playerid] = SetTimerEx("CallingWarehouse_2", 2000, false, "i", playerid);
- return 1;
- }
- Server:CallingWarehouse_2(playerid)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "A person says (phone): Where would you like your items delivered?");
-
- WarehouseCallStep[playerid] = 2;
- PlayerData[playerid][pCalling] = 0;
- return 1;
- }
- Server:CallingWarehouse_3(playerid)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "A person says (phone): We offer two type of deliveries. You can pay for our standard delivery time or our deluxe...");
- WarehouseCallTimer[playerid] = SetTimerEx("CallingWarehouse_3_2", 2000, false, "i", playerid);
- return 1;
- }
- Server:CallingWarehouse_3_2(playerid)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "A person says (phone): ...delivery time which is expensive. Please specify the delivery.");
- WarehouseCallStep[playerid] = 3;
- return 1;
- }
- Server:CallingWarehouse_4(playerid)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "A person says (phone): Thanks for holding.");
- WarehouseCallTimer[playerid] = SetTimerEx("CallingWarehouse_4_2", 2000, false, "i", playerid);
- return 1;
- }
- Server:CallingWarehouse_4_2(playerid)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "A person says (phone): We've processed your delivery and sent the order time to your phone.");
- WarehouseCallTimer[playerid] = SetTimerEx("CallingWarehouse_4_3", 2000, false, "i", playerid);
- return 1;
- }
- Server:CallingWarehouse_4_3(playerid)
- {
- Message(playerid, COLOR_YELLOW, "A person says (phone): Your items will arrive at your %s.", (GetPVarInt(playerid, "DestinationSelected") != WAREHOUSE_SELECTED) ? ("black market.") : ("warehouse."));
- SendClientMessage(playerid, COLOR_YELLOW, "A person says (phone): We hope you're satisified by our services.");
-
- WarehouseCallStep[playerid] = 0;
- cmd_hangup(playerid, "");
-
- new factionid, countItems = 0;
- factionid = PlayerData[playerid][pFaction];
-
- new deliveryType;
- deliveryType = GetPVarInt(playerid, "DestinationSelected");
-
- FactionData[factionid][factionHasWeaponOrder] = true;
- FactionData[factionid][factionOrderBy] = PlayerData[playerid][pSQLID];
-
- FactionData[factionid][factionOrder_Delivery] = deliveryType;
-
- for(new i; i < 21; i++)
- FactionData[factionid][factionOrderItems][i] = WarehouseWeapons[playerid][i];
-
- for(new i; i < 21; i++)
- {
- if(FactionData[factionid][factionOrderItems][i])
- {
- countItems++;
- }
- }
-
- FactionData[factionid][factionProducts]-= GetPVarInt(playerid, "WarehouseCart");
- printf("[Debug] Faction ID %i lost %i products from a order shipment.", factionid, GetPVarInt(playerid, "WarehouseCart"));
- if(deliveryType == 2) FactionData[factionid][factionOrderTime] = (60 * countItems);
- else FactionData[factionid][factionOrderTime] = (120 * countItems);
-
- new orderCount[60];
- format(orderCount, sizeof orderCount, "%s", TimeConvert(FactionData[factionid][factionOrderTime]));
-
- foreach(new i : Player) if(PlayerData[i][pFaction] == factionid)
- {
- if(i != playerid)
- {
- SendClientMessage(playerid, COLOR_WHITE, "A order time appeared. Your faction has a shipment inbound.");
- }
-
- PlayerTextDrawSetString(i, OrderCount[i][1], orderCount);
-
- PlayerTextDrawShow(i, OrderCount[i][0]);
- PlayerTextDrawShow(i, OrderCount[i][1]);
- }
-
- FactionData[factionid][factionOrder_Timer] = SetTimerEx("FactionOrderClock", 1000, true, "i", factionid);
- return 1;
- }
- Server:FactionOrderClock(factionid)
- {
- FactionData[factionid][factionOrderTime]--;
- new orderCount[60];
-
- if(FactionData[factionid][factionOrderTime] > 0)
- format(orderCount, sizeof orderCount, "%s", TimeConvert(FactionData[factionid][factionOrderTime]));
-
- else orderCount = "~g~PLEASE WAIT...";
-
- foreach(new i : Player) if(PlayerData[i][pFaction] == factionid && gHidingFactionTimer[i] == 0)
- {
- PlayerTextDrawSetString(i, OrderCount[i][1], orderCount);
-
- PlayerTextDrawShow(i, OrderCount[i][0]);
- PlayerTextDrawShow(i, OrderCount[i][1]);
- }
-
- if(FactionData[factionid][factionOrderTime] <= 0)
- {
- foreach(new i : Player) if(PlayerData[i][pFaction] == factionid)
- {
- Message(i, FactionData[factionid][factionChatColor], "(( A crate has arrived at your factions %s. ))", (FactionData[factionid][factionOrder_Delivery] != 1) ? ("warehouse") : ("blackmarket"));
- PlayerTextDrawHide(i, OrderCount[i][0]); PlayerTextDrawHide(i, OrderCount[i][1]);
- }
-
- new crate_id = -1, destination_id = -1;
- for(new i; i < MAX_WEAPON_CRATES; i++)
- {
- if(!WeaponCrates[i][CrateExists])
- {
- crate_id = i;
- break;
- }
- }
- new string[128];
- if(crate_id == -1)
- {
- SendMessageToFaction(factionid, FactionData[factionid][factionChatColor], "(( An error occurred with your crate. Please contact a developer. ))");
- format(string, sizeof string, "(( This occurred on: %s (Error -1) ", ReturnDateLog());
- SendMessageToFaction(factionid, FactionData[factionid][factionChatColor], string);
-
- FactionData[factionid][factionHasWeaponOrder] = false;
- KillTimer(FactionData[factionid][factionOrder_Timer]);
- return 1;
- }
-
- if(FactionData[factionid][factionOrder_Delivery] == BLACK_MARKET_SELECTED)
- {
- for(new i; i < 30; i++)
- {
- if(Entrances[i][FactionOwner] == factionid && Entrances[i][IsBlackMarket])
- {
- destination_id = i;
- break;
- }
- }
- }
- else
- {
- for(new i; i < 30; i++)
- {
- if(Entrances[i][FactionOwner] == factionid && Entrances[i][IsWarehouse])
- {
- destination_id = i;
- break;
- }
- }
- }
- if(destination_id == -1)
- {
- SendMessageToFaction(factionid, FactionData[factionid][factionChatColor], "(( Your faction specified a delivery point that doesn't exist. It was cancelled. ))");
-
- FactionData[factionid][factionHasWeaponOrder] = false;
- KillTimer(FactionData[factionid][factionOrder_Timer]);
- return 1;
- }
-
- new orderedPlayer = INVALID_PLAYER_ID;
- foreach(new i : Player)
- {
- if(PlayerData[i][pSQLID] == FactionData[factionid][factionOrderBy])
- {
- orderedPlayer = i;
- }
- }
-
- if(orderedPlayer != INVALID_PLAYER_ID)
- {
- if(GetPVarInt(orderedPlayer, "WarehouseDeliveryType") == 2)
- {
- GiveMoney(orderedPlayer, -1000);
- SendClientMessage(orderedPlayer, COLOR_YELLOW, "You were charged for the deluxe delivery.");
- }
- }
- else
- {
- new query[200];
-
- mysql_format(m_Handle, query, sizeof query, "SELECT Money FROM players WHERE id = %i", FactionData[factionid][factionOrderBy]);
- mysql_tquery(m_Handle, query, "ChargeFactionOrderer", "i", FactionData[factionid][factionOrderBy]);
- }
-
- WeaponCrates[crate_id][CrateExists] = true;
-
- WeaponCrates[crate_id][CrateBy] = FactionData[factionid][factionOrderBy];
- WeaponCrates[crate_id][CrateFaction] = factionid;
-
- for(new i; i < 21; i++)
- {
- WeaponCrates[crate_id][CrateItems][i] = FactionData[factionid][factionOrderItems][i];
- }
-
- WeaponCrates[crate_id][CrateObject] = CreateDynamicObject(2912, Entrances[destination_id][Entrance][0] + 2, Entrances[destination_id][Entrance][1], Entrances[destination_id][Entrance][2] -1, 0.0, 0.0, 0.0);
-
- format(string, sizeof(string), "%s", ReturnFactionName(factionid));
- WeaponCrates[crate_id][CrateLabel] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, Entrances[destination_id][Entrance][0] + 2, Entrances[destination_id][Entrance][1], Entrances[destination_id][Entrance][2] -1, 20.0);
-
- foreach(new i : Player)
- {
- if(IsPlayerInRangeOfPoint(i, 20.0, Entrances[destination_id][Entrance][0] + 2, Entrances[destination_id][Entrance][1], Entrances[destination_id][Entrance][2]))
- {
- Streamer_Update(i);
- }
- }
-
- KillTimer(FactionData[factionid][factionOrder_Timer]);
- FactionData[factionid][factionHasWeaponOrder] = false;
- }
- return 1;
- }
- Server:ChargeFactionOrderer(dbid)
- {
- new rows, fields;
- cache_get_row_count(rows), cache_get_field_count(fields);
-
- if(rows)
- {
- new money;
- cache_get_value_name_int(0, "Money", money);
-
- new updateQuery[200];
-
- mysql_format(m_Handle, updateQuery, sizeof updateQuery, "UPDATE players SET Money = %i WHERE id = %i", (money - 1000), dbid);
- mysql_tquery(m_Handle, updateQuery, "ConfirmPlayerCharged", "i", dbid);
- }
- }
- Server:ConfirmPlayerCharged(dbid)
- {
- printf("[Debug] Player DBID %i (%s) was charged -$1,000 while being offline during weapon delivery.", dbid, ReturnSQLName(dbid));
- return 1;
- }
- //
- IsVehicleCargoCompatiable(vehicleid)
- {
- switch( GetVehicleModel(vehicleid) )
- {
- case 414, 456, 482, 440, 459: return 1;
- }
- return 0;
- }
- //
- CMD:togtimer(playerid, params[])
- {
- if( !FactionData[ PlayerData[playerid][pFaction] ][factionHasWeaponOrder] )
- return SendClientMessage(playerid, COLOR_YELLOW, "Your faction doesn't have a weapon order.");
-
- gHidingFactionTimer[playerid] = !gHidingFactionTimer[playerid];
- if(gHidingFactionTimer[playerid] == 1)
- {
- PlayerTextDrawHide(playerid, OrderCount[playerid][0]); PlayerTextDrawHide(playerid, OrderCount[playerid][1]);
- }
-
- Message(playerid, COLOR_WHITE, "You {FFFF00}%s{FFFFFF} your factions order timer.", (gHidingFactionTimer[playerid] != 1) ? ("enabled") : ("disabled"));
- return 1;
- }
- CMD:crate(playerid, params[])
- {
- if( isnull(params) )
- {
- SendClientMessage(playerid, COLOR_WHITE, "/crate {FFFF00}load");
- SendClientMessage(playerid, COLOR_WHITE, "/crate {FFFF00}unload");
- SendClientMessage(playerid, COLOR_WHITE, "/crate {FFFF00}open");
- SendClientMessage(playerid, COLOR_WHITE, "/crate {FFFF00}drop");
- SendClientMessage(playerid, COLOR_WHITE, "/crate {FFFF00}pickup");
- SendClientMessage(playerid, COLOR_WHITE, "/crate {FFFF00}content");
- return 1;
- }
-
- if(!strcmp(params, "pickup", true))
- {
- new crate_id = -1;
- new Float:Pos[3];
-
- if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT)
- return SendClientMessage(playerid, COLOR_YELLOW, "You aren't on foot.");
-
- if(IsPlayerHoldingCrate(playerid) != -1)
- return SendClientMessage(playerid, COLOR_YELLOW, "You're already holding a crate.");
-
- for(new i; i < MAX_WEAPON_CRATES; i++)
- {
- if(!WeaponCrates[i][CrateExists])
- continue;
-
- if(IsValidDynamicObject( WeaponCrates[i][CrateObject] ) && WeaponCrates[i][CrateAttachedTo] == -1)
- {
- GetDynamicObjectPos(WeaponCrates[i][CrateObject], Pos[0], Pos[1], Pos[2]);
-
- if(IsPlayerInRangeOfPoint(playerid, 3.0, Pos[0], Pos[1], Pos[2]))
- {
- crate_id = i;
- break;
- }
- }
- }
- if(crate_id == -1)
- return SendClientMessage(playerid, COLOR_YELLOW, "You aren't near a crate.");
-
- new attach;
- attach = FreeAttachmentSlot(playerid);
-
- if(attach == -1)
- return SendClientMessage(playerid, COLOR_YELLOW, "You can't carry this. You have one too many things on you.");
-
- cmd_me(playerid, "picks up the crate.");
-
- DestroyDynamic3DTextLabel(WeaponCrates[crate_id][CrateLabel]);
- DestroyDynamicObject(WeaponCrates[crate_id][CrateObject]);
-
- PlayAnimation(playerid, "MISC", "pickup_box", 4.1, 0, 0, 0, 0, 0, 1);
-
- SetTimerEx("PickupBox", 1000, false, "ii", playerid, attach);
- WeaponCrates[crate_id][CrateAttachedTo] = playerid;
-
- //SetPlayerAttachedObject(playerid, attach, 2912, 1, 0.312999, 0.565000, -0.360999, -0.399999, 0.000000, 0.000000);
- //SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
- }
- else if(!strcmp(params, "drop", true))
- {
- if(IsPlayerHoldingCrate(playerid) == -1)
- return SendClientMessage(playerid, COLOR_YELLOW, "You aren't holding a crate.");
-
- new Float:Pos[3];
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
-
- new crate;
- crate = IsPlayerHoldingCrate(playerid);
-
- PlayAnimation(playerid, "MISC", "pickup_box", 4.1, 0, 0, 0, 0, 0, 1);
-
- WeaponCrates[crate][CrateObject] = CreateDynamicObject(2912, Pos[0], Pos[1], Pos[2]-1, 0.0, 0.0, 0.0);
- WeaponCrates[crate][CrateAttachedTo] = -1;
-
- new label[60];
- format(label, sizeof label, "%s", ReturnFactionName(WeaponCrates[crate][CrateFaction]));
- WeaponCrates[crate][CrateLabel] = CreateDynamic3DTextLabel(label, COLOR_YELLOW, Pos[0], Pos[1], Pos[2]-1, 20.0);
-
- RemovePlayerAttachedObject(playerid, GetPVarInt(playerid, "CrateAttachSlot"));
- DeletePVar(playerid, "CrateAttachSlot");
-
- cmd_me(playerid, "puts down a crate.");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- }
- else if(!strcmp(params, "load", true))
- {
- if(IsPlayerHoldingCrate(playerid) == -1)
- return SendClientMessage(playerid, COLOR_YELLOW, "You aren't holding a crate.");
-
- new vehicleid;
- vehicleid = GetNearestVehicle(playerid);
-
- new crate;
- crate = IsPlayerHoldingCrate(playerid);
-
- if(vehicleid == INVALID_VEHICLE_ID)
- return SendClientMessage(playerid, COLOR_YELLOW, "You aren't near a vehicle.");
-
- if(!IsVehicleCargoCompatiable(vehicleid))
- return SendClientMessage(playerid, COLOR_YELLOW, "This vehicle can't hold these type of crates.");
-
- new Float:x, Float:y, Float:z;
- GetVehicleBoot(vehicleid, x, y, z);
-
- if(!IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z))
- return SendClientMessage(playerid, COLOR_YELLOW, "You aren't near this vehicles trunk.");
-
- SendClientMessage(playerid, COLOR_YELLOW, "Place the object in the back of the vehicle.");
- SendClientMessage(playerid, COLOR_YELLOW, "Placing your object offset from the vehicle will have the entire operation cancelled.");
-
- new Float:Pos[3];
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
-
- WeaponCrates[crate][CrateObject] = CreateDynamicObject(2912, Pos[0]+1, Pos[1], Pos[2]-1, 0.0, 0.0, 0.0);
- EditDynamicObject(playerid, WeaponCrates[crate][CrateObject]);
-
- RemovePlayerAttachedObject(playerid, GetPVarInt(playerid, "CrateAttachSlot"));
- DeletePVar(playerid, "CrateAttachSlot");
-
- SetPVarInt(playerid, "EditingCrateToVehicle", 1);
- SetPVarInt(playerid, "EditingCrateVehicleID", vehicleid);
-
- SetPVarInt(playerid, "EditingCrateID", crate);
-
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- }
- else if(!strcmp(params, "unload", true))
- {
- new vehicleid, crateid;
- IsPlayerNearVehicledCrate(playerid, vehicleid, crateid);
-
- if(vehicleid == INVALID_VEHICLE_ID)
- return SendClientMessage(playerid, COLOR_YELLOW, "You aren't near a vehicle that has a crate.");
-
- new attach;
- attach = FreeAttachmentSlot(playerid);
-
- if(attach == -1)
- return SendClientMessage(playerid, COLOR_YELLOW, "You can't carry this. You have one too many things on you.");
-
- new Float:x, Float:y, Float:z;
- GetVehicleBoot(vehicleid, x, y, z);
-
- if(!IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z))
- return SendClientMessage(playerid, COLOR_YELLOW, "You aren't near this vehicles trunk.");
-
- cmd_me(playerid, "unloads the crate from the vehicle.");
- WeaponCrates[crateid][CrateAttachedTo] = playerid;
- WeaponCrates[crateid][CrateVehicle] = -1;
-
- DestroyDynamicObject(WeaponCrates[crateid][CrateObject]);
-
- PlayAnimation(playerid, "MISC", "pickup_box", 4.1, 0, 0, 0, 0, 0, 1);
- SetTimerEx("PickupBox", 1000, false, "ii", playerid, attach);
- }
- else if(!strcmp(params, "content", true))
- {
- new crate_id = -1;
- new Float:Pos[3];
-
- if(GetPVarInt(playerid, "ViewingCrateContent") > 0)
- return SendClientMessage(playerid, COLOR_YELLOW, "You're already looking at it.");
-
- for(new i; i < MAX_WEAPON_CRATES; i++)
- {
- if(!WeaponCrates[i][CrateExists])
- continue;
-
- if(IsValidDynamicObject( WeaponCrates[i][CrateObject] ) && WeaponCrates[i][CrateAttachedTo] == -1)
- {
- GetDynamicObjectPos(WeaponCrates[i][CrateObject], Pos[0], Pos[1], Pos[2]);
-
- if(IsPlayerInRangeOfPoint(playerid, 3.0, Pos[0], Pos[1], Pos[2]))
- {
- crate_id = i;
- break;
- }
- else crate_id = IsPlayerHoldingCrate(playerid);
- }
- }
- if(crate_id == -1)
- return SendClientMessage(playerid, COLOR_YELLOW, "You aren't near a crate.");
-
- ShowCrateInventory(playerid, crate_id);
- cmd_me(playerid, "looks at the crates contents.");
- }
- else if(!strcmp(params, "open", true))
- {
- new crate_id = -1;
- new Float:Pos[3];
-
- for(new i; i < MAX_WEAPON_CRATES; i++)
- {
- if(!WeaponCrates[i][CrateExists])
- continue;
-
- if(IsValidDynamicObject( WeaponCrates[i][CrateObject] ) && WeaponCrates[i][CrateAttachedTo] == -1)
- {
- GetDynamicObjectPos(WeaponCrates[i][CrateObject], Pos[0], Pos[1], Pos[2]);
-
- if(IsPlayerInRangeOfPoint(playerid, 3.0, Pos[0], Pos[1], Pos[2]))
- {
- crate_id = i;
- break;
- }
- else crate_id = IsPlayerHoldingCrate(playerid);
- }
- }
- if(crate_id == -1)
- return SendClientMessage(playerid, COLOR_YELLOW, "You aren't near a crate.");
-
- if(!IsPlayerInWarehouse(playerid))
- return SendClientMessage(playerid, COLOR_YELLOW, "You aren't inside a warehouse.");
-
- if(WeaponCrates[crate_id][CrateBeingOpened])
- return SendClientMessage(playerid, COLOR_YELLOW, "This crates being opened already.");
-
- if(gOpeningCrate[playerid] != -1)
- return SendClientMessage(playerid, COLOR_YELLOW, "You're already opening a crate.");
-
- new crateQuantity, openTime;
- CountCrateItems(crate_id, crateQuantity);
-
- switch( crateQuantity )
- {
- case 1 .. 5: openTime = 6;
- case 6 .. 10: openTime = 11;
- case 11 .. 15: openTime = 21;
- case 16 .. 20: openTime = 31;
- }
- GetPlayerPos(playerid, gOpeningCratePos[playerid][0], gOpeningCratePos[playerid][1], gOpeningCratePos[playerid][2]);
-
- WeaponCrates[crate_id][CrateBeingOpened] = 1;
-
- gOpeningCrateTimer[playerid] = SetTimerEx("OnOpeningCrate", 1000, true, "iii", playerid, openTime, crate_id);
- gOpeningCrate[playerid] = crate_id;
-
- ShowTextdrawInfo(playerid, "~y~Opening the crate...", 5000);
- }
- else return SendClientMessage(playerid, COLOR_YELLOW, "That isn't an option.");
- return 1;
- }
- Server:OnOpeningCrate(playerid, opentime) //opentime = seconds
- {
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, gOpeningCratePos[playerid][0], gOpeningCratePos[playerid][1], gOpeningCratePos[playerid][2]))
- {
- ShowTextdrawInfo(playerid, "~r~Operation Interrupted");
-
- KillTimer(gOpeningCrateTimer[playerid]);
-
- WeaponCrates[ gOpeningCrate[playerid] ][CrateBeingOpened] = 0;
- for(new i; i < 3; i++) gOpeningCratePos[playerid][i] = 0.0;
-
- gOpeningCrate[playerid] = -1;
- return 1;
- }
- gCrateOpenIntervals[playerid] ++;
-
- switch( gCrateOpenIntervals[playerid] )
- {
- case 1 .. 2: ShowTextdrawInfo(playerid, "~y~Opening the crate", 5000);
- case 3 .. 4: ShowTextdrawInfo(playerid, "~y~Opening the crate.", 5000);
- case 5 .. 6: ShowTextdrawInfo(playerid, "~y~Opening the crate..", 5000);
- case 7 .. 9: ShowTextdrawInfo(playerid, "~y~Opening the crate...", 5000);
- case 10 .. 14: ShowTextdrawInfo(playerid, "~y~Opening the crate....", 5000);
- case 15 .. 17: ShowTextdrawInfo(playerid, "~y~Opening the crate.....", 5000);
- case 18 .. 24: ShowTextdrawInfo(playerid, "~g~Opening the crate......", 5000);
- case 25 .. 31: ShowTextdrawInfo(playerid, "~g~Opening the crate...", 5000);
- }
-
- if(gCrateOpenIntervals[playerid] >= opentime)
- {
- new freePackages;
- new crateQuantity;
- CountCrateItems(gOpeningCrate[playerid], crateQuantity);
-
- for (new i = 1; i < MAX_WEAPON_PACKAGES; i++)
- {
- if (!PackageData[playerid][packageWeapon][i])
- freePackages++;
- }
- if(freePackages < crateQuantity)
- {
- KillTimer(gOpeningCrateTimer[playerid]);
- ShowTextdrawInfo(playerid, "~r~You don't have space for all the packages in this crate.");
-
- WeaponCrates[ gOpeningCrate[playerid] ][CrateBeingOpened] = 0;
- for(new i; i < 3; i++) gOpeningCratePos[playerid][i] = 0.0;
-
- gOpeningCrate[playerid] = -1;
- printf("[Debug] %s didn't have enough package space.", ReturnName(playerid));
- return 1;
- }
-
- for(new i = 1, j = 1; i < MAX_WEAPON_PACKAGES, j < MAX_WEAPON_PACKAGES; i++, j++)
- {
- if(!PackageData[playerid][packageWeapon][i])
- {
- if(!WeaponCrates[ gOpeningCrate[playerid] ][CrateItems][j])
- continue;
-
- PackageData[playerid][packageWeapon][i] = WeaponCrates[ gOpeningCrate[playerid] ][CrateItems][j];
- PackageData[playerid][packageAmmo][i] = ReturnOrderWepAmmo(WeaponCrates[ gOpeningCrate[playerid] ][CrateItems][j]);
-
- printf("[Debug] %s got %s from a weapon crate.", ReturnName(playerid), ReturnWeaponName(WeaponCrates[ gOpeningCrate[playerid] ][CrateItems][j]));
- }
- }
-
- ShowTextdrawInfo(playerid, "~g~Crate has been opened!~n~~y~The packages are now in your inventory.~n~(/mypackages)");
- ClearActiveCrate( gOpeningCrate[playerid] );
-
- for(new i; i < 3; i++) gOpeningCratePos[playerid][i] = 0.0;
- gOpeningCrate[playerid] = -1;
-
- WriteLog("faction_logs/warehouse_logs/openedcrate.txt", "[%s] %s received weapons (%i) from a crate.", ReturnDateLog(), ReturnName(playerid), crateQuantity);
- KillTimer(gOpeningCrateTimer[playerid]);
- }
-
- return 1;
- }
- ReturnOrderWepAmmo(weaponid) {
- new ammo;
-
- switch(weaponid) {
- case 24: ammo = 75;
- case 22: ammo = 80;
- case 25: ammo = 60;
- case 30: ammo = 100;
- case 31: ammo = 130;
- case 34: ammo = 15;
- case 4: ammo = 1;
- }
- return ammo;
- }
- Server:PickupBox(playerid, attachid)
- {
- if(!IsPlayerConnected(playerid))
- return 1;
-
- SetPlayerAttachedObject(playerid, attachid, 2912, 1, 0.312999, 0.565000, -0.360999, -0.399999, 0.000000, 0.000000);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
-
- SetPVarInt(playerid, "CrateAttachSlot", attachid);
- return 1;
- }
- DoesVehicleHaveCrate(vehicleid)
- {
- new fact = 0;
-
- for(new i; i < MAX_WEAPON_CRATES; i++)
- {
- if(!WeaponCrates[i][CrateExists])
- continue;
-
- if(WeaponCrates[i][CrateVehicle] == vehicleid)
- {
- fact++;
- }
- }
- return fact;
- }
- IsPlayerNearVehicledCrate(playerid, &vehicleid = INVALID_VEHICLE_ID, &crateid = -1)
- {
- vehicleid = GetNearestVehicle(playerid);
-
- for(new i; i < MAX_WEAPON_CRATES; i++)
- {
- if(!WeaponCrates[i][CrateExists])
- continue;
-
- if(WeaponCrates[i][CrateVehicle] == vehicleid)
- {
- crateid = i;
- break;
- }
- }
- return 1;
- }
- stock IsPlayerHoldingCrate(playerid)
- {
- new is = -1;
- for(new i; i < MAX_WEAPON_CRATES; i++)
- {
- if(!WeaponCrates[i][CrateExists])
- continue;
-
- if(WeaponCrates[i][CrateAttachedTo] == playerid)
- {
- is = i;
- break;
- }
- }
- return is;
- }
- //Time Convert
- TimeConvert(seconds)
- {
- new M, S;
- new string[128];
-
- M = seconds / 60 ;
- S = seconds % 60 ;
- M = M % 60 ;
-
- format(string, sizeof string, "%02d:%02d", M, S);
- return string;
- }
- //
- EmptyWarehouseItems(playerid)
- {
- PlayerTextDrawSetString(playerid, WarehouseMenu_P[playerid][2], "~r~Empty");
- PlayerTextDrawShow(playerid, WarehouseMenu_P[playerid][2]);
-
- SetPVarInt(playerid, "WarehouseCart", 0);
-
- for(new i; i < 21; i++)
- WarehouseWeapons[playerid][i] = 0;
-
- printf("[Debug menu] %s emptied their warehouse order items.", ReturnName(playerid));
- return 1;
- }
- CMD:checkprods(playerid, params[])
- {
- if(!IsIllegalFaction(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't in a faction.");
-
- if(!IsPlayerInTheirBlackMarket(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't in your factions black market.");
-
- Message(playerid, COLOR_ACTION, "%s's Products: %i", ReturnFaction(playerid), ReturnFactionProducts(PlayerData[playerid][pFaction]));
- return 1;
- }
- CMD:order(playerid, params[])
- {
- if(!IsIllegalFaction(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't in a faction.");
-
- if(!IsPlayerInTheirBlackMarket(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't in your factions black market.");
-
- if(GetPVarInt(playerid, "ViewingWarehouseMenu") > 0)
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You're already viewing it.");
-
- if(FactionData[ PlayerData[playerid][pFaction] ][factionHasWeaponOrder])
- return SendClientMessage(playerid, COLOR_ADM, "Your faction can only have 1 active weapon order.");
-
- if( WarehouseCallStep[playerid] > 0 )
- return SendClientMessage(playerid, COLOR_ADM, "You're already in the call process.");
-
- SendClientMessage(playerid, COLOR_ADM, "VIEWING:{FFFFFF} You're viewing your factions weapon warehouse order interface.");
- SendClientMessage(playerid, COLOR_ADM, "VIEWING:{FFFFFF} Click a weapon to add it to the cart. You require products to make any purchase.");
-
- ShowWarehouseMenu(playerid);
- return 1;
- }
- CMD:orderproducts(playerid, params[])
- {
- if(!IsIllegalFaction(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't in a faction.");
-
- if(!IsPlayerInTheirBlackMarket(playerid))
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't in your factions black market.");
-
- if(PlayerData[playerid][pFactionRank] != 1)
- return SendClientMessage(playerid, COLOR_GREY, "You can't do that.");
- new quantity;
- new confirmString[128];
-
- if(sscanf(params, "i", quantity))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /orderproducts [quantity]") ;
-
- if(quantity < 1)
- return SendClientMessage(playerid, COLOR_GREY, "ERROR: You specified an invalid amount.");
-
- format(confirmString, sizeof confirmString, "Are you sure you want to buy $%s worth of products? (%s)", MoneyFormat(2 * quantity), MoneyFormat(quantity));
- ConfirmDialog(playerid, "Confirmation", confirmString, "OnProductPurchase", quantity, 2 * quantity);
- return 1;
- }
- Server:OnProductPurchase(playerid, response, quantity, price)
- {
- if(response)
- {
- if(price > PlayerData[playerid][pMoney])
- return ShowTextdrawInfo(playerid, "~r~You can't afford this.");
-
- GiveMoney(playerid, -price);
-
- new string[128];
-
- format(string, sizeof string, "~g~You spent $%s on %s products!", MoneyFormat(price), MoneyFormat(quantity));
- ShowTextdrawInfo(playerid, string);
-
- FactionData[ PlayerData[playerid][pFaction] ][factionProducts]+= quantity;
- WriteLog("faction_logs/productbuy.txt", "[%s] %s bought %s products for $%s.", ReturnDateLog(), ReturnName(playerid), MoneyFormat(quantity), MoneyFormat(price));
- }
- return 1;
- }
- stock UpdateHUDForPlayer(playerid)
- {
- new
- string[128],
- fuel,
- vehicleid = GetPlayerVehicleID(playerid);
-
- if(!IsValidPlayerCar(vehicleid))
- fuel = 100;
-
- else fuel = floatround(CarData[vehicleid][carFuel]);
- switch(PlayerData[playerid][pHUD])
- {
- case 0:
- {
- format(string, sizeof(string), "~g~%d~n~%d", GetVehicleSpeedMPH(vehicleid), fuel);
- PlayerTextDrawSetString(playerid, VehicleHUD[playerid][1], string);
- }
- case 1:
- {
- format(string, sizeof(string), "~g~%d__~r~%d", GetVehicleSpeedMPH(vehicleid), fuel);
- PlayerTextDrawSetString(playerid, VehicleHUD[playerid][2], string);
- PlayerTextDrawShow(playerid, VehicleHUD[playerid][2]);
- }
- case 2:
- {
- format(string, sizeof(string), "%s_~r~%d_%d~y~KMH/~r~%d~y~MPH~n~~w~Radio_Info:~y~%d~n~~w~Slot:~y~%d",
- ReturnVehicleName(vehicleid), fuel, GetVehicleSpeedMPH(vehicleid), GetVehicleSpeedMPH(vehicleid) * 0.6214,
- PlayerData[playerid][pRadio][PlayerData[playerid][pMainSlot]], PlayerData[playerid][pMainSlot]);
- PlayerTextDrawSetString(playerid, VehicleHUD[playerid][3], string);
- }
- case 3:
- {
- new Float: carhp;
- GetVehicleHealth(vehicleid, carhp);
- format(string, sizeof(string), "%s", ReturnVehicleName(vehicleid));
- PlayerTextDrawSetString(playerid, VehicleHUD[playerid][4], string);
- format(string, sizeof(string), "~w~%d ~l~%d ~w~%d ~l~%d", floatround(CarData[vehicleid][carEngine]), fuel, floatround(carhp), GetVehicleSpeedMPH(vehicleid));
- PlayerTextDrawSetString(playerid, VehicleHUD[playerid][5], string);
- }
- }
- return 1;
- }
- stock GetVehicleSpeedMPH(vehicleid)
- {
- // Function: GetVehicleSpeed( vehicleid )
-
- new
- Float:x,
- Float:y,
- Float:z,
- vel;
- GetVehicleVelocity( vehicleid, x, y, z );
- // vel = floatround( floatsqroot( x*x + y*y + z*z ) * 180 ); // KM/H
- vel = floatround( floatsqroot( x*x + y*y + z*z ) * 180 / 1.609344 ); // MPH
- return vel;
- }
- //
- stock GetFightstyleName(style_id)
- {
- new name[32];
-
- switch(style_id)
- {
- case 0: name = "Default";
- case 4: name = "Normal";
- case 5: name = "Boxing";
- case 6: name = "Kungfu";
- case 7: name = "Kneehead";
- case 15: name = "Grabkick";
- case 16: name = "Elbow";
- }
- return name;
- }
- /*CMD:test(playerid, params[])
- {
- SetPlayerAttachedObject(playerid, 9, 18868, 6, 0.064999, 0.043999, 0.004999, -112.0, 0.0, -178.9);
- return 1;
- }*/
- /*CMD:show(playerid, params[])
- {
- for(new i = 0; i < 20; i++)
- {
- PlayerTextDrawShow(playerid, GUI_PHONE[playerid][i]);
- }
- PlayerTextDrawShow(playerid, GUI_PHONE_DATE[playerid]);
- return 1;
- }*/
- stock CreateVehicleMenu(playerid)
- {
- Player_Vehicles[playerid][0] = CreatePlayerTextDraw(playerid, 79.934127, 96.666671, "");
- PlayerTextDrawLetterSize(playerid, Player_Vehicles[playerid][0], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Player_Vehicles[playerid][0], 121.000000, 120.000000);
- PlayerTextDrawAlignment(playerid, Player_Vehicles[playerid][0], 1);
- PlayerTextDrawColor(playerid, Player_Vehicles[playerid][0], -1);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, Player_Vehicles[playerid][0], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Vehicles[playerid][0], 8873060);
- PlayerTextDrawFont(playerid, Player_Vehicles[playerid][0], 5);
- PlayerTextDrawSetProportional(playerid, Player_Vehicles[playerid][0], 0);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles[playerid][0], 0);
- PlayerTextDrawSetSelectable(playerid, Player_Vehicles[playerid][0], true);
- PlayerTextDrawSetPreviewModel(playerid, Player_Vehicles[playerid][0], 562);
- PlayerTextDrawSetPreviewRot(playerid, Player_Vehicles[playerid][0], -15.000000, 0.000000, -45.000000, 0.899999);
- PlayerTextDrawSetPreviewVehCol(playerid, Player_Vehicles[playerid][0], 1, 1);
- Player_Vehicles[playerid][1] = CreatePlayerTextDraw(playerid, 200.812606, 96.666694, "");
- PlayerTextDrawLetterSize(playerid, Player_Vehicles[playerid][1], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Player_Vehicles[playerid][1], 121.000000, 120.000000);
- PlayerTextDrawAlignment(playerid, Player_Vehicles[playerid][1], 1);
- PlayerTextDrawColor(playerid, Player_Vehicles[playerid][1], -1);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, Player_Vehicles[playerid][1], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Vehicles[playerid][1], 8873060);
- PlayerTextDrawFont(playerid, Player_Vehicles[playerid][1], 5);
- PlayerTextDrawSetProportional(playerid, Player_Vehicles[playerid][1], 0);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles[playerid][1], 0);
- PlayerTextDrawSetSelectable(playerid, Player_Vehicles[playerid][1], true);
- PlayerTextDrawSetPreviewModel(playerid, Player_Vehicles[playerid][1], 562);
- PlayerTextDrawSetPreviewRot(playerid, Player_Vehicles[playerid][1], -15.000000, 0.000000, -45.000000, 0.899999);
- PlayerTextDrawSetPreviewVehCol(playerid, Player_Vehicles[playerid][1], 1, 1);
- Player_Vehicles[playerid][2] = CreatePlayerTextDraw(playerid, 321.691406, 96.666664, "");
- PlayerTextDrawLetterSize(playerid, Player_Vehicles[playerid][2], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Player_Vehicles[playerid][2], 121.000000, 120.000000);
- PlayerTextDrawAlignment(playerid, Player_Vehicles[playerid][2], 1);
- PlayerTextDrawColor(playerid, Player_Vehicles[playerid][2], -1);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, Player_Vehicles[playerid][2], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Vehicles[playerid][2], 8873060);
- PlayerTextDrawFont(playerid, Player_Vehicles[playerid][2], 5);
- PlayerTextDrawSetProportional(playerid, Player_Vehicles[playerid][2], 0);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles[playerid][2], 0);
- PlayerTextDrawSetSelectable(playerid, Player_Vehicles[playerid][2], true);
- PlayerTextDrawSetPreviewModel(playerid, Player_Vehicles[playerid][2], 562);
- PlayerTextDrawSetPreviewRot(playerid, Player_Vehicles[playerid][2], -15.000000, 0.000000, -45.000000, 0.899999);
- PlayerTextDrawSetPreviewVehCol(playerid, Player_Vehicles[playerid][2], 1, 1);
- Player_Vehicles[playerid][3] = CreatePlayerTextDraw(playerid, 79.934127, 216.833267, "");
- PlayerTextDrawLetterSize(playerid, Player_Vehicles[playerid][3], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Player_Vehicles[playerid][3], 121.000000, 120.000000);
- PlayerTextDrawAlignment(playerid, Player_Vehicles[playerid][3], 1);
- PlayerTextDrawColor(playerid, Player_Vehicles[playerid][3], -1);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles[playerid][3], 0);
- PlayerTextDrawSetOutline(playerid, Player_Vehicles[playerid][3], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Vehicles[playerid][3], 8873060);
- PlayerTextDrawFont(playerid, Player_Vehicles[playerid][3], 5);
- PlayerTextDrawSetProportional(playerid, Player_Vehicles[playerid][3], 0);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles[playerid][3], 0);
- PlayerTextDrawSetSelectable(playerid, Player_Vehicles[playerid][3], true);
- PlayerTextDrawSetPreviewModel(playerid, Player_Vehicles[playerid][3], 562);
- PlayerTextDrawSetPreviewRot(playerid, Player_Vehicles[playerid][3], -15.000000, 0.000000, -45.000000, 0.899999);
- PlayerTextDrawSetPreviewVehCol(playerid, Player_Vehicles[playerid][3], 1, 1);
- Player_Vehicles[playerid][4] = CreatePlayerTextDraw(playerid, 200.812576, 216.833282, "");
- PlayerTextDrawLetterSize(playerid, Player_Vehicles[playerid][4], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Player_Vehicles[playerid][4], 121.000000, 120.000000);
- PlayerTextDrawAlignment(playerid, Player_Vehicles[playerid][4], 1);
- PlayerTextDrawColor(playerid, Player_Vehicles[playerid][4], -1);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles[playerid][4], 0);
- PlayerTextDrawSetOutline(playerid, Player_Vehicles[playerid][4], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Vehicles[playerid][4], 8873060);
- PlayerTextDrawFont(playerid, Player_Vehicles[playerid][4], 5);
- PlayerTextDrawSetProportional(playerid, Player_Vehicles[playerid][4], 0);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles[playerid][4], 0);
- PlayerTextDrawSetSelectable(playerid, Player_Vehicles[playerid][4], true);
- PlayerTextDrawSetPreviewModel(playerid, Player_Vehicles[playerid][4], 562);
- PlayerTextDrawSetPreviewRot(playerid, Player_Vehicles[playerid][4], -15.000000, 0.000000, -45.000000, 0.899999);
- PlayerTextDrawSetPreviewVehCol(playerid, Player_Vehicles[playerid][4], 1, 1);
- Player_Vehicles[playerid][5] = CreatePlayerTextDraw(playerid, 321.690917, 216.833297, "");
- PlayerTextDrawLetterSize(playerid, Player_Vehicles[playerid][5], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Player_Vehicles[playerid][5], 121.000000, 120.000000);
- PlayerTextDrawAlignment(playerid, Player_Vehicles[playerid][5], 1);
- PlayerTextDrawColor(playerid, Player_Vehicles[playerid][5], -1);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles[playerid][5], 0);
- PlayerTextDrawSetOutline(playerid, Player_Vehicles[playerid][5], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Vehicles[playerid][5], 8873060);
- PlayerTextDrawFont(playerid, Player_Vehicles[playerid][5], 5);
- PlayerTextDrawSetProportional(playerid, Player_Vehicles[playerid][5], 0);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles[playerid][5], 0);
- PlayerTextDrawSetSelectable(playerid, Player_Vehicles[playerid][5], true);
- PlayerTextDrawSetPreviewModel(playerid, Player_Vehicles[playerid][5], 562);
- PlayerTextDrawSetPreviewRot(playerid, Player_Vehicles[playerid][5], -15.000000, 0.000000, -45.000000, 0.899999);
- PlayerTextDrawSetPreviewVehCol(playerid, Player_Vehicles[playerid][5], 1, 1);
- Player_Vehicles_Name[playerid][0] = CreatePlayerTextDraw(playerid, 140.541748, 195.833267, "TDEditor");
- PlayerTextDrawLetterSize(playerid, Player_Vehicles_Name[playerid][0], 0.459502, 2.078332);
- PlayerTextDrawTextSize(playerid, Player_Vehicles_Name[playerid][0], 0.000000, 117.000000);
- PlayerTextDrawAlignment(playerid, Player_Vehicles_Name[playerid][0], 2);
- PlayerTextDrawColor(playerid, Player_Vehicles_Name[playerid][0], -1);
- PlayerTextDrawUseBox(playerid, Player_Vehicles_Name[playerid][0], 1);
- PlayerTextDrawBoxColor(playerid, Player_Vehicles_Name[playerid][0], 255);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles_Name[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, Player_Vehicles_Name[playerid][0], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Vehicles_Name[playerid][0], 255);
- PlayerTextDrawFont(playerid, Player_Vehicles_Name[playerid][0], 3);
- PlayerTextDrawSetProportional(playerid, Player_Vehicles_Name[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles_Name[playerid][0], 0);
- Player_Vehicles_Name[playerid][1] = CreatePlayerTextDraw(playerid, 260.951782, 195.833251, "TDEditor");
- PlayerTextDrawLetterSize(playerid, Player_Vehicles_Name[playerid][1], 0.459502, 2.078332);
- PlayerTextDrawTextSize(playerid, Player_Vehicles_Name[playerid][1], 0.000000, 117.000000);
- PlayerTextDrawAlignment(playerid, Player_Vehicles_Name[playerid][1], 2);
- PlayerTextDrawColor(playerid, Player_Vehicles_Name[playerid][1], -1);
- PlayerTextDrawUseBox(playerid, Player_Vehicles_Name[playerid][1], 1);
- PlayerTextDrawBoxColor(playerid, Player_Vehicles_Name[playerid][1], 255);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles_Name[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, Player_Vehicles_Name[playerid][1], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Vehicles_Name[playerid][1], 255);
- PlayerTextDrawFont(playerid, Player_Vehicles_Name[playerid][1], 3);
- PlayerTextDrawSetProportional(playerid, Player_Vehicles_Name[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles_Name[playerid][1], 0);
- Player_Vehicles_Name[playerid][2] = CreatePlayerTextDraw(playerid, 381.830444, 195.833282, "TDEditor");
- PlayerTextDrawLetterSize(playerid, Player_Vehicles_Name[playerid][2], 0.459502, 2.078332);
- PlayerTextDrawTextSize(playerid, Player_Vehicles_Name[playerid][2], 0.000000, 118.000000);
- PlayerTextDrawAlignment(playerid, Player_Vehicles_Name[playerid][2], 2);
- PlayerTextDrawColor(playerid, Player_Vehicles_Name[playerid][2], -1);
- PlayerTextDrawUseBox(playerid, Player_Vehicles_Name[playerid][2], 1);
- PlayerTextDrawBoxColor(playerid, Player_Vehicles_Name[playerid][2], 255);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles_Name[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, Player_Vehicles_Name[playerid][2], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Vehicles_Name[playerid][2], 255);
- PlayerTextDrawFont(playerid, Player_Vehicles_Name[playerid][2], 3);
- PlayerTextDrawSetProportional(playerid, Player_Vehicles_Name[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles_Name[playerid][2], 0);
- Player_Vehicles_Name[playerid][3] = CreatePlayerTextDraw(playerid, 140.073226, 316.583343, "TDEditor");
- PlayerTextDrawLetterSize(playerid, Player_Vehicles_Name[playerid][3], 0.459502, 2.078332);
- PlayerTextDrawTextSize(playerid, Player_Vehicles_Name[playerid][3], 0.000000, 118.000000);
- PlayerTextDrawAlignment(playerid, Player_Vehicles_Name[playerid][3], 2);
- PlayerTextDrawColor(playerid, Player_Vehicles_Name[playerid][3], -1);
- PlayerTextDrawUseBox(playerid, Player_Vehicles_Name[playerid][3], 1);
- PlayerTextDrawBoxColor(playerid, Player_Vehicles_Name[playerid][3], 255);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles_Name[playerid][3], 0);
- PlayerTextDrawSetOutline(playerid, Player_Vehicles_Name[playerid][3], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Vehicles_Name[playerid][3], 255);
- PlayerTextDrawFont(playerid, Player_Vehicles_Name[playerid][3], 3);
- PlayerTextDrawSetProportional(playerid, Player_Vehicles_Name[playerid][3], 1);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles_Name[playerid][3], 0);
- Player_Vehicles_Name[playerid][4] = CreatePlayerTextDraw(playerid, 260.951507, 316.583251, "TDEditor");
- PlayerTextDrawLetterSize(playerid, Player_Vehicles_Name[playerid][4], 0.459502, 2.078332);
- PlayerTextDrawTextSize(playerid, Player_Vehicles_Name[playerid][4], 0.000000, 118.000000);
- PlayerTextDrawAlignment(playerid, Player_Vehicles_Name[playerid][4], 2);
- PlayerTextDrawColor(playerid, Player_Vehicles_Name[playerid][4], -1);
- PlayerTextDrawUseBox(playerid, Player_Vehicles_Name[playerid][4], 1);
- PlayerTextDrawBoxColor(playerid, Player_Vehicles_Name[playerid][4], 255);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles_Name[playerid][4], 0);
- PlayerTextDrawSetOutline(playerid, Player_Vehicles_Name[playerid][4], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Vehicles_Name[playerid][4], 255);
- PlayerTextDrawFont(playerid, Player_Vehicles_Name[playerid][4], 3);
- PlayerTextDrawSetProportional(playerid, Player_Vehicles_Name[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles_Name[playerid][4], 0);
- Player_Vehicles_Name[playerid][5] = CreatePlayerTextDraw(playerid, 382.298797, 316.583282, "TDEditor");
- PlayerTextDrawLetterSize(playerid, Player_Vehicles_Name[playerid][5], 0.459502, 2.078332);
- PlayerTextDrawTextSize(playerid, Player_Vehicles_Name[playerid][5], 0.000000, 118.000000);
- PlayerTextDrawAlignment(playerid, Player_Vehicles_Name[playerid][5], 2);
- PlayerTextDrawColor(playerid, Player_Vehicles_Name[playerid][5], -1);
- PlayerTextDrawUseBox(playerid, Player_Vehicles_Name[playerid][5], 1);
- PlayerTextDrawBoxColor(playerid, Player_Vehicles_Name[playerid][5], 255);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles_Name[playerid][5], 0);
- PlayerTextDrawSetOutline(playerid, Player_Vehicles_Name[playerid][5], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Vehicles_Name[playerid][5], 255);
- PlayerTextDrawFont(playerid, Player_Vehicles_Name[playerid][5], 3);
- PlayerTextDrawSetProportional(playerid, Player_Vehicles_Name[playerid][5], 1);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles_Name[playerid][5], 0);
-
- Player_Vehicles_Arrow[playerid][0] = CreatePlayerTextDraw(playerid, 192.401168, 188.833297/*188.249984*/, "LD_BEAT:RIGHT");
- PlayerTextDrawLetterSize(playerid, Player_Vehicles_Arrow[playerid][0], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Player_Vehicles_Arrow[playerid][0], 44.000000, 45.000000);
- PlayerTextDrawAlignment(playerid, Player_Vehicles_Arrow[playerid][0], 1);
- PlayerTextDrawColor(playerid, Player_Vehicles_Arrow[playerid][0], -1);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles_Arrow[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, Player_Vehicles_Arrow[playerid][0], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Vehicles_Arrow[playerid][0], 255);
- PlayerTextDrawFont(playerid, Player_Vehicles_Arrow[playerid][0], 4);
- PlayerTextDrawSetProportional(playerid, Player_Vehicles_Arrow[playerid][0], 0);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles_Arrow[playerid][0], 0);
- Player_Vehicles_Arrow[playerid][1] = CreatePlayerTextDraw(playerid, 310.000244, 188.833297/*188.249984*/, "LD_BEAT:RIGHT");
- PlayerTextDrawLetterSize(playerid, Player_Vehicles_Arrow[playerid][1], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Player_Vehicles_Arrow[playerid][1], 44.000000, 45.000000);
- PlayerTextDrawAlignment(playerid, Player_Vehicles_Arrow[playerid][1], 1);
- PlayerTextDrawColor(playerid, Player_Vehicles_Arrow[playerid][1], -1);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles_Arrow[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, Player_Vehicles_Arrow[playerid][1], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Vehicles_Arrow[playerid][1], 255);
- PlayerTextDrawFont(playerid, Player_Vehicles_Arrow[playerid][1], 4);
- PlayerTextDrawSetProportional(playerid, Player_Vehicles_Arrow[playerid][1], 0);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles_Arrow[playerid][1], 0);
- Player_Vehicles_Arrow[playerid][2] = CreatePlayerTextDraw(playerid, 432.752929, 188.833297/*188.249984*/, "LD_BEAT:RIGHT");
- PlayerTextDrawLetterSize(playerid, Player_Vehicles_Arrow[playerid][2], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Player_Vehicles_Arrow[playerid][2], 44.000000, 45.000000);
- PlayerTextDrawAlignment(playerid, Player_Vehicles_Arrow[playerid][2], 1);
- PlayerTextDrawColor(playerid, Player_Vehicles_Arrow[playerid][2], -1);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles_Arrow[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, Player_Vehicles_Arrow[playerid][2], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Vehicles_Arrow[playerid][2], 255);
- PlayerTextDrawFont(playerid, Player_Vehicles_Arrow[playerid][2], 4);
- PlayerTextDrawSetProportional(playerid, Player_Vehicles_Arrow[playerid][2], 0);
- PlayerTextDrawSetShadow(playerid, Player_Vehicles_Arrow[playerid][2], 0);
- Player_Static_Arrow[playerid] = CreatePlayerTextDraw(playerid, 47.606147, 188.833297, "LD_BEAT:LEFT");
- PlayerTextDrawLetterSize(playerid, Player_Static_Arrow[playerid], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, Player_Static_Arrow[playerid], 44.000000, 45.000000);
- PlayerTextDrawAlignment(playerid, Player_Static_Arrow[playerid], 1);
- PlayerTextDrawColor(playerid, Player_Static_Arrow[playerid], -1);
- PlayerTextDrawSetShadow(playerid, Player_Static_Arrow[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Player_Static_Arrow[playerid], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Static_Arrow[playerid], 255);
- PlayerTextDrawFont(playerid, Player_Static_Arrow[playerid], 4);
- PlayerTextDrawSetProportional(playerid, Player_Static_Arrow[playerid], 0);
- PlayerTextDrawSetShadow(playerid, Player_Static_Arrow[playerid], 0);
- /*
- PlayerTextDrawSetSelectable(playerid, Player_Static_Arrow[playerid], true);
- PlayerTextDrawSetSelectable(playerid, Player_Vehicles_Arrow[playerid][0], true);
- PlayerTextDrawSetSelectable(playerid, Player_Vehicles_Arrow[playerid][1], true);
- PlayerTextDrawSetSelectable(playerid, Player_Vehicles_Arrow[playerid][2], true);
- */
- }
- //
- stock ShowPlayerVehicleList(playerid)
- {
- new string[132];
- for(new i = 0; i < 7; i++) // 1-6 first list
- {
- if(PlayerData[playerid][pOwnedCar][i])
- {
- printf("player %d owns vehicle id %i", playerid, i);
- mysql_format(m_Handle, string, sizeof(string), "SELECT * FROM ownedcars WHERE id = %i", PlayerData[playerid][pOwnedCar][i]);
- mysql_tquery(m_Handle, string, "OnShowVehicleListUI", "ii", playerid, (i+1));
- }
- }
- return 1;
- }
- stock ShowPlayerVehicleList2(playerid)
- {
- new string[132];
-
- for(new i = 0; i < 6; i++)
- {
- PlayerTextDrawHide(playerid, Player_Vehicles[playerid][i]);
- PlayerTextDrawHide(playerid, Player_Vehicles_Name[playerid][i]);
- }
- for(new i = 7; i < (MAX_OWNED_CARS - 1); i++) // 7-MAX second list
- {
- if(PlayerData[playerid][pOwnedCar][i])
- {
- mysql_format(m_Handle, string, sizeof(string), "SELECT * FROM ownedcars WHERE id = %i", PlayerData[playerid][pOwnedCar][i]);
- mysql_tquery(m_Handle, string, "OnShowVehicleListUI", "ii", playerid, i);
- }
- }
- return 1;
- }
- Server:OnShowVehicleListUI(playerid, idx)
- {
- new rows, fields;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
-
- new
- vehicleModel,
- vehicleColor1,
- vehicleColor2;
-
- cache_get_value_name_int(0, "ModelID", vehicleModel);
- cache_get_value_name_int(0, "Color1", vehicleColor1);
- cache_get_value_name_int(0, "Color2", vehicleColor2);
-
- if(GetPVarInt(playerid, "Viewing_OwnedCarList") == 2)
- {
- PlayerTextDrawHide(playerid, Player_Static_Arrow[playerid]);
-
- PlayerTextDrawSetSelectable(playerid, Player_Vehicles_Arrow[playerid][2], false);
- PlayerTextDrawSetSelectable(playerid, Player_Static_Arrow[playerid], true);
-
- PlayerTextDrawHide(playerid, Player_Vehicles_Arrow[playerid][0]);
- PlayerTextDrawHide(playerid, Player_Vehicles_Arrow[playerid][1]);
- PlayerTextDrawHide(playerid, Player_Vehicles_Arrow[playerid][2]);
-
- switch(idx)
- {
- case 6: idx = 1;
- case 7: idx = 2;
- case 8: idx = 3;
- case 9: idx = 4;
- }
- }
-
- if(GetPVarInt(playerid, "Viewing_OwnedCarList") != 2)
- PlayerTextDrawSetSelectable(playerid, Player_Static_Arrow[playerid], false);
- /*switch(idx)
- {
- case 7: idx = 1;
- case 8: idx = 2;
- case 9: idx = 3;
- case 10: idx = 4;
- }*/
-
- PlayerTextDrawShow(playerid, Player_Static_Arrow[playerid]);
-
- if(idx == 1)
- {
- PlayerTextDrawShow(playerid, Player_Vehicles_Arrow[playerid][0]);
- }
- if(idx == 2)
- {
- PlayerTextDrawHide(playerid, Player_Vehicles_Arrow[playerid][0]);
- PlayerTextDrawShow(playerid, Player_Vehicles_Arrow[playerid][1]);
- }
- if(idx == 3)
- {
- PlayerTextDrawHide(playerid, Player_Vehicles_Arrow[playerid][0]);
- PlayerTextDrawHide(playerid, Player_Vehicles_Arrow[playerid][1]);
- PlayerTextDrawShow(playerid, Player_Vehicles_Arrow[playerid][2]);
- }
-
- if(CountPlayerCars(playerid) > 6 && GetPVarInt(playerid, "Viewing_OwnedCarList") != 2)
- {
- PlayerTextDrawSetSelectable(playerid, Player_Vehicles_Arrow[playerid][2], true);
- }
-
- new str[64];
-
- format(str, sizeof(str), "%s", ReturnVehicleModelName(vehicleModel));
- PlayerTextDrawSetString(playerid, Player_Vehicles_Name[playerid][idx-1], str);
- PlayerTextDrawSetPreviewModel(playerid, Player_Vehicles[playerid][idx-1], vehicleModel);
- PlayerTextDrawSetPreviewVehCol(playerid, Player_Vehicles[playerid][idx-1], vehicleColor1, vehicleColor2);
-
- PlayerTextDrawShow(playerid, Player_Vehicles[playerid][idx-1]);
- PlayerTextDrawShow(playerid, Player_Vehicles_Name[playerid][idx-1]);
- SelectTextDraw(playerid, COLOR_DARKGREEN);
-
- if(GetPVarInt(playerid, "Viewing_OwnedCarList") != 2)
- SetPVarInt(playerid, "Viewing_OwnedCarList", 1);
- return 1;
- }
- stock HideVehicleUI(playerid, cancel = 0)
- {
- if(GetPVarInt(playerid, "Viewing_OwnedCarList") > 0)
- {
- PlayerTextDrawSetSelectable(playerid, Player_Vehicles_Arrow[playerid][2], false);
- PlayerTextDrawSetSelectable(playerid, Player_Static_Arrow[playerid], false);
- }
-
- PlayerTextDrawHide(playerid, Player_Static_Arrow[playerid]);
-
- for(new i = 0; i < 6; i++)
- {
- PlayerTextDrawHide(playerid, Player_Vehicles[playerid][i]);
- PlayerTextDrawHide(playerid, Player_Vehicles_Name[playerid][i]);
- }
-
- PlayerTextDrawHide(playerid, Player_Vehicles_Arrow[playerid][0]);
- PlayerTextDrawHide(playerid, Player_Vehicles_Arrow[playerid][1]);
- PlayerTextDrawHide(playerid, Player_Vehicles_Arrow[playerid][2]);
-
- if(cancel == 1) CancelSelectTextDraw(playerid);
- return 1;
- }
- stock RefreshPlayerCarSlots(playerid)
- {
- new slots[MAX_OWNED_CARS];
-
- for(new i = 0, j = 0; i < (MAX_OWNED_CARS - 1); i++)
- {
- if(PlayerData[playerid][pOwnedCar][i])
- {
- slots[j] = PlayerData[playerid][pOwnedCar][i];
- PlayerData[playerid][pOwnedCar][i] = 0;
- j++;
-
- if(j >= MAX_OWNED_CARS)
- break;
- }
- }
-
- for(new i = 0; i < (MAX_OWNED_CARS - 1); i++)
- {
- PlayerData[playerid][pOwnedCar][i] = slots[i];
- }
- SendClientMessage(playerid, COLOR_ACTION, "PROCESSED: Your vehicle slots were refreshed.");
- SavePlayer(playerid);
- return 1;
- }
- //Prop Drugs
- Server:OnHouseDrugInsert(playerid, property_id, drug_quantity, drug_type)
- {
- WriteLog("property_logs/putdrug.txt", "[%s] %s placed %s (%d Grams) into Property DBID %i.", ReturnDate(), ReturnName(playerid), ReturnDrugsName(drug_type), drug_quantity, PropertyData[property_id][propertyid]);
-
- new logstring[128];
- format(logstring, 128, "Placed %s(%d) in Property %i", ReturnDrugsName(drug_type), drug_quantity, property_id);
- LogPlayerAction(playerid, logstring);
- return 1;
- }
- Server:OnHouseDrugRemove(playerid, property_id, drug_quantity, drug_type)
- {
- WriteLog("property_logs/takedrug.txt", "[%s] %s took %s (%d Grams) from Property DBID %i.", ReturnDate(), ReturnName(playerid), ReturnDrugsName(drug_type), drug_quantity, PropertyData[property_id][propertyid]);
-
- new logstring[128];
- format(logstring, 128, "Took %s(%d) from Property %i", ReturnDrugsName(drug_type), drug_quantity, property_id);
- LogPlayerAction(playerid, logstring);
- return 1;
- }
- //NC
- Server:OnNamechangeRequest(playerid, response)
- {
- if(response)
- {
- SetPVarInt(playerid, "RequestedNC", 2);
-
- new adm[200], newname[MAX_PLAYER_NAME+1];
- GetPVarString(playerid, "RequestedNCName", newname, MAX_PLAYER_NAME+1);
-
- format(adm, sizeof(adm), "%s requested a namechange to: %s", ReturnName(playerid), newname);
- adminWarn(1, adm);
- }
- else
- {
- DeletePVar(playerid, "RequestedNC");
- DeletePVar(playerid, "RequestedNCName");
- }
- return 1;
- }
- CMD:setweaponskill(playerid, params[])
- {
- new targetid, weaponskill, amount;
- if(PlayerData[playerid][pAdmin] != 6) return 0;
- if(sscanf(params, "uii", targetid, weaponskill, amount)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setweaponskill [playerid] [weapon skill id] [amount]");
- SendClientMessage(playerid, COLOR_WHITE, "WEAPONS: 0 - Pistol | 1 - Silenced | 2 - Desert Eagle | 3 - Shotgun | 4 - Sawnoff Shotgun | 5 - SPAS12");
- SendClientMessage(playerid, COLOR_WHITE, "6 - Micro Uzi | 7 - MP5 | 8 - AK47 | 9 - M4 | 10 - SNIPER RIFLE");
- }
- else {
- if(weaponskill > 10 || weaponskill < 0) return SendClientMessage(playerid, COLOR_WHITE, "Weapon skill ID invalid.");
- if(amount < 0 || amount > 1000) return SendClientMessage(playerid, COLOR_WHITE, "Amounts must be between 0 and 1000.");
- SetPlayerSkillLevel(targetid, weaponskill, amount);
- SendClientMessage(playerid, -1, sprintf("You have set %s weapon skill id %d to the amount of %d/1000.", ReturnName(targetid, 1), weaponskill, amount));
- }
- return 1;
- }
- //Kane CMD
- CMD:kanye(playerid, params[])
- {
- if(PlayerData[playerid][pAdmin] != 6)
- return 0;
-
- new playerb, task[128], specifier[30];
-
- if(sscanf(params, "us[30]S()[128]", playerb, specifier, task))
- {
- SendClientMessage(playerid, COLOR_GREY, "USAGE:{FFFFFF} /kanye [playerid/PartofName] [task ID]");
- SendClientMessage(playerid, COLOR_GREY, "1 - Fake Chat");
- SendClientMessage(playerid, COLOR_GREY, "2 - Fake Shout");
- SendClientMessage(playerid, COLOR_GREY, "3 - Fake /me");
- SendClientMessage(playerid, COLOR_GREY, "4 - Earthquake effect");
- SendClientMessage(playerid, COLOR_GREY, "5 - Player velocity");
- return 1;
- }
-
- if(!strcmp(specifier, "1", true))
- {
- new chat[128];
-
- if(sscanf(task, "s[128]", chat))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /kanye [playerid/PartofName] 1 [fake IC chat text]");
-
- if(strlen(chat) < 1 || strlen(chat) >= 128)
- return SendClientMessage(playerid, -1, "Get creative bro. Text is low or too high.");
-
- Message(playerid, COLOR_GREY, "Fake chat sent target '%s' saying: \"%s\"", ReturnName(playerb), chat);
- CallLocalFunction("OnPlayerText", "is", playerb, chat);
- return 1;
- }
- else if(!strcmp(specifier, "2", true))
- {
- new shout[128];
-
- if(sscanf(task, "s[128]", shout))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /kanye [playerid/PartofName] 2 [fake Shout text]");
-
- if(strlen(shout) < 1 || strlen(shout) >= 128)
- return SendClientMessage(playerid, -1, "Get creative bro. Text is low or too high.");
-
- Message(playerid, COLOR_GREY, "Fake shout sent target '%s' saying: \"%s\"", ReturnName(playerb), shout);
- cmd_shout(playerb, shout);
- }
- else if(!strcmp(specifier, "3", true))
- {
- new emote[128];
-
- if(sscanf(task, "s[128]", emote))
- return SendClientMessage(playerid, COLOR_ADM, "USAGE:{FFFFFF} /kanye [playerid/PartofName] 3 [fake Emote]");
-
- if(strlen(emote) < 1 || strlen(emote) >= 128)
- return SendClientMessage(playerid, -1, "Get creative bro. Text is low or too high.");
-
- Message(playerid, COLOR_GREY, "Fake emote sent target '%s' saying: \"%s\"", ReturnName(playerb), emote);
- cmd_me(playerb, emote);
- }
- else if(!strcmp(specifier, "4", true))
- {
- new vehicleid = GetPlayerVehicleID(playerb);
- new effect;
- if(vehicleid == 0) return SendClientMessage(playerid, COLOR_GREY, "They're not in a car.");
-
- if(sscanf(task, "i", effect))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /kanye [playerid/PartofName] [4] type 1-3");
-
- switch(effect)
- {
- case 1: SetVehicleAngularVelocity( vehicleid, 0.09, 0.033, 0.05 );
- case 2: SetVehicleAngularVelocity( vehicleid, 0.03, 0.03, 0.03 );
- case 3: SetVehicleAngularVelocity( vehicleid, 0.015, 0.015, 0.015 );
- default: return SendClientMessage(playerid, COLOR_ADM, "Not an option.");
- }
-
- SendClientMessage(playerid, COLOR_GREY, "Earthquake effect sent to their vehicle.");
- }
- else if(!strcmp(specifier, "5", true))
- {
- SendClientMessage(playerid, COLOR_GREY, "Velocity effect sent.");
-
- new Float:vx,Float:vy,Float:vz;
- GetPlayerVelocity(playerb, vx, vy, vz);
- SetPlayerVelocity(playerb,vx + 0.5,vy - 0.7 ,vz + 0.5);
- }
- return 1;
- }
- //
- stock IsSeatAvailable(vehicleid, seat_id)
- {
- foreach(new i : Player)
- {
- if(GetPlayerVehicleID(i) == vehicleid && GetPlayerVehicleSeat(i) == seat_id)
- return 0;
- }
- return 1;
- }
- //Faction configure
- CMD:configfaction(playerid, params[])
- {
- if(!PlayerData[playerid][pFaction])
- return SendClientMessage(playerid, COLOR_ADM, "ERROR: You aren't in a faction.");
- if(PlayerData[playerid][pFactionRank] > FactionData[PlayerData[playerid][pFaction]][factionEditrank])
- return SendClientMessage(playerid, COLOR_ADM, "ACCESS DENIED:{FFFFFF} Your rank doesn't have permission to do this.");
-
- ShowYourFactionMenu(playerid);
- return 1;
- }
- stock ShowYourFactionMenu(playerid)
- {
- new primary_str[600], sub_str[200];
-
- format(sub_str, sizeof(sub_str), "Faction Name:[{AFAFAF}%s{FFFFFF}]\n", ReturnFactionName(PlayerData[playerid][pFaction]));
- strcat(primary_str, sub_str);
-
- format(sub_str, sizeof(sub_str), "Faction Abbrev:[{AFAFAF}%s{FFFFFF}]\n", FactionData[PlayerData[playerid][pFaction]][factionAbbrev]);
- strcat(primary_str, sub_str);
-
- format(sub_str, sizeof(sub_str), "Alter Rank:[{AFAFAF}%s{FFFFFF}]\n", FactionRanks[PlayerData[playerid][pFaction]][FactionData[PlayerData[playerid][pFaction]][factionEditrank]]);
- strcat(primary_str, sub_str);
-
- format(sub_str, sizeof(sub_str), "Tow Rank:[{AFAFAF}%s{FFFFFF}]\n", FactionRanks[PlayerData[playerid][pFaction]][FactionData[PlayerData[playerid][pFaction]][factionTowrank]]);
- strcat(primary_str, sub_str);
-
- format(sub_str, sizeof(sub_str), "Chat Rank:[{AFAFAF}%s{FFFFFF}]\n", FactionRanks[PlayerData[playerid][pFaction]][FactionData[PlayerData[playerid][pFaction]][factionChatrank]]);
- strcat(primary_str, sub_str);
-
- format(sub_str, sizeof(sub_str), "Join Rank:[{AFAFAF}%s{FFFFFF}]\n", FactionRanks[PlayerData[playerid][pFaction]][FactionData[PlayerData[playerid][pFaction]][factionMaxRanks]]);
- strcat(primary_str, sub_str);
-
- strcat(primary_str, "{ADC3E7}Edit Faction Ranks");
-
- ShowPlayerDialog(playerid, DIALOG_FACTIONMENU, DIALOG_STYLE_LIST, "Faction Management", primary_str, "Select", "Cancel");
- return 1;
- }
- stock ShowYourFactionMenuAlt(playerid, listitem)
- {
- new primary_str[1100], sub_str[200];
- switch(listitem)
- {
- case 0: // Name
- {
- if(PlayerData[playerid][pFactionRank] != 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Only faction rank 1's can edit the factions name.");
- return ShowYourFactionMenu(playerid);
- }
-
- format(sub_str, sizeof sub_str, "{AFAFAF}You're editing your factions name from %s.\n\n", ReturnFactionName(PlayerData[playerid][pFaction]));
- strcat(primary_str, sub_str);
-
- strcat(primary_str, "Your factions name should only be changed after consulting faction management.\n");
- strcat(primary_str, "Faction leaders who abuse their permissions may be removed or even have their faction disbanded.\n\n");
-
- strcat(primary_str, "Please enter a faction name between 3 and 60 characters:\n");
-
- ShowPlayerDialog(playerid, DIALOG_FACTIONMENU_NAME, DIALOG_STYLE_INPUT, "Faction Management -> Faction Name", primary_str, "Select", "<<");
- }
- case 1: // Abbreviation
- {
- format(sub_str, sizeof sub_str, "{AFAFAF}You're editing your factions abbreviation from %s.\n\n", FactionData[PlayerData[playerid][pFaction]][factionAbbrev]);
- strcat(primary_str, sub_str);
-
- strcat(primary_str, "Abbreviations are obsolete to factions that aren't a government type. If your factions a,\n");
- strcat(primary_str, "law enforcement faction then your abbreviation appears in the /department chat.\n\n");
- strcat(primary_str, "Please keep your factions abbreviation below 7 characters. A good example is: \"POLICE\" or \"SAN\". ");
-
- ShowPlayerDialog(playerid, DIALOG_FACTIONMENU_ABBREV, DIALOG_STYLE_INPUT, "Faction Management -> Faction Abbrev", primary_str, "Select", "<<");
- }
- case 2: //Alter Rank
- {
- if(PlayerData[playerid][pFactionRank] != 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Only faction rank 1's can edit the factions name.");
- return ShowYourFactionMenu(playerid);
- }
-
- format(sub_str, sizeof sub_str, "{AFAFAF}You're editing your factions alter rank which is %s [%i].\n\n", FactionRanks[PlayerData[playerid][pFaction]][FactionData[PlayerData[playerid][pFaction]][factionEditrank]], FactionData[PlayerData[playerid][pFaction]][factionEditrank]);
- strcat(primary_str, sub_str);
-
- strcat(primary_str, "The alter rank allows player to use the commands:\n\n");
- strcat(primary_str, "\t\t/rank, /invite, /uninvite, /ouninvite, /configfaction, /nofam and /gov.\n\n");
- strcat(primary_str, "Assign it wisely. Please input the rank number you want to have these permissions.");
-
- ShowPlayerDialog(playerid, DIALOG_FACTIONMENU_ALTER, DIALOG_STYLE_INPUT, "Faction Management -> Alter Rank", primary_str, "Select", "<<");
- }
- case 3: //Tow Rank
- {
- format(sub_str, sizeof sub_str, "{AFAFAF}You're editing your factions alter rank which is %s [%i].\n\n", FactionRanks[PlayerData[playerid][pFaction]][FactionData[PlayerData[playerid][pFaction]][factionTowrank]], FactionData[PlayerData[playerid][pFaction]][factionTowrank]);
- strcat(primary_str, sub_str);
-
- strcat(primary_str, "Persons with this rank have access to the /towcars command.\nPlease input the rank number you want to have these permissions.");
- ShowPlayerDialog(playerid, DIALOG_FACTIONMENU_TOW, DIALOG_STYLE_INPUT, "Faction Management -> Tow Rank", primary_str, "Select", "<<");
- }
- case 4: //Chat Rank
- {
- format(sub_str, sizeof sub_str, "{AFAFAF}You're editing your factions chat rank which is %s [%i].\n\n", FactionRanks[PlayerData[playerid][pFaction]][FactionData[PlayerData[playerid][pFaction]][factionChatrank]], FactionData[PlayerData[playerid][pFaction]][factionChatrank]);
- strcat(primary_str, sub_str);
-
- strcat(primary_str, "Persons with this rank have access to the /faction chat.\nPlease input the rank number you want to have these permissions.");
- ShowPlayerDialog(playerid, DIALOG_FACTIONMENU_CHAT, DIALOG_STYLE_INPUT, "Faction Management -> Chat Rank", primary_str, "Select", "<<");
- }
- case 5: //Join Rank
- {
- format(sub_str, sizeof sub_str, "{AFAFAF}You're editing your factions join rank which is %s [%i].\n\n", FactionRanks[PlayerData[playerid][pFaction]][FactionData[PlayerData[playerid][pFaction]][factionMaxRanks]], FactionData[PlayerData[playerid][pFaction]][factionMaxRanks]);
- strcat(primary_str, sub_str);
-
- strcat(primary_str, "This is the rank a person receives when they accept their /invite.\nPlease input the rank number you want to have these permissions.");
- ShowPlayerDialog(playerid, DIALOG_FACTIONMENU_JOIN, DIALOG_STYLE_INPUT, "Faction Management -> Join Rank", primary_str, "Select", "<<");
- }
- case 6: //Edit ranks
- {
- for(new i = 1; i < MAX_FACTION_RANKS; i++)
- {
- format(sub_str, sizeof sub_str, "%s [%i]\n", FactionRanks[PlayerData[playerid][pFaction]][i], i);
- strcat(primary_str, sub_str);
- }
-
- ShowPlayerDialog(playerid, DIALOG_FACTIONMENU_EDIT, DIALOG_STYLE_LIST, "Faction Management -> Edit ranks", primary_str, "Select", "<<");
- }
- case 7: // Edit ranks alt
- {
- new rank_id;
- rank_id = GetPVarInt(playerid, "SelectedRank");
-
- if(rank_id == 1 && PlayerData[playerid][pFactionRank] != 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Only the factions rank 1 may edit the rank 1 name.");
- return ShowYourFactionMenuAlt(playerid, 6);
- }
-
- format(sub_str, sizeof sub_str, "You're editing rank: %s [%i].\n", FactionRanks[PlayerData[playerid][pFaction]][rank_id], rank_id);
- strcat(primary_str, sub_str);
-
- strcat(primary_str, "Input the new name you want for this rank.");
- ShowPlayerDialog(playerid, DIALOG_FACTIONMENU_EDITALT, DIALOG_STYLE_INPUT, "Faction Management -> Edit ranks", primary_str, "Select", "<<");
- }
- }
- return 1;
- }
- //
- Server:OnOfflineUninvite(playerid, response, dbid)
- {
- if(response)
- {
- new removeQuery[200];
-
- mysql_format(m_Handle, removeQuery, sizeof removeQuery, "UPDATE players SET Faction = 0, FactionRank = 0 WHERE id = %i", dbid);
- mysql_tquery(m_Handle, removeQuery, "OnOfflineRemove", "ii", playerid, dbid);
- }
- return 1;
- }
- Server:OnOfflineRemove(playerid, dbid)
- {
- Message(playerid, COLOR_ADM, "-> You successfully uninvited %s from the faction.", ReturnSQLName(dbid));
- return 1;
- }
- //Warehouse Menu
- stock LoadWarehouseMenu_1()
- {
- WarehouseMenu[0] = TextDrawCreate(169.066635, 138.492538, "box");
- TextDrawLetterSize(WarehouseMenu[0], 0.000000, 23.069936);
- TextDrawTextSize(WarehouseMenu[0], 461.000000, 0.000000);
- TextDrawAlignment(WarehouseMenu[0], 1);
- TextDrawColor(WarehouseMenu[0], -1);
- TextDrawUseBox(WarehouseMenu[0], 1);
- TextDrawBoxColor(WarehouseMenu[0], 122);
- TextDrawSetShadow(WarehouseMenu[0], 0);
- TextDrawSetOutline(WarehouseMenu[0], 0);
- TextDrawBackgroundColor(WarehouseMenu[0], 255);
- TextDrawFont(WarehouseMenu[0], 1);
- TextDrawSetProportional(WarehouseMenu[0], 1);
- TextDrawSetShadow(WarehouseMenu[0], 0);
- WarehouseMenu[1] = TextDrawCreate(169.666870, 146.540420, "");
- TextDrawLetterSize(WarehouseMenu[1], 0.000000, 0.000000);
- TextDrawTextSize(WarehouseMenu[1], 68.000000, 63.000000);
- TextDrawAlignment(WarehouseMenu[1], 1);
- TextDrawColor(WarehouseMenu[1], -1);
- TextDrawSetShadow(WarehouseMenu[1], 0);
- TextDrawSetOutline(WarehouseMenu[1], 0);
- TextDrawBackgroundColor(WarehouseMenu[1], -572662307);
- TextDrawFont(WarehouseMenu[1], 5);
- TextDrawSetProportional(WarehouseMenu[1], 0);
- TextDrawSetShadow(WarehouseMenu[1], 0);
- TextDrawSetSelectable(WarehouseMenu[1], true);
- TextDrawSetPreviewModel(WarehouseMenu[1], 348);
- TextDrawSetPreviewRot(WarehouseMenu[1], 0.000000, 0.000000, 70.000000, 1.000000);
- WarehouseMenu[2] = TextDrawCreate(200.699920, 146.077590, "Desert_Eagle");
- TextDrawLetterSize(WarehouseMenu[2], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[2], 1);
- TextDrawColor(WarehouseMenu[2], -1);
- TextDrawSetShadow(WarehouseMenu[2], 0);
- TextDrawSetOutline(WarehouseMenu[2], 1);
- TextDrawBackgroundColor(WarehouseMenu[2], 255);
- TextDrawFont(WarehouseMenu[2], 1);
- TextDrawSetProportional(WarehouseMenu[2], 1);
- TextDrawSetShadow(WarehouseMenu[2], 0);
- WarehouseMenu[3] = TextDrawCreate(219.101043, 201.080947, "300-P");
- TextDrawLetterSize(WarehouseMenu[3], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[3], 1);
- TextDrawColor(WarehouseMenu[3], 699676415);
- TextDrawSetShadow(WarehouseMenu[3], 0);
- TextDrawSetOutline(WarehouseMenu[3], 1);
- TextDrawBackgroundColor(WarehouseMenu[3], 255);
- TextDrawFont(WarehouseMenu[3], 1);
- TextDrawSetProportional(WarehouseMenu[3], 1);
- TextDrawSetShadow(WarehouseMenu[3], 0);
- WarehouseMenu[4] = TextDrawCreate(244.171752, 146.570037, "");
- TextDrawLetterSize(WarehouseMenu[4], 0.000000, 0.000000);
- TextDrawTextSize(WarehouseMenu[4], 68.000000, 63.000000);
- TextDrawAlignment(WarehouseMenu[4], 1);
- TextDrawColor(WarehouseMenu[4], -1);
- TextDrawSetShadow(WarehouseMenu[4], 0);
- TextDrawSetOutline(WarehouseMenu[4], 0);
- TextDrawBackgroundColor(WarehouseMenu[4], -572662307);
- TextDrawFont(WarehouseMenu[4], 5);
- TextDrawSetProportional(WarehouseMenu[4], 0);
- TextDrawSetShadow(WarehouseMenu[4], 0);
- TextDrawSetSelectable(WarehouseMenu[4], true);
- TextDrawSetPreviewModel(WarehouseMenu[4], 346);
- TextDrawSetPreviewRot(WarehouseMenu[4], 0.000000, 0.000000, 40.000000, 1.000000);
- WarehouseMenu[5] = TextDrawCreate(289.305328, 146.277603, "Colt-45");
- TextDrawLetterSize(WarehouseMenu[5], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[5], 1);
- TextDrawColor(WarehouseMenu[5], -1);
- TextDrawSetShadow(WarehouseMenu[5], 0);
- TextDrawSetOutline(WarehouseMenu[5], 1);
- TextDrawBackgroundColor(WarehouseMenu[5], 255);
- TextDrawFont(WarehouseMenu[5], 1);
- TextDrawSetProportional(WarehouseMenu[5], 1);
- TextDrawSetShadow(WarehouseMenu[5], 0);
- WarehouseMenu[6] = TextDrawCreate(294.905670, 201.080947, "150-P");
- TextDrawLetterSize(WarehouseMenu[6], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[6], 1);
- TextDrawColor(WarehouseMenu[6], 699676415);
- TextDrawSetShadow(WarehouseMenu[6], 0);
- TextDrawSetOutline(WarehouseMenu[6], 1);
- TextDrawBackgroundColor(WarehouseMenu[6], 255);
- TextDrawFont(WarehouseMenu[6], 1);
- TextDrawSetProportional(WarehouseMenu[6], 1);
- TextDrawSetShadow(WarehouseMenu[6], 0);
- WarehouseMenu[7] = TextDrawCreate(317.333404, 142.296295, "Welcome!");
- TextDrawLetterSize(WarehouseMenu[7], 0.400000, 1.600000);
- TextDrawAlignment(WarehouseMenu[7], 1);
- TextDrawColor(WarehouseMenu[7], -1);
- TextDrawSetShadow(WarehouseMenu[7], 0);
- TextDrawSetOutline(WarehouseMenu[7], 1);
- TextDrawBackgroundColor(WarehouseMenu[7], 255);
- TextDrawFont(WarehouseMenu[7], 1);
- TextDrawSetProportional(WarehouseMenu[7], 1);
- TextDrawSetShadow(WarehouseMenu[7], 0);
- WarehouseMenu[8] = TextDrawCreate(317.900115, 176.198364, "Each_item_in_the_menu_uses_products~n~as_their_payment_option.");
- TextDrawLetterSize(WarehouseMenu[8], 0.189000, 0.828444);
- TextDrawAlignment(WarehouseMenu[8], 1);
- TextDrawColor(WarehouseMenu[8], -1);
- TextDrawSetShadow(WarehouseMenu[8], 0);
- TextDrawSetOutline(WarehouseMenu[8], 1);
- TextDrawBackgroundColor(WarehouseMenu[8], 255);
- TextDrawFont(WarehouseMenu[8], 1);
- TextDrawSetProportional(WarehouseMenu[8], 1);
- TextDrawSetShadow(WarehouseMenu[8], 0);
- WarehouseMenu[9] = TextDrawCreate(317.633087, 203.259292, "Cart:");
- TextDrawLetterSize(WarehouseMenu[9], 0.201000, 0.849186);
- TextDrawAlignment(WarehouseMenu[9], 1);
- TextDrawColor(WarehouseMenu[9], -1);
- TextDrawSetShadow(WarehouseMenu[9], 0);
- TextDrawSetOutline(WarehouseMenu[9], 1);
- TextDrawBackgroundColor(WarehouseMenu[9], 255);
- TextDrawFont(WarehouseMenu[9], 1);
- TextDrawSetProportional(WarehouseMenu[9], 1);
- TextDrawSetShadow(WarehouseMenu[9], 0);
- WarehouseMenu[10] = TextDrawCreate(169.666870, 212.844467, "");
- TextDrawLetterSize(WarehouseMenu[10], 0.000000, 0.000000);
- TextDrawTextSize(WarehouseMenu[10], 68.000000, 63.000000);
- TextDrawAlignment(WarehouseMenu[10], 1);
- TextDrawColor(WarehouseMenu[10], -1);
- TextDrawSetShadow(WarehouseMenu[10], 0);
- TextDrawSetOutline(WarehouseMenu[10], 0);
- TextDrawBackgroundColor(WarehouseMenu[10], -572662307);
- TextDrawFont(WarehouseMenu[10], 5);
- TextDrawSetProportional(WarehouseMenu[10], 0);
- TextDrawSetShadow(WarehouseMenu[10], 0);
- TextDrawSetSelectable(WarehouseMenu[10], true);
- TextDrawSetPreviewModel(WarehouseMenu[10], 335);
- TextDrawSetPreviewRot(WarehouseMenu[10], 0.000000, 0.000000, 70.000000, 1.000000);
- WarehouseMenu[11] = TextDrawCreate(221.801208, 212.081619, "Knife");
- TextDrawLetterSize(WarehouseMenu[11], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[11], 1);
- TextDrawColor(WarehouseMenu[11], -1);
- TextDrawSetShadow(WarehouseMenu[11], 0);
- TextDrawSetOutline(WarehouseMenu[11], 1);
- TextDrawBackgroundColor(WarehouseMenu[11], 255);
- TextDrawFont(WarehouseMenu[11], 1);
- TextDrawSetProportional(WarehouseMenu[11], 1);
- TextDrawSetShadow(WarehouseMenu[11], 0);
- WarehouseMenu[12] = TextDrawCreate(222.901275, 267.184967, "90-P");
- TextDrawLetterSize(WarehouseMenu[12], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[12], 1);
- TextDrawColor(WarehouseMenu[12], 699676415);
- TextDrawSetShadow(WarehouseMenu[12], 0);
- TextDrawSetOutline(WarehouseMenu[12], 1);
- TextDrawBackgroundColor(WarehouseMenu[12], 255);
- TextDrawFont(WarehouseMenu[12], 1);
- TextDrawSetProportional(WarehouseMenu[12], 1);
- TextDrawSetShadow(WarehouseMenu[12], 0);
- WarehouseMenu[13] = TextDrawCreate(244.271423, 212.844467, "");
- TextDrawLetterSize(WarehouseMenu[13], 0.000000, 0.000000);
- TextDrawTextSize(WarehouseMenu[13], 68.000000, 63.000000);
- TextDrawAlignment(WarehouseMenu[13], 1);
- TextDrawColor(WarehouseMenu[13], -1);
- TextDrawSetShadow(WarehouseMenu[13], 0);
- TextDrawSetOutline(WarehouseMenu[13], 0);
- TextDrawBackgroundColor(WarehouseMenu[13], -572662307);
- TextDrawFont(WarehouseMenu[13], 5);
- TextDrawSetProportional(WarehouseMenu[13], 0);
- TextDrawSetShadow(WarehouseMenu[13], 0);
- TextDrawSetSelectable(WarehouseMenu[13], true);
- TextDrawSetPreviewModel(WarehouseMenu[13], 349);
- TextDrawSetPreviewRot(WarehouseMenu[13], 0.000000, 0.000000, 72.000000, 1.899999);
- WarehouseMenu[14] = TextDrawCreate(287.905242, 212.381637, "Shotgun");
- TextDrawLetterSize(WarehouseMenu[14], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[14], 1);
- TextDrawColor(WarehouseMenu[14], -1);
- TextDrawSetShadow(WarehouseMenu[14], 0);
- TextDrawSetOutline(WarehouseMenu[14], 1);
- TextDrawBackgroundColor(WarehouseMenu[14], 255);
- TextDrawFont(WarehouseMenu[14], 1);
- TextDrawSetProportional(WarehouseMenu[14], 1);
- TextDrawSetShadow(WarehouseMenu[14], 0);
- WarehouseMenu[15] = TextDrawCreate(293.972137, 267.499786, "450-P");
- TextDrawLetterSize(WarehouseMenu[15], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[15], 1);
- TextDrawColor(WarehouseMenu[15], 699676415);
- TextDrawSetShadow(WarehouseMenu[15], 0);
- TextDrawSetOutline(WarehouseMenu[15], 1);
- TextDrawBackgroundColor(WarehouseMenu[15], 255);
- TextDrawFont(WarehouseMenu[15], 1);
- TextDrawSetProportional(WarehouseMenu[15], 1);
- TextDrawSetShadow(WarehouseMenu[15], 0);
- WarehouseMenu[16] = TextDrawCreate(317.375885, 212.844467, "");
- TextDrawLetterSize(WarehouseMenu[16], 0.000000, 0.000000);
- TextDrawTextSize(WarehouseMenu[16], 68.000000, 63.000000);
- TextDrawAlignment(WarehouseMenu[16], 1);
- TextDrawColor(WarehouseMenu[16], -1);
- TextDrawSetShadow(WarehouseMenu[16], 0);
- TextDrawSetOutline(WarehouseMenu[16], 0);
- TextDrawBackgroundColor(WarehouseMenu[16], -572662307);
- TextDrawFont(WarehouseMenu[16], 5);
- TextDrawSetProportional(WarehouseMenu[16], 0);
- TextDrawSetShadow(WarehouseMenu[16], 0);
- TextDrawSetSelectable(WarehouseMenu[16], true);
- TextDrawSetPreviewModel(WarehouseMenu[16], 355);
- TextDrawSetPreviewRot(WarehouseMenu[16], 0.000000, 0.000000, 77.000000, 1.899999);
- WarehouseMenu[17] = TextDrawCreate(365.809997, 212.381637, "AK-47");
- TextDrawLetterSize(WarehouseMenu[17], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[17], 1);
- TextDrawColor(WarehouseMenu[17], -1);
- TextDrawSetShadow(WarehouseMenu[17], 0);
- TextDrawSetOutline(WarehouseMenu[17], 1);
- TextDrawBackgroundColor(WarehouseMenu[17], 255);
- TextDrawFont(WarehouseMenu[17], 1);
- TextDrawSetProportional(WarehouseMenu[17], 1);
- TextDrawSetShadow(WarehouseMenu[17], 0);
- WarehouseMenu[18] = TextDrawCreate(366.776580, 267.499786, "600-P");
- TextDrawLetterSize(WarehouseMenu[18], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[18], 1);
- TextDrawColor(WarehouseMenu[18], 699676415);
- TextDrawSetShadow(WarehouseMenu[18], 0);
- TextDrawSetOutline(WarehouseMenu[18], 1);
- TextDrawBackgroundColor(WarehouseMenu[18], 255);
- TextDrawFont(WarehouseMenu[18], 1);
- TextDrawSetProportional(WarehouseMenu[18], 1);
- TextDrawSetShadow(WarehouseMenu[18], 0);
- WarehouseMenu[19] = TextDrawCreate(391.770935, 203.259292, "PURCHASE");
- TextDrawLetterSize(WarehouseMenu[19], 0.201000, 0.849186);
- TextDrawAlignment(WarehouseMenu[19], 1);
- TextDrawColor(WarehouseMenu[19], 16711935);
- TextDrawSetShadow(WarehouseMenu[19], 0);
- TextDrawSetOutline(WarehouseMenu[19], 1);
- TextDrawBackgroundColor(WarehouseMenu[19], 255);
- TextDrawFont(WarehouseMenu[19], 1);
- TextDrawSetProportional(WarehouseMenu[19], 1);
- TextDrawSetShadow(WarehouseMenu[19], 0);
- TextDrawSetSelectable(WarehouseMenu[19], true);
- WarehouseMenu[20] = TextDrawCreate(391.680419, 212.844467, "");
- TextDrawLetterSize(WarehouseMenu[20], 0.000000, 0.000000);
- TextDrawTextSize(WarehouseMenu[20], 68.000000, 63.000000);
- TextDrawAlignment(WarehouseMenu[20], 1);
- TextDrawColor(WarehouseMenu[20], -1);
- TextDrawSetShadow(WarehouseMenu[20], 0);
- TextDrawSetOutline(WarehouseMenu[20], 0);
- TextDrawBackgroundColor(WarehouseMenu[20], -572662307);
- TextDrawFont(WarehouseMenu[20], 5);
- TextDrawSetProportional(WarehouseMenu[20], 0);
- TextDrawSetShadow(WarehouseMenu[20], 0);
- TextDrawSetSelectable(WarehouseMenu[20], true);
- TextDrawSetPreviewModel(WarehouseMenu[20], 356);
- TextDrawSetPreviewRot(WarehouseMenu[20], 0.000000, 0.000000, 77.000000, 1.899999);
- WarehouseMenu[21] = TextDrawCreate(449.815124, 212.381637, "M4");
- TextDrawLetterSize(WarehouseMenu[21], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[21], 1);
- TextDrawColor(WarehouseMenu[21], -1);
- TextDrawSetShadow(WarehouseMenu[21], 0);
- TextDrawSetOutline(WarehouseMenu[21], 1);
- TextDrawBackgroundColor(WarehouseMenu[21], 255);
- TextDrawFont(WarehouseMenu[21], 1);
- TextDrawSetProportional(WarehouseMenu[21], 1);
- TextDrawSetShadow(WarehouseMenu[21], 0);
- WarehouseMenu[22] = TextDrawCreate(441.381134, 267.499786, "666-P");
- TextDrawLetterSize(WarehouseMenu[22], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[22], 1);
- TextDrawColor(WarehouseMenu[22], 699676415);
- TextDrawSetShadow(WarehouseMenu[22], 0);
- TextDrawSetOutline(WarehouseMenu[22], 1);
- TextDrawBackgroundColor(WarehouseMenu[22], 255);
- TextDrawFont(WarehouseMenu[22], 1);
- TextDrawSetProportional(WarehouseMenu[22], 1);
- TextDrawSetShadow(WarehouseMenu[22], 0);
- WarehouseMenu[23] = TextDrawCreate(432.673431, 203.259292, "EMPTY");
- TextDrawLetterSize(WarehouseMenu[23], 0.201000, 0.849186);
- TextDrawAlignment(WarehouseMenu[23], 1);
- TextDrawColor(WarehouseMenu[23], -16776961);
- TextDrawSetShadow(WarehouseMenu[23], 0);
- TextDrawSetOutline(WarehouseMenu[23], 1);
- TextDrawBackgroundColor(WarehouseMenu[23], 255);
- TextDrawFont(WarehouseMenu[23], 1);
- TextDrawSetProportional(WarehouseMenu[23], 1);
- TextDrawSetShadow(WarehouseMenu[23], 0);
- TextDrawSetSelectable(WarehouseMenu[23], true);
- WarehouseMenu[24] = TextDrawCreate(169.666870, 280.178131, "");
- TextDrawLetterSize(WarehouseMenu[24], 0.000000, 0.000000);
- TextDrawTextSize(WarehouseMenu[24], 68.000000, 63.000000);
- TextDrawAlignment(WarehouseMenu[24], 1);
- TextDrawColor(WarehouseMenu[24], -1);
- TextDrawSetShadow(WarehouseMenu[24], 0);
- TextDrawSetOutline(WarehouseMenu[24], 0);
- TextDrawBackgroundColor(WarehouseMenu[24], -572662307);
- TextDrawFont(WarehouseMenu[24], 5);
- TextDrawSetProportional(WarehouseMenu[24], 0);
- TextDrawSetShadow(WarehouseMenu[24], 0);
- TextDrawSetSelectable(WarehouseMenu[24], true);
- TextDrawSetPreviewModel(WarehouseMenu[24], 358);
- TextDrawSetPreviewRot(WarehouseMenu[24], -15.000000, -20.100000, -10.100000, 1.000000);
- WarehouseMenu[25] = TextDrawCreate(203.600158, 279.685729, "Sniper_Rifle");
- TextDrawLetterSize(WarehouseMenu[25], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[25], 1);
- TextDrawColor(WarehouseMenu[25], -1);
- TextDrawSetShadow(WarehouseMenu[25], 0);
- TextDrawSetOutline(WarehouseMenu[25], 1);
- TextDrawBackgroundColor(WarehouseMenu[25], 255);
- TextDrawFont(WarehouseMenu[25], 1);
- TextDrawSetProportional(WarehouseMenu[25], 1);
- TextDrawSetShadow(WarehouseMenu[25], 0);
- WarehouseMenu[26] = TextDrawCreate(218.967651, 334.489074, "4000-P");
- TextDrawLetterSize(WarehouseMenu[26], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[26], 1);
- TextDrawColor(WarehouseMenu[26], 699676415);
- TextDrawSetShadow(WarehouseMenu[26], 0);
- TextDrawSetOutline(WarehouseMenu[26], 1);
- TextDrawBackgroundColor(WarehouseMenu[26], 255);
- TextDrawFont(WarehouseMenu[26], 1);
- TextDrawSetProportional(WarehouseMenu[26], 1);
- TextDrawSetShadow(WarehouseMenu[26], 0);
- WarehouseMenu[27] = TextDrawCreate(244.171417, 281.007751, "");
- TextDrawLetterSize(WarehouseMenu[27], 0.000000, 0.000000);
- TextDrawTextSize(WarehouseMenu[27], 68.000000, 63.000000);
- TextDrawAlignment(WarehouseMenu[27], 1);
- TextDrawColor(WarehouseMenu[27], -1);
- TextDrawSetShadow(WarehouseMenu[27], 0);
- TextDrawSetOutline(WarehouseMenu[27], 0);
- TextDrawBackgroundColor(WarehouseMenu[27], -572662307);
- TextDrawFont(WarehouseMenu[27], 5);
- TextDrawSetProportional(WarehouseMenu[27], 0);
- TextDrawSetShadow(WarehouseMenu[27], 0);
- TextDrawSetPreviewModel(WarehouseMenu[27], 342);
- TextDrawSetPreviewRot(WarehouseMenu[27], -15.000000, -20.100000, -10.100000, 1.000000);
- WarehouseMenu[28] = TextDrawCreate(286.805236, 279.685729, "Grenade");
- TextDrawLetterSize(WarehouseMenu[28], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[28], 1);
- TextDrawColor(WarehouseMenu[28], -1);
- TextDrawSetShadow(WarehouseMenu[28], 0);
- TextDrawSetOutline(WarehouseMenu[28], 1);
- TextDrawBackgroundColor(WarehouseMenu[28], 255);
- TextDrawFont(WarehouseMenu[28], 1);
- TextDrawSetProportional(WarehouseMenu[28], 1);
- TextDrawSetShadow(WarehouseMenu[28], 0);
- WarehouseMenu[29] = TextDrawCreate(273.270965, 335.289123, "UNAVAILABLE");
- TextDrawLetterSize(WarehouseMenu[29], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[29], 1);
- TextDrawColor(WarehouseMenu[29], -16776961);
- TextDrawSetShadow(WarehouseMenu[29], 0);
- TextDrawSetOutline(WarehouseMenu[29], 1);
- TextDrawBackgroundColor(WarehouseMenu[29], 255);
- TextDrawFont(WarehouseMenu[29], 1);
- TextDrawSetProportional(WarehouseMenu[29], 1);
- TextDrawSetShadow(WarehouseMenu[29], 0);
- WarehouseMenu[30] = TextDrawCreate(317.475891, 281.007751, "");
- TextDrawLetterSize(WarehouseMenu[30], 0.000000, 0.000000);
- TextDrawTextSize(WarehouseMenu[30], 68.000000, 63.000000);
- TextDrawAlignment(WarehouseMenu[30], 1);
- TextDrawColor(WarehouseMenu[30], -1);
- TextDrawSetShadow(WarehouseMenu[30], 0);
- TextDrawSetOutline(WarehouseMenu[30], 0);
- TextDrawBackgroundColor(WarehouseMenu[30], -572662307);
- TextDrawFont(WarehouseMenu[30], 5);
- TextDrawSetProportional(WarehouseMenu[30], 0);
- TextDrawSetShadow(WarehouseMenu[30], 0);
- TextDrawSetPreviewModel(WarehouseMenu[30], 344);
- TextDrawSetPreviewRot(WarehouseMenu[30], -15.000000, -20.100000, -10.100000, 1.000000);
- WarehouseMenu[31] = TextDrawCreate(360.209716, 279.685729, "Molotov");
- TextDrawLetterSize(WarehouseMenu[31], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[31], 1);
- TextDrawColor(WarehouseMenu[31], -1);
- TextDrawSetShadow(WarehouseMenu[31], 0);
- TextDrawSetOutline(WarehouseMenu[31], 1);
- TextDrawBackgroundColor(WarehouseMenu[31], 255);
- TextDrawFont(WarehouseMenu[31], 1);
- TextDrawSetProportional(WarehouseMenu[31], 1);
- TextDrawSetShadow(WarehouseMenu[31], 0);
- WarehouseMenu[32] = TextDrawCreate(346.375427, 335.289123, "UNAVAILABLE");
- TextDrawLetterSize(WarehouseMenu[32], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[32], 1);
- TextDrawColor(WarehouseMenu[32], -16776961);
- TextDrawSetShadow(WarehouseMenu[32], 0);
- TextDrawSetOutline(WarehouseMenu[32], 1);
- TextDrawBackgroundColor(WarehouseMenu[32], 255);
- TextDrawFont(WarehouseMenu[32], 1);
- TextDrawSetProportional(WarehouseMenu[32], 1);
- TextDrawSetShadow(WarehouseMenu[32], 0);
- WarehouseMenu[33] = TextDrawCreate(391.580413, 281.007751, "");
- TextDrawLetterSize(WarehouseMenu[33], 0.000000, 0.000000);
- TextDrawTextSize(WarehouseMenu[33], 68.000000, 63.000000);
- TextDrawAlignment(WarehouseMenu[33], 1);
- TextDrawColor(WarehouseMenu[33], -1);
- TextDrawSetShadow(WarehouseMenu[33], 0);
- TextDrawSetOutline(WarehouseMenu[33], 0);
- TextDrawBackgroundColor(WarehouseMenu[33], -572662307);
- TextDrawFont(WarehouseMenu[33], 5);
- TextDrawSetProportional(WarehouseMenu[33], 0);
- TextDrawSetShadow(WarehouseMenu[33], 0);
- TextDrawSetPreviewModel(WarehouseMenu[33], 363);
- TextDrawSetPreviewRot(WarehouseMenu[33], -100.000000, -83.000000, 83.000000, 1.000000);
- WarehouseMenu[34] = TextDrawCreate(419.913360, 279.685729, "Vehicle_Bomb");
- TextDrawLetterSize(WarehouseMenu[34], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[34], 1);
- TextDrawColor(WarehouseMenu[34], -1);
- TextDrawSetShadow(WarehouseMenu[34], 0);
- TextDrawSetOutline(WarehouseMenu[34], 1);
- TextDrawBackgroundColor(WarehouseMenu[34], 255);
- TextDrawFont(WarehouseMenu[34], 1);
- TextDrawSetProportional(WarehouseMenu[34], 1);
- TextDrawSetShadow(WarehouseMenu[34], 0);
- WarehouseMenu[35] = TextDrawCreate(420.479949, 335.289123, "UNAVAILABLE");
- TextDrawLetterSize(WarehouseMenu[35], 0.169000, 0.940445);
- TextDrawAlignment(WarehouseMenu[35], 1);
- TextDrawColor(WarehouseMenu[35], -16776961);
- TextDrawSetShadow(WarehouseMenu[35], 0);
- TextDrawSetOutline(WarehouseMenu[35], 1);
- TextDrawBackgroundColor(WarehouseMenu[35], 255);
- TextDrawFont(WarehouseMenu[35], 1);
- TextDrawSetProportional(WarehouseMenu[35], 1);
- TextDrawSetShadow(WarehouseMenu[35], 0);
- return 1;
- }
- stock LoadWarehouseMenu_2(playerid)
- {
- WarehouseMenu_P[playerid][0] = CreatePlayerTextDraw(playerid, 167.000030, 131.925888, "Your_Factions_Name");
- PlayerTextDrawLetterSize(playerid, WarehouseMenu_P[playerid][0], 0.302666, 1.322074);
- PlayerTextDrawAlignment(playerid, WarehouseMenu_P[playerid][0], 1);
- PlayerTextDrawColor(playerid, WarehouseMenu_P[playerid][0], -1);
- PlayerTextDrawSetShadow(playerid, WarehouseMenu_P[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, WarehouseMenu_P[playerid][0], 1);
- PlayerTextDrawBackgroundColor(playerid, WarehouseMenu_P[playerid][0], 255);
- PlayerTextDrawFont(playerid, WarehouseMenu_P[playerid][0], 1);
- PlayerTextDrawSetProportional(playerid, WarehouseMenu_P[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, WarehouseMenu_P[playerid][0], 0);
- WarehouseMenu_P[playerid][1] = CreatePlayerTextDraw(playerid, 317.900115, 158.497283, "Welcome_to_your_warehouse_menu,~n~Firstname_Lastname.");
- PlayerTextDrawLetterSize(playerid, WarehouseMenu_P[playerid][1], 0.189000, 0.828444);
- PlayerTextDrawAlignment(playerid, WarehouseMenu_P[playerid][1], 1);
- PlayerTextDrawColor(playerid, WarehouseMenu_P[playerid][1], -1);
- PlayerTextDrawSetShadow(playerid, WarehouseMenu_P[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, WarehouseMenu_P[playerid][1], 1);
- PlayerTextDrawBackgroundColor(playerid, WarehouseMenu_P[playerid][1], 255);
- PlayerTextDrawFont(playerid, WarehouseMenu_P[playerid][1], 1);
- PlayerTextDrawSetProportional(playerid, WarehouseMenu_P[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, WarehouseMenu_P[playerid][1], 0);
- WarehouseMenu_P[playerid][2] = CreatePlayerTextDraw(playerid, 336.667572, 203.259292, "$PRICE");
- PlayerTextDrawLetterSize(playerid, WarehouseMenu_P[playerid][2], 0.205333, 0.820149);
- PlayerTextDrawAlignment(playerid, WarehouseMenu_P[playerid][2], 1);
- PlayerTextDrawColor(playerid, WarehouseMenu_P[playerid][2], 699676415);
- PlayerTextDrawSetShadow(playerid, WarehouseMenu_P[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, WarehouseMenu_P[playerid][2], 1);
- PlayerTextDrawBackgroundColor(playerid, WarehouseMenu_P[playerid][2], 255);
- PlayerTextDrawFont(playerid, WarehouseMenu_P[playerid][2], 1);
- PlayerTextDrawSetProportional(playerid, WarehouseMenu_P[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid, WarehouseMenu_P[playerid][2], 0);
- return 1;
- }
- //Default TextDraw
- stock ShowTextdrawInfo(playerid, info[], time = 2000)
- {
- PlayerTextDrawSetString(playerid, DefaultTextdraw[playerid], info);
- PlayerTextDrawShow(playerid, DefaultTextdraw[playerid]);
-
- if(gShowingTextDrawInfo[playerid]) KillTimer(gShowingTextDrawTimer[playerid]);
-
- gShowingTextDrawTimer[playerid] = SetTimerEx("DisableDefaultTD", time, false, "i", playerid);
- gShowingTextDrawInfo[playerid] = 1;
- return 1;
- }
- Server:DisableDefaultTD(playerid)
- {
- PlayerTextDrawHide(playerid, DefaultTextdraw[playerid]);
- gShowingTextDrawInfo[playerid] = 0;
- return 1;
- }
- stock ClearWeaponCrateVars()
- {
- for(new i; i < MAX_WEAPON_CRATES; i++)
- {
- WeaponCrates[i][CrateExists] = false;
- WeaponCrates[i][CrateBy] = INVALID_PLAYER_ID;
-
- WeaponCrates[i][CrateAttachedTo] = -1;
- WeaponCrates[i][CrateVehicle] = -1;
-
- for(new v = 1; v < MAX_WEAPON_PACKAGES; v++)
- WeaponCrates[i][CrateItems][v] = 0;
-
- WeaponCrates[i][CrateBeingOpened] = 0;
- }
- return 1;
- }
- stock ClearActiveCrate(crateid)
- {
- WeaponCrates[crateid][CrateExists] = false;
- WeaponCrates[crateid][CrateBy] = INVALID_PLAYER_ID;
-
- WeaponCrates[crateid][CrateAttachedTo] = -1;
- WeaponCrates[crateid][CrateVehicle] = -1;
-
- for(new v = 1; v < MAX_WEAPON_PACKAGES; v++)
- WeaponCrates[crateid][CrateItems][v] = 0;
-
- DestroyDynamicObject(WeaponCrates[crateid][CrateObject]);
- if(IsValidDynamic3DTextLabel(WeaponCrates[crateid][CrateLabel]))
- DestroyDynamic3DTextLabel(WeaponCrates[crateid][CrateLabel]);
-
- WeaponCrates[crateid][CrateBeingOpened] = 0;
-
- printf("[Debug] Active crate ID %i was killed.", crateid);
- return 1;
- }
- stock ShowCrateInventory(playerid, crateid)
- {
- new info[600];
- for(new i = 1; i < MAX_WEAPON_PACKAGES; i++)
- {
- if(!WeaponCrates[crateid][CrateItems][i])
- continue;
-
- format(info, sizeof info, "%s%s~n~", info, ReturnWeaponName(WeaponCrates[crateid][CrateItems][i]));
- PlayerTextDrawSetString(playerid, CrateInventory_P[playerid][0], info);
- }
- for(new i; i < 2; i++) TextDrawShowForPlayer(playerid, CrateInventory[i]);
- PlayerTextDrawShow(playerid, CrateInventory_P[playerid][0]);
-
- printf("[Debug] Showing crate inventory for %s", ReturnName(playerid));
- SetTimerEx("HideCrateInventory", 4000, false, "i", playerid);
-
- SetPVarInt(playerid, "ViewingCrateContent", 1);
- return 1;
- }
- Server:HideCrateInventory(playerid)
- {
- if(!IsPlayerConnected(playerid))
- return 1;
-
- for(new i; i < 2; i++) TextDrawHideForPlayer(playerid, CrateInventory[i]);
- PlayerTextDrawHide(playerid, CrateInventory_P[playerid][0]);
- PlayerTextDrawSetString(playerid, CrateInventory_P[playerid][0], "M4A1~n~AKblank");
-
- DeletePVar(playerid, "ViewingCrateContent");
- printf("[Debug] Hiding crate inventory for %s", ReturnName(playerid));
- return 1;
- }
- stock IsPlayerInWarehouse(playerid)
- {
- if( gPlayerInsideEntrance[playerid] == -1 )
- return 0;
-
- if( Entrances[gPlayerInsideEntrance[playerid]][IsWarehouse] )
- return 1;
- return 0;
- }
- stock CountCrateItems(crateid, &amount)
- {
- new count;
- for(new i = 1; i < MAX_WEAPON_PACKAGES; i++)
- {
- if(!WeaponCrates[crateid][CrateItems][i])
- continue;
-
- count++;
- }
- amount = count;
- return 1;
- }
- /*
- New HUDs
- */
- stock UpdatePlayerHud(playerid, vehicleid)
- {
- new speed[128];
- switch(PlayerData[playerid][pHUD])
- {
- case 0:
- {
- if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- PlayerTextDrawShow(playerid, Player_Hud[playerid][5]);
- PlayerTextDrawShow(playerid, Player_Hud[playerid][6]);
- format(speed, sizeof(speed), "~g~%d~n~%d", floatround(GetVehicleSpeed(vehicleid)), floatround(CarData[vehicleid][carFuel]));
- PlayerTextDrawSetString(playerid, Player_Hud[playerid][6], speed);
- }
- else
- {
- PlayerTextDrawHide(playerid, Player_Hud[playerid][5]);
- PlayerTextDrawHide(playerid, Player_Hud[playerid][6]);
- }
-
- format(speed, sizeof(speed), "~g~%d~n~%d", PlayerData[playerid][pRadio][ PlayerData[playerid][pMainSlot] ], PlayerData[playerid][pMainSlot]);
- PlayerTextDrawSetString(playerid, Player_Hud[playerid][4], speed);
- }
- case 1:
- {
- if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- format(speed, sizeof(speed), "~g~%d__~r~%d__~w~%d", floatround(GetVehicleSpeed(vehicleid)), floatround(CarData[vehicleid][carFuel]));
- PlayerTextDrawSetString(playerid, Player_Hud[playerid][7], speed);
- }
- else
- {
- PlayerTextDrawHide(playerid, Player_Hud[playerid][7]);
- }
- }
- case 2:
- {
- if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- format(speed, sizeof(speed), "%s_~r~%d_%d~y~KMH/~r~%d~y~MPH~n~~w~Radio_Info:~y~%d~n~~w~Slot:~y~%d",
- ReturnVehicleName(vehicleid),
- floatround(CarData[vehicleid][carFuel]),
- floatround(GetVehicleSpeed(vehicleid)),
- floatround(GetVehicleSpeed(vehicleid)) * 0.6214,
- PlayerData[playerid][pRadio][PlayerData[playerid][pMainSlot]],
- PlayerData[playerid][pMainSlot]);
-
- PlayerTextDrawSetString(playerid, Player_Hud[playerid][8], speed);
- }
- else
- {
- format(speed, sizeof(speed), "Radio_Info:~y~%d~n~~w~Slot:~y~%d",
- PlayerData[playerid][pRadio][ PlayerData[playerid][pMainSlot] ],
- PlayerData[playerid][pMainSlot]);
- PlayerTextDrawSetString(playerid, Player_Hud[playerid][8], speed);
- }
- }
- case 3:
- {
- if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- new Float: carhp;
- GetVehicleHealth(vehicleid, carhp);
- format(speed, sizeof(speed), "%s", ReturnVehicleName(vehicleid));
- PlayerTextDrawSetString(playerid,Player_Hud[playerid][0], speed);
- format(speed, sizeof(speed), "~w~%d ~l~%d ~w~%d ~l~%d", floatround(CarData[vehicleid][carEngine]), floatround(CarData[vehicleid][carFuel]), floatround(carhp), floatround(GetVehicleSpeed(vehicleid)));
- PlayerTextDrawSetString(playerid,Player_Hud[playerid][1], speed);
- }
- else
- {
- PlayerTextDrawHide(playerid, Player_Hud[playerid][0]);
- PlayerTextDrawHide(playerid, Player_Hud[playerid][1]);
- }
- }
- }
- return 1;
- }
- stock OnPlayerChangeHud(playerid)
- {
- if(PlayerData[playerid][pHUDToggled])
- {
- switch(PlayerData[playerid][pHUD])
- {
- case 1:
- {
- for(new i = 2; i < 5; i ++)
- {
- PlayerTextDrawShow(playerid, Player_Hud[playerid][i]);
- }
- }
- case 2:
- {
- PlayerTextDrawShow(playerid, Player_Hud[playerid][7]);
- }
- case 3:
- {
- PlayerTextDrawShow(playerid, Player_Hud[playerid][8]);
- }
- case 4:
- {
- PlayerTextDrawShow(playerid, Player_Hud[playerid][0]);
- PlayerTextDrawShow(playerid, Player_Hud[playerid][1]);
- }
- }
- }
- return 1;
- }
- stock HideHUDForPlayer2( playerid )
- {
- for( new i = 0; i < 9; i++ )
- {
- PlayerTextDrawHide( playerid, Player_Hud[ playerid ][ i ] );
- }
- return 1;
- }
- stock Init_SpeedText(playerid)
- {
- Player_Hud[playerid][0] = CreatePlayerTextDraw(playerid, 524.729553, 383.083496, "Landstalker");
- PlayerTextDrawLetterSize(playerid, Player_Hud[playerid][0], 0.495577, 3.367500);
- PlayerTextDrawAlignment(playerid, Player_Hud[playerid][0], 2);
- PlayerTextDrawColor(playerid, Player_Hud[playerid][0], 255);
- PlayerTextDrawSetShadow(playerid, Player_Hud[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, Player_Hud[playerid][0], 1);
- PlayerTextDrawBackgroundColor(playerid, Player_Hud[playerid][0], -2139062017);
- PlayerTextDrawFont(playerid, Player_Hud[playerid][0], 2);
- PlayerTextDrawSetProportional(playerid, Player_Hud[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, Player_Hud[playerid][0], 0);
- Player_Hud[playerid][1] = CreatePlayerTextDraw(playerid, 590.322448, 413.416870, "~w~0 ~l~0 ~w~1000 ~l~100");
- PlayerTextDrawLetterSize(playerid, Player_Hud[playerid][1], 0.406558, 2.649996);
- PlayerTextDrawAlignment(playerid, Player_Hud[playerid][1], 3);
- PlayerTextDrawColor(playerid, Player_Hud[playerid][1], 255);
- PlayerTextDrawSetShadow(playerid, Player_Hud[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, Player_Hud[playerid][1], 1);
- PlayerTextDrawBackgroundColor(playerid, Player_Hud[playerid][1], -2139062017);
- PlayerTextDrawFont(playerid, Player_Hud[playerid][1], 2);
- PlayerTextDrawSetProportional(playerid, Player_Hud[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, Player_Hud[playerid][1], 0);
- Player_Hud[playerid][2] = CreatePlayerTextDraw(playerid, 494.275604, 162.583328, "~bl~Radio_Info");
- PlayerTextDrawLetterSize(playerid, Player_Hud[playerid][2], 0.446852, 1.454165);
- PlayerTextDrawAlignment(playerid, Player_Hud[playerid][2], 1);
- PlayerTextDrawColor(playerid, Player_Hud[playerid][2], -1);
- PlayerTextDrawSetShadow(playerid, Player_Hud[playerid][2], 2);
- PlayerTextDrawSetOutline(playerid, Player_Hud[playerid][2], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Hud[playerid][2], 255);
- PlayerTextDrawFont(playerid, Player_Hud[playerid][2], 3);
- PlayerTextDrawSetProportional(playerid, Player_Hud[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid, Player_Hud[playerid][2], 2);
- Player_Hud[playerid][3] = CreatePlayerTextDraw(playerid, 497.086761, 180.083251, "~bl~chan:~n~slot:");
- PlayerTextDrawLetterSize(playerid, Player_Hud[playerid][3], 0.459502, 1.302499);
- PlayerTextDrawAlignment(playerid, Player_Hud[playerid][3], 1);
- PlayerTextDrawColor(playerid, Player_Hud[playerid][3], -1);
- PlayerTextDrawSetShadow(playerid, Player_Hud[playerid][3], 2);
- PlayerTextDrawSetOutline(playerid, Player_Hud[playerid][3], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Hud[playerid][3], 255);
- PlayerTextDrawFont(playerid, Player_Hud[playerid][3], 3);
- PlayerTextDrawSetProportional(playerid, Player_Hud[playerid][3], 1);
- PlayerTextDrawSetShadow(playerid, Player_Hud[playerid][3], 2);
- Player_Hud[playerid][4] = CreatePlayerTextDraw(playerid, 551.435241, 180.666610, "~g~0~n~0");
- PlayerTextDrawLetterSize(playerid, Player_Hud[playerid][4], 0.459970, 1.273333);
- PlayerTextDrawAlignment(playerid, Player_Hud[playerid][4], 1);
- PlayerTextDrawColor(playerid, Player_Hud[playerid][4], -1);
- PlayerTextDrawSetShadow(playerid, Player_Hud[playerid][4], 2);
- PlayerTextDrawSetOutline(playerid, Player_Hud[playerid][4], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Hud[playerid][4], 255);
- PlayerTextDrawFont(playerid, Player_Hud[playerid][4], 3);
- PlayerTextDrawSetProportional(playerid, Player_Hud[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid, Player_Hud[playerid][4], 2);
- Player_Hud[playerid][5] = CreatePlayerTextDraw(playerid, 497.086730, 127.583274, "~bl~mph:~n~fuel:");
- PlayerTextDrawLetterSize(playerid, Player_Hud[playerid][5], 0.459502, 1.302499);
- PlayerTextDrawAlignment(playerid, Player_Hud[playerid][5], 1);
- PlayerTextDrawColor(playerid, Player_Hud[playerid][5], -1);
- PlayerTextDrawSetShadow(playerid, Player_Hud[playerid][5], 2);
- PlayerTextDrawSetOutline(playerid, Player_Hud[playerid][5], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Hud[playerid][5], 255);
- PlayerTextDrawFont(playerid, Player_Hud[playerid][5], 3);
- PlayerTextDrawSetProportional(playerid, Player_Hud[playerid][5], 1);
- PlayerTextDrawSetShadow(playerid, Player_Hud[playerid][5], 2);
- Player_Hud[playerid][6] = CreatePlayerTextDraw(playerid, 552.372192, 128.166625, "~g~0~n~0");
- PlayerTextDrawLetterSize(playerid, Player_Hud[playerid][6], 0.459970, 1.273333);
- PlayerTextDrawAlignment(playerid, Player_Hud[playerid][6], 1);
- PlayerTextDrawColor(playerid, Player_Hud[playerid][6], -1);
- PlayerTextDrawSetShadow(playerid, Player_Hud[playerid][6], 2);
- PlayerTextDrawSetOutline(playerid, Player_Hud[playerid][6], 0);
- PlayerTextDrawBackgroundColor(playerid, Player_Hud[playerid][6], 255);
- PlayerTextDrawFont(playerid, Player_Hud[playerid][6], 3);
- PlayerTextDrawSetProportional(playerid, Player_Hud[playerid][6], 1);
- PlayerTextDrawSetShadow(playerid, Player_Hud[playerid][6], 2);
- Player_Hud[playerid][7] = CreatePlayerTextDraw(playerid, 597.349853, 97.250038, "~g~100__~r~9__~w~15");
- PlayerTextDrawLetterSize(playerid, Player_Hud[playerid][7], 0.532122, 2.031666);
- PlayerTextDrawAlignment(playerid, Player_Hud[playerid][7], 3);
- PlayerTextDrawColor(playerid, Player_Hud[playerid][7], -1);
- PlayerTextDrawSetShadow(playerid, Player_Hud[playerid][7], 0);
- PlayerTextDrawSetOutline(playerid, Player_Hud[playerid][7], 1);
- PlayerTextDrawBackgroundColor(playerid, Player_Hud[playerid][7], 255);
- PlayerTextDrawFont(playerid, Player_Hud[playerid][7], 3);
- PlayerTextDrawSetProportional(playerid, Player_Hud[playerid][7], 1);
- PlayerTextDrawSetShadow(playerid, Player_Hud[playerid][7], 0);
- Player_Hud[playerid][8] = CreatePlayerTextDraw(playerid, 20.131790, 152.666564, "Tahoma_~r~100_90~y~KMH/~r~92~y~MPH~n~~w~Radio_Info:~y~123~n~~w~Slot:~y~11");
- PlayerTextDrawLetterSize(playerid, Player_Hud[playerid][8], 0.245387, 1.745832);
- PlayerTextDrawAlignment(playerid, Player_Hud[playerid][8], 1);
- PlayerTextDrawColor(playerid, Player_Hud[playerid][8], -1);
- PlayerTextDrawSetShadow(playerid, Player_Hud[playerid][8], 0);
- PlayerTextDrawSetOutline(playerid, Player_Hud[playerid][8], 1);
- PlayerTextDrawBackgroundColor(playerid, Player_Hud[playerid][8], 255);
- PlayerTextDrawFont(playerid, Player_Hud[playerid][8], 1);
- PlayerTextDrawSetProportional(playerid, Player_Hud[playerid][8], 1);
- PlayerTextDrawSetShadow(playerid, Player_Hud[playerid][8], 0);
- }
- // TODO: change to new categories & add vehicles: then finished.
- ds_ShowDealership(playerid) {
- PlayerTextDrawSetString(playerid, ds_PlayerTextDrawCategory[playerid], "Categories");
- PlayerTextDrawShow(playerid, ds_PlayerTextDrawCategory[playerid]);
- SendClientMessage(playerid, -1, "[ ! ] Type (/v close) remove the textdraws if they are not removed automatically.");
- ds_SetUpMenu(playerid, dealershipCategories_Models, dealershipCategories_Names, dealershipCategories_MinPrices, "OnCategorySelect");
- ds_ShowMenu(playerid);
- return 1;
- }
- ds_ShowMenu(playerid) {
- ds_CreateDefaultTextdraws(playerid);
- new count = 0;
- for(new index = (ds_PlayerMenuPage[playerid] * 6); index < (ds_PlayerMenuPage[playerid] * 6)+6; index++) {
- if(index >= ds_PlayerMenuAmount[playerid]) break;
- if(ds_PlayerMenuModels[playerid][index] == 0) continue;
- PlayerTextDrawSetPreviewModel(playerid, ds_PlayerTextDrawVehicles[playerid][count], ds_PlayerMenuModels[playerid][index]);
- PlayerTextDrawSetString(playerid, ds_PlayerTextDrawVehiclesNames[playerid][count], ds_PlayerMenuNames[playerid][index]);
- if(PlayerData[playerid][pMoney] < ds_PlayerMenuPrices[playerid][count]) {
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawVehicles[playerid][count], 0xCC000077);
- PlayerTextDrawBoxColor(playerid, ds_PlayerTextDrawVehicles[playerid][count], 0xCC000077);
- }
- PlayerTextDrawShow(playerid, ds_PlayerTextDrawVehicles[playerid][count]);
- PlayerTextDrawShow(playerid, ds_PlayerTextDrawVehiclesNames[playerid][count]);
- if(strcmp(ds_PlayerMenuCallback[playerid], "ds_OnCategorySelect")) {
- new price[32] = "$";
- format(price, sizeof price, "$%i", ds_PlayerMenuPrices[playerid][index]);
- PlayerTextDrawSetString(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][count], price);
- PlayerTextDrawShow(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][count]);
- }
- count++;
- }
- new catego[128];
-
- if(strcmp(ds_PlayerMenuCallback[playerid], "ds_OnCategorySelect"))
- format(catego, sizeof catego, "Category > %s", ds_PlayerMenuCategoryName[playerid]);
- else
- format(catego, sizeof catego, "Categories");
- PlayerTextDrawSetString(playerid, ds_PlayerTextDrawCategory[playerid], catego);
- PlayerTextDrawShow(playerid, ds_PlayerTextDrawCategory[playerid]);
- PlayerTextDrawShow(playerid, ds_PlayerTextDrawArrows[playerid][0]);
- PlayerTextDrawShow(playerid, ds_PlayerTextDrawArrows[playerid][1]);
- SelectTextDraw(playerid, 0x167D29AA);
- }
- ds_OnPlayerClickPlayerTD(playerid, PlayerText:textdraw) {
- if(textdraw == ds_PlayerTextDrawArrows[playerid][1]) {
- if(ds_PlayerMenuPage[playerid] < (ds_PlayerMenuAmount[playerid] / 6)) {
- ds_PlayerMenuPage[playerid]++;
- ds_ShowMenu(playerid);
- }
- }
- else if(textdraw == ds_PlayerTextDrawArrows[playerid][0]) {
- if(ds_PlayerMenuPage[playerid] > 0) {
- ds_PlayerMenuPage[playerid]--;
- ds_ShowMenu(playerid);
- }
- }
- else if(textdraw == PlayerText:INVALID_TEXT_DRAW) {
- if(strcmp(ds_PlayerMenuCallback[playerid], "ds_OnCategorySelect")) {
- ds_DestroyDefaultTextdraws(playerid);
- CancelSelectTextDraw(playerid);
- }
- else {
- PlayerTextDrawSetString(playerid, ds_PlayerTextDrawCategory[playerid], "Categories");
- PlayerTextDrawShow(playerid, ds_PlayerTextDrawCategory[playerid]);
- ds_SetUpMenu(playerid, dealershipCategories_Models, dealershipCategories_Names, dealershipCategories_MinPrices, "OnCategorySelect");
- ds_ShowMenu(playerid);
- }
- }
- else if(textdraw == ds_PlayerTextDrawCategory[playerid]) {
- if(!strcmp(ds_PlayerMenuCallback[playerid], "ds_OnCategorySelect")) {
- ds_DestroyDefaultTextdraws(playerid);
- CancelSelectTextDraw(playerid);
- }
- else {
- PlayerTextDrawSetString(playerid, ds_PlayerTextDrawCategory[playerid], "Categories");
- PlayerTextDrawShow(playerid, ds_PlayerTextDrawCategory[playerid]);
- ds_SetUpMenu(playerid, dealershipCategories_Models, dealershipCategories_Names, dealershipCategories_MinPrices, "OnCategorySelect");
- ds_ShowMenu(playerid);
- }
- }
- else {
- for(new index = 0; index < 6; index++) {
- if(textdraw == ds_PlayerTextDrawVehicles[playerid][index]) {
- CallLocalFunction(ds_PlayerMenuCallback[playerid], "ii", playerid, (ds_PlayerMenuPage[playerid] * 6) + index);
- break;
- }
- }
- }
- }
- forward public ds_OnCategorySelect(playerid, buttonid);
- public ds_OnCategorySelect(playerid, buttonid) {
- ds_PlayerMenuCategory[playerid] = buttonid;
- format(ds_PlayerMenuCategoryName[playerid], 32, ds_PlayerMenuNames[playerid][buttonid]);
-
- new models[64], names[64][32], prices[64], count = 0;
- for(new index = 0; index < sizeof(dealershipVehicles); index++) {
- if(dealershipVehicles[index][0] != buttonid) continue;
- if(dealershipVehicles[index][1] < 400) continue;
- if(isnull(dealershipVehiclesNames[index]) || strlen(dealershipVehiclesNames[index]) < 3) continue;
-
- models[count] = dealershipVehicles[index][1];
- prices[count] = dealershipVehicles[index][2];
- format(names[count], 64, "%s", dealershipVehiclesNames[index]);
-
- count++;
- }
- ds_SetUpMenu(playerid, models, names, prices, "OnVehicleSelect");
- ds_ShowMenu(playerid);
- }
- forward public ds_OnVehicleSelect(playerid, buttonid);
- public ds_OnVehicleSelect(playerid, buttonid) {
- new string[128], title[128];
-
- ds_DestroyDefaultTextdraws(playerid);
- CancelSelectTextDraw(playerid);
- SubDealershipHolder[playerid] = buttonid;
-
- g_aTotalAmount[playerid] = ds_PlayerMenuPrices[playerid][SubDealershipHolder[playerid]];
-
- format(title, sizeof(title), "%s - {33AA33}$%s", ds_PlayerMenuNames[playerid][SubDealershipHolder[playerid]], MoneyFormat(g_aTotalAmount[playerid]));
-
- format(string, sizeof string, "");
- strcat(string, "Alarm\n");
- strcat(string, "Lock\n");
- strcat(string, "Immobiliser\n");
- strcat(string, "Colors\n");
- strcat(string, "No XM Installed\n");
-
- ShowPlayerDialog(playerid, DIALOG_DEALERSHIP_APPEND, DIALOG_STYLE_LIST, title, string, "Append", "Purchase");
-
- TogglePlayerControllable(playerid, false);
-
- new biz = PlayerData[playerid][pAtDealership];
-
- g_aVehicleSpawned[playerid] = CreateVehicle(ds_PlayerMenuModels[playerid][SubDealershipHolder[playerid]], BusinessData[biz][businessInt][0], BusinessData[biz][businessInt][1], BusinessData[biz][businessInt][2], 90, 0, 0, 0, 0);
- PutPlayerInVehicle(playerid, g_aVehicleSpawned[playerid], 0);
- printf("[DEBUG] Vehicle ID %d spawned for %s's dealership car.", g_aVehicleSpawned[playerid], ReturnName(playerid, 1));
- }
- ds_SetUpMenu(playerid, models[], names[][], prices[], callback[], amount = sizeof(models)) {
- ds_PlayerMenuModels[playerid] = ds_PlayerMenuModels[MAX_PLAYERS];
- ds_PlayerMenuNames[playerid] = ds_PlayerMenuNames[MAX_PLAYERS];
- for(new index = 0; index < 64; index++) {
- ds_PlayerMenuModels[playerid][index] = models[index];
- ds_PlayerMenuPrices[playerid][index] = prices[index];
- format(ds_PlayerMenuNames[playerid][index], 64, names[index]);
- }
- ds_PlayerMenuAmount[playerid] = amount;
- ds_PlayerMenuPage[playerid] = 0;
- format(ds_PlayerMenuCallback[playerid], 31, "ds_%s", callback);
- }
- ds_DestroyDefaultTextdraws(playerid) {
- for(new index = 0; index < 6; index++) {
- if(ds_PlayerTextDrawVehicles[playerid][index] != PlayerText:-1) {
- PlayerTextDrawDestroy(playerid, ds_PlayerTextDrawVehicles[playerid][index]);
- ds_PlayerTextDrawVehicles[playerid][index] = PlayerText:-1;
- }
- }
- for(new index = 0; index < 6; index++) {
- if(ds_PlayerTextDrawVehiclesNames[playerid][index] != PlayerText:-1) {
- PlayerTextDrawDestroy(playerid, ds_PlayerTextDrawVehiclesNames[playerid][index]);
- ds_PlayerTextDrawVehiclesNames[playerid][index] = PlayerText:-1;
- }
- }
- for(new index = 0; index < 6; index++) {
- if(ds_PlayerTextDrawVehiclesPrices[playerid][index] != PlayerText:-1) {
- PlayerTextDrawDestroy(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][index]);
- ds_PlayerTextDrawVehiclesPrices[playerid][index] = PlayerText:-1;
- }
- }
- for(new index = 0; index < 2; index++) {
- if(ds_PlayerTextDrawArrows[playerid][index] != PlayerText:-1) {
- PlayerTextDrawDestroy(playerid, ds_PlayerTextDrawArrows[playerid][index]);
- ds_PlayerTextDrawArrows[playerid][index] = PlayerText:-1;
- }
- }
- if(ds_PlayerTextDrawCategory[playerid] != PlayerText:-1) {
- PlayerTextDrawDestroy(playerid, ds_PlayerTextDrawCategory[playerid]);
- ds_PlayerTextDrawCategory[playerid] = PlayerText:-1;
- }
- }
- ds_CreateDefaultTextdraws(playerid) {
- ds_DestroyDefaultTextdraws(playerid);
- ds_PlayerTextDrawCategory[playerid] = CreatePlayerTextDraw(playerid, 82.934127, 70.666671, "Dealership");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawCategory[playerid], 1.459502, 3.578332);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawCategory[playerid], 521.000000, 30.000000);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawCategory[playerid], -1);
- PlayerTextDrawBoxColor(playerid, ds_PlayerTextDrawCategory[playerid], 255);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawCategory[playerid], 1);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawCategory[playerid], 1);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawCategory[playerid], 0);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawCategory[playerid], 1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawCategory[playerid], 0);
- PlayerTextDrawSetSelectable(playerid, ds_PlayerTextDrawCategory[playerid], 1);
- ds_PlayerTextDrawVehicles[playerid][0] = CreatePlayerTextDraw(playerid, 79.934127, 96.666671, "");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawVehicles[playerid][0], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawVehicles[playerid][0], 121.000000, 120.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawVehicles[playerid][0], 1);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawVehicles[playerid][0], -1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehicles[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawVehicles[playerid][0], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawVehicles[playerid][0], 8873060);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawVehicles[playerid][0], 5);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawVehicles[playerid][0], 0);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehicles[playerid][0], 0);
- PlayerTextDrawSetSelectable(playerid, ds_PlayerTextDrawVehicles[playerid][0], true);
- PlayerTextDrawSetPreviewModel(playerid, ds_PlayerTextDrawVehicles[playerid][0], 562);
- PlayerTextDrawSetPreviewRot(playerid, ds_PlayerTextDrawVehicles[playerid][0], -15.000000, 0.000000, -45.000000, 0.899999);
- ds_PlayerTextDrawVehicles[playerid][1] = CreatePlayerTextDraw(playerid, 200.812606, 96.666694, "");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawVehicles[playerid][1], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawVehicles[playerid][1], 121.000000, 120.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawVehicles[playerid][1], 1);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawVehicles[playerid][1], -1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehicles[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawVehicles[playerid][1], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawVehicles[playerid][1], 8873060);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawVehicles[playerid][1], 5);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawVehicles[playerid][1], 0);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehicles[playerid][1], 0);
- PlayerTextDrawSetSelectable(playerid, ds_PlayerTextDrawVehicles[playerid][1], true);
- PlayerTextDrawSetPreviewModel(playerid, ds_PlayerTextDrawVehicles[playerid][1], 562);
- PlayerTextDrawSetPreviewRot(playerid, ds_PlayerTextDrawVehicles[playerid][1], -15.000000, 0.000000, -45.000000, 0.899999);
- ds_PlayerTextDrawVehicles[playerid][2] = CreatePlayerTextDraw(playerid, 321.691406, 96.666664, "");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawVehicles[playerid][2], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawVehicles[playerid][2], 121.000000, 120.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawVehicles[playerid][2], 1);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawVehicles[playerid][2], -1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehicles[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawVehicles[playerid][2], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawVehicles[playerid][2], 8873060);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawVehicles[playerid][2], 5);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawVehicles[playerid][2], 0);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehicles[playerid][2], 0);
- PlayerTextDrawSetSelectable(playerid, ds_PlayerTextDrawVehicles[playerid][2], true);
- PlayerTextDrawSetPreviewModel(playerid, ds_PlayerTextDrawVehicles[playerid][2], 562);
- PlayerTextDrawSetPreviewRot(playerid, ds_PlayerTextDrawVehicles[playerid][2], -15.000000, 0.000000, -45.000000, 0.899999);
- ds_PlayerTextDrawVehicles[playerid][3] = CreatePlayerTextDraw(playerid, 79.934127, 216.833267, "");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawVehicles[playerid][3], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawVehicles[playerid][3], 121.000000, 120.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawVehicles[playerid][3], 1);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawVehicles[playerid][3], -1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehicles[playerid][3], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawVehicles[playerid][3], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawVehicles[playerid][3], 8873060);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawVehicles[playerid][3], 5);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawVehicles[playerid][3], 0);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehicles[playerid][3], 0);
- PlayerTextDrawSetSelectable(playerid, ds_PlayerTextDrawVehicles[playerid][3], true);
- PlayerTextDrawSetPreviewModel(playerid, ds_PlayerTextDrawVehicles[playerid][3], 562);
- PlayerTextDrawSetPreviewRot(playerid, ds_PlayerTextDrawVehicles[playerid][3], -15.000000, 0.000000, -45.000000, 0.899999);
- ds_PlayerTextDrawVehicles[playerid][4] = CreatePlayerTextDraw(playerid, 200.812576, 216.833282, "");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawVehicles[playerid][4], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawVehicles[playerid][4], 121.000000, 120.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawVehicles[playerid][4], 1);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawVehicles[playerid][4], -1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehicles[playerid][4], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawVehicles[playerid][4], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawVehicles[playerid][4], 8873060);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawVehicles[playerid][4], 5);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawVehicles[playerid][4], 0);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehicles[playerid][4], 0);
- PlayerTextDrawSetSelectable(playerid, ds_PlayerTextDrawVehicles[playerid][4], true);
- PlayerTextDrawSetPreviewModel(playerid, ds_PlayerTextDrawVehicles[playerid][4], 562);
- PlayerTextDrawSetPreviewRot(playerid, ds_PlayerTextDrawVehicles[playerid][4], -15.000000, 0.000000, -45.000000, 0.899999);
- ds_PlayerTextDrawVehicles[playerid][5] = CreatePlayerTextDraw(playerid, 321.690917, 216.833297, "");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawVehicles[playerid][5], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawVehicles[playerid][5], 121.000000, 120.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawVehicles[playerid][5], 1);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawVehicles[playerid][5], -1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehicles[playerid][5], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawVehicles[playerid][5], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawVehicles[playerid][5], 8873060);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawVehicles[playerid][5], 5);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawVehicles[playerid][5], 0);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehicles[playerid][5], 0);
- PlayerTextDrawSetSelectable(playerid, ds_PlayerTextDrawVehicles[playerid][5], true);
- PlayerTextDrawSetPreviewModel(playerid, ds_PlayerTextDrawVehicles[playerid][5], 562);
- PlayerTextDrawSetPreviewRot(playerid, ds_PlayerTextDrawVehicles[playerid][5], -15.000000, 0.000000, -45.000000, 0.899999);
- ds_PlayerTextDrawVehiclesNames[playerid][0] = CreatePlayerTextDraw(playerid, 140.541748, 195.833267, "TDEditor");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawVehiclesNames[playerid][0], 0.459502, 2.078332);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawVehiclesNames[playerid][0], 0.000000, 117.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawVehiclesNames[playerid][0], 2);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawVehiclesNames[playerid][0], -1);
- PlayerTextDrawUseBox(playerid, ds_PlayerTextDrawVehiclesNames[playerid][0], 1);
- PlayerTextDrawBoxColor(playerid, ds_PlayerTextDrawVehiclesNames[playerid][0], 255);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesNames[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawVehiclesNames[playerid][0], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawVehiclesNames[playerid][0], 255);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawVehiclesNames[playerid][0], 3);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawVehiclesNames[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesNames[playerid][0], 0);
- ds_PlayerTextDrawVehiclesNames[playerid][1] = CreatePlayerTextDraw(playerid, 260.951782, 195.833251, "TDEditor");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawVehiclesNames[playerid][1], 0.459502, 2.078332);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawVehiclesNames[playerid][1], 0.000000, 117.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawVehiclesNames[playerid][1], 2);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawVehiclesNames[playerid][1], -1);
- PlayerTextDrawUseBox(playerid, ds_PlayerTextDrawVehiclesNames[playerid][1], 1);
- PlayerTextDrawBoxColor(playerid, ds_PlayerTextDrawVehiclesNames[playerid][1], 255);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesNames[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawVehiclesNames[playerid][1], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawVehiclesNames[playerid][1], 255);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawVehiclesNames[playerid][1], 3);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawVehiclesNames[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesNames[playerid][1], 0);
- ds_PlayerTextDrawVehiclesNames[playerid][2] = CreatePlayerTextDraw(playerid, 381.830444, 195.833282, "TDEditor");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawVehiclesNames[playerid][2], 0.459502, 2.078332);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawVehiclesNames[playerid][2], 0.000000, 118.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawVehiclesNames[playerid][2], 2);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawVehiclesNames[playerid][2], -1);
- PlayerTextDrawUseBox(playerid, ds_PlayerTextDrawVehiclesNames[playerid][2], 1);
- PlayerTextDrawBoxColor(playerid, ds_PlayerTextDrawVehiclesNames[playerid][2], 255);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesNames[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawVehiclesNames[playerid][2], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawVehiclesNames[playerid][2], 255);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawVehiclesNames[playerid][2], 3);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawVehiclesNames[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesNames[playerid][2], 0);
- ds_PlayerTextDrawVehiclesNames[playerid][3] = CreatePlayerTextDraw(playerid, 140.073226, 316.583343, "TDEditor");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawVehiclesNames[playerid][3], 0.459502, 2.078332);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawVehiclesNames[playerid][3], 0.000000, 118.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawVehiclesNames[playerid][3], 2);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawVehiclesNames[playerid][3], -1);
- PlayerTextDrawUseBox(playerid, ds_PlayerTextDrawVehiclesNames[playerid][3], 1);
- PlayerTextDrawBoxColor(playerid, ds_PlayerTextDrawVehiclesNames[playerid][3], 255);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesNames[playerid][3], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawVehiclesNames[playerid][3], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawVehiclesNames[playerid][3], 255);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawVehiclesNames[playerid][3], 3);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawVehiclesNames[playerid][3], 1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesNames[playerid][3], 0);
- ds_PlayerTextDrawVehiclesNames[playerid][4] = CreatePlayerTextDraw(playerid, 260.951507, 316.583251, "TDEditor");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawVehiclesNames[playerid][4], 0.459502, 2.078332);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawVehiclesNames[playerid][4], 0.000000, 118.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawVehiclesNames[playerid][4], 2);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawVehiclesNames[playerid][4], -1);
- PlayerTextDrawUseBox(playerid, ds_PlayerTextDrawVehiclesNames[playerid][4], 1);
- PlayerTextDrawBoxColor(playerid, ds_PlayerTextDrawVehiclesNames[playerid][4], 255);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesNames[playerid][4], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawVehiclesNames[playerid][4], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawVehiclesNames[playerid][4], 255);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawVehiclesNames[playerid][4], 3);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawVehiclesNames[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesNames[playerid][4], 0);
- ds_PlayerTextDrawVehiclesNames[playerid][5] = CreatePlayerTextDraw(playerid, 382.298797, 316.583282, "TDEditor");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawVehiclesNames[playerid][5], 0.459502, 2.078332);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawVehiclesNames[playerid][5], 0.000000, 118.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawVehiclesNames[playerid][5], 2);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawVehiclesNames[playerid][5], -1);
- PlayerTextDrawUseBox(playerid, ds_PlayerTextDrawVehiclesNames[playerid][5], 1);
- PlayerTextDrawBoxColor(playerid, ds_PlayerTextDrawVehiclesNames[playerid][5], 255);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesNames[playerid][5], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawVehiclesNames[playerid][5], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawVehiclesNames[playerid][5], 255);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawVehiclesNames[playerid][5], 3);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawVehiclesNames[playerid][5], 1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesNames[playerid][5], 0);
- ds_PlayerTextDrawVehiclesPrices[playerid][0] = CreatePlayerTextDraw(playerid, 140.541748, 101.833267, "TDEditor");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][0], 0.459502, 2.078332);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][0], 0.000000, 117.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][0], 2);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][0], -1);
- PlayerTextDrawUseBox(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][0], 0);
- PlayerTextDrawBoxColor(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][0], 255);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][0], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][0], 255);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][0], 2);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][0], 0);
- ds_PlayerTextDrawVehiclesPrices[playerid][1] = CreatePlayerTextDraw(playerid, 260.951782, 101.833251, "TDEditor");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][1], 0.459502, 2.078332);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][1], 0.000000, 117.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][1], 2);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][1], -1);
- PlayerTextDrawUseBox(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][1], 0);
- PlayerTextDrawBoxColor(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][1], 255);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][1], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][1], 255);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][1], 2);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][1], 0);
- ds_PlayerTextDrawVehiclesPrices[playerid][2] = CreatePlayerTextDraw(playerid, 381.830444, 101.833282, "TDEditor");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][2], 0.459502, 2.078332);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][2], 0.000000, 118.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][2], 2);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][2], -1);
- PlayerTextDrawUseBox(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][2], 0);
- PlayerTextDrawBoxColor(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][2], 255);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][2], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][2], 255);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][2], 2 );
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][2], 0);
- ds_PlayerTextDrawVehiclesPrices[playerid][3] = CreatePlayerTextDraw(playerid, 140.073226, 221.583343, "TDEditor");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][3], 0.459502, 2.078332);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][3], 0.000000, 118.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][3], 2);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][3], -1);
- PlayerTextDrawUseBox(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][3], 0);
- PlayerTextDrawBoxColor(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][3], 255);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][3], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][3], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][3], 255);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][3], 2);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][3], 1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][3], 0);
- ds_PlayerTextDrawVehiclesPrices[playerid][4] = CreatePlayerTextDraw(playerid, 260.951507, 221.583251, "TDEditor");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][4], 0.459502, 2.078332);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][4], 0.000000, 118.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][4], 2);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][4], -1);
- PlayerTextDrawUseBox(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][4], 0);
- PlayerTextDrawBoxColor(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][4], 255);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][4], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][4], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][4], 255);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][4], 2);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][4], 0);
- ds_PlayerTextDrawVehiclesPrices[playerid][5] = CreatePlayerTextDraw(playerid, 382.298797, 221.583282, "TDEditor");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][5], 0.459502, 2.078332);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][5], 0.000000, 118.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][5], 2);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][5], -1);
- PlayerTextDrawUseBox(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][5], 0);
- PlayerTextDrawBoxColor(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][5], 255);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][5], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][5], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][5], 255);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][5], 2);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][5], 1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawVehiclesPrices[playerid][5], 0);
- ds_PlayerTextDrawArrows[playerid][0] = CreatePlayerTextDraw(playerid, 47.606147, 188.833297, "LD_BEAT:LEFT");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawArrows[playerid][0], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawArrows[playerid][0], 44.000000, 45.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawArrows[playerid][0], 1);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawArrows[playerid][0], -1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawArrows[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawArrows[playerid][0], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawArrows[playerid][0], 255);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawArrows[playerid][0], 4);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawArrows[playerid][0], 0);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawArrows[playerid][0], 0);
- PlayerTextDrawSetSelectable(playerid, ds_PlayerTextDrawArrows[playerid][0], 1);
- ds_PlayerTextDrawArrows[playerid][1] = CreatePlayerTextDraw(playerid, 432.752929, 188.833297/*188.249984*/, "LD_BEAT:RIGHT");
- PlayerTextDrawLetterSize(playerid, ds_PlayerTextDrawArrows[playerid][1], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, ds_PlayerTextDrawArrows[playerid][1], 44.000000, 45.000000);
- PlayerTextDrawAlignment(playerid, ds_PlayerTextDrawArrows[playerid][1], 1);
- PlayerTextDrawColor(playerid, ds_PlayerTextDrawArrows[playerid][1], -1);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawArrows[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, ds_PlayerTextDrawArrows[playerid][1], 0);
- PlayerTextDrawBackgroundColor(playerid, ds_PlayerTextDrawArrows[playerid][1], 255);
- PlayerTextDrawFont(playerid, ds_PlayerTextDrawArrows[playerid][1], 4);
- PlayerTextDrawSetProportional(playerid, ds_PlayerTextDrawArrows[playerid][1], 0);
- PlayerTextDrawSetShadow(playerid, ds_PlayerTextDrawArrows[playerid][1], 0);
- PlayerTextDrawSetSelectable(playerid, ds_PlayerTextDrawArrows[playerid][1], 1);
- }
- /* CarParts // Carjacker - begins here.
- IsABike(vehicleid)
- {
- new model = GetVehicleModel(vehicleid);
- switch(model)
- {
- case 509, 481, 510: return 1;
- }
- return 0;
- }
- IsAMotorBike(vehicleid)
- {
- new model = GetVehicleModel(vehicleid);
- switch(model)
- {
- case 509, 481, 510, 462, 448, 581, 522, 461, 421, 523, 463, 586, 468, 471: return 1;
- }
- return 0;
- }
- stock GetComponentName(component)
- {
- new modname[50];
- switch(component)
- {
- case 1000: format(modname, sizeof(modname), "Pro Spoiler");
- case 1001: format(modname, sizeof(modname), "Win Spoiler");
- case 1002: format(modname, sizeof(modname), "Drag Spoiler");
- case 1003: format(modname, sizeof(modname), "Alpha Spoiler");
- case 1004: format(modname, sizeof(modname), "Champ Scoop");
- case 1005: format(modname, sizeof(modname), "Fury Scoop");
- case 1006: format(modname, sizeof(modname), "Roof Scoop");
- case 1007: format(modname, sizeof(modname), "Right Sideskirt");
- case 1008: format(modname, sizeof(modname), "Nitrous x5");
- case 1009: format(modname, sizeof(modname), "Nitrous x2");
- case 1010: format(modname, sizeof(modname), "Nitrous x10");
- case 1011: format(modname, sizeof(modname), "Race Scoop");
- case 1012: format(modname, sizeof(modname), "Worx Scoop");
- case 1013: format(modname, sizeof(modname), "Round Fog Lights");
- case 1014: format(modname, sizeof(modname), "Champ Spoiler");
- case 1015: format(modname, sizeof(modname), "Race Spoiler");
- case 1016: format(modname, sizeof(modname), "Worx Spoiler");
- case 1017: format(modname, sizeof(modname), "Left Sideskirt");
- case 1018: format(modname, sizeof(modname), "Upswept Exhaust");
- case 1019: format(modname, sizeof(modname), "Twin Exhaust");
- case 1020: format(modname, sizeof(modname), "Large Exhaust");
- case 1021: format(modname, sizeof(modname), "Medium Exhaust");
- case 1022: format(modname, sizeof(modname), "Small Exhaust");
- case 1023: format(modname, sizeof(modname), "Fury Spoiler");
- case 1024: format(modname, sizeof(modname), "Square Fog Lights");
- case 1025: format(modname, sizeof(modname), "Offroad Wheels");
- case 1026, 1036, 1047, 1056, 1069, 1090: format(modname, sizeof(modname), "Right Alien Sideskirt");
- case 1027, 1040, 1051, 1062, 1071, 1094: format(modname, sizeof(modname), "Left Alien Sideskirt");
- case 1028, 1034, 1046, 1064, 1065, 1092: format(modname, sizeof(modname), "Alien Exhaust");
- case 1029, 1037, 1045, 1059, 1066, 1089: format(modname, sizeof(modname), "X-Flow Exhaust");
- case 1030, 1039, 1048, 1057, 1070, 1095: format(modname, sizeof(modname), "Right X-Flow Sideskirt");
- case 1031, 1041, 1052, 1063, 1072, 1093: format(modname, sizeof(modname), "Left X-Flow Sideskirt");
- case 1032, 1038, 1054, 1055, 1067, 1088: format(modname, sizeof(modname), "Alien Roof Vent");
- case 1033, 1035, 1053, 1061, 1068, 1091: format(modname, sizeof(modname), "X-Flow Roof Vent");
- case 1042: format(modname, sizeof(modname), "Right Chrome Sideskirt");
- case 1099: format(modname, sizeof(modname), "Left Chrome Sideskirt");
- case 1043, 1105, 1114, 1127, 1132, 1135: format(modname, sizeof(modname), "Slamin Exhaust");
- case 1044, 1104, 1113, 1126, 1129, 1136: format(modname, sizeof(modname), "Chrome Exhaust");
- case 1050, 1058, 1139, 1146, 1158, 1163: format(modname, sizeof(modname), "X-Flow Spoiler");
- case 1049, 1060, 1138, 1147, 1162, 1164: format(modname, sizeof(modname), "Alien Spoiler");
- case 1073: format(modname, sizeof(modname), "Shadow Wheels");
- case 1074: format(modname, sizeof(modname), "Mega Wheels");
- case 1075: format(modname, sizeof(modname), "Rimshine Wheels");
- case 1076: format(modname, sizeof(modname), "Wires Wheels");
- case 1077: format(modname, sizeof(modname), "Classic Wheels");
- case 1078: format(modname, sizeof(modname), "Twist Wheels");
- case 1079: format(modname, sizeof(modname), "Cutter Wheels");
- case 1080: format(modname, sizeof(modname), "Stitch Wheels");
- case 1081: format(modname, sizeof(modname), "Grove Wheels");
- case 1082: format(modname, sizeof(modname), "Import Wheels");
- case 1083: format(modname, sizeof(modname), "Dollar Wheels");
- case 1084: format(modname, sizeof(modname), "Trance Wheels");
- case 1085: format(modname, sizeof(modname), "Atomic Wheels");
- case 1086: format(modname, sizeof(modname), "Stereo");
- case 1087: format(modname, sizeof(modname), "Hydraulics");
- case 1096: format(modname, sizeof(modname), "Ahab Wheels");
- case 1097: format(modname, sizeof(modname), "Virtual Wheels");
- case 1098: format(modname, sizeof(modname), "Access Wheels");
- case 1100: format(modname, sizeof(modname), "Chrome Grill");
- case 1101: format(modname, sizeof(modname), "Left Chrome Flames Sideskirt");
- case 1102, 1107: format(modname, sizeof(modname), "Left Chrome Strip Sideskirt");
- case 1103: format(modname, sizeof(modname), "Convertible Roof");
- case 1106, 1124, 1137: format(modname, sizeof(modname), "Left Chrome Arches Sideskirt");
- case 1108, 1133, 1134: format(modname, sizeof(modname), "Right Chrome Strip Sideskirt");
- case 1109: format(modname, sizeof(modname), "Chrome Rear Bullbars");
- case 1110: format(modname, sizeof(modname), "Slamin Rear Bullbars");
- case 1111, 1112: format(modname, sizeof(modname), "Front Sign");
- case 1115: format(modname, sizeof(modname), "Chrome Front Bullbars");
- case 1116: format(modname, sizeof(modname), "Slamin Front Bullbars");
- case 1117, 1174, 1179, 1182, 1189, 1191: format(modname, sizeof(modname), "Chrome Front Bumper");
- case 1175, 1181, 1185, 1188, 1190: format(modname, sizeof(modname), "Slamin Front Bumper");
- case 1176, 1180, 1184, 1187, 1192: format(modname, sizeof(modname), "Chrome Rear Bumper");
- case 1177, 1178, 1183, 1186, 1193: format(modname, sizeof(modname), "Slamin Rear Bumper");
- case 1118: format(modname, sizeof(modname), "Right Chrome Trim Sideskirt");
- case 1119: format(modname, sizeof(modname), "Right Wheelcovers Sideskirt");
- case 1120: format(modname, sizeof(modname), "Left Chrome Trim Sideskirt");
- case 1121: format(modname, sizeof(modname), "Left Wheelcovers Sideskirt");
- case 1122: format(modname, sizeof(modname), "Right Chrome Flames Sideskirt");
- case 1123: format(modname, sizeof(modname), "Bullbar Chrome Bars");
- case 1125: format(modname, sizeof(modname), "Bullbar Chrome Lights");
- case 1128: format(modname, sizeof(modname), "Vinyl Hardtop Roof");
- case 1130: format(modname, sizeof(modname), "Hardtop Roof");
- case 1131: format(modname, sizeof(modname), "Softtop Roof");
- case 1140, 1148, 1151, 1156, 1161, 1167: format(modname, sizeof(modname), "X-Flow Rear Bumper");
- case 1141, 1149, 1150, 1154, 1159, 1168: format(modname, sizeof(modname), "Alien Rear Bumper");
- case 1142: format(modname, sizeof(modname), "Left Oval Vents");
- case 1143: format(modname, sizeof(modname), "Right Oval Vents");
- case 1144: format(modname, sizeof(modname), "Left Square Vents");
- case 1145: format(modname, sizeof(modname), "Right Square Vents");
- case 1152, 1157, 1165, 1170, 1172, 1173: format(modname, sizeof(modname), "X-Flow Front Bumper");
- case 1153, 1155, 1160, 1166, 1169, 1171: format(modname, sizeof(modname), "Alien Front Bumper");
- }
- return modname;
- }
- GetVehicleComponentCount(category, model)
- {
- switch(category)
- {
- case 0: return GetVehicleSpoilerCount(model);
- case 1: return GetVehicleHoodCount(model);
- case 2: return GetVehicleExhaustCount(model);
- case 3: return GetVehicleFBumperCount(model);
- case 4: return GetVehicleBBumperCount(model);
- case 5: return GetVehicleRoofCount(model);
- case 6: return GetVehicleWheelCount(model);
- case 7: return GetVehicleHydraulicCount(model);
- case 8: return GetVehicleNitroCount(model);
- case 9: return GetVehicleLeftSSCount(model);
- case 10: return GetVehiclePaintJobCount(model);
- }
- return 0;
- }
- GetComponentPrice(componentid, &price = 0)
- {
- switch(componentid)
- {
- case 1004..1007, 1011..1013, 1017, 1024, 1026, 1027, 1030, 1031, 1036, 1039..1042, 1047, 1048, 1051, 1052, 1056, 1057, 1062, 1063, 1069..1072, 1090, 1093..1095, 1099, 1101, 1102, 1106..1108, 1118..1122, 1124, 1133, 1134, 1137, 1142..1145: price = 4000;
- case 1018..1022, 1025, 1028, 1029, 1032..1035, 1037, 1038, 1043..1046, 1053..1055, 1059, 1061, 1064..1068, 1073..1085, 1088, 1089, 1091, 1092, 1096..1098, 1103..1105, 1111..1114, 1126, 1127, 1129, 1132, 1135, 1136: price = 5000;
- case 1100, 1109, 1110, 1115, 1117, 1123, 1125, 1140, 1141, 1148..1157, 1159..1161, 1165..1193: price = 6000;
- case 1000..1003, 1009, 1014..1016, 1023, 1049, 1050, 1058, 1060, 1087, 1128, 1130, 1131, 1138, 1139, 1146, 1147, 1158, 1162..1164: price = 7500;
- case 1008, 1086: price = 12500;
- case 1010: price = 17500;
- }
- return price;
- }
- GetVehicleSpoilerCount(model, &count = 0)
- {
- switch(model)
- {
- case 401, 418, 420, 426, 436, 492, 540, 542, 549, 558, 559, 560, 561, 562, 565, 580, 589, 603: count = 2;
- case 404, 410, 415, 439, 489, 491, 518, 527, 529, 546, 547, 550, 585: count = 3;
- case 405, 421, 496, 516, 517, 551: count = 4;
- }
- return count;
- }
- GetVehicleCompatibleSpoiler(model, count, &componentid = 0)
- {
- switch(model)
- {
- case 401:
- {
- switch(count)
- {
- case 1: componentid = 1001;
- case 2: componentid = 1003;
- }
- }
- case 404:
- {
- switch(count)
- {
- case 1: componentid = 1000;
- case 2: componentid = 1002;
- case 3: componentid = 1016;
- }
- }
- case 405:
- {
- switch(count)
- {
- case 1: componentid = 1000;
- case 2: componentid = 1001;
- case 3: componentid = 1014;
- case 4: componentid = 1023;
- }
- }
- case 410:
- {
- switch(count)
- {
- case 1: componentid = 1001;
- case 2: componentid = 1003;
- case 3: componentid = 1023;
- }
- }
- case 415:
- {
- switch(count)
- {
- case 1: componentid = 1001;
- case 2: componentid = 1003;
- case 3: componentid = 1023;
- }
- }
- case 418:
- {
- switch(count)
- {
- case 1: componentid = 1002;
- case 2: componentid = 1016;
- }
- }
- case 420:
- {
- switch(count)
- {
- case 1: componentid = 1001;
- case 2: componentid = 1003;
- }
- }
- case 421:
- {
- switch(count)
- {
- case 1: componentid = 1000;
- case 2: componentid = 1014;
- case 3: componentid = 1016;
- case 4: componentid = 1023;
- }
- }
- case 426:
- {
- switch(count)
- {
- case 1: componentid = 1001;
- case 2: componentid = 1003;
- }
- }
- case 436:
- {
- switch(count)
- {
- case 1: componentid = 1001;
- case 2: componentid = 1003;
- }
- }
- case 439:
- {
- switch(count)
- {
- case 1: componentid = 1001;
- case 2: componentid = 1003;
- case 3: componentid = 1023;
- }
- }
- case 489:
- {
- switch(count)
- {
- case 1: componentid = 1000;
- case 2: componentid = 1002;
- case 3: componentid = 1016;
- }
- }
- case 491:
- {
- switch(count)
- {
- case 1: componentid = 1003;
- case 2: componentid = 1014;
- case 3: componentid = 1023;
- }
- }
- case 492:
- {
- switch(count)
- {
- case 1: componentid = 1000;
- case 2: componentid = 1016;
- }
- }
- case 496:
- {
- switch(count)
- {
- case 1: componentid = 1001;
- case 2: componentid = 1002;
- case 3: componentid = 1003;
- case 4: componentid = 1023;
- }
- }
- case 516:
- {
- switch(count)
- {
- case 1: componentid = 1000;
- case 2: componentid = 1002;
- case 3: componentid = 1015;
- case 4: componentid = 1016;
- }
- }
- case 517:
- {
- switch(count)
- {
- case 1: componentid = 1002;
- case 2: componentid = 1003;
- case 3: componentid = 1016;
- case 4: componentid = 1023;
- }
- }
- case 518:
- {
- switch(count)
- {
- case 1: componentid = 1001;
- case 2: componentid = 1003;
- case 3: componentid = 1023;
- }
- }
- case 527:
- {
- switch(count)
- {
- case 1: componentid = 1001;
- case 2: componentid = 1014;
- case 3: componentid = 1015;
- }
- }
- case 529:
- {
- switch(count)
- {
- case 1: componentid = 1001;
- case 2: componentid = 1003;
- case 3: componentid = 1023;
- }
- }
- case 540:
- {
- switch(count)
- {
- case 1: componentid = 1001;
- case 2: componentid = 1023;
- }
- }
- case 542:
- {
- switch(count)
- {
- case 1: componentid = 1014;
- case 2: componentid = 1015;
- }
- }
- case 546:
- {
- switch(count)
- {
- case 1: componentid = 1001;
- case 2: componentid = 1002;
- case 3: componentid = 1023;
- }
- }
- case 547:
- {
- switch(count)
- {
- case 1: componentid = 1000;
- case 2: componentid = 1003;
- case 3: componentid = 1016;
- }
- }
- case 549:
- {
- switch(count)
- {
- case 1: componentid = 1001;
- case 2: componentid = 1023;
- }
- }
- case 550:
- {
- switch(count)
- {
- case 1: componentid = 1001;
- case 2: componentid = 1003;
- case 3: componentid = 1023;
- }
- }
- case 551:
- {
- switch(count)
- {
- case 1: componentid = 1002;
- case 2: componentid = 1003;
- case 3: componentid = 1016;
- case 4: componentid = 1023;
- }
- }
- case 558:
- {
- switch(count)
- {
- case 1: componentid = 1163;
- case 2: componentid = 1164;
- }
- }
- case 559:
- {
- switch(count)
- {
- case 1: componentid = 1158;
- case 2: componentid = 1162;
- }
- }
- case 560:
- {
- switch(count)
- {
- case 1: componentid = 1138;
- case 2: componentid = 1139;
- }
- }
- case 561:
- {
- switch(count)
- {
- case 1: componentid = 1058;
- case 2: componentid = 1060;
- }
- }
- case 562:
- {
- switch(count)
- {
- case 1: componentid = 1146;
- case 2: componentid = 1147;
- }
- }
- case 565:
- {
- switch(count)
- {
- case 1: componentid = 1049;
- case 2: componentid = 1050;
- }
- }
- case 580:
- {
- switch(count)
- {
- case 1: componentid = 1001;
- case 2: componentid = 1023;
- }
- }
- case 585:
- {
- switch(count)
- {
- case 1: componentid = 1001;
- case 2: componentid = 1003;
- case 3: componentid = 1023;
- }
- }
- case 589:
- {
- switch(count)
- {
- case 1: componentid = 1000;
- case 2: componentid = 1016;
- }
- }
- case 603:
- {
- switch(count)
- {
- case 1: componentid = 1001;
- case 2: componentid = 1023;
- }
- }
- }
- return componentid;
- }
- GetVehicleHoodCount(model, &count = 0)
- {
- switch(model)
- {
- case 496, 516, 518, 540, 546, 551: count = 1;
- case 401, 420, 426, 489, 492, 529, 549, 550, 589, 600: count = 2;
- case 478: count = 3;
- }
- return count;
- }
- GetVehicleCompatibleHood(model, count, &componentid = 0)
- {
- switch(model)
- {
- case 401:
- {
- switch(count)
- {
- case 1: componentid = 1004;
- case 2: componentid = 1005;
- }
- }
- case 420:
- {
- switch(count)
- {
- case 1: componentid = 1004;
- case 2: componentid = 1005;
- }
- }
- case 426:
- {
- switch(count)
- {
- case 1: componentid = 1004;
- case 2: componentid = 1005;
- }
- }
- case 478:
- {
- switch(count)
- {
- case 1: componentid = 1004;
- case 2: componentid = 1005;
- case 3: componentid = 1012;
- }
- }
- case 489:
- {
- switch(count)
- {
- case 1: componentid = 1004;
- case 2: componentid = 1005;
- }
- }
- case 492:
- {
- switch(count)
- {
- case 1: componentid = 1004;
- case 2: componentid = 1005;
- }
- }
- case 496:
- {
- switch(count)
- {
- case 1: componentid = 1011;
- }
- }
- case 516:
- {
- switch(count)
- {
- case 1: componentid = 1004;
- }
- }
- case 518:
- {
- switch(count)
- {
- case 1: componentid = 1005;
- }
- }
- case 529:
- {
- switch(count)
- {
- case 1: componentid = 1011;
- case 2: componentid = 1012;
- }
- }
- case 540:
- {
- switch(count)
- {
- case 1: componentid = 1004;
- }
- }
- case 546:
- {
- switch(count)
- {
- case 1: componentid = 1004;
- }
- }
- case 549:
- {
- switch(count)
- {
- case 1: componentid = 1011;
- case 2: componentid = 1012;
- }
- }
- case 550:
- {
- switch(count)
- {
- case 1: componentid = 1004;
- case 2: componentid = 1005;
- }
- }
- case 551:
- {
- switch(count)
- {
- case 1: componentid = 1005;
- }
- }
- case 589:
- {
- switch(count)
- {
- case 1: componentid = 1004;
- case 2: componentid = 1005;
- }
- }
- case 600:
- {
- switch(count)
- {
- case 1: componentid = 1004;
- case 2: componentid = 1005;
- }
- }
- }
- return componentid;
- }
- GetVehicleExhaustCount(model, &count = 0)
- {
- switch(model)
- {
- case 401, 415, 418, 420, 426, 496, 518, 534, 535, 536, 546, 558, 559, 560, 561, 562, 565, 567, 575, 576, 580, 589: count = 2;
- case 404, 410, 422, 478, 489, 500, 517, 527, 529, 540, 549, 550, 585, 600, 603: count = 3;
- case 400, 405, 421, 436, 477, 491, 516, 542, 547, 551: count = 4;
- }
- return count;
- }
- GetVehicleCompatibleExhaust(model, count, &componentid = 0)
- {
- switch(model)
- {
- case 400:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1019;
- case 3: componentid = 1020;
- case 4: componentid = 1021;
- }
- }
- case 401:
- {
- switch(count)
- {
- case 1: componentid = 1019;
- case 2: componentid = 1020;
- }
- }
- case 404:
- {
- switch(count)
- {
- case 1: componentid = 1019;
- case 2: componentid = 1020;
- case 3: componentid = 1021;
- }
- }
- case 405:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1019;
- case 3: componentid = 1020;
- case 4: componentid = 1021;
- }
- }
- case 410:
- {
- switch(count)
- {
- case 1: componentid = 1019;
- case 2: componentid = 1020;
- case 3: componentid = 1021;
- }
- }
- case 415:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1019;
- }
- }
- case 418:
- {
- switch(count)
- {
- case 1: componentid = 1020;
- case 2: componentid = 1021;
- }
- }
- case 420:
- {
- switch(count)
- {
- case 1: componentid = 1019;
- case 2: componentid = 1021;
- }
- }
- case 421:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1019;
- case 3: componentid = 1020;
- case 4: componentid = 1021;
- }
- }
- case 422:
- {
- switch(count)
- {
- case 1: componentid = 1019;
- case 2: componentid = 1020;
- case 3: componentid = 1021;
- }
- }
- case 426:
- {
- switch(count)
- {
- case 1: componentid = 1019;
- case 2: componentid = 1021;
- }
- }
- case 436:
- {
- switch(count)
- {
- case 1: componentid = 1019;
- case 2: componentid = 1020;
- case 3: componentid = 1021;
- case 4: componentid = 1022;
- }
- }
- case 477:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1019;
- case 3: componentid = 1020;
- case 4: componentid = 1021;
- }
- }
- case 478:
- {
- switch(count)
- {
- case 1: componentid = 1020;
- case 2: componentid = 1021;
- case 3: componentid = 1022;
- }
- }
- case 489:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1019;
- case 3: componentid = 1020;
- }
- }
- case 491:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1019;
- case 3: componentid = 1020;
- case 4: componentid = 1021;
- }
- }
- case 496:
- {
- switch(count)
- {
- case 1: componentid = 1019;
- case 2: componentid = 1020;
- }
- }
- case 500:
- {
- switch(count)
- {
- case 1: componentid = 1019;
- case 2: componentid = 1020;
- case 3: componentid = 1021;
- }
- }
- case 516:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1019;
- case 3: componentid = 1020;
- case 4: componentid = 1021;
- }
- }
- case 517:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1019;
- case 3: componentid = 1020;
- }
- }
- case 518:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1020;
- }
- }
- case 527:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1020;
- case 3: componentid = 1021;
- }
- }
- case 529:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1019;
- case 3: componentid = 1020;
- }
- }
- case 534:
- {
- switch(count)
- {
- case 1: componentid = 1126;
- case 2: componentid = 1127;
- }
- }
- case 535:
- {
- switch(count)
- {
- case 1: componentid = 1113;
- case 2: componentid = 1114;
- }
- }
- case 536:
- {
- switch(count)
- {
- case 1: componentid = 1104;
- case 2: componentid = 1105;
- }
- }
- case 540:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1019;
- case 3: componentid = 1020;
- }
- }
- case 542:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1019;
- case 3: componentid = 1020;
- case 4: componentid = 1021;
- }
- }
- case 546:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1019;
- }
- }
- case 547:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1019;
- case 3: componentid = 1020;
- case 4: componentid = 1021;
- }
- }
- case 549:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1019;
- case 3: componentid = 1020;
- }
- }
- case 550:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1019;
- case 3: componentid = 1020;
- }
- }
- case 551:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1019;
- case 3: componentid = 1020;
- case 4: componentid = 1021;
- }
- }
- case 558:
- {
- switch(count)
- {
- case 1: componentid = 1089;
- case 2: componentid = 1092;
- }
- }
- case 559:
- {
- switch(count)
- {
- case 1: componentid = 1065;
- case 2: componentid = 1066;
- }
- }
- case 560:
- {
- switch(count)
- {
- case 1: componentid = 1028;
- case 2: componentid = 1029;
- }
- }
- case 561:
- {
- switch(count)
- {
- case 1: componentid = 1059;
- case 2: componentid = 1064;
- }
- }
- case 562:
- {
- switch(count)
- {
- case 1: componentid = 1034;
- case 2: componentid = 1037;
- }
- }
- case 565:
- {
- switch(count)
- {
- case 1: componentid = 1045;
- case 2: componentid = 1046;
- }
- }
- case 567:
- {
- switch(count)
- {
- case 1: componentid = 1129;
- case 2: componentid = 1132;
- }
- }
- case 575:
- {
- switch(count)
- {
- case 1: componentid = 1043;
- case 2: componentid = 1044;
- }
- }
- case 576:
- {
- switch(count)
- {
- case 1: componentid = 1135;
- case 2: componentid = 1136;
- }
- }
- case 580:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1020;
- }
- }
- case 585:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1019;
- case 3: componentid = 1020;
- }
- }
- case 589:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1020;
- }
- }
- case 600:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1020;
- case 3: componentid = 1022;
- }
- }
- case 603:
- {
- switch(count)
- {
- case 1: componentid = 1018;
- case 2: componentid = 1019;
- case 3: componentid = 1020;
- }
- }
- }
- return componentid;
- }
- GetVehicleFBumperCount(model, &count = 0)
- {
- switch(model)
- {
- case 535: count = 1;
- case 534, 536, 558, 559, 560, 561, 562, 565, 567, 575, 576: count = 2;
- }
- return count;
- }
- GetVehicleCompatibleFBumper(model, count, &componentid = 0)
- {
- switch(model)
- {
- case 534:
- {
- switch(count)
- {
- case 1: componentid = 1179;
- case 2: componentid = 1185;
- }
- }
- case 535:
- {
- switch(count)
- {
- case 1: componentid = 1117;
- }
- }
- case 536:
- {
- switch(count)
- {
- case 1: componentid = 1181;
- case 2: componentid = 1182;
- }
- }
- case 558:
- {
- switch(count)
- {
- case 1: componentid = 1165;
- case 2: componentid = 1166;
- }
- }
- case 559:
- {
- switch(count)
- {
- case 1: componentid = 1160;
- case 2: componentid = 1173;
- }
- }
- case 560:
- {
- switch(count)
- {
- case 1: componentid = 1169;
- case 2: componentid = 1170;
- }
- }
- case 561:
- {
- switch(count)
- {
- case 1: componentid = 1155;
- case 2: componentid = 1157;
- }
- }
- case 562:
- {
- switch(count)
- {
- case 1: componentid = 1171;
- case 2: componentid = 1172;
- }
- }
- case 565:
- {
- switch(count)
- {
- case 1: componentid = 1152;
- case 2: componentid = 1153;
- }
- }
- case 567:
- {
- switch(count)
- {
- case 1: componentid = 1188;
- case 2: componentid = 1189;
- }
- }
- case 575:
- {
- switch(count)
- {
- case 1: componentid = 1174;
- case 2: componentid = 1176;
- }
- }
- case 576:
- {
- switch(count)
- {
- case 1: componentid = 1190;
- case 2: componentid = 1191;
- }
- }
- }
- return componentid;
- }
- GetVehicleBBumperCount(model, &count = 0)
- {
- switch(model)
- {
- case 534, 536, 558, 559, 560, 561, 562, 565, 567, 575, 576: count = 2;
- }
- return count;
- }
- GetVehicleCompatibleBBumper(model, count, &componentid = 0)
- {
- switch(model)
- {
- case 534:
- {
- switch(count)
- {
- case 1: componentid = 1178;
- case 2: componentid = 1180;
- }
- }
- case 536:
- {
- switch(count)
- {
- case 1: componentid = 1183;
- case 2: componentid = 1184;
- }
- }
- case 558:
- {
- switch(count)
- {
- case 1: componentid = 1167;
- case 2: componentid = 1168;
- }
- }
- case 559:
- {
- switch(count)
- {
- case 1: componentid = 1159;
- case 2: componentid = 1161;
- }
- }
- case 560:
- {
- switch(count)
- {
- case 1: componentid = 1140;
- case 2: componentid = 1141;
- }
- }
- case 561:
- {
- switch(count)
- {
- case 1: componentid = 1154;
- case 2: componentid = 1156;
- }
- }
- case 562:
- {
- switch(count)
- {
- case 1: componentid = 1148;
- case 2: componentid = 1149;
- }
- }
- case 565:
- {
- switch(count)
- {
- case 1: componentid = 1150;
- case 2: componentid = 1151;
- }
- }
- case 567:
- {
- switch(count)
- {
- case 1: componentid = 1186;
- case 2: componentid = 1187;
- }
- }
- case 575:
- {
- switch(count)
- {
- case 1: componentid = 1175;
- case 2: componentid = 1177;
- }
- }
- case 576:
- {
- switch(count)
- {
- case 1: componentid = 1192;
- case 2: componentid = 1193;
- }
- }
- }
- return componentid;
- }
- GetVehicleRoofCount(model, &count = 0)
- {
- switch(model)
- {
- case 401, 418, 426, 436, 477, 489, 492, 496, 518, 529, 540, 546, 550, 551, 580, 585, 589, 600, 603: count = 1;
- case 536, 558, 559, 560, 561, 562, 565, 567: count = 2;
- }
- return count;
- }
- GetVehicleCompatibleRoof(model, count, &componentid = 0)
- {
- switch(model)
- {
- case 401:
- {
- switch(count)
- {
- case 1: componentid = 1006;
- }
- }
- case 418:
- {
- switch(count)
- {
- case 1: componentid = 1006;
- }
- }
- case 426:
- {
- switch(count)
- {
- case 1: componentid = 1006;
- }
- }
- case 436:
- {
- switch(count)
- {
- case 1: componentid = 1006;
- }
- }
- case 477:
- {
- switch(count)
- {
- case 1: componentid = 1006;
- }
- }
- case 489:
- {
- switch(count)
- {
- case 1: componentid = 1006;
- }
- }
- case 492:
- {
- switch(count)
- {
- case 1: componentid = 1006;
- }
- }
- case 496:
- {
- switch(count)
- {
- case 1: componentid = 1006;
- }
- }
- case 518:
- {
- switch(count)
- {
- case 1: componentid = 1006;
- }
- }
- case 529:
- {
- switch(count)
- {
- case 1: componentid = 1006;
- }
- }
- case 536:
- {
- switch(count)
- {
- case 1: componentid = 1103;
- case 2: componentid = 1128;
- }
- }
- case 540:
- {
- switch(count)
- {
- case 1: componentid = 1006;
- }
- }
- case 546:
- {
- switch(count)
- {
- case 1: componentid = 1006;
- }
- }
- case 550:
- {
- switch(count)
- {
- case 1: componentid = 1006;
- }
- }
- case 551:
- {
- switch(count)
- {
- case 1: componentid = 1006;
- }
- }
- case 558:
- {
- switch(count)
- {
- case 1: componentid = 1088;
- case 2: componentid = 1091;
- }
- }
- case 559:
- {
- switch(count)
- {
- case 1: componentid = 1067;
- case 2: componentid = 1068;
- }
- }
- case 560:
- {
- switch(count)
- {
- case 1: componentid = 1032;
- case 2: componentid = 1033;
- }
- }
- case 561:
- {
- switch(count)
- {
- case 1: componentid = 1055;
- case 2: componentid = 1061;
- }
- }
- case 562:
- {
- switch(count)
- {
- case 1: componentid = 1035;
- case 2: componentid = 1038;
- }
- }
- case 565:
- {
- switch(count)
- {
- case 1: componentid = 1053;
- case 2: componentid = 1054;
- }
- }
- case 567:
- {
- switch(count)
- {
- case 1: componentid = 1130;
- case 2: componentid = 1131;
- }
- }
- case 580:
- {
- switch(count)
- {
- case 1: componentid = 1006;
- }
- }
- case 585:
- {
- switch(count)
- {
- case 1: componentid = 1006;
- }
- }
- case 589:
- {
- switch(count)
- {
- case 1: componentid = 1006;
- }
- }
- case 600:
- {
- switch(count)
- {
- case 1: componentid = 1006;
- }
- }
- case 603:
- {
- switch(count)
- {
- case 1: componentid = 1006;
- }
- }
- }
- return componentid;
- }
- GetVehicleWheelCount(model, &count = 0)
- {
- switch(model)
- {
- case 400,401,404,405,410,415,418,420..422,426,436,439,477,478,489,491,492,496,500,516..518,527,529,534..536,540,542,546,547,549..551,558..562,565,567,575,576,580,585,589,600,603: count = 17;
- case 402,403,406..409,411..414,416,419,423,424,427..429,431..435,437,438,440..445,448,450,451,455..459,461..463,466..468,470,471,474,475,479..486,490,494,495,498,499,502..510,514,515,521..526,528,530..533,541,552,543..545,554..557,566,568,578,571..574,579,581..584,586..588,591,594,596..599,601,602,604..611: count = 17;
- }
- return count;
- }
- GetVehicleCompatibleWheel(model, count, &componentid = 0)
- {
- switch(model)
- {
- case 400,401,404,405,410,415,418,420..422,426,436,439,477,478,489,491,492,496,500,516..518,527,529,534..536,540,542,546,547,549..551,558..562,565,567,575,576,580,585,589,600,603:
- {
- switch(count)
- {
- case 1: componentid = 1025;
- case 2: componentid = 1073;
- case 3: componentid = 1074;
- case 4: componentid = 1075;
- case 5: componentid = 1076;
- case 6: componentid = 1077;
- case 7: componentid = 1078;
- case 8: componentid = 1079;
- case 9: componentid = 1080;
- case 10: componentid = 1081;
- case 11: componentid = 1082;
- case 12: componentid = 1083;
- case 13: componentid = 1084;
- case 14: componentid = 1085;
- case 15: componentid = 1096;
- case 16: componentid = 1097;
- case 17: componentid = 1098;
- }
- }
- case 402,403,406..409,411..414,416,419,423,424,427..429,431..435,437,438,440..445,448,450,451,455..459,461..463,466..468,470,471,474,475,479..486,490,494,495,498,499,502..510,514,515,521..526,528,530..533,541,552,543..545,554..557,566,568,578,571..574,579,581..584,586..588,591,594,596..599,601,602,604..611:
- {
- switch(count)
- {
- case 1: componentid = 1025;
- case 2: componentid = 1073;
- case 3: componentid = 1074;
- case 4: componentid = 1075;
- case 5: componentid = 1076;
- case 6: componentid = 1077;
- case 7: componentid = 1078;
- case 8: componentid = 1079;
- case 9: componentid = 1080;
- case 10: componentid = 1081;
- case 11: componentid = 1082;
- case 12: componentid = 1083;
- case 13: componentid = 1084;
- case 14: componentid = 1085;
- case 15: componentid = 1096;
- case 16: componentid = 1097;
- case 17: componentid = 1098;
- }
- }
- }
- return componentid;
- }
- GetVehicleHydraulicCount(model, &count = 0)
- {
- switch(model)
- {
- case 400,401,404,405,410,415,418,420..422,426,436,439,477,478,489,491,492,496,500,516..518,527,529,534..536,540,542,546,547,549..551,558..562,565,567,575,576,580,585,589,600,603: count = 1;
- case 402,403,406..409,411..414,416,419,423,424,427..429,431..435,437,438,440..445,448,450,451,455..459,461..463,466..468,470,471,474,475,479..486,490,494,495,498,499,502..510,514,515,521..526,528,530..533,541,552,543..545,554..557,566,568,578,571..574,579,581..584,586..588,591,594,596..599,601,602,604..611: count = 1;
- }
- return count;
- }
- GetVehicleCompatibleHydraulic(model, count, &componentid = 0)
- {
- switch(model)
- {
- case 400,401,404,405,410,415,418,420..422,426,436,439,477,478,489,491,492,496,500,516..518,527,529,534..536,540,542,546,547,549..551,558..562,565,567,575,576,580,585,589,600,603:
- {
- switch(count)
- {
- case 1: componentid = 1087;
- }
- }
- case 402,403,406..409,411..414,416,419,423,424,427..429,431..435,437,438,440..445,448,450,451,455..459,461..463,466..468,470,471,474,475,479..486,490,494,495,498,499,502..510,514,515,521..526,528,530..533,541,552,543..545,554..557,566,568,578,571..574,579,581..584,586..588,591,594,596..599,601,602,604..611:
- {
- switch(count)
- {
- case 1: componentid = 1087;
- }
- }
- }
- return componentid;
- }
- GetVehicleNitroCount(model, &count = 0)
- {
- switch(model)
- {
- case 400,401,404,405,410,415,418,420..422,426,436,439,477,478,489,491,492,496,500,516..518,527,529,534..536,540,542,546,547,549..551,558..562,565,567,575,576,580,585,589,600,603: count = 3;
- case 402,403,406..409,411..414,416,419,423,424,427..429,431..435,437,438,440..445,448,450,451,455..459,461..463,466..468,470,471,474,475,479..486,490,494,495,498,499,502..510,514,515,521..526,528,530..533,541,552,543..545,554..557,566,568,578,571..574,579,581..584,586..588,591,594,596..599,601,602,604..611: count = 3;
- }
- return count;
- }
- GetVehicleCompatibleNitro(model, count, &componentid = 0)
- {
- switch(model)
- {
- case 400,401,404,405,410,415,418,420..422,426,436,439,477,478,489,491,492,496,500,516..518,527,529,534..536,540,542,546,547,549..551,558..562,565,567,575,576,580,585,589,600,603:
- {
- switch(count)
- {
- case 1: componentid = 1009;
- case 2: componentid = 1008;
- case 3: componentid = 1010;
- }
- }
- case 402,403,406..409,411..414,416,419,423,424,427..429,431..435,437,438,440..445,448,450,451,455..459,461..463,466..468,470,471,474,475,479..486,490,494,495,498,499,502..510,514,515,521..526,528,530..533,541,552,543..545,554..557,566,568,578,571..574,579,581..584,586..588,591,594,596..599,601,602,604..611:
- {
- switch(count)
- {
- case 1: componentid = 1009;
- case 2: componentid = 1008;
- case 3: componentid = 1010;
- }
- }
- }
- return componentid;
- }
- stock GetVehicleRightSSCount(model, &count = 0)
- {
- switch(model)
- {
- case 401, 404, 410, 415, 422, 436, 439, 477, 491, 496, 516, 517, 518, 527, 529, 536, 540, 546, 549, 575, 576, 580, 585, 589, 600, 603: count = 1;
- case 534, 535, 558..562, 565: count = 2;
- }
- return count;
- }
- stock GetVehicleCompatibleRightSS(model, count, &componentid = 0)
- {
- switch(model)
- {
- case 401:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 404:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 410:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 415:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 422:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 436:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 439:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 477:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 491:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 496:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 516:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 517:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 518:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 527:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 529:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 534:
- {
- switch(count)
- {
- case 1: componentid = 1106;
- case 2: componentid = 1122;
- }
- }
- case 535:
- {
- switch(count)
- {
- case 1: componentid = 1118;
- case 2: componentid = 1119;
- }
- }
- case 536:
- {
- switch(count)
- {
- case 1: componentid = 1108;
- }
- }
- case 540:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 546:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 549:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 558:
- {
- switch(count)
- {
- case 1: componentid = 1090;
- case 2: componentid = 1095;
- }
- }
- case 559:
- {
- switch(count)
- {
- case 1: componentid = 1069;
- case 2: componentid = 1070;
- }
- }
- case 560:
- {
- switch(count)
- {
- case 1: componentid = 1026;
- case 2: componentid = 1031;
- }
- }
- case 561:
- {
- switch(count)
- {
- case 1: componentid = 1056;
- case 2: componentid = 1057;
- }
- }
- case 562:
- {
- switch(count)
- {
- case 1: componentid = 1036;
- case 2: componentid = 1041;
- }
- }
- case 565:
- {
- switch(count)
- {
- case 1: componentid = 1047;
- case 2: componentid = 1048;
- }
- }
- case 567:
- {
- switch(count)
- {
- case 1: componentid = 1133;
- }
- }
- case 575:
- {
- switch(count)
- {
- case 1: componentid = 1042;
- }
- }
- case 576:
- {
- switch(count)
- {
- case 1: componentid = 1134;
- }
- }
- case 580:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 585:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 589:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 600:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- case 603:
- {
- switch(count)
- {
- case 1: componentid = 1007;
- }
- }
- }
- return componentid;
- }
- stock GetVehicleLeftSSCount(model, &count = 0)
- {
- switch(model)
- {
- case 401, 404, 410, 415, 422, 436, 439, 477, 491, 496, 516, 517, 518, 527, 529, 536, 540, 546, 549, 575, 576, 580, 585, 589, 600, 603: count = 1;
- case 534, 535, 558..562, 565: count = 2;
- }
- return count;
- }
- stock GetVehicleCompatibleLeftSS(model, count, &componentid = 0)
- {
- switch(model)
- {
- case 401:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 404:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 410:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 415:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 422:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 436:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 439:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 477:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 491:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 496:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 516:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 517:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 518:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 527:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 529:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 534:
- {
- switch(count)
- {
- case 1: componentid = 1101;
- case 2: componentid = 1124;
- }
- }
- case 535:
- {
- switch(count)
- {
- case 1: componentid = 1120;
- case 2: componentid = 1121;
- }
- }
- case 536:
- {
- switch(count)
- {
- case 1: componentid = 1107;
- }
- }
- case 540:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 546:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 549:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 558:
- {
- switch(count)
- {
- case 1: componentid = 1093;
- case 2: componentid = 1094;
- }
- }
- case 559:
- {
- switch(count)
- {
- case 1: componentid = 1071;
- case 2: componentid = 1072;
- }
- }
- case 560:
- {
- switch(count)
- {
- case 1: componentid = 1027;
- case 2: componentid = 1030;
- }
- }
- case 561:
- {
- switch(count)
- {
- case 1: componentid = 1062;
- case 2: componentid = 1063;
- }
- }
- case 562:
- {
- switch(count)
- {
- case 1: componentid = 1039;
- case 2: componentid = 1040;
- }
- }
- case 565:
- {
- switch(count)
- {
- case 1: componentid = 1051;
- case 2: componentid = 1052;
- }
- }
- case 567:
- {
- switch(count)
- {
- case 1: componentid = 1102;
- }
- }
- case 575:
- {
- switch(count)
- {
- case 1: componentid = 1099;
- }
- }
- case 576:
- {
- switch(count)
- {
- case 1: componentid = 1137;
- }
- }
- case 580:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 585:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 589:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 600:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- case 603:
- {
- switch(count)
- {
- case 1: componentid = 1017;
- }
- }
- }
- return componentid;
- }
- stock GetVehiclePaintJobCount(model, &count = 0)
- {
- switch(model)
- {
- case 483: count = 1;
- case 575: count = 2;
- case 534, 535, 536, 558..562, 565, 567, 576: count = 3;
- }
- return count;
- }
- stock GetVehicleCompatiblePaintJob(model, count, &componentid = 0)
- {
- switch(model)
- {
- case 483:
- {
- switch(count)
- {
- case 1: componentid = 0;
- }
- }
- case 534:
- {
- switch(count)
- {
- case 1: componentid = 0;
- case 2: componentid = 1;
- case 3: componentid = 2;
- }
- }
- case 535:
- {
- switch(count)
- {
- case 1: componentid = 0;
- case 2: componentid = 1;
- case 3: componentid = 2;
- }
- }
- case 536:
- {
- switch(count)
- {
- case 1: componentid = 0;
- case 2: componentid = 1;
- case 3: componentid = 2;
- }
- }
- case 558..562:
- {
- switch(count)
- {
- case 1: componentid = 0;
- case 2: componentid = 1;
- case 3: componentid = 2;
- }
- }
- case 565:
- {
- switch(count)
- {
- case 1: componentid = 0;
- case 2: componentid = 1;
- case 3: componentid = 2;
- }
- }
- case 567:
- {
- switch(count)
- {
- case 1: componentid = 0;
- case 2: componentid = 1;
- case 3: componentid = 2;
- }
- }
- case 575:
- {
- switch(count)
- {
- case 1: componentid = 0;
- case 2: componentid = 1;
- }
- }
- case 576:
- {
- switch(count)
- {
- case 1: componentid = 0;
- case 2: componentid = 1;
- case 3:componentid = 2;
- }
- }
- }
- return componentid;
- }
- GetVehicleCompatibleComponent(category, model, listitem)
- {
- switch(category)
- {
- case 0: return GetVehicleCompatibleSpoiler(model, listitem);
- case 1: return GetVehicleCompatibleHood(model, listitem);
- case 2: return GetVehicleCompatibleExhaust(model, listitem);
- case 3: return GetVehicleCompatibleFBumper(model, listitem);
- case 4: return GetVehicleCompatibleBBumper(model, listitem);
- case 5: return GetVehicleCompatibleRoof(model, listitem);
- case 6: return GetVehicleCompatibleWheel(model, listitem);
- case 7: return GetVehicleCompatibleHydraulic(model, listitem);
- case 8: return GetVehicleCompatibleNitro(model, listitem);
- case 9: return GetVehicleCompatibleLeftSS(model, listitem);
- case 10: return GetVehicleCompatiblePaintJob(model, listitem);
- }
- return 0;
- }
- SetPlayerTuningCameraPos(playerid, category)
- {
- switch(category)
- {
- case 0:
- {
- SetPlayerCameraPos(playerid, 441.1662, -1302.0037, 18.0385);
- SetPlayerCameraLookAt(playerid, 440.2185, -1301.6881, 17.6184);
- }
- case 1:
- {
- InterpolateCameraPos(playerid, 441.1662, -1302.0037, 18.0385, 433.8757, -1306.9038, 17.3670, 2000, CAMERA_MOVE);
- InterpolateCameraLookAt(playerid, 440.2185, -1301.6881, 17.6184, 433.8736, -1305.9052, 16.9670, 2000, CAMERA_MOVE);
- }
- case 2:
- {
- InterpolateCameraPos(playerid, 433.8757, -1306.9038, 17.3670, 434.0576, -1291.3750, 14.7338, 2000, CAMERA_MOVE);
- InterpolateCameraLookAt(playerid, 433.8736, -1305.9052, 16.9670, 434.0497, -1292.3737, 14.6737, 2000, CAMERA_MOVE);
- }
- case 3:
- {
- InterpolateCameraPos(playerid, 434.0576, -1291.3750, 14.7338, 434.3085, -1308.4880, 15.5030, 2000, CAMERA_MOVE);
- InterpolateCameraLookAt(playerid, 434.0497, -1292.3737, 14.6737, 434.2510, -1307.4908, 15.4430, 2000, CAMERA_MOVE);
- }
- case 4:
- {
- InterpolateCameraPos(playerid, 434.3085, -1308.4880, 15.5030, 434.0576, -1291.3750, 14.7338, 2000, CAMERA_MOVE);
- InterpolateCameraLookAt(playerid, 434.2510, -1307.4908, 15.4430, 434.0497, -1292.3737, 14.6737, 2000, CAMERA_MOVE);
- }
- case 5:
- {
- InterpolateCameraPos(playerid, 434.0576, -1291.3750, 14.7338, 434.1084, -1302.1560, 18.7596, 2000, CAMERA_MOVE);
- InterpolateCameraLookAt(playerid, 434.0497, -1292.3737, 14.6737, 434.0650, -1301.1581, 17.5145, 2000, CAMERA_MOVE);
- }
- case 6:
- {
- InterpolateCameraPos(playerid, 434.1084, -1302.1560, 18.7596, 437.3644, -1301.3735, 15.4735, 2000, CAMERA_MOVE);
- InterpolateCameraLookAt(playerid, 434.0650, -1301.1581, 17.5145, 436.5263, -1300.8302, 15.2985, 2000, CAMERA_MOVE);
- }
- case 7:
- {
- InterpolateCameraPos(playerid, 437.3644, -1301.3735, 15.4735, 437.6285, -1305.2942, 15.9692, 2000, CAMERA_MOVE);
- InterpolateCameraLookAt(playerid, 436.5263, -1300.8302, 15.2985, 437.0403, -1304.4867, 15.7142, 2000, CAMERA_MOVE);
- }
- case 8:
- {
- InterpolateCameraPos(playerid, 437.6285, -1305.2942, 15.9692, 434.1383, -1293.2971, 19.6626, 2000, CAMERA_MOVE);
- InterpolateCameraLookAt(playerid, 437.0403, -1304.4867, 15.7142, 434.1313, -1294.2961, 18.7776, 2000, CAMERA_MOVE);
- }
- case 9:
- {
- InterpolateCameraPos(playerid, 434.1383, -1293.2971, 19.6626, 438.7916, -1299.0066, 15.9129, 2000, CAMERA_MOVE);
- InterpolateCameraLookAt(playerid, 434.1313, -1294.2961, 18.7776, 437.7929, -1299.0272, 15.7329, 2000, CAMERA_MOVE);
- }
- case 10:
- {
- InterpolateCameraPos(playerid, 438.7916, -1299.0066, 15.9129, 433.8757, -1306.9038, 17.3670, 2000, CAMERA_MOVE);
- InterpolateCameraLookAt(playerid, 437.7929, -1299.0272, 15.7329, 433.8736, -1305.9052, 16.9670, 2000, CAMERA_MOVE);
- }
- default: return 0;
- }
- return 1;
- }*/
- /*
- * yes hello, mobile data computer version 1.1-A1
- */
- /*CMD:mdctest(playerid, params[]) {
- if(!PlayerData[playerid][pAdmin]) {
- SendClientMessage(playerid, -1, "u must be an admin to test the mdc");
- return 0;
- }
-
- showMDTTextdraws(playerid);
- return 1;
- }
- static PlayerText:mdc_PlayerComputerTextdraws[MAX_PLAYERS][21];
- showMDTTextdraws(playerid) {
- for(new index = 0; index < 21; index++)
- PlayerTextDrawShow(playerid, mdc_PlayerComputerTextdraws[playerid][index]);
- }
- stock hideMDTTextdraws(playerid) {
- for(new index = 0; index < 21; index++)
- PlayerTextDrawHide(playerid, mdc_PlayerComputerTextdraws[playerid][index]);
- }
- createMDTTextdraws(playerid) {
- mdc_PlayerComputerTextdraws[playerid][0] = CreatePlayerTextDraw(playerid, 164.904830, 117.666671, "box");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][0], 0.000000, 25.789161);
- PlayerTextDrawTextSize(playerid, mdc_PlayerComputerTextdraws[playerid][0], 501.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][0], 1);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][0], -1061109505);
- PlayerTextDrawUseBox(playerid, mdc_PlayerComputerTextdraws[playerid][0], 1);
- PlayerTextDrawBoxColor(playerid, mdc_PlayerComputerTextdraws[playerid][0], -1061109505);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][0], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][0], 255);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][0], 1);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][0], 0);
- mdc_PlayerComputerTextdraws[playerid][1] = CreatePlayerTextDraw(playerid, 166.310394, 119.416687, "box");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][1], 0.000000, 25.461196);
- PlayerTextDrawTextSize(playerid, mdc_PlayerComputerTextdraws[playerid][1], 500.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][1], 1);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][1], -1061109505);
- PlayerTextDrawUseBox(playerid, mdc_PlayerComputerTextdraws[playerid][1], 1);
- PlayerTextDrawBoxColor(playerid, mdc_PlayerComputerTextdraws[playerid][1], -572662273);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][1], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][1], 255);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][1], 1);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][1], 0);
- mdc_PlayerComputerTextdraws[playerid][2] = CreatePlayerTextDraw(playerid, 167.247436, 119.999977, "box");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][2], 0.000000, 1.144950);
- PlayerTextDrawTextSize(playerid, mdc_PlayerComputerTextdraws[playerid][2], 499.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][2], 1);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][2], -1);
- PlayerTextDrawUseBox(playerid, mdc_PlayerComputerTextdraws[playerid][2], 1);
- PlayerTextDrawBoxColor(playerid, mdc_PlayerComputerTextdraws[playerid][2], 0x0C2050FF);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][2], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][2], 255);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][2], 1);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][2], 0);
- mdc_PlayerComputerTextdraws[playerid][3] = CreatePlayerTextDraw(playerid, 464.0, 120.0, "minimize");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][3], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, mdc_PlayerComputerTextdraws[playerid][3], 17.000000, 11.0);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][3], 1);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][3], -1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][3], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][3], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][3], 0x2266CCFF);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][3], 5);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][3], 0);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][3], 0);
- PlayerTextDrawSetPreviewModel(playerid, mdc_PlayerComputerTextdraws[playerid][3], 0);
- PlayerTextDrawSetPreviewRot(playerid, mdc_PlayerComputerTextdraws[playerid][3], 0.000000, 0.000000, 0.000000, -11.000000);
- PlayerTextDrawSetSelectable(playerid, mdc_PlayerComputerTextdraws[playerid][3], true);
- mdc_PlayerComputerTextdraws[playerid][4] = CreatePlayerTextDraw(playerid, 469.912292, 117.083343, "-");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][4], 0.400000, 1.600000);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][4], 1);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][4], -1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][4], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][4], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][4], 255);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][4], 2);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][4], 0);
- mdc_PlayerComputerTextdraws[playerid][5] = CreatePlayerTextDraw(playerid, 482.0, 120.0, "exit");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][5], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, mdc_PlayerComputerTextdraws[playerid][5], 17.000000, 11.0);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][5], 1);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][5], -1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][5], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][5], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][5], -1440603393);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][5], 5);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][5], 0);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][5], 0);
- PlayerTextDrawSetPreviewModel(playerid, mdc_PlayerComputerTextdraws[playerid][5], 0);
- PlayerTextDrawSetPreviewRot(playerid, mdc_PlayerComputerTextdraws[playerid][5], 0.000000, 0.000000, 0.000000, -11.000000);
- PlayerTextDrawSetSelectable(playerid, mdc_PlayerComputerTextdraws[playerid][5], true);
- mdc_PlayerComputerTextdraws[playerid][6] = CreatePlayerTextDraw(playerid, 490.5, 117.666679, "x");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][6], 0.321287, 1.331665);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][6], 2);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][6], -1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][6], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][6], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][6], 255);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][6], 1);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][6], 1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][6], 0);
- mdc_PlayerComputerTextdraws[playerid][7] = CreatePlayerTextDraw(playerid, 168.016098, 120.000022, "hud:radar_emmetGun");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][7], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, mdc_PlayerComputerTextdraws[playerid][7], 10.000000, 10.000000);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][7], 1);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][7], -1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][7], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][7], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][7], 255);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][7], 4);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][7], 0);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][7], 0);
- mdc_PlayerComputerTextdraws[playerid][8] = CreatePlayerTextDraw(playerid, 182.240127, 119.416679, "Invalid Faction");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][8], 0.199472, 1.104166);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][8], 1);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][8], -1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][8], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][8], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][8], 255);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][8], 1);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][8], 1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][8], 0);
- mdc_PlayerComputerTextdraws[playerid][9] = CreatePlayerTextDraw(playerid, 460.0, 118.833358, "John Doe");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][9], 0.233206, 1.220832);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][9], 3);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][9], -1785159937);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][9], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][9], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][9], 255);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][9], 1);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][9], 1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][9], 0);
- mdc_PlayerComputerTextdraws[playerid][10] = CreatePlayerTextDraw(playerid, 166.610565, 134.000015, "Dashboard");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][10], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, mdc_PlayerComputerTextdraws[playerid][10], 59.000000, 13.000000);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][10], 1);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][10], -1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][10], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][10], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][10], 0x333333FF);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][10], 5);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][10], 0);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][10], 0);
- PlayerTextDrawSetSelectable(playerid, mdc_PlayerComputerTextdraws[playerid][10], true);
- PlayerTextDrawSetPreviewModel(playerid, mdc_PlayerComputerTextdraws[playerid][10], 0);
- PlayerTextDrawSetPreviewRot(playerid, mdc_PlayerComputerTextdraws[playerid][10], 0.000000, 0.000000, 0.000000, -1.000000);
- mdc_PlayerComputerTextdraws[playerid][11] = CreatePlayerTextDraw(playerid, 166.610565, 149.166732, "Database");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][11], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, mdc_PlayerComputerTextdraws[playerid][11], 59.000000, 13.000000);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][11], 1);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][11], -1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][11], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][11], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][11], 0xAAAAAAFF);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][11], 5);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][11], 0);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][11], 0);
- PlayerTextDrawSetSelectable(playerid, mdc_PlayerComputerTextdraws[playerid][11], true);
- PlayerTextDrawSetPreviewModel(playerid, mdc_PlayerComputerTextdraws[playerid][11], 0);
- PlayerTextDrawSetPreviewRot(playerid, mdc_PlayerComputerTextdraws[playerid][11], 0.000000, 0.000000, 0.000000, -1.000000);
- mdc_PlayerComputerTextdraws[playerid][12] = CreatePlayerTextDraw(playerid, 166.610565, 164.333404, "Dispatch");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][12], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, mdc_PlayerComputerTextdraws[playerid][12], 59.000000, 13.000000);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][12], 1);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][12], -1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][12], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][12], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][12], 0xAAAAAAFF);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][12], 5);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][12], 0);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][12], 0);
- PlayerTextDrawSetSelectable(playerid, mdc_PlayerComputerTextdraws[playerid][12], true);
- PlayerTextDrawSetPreviewModel(playerid, mdc_PlayerComputerTextdraws[playerid][12], 0);
- PlayerTextDrawSetPreviewRot(playerid, mdc_PlayerComputerTextdraws[playerid][12], 0.000000, 0.000000, 0.000000, -1.000000);
- mdc_PlayerComputerTextdraws[playerid][13] = CreatePlayerTextDraw(playerid, 166.610565, 179.5, "Roster");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][13], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, mdc_PlayerComputerTextdraws[playerid][13], 59.000000, 13.000000);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][13], 1);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][13], -1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][13], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][13], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][13], 0xAAAAAAFF);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][13], 5);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][13], 0);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][13], 0);
- PlayerTextDrawSetSelectable(playerid, mdc_PlayerComputerTextdraws[playerid][13], true);
- PlayerTextDrawSetPreviewModel(playerid, mdc_PlayerComputerTextdraws[playerid][13], 0);
- PlayerTextDrawSetPreviewRot(playerid, mdc_PlayerComputerTextdraws[playerid][13], 0.000000, 0.000000, 0.000000, -1.000000);
- mdc_PlayerComputerTextdraws[playerid][14] = CreatePlayerTextDraw(playerid, 166.610565, 194.666596, "A.P.B.");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][14], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, mdc_PlayerComputerTextdraws[playerid][14], 59.000000, 13.000000);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][14], 1);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][14], -1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][14], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][14], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][14], 0xAAAAAAFF);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][14], 5);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][14], 0);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][14], 0);
- PlayerTextDrawSetSelectable(playerid, mdc_PlayerComputerTextdraws[playerid][14], true);
- PlayerTextDrawSetPreviewModel(playerid, mdc_PlayerComputerTextdraws[playerid][14], 0);
- PlayerTextDrawSetPreviewRot(playerid, mdc_PlayerComputerTextdraws[playerid][14], 0.000000, 0.000000, 0.000000, -1.000000);
- mdc_PlayerComputerTextdraws[playerid][15] = CreatePlayerTextDraw(playerid, 196.110565, 133.416641, "Dashboard");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][15], 0.178389, 1.232499);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][15], 2);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][15], 0xFFFFFFFF);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][15], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][15], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][15], 255);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][15], 2);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][15], 1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][15], 0);
- mdc_PlayerComputerTextdraws[playerid][16] = CreatePlayerTextDraw(playerid, 196.110565, 148.583328, "Database");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][16], 0.178389, 1.232499);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][16], 2);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][16], 0x333333FF);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][16], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][16], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][16], 255);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][16], 2);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][16], 1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][16], 0);
- mdc_PlayerComputerTextdraws[playerid][17] = CreatePlayerTextDraw(playerid, 196.110565, 163.749984, "Dispatch");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][17], 0.178389, 1.232499);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][17], 2);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][17], 0x333333FF);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][17], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][17], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][17], 255);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][17], 2);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][17], 1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][17], 0);
- mdc_PlayerComputerTextdraws[playerid][18] = CreatePlayerTextDraw(playerid, 196.110565, 178.915, "Roster");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][18], 0.178389, 1.232499);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][18], 2);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][18], 0x333333FF);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][18], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][18], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][18], 255);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][18], 2);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][18], 1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][18], 0);
- mdc_PlayerComputerTextdraws[playerid][19] = CreatePlayerTextDraw(playerid, 196.110565, 194.080016, "A.P.B.");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][19], 0.178389, 1.232499);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][19], 2);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][19], 0x333333FF);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][19], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][19], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][19], 255);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][19], 2);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][19], 1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][19], 0);
- mdc_PlayerComputerTextdraws[playerid][20] = CreatePlayerTextDraw(playerid, 229.560760, 136.333328, "box");
- PlayerTextDrawLetterSize(playerid, mdc_PlayerComputerTextdraws[playerid][20], 0.000000, 23.212295);
- PlayerTextDrawTextSize(playerid, mdc_PlayerComputerTextdraws[playerid][20], 229.360760, 0.000000);
- PlayerTextDrawAlignment(playerid, mdc_PlayerComputerTextdraws[playerid][20], 1);
- PlayerTextDrawColor(playerid, mdc_PlayerComputerTextdraws[playerid][20], -1);
- PlayerTextDrawUseBox(playerid, mdc_PlayerComputerTextdraws[playerid][20], 1);
- PlayerTextDrawBoxColor(playerid, mdc_PlayerComputerTextdraws[playerid][20], -1431655681);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][20], 0);
- PlayerTextDrawSetOutline(playerid, mdc_PlayerComputerTextdraws[playerid][20], 0);
- PlayerTextDrawBackgroundColor(playerid, mdc_PlayerComputerTextdraws[playerid][20], 255);
- PlayerTextDrawFont(playerid, mdc_PlayerComputerTextdraws[playerid][20], 1);
- PlayerTextDrawSetProportional(playerid, mdc_PlayerComputerTextdraws[playerid][20], 1);
- PlayerTextDrawSetShadow(playerid, mdc_PlayerComputerTextdraws[playerid][20], 0);
- }
- */
- stock InitMDC(playerid)
- {
- MDC_UI[playerid][0] = CreatePlayerTextDraw(playerid, 164.904830, 117.666671, "box");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][0], 0.000000, 25.789161);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][0], 501.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][0], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][0], -1061109505);
- PlayerTextDrawUseBox(playerid, MDC_UI[playerid][0], 1);
- PlayerTextDrawBoxColor(playerid, MDC_UI[playerid][0], -1061109505);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][0], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][0], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][0], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][0], 0);
- MDC_UI[playerid][1] = CreatePlayerTextDraw(playerid, 166.310394, 119.416687, "box");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][1], 0.000000, 25.461196);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][1], 500.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][1], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][1], -1061109505);
- PlayerTextDrawUseBox(playerid, MDC_UI[playerid][1], 1);
- PlayerTextDrawBoxColor(playerid, MDC_UI[playerid][1], -572662273);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][1], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][1], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][1], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][1], 0);
- MDC_UI[playerid][2] = CreatePlayerTextDraw(playerid, 167.247436, 119.999977, "box");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][2], 0.000000, 1.144950);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][2], 499.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][2], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][2], -1);
- PlayerTextDrawUseBox(playerid, MDC_UI[playerid][2], 1);
- PlayerTextDrawBoxColor(playerid, MDC_UI[playerid][2], 203444479);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][2], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][2], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][2], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][2], 0);
- MDC_UI[playerid][3] = CreatePlayerTextDraw(playerid, 482.393859, 118.249992, "");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][3], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][3], 18.000000, 14.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][3], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][3], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][3], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][3], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][3], -1440603393);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][3], 5);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][3], 0);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][3], 0);
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][3], 0);
- PlayerTextDrawSetPreviewRot(playerid, MDC_UI[playerid][3], 0.000000, 0.000000, 0.000000, -11.000000);
- PlayerTextDrawSetSelectable(playerid, MDC_UI[playerid][3], true);
- MDC_UI[playerid][4] = CreatePlayerTextDraw(playerid, 483.499908, 120.583320, "box");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][4], 0.000000, 1.004394);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][4], 461.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][4], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][4], -1);
- PlayerTextDrawUseBox(playerid, MDC_UI[playerid][4], 1);
- PlayerTextDrawBoxColor(playerid, MDC_UI[playerid][4], 577162495);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][4], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][4], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][4], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][4], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][4], 0);
- MDC_UI[playerid][5] = CreatePlayerTextDraw(playerid, 469.912292, 117.083343, "-");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][5], 0.400000, 1.600000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][5], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][5], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][5], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][5], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][5], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][5], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][5], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][5], 0);
- MDC_UI[playerid][6] = CreatePlayerTextDraw(playerid, 488.184692, 117.666679, "x");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][6], 0.321287, 1.331665);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][6], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][6], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][6], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][6], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][6], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][6], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][6], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][6], 0);
- MDC_UI[playerid][7] = CreatePlayerTextDraw(playerid, 168.016098, 120.000022, "hud:radar_emmetGun");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][7], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][7], 10.000000, 10.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][7], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][7], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][7], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][7], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][7], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][7], 4);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][7], 0);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][7], 0);
- MDC_UI[playerid][8] = CreatePlayerTextDraw(playerid, 182.240127, 119.416679, "Los_Santos_Police_Department_-_www.lspd.gov.us");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][8], 0.199472, 1.104166);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][8], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][8], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][8], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][8], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][8], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][8], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][8], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][8], 0);
- MDC_UI[playerid][9] = CreatePlayerTextDraw(playerid, 416.969818, 118.833358, "Offset_Test");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][9], 0.233206, 1.220832);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][9], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][9], -1785159937);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][9], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][9], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][9], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][9], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][9], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][9], 0);
- MDC_UI[playerid][10] = CreatePlayerTextDraw(playerid, 166.610565, 134.000015, "Main Screen");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][10], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][10], 59.000000, 13.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][10], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][10], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][10], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][10], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][10], -1431655681);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][10], 5);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][10], 0);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][10], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_UI[playerid][10], true);
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][10], 0);
- PlayerTextDrawSetPreviewRot(playerid, MDC_UI[playerid][10], 0.000000, 0.000000, 0.000000, -1.000000);
- MDC_UI[playerid][11] = CreatePlayerTextDraw(playerid, 166.610565, 149.166732, "Look-up");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][11], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][11], 59.000000, 13.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][11], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][11], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][11], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][11], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][11], -1431655681);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][11], 5);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][11], 0);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][11], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_UI[playerid][11], true);
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][11], 0);
- PlayerTextDrawSetPreviewRot(playerid, MDC_UI[playerid][11], 0.000000, 0.000000, 0.000000, -1.000000);
- MDC_UI[playerid][12] = CreatePlayerTextDraw(playerid, 166.610565, 164.333404, "Emergency");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][12], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][12], 59.000000, 13.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][12], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][12], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][12], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][12], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][12], -1431655681);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][12], 5);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][12], 0);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][12], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_UI[playerid][12], true);
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][12], 0);
- PlayerTextDrawSetPreviewRot(playerid, MDC_UI[playerid][12], 0.000000, 0.000000, 0.000000, -1.000000);
- MDC_UI[playerid][13] = CreatePlayerTextDraw(playerid, 166.610565, 204.583404, "Roster");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][13], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][13], 59.000000, 13.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][13], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][13], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][13], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][13], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][13], -1431655681);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][13], 5);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][13], 0);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][13], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_UI[playerid][13], true);
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][13], 0);
- PlayerTextDrawSetPreviewRot(playerid, MDC_UI[playerid][13], 0.000000, 0.000000, 0.000000, -1.000000);
- MDC_UI[playerid][14] = CreatePlayerTextDraw(playerid, 166.610565, 219.750091, "Records");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][14], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][14], 59.000000, 13.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][14], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][14], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][14], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][14], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][14], -1431655681);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][14], 5);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][14], 0);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][14], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_UI[playerid][14], true);
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][14], 0);
- PlayerTextDrawSetPreviewRot(playerid, MDC_UI[playerid][14], 0.000000, 0.000000, 0.000000, -1.000000);
- MDC_UI[playerid][15] = CreatePlayerTextDraw(playerid, 166.610565, 234.916732, "CCTV");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][15], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][15], 59.000000, 13.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][15], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][15], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][15], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][15], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][15], -1431655681);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][15], 5);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][15], 0);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][15], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_UI[playerid][15], true);
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][15], 0);
- PlayerTextDrawSetPreviewRot(playerid, MDC_UI[playerid][15], 0.000000, 0.000000, 0.000000, -1.000000);
- MDC_UI[playerid][16] = CreatePlayerTextDraw(playerid, 196.295730, 133.416641, "Main_Screen");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][16], 0.178389, 1.232499);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][16], 2);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][16], 858993663);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][16], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][16], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][16], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][16], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][16], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][16], 0);
- MDC_UI[playerid][17] = CreatePlayerTextDraw(playerid, 196.295730, 148.583328, "Look_Up");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][17], 0.178389, 1.232499);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][17], 2);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][17], 858993663);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][17], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][17], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][17], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][17], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][17], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][17], 0);
- MDC_UI[playerid][18] = CreatePlayerTextDraw(playerid, 197.701293, 163.749984, "Emergency");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][18], 0.178389, 1.232499);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][18], 2);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][18], 858993663);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][18], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][18], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][18], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][18], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][18], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][18], 0);
- MDC_UI[playerid][19] = CreatePlayerTextDraw(playerid, 196.764251, 203.999969, "Roster");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][19], 0.178389, 1.232499);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][19], 2);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][19], 858993663);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][19], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][19], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][19], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][19], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][19], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][19], 0);
- MDC_UI[playerid][20] = CreatePlayerTextDraw(playerid, 196.295730, 219.749969, "Records_DB");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][20], 0.178389, 1.232499);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][20], 2);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][20], 858993663);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][20], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][20], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][20], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][20], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][20], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][20], 0);
- MDC_UI[playerid][21] = CreatePlayerTextDraw(playerid, 195.827209, 234.333297, "Dispatch");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][21], 0.178389, 1.232499);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][21], 2);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][21], 858993663);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][21], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][21], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][21], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][21], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][21], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][21], 0);
- MDC_UI[playerid][22] = CreatePlayerTextDraw(playerid, 229.560760, 136.333328, "box");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][22], 0.000000, 23.212295);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][22], 227.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][22], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][22], -1);
- PlayerTextDrawUseBox(playerid, MDC_UI[playerid][22], 1);
- PlayerTextDrawBoxColor(playerid, MDC_UI[playerid][22], -1431655681);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][22], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][22], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][22], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][22], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][22], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][22], 0);
- MDC_UI[playerid][23] = CreatePlayerTextDraw(playerid, 262.656921, 141.583236, "");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][23], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][23], 210.000000, 147.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][23], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][23], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][23], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][23], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][23], 0);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][23], 5);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][23], 0);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][23], 0);
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][23], 267);
- PlayerTextDrawSetPreviewRot(playerid, MDC_UI[playerid][23], 0.000000, 0.000000, 0.000000, 0.899999);
- MDC_UI[playerid][24] = CreatePlayerTextDraw(playerid, 231.903335, 203.416717, "box");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][24], 0.000000, 16.043922);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][24], 499.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][24], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][24], -1);
- PlayerTextDrawUseBox(playerid, MDC_UI[playerid][24], 1);
- PlayerTextDrawBoxColor(playerid, MDC_UI[playerid][24], -572662273);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][24], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][24], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][24], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][24], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][24], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][24], 0);
- MDC_UI[playerid][25] = CreatePlayerTextDraw(playerid, 234.714080, 202.833404, "box");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][25], 0.000000, 1.426062);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][25], 497.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][25], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][25], -2004318108);
- PlayerTextDrawUseBox(playerid, MDC_UI[playerid][25], 1);
- PlayerTextDrawBoxColor(playerid, MDC_UI[playerid][25], -2004318128);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][25], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][25], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][25], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][25], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][25], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][25], 0);
- MDC_UI[playerid][26] = CreatePlayerTextDraw(playerid, 363.557678, 202.833404, "Chief_Of_Police_Offset_Test");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][26], 0.274904, 1.314165);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][26], 2);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][26], 255);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][26], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][26], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][26], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][26], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][26], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][26], 0);
- MDC_UI[playerid][27] = CreatePlayerTextDraw(playerid, 242.679290, 229.083297, "Members_On_Duty~n~Active_Warrants~n~Active_Bolo's");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][27], 0.149340, 1.372501);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][27], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][27], 255);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][27], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][27], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][27], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][27], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][27], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][27], 0);
- MDC_UI[playerid][28] = CreatePlayerTextDraw(playerid, 341.537658, 226.749984, "0~n~0~n~0");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][28], 0.180263, 1.425000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][28], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][28], -2139062017);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][28], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][28], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][28], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][28], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][28], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][28], 0);
- MDC_UI[playerid][29] = CreatePlayerTextDraw(playerid, 367.774688, 227.333297, "CALLS_LAST_HOUR~n~ARRESTS_LAST_HOUR~n~Fines_Last_Hour");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][29], 0.149340, 1.372501);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][29], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][29], 255);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][29], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][29], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][29], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][29], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][29], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][29], 0);
- MDC_UI[playerid][30] = CreatePlayerTextDraw(playerid, 486.779418, 225.000000, "0~n~0~n~0");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][30], 0.180263, 1.425000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][30], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][30], -2139062017);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][30], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][30], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][30], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][30], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][30], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][30], 0);
- MDC_UI[playerid][31] = CreatePlayerTextDraw(playerid, 235.182983, 279.833343, "box");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][31], 0.000000, 1.285506);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][31], 498.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][31], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][31], -1);
- PlayerTextDrawUseBox(playerid, MDC_UI[playerid][31], 1);
- PlayerTextDrawBoxColor(playerid, MDC_UI[playerid][31], -1440603393);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][31], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][31], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][31], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][31], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][31], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][31], 0);
- MDC_UI[playerid][32] = CreatePlayerTextDraw(playerid, 236.120056, 279.833343, "]_NEW_NOTIFY");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][32], 0.207437, 1.075000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][32], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][32], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][32], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][32], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][32], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][32], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][32], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][32], 0);
- MDC_UI[playerid][33] = CreatePlayerTextDraw(playerid, 235.182983, 299.666687, "]_NEW_WARN");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][33], 0.000000, 1.285506);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][33], 498.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][33], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][33], -1);
- PlayerTextDrawUseBox(playerid, MDC_UI[playerid][33], 1);
- PlayerTextDrawBoxColor(playerid, MDC_UI[playerid][33], 41215);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][33], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][33], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][33], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][33], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][33], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][33], 0);
- MDC_UI[playerid][34] = CreatePlayerTextDraw(playerid, 236.120056, 300.250122, "]_NEW_WARN");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][34], 0.207437, 1.075000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][34], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][34], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][34], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][34], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][34], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][34], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][34], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][34], 0);
-
-
-
- MDC_UI[playerid][35] = CreatePlayerTextDraw(playerid, 234.546127, 142.166671, "NAME");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][35], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][35], 34.000000, 14.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][35], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][35], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][35], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][35], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][35], -1431655681);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][35], 5);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][35], 0);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][35], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_UI[playerid][35], true);
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][35], 0);
- PlayerTextDrawSetPreviewRot(playerid, MDC_UI[playerid][35], 0.000000, 0.000000, 0.000000, -1.000000);
- MDC_UI[playerid][36] = CreatePlayerTextDraw(playerid, 271.559417, 142.166687, "PLATE");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][36], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][36], 33.000000, 14.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][36], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][36], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][36], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][36], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][36], -1431655681);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][36], 5);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][36], 0);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][36], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_UI[playerid][36], true);
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][36], 0);
- PlayerTextDrawSetPreviewRot(playerid, MDC_UI[playerid][36], 0.000000, 0.000000, 0.000000, -1.000000);
- MDC_UI[playerid][37] = CreatePlayerTextDraw(playerid, 310.446899, 142.166687, "INPUT");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][37], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][37], 104.000000, 14.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][37], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][37], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][37], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][37], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][37], -1);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][37], 5);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][37], 0);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][37], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_UI[playerid][37], true);
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][37], 0);
- PlayerTextDrawSetPreviewRot(playerid, MDC_UI[playerid][37], 0.000000, 0.000000, 0.000000, -1.000000);
- MDC_UI[playerid][38] = CreatePlayerTextDraw(playerid, 414.458312, 142.166702, "REFRESH");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][38], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][38], 34.000000, 13.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][38], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][38], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][38], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][38], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][38], -1431655681);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][38], 5);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][38], 0);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][38], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_UI[playerid][38], true);
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][38], 0);
- PlayerTextDrawSetPreviewRot(playerid, MDC_UI[playerid][38], 0.000000, 0.000000, 0.000000, -1.000000);
- MDC_UI[playerid][39] = CreatePlayerTextDraw(playerid, 240.336746, 143.333297, "NAME");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][39], 0.203689, 1.150832);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][39], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][39], 858993663);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][39], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][39], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][39], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][39], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][39], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][39], 0);
- MDC_UI[playerid][40] = CreatePlayerTextDraw(playerid, 275.944305, 143.333328, "PLATE");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][40], 0.203689, 1.150832);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][40], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][40], 858993663);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][40], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][40], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][40], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][40], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][40], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][40], 0);
- MDC_UI[playerid][41] = CreatePlayerTextDraw(playerid, 417.437957, 142.166656, "Refresh");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][41], 0.159648, 1.261663);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][41], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][41], 858993663);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][41], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][41], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][41], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][41], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][41], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][41], 0);
- MDC_UI[playerid][42] = CreatePlayerTextDraw(playerid, 153.960479, 152.666656, "");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][42], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][42], 234.000000, 172.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][42], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][42], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][42], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][42], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][42], 0);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][42], 5);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][42], 0);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][42], 0);
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][42], 286);
- PlayerTextDrawSetPreviewRot(playerid, MDC_UI[playerid][42], 0.000000, 0.000000, 20.000000, 0.899999);
- MDC_UI[playerid][43] = CreatePlayerTextDraw(playerid, 234.714492, 215.083435, "box");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][43], 0.000000, 13.654464);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][43], 499.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][43], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][43], -1);
- PlayerTextDrawUseBox(playerid, MDC_UI[playerid][43], 1);
- PlayerTextDrawBoxColor(playerid, MDC_UI[playerid][43], -572662273);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][43], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][43], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][43], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][43], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][43], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][43], 0);
- MDC_UI[playerid][44] = CreatePlayerTextDraw(playerid, 309.677734, 156.750045, "Name:~n~Address:~n~Number:~n~Priors:~n~Licenses:");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][44], 0.207437, 1.226666);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][44], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][44], 858993663);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][44], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][44], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][44], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][44], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][44], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][44], 0);
- MDC_UI[playerid][45] = CreatePlayerTextDraw(playerid, 353.970947, 156.750030, "_");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][45], 0.156837, 1.244166);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][45], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][45], -1667457793);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][45], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][45], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][45], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][45], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][45], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][45], 0);
- MDC_UI[playerid][46] = CreatePlayerTextDraw(playerid, 234.714462, 217.999984, "box");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][46], 0.000000, 1.004393);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][46], 498.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][46], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][46], -1);
- PlayerTextDrawUseBox(playerid, MDC_UI[playerid][46], 1);
- PlayerTextDrawBoxColor(playerid, MDC_UI[playerid][46], -56833);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][46], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][46], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][46], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][46], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][46], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][46], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_UI[playerid][46], true);
- MDC_UI[playerid][47] = CreatePlayerTextDraw(playerid, 236.588531, 217.416656, "]_This_Person_has_multi_addresses,_click_here_for_a_list!");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][47], 0.177452, 1.051667);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][47], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][47], 255);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][47], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][47], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][47], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][47], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][47], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][47], 0);
- MDC_UI[playerid][48] = CreatePlayerTextDraw(playerid, 234.714462, 234.916656, "box");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][48], 0.000000, 1.004393);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][48], 498.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][48], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][48], -1);
- PlayerTextDrawUseBox(playerid, MDC_UI[playerid][48], 1);
- PlayerTextDrawBoxColor(playerid, MDC_UI[playerid][48], -1457315073);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][48], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][48], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][48], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][48], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][48], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][48], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_UI[playerid][48], true);
- MDC_UI[playerid][49] = CreatePlayerTextDraw(playerid, 236.588531, 234.333312, "]_This_Person_has_multi_addresses,_click_here_for_a_list!");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][49], 0.177452, 1.051667);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][49], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][49], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][49], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][49], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][49], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][49], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][49], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][49], 0);
- MDC_UI[playerid][50] = CreatePlayerTextDraw(playerid, 234.714462, 251.249984, "box");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][50], 0.000000, 0.957541);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][50], 498.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][50], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][50], -1);
- PlayerTextDrawUseBox(playerid, MDC_UI[playerid][50], 1);
- PlayerTextDrawBoxColor(playerid, MDC_UI[playerid][50], -1457315073);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][50], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][50], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][50], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][50], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][50], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][50], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_UI[playerid][50], true);
- MDC_UI[playerid][51] = CreatePlayerTextDraw(playerid, 237.057052, 251.249938, "]_Fines:_6_Pending,_2_Expired!!");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][51], 0.177452, 1.051667);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][51], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][51], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][51], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][51], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][51], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][51], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][51], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][51], 0);
- MDC_UI[playerid][52] = CreatePlayerTextDraw(playerid, 233.608917, 267.583343, "");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][52], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][52], 115.000000, 13.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][52], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][52], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][52], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][52], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][52], -1431655681);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][52], 5);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][52], 0);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][52], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_UI[playerid][52], true);
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][52], 0);
- PlayerTextDrawSetPreviewRot(playerid, MDC_UI[playerid][52], 0.000000, 0.000000, 0.000000, -11.000000);
- MDC_UI[playerid][53] = CreatePlayerTextDraw(playerid, 233.608917, 282.166748, "");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][53], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][53], 115.000000, 13.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][53], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][53], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][53], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][53], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][53], -1431655681);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][53], 5);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][53], 0);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][53], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_UI[playerid][53], true);
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][53], 0);
- PlayerTextDrawSetPreviewRot(playerid, MDC_UI[playerid][53], 0.000000, 0.000000, 0.000000, -11.000000);
- MDC_UI[playerid][54] = CreatePlayerTextDraw(playerid, 233.608917, 296.750122, "");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][54], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][54], 115.000000, 13.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][54], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][54], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][54], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][54], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][54], -1431655681);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][54], 5);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][54], 0);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][54], 0);
- PlayerTextDrawSetSelectable(playerid, MDC_UI[playerid][54], true);
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][54], 0);
- PlayerTextDrawSetPreviewRot(playerid, MDC_UI[playerid][54], 0.000000, 0.000000, 0.000000, -11.000000);
- MDC_UI[playerid][55] = CreatePlayerTextDraw(playerid, 237.525588, 268.166656, "~>~_Manage_Licenses");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][55], 0.205094, 1.069166);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][55], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][55], 858993663);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][55], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][55], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][55], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][55], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][55], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][55], 0);
- MDC_UI[playerid][56] = CreatePlayerTextDraw(playerid, 237.525588, 282.750030, "~>~_Apply_Charges");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][56], 0.205094, 1.069166);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][56], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][56], 858993663);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][56], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][56], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][56], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][56], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][56], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][56], 0);
- MDC_UI[playerid][57] = CreatePlayerTextDraw(playerid, 237.057067, 297.333404, "~>~_Arrest_Record");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][57], 0.205094, 1.069166);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][57], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][57], 858993663);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][57], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][57], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][57], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][57], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][57], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][57], 0);
- MDC_UI[playerid][58] = CreatePlayerTextDraw(playerid, 357.935638, 269.333282, "box");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][58], 0.000000, 0.816985);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][58], 498.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][58], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][58], 926035967);
- PlayerTextDrawUseBox(playerid, MDC_UI[playerid][58], 1);
- PlayerTextDrawBoxColor(playerid, MDC_UI[playerid][58], 255);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][58], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][58], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][58], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][58], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][58], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][58], 0);
- MDC_UI[playerid][59] = CreatePlayerTextDraw(playerid, 480.688507, 267.583190, "~y~]~w~_OUTSTANDING_CHARGES_~y~]~w~");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][59], 0.184011, 1.115832);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][59], 3);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][59], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][59], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][59], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][59], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][59], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][59], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][59], 0);
- MDC_UI[playerid][60] = CreatePlayerTextDraw(playerid, 356.061431, 279.833221, "-_Rape_x2~n~-_House_Robbery");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][60], 0.185885, 0.958333);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][60], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][60], 255);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][60], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][60], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][60], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][60], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][60], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][60], 0);
- MDC_UI[playerid][61] = CreatePlayerTextDraw(playerid, 231.581253, 119.999938, "");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][61], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][61], 106.000000, 123.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][61], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][61], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][61], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][61], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][61], 0);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][61], 5);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][61], 0);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][61], 0);
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][61], 560);
- PlayerTextDrawSetPreviewRot(playerid, MDC_UI[playerid][61], 0.000000, 0.000000, 90.000000, 0.899999);
- PlayerTextDrawSetPreviewVehCol(playerid, MDC_UI[playerid][61], 1, 1);
- MDC_UI[playerid][62] = CreatePlayerTextDraw(playerid, 342.474792, 156.166687, "Model:~n~Plate:~n~Owner~n~Impounded");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][62], 0.207437, 1.226666);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][62], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][62], 858993663);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][62], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][62], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][62], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][62], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][62], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][62], 0);
- MDC_UI[playerid][63] = CreatePlayerTextDraw(playerid, 420.719268, 156.166748, "Sultan~n~56JHA~n~Offset_Test~n~~g~No");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][63], 0.207437, 1.226666);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][63], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][63], -2004317953);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][63], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][63], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][63], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][63], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][63], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][63], 0);
-
- MDC_UI[playerid][64] = CreatePlayerTextDraw(playerid, 314.363433, 142.750015, "_"); // input_button
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][64], 0.214933, 1.045833);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][64], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][64], 255);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][64], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][64], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][64], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][64], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][64], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][64], 0);
-
- MDC_UI[playerid][65] = CreatePlayerTextDraw(playerid, 236.588592, 159.666702, "box");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][65], 0.000000, 5.689605);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][65], 300.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][65], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][65], -1);
- PlayerTextDrawUseBox(playerid, MDC_UI[playerid][65], 1);
- PlayerTextDrawBoxColor(playerid, MDC_UI[playerid][65], 255);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][65], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][65], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][65], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][65], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][65], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][65], 0);
- MDC_UI[playerid][66] = CreatePlayerTextDraw(playerid, 268.448120, 164.916641, "PICTURE~n~NOT~n~AVAILABLE");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][66], 0.340966, 1.425000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][66], 2);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][66], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][66], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][66], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][66], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][66], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][66], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][66], 0);
-
- MDC_UI[playerid][67] = CreatePlayerTextDraw(playerid, 236.588485, 208.083328, "box");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][67], 0.000000, 1.144950);
- PlayerTextDrawTextSize(playerid, MDC_UI[playerid][67], 498.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][67], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][67], -1);
- PlayerTextDrawUseBox(playerid, MDC_UI[playerid][67], 1);
- PlayerTextDrawBoxColor(playerid, MDC_UI[playerid][67], -1440602881);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][67], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][67], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][67], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][67], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][67], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][67], 0);
- MDC_UI[playerid][68] = CreatePlayerTextDraw(playerid, 237.994079, 207.499984, "]_this_vehicle_is_reported_stolen_-_7/FEB/2017");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][68], 0.213528, 1.104168);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][68], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][68], -1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][68], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][68], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][68], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][68], 2);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][68], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][68], 0);
-
- MDC_UI[playerid][69] = CreatePlayerTextDraw(playerid, 233.777709, 135.750030, "[CARSIGN]_~n~NAME");
- PlayerTextDrawLetterSize(playerid, MDC_UI[playerid][69], 0.208843, 0.993332);
- PlayerTextDrawAlignment(playerid, MDC_UI[playerid][69], 1);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][69], 858993663);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][69], 0);
- PlayerTextDrawSetOutline(playerid, MDC_UI[playerid][69], 0);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][69], 255);
- PlayerTextDrawFont(playerid, MDC_UI[playerid][69], 1);
- PlayerTextDrawSetProportional(playerid, MDC_UI[playerid][69], 1);
- PlayerTextDrawSetShadow(playerid, MDC_UI[playerid][69], 0);
-
- }
- ToggleMDC(playerid, bool:SHOW)
- {
- if(SHOW)
- {
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][35], 858993663);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][39], -1);
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][10], 858993663);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][16], -1);
-
- for(new i; i < 35; i ++) PlayerTextDrawShow(playerid, MDC_UI[playerid][i]);
- new sub_str[128], count = 0;
- for(new i = 0; i < GetPlayerPoolSize(); i+=3)
- {
- if(PlayerData[i][pLAWduty])
- {
- count++;
- }
- }
- format(sub_str, 128, "%d~n~%d~n~0", count, warrant_count);
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][28], sub_str);
- format(sub_str, 128, "%d~n~0~n~0", call_count);
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][30], sub_str);
- }
- else
- {
- for(new i; i < 70; i ++) PlayerTextDrawHide(playerid, MDC_UI[playerid][i]);
-
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][36], -1431655681);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][40], 858993663);
-
- for(new x = 10; x < 16; x ++)
- {
- PlayerTextDrawBackgroundColor(playerid, MDC_UI[playerid][x], -1431655681);
- PlayerTextDrawColor(playerid, MDC_UI[playerid][x+6], 858993663);
- }
- SetPVarInt(playerid, "Query_Mode", 0);
- SetPVarInt(playerid, "UsingMDC", 0);
- }
- return 1;
- }
- Server:OnMDCRecordSearch(playerid, type)
- {
- new query[255];
- switch(type)
- {
- case 1: //Name search;
- {
- if(!ReturnDBIDFromName(PlayerMDCName[playerid]))
- {
- return PlayerTextDrawSetString(playerid, MDC_UI[playerid][64], "NO_SUCH_DATA..");
- }
- mysql_format(m_Handle, query, sizeof(query), "SELECT LastSeen, char_dbid, PrisonSkin, pPhone, pActiveListings, pPrisonTimes, pJailTimes, pDriversLicense, pWeaponsLicense FROM characters WHERE char_dbid = %i", ReturnDBIDFromName(PlayerMDCName[playerid]));
- mysql_tquery(m_Handle, query, "OnMDCNameFound", "i", playerid);
- }
- case 2: //Plate search;
- {
- mysql_format(m_Handle, query, sizeof(query), "SELECT VehiclePlates FROM vehicles WHERE VehiclePlates LIKE '%%%e%%' LIMIT 5", PlayerMDCName[playerid]);
- mysql_tquery(m_Handle, query, "OnMDCPlate", "i", playerid);
- return 1;
- }
- }
- return 1;
- }
- Server:OnMDCPlate(playerid)
- {
- if(!cache_num_rows())
- {
- for(new i = 0; i < 5; i++) PlayerPlateSaver[playerid][i] = "";
- PlayerMDCName[playerid] = "";
- return PlayerTextDrawSetString(playerid, MDC_UI[playerid][64], "~r~NO_SUCH_DATA..");
- }
- new rows, fields, str[128];
- cache_get_row_count(rows), cache_get_field_count(fields);
- for(new i = 0; i < rows; i++)
- {
- cache_get_value_name(i, "VehiclePlates", PlayerPlateSaver[playerid][i], 20);
- }
- for(new i = 0; i < 5; i++)
- {
- if(!isnull(PlayerPlateSaver[playerid][i]))
- {
- format(str, sizeof(str), "%s%s\n", str, PlayerPlateSaver[playerid][i]);
- }
- }
- ShowPlayerDialog(playerid, DIALOG_MDC_PLATE_LIST, DIALOG_STYLE_LIST, "Plate Search - MDC", str, "Select", "<<");
- return 1;
- }
- Server:OnPlateSelect(playerid, listitem)
- {
- new rows, fields;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
- new
- model,
- owner,
- impounded,
- sub_str[64],
- stolen,
- primary_str[200];
- model = cache_get_value_name_int(0, "VehicleModel", model);
- owner = cache_get_value_name_int(0, "VehicleOwnerDBID", owner);
- impounded = bool:cache_get_value_name_int(0, "VehicleImpounded", impounded);
- stolen = bool:cache_get_value_name_int(0, "VehicleStolen", stolen);
- PlayerTextDrawHide(playerid, MDC_UI[playerid][65]);
- PlayerTextDrawHide(playerid, MDC_UI[playerid][66]);
- if(stolen)
- {
- PlayerTextDrawShow(playerid, MDC_UI[playerid][67]);
- PlayerTextDrawShow(playerid, MDC_UI[playerid][68]);
- new year, month, day, MonthStr[16], str[64];
- getdate(year, month, day);
- switch(month)
- {
- case 1: MonthStr = "Jan";
- case 2: MonthStr = "Feb";
- case 3: MonthStr = "Mar";
- case 4: MonthStr = "Apr";
- case 5: MonthStr = "May";
- case 6: MonthStr = "Jun";
- case 7: MonthStr = "Jul";
- case 8: MonthStr = "Aug";
- case 9: MonthStr = "Sep";
- case 10: MonthStr = "Oct";
- case 11: MonthStr = "Nov";
- case 12: MonthStr = "Dec";
- }
- format(str, sizeof str, "_NOTE(s):_Vehicle_reported_stolen_-_%d/%s/%d", day, MonthStr, year);
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][68], "_NOTE(s):_Vehicle_reported_stolen");
- }
-
- for(new x = 16; x < 22; x ++)
- {
- PlayerTextDrawShow(playerid, MDC_UI[playerid][x]);
- }
-
- for(new x = 42; x < 61; x ++)
- {
- PlayerTextDrawHide(playerid, MDC_UI[playerid][x]);
- }
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][61], model);
- format(primary_str, sizeof primary_str, "%s~n~%s~n~%s~n~~g~%s", ReturnVehicleModelName(model), PlayerPlateSaver[playerid][listitem], ReturnDBIDName(owner), (impounded) ? ("Yes") : ("No"));
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][63], primary_str);
-
- format(sub_str, sizeof sub_str, "%s", PlayerPlateSaver[playerid][listitem]);
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][64], sub_str);
-
- for(new x = 61; x < 64; x ++)
- {
- PlayerTextDrawHide(playerid, MDC_UI[playerid][x]);
- PlayerTextDrawShow(playerid, MDC_UI[playerid][x]);
- }
- return 1;
- }
- Server:OnMDCNameFound(playerid)
- {
- new rows, fields;
- cache_get_row_count(rows);
- cache_get_field_count(fields);
- new
- primary_str[300],
- sub_str[128],
- str[128],
- active_listing,
- jail_times,
- skin,
- dlic,
- wlic,
- charid,
- phone_number,
- prison_times,
- list[256],
- last_seen[28],
- query[128];
- phone_number = cache_get_value_name_int(0, "pPhone", phone_number);
- active_listing = cache_get_value_name_int(0, "pActiveListings", active_listing);
- jail_times = cache_get_value_name_int(0, "pJailTimes", jail_times);
- prison_times = cache_get_value_name_int(0, "pPrisonTimes", prison_times);
- dlic = cache_get_value_name_int(0, "pDriversLicense", dlic);
- wlic = cache_get_value_name_int(0, "pWeaponsLicense", wlic);
- skin = cache_get_value_name_int(0, "PrisonSkin", skin);
- charid = cache_get_value_name_int(0, "char_dbid", charid);
- cache_get_value_name(0, "LastSeen", last_seen, 28);
-
- if(!skin)
- {
- PlayerTextDrawShow(playerid, MDC_UI[playerid][65]);
- PlayerTextDrawShow(playerid, MDC_UI[playerid][66]);
- }
-
- format(str, sizeof str, "%s", PlayerMDCName[playerid]);
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][64], str);
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][42], skin);
-
- for(new x = 35; x < 61; x ++)
- {
- PlayerTextDrawHide(playerid, MDC_UI[playerid][x]);
- PlayerTextDrawShow(playerid, MDC_UI[playerid][x]);
- }
-
- if(jail_times > 0)
- {
- format(list, sizeof(list), "%s~n~%s~n~%d~n~%d_jail_sentences.~n~%s_%s", PlayerMDCName[playerid], last_seen, phone_number, jail_times, (wlic) ? ("Weapons_License") : ("None_(PF/CCW)"), (dlic) ? ("Driver's_License") : ("None_(DL)"));
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][45], list);
- }
- else if(prison_times > 0)
- {
- format(list, sizeof(list), "%s~n~%s~n~%d~n~%d_prison_sentences.~n~%s_%s", PlayerMDCName[playerid], last_seen, phone_number, prison_times, (wlic) ? ("Weapons_License") : ("None_(PF/CCW)"), (dlic) ? ("Driver's_License") : ("None_(DL)"));
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][45], list);
- }
- else if(prison_times > 0 && jail_times > 0)
- {
- format(list, sizeof(list), "%s~n~%s~n~%d~n~%d_jail_sentences,_%d_prison_sentences.~n~%s_%s", PlayerMDCName[playerid], last_seen, phone_number, jail_times, prison_times, (wlic) ? ("Weapons_License") : ("None_(PF/CCW)"), (dlic) ? ("Driver's_License") : ("None_(DL)"));
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][45], list);
- }
- else
- {
- format(list, sizeof(list), "%s~n~%s~n~%d~n~None~n~%s_%s", PlayerMDCName[playerid], last_seen, phone_number, (wlic) ? ("Weapons_License") : ("None_(PF/CCW)"), (dlic) ? ("Driver's_License") : ("None_(DL)"));
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][45], list);
- }
-
- PlayerTextDrawHide(playerid, MDC_UI[playerid][44]);
- PlayerTextDrawShow(playerid, MDC_UI[playerid][44]);
-
- if(active_listing > 0)
- {
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][49], "]_This_Person_is_linked_to_a_warrant!_click_here_for_info");
- }
- else
- {
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][49], "]_This_Person_has_no_warrants.");
- }
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT * FROM properties WHERE PropertyOwnerDBID = %d", charid);
- new Cache:house_cache = mysql_query(m_Handle, query);
-
- if(!cache_num_rows())
- {
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][47], "]_This_Person_has_no_registered_properties.");
- }
- else
- {
- static getHouse[32];
-
- format(getHouse, 32, "]_This_Person_has_%d_addresse(s),_click_here_for_a_list!", cache_num_rows());
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][47], getHouse);
- }
- cache_delete(house_cache);
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT charge_reason FROM criminal_record WHERE player_name = '%e' ORDER BY idx DESC", PlayerMDCName[playerid]);
-
- new Cache:cache = mysql_query(m_Handle, query);
- new record[128];
- if(!cache_num_rows())
- primary_str = "~g~NO_CHARGES_FOUND.";
- else
- {
- for(new i = 0; i < cache_num_rows(); i++)
- {
- cache_get_value_name(i, "charge_reason", record);
- format(sub_str, sizeof(sub_str), "-_%s~n~", record);
- strcat(primary_str, sub_str);
- }
- }
-
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][60], primary_str);
- cache_delete(cache);
- return 1;
- }
- UpdateMDC(playerid, page)
- {
- new str[128];
- switch(page)
- {
- case 0:
- {
- for(new x = 35; x < 42; x ++)
- {
- PlayerTextDrawHide(playerid, MDC_UI[playerid][x]);
- }
- for(new i = 23; i < 35; i ++)
- {
- PlayerTextDrawShow(playerid, MDC_UI[playerid][i]);
- }
- PlayerTextDrawSetPreviewModel(playerid, MDC_UI[playerid][23], GetPlayerSkin(playerid));
- format(str, sizeof(str), "%s_%s", ReturnRank(playerid), ReturnName(playerid));
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][26], str);
- PlayerTextDrawHide(playerid, MDC_UI[playerid][23]);
- PlayerTextDrawShow(playerid, MDC_UI[playerid][23]);
-
- PlayerTextDrawHide(playerid, MDC_UI[playerid][64]);
- PlayerTextDrawHide(playerid, MDC_UI[playerid][65]);
- PlayerTextDrawHide(playerid, MDC_UI[playerid][66]);
-
- }
- case 1:
- {
- PlayerTextDrawHide(playerid, MDC_UI[playerid][65]);
- PlayerTextDrawHide(playerid, MDC_UI[playerid][66]);
-
- for(new i = 23; i < 35; i ++)
- {
- PlayerTextDrawHide(playerid, MDC_UI[playerid][i]);
- }
- for(new x = 35; x < 42; x ++)
- {
- PlayerTextDrawShow(playerid, MDC_UI[playerid][x]);
- }
- PlayerTextDrawShow(playerid, MDC_UI[playerid][64]);
- }
- case 2:
- {
-
- }
- case 3:
- {
- new primary_str[256], sub_str[128], count = 0;
- for(new i = 0; i < GetPlayerPoolSize(); i+=3)
- {
- if(PlayerData[i][pLAWduty])
- {
- format(sub_str, sizeof(sub_str), "(Unit_%i):_%s_%s_%s_%s~n~", i-2, ReturnName(i), ReturnName(i+1), ReturnName(i+2), ReturnName(i+3));
- strcat(primary_str, sub_str);
- count ++;
- }
- }
-
- if(!count) return PlayerTextDrawSetString(playerid, MDC_UI[playerid][69], "~r~There's no-one that registered to any callsigns..");
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][69], primary_str);
- PlayerTextDrawShow(playerid, MDC_UI[playerid][69]);
- // list onduty cops
- }
- case 4:
- {
-
- }
- case 5:
- {
-
- }
- }
- format(str, sizeof(str), "%s", ReturnPage(page));
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][8], str);
-
- format(str, sizeof(str), "%s", ReturnName(playerid));
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][9], str);
- return 1;
- }
- ReturnPage(page)
- {
- new str[64];
- switch(page)
- {
- case 0: str = "Los_Santos_Police_Department_-_www.lspd.gov.us";
- case 1: str = "POLICE_~>~_Look-Up";
- case 2: str = "POLICE_~>~_Emergency";
- case 3: str = "POLICE_~>~_Roster";
- case 4: str = "POLICE_~>~_Records_DB";
- case 5: str = "POLICE_~>~_CCTV";
- }
- return str;
- }
- Server:OnMDCSearch(playerid, type)
- {
- new str[60];
- PlayerMDCCount[playerid]++;
- switch(PlayerMDCCount[playerid])
- {
- case 1: str = "Searching..";
- case 2: str = "Searching.";
- case 3: str = "Searching..";
- case 4: str = "Searching...";
- case 5:
- {
- KillTimer(PlayerMDCTimer[playerid]);
- PlayerMDCCount[playerid] = 0;
-
- OnMDCRecordSearch(playerid, type);
- return 1;
- }
- }
- PlayerTextDrawSetString(playerid, MDC_UI[playerid][64], str);
- return 1;
- }
- stock showMDCLayout(playerid, bool:show)
- {
- if(show)
- {
- for(new i; i < 19; i ++) PlayerTextDrawShow(playerid, MDC_Layout[playerid][i]);
-
- SetPVarInt(playerid, "MDCLayout", 1);
- SelectTextDraw(playerid, COLOR_GREY);
- SendClientMessage(playerid, COLOR_DARKGREEN, "ACCESSED:{FFFFFF} You can hold RMB and press Left Alt to re-active the cursor.");
- }
- else
- {
- CancelSelectTextDraw(playerid);
- for(new i; i < 19; i ++) PlayerTextDrawHide(playerid, MDC_Layout[playerid][i]);
- SetPVarInt(playerid, "MDCLayout", 0);
- }
- return 1;
- }
- stock ReturnDBIDFromName(name[])
- {
- new checkQuery[128], dbid;
-
- mysql_format(m_Handle, checkQuery, sizeof(checkQuery), "SELECT char_dbid FROM characters WHERE char_name = '%e'", name);
- new Cache:cache = mysql_query(m_Handle, checkQuery);
-
- if(!cache_num_rows())
- {
- cache_delete(cache);
- return 0;
- }
-
- cache_get_value_name_int(0, "char_dbid", dbid);
- cache_delete(cache);
- return dbid;
- }
- stock ReturnDBIDName(dbid)
- {
- new query[120], returnString[60];
-
- mysql_format(m_Handle, query, sizeof(query), "SELECT char_name FROM characters WHERE char_dbid = %i", dbid);
- new Cache:cache = mysql_query(m_Handle, query);
-
- if(!cache_num_rows())
- returnString = "None";
-
- else
- cache_get_value_name(0, "char_name", returnString);
-
- cache_delete(cache);
- return returnString;
- } // Sloth was here.
- forward OnCheatDetected(playerid, ip_address[], type, code);
- public OnCheatDetected(playerid, ip_address[], type, code) {
- if (PlayerData[playerid][pAdminDuty]) return 1;
- switch (code) {
- case 41: return 1;
- case 0: {
- adminWarn(1, sprintf("%s (id: %d) is likely airbreaking on foot!", ReturnName(playerid, 1), playerid));
- }
- case 1: {
- adminWarn(1, sprintf("%s (id: %d) is likely airbreaking in vehicle!", ReturnName(playerid, 1), playerid));
- }
- case 23: {
- adminWarn(1, sprintf("%s (id: %d) is likely using vehicle tuning hacks!", ReturnName(playerid, 1), playerid));
- }
- case 24: {
- adminWarn(1, sprintf("%s (id: %d) is likely using parkour mods!", ReturnName(playerid, 1), playerid));
- }
- case 26: {
- adminWarn(1, sprintf("%s (id: %d) is likely using rapid fire mods!", ReturnName(playerid, 1), playerid));
- }
- case 29: {
- adminWarn(1, sprintf("%s (id: %d) is likely using pro aim aimbot!", ReturnName(playerid, 1), playerid));
- }
- }
- return 1;
- }
- #include "phone/phone.pwn"
- #include "maps/maps.pwn"
- //#include "misc/skins.pwn"
- //#include "jobs/jobs.pwn"
- //#include "registration/registration.pwn"
|